2003-01-06 Michal Ludvig <mludvig@suse.cz>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-06 Michal Ludvig <mludvig@suse.cz>
2
3 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
4 since it is in i386-tdep.c.
5
6 2003-01-06 J. Brobecker <brobecker@gnat.com>
7
8 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9 failure introduced in the previous change.
10
11 2003-01-05 Michael Chastain <mec@shout.net>
12
13 * README: Remove references to deleted remote-*.c files:
14 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
15 remote-nrom.c, remote-os9k.c, remote-udi.c.
16
17 2003-01-05 Mark Kettenis <kettenis@gnu.org>
18
19 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
20 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
21 i386_get_longjmp_target.
22
23 2003-01-05 Andrew Cagney <ac131313@redhat.com>
24
25 * arm-tdep.c (prologue_cache): Change to a pointer.
26 (_initialize_arm_tdep): Allocate prologue_cache.
27 (check_prologue_cache): Update.
28 (save_prologue_cache): Update.
29 (arm_gdbarch_init): Update.
30
31 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
32
33 * stabsread.c (update_method_name_from_physname): Call complaint()
34 instead of error.
35
36 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
37
38 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
39 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
40 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
41
42 * blockframe.c: Include "gdbcmd.h" and "command.h".
43 (backtrace_below_main): New variable.
44 (file_frame_chain_valid, func_frame_chain_valid)
45 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
46 (generic_func_frame_chain_valid): Remove functions.
47 (frame_chain_valid, do_flush_frames_sfunc): New functions.
48 (_initialize_blockframe): New function.
49 * Makefile.in (blockframe.o): Update dependencies.
50 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
51 comment. Call frame_chain_valid ().
52 * frame.h: Remove old prototypes. Add prototype for
53 frame_chain_valid and update comments to match.
54 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
55 Remove old comment.
56 * gdbarch.h: Regenerated.
57 * gdbarch.c: Regenerated.
58
59 * alpha-tdep.c (alpha_gdbarch_init): Don't call
60 set_gdbarch_frame_chain_valid.
61 * avr-tdep.c (avr_gdbarch_init): Likewise.
62 * cris-tdep.c (cris_gdbarch_init): Likewise.
63 * frv-tdep.c (frv_gdbarch_init): Likewise.
64 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
65 * i386-tdep.c (i386_svr4_init_abi): Likewise.
66 (i386_nw_init_abi): Likewise.
67 (i386_gdbarch_init): Likewise.
68 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
69 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
70 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
71 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
72 * mips-tdep.c (mips_gdbarch_init): Likewise.
73 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
74 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
75 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
76 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
77 * s390-tdep.c (s390_gdbarch_init): Likewise.
78 * sh-tdep.c (sh_gdbarch_init): Likewise.
79 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
80 * v850-tdep.c (v850_gdbarch_init): Likewise.
81 * vax-tdep.c (vax_gdbarch_init): Likewise.
82 * x86-64-tdep.c (x86_64_init_abi): Likewise.
83
84 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
85 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
86 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
87 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
88 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
89 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
90 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
91 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
92
93 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
94
95 * Makefile.in (acconfig_h): Remove incorrect macro.
96 (config_h): Define.
97 (osabi.o): Update dependencies.
98 * configure.tgt: Set gdb_osabi based on target triplet.
99 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
100 * configure: Regenerated.
101 * config.in: Regenerated.
102 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
103 (GDB_OSABI_DEFAULT): Define if not already defined.
104 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
105 (set_osabi_string): New variables.
106 (gdbarch_register_osabi): Add new OS ABI to
107 gdb_osabi_available_names.
108 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
109 (set_osabi, show_osabi): New functions.
110 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
111
112 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
113
114 * arch-utils.c (gdbarch_info_init): Set osabi to
115 GDB_OSABI_UNINITIALIZED.
116 * gdbarch.sh: Add osabi to struct gdbarch and to struct
117 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
118 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
119 * gdbarch.c: Regenerated.
120 * gdbarch.h: Regenerated.
121 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
122 there's no BFD.
123 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
124 * osabi.h (enum gdb_osabi): Move to defs.h.
125 (gdbarch_init_osabi): Update prototype.
126 * defs.h (enum gdb_osabi): Moved here.
127 * Makefile.in: Update dependencies.
128
129 * alpha-tdep.h: Don't include "osabi.h".
130 (struct gdbarch_tdep): Remove osabi member.
131 * alpha-tdep.c: Include "osabi.h".
132 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
133 iterate over arches. Update call to gdbarch_init_osabi.
134 (alpha_dump_tdep): Don't dump osabi.
135 * alpha-linux-tdep.c: Include "osabi.h".
136 * alpha-osf1-tdep.c: Include "osabi.h".
137 * alphafbsd-tdep.c: Include "osabi.h".
138 * alphanbsd-tdep.c: Include "osabi.h".
139
140 * arm-tdep.h: Don't include "osabi.h".
141 (struct gdbarch_tdep): Remove osabi member.
142 * arm-tdep.c: Include "osabi.h".
143 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
144 iterate over arches. Update call to gdbarch_init_osabi.
145 (arm_dump_tdep): Don't dump osabi.
146 * arm-linux-tdep.c: Include "osabi.h".
147 * armnbsd-tdep.c: Include "osabi.h".
148
149 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
150 Update call to gdbarch_init_osabi.
151
152 * i386-tdep.h: Don't include "osabi.h".
153 (struct gdbarch_tdep): Remove osabi member.
154 * i386-tdep.c: Include "osabi.h".
155 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
156 iterate over arches. Update call to gdbarch_init_osabi.
157 (i386_dump_tdep): Don't dump osabi.
158 * i386-linux-tdep.c: Include "osabi.h".
159 * i386-sol2-tdep.c: Include "osabi.h".
160 * i386bsd-tdep.c: Include "osabi.h".
161 * i386gnu-tdep.c: Include "osabi.h".
162 * i386ly-tdep.c: Include "osabi.h".
163 * i386nbsd-tdep.c: Include "osabi.h".
164 * i386obsd-tdep.c: Include "osabi.h".
165
166 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
167 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
168 check osabi when iterating over arches. Update call to
169 gdbarch_init_osabi.
170 (mips_dump_tdep): Don't dump osabi.
171
172 * ns32k-tdep.h: Don't include "osabi.h".
173 (struct gdbarch_tdep): Remove.
174 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
175 gdbarch_lookup_osabi. Don't iterate over arches. Don't
176 allocate tdep. Update call to gdbarch_init_osabi.
177 (ns32k_dump_tdep): Remove.
178 (_initialize_ns32k_tdep): Update call to gdbarch_register.
179 * ns32knbsd-tdep.c: Include "osabi.h".
180
181 * ppc-tdep.h: Don't include "osabi.h".
182 (struct gdbarch_tdep): Remove osabi member.
183 * rs6000-tdep.c: Include "osabi.h".
184 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
185 osabi when iterating over arches. Update call to
186 gdbarch_init_osabi.
187 (rs6000_dump_tdep): Don't dump osabi.
188 * ppc-linux-tdep.c: Include "osabi.h".
189 * ppcnbsd-tdep.c: Include "osabi.h".
190
191 * sh-tdep.h: Don't include "osabi.h".
192 (struct gdbarch_tdep): Remove osabi member.
193 * sh-tdep.c: Include "osabi.h".
194 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
195 iterate over arches. Update call to gdbarch_init_osabi.
196 (sh_dump_tdep): Don't dump osabi.
197 * shnbsd-tdep.c: Include "osabi.h".
198
199 * sparc-tdep.c: Include "osabi.h".
200 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
201 iterate over arches. Update call to gdbarch_init_osabi.
202 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
203 tdep structure.
204
205 * vax-tdep.h: Don't include "osabi.h".
206 (struct gdbarch_tdep): Remove.
207 * vax-tdep.c: Include "osabi.h".
208 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
209 iterate over arches. Don't allocate tdep. Update call
210 to gdbarch_init_osabi.
211 (vax_dump_tdep): Remove.
212 (_initialize_vax_tdep): Update call to gdbarch_register.
213
214 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
215
216 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
217 entirely.
218 (breakpoint_re_set_one): Don't fetch the value for a disabled
219 watchpoint.
220
221 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
222
223 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
224 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
225 (COERCE_FLOAT_TO_DOUBLE): Remove.
226 * gdbarch.c: Regenerate.
227 * gdbarch.h: Regenerate.
228 * Makefile.in: Remove value_h from gdbarch_h.
229 * valops.c (coerce_float_to_double): New variable.
230 (default_coerce_float_to_double): Remove.
231 (standard_coerce_float_to_double): Remove.
232 (value_arg_coerce): Use coerce_float_to_double.
233 (_initialize_valops): Add "set coerce-float-to-double".
234 * value.h (default_coerce_float_to_double): Remove prototype.
235 (standard_coerce_float_to_double): Remove prototype.
236
237 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
238 prototyped.
239 * mdebugread.c (parse_symbol): Likewise.
240 * stabsread.c (define_symbol): Mark all functions as prototyped.
241
242 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
243 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
244 set_gdbarch_coerce_float_to_double.
245 * arm-tdep.c (arm_gdbarch_init): Likewise.
246 * frv-tdep.c (frv_gdbarch_init): Likewise.
247 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
248 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
249 * mips-tdep.c (mips_gdbarch_init): Likewise.
250 (mips_coerce_float_to_double): Remove.
251 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
252 (rs6000_coerce_float_to_double): Remove.
253 * s390-tdep.c (s390_gdbarch_init): Likewise.
254 * sh-tdep.c (sh_gdbarch_init): Likewise.
255 (sh_coerce_float_to_double): Remove.
256 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
257 (sparc_coerce_float_to_double): Remove.
258 * v850-tdep.c (v850_gdbarch_init): Likewise.
259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
260 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
261 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
262 (hppa_coerce_float_to_double): Remove prototype.
263 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
264
265 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
266
267 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
268
269 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
270
271 Suggested by Stewart Brown <sb24@avaya.com>:
272 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
273 in recursive calls. Handle TYPE_CODE_TYPEDEF.
274 (c_type_print_varspec_suffix): Likewise.
275
276 2003-01-04 Mark Kettenis <kettenis@gnu.org>
277
278 * configure.in: Don't set and AC_SUBST SUBDIRS.
279 * configure: Regenerated.
280
281 * configure.in: Remove code dealing with shared libraries.
282 * Makefile.in: Remove HLDFLAGS and HLDENV.
283 * configure: Regenerated.
284
285 2003-01-04 Andrew Cagney <ac131313@redhat.com>
286
287 * frame.c (deprecated_frame_xmalloc): New function.
288 (deprecated_set_frame_saved_regs_hack): New function.
289 (deprecated_set_frame_extra_info_hack): New function.
290 * frame.h (deprecated_frame_xmalloc): Declare.
291 (deprecated_set_frame_saved_regs_hack): Declare.
292 (deprecated_set_frame_extra_info_hack): Declare.
293
294 2003-01-04 Mark Kettenis <kettenis@gnu.org>
295
296 * configure.in: Move code that provides the --enable-gdbtk option
297 right after the code that handles the --enable-tui option, and
298 polish it somewhat.
299 * configure: Regenerated.
300
301 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
302 AC_CHECK_FUNCS and remove the old check for pread64.
303 * acinclude.m4 (AC_GNU_SOURCE): New macro.
304 * acconfig.h (_GNU_SOURCE): Add.
305 (HAVE_PREAD64): Remove.
306 * configure, aclocal.m4, config.in: Regenerated.
307
308 2003-01-03 Andrew Cagney <ac131313@redhat.com>
309
310 * alpha-tdep.c: Use get_frame_saved_regs.
311 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
312 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
313 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
314 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
315 * vax-tdep.c, xstormy16-tdep.c: Ditto.
316
317 2003-01-03 Mark Kettenis <kettenis@gnu.org>
318
319 * configure.in: Remove all use of the SUBDIRS variable; add
320 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
321 code providing the --enable-multi-ice option, and move it right in
322 front of the code that checks whether gdbserver is supported.
323 Polish that too.
324 * configure: Regenerated.
325 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
326 @SUBDIRS@.
327
328 2003-01-03 Andrew Cagney <cagney@redhat.com>
329
330 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
331 * avr-tdep.c, cris-tdep.c: Ditto.
332 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
333 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
334
335 2003-01-03 Mark Kettenis <kettenis@gnu.org>
336
337 * configure.in: Remove --enable-netrom option.
338 * configure: Regenerated.
339
340 2003-01-03 Mark Kettenis <kettenis@gnu.org>
341
342 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
343 declaration for `struct re_pattern_buffer' instead.
344 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
345
346 2003-01-03 J. Brobecker <brobecker@gnat.com>
347
348 * mdebugread.c (parse_symbol): Count until the stEnd matching
349 the structure name.
350
351 2003-01-02 Mark Kettenis <kettenis@gnu.org>
352
353 * configure.in: Remove --with-cpu option.
354 subscripts. Remove evil changequotes here.
355 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
356 * config.in, configure: Regenerated.
357
358 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
359 * configure.in: Cleanup section that sources GDB and BFD configure
360 subscripts. Remove evil changequotes here.
361 * config.in, configure: Regenerated.
362
363 2003-01-02 Andrew Cagney <ac131313@redhat.com>
364
365 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
366 frame accessor methods.
367 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
368 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
369 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
370 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
371 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
372 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
373 * z8k-tdep.c: Ditto.
374
375 2003-01-02 Mark Kettenis <kettenis@gnu.org>
376
377 * configure.in: Remove UI_OUT configuration code.
378 * ada-lang.c: Update assuming UI_OUT is always true.
379 * Makefile.in (UIOUT_CFLAGS): Remove.
380 * configure: Regenerated.
381 * TODO: Remove blurb about elimination of -DUI_OUT.
382
383 * configure.in: Move code that provides the --enable-gdbcli,
384 --enable-gdbmi options right before the code that handles the
385 --enable-tui option. Polish a bit.
386 * configure: Regenerated.
387
388 * configure.in: Rewrite check for GNU regex and the
389 --without-included regex option, and move it into the "Checks for
390 library functions" section. This makes us use the system regex
391 again by default on systems with version 2 of the GNU C library.
392 This was apparently broken.
393 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
394 * acconfig.h (USE_INCLUDED_REGEX): Remove.
395 * config.in, configure: Regenerated.
396
397 * configure.in: Move code that provides the --enable-tui option
398 before the "Checks for libraries" section. Polish the code
399 somewhat and set need_curses to yes if we build the TUI. Rewrite
400 code that looks for a library providing termcap functionality to
401 match more closely what's done in the Readline library, and move
402 it into to the "Checks for libraries" section.
403 * configure: Regenerated.
404 * Makefile.in (TERMCAP): Remove variable.
405 * config/i386/go32.mh (TERMCAP): Remove variable.
406
407 2003-01-02 Andrew Cagney <ac131313@redhat.com>
408
409 * MAINTAINERS: Mention gdb_mbuild.sh.
410 * gdb_mbuild.sh: Rewrite.
411
412 2003-01-02 Mark Kettenis <kettenis@gnu.org>
413
414 * configure.in: Fix typo in last change.
415 * config.in, configure: Regenerated.
416
417 2003-01-02 Andrew Cagney <ac131313@redhat.com>
418
419 * valarith.c (value_binop): Delete obsolete code and comments.
420 * configure.host: Ditto.
421 * buildsym.h (make_blockvector): Ditto.
422 * buildsym.c (make_blockvector): Ditto.
423 * defs.h (enum language): Ditto.
424 (chill_demangle): Ditto.
425 * elfread.c (elf_symtab_read): Ditto.
426 * dwarfread.c (CHILL_PRODUCER): Ditto.
427 (set_cu_language): Ditto.
428 (handle_producer): Ditto.
429 * expprint.c (print_subexp): Ditto.
430 * gdbtypes.c (chill_varying_type): Ditto.
431 * gdbtypes.h (builtin_type_chill_bool): Ditto.
432 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
433 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
434 (chill_varying_type): Ditto.
435 * language.h (_LANG_chill): Ditto.
436 * language.c (binop_result_type, integral_type): Ditto.
437 (character_type, string_type, structured_type): Ditto.
438 (lang_bool_type, binop_type_check): Ditto.
439 * stabsread.h (os9k_stabs): Ditto.
440 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
441 (define_symbol, read_type, read_struct_fields): Ditto.
442 (read_array_type, read_enum_type, read_huge_number): Ditto.
443 (read_range_type, start_stabs): Ditto.
444 * symfile.c (init_filename_language_table): Ditto.
445 (add_psymbol_with_dem_name_to_list): Ditto.
446 * symtab.c (symbol_init_language_specific): Ditto.
447 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
448 * symtab.h (struct general_symbol_info): Ditto.
449 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
450 * typeprint.c (typedef_print): Ditto.
451 * utils.c (fprintf_symbol_filtered): Ditto.
452 * valops.c (value_cast, search_struct_field, value_slice): Delete
453 obsolete code.
454 (varying_to_slice): Delete function.
455 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
456 (varying_to_slice): Delete declaration.
457 * MAINTAINERS: Update.
458
459 2003-01-02 Mark Kettenis <kettenis@gnu.org>
460
461 * configure.in: Reorganize "Checks for library functions section"
462 a bit. Remove check for `btowc' and `isascii' functions.
463 * configure: Regenerated.
464
465 * acconfig.h (_MSE_INT_H): Remove.
466 * configure.in: Create "Checks for header files" section, and move
467 appropriate tests there. Don't check for objlist.h, wchar.h,
468 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
469 misdetection fix. Also add "Checks for types", "Checks for
470 compiler characteristics" and "Checks for library functions"
471 sections.
472 * config.in, configure: Regenerated.
473
474 * configure.in: Create "Checks for programs" section, and move
475 appropriate tests there.
476
477 2003-01-01 Mark Kettenis <kettenis@gnu.org>
478
479 * configure.in: Create "Checks for libraries" section, and move
480 appropriate tests there. Cleanup check for wctype in libw. Use
481 AC_SEARCH_LIBS to see whether we need libsocket.
482 * configure: Regenerated.
483
484 2002-12-31 Mark Kettenis <kettenis@gnu.org>
485
486 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
487 * config.in, configure: Regenerated.
488
489 2002-12-31 Mark Kettenis <kettenis@gnu.org>
490
491 * gdb_dirent.h: Cleanup and update code to match the example in
492 the Autoconf manual.
493 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
494 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
495 * configure: Regenerated.
496
497 2002-12-30 Adam Fedor <fedor@gnu.org>
498
499 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
500 (yylex): Initialize c to avoid uninitialized warning.
501
502 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
503
504 * doc/fdl.texi: Revert the last change.
505
506 2002-12-29 Mark Kettenis <kettenis@gnu.org>
507
508 * tracepoint.c (ISATTY): Removed.
509
510 2002-12-26 J. Brobecker <brobecker@gnat.com>
511
512 Continuing work to convert the hppa targets to multiarch partil.
513
514 * hppa-tdep.c: Add some missing forward declarations.
515 (frameless_function_invocation): Prefix the function name
516 by "hppa_" to avoid polluting the namespace. Update all calls
517 to use the new function name.
518 (saved_pc_after_call): Ditto.
519 (init_extra_frame_info): Ditto.
520 (frame_chain): Ditto.
521 (push_dummy_frame): Ditto.
522 (target_read_pc): Ditto.
523 (target_write_pc): Ditto.
524 (in_solib_call_trampoline): Ditto.
525 (in_solib_return_trampoline): Ditto.
526 (skip_trampoline_code): Ditto.
527 (hppa_read_fp): New function, renamed from target_read_fp.
528 (hppa_target_read_fp): New function, using hppa_read_fp.
529 This function conforms to the function profile for the
530 READ_FP gdbarch method.
531 (hppa_extract_struct_value_address): New function, extracted
532 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
533 macro.
534 (hppa_frame_num_args): New function.
535 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
536
537 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
538 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
539 for the switch to multiarch partial.
540 Update some of the macros definitions to match some changes
541 described above in the name of the function they are calling.
542 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
543 not be straightforward to convert. Do now wrap it inside
544 "#if !... #endif" to remember that this macro has still not
545 been taken care of.
546 (FIX_CALL_DUMMY): Likewise.
547
548 2002-12-26 J. Brobecker <brobecker@gnat.com>
549
550 Continuing work to convert the hppa targets to multiarch partial.
551
552 * hppa-tdep.c (hppa_register_raw_size): New function replacing
553 the body of macro REGISTER_RAW_SIZE.
554 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
555 config/pa/tm-hppah.h. These functions will be used to initialize
556 the gdbarch structure.
557 (hppa_hpux_pc_in_sigtramp): New function.
558 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
559 (hppa_hpux_frame_base_before_sigtramp): New function.
560 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
561 Add gdbcore.h #include.
562 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
563 of this gdbarch-eligible macro to a call to the new associated
564 function.
565 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
566 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
567 into a call to the new associated function.
568 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
569 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
570 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
571
572 2002-12-24 David Carlton <carlton@math.stanford.edu>
573
574 * config/sparc/tm-sparc.h: Delete duplicate definition of
575 DEPRECATED_PC_IN_CALL_DUMMY.
576
577 2002-12-24 Kevin Buettner <kevinb@redhat.com>
578
579 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
580 $(gdb_assert_h).
581 * configure.tgt: Recognize mips64*-*-linux*.
582 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
583 (supply_32_bit_reg): New function.
584 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
585 (fill_gregset): Use regcache_collect() instead of
586 deprecated_registers[].
587 (register_addr): Change name to mips_linux_register_addr().
588 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
589 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
590 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
591 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
592 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
593 (MIPS64_LINUX_JB_PC): New defines.
594 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
595 (mips64_elf_fpregset_t): New typedefs.
596 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
597 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
598 (mips64_linux_register_addr, set_mips_linux_register_addr)
599 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
600 (init_register_addr_data)
601 New functions.
602 (fetch_core_registers): Add support for core file formats with 64-bit
603 registers.
604 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
605 (register_addr_data): New static global variable.
606 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
607 gdbarch_register_osabi() for each MIPS machine.
608 * config/mips/linux64.mt: New file.
609 * config/mips/tm-linux64.h: New file.
610
611 2002-12-23 Adam Fedor <fedor@gnu.org>
612
613 * maint.c (maintenance_demangle): Add switch to demangle
614 ObjC language symbols as well.
615
616 2002-12-23 Adam Fedor <fedor@gnu.org>
617
618 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
619 last argument from complaint function call.
620
621 2002-12-23 Kevin Buettner <kevinb@redhat.com>
622
623 * exec.c (print_section_info): Add FIXME comments regarding format
624 string choices.
625
626 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
627
628 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
629 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
630
631 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
632
633 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
634
635 2002-12-23 David Carlton <carlton@math.stanford.edu>
636
637 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
638 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
639 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
640 information associated to a minsym, not lookup_symbol.
641
642 2002-12-21 Mark Kettenis <kettenis@gnu.org>
643
644 * x86-64-tdep.h (x86_64_init_abi): New prototype.
645 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
646 (x86_64_init_abi): Make non-static. Set number of pseudo
647 registers to 0.
648 (x86_64_gdbarch_init): Remove function.
649 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
650 Remove code dealing with dissambly.
651 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
652 (_initialize_x86_64_linux_tdep): New function.
653 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
654 i386-tdep.o.
655
656 2002-12-14 Mark Kettenis <kettenis@gnu.org>
657
658 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
659 (struct gdb_osabi_handler): Remove member `arch'. Add member
660 `arch_info'.
661 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
662 construct a `struct bfd_arch_info' and store it in the `struct
663 gdb_osabi_handler' that is created.
664 (gdbarch_init_osabi): Check for compatibility based on machine
665 type and architecture.
666 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
667 comment.
668 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
669 second argument in call to gdbarch_register_osabi.
670 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
671 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
672 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
673 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
674 * arm-tdep.c (_initialize_arm_tdep): Likewise.
675 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
676 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
677 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
678 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
679 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
680 * i386-tdep.c (_initialize_i386_tdep): Likewise.
681 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
682 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
683 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
684 _initialize_i386bsd_tdep and updated likewise.
685 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
686 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
687 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
688 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
689 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
690 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
691 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
692 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
693 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
694 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
695
696 2002-12-20 Kevin Buettner <kevinb@redhat.com>
697
698 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
699 DT_MIPS_RLD_MAP case for 64-bit targets.
700
701 2002-12-20 Kevin Buettner <kevinb@redhat.com>
702
703 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
704 ``temp_saved_regs'', not the pointer or other storage contiguous
705 to this pointer.
706
707 2002-12-20 Kevin Buettner <kevinb@redhat.com>
708
709 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
710 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
711 (mips_linux_get_longjmp_target): Delete declarations.
712 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
713 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
714 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
715 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
716 (mips_linux_get_longjmp_target)
717 (mips_linux_svr4_fetch_link_map_offsets): Make static.
718 (mips_linux_init_abi): New function.
719 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
720
721 2002-12-19 Keith Seitz <keiths@redhat.com>
722
723 patch committed by Elena Zannoni <ezannoni@redhat.com>
724 * thread.c (do_captured_list_thread_ids): Call prune_threads and
725 target_find_new_threads. Fix for PR mi/669.
726
727 2002-12-19 David Carlton <carlton@math.stanford.edu>
728
729 * linespec.c (decode_line_1): Move code into decode_all_digits.
730 (decode_all_digits): New function.
731
732 2002-12-19 Kevin Buettner <kevinb@redhat.com>
733
734 * exec.c (print_section_info): Select a format string to use with
735 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
736
737 2002-12-18 Andrew Cagney <ac131313@redhat.com>
738
739 * frame.c (deprecated_update_current_frame_pc_hack): Replace
740 deprecated_update_current_frame_pc_hack.
741 (deprecated_update_frame_base_hack): New function.
742 * frame.h (deprecated_update_frame_pc_hack): Replace
743 (deprecated_update_frame_base_hack): Declare.
744 * infrun.c (normal_stop): Update.
745
746 2002-12-18 Andrew Cagney <ac131313@redhat.com>
747
748 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
749 frame_extra_info_zalloc.
750 (rs6000_frame_args_address): Use get_frame_extra_info.
751 (frame_get_saved_regs): Use get_frame_saved_regs.
752 (frame_initial_stack_address): Use get_frame_saved_regs and
753 get_frame_extra_info.
754 (frame_initial_stack_address): Use get_frame_extra_info.
755
756 2002-12-17 Kevin Buettner <kevinb@redhat.com>
757
758 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
759 array size.
760 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
761 checks for r3900_regnames[].
762
763 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
764
765 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
766 All uses changed
767 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
768
769 2002-12-17 David Carlton <carlton@math.stanford.edu>
770
771 * symtab.c (lookup_partial_symbol): Don't search past the end of
772 the partial symbols.
773
774 2002-12-17 Andrew Cagney <ac131313@redhat.com>
775
776 * stack.c (frame_info): Use get_frame_saved_regs.
777 * breakpoint.c (until_break_command): Use get_frame_pc.
778
779 2002-12-16 Kevin Buettner <kevinb@redhat.com>
780
781 * buildsym.c (block_end_complaint, anon_block_end_complaint)
782 (innerblock_complaint, innerblock_anon_complaint)
783 (blockvector_complaint): Delete deprecated complaint structs.
784 (finish_block, make_blockvector, end_symtab): Replace calls
785 to complain() with calls to complaint().
786 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
787 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
788 (unexpected_type_complaint, bad_sclass_complaint)
789 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
790 Delete deprecated complaint structs.
791 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
792 Replace calls to complain() with calls to complaint().
793 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
794 (unknown_symtype_complaint, unknown_symchar_complaint)
795 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
796 (lbrac_mismatch_complaint, repeated_header_complaint)
797 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
798 Delete deprecated complaint structs.
799 (unknown_symtype_complaint, lbrac_mismatch_complaint)
800 (repeated_header_complaint)
801 (function_outside_compiliation_unit_complaint): New functions.
802 (add_old_header_file, find_corresponding_bincl_psymtab)
803 (set_namestring, find_stab_function_addr, read_dbx_symtab)
804 (process_one_symbol): Replace calls to complain() with, possibly
805 indirect, calls to complaint().
806 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
807 (unknown_attribute_form, unknown_attribute_length)
808 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
809 (const_ignored, botched_modified_type, op_deref2, op_deref4)
810 (basereg_not_handled, dup_user_type_allocation)
811 (dup_user_type_definition, missing_tag, bad_array_element_type)
812 (subscript_data_items, unhandled_array_subscript_format)
813 (unknown_array_subscript_format, not_row_major)
814 (missing_at_name): Delete deprecated complaint structs.
815 (bad_die_ref_complaint, unknown_attribute_form_complaint)
816 (dup_user_type_definition_complaint)
817 (bad_array_element_type_complaint): New functions.
818 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
819 (decode_subscript_data_item, dwarf_read_array_type)
820 (read_tag_string_type, read_subroutine_type, read_func_scope)
821 (locval, scan_partial_symbols, decode_modified_type)
822 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
823 (attribute_size): Replace calls to complain() with, possibly
824 indirect, calls to complaint().
825 * elfread.c (section_info_complaint, section_info_dup_complaint)
826 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
827 Delete deprecated complaint structs.
828 (elf_symtab_read, elfstab_offset_sections): Replace calls to
829 complain() with calls to complaint().
830 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
831 struct.
832 (stub_noname_complaint): New function.
833 (check_typedef, add_mangled_type): Replace calls to complain()
834 with calls to complaint().
835 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
836 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
837 (hpread_unhandled_type_complaint, hpread_struct_complaint)
838 (hpread_array_complaint, hpread_type_lookup_complaint)
839 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
840 (hpread_unhandled_common_complaint)
841 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
842 struct definitions and declarations.
843 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
844 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
845 Replace calls to complain() with, possibly indirect, calls to
846 complaint().
847 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
848 Likewise.
849 * mdebugread.c (bad_file_number_complaint, index_complaint)
850 (aux_index_complaint, block_index_complaint)
851 (unknown_ext_complaint, unknown_sym_complaint)
852 (unknown_st_complaint, block_overflow_complaint)
853 (basic_type_complaint, unknown_type_qual_complaint)
854 (array_index_type_complaint, bad_tag_guess_complaint)
855 (block_member_complaint, stEnd_complaint)
856 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
857 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
858 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
859 (bad_continued_complaint, bad_rfd_entry_complaint)
860 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
861 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
862 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
863 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
864 complaint structs.
865 (index_complaint, unknown_ext_complaint, basic_type_complaint)
866 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
867 (unexpected_type_code_complaint)
868 (function_outside_compilation_unit_complaint): New functions.
869 (parse_symbol, parse_type, upgrade_type, parse_procedure)
870 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
871 Replace calls to complain() with, possibly indirect calls to
872 complaint().
873 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
874 Delete deprecated complaint structs.
875 (lookup__objc_class, lookup_child_selector): Replace complain()
876 with complaint().
877 * remote-vx.c (cant_contact_target): Delete deprecated complaint
878 struct.
879 (vx_lookup_symbol): Replace complain() with complaint().
880 * stabsread.c (invalid_cpp_abbrev_complaint)
881 (invalid_cpp_type_complaint, member_fn_complaint)
882 (const_vol_complaint, error_type_complaint)
883 (invalid_member_complaint, range_type_base_complaint)
884 (reg_value_complaint, vtbl_notfound_complaint)
885 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
886 (unresolved_sym_chain_complaint, stabs_general_complaint)
887 (lrs_general_complaint, multiply_defined_struct): Delete
888 deprecated complaint structs.
889 (invalid_cpp_abbrev_complaint, ref_value_complaint)
890 (stabs_general_complaint, lrs_general_complaint)
891 (msg_unknown_complaint): New functions.
892 (dbx_lookup_type, read_cfront_baseclasses)
893 (read_cfront_member_functions, resolve_symbol_reference)
894 (define_symbol, resolve_live_range, add_live_range, read_type)
895 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
896 (read_one_struct_field, read_baseclasses, read_tilde_fields)
897 (read_cfront_static_fields, attach_fields_to_type)
898 (complain_about_struct_wipeout, read_range_type)
899 (common_block_start, common_block_end, cleanup_undefined_types)
900 (scan_file_globals): Replace complain() with complaint().
901 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
902 Delete deprecated complaint struct declarations.
903 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
904 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
905 (bf_not_found_complaint, ef_complaint, eb_complaint)
906 (function_outside_compilation_unit_complaint): New functions.
907 (record_include_begin, record_include_end, enter_line_range)
908 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
909 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
910 complain() with complaint().
911
912 2002-12-16 Andrew Cagney <ac131313@redhat.com>
913
914 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
915 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
916 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
917 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
918 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
919 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
920 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
921 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
922 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
923 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
924 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
925 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
926 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
927 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
928 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
929 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
930 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
931 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
932 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
933 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
934 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
935 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
936 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
937 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
938 * config/m88k/xm-dgux.h: Delete.
939 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
940 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
941 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
942 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
943 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
944 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
945 * ch-valprint.c: Delete.
946
947 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
948
949 * infrun.c (handle_inferior_event): Rearrange code to resume if
950 no catchpoint triggers for an event.
951
952 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
953
954 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
955 and TARGET_WAITKIND_VFORKED cases.
956
957 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
958
959 * infrun.c (handle_inferior_event): Assume that catchpoints
960 are not affected by DECR_PC_AFTER_BREAK.
961
962 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
963
964 * target.c (update_current_target): Don't inherit DONT_USE.
965 * target.h (struct target_ops): Remove DONT_USE.
966 (target_next): Remove macro.
967
968 2002-12-15 Mark Kettenis <kettenis@gnu.org>
969
970 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
971
972 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
973
974 * arm-tdep.c (convert_from_extended): New argument to hold the
975 type of floating point result we want to convert to. Make input
976 argument const. Fix all callers.
977 (convert_to_extended): Similarly.
978 (arm_extract_return_value): Now takes a regcache argument. Change
979 code to use regcache accessor functions. Correctly extract
980 smaller-than-word results on big-endian machines.
981 (arm_store_return_value): Now takes a regcache argument. Change
982 code to use regcache accessor functions. Correctly zero/sign extend
983 smaller than word results before storing into r0.
984 (arm_gdbarch_init): Register new-style extract_return_value and
985 store_return_value functions.
986
987 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
988
989 * thread-db.c (thread_from_lwp): Uniquify error msg.
990 (lwp_from_thread): Ditto.
991 (check_event): Ditto.
992 (find_new_threads_callback): Ditto.
993 (thread_db_pid_to_str): Ditto.
994
995 2002-12-13 Andrew Cagney <ac131313@redhat.com>
996
997 * frame.h (get_frame_saved_regs): Declare.
998 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
999 pointer.
1000 * frame.c (get_frame_saved_regs): New function.
1001 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1002
1003 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1004
1005 * frame.c (deprecated_update_current_frame_pc_hack): New
1006 function.
1007 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1008 * infrun.c (normal_stop): Use said function instead of directly
1009 modifying the frame's PC.
1010
1011 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1012
1013 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1014
1015 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1016
1017 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1018 config/mips/tm-irix6.h (NUM_REGS): Delete.
1019 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1020 (temp_saved_regs): Declare as a pointer rather than an array.
1021 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1022 that ``temp_saved_regs'' has storage allocated to it and that
1023 it's the correct size.
1024
1025 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1026
1027 * defs.h (init_last_source_visited): New prototype.
1028 (add_path): Ditto.
1029 * source.c (add_path): New function that adds to a specified path.
1030 (mod_path): Change to call add_path.
1031 (init_last_source_visited): New function to allow interfaces to
1032 initialize static variable: last_source_visited. Part of fix
1033 for PR gdb/741.
1034 * Makefile.in: Add support for mi/mi-cmd-env.c.
1035
1036 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1037
1038 * frame.h (frame_id_unwind): Declare.
1039 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1040 id_unwind_cache.
1041 (frame_id_unwind_ftype): Declare.
1042 * frame.c (frame_id_unwind): New function.
1043 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1044 (create_new_frame, get_prev_frame): Pass id_unwind to
1045 set_unwind_by_pc.
1046 (frame_saved_regs_id_unwind): New function.
1047 (frame_saved_regs_id_unwind): New function.
1048 * dummy-frame.c (dummy_frame_id_unwind): New function.
1049 (struct dummy_frame): Add field id.
1050 (generic_push_dummy_frame): Initialize `id'.
1051 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1052
1053 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1054
1055 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1056 pass that to set_momentary_breakpoint. Move comments to where they
1057 belong.
1058 * frame.h (set_current_frame): Delete declaration.
1059 * frame.c (set_current_frame): Delete function.
1060
1061 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1062
1063 * frame.c (frame_extra_info_zalloc): New function.
1064 * frame.h (frame_extra_info_zalloc): Declare.
1065
1066 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1067
1068 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1069 in the previous prototype change to set_momentary_breakpoint.
1070
1071 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1072
1073 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1074 and saw_child_exec.
1075 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1076 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1077 (stop_stepping): Remove outdated check for child vfork events.
1078
1079 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1080
1081 * GDB 5.3 released from gdb_5_3-branch.
1082
1083 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * corelow.c (init_core_ops): Delete references to to_require_attach
1086 and to_require_detach.
1087 * exec.c (init_exec_ops): Likewise.
1088 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1089 hppa_require_detach directly.
1090 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1091 * inftarg.c (child_detach): Remove.
1092 (child_detach_from_process): Rename to child_detach, remove
1093 after_fork argument.
1094 (child_attach): Remove.
1095 (child_attach_to_process): Rename to child_attach, remove after_fork
1096 argument.
1097 (init_child_ops): Delete references to to_require_attach
1098 and to_require_detach.
1099 * infttrace.c (hppa_require_attach): Update comment.
1100 * target.c (cleanup_target, update_current_target)
1101 (init_dummy_target, setup_target_debug): Delete references to
1102 to_require_attach and to_require_detach.
1103 (find_default_require_detach, find_default_require_attach)
1104 (debug_to_require_attach, debug_to_require_detach): Remove
1105 functions.
1106 * target.h (struct target_ops): Remove to_require_attach
1107 and to_require_detach.
1108 (target_require_attach, target_require_detach): Delete macros.
1109 (find_default_require_detach, find_default_require_attach): Delete
1110 prototypes.
1111 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1112
1113 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1114
1115 * frame.c (get_frame_extra_info): New function.
1116 * frame.h (get_frame_extra_info): Declare.
1117
1118 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1119
1120 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1121 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1122 with `struct frame_id'.
1123 (set_longjmp_resume_breakpoint): Ditto.
1124 * infrun.c (handle_inferior_event): Update.
1125 * breakpoint.c (watch_command_1, until_break_command): Update.
1126 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1127 (handle_inferior_event, step_over_function): Update.
1128 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1129 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1130 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1131 * infcmd.c (finish_command, run_stack_dummy): Update.
1132
1133 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1134
1135 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1136 (dwarf2_non_const_array_bound_ignored)
1137 (dwarf2_missing_line_number_section)
1138 (dwarf2_statement_list_fits_in_line_number_section)
1139 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1140 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1141 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1142 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1143 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1144 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1145 (dwarf2_missing_member_fn_type_complaint)
1146 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1147 (dwarf2_const_value_length_mismatch)
1148 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1149 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1150 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1151 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1152 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1153 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1154 complaints using deprecated struct..
1155 (dwarf2_non_const_array_bound_ignored_complaint)
1156 (dwarf2_complex_location_expr_complaint)
1157 (dwarf2_unsupported_at_frame_base_complaint)
1158 (dwarf2_const_value_length_mismatch_complaint)
1159 (dwarf2_macros_too_long_complaint)
1160 (dwarf2_macro_malformed_definition_complaint)
1161 (dwarf2_invalid_attrib_class_complaint): New functions.
1162 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1163 (read_structure_scope, read_array_type, read_common_block)
1164 (read_tag_pointer_type, read_base_type, read_partial_die)
1165 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1166 (new_symbol, dwarf2_const_value, read_type_die)
1167 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1168 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1169 complain() with, possibly indirect, calls to complaint().
1170
1171 2002-12-11 Andrew Cagney <cagney@redhat.com>
1172
1173 * frame.c (deprecated_get_frame_saved_regs): Rename
1174 get_frame_saved_regs.
1175 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1176 * sparc-tdep.c: Update.
1177 * hppa-tdep.c: Update.
1178 * h8500-tdep.c: Update.
1179
1180 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1181
1182 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1183 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1184 ``char *'' for return and parameter types.
1185 * gdbarch.h, gdbarch.c: Regenerate.
1186 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1187 return type from ``char *'' to ``const char *''.
1188 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1189 const.
1190
1191 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1192
1193 * i386-tdep.c: Include "dummy-frame.h".
1194 (i386_frame_chain, i386_frame_saved_pc): Replace
1195 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1196 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1197
1198 2002-12-10 Andrew Cagney <cagney@redhat.com>
1199
1200 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1201 Change to a function with predicate.
1202 * gdbarch.h, gdbarch.c: Re-generate.
1203 * frame.c (get_prev_frame): Update. Test
1204 DEPRECATED_INIT_FRAME_PC_P.
1205 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1206 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1207 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1208 * alpha-tdep.c (alpha_gdbarch_init): Update.
1209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1210 * mips-tdep.c (mips_gdbarch_init): Update.
1211 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1212 * arm-tdep.c: Update comments.
1213 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1214 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1215 * frv-tdep.c (frv_gdbarch_init): Ditto.
1216 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1218 * s390-tdep.c (s390_gdbarch_init): Ditto.
1219 * v850-tdep.c (v850_gdbarch_init): Ditto.
1220 * vax-tdep.c (vax_gdbarch_init): Ditto.
1221 * sh-tdep.c (sh_gdbarch_init): Ditto.
1222 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1224 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1226 * i386-tdep.c (i386_gdbarch_init): Ditto.
1227 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1228 * cris-tdep.c (cris_gdbarch_init): Ditto.
1229 * avr-tdep.c (avr_gdbarch_init): Ditto.
1230 * arm-tdep.c (arm_gdbarch_init): Ditto.
1231 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1232 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1233
1234 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1237 CHILD_FOLLOW_FORK.
1238 * hppah-nat.c (saved_vfork_pid): Add.
1239 (child_post_follow_vfork): Remove.
1240 (child_follow_fork): New function.
1241 (child_wait): Call detach_breakpoints after receiving the child vfork.
1242 Call child_resume directly instead of going through resume ().
1243 Make sure we have the exec before reporting the vfork.
1244 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1245 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1246 (follow_fork): New function. Call target_follow_fork.
1247 (follow_inferior_reset_breakpoints): New function broken out from
1248 old follow_inferior_fork.
1249 (resume): Remove hack to follow exec after vfork.
1250 * inftarg.c (child_post_follow_vfork): Remove.
1251 (child_follow_fork): New function.
1252 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1253 * target.c (cleanup_target): Replace to_post_follow_vfork with
1254 to_follow_fork.
1255 (update_current_target): Likewise.
1256 (setup_target_debug): Likewise.
1257 (debug_to_post_follow_vfork): Remove.
1258 (debug_to_follow_fork): New function.
1259 * target.h (struct target_ops): Replace to_post_folow_vfork with
1260 to_follow_fork.
1261 (child_post_follow_vfork): Remove prototype.
1262 (child_follow_fork): Add prototype.
1263 (target_post_follow_vfork): Remove macro.
1264 (target_follow_fork): Add macro.
1265
1266 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1269 (child_post_follow_vfork): Cancel pending exec event if we follow
1270 the parent.
1271 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1272 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1273 event at the following wait call if necessary.
1274 * infrun.c (follow_vfork): Don't follow_exec here.
1275 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1276 case about HP/UX 10.20. Remove code pushed down to
1277 hppah-nat.c:child_wait.
1278 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1279 vfork_in_flight is set.
1280
1281 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1282
1283 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1284 for the parent's fork event.
1285 * infrun.c (handle_inferior_event): Only expect one fork event.
1286 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1287 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1288
1289 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1290
1291 * PROBLEMS: Delete reference to PR gdb/725.
1292
1293 * MAINTAINERS (gdb.c++): Add David Carlton.
1294
1295 2002-12-09 David Carlton <carlton@math.stanford.edu>
1296
1297 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1298 * cli/cli-cmds.c: Ditto.
1299
1300 2002-12-09 Andrew Cagney <cagney@redhat.com>
1301
1302 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1303 function address in <>.
1304 * gdbarch.c: Re-generate.
1305
1306 2002-12-09 David Carlton <carlton@math.stanford.edu>
1307
1308 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1309
1310 2002-12-09 David Carlton <carlton@math.stanford.edu>
1311
1312 * linespec.c (symtab_from_filename): New function.
1313 (decode_line_1): Move code into symtab_from_filename.
1314
1315 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1316
1317 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1318
1319 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1320
1321 * f-valprint.c (info_common_command): Use get_frame_pc.
1322 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1323 * ax-gdb.c (agent_command): Ditto.
1324 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1325 (rs6000_pop_frame): Ditto.
1326 (rs6000_frameless_function_invocation): Ditto.
1327 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1328 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1329 * macroscope.c (default_macro_scope): Ditto.
1330 * stack.c (print_frame_info_base): Ditto.
1331 (print_frame, frame_info, print_frame_label_vars): Ditto.
1332 (return_command, func_command, get_frame_language): Ditto.
1333 * infcmd.c (finish_command): Ditto.
1334 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1335 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1336 (break_at_finish_at_depth_command_1): Ditto.
1337 (break_at_finish_command_1): Ditto.
1338 (until_break_command, get_catch_sals): Ditto.
1339 * blockframe.c (func_frame_chain_valid): Ditto.
1340 (frameless_look_for_prologue): Ditto.
1341 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1342
1343 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1344
1345 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1346 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1347
1348 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1349
1350 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1351 to pure functions.
1352 * gdbarch.h, gdbarch.c: Re-generate.
1353 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1354 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1355
1356 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1357 declaration to a function returning a CORE_ADDR.
1358 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1359 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1360 (init_frame_pc_default): Ditto.
1361 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1362 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1363 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1364 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1365 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1366 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1367
1368 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1369 to init_frame_pc_noop.
1370 (i386_interix_init_frame_pc): Delete function.
1371 * z8k-tdep.c (init_frame_pc): Delete function.
1372 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1373 (INIT_FRAME_PC_FIRST): Ditto.
1374 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1375 (INIT_FRAME_PC_FIRST): Ditto.
1376 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1377 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1378 init_frame_pc_noop.
1379 (INIT_FRAME_PC_FIRST): Convert to an expression.
1380 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1381
1382 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1383
1384 * blockframe.c: Use get_frame_base instead of directly accessing
1385 the `struct frame_info' member frame.
1386 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1387 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1388
1389 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1390
1391 * Makefile.in (readline_h): Define.
1392 (completer.o): Depend on readline_h.
1393 (corelow.o): Ditto.
1394 (event-top.o): Ditto.
1395 (exec.o): Ditto.
1396 (solib.o): Ditto.
1397 (source.o): Ditto.
1398 (symfile.o): Ditto.
1399 (symmisc.o): Ditto.
1400 (top.o): Ditto.
1401 (tracepoint.o): Ditto.
1402 (utils.o): Ditto.
1403 (cli-dump.o): Ditto.
1404 (tui-hooks.o): Ditto.
1405 (tuiWin.o): Ditto.
1406
1407 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1408
1409 More cleanup from import of readline 4.3.
1410 * completer.h (complete_line, readline_line_completion_function):
1411 Update prototypes.
1412 (line_completion_function): Removed, not used outside of completer.c.
1413 * completer.c (readline_line_completion_function,
1414 complete_function, line_completion_function): Use const for first
1415 parameter.
1416 (line_completion_function): Make static.
1417 (filename_completer): filename_completion_function is now called
1418 rl_filename_completion_function
1419 * corelow.c: Include <readline/readline.h>.
1420 * exec.c: Ditto.
1421 * solib.c: Ditto.
1422 * source.c: Ditto.
1423 * symfile.c: Ditto.
1424 * symmisc.c: Ditto.
1425 * top.c (init_main): No need to coerce
1426 readline_line_completion_function anymore.
1427 * cli/cli-dump.c: Include <readline/readline.h>.
1428
1429 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1430
1431 * stack.c (frame_info): Use get_prev_frame.
1432 * blockframe.c (frame_address_in_block): Ditto.
1433 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1434 (rs6000_frameless_function_invocation): Ditto.
1435 (rs6000_frame_saved_pc): Ditto.
1436 (rs6000_frame_chain): Ditto.
1437 * arch-utils.c (init_frame_pc_default): Ditto.
1438
1439 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1440
1441 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1442 Delete redundant definition.
1443
1444 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1445
1446 Import of readline 4.3:
1447 * cli/cli-cmds.c: Include readline/tilde.h.
1448 * cli/cli-setshow.c: Ditto.
1449 * defs.h: Don't declare tilde_expand anymore, since readline
1450 exports it.
1451
1452 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1453
1454 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1455 -Werror on this file.
1456
1457 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1458
1459 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1460 the format name.
1461 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1462 * gdbarch.c: Regenerate.
1463
1464 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1465
1466 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1467 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1468 provide a default value.
1469 * gdbarch.h, gdbarch.c: Regenerate.
1470 * frame.c (get_prev_frame): Update. Check
1471 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1472 * s390-tdep.c (s390_gdbarch_init): Update.
1473 * mips-tdep.c (mips_gdbarch_init): Update.
1474 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1475 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1476 * alpha-tdep.c (alpha_gdbarch_init): Update.
1477
1478 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1479
1480 * ia64-linux-nat.c: Include gdb_string.h.
1481 * alpha-nat.c: Ditto.
1482 * ppc-linux-nat.c: Ditto.
1483 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1484 Update dependencies.
1485
1486 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1487
1488 * gdbthread.h: Include "frame.h".
1489 (struct thread_info): Replace step_frame_address with
1490 step_frame_id.
1491 * inferior.h: Include "frame.h".
1492 (step_frame_id): Replace external variable step_frame_address.
1493 * gdbthread.h (save_infrun_state): Replace step_frame_address
1494 parameter with step_frame_id parameter.
1495 (load_infrun_state): Ditto.
1496 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1497 * infcmd.c (step_frame_id, step_1, step_once): Update.
1498 * thread.c (load_infrun_state, save_infrun_state): Update.
1499 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1500 (handle_inferior_event, step_over_function): Update.
1501 (normal_stop, context_switch, restore_inferior_status): Update.
1502 (struct inferior_status): Replace step_frame_address with
1503 step_frame_id.
1504
1505 2002-12-05 David Carlton <carlton@math.stanford.edu>
1506
1507 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1508 DW_TAG_member as well as a declaration as being a C++ static data
1509 member.
1510 (read_structure_scope): Combine tests for DW_TAG_member and
1511 DW_TAG_variable.
1512
1513 2002-12-05 David Carlton <carlton@math.stanford.edu>
1514
1515 * linespec.c (decode_compound): New function.
1516 (decode_line_1): Move code into decode_compound.
1517
1518 2002-12-05 David Carlton <carlton@math.stanford.edu>
1519
1520 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1521 argument.
1522 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1523 the static block. See PR gdb/804.
1524
1525 2002-12-05 David Carlton <carlton@math.stanford.edu>
1526
1527 * symtab.c (lookup_symbol_aux_block): New function.
1528 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1529
1530 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1531
1532 * gdbarch.sh: Dump the predicate function and macro values.
1533 (read): Print error on standard error.
1534 * gdbarch.c: Regenerate.
1535
1536 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1537
1538 * Makefile.in (mips_tdep_h): Define.
1539 (mips-tdep.o): Add mips_tdep_h to dependency list.
1540 * mips-tdep.h: New file.
1541 * mips-tdep.c (mips-tdep.h): Include.
1542 (enum mips_abi): Move to mips-tdep.h.
1543 (mips_abi): New function.
1544
1545 2002-12-04 David Carlton <carlton@math.stanford.edu>
1546
1547 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1548
1549 2002-12-04 David Carlton <carlton@math.stanford.edu>
1550
1551 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1552 function.
1553 (lookup_symbol_aux_minsyms): New function.
1554
1555 2002-12-04 J. Brobecker <brobecker@gnat.com>
1556
1557 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1558
1559 2002-12-04 J. Brobecker <brobecker@gnat.com>
1560
1561 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1562 which is an obsolete macro name.
1563
1564 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1565
1566 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1567 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1568
1569 2002-12-03 H.J. Lu (hjl@gnu.org)
1570
1571 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1572 (create_breakpoints): Make sure the addr_string field is not
1573 NULL.
1574
1575 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1576
1577 * sparc-nat.c (fetch_inferior_registers)
1578 (store_inferior_registers): Add comment on problem of LWP vs
1579 threads.
1580
1581 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1582 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1583 (lin_lwp_store_registers): Remove.
1584 (init_lin_lwp_ops): Use fetch_inferior_registers
1585 and store_inferior_registers directly.
1586 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1587 (store_inferior_registers): Likewise.
1588 Fix PR gdb/725.
1589
1590 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1591
1592 * frame.h (get_frame_id): Convert to a function.
1593 (null_frame_id, frame_id_p): Declare.
1594 (frame_id_eq, frame_id_inner): Declare.
1595 (frame_id_build): New function.
1596 * frame.c (get_frame_id): Update. Use null_frame_id.
1597 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1598 frame_id_inner.
1599 (null_frame_id, frame_id_p): Define.
1600 (frame_id_eq, frame_id_inner): Define.
1601 (frame_id_build): New function.
1602 * varobj.c (varobj_create): Update.
1603 (varobj_update): Update.
1604 * valops.c (value_assign): Update.
1605 (new_root_variable): Update.
1606 * infrun.c (save_inferior_status): Update.
1607 * breakpoint.c (watch_command_1): Update.
1608
1609 2002-12-03 J. Brobecker <brobecker@gnat.com>
1610
1611 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1612 (SNAP2): Likewise.
1613
1614 2002-12-03 Andrew Cagney <cagney@redhat.com>
1615
1616 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1617 patch.
1618
1619 * PROBLEMS: Mention PR gdb/725.
1620
1621 2002-12-03 Andreas Schwab <schwab@suse.de>
1622
1623 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1624
1625 2002-12-02 Adam Fedor <fedor@gnu.org>
1626 Klee Dienes <kdienes@apple.com>
1627
1628 * objc-lang.c (objc_printstr): Add width arg to match
1629 printstr prototype.
1630 (compare_selectors): Add 'const' to arg types.
1631 (compare_classes): Likewise.
1632 (find_imps): Cast msym pointer to avoid compiler warning.
1633 (print_object_command): Validate the address before
1634 passing it to the print routine.
1635 (find_objc_msgcall_submethod): Change function argument to
1636 return an int.
1637 * objc-lang.h: Add 'extern' to all function declarations.
1638 (value_nsstring): Add declaration.
1639
1640 2002-12-02 J. Brobecker <brobecker@gnat.com>
1641
1642 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1643 Fixes a build failure on HP/UX.
1644
1645 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1646 failure on HP/UX.
1647 (hpread_has_name): Advance declaration to avoid a compilation warning.
1648 (pst_syms_count): Add missing variable type. By change, the compiler
1649 was defaulting to int, which seems a good choice. Fixes a compilation
1650 warning.
1651 (pst_syms_size): Likewise.
1652
1653 2002-12-02 J. Brobecker <brobecker@gnat.com>
1654
1655 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1656 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1657 later to set the proper gdbarch methods depending on the osabi.
1658 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1659
1660 2002-12-02 J. Brobecker <brobecker@gnat.com>
1661
1662 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1663 * osabi.c (gdb_osabi_name): Add strings images for the two new
1664 enum values.
1665 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1666
1667 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1668
1669 * MAINTAINERS (Java): Global maintainers are responible for Java.
1670 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1671 part Java maintainers.
1672
1673 2002-12-02 J. Brobecker <brobecker@gnat.com>
1674
1675 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1676 Fixes a compilation failure on AiX.
1677
1678 2002-12-02 J. Brobecker <brobecker@gnat.com>
1679
1680 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1681 why aix-thread.o is not listed.
1682
1683 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1684
1685 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1686 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1687 * gdbarch.h, gdbarch.c: Re-generate.
1688 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1689 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1690 * config/pa/tm-hppa.h, frame.h: Update.
1691 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1692 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1693 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1694 * cris-tdep.c, alpha-tdep.c: Update.
1695 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1696 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1697 (get_prev_frame): Ditto.
1698
1699 2002-11-30 Andrew Cagney <cagney@redhat.com>
1700
1701 * exec.c (xfer_memory): Replace boolean with int.
1702 * p-exp.y: Use 0 instead of false.
1703 * corelow.c (gdb_check_format): Change return type to int from
1704 boolean.
1705 * utils.c: Don't include <curses.h> or <term.h> first.
1706
1707 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1708
1709 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1710 (m68hc11_register_byte): Remove.
1711 (m68hc11_gdbarch_init): Don't set the above.
1712
1713 2002-11-29 Andrew Cagney <cagney@redhat.com>
1714
1715 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1716 by calling get_selected_frame.
1717 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1718 set_current_frame, create_new_frame, select_frame and
1719 get_current_frame.
1720 * remote-e7000.c (e7000_start_remote): Ditto.
1721 * remote-mips.c (common_open): Ditto
1722 * remote-rdp.c (remote_rdp_open): Ditto.
1723
1724 2002-11-29 Andreas Schwab <schwab@suse.de>
1725
1726 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1727 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1728 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1729 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1730 read_memory_unsigned_integer instead of read_memory_integer when
1731 dealing with addresses and instruction opcodes.
1732 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1733 (m68k_linux_frame_saved_pc): Likewise.
1734
1735 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1736
1737 * stack.c (selected_frame, select_frame): Move from here ...
1738 * frame.c (selected_frame, select_frame): ... to here. Include
1739 "language.h".
1740 * Makefile.in (frame.o): Update dependencies.
1741 * frame.c (get_selected_frame): New function.
1742 * frame.h (get_selected_frame): Declare.
1743 (deprecated_selected_frame): Rename selected_frame.
1744 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1745 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1746 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1747 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1748 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1749 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1750 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1751 * z8k-tdep.c, cli/cli-cmds.c: Update.
1752
1753 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1754
1755 * frame.h (get_selected_block): Add comments.
1756
1757 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1758
1759 * frame.c (pc_notcurrent): New function.
1760 (find_frame_sal): New function.
1761 * frame.h (find_frame_sal): Declare.
1762 (struct symtab_and_line): Add opaque declaration.
1763 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1764 find_pc_line.
1765 (frame_info): Ditto.
1766 * ada-lang.c (find_printable_frame): Ditto.
1767
1768 2002-11-28 J. Brobecker <brobecker@gnat.com>
1769
1770 * configure.in: Check that the pthdebug library is recent enough
1771 before enabling thread support on native AiX.
1772 * configure: Regenerate.
1773
1774 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1775 from the list of object files as it is now appended by configure
1776 if thread support is enabled.
1777 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1778 if thread support is enabled.
1779
1780 2002-11-28 Andrew Cagney <cagney@redhat.com>
1781
1782 * stack.c (get_selected_block): In-line get_current_block.
1783 * frame.h (get_current_block): Delete declaration.
1784 * blockframe.c (get_current_block): Delete function.
1785
1786 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1787
1788 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1789 USE_GENERIC_DUMMY_FRAMES.
1790 * gdbarch.h, gdbarch.c: Regenerate.
1791 * valops.c, frame.c: Update.
1792 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1793 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1794 * config/pa/tm-hppa.h, blockframe.c: Update.
1795 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1796 * m68k-tdep.c, alpha-tdep.c: Ditto.
1797
1798 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1799 * mips-tdep.c: Ditto.
1800
1801 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1802
1803 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1804 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1805 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1806 * gdbarch.c, gdbarch.h: Re-generate.
1807 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1808 (CALL_DUMMY_LOCATION): Delete macro definition.
1809 (PC_IN_CALL_DUMMY): Delete macro definitions.
1810
1811 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1812 default is already generic_pc_in_call_dummy.
1813 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1814 * v850-tdep.c (v850_gdbarch_init): Ditto.
1815 * sh-tdep.c (sh_gdbarch_init): Ditto.
1816 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1817 * mips-tdep.c (mips_gdbarch_init): Ditto.
1818 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1820 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1821 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1822 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1823 * avr-tdep.c (avr_gdbarch_init): Ditto.
1824
1825 * arm-tdep.c (arm_gdbarch_init): Do not set
1826 use_generic_dummy_frames, default is already 1.
1827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1828 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1829 * v850-tdep.c (v850_gdbarch_init): Ditto.
1830 * sh-tdep.c (sh_gdbarch_init): Ditto.
1831 * s390-tdep.c (s390_gdbarch_init): Ditto.
1832 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1833 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1834 * mips-tdep.c (mips_gdbarch_init): Ditto.
1835 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1837 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1838 * i386-tdep.c (i386_gdbarch_init): Ditto.
1839 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1840 * frv-tdep.c (frv_gdbarch_init): Ditto.
1841 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1842 * cris-tdep.c (cris_gdbarch_init): Ditto.
1843 * avr-tdep.c (avr_gdbarch_init): Ditto.
1844
1845 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1846 call_dummy_location, default is already AT_ENTRY_POINT.
1847 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1848 * v850-tdep.c (v850_gdbarch_init): Ditto.
1849 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1850 * sh-tdep.c (sh_gdbarch_init): Ditto.
1851 * s390-tdep.c (s390_gdbarch_init): Ditto.
1852 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1853 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1854 * mips-tdep.c (mips_gdbarch_init): Ditto.
1855 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1857 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1858 * i386-tdep.c (i386_gdbarch_init): Ditto.
1859 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1860 * frv-tdep.c (frv_gdbarch_init): Ditto.
1861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1862 * cris-tdep.c (cris_gdbarch_init): Ditto.
1863 * avr-tdep.c (avr_gdbarch_init): Ditto.
1864 * arm-tdep.c (arm_gdbarch_init): Ditto.
1865 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1866
1867 2002-11-28 Andrew Cagney <cagney@redhat.com>
1868
1869 * frame.h: Update comments on set_current_frame, create_new_frame,
1870 flush_cached_frames, reinit_frame_cache, select_frame and
1871 selected_frame.
1872
1873 2002-11-27 Andrew Cagney <cagney@redhat.com>
1874
1875 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1876 deprecated pc_in_call_dummy function.
1877 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1878 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1879 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1880 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1881 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1882
1883 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1884
1885 * Makefile.in: Remove Tix dependencies.
1886 * acinclude.m4: Ditto.
1887 * aclocal.m4: Ditto.
1888 * configure.in: Ditto.
1889 * configure: Regenerated.
1890
1891 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1892
1893 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1894 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1895 * gdbarch.c: Re-generate.
1896
1897 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1898
1899 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1900 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1901 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1902 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1903 pc_in_call_dummy_at_entry_point.
1904 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1905 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1906 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1907 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1908 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1909 pc_in_call_dummy_on_stack.
1910 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1911 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1912 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1913 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1914 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1915
1916 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1917
1918 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1919 pc_in_call_dummy_before_text_end
1920 (deprecated_pc_in_call_dummy_after_text_end): Rename
1921 pc_in_call_dummy_after_text_end.
1922 (deprecated_pc_in_call_dummy_on_stack): Rename
1923 pc_in_call_dummy_on_stack.
1924 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1925 pc_in_call_dummy_at_entry_point.
1926 * m68k-tdep.c (m68k_gdbarch_init): Update.
1927 * s390-tdep.c (s390_gdbarch_init): Update.
1928 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1929 * vax-tdep.c (vax_gdbarch_init): Update.
1930 * sparc-tdep.c (sparc_gdbarch_init): Update.
1931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1933 * i386-tdep.c (i386_gdbarch_init): Update.
1934 * frv-tdep.c (frv_gdbarch_init): Update.
1935 * cris-tdep.c (cris_gdbarch_init): Update.
1936 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1937 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1938 (deprecated_pc_in_call_dummy_after_text_end)
1939 (deprecated_pc_in_call_dummy_on_stack)
1940 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1941 * alpha-tdep.c (alpha_gdbarch_init): Update.
1942
1943 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1944
1945 * acconfig.h (HAVE_PREAD64): Add.
1946 * configure.in: Check for pread64.
1947 * config.in: Regenerated.
1948 * configure: Regenerated.
1949 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1950 * linux-proc.c (linux_proc_xfer_memory): New function.
1951 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1952
1953 2002-11-25 David Carlton <carlton@math.stanford.edu>
1954
1955 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1956 pdi's with no name.
1957
1958 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1959
1960 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1961 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1962
1963 2002-11-25 Jim Blandy <jimb@redhat.com>
1964
1965 * symfile.c (init_objfile_sect_indices): New function.
1966 (default_symfile_offsets): Move the section-index-initializing
1967 stuff into init_objfile_sect_indices, and call that.
1968
1969 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1970 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1971
1972 * symfile.c (syms_from_objfile): Adjust indentation.
1973
1974 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1975 || info_verbose isn't true.
1976
1977 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1978
1979 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1980 default to get_frame_base.
1981 * gdbarch.h, gdbarch.c: Regenerate.
1982 * arch-utils.c (default_frame_address): Delete function.
1983 * arch-utils.h (default_frame_address): Delete declaration
1984
1985 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1986
1987 * varobj.c (find_frame_addr_in_frame_chain):
1988 Use get_frame_base instead of FRAME_FP,
1989 obvious fix.
1990
1991 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1992
1993 * frame.h (FRAME_FP): Delete macro.
1994 (get_frame_base): New function declaration.
1995 * frame.c (get_frame_base): New function.
1996 (get_frame_id): Use ->frame.
1997 (frame_find_by_id): Rewrite to use get_frame_id.
1998 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1999 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2000 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2001 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2002 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2003 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2004 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2005
2006 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2007
2008 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2009
2010 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2011
2012 * frame.c (set_unwind_by_pc): Revert change below, use
2013 PC_IN_CALL_DUMMY.
2014 (get_prev_frame): Ditto.
2015
2016 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2017
2018 * dummy-frame.c (pc_in_dummy_frame): New function.
2019 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2020 (find_dummy_frame): Update comment.
2021 (generic_pop_current_frame): Use get_frame_type.
2022 * dummy-frame.h (pc_in_dummy_frame): Declare.
2023 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2024 (create_new_frame): Use pc_in_dummy_frame.
2025 (get_prev_frame): Use pc_in_dummy_frame.
2026 (frame_saved_regs_register_unwind): Use get_prev_frame.
2027 (deprecated_generic_get_saved_register): Use get_prev_frame.
2028
2029 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2030
2031 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2032 from here ...
2033 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2034 (varobj_create): Note that frame ID should be used.
2035 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2036
2037 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2038
2039 * breakpoint.c: Include "gdb_assert.h".
2040 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2041 not being used.
2042 * Makefile.in (breakpoint.o): Update dependencies.
2043 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2044 deprecated_frame_in_dummy.
2045 * stack.c (print_frame_info_base): Ditto.
2046 (frame_info): Ditto.
2047 (print_frame_info_base): Ditto. Delete dead code.
2048
2049 2002-11-23 Andreas Schwab <schwab@suse.de>
2050
2051 * Makefile.in (m68k_tdep_h): Define.
2052 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2053 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2054 * m68k-tdep.c: Move register number enum ...
2055 * m68k-tdep.h: ... to this new file and rename the constants from
2056 E_* to M68K_*. All uses changed.
2057 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2058 * abug-rom.c: Include "m68k-tdep.h". Use
2059 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2060 * cpu32bug-rom.c: Likewise.
2061 * dbug-rom.c: Likewise.
2062 * m68k-tdep.c: Likewise.
2063 * m68klinux-nat.c: Likewise.
2064 * remote-est.c: Likewise.
2065 * rom68k-rom.c: Likewise.
2066 * config/m68k/tm-linux.h: Likewise.
2067
2068 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2069
2070 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2071 dummy frame initialization code.
2072 * mips-tdep.c (mips_gdbarch_init): Ditto.
2073
2074 2002-11-22 Christopher Faylor <cgf@redhat.com>
2075
2076 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2077 attach will hang.
2078
2079 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2080
2081 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2082 to default_frame_address.
2083 * gdbarch.h, gdbarch.c: Re-generate.
2084
2085 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2086 or frame_locals_address to default_frame_address.
2087 * m68k-tdep.c (m68k_gdbarch_init): Update.
2088 * i386-tdep.c (i386_gdbarch_init): Update.
2089 * frv-tdep.c (frv_gdbarch_init): Update.
2090 * sh-tdep.c (sh_gdbarch_init): Update.
2091 * v850-tdep.c (v850_gdbarch_init): Update.
2092 * sparc-tdep.c (sparc_gdbarch_init): Update.
2093 * mips-tdep.c (mips_gdbarch_init): Update.
2094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2095 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2097
2098 * cris-tdep.c (cris_frame_args_address): Delete function.
2099 (cris_frame_locals_address): Delete function.
2100 (cris_gdbarch_init): Do not set frame_args_address or
2101 frame_locals_address.
2102
2103 2002-11-22 Michael Snyder <msnyder@redhat.com>
2104
2105 * thread-db.c (thread_db_load): Tell the user what's going on
2106 if dlopen fails on libthread_db.
2107
2108 2002-11-23 Andreas Schwab <schwab@suse.de>
2109
2110 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2111 invariant return values.
2112
2113 2002-11-22 Andreas Schwab <schwab@suse.de>
2114
2115 * valops.c (value_slice): Move declaration of `offset' to avoid
2116 warning.
2117
2118 2002-11-22 Christopher Faylor <cgf@redhat.com>
2119
2120 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2121 (struct so_stuff): Add end_addr field.
2122 (register_loaded_dll): Calculate and store end address of loaded dll.
2123 (solib_address): New function.
2124 (child_solib_loaded_library_pathname): Pass carefully constructed
2125 section info to safe_symbol_file_add rather than ignoring it.
2126 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2127 DLL is loaded.
2128 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2129 (child_create_inferior): Fix a compiler warning.
2130 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2131 (solib_address): Declare new function.
2132
2133 2002-11-22 Andreas Schwab <schwab@suse.de>
2134
2135 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2136 and FPS registers.
2137
2138 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2139
2140 * maint.c (_initialize_maint_cmds): Fix typo. From
2141 Francesco Potorti` <pot@gnu.org>.
2142
2143 2002-11-21 Andrew Cagney <cagney@redhat.com>
2144
2145 * mips-tdep.c (mips_dump_tdep): Delete references to
2146 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2147 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2148 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2149 * printcmd.c (build_address_symbolic): Delete calls to
2150 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2151 (address_info): Ditto.
2152 Fix PR gdb/773.
2153
2154 2002-11-19 Klee Dienes <kdienes@apple.com>
2155 Adam Fedor <fedor@gnu.org>
2156
2157 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2158 the ability to explicitly specify the quote characters and word
2159 break characters; if NULL is specified for either, use the old
2160 behavior of using the characters used by the completer.
2161 (skip_chars): New function. Convenience wrapper around
2162 skip_quoted_chars to provide the original skip_chars behavior.
2163 * completer.h (skip_quoted_chars): Add prototype.
2164
2165 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2166
2167 Problems reported by Paul Eggert.
2168 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2169
2170 2002-11-19 Andreas Schwab <schwab@suse.de>
2171
2172 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2173 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2174 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2175 (m68k_linux_frame_saved_pc): Move to ...
2176 * m68klinux-tdep.c: ... here. New file.
2177 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2178 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2179
2180 2002-11-19 Adam Fedor <fedor@gnu.org>
2181
2182 * objc-exp.y: Revert to old skip_quoted usage.
2183
2184 2002-11-19 Adam Fedor <fedor@gnu.org>
2185
2186 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2187 (objc_lang_h): Define.
2188 (YYFILES): Add objc-exp.tab.c.
2189 (local-maintainer-clean): Remove objc-exp.tab.c.
2190 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2191
2192 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2193
2194 * p-exp.y (typecast rule): Add automatic dereference of
2195 pascal classes if needed.
2196 (THIS): Set current_type.
2197 Automatically dereference pascal classes.
2198 (typebase rule): Add ^typebase recognition.
2199
2200 2002-11-18 Adam Fedor <fedor@gnu.org>
2201
2202 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2203 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2204 (op_name): Handle OP_OBJC_SELF.
2205 * Makefile.in (expprint.o): Add additional depends.
2206
2207 2002-11-18 Adam Fedor <fedor@gnu.org>
2208
2209 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2210 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2211 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2212 * objc-exp.y: Likewise.
2213
2214 2002-11-18 Adam Fedor <fedor@gnu.org>
2215
2216 * gdb/parser-defs.h: (struct objc_class_str): New structure
2217 for parsing ObjC classes.
2218
2219 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2220
2221 * stack.c (frame_relative_level): Copy function from here ...
2222 * frame.c (frame_relative_level): ...to here.
2223
2224 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2225
2226 * frame.h (enum frame_type): Define.
2227 (get_frame_type): Declare.
2228 (struct frame_info): Add field `type'. Delete field
2229 signal_handler_caller.
2230 (deprecated_set_frame_signal_handler_caller): Declare.
2231 * frame.c (get_frame_type): New function.
2232 (deprecated_set_frame_type): New function.
2233 (create_new_frame): Set the frame's type.
2234 (get_prev_frame): Similar.
2235 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2236 * s390-tdep.c: Ditto.
2237 * m68klinux-nat.c: Ditto.
2238 * ns32k-tdep.c: Ditto.
2239 * x86-64-linux-tdep.c: Ditto.
2240 * vax-tdep.c: Ditto.
2241 * rs6000-tdep.c: Ditto.
2242 * ppc-linux-tdep.c: Ditto.
2243 * i386-interix-tdep.c: Ditto.
2244 * mips-tdep.c: Ditto.
2245 * m68k-tdep.c: Ditto.
2246 * hppa-tdep.c: Ditto.
2247 * ia64-tdep.c: Ditto.
2248 * cris-tdep.c: Ditto.
2249 * arm-tdep.c: Ditto.
2250 * alpha-tdep.c: Ditto.
2251 * i386-tdep.c: Ditto.
2252 * stack.c: Ditto.
2253 * ada-lang.c: Ditto.
2254 * blockframe.c: Update.
2255 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2256 deprecated_set_frame_type instead of signal_handler_caller.
2257 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2258 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2259 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2260
2261 2002-11-18 Klee Dienes <kdienes@apple.com>
2262
2263 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2264
2265 2002-11-18 Klee Dienes <kdienes@apple.com>
2266
2267 * buildsym.c (pop_context): Add comment.
2268
2269 2002-11-18 Klee Dienes <kdienes@apple.com>
2270
2271 * buildsym.h (pop_context): Convert to function, defined in
2272 buildsym.c.
2273 * buildsym.c: Include gdb_assert.h.
2274 (pop_context): Implement as C function. Add check for stack
2275 underflow.
2276 * dbxread.c (process_one_symbol): Complain and stop processing
2277 that symbol if we are already at the top of the context stack for
2278 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2279 when processing N_RBRAC.
2280
2281 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2282
2283 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2284 define.
2285 (struct target_waitstatus): Add opaque definition.
2286 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2287 * exec.c (init_exec_ops): Likewise.
2288 * fork-child.c (clone_and_follow_inferior): Remove.
2289 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2290 * inferior.h (clone_and_follow_inferior): Remove prototype.
2291 * infrun.c (follow_fork_mode_both): Remove.
2292 (follow_fork_mode_kind_names): Remove commented out "both".
2293 (follow_inferior_fork): Remove follow_fork_mode_both support.
2294 * inftarg.c (child_clone_and_follow_inferior): Remove.
2295 (child_post_follow_inferior_by_clone): Remove.
2296 (init_child_ops): Don't set to_clone_and_follow_inferior
2297 or to_post_follow_inferior_by_clone.
2298 * target.c (default_clone_and_follow_inferior): Remove.
2299 (cleanup_target): Don't set to_clone_and_follow_inferior
2300 or to_post_follow_inferior_by_clone.
2301 (find_default_clone_and_follow_inferior): Remove.
2302 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2303 (debug_to_clone_and_follow_inferior): Remove.
2304 (debug_to_post_follow_inferior_by_clone): Remove.
2305 (setup_target_debug): Don't set to_clone_and_follow_inferior
2306 or to_post_follow_inferior_by_clone.
2307 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2308 and to_post_follow_inferior_by_clone.
2309 (child_clone_and_follow_inferior): Remove prototype.
2310 (child_post_follow_inferior_by_clone): Remove prototype.
2311 (target_clone_and_follow_inferior): Remove macro.
2312 (target_post_follow_inferior_by_clone): Remove macro.
2313 (find_default_clone_and_follow_inferior): Remove prototype.
2314
2315 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2316
2317 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2318 inferior_has_vforked, and inferior_has_execd instead of
2319 target_has_forked, target_has_vforked, and target_has_execd.
2320 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2321 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2322 (CHILD_WAIT): Define.
2323 (child_wait): Add prototype.
2324 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2325 Add prototype.
2326 (hpux_has_vforked): Likewise, from child_has_vforked.
2327 (hpux_has_execd): Likewise, from child_has_execd.
2328 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2329 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2330 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2331 and hpux_has_syscall_event instead of the target hooks.
2332 * infrun.c (inferior_has_forked, inferior_has_vforked)
2333 (inferior_has_execd): New functions.
2334 * inftarg.c (not_same_real_pid): Remove.
2335 (child_wait): Remove references to not_same_real_pid,
2336 target_has_forked, target_has_vforked, target_has_execd,
2337 and target_has_syscall_event.
2338 (child_has_forked, child_has_vforked, child_has_execd)
2339 (child_has_syscall_event): Remove.
2340 (init_child_ops): Remove references to child_has_forked,
2341 child_has_vforked, child_has_execd, and child_has_syscall_event.
2342 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2343 (hpux_has_vforked): Likewise, from child_has_vforked.
2344 (hpux_has_execd): Likewise, from child_has_execd.
2345 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2346 * target.c (cleanup_target): Remove references to
2347 to_has_forked, to_has_vforked, to_has_execd, and
2348 to_has_syscall_event.
2349 (update_current_target): Likewise.
2350 (setup_target_debug): Likewise.
2351 (debug_to_has_forked): Remove.
2352 (debug_to_has_vforked): Remove.
2353 (debug_to_has_execd): Remove.
2354 (debug_to_has_syscall_event): Remove.
2355 * target.h (struct target_ops): Remove to_has_forked.
2356 to_has_vforked, to_has_execd, and to_has_syscall_event.
2357 (child_has_forked, child_has_vforked, child_has_execd)
2358 (child_has_syscall_event): Remove prototypes.
2359 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2360 prototypes.
2361 (target_has_forked, target_has_vforked, target_has_execd)
2362 (target_has_syscall_event): Remove macros.
2363
2364 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2365
2366 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2367 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2368 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2369 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2370 * target.c (cleanup_target): Remove reference to
2371 to_can_follow_vfork_prior_to_exec.
2372 (update_current_target): Likewise.
2373 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2374 (setup_target_debug): Remove reference to
2375 to_can_follow_vfork_prior_to_exec.
2376 * target.h (struct target_ops): Remove
2377 to_can_follow_vfork_prior_to_exec.
2378 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2379 (target_can_follow_vfork_prior_to_exec): Remove definition.
2380 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2381 define.
2382 * infrun.c (follow_vfork_when_exec): Remove.
2383 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2384 (follow_exec): Likewise.
2385 (handle_inferior_event): Likewise.
2386 (keep_going): Likewise.
2387
2388 2002-11-15 Andrew Cagney <cagney@redhat.com>
2389
2390 * frame.c (generic_unwind_get_saved_register): Make static.
2391 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2392 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2393 defaults to generic_unwind_get_saved_register.
2394 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2395 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2396 * frv-tdep.c (frv_gdbarch_init): Ditto.
2397 * i386-tdep.c (i386_gdbarch_init): Ditto.
2398 * s390-tdep.c (s390_gdbarch_init): Ditto.
2399 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2400 * v850-tdep.c (v850_gdbarch_init): Ditto.
2401 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2402 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2403 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2404
2405 2002-11-15 Andrew Cagney <cagney@redhat.com>
2406
2407 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2408 i386-tdep.c.
2409
2410 2002-11-15 Andrew Cagney <cagney@redhat.com>
2411
2412 * frame.h (sigtramp_saved_pc): Delete declaration.
2413 * blockframe.c (sigtramp_saved_pc): Delete function.
2414 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2415 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2416 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2417 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2418
2419 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2420
2421 * frame.c (frame_pc_unwind): New function.
2422 (frame_saved_regs_pc_unwind): New function.
2423 (frame_register_unwind): Pass unwind_cache instead of
2424 register_unwind_cache.
2425 (set_unwind_by_pc): Add unwind_pc parameter, set.
2426 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2427 (get_prev_frame): Ditto.
2428 * frame.h (frame_pc_unwind_ftype): Declare.
2429 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2430 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2431 (frame_pc_unwind): Declare.
2432 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2433 (struct dummy_frame): Add comment mentioning that values are for
2434 previous frame.
2435 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2436 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2437 (generic_file_frame_chain_valid): Ditto.
2438 * stack.c (frame_info): Ditto.
2439
2440 2002-11-15 David Carlton <carlton@math.stanford.edu>
2441
2442 * linespec.c (locate_first_half): New function.
2443 (decode_line_1): Move code into locate_first_half.
2444
2445 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2446
2447 * complaints.h: Add comment explaining how to eliminate a
2448 deprecated_complain call.
2449 * complaints.h: Fix spelling errors.
2450
2451 2002-11-15 David Carlton <carlton@math.stanford.edu>
2452
2453 * printcmd.c: Remove #include "disasm.h".
2454
2455 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2456
2457 * frame.h: Move the most relevant interface functions to the start
2458 of the file.
2459
2460 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2461
2462 * regcache.h (deprecated_registers): Rename registers.
2463 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2464 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2465 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2466 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2467 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2468 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2469 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2470 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2471 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2472 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2473 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2474 * v850ice.c: Update.
2475
2476 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2477
2478 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2479 NULL buffer.
2480
2481 2002-11-13 Andrew Cagney <cagney@redhat.com>
2482
2483 * regcache.h (deprecated_read_register_bytes): Rename
2484 read_register_bytes.
2485 (deprecated_write_register_bytes): Rename write_register_bytes.
2486 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2487 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2488 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2489 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2490 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2491 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2492 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2493 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2494 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2495 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2496 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2497 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2498 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2499 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2500
2501 2002-11-13 Jim Blandy <jimb@redhat.com>
2502
2503 * findvar.c (read_var_value): Doc fix.
2504
2505 2002-11-13 Andrew Cagney <cagney@redhat.com>
2506
2507 * regcache.c (struct regcache): Replace passthough_p with
2508 readonly_p.
2509 (regcache_xmalloc): Initialize readonly_p.
2510 (build_regcache): Initialize readonly_p.
2511 (regcache_save): New function.
2512 (regcache_restore): New function.
2513 (regcache_cpy): Re-implement using regcache_save and
2514 regcache_restore.
2515 (regcache_raw_read): Update.
2516 (regcache_cooked_read): When a read-only cache, checked for cached
2517 pseudo register values.
2518 (regcache_raw_write): Assert that the cache is not read-only.
2519 Remove code handling a non-passthrough cache.
2520 * regcache.h (regcache_save): Declare.
2521 (regcache_restore): Declare.
2522
2523 2002-11-13 Andrew Cagney <cagney@redhat.com>
2524
2525 * regcache.c (struct regcache_descr): Add fields
2526 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2527 (init_legacy_regcache_descr): Compute the size of a cooked
2528 register cache and then assign that to sizeof_raw_registers. Set
2529 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2530 (init_legacy_regcache_descr): Ditto.
2531
2532 2002-11-13 Andrew Cagney <cagney@redhat.com>
2533
2534 * regcache.c (register_buffer): Move to near start of file, update
2535 description.
2536 (regcache_raw_read): Use.
2537 (regcache_raw_write): Use.
2538 (struct regcache): Rename raw_registers to registers and
2539 raw_register_valid_p to register_valid_p.
2540 (regcache_xmalloc): Update.
2541 (regcache_xfree): Update.
2542 (register_buffer): Update.
2543 (regcache_cpy): Update.
2544 (regcache_cpy_no_passthrough): Update.
2545 (regcache_valid_p): Update.
2546 (deprecated_grub_regcache_for_registers): Update.
2547 (deprecated_grub_regcache_for_register_valid): Update.
2548 (set_register_cached): Update.
2549 (regcache_raw_write): Update.
2550
2551 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2552
2553 * p-exp.y (name_not_typename): Use copy_name to
2554 set current_type variable for fields of THIS.
2555
2556 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2557
2558 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2559 * monitor.c (init_base_monitor_ops): Likewise.
2560 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2561 * remote-array.c (init_array_ops): Likewise.
2562 * remote-e7000.c (init_e7000_ops): Likewise.
2563 * remote-es.c (init_es1800_ops): Likewise.
2564 (init_es1800_child_ops): Likewise.
2565 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2566 * remote-sim.c (init_gdbsim_ops): Likewise.
2567 * remote-st.c (init_st2000_ops): Likewise.
2568 * sol-thread.c (init_sol_core_ops): Likewise.
2569 (init_sol_thread_ops): Likewise.
2570 * v850ice.c (init_850ice_ops): Likewise.
2571 * win32-nat.c (init_child_ops): Likewise.
2572 * wince.c (init_child_ops): Likewise.
2573
2574 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2575
2576 * utils.c (gdb_realpath): Make rp a constant pointer.
2577
2578 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2579
2580 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2581 a constant buffer; cannonicalize_file_name(); realpath() with a
2582 pathconf() defined buffer, xstrdup().
2583
2584 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2585
2586 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2587 to hang2.C; hang3.c to hang3.C.
2588
2589 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2590
2591 * findvar.c (read_var_value): Reenable TLS code.
2592
2593 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2594 Jim Blandy <jimb@redhat.com>
2595
2596 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2597 * target.c (update_current_target): Add
2598 to_get_thread_local_address.
2599 * target.h (to_get_thread_local_address): Export.
2600 (target_get_thread_local_address): Define.
2601 (target_get_thread_local_address_p): Define.
2602 * thread-db.c: Include solib-svr4.h.
2603 (td_thr_tls_get_addr_p): Define.
2604 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2605 (thread_db_get_thread_local_address): New function.
2606 (init_thread_db_ops): Initialize to_get_thread_local_address.
2607 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2608 * configure: Regenerate.
2609 * config.in: Regenerate.
2610
2611 2002-11-11 David Carlton <carlton@math.stanford.edu>
2612
2613 * linespec.c (set_flags): New function.
2614 (decode_line_1): Move code into set_flags.
2615
2616 2002-11-11 David Carlton <carlton@math.stanford.edu>
2617
2618 * linespec.c (decode_line_1): Move chunks of code to separate
2619 functions.
2620 (initialize_defaults): New function.
2621 (decode_indirect): New function.
2622
2623 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2624
2625 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2626 instead of void_code_ptr.
2627 (sigtramp_saved_pc): Ditto.
2628
2629 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2630 i386_fp_regnum_p.
2631
2632 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * gdbtypes.h (struct main_type): Move artificial flag out of
2635 loc. New member of ``struct field'' named static_kind. Reduce
2636 overloaded meaning of bitsize.
2637 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2638 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2639 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2640
2641 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2642 new fields.
2643 (template_to_fixed_record_type, template_to_static_fixed_type)
2644 (to_record_with_fixed_variant_part): Likewise.
2645 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2646 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2647 * dwarfread.c (struct_type, enum_type): Likewise.
2648 * hpread.c (hpread_read_enum_type)
2649 (hpread_read_function_type, hpread_read_doc_function_type)
2650 (hpread_read_struct_type): Likewise.
2651 * mdebugread.c (parse_symbol): Likewise.
2652
2653 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2654
2655 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2656 * stack.c (print_frame_info_base): Update.
2657 (print_frame_info_base, frame_info): Update.
2658 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2659 (sparc_frame_saved_pc): Update.
2660 * ada-lang.c (find_printable_frame): Update.
2661 * breakpoint.c (deprecated_frame_in_dummy): Update.
2662
2663 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2664
2665 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2666 defined.
2667 (regmap): Extend to cover all registers.
2668 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2669 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2670 definitions.
2671 (fetch_register, sore_register): Simplify.
2672 (old_fetch_inferior_registers, old_store_inferior_registers):
2673 Remove functions.
2674 (cannot_fetch_register, cannot_store_register): Change
2675 implementation to use regmap array to decide which registers
2676 cannot be fetched/stored. This removes $orig_eax from the
2677 registers that cannot be fetched/stored.
2678 (fetch_inferior_registers): Call fetch_register directly instead
2679 of calling old_fetch_inferior_registers.
2680 (store_inferior_registers): Call store_register directly instead
2681 of calling old_store_inferior_registers.
2682 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2683 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2684 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2685
2686 2002-11-09 Klee Dienes <kdienes@apple.com>
2687
2688 * i387-tdep.c (i387_supply_register): When called with NULL as a
2689 buffer, mark the register as not provided (to mirror the behavior
2690 of supply_register).
2691 (i387_supply_fxsave): Ditto.
2692 (i387_supply_fsave): Ditto (inherits the behavior from
2693 i387_supply_register).
2694
2695 2002-11-09 Klee Dienes <kdienes@apple.com>
2696
2697 * blockframe.c (sigtramp_saved_pc): Use
2698 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2699 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2700 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2701
2702 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2703
2704 * frame.c (get_prev_frame): Test prev_p to identify a previously
2705 unwound frame. Initialize prev_p.
2706 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2707 comment.
2708
2709 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2710
2711 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2712 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2713 more comments. Zap dead code.
2714
2715 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2716
2717 * infcmd.c (print_vector_info, print_float_info): Move code that
2718 checks whether the target has any registers and whether there is a
2719 selected frame up, such that it is also used if a target provides
2720 multi-arch definitions of these functions.
2721
2722 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2723
2724 * Makefile.in (DESTDIR): Define.
2725 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2726 prefix.
2727
2728 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2729 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2730
2731 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2732
2733 * i386-linux-tdep.c: Include "reggroups.h".
2734 (i386_linux_register_reggroup_p): New function.
2735 (i386_linux_init_abi): Set register_reggroup_p to
2736 i386_linux_register_reggroup_p.
2737 * i386-tdep.h (i386_register_reggroup_p): Declare.
2738 * i386-tdep.c: Include "reggroups.h".
2739 (i386_init_reggroups): New function.
2740 (i386_add_reggroups): New function.
2741 (i386_register_reggroup_p): New function.
2742 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2743 (_initialize_i386_tdep): Call i386_init_reggroups.
2744 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2745 specific reggroups.
2746
2747 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2748
2749 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2750 request that's available in *BSD.
2751
2752 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2753
2754 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2755 FDOFF_REGNUM.
2756
2757 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2758
2759 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2760 * dummy-frame.c (find_dummy_frame): Rename
2761 generic_find_dummy_frame, make static. Return the dummy frame
2762 instead of the regcache.
2763 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2764 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2765 (dummy_frame_register_unwind): Rename
2766 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2767 * dummy-frame.h (dummy_frame_register_unwind): Rename
2768 generic_call_dummy_register_unwind.
2769
2770 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2771
2772 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2773 except the inclusion of "i386/tm-i386.h", to...
2774 * config/i386/nm-i386v42mp.h: ...here.
2775 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2776
2777 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2778
2779 * Makefile.in (frame.o): Update dependencies.
2780 * blockframe.c (current_frame, frame_obstack_alloc)
2781 (frame_saved_regs_zalloc, get_current_frame)
2782 (set_current_frame, create_new_frame)
2783 (set_unwind_by_pc, get_next_frame)
2784 (flush_cached_frames, reinit_frame_cache)
2785 (frame_saved_regs_register_unwind)
2786 (deprecated_generic_get_saved_register)
2787 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2788 (_initialize_blockframe): Move frame code from here...
2789 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2790 "annotate.h" and "dummy-frame.h".
2791 (_initialize_frame): New function.
2792
2793 2002-11-08 Jim Blandy <jimb@redhat.com>
2794
2795 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2796 when we finish a function a context.
2797 * buildsym.h (outermost_context_p): New macro.
2798 (Bug analyzed by David Edelsohn.)
2799
2800 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2801
2802 * blockframe.c: Include "dummy-frame.h".
2803 (struct dummy_frame, dummy_frame_stack)
2804 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2805 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2806 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2807 (generic_save_call_dummy_addr, generic_pop_current_frame)
2808 (generic_pop_dummy_frame, generic_fix_call_dummy)
2809 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2810 dummy frame code from here...
2811 * dummy-frame.c: ...to here. New file.
2812 * dummy-frame.h: New file.
2813 (generic_call_dummy_register_unwind): Declare.
2814 (generic_find_dummy_frame): Declare.
2815 * Makefile.in (SFILES): Add dummy-frame.c.
2816 (dummy-frame.o): Specify dependencies.
2817 (dummy_frame_h): Define.
2818 (COMMON_OBS): Add dummy-frame.o.
2819 (blockframe.o): Update dependencies.
2820
2821 2002-11-08 Jim Blandy <jimb@redhat.com>
2822
2823 * dwarf2read.c (read_func_scope): Restore local_symbols and
2824 param_symbols after we finish the function context. (Based on a
2825 patch from David Edelsohn.)
2826
2827 2002-11-08 David Carlton <carlton@math.stanford.edu>
2828
2829 * linespec.c (symbol_found): New function.
2830 (minsym_found): New function.
2831 (decode_line_1): Separate out some code into separate functions.
2832
2833 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2834
2835 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2836 the benefit of the interix target.
2837 * i386-tdep.h (i386_frameless_signal_p): Declare.
2838
2839 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2840
2841 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2842 declaration that snuck in from change below.
2843
2844 2002-11-06 Andrew Cagney <cagney@redhat.com>
2845
2846 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2847 all callers.
2848 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2849 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2850 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2851 (i386_mxcsr_regnum_p): new function. Use instead of
2852 MXCSR_REGNUM_P.
2853 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2854 (i386_sse_regnum_p): Declare.
2855 (i386_mxcsr_regnum_p): Declare.
2856 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2857 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2858 (IS_FP_REGNUM): Update definition.
2859 (IS_FPU_CTRL_REGNUM): Update definition..
2860 (IS_SSE_REGNUM): Update definition..
2861 * i386v-nat.c (register_u_addr): Update.
2862 * go32-nat.c (fetch_register): Update.
2863 (store_register): Update.
2864
2865 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2866
2867 Preparation work to convert the hppa targets to multiarch partial.
2868
2869 * hppa-tdep.c: Add new functions replacing macro bodies from
2870 config/pa/tm-hppa.h. These function will be used to initialize
2871 the gdbarch structure. Import some comments from tm-hppa.h,
2872 and place them where appropriate, to avoid loosing them when
2873 we cleanup this file.
2874 (hppa_reg_struct_has_addr): New function.
2875 (hppa_inner_than): New function.
2876 (hppa_stack_align): New function.
2877 (hppa_pc_requires_run_before_use): New function.
2878 (hppa_instruction_nullified): New function.
2879 (hppa_register_byte): New function.
2880 (hppa_register_virtual_type): New function.
2881 (hppa_store_struct_return): New function.
2882 (hppa_cannot_store_register): New function.
2883 (hppa_frame_args_address): New function.
2884 (hppa_frame_locals_address): New function.
2885 (hppa_smash_text_address): New function.
2886 (hppa_coerce_float_to_double): New function. Requires the inclusion
2887 of "language.h".
2888
2889 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2890
2891 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2892 gdbarch-eligible macro to a call to the new associated function
2893 created in hppa-tdep.c.
2894 (INNER_THAN): Likewise.
2895 (STACK_ALIGN): Likewise.
2896 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2897 (INSTRUCTION_NULLIFIED): Likewise.
2898 (REGISTER_BYTE): Likewise.
2899 (REGISTER_VIRTUAL_TYPE): Likewise.
2900 (STORE_STRUCT_RETURN): Likewise.
2901 (CANNOT_STORE_REGISTER): Likewise.
2902 (FRAME_ARGS_ADDRESS): Likewise.
2903 (FRAME_LOCALS_ADDRESS): Likewise.
2904 (SMASH_TEXT_ADDRESS): Likewise.
2905 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2906 (ABOUT_TO_RETURN): Delete, as no longer used.
2907
2908 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2909
2910 * printcmd.c (disassemble_command): Remove obsolete function.
2911 (_initialize_printcmd): Do not create disassemble command here.
2912 * cli/cli-cmds.c (disassemble_command): New function. Implements
2913 disassemble command.
2914 (init_cli_cmds): Create disassemble command here instead.
2915
2916 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2917
2918 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2919
2920 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2921
2922 * regcache.h (regcache_cooked_read_using_offset_hack)
2923 (regcache_cooked_write_using_offset_hack): Delete declarations.
2924 (register_changed): Delete declaration.
2925 * regcache.c (regcache_cooked_read_using_offset_hack)
2926 (regcache_cooked_write_using_offset_hack): Delete functions.
2927 (cooked_xfer_using_offset_hack): Delete function.
2928 (register_changed): Delete function.
2929
2930 2002-11-07 Jim Blandy <jimb@redhat.com>
2931
2932 * macroscope.c: #include "complaints.h".
2933 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2934 but not in the macro table.
2935 * Makefile.in (macroscope.o): Record dependency.
2936
2937 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2938
2939 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2940
2941 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2942
2943 * regcache.c (deprecated_registers_fetched): Update.
2944 * regcache.h (deprecated_registers_fetched): Rename
2945 registers_fetched.
2946 * remote-vxsparc.c (vx_read_register): Update.
2947 * remote-vxmips.c (vx_read_register): Update.
2948 * remote-vx68.c (vx_read_register): Update.
2949 * irix5-nat.c (fetch_core_registers): Update.
2950 * mipsm3-nat.c (fetch_inferior_registers): Update.
2951 * sun3-nat.c (fetch_inferior_registers): Update.
2952 * symm-nat.c (fetch_inferior_registers): Update.
2953 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2954 (fetch_core_registers): Update.
2955 (fetch_kcore_registers): Update.
2956 * mips-nat.c (fetch_inferior_registers): Update.
2957 * corelow.c (get_core_registers): Update.
2958 * a68v-nat.c (fetch_inferior_registers): Update.
2959
2960 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2961
2962 Put in place the framework necessary for multiarching the hppa targets.
2963 * hppa-tdep.c (hppa_gdbarch_init): New function.
2964 (hppa_dump_tdep): New function.
2965 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2966 tdep structure dumper.
2967 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2968 until the multi-arching conversion has partially been completed.
2969
2970 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2971
2972 * valops.c (value_assign): Merge lval_register case into
2973 lval_reg_frame_relative. Use frame_register and
2974 regcache_cooked_write instead of get_saved_register and
2975 write_register_bytes. After flushing the register cache, try to
2976 re-select the selected frame.
2977
2978 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2979
2980 * regcache.h (deprecated_register_valid): Rename register_valid.
2981 * regcache.c: Update.
2982 * ia64-aix-nat.c: Update.
2983 * i386gnu-nat.c: Update.
2984 * alpha-nat.c: Update.
2985 * sparc-nat.c: Update.
2986 * lynx-nat.c: Update.
2987 * remote-mips.c: Update.
2988
2989 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2990
2991 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2992 to end of file, to be more consistent with the pratice followed
2993 by other targets.
2994
2995 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2996
2997 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2998 (print_float_info): Print registers in float_reggroup.
2999 (print_vector_info): Print registers in vector_reggroup.
3000 (default_print_registers_info): When all, print registers in
3001 all_reggroup. Otherwize, print registers in general_reggroup.
3002 (registers_info): Rewrite. Add support for register groups.
3003 Eliminate a goto.
3004
3005 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3006
3007 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3008 ages.
3009 (symtab_symbol_info): Remove eons old ifdeffed out code.
3010 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3011 command.
3012
3013 2002-11-06 Theodore A. Roth <troth@openavr.org>
3014
3015 * c-exp.y: Add missing semi-colons.
3016 * f-exp.y: Add missing semi-colons.
3017 * m2-exp.y: Add missing semi-colons.
3018 * p-exp.y: Add missing semi-colons.
3019 Add empty action to start rule to avoid a type clash error when
3020 building with bison >= 1.50.
3021
3022 2002-11-06 Jim Blandy <jimb@redhat.com>
3023
3024 * macrotab.h (struct macro_source_file): Doc fix.
3025
3026 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3027
3028 * varobj.c (child_exists, cplus_number_of_children): Change
3029 STREQ macro references to strcmp.
3030 (cplus_name_of_child): Change code to handle the fact that
3031 fields are not necessarily contiguous with regards to their
3032 access control. This is a fix for PR gdb/792.
3033
3034 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3035
3036 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3037 * gdbarch.h, gdbarch.c: Regnerate.
3038 * frame.h (frame_register): Declare.
3039 * frame.c (frame_register): New function.
3040 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3041 GET_SAVED_REGISTER, otherwize call
3042 generic_unwind_get_saved_register.
3043 (frame_register_read): Use frame_register instead of
3044 get_saved_register.
3045
3046 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3047
3048 From Jim Ingham <jingham@apple.com>:
3049 * event-top.c (gdb_disable_readline): New function.
3050 (_initialize_event_loop): Move comment.
3051
3052 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3053
3054 * event-loop.c (start_event_loop): Add comment.
3055 Update copyright.
3056
3057 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3058
3059 * infcmd.c (default_print_registers_info): Do not call
3060 PRINT_REGISTER_HOOK.
3061
3062 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3063
3064 * sparc-tdep.c (sparc_print_register_hook): Make static.
3065 (sparc_print_registers_info): New function.
3066 (sparc_do_registers_info): New function.
3067 (sparclet_print_registers_info): New function.
3068 (sparclet_do_registers_info): New function.
3069 (do_sparc_print_registers_info): New function.
3070 (sparc_print_registers): New static function, clone of infcmd.c's
3071 default_print_registers_info.
3072 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3073 (sparclet_do_registers_info): Declare.
3074 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3075 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3076 Re-define.
3077 (sparc_do_registers_info): Declare.
3078 (PRINT_REGISTER_HOOK): Delete macro.
3079 (sparc_print_register_hook): Delete declaration.
3080
3081 2002-11-05 David Carlton <carlton@math.stanford.edu>
3082
3083 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3084 functions.
3085 (lookup_symbol_aux_local): New function.
3086 (lookup_symbol_aux_symtabs): New function.
3087 (lookup_symbol_aux_psymtabs): New function.
3088
3089 2002-11-05 David Carlton <carlton@math.stanford.edu>
3090
3091 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3092 previous values of 'objfile' and 'block'.
3093
3094 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3095
3096 * values.c (value_change_enclosing_type): Set
3097 enclosing_type field correctly also for the case where
3098 more memory needs to be allocated.
3099
3100 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3101
3102 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3103 of puts_filtered.
3104
3105 * i387-tdep.c (i387_print_float_info): Replace calls to
3106 register_read and deprecated_read_register_gen with calls to
3107 frame_register_read, and make the necessary adjustments to the
3108 surrounding code.
3109
3110 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3111
3112 * gdbarch.sh (register_reggroup_p): Allow default value.
3113 * gdbarch.h, gdbarch.c: Regenerate.
3114
3115 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3116
3117 * regcache.h: Add coment indicating replacements for deprecated
3118 functions.
3119
3120 2002-11-02 Andrew Cagney <cagney@redhat.com>
3121
3122 * reggroups.h, reggroups.c: New files.
3123 * regcache.c: Include "reggroups.h".
3124 (enum regcache_dump_what): Add `regcache_dump_groups'.
3125 (regcache_dump): Contract size of the "Type" column. When
3126 specified, dump the register's groups.
3127 (maintenance_print_register_groups): New function.
3128 (_initialize_regcache): Add command `maint print register-groups'.
3129 * Makefile.in (COMMON_OBS): Add reggroups.o
3130 (SFILES): Add reggroups.c.
3131 (reggroups_h): Define.
3132 (regcache.o, gdbarch.o): Update dependencies.
3133 (reggroups.o): Specify dependencies.
3134 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3135 Add opaque declaration for `struct reggroup' in generated .h file.
3136 Include "reggroups.h" in generated .c file.
3137 gdbarch.h, gdbarch.c: Re-generate.
3138
3139 2002-11-02 Andrew Cagney <cagney@redhat.com>
3140
3141 * regcache.h (deprecated_read_register_gen): Rename
3142 read_register_gen.
3143 (deprecated_write_register_gen): Rename write_register_gen.
3144 * i387-tdep.c: Update.
3145 * x86-64-linux-nat.c: Update
3146 * wince.c: Update.
3147 * thread-db.c: Update.
3148 * win32-nat.c: Update.
3149 * mips-tdep.c: Update.
3150 * d10v-tdep.c: Update.
3151 * cris-tdep.c: Update.
3152 * remote-sim.c: Update.
3153 * remote-rdi.c: Update.
3154 * remote-rdp.c: Update.
3155 * frame.c: Update.
3156 * target.c: Update.
3157 * blockframe.c: Update.
3158 * x86-64-tdep.c: Update.
3159 * xstormy16-tdep.c: Update.
3160 * sh-tdep.c: Update.
3161 * s390-tdep.c: Update.
3162 * rs6000-tdep.c: Update.
3163 * sparc-tdep.c: Update.
3164 * i386-tdep.c: Update.
3165 * dwarf2cfi.c: Update.
3166 * regcache.c: Update.
3167
3168 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3169
3170 New interix-specific files:
3171 * config/i386/nm-interix.h: New file.
3172 * config/i386/interix.mh: New file.
3173 * config/i386/interix.mt: New file.
3174 * i386-interix-nat.c: New file.
3175 * i386-interix-tdep.c: New file.
3176
3177 2002-11-01 Andrew Cagney <cagney@redhat.com>
3178
3179 * frame.h (deprecated_generic_get_saved_register): Rename
3180 generic_get_saved_register.
3181 * blockframe.c (deprecated_generic_get_saved_register): Update.
3182 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3183 (xstormy16_frame_saved_register): Update.
3184 * sh-tdep.c (sh_gdbarch_init): Update.
3185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3186 * ia64-tdep.c (ia64_get_saved_register): Update.
3187 * cris-tdep.c (cris_gdbarch_init): Update.
3188 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3189 * arm-tdep.c (arm_gdbarch_init): Update.
3190
3191 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3192
3193 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3194
3195 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3196
3197 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3198 trampolines in sigaction.
3199
3200 2002-10-31 Andrew Cagney <cagney@redhat.com>
3201
3202 * h8300-tdep.c: Include "gdb_assert.h".
3203 (h8300_print_register): Add gdbarch, file and frame parameters.
3204 Use frame_read_unsigned_register to read the register's value.
3205 Use fprintf_filtered to display output.
3206 (h8300_print_registers_info): Replace h8300_do_registers_info.
3207 (h8300_gdbarch_init): Set print_registers_info.
3208
3209 2002-10-31 Andrew Cagney <cagney@redhat.com>
3210
3211 * frame.c (frame_read_unsigned_register): New function.
3212 (frame_read_signed_register): New function.
3213 * frame.h (frame_read_unsigned_register): Declare.
3214 (frame_read_signed_register): Declare.
3215
3216 2002-10-31 Andrew Cagney <cagney@redhat.com>
3217
3218 * h8500-tdep.c (h8500_print_registers_info): New static function,
3219 clone of infcmd.c's default_print_registers_info.
3220 (h8500_do_registers_info): New funtion.
3221 (h8500_print_register_hook): Rename print_register_hook, make
3222 static.
3223
3224 * config/h8500/tm-h8500.h: Update copyright.
3225 (DEPRECATED_DO_REGISTERS_INFO): Define.
3226 (h8500_do_registers_info: Declare.
3227 (PRINT_REGISTER_HOOK): Delete macro.
3228 (print_register_hook): Delete function.
3229
3230 2002-10-31 Andrew Cagney <cagney@redhat.com>
3231
3232 * z8k-tdep.c (z8k_print_register_hook): Make static.
3233 (z8k_print_registers_info): New static function, clone of
3234 infcmd.c's default_print_registers_info.
3235 (z8k_do_registers_info): New function. Wrap
3236 z8k_print_registers_info.
3237 * config/z8k/tm-z8k.h: Update copyright.
3238 (PRINT_REGISTER_HOOK): Delete macro.
3239 (z8k_print_register_hook): Delete declaration.
3240 (DEPRECATED_DO_REGISTERS_INFO): Define.
3241 (z8k_do_registers_info): Declare.
3242
3243 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3244
3245 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3246 as this is already provided by value.h, and was actually causing
3247 a compilation error because of a conflict in parameter type
3248 declaration due to a missing const keyword.
3249 (low_text_segment_addres): Fix a compilation warning.
3250
3251 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3252
3253 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3254 registers without a name.
3255 (mips_linux_cannot_store_register): Don't store registers without
3256 a name.
3257
3258 2002-10-28 David Carlton <carlton@math.stanford.edu>
3259
3260 * symtab.c (find_addr_symbol): Delete. (It was already commented
3261 out.)
3262 * symtab.h: Delete prototype for find_addr_symbol.
3263
3264 2002-10-26 Andrew Cagney <cagney@redhat.com>
3265
3266 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3267 DO_REGISTERS_INFO.
3268 gdbarch.h, gdbarch.c: Re-generate.
3269 * infcmd.c (default_print_registers_info): Update reference.
3270 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3271 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3272 * sh-tdep.c (sh_gdbarch_init): Ditto.
3273 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3274 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3275
3276 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3277
3278 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3279 cfi_init_extra_frame_info.
3280 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3281 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3282
3283 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3284 target where necessary. Add more comments and remove the ones
3285 that don't provide any useful information.
3286
3287 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3288 deprecated_read_register_dummy with
3289 frame_unwind_unsigned_register.
3290
3291 * i386-tdep.c (i386_extract_struct_value_address): Use
3292 regcache_raw_read_unsigned instead of
3293 regcache_cooked_read_unsigned since we know that the register
3294 we're reading isn't a pseudo register. Rename variable 'val' into
3295 the more descriptive 'addr'.
3296
3297 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3298 (x86_64_push_return_address): Add comment.
3299 (x86_64_pop_frame): Make static.
3300 (examine_argument): Clarify comment.
3301 (x86_64_skip_prologue): Make prolog_expact variable static.
3302
3303 * dwarf2cfi.c: Fix some formatting problems.
3304 (context_cpy, read_encoded_pointer): Clarify comments.
3305
3306 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3307 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3308 i386 target back into x86_64_gdbarch_init. Add some comments and
3309 remove meaningless ones.
3310
3311 2002-10-25 Andrew Cagney <cagney@redhat.com>
3312
3313 * complaints.h (struct deprecated_complaint): Rename `struct
3314 complaint'.
3315 * complaints.c (complain): Update.
3316 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3317 incorrect comment indicating that "symfile.h" was being included
3318 for the `struct complaint' definition.
3319 * remote-vx.c: Update.
3320 * objc-lang.c: Update.
3321 * xcoffread.c: Update.
3322 * hpread.c: Update.
3323 * mdebugread.c: Update.
3324 * stabsread.c: Update.
3325 * dwarf2read.c: Update.
3326 * dwarfread.c: Update.
3327 * elfread.c: Update.
3328 * coffread.c: Update.
3329 * stabsread.h: Update.
3330 * dbxread.c: Update.
3331 * buildsym.c: Update.
3332 * gdbtypes.c: Update.
3333 * macrotab.c: Update.
3334
3335 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3336
3337 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3338 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3339 (x86_64_init_abi): ...new function.
3340
3341 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3342 * i386v-nat.c: Include "i386-tdep.h".
3343
3344 2002-10-25 Andrew Cagney <cagney@redhat.com>
3345
3346 * gdbtypes.c (address_space_name_to_int): Update.
3347 (address_space_int_to_name): Update.
3348 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3349 multi-arch predicate.
3350 (address_class_name_to_type_flags): Ditto.
3351 * gdbarch.h, gdbarch.c: Re-generate.
3352
3353 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3354
3355 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3356
3357 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3358
3359 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3360
3361 * symtab.h (INIT_SAL): Delete macro.
3362 (init_sal): Export.
3363 * symtab.c (init_sal): New function.
3364
3365 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3366 to init_sal function call.
3367 (find_sal_from_funcs_and_line): Ditto.
3368 (all_sals_for_line): Ditto.
3369 * breakpoint.c (create_internal_breakpoint): Ditto.
3370 (create_fork_vfork_event_catchpoint): Ditto.
3371 (create_exec_event_catchpoint): Ditto.
3372 (parse_breakpoint_sals): Ditto.
3373 (watch_command_1): Ditto.
3374 (handle_gnu_4_16_catch_command): Ditto.
3375 (clear_command): Ditto.
3376 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3377 * infcmd.c (run_stack_dummy): Ditto.
3378 * infrun.c (process_event_stop_test): Ditto.
3379 (check_sigtramp2): Ditto.
3380 (step_over_function): Ditto.
3381 * linespec.c (decode_line_2): Ditto.
3382 (decode_line_1): Ditto.
3383 * source.c (line_info): Ditto.
3384 * symtab.c (find_pc_sect_line): Ditto.
3385
3386 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3387
3388 * dwarf2cfi.c (struct context)
3389 (struct context_reg): Moved to dwarf2cfi.h
3390 (context_alloc, frame_state_alloc, context_cpy):
3391 Made extern instead of static, removed prototypes.
3392 * dwarf2cfi.h (struct context)
3393 (struct context_reg): New, moved from dwarf2cfi.c
3394 (context_alloc, frame_state_alloc, context_cpy):
3395 New prototypes.
3396 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3397 Changed from static to extern.
3398 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3399 (LINUX_SIGCONTEXT_FP_OFFSET)
3400 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3401 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3402 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3403 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3404 set_gdbarch_*() calls now use x86-64 specific functions
3405 instead of DWARF2 CFI ones.
3406 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3407 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3408 (x86_64_init_extra_frame_info): New prototypes.
3409
3410 2002-10-23 David Carlton <carlton@math.stanford.edu>
3411
3412 * linespec.c: #include "parser-defs.h".
3413 Delete prototype for find_template_name_end.
3414 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3415
3416 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3417
3418 * NEWS: add recent mi fixes.
3419 * varobj.c (struct varobj): Add new "updated" flag.
3420 (new_variable): Default "updated" flag to 0.
3421 (varobj_set_value): Set "updated" flag to 1 if value
3422 changes.
3423 (varobj_update): Check varobj "updated" flag before
3424 comparing old and refreshed values. Fix for
3425 PR gdb/702.
3426
3427 2002-10-23 David Carlton <carlton@math.stanford.edu>
3428
3429 * parse.c (parse_exp_1): Use BLOCK_START.
3430 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3431 SYMBOL_BLOCK_VALUE.
3432 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3433
3434 2002-10-23 David Carlton <carlton@math.stanford.edu>
3435
3436 * symtab.c: Delete cplusplus_hint.
3437 Delete prototype for find_template_name_end.
3438
3439 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3440
3441 * symtab.h: Update comment.
3442
3443 2002-10-23 Michael Snyder <msnyder@redhat.com>
3444
3445 * printcmd.c (address_info): Restore quotes in output.
3446 * valops.c (value_of_local): Restore quotes in error message.
3447
3448 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3449
3450 * symtab.c (symbol_demangled_name): New function.
3451 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3452 turning most of it into a function.
3453 (symbol_demangled_name): Export.
3454
3455 2002-10-23 Michael Snyder <msnyder@redhat.com>
3456
3457 * valops.c (value_of_local): Restore quotes in error message.
3458
3459 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3460
3461 * symtab.c (symbol_init_language_specific): New function.
3462 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3463 turning most of it into a function.
3464 (symbol_init_language_specific): Export.
3465
3466 2002-10-23 David Carlton <carlton@math.stanford.edu>
3467
3468 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3469 (dwarf_attr_name): Ditto.
3470 (dwarf_type_encoding_name): Ditto.
3471 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3472 (process_die): Handle DW_TAG_namespace,
3473 DW_TAG_imported_declaration, DW_TAG_imported_module.
3474 (read_namespace): New function.
3475
3476 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3477
3478 * configure.in: Define NEW_PROC_API on Interix too.
3479 * configure: Regenerate.
3480
3481 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3482
3483 * configure: Regenerate using the proper version of autoconf.
3484
3485 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3486
3487 * findvar.c (read_var_value): Temporarily disable TLS code, until
3488 complete TLS support is added.
3489
3490 2002-10-21 Jim Blandy <jimb@redhat.com>
3491 Elena Zannoni <ezannoni@redhat.com>
3492
3493 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3494 for thread local storage locations.
3495 (struct symbol): Add objfile field.
3496 (SYMBOL_OBJFILE): Define.
3497 * dwarf2read.c (is_thread_local): New static variable.
3498 (new_symbol): If variable is in thread local fill in address class
3499 and objfile appropriately.
3500 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3501 stack operation.
3502 * printcmd.c (address_info): Print the information for thread
3503 local storage variable.
3504 * findvar.c (read_var_value): In case of thread local variable,
3505 defer to the target vector code to compute address.
3506
3507 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3508
3509 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3510 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3511
3512 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3513
3514 * symtab.h (address_class): Rename
3515 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3516 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3517 * printcmd.c (address_info): Ditto.
3518 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3519
3520 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3521
3522 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3523 DBREG_DRX macro to acces debug registers.
3524
3525 * Makefile.in (i386obsd-tdep.o): New target.
3526
3527 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3528 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3529
3530 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3531 * config/i386/obsd.mt: New file.
3532 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3533 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3534 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3535 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3536 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3537 * i386obsd-tdep.c: New file.
3538
3539 2002-10-19 Adam Fedor <fedor@gnu.org>
3540
3541 * objc-exp.y (name_not_typename): Fix invalid comment.
3542
3543 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3544
3545 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3546 to allocate partial syms and macro byte caches.
3547
3548 2002-10-18 David Carlton <carlton@math.stanford.edu>
3549
3550 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3551
3552 2002-10-18 Adam Fedor <fedor@gnu.org>
3553
3554 * stabsread.c (find_name_end): New function.
3555 (define_symbol): Use it.
3556
3557 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3560 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3561 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3562 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3563
3564 2002-10-17 David Carlton <carlton@math.stanford.edu>
3565
3566 * symfile.h: Add opaque declaration for struct obstack.
3567 Declare obsavestring to take a const char *.
3568 * symfile.c (obsavestring): Make first argument a const char *.
3569
3570 2002-10-16 Adam Fedor <fedor@gnu.org>
3571
3572 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3573 names when matching breakpoints in current file.
3574
3575 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3576
3577 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3578 (read_tag_pointer_type): Add address class support.
3579 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3580 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3581 New methods.
3582 * gdbarch.h, gdbarch.c: Regenerate.
3583 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3584 (make_type_with_address_space, recursive_type_dump): Add address
3585 class support.
3586 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3587 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3588 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3589
3590 2002-10-16 Klee Dienes <kdienes@apple.com>
3591
3592 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3593 to get the last character of a char[] buffer, not
3594 name[sizeof(vptr_name)-1].
3595
3596 2002-10-14 Adam Fedor <fedor@gnu.org>
3597
3598 * symtab.h: New objc_specific struct.
3599 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3600 (SYMBOL_DEMANGLED_NAME): Likewise.
3601
3602 2002-10-14 Adam Fedor <fedor@gnu.org>
3603
3604 * symfile.c (init_filename_language_table): Add ObjC file extension.
3605
3606 2002-10-14 Adam Fedor <fedor@gnu.org>
3607
3608 * utils.c (puts_filtered_tabular): New function.
3609 (fprintf_symbol_filtered): Get ObjC demangled name.
3610 * defs.h (puts_filtered_tabular): Declared.
3611
3612 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3613
3614 * c-lang.h (c_type_print_varspec_prefix): Delete.
3615 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3616 ``need_post_space'' parameter. Adjust all callers.
3617
3618 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3619
3620 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3621 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3622 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3623 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3624
3625 2002-10-13 Adam Fedor <fedor@gnu.org>
3626
3627 * source.c (print_source_lines): Update comments.
3628
3629 2002-10-13 Adam Fedor <fedor@gnu.org>
3630
3631 * valops.c (value_of_local): New function.
3632 (value_of_this): Use it.
3633 * value.h (value_of_local): Declared.
3634
3635 2002-10-13 Adam Fedor <fedor@gnu.org>
3636
3637 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3638 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3639
3640 2002-10-12 Adam Fedor <fedor@gnu.org>
3641
3642 * language.c (binop_result_type): Add language_objc to case.
3643 (integral_type): Likewise.
3644 (character_type): Likewise.
3645 (string_type): Likewise.
3646 (boolean_type): Likewise.
3647 (structured_type): Likewise.
3648 (binop_type_check): Likewise.
3649
3650 2002-10-11 Adam Fedor <fedor@gnu.org>
3651
3652 * printcmd.c (address_info): Print 'self' for ObjC.
3653
3654 2002-10-11 Adam Fedor <fedor@gnu.org>
3655
3656 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3657 OP_SELF.
3658
3659 2002-10-11 Adam Fedor <fedor@gnu.org>
3660
3661 * language.h (CAST_IS_CONVERSION): Add language_objc.
3662
3663 2002-10-11 Adam Fedor <fedor@gnu.org>
3664
3665 * defs.h (enum language): Add language_objc.
3666
3667 2002-10-11 Klee Dienes <kdienes@apple.com>
3668
3669 * corefile.c (read_memory_typed_address): New function.
3670 * gdbcore.h (read_memory_typed_address): Add prototype.
3671 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3672 to read a value destined for a CORE_ADDR, not read_memory_integer.
3673 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3674 (f77_get_dynamic_lowerbound): Ditto.
3675
3676 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3677
3678 * utils.c (string_to_core_addr): After turning string into
3679 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3680 which will do necessary sign-extension, etc.
3681
3682 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3683
3684 * c-exp.y (THIS): Delete token and grammar rule.
3685 (yylex): Don't return THIS.
3686 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3687 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3688 * demangle.c (cplus_markers): Update comment. Put '$'
3689 first. Remove CPLUS_MARKER.
3690 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3691 * jv-exp.y (THIS): Delete token and grammar rule.
3692 (yylex): Don't return THIS.
3693 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3694 * objc-exp.y (THIS): Delete token and grammar rule.
3695 (yylex): Don't return THIS.
3696 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3697 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3698 (read_member_functions): Likewise for opname.
3699 (read_tilde_fields): Use is_cplus_marker.
3700
3701 * defs.h (CPLUS_MARKER): Don't define.
3702 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3703 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3704 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3705 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3706 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3707
3708 * config/i386/tm-i386v4.h: Delete file.
3709 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3710 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3711 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3712 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3713 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3714 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3715 * config/i386/i386v4.mt (TM_FILE): Likewise.
3716 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3717
3718 2002-10-10 Marko Mlinar <markom@opencores.org>
3719
3720 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3721 accidentially not commited 2002-10-09
3722 * gdbarch.h, gdbarch.c: Re-generate.
3723
3724 2002-10-09 Marko Mlinar <markom@opencores.org>
3725
3726 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3727 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3728 * gdbarch.h, gdbarch.c: Re-generate.
3729
3730 2002-10-08 Petr Sorfa <petrs@caldera.com>
3731
3732 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3733
3734 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3735 so we can work on more than one compilation unit at a time. This
3736 helps prepare GDB to handle inter-CU die references.
3737 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3738 the code to be defined before struct comp_unit_head.
3739 (comp_unit_head): Added new members - offset, cu_head,
3740 begin_die, next and dwarf2_abbrevs.
3741 (dwarf2_abbrevs): Removed single static var; now member of
3742 struct comp_unit_head.
3743 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3744 members.
3745 (psymtab_to_symtab_1): Changed to work with the new
3746 struct comp_unit_head.
3747 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3748 constructs the dwarf2_abbrevs[] inside the cu_header.
3749 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3750 dwarf2_abbrev table to clean up.
3751 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3752 handling of dwarf2_abbrevs inside the cu_header.
3753 (read_partial_die): Now supports the call to the new
3754 dwarf2_lookup_abbrev.
3755 (read_full_die): Now supports the call to the new
3756 dwarf2_lookup_abbrev.
3757
3758 2002-10-06 Christopher Faylor <cgf@redhat.com>
3759
3760 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3761 insure that shell variables, such as "transformed_name" are propagated
3762 to later shell statements in rule.
3763
3764 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3765
3766 * config/i386/nm-i386sco.h: Add protection against
3767 multiple-inclusion. Include "i386/nm-i386v.h".
3768 (REGISTER_U_ADDR): Remove define.
3769 (i386_register_u_addr): Remove prototype.
3770
3771 2002-10-04 Michael Snyder <msnyder@redhat.com>
3772
3773 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3774 before treating it as a single-step event.
3775
3776 2002-10-03 Adam Fedor <fedor@gnu.org>
3777
3778 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3779 (objc_demangle): Remove assignment in if statements, Replace
3780 free with xfree.
3781 (add_msglist): Likewise.
3782 (end_msglist): Likewise.
3783 (complare_selectors): Likewise.
3784 (selectors_info): Likewise.
3785 (compare_classes): Likewise.
3786 (classes_info): Likewise.
3787 (print_object_command): Likewise.
3788 (find_objc_msgcall_submethod): Replace PTR with void *.
3789 * objc-lang.h: Remove check for __STDC__.
3790
3791 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3792
3793 * ui-out.h (ui_out_field_fmt_int): New prototype.
3794 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3795 of field width and alignment.
3796 * stack.c (print_frame_info_base): When printing frame level, use
3797 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3798 PR gdb/192
3799
3800 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3801
3802 * MAINTAINERS: Add self to Write After Approval list.
3803
3804 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3805
3806 * infcmd.c (interrupt_target_command_wrapper): Delete.
3807 (interrupt_target_command): Make non static.
3808 (nofp_registers_info): Make static.
3809 * stack.c (return_command_wrapper): Delete.
3810 (return_command): Make non static.
3811
3812 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3813
3814 * event-top.c (gdb_setup_readline): New function. Code moved from
3815 _initialize_event_loop().
3816 (_initialize_event_loop): Call gdb_setup_readline().
3817
3818 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3819
3820 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3821 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3823
3824 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3825
3826 Fix PR gdb/778
3827 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3828 before recursing.
3829 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3830 of fill_in_vptr_fieldno.
3831
3832 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3833
3834 * inferior.h (registers_info, stepi_command, nexti_command,
3835 continue_command, interrupt_target_command): Export from infcmd.c.
3836 * frame.h (args_info, selected_frame_level_changed_hook,
3837 return_command): Export from stack.c.
3838 * v850ice.c (stepi_command, nexti_command, continue_command): use
3839 prototypes from inferior.h.
3840 * tracepoint.c (registers_info, args_info, locals_info): Use
3841 prototypes from frame.h and inferior.h.
3842 * Makefile.in (mi-main.o): Add dependency on frame.h.
3843
3844 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3845
3846 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3847 value in register 3 adjusted by ppc_gp0_regnum.
3848
3849 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3850
3851 2002-10-02 Marko Mlinar <markom@opencores.org>
3852
3853 * MAINTAINERS: Add myself to the Write After Approval list.
3854
3855 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3856
3857 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3858 of the section for the N64 ABI, fixed.
3859
3860 * config/mips/tm-irix6.h: Include solib.h.
3861
3862 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3863
3864 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3865 GNU operators.
3866
3867 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3868
3869 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3870 and that "mi0" syntax has been removed.
3871
3872 2002-09-30 David Carlton <carlton@math.stanford.edu>
3873
3874 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3875 * ppc-sysv-tdep.c: #include "gdb_string.h".
3876 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3877 pacify GCC.
3878
3879 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3880
3881 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3882 "vrsave"'s register number.
3883
3884 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3885
3886 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3887 use frame_unwind_signed_register to obtain the PC.
3888 (mips_frame_chain): Handle a generic dummy frame.
3889 (mips_init_extra_frame_info): When a generic dummy frame, don't
3890 re-compute the frame base.
3891 (mips_pop_frame): Handle generic dummy frames.
3892 (mips_gdbarch_init): When generic dummy frames, set
3893 use_generic_dummy_frames, push_dummy_frame to
3894 generic_push_dummy_frame, pc_in_call_dummy to
3895 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3896 generic_save_dummy_frame_tos.
3897
3898 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3899
3900 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3901 against TOP when TOP was explictly set.
3902 (generic_push_dummy_frame): Set TOP to zero.
3903
3904 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3905
3906 * event-loop.c (start_event_loop): Rename variable 'result' to
3907 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3908
3909 2002-09-30 Keith Seitz <keiths@redhat.com>
3910
3911 * gdb-events.sh (selected_thread_changed): New event.
3912 * gdb-events.c: Regenerated.
3913 * gdb-events.h: Regenerated.
3914
3915 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3916
3917 * MAINTAINERS: Add self to Write After Approval list.
3918
3919 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3920
3921 * disasm.c: New file.
3922 * disasm.h: New file.
3923 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3924 (compare_lines): Ditto.
3925 (dump_insns): Ditto.
3926 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3927 argument.
3928 (do_assembly_only): Ditto.
3929 (do_disassembly): Renamed to gdb_disassembly and moved to
3930 disasm.c. Sdded uiout argument.
3931 * Makefile.in: Add new files. Reorder SFILES list. Update
3932 dependencies. Include libgdb.a later in the insight executable.
3933
3934 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3935
3936 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3937 bfd/elf64-alpha-fbsd.c.
3938
3939 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3940
3941 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3942 i386gnu-tdep.c.
3943
3944 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3945
3946 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3947 __FUNCTION__.
3948 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3949 function name.
3950 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3951 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3952 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3953 (S_msg_sig_post_reply): Ditto.
3954
3955 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3956
3957 * sh-tdep.c (sh_use_struct_convention): Use definition according
3958 to ABI.
3959 (sh_push_arguments): Store in register with correct endianess.
3960 (sh_default_store_return_value): Ditto.
3961 (sh_gdbarch_init): Set sizeof long double to 8.
3962
3963 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3964
3965 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3966 Fix some whitespace problems.
3967
3968 2002-09-27 David Carlton <carlton@math.stanford.edu>
3969
3970 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3971 (mcore-tdep.o): Ditto.
3972 (ns32k-tdep.o): Ditto.
3973 (ns32knbsd-tdep.o): Ditto.
3974 (sh3-rom.o): Ditto.
3975 (vax-tdep.o): Ditto.
3976 * cris-tdep.c: #include "gdb_string.h"
3977 * mcore-tdep.c: Ditto.
3978 * ns32k-tdep.c: Ditto.
3979 * ns32knbsd-tdep.c: Ditto.
3980 * sh3-rom.c: Ditto.
3981 * vax-tdep.c: Ditto.
3982
3983 2002-09-27 David Carlton <carlton@math.stanford.edu>
3984
3985 * config/djgpp/fnchange.lst: Add entries for
3986 gdb/testsuite/gdb.c++/m-static files.
3987
3988 2002-09-27 Jim Wilson <wilson@redhat.com>
3989
3990 * MAINTAINERS: Add myself to the Write After Approval list.
3991
3992 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3993
3994 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3995
3996
3997 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3998
3999 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4000 frame.
4001
4002 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4003
4004 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4005 (rs6000_struct_return_address): Delete variable.
4006 (rs6000_store_struct_return): Update.
4007 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4008 deprecated_extract_struct_value_address.
4009 (rs6000_frame_align): New function.
4010 (rs6000_gdbarch_init): Set frame_align.
4011
4012 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4013
4014 From Grace Sainsbury <graces@redhat.com>:
4015 * Makefile.in (gdbtk-main.o): New target.
4016 (gdb.o): New target.
4017 (main_h): Define.
4018 (main.o): Update dependencies.
4019 (gdb$(EXEEXT)): Add gdb.o.
4020 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4021 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4022 (SUBDIR_GDBTK_CLEAN): Set.
4023 (install-gdbtk): Install the insight binary.
4024 (uninstall-gdbtk): New target.
4025 (all-gdbtk, clean-gdbtk): New rule.
4026 * top.c (use_windows): Default to zero.
4027 * main.c: Include "main.h".
4028 (main): Delete.
4029 (struct captured_main_args): Delete.
4030 (gdb_main): New function.
4031 * main.h: New file.
4032 * gdb.c: New File.
4033
4034 2002-09-25 Andrew Cagney <cagney@redhat.com>
4035
4036 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4037 (frame_map_regnum_to_name): New function.
4038 (frame_map_name_to_regnum): New function.
4039 * frame.h (frame_map_name_to_regnum): Declare.
4040 (frame_map_regnum_to_name): Declare.
4041 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4042 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4043 * parse.c: Do not include "builtin-regs.h".
4044 (target_map_name_to_register): Delete function.
4045 (write_dollar_variable): Use frame_map_name_to_regnum.
4046 * parser-defs.h (target_map_name_to_register): Delete declaration.
4047 * expprint.c: Include "frame.h".
4048 (print_subexp): Use frame_map_regnum_to_name.
4049 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4050 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4051
4052 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4053
4054 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4055 wasn't saved, and the next innermost frame is a dummy, return the
4056 dummy frame's link register.
4057
4058 2002-09-24 Jim Blandy <jimb@redhat.com>
4059
4060 Fix from Paul Breed:
4061 * main.c (captured_main): Add a `break' after the case for 'b'.
4062
4063 2002-09-24 Keith Seitz <keiths@redhat.com>
4064
4065 * varobj.c (c_type_of_child): Use get_target_type instead
4066 of TYPE_TARGET_TYPE.
4067
4068 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4069
4070 * source.c (get_current_or_default_source_symtab_and_line): Remove
4071 function.
4072 (set_default_source_symtab_and_line): New function. Attempts to
4073 determine a source file to list lines from if one is not currently
4074 defined.
4075 (get_current_source_symtab_and_line): Initialize sal.pc and
4076 sal.end fields.
4077 (set_current_source_symtab_and_line): Mark argument as const.
4078 * source.h: Update declarations and comments.
4079 * linespec.c (decode_line_1): Replace call to removed routine above.
4080 * stack.c (print_frame_info_base): Ditto.
4081 * cli/cli-cmds.c (edit_command): Ditto.
4082 (list_command): Ditto.
4083
4084 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4085
4086 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4087 sal.pc and sal.end fields.
4088 (get_current_or_default_source_symtab_and_line): Ditto.
4089 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4090 so we do not cause a new source symtab to be searched for (reverting an
4091 unintentional change from the 2002-09-20 patch).
4092 * scm-lang.c (scm_unpac): Ditto.
4093
4094 2002-09-21 Andrew Cagney <cagney@redhat.com>
4095
4096 * complaints.c (symfile_explanations): Remove new-line from
4097 ``isolated_message''.
4098 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4099 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4100
4101 2002-09-20 Nick Clifton <nickc@redhat.com>
4102
4103 * NEWS: Announce that V850EA ISA is no longer supported.
4104 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4105
4106 2002-09-20 David Carlton <carlton@math.stanford.edu>
4107
4108 * Makefile.in (c-lang.o): Correct dependencies.
4109 (utils.o): Gather dependencies.
4110 (charset.o): Move.
4111 * c-lang.c: #include "gdb_string.h"
4112
4113 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4114
4115 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4116 * cli/cli-cmds.c (list_command): New function. Implements the new
4117 cli edit command.
4118 (_init_cli_cmds): Add new command definition.
4119 * gdb.1: Document edit command.
4120 * doc/gdb.texinfo: Document edit command.
4121
4122 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4123
4124 * source.c: Make global variables current_source_symtab and
4125 current_source_line static.
4126 (list_command): Moved to cli/cli-cmds.c.
4127 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4128 (get_first_line_listed): New accessor function.
4129 (get_lines_to_list): New accessor function.
4130 (get_current_source_symtab_and_line): New function. Retrieves the
4131 position in the source code that we consider current.
4132 (get_current_or_default_source_symtab_and_line): New function.
4133 Like the above but attempts to determine a default position if one
4134 is not currently defined.
4135 (set_current_source_symtab_and_line): New function. Sets the source
4136 code position considered current and returns the previously set one.
4137 (clear_current_source_symtab_and_line): Reset stored information about
4138 a current source line.
4139 (_initialize_source): Remove registration for the "list" command and
4140 its alias.
4141 * source.h: Add declarations for the new functions above.
4142 * symtab.h: Remove declarations for the global variables mentioned
4143 above.
4144 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4145 obtain current source line.
4146 * linespec.c (decode_line_1): Ditto.
4147 * macroscope.c (default_macro_scope): Ditto.
4148 * scm-lang.c (scm_unpac): Ditto.
4149 * stack.c (print_frame_info_base): Ditto.
4150 * symfile.c (clear_symtab_users): Ditto.
4151 * symtab.c (decode_line_spec): Ditto.
4152 * cli/cli-cmds.c (list_command): Moved here from source.c.
4153 (ambiguous_line_spec): Moved here from source.c.
4154 (_init_cli_cmds): Add definition for "list" and its alias.
4155 * Makefile.in: Update dependencies.
4156
4157 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4158
4159 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4160 with what gcc thinks is correct.
4161
4162 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4163
4164 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4165 multiple register push instruction.
4166
4167 2002-09-19 Jim Blandy <jimb@redhat.com>
4168
4169 Add support for distinct host and target character sets.
4170 * charset.c, charset.h: New files.
4171 * c-exp.y: #include "charset.h".
4172 (yylex): Convert character and string literals to the target
4173 character set, before returning them as the semantic value of the
4174 token.
4175 * c-lang.c: #include "charset.h".
4176 (c_emit_char): Use charset-specific methods to recognize
4177 characters with backslash escape forms, to decide which characters
4178 to print literally and which to print using numeric escape
4179 sequences, and to convert target characters to host characters
4180 before printing.
4181 * utils.c: #include "charset.h".
4182 (no_control_char_error): New function.
4183 (parse_escape): Use charset-specific methods to recognize
4184 backslash escapes, parse `control character' notation, and convert
4185 characters from the host character set to the target character set.
4186 * configure.in: Set the default host character set.
4187 Check where to find iconv, and what its argument types might be.
4188 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4189 * Makefile.in (SFILES): List charset.c.
4190 (COMMON_OBS): List charset.o.
4191 (charset.o): New rule.
4192 (charset_h): New header dependency variable.
4193 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4194 (LIBICONV): New variable, set by configure.
4195 (CLIBS): Include $(LIBICONV) here.
4196 * aclocal.m4, config.in, configure: Regenerated.
4197
4198 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4199
4200 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4201 bison 1.35 warning.
4202
4203 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4204
4205 * gdb_mbuild.sh: New file.
4206
4207 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4208
4209 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4210
4211 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4212
4213 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4214 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4215 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4216 valops.c, value.h: Revert previous change.
4217
4218 2002-09-18 Michael Snyder <msnyder@redhat.com>
4219
4220 Preliminary support for Objective-C:
4221 * defs.h (language_objc): New enum value.
4222 (puts_filtered_tabular): Declaration only, exported from utils.c.
4223 (skip_quoted): Delete, declared in completer.h.
4224 * c-exp.y: Include completer.h.
4225 * p-exp.y: Ditto.
4226 * jv-exp.y: Ditto.
4227 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4228 New operator enum values.
4229 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4230 * language.c (binop_result_type): Handle language_objc case.
4231 (integral_type, character_type, string_type, boolean_type,
4232 structured_type, binop_type_check): Ditto.
4233 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4234 (struct objc_specific): Add to general_symbol_info.
4235 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4236 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4237 * parser-defs.h (struct objc_class_str): New struct type.
4238 (start_msglist, end_msglist, add_msglist): Declaration only,
4239 exported from objc-lang.c.
4240 * value.h (value_of_local, value_nsstring,
4241 call_function_by_hand_expecting_type): Exported from valops.c.
4242 * valops.c (find_function_addr): Export.
4243 (call_function_by_hand_expecting_type): New function.
4244 (value_of_local): New function.
4245 * symfile.c (init_filename_language_table): Add ".m" extension
4246 for Objective-C.
4247 * utils.c (puts_filtered_tabular): New function.
4248 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4249 (set/show demangle): Extend help-string to refer to ObjC.
4250 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4251 * stabsread.c (symbol_reference_defined): Objective-C symbols
4252 may contain colons: make allowances when scanning stabs strings
4253 for colons.
4254 (objc_find_colon): New function.
4255 * printcmd.c (address_info): If language == objc then print
4256 "self" instead of "this".
4257 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4258 OP_NSSTRING, and OP_SELF.
4259 (prefixify_subexp): Ditto.
4260 * source.c (print_source_lines): Mention objc in comment.
4261 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4262 method names.
4263
4264 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4265
4266 * complaints.h: Update copyright.
4267 (struct complaints): Declare.
4268 (struct complaint): Make `message' constant.
4269 (internal_complaint): Declare.
4270 (complaint): Declare.
4271 (complaint_root): Delete declaration.
4272 (symfile_complaints): Delete declaration.
4273 (struct complaints): Add opaque declaration.
4274 (clear_complaints): Add a complaints parameter.
4275 * complaints.c: Update copyright.
4276 (enum complaint_series): Define.
4277 (complaint_root): Delete.
4278 (struct complaints): Define.
4279 (complaint_sentinel, symfile_complaint_book): New variables.
4280 (symfile_explanations, symfile_complaints): New variables.
4281 New variables.
4282 (get_complaints): New function.
4283 (vcomplaint): New function.
4284 (complaint): New function.
4285 (internal_complaint): New function.
4286 (complain): Call vcomplain with symfile_complaint.
4287 (clear_complaints): Rewrite.
4288 (_initialize_complaints): Use add_setshow_command.
4289 * Makefile.in (complaints.o): Update dependencies.
4290 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4291 to call to clear_complaints.
4292 (new_symfile_objfile, reread_symbols): Ditto.
4293 (oldsyms_complaint): Delete.
4294 (empty_symtab_complaint, unknown_option_complaint): Delete.
4295 (free_named_symtabs): Use complaint instead of complain.
4296
4297 2002-09-18 Michael Snyder <msnyder@redhat.com>
4298
4299 Contributed by Apple Computer, Inc. Merged with current sources
4300 by Adam Fedor <fedor@doc.com> [cagney].
4301
4302 * objc-lang.c: First clean-up round: comments, indentation.
4303 * objc-lang.h: Ditto.
4304 * objc-lang.y: Ditto.
4305
4306 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4307
4308 * maint.c (maintenance_internal_error): Print the parameter as the
4309 error message.
4310 (maintenance_internal_warning): New function.
4311 (_initialize_maint_cmds): Add command `maint internal-warning'.
4312
4313 * defs.h (internal_warning, internal_vwarning): Declare.
4314 * utils.c (struct internal_problem): Define.
4315 (internal_vproblem): New function.
4316 (internal_warning): New function.
4317 (internal_vwarning): New function.
4318 (internal_warning_problem, internal_error_problem): New variables.
4319 (internal_verror): Just call internal_vproblem.
4320
4321 2002-09-18 Michael Snyder <msnyder@redhat.com>
4322
4323 * objc-lang.c: New file, support for Objective-C.
4324 Preliminary check-in, not yet integrated into gdb.
4325 * objc-lang.h: New file.
4326 * objc-exp.y: New file.
4327
4328 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4329
4330 * infrun.c (signal_stop_update): Convert definition to ISO C.
4331 (signal_print_update): Ditto.
4332 (signal_pass_update): Ditto.
4333 * inflow.c (terminal_save_ours): Ditto.
4334
4335 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4336 comments.
4337
4338 * config/djgpp/fnchange.lst: Handle name clashes between
4339 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4340 bfd/coff-tic80.c.
4341
4342 * i386-linux-tdep.h: Fix tipo.
4343
4344 2002-09-18 Adam Fedor <fedor@gnu.org>
4345
4346 * MAINTAINERS: Add myself to the Write After Approval list.
4347
4348 2002-09-18 Jim Blandy <jimb@redhat.com>
4349
4350 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4351 texthigh and textlow to reader-specific structs caused
4352 objfile_relocate to miss them. This is fixable, but the work that
4353 the change was supposed to prepare GDB for never got done anyway.
4354
4355 2002-09-18 David Carlton <carlton@math.stanford.edu>
4356
4357 * MAINTAINERS: Alphabetize Write After Approval list.
4358
4359 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4360
4361 Fix PR gdb/709
4362 * values.c (value_static_field): Call read_var_value.
4363
4364 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4365
4366 * valops.c (hand_function_call): Align the initial stack pointer
4367 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4368 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4369 return value.
4370 * mips-tdep.c (mips_frame_align): New function.
4371 (mips_gdbarch_init): Set frame_align.
4372 * gdbarch.sh (FRAME_ALIGN): New method.
4373 * gdbarch.h, gdbarch.c: Re-generate.
4374
4375 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4376
4377 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4378 registers.
4379
4380 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4381
4382 * NEWS: Mention that MIPS $fp behavior changed.
4383 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4384 reference to FP_REGNUM.
4385 (mipsnbsd_cannot_store_register): Ditto.
4386 * mips-linux-nat.c: Update copyright.
4387 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4388 (mips_linux_cannot_store_register): Ditto.
4389 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4390 * config/mips/tm-mips.h: Update copyright.
4391 (FP_REGNUM): Delete macro.
4392 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4393 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4394 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4395 (mips_r3041_reg_names, mips_r3051_reg_names)
4396 (mips_r3081_reg_names): Replace "fp" with "".
4397 Fix PR gdb/480.
4398
4399 2002-09-17 Theodore A. Roth <troth@verinet.com>
4400
4401 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4402 generic_read_register_dummy() (PR gdb/703).
4403 (avr_push_return_address): #if 0 out unused vars.
4404 (avr_gdbarch_init): Enable use of avr_push_return_address().
4405
4406 2002-09-17 Michael Snyder <msnyder@redhat.com>
4407
4408 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4409 RTE will take care of it.
4410
4411 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4412
4413 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4414 invalid, return SP_REGNUM.
4415
4416 2002-09-17 Michael Snyder <msnyder@redhat.com>
4417
4418 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4419 point registers without sign extension.
4420
4421 2002-09-17 Andrew Cagney <cagney@redhat.com>
4422
4423 * blockframe.c (deprecated_read_register_dummy): Rename
4424 generic_read_register_dummy.
4425 * frame.c (frame_unwind_signed_register): New function.
4426 (frame_unwind_unsigned_register): New function.
4427 * frame.h (frame_unwind_signed_register): Declare.
4428 (frame_unwind_unsigned_register): Declare.
4429 (deprecated_read_register_dummy): Rename
4430 generic_read_register_dummy.
4431
4432 * h8300-tdep.c (h8300_frame_chain): Update.
4433 (h8300_frame_saved_pc): Update.
4434 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4435 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4436 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4437 (s390_frame_chain): Update.
4438 * v850-tdep.c (v850_find_callers_reg): Update.
4439 (v850_frame_saved_pc): Update.
4440 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4441 (m32r_find_callers_reg): Update.
4442 (m32r_frame_saved_pc): Update.
4443 * sh-tdep.c (sh_find_callers_reg): Update.
4444 (sh64_get_saved_pr): Update.
4445 (sh_init_extra_frame_info): Update.
4446 (sh_init_extra_frame_info): Update.
4447 (sh64_init_extra_frame_info): Update.
4448 (sh64_init_extra_frame_info): Update.
4449 * mcore-tdep.c (mcore_find_callers_reg): Update.
4450 (mcore_frame_saved_pc): Update.
4451 (mcore_init_extra_frame_info): Update.
4452 * i386-tdep.c (i386_frame_saved_pc): Update.
4453 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4454 (ia64_init_extra_frame_info): Update.
4455 (ia64_init_extra_frame_info): Update.
4456 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4457 * cris-tdep.c (cris_init_extra_frame_info): Update.
4458 * avr-tdep.c (avr_frame_chain): Update.
4459 (avr_init_extra_frame_info): Update.
4460 (avr_frame_saved_pc): Update.
4461 * arm-tdep.c (arm_find_callers_reg): Update.
4462 (arm_init_extra_frame_info): Update.
4463 (arm_frame_saved_pc): Update.
4464
4465 2002-09-17 Tom Tromey <tromey@redhat.com>
4466
4467 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4468 is "'".
4469
4470 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4471
4472 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4473 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4474 NEXT_PROLOGUE_INSN.
4475 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4476 NEXT_PROLOGUE_INSN.
4477
4478 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4479
4480 * osfsolib.c: Remove file, replaced by solib-osf.c.
4481 * Makefile.in: Remove compilation rules for osfsolib.c.
4482
4483 2002-09-16 David Carlton <carlton@math.stanford.edu>
4484
4485 * cp-valprint.c (cp_print_class_method): Correct args to
4486 check_stub_method_group.
4487
4488 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4489
4490 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4491 `set architecture'. Unify naming convention of functions.
4492 (h8300_skip_prologue): Improve prologue analysis.
4493 (h8300_push_arguments): Rewritten to more closely match GCC's
4494 bizarre argument-passing behavior, along with the comment describing
4495 said behavior.
4496 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4497 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4498 sim, remote-e7000.c, remote-hms.c and remote.c
4499
4500 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4501
4502 * i386-tdep.c (gdb_print_insn_i386): Removed.
4503 (i386_print_insn): New function.
4504 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4505 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4506 tm_print_insn_info.
4507
4508 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4509
4510 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4511 zero.
4512
4513 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4514
4515 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4516 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4517 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4518
4519 2002-09-13 Christopher Faylor <cgf@redhat.com>
4520
4521 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4522
4523 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4524
4525 * gdbtypes.c (check_stub_method): Make static.
4526 (check_stub_method_group): New function.
4527 * gdbtypes.h: Update prototypes.
4528 * cp-support.c: New file.
4529 * cp-support.h: New file.
4530
4531 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4532 (update_method_name_from_physname): New function.
4533 (read_member_functions): Correct method names for operators
4534 and v3 constructors/destructors. Separate v2 constructors and
4535 destructors.
4536 * Makefile.in (stabsread.o): Update dependencies.
4537 (SFILES): Add cp-support.c.
4538 (COMMON_OBS): Add cp-support.o.
4539 (cp_support_h, cp-support.o): Add.
4540
4541 * cp-valprint.c (cp_print_class_method): Call
4542 check_stub_method_group instead of check_stub_method. Remove
4543 extraneous QUITs.
4544 * p-valprint.c (pascal_object_print_class_method): Likewise.
4545 * valops.c (search_struct_method): Likewise.
4546 (find_method_list, value_struct_elt_for_reference): Likewise.
4547
4548 2002-09-13 Andrew Cagney <cagney@redhat.com>
4549
4550 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4551 * gdbarch.h, gdbarch.c: Regenerate.
4552
4553 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4554
4555 * frame.c (find_saved_register): Delete function.
4556 * frame.h (find_saved_register): Delete declaration.
4557 Fix PR gdb/631.
4558
4559 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4560
4561 * mips-tdep.c (read_next_frame_reg): Re-hack using
4562 frame_register_unwind.
4563
4564 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4565
4566 * mips-tdep.c (mips_get_saved_register): Re-hack using
4567 frame_register_unwind.
4568
4569 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4570
4571 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4572 vector. Will be useful for Interix.
4573 * gdbarch.h, gdbarch.c: Regenerate.
4574
4575 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4576 name of the malloc function by NAME_OF_MALLOC.
4577
4578 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4579
4580 * value.h (find_function_in_inferior): Add const keyword to
4581 one of the parameters. Allows us to invoke this function with
4582 a const char *.
4583 * valops.c (find_function_in_inferior): Likewise.
4584
4585 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4586
4587 * exec.c (xfer_memory): Fix compilation warning with old versions
4588 of GCC.
4589 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4590
4591 2002-09-12 David Carlton <carlton@math.stanford.edu>
4592
4593 * symtab.h: Run through gdb_indent.h.
4594 Add 2002 to Copyright year list.
4595
4596 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4597
4598 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4599 mach constants.
4600 * MAINTAINERS: Add myself to write after approval list.
4601
4602 2002-09-11 J. Brobecker <brobecker@gnat.com>
4603
4604 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4605
4606 2002-09-11 J. Brobecker <brobecker@gnat.com>
4607
4608 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4609 Interix.
4610
4611 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4612
4613 * procfs.c (do_detach): Clear current signal, not just fault.
4614 Corrects problem with breakpoint trap signal leaking to detached
4615 process on Tru64.
4616
4617 2002-09-10 Michael Snyder <msnyder@redhat.com>
4618
4619 * buildsym.c (finish_block): Protect against null pointer.
4620
4621 2002-09-10 Andrew Cagney <cagney@redhat.com>
4622
4623 * infcmd.c (default_print_registers_info): Send all output to
4624 ``file'' instead of ``gdb_stdout''.
4625
4626 2002-09-10 Michael Snyder <msnyder@redhat.com>
4627
4628 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4629 LONGEST, and use signed register read (addresses are sign-
4630 extended for mips).
4631
4632 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4633
4634 * event-loop.c (gdb_do_one_event): Make public.
4635 * event-loop.h (gdb_do_one_event): Declare.
4636
4637 2002-09-10 Jeff Law <law@redhat.com>
4638
4639 * infttrace.c (child_resume): Simplify and rework to avoid
4640 TT_PROC_CONTINUE.
4641
4642 2002-09-09 Fred Fish <fnf@intrinsity.com>
4643
4644 * printcmd.c (print_scalar_formatted): "len" is the number of
4645 target bytes, NOT the number of target bits.
4646
4647 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4648
4649 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4650 * top.c (init_main): Set rl_terminal_name.
4651
4652 2002-09-08 Aidan Skinner <aidan@velvet.net>
4653
4654 * ada-lang.c (ada_array_bound, ada_type_match,
4655 _initialize_ada_language): Fix K&R definitions.
4656 * ada-tasks.c (get_current_task): Fix K&R definitions.
4657 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4658
4659 2002-09-07 Christopher Faylor <cgf@redhat.com>
4660
4661 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4662 Add XP.
4663
4664 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4665
4666 * i386-tdep.c (i386_register_virtual_type,
4667 i386_register_convertible, i386_register_convert_to_virtual,
4668 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4669 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4670 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4671 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4672 Don't set push_arguments twice.
4673
4674 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4675 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4676 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4677 sigtramp_end to NULL.
4678 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4679 defines.
4680 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4681
4682 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4683 whitespace.
4684
4685 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4686 * gdbarch.h, gdbarch.c: Re-generate.
4687 * blockframe.c (find_pc_sect_partial_function): Convert to use
4688 SIGTRAMP_START_P predicate.
4689
4690 2002-09-05 Michael Snyder <msnyder@redhat.com>
4691
4692 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4693 generic_dummy_frame method and old method. Also distinguish
4694 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4695 (arm_extract_return_value): Use new regcache method.
4696
4697 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4698 adjustment that doesn't conform to the ABI.
4699 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4700 saved regcache, not from current regcache.
4701
4702 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4703
4704 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4705 * README: Update.
4706
4707 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4708
4709 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4710 if arm_apcs_32 is false.
4711
4712 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4713
4714 GDB 5.3 branch created.
4715
4716 2002-09-03 Theodore A. Roth <troth@verinet.com>
4717
4718 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4719 generic_unwind_get_saved_register.
4720
4721 2002-09-03 David Carlton <carlton@math.stanford.edu>
4722
4723 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4724 argument (PR gdb/653). Update call to smash_to_method_type.
4725 (read_structure_scope): Update call to dwarf2_add_member_fn.
4726
4727 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4728
4729 * x86-64-linux-tdep.c: Include gdb_string.h
4730 * x86-64-linux-nat.c: Ditto.
4731
4732 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4733
4734 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4735 when YYDEBUG is set to 1.
4736 * c-exp.y: Likewise.
4737 * f-exp.y: Likewise.
4738 * jv-exp.y: Likewise.
4739 * m2-exp.y: Likewise.
4740 * p-exp.y: Likewise.
4741
4742 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4743
4744 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4745 dependency list.
4746 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4747 solib_svr4_fetch_link_map_offsets to
4748 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4749 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4750 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4751 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4752 solib-svr4.o, and solib-legacy.o.
4753 * config/i386/tm-nbsd.h: Include solib.h.
4754
4755 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4756
4757 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4758 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4759 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4760 comment noting that this needs its own target configuration.
4761 * config/i386/nbsd.mt: New file.
4762 * config/i386/nbsdaout.mt: Remove.
4763 * config/i386/nbsdelf.mt: Ditto.
4764 * config/i386/tm-nbsdaout.h: Ditto.
4765
4766 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4767
4768 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4769 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4770 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4771 tdep->sigtramp_end.
4772 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4773 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4774 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4775
4776 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4777
4778 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4779 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4780 * i386-tdep.h (i386bsd_init_abi): New prototype.
4781 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4782 function declaration.
4783 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4784 for NetBSD-a.out or NetBSD-ELF.
4785 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4786 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4787 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4788 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4789 and nbsd-tdep.h.
4790 (i386nbsd_pc_in_sigtramp): New function.
4791 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4792 i386nbsd_pc_in_sigtramp.
4793 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4794 and i386nbsdelf_init_abi OS ABI handlers.
4795 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4796 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4797
4798 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4799
4800 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4801 registers if the target really has them.
4802
4803 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4804
4805 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4806 than nbsd-tdep.h.
4807
4808 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4809
4810 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4811 list.
4812 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4813 (alphanbsd_skip_sigtramp_frame): New functions.
4814 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4815 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4816 to alphanbsd_sigcontext_addr.
4817
4818 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4819
4820 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4821 list.
4822 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4823 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4824 nbsd_pc_in_sigtramp.
4825 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4826 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4827 * nbsd-tdep.c: Include gdb_string.h.
4828 (nbsd_pc_in_sigtramp): New function.
4829 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4830 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4831 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4832 ppcnbsd_pc_in_sigtramp.
4833 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4834 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4835 shnbsd_pc_in_sigtramp.
4836 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4837 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4838 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4839
4840 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4841
4842 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4843 watchpoints to NULL.
4844 (insert_breakpoints): set val field of watchpoints if NULL.
4845
4846
4847 2002-08-29 Jim Blandy <jimb@redhat.com>
4848
4849 * symtab.c (lookup_symbol_aux): In the cases where we find a
4850 minimal symbol of an appropriate name and use its address to
4851 select a symtab to read and search, use `name' (as passed to us)
4852 as the demangled name when searching the symtab's global and
4853 static blocks, not the minsym's name.
4854
4855 2002-08-29 Keith Seitz <keiths@redhat.com>
4856
4857 * stack.c (print_frame_info_base): Always set current_source_symtab
4858 and current_source_line.
4859
4860 2002-08-29 Donn Terry <donnte@microsoft.com>
4861
4862 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4863
4864 2002-08-28 Keith Seitz <keiths@redhat.com>
4865
4866 * stack.c (select_frame): Add FIXME concerning selected-frame
4867 events.
4868 (select_frame_command): Send selected-frame-level-changed
4869 event notification, but only if the level actually changed.
4870 (up_silently_base): Add selected-frame-level-changed event
4871 notification.
4872 (down_silently_base): Likewise.
4873
4874 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4875
4876 * Makefile.in: Update dependencies for all gdb/*.c files.
4877
4878 2002-08-27 Tom Tromey <tromey@redhat.com>
4879
4880 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4881 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4882 Update dependencies.
4883 * i387-tdep.c: Include gdb_string.h.
4884 * osabi.c: Likewise.
4885 * i386-linux-nat.c: Likewise.
4886 * lin-lwp.c: Likewise.
4887 * ax-gdb.c: Likewise.
4888 * signals/signals.c: Likewise.
4889 * jv-valprint.c: Likewise.
4890 * p-lang.c: Likewise.
4891 * c-valprint.c: Likewise.
4892 * cp-abi.c: Likewise.
4893
4894 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4895
4896 * cli/cli-script.h (copy_command_lines): Export.
4897 * breakpoint.c: Include cli/cli-script.h.
4898 * Makefile.in (breakpoint.o): Update dependencies.
4899
4900 2002-08-26 Michael Snyder <msnyder@redhat.com>
4901
4902 * breakpoint.c (insert_breakpoints): Protect all references
4903 to 'process_warning'. Shorten long lines.
4904
4905 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4906
4907 * cli/cli-script.c (copy_command_lines): New function.
4908 * defs.h (copy_command_lines): Export.
4909 * testsuite/gdb.base/commands.exp: New tests for commands
4910 attached to a temporary breakpoint, and for commands that
4911 delete the breakpoint they are attached to.
4912
4913 2002-08-26 Michael Snyder <msnyder@redhat.com>
4914
4915 * breakpoint.c (bpstat_stop_status): Instead of copying the
4916 pointer to the breakpoint commands struct, make a new copy
4917 of the struct and point to that.
4918 (bpstat_clear): Free the commands struct.
4919 (bpstat_clear_actions): Free the commands struct.
4920 (bpstat_do_actions): Free the command actions. Also execute
4921 the local cleanups, instead of deleting them.
4922 (delete_breakpoint): Leave the commands field of the bpstat
4923 chain alone -- it will be freed later.
4924
4925 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4926
4927 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4928 deleted in 2002-08-20 commit. This function is still used by
4929 ppc-linux-nat.c.
4930
4931 2002-08-26 Keith Seitz <keiths@redhat.com>
4932
4933 * gdb-events.sh: Add selected-frame-level-changed event.
4934 * gdb-events.c: Regenerated.
4935 * gdb-events.h: Regenerated.
4936
4937 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4938
4939 Fix PR gdb/393:
4940 * inflow.c (terminal_save_ours): New function to save terminal
4941 settings.
4942 * inferior.h (terminal_save_ours): Declare.
4943 * target.c (debug_to_terminal_save_ours): New function.
4944 (cleanup_target): Defaults to_terminal_save_ours.
4945 (update_current_target): Inherit to_terminal_save_ours.
4946 (setup_target_debug): Set to_terminal_save_ours.
4947 * target.h (target_terminal_save_ours): New to save terminal settings.
4948 (target_ops): New member to_terminal_save_ours.
4949 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4950 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4951 * inftarg.c (init_child_ops): Likewise.
4952 * m3-nat.c (init_m3_ops): Likewise.
4953 * procfs.c (init_procfs_ops): Likewise.
4954 * wince.c (init_child_ops): Likewise.
4955 * win32-nat.c (init_child_ops): Likewise.
4956 * sol-thread.c (init_sol_thread_ops): Likewise.
4957
4958 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4959
4960 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4961 use regcache_* functions.
4962 (i386_gdbarch_init): Set store_return_value instead of
4963 deprecated_store_return_value.
4964
4965 * regcache.c (regcache_raw_write_signed,
4966 regcache_raw_write_unsigned): New functions.
4967 * regcache.h (regcache_raw_write_signed,
4968 regcache_raw_write_unsigned): New prototypes.
4969
4970 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4971
4972 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4973 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4974 source file dependencies. Cleanup corresponding generator rules.
4975
4976 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4977
4978 * regcache.h (register_offset_hack): Declare.
4979 (regcache_cooked_read_using_offset_hack): Declare.
4980 (regcache_cooked_write_using_offset_hack): Declare.
4981
4982 * regcache.c (register_offset_hack): New function.
4983 (regcache_cooked_read_using_offset_hack): New function.
4984 (regcache_cooked_write_using_offset_hack): New function.
4985 (regcache_dump): Check that the registers, according to their
4986 offset, are packed hard against each other.
4987 (cooked_xfer_using_offset_hack): New function.
4988
4989 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4990
4991 * regcache.c (struct regcache_descr): Add field register_type.
4992 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4993 in as a parameter
4994 (init_regcache_descr): Initialize register_type. Pass the descr
4995 to init_legacy_regcache_descr. Use register_type instead of
4996 REGISTER_VIRTUAL_TYPE.
4997 (register_type): New function.
4998 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4999 * regcache.h (register_type): Declare.
5000
5001 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5002
5003 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5004 instead of deprecated_store_return_value. Fix fallout from
5005 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5006
5007 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5008
5009 * regcache.c (max_register_size): New function.
5010 (init_legacy_regcache_descr): Ensure that max_register_size is
5011 large enough for REGISTER_VIRTUAL_SIZE.
5012 * regcache.h (max_register_size): Declare.
5013
5014 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5015
5016 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5017 store_return_value.
5018 (e500_extract_return_value): Change type of valbuf pointer to
5019 void.
5020
5021 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5022
5023 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5024 workaround.
5025
5026 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5027 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5028 long long) to prevent compiler warning on 64-bit systems.
5029
5030 2002-08-23 Andrew Cagney <cagney@redhat.com>
5031
5032 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5033 (DEPRECATED_STORE_RETURN_VALUE): New method.
5034 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5035 * gdbarch.h, gdbarch.c: Re-generate.
5036
5037 * values.c (set_return_value): Pass current_regcache to
5038 STORE_RETURN_VALUE.
5039 * arch-utils.h (legacy_store_return_value): Declare.
5040 * arch-utils.c (legacy_store_return_value): New function.
5041 (legacy_extract_return_value): Update parameters.
5042
5043 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5044 STORE_RETURN_VALUE.
5045 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5046 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5047 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5048 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5049 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5050 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5051 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5052 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5053 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5054 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5055
5056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5057 * i386-tdep.c (i386_extract_return_value): Update.
5058 * arch-utils.c (legacy_extract_return_value): Update.
5059 * frv-tdep.c (frv_gdbarch_init): Update.
5060 * cris-tdep.c (cris_gdbarch_init): Update.
5061 * d10v-tdep.c (d10v_gdbarch_init): Update.
5062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5063 * m68k-tdep.c (m68k_gdbarch_init): Update.
5064 * mcore-tdep.c (mcore_gdbarch_init): Update.
5065 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5066 * s390-tdep.c (s390_gdbarch_init): Update.
5067 * sparc-tdep.c (sparc_gdbarch_init): Update.
5068 * sh-tdep.c (sh_gdbarch_init): Update.
5069 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5070 * v850-tdep.c (v850_gdbarch_init): Update.
5071 * avr-tdep.c (avr_gdbarch_init): Update.
5072 * ia64-tdep.c (ia64_gdbarch_init): Update.
5073 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5074 * vax-tdep.c (vax_gdbarch_init): Update.
5075 * alpha-tdep.c (alpha_gdbarch_init): Update.
5076 * arm-tdep.c (arm_gdbarch_init): Update.
5077 * mips-tdep.c (mips_gdbarch_init): Update.
5078 * i386-tdep.c (i386_gdbarch_init): Update.
5079
5080 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5081
5082 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5083 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5084
5085 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5086
5087 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5088 problems.
5089
5090 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5091
5092 * infrun.c (handle_inferior_event): Move a comment outside of a
5093 function call, in order to avoid indent reformatting this part
5094 of the code in an unreadable way.
5095
5096 2002-08-23 Grace Sainsbury <graces@redhat.com>
5097
5098 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5099 when breakpoints fail. Move general breakpoint error messages to
5100 insert_breakpoints.
5101 * breakpoint.c (insert_breakpoints): Change warnings when
5102 breakpoints are nto inserted to specify the type. Remove call to
5103 memory_error when hardware breakpoints can't be inserted. Remove
5104 multiple calls to warning so all messages are sent to the user at
5105 once.
5106 (delete_breakpoints): Make insert error messsages more explicit.
5107
5108 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5109
5110 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5111 gdbserver/ChangeLog.
5112
5113 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5114
5115 * i386-tdep.c: Include "objfiles.h".
5116 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5117 skip_trampoline_code.
5118 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5119 (CPLUS_MARKER): Define to '.'.
5120
5121 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5122 member.
5123 (linux_corefile_thread_callback): Increase args->num_notes.
5124 (linux_make_note_section): Initialize thread_args.num_notes, and
5125 use it to determine whether notes for any threads were created.
5126
5127 2002-08-23 Donn Terry <donnte@microsoft.com>
5128
5129 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5130 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5131 and PCUNKILL.
5132 (write_with_trace): Conditionalize out the switch branch handling
5133 PCSHOLD if the corresponding macro is not defined. Likewise for
5134 PRSABORT and PRSTOP.
5135 This change will be needed by the Interix port.
5136
5137 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5138
5139 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5140 write_register wherever possible instead of manipulating the
5141 register bytes directly.
5142 Assign VALUE_CONTENTS to a variable and use that.
5143 The GPR numbers are now dependent on the architecture.
5144
5145 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5146
5147 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5148 ev_offset fields.
5149 (skip_prologue): Add support for BookE/e500 instructions.
5150 (e500_extract_return_value): New function.
5151 (frame_get_saved_regs): Add support for saving ev registers and
5152 pseudo gpr's.
5153 (e500_store_return_value): New function.
5154 (rs6000_gdbarch_init): Move up default intializations of
5155 deprecated_extract_return_value and store_return_value. Overwrite
5156 init of store_return_value with e500 specific version.
5157 Set extract_return_value for e500.
5158
5159 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5160
5161 * blockframe.c (generic_call_dummy_register_unwind): Use
5162 regcache_cooked_read to catch cases in which the variable is
5163 stored in a pseudo register.
5164
5165 2002-08-22 Andrew Cagney <cagney@redhat.com>
5166
5167 * NEWS: Mention that the i960 has been made obsolete.
5168 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5169 i960-tdep.c
5170 (remote-nrom.o): Obsolete target.
5171 (remote-nindy.o, i960-tdep.o): Ditto.
5172 * remote-nrom.c: Make file obsolete.
5173 * remote-nindy.c, remote-vx960.c: Ditto.
5174 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5175 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5176 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5177 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5178 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5179 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5180 i960-*-vxworks* obsolete.
5181 * MAINTAINERS: Note that the i960 is obsolete.
5182
5183 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5184
5185 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5186 detach to allow reinitialization.
5187
5188 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5189
5190 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5191 attempt).
5192
5193 2002-08-22 Jim Blandy <jimb@redhat.com>
5194
5195 * coffread.c (coff_symfile_read): Don't try to read the line
5196 number table from disk if the image file doesn't have a symbol
5197 table; we'll never actually look at the info anyway, and Windows
5198 ships DLL's with bogus file offsets for the line number data.
5199
5200 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5201
5202 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5203 an e500 executable.
5204
5205 2002-08-21 Michael Snyder <msnyder@redhat.com>
5206
5207 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5208 (MSYMBOL_SIZE): Replace macro with function.
5209 (DEFAULT_MIPS_TYPE): Delete unused macro.
5210 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5211 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5212
5213 2002-08-21 Jim Blandy <jimb@redhat.com>
5214
5215 * valops.c (value_cast): Simplify and correct logic for doing a
5216 static cast from a pointer to a base class to a pointer to a
5217 derived class.
5218
5219 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5220
5221 * infcmd.c (default_print_registers_info): Replace
5222 do_registers_info.
5223 (registers_info): Use gdbarch_print_registers_info instead of
5224 DO_REGISTERS_INFO.
5225 * inferior.h (default_print_registers_info): Replace
5226 do_registers_info.
5227 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5228 (DO_REGISTERS_INFO): Change to a predicate function.
5229 * gdbarch.h, gdbarch.c: Regenerate.
5230
5231 2002-08-21 Keith Seitz <keiths@redhat.com>
5232
5233 * gdb-events.sh: Add target-changed event.
5234 * gdb-events.c: Regenerated.
5235 * gdb-events.c: Regenerated.
5236 * valops.c (value_assign): Add target-changed event notification
5237 to inlval_register, lval_memory, and lval_reg_frame_relative.
5238
5239 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5240
5241 * NEWS: Add an entry regarding the improvement of the next/step
5242 operation on Alpha Tru64 multi-processor machines.
5243
5244 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5245
5246 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5247 directores.
5248 * Makefile.in: Update all _h macro definitions.
5249 * Makefile.in (install-gdbtk): Move to install section.
5250 (rdi-share/libangsd.a): Move to end of file.
5251
5252 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5253
5254 * frame.c (frame_register_unwind): When a register, set addrp to
5255 the register's byte.
5256
5257 2002-08-20 Michael Snyder <msnyder@redhat.com>
5258
5259 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5260 used locally, so move them from the target machine header to here.
5261 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5262 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5263 Make static.
5264 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5265
5266 2002-08-20 Andrew Cagney <cagney@redhat.com>
5267
5268 * NEWS: Mention that the Apollo line was made obsolete.
5269 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5270 m68*-hp-hpux* obsolete.
5271 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5272 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5273 * buildsym.c (make_blockvector): Make static.
5274 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5275 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5276 (ALLDEPFILES): Remove dstread.c.
5277 (dstread.o): Obsolete make rule.
5278 * dstread.c: Makefile obsolete.
5279 * dst.h: Ditto.
5280 * config/m68k/hp300hpux.mt: Ditto.
5281 * config/m68k/hp300hpux.mh: Ditto.
5282 * config/m68k/hp300bsd.mt: Ditto.
5283 * config/m68k/hp300bsd.mh: Ditto.
5284 * config/m68k/apollo68b.mt: Ditto.
5285 * config/m68k/apollo68v.mh: Ditto.
5286 * config/m68k/apollo68b.mh: Ditto.
5287
5288 2002-08-20 Michael Snyder <msnyder@redhat.com>
5289
5290 * mips-tdep.c (mips_in_return_stub): Make static.
5291 (mips_gdbarch_init): Set in_solib_return_trampoline.
5292 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5293
5294 2002-08-20 Michael Snyder <msnyder@redhat.com>
5295
5296 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5297 * gdbarch.c, gdbarch.h: Regenerate.
5298 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5299 Add.
5300 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5301
5302 2002-08-20 Michael Snyder <msnyder@redhat.com>
5303
5304 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5305 (mips_gdbarch_init): Set skip_trampoline_code,
5306 in_solib_call_trampoline.
5307 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5308 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5309
5310 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5311
5312 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5313
5314 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5315 vector type for ev registers.
5316 (e500_pseudo_register_read): New function.
5317 (e500_pseudo_register_write): New function.
5318 (e500_dwarf2_reg_to_regnum): New function.
5319 (PPC_UISA_NOFP_SPRS): New macro.
5320 (PPC_EV_REGS): New macro.
5321 (PPC_GPRS_PSEUDO_REGS): New macro.
5322 (registers_e500): New register set for e500.
5323 (variants): Add e500 variant.
5324 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5325 before setting architectural dependent variations. Initialize ev
5326 registers numbers. Add case for e500 architecture. Set the
5327 number of pseudo registers.
5328
5329 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5330
5331 * rs6000-tdep.c: Clean up comments.
5332
5333 2002-08-20 Andrew Cagney <cagney@redhat.com>
5334
5335 * h8300-tdep.c: Re-indent file.
5336
5337 2002-08-20 Jim Blandy <jimb@redhat.com>
5338
5339 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5340 default for this.
5341
5342 2002-08-20 Keith Seitz <keiths@redhat.com>
5343
5344 * breakpoints.c (watch_command_1): Use internal breakpoint
5345 when setting a watchpoint_scope breakpoint.
5346
5347 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5348
5349 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5350 (build_builtin_type_vec64i): Ditto.
5351 (build_builtin_type_vec128): Ditto.
5352 (build_builtin_type_vec128i): Ditto.
5353
5354 2002-08-19 Michael Snyder <msnyder@redhat.com>
5355
5356 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5357 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5358 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5359 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5360 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5361 CALL_DUMMY_ADDRESS): Delete.
5362 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5363 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5364 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5365 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5366 push_return_address.
5367 (mips_register_raw_size, mips_eabi_use_struct_convention,
5368 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5369 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5370 mips_init_extra_frame_info, mips_eabi_push_arguments,
5371 mips_n32n64_push_arguments, mips_push_return_address,
5372 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5373 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5374
5375 2002-08-19 Michael Snyder <msnyder@redhat.com>
5376
5377 * mips-tdep.c (mips_frame_num_args): New function.
5378 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5379 frame_saved_pc, frame_args_address, frame_locals_address,
5380 frame_num_args, and frame_args_skip.
5381 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5382 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5383 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5384 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5385
5386 2002-08-20 Michael Snyder <msnyder@redhat.com>
5387
5388 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5389 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5390 * mips-tdep.c (mips_store_struct_return): New function.
5391 (mips_extract_struct_value_address): New function.
5392 (mips_gdbarch_init): Set store_struct_return and
5393 extract_struct_value_address.
5394
5395 2002-08-20 David Carlton <carlton@math.stanford.edu>
5396
5397 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5398 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5399 (read_file_scope): Check that line_header is nonzero before
5400 decoding macro information.
5401
5402 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5403
5404 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5405 flag the general-purpose registers as floating-point on targets
5406 that don't support the floating-point registers.
5407
5408 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5409
5410 * rs6000-tdep.c (altivec_register_p): Delete.
5411 (rs6000_do_altivec_registers): Delete.
5412 (rs6000_altivec_registers_info): Delete.
5413 (rs6000_do_registers_info): Delete.
5414 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5415 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5416
5417 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5418
5419 * infcmd.c (do_registers_info): Print vector registers in hex
5420 format only.
5421 (print_vector_info): Check that printing registers
5422 makes sense.
5423 (print_float_info): Ditto.
5424
5425 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5426
5427 * mips-tdep.c (mips_gdbarch_init): Update.
5428 (mips_o32_extract_return_value): Rewrite.
5429 (mips_o32_store_return_value): Rewrite.
5430 (mips_o32_xfer_return_value): New function.
5431 (mips_xfer_register): Tweak debug print message. Allow for
5432 buf_offset when dumping the value transfered.
5433
5434 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5435
5436 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5437 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5438 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5439 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5440 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5441
5442 2002-08-14 Michael Snyder <msnyder@redhat.com>
5443
5444 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5445
5446 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5447
5448 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5449 register.
5450 (P): New macro to define a register as a pseudo register.
5451 (R, R4, R8, R16, FR32, R64, R0): Updated.
5452 (struct variant): Add new fields for number of pseudo registers
5453 and number of total registers.
5454 (tot_num_registers): New macro replacing....
5455 (num_registers): ...deleted macro.
5456 (num_registers): New function.
5457 (num_pseudo_registers): New function.
5458 (variants): Update all variants to intialize new fields correctly.
5459 Postpone initialization of number of pseudo regs and real regs.
5460 (init_variants): New function.
5461 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5462 registers offsets.
5463
5464 2002-08-19 David Carlton <carlton@math.stanford.edu>
5465
5466 * valops.c (search_struct_field): Change error message to treat
5467 return value of 0 from value_static_field as meaning that field is
5468 optimized out.
5469 (value_struct_elt_for_reference): Ditto.
5470 * values.c (value_static_field): Treat an unresolved location the
5471 same as a nonexistent symbol. Fix PR gdb/635.
5472 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5473 enclosed. Fix PR gdb/574.
5474 * MAINTAINERS: Add self to Write After Approval list.
5475
5476 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5477
5478 * mips-tdep.c (mips_xfer_register): New function.
5479 (mips_n32n64_extract_return_value): Rewrite.
5480 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5481 instead of deprecated_extract_return_value.
5482
5483 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5484
5485 * rs6000-tdep.c (TDEP): Delete macro.
5486 (branch_dest): Replace use of TDEP macro with its body.
5487 (rs6000_pop_frame): Ditto.
5488 (rs6000_push_arguments): Ditto.
5489 (rs6000_skip_trampoline_code): Ditto.
5490 (rs6000_frame_saved_pc): Ditto.
5491 (rs6000_frame_chain): Ditto.
5492 (rs6000_register_name): Ditto.
5493 (rs6000_register_byte): Ditto.
5494 (rs6000_register_raw_size): Ditto.
5495 (rs6000_register_virtual_type): Ditto.
5496 (rs6000_register_convertible): Ditto.
5497 (rs6000_convert_from_func_ptr_addr): Ditto.
5498
5499 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5500
5501 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5502 conditionally.
5503 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5504 MIPS_LINUX_JB_ELEMENT_SIZE.
5505 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5506 for MAX_REGISTER_RAW_SIZE arrays.
5507 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5508 MIPS_LINUX_JB_ELEMENT_SIZE.
5509
5510 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5511
5512 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5513
5514 2002-08-19 Aidan Skinner <aidan@velvet.net>
5515
5516 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5517 ada-valprint.c ada-tasks.c.
5518 (YYFILES): Add ada-exp.y.
5519 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5520 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5521 (ada-exp.tab.o): New target.
5522
5523 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5524
5525 * regcache.c (regcache_xfer_part): New function.
5526 (regcache_raw_read_part): New function.
5527 (regcache_raw_write_part): New function.
5528 (regcache_cooked_read_part): New function.
5529 (regcache_cooked_write_part): New function.
5530 * regcache.h (regcache_raw_read_part): Declare.
5531 (regcache_raw_write_part): Declare.
5532 (regcache_cooked_read_part): Declare.
5533 (regcache_cooked_write_part): Declare.
5534
5535 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5536
5537 * remote.c (remote_open_1): Add async_p.
5538 (remote_async_open_1): Delete.
5539 (open_remote_target): Delete.
5540 (remote_open, extended_remote_open): Update calls to remote_open_1.
5541 (remote_async_open, extended_remote_async_open): Call
5542 remote_open_1 instead of remote_async_open_1.
5543
5544 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5545
5546 * blockframe.c: Fix a few coding standard violations.
5547
5548 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5549
5550 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5551 here from ...
5552 * config/i386/tm-i386sco5.h: ... here. File removed.
5553 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5554
5555 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5556 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5557 (TM_FILE): Set to tm-i386.h.
5558 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5559 * config/i386/tm-i386v.h: Remove file.
5560 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5561 instead of "i386/tm-i386v.h".
5562 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5563 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5564 "i386/tm-i386v.h".
5565 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5566 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5567 "i386/tm-i386.h".
5568
5569 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5570
5571 * config/i386/nm-i386v.h: Add protection against
5572 multiple-inclusion.
5573 (i386_register_u_addr): Remove prototype.
5574 (register_u_addr): New prototype.
5575 (REGISTER_U_ADDR): Redefine accordingly.
5576 * i386v-nat.c: Improve several comments.
5577 (i386_register_u_addr): Change signature and rename to
5578 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5579 ubase variable.
5580
5581 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5582
5583 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5584 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5585 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5586 deprecated_extract_return_value.
5587 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5588 rename mips_o32o64_push_arguments.
5589 (mips_gdbarch_init): Update.
5590 (mips_extract_return_value): Delete.
5591 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5592 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5593 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5594 (mips_n32n64_extract_return_value): Clone
5595 mips_extract_return_value.
5596 (mips_store_return_value): Delete.
5597 (mips_o32_store_return_value): Clone mips_store_return_value.
5598 (mips_o64_store_return_value): Clone mips_store_return_value.
5599 (mips_eabi_store_return_value): Clone mips_store_return_value.
5600 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5601
5602 2002-08-18 Aidan Skinner <aidan@velvet.net>
5603
5604 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5605 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5606
5607 2002-08-18 Aidan Skinner <aidan@velvet.net>
5608
5609 * ada-lang.c: Run through gdb_indent.sh.
5610 * ada-lang.h: Run through gdb_indent.sh.
5611 * ada-tasks.c: Run through gdb_indent.sh.
5612 * ada-typeprint.c: Run through gdb_indent.sh.
5613 * ada-valprint.c: Run through gdb_indent.sh.
5614
5615 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5616
5617 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5618 ABI.
5619
5620 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5621
5622 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5623
5624 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5625 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5626
5627 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5628 write_register_gen instead of write_register_bytes.
5629
5630 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5631 i[3456]-*-osf1mk* configurations have been made obsolete.
5632 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5633 i[3456]86-*-osf1mk* hosts obsolete.
5634 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5635 targets obsolete.
5636 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5637 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5638 config/i386/i386m3.mt, config/i386/nm-m3.h,
5639 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5640 config/i386/i386mk.mh, config/i386/i386mk.mt,
5641 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5642 obsolete.
5643 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5644 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5645 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5646
5647 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5648
5649 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5650 (hppa_value_returned_from_stack): Declare.
5651 (hppa_extract_return_value): Declare.
5652 * config/pa/hppa.mt: New file.
5653 * configure.tgt: Recognize hppa*-*-*.
5654 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5655
5656 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5657
5658 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5659 comment.
5660
5661 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5662
5663 * top.c (gdb_rl_operate_and_get_next): Make sure
5664 operate-and-get-next functions correctly even when the history
5665 list is completely filled.
5666
5667 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5668
5669 * MAINTAINERS (Target Instruction Set Architectures): Rename
5670 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5671 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5672 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5673 already listed under Host/Native.
5674
5675 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5676 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5677 mips*-*-*.
5678
5679 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5680
5681 * config/ia64/ia64.mt: New file.
5682 * config/alpha/alpha.mt: New file.
5683 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5684 ia64-linux-gnu. Mention that ia64-elf is broken.
5685 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5686
5687 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5688
5689 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5690 generic_func_frame_valid instead of func_frame_valid.
5691
5692 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5693
5694 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5695 procfs appears to be broken when debugging on multi-processor
5696 machines. So enable software single stepping in order to avoid
5697 using the procfs interface to do next/step operations, using
5698 internal breakpoints instead.
5699
5700 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5701 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5702 make this pc address equal to the value it would have if the
5703 system stepping capability was used. Also set a new flag used
5704 to ensure that we don't readjust the PC one more time later.
5705
5706 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5707 address by DECR_PC_AFTER_BREAK when software single step is
5708 in use for this architecture, as this has already been taken
5709 care of in handle_inferior_event().
5710
5711 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5712
5713 * infrun.c (handle_inferior_event): Minor reformatting, to make
5714 a rather long condition expression easier to read.
5715
5716 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5717
5718 * Makefile.in (gdbtk.o): Move to end of file.
5719 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5720 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5721 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5722 (gdbtk-wrapper.o, gdbres.o): Ditto.
5723
5724 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5725
5726 * Makefile.in (copying.o): Separate out compile rule.
5727 (hpux-thread.o, procfs.o, signals.o): Ditto.
5728 (v850ice.o, z8k-tdep.o): Ditto.
5729 (tui-file.o): Move to TUI section.
5730 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5731 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5732
5733 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5734
5735 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5736 skip_trampoline_code, for better namespace-proofing.
5737
5738 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5739
5740 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5741
5742 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5743
5744 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5745
5746 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5747 signal, check whether we hit a breakpoint before checking for a
5748 single step breakpoint. Otherwise, GDB fails to notice that a
5749 breakpoint has been hit when stepping onto a breakpoint.
5750
5751 2002-08-16 Keith Seitz <keiths@redhat.com>
5752
5753 * gdb-events.sh (clear_gdb_event_hooks): New function.
5754 * gdb-events.c: Regenerate.
5755 * gdb-events.h: Regenerate.
5756
5757 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5758
5759 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5760 not_a_sw_breakpoint.
5761 * breakpoint.h (bpstat_stop_status): Add parameter names.
5762
5763 2002-08-16 Grace Sainsbury <graces@redhat.com>
5764
5765 * remote.c (remote_insert_hw_breakpoint)
5766 (remote_remove_hw_breakpoint): Fix calculation of length field
5767 for Z-packet.
5768
5769 2002-08-15 Michael Snyder <msnyder@redhat.com>
5770
5771 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5772 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5773 (supply_fpregset): Ditto.
5774
5775 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5776 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5777 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5778 (TARGET_READ_SP): Delete.
5779 (DO_REGISTERS_INFO): Delete.
5780 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5781 Delete.
5782 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5783 from macros to functions.
5784
5785 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5786 (mips_register_convertible, mips_register_convert_to_virtual,
5787 mips_register_convert_to_raw): Make static.
5788 (mips_read_sp): New function.
5789 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5790 (mips_do_registers_info): Make static.
5791 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5792 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5793 (mips_register_convert_from_type, mips_register_convert_to_type):
5794 New functions.
5795 (mips_gdbarch_init): Set up function_start_offset,
5796 register_virtual_size, pc_in_sigtramp.
5797
5798 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5799
5800 * infcmd.c (vector_info): New function.
5801 (_initialize_infcmd): Add command "info vector".
5802 (print_vector_info): New function.
5803
5804 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5805 * gdbarch.h, gdbarch.c: Regenerate.
5806
5807 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5808
5809 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5810 ``print_all''. Only print vector registers when ``print_all''.
5811
5812 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5813
5814 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5815 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5816
5817 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5818 Add `args' parameter.
5819 * gdbarch.h, gdbarch.c: Regenerate.
5820
5821 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5822
5823 * infcmd.c (float_info): Call print_float_info.
5824 (print_float_info): New function. By default, print the
5825 floating-point registers.
5826
5827 * arch-utils.h (default_print_float_info): Delete declaration.
5828 * arch-utils.c (default_print_float_info): Delete function.
5829
5830 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5831
5832 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5833 out define.
5834
5835 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5836 FRAME.
5837
5838 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5839 * configure.host: Make i[3456]86-*-aix host obsolete.
5840 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5841 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5842 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5843 config/i386/xm-i386aix.h: Make files obsolete.
5844 * i386aix-nat.c: Make file obsolete.
5845 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5846 (i386aix-nat.o): Make target obsolete.
5847
5848 * config/i386/nm-gnu.h: Removed.
5849 * config/i386/nm-i386gnu.h: New file.
5850 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5851 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5852 Moved here from ...
5853 * config/i386/tm-i386gnu.h: ... here. Removed.
5854 * config/i386/xm-i386gnu.h: Removed.
5855 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5856 (NAT_FILE): Set to nm-i386gnu.h.
5857 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5858 * i386-tdep.c: New file.
5859 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5860 (i386gnu-tdep.o): Specify dependencies.
5861
5862 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5863
5864 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5865 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5866 Adjust a few comments to reflect reality a bit closer.
5867 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5868 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5869 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5870 target_insert_watchpoint, target_remove_watchpoint):
5871 Move defines to ...
5872 * config/i386/nm-i386sco5.h: ... here.
5873 (kernel_u_size): Add prototype. Improve a few comments and add
5874 protection against multiple inclusion.
5875
5876 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5877 out define.
5878
5879 * uw-thread.c (SP_ARG0): Define if not already defined.
5880 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5881
5882 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5883
5884 * config/i386/tm-i386.h: Don't include "regcache.h".
5885
5886 * i387-tdep.h (i387_print_float_info): New prototype.
5887 * i387-tdep.c (print_i387_value, print_i387_ext,
5888 print_i387_status_word, print_i387_control_word): Add `struct
5889 ui_file *' argument and use it for output.
5890 (i387_print_float_info): Renamed from i387_float_info. Add
5891 `struct gdbarch *' and `struct ui_file *' arguments and use the
5892 latter for output.
5893 * i386-tdep.c: Include "i387-tdep.h".
5894 (i386_gdbarch_init): Set print_float_info.
5895 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5896 (FLOAT_INFO): Remove define.
5897
5898 2002-08-13 Michael Snyder <msnyder@redhat.com>
5899
5900 * mips-tdep.c (mips_push_arguments): Rename to
5901 mips_eabi_push_arguments, and tune for EABI.
5902 (MIPS_REGS_HAVE_HOME_P): Delete.
5903 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5904 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5905 Delete references to mips_regs_have_home_p.
5906
5907 2002-08-14 Keith Seitz <keiths@redhat.com>
5908
5909 * Makefile.in (install-gdbtk): Create insight plugin directory.
5910 Install plugins.tcl file.
5911
5912 2002-08-14 Keith Seitz <keiths@redhat.com>
5913
5914 * configure.in: Move SUBDIRS to near top of the file so that
5915 --enable options may add things to it.
5916 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5917 * configure: Regenerate.
5918
5919 2002-08-13 Michael Snyder <msnyder@redhat.com>
5920
5921 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5922 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5923 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5924
5925 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5926
5927 * vax-tdep.c (vax_get_saved_register): Delete function.
5928 (vax_gdbarch_init): Update.
5929 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5930 (ns32k_gdbarch_init): Update.
5931 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5932 (alpha_gdbarch_init): Update.
5933
5934 2002-08-13 Andrew Cagney <cagney@redhat.com>
5935
5936 * regcache.c (init_regcache_descr): Overallocate the
5937 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5938 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5939 nr_raw_registers.
5940 (set_register_cached): Add range checking assertions. Use
5941 current_regcache.
5942
5943 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5944
5945 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5946 numbers for MMX registers.
5947
5948 2002-08-13 Andrew Cagney <cagney@redhat.com>
5949
5950 * i386-tdep.c (i386_gdbarch_init): Use
5951 generic_unwind_get_saved_register.
5952
5953 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5954
5955 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5956 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5957 target vector.
5958 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5959 Delete. Add comment regarding this now-deleted target method.
5960
5961 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5962
5963 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5964 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5965 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5966 real PC and the page number (if it's within the memory bank window).
5967 (m68hc11_pseudo_register_write): Likewise when saving.
5968 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5969 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5970 (m68hc11_register_raw_size): And use 32-bit for it.
5971 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5972 16K memory bank is used by the prog; also use the virtual pc.
5973
5974 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5975
5976 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5977 (m68hc11_gdbarch_init): Install it in gdbarch.
5978 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5979 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5980 (MSYMBOL_SIZE): New for documentation.
5981 (insn_return_kind): Enum to specify how a function returns.
5982 (frame_extra_info): Cleanup and record the return mode.
5983 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5984 register in address computation.
5985 (m68hc11_get_return_insn): New to obtain the return instruction used
5986 by the function.
5987 (m68hc11_frame_init_saved_regs): Take into account the return
5988 instruction used by the function for far and interrupt functions.
5989 (m68hc11_init_extra_frame_info): Take into account page register.
5990 (m68hc11_frame_args_address): Adjust according to the return mode.
5991 (show_regs): Print page register only when it's used.
5992
5993 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5994
5995 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5996 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5997 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5998 registers.
5999 (m68hc11_register_raw_size): Likewise.
6000
6001 2002-08-13 Andrew Cagney <cagney@redhat.com>
6002
6003 * i386-tdep.c (i386_register_name): Handle mmx registers.
6004 (mmx_regnum_p): New function.
6005 (i386_mmx_names): New array.
6006 (mmx_num_regs): New variable.
6007 (i386_pseudo_register_read): New function.
6008 (i386_pseudo_register_write): New function.
6009 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6010
6011 * regcache.c (regcache_raw_read_unsigned): New function.
6012 (regcache_raw_read_signed): New function.
6013 * regcache.h (regcache_raw_read_unsigned): Declare.
6014 (regcache_raw_read_signed): Declare.
6015
6016 2002-08-13 Andrew Cagney <cagney@redhat.com>
6017
6018 * regcache.c (regcache_raw_read_as_address): Delete function.
6019 (regcache_cooked_read_signed): New function.
6020 (regcache_cooked_read_unsigned): New function.
6021 * regcache.h (regcache_cooked_read_signed): Declare.
6022 (regcache_cooked_read_unsigned): Declare.
6023 (regcache_raw_read_as_address): Delete declaration.
6024
6025 * blockframe.c (generic_read_register_dummy): Use
6026 regcache_cooked_read_unsigned.
6027 * i386-tdep.c (i386_extract_struct_value_address): Use
6028 regcache_cooked_read_unsigned.
6029
6030 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6031
6032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6033 double sizes according to ELF ABI flags.
6034 (gdbarch_tdep): Record elf_flags.
6035
6036 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6037
6038 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6039 (m6812_prolog): They can appear in 68HC12 function prologue.
6040 (m68hc11_frame_chain): Cleanup.
6041
6042 2002-08-12 Andrew Cagney <cagney@redhat.com>
6043
6044 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6045 declarations.
6046 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6047 (i386_linux_register_raw_size): Delete function.
6048 (i386_linux_init_abi): Update.
6049 * i386-tdep.c (i386_register_raw_size): Delete function.
6050 (i386_register_byte): Delete function.
6051 (i386_gdbarch_init): Update.
6052 (i386_register_size): Delete array.
6053 (i386_register_offset): Delete array.
6054
6055 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6056 (REGISTER_RAW_SIZE): Delete macro.
6057 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6058 (REGISTER_BYTE): Delete macro.
6059
6060 2002-08-11 Aidan Skinner <aidan@velvet.net>
6061
6062 * ada-lang.c (ada_lookup_partial_symbol)
6063 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6064 prototype names so that grep ^func works properly.
6065
6066 * ada-lang.c (ada_array_element_type)
6067 (ada_lookup_partial_symbol): Fix typos in parameter list.
6068
6069 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6070 Fix prototype names so that grep ^func works properly.
6071
6072 2002-08-10 Andrew Cagney <cagney@redhat.com>
6073 Elena Zannoni <ezannoni@redhat.com>
6074 Martin M. Hunt <hunt@redhat.com>
6075
6076 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6077 (build_builtin_type_vec128i): Set the vector bit.
6078 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6079 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6080 (build_builtin_type_vec64): New function.
6081 (build_builtin_type_vec64i): New function.
6082 (build_gdbtypes): Initialize builtin_type_vec64 and
6083 builtin_type_vec64i.
6084
6085 2002-08-09 Andrew Cagney <cagney@redhat.com>
6086
6087 * regcache.c (regcache_dump): Compare the register offset
6088 with REGISTER_BYTE.
6089 * arch-utils.c (generic_register_byte): New function.
6090 * arch-utils.h (generic_register_byte): Declare.
6091 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6092 * gdbarch.h, gdbarch.c: Regenerate.
6093
6094 2002-08-09 Andrew Cagney <cagney@redhat.com>
6095
6096 * regcache.c: Include "gdbcmd.h"
6097 (_initialize_regcache): Add commands "maintenance print
6098 registers", "maintenance print raw-registers" and "maintenance
6099 print cooked-registers".
6100 (enum regcache_dump_what): Define.
6101 (dump_endian_bytes): New function.
6102 (regcache_dump): New function.
6103 (regcache_print): New function.
6104 (maintenance_print_registers): New function.
6105 (maintenance_print_raw_registers): New function.
6106 (maintenance_print_cooked_registers): New function.
6107 * Makefile.in (regcache.o): Update dependencies.
6108
6109 2002-08-09 Michael Snyder <msnyder@redhat.com>
6110
6111 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6112 (mips_push_arguments): Correct some comments. Use paddr_nz
6113 for printing addresses in debug output. Replace static
6114 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6115 (mips_n32n64_push_arguments): New function, cloned from
6116 mips_push_arguments and tuned for the n32/n64 ABI.
6117 (mips_push_register): Buffer needs dynamic allocation.
6118 (mips_print_register): Ditto.
6119 (do_gp_register_row): Ditto.
6120 (mips_store_return_value): Ditto.
6121 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6122
6123 2002-08-09 Don Howard <dhoward@redhat.com>
6124
6125 * memattr.c (mem_info_command): Print special case of upper bound
6126 as max CORE_ADDR + 1.
6127
6128 2002-08-08 Michael Snyder <msnyder@redhat.com>
6129
6130 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6131 returns structs by ref if they're too big to fit in two registers.
6132
6133 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6134
6135 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6136 saved regs value.
6137 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6138 mips_find_saved_regs().
6139 (mips_pop_frame): Likewise.
6140
6141 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6142
6143 * blockframe.c (frame_saved_regs_register_unwind): Revise
6144 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6145 frames are in use.
6146
6147 2002-08-09 Grace Sainsbury <graces@redhat.com>
6148
6149 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6150 T-packets; the 'a' is not taken as a register number.
6151 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6152 (remote_stopped_data_address): New functions; add to target
6153 vector.
6154 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6155 prototypes to match other implementations of this
6156 function. replace integer argument with pointer -- the length
6157 field in the Z-packet is the length of what is pointed to or 1 if
6158 pointer is null. Add to target vector.
6159 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6160 target vector.
6161
6162 From Mark Salter:
6163 * remote.c (remote_wait): Add support to extract optional
6164 watchpoint information from T-packet. Ignore unrecognized
6165 optional info in T-packet.
6166 (remote_async_wait): Ditto.
6167
6168 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6169
6170 * cli/cli-dump.c: Change fopen modes to use binary open modes
6171 as defined in include/fopen-bin.h throughout.
6172
6173 2002-08-08 Michael Snyder <msnyder@redhat.com>
6174
6175 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6176
6177 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6178
6179 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6180 assertion failure by returning early after a warning.
6181
6182 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6183
6184 * mips-tdep.c (mips_find_saved_regs): Make static.
6185 (mips_frame_init_saved_regs): New function.
6186 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6187 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6188 (mips_find_saved_regs): Delete declaration.
6189
6190 2002-08-08 Grace Sainsbury <graces@redhat.com>
6191
6192 * remote.c (remote_wait, remote_async_wait): Change
6193 thread_num from int to ULONGEST.
6194 (unpack_varlen_hex): Change result parameter from
6195 int * to ULONGEST *.
6196
6197 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6198
6199 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6200 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6201 powerpc*-*-*.
6202 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6203
6204 2002-08-08 Andrew Cagney <cagney@redhat.com>
6205
6206 * gcore.c (override_derive_stack_segment): Delete variable.
6207 (preempt_derive_stack_segment): Delete function.
6208 (derive_stack_segment): Delete function.
6209 (default_derive_stack_segment): Renamed to derive_stack_segment.
6210 (override_derive_heap_segment): Delete variable.
6211 (preempt_derive_heap_segment): Delete function.
6212 (derive_heap_segment): Delete function.
6213 (default_derive_heap_segment): Rename to derive_heap_segment.
6214
6215 2002-08-06 Michael Snyder <msnyder@redhat.com>
6216
6217 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6218 * mips-tdep.c (mips_EABI_use_struct_convention,
6219 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6220 New functions. (mips_use_struct_convention): Delete.
6221 (mips_gdbarch_init): set use_gdbarch_convention.
6222
6223 2002-08-06 Michael Snyder <msnyder@redhat.com>
6224
6225 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6226 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6227 mips_o32_reg_struct_has_addr): New functions.
6228 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6229
6230 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6231
6232 * regcache.c (pseudo_register): Delete function.
6233 (fetch_register): Delete function.
6234 (store_register): Delete function.
6235 (regcache_raw_read, legacy_read_register_gen): Use
6236 target_fetch_registers instead of fetch_register.
6237 (legacy_write_register_gen, regcache_raw_write): Use
6238 target_store_register instead of store_register.
6239 (write_register_bytes): Ditto.
6240
6241 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6242 (STORE_PSEUDO_REGISTER): Delete.
6243 * gdbarch.h, gdbarch.c: Regenerate.
6244
6245 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6246
6247 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6248 write dump file binary.
6249
6250 2002-08-05 Michael Snyder <msnyder@redhat.com>
6251
6252 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6253 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6254 (mips_gdbarch_init): Set N32 target to be mips64.
6255
6256 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6257
6258 * frame.c (find_saved_register): Break out of loop once saved
6259 register address is found. Don't mention sparc in loop comment
6260 anymore.
6261
6262 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6263
6264 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6265 mips_default_saved_regsize to 8.
6266
6267 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6268
6269 * gcore.c: Do not include <sys/procfs.h>.
6270 * Makefile.in (gcore.o): Update dependencies.
6271
6272 2002-08-06 Andrew Cagney <cagney@redhat.com>
6273
6274 * configure.tgt: Make arc-*-* obsolete.
6275 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6276 * MAINTAINERS: Make arc-elf obsolete.
6277 * arc-tdep.c: Make file obsolete.
6278 * config/arc/arc.mt: Ditto.
6279 * config/arc/tm-arc.h: Ditto.
6280
6281 2002-08-05 Theodore A. Roth <troth@verinet.com>
6282
6283 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6284
6285 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6286
6287 * mcore-tdep.c (mcore_gdbarch_init): Use
6288 generic_unwind_get_saved_register instead of
6289 generic_get_saved_register.
6290 * v850-tdep.c (v850_gdbarch_init): Ditto.
6291 * frv-tdep.c (frv_gdbarch_init): Ditto.
6292 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6293 * s390-tdep.c (s390_gdbarch_init): Ditto.
6294 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6295 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6296 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6297
6298 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6299
6300 * objfiles.h: Add missing #include "symfile.h"
6301
6302 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6303
6304 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6305
6306 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6307 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6308 of FIELD_BITSIZE.
6309
6310 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6311
6312 * NEWS: Cleanup and nitpick.
6313
6314 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6315
6316 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6317
6318 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6319
6320 * Makefile.in (gdbtk-bp.o): Update dependencies.
6321 (gdbtk-register.o): Ditto.
6322 (gdbtk-varobj.o): Ditto.
6323
6324 2002-08-03 Andrew Cagney <cagney@redhat.com>
6325
6326 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6327 m68hc11_fetch_pseudo_register.
6328 (m68hc11_pseudo_register_write): Replace
6329 m68hc11_store_pseudo_register.
6330 (m68hc11_gdbarch_init): Update.
6331
6332 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6333
6334 * gdbarch.sh: Include "gdb_string.h".
6335 * gdbarch.c: Regenerate.
6336
6337 * regcache.c: Include "gdb_string.h".
6338 * ax-general.c: Ditto.
6339 * varobj.c: Ditto.
6340 * std-regs.c: Ditto.
6341 * fbsd-proc.c: Ditto.
6342 * thread.c: Ditto.
6343
6344 * Makefile.in (regcache.o): Update dependencies.
6345 (thread.o, gdbarch.o): Ditto.
6346 (ax-general.o, gdbarch.o): Ditto.
6347 (varobj.o, std-regs.o): Ditto.
6348 (fbsd-proc.o): Specify dependencies.
6349
6350 2002-08-02 Andrew Cagney <cagney@redhat.com>
6351
6352 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6353 regnum.
6354 (regcache_cooked_write): Ditto.
6355
6356 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6357
6358 * regcache.c (regcache_cooked_read): New function.
6359 (regcache_cooked_write): New function.
6360 (read_register_gen): Rewrite using regcache_cooked_read.
6361 (write_register_gen): Rewrite using regcache_cooked_write.
6362
6363 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6364 Declare.
6365
6366 2002-08-02 Andrew Cagney <cagney@redhat.com>
6367
6368 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6369 Replace the architecture methods register_read and register_write.
6370 * gdbarch.h, gdbarch.c: Regenerate.
6371 * regcache.c (init_regcache_descr): Update.
6372 (read_register_gen): Update.
6373 (write_register_gen): Update.
6374 (supply_register): Update comment.
6375
6376 * sh-tdep.c (sh_gdbarch_init): Update.
6377 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6378 `regcache' and `gdbarch' parameters. Make `buffer' a void
6379 pointer. Update code.
6380 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6381 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6382 void pointer. Update code.
6383 (sh64_register_write): Delete.
6384 (sh4_register_read): Delete.
6385 (sh64_register_read): Delete.
6386 (sh4_register_write): Delete.
6387 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6388 void pointer, `to' parameter a void pointer.
6389 (sh_sh64_register_convert_to_raw): Ditto.
6390
6391 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6392
6393 * mips-tdep.c (mips_register_virtual_type): Use architecture
6394 invariant return values.
6395
6396 2002-08-01 Andrew Cagney <cagney@redhat.com>
6397
6398 * linux-proc.c: Include "gdb_string.h".
6399 * Makefile.in (linux-proc.o): Update dependency list.
6400
6401 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6402
6403 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6404 comment.
6405
6406 2002-08-01 Grace Sainsbury <graces@redhat.com>
6407
6408 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6409 to_insert_watchpoint, to_remove_watchpoint,
6410 to_stopped_by_watchpoint, to_stopped_data_address,
6411 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6412 target vecctor. Define their corresponding macros so they call
6413 them.
6414
6415 * target.c: Add default and debug versions of for
6416 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6417 to_insert_watchpoint, to_remove_watchpoint,
6418 to_stopped_by_watchpoint, to_stopped_data_address,
6419 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6420
6421 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6422
6423 * mips-tdep.c (mips_register_virtual_type): New function.
6424 (mips_gdbarch_init): Register mips_register_virtual_type()
6425 with gdbarch machinery.
6426 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6427 this file instead of tm-bigmips.h.
6428 (MIPS_REGSIZE): Delete this macro.
6429 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6430 multiarch version in mips-tdep.c will be found.
6431
6432 2002-08-01 Andrew Cagney <cagney@redhat.com>
6433
6434 * NEWS: Menion that CHILL has been made obsolete.
6435
6436 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6437 * stabsread.c (read_range_type): Ditto.
6438 * gdbtypes.h: Ditto.
6439 * language.c (binop_type_check): Ditto.
6440 (binop_result_type): Ditto.
6441 (integral_type): Ditto.
6442 (character_type): Ditto.
6443 (string_type): Ditto.
6444 (boolean_type): Ditto.
6445 (structured_type): Ditto.
6446 (lang_bool_type): Ditto.
6447 (binop_type_check): Ditto.
6448 * language.h (_LANG_chill): Ditto.
6449 * dwarfread.c (set_cu_language): Ditto.
6450 * dwarfread.c (CHILL_PRODUCER): Ditto.
6451 * dwarfread.c (handle_producer): Ditto.
6452 * expression.h (enum exp_opcode): Ditto.
6453 * eval.c: Ditto for comments.
6454 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6455 * expprint.c (print_subexp): Ditto.
6456 (print_subexp): Ditto.
6457 * valops.c (value_cast): Ditto.
6458 (search_struct_field): Ditto.
6459 * value.h (COERCE_VARYING_ARRAY): Ditto.
6460 * symfile.c (init_filename_language_table): Ditto.
6461 (add_psymbol_with_dem_name_to_list): Ditto.
6462 * valarith.c (value_binop): Ditto.
6463 (value_neg): Ditto.
6464 * valops.c (value_slice): Ditto.
6465 * symtab.h (union language_specific): Ditto.
6466 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6467 (SYMBOL_DEMANGLED_NAME): Ditto.
6468 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6469 * defs.h (enum language): Ditto.
6470 * symtab.c (got_symtab): Ditto.
6471 * utils.c (fprintf_symbol_filtered): Ditto.
6472
6473 * ch-typeprint.c: Make file obsolete.
6474 * ch-valprint.c: Make file obsolete.
6475 * ch-lang.h: Make file obsolete.
6476 * ch-exp.c: Make file obsolete.
6477 * ch-lang.c: Make file obsolete.
6478
6479 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6480 CHILL_LIB.
6481 (TARGET_FLAGS_TO_PASS): Ditto.
6482 (CHILLFLAGS): Obsolete.
6483 (CHILL): Obsolete.
6484 (CHILL_FOR_TARGET): Obsolete.
6485 (CHILL_LIB): Obsolete.
6486 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6487 ch-valprint.c.
6488 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6489 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6490 ch-lang.o.
6491 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6492 targets.
6493
6494 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6495
6496 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6497 This does not change anything at the moment, but will be helpful
6498 later when full Ada support is integrated.
6499
6500 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6501
6502 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6503 help message.
6504
6505 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6506
6507 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6508 and save it in a local variable. Use variable in later test.
6509
6510 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6511
6512 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6513 test. (Thanks to Daniel Jacobowitz.)
6514
6515 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6516
6517 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6518 (mips_abi_strings): Add "n64".
6519 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6520
6521 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6522
6523 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6524 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6525
6526 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6527
6528 * utils.c (host_pointer_to_address, address_to_host_pointer):
6529 Use gdb_assert() instead of explicit call to internal_error().
6530
6531 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6532
6533 * Makefile.in (rs6000-nat.o): Update dependencies.
6534
6535 From Nicholas Duffek:
6536 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6537 (aix-thread.o): New rule.
6538 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6539 * config/powerpc/aix432.mh: New file.
6540
6541 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6544 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6545 (fetch_core_registers, ppc_linux_supply_gregset)
6546 (ppc_linux_supply_fpregset): New functions.
6547 (ppc_linux_regset_core_fns): New.
6548 (_initialize_ppc_linux_tdep): Call add_core_fns.
6549 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6550 and ppc_linux_supply_gregset.
6551 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6552 (supply_fpregset): Call ppc_linux_supply_fpregset.
6553 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6554 corelow.o.
6555 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6556
6557 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6558
6559 * symtab.c (lookup_symbol): Demangle before lowercasing.
6560
6561 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6562
6563 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6564 declaration.
6565 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6566 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6567 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6568 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6569 "gdb_string.h".
6570 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6571 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6572 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6573 (avr-tdep.o, mon960-rom.o): Ditto.
6574 (aout_stabs_gnu_h): Define.
6575 (symtab_h): Remove $(gdb_obstack_h).
6576
6577 2002-07-30 Jim Blandy <jimb@redhat.com>
6578
6579 Patch from David Carlton <carlton@math.stanford.edu>:
6580 * gdbinit.in: Move the `dir' commands that add GDB's own source
6581 directory to the search path to the end, so that the `gdb' source
6582 directory will be searched first.
6583
6584 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6585
6586 * gdb_obstack.h: New file.
6587 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6588 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6589 * objfiles.h: Include "gdb_obstack.h".
6590 * Makefile.in (gdb_obstack_h): Define.
6591 (symtab_h): Add $(gdb_obstack_h).
6592 (objfiles_h): Add $(gdb_obstack_h).
6593
6594 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6595 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6596 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6597 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6598 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6599 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6600 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6601 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6602
6603 * Makefile.in (bcache.o): Update dependencies.
6604 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6605 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6606 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6607 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6608 (stabsread.o, symfile.o, symmisc.o): Ditto.
6609 (symtab.o, typeprint.o, macroexp.o): Ditto.
6610 (macrotab.o, mdebugread.o): Ditto.
6611 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6612 (coff_ecoff_h, aout_aout64_h): Define.
6613 (aout_stabs_gnu_h, libaout_h): Define.
6614
6615 2002-07-29 Andrew Cagney <cagney@redhat.com>
6616
6617 * regcache.c (struct regcache_descr): Rename nr_registers to
6618 nr_cooked_registers. Revise comments describing the structure
6619 member fields.
6620 (init_regcache_descr): Update.
6621 (init_legacy_regcache_descr): Update.
6622 (read_register_gen, write_register_gen): When a cooked register in
6623 the raw register range, directly access the value from the raw
6624 register cache.
6625
6626 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6627
6628 * z8k-tdep.c: Do not include "obstack.h".
6629 * h8300-tdep.c, h8500-tdep.c: Ditto.
6630 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6631 * valprint.c, v850-tdep.c: Ditto.
6632 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6633 * mn10200-tdep.c: Ditto.
6634
6635 * Makefile.in (z8k-tdep.o): Update dependencies.
6636 (m68hc11-tdep.o, valprint.o): Ditto.
6637 (v850-tdep.o, d10v-tdep.o): Ditto.
6638 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6639 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6640 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6641 (sh_opc_h, gdb_sim_sh_h): Define.
6642 (elf_sh_h, elf_bfd_h): Define.
6643 (opcode_m68hc11_h): Define.
6644 (OPCODES_SRC, OPCODES_DIR): define.
6645 (OPCODES): Use $(OPCODES_DIR).
6646 (gdb_sim_d10v_h): Rename sim_d10v_h.
6647 (gdb_sim_arm_h): Rename sim_arm_h.
6648
6649 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6650
6651 * utils.c (host_pointer_to_address, address_to_host_pointer):
6652 Change internal_error() message to indicate function responsible
6653 for the error.
6654
6655 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6656
6657 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6658 calls to local_hex_string_custom().
6659
6660 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6661
6662 * irix5-nat.c: Move IRIX shared library support from here...
6663 * solib-irix.c: ...to here. Revised substantially to work with
6664 generic solib framework.
6665
6666 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6667 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6668 * mips-irix-tdep.c: New file.
6669
6670 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6671 (mips-irix-tdep.o, solib-irix.o): New rules.
6672 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6673 solib-irix.o.
6674 * config/mips/irix6.mt (TDEPFILES): Likewise.
6675 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6676
6677 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6678
6679 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6680 disabled (via ``#if 0'') includes.
6681
6682 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6683
6684 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6685 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6686 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6687 Add support for the fpscr register.
6688 * rs6000-nat.c (regmap, fetch_inferior_registers)
6689 (store_inferior_registers, fetch_core_registers): Likewise.
6690
6691 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6692
6693 * rs6000-nat.c (language.h): Include.
6694 (special_regs): Delete this array.
6695 (regmap): New function.
6696 (fetch_register, store_register): Use regmap() to map gdb
6697 register numbers to ptrace register numbers. Also, use
6698 outputs from regmap() to make decisions regarding type of
6699 ptrace() call to make. In particular, don't compare against
6700 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6701 (fetch_inferior_registers, store_inferior_registers): Where
6702 possible, obtain register numbers from tdep struct. Don't
6703 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6704 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6705 (LAST_UISA_SP_REGNUM): Delete.
6706
6707 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6708
6709 * rs6000-nat.c (ppc-tdep.h): Include.
6710 (fetch_registers, store_register, fetch_core_registers): Don't
6711 access registers[] directly. Instead, use supply_register() or
6712 regcache_collect() as appropriate.
6713 (find_toc_address): Format hex address with local_hex_string().
6714
6715 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6716
6717 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6718 bfd/elf32-frv.c.
6719
6720 2002-07-24 Tom Tromey <tromey@redhat.com>
6721
6722 * jv-exp.y: Marked all strings with _().
6723 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6724 internal_error.
6725 (MethodInvocation, CastExpression, parse_number, yyerror,
6726 java_type_from_name, push_expression_name, yylex): Typo fixes.
6727
6728 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6729
6730 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6731 (tee_file_flush, tee_file_write, tee_file_fputs)
6732 (tee_file_isatty): New.
6733 * ui-file.h (tee_file_new): Add prototype.
6734
6735 2002-07-24 Aidan Skinner <aidan@velvet.net>
6736
6737 * ada-lang.c: Change k&r style function definitions to prototyped
6738 form.
6739 * ada-typeprint.c: Change k&r style function definitions to prototyped
6740 form.
6741 * ada-valprint.c: Change k&r style function definitions to prototyped
6742 form.
6743
6744 2002-07-24 Andrew Cagney <cagney@redhat.com>
6745
6746 * README: Remove reference to remote-bug.
6747 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6748 remote-bug.c.
6749 (m88k-nat.o): Delete rule.
6750 (m88k-tdep.o): Delete rule.
6751 (remote-bug.o): Delete rule.
6752 * MAINTAINERS: Mark as obsolete.
6753 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6754 * m88k-tdep.c: Make file obsolete.
6755 * config/m88k/m88k.mh: Ditto.
6756 * config/m88k/delta88v4.mh: Ditto.
6757 * config/m88k/delta88v4.mt: Ditto.
6758 * config/m88k/delta88.mt: Ditto.
6759 * config/m88k/delta88.mh: Ditto.
6760 * remote-bug.c: Ditto.
6761 * config/m88k/tm-delta88.h: Ditto.
6762 * config/m88k/nm-delta88v4.h: Ditto.
6763 * config/m88k/xm-delta88.h: Ditto.
6764 * config/m88k/xm-dgux.h: Ditto.
6765 * config/m88k/tm-m88k.h: Ditto.
6766 * config/m88k/nm-m88k.h: Ditto.
6767 * config/m88k/tm-delta88v4.h: Ditto.
6768 * m88k-nat.c: Ditto.
6769 * cxux-nat.c: Ditto.
6770 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6771 and m88*-*-* obsolete.
6772 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6773 m88*-*-* obsolete.
6774
6775 2002-07-24 Andrew Cagney <cagney@redhat.com>
6776
6777 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6778 constant. Same for local pointer variables.
6779 (extract_signed_integer): Ditto.
6780 * defs.h (extract_unsigned_integer): Update.
6781 (extract_signed_integer): Update.
6782
6783 2002-07-24 Andrew Cagney <cagney@redhat.com>
6784
6785 * regcache.c (regcache_raw_write): Change buf parameter to a
6786 constant void pointer.
6787 (regcache_raw_read): Change buf parameter to a void pointer.
6788 (legacy_write_register_gen): Change myaddr parameter a constant
6789 void pointer.
6790 (supply_register): Change val parameter to a const void pointer.
6791 * regcache.h (regcache_raw_write): Update declaration.
6792 (regcache_raw_read): Update declaration.
6793 (supply_register): Update declaration.
6794
6795 2002-07-24 Tom Tromey <tromey@redhat.com>
6796
6797 * defs.h (gdb_readline_wrapper): Declare.
6798 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6799 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6800 * top.c (gdb_readline_wrapper): New function.
6801 (command_line_input): Use it.
6802
6803 2002-07-24 Andrew Cagney <cagney@redhat.com>
6804
6805 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6806 regcache_read and regcache_write.
6807 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6808 * regcache.c: Update.
6809 * sh-tdep.c (sh64_push_arguments): Update comment.
6810 (sh_pseudo_register_read): Update.
6811 (sh_pseudo_register_write): Update.
6812 (sh4_register_read): Update.
6813 (sh4_register_write): Update.
6814 (sh64_pseudo_register_read): Update.
6815 (sh64_pseudo_register_write): Update.
6816 (sh64_register_read): Update.
6817 (sh64_register_write): Update.
6818 * i386-tdep.c (i386_extract_return_value): Update.
6819 (i386_extract_struct_value_address): Update.
6820 (i386_extract_return_value): Update.
6821 * blockframe.c (generic_read_register_dummy): Update.
6822 (generic_call_dummy_register_unwind): Update
6823 * infrun.c (write_inferior_status_register): Update.
6824
6825 2002-07-23 Jim Blandy <jimb@redhat.com>
6826
6827 * parser-defs.h (expression_context_pc): Make this extern.
6828 (Thanks to Michael Snyder.)
6829
6830 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6831
6832 GDB 5.2.1 released from 5.2 branch.
6833 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6834 * README: Update to mention 5.2.1.
6835
6836 2002-07-23 Mark Salter <msalter@redhat.com>
6837
6838 * remote.c (remote_read_bytes): Fix check for error.
6839
6840 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6841
6842 * aix-thread.c (language.h): Include.
6843 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6844 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6845 Print newlines at end of debug messages.
6846 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6847 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6848
6849 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6850
6851 * aix-thread.c (ppc-tdep.h): Include.
6852 (special_register_p): New function.
6853 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6854 (store_regs_user_thread): Use register number information from
6855 gdbarch_tdep struct instead of hardcoded offsets relative to
6856 FIRST_UISA_SP_REGNUM.
6857 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6858 special_register_p() instead of using FPLAST_REGNUM and
6859 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6860 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6861 will be MQ's register number.
6862
6863 2002-07-22 Michael Snyder <msnyder@redhat.com>
6864
6865 * aix-thread.c (ops): Rename to aix_thread_ops.
6866 (base_ops): Rename to base_target.
6867 (ops_attach): Rename to aix_thread_attach.
6868 (ops_detach): Rename to aix_thread_detach.
6869 (ops_resume): Rename to aix_thread_detach.
6870 (ops_wait): Rename to aix_thread_wait.
6871 (ops_kill): Rename to aix_thread_kill.
6872 (init_ops): Rename to init_aix_thread_ops.
6873 (ops_fetch_register): Rename to aix_thread_fetch_register.
6874 (ops_store_register): Rename to aix_thread_store_register.
6875 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6876 (ops_thread_alive): Rename to aix_thread_thread_alive.
6877 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6878 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6879 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6880 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6881 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6882 (store_regs_lib): Rename to store_regs_user_thread.
6883 (store_regs_kern): Rename to store_regs_kernel_thread.
6884
6885 2002-07-22 Michael Snyder <msnyder@redhat.com>
6886
6887 * aix-thread.c (ops_prepare_to_store): Eliminate.
6888 (init_ops): Don't initialize ops.prepare_to_store.
6889 (store_regs_kern): Pre-fetch register buffers from child,
6890 because some registers may not be in the cache. Copy
6891 regs from register cache only if they are cached.
6892 (store_regs_lib): Copy regs from register cache only
6893 if they are cached.
6894 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6895 fill_gprs64): Ditto.
6896
6897 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6898
6899 * aix-thread.c (gdb_assert.h): Include.
6900 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6901 register sizes (from register cache) match size of buffer holding
6902 register data.
6903 (fill_sprs32): Change parameter types to match those in the ptrace()
6904 buffer.
6905 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6906 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6907
6908 2002-07-22 Michael Snyder <msnyder@redhat.com>
6909
6910 * aix-thread.c (supply_sprs64): Cosmetic change.
6911 (supply_sprs32): Cosmetic change.
6912 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6913 (fill_sprs64): Use regcache_collect instead of read_register.
6914 (store_regs_lib): Use regcache_collect instead of
6915 read_register. Use fill_sprs32 instead of fill_sprs64,
6916 if debugging a 32-bit architecture.
6917 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6918 out of the register cache, instead of passing a pointer into
6919 the register cache directly to ptrace. Use regcache_collect
6920 insteaad of read_register.
6921 (ops_prepare_to_store): Use target_read_registers instead
6922 of read_register_bytes.
6923
6924 2002-07-20 Aidan Skinner <aidan@velvet.net>
6925
6926 * MAINTAINERS: Add self under write after approval.
6927
6928 2002-07-20 Aidan Skinner <aidan@velvet.net>
6929
6930 * ada-tasks.c: Change k&r style function definitions to prototyped
6931 form.
6932
6933 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6934
6935 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6936 * x86-64-tdep.c: Include "objfiles.h".
6937 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6938 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6939
6940 2002-07-17 Michal Ludvig <michal@suse.cz>
6941
6942 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6943 (update_context): Initialise cfa variable.
6944
6945 2002-07-17 Michael Snyder <msnyder@redhat.com>
6946
6947 * aix-thread.c: Shorten some long lines.
6948 Bring comments into line with code spec.
6949
6950 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6951
6952 * infrun.c: Re-indent using gdb_indent.sh.
6953
6954 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6955
6956 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6957 Leave the indentation temporarily untouched, to minimize the diffs.
6958
6959 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6960
6961 * stabsread.c: Make os9k sections of the code obsolete,
6962 for real this time.
6963 * stabsread.h: Make os9k sections of the code obsolete.
6964
6965 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6966
6967 * linux-low.c (regsets_store_inferior_registers): Add free()
6968 at the end of a loop to prevent memory leak.
6969 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6970 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6971 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6972 line a comment.
6973 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6974
6975 2002-07-17 Jim Blandy <jimb@redhat.com>
6976
6977 * macrocmd.c (info_macro_command): Remove newline from error
6978 message.
6979
6980 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6981
6982 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6983 (sh_gdbarch_init): Use it for sh-dsp.
6984
6985 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6986
6987 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6988 64-bit DWARF2 format.
6989
6990 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6991
6992 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6993 <sys/proc.h> when not available.
6994
6995 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6996
6997 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6998 * stabsread.c: Make os9k sections of the code obsolete.
6999 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7000 * config/i386/i386os9k.mt: Make file obsolete.
7001 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7002 (COMMON_OBS): Remove os9kread.o
7003 (SFILES): Remove os9kread.c.
7004 (os9kread.o, remote-os9k.o): Make target obsolete.
7005 * remote-os9k.c: Make file obsolete.
7006 * os9kread.c: Make file obsolete.
7007 * Makefile.in
7008
7009 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7010
7011 * NEWS: Mention that the FR30 has been made obsolete.
7012 * fr30-tdep.c: Make file obsolete.
7013 * config/fr30/tm-fr30.h: Ditto.
7014 * config/fr30/fr30.mt: Ditto.
7015 * configure.tgt: Make fr30-*-elf obsolete.
7016 * MAINTAINERS: Make fr30-elf obsolete.
7017
7018 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7019
7020 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7021 found is not inside a section.
7022
7023 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7024
7025 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7026 strerror().
7027 (pdc_realloc): Use xrealloc() instead of realloc().
7028
7029 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7030
7031 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7032 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7033 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7034 macros.
7035
7036 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7037
7038 * aix-thread.c (ptrace_check): Eliminate goto.
7039 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7040 problem.
7041
7042 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7043
7044 * aix-thread.c (gdbcmd.h): Include.
7045 (DEBUG, DBG, DBG2, dbg): Eliminate.
7046 (debug_aix_thread): New static global.
7047 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7048 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7049 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7050 invocations to DBG and DBG2 macros to test against
7051 ``debug_aix_thread'' and call fprintf_unfiltered().
7052 (_initialize_aix_thread): Add new command "set debug aix-thread".
7053
7054 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7055
7056 From Gerhard Tonn <TON@de.ibm.com>:
7057 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7058 instead of supply_register.
7059
7060 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7061
7062 * dwarf2cfi.c: Include "gdb_assert.h".
7063 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7064 non-NULL.
7065 (update_context): Do not use __func__. Add missing ``break''.
7066 (update_context): Do not use __func__.
7067
7068 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7069
7070 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7071 and its setting. Set gdbarch instruction printing functions
7072 directly. For non-rs6000 case use new function
7073 gdb_print_insn_powerpc.
7074 (gdb_print_insn_powerpc): New function.
7075
7076 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7077
7078 * NEWS: Mention that the d30v has been marked obsolete.
7079 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7080 * configure.tgt: Mark d30v-*-* as obsolete.
7081 * d30v-tdep.c: Mark file as obsolete.
7082 * config/d30v/d30v.mt: Ditto.
7083 * config/d30v/tm-d30v.h: Ditto.
7084
7085 2002-07-13 Aidan Skinner <aidan@velvet.net>
7086
7087 * ada-tasks.c (add_task_entry): replace calls to
7088 malloc() with xmalloc
7089 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7090
7091 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7092 ada_finish_decode_line_1, all_sals_for_line
7093 ada_breakpoint_rewrite): replace calls to free() with xfree()
7094
7095 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7096
7097 From Nicholas Duffek (with minor changes by Martin Hunt,
7098 Louis Hamilton, and Kevin Buettner):
7099 * aix-thread.c: New file.
7100
7101 2002-07-12 Petr Sorfa <petrs@caldera.com>
7102
7103 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7104 complaint for invalid attribute class or form.
7105 (read_func_scope): DW_AT_frame_base
7106 better handling of DW_AT_block*.
7107 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7108 better handling of DW_AT_block*.
7109 (read_common_block): DW_AT_location
7110 better handling of DW_AT_block*.
7111 (read_partial_die): DW_AT_location better handling
7112 of DW_AT_block*.
7113 (new_symbol): DW_AT_external better handling of
7114 DW_AT_block*. Proper initialization of variable
7115 "addr".
7116 (attr_form_is_block): New function that returns true
7117 if the attribute's form is of DW_FORM_block*.
7118
7119 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7120
7121 * valops.c (find_method_list): Remove comment about
7122 removed STATIC_MEMFUNCP argument.
7123 (value_find_oload_method_list): Likewise.
7124
7125 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7126
7127 From Nicholas Duffek:
7128 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7129 target_new_objfile_hook.
7130
7131 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7132
7133 From Nicholas Duffek:
7134 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7135 csect.
7136
7137 2002-07-12 Andrew Cagney <cagney@redhat.com>
7138
7139 * MAINTAINERS: Mention --enable-sim-build-warnings.
7140 (m68hc11-elf): Disable sim build warnings.
7141 (m32r-elf): Mark as broken obsolete candidate.
7142 (x86_64-linux-gnu): Mark as buildable with -Werror.
7143 (arm-elf): Change -w to ``,'' which enables warnings but not
7144 -Werror.
7145
7146 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7147
7148 * bcache.h: Update copyright.
7149 (struct bstring, struct bcache): Move definition to "bcache.c".
7150 Replaced by opaque declaration.
7151 (bcache_xfree): Replace free_bcache.
7152 (bcache_xmalloc, bcache_memory_used): Declare.
7153
7154 * bcache.c: Update copyright.
7155 (struct bstring, struct bcache): Moved to here from "bcache.h".
7156 Update comments.
7157 (bcache_xmalloc, bcache_memory_used): New functions.
7158 (bcache_xfree): Replace function free_bcache.
7159
7160 * Makefile.in (objfiles.o): Add $(bcache_h).
7161 (objfiles_h): Remove $(bcache_h).
7162 (symfile.o): Add $(bcache_h).
7163
7164 * symmisc.c: Update copyright.
7165 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7166 (print_objfile_statistics): Use bcache_memory_used.
7167
7168 * symfile.c: Include "bcache.h".
7169 (reread_symbols): Use bcache_xfree.
7170 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7171 (add_psymbol_to_list): Pass psymbol_cache by value.
7172 (add_psymbol_with_dem_name_to_list): Ditto.
7173
7174 * objfiles.h: Update copyright.
7175 (struct bcache): Declare opaque. Do not include "bcache.h".
7176 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7177 bcache'' pointers.
7178 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7179
7180 * objfiles.c: Include "bcache.h". Update copyright.
7181 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7182 macro_cache.
7183 (free_objfile): Use bcache_xfree.
7184
7185 2002-07-11 Grace Sainsbury <graces@redhat.com>
7186
7187 * monitor.c (monitor_fetch_register): Make name a constant.
7188 (monitor_store_register): Same.
7189
7190 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7191
7192 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7193 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7194 (finish_block) For non-function blocks, hash the symbol table. For
7195 function blocks, mark the symbol table as unhashed.
7196 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7197 (msymbol_hash_iw): Likewise.
7198 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7199 value.
7200 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7201 (lookup_minimal_symbol): Likewise for both.
7202 * symtab.h (struct block): Add `hashtable' flag. Comment the
7203 hashtable.
7204 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7205 (ALL_BLOCK_SYMBOLS): Update.
7206 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7207 (struct symbol): Add `hash_next' pointer.
7208 * symtab.c (lookup_block_symbol): Search using the hash table when
7209 possible.
7210 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7211 (search_symbols, find_addr_symbol): Likewise.
7212
7213 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7214 (read_dst_symtab): Likewise.
7215 * jv-lang.c (get_java_class_symtab): Likewise.
7216 * mdebugread.c: Include "gdb_assert.h".
7217 (shrink_block): Assert that the block being modified is not hashed.
7218 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7219 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7220 symbols.
7221 (dump_symtab): Recognize hashed blocks.
7222 * printcmd.c (print_frame_args): Assert that function blocks do not
7223 have hashed symbol tables.
7224 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7225 (fill_in_ada_prototype, debug_print_block): Likewise.
7226 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7227
7228 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7229
7230 * stack.c (print_frame): Use result of frame_address_in_block()
7231 instead of fi->pc when evaluating symbols.
7232 (backtrace_command_1): Ditto.
7233
7234 2002-07-11 Andrew Cagney <cagney@redhat.com>
7235
7236 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7237 Make static.
7238
7239 * arm-tdep.c (arm_register_name): Make return type constant.
7240
7241 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7242
7243 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7244 prototype.
7245 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7246 * s390-tdep.c (s390_fp_regnum): Ditto.
7247 (s390_read_fp): Ditto.
7248 (s390_pop_frame): Ditto.
7249 (_initialize_s390_tdep): Ditto.
7250 * remote.c (get_remote_state): Ditto.
7251 * procfs.c (mappingflags): Ditto.
7252 * memattr.c (_initialize_mem): Ditto.
7253 * mcore-tdep.c (mcore_pop_frame): Ditto.
7254 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7255 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7256 * language.c (set_case_str): Ditto.
7257 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7258 * frv-tdep.c (new_variant): Ditto.
7259 (frv_stopped_data_address): Ditto.
7260 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7261 (context_alloc): Ditto.
7262 (frame_state_alloc): Ditto.
7263 (unwind_tmp_obstack_init): Ditto.
7264 (unwind_tmp_obstack_free): Ditto.
7265 (cfi_read_fp): Ditto.
7266 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7267 (cris_pop_frame): Ditto.
7268 * c-lang.c (scanning_macro_expansion): Ditto.
7269 (finished_macro_expansion): Ditto.
7270 (c_preprocess_and_parse): Ditto.
7271 * gdbarch.sh: Ditto.
7272 * gdbarch.h, gdbarch.c: Regenerate.
7273 * config/mn10200/tm-mn10200.h: Adjust indentation.
7274 * target.c: Adjust indentation.
7275 * symtab.h: Adjust indentation.
7276 * stabsread.h: Adjust indentation.
7277 * remote-es.c: Adjust indentation.
7278 * os9kread.c: Adjust indentation.
7279
7280 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7281
7282 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7283 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7284
7285 2002-07-10 Grace Sainsbury <graces@redhat.com>
7286
7287 * NEWS: Mention m68k, mcore multi-arching.
7288 * MAINTAINERS: Change status of m68k, mcore to reflect
7289 multi-arching.
7290
7291 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7292
7293 * valops.c (find_overload_match): Free oload_syms.
7294
7295 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7296
7297 Define HAVE_SYS_PROC_H if sys/proc.h exists
7298 * configure.in: Add check for sys/proc.h
7299 * config.in: Regenerate.
7300 * configure: Regenerate.
7301
7302 2002-07-09 Grace Sainsbury <graces@redhat.com>
7303
7304 * config/m68k/tm-m68k.h: Remove macros wrapped in
7305 #if !GDB_MULTI_ARCH.
7306
7307 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7308
7309 * config.in, configure: Regenerate.
7310
7311 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7312
7313 * dwarf2cfi.c: Include "gcore.h".
7314 (execute_stack_op): Fix implementation of the
7315 DW_OP_deref and DW_OP_deref_size operators by letting do their
7316 lookup in the target.
7317
7318 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7319
7320 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7321 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7322 tdep->sc_sp_offset.
7323
7324 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7325
7326 Fix PR gdb/595, gdb/602
7327 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7328 Don't call value_cast, just read the vtable pointer; update comments
7329 to match.
7330
7331 2002-07-05 Grace Sainsbury <graces@redhat.com>
7332
7333 * config/mcore/tm-mcore.h: Remove file.
7334 * config/mcore/mcore.mt: Remove definition of TM_FILE
7335 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7336
7337 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7338
7339 * i386bsd-tdep.c: Include "gdb_string.h".
7340
7341 2002-07-04 Grace Sainsbury <graces@redhat.com>
7342
7343 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7344 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7345 mcore-tdep.
7346 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7347 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7348 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7349 (RETVAL_REGNUM): Move macros from tm-mcore.h
7350 (mcore_reg_struct_has_addr): New function.
7351 (mcore_gdbarch_init): Added initializations for the macros removed
7352 from tm-mcore.h.
7353
7354 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7355
7356 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7357 traditonal string branding within the ELF header.
7358
7359 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * symtab.c (remove_params): New function.
7362 (make_symbol_overload_list): Use it instead of cplus_demangle.
7363 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7364
7365 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7366
7367 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7368
7369 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7370 New variables.
7371 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7372 and tdep->sigtramp_end.
7373 * i386obsd-nat.c: New file.
7374 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7375
7376 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7377 Don't call get_current_frame().
7378
7379 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7380
7381 * i386-nat.c (child_post_startup_inferior): New function
7382 calling i386_cleanup_dregs if
7383 I386_USE_GENERIC_WATCHPOINTS is defined.
7384 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7385 conditional to acknowledge that i386-nat.c has its
7386 own child_post_startup_inferior function.
7387
7388 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7389
7390 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7391 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7392 instead of MAX_REGISTER_RAW_SIZE.
7393 (i386_extract_return_value, i386_extract_struct_value_address):
7394 Convert to use regcache.
7395 (i386_gdbarch_init): Set max_register_raw_size and
7396 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7397 Set extract_return_value and extract_struct_value_address instead
7398 of their deprecated variants.
7399
7400 Convert i386 target to generic dummy frames.
7401 * i386-tdep.c: Include "symfile.h".
7402 (i386_frameless_signal_p): Consider a function to be frameless if
7403 the pc points at the first instruction of the function.
7404 (i386_frame_chain): Handle (generic) call dummies.
7405 (i386_frame_saved_pc): Likewise.
7406 (i386_frame_init_saved_regs): Remove code dealing with call
7407 dummies on the stack.
7408 (i386_push_dummy_frame): Removed.
7409 (i386_call_dummy_words): Removed.
7410 (i386_fix_call_dummy): Removed.
7411 (i386_push_return_address): New function.
7412 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7413 parameter, and don't call get_current_frame.
7414 (i386_pop_frame): New function.
7415 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7416 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7417 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7418 call_dummy_length to 0, set call_dummy_words to NULL, set
7419 sizeof_call_dummy_words to 0, set fix_call_dummy to
7420 generic_fix_call_dummy, set pc_in_call_dummy to
7421 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7422 generic_push_dummy_frame, set push_return_address to
7423 i386_push_return_address and set frame_chain_valid to
7424 generic_file_frame_chain_valid.
7425
7426 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7427
7428 * gdbarch.sh (struct regcache): Add opaque declaration.
7429 (EXTRACT_RETURN_VALUE): New architecture method.
7430 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7431 * gdbarch.h, gdbarch.c: Regenerate.
7432 * arch-utils.c (legacy_extract_return_value): New function.
7433 * arch-utils.h (legacy_extract_return_value): Declare.
7434 * values.c (value_being_returned): Re-enable code handling
7435 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7436 deprecated_grub_regcache_for_registers call to block handling
7437 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7438 (EXTRACT_RETURN_VALUE): Do not define.
7439
7440 2002-07-03 Grace Sainsbury <graces@redhat.com>
7441
7442 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7443 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7444 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7445 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7446 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7447 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7448 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7449 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7450 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7451 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7452 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7453 argument so the function fits the prototype in the architecture
7454 vector.
7455 (mcore_pop_frame): Remove argument so the function fits the
7456 prototype. Use get_current_frame instead of the argument.
7457 (mcore_push_arguments): Change type of struct_return so the
7458 function can be used in the architecture vector.
7459 (mcore_store_struct_return): Add.
7460 (mcore_frame_init_saved_regs): Add.
7461 (mcore_gdbarch_init): Add function calls to replace the macros
7462 removed from tm-mcore.h
7463
7464 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7465
7466 * infcmd.c (print_return_value): Remove compatibility code calling
7467 deprecated_grub_regcache_for_registers.
7468
7469 * values.c: Include "regcache.h".
7470 (value_being_returned): Update. Use
7471 deprecated_grub_regcache_for_registers to extract the register
7472 buffer address.
7473 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7474 ``struct regcache''.
7475 * Makefile.in (values.o): Add dependency on $(regcache_h).
7476
7477 * inferior.h (run_stack_dummy): Change type of second parameter to
7478 a ``struct regcache''.
7479 * valops.c (hand_function_call): Change type of retbuf to ``struct
7480 regcache''. Allocate using regcache_xmalloc, clean using
7481 make_cleanup_regcache_xfree.
7482 * infcmd.c (run_stack_dummy): Update. Use
7483 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7484
7485 * regcache.c (do_regcache_xfree): New function.
7486 (make_cleanup_regcache_xfree): New function.
7487 * regcache.h (make_cleanup_regcache_xfree): Declare.
7488
7489 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7490
7491 * event-top.c (command_line_handler): Don't read past
7492 beginning of buffer.
7493
7494 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7495
7496 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7497 struct frame_id.
7498 (varobj_create): Store frame_id for root.
7499 (varobj_gen_name): Use xasprintf.
7500 (varobj_update): Save and restore frame using get_frame_id() and
7501 frame_find_by_id().
7502 (create_child): Use xasprintf.
7503 (new_root_variable): Initialize frame_id.
7504 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7505 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7506 to prevent memory leak.
7507
7508 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7509
7510 * valops.c (hand_function_call): Move declaration of retbuf to
7511 start of function, allocate using malloc, add a cleanup but before
7512 the inf_status cleanup, cleanup the buffer. Rename local variable
7513 old_chain to inf_status_cleanup.
7514
7515 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7516
7517 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7518
7519 * cli/cli-decode.c (cmd_func_p): New function.
7520 (cmd_func): New function.
7521
7522 * command.h: Add cmd_func() and cmd_func_p().
7523
7524 2002-07-03 Grace Sainsbury <graces@redhat.com>
7525
7526 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7527 (REGISTER_SIZE): Remove.
7528 (MAX_REGISTER_RAW_SIZE): Remove.
7529 (REGISTER_VIRTUAL_TYPE): Remove.
7530 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7531 (REGISTER_NAME): Remove.
7532 (USE_GENERIC_DUMMY_FRAMES): Remove.
7533 (CALL_DUMMY): Remove.
7534 (CALL_DUMMY_START_OFFSET): Remove.
7535 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7536 (CALL_DUMMY_LOCATION): Remove.
7537 (FIX_CALL_DUMMY): Remove.
7538 (CALL_DUMMY_ADDRESS): Remove.
7539 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7540 (SAVE_DUMMY_FRAME_TOS): Remove.
7541 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7542 (mcore_register_virtual_type): New function.
7543 (mcore_register_byte): New function.
7544 (mcore_register_size): New function.
7545 (mcore_register_name): New function.
7546 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7547 macros removed from tm-mcore.h.
7548 (mcore_dump_tdep): Add.
7549 (_initialize_mcore_tdep): Add gdbarch_register call.
7550
7551 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7552
7553 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7554 frameless_look_for_prologue, such that we actually call this
7555 function.
7556
7557 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7558
7559 * frame.h (frame_address_in_block): New function.
7560
7561 * blockframe.c (frame_address_in_block): New function extracted
7562 from get_frame_block().
7563 (get_frame_block): Use frame_address_in_block().
7564 (block_innermost_frame): Use frame_address_in_block() to match
7565 the frame pc address against the block boundaries rather than
7566 the frame pc directly. This prevents a failure when a frame pc
7567 is actually a return-address pointing immediately after the end
7568 of the given block.
7569
7570 2002-07-02 Grace Sainsbury <graces@redhat.com>
7571
7572 * MAINTAINERS: Add self under write after approval.
7573
7574 2002-07-02 Grace Sainsbury <graces@redhat.com>
7575
7576 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7577 used in architecture vector. The default is
7578 m68k_local_breakpoint_from_pc.
7579 (m68k_local_breakpoint_from_pc): Add.
7580 (enum): Add register numbers from tm-m68k.h.
7581 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7582 vector.
7583 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7584 GDB_MULTI_ARCH_PARTIAL.
7585 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7586 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7587 m68k-tdep.c.
7588 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7589 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7590 to enum in m68k-tdep.c
7591
7592 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7593
7594 * solib-osf.c (open_map): Compute the list of shared libraries
7595 loaded by the inferior, rather than the list of libraries loaded
7596 by GDB itself. Otherwise, GDB ends up reading the symbols from
7597 the wrong shared libraries...
7598
7599 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7600
7601 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7602 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7603 macros.
7604 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7605 Remove functions.
7606 (FRAMELESS_SIGNAL): Remove function.
7607 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7608 i386_linux_saved_pc_after_call): Removed.
7609 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7610 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7611 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7612
7613 * i386-tdep.c (i386_frameless_signal_p): New function.
7614 (i386_frame_chain): Deal with frameless signals.
7615 (i386_sigtramp_saved_sp): New function.
7616 (i386_frame_saved_pc): Deal with frameless signals.
7617 (i386_saved_pc_after_call): Make sure the correct value is
7618 returned just after entry into a sigtramp.
7619 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7620 i386fbsd4_sc_sp_offset): New variables.
7621 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7622 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7623 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7624 similiar to what we already did for sc_pc_offset.
7625 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7626 tdep->sc_sp_offset.
7627
7628 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7629
7630 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7631
7632 * config/i386/tm-x86-64linux.h: New.
7633 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7634 definitions.
7635 * config/i386/nm-x86-64.h: Rename to ...
7636 * config/i386/nm-x86-64linux.h: ... this one.
7637 * config/i386/x86-64linux.mh: Reflect the above change.
7638
7639 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7640
7641 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7642 with sigcontext_addr. Add sc_sp_offset.
7643 (i386bsd_sigtramp_saved_pc): Remove prototype.
7644 (i386bsd_sicontext_addr): Add prototype.
7645 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7646 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7647 (i386_svr4_sigtramp_saved_pc): Removed.
7648 (i386_svr4_sigcontext_addr): New function.
7649 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7650 Initialize tdep->sigcontext_addr instead. Initialize
7651 tdep->sc_pc_offset and tdep->sc_sp_offset.
7652 (i386_gdbarch_init): Likewise.
7653 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7654 any more.
7655 (i386bsd_sigtramp_saved_pc): Remove function.
7656 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7657 Initialize tdep->sigcontext_addr instead. Initialize
7658 tdep->sc_pc_offset.
7659 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7660 of tdep->sigtramp_saved_pc.
7661 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7662 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7663 instead.
7664
7665 * i386-tdep.c (i386_frameless_function_invocation,
7666 i386_frame_num_args, i386_frame_init_saved_regs,
7667 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7668 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7669 i386_extract_return_value, i386_store_return_value,
7670 i386_extract_struct_value_address, i386_register_virtual_type,
7671 i386_register_convertible, i386_register_convert_to_virtual,
7672 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7673 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7674 static.
7675
7676 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7677
7678 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7679
7680 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7681 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7682 this macro. Include "value.h".
7683
7684 2002-06-30 Aidan Skinner <aidan@velvet.net>
7685
7686 * ada-exp.tab.c: remove as it's a generated file
7687 * ada-lex.c: remove as it's a generated file
7688
7689 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7690
7691 * config/i386/tm-i386.h (struct frame_info, struct
7692 frame_saved_regs, struct value, struct type): Remove forward
7693 declarations.
7694
7695 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7696 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7697 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7698 (FILL_FPXREGSET): Define.
7699
7700 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7701
7702 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7703 i[3456]86-*-netbsd* case.
7704 * config/i386/tm-obsd.h: Removed.
7705 * config/i386/obsd.mt: Removed.
7706 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7707 core-aout.o.
7708 (MH_CFLAGS): Add -DYYDEBUG=0.
7709
7710 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7711 i386nbsd_sc_pc_offset on OpenBSD too.
7712
7713 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7714 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7715 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7716 define.
7717 * i386bsd-tdep.c: Include "arch-utils.h".
7718 (i386bsd_aout_in_solib_call_trampoline): New function.
7719 (i386bsd_init_abi): Set in_solib_call_trampoline to
7720 i386bsd_aout_in_solib_call_trampoline.
7721 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7722 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7723
7724 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7725
7726 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7727 (struct obstack, struct bcache): Add opaque declarations.
7728 * Makefile.in (macrotab_h): Update
7729
7730 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7731
7732 * blockframe.c (generic_find_dummy_frame): Change return type to
7733 ``struct regcache''.
7734 (struct dummy_frame): Replace field ``registers'' with regcache, a
7735 struct regcache object.
7736 (generic_find_dummy_frame): Update.
7737 (generic_push_dummy_frame): Update. Use regcache_xfree,
7738 regcache_xmalloc and regcache_cpy.
7739 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7740 regcache_xfree.
7741 (deprecated_generic_find_dummy_frame): Update.
7742 (generic_read_register_dummy): Update. Use
7743 regcache_read_as_address.
7744 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7745 (generic_get_saved_register): Update. Use regcache_read.
7746
7747 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7748
7749 * Makefile.in (objfiles_h): Add $(bcache_h).
7750 * objfiles.h: Include "bcache.h".
7751
7752 * Makefile.in (symtab_h): Remove $(bcache_h).
7753 * symtab.h: Do not include "bcache.h".
7754
7755 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7756
7757 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7758 generic_func_frame_chain_valid.
7759
7760 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7761
7762 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7763 * config/i386/tm-fbsd.h: Likewise.
7764
7765 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7766
7767 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7768 generic_unwind_get_saved_register.
7769
7770 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7771
7772 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7773 * regcache.c (supply_register): Add missing argument to
7774 register_buffer call.
7775
7776 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7777
7778 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7779 Solaris /bin/grep does not not like it. From Peter Schauer.
7780
7781 2002-06-26 Tom Tromey <tromey@redhat.com>
7782
7783 * command.h (add_setshow_cmd): Declare.
7784 (add_setshow_cmd_full): Declare.
7785 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7786 returns void. Use add_setshow_cmd_full.
7787 (add_setshow_cmd_full): New function.
7788 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7789 (add_setshow_boolean_cmd): Likewise.
7790
7791 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * config/vax/tm-vax.h: Protect from multiple inclusion.
7794 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7795 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7796 * config/vax/tm-vaxbsd.h: ...here. New file.
7797 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7798
7799 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7800
7801 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7802 (BELIEVE_PCC_PROMOTION): Remove.
7803 (AP_REGNUM): Move to...
7804 * config/vax/nm-vax.h: ...here.
7805 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7806 (vax_breakpoint_from_pc): New function.
7807 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7808 and gdbarch_believe_pcc_promotion.
7809
7810 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7811
7812 * Makefile.in (vax_tdep_h): Define.
7813 (vax-tdep.o): Use $(vax_tdep_h).
7814 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7815 (vax_dump_tdep): New function.
7816 (_initialize_vax_tdep): Register vax_dump_tdep.
7817 * vax-tdep.h: Include osabi.h.
7818 (struct gdbarch_tdep): New.
7819
7820 2002-06-26 Andrew Cagney <cagney@redhat.com>
7821
7822 * frame.h (deprecated_generic_find_dummy_frame): Rename
7823 generic_find_dummy_frame.
7824 * blockframe.c (generic_find_dummy_frame): Make static.
7825 (deprecated_generic_find_dummy_frame): New function.
7826 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7827 generic_find_dummy_frame with deprecated_find_dummy_frame.
7828 (sh64_nofp_frame_init_saved_regs): Ditto.
7829 (sh_fp_frame_init_saved_regs): Ditto.
7830 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7831 (s390_frame_chain): Ditto.
7832 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7833
7834 2002-06-26 Grace Sainsbury <graces@redhat.com>
7835
7836 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7837 gdbarch vector are at the top.
7838 (NUM_REGS): Remove.
7839 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7840 (FRAME_ARGS_ADDRESS): Remove.
7841 (FRAME_LOCALS_ADDRESS): Remove.
7842 (FRAME_NUM_ARGS): Remove.
7843 (FRAME_ARGS_SKIP): Remove.
7844 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7845 (m68k_gdbarch_init): Add gdbarch initializations for macros
7846 undefined in tm-m68k.h
7847
7848 2002-06-26 Grace Sainsbury <graces@redhat.com>
7849
7850 * monitor.h: Add the function regname to monitor_ops
7851 structure. This way NUM_REGS does not have to be a constant.
7852 * monitor.c (monitor_fetch_register): Added support for regname
7853 function. The function is called if the array regnames is NULL.
7854 (monitor_store_register): Same.
7855 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7856 regnames array.
7857 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7858 cpu32bug_cmds.regname to point to new function.
7859 * abug-rom.c (abug_regname): Same as above.
7860 (init_abug_cmds): Same.
7861 * dbug-rom.c (dbug_regname): Same as above.
7862 (init_dbug_cmds): Same.
7863 * remote-est.c (est_regname): Same.
7864 (init_est_cmds): Same.
7865 * rom68k-rom.c (rom68k_regname): Same.
7866 (init_rom68k_cmds): Same.
7867
7868 2002-06-25 Tom Tromey <tromey@redhat.com>
7869
7870 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7871
7872 2002-06-25 Andrew Cagney <cagney@redhat.com>
7873
7874 * infrun.c (stop_registers): Change variable's type to ``struct
7875 regcache'''.
7876 (xmalloc_inferior_status): Delete function.
7877 (free_inferior_status): Delete function.
7878 (normal_stop): Use regcache_cpy.
7879 (struct inferior_status): Change type of fields ``stop_registers''
7880 and ``registers'' to ``struct regcache''.
7881 (write_inferior_status_register): Use regcache_write.
7882 (save_inferior_status): Instead of calling
7883 xmalloc_inferior_status, allocate the inf_status buffer directly.
7884 Use regcache_dup_no_passthrough and regcache_dup to save the
7885 buffers.
7886 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7887 Replace the stop_registers regcache instead of overriding it. Use
7888 regcache_xfree. Instead of calling free_inferior_status, xfree
7889 the buffer directly.
7890 (discard_inferior_status): Use regcache_xfree. Instead of calling
7891 free_inferior_status, xfree the buffer directly.
7892 (build_infrun): Use regcache_xmalloc.
7893 (_initialize_infrun): Delete redundant call to build_infrun.
7894
7895 * Makefile.in (infcmd.o): Add $(regcache_h).
7896
7897 * infcmd.c: Include "regcache.h".
7898 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7899 obtain the address of `stop_registers' register buffer.
7900 (print_return_value): Ditto.
7901
7902 * inferior.h (struct regcache): Add opaque declaration.
7903 (stop_registers): Change variable's declared type to ``struct
7904 regcache''.
7905
7906 2002-06-24 Tom Tromey <tromey@redhat.com>
7907
7908 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7909 * target.c (initialize_targets): Fixed typo in
7910 trust-readonly-sections `show' documentation.
7911
7912 * main.c: Marked all strings with _().
7913
7914 2002-06-24 Don Howard <dhoward@redhat.com>
7915
7916 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7917 that means max CORE_ADDR+1.
7918 (lookup_mem_region): Ditto.
7919 (mem_info_command): Ditto.
7920
7921 2002-06-24 Grace Sainsbury <graces@redhat.com>
7922
7923 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7924 (REGISTER_BYTES_OK): Remove.
7925 (REGISTER_BYTES): Remove.
7926 (STORE_STRUCT_RETURN): Remove.
7927 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7928 (STORE_RETURN_VALUE): Remove.
7929 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7930 (FRAME_CHAIN): Remove.
7931 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7932 (FRAME_SAVED_PC): Remove.
7933 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7934 (m68k_store_struct_return): Add.
7935 (m68k_deprecated_extract_return_value): Add.
7936 (m68k_deprecated_extract_struct_value_address): Add.
7937 (m68k_store_return_value): Add.
7938 (m68k_frame_chain): Add.
7939 (m68k_frameless_function_invocation): Add.
7940 (m68k_frame_saved_pc): Add.
7941 (m68k_gdbarch_init): added set_gdbarch calls for new
7942 functions and deleted macros.
7943
7944 2002-06-23 Tom Tromey <tromey@redhat.com>
7945
7946 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7947 (ALLDEPFILES): Likewise.
7948 (udiheaders): Removed.
7949 (udip2soc.o): Likewise.
7950 (udi2go32.o): Likewise.
7951 (udr.o): Likewise.
7952 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7953
7954 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7955
7956 * infrun.c (_initialize_infrun): Delete unnecessary call to
7957 build_infrun.
7958
7959 * regcache.h: Update comments describing the regcache_cpy family
7960 of functions.
7961 (regcache_save, regcache_restore): Delete declaration.
7962 (regcache_save_no_passthrough): Delete declaration.
7963 (regcache_restore_no_passthrough): Delete declaration.
7964 * regcache.c (regcache_save): Delete function.
7965 (regcache_save_no_passthrough): Delete function.
7966 (regcache_restore): Delete function.
7967 (regcache_restore_no_passthrough): Delete function.
7968
7969 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7970
7971 * config/m68k/tm-m68k.h: Fix typo.
7972 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7973 (m68k_frame_init_saved_regs): Declare.
7974
7975 2002-06-21 Jim Blandy <jimb@redhat.com>
7976
7977 Remove some vestiges of Harris 88k support.
7978 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7979 register numbering quirk.
7980 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7981 odd symbols occurring in Harris 88k ELF targets.
7982
7983 2002-06-21 Tom Tromey <tromey@redhat.com>
7984
7985 * gdb_locale.h: New file.
7986 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7987 (defs_h): Added gdb_locale.h.
7988 * configure, config.in: Rebuilt.
7989 * configure.in (PACKAGE): Define.
7990 * defs.h: Include gdb_locale.h.
7991 * main.c (captured_main): Call setlocale, bindtextdomain,
7992 textdomain.
7993
7994 2002-06-21 Dave Brolley <brolley@redhat.com>
7995
7996 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7997 * config/frv/frv.mt: New file.
7998 * config/frv/tm-frv.h: New file.
7999 * configure.tgt: Support frv-*-*.
8000 * Makefile.in (frv-tdep.o): New target.
8001 * frv-tdep.c: New file.
8002 * NEWS: Mention frv.
8003
8004 2002-06-21 Dave Brolley <brolley@redhat.com>
8005
8006 * MAINTAINERS: Add self to "Write After Approval" list.
8007
8008 2002-06-21 Grace Sainsbury <graces@redhat.com>
8009
8010 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8011 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8012 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8013 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8014 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8015
8016 * m68k-tdep.c: Include arch-utils.h
8017 (m68k_register_raw_size): Add.
8018 (m68k_register_virtual_size): Add.
8019 (m68k_register_virtual_type): Add.
8020 (m68k_register_name): Add.
8021 (m68k_stack_align): Add.
8022 (m68k_register_byte): Add.
8023 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8024 tm-m68k.h.
8025
8026 2002-06-21 Grace Sainsbury <graces@redhat.com>
8027
8028 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8029 m68k_find_saved_regs.
8030 (m68k_pop_frame): Removed saved_regs structure, and replaced
8031 references to it with frame->saved_regs.
8032 (m68k_gdbarch_init): Added function calls to initialize the
8033 gdbarch structure.
8034 (m68k_fix_call_dummy): Add.
8035 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8036 (CALL_DUMMY): Remove.
8037 (CALL_DUMMY_LENGTH): Remove.
8038 (CALL_DUMMY_START_OFFSET): Remove.
8039 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8040 (FIX_CALL_DUMMY): Remove.
8041 (PUSH_DUMMY_FRAME): Remove.
8042 (POP_FRAME): Remove.
8043
8044 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8045
8046 * parse.c (parse_fprintf): New function used to avoid calls to
8047 fprintf in bison parser generated debug code.
8048 * parser-defs.h: Declaration of new parse_fprintf function.
8049 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8050 Set YYDEBUG to 1 by default.
8051 Set YYFPRINTF as parse_fprintf.
8052
8053 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8054
8055 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8056 encoding anymore.
8057 (pointer_encoding, enum ptr_encoding): New.
8058 (execute_cfa_program): Take care about pointer encoding.
8059 (dwarf2_build_frame_info): Only call parse_frame_info for
8060 .debug_frame and .eh_frame.
8061 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8062 fixed augmentation handling, added relative addressing,
8063 ignore duplicate FDEs. Added comments.
8064 * dwarf2cfi.c: Reindented.
8065
8066 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8067
8068 * event-top.c (command_handler): Don't use space_at_cmd_start
8069 unless there is sbrk() on the host. Assign time and space data
8070 to union fields of the appropriate length.
8071
8072 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8073
8074 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8075 x86_64_register_name. Return type changed to 'const char *'.
8076 (x86_64_register_name2nr): Rename to x86_64_register_number.
8077 (x86_64_gdbarch_init): Update to reflect the change.
8078 * x86-64-tdep.h: Ditto.
8079 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8080 (supply_fpregset): Ditto.
8081
8082 2002-06-19 Andrew Cagney <cagney@redhat.com>
8083
8084 * regcache.h: Update copyright.
8085 (struct regcache, struct gdbarch): Add opaque declarations.
8086 (current_regcache): Declare global variable.
8087 (regcache_read, regcache_write): Add gdbarch parameter.
8088 (regcache_save, regcache_save_no_passthrough)
8089 (regcache_restore, regcache_restore_no_passthrough)
8090 (regcache_dup, regcache_dup_no_passthrough)
8091 (regcache_cpy, regcache_cpy_no_passthrough)
8092 (deprecated_grub_regcache_for_registers)
8093 (deprecated_grub_regcache_for_register_valid)
8094 (regcache_valid_p): Add function declarations.
8095
8096 * regcache.c: Update copyright.
8097 (regcache_descr_handle): New global variable.
8098 (struct regcache_descr): Define.
8099 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8100 (regcache_descr, xfree_regcache_descr): New functions.
8101 (struct regcache): Define.
8102 (regcache_xmalloc, regcache_xfree): New functions.
8103 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8104 (regcache_dup, regcache_dup_no_passthrough): New functions.
8105 (regcache_valid_p, regcache_read_as_address): New functions.
8106 (deprecated_grub_regcache_for_registers): New function.
8107 (deprecated_grub_regcache_for_register_valid): New function.
8108 (current_regcache): New global variable.
8109 (register_buffer): Add regcache parameter. Update calls.
8110 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8111 (read_register_gen, write_register_gen): Update register_buffer
8112 call. Test for legacy_p instead of gdbarch_register_read_p or
8113 gdbarch_register_write_p.
8114 (regcache_collect): Update register_buffer call.
8115 (build_regcache): Rewrite. Use deprecated grub functions.
8116 (regcache_save, regcache_save_no_passthrough): New functions.
8117 (regcache_restore, regcache_restore_no_passthrough): New
8118 functions.
8119 (_initialize_regcache): Create the regcache_data_handle. Swap
8120 current_regcache global variable.
8121
8122 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8123 parameter to regcache_read and regcache_write calls.
8124 (sh4_register_read): Ditto.
8125 (sh64_pseudo_register_read): Ditto.
8126 (sh64_register_read): Ditto.
8127 (sh_pseudo_register_write): Ditto.
8128 (sh4_register_write): Ditto.
8129 (sh64_pseudo_register_write): Ditto.
8130 (sh64_register_write): Ditto.
8131
8132 * defs.h (XCALLOC): Define.
8133
8134 2002-06-19 Grace Sainsbury <graces@redhat.com>
8135
8136 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8137 * m68k-tdep.c (m68k_gdbarch_init): Added.
8138 (m68k_dump_tdep): Added.
8139
8140 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8141
8142 * ada-lang.c (fill_in_ada_prototype): Update comment.
8143
8144 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8145
8146 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8147 MIPS_ABI_LAST.
8148 (mips_abi_string, mips_abi_strings): New.
8149 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8150 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8151 tdep->mips_abi_string. Honor mips_abi_string. Default to
8152 O32 if no ABI is found.
8153 (mips_dump_tdep): Use mips_abi_strings.
8154 (mips_abi_update): New function.
8155 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8156 ``set mips abi'' and ``show mips abi''. Check the size of
8157 mips_abi_strings.
8158
8159 2002-06-19 Andrew Cagney <cagney@redhat.com>
8160
8161 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8162 constant.
8163
8164 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8165
8166 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8167 current frame using only the first stack size adjustment. All
8168 subsequent size adjustments are not considered to be part of
8169 the "static" part of the current frame.
8170 Compute the address of the saved registers relative to the
8171 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8172 in use in this frame.
8173
8174 2002-06-18 Don Howard <dhoward@redhat.com>
8175
8176 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8177 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8178 suggesting this solution.
8179
8180 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8181
8182 * config/romp/xm-rtbsd.h: Delete file.
8183 * config/romp/rtbsd.mh: Delete file.
8184
8185 2002-06-18 Keith Seitz <keiths@redhat.com>
8186
8187 * breakpoint.c (condition_command): Post breakpoint_modify
8188 when a condition is added to an existing breakpoint.
8189 (commands_command): Likewise for commands.
8190 (set_ignore_count): Likewise for ignore counts.
8191 If no tty, do not simply return, still need to send event
8192 notification.
8193 (ignore_command): Only print a newline if the command came
8194 from a tty.
8195 Don't call breakpoints_changed, since this is now properly
8196 handled by set_ignore_count.
8197
8198 2002-06-18 Andrew Cagney <cagney@redhat.com>
8199
8200 * MAINTAINERS: Note that cris-elf target can be compiled with
8201 -Werror.
8202 * cris-tdep.c (cris_register_name): Make return type constant.
8203 (cris_breakpoint_from_pc): Ditto.
8204
8205 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8206
8207 * frame.h (struct frame_info): Change type of context to
8208 'struct context'.
8209
8210 2002-06-17 Andrew Cagney <cagney@redhat.com>
8211
8212 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8213 pointer.
8214 * gdbarch.h, gdbarch.c: Regenerate.
8215 * config/mips/tm-mips.h (mips_register_name): Update.
8216 * i386-tdep.h (i386_register_name): Update.
8217 * mips-tdep.c (mips_register_name): Update
8218 * alpha-tdep.c (alpha_register_name): Update.
8219 * arch-utils.c (legacy_register_name): Update.
8220 * arch-utils.h (legacy_register_name): Update.
8221 * avr-tdep.c (avr_register_name): Update.
8222 * ia64-tdep.c (ia64_register_name): Update.
8223 * i386-tdep.c (i386_register_name): Update.
8224 * sparc-tdep.c (sparc32_register_name): Update.
8225 (sparc64_register_name): Update.
8226 (sparclite_register_name): Update.
8227 (sparclet_register_name): Update.
8228 * sh-tdep.c (sh_generic_register_name): Update.
8229 (sh_sh_register_name): Update.
8230 (sh_sh3_register_name): Update.
8231 (sh_sh3e_register_name): Update.
8232 (sh_sh_dsp_register_name): Update.
8233 (sh_sh3_dsp_register_name): Update.
8234 (sh_sh4_register_name): Update.
8235 (sh_sh64_register_name): Update.
8236 * s390-tdep.c (s390_register_name): Update.
8237 * rs6000-tdep.c (rs6000_register_name): Update.
8238 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8239 (ns32k_register_name_32382): Update.
8240 * d10v-tdep.c (d10v_ts2_register_name): Update.
8241 (d10v_ts3_register_name): Update.
8242 * xstormy16-tdep.c (xstormy16_register_name): Update.
8243 * vax-tdep.c (vax_register_name): Update.
8244 * v850-tdep.c (v850_register_name): Update.
8245 * m68hc11-tdep.c (m68hc11_register_name): Update.
8246 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8247 (am33_register_name): Update.
8248
8249 2002-06-17 Grace Sainsbury <graces@redhat.com>
8250
8251 * m68k-tdep.c: Reindented.
8252
8253 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8254
8255 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8256 list of predefined types.
8257
8258 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8259
8260 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8261 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8262 REGISTER_CONVERT_TO_RAW): Remove defines.
8263 (i386_register_virtual_type, i386_register_convertible,
8264 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8265 Remove prototypes.
8266 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8267 macros mentioned above.
8268
8269 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8270 (i386lynx_saved_pc_after_call): Remove prototype.
8271 * i386ly-tdep.c: Include "i386-tdep.h".
8272 (i386lynx_saved_pc_after_call): Make static. Use
8273 read_memory_nobpt instead of read_memory. Use
8274 read_memory_unsigned_integer instead of read_memory_integer.
8275 (i386lynx_init_abi): New function.
8276 (i386lynx_coff_osabi_sniffer): New function.
8277 (_initialize_i386bsd_tdep): New function.
8278
8279 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8280 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8281 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8282 (i386_fix_call_dummy): Remove prototype.
8283 * i386-tdep.c (i386_call_dummy_words): New variable.
8284 (i386_gdbarch_init): Adjust for removal of the
8285 macros mentioned above.
8286
8287 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8288
8289 * command.h (add_setshow_auto_boolean_cmd): Replace
8290 add_set_auto_boolean_cmd.
8291 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8292 add_set_auto_boolean_cmd.
8293 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8294 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8295 mask-address'' command.
8296 (show_mask_address): Add cmd parameter.
8297 * remote.c (add_packet_config_cmd): Update. Change type of
8298 set_func and show_func to cmd_sfunc_ftype.
8299 (_initialize_remote): Update `set remote Z-packet'
8300 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8301 (show_remote_protocol_e_packet_cmd): Ditto.
8302 (show_remote_protocol_E_packet_cmd): Ditto.
8303 (show_remote_protocol_P_packet_cmd): Ditto.
8304 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8305 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8306 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8307 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8308 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8309 (show_remote_protocol_Z_packet_cmd): Ditto.
8310 (show_remote_protocol_binary_download_cmd): Ditto.
8311 (show_remote_cmd): Pass NULL to all of above.
8312
8313 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8314
8315 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8316 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8317 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8318 POP_FRAME): Remove defines.
8319 (i386_push_arguments, i386_store_struct_return,
8320 i386_extract_return_value, i386_store_return_value,
8321 i386_extract_struct_value_address, i386_push_dummy_frame,
8322 i386_pop_frame): Renove prototypes.
8323 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8324 macros mentioned above.
8325
8326 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8327
8328 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8329 add_set_boolean_cmd.
8330 (add_setshow_cmd): New function.
8331 * command.h (add_setshow_boolean_cmd): Replace
8332 add_set_boolean_cmd.
8333 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8334 and ``set rdiromatzero''.
8335 * maint.c (_initialize_maint_cmds): Update commented out code.
8336 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8337 * target.c (initialize_targets): Update `set
8338 trust-readonly-sections'.
8339 * remote.c (_initialize_remote): Update `set remotebreak'.
8340
8341 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8342
8343 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8344 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8345 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8346 fit into multi-arch framework.
8347 (i386_breakpoint_from_pc): New function.
8348 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8349 above.
8350
8351 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8352 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8353 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8354 (i386_frameless_function_invocation, i386_frame_num_args,
8355 i386_frame_init_saved_regs): Remove prototypes.
8356 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8357 macros mentioned above.
8358
8359 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8360
8361 * cli/cli-decode.c (set_cmd_cfunc): Update.
8362 (set_cmd_sfunc): Update.
8363 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8364 (set_cmd_sfunc, set_cmd_cfunc): Update.
8365 * cli/cli-decode.h: Update.
8366
8367 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8368
8369 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8370 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8371
8372 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8373
8374 * defs.h (auto_boolean): Declare enum.
8375 * command.h (cmd_auto_boolean): Delete enum.
8376 * mips-tdep.c (mask_address_var): Update.
8377 (mips_mask_address_p): Update.
8378 (show_mask_address): Update.
8379 * remote.c (struct packet_config): Update.
8380 (update_packet_config): Update.
8381 (show_packet_config_cmd): Update.
8382 (packet_ok): Update.
8383 (add_packet_config_cmd): Update.
8384 (_initialize_remote):
8385 * command.h: Update.
8386 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8387 (do_setshow_command): Update.
8388 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8389 * cli/cli-decode.h: Update.
8390
8391 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8392
8393 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8394 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8395 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8396 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8397 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8398 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8399
8400 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8401 list of DJGPP COFF targets.
8402
8403 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8404 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8405 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8406 (FP0_REGNUM): Remove define.
8407 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8408 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8409 (i386_register_virtual_size): Remove protoype.
8410 * i386-tdep.c (i386_register_virtual_size): Removed.
8411 (i386_extract_return_value, i386_store_return_value): Use
8412 FP0_REGNUM instead of NUM_FREGS to determine whether the
8413 floating-point registers are available.
8414 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8415 Adjust for removal of macros mentioned above.
8416
8417 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8418
8419 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8420 comments.
8421 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8422 Remove prototypes.
8423 (supply_gregset, fill_gregset): Remove use of register keyword and
8424 remove declaration for regmap. Use I386_NUM_GREGS instead of
8425 NUM_REGS and NUM_FREGS.
8426 (FPREGSET_FSAVE_OFFSET): Remove.
8427 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8428 NUM_FREGS to determine whether the floating-point registers are
8429 available.
8430
8431 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8432 gnu_store_registers): Replace usage of NUM_GREGS with
8433 I386_NUM_GREGS.
8434
8435 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8436 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8437 usage of NUM_GREGS with I386_NUM_GREGS.
8438
8439 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8440
8441 * i386bsd-nat.c: Include "i386-tdep.h".
8442 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8443 I386_NUM_GREGS.
8444
8445 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8446 and associated comment. They no longer make any sense, since we
8447 don't use this file anymore on Linux.
8448
8449 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8450 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8451 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8452 elements in these arrays.
8453 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8454 MAX_NUM_REGS.
8455
8456 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8457
8458 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8459 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8460
8461 2002-06-14 Andrew Cagney <cagney@redhat.com>
8462
8463 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8464 EXTRACT_RETURN_VALUE.
8465 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8466 EXTRACT_STRUCT_VALUE_ADDRESS.
8467 * gdbarch.h, gdbarch.c: Regenerate.
8468
8469 * values.c (value_being_returned): Handle
8470 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8471 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8472
8473 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8474 * arm-tdep.c (arm_gdbarch_init): Update.
8475 * avr-tdep.c (avr_gdbarch_init): Update.
8476 * cris-tdep.c (cris_gdbarch_init): Update.
8477 * d10v-tdep.c (d10v_gdbarch_init): Update.
8478 * ia64-tdep.c (ia64_gdbarch_init): Update.
8479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8480 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8481 * s390-tdep.c (s390_gdbarch_init): Update.
8482 * sh-tdep.c (sh_gdbarch_init): Update.
8483 * s390-tdep.c (s390_gdbarch_init): Update.
8484 * sparc-tdep.c (sparc_gdbarch_init): Update.
8485 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8486 * v850-tdep.c (v850_gdbarch_init): Update.
8487 * vax-tdep.c (vax_gdbarch_init): Update.
8488 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8490
8491 * config/arc/tm-arc.h: Update.
8492 * config/d30v/tm-d30v.h: Update.
8493 * config/fr30/tm-fr30.h: Update.
8494 * config/h8300/tm-h8300.h: Update.
8495 * config/h8500/tm-h8500.h: Update.
8496 * config/i386/tm-i386.h: Update.
8497 * config/i386/tm-ptx.h: Update.
8498 * config/i386/tm-symmetry.h: Update.
8499 * config/i960/tm-i960.h: Update.
8500 * config/m32r/tm-m32r.h: Update.
8501 * config/m68k/tm-delta68.h: Update.
8502 * config/m68k/tm-linux.h: Update.
8503 * config/m68k/tm-m68k.h: Update.
8504 * config/m88k/tm-m88k.h: Update.
8505 * config/mcore/tm-mcore.h: Update.
8506 * config/mips/tm-mips.h: Update.
8507 * config/mn10200/tm-mn10200.h: Update.
8508 * config/pa/tm-hppa.h: Update.
8509 * config/pa/tm-hppa64.h: Update.
8510 * config/sparc/tm-sp64.h: Update.
8511 * config/sparc/tm-sparc.h: Update.
8512 * config/sparc/tm-sparclet.h: Update.
8513 * config/z8k/tm-z8k.h: Update.
8514
8515 2002-06-14 Andrew Cagney <cagney@redhat.com>
8516
8517 * Makefile.in (i386_linux_tdep_h): Define.
8518 (i386_tdep_h, i387_tdep_h): Define.
8519 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8520 $(i386_tdep_h) and $(i387_tdep_h).
8521 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8522
8523 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8524
8525 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8526 Already covered by the default.
8527
8528 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8529 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8530 (i386_gdbarch_init): Initialize long_double_format and long_double
8531 bit.
8532
8533 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8534 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8535 Move these to ...
8536 * config/i386/i386sol2.mh: ... here.
8537 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8538 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8539 (SIGCONTEXT_PC_OFFSET): Remove define.
8540 (IN_SIGTRAMP): Remove define.
8541 * i386-sol2-tdep.c: New file.
8542
8543 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8544 * config/i386/tm-i386nw.h: Removed.
8545
8546 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8547 USE_STRUCT_CONVENTION): Remove defines.
8548 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8549 (get_longjmp_target): Remove prototype.
8550 (IN_SIGTRAMP): Remove define.
8551 (i386bsd_in_sigtramp): Remove prototype.
8552 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8553 function. Update comment accordingly
8554 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8555 (FRAME_SAVED_PC): Remove define.
8556 (i386bsd_frame_saved_pc): Remove prototype.
8557 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8558 GET_LONGJMP_TARGET): Remove defines.
8559 (get_longjmp_target): Remove prototype.
8560 (IN_SIGTRAMP): Remove define.
8561 (i386bsd_in_sigtramp): Remove prototype.
8562 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8563 function. Update comment accordingly
8564 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8565 (FRAME_SAVED_PC): Remove define.
8566 (i386bsd_frame_saved_pc): Remove prototype.
8567 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8568 Remove prototype.
8569 (USE_STRUCT_CONVENTION): Remove prototype.
8570 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8571 declaration.
8572 (_initialize_i386bsd_nat): Revise logic to determine some
8573 constants at compile time when compiling a native GDB. Warn if
8574 things don't match up with what we expect.
8575 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8576 Remove variables.
8577 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8578 to use date stored in `struct gdbarch_tdep'.
8579 (i386bsd_sigcontext_offset): Remove varaible.
8580 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8581 stored in `struct gdbarch_tdep'.
8582 (i386bsd_frame_saved_pc): Make static.
8583 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8584 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8585 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8586 i386fbsd4_sc_pc_offset): New variables.
8587 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8588 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8589 functions.
8590 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8591 functions.
8592 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8593 Modify the value of i386fbsd_sigtramp_start and
8594 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8595 i386fbsd_sigtramp_end.
8596 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8597 function.
8598
8599 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8600 define to i386-linux-tdep.h.
8601 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8602 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8603 defines.
8604 (i386_linux_register_name, i386_linux_register_byte,
8605 i386_linux_register_raw_size): Remove prototypes.
8606 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8607 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8608 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8609 TARGET_WRITE_PC): Remove defines.
8610 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8611 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8612 i386_linux_write_pc): Remove prototypes.
8613 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8614 (get_longjmp_target): Remove prototype.
8615 * i386-linux-tdep.h: New file.
8616 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8617 * i386-linux-tdep.c: Include "i386-tdep.h" and
8618 "i386-linux-tdep.h".
8619 (i386_linux_register_name, i386_linux_register_byte,
8620 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8621 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8622 Make static.
8623 (i386_linux_init_abi): New function.
8624 (_initialize_i386_linux_tdep): New function.
8625
8626 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8627 (i386_saved_pc_after_call): Remove prototype.
8628 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8629 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8630 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8631 (i386_register_name, i386_stab_reg_to_regnum,
8632 i386_dwarf_reg_to_regnum): Remove prototypes.
8633 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8634 SIZEOF_SSE_REGS): Remove defines.
8635 (REGISTER_BYTES): Remove define.
8636 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8637 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8638 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8639 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8640 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8641 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8642 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8643 (get_longjmp_target): Remove prototype.
8644 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8645 (sigtramp_saved_pc): Remove define.
8646 (i386v4_sigtramp_saved_pc): Remove prototype.
8647 * config/i386/tm-go32.h (FRAME_CHAIN,
8648 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8649 (i386go32_frame_saved_pc): Remove prototype.
8650 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8651 (get_longjmp_target): Remove prototype.
8652 * i386-tdep.h: Include "osabi.h".
8653 (enum i386_abi): Removed.
8654 (enum struct_return): New enum.
8655 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8656 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8657 sc_pc_offset members.
8658 (i386_gdbarch_register_os_abi): Remove prototype.
8659 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8660 I386_SSE_NUM_REGS): New defines.
8661 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8662 I386_SSE_SIZEOF_REGS): New defines.
8663 (i386_register_name, i386_register_byte, i386_register_raw_size):
8664 New prototypes.
8665 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8666 (i386bsd_sigtramp_saved_pc): New prototype.
8667 * i386-tdep.c: Don't include "elf-bfd.h".
8668 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8669 i386_frame_chain, i386_saved_pc_after_call): Make static.
8670 (i386_frame_saved_pc): Rewrite to call architecture dependent
8671 function to deal with signal handlers. Make static.
8672 (i386go32_frame_saved_pc): Removed.
8673 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8674 Removed.
8675 (i386_get_longjmp_target): New function.
8676 (default_struct_convention, pcc_struct_convention,
8677 reg_struct_convention, valid_conventions, struct_convention): New
8678 variables.
8679 (i386_use_struct_convention): New function.
8680 (i386v4_sigtramp_saved_pc): Renamed to
8681 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8682 (i386_pc_in_sigtramp): New function.
8683 (i386_abi_names): Removed.
8684 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8685 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8686 Removed.
8687 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8688 i386_gdbarch_register_os_abi): Removed.
8689 (struct i386_abi_handler): Removed.
8690 (i386_abi_handler_list): Removed.
8691 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8692 functions.
8693 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8694 i386_nw_init_abi): New functions.
8695 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8696 Use set_gdbarch_xxx() calls instead of relying on macros for a
8697 number of calls.
8698 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8699 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8700 Register the various architecture variants defined in this file.
8701
8702 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8703
8704 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8705 (struct main_type): Remove arg_types member. Update comments for
8706 struct field.
8707 (TYPE_ARG_TYPES): Remove.
8708 (TYPE_FN_FIELD_ARGS): Update.
8709 (smash_to_method_type): Update prototype.
8710
8711 * c-typeprint.c (cp_type_print_method_args): Take method type
8712 instead of argument list. Use new argument layout. Simplify.
8713 (c_type_print_args): Use new argument layout. Simplify.
8714 (c_type_print_base): Update call to cp_type_print_method_args.
8715 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8716 argument; use die->type instead. Update call to
8717 smash_to_method_type.
8718 (read_structure_scope): Update call to dwarf2_add_member_fn.
8719 * gdbtypes.c (allocate_stub_method): Update comment.
8720 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8721 Use new argument layout.
8722 (check_stub_method): Use new argument layout. Don't count
8723 void as an argument.
8724 (print_arg_types): Update comments. Use new argument layout.
8725 (recursive_dump_type): Don't print arg_types member.
8726 * hpread.c (hpread_read_struct_type): Use new argument layout.
8727 (fixup_class_method_type): Likewise.
8728 (hpread_type_lookup): Likewise.
8729 * stabsread.c (read_type): Update calls to read_args and
8730 smash_to_method_type.
8731 (read_args): Use new argument layout. Simplify.
8732 * valops.c (typecmp): Use new argument layout. Update parameters
8733 and comments. Simplify.
8734 (hand_function_call): Use new argument layout.
8735 (search_struct_method): Update call to typecmp.
8736 (find_overload_match): Use new argument layout.
8737
8738 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8739
8740 * NEWS: Mention multithreaded debug support for gdbserver.
8741
8742 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8743
8744 * MAINTAINERS: Mention NEWS.
8745
8746 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8747
8748 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8749 (struct mips_objfile_private, compare_pdr_entries): New.
8750 (non_heuristic_proc_desc): Read the ".pdr" section if it
8751 is present.
8752
8753 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8754
8755 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8756 (arm_debug): New static variable.
8757 (_initialize_arm_tdep): Add ``set debug arm'' command.
8758
8759 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8760
8761 * Makefile.in (sim_arm_h): Define.
8762 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8763 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8764 (arm_register_sim_regno): New function, map an internal REGNUM
8765 onto a simulator register number.
8766 (arm_gdbarch_init): Set register_sim_regno.
8767
8768 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8769
8770 * MAINTAINERS: Add self.
8771
8772 2002-06-11 Jim Blandy <jimb@redhat.com>
8773
8774 * source.c (source_info): Mention whether the symtab has
8775 information about preprocessor macros.
8776
8777 Call the command `info macro', not `show macro'.
8778 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8779 Fix error message.
8780 (_initialize_macrocmd): Register `info_macro_command' in
8781 `infolist', not `showlist'.
8782
8783 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8784
8785 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8786 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8787 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8788 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8789 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8790 unconditionally.
8791 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8792 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8793 (_initialize_mips_tdep): Remove dead code.
8794 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8795 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8796 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8797 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8798 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8799 MIPS_LAST_FP_ARG_REGNUM): Remove.
8800
8801 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8802
8803 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8804 (unwind_tmp_obstack_free, parse_frame_info)
8805 (update_context, cfi_read_fp, cfi_write_fp)
8806 (cfi_frame_chain, cfi_init_extra_frame_info)
8807 (cfi_virtual_frame_pointer): Use the above function.
8808 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8809
8810 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8811
8812 * v850-tdep.c (v850_type_is_scalar): New function.
8813 (v850_use_struct_convention): Match current gcc implementation
8814 as close as possible.
8815 (v850_push_arguments): Fix stack_offset handling. Don't write
8816 struct_addr into register. This is done by v850_store_struct_return.
8817 (v850_extract_return_value): Care for structs.
8818 (v850_store_return_value): Ditto.
8819 (v850_store_struct_return): Actually write address.
8820
8821 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8822
8823 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8824 without debug information too.
8825
8826 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8827
8828 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8829 Make multi-arch pure.
8830 * gdbarch.h, gdbarch.c: Re-generate.
8831 * arm-tdep.c (arm_print_float_info): Update.
8832 * arch-utils.h (default_print_float_info): Update.
8833 * arch-utils.c (default_print_float_info): Update.
8834 * infcmd.c (float_info): Update call.
8835
8836 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8837
8838 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8839 the front of the initialize list.
8840
8841 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8842
8843 * infrun.c (struct inferior_status): Replace fields
8844 selected_frame_address and selected_level with field
8845 selected_frame_id.
8846 (save_inferior_status): Update. Use get_frame_id.
8847 (struct restore_selected_frame_args): Delete.
8848 (restore_selected_frame): Update. Use frame_find_by_id.
8849 (restore_inferior_status): Update.
8850
8851 * breakpoint.h (struct breakpoint): Change type of
8852 watchpoint_frame to frame_id.
8853 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8854 call to get_current_frame.
8855 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8856 get_current_frame.
8857 (watchpoint_check): Use frame_find_by_id.
8858
8859 * frame.h (record_selected_frame): Delete declaration.
8860 * stack.c (record_selected_frame): Delete function.
8861
8862 * frame.h (struct frame_id): Define.
8863 (get_frame_id): Declare.
8864 (frame_find_by_id): Declare.
8865 * frame.c (frame_find_by_id): New function.
8866 (get_frame_id): New function.
8867
8868 2002-06-10 Andrey Volkov <avolkov@transas.com>
8869
8870 * ser-e7kpc.c: Fix duplicated define and call of
8871 _initialize_ser_e7000pc
8872
8873 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8874
8875 * signals/signals.c (target_signal_from_host): Fix #ifdef
8876 SIGRTMIN case.
8877 (do_target_signal_to_host): Likewise.
8878
8879 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * mips-tdep.c (mips_find_abi_section): New function.
8882 (mips_gdbarch_init): Call it.
8883
8884 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8885
8886 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8887 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8888 after Andrew's 2002-06-08 gdbarch change.
8889
8890 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8891
8892 * i386-linux-nat.c (suppy_gregset): Don't supply
8893 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8894 register cache.
8895 (fill_gregset): Don't fetch it under the same circumstances.
8896
8897 2002-06-09 Andrew Cagney <cagney@redhat.com>
8898
8899 * Makefile.in (callback_h): Define.
8900 (remote_sim_h): Update path to remote-sim.h.
8901 (remote-rdp.o): Add $(callback_h).
8902 (remote-sim.o): Use $(callback_h).
8903 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8904 * remote-rdp.c: Include "gdb/callback.h".
8905
8906 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8907
8908 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8909 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8910
8911 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8912
8913 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8914 * rdi-share/serpardr.c: Ditto.
8915 * rdi-share/unixcomm.c: Ditto.
8916 * rdi-share/serdrv.c: Ditto.
8917 * rdi-share/hostchan.h: Ditto.
8918 * rdi-share/hostchan.c: Ditto.
8919 * rdi-share/host.h: Ditto.
8920 * rdi-share/devsw.c: Ditto.
8921
8922 * objfiles.h: Change type of obj_private to void pointer.
8923 * pa64solib.c: Update copyright. Don't include "assert.h", use
8924 strcmp instead of STREQ, use LONGEST, do not use PTR
8925 * somsolib.c: Ditto.
8926
8927 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8928 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8929 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8930
8931 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8932
8933 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8934 (default_get_saved_register): Delete function.
8935 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8936 generic_unwind_get_saved_register.
8937 * gdbarch.h, gdbarch.c: Re-generate.
8938
8939 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8940
8941 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8942 generic_func_frame_chain_valid.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * blockframe.c (generic_func_frame_chain_valid): Only check
8945 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8946 passing FP to PC_IN_CALL_DUMMY.
8947 Fix PR gdb/360.
8948
8949 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8950
8951 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8952 (register_gdbarch_data): Initialize init_p.
8953 (gdbarch_data): Initialize data pointer using the init function.
8954 (init_gdbarch_data): Delete function.
8955 (gdbarch_update_p): Update.
8956 (initialize_non_multiarch): Update.
8957 (struct gdbarch): Add field initialized_p.
8958 * gdbarch.h, gdbarch.c: Re-generate.
8959
8960 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8961
8962 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8963 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8964 better do the things actually here.
8965 * x86-64-tdep.c (x86_64_register_name2nr): New.
8966 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8967 (x86_64_gdbarch_init): Respect the above change.
8968 * x86-64-tdep.h (x86_64_register_name2nr)
8969 (x86_64_register_nr2name): Add prototypes.
8970 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8971
8972 2002-06-06 Michael Snyder <msnyder@redhat.com>
8973
8974 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8975 Delete extra braces and re-indent.
8976 (d10v_store_return_value): Char return values
8977 must be shifted over by one byte in R0.
8978 (d10v_extract_return_value): Delete extra braces, re-indent.
8979
8980 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8981
8982 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8983 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8984 (d10v_integer_to_address): Rewrite.
8985 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8986 the d10v specific functions which take care of converting to the
8987 correct space.
8988
8989 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8990
8991 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8992 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8993
8994 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8995
8996 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8997 includes.
8998 * config/tm-linux.h: Ditto.
8999 * config/alpha/tm-alphalinux.h: Ditto.
9000 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9001 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9002 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9003 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9004 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9005 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9006 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9007 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9008 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9009 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9010 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9011 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9012 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9013 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9014 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9015 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9016 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9017 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9018 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9019 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9020 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9021 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9022 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9023 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9024 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9025 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9026 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9027 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9028 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9029 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9030 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9031 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9032 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9033 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9034 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9035 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9036 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9037
9038 2002-05-04 Aidan Skinner <aidan@velvet.net>
9039
9040 * ada-exp.tab.c: New file
9041 * ada-exp.y: New file
9042 * ada-lang.c: New file
9043 * ada-lang.h: New file
9044 * ada-lex.c: New file
9045 * ada-lex.l: New file
9046 * ada-tasks.c: New file
9047 * ada-typeprint.c: New file
9048 * ada-valprint.c: New file
9049
9050 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9051
9052 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9053 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9054
9055 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9056
9057 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9058 insetead of ppc-linux-tdep.o.
9059 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9060 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9061
9062 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9063
9064 2002-05-07 Christian Groessler <chris@groessler.org>
9065 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9066 bit register contents for little endian hosts.
9067
9068 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9069
9070 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9071 any maintainer.
9072
9073 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9074
9075 * gdbarch.h: Regenerate.
9076
9077 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9078
9079 * MAINTAINERS: Add everyone to write-after-approval list.
9080
9081 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9082
9083 * stack.c (frame_info): Use frame_register_unwind instead of
9084 saved_regs. Mention when the SP is on the stack or in a register.
9085
9086 * frame.h (frame_register_unwind_ftype): Define. Document.
9087 (struct frame_info): Add field register_unwind and
9088 register_unwind_cache.
9089 (frame_register_unwind): Declare.
9090 (generic_unwind_get_saved_register): Declare.
9091
9092 * frame.c (frame_register_unwind): New function.
9093 (generic_unwind_get_saved_register): New function.
9094
9095 * blockframe.c (generic_call_dummy_register_unwind): New function.
9096 (frame_saved_regs_register_unwind): New function.
9097 (set_unwind_by_pc): New function.
9098 (create_new_frame): New function.
9099 (get_prev_frame): New function.
9100
9101 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9102
9103 * a29k-share/: Delete directory.
9104 * remote-vx29k.c: Delete file.
9105
9106 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9107
9108 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9109 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9110
9111 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9112
9113 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9114 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9115 (sparc64nbsd-nat.o)
9116 (sparcnbsd-nat.o)
9117 (sparcnbsd-tdep.o): New dependency lists.
9118 * NEWS: Note new UltraSPARC NetBSD native configuration.
9119 * configure.host (sparc64-*-netbsd*): New host.
9120 * configure.tgt (sparc-*-netbsdelf*)
9121 (sparc-*-netbsd*): Set gdb_target to nbsd.
9122 (sparc64-*-netbsd*): New target.
9123 * sparc64nbsd-nat.c: New file.
9124 * sparcnbsd-nat.c: New file.
9125 * sparcnbsd-tdep.c: New file.
9126 * sparcnbsd-tdep.h: New file.
9127 * config/sparc/nbsd.mt: New file.
9128 * config/sparc/nbsd64.mh: New file.
9129 * config/sparc/nbsd64.mt: New file.
9130 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9131 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9132 (HOST_IPC): Remove.
9133 * config/sparc/nbsdaout.mt: Remove.
9134 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9135 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9136 (HOST_IPC): Remove.
9137 * config/sparc/nbsdelf.mt: Remove.
9138 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9139 sparc-nat.c compatiblity defines.
9140 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9141 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9142 * config/sparc/tm-nbsd64.h: New file.
9143 * config/sparc/tm-nbsdaout.h: Remove.
9144 * config/sparc/xm-nbsd.h: Remove.
9145
9146 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9147
9148 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9149 * sparc-tdep.c: Include osabi.h.
9150 (gdbarch_tdep): Add osabi member.
9151 (_initialize_sparc_tdep): Use gdbarch_register.
9152 (sparc_gdbarch_init): Use generic OS ABI framework.
9153 (sparc_dump_tdep): New function.
9154
9155 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9156
9157 * corefile.c (do_captured_read_memory_integer): Return non-zero
9158 result.
9159 (safe_read_memory_integer): Copy result of memory read when
9160 status is non-zero. Also, add comments.
9161
9162 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9163
9164 * Makefile.in (ppc_tdep_h): Define.
9165 (ppc-linux-nat.o)
9166 (ppc-linux-tdep.o)
9167 (rs6000-tdep.o): Use $(ppc_tdep_h).
9168 (ppc-sysv-tdep.o)
9169 (ppcnbsd-nat.o)
9170 (ppcnbsd-tdep.o): New dependency lists.
9171 * ppc-tdep.h: Use generic OS ABI framework.
9172 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9173 (ppc_linux_init_abi): New functions.
9174 (ppc_sysv_abi_broken_use_struct_convention)
9175 (ppc_sysv_abi_use_struct_convention)
9176 (ppc_sysv_abi_push_arguments): Move to...
9177 * ppc-sysv-tdep.c: ...here.
9178 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9179 * rs6000-tdep.c (process_note_abi_tag_sections)
9180 (get_elfosabi): Remove.
9181 (rs6000_gdbarch_init): Use generic OS ABI framework.
9182 (rs6000_dump_tdep): New function.
9183 (_initialize_rs6000_tdep): Use gdbarch_register.
9184 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9185 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9186 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9187 of ppc-linux-tdep.o.
9188 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9189 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9190 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9191 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9192 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9193 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9194
9195 2002-05-29 Jim Blandy <jimb@redhat.com>
9196
9197 * macroscope.c (default_macro_scope): Put `void' in empty argument
9198 list.
9199
9200 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9201
9202 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9203 * arch-utils.c: Include "sim-regno.h".
9204 * gdbarch.sh: Don't include "sim-regno.h".
9205 * gdbarch.h, gdbarch.c: Regenerate.
9206 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9207 here.
9208 * arch-utils.h (legacy_register_sim_regno): To here.
9209 * remote-sim.c (legacy_register_sim_regno): Move function from
9210 here.
9211 * arch-utils.c (legacy_register_sim_regno): To here.
9212
9213 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9214
9215 * sim-regno.h: New file.
9216 * Makefile.in (sim_regno_h): Define.
9217 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9218 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9219 (legacy_register_sim_regno): New function.
9220 (one2one_register_sim_regno): New function.
9221 (gdbsim_fetch_register): Rewrite.
9222 (gdbsim_store_register): Only store a register when
9223 REGISTER_SIM_REGNO is valid.
9224 * d10v-tdep.c: Include "sim-regno.h".
9225 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9226 (d10v_ts3_register_sim_regno): Ditto.
9227 * gdbarch.sh: Include "sim-regno.h".
9228 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9229 * gdbarch.h, gdbarch.c: Regenerate.
9230 * arch-utils.h (default_register_sim_regno): Delete declaration.
9231 * arch-utils.c (default_register_sim_regno): Delete function.
9232
9233 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9234
9235 * ppcnbsd-nat.c: Rewrite.
9236 * ppcnbsd-tdep.c: New file.
9237 * ppcnbsd-tdep.h: New file.
9238 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9239 solib.o, and solib-svr4.o.
9240 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9241 nbsd-tdep.o, and corelow.o.
9242
9243 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9244
9245 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9246 `tr' and `sed'. Mention that `broken' targets are not expected to
9247 build.
9248
9249 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9250
9251 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9252 Let PC point right after the prologue before looking up symbols.
9253
9254 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9255
9256 * i386-tdep.c (i386_register_virtual_type): Return
9257 builtin_type_vec128i for SSE registers.
9258
9259 * gdbtypes.h (builtin_type_vec128i): Declare.
9260
9261 * gdbtypes.c (build_builtin_type_vec128i): New function.
9262 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9263 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9264 (build_gdbtypes): Initialize new builtin vector types.
9265 (_initialize_gdbtypes): Register new vector types with gdbarch.
9266
9267 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9268
9269 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9270 since it has been multi-arch'd.
9271 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9272 Move Alpha and VAX multi-arch news entries to same section
9273 as other multi-arch news.
9274
9275 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9276
9277 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9278 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9279 static. Rename some register numbers to put them in ns32k-tdep
9280 private namespace.
9281 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9282 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9283 functions.
9284 (_initialize_ns32k_tdep): Use gdbarch_register.
9285 * ns32k-tdep.h: New file.
9286 * ns32knbsd-tdep.c: New file.
9287 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9288 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9289 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9290 REGISTER_BYTES, REGISTER_BYTE): Remove.
9291 * config/ns32k/tm-ns32k.h: New file.
9292 * config/ns32k/tm-umax.h: Remove.
9293
9294 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9295
9296 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9297 ns32k_store_struct_return, ns32k_extract_return_value,
9298 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9299 functions.
9300 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9301 ns32k_saved_pc_after_call.
9302 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9303 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9304 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9305 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9306 ns32k_extract_struct_value_address.
9307
9308 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9309
9310 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9311 ns32k_fix_call_dummy): New.
9312 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9313 ns32k_call_dummy_words.
9314 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9315 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9316 CALL_DUMMY_NARGS): Remove.
9317 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9318
9319 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9320
9321 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9322 ns32k_frame_saved_pc, ns32k_frame_args_address,
9323 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9324 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9325 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9326 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9327 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9328 (BREAKPOINT): Remove..
9329 (FRAME_CHAIN): Define as ns32k_frame_chain.
9330 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9331 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9332 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9333 (FRAME_FIND_SAVED_REGS): Remove.
9334 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9335 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9336 (POP_FRAME): Define as ns32k_pop_frame.
9337
9338 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9339
9340 * ns32k-tdep.c (ns32k_register_byte_32082,
9341 ns32k_register_byte_32382, ns32k_register_raw_size,
9342 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9343 functions.
9344 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9345 ns32k_register_byte_32382.
9346 * config/ns32k/tm-umax.h: Update copyright years.
9347 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9348 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9349 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9350 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9351 (ns32k_get_enter_addr): Fix prototype.
9352
9353 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9354
9355 * ns32k-tdep.c: Update copyright years.
9356 (ns32k_register_name_32082): New function.
9357 (ns32k_register_name_32382): Ditto.
9358 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9359 (REGISTER_NAME): Define as ns32k_register_name_32382.
9360 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9361 (REGISTER_NAME): Define as ns32k_register_name_32082.
9362
9363 2002-05-24 Jim Blandy <jimb@redhat.com>
9364
9365 * dwarf2read.c (free_line_header): Use xfree, not free.
9366
9367 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9368
9369 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9370 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9371
9372 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9373
9374 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9375
9376 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9377
9378 From Ross Alexander at NEC Europe:
9379 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9380
9381 2002-05-23 Michael Snyder <msnyder@redhat.com>
9382
9383 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9384 for input, rather than parse_and_eval_address.
9385
9386 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9387
9388 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9389 * Makefile.in (sim_d10v_h): Update definition.
9390
9391 2002-05-24 Andrew Cagney <cagney@redhat.com>
9392
9393 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9394 change `2002-05-22 Michael Snyder' below.
9395 (d10v_push_arguments): Ditto.
9396 (d10v_extract_return_value): Ditto.
9397
9398 2002-05-23 Jim Blandy <jimb@redhat.com>
9399
9400 * macrotab.c (check_for_redefinition): Don't complain if the new
9401 definition is the same as the previous one. Take more arguments
9402 to allow the comparison.
9403 (macro_define_object, macro_define_function): Pass more arguments
9404 to check_for_redefinition.
9405
9406 2002-05-22 Michael Snyder <msnyder@redhat.com>
9407
9408 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9409 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9410 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9411 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9412 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9413 Add a temp variable to save a call (and a memory read).
9414 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9415 if possible (so that PC_IN_CALL_DUMMY will work).
9416
9417 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9418
9419 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9420
9421 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9422
9423 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9424 fde->cie_ptr.
9425 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9426 (dwarf2_build_frame_info): Add offset to fde->initial_location
9427 so that frames of shared libraries are mapped correctly.
9428 (execute_stack_op): Change type of 'result' from ULONGEST to
9429 CORE_ADDR.
9430
9431 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9432
9433 * config/alpha/tm-nbsd.h: Include solib.h.
9434
9435 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9436
9437 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9438 assumptions about the host's byte order.
9439
9440 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9441
9442 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9443 to dependency list.
9444 * alphanbsd-tdep.c: Include solib-svr4.h.
9445 * shnbsd-tdep.c: Ditto.
9446
9447 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9448
9449 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9450 nbsd-tdep.h to dependency list.
9451 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9452 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9453 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9454 nbsdaout.mh and nbsdelf.mh consistently.
9455 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9456 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9457 nbsdaout.mt and nbsdelf.mh consistently.
9458 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9459 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9460 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9461 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9462 a.out shared library stuff from here...
9463 * config/nm-nbsdaout.h: ...to here.
9464 * config/tm-nbsd.h: Remove.
9465 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9466 * config/arm/nbsd.mh: Remove.
9467 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9468 nbsd-tdep.o.
9469 * config/arm/nbsdaout.mh: New file.
9470 * config/arm/nbsdelf.mh: New file.
9471 * config/arm/nm-nbsdaout.h: New file.
9472 * config/i386/nbsd.mh: Remove.
9473 * config/i386/nbsd.mt: Remove.
9474 * config/i386/nbsdaout.mh: New file.
9475 * config/i386/nbsdaout.mt: New file.
9476 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9477 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9478 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9479 i386_register_u_addr): Remove.
9480 * config/i386/nm-nbsdaout.h: New file.
9481 * config/i386/nm-nbsdelf.h: Remove.
9482 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9483 (USE_STRUCT_CONVENTION): Remove.
9484 * config/i386/tm-nbsdaout.h: New file.
9485 * config/i386/tm-nbsdelf.h: Remove.
9486 * config/m68k/nbsd.mh: Remove.
9487 * config/m68k/nbsd.mt: Remove.
9488 * config/m68k/nbsdaout.mh: New file.
9489 * config/m68k/nbsdaout.mt: New file.
9490 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9491 * config/m68k/nm-nbsdaout.h: New file.
9492 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9493 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9494 * config/ns32k/nbsd.mh: Remove.
9495 * config/ns32k/nbsd.mt: Remove.
9496 * config/ns32k/nbsdaout.mh: New file.
9497 * config/ns32k/nbsdaout.mt: New file.
9498 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9499 * config/ns32k/nm-nbsdaout.h: New file.
9500 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9501 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9502 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9503 (SVR4_SHARED_LIBS): Remove.
9504 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9505 * config/sparc/nbsd.mh: Remove.
9506 * config/sparc/nbsd.mt: Remove.
9507 * config/sparc/nbsdaout.mh: New file.
9508 * config/sparc/nbsdaout.mt: New file.
9509 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9510 * config/sparc/nbsdelf.mt: New file.
9511 * config/sparc/nm-nbsdaout.h: New file.
9512 * config/sparc/nm-nbsdelf.h: Remove.
9513 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9514 * config/sparc/tm-nbsdaout.h: New file.
9515
9516 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9517
9518 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9519 mipsnbsd-tdep.c
9520 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9521
9522 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9525 shnbsd-nat.c.
9526 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9527
9528 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9529
9530 * NEWS: Note new MIPS NetBSD native configuration.
9531 * configure.host (mips*-*-netbsd*): New host.
9532 * configure.tgt (mips*-*-netbsd*): New target.
9533 * mipsnbsd-nat.c: New file.
9534 * mipsnbsd-tdep.c: New file.
9535 * mipsnbsd-tdep.h: New file.
9536 * config/mips/nbsd.mh: New file.
9537 * config/mips/nbsd.mt: New file.
9538 * config/mips/nm-nbsd.h: New file.
9539 * config/mips/tm-nbsd.h: New file.
9540
9541 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9542
9543 * Makefile.in (SFILES): Add osabi.c.
9544 (COMMON_OBS): Add osabi.o.
9545 (osabi.o): New dependency list.
9546 * osabi.c: New file.
9547 * osabi.h: New file.
9548 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9549
9550 * Makefile.in (alpha_tdep_h): Define and use instead of
9551 alpha-tdep.h.
9552 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9553 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9554 Remove.
9555 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9556 * alpha-tdep.h: Include osabi.h.
9557 (alpha_abi): Remove.
9558 (gdbarch_tdep): Use generic OS ABI framework.
9559 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9560 gdbarch_register_osabi.
9561 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9562 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9563 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9564
9565 * Makefile.in (sh_tdep_h): Add osabi.h.
9566 * sh-tdep.h (sh_osabi): Remove.
9567 (gdbarch_tdep): Use generic OS ABI framework.
9568 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9569 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9570 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9571 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9572
9573 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9574 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9575 gdbarch_register_osabi.
9576 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9577 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9578 (get_elfosabi): Rename to...
9579 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9580 ABI framework support routines.
9581 (arm_gdbarch_init): Use generic OS ABI framework.
9582 (arm_dump_tdep): Likewise.
9583 (_initialize_arm_tdep): Likewise.
9584 * arm-tdep.h: Include osabi.h.
9585 (arm_abi): Remove.
9586 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9587 osabi member.
9588 (arm_gdbarch_register_os_abi): Remove prototype.
9589 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9590 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9591
9592 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9593 * mips-tdep.c: Include osabi.h.
9594 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9595 OS ABI framework.
9596
9597 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9598
9599 * h8300-tdep.c: Fix formatting.
9600
9601 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9602
9603 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9604 printing vector registers.
9605
9606 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9607
9608 From Fernando Nasser:
9609 * remote.c (remote_async_open_1): Re-throw the exception when the
9610 connection fails.
9611 (remote_cisco_open): Ditto.
9612 (remote_open_1): Ditto.
9613
9614 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9615
9616 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9617 (remote_start_remote): Add uiout parameter. Pass through to
9618 remote_start_remote_dummy.
9619 (remote_open_1): Use catch_exception instead of catch_errors.
9620 (remote_async_open_1): Ditto.
9621 (remote_cisco_open): Ditto.
9622
9623 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9624
9625 * remote.c (remote_start_remote): Replace PTR with void pointer.
9626 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9627 static.
9628
9629 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9630
9631 * gdb_indent.sh: Allow the script to be run in the sim directory.
9632
9633 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9634
9635 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9636 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9637
9638 * corelow.c (core_open): Only call set_gdbarch_from_file if
9639 exec_bfd is NULL.
9640
9641 2002-05-17 Andrey Volkov <avolkov@transas.com>
9642
9643 * h8300-tdep.c: Add support of EXR register
9644 * config/h8300/tm-h8300.h: Ditto.
9645
9646 2002-05-17 Andrey Volkov <avolkov@transas.com>
9647
9648 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9649
9650 2002-05-17 Andrey Volkov <avolkov@transas.com>
9651
9652 * h8300-tdep.c: Change literal regnums to REGNO.
9653
9654 2002-05-17 Jim Blandy <jimb@redhat.com>
9655
9656 * NEWS: Note addition of macro support.
9657
9658 Expand preprocessor macros in C expressions.
9659 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9660 (scan_macro_expansion, scanning_macro_expansion,
9661 finished_macro_expansion): New function declarations.
9662 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9663 variable declarations.
9664 * parser-defs.h (expression_context_pc): New declaration.
9665 * parse.c (expression_context_pc): New variable.
9666 (parse_exp_1): Set expression_context_pc, as well as
9667 expression_context_block.
9668 * c-exp.y (yylex): If we're not already reading the result of a
9669 macro expansion, try to macro-expand the next token. When we're
9670 done scanning a macro expansion, switch back to the mainline text.
9671 Commas and `if's in a macro's expansion don't terminate the input.
9672 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9673 (macro_original_text, macro_expanded_text,
9674 expression_macro_lookup_func, expression_macro_lookup_baton): New
9675 variables.
9676 (scan_macro_expansion, scanning_macro_expansion,
9677 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9678 c_preprocess_and_parse): New functions.
9679 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9680 c_preprocess_and_parse, instead of c_parse.
9681 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9682 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9683
9684 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9685
9686 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9687 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9688 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9689
9690 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9691
9692 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9693
9694 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9695
9696 * Makefile.in (sh_tdep_h): Define and use.
9697 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9698 register enum): Move to...
9699 * * sh-tdep.h: ...here.
9700 * sh-tdep.c: Include sh-tdep.h.
9701 * sh3-rom.c: Likewise.
9702 * shnbsd-tdep.c: Likewise.
9703
9704 2002-05-16 Michael Snyder <msnyder@redhat.com>
9705
9706 * arm-tdep.c: Spelling fix in comment.
9707
9708 2002-05-16 Jim Blandy <jimb@redhat.com>
9709
9710 Add commands for manually expanding macros and showing their
9711 definitions.
9712 * macrocmd.c, macroscope.c, macroscope.h: New files.
9713 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9714 (macroscope_h): New variable.
9715 (HFILES_NO_SRCDIR): Add macroscope.h.
9716 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9717 (macroscope.o, macrocmd.o): New rules.
9718
9719 Teach the Dwarf 2 reader to read macro information.
9720 * dwarf2read.c: #include "macrotab.h".
9721 (dwarf_macinfo_buffer): New variable.
9722 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9723 dwarf_macinfo_size.
9724 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9725 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9726 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9727 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9728 dwarf2_macro_spaces_in_definition): New complaints.
9729 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9730 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9731 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9732 the partial symbol table.
9733 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9734 from what's recorded in the partial symbol table.
9735 (read_file_scope): If the compilation unit has a
9736 `DW_AT_macro_info' attribute, read its macro information.
9737 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9738
9739 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9740
9741 Fix PR gdb/546
9742 * ser-tcp.c: Don't include <netinet/udp.h>.
9743
9744 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9745
9746 * MAINTAINERS: Update my email address.
9747
9748 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9749
9750 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9751 include file of the same name.
9752
9753 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9754
9755 * configure.tgt: Mark v850 as multi-arched.
9756 * config/v850/tm-v850.h: Remove file.
9757 * config/v850/v850.mt: Eliminate TM_FILE.
9758
9759 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9760
9761 * v850-tdep.c: Full multi-arch.
9762 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9763 Define GDB_MULTI_ARCH to 2.
9764
9765 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9766
9767 * p-exp.y (current_type): New static variable.
9768 Carries the type of the expression at the position that is parsed.
9769 (push_current_type, pop_current_type): Two new functions. Used
9770 to store/restore current_type in expression on specific tokens.
9771 (search_field): New static variable. Set to one after parsing a point
9772 as at that point only a FIELDNAME token should be searched.
9773 (FIELDNAME): New token. After a point only a token belonging to
9774 current_type type definition is allowed.
9775 (all over token rules): reset and change current_type according
9776 to rules.
9777 (exp '[' rule): insert implicit array index field if
9778 exp is a pascal string type.
9779
9780 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9781
9782 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9783 frame info. Use frame_info's saved_regs instead of matching member
9784 in extra_frame_info throughout.
9785 (v850_frame_init_saved_regs): New function.
9786 (v850_init_extra_frame_info): Move most functionality into
9787 v850_frame_init_saved_regs().
9788 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9789 (v850_frame_find_saved_regs): Remove declaration.
9790 (FRAME_FIND_SAVED_REGS): Remove definition.
9791 (v850_frame_init_saved_regs): Add declaration.
9792 (FRAME_INIT_SAVED_REGS): Add definition.
9793
9794 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9795
9796 * v850-tdep.c: Begin multi-arch'ing v850.
9797 (v850_target_architecture_hook): Remove function.
9798 (v850_gdbarch_init): New function. Add code previously in
9799 v850_target_architecture_hook().
9800 (_initialize_v850_tdep): Don't set target_architecture_hook.
9801 Call register_gdbarch_init() instead.
9802
9803 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9804
9805 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9806 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9807 (fixup_class_method_type): Likewise.
9808
9809 2002-05-15 Jim Blandy <jimb@redhat.com>
9810
9811 Add macro structures to GDB's symbol tables. Nobody puts anything
9812 in them yet.
9813 * symtab.h (struct symtab): New member: `macro_table'.
9814 * buildsym.h (pending_macros): New global variable.
9815 * buildsym.c: #include "macrotab.h".
9816 (buildsym_init): Initialize `pending_macros'.
9817 (end_symtab): If we found macro information while reading a CU's
9818 debugging info, do build a symtab structure for it. Make the
9819 symtab point to the macro information, and clear the
9820 `pending_macros' pointer which held it while we were reading the
9821 debug info.
9822 (really_free_pendings): Free any pending macro table.
9823 * objfiles.h (struct objfile): New member: `macro_cache'.
9824 * objfiles.c (allocate_objfile): Set allocate and free functions
9825 for the macro cache's objstack.
9826 (free_objfile): Empty the macro cache's obstack.
9827 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9828 set new allocate and free functions for it.
9829 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9830 free functions for the macro cache's objstack. (Why is this
9831 function building its own objfile?)
9832 * symmisc.c (print_objfile_statistics): Print statistics on the
9833 macro bcache.
9834 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9835
9836 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9837
9838 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9839 (REGISTER_U_ADDR): Delete definition.
9840 (arm_register_u_addr): Delete declaration.
9841
9842 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9845 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9846
9847 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9848
9849 * regcache.c (register_valid): Revise comments refering to "Not
9850 available" and "unavailable".
9851 * frame.c (frame_register_read): Ditto.
9852 * findvar.c (value_of_register): Ditto.
9853
9854 2002-05-15 Andrew Cagney <cagney@redhat.com>
9855
9856 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9857 (remote-sim.o): Update dependencies.
9858 (d10v-tdep.o): Specify dependencies.
9859 (sim_d10v_h): Define.
9860
9861 2002-05-14 Jim Blandy <jimb@redhat.com>
9862
9863 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9864 * macrotab.c (macro_lookup_inclusion, find_definition,
9865 new_macro_table): Same.
9866
9867 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9868 not `! strcmp ()'. This is a dubious improvement.
9869 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9870
9871 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9872 although it's not necessary, to avoid a warning.
9873
9874 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9875
9876 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9877 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9878 TYPE_INSTANCE_FLAGS.
9879 (struct main_type): New.
9880 (struct type): Move most members to struct main_type. Change
9881 cv_type and as_type to new type_chain member. Add instance_flags.
9882 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9883 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9884 (finish_cv_type): Remove prototype.
9885 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9886 Set TYPE_CHAIN.
9887 (alloc_type_instance): New function.
9888 (smash_type): New function.
9889 (make_pointer_type, make_reference_type, make_function_type)
9890 (smash_to_member_type, smash_to_method_type): Call smash_type.
9891 (make_qualified_type): New function.
9892 (make_type_with_address_space): Call make_qualified_type.
9893 (make_cv_type): Likewise.
9894 (finish_cv_type): Remove unnecessary function.
9895 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9896 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9897 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9898 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9899 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9900 * hpread.c (hpread_read_struct_type): Likewise.
9901 * stabsread.c (read_struct_type): Likewise.
9902
9903 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9904
9905 * configure.tgt: Add a catch all sh* target, for cases like
9906 sh[2,3,4]-elf and sh-hms.
9907
9908 2002-05-14 Keith Seitz <keiths@redhat.com>
9909
9910 * event-loop.c (create_file_handler): Don't do anything but
9911 update data when we are given a fd which we are already
9912 monitoring.
9913
9914 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9915
9916 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9917 (update_context): Use __func__ in warnings.
9918
9919 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9922 and tcp_close to net_open and net_close.
9923 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9924 using UDP if requested. Don't try to disable Nagle on UDP
9925 sockets.
9926 * remote.c (remote_serial_open): New function. Warn about UDP.
9927 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9928
9929 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9930
9931 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9932
9933 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9934
9935 * configure.tgt: Remove sh-hms target.
9936 * MAINTAINERS: Don't list sh-hms as a separate target.
9937
9938 2002-05-13 Jim Blandy <jimb@redhat.com>
9939
9940 Add first preprocessor macro-expansion files.
9941 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9942 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9943 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9944 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9945 (COMMON_OBS): Add macrotab.o, macroexp.o.
9946 (macroexp.o, macrotab.o): New rules.
9947
9948 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9949
9950 * config/m88k/tm-m88k.h: Update copyright.
9951 (m88k_target_write_pc): Declare
9952 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9953 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9954 (SHIFT_INST_REGS): Update definition.
9955 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9956 using old definition of TARGET_WRITE_PC.
9957 * regcache.c (generic_target_write_pc): Delete code handling
9958 NNPC_REGNUM.
9959 * gdbarch.sh (NNPC_REGNUM): Delete.
9960 * gdbarch.h, gdbarch.c: Regenerate.
9961
9962 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9963
9964 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9965 builtin reg number.
9966
9967 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9970 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9971 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9972 access macros.
9973 * c-typeprint.c (cp_type_print_method_args): Likewise.
9974 (c_type_print_args): Likewise.
9975 * d10v-tdep.c (d10v_push_arguments): Likewise.
9976 (d10v_extract_return_value): Likewise.
9977 * expprint.c (print_subexp): Likewise.
9978 * gdbtypes.c (lookup_primitive_typename): Likewise.
9979 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9980 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9981 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9982 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9983 (TYPE_VECTOR): Likewise.
9984 * hpread.c (hpread_read_struct_type)
9985 (fix_static_member_physnames, fixup_class_method_type)
9986 (hpread_type_lookup): Likewise.
9987 * mdebugread.c (parse_symbol, parse_type): Likewise.
9988 * p-lang.c (is_pascal_string_type): Likewise.
9989 * valops.c (hand_function_call): Likewise.
9990 * x86-64-tdep.c (classify_argument): Likewise.
9991
9992 * hpread.c (hpread_read_function_type)
9993 (hpread_read_doc_function_type): Call replace_type.
9994 * dstread.c (create_new_type): Delete.
9995 (decode_dst_structure, process_dst_function): Call alloc_type.
9996 Use type access macros.
9997
9998 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9999
10000 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10001 the're not supported by the current architecture.
10002 (i387_fill_fxsave): Likewise.
10003
10004 2002-05-12 Fred Fish <fnf@redhat.com>
10005
10006 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10007 sect_index_xxx members to index the first slot in section_offsets
10008 if all of the section_offsets are zero.
10009
10010 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10011
10012 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10013 checked in with last change.
10014
10015 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10016
10017 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10018 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10019 config.sub.
10020
10021 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10022
10023 * Makefile.in: Update dependencies.
10024
10025 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10026
10027 * language.c (local_hex_string_custom): Simplify. Do not depend
10028 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10029
10030 * memattr.c (mem_info_command): Replace calls to
10031 longest_local_hex_string and longest_local_hex_string_custom.
10032 * buildsym.c (make_blockvector): Ditto.
10033 * solib.c (info_sharedlibrary_command): Ditto.
10034 * tracepoint.c (tracepoints_info): Ditto.
10035 * symtab.c (print_msymbol_info): Ditto.
10036
10037 * language.c (local_hex_string): Delete.
10038 (local_hex_string_custom): Delete.
10039 (longest_local_hex_string): Rename to local_hex_string.
10040 (longest_local_hex_string_custom): Rename to
10041 local_hex_string_custom.
10042 * language.h (local_hex_string): Change parameter type to LONGEST.
10043 (local_hex_string_custom): Ditto.
10044 (longest_local_hex_string): Delete declaration.
10045 (longest_local_hex_string_custom): Ditto.
10046
10047 * solib.c: Update copyright.
10048 * memattr.c: Update copyright.
10049
10050 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10051
10052 * arch-utils.h (legacy_register_to_value): Declare.
10053 (legacy_value_to_register): Declare.
10054 (legacy_convert_register_p): Declare.
10055 * arch-utils.c (legacy_register_to_value): New function.
10056 (legacy_value_to_register): New function.
10057 (legacy_convert_register_p): New function.
10058
10059 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10060 (VALUE_TO_REGISTER): Define.
10061 (CONVERT_REGISTER_P): Define.
10062 * gdbarch.h, gdbarch.c: Regenerate.
10063
10064 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10065 VALUE_TO_REGISTER.
10066 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10067 CONVERT_REGISTER_P.
10068
10069 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10070 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10071
10072 * Makefile.in: Update dependencies for valops.c.
10073 * valops.c: Include "gdb_assert.h".
10074 (typecmp): Skip THIS parameter to methods.
10075 (find_method_list): Remove static_memfuncp argument,
10076 update callers. Check for stub methods.
10077 (find_value_oload_method_list): Don't set *static_memfuncp.
10078 (find_overload_match): Don't check for stub methods. Assert
10079 that methods are not stubbed. Handle static methods.
10080 (value_find_oload_method_list): Remove static_memfuncp argument.
10081 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10082 to the argument list for static stub methods.
10083 * value.h (value_find_oload_method_list): Update prototype.
10084
10085 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10086
10087 * arch-utils.h (generic_register_size): Declare.
10088 (generic_register_raw_size, generic_register_virtual_size): Delete
10089 declarations.
10090 * arch-utils.c (generic_register_raw_size): Delete.
10091 (generic_register_size): New function.
10092 (generic_register_virtual_size): Delete.
10093
10094 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10095 default generic_register_size.
10096 * gdbarch.h, gdbarch.c: Re-generate.
10097
10098 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10099 register_virtual_size.
10100 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10101 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10102
10103 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10104
10105 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10106 * gdbarch.h, gdbarch.c: Regenerate.
10107 * gnu-v3-abi.c: Update copyright.
10108 (vtable_address_point_offset): Update.
10109 (gnuv3_rtti_type): Update.
10110 (gnuv3_baseclass_offset): Update.
10111 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10112 (init_fetch_link_map_offsets): Update.
10113 * remote.c (get_remote_state): Update.
10114
10115 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10116
10117 * TODO: Remove value_headof/value_from_vtable_info comment.
10118 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10119 * values.c (value_headof, value_from_vtable_info): Delete.
10120 * value.h (value_from_vtable_info): Delete prototype.
10121
10122 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10123
10124 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10125 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10126 $(gdb_regex_h).
10127 (gdb_assert_h): Define.
10128 (gdb_wait_h): Define.
10129 (gdb_regex_h): Define.
10130
10131 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10132
10133 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10134 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10135
10136 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10137
10138 * nbsd-tdep.c: Fix comment.
10139
10140 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10141
10142 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10143 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10144 (nbsd-tdep.o): New dependency list.
10145 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10146 nbsd-tdep.h.
10147 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10148 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10149 * nbsd-tdep.c: New file.
10150 * nbsd-tdep.h: New file.
10151 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10152 nbsd-tdep.h.
10153 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10154 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10155 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10156 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10157
10158 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10159
10160 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10161 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10162 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10163 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10164 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10165 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10166
10167 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10168
10169 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10170 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10171 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10172 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10173 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10174 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10175 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10176
10177 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10178
10179 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10180 fetch_elfcore_registers to...
10181 * i386nbsd-tdep.c: ...here.
10182 (i386nbsd_use_struct_convention): Rename to...
10183 (i386nbsd_aout_use_struct_convention): ...this.
10184 (i386nbsd_supply_reg): New function.
10185 (i386nbsd_fill_reg): New function.
10186 (fetch_core_registers): Use i386nbsd_supply_reg.
10187 (fetch_elfcore_registers): Likewise.
10188 (_initialize_i386nbsd_tdep): New function.
10189 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10190 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10191 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10192 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10193 (i386nbsd_aout_use_struct_convention): ...this.
10194
10195 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10196
10197 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10198 (store_inferior_registers): Use shnbsd_fill_reg.
10199 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10200 sh_nbsd_supply_register): Collapse into...
10201 (shnbsd_supply_reg): ...this.
10202 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10203 (shnbsd_fill_reg): ...this.
10204 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10205 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10206 (fetch_core_registers): Use shnbsd_supply_reg.
10207 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10208 (sh_nbsd_core_fns): Rename to...
10209 (shnbsd_core_fns): ...this.
10210 (sh_nbsd_elfcore_fns): Rename to...
10211 (shnbsd_elfcore_fns): ...this.
10212 (sh_nbsd_init_abi): Rename to...
10213 (shnbsd_init_abi): ...this.
10214 (_initialize_sh_nbsd_tdep): Rename to...
10215 (_initialize_shnbsd_tdep): ...this.
10216 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10217 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10218 sh_nbsd_fill_register): Remove prototypes.
10219 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10220
10221 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10222
10223 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10224 (i387-nat.o): Delete dependency list.
10225 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10226 (x86-64-linux-nat.o): Likewise.
10227 * i387-nat.c: Delete file, moving contents to...
10228 * i387-tdep.c: ...here.
10229 * i387-nat.h: Rename...
10230 * i387-tdep.h: ...to this.
10231 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10232 * i386-linux-nat.c: Likewise.
10233 * i386bsd-nat.c: Likewise.
10234 * i386gnu-nat.c: Likewise.
10235 * i386nbsd-nat.c: Likewise.
10236 * i386v4-nat.c: Likewise.
10237 * x86-64-linux-nat.c: Likewise.
10238 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10239 * config/i386/go32.mh (NATDEPFILES): Likewise.
10240 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10241 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10242 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10243 * config/i386/linux.mh (NATDEPFILES): Likewise.
10244 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10245 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10246 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10247 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10248
10249 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10250
10251 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10252 (alphanbsd-nat.o): Remove dependency list.
10253 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10254 * alphanbsd-nat.c: Delete. Contents moved to...
10255 * alphanbsd-tdep.c: ...here.
10256 (_initialize_alphanbsd_tdep): Register core functions.
10257 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10258
10259 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10260
10261 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10262 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10263 (alphanbsd-nat.o): Likewise.
10264 (alphabsd-tdep.o): New dependency list.
10265 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10266 (fill_gregset): Use alphabsd_fill_reg.
10267 (supply_fpregset): Use alphabsd_supply_fpreg.
10268 (fill_fpregset): Use alphabsd_fill_fpreg.
10269 (fetch_inferior_registers): Use struct reg and struct fpreg
10270 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10271 and alphabsd_supply_fpreg.
10272 (store_inferior_registers): Use struct reg and struct fpreg
10273 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10274 and alphabsd_fill_fpreg.
10275 * alphabsd-tdep.c: New file.
10276 * alphabsd-tdep.h: New file.
10277 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10278 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10279 alphabsd_supply_fpreg.
10280 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10281 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10282
10283 2002-05-11 Eric Christopher <echristo@redhat.com>
10284
10285 * mips-tdep.c (mips_double_register_type): Fix thinko.
10286 (mips_single_register_type): Ditto.
10287 * MAINTAINERS: Add self.
10288
10289 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10290
10291 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10292 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10293 right thing on architectures with different endianness and/or
10294 integer sizes.
10295
10296 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10297
10298 From Christian Limpach <chris@Pin.LU>
10299 * configure.in: Change sed expression which comments out
10300 NATDEPFILES to also comment out continuation lines.
10301 * configure: Regenerate.
10302
10303 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10304
10305 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10306 big patch.
10307
10308 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10309
10310 * sh-tdep.c: Include correct file.
10311
10312 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10313
10314 New support for sh64-elf (sh5) target.
10315
10316 * configure.tgt: For sh64-elf target, default to sh-elf.
10317
10318 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10319 (struct gdbarch_tdep): Add new fields for new registers and ABI
10320 info.
10321
10322 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10323 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10324 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10325 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10326 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10327 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10328 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10329 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10330 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10331 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10332 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10333 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10334 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10335 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10336 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10337 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10338 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10339 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10340 sign_extend, sh64_nofp_frame_init_saved_regs,
10341 sh64_init_extra_frame_info, sh64_get_saved_register,
10342 sh64_extract_struct_value_address, sh64_pop_frame,
10343 sh64_push_arguments, sh64_extract_return_value,
10344 sh64_store_return_value, sh64_show_media_regs,
10345 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10346 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10347 sh_sh64_register_virtual_type,
10348 sh_sh64_register_convert_to_virtual,
10349 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10350 sh64_register_read, sh64_pseudo_register_write,
10351 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10352 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10353 sh64_do_pseudo_register, sh_compact_do_registers_info,
10354 sh64_do_registers_info, sh_gdbarch_init): New functions.
10355
10356 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10357
10358 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10359
10360 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10361
10362 * linespec.c (decode_line_1): Check for a double quote after
10363 a filename correctly.
10364
10365 2002-05-10 Jim Blandy <jimb@redhat.com>
10366
10367 Properly track the size of the current objfile's .debug_line section.
10368 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10369 (DWARF_LINE_SIZE): New macro.
10370 (dwarf2_build_psymtabs_hard): Record the line section's size in
10371 the partial symbol table.
10372 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10373 symbol table.
10374
10375 2002-05-10 Petr Sorfa <petrs@caldera.com>
10376
10377 * ia64-tdep.c: Handle breakpoints on L instruction type
10378 in MLX instruction bundle by moving the breakpoint to
10379 the third slot (X instruction type) as L holds only data.
10380
10381 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10382
10383 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10384 (process_one_symbol): Complain about discarding local symbols
10385 due to a misplaced N_LBRAC entry.
10386
10387 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10388
10389 From Daniel Berlin <dan@cgsoftware.com>
10390 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10391 decrease the depth we are at, in the case of templates.
10392
10393 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10394
10395 * mips-tdep.c (mips_float_register_type): New function.
10396 (mips_double_register_type): New function.
10397 (mips_print_register): Use them.
10398 (do_fp_register_row): Likewise.
10399
10400 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10401
10402 * signals/signals.c (signals): Remove conditional compilation around
10403 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10404 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10405
10406 2002-05-09 Michael Snyder <msnyder@redhat.com>
10407
10408 * remote-rdp.c (remote_rdp_can_run): Remove.
10409
10410 2002-05-09 Tom Tromey <tromey@redhat.com>
10411
10412 * jv-valprint.c (java_val_print): Handle `char' as a special case
10413 of TYPE_CODE_INT.
10414
10415 2002-05-09 Michael Snyder <msnyder@redhat.com>
10416
10417 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10418 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10419 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10420 str r(0123),[sp,#nn].
10421 (arm_skip_prologue): Ditto. Also make disassembly
10422 order-independent by placing it in a loop.
10423
10424 2002-05-06 Michael Snyder <msnyder@redhat.com>
10425
10426 * stabsread.c (read_type): Add recognition for new attribute:
10427 "@V;" means that an array type is actually a vector.
10428 This is analogous to the vector flag that's been added to dwarf2.
10429
10430 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10431
10432 * i386-tdep.h (i386_abi): New enum.
10433 (struct gdbarch_tdep): Replace os_ident member with abi.
10434 (i386_gdbarch_register_os_abi): New prototype.
10435 * i386-tdep.c (i386_abi_names): New array.
10436 (process_note_abi_tag_sections): Removed.
10437 (process_note_sections): New function.
10438 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10439 (struct i386_abi_handler): New struct.
10440 (i386_abi_handler_list): New variable.
10441 (i386_gdbarch_register_os_abi): New function.
10442 (i386_gdbarch_init): Adapt for the changes given above.
10443
10444 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10445
10446 * gregset.h: Say "GNU/Linux".
10447
10448 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10449
10450 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10451 (build_gdbtypes): Build builtin_type_v2_float.
10452 (_initialize_gdbtypes): Register new builtin type.
10453
10454 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10455
10456 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10457 (clear_gdbarch_swap): New function.
10458 (initialize_non_multiarch): Call.
10459 (gdbarch_update_p): Before calling init(), swap out and clear the
10460 existing architecture.
10461 * gdbarch.c: Regenerate.
10462
10463 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10464
10465 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10466 alphanbsd-tdep.c.
10467
10468 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10469
10470 * sh-nbsd-nat.c: Rename to...
10471 * shnbsd-nat.c: ...this.
10472 * sh-nbsd-tdep.c: Rename to...
10473 * shnbsd-tdep.c: ...this.
10474 * sh-nbsd-tdep.h: Rename to...
10475 * shnbsd-tdep.h: ...this.
10476 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10477 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10478
10479 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10480
10481 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10482 concatenation for command help messages.
10483
10484 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10485
10486 * NEWS: Note new sh*-*-netbsdelf* configuration.
10487 * configure.host: Set gdb_host_cpu to sh for all sh*.
10488 (sh*-*-netbsdelf*): New host.
10489 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10490 (sh*-*-netbsdelf*): New target.
10491 * sh-nbsd-nat.c: New file.
10492 * sh-nbsd-tdep.c: New file.
10493 * sh-nbsd-tdep.h: New file.
10494 * config/sh/nbsd.mh: New file.
10495 * config/sh/nbsd.mt: New file.
10496 * config/sh/nm-nbsd.h: New file.
10497 * config/sh/tm-nbsd.h: New file.
10498
10499 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10500
10501 * sh-tdep.c (sh_osabi_names): Declare.
10502 (process_note_abi_tag_sections): New function.
10503 (get_elfosabi): Ditto.
10504 (sh_gdbarch_register_os_abi): Ditto.
10505 (sh_dump_tdep): Ditto.
10506 _initialize_sh_tdep): Use gdbarch_register to register
10507 sh_gdbarch_init and sh_dump_tdep.
10508 * config/sh/tm-sh.h (sh_osabi): Declare.
10509 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10510
10511 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10512
10513 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10514 (thumb_scan_prologue): Ditto.
10515 (arm_find_callers_reg): Ditto.
10516 (arm_frame_chain): Ditto.
10517 (arm_init_extra_frame_info): Ditto.
10518 (arm_frame_saved_pc): Ditto.
10519 (arm_pop_frame): Ditto.
10520 (arm_push_return_address): New function.
10521 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10522 call_dummy_location, call_dummy_breakpoint_offset_p,
10523 call_dummy_breakpoint_offset, call_dummy_p,
10524 call_dummy_stack_adjust_p, call_dummy_words,
10525 sizeof_call_dummy_words, call_dummy_start_offset,
10526 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10527 call_dummy_address, push_return_address and push_dummy_frame for
10528 generic dummy frames.
10529
10530 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10531
10532 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10533 size computation for alloca.
10534 (sh_fp_frame_init_saved_regs): Likewise.
10535
10536 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10537
10538 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10539 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10540 * arm-tdep.c (arm_store_return_value): Use them.
10541 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10542 * remote-rdp.c (remote_rdp_fetch_register): Use
10543 ARM_MAX_REGISTER_RAW_SIZE.
10544 (remote_rdp_store_register): Likewise.
10545
10546 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10547
10548 * dwarf2cfi.c: Code cleanup, removed unused variables,
10549 added default labels to switch {} statements.
10550 * x86-64-tdep.c: Ditto.
10551 * x86-64-linux-nat.c: Ditto.
10552
10553 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10554
10555 * solib.h: Protect against multiple inclusion.
10556
10557 2002-05-06 Jim Blandy <jimb@redhat.com>
10558
10559 Add first preprocessor macro-expansion files.
10560 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10561 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10562 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10563 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10564 (COMMON_OBS): Add macrotab.o, macroexp.o.
10565 (macroexp.o, macrotab.o): New rules.
10566
10567 Separate the job of reading the line number info statement program
10568 header (...expialidocious) out into its own function.
10569 * dwarf2read.c (struct line_head, struct filenames, struct
10570 directories): Replace with...
10571 (struct line_header): New structure, containing the full
10572 contents of the statement program header, including the
10573 include directory and file name tables.
10574 (read_file_scope): If we have line number info, instead of just
10575 calling dwarf_decode_lines to do all the work, call
10576 dwarf_decode_line_header first to get a `struct line_header'
10577 containing the data in the statement program header, and then
10578 pass that to dwarf_decode_lines, which will pick up where that
10579 left off. Be sure to clean up the `struct line_header' object.
10580 (dwarf_decode_line_header, free_line_header, add_include_dir,
10581 add_file_name): New functions.
10582 (dwarf_decode_lines): Move all the code to read the statement
10583 program header into dwarf_decode_line_header. Take the line
10584 header it built as the first argument, instead of the offset to
10585 the compilation unit's line number info. Use the new `struct
10586 line_header' type instead of the old structures. No need to do
10587 cleanups here now, since we don't allocate anything.
10588 (dwarf2_statement_list_fits_in_line_number_section,
10589 dwarf2_line_header_too_long): New complaints.
10590
10591 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10592
10593 * gdbtypes.c (init_vector_type): New function.
10594 (build_builtin_type_vec128): Simplify the representation of SIMD
10595 registers.
10596 (build_gdbtypes): Initialize new builtin vector types.
10597 (_initialize_gdbtypes): Register new vector types with gdbarch.
10598 (builtin_type_v4_float, builtin_type_v4_int32,
10599 builtin_type_v8_int16, builtin_type_v16_int8,
10600 builtin_type_v2_int32, builtin_type_v4_int16,
10601 builtin_type_v8_int8): New (renamed) SIMD types.
10602
10603 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10604
10605 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10606 (i387_fill_fxsave): Likewise.
10607
10608 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10609
10610 * alpha-tdep.c (alpha_extract_return_value): Don't use
10611 non-constant array size in prototype.
10612
10613 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10614
10615 From Brian Taylor <briant at model dot com>:
10616 * ui-out.c (ui_out_field_core_addr): Use the function
10617 longest_local_hex_string_custom'to format addresses > 32 bits
10618 wide.
10619
10620 * ui-out.c (ui_out_field_core_addr): Update comment.
10621
10622 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10623
10624 * stack.c (select_and_print_frame): Make static. Delete the
10625 parameter `level'.
10626 (func_command): Update call.
10627 (select_frame_command): Delete code computing the frame level.
10628 * frame.h (select_and_print_frame): Delete declaration.
10629
10630 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10631
10632 * sparc-tdep.c (sparc_get_saved_register): Comment why
10633 get_prev_frame call is safe.
10634
10635 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10636
10637 * frame.h (select_frame): Delete level parameter.
10638 * stack.c (select_frame): Update. Use frame_relative_level to
10639 obtain the frame's level.
10640 (select_and_print_frame): Update call.
10641 (select_frame_command): Ditto.
10642 (up_silently_base): Ditto.
10643 (down_silently_base): Ditto.
10644 * ocd.c (ocd_start_remote): Ditto.
10645 * remote-rdp.c (remote_rdp_open): Ditto.
10646 * remote-mips.c (mips_initialize): Ditto.
10647 (common_open): Ditto.
10648 * remote-e7000.c (e7000_start_remote): Ditto.
10649 * m3-nat.c (select_thread): Ditto.
10650 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10651 (child_get_current_exception_event): Ditto.
10652 * varobj.c (varobj_create): Ditto.
10653 (varobj_update): Ditto.
10654 (c_value_of_root): Ditto.
10655 * tracepoint.c (finish_tfind_command): Ditto.
10656 * corelow.c (core_open): Ditto.
10657 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10658 * thread.c (info_threads_command): Ditto.
10659 (switch_to_thread): Ditto.
10660 * infrun.c (normal_stop): Ditto.
10661 (restore_selected_frame): Ditto.
10662 (restore_inferior_status): Ditto.
10663 * breakpoint.c (insert_breakpoints): Ditto.
10664 (watchpoint_check): Ditto.
10665 (bpstat_stop_status): Ditto.
10666 (do_enable_breakpoint): Ditto.
10667 * blockframe.c (flush_cached_frames): Ditto.
10668 (reinit_frame_cache): Ditto.
10669
10670 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10671
10672 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10673 maintainer.
10674
10675 2002-05-04 Jim Blandy <jimb@redhat.com>
10676
10677 * gdbtypes.c (replace_type): Doc fix.
10678
10679 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10680
10681 * valprint.c (strcat_longest): Delete commented out function.
10682 Update copyright.
10683
10684 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10685
10686 * MAINTAINERS: Mark a29k as deleted.
10687 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10688 Move new configurations to the top.
10689 * configure.tgt: Remove a29k.
10690 * config/a29k/tm-vx29k.h: Delete.
10691 * config/a29k/vx29k.mt: Delete.
10692 * config/a29k/tm-a29k.h: Delete.
10693 * config/a29k/a29k-udi.mt: Delete.
10694 * config/a29k/a29k.mt: Delete.
10695 * a29k-tdep.c: Delete.
10696 * remote-udi.c: Delete.
10697 * remote-mm.c: Delete.
10698 * remote-eb.c: Delete.
10699 * remote-adapt.c: Delete.
10700 * Makefile.in: Remove obsolete code.
10701 * config/s390/s390x.mt: Ditto.
10702 * config/s390/s390.mt: Ditto.
10703 * config/sparc/sparclynx.mh: Ditto.
10704 * config/sparc/linux.mh: Ditto.
10705 * config/pa/hppaosf.mh: Ditto.
10706 * config/pa/hppabsd.mh: Ditto.
10707 * config/ns32k/nbsd.mt: Ditto.
10708 * config/mips/vr5000.mt: Ditto.
10709 * config/m68k/sun3os4.mh: Ditto.
10710 * config/m68k/nbsd.mt: Ditto.
10711 * config/m68k/m68klynx.mh: Ditto.
10712 * config/m32r/m32r.mt: Ditto.
10713 * config/i386/x86-64linux.mt: Ditto.
10714 * config/i386/nbsdelf.mt: Ditto.
10715 * config/i386/nbsd.mt: Ditto.
10716 * config/i386/i386lynx.mh: Ditto.
10717
10718 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10719
10720 * target.c (debug_print_register): New function. Handle oversize
10721 registers.
10722 (debug_to_fetch_registers): Call.
10723 (debug_to_store_registers): Call.
10724
10725 2002-05-03 Jim Blandy <jimb@redhat.com>
10726
10727 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10728 (read_type): Doc fix.
10729 * gdbtypes.c (replace_type): Doc fix.
10730
10731 * stabsread.c (multiply_defined_struct): New complaint.
10732 (read_struct_type): If the type we were passed isn't empty, or
10733 incomplete, don't read the new struct type into it; complain,
10734 and return the original type unchanged. Take a new `type_code'
10735 argument, which is the type code for the new type.
10736 (read_type): Rather than storing the type's type code here, pass
10737 it as an argument to read_struct_type, and let that take care of
10738 storing it. That way, we don't overwrite the original type code,
10739 so read_struct_type can use it to decide whether we're overwriting
10740 something we shouldn't.
10741 (complain_about_struct_wipeout): New function.
10742
10743 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10744
10745 * gdbarch.sh: Assert that gdbarch is non-NULL.
10746 * gdbarch.c: Regenerate.
10747
10748 2002-05-03 Jason Merrill <jason@redhat.com>
10749
10750 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10751 and return NULL.
10752
10753 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10754
10755 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10756 (x86_64_dwarf2gdb_regno_map_length),
10757 (x86_64_dwarf2_reg_to_regnum): Added.
10758 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10759 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10760 (_initialize_x86_64_tdep): Synced with the change above.
10761 (x86_64_skip_prologue): Reformulated message.
10762
10763 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10764
10765 * f-exp.y: Also use new prev_lexptr variable
10766 to improve error reporting. Based on Michael Snyder
10767 2002-04-24 dated patch to c-exp.y.
10768 * jv-exp.y: Likewise.
10769 * m2-exp.y: Likewise.
10770
10771 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10772
10773 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10774 we are dealing with vectors.
10775
10776 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10777
10778 * config/m68k/tm-nbsd.h: Obvious fix,
10779 correct machine name.
10780
10781 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10782
10783 * p-typeprint.c (pascal_type_print_base): Add support
10784 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10785
10786 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10787
10788 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10789 for fondamental pascal 'char' type.
10790
10791 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10792
10793 * p-lang.h (is_pascal_string_type): Declaration changed,
10794 new sixth argument of type char ** added.
10795 * p-lang.c (is_pascal_string_type): Implementation
10796 changed. Args length_pos, length_size, string_pos, char_size
10797 can now be NULL. New argument arrayname set to the field
10798 name of the char array. Return value set to char array
10799 field index plus one.
10800 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10801 is_pascal_string_type function.
10802
10803 2002-05-02 Andrew Cagney <cagney@redhat.com>
10804
10805 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10806 <cagney@redhat.com> change.
10807 * gdbarch.c: Regenerate.
10808
10809 2002-05-02 Andrew Cagney <cagney@redhat.com>
10810
10811 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10812 before probing for a new one. Detect errorenous gdbarch_init
10813 functions.
10814 * gdbarch.c: Regenerate.
10815
10816 2002-05-01 Andrew Cagney <cagney@redhat.com>
10817
10818 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10819 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10820 * config/v850/tm-v850.h: Ditto. Update copyright.
10821
10822 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10823
10824 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10825 current_gdbarch.
10826
10827 2002-04-30 Michael Snyder <msnyder@redhat.com>
10828
10829 * arm-tdep.c: Whitespace clean-ups.
10830 (arm_skip_prologue): Fix thinko; two lines
10831 should have been removed as part of 4/24 change.
10832
10833 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10834
10835 * rs6000-tdep.c: Added comment describing how fpscr register
10836 numbers were chosen.
10837
10838 2002-04-30 Michael Snyder <msnyder@redhat.com>
10839
10840 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10841
10842 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10843
10844 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10845 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10846 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10847
10848 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10849
10850 From Louis Hamilton <hamilton@redhat.com>:
10851 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10852 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10853 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10854 not bfd-private xcoff data, to determine wordsize.
10855 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10856
10857 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10858
10859 GDB 5.2 released from 5.2 branch.
10860
10861 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10862
10863 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10864 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10865 (x86_64_register_info_table): Added comments with register numbers.
10866
10867 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10868
10869 * rs6000-tdep.c (rs6000_extract_return_value,
10870 rs6000_store_return_value): Handle returning vectors.
10871 (rs6000_gdbarch_init): Use
10872 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10873 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10874 New function.
10875 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10876 vectors.
10877 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10878 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10879
10880 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10881
10882 * hpread.c (hpread_psymtab_to_symtab_1,
10883 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10884 with fprintf_unfiltered (gdb_stderr,...).
10885
10886 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10887
10888 * remote-array.c (printf_monitor, write_monitor,
10889 array_insert_breakpoint, array_remove_breakpoint ):
10890 Replace fprintf (stderr,...
10891 with fprintf_unfiltered (gdb_stderr,....
10892 * remote-es.c: Likewise.
10893 * remote-os9k.c: Likewise.
10894 * remote-st.c: Likewise.
10895
10896 2002-04-28 Andreas Schwab <schwab@suse.de>
10897
10898 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10899 linux-proc.o and gcore.o.
10900
10901 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10902
10903 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10904 code without frame pointers.
10905
10906 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10907
10908 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10909 ON_STACK is needed.
10910
10911 2002-04-26 Ben Elliston <bje@redhat.com>
10912
10913 * target.c (do_xfer_memory): Correct reference to the new option
10914 "trust-readonly-sections".
10915
10916 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10917
10918 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10919 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10920 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10921 vectors.
10922 (read_array_type): Record the fact that this array type is really a
10923 vector (i.e. are passed in by value).
10924
10925 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10926
10927 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10928 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10929 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10930 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10931 * alpha-linux-tdep.c: Include frame.h.
10932 (alpha_linux_sigcontext_addr): New function.
10933 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10934 alpha_linux_sigcontext_addr.
10935 * alpha-osf1-tdep.c: Include gdbcore.h.
10936 (alpha_osf1_sigcontext_addr): New function.
10937 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10938 alpha_osf1_sigcontext_addr.
10939 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10940 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10941
10942 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10943
10944 * stack.c (selected_frame_level):
10945 (select_frame): Do not set selected_frame_level.
10946 * frame.h (selected_frame_level): Delete declaration.
10947
10948 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10949
10950 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10951 convert_from_func_ptr-addr when AIX / PowerOpen.
10952
10953 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10954
10955 * valops.c (hand_function_call): Call
10956 generic_save_call_dummy_addr.
10957 * frame.h (generic_save_call_dummy_addr): Declare.
10958 * blockframe.c (struct dummy_frame): Add fields call_lo and
10959 call_hi.
10960 (generic_find_dummy_frame): Check for PC in range call_lo to
10961 call_hi instead of entry_point_address.
10962 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10963 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10964 (generic_save_call_dummy_addr): New function.
10965
10966 2002-04-24 David S. Miller <davem@redhat.com>
10967
10968 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10969 sparc_skip_prologue.
10970 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10971 information to find prologue when possible.
10972 (sparc_prologue_frameless_p): Call examine_prologue directly.
10973 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10974 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10975 second argument.
10976 (SKIP_PROLOGUE): Likewise.
10977
10978 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10979
10980 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10981 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10982 indicate that the condition it was testing is always true.
10983 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10984 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10985 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10986
10987 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10988
10989 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10990 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10991 tdep->jb_pc and tdep->jb_elt_size.
10992 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10993 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10994 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10995 * alpha-nat.c (get_longjmp_target): Remove.
10996 (JB_ELEMENT_SIZE): Ditto.
10997 (JB_PC): Ditto.
10998 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10999 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11000 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11001 to alpha_get_longjmp_target.
11002 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11003 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11004 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11005
11006 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11007
11008 * README: Update to GDB 5.2.
11009
11010 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11011
11012 * gdbarch.sh (LC_ALL): Set to `c'.
11013
11014 2002-04-25 Theodore A. Roth <troth@verinet.com>
11015
11016 * avr-tdep.c: Ran through gdb_indent.sh.
11017
11018 2002-04-25 Theodore A. Roth <troth@verinet.com>
11019
11020 * MAINTAINERS: Add myself as AVR maintainer.
11021 * NEWS: Note new target avr.
11022
11023 2002-04-25 Theodore A. Roth <troth@verinet.com>
11024
11025 * Makefile.in: Add support for AVR target.
11026 * configure.tgt: Add support for AVR target.
11027 * avr-tdep.c: New file
11028 * config/avr/avr.mt: New file.
11029
11030 2002-04-25 Theodore A. Roth <troth@verinet.com>
11031
11032 * MAINTAINERS: Add myself to write-after-approval.
11033
11034 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11035
11036 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11037 with fprintf_unfiltered (gdb_stderr,....
11038
11039 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11040
11041 Fix PR gdb/508.
11042 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11043
11044 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11045
11046 * p-exp.y: Also use new prev_lexptr variable
11047 to improve error reporting. Based on Michael Snyder
11048 2002-04-24 dated patch to c-exp.y.
11049
11050 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11051
11052 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11053 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11054 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11055 to 0.
11056 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11057 and struct value.
11058 (FUNCTION_START_OFFSET): Remove.
11059 (BREAKPOINT): Ditto.
11060
11061 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11062
11063 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11064 * NEWS: Ditto.
11065
11066 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11067
11068 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11069 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11070 alpha_linux_pc_in_sigtramp.
11071 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11072 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11073 alpha_osf1_pc_in_sigtramp.
11074 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11075 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11076 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11077 alphafbsd_pc_in_sigtramp.
11078 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11079 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11080 alphanbsd_pc_in_sigtramp.
11081 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11082 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11083
11084 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11085
11086 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11087
11088 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11089
11090 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11091 alphanbsd-tdep.c.
11092 (alphanbsd-nat.o): New dependency list.
11093 (alphanbsd-tdep.o): Ditto.
11094 * NEWS: Note new native NetBSD/alpha configuration.
11095 * alphanbsd-nat.c: New file.
11096 * alphanbsd-tdep.c: Ditto.
11097 * configure.host (alpha*-*-netbsd*): New host.
11098 * configure.tgt (alpha*-*-netbsd*): New target.
11099 * config/alpha/nbsd.mh: New file.
11100 * config/alpha/nbsd.mt: Ditto.
11101 * config/alpha/nm-nbsd.h: Ditto.
11102 * config/alpha/tm-nbsd.h: Ditto.
11103
11104 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11105
11106 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11107 (alpha-osf1-tdep.o): New dependency list.
11108 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11109 and skip_sigtramp_frame members.
11110 * alpha-linux-tdep.c: Include gdbcore.h.
11111 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11112 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11113 * alpha-osf1-tdep.c: New file.
11114 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11115 alpha-osf1-dep.c.
11116 (alpha_frame_past_sigtramp_frame): New function.
11117 (alpha_dynamic_sigtramp_offset): Ditto.
11118 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11119 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11120 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11121 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11122 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11123 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11124 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11125 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11126 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11127 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11128 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11129 to find_solib_trampoline_target.
11130 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11131 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11132 (SKIP_TRAMPOLINE_CODE): Remove.
11133 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11134 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11135 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11136 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11137 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11138 (PROC_SIGTRAMP_MAGIC): Ditto.
11139 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11140 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11141 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11142 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11143 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11144
11145 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11146
11147 * NEWS: Note that Alpha targets are now multi-arch.
11148
11149 2002-04-24 Michael Snyder <msnyder@redhat.com>
11150
11151 * parser-defs.h (prev_lexptr): New external variable.
11152 * parse.c (parse_exp_1): Set prev_lexptr to null before
11153 calling the language-specific parser.
11154 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11155 (yyerror): Use prev_lexptr in error reporting.
11156
11157 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11158
11159 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11160 * gregset.h: If FILL_FPXREGSET is defined, provide
11161 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11162 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11163 is defined, call fill_fpxregset.
11164
11165 2002-04-24 Roland McGrath <roland@frob.com>
11166
11167 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11168 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11169 (supply_gregset, supply_fpregset): New functions.
11170
11171 * gnu-nat.c (gnu_find_memory_regions): New function.
11172 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11173 (gnu_xfer_memory): Add a cast.
11174
11175 2002-04-24 Michael Snyder <msnyder@redhat.com>
11176
11177 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11178 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11179 of argument regs ("str r(0123), [r11, #-nn"]).
11180 (arm_skip_prologue): Better handling for frameless functions.
11181 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11182 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11183
11184 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11185
11186 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11187 NUM_PSEUDO_REGS can be used.
11188
11189 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11190
11191 * arch-utils.h: Update copyright.
11192
11193 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11194 * gdbarch.h, gdbarch.c: Re-generate.
11195
11196 * inferior.h (IN_SIGTRAMP): Delete definition.
11197 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11198 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11199
11200 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11201 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11202 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11203 (find_proc_framesize): Ditto.
11204 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11205 (alpha_init_extra_frame_info): Ditto.
11206 * infrun.c (handle_inferior_event): Ditto.
11207 (handle_inferior_event): Ditto.
11208 (check_sigtramp2): Ditto.
11209 * blockframe.c (create_new_frame): Ditto.
11210 (get_prev_frame): Ditto.
11211 * ppc-linux-tdep.c: Update comments.
11212 * i386-linux-tdep.c: Update comments.
11213 * breakpoint.c (bpstat_what): Update comment.
11214
11215 2002-04-24 David S. Miller <davem@redhat.com>
11216
11217 * i960-tdep.c (register_in_window_p): New function.
11218 (i960_find_saved_register): Use it instead of
11219 REGISTER_IN_WINDOW_P.
11220 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11221
11222 * symtab.h (find_stab_function_addr): Kill extern.
11223 * minsyms.c (find_stab_function_addr): Remove from here...
11224 * dbxread.c: ... to here, and mark it static.
11225
11226 2002-04-20 David S. Miller <davem@redhat.com>
11227
11228 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11229 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11230
11231 2002-04-21 David S. Miller <davem@redhat.com>
11232
11233 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11234 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11235 (vx_write_register): Likewise.
11236
11237 2002-04-23 J. Brobecker <brobecker@gnat.com>
11238
11239 * source.c (is_regular_file): New function.
11240 (openp): Check wether file to open is a regular file
11241 to avoid opening directories.
11242
11243 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11244
11245 * findvar.c (extract_signed_integer): Cast printf argument
11246 to suppress format warning.
11247 (extract_unsigned_integer): Likewise.
11248 * infcmd.c (registers_info): Likewise.
11249 * top.c (get_prompt_1): Likewise.
11250 * valops.c (value_assign): Likewise.
11251 * valprint.c (print_decimal): Likewise.
11252
11253 2002-04-22 H.J. Lu (hjl@gnu.org)
11254
11255 * c-exp.y (typebase): Support
11256
11257 [long|long long|short] [signed|unsigned] [int|]
11258
11259 and
11260
11261 signed [long|long long|short] int
11262
11263 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11264
11265 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11266 and vax-tdep.h.
11267 * vax-tdep.h: New file.
11268 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11269 Make several routines static.
11270 (vax_get_saved_register): New function.
11271 (vax_gdbarch_init): New function.
11272 (_initialize_vax_tdep): Register vax_gdbarch_init.
11273 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11274 Remove macros now under the control of gdbarch.
11275
11276 2002-04-22 Michael Snyder <msnyder@redhat.com>
11277
11278 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11279 Some whitespace and coding standards tweaks.
11280
11281 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11282
11283 * vax-tdep.c: Include regcache.h.
11284 (vax_call_dummy_words): New.
11285 (sizeof_vax_call_dummy_words): New.
11286 (vax_fix_call_dummy): New function.
11287 (vax_saved_pc_after_call): Ditto.
11288 * config/vax/tm-vax.h: Don't include regcache.h.
11289 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11290 (CALL_DUMMY): Remove.
11291 (CALL_DUMMY_WORDS): Define.
11292 (SIZEOF_CALL_DUMMY_WORDS): Define.
11293 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11294
11295 2002-04-18 Michael Snyder <msnyder@redhat.com>
11296
11297 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11298
11299 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11300
11301 * vax-tdep.c (vax_frame_chain): New function.
11302 (vax_push_dummy_frame): Ditto.
11303 (vax_pop_frame): Ditto.
11304 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11305 (FRAMELESS_FUNCTION_INVOCATION): Use
11306 generic_frameless_function_invocation_not.
11307 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11308 (POP_FRAME): Use vax_pop_frame.
11309
11310 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11311
11312 * vax-tdep.c (vax_store_struct_return): New function.
11313 (vax_extract_return_value): Ditto.
11314 (vax_store_return_value): Ditto.
11315 (vax_extract_struct_value_address): Ditto.
11316 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11317 vax_store_struct_return.
11318 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11319 (STORE_RETURN_VALUE): Use vax_store_return_value.
11320 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11321
11322 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11323
11324 * vax-tdep.c (vax_frame_saved_pc): New function.
11325 (vax_frame_args_address_correct): Ditto.
11326 (vax_frame_args_address): Ditto.
11327 (vax_frame_locals_address): Ditto.
11328 (vax_frame_num_args): Move code to be in proximity to
11329 other frame-related functions.
11330 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11331 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11332 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11333 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11334 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11335
11336 2002-04-22 H.J. Lu (hjl@gnu.org)
11337
11338 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11339 includedir.
11340
11341 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11342
11343 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11344 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11345 (FRAME_INIT_SAVED_REGS): New macro.
11346
11347 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11348
11349 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11350
11351 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11352
11353 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11354 where needed.
11355 (fetch_osf_core_registers): Likewise.
11356 (supply_gregset): Likewise.
11357
11358 2002-04-22 J. Brobecker <brobecker@gnat.com>
11359
11360 * symfile.h (get_section_index): Define.
11361 * symfile.c (get_section_index): New function.
11362 * mdebugread.c (SC_IS_SBSS): New macro.
11363 (SC_IS_BSS): Return true for the scBss storage class only, as
11364 the scSBss storage class refers to the .sbss section.
11365 (parse_partial_symbols): Discard the symbols which associated
11366 section does not exist.
11367 Make sure to use the .sbss section index for symbols which
11368 storage class is scBss, rather than using the .bss section index.
11369
11370 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11371
11372 * vax-tdep.c: Update copyright years.
11373 (vax_register_name): New function.
11374 (vax_register_byte): Ditto.
11375 (vax_register_raw_size): Ditto.
11376 (vax_register_virtual_size): Ditto.
11377 (vax_register_virtual_type): Ditto.
11378 * config/vax/tm-vax.h: Update copyright years.
11379 (REGISTER_NAMES): Remove.
11380 (REGISTER_NAME): Define.
11381 (REGISTER_BYTE): Use vax_register_byte.
11382 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11383 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11384 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11385
11386 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11387
11388 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11389 declaration
11390 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11391
11392 2002-04-21 David S. Miller <davem@redhat.com>
11393
11394 * arch-utils.c (generic_prologue_frameless_p): Kill
11395 SKIP_PROLOGUE_FRAMELESS_P code.
11396 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11397 references.
11398 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11399 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11400 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11401 references.
11402 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11403 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11404 (sparc_gdbarch_init): Pass it to
11405 set_gdbarch_prologue_frameless_p.
11406
11407 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11408
11409 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11410 (alphabsd-nat.o): New dependency list.
11411
11412 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11413
11414 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11415 alphafbsd-tdep.c.
11416 (alpha-linux-tdep.o): New dependency list.
11417 (alphafbsd-tdep.o): Likewise.
11418
11419 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11420
11421 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11422 to here...
11423 * alpha-tdep.c: ...from here.
11424 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11425
11426 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11427
11428 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11429 prototype from here...
11430 * alpha-tdep.h: ...to here.
11431
11432 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11433
11434 * frame.h (selected_frame_level): Document as deprecated.
11435 (frame_relative_level): Declare.
11436 * stack.c (frame_relative_level): New function.
11437 (selected_frame_level): Document as deprecated.
11438 (select_frame): Do not set the selected_frame_level.
11439
11440 * stack.c (frame_info, record_selected_frame): Update.
11441 (frame_command, current_frame_command): Update.
11442 (up_silently_base, up_command, down_silently_base): Update.
11443 (down_command): Update.
11444 * inflow.c (kill_command): Update.
11445 * tracepoint.c (finish_tfind_command): Update.
11446 * corelow.c (core_open): Update.
11447 * thread.c (info_threads_command): Update.
11448 (do_captured_thread_select): Update.
11449 * infcmd.c (finish_command): Update.
11450 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11451
11452 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11453
11454 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11455
11456 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11457
11458 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11459 type const.
11460
11461 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11462
11463 * alphafbsd-tdep.c: Update copyright years. Include
11464 alpha-tdep.h.
11465 (alphafbsd_use_struct_convention): Make static.
11466 (alphafbsd_init_abi): New function.
11467 (_initialize_alphafbsd_tdep): New function.
11468 * config/alpha/tm-fbsd.h: Update copyright years.
11469 (USE_STRUCT_CONVENTION): Remove.
11470
11471 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11472
11473 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11474 an Alpha ABI variant.
11475 (alpha_abi_handler_list): Declare.
11476 (alpha_gdbarch_register_os_abi): New function.
11477 (alpha_gdbarch_init): Give registered ABI variant handlers a
11478 chance to tweak the gdbarch once we have set up defaults.
11479 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11480
11481 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11482
11483 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11484 to standard_coerce_float_to_double.
11485 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11486
11487 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11488
11489 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11490 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11491 from gdbarch_tdep rather than a constant.
11492 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11493 the default text address for all Alpha Unix ABIs.
11494 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11495 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11496
11497 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11498
11499 * alpha-tdep.h: New file. Includes several Alpha target constants
11500 taken from...
11501 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11502 let gdbarch deal with.
11503 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11504 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11505 to dependency list.
11506 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11507 Alpha target register names.
11508 * alphabsd-nat.c: Likewise.
11509 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11510 Alpha target register names. Make serveral routines static.
11511 (alpha_get_saved_register): New function.
11512 (alpha_abi_names): New.
11513 (process_note_abi_tag_sections): New function.
11514 (get_elfosabi): New function.
11515 (alpha_gdbarch_init): New function.
11516 (alpha_dump_tdep): New function.
11517 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11518
11519 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11520
11521 * frame.c (find_saved_register): Delete #ifdef
11522 HAVE_REGISTER_WINDOWS code.
11523 * config/sparc/tm-sparc.h: Update comments.
11524 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11525
11526 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11527
11528 * i960-tdep.c (i960_find_saved_register): New function.
11529 (i960_get_saved_register): New function.
11530 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11531 (i960_get_saved_register): Declare.
11532 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11533
11534 2002-04-20 David S. Miller <davem@redhat.com>
11535
11536 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11537
11538 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11539
11540 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11541 instead of NUM_PSEUDO_REGS.
11542
11543 2002-04-20 David S. Miller <davem@redhat.com>
11544
11545 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11546 GDB_MULTI_ARCH_PARTIAL
11547 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11548 define, let tm-sp64.h do it.
11549
11550 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11551
11552 * frame.c (find_saved_register): Avoid a NULL pointer
11553 dereference and actually walk the frame list.
11554
11555 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11556
11557 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11558 sorted in most most-recent-used order. Document.
11559 * gdbarch.h, gdbarch.c: Regenerate.
11560
11561 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11562
11563 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11564 instead of ->prev.
11565 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11566 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11567 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11568 instead of ->prev.
11569
11570 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11571
11572 Fix PR gdb/471.
11573 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11574 (build_builtin_type_vec128): Ditto.
11575 (append_composite_type_field): Fix calculation of type length in
11576 union case.
11577
11578 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11579
11580 * config/djgpp/README: Update.
11581
11582 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11583 compiler warnings.
11584
11585 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11586
11587 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11588 (alpha_setup_arbitrary_frame): ...to this.
11589 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11590 for alpha_setup_arbitrary_frame.
11591
11592 2002-04-18 Andrew Cagney <cagney@redhat.com>
11593
11594 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11595 * gdbarch.h, gdbarch.c: Regenerate.
11596
11597 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11598 * target.h (memory_breakpoint_from_pc): Update declaration.
11599 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11600
11601 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11602 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11603 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11604 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11605 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11606 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11607 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11608 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11609 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11610 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11611 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11612 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11613
11614 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11615 const pointer.
11616 * monitor.c (monitor_insert_breakpoint): Ditto.
11617 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11618
11619 * config/mcore/tm-mcore.h: Update copyright.
11620 * mem-break.c: Ditto.
11621 * xstormy16-tdep.c: Ditto.
11622
11623 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11624
11625 * p-exp.y: Add precedence rule for '^' token.
11626 This removes the shift/reduce conflicts.
11627 Remove the comment concerning these shift/reduce conflicts.
11628
11629 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11630
11631 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11632 (registers_powerpc_nofp): New register set for processors
11633 without floating point unit.
11634
11635 2002-04-18 David S. Miller <davem@redhat.com>
11636
11637 * MAINTAINERS: Add myself to write-after-approval.
11638
11639 2002-04-17 Michael Snyder <msnyder@redhat.com>
11640
11641 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11642
11643 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11644
11645 * rs6000-tdep.c (frame_initial_stack_address): Use
11646 frame_register_read to read the alloca_reg.
11647
11648 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11649
11650 * frame.c (find_saved_register): Find saved registers in the next
11651 not prev frame.
11652 Fix PR gdb/365.
11653
11654 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11655
11656 * gdbarch.sh (LANG): Set to ``c''.
11657
11658 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11659
11660 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11661
11662 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11663
11664 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11665 Update copyright.
11666
11667 * hpread.c (hpread_get_lntt): Add declaration.
11668 Also fix PR gdb/391.
11669
11670 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11671
11672 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11673 * aclocal.m4, configure: Re-generate.
11674 Fix PR gdb/391.
11675
11676 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11677
11678 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11679 instead of tm_print_insn.
11680
11681 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11682
11683 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11684
11685 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11686
11687 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11688 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11689 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11690
11691 2002-04-12 Don Howard <dhoward@redhat.com>
11692
11693 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11694 max_user_call_depth.
11695 (init_cmd_lists): Initialize the new value;
11696 * cli/cli-script.c (execute_user_command): Limit the call depth of
11697 user defined commands. This avoids a core-dump when user commands
11698 are infinitly recursive.
11699
11700 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11701
11702 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11703 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11704 from tdep struct instead of DEFAULT_LR_SAVE.
11705 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11706 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11707 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11708
11709 2002-04-12 Michael Snyder <msnyder@redhat.com>
11710
11711 * Remote.c: Spelling fix.
11712 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11713 If no symbol found for "sbrk", try "_sbrk".
11714 (make_output_phdrs): Use bfd_section_name.
11715 (gcore_copy_callback): Use bfd_section_name.
11716 * eval.c: Indentation fix-ups.
11717 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11718 in case it gets applied to an address that is already
11719 in the instruction space.
11720 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11721 * symfile.c: Fix indentation, long lines.
11722 * source.c: White space fix-up.
11723
11724 2002-04-12 Andrew Cagney <cagney@redhat.com>
11725
11726 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11727 * frame.c (frame_register_read): New function. Return non-zero on
11728 success.
11729 (read_relative_register_raw_bytes_for_frame): Delete.
11730 (read_relative_register_raw_bytes): Delete.
11731 * frame.h (frame_register_read): Declare.
11732 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11733 * sh-tdep.c: Ditto.
11734 * infcmd.c (do_registers_info): Ditto.
11735 * hppa-tdep.c: Ditto.
11736 * rs6000-tdep.c: Ditto.
11737 * h8500-tdep.c: Ditto.
11738 * mips-tdep.c: Ditto.
11739 * h8300-tdep.c: Ditto.
11740 * z8k-tdep.c: Ditto.
11741
11742 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11743
11744 From Jimi X <jimix@watson.ibm.com>:
11745 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11746 64-bit SysV ABI.
11747
11748 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11749
11750 From Jimi X <jimix@watson.ibm.com>:
11751 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11752 bfd info.
11753
11754 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11755
11756 From Jimi X <jimix@watson.ibm.com>:
11757 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11758 register sets for these processor variants.
11759
11760 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11761
11762 * regformats/reg-ppc.dat: Support FPSCR.
11763
11764 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11765
11766 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11767 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11768 Add fpscr as an invalid/unfetchable register.
11769 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11770 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11771 (fill_fpregset): Add support for register fpscr.
11772 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11773 (fill_gregset): Account for the fact that register ``mq'' might
11774 not exist.
11775 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11776 (registers_power): Add fpscr to register set at slot 71.
11777 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11778 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11779
11780 2002-04-11 Michael Snyder <msnyder@redhat.com>
11781
11782 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11783 * configure: Regenerate.
11784 * config.in: Regenerate.
11785 * acconfig.h: Add define for _SYSCALL32.
11786 * core-sol2.c: Remove #define _SYSCALL32.
11787 * solib-legacy.c: Remove #define _SYSCALL32.
11788
11789 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11790
11791 * stack.c (select_frame): Cleanup internal error message, do not
11792 use %p.
11793
11794 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11795
11796 * stack.c (select_frame): Check that selected_frame and the
11797 specified level are as expected.
11798 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11799 Update copyright.
11800 * frame.h (struct frame_info): Add field `level'. Update
11801 copyright.
11802 Work-in-progress PR gdb/464.
11803
11804 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11805
11806 * maint.c (maint_print_section_info): Rename print_section_info.
11807 (print_bfd_section_info, print_objfile_section_info): Update.
11808 * inferior.h (struct gdbarch): Add opaque declaration.
11809 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11810 * gdbarch.h: Regenerate.
11811
11812 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11813
11814 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11815 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11816 (kernel_u_size): Added.
11817 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11818 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11819
11820 2002-04-04 Jim Ingham <jingham@apple.com>
11821
11822 * valarith.c (find_size_for_pointer_math): New function, either returns
11823 the size for a pointer's target, returns 1 for void *, or errors for
11824 incomplete types.
11825 (value_add, value_sub): use find_size_for_pointer_math.
11826
11827 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11828
11829 * linux-low.c (linux_look_up_symbols): New hook.
11830 (linux_target_ops): Add linux_look_up_symbols.
11831 * remote-utils.c (decode_address): New function.
11832 (look_up_one_symbol): New function.
11833 * server.c (handle_query): Call target look_up_symbols hook.
11834 * server.h (look_up_one_symbol): Add prototype.
11835 * target.h (struct target_ops): Add look_up_symbols hook.
11836
11837 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11838
11839 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11840 override FP_REGNUM with frame->fp. Update copyright.
11841 * parse.c (num_std_regs, std_regs): Delete.
11842 (target_map_name_to_register): Do not search std_regs. Update
11843 function description.
11844 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11845 declarations. Update copyright.
11846 Fix PR gdb/251.
11847
11848 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11849
11850 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11851 after the last symbol in a block.
11852
11853 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11854
11855 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11856 is non zero as a found symbol.
11857
11858 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11859
11860 * findvar.c: Include "builtin-regs.h".
11861 (value_of_register): Call value_of_builtin_reg when applicable.
11862 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11863 (target_map_name_to_register): Call
11864 builtin_reg_map_name_to_regnum.
11865 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11866 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11867 (builtin_regs_h): Define.
11868 (builtin-regs.o): New target.
11869 (findvar.o): Add $(builtin_regs_h).
11870 * builtin-regs.c, builtin-regs.h: New files.
11871 * std-regs.c: New file.
11872 Partial fix for PR gdb/251.
11873
11874 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11875
11876 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11877 it's no longer required.
11878
11879 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11880
11881 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11882
11883 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11884
11885 From Jimi X <jimix@watson.ibm.com>:
11886 * rs6000-tdep.c (rs6000_software_single_step): Use
11887 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11888 and size. Use target_insert_breakpoint() and
11889 target_remove_breakpoint() to insert and remove breakpoints
11890 instead of explicit memory reads and writes.
11891
11892 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11893
11894 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11895 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11896 ELF_OBJECT_FORMAT ifdef.
11897
11898 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11899
11900 From Jimi X <jimix@watson.ibm.com>:
11901 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11902
11903 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11904
11905 From Jimi X <jimix@watson.ibm.com>:
11906 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11907 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11908
11909 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11910
11911 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11912 s/asprintf/xasprintf/.
11913 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11914
11915 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11916
11917 I believe Jeff Law denies responsability for this one:
11918 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11919 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11920 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11921 Work-around for PR gdb/366.
11922
11923 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11924
11925 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11926 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11927 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11928
11929 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11930
11931 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11932 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11933 information.
11934
11935 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11936
11937 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11938 maintainer.
11939
11940 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11941
11942 * README (Reporting Bugs in GDB): Document the bug web page as the
11943 prefered way of submitting bugs.
11944 Fix PR gdb/402.
11945
11946 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11947
11948 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11949 -1. Update comment.
11950 * gdbarch.h, gdbarch.c: Re-generate.
11951
11952 2002-04-07 Andreas Schwab <schwab@suse.de>
11953
11954 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11955 buffer to regcache_collect.
11956
11957 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11958
11959 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11960 * gdbarch.c, gdbarch.h: Re-generate.
11961
11962 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11963
11964 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11965 declaration. Fix -Werror.
11966
11967 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11968
11969 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11970 * gdbarch.c: Regenerate.
11971
11972 2002-04-05 Michael Snyder <msnyder@redhat.com>
11973
11974 * breakpoint.c (clear_command): Rewrite middle section to
11975 combine two loops with identical control conditions.
11976 Add a cleanup to eliminate a memory leak.
11977 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11978
11979 2002-04-05 H.J. Lu (hjl@gnu.org)
11980
11981 * solib-svr4.c (bkpt_names): Add "__start".
11982
11983 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11984
11985 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11986 as test for 64 bit target.
11987
11988 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11989
11990 * h8500-tdep.c (h8500_write_fp): Delete function.
11991 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11992 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11993 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11995 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11996 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11997 (s390_write_fp):
11998 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11999 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12000 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12001 (d10v_write_fp): Delete function.
12002 * inferior.h (write_fp, generic_target_write_fp): Delete
12003 declarations.
12004 * regcache.c (generic_target_write_fp): Delete function.
12005 (write_fp): Delete function.
12006 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12007 * gdbarch.h, gdbarch.c: Regenerate.
12008 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12009 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12010 (sparc64_write_fp): Delete declaration.
12011 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12012 (h8500_write_fp): Delete declaration.
12013
12014 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12015
12016 * sparc-tdep.c (sparc64_write_fp): Delete.
12017 (sparc_push_dummy_frame): Replace write_fp call with code to store
12018 the FP directly.
12019 (sparc_gdbarch_init): Do not initialize write_fp.
12020
12021 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12022
12023 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12024 clause.
12025
12026 2002-03-29 Jim Blandy <jimb@redhat.com>
12027
12028 * stack.c (get_selected_block): Add new argument `addr_in_block',
12029 used to return the exact code address we used to select the block,
12030 not just the block.
12031 * blockframe.c (get_frame_block, get_current_block): Same.
12032 * frame.h (get_frame_block, get_current_block,
12033 get_selected_block): Update declarations.
12034 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12035 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12036
12037 2002-04-05 Michael Snyder <msnyder@redhat.com>
12038
12039 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12040 warning message.
12041
12042 2002-04-05 J. Brobecker <brobecker@gnat.com>
12043
12044 * utils.c (xfullpath): New function.
12045 * defs.h (xfullpath): Add declaration.
12046 * source.c (openp): Use xfullpath in place of gdb_realpath to
12047 avoid resolving the basename part of filenames when the
12048 associated file is a symbolic link. This fixes a potential
12049 inconsistency between the filenames known to GDB and the
12050 filenames it prints in the annotations.
12051 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12052 to be able to match a filename with either the real filename, or
12053 the name of any symbolic link to this file.
12054 (lookup_partial_symtab): Ditto.
12055
12056 2002-04-04 Michael Snyder <msnyder@redhat.com>
12057
12058 * breakpoint.c: Add support for hardware breakpoints in overlays.
12059 (overlay_events_enabled): New state variable.
12060 (insert_breakpoints): Use overlay_events_enabled to decide
12061 whether to attempt to set a breakpoint at the overlay load addr.
12062 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12063 (remove_breakpoint): Use overlay_events_enabled to decide
12064 whether breakpoints need to be removed from overlay load addr.
12065 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12066 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12067 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12068 disable_overlay_breakpoints): Update overlay_events_enabled.
12069
12070 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12071
12072 * dwarf2read.c (struct function_range): New.
12073 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12074 (check_cu_functions): New.
12075 (read_file_scope): Initialize global function lists.
12076 Call dwarf_decode_line after processing children.
12077 (read_func_scope): Add to global function list.
12078 (dwarf_decode_lines): Call check_cu_functions everywhere
12079 record_line is called. Call record_line with a linenumber
12080 of 0 to mark sequence ends.
12081
12082 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12083
12084 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12085 change sync with glibc.
12086
12087 2002-04-03 Jim Blandy <jimb@redhat.com>
12088
12089 * configure.in: Call AC_C_INLINE.
12090 * configure: Regenerated.
12091
12092 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12095 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12096
12097 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12098
12099 * NEWS: Mention gcore support on FreeBSD/i386.
12100
12101 * fbsd-proc.c: New file.
12102 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12103 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12104
12105 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12106 while statement.
12107
12108 2002-03-29 Jim Blandy <jimb@redhat.com>
12109
12110 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12111 unescaped newlines in string literals, but newer ones don't. So
12112 escape them.
12113
12114 2002-03-26 Michael Snyder <msnyder@redhat.com>
12115 Andrew Cagney <cagney@redhat.com>
12116
12117 * cli/cli-dump.c: New file. Dump memory to file,
12118 restore file to memory.
12119 * cli/cli-dump.h: New file.
12120 * Makefile.in: Add rules, dependencies for cli-dump.o.
12121 * NEWS: Mention new commands.
12122
12123 2002-03-28 Michael Snyder <msnyder@redhat.com>
12124
12125 * symfile.c (symbol_file_add): Move test for null symbols to later.
12126
12127 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12128
12129 From veksler at il.ibm.com:
12130 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12131 the xstrduped original path.
12132 Fix PR gdb/417.
12133
12134 2002-03-27 Michael Snyder <msnyder@redhat.com>
12135
12136 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12137 * infcmd.c (_initialize_infcmd): Ditto.
12138 * language.c (_initialize_language): Ditto.
12139 * symfile.c (_initialize_symfile): Ditto.
12140 * top.c (_init_main): Ditto.
12141 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12142
12143 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12144
12145 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12146 vector registers handling.
12147 (skip_prologue): Handle new AltiVec instructions. Fill in new
12148 fields of frame data.
12149 (frame_get_saved_regs): Fill in information for AltiVec registers.
12150
12151 2002-03-27 Jim Blandy <jimb@redhat.com>
12152
12153 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12154 a function; leave this macro here to invoke that function.
12155 (symbol_init_mangled_name): Declaration for that function.
12156 * symtab.c (symbol_init_mangled_name): New function.
12157
12158 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12159
12160 * valarith.c: Replace strerror with safe_strerror.
12161 * tracepoint.c: Ditto.
12162 * lin-lwp.c: Ditto.
12163 * go32-nat.c: Ditto.
12164 * inflow.c: Ditto.
12165 * gnu-nat.c: Ditto.
12166
12167 2002-03-27 Andreas Schwab <schwab@suse.de>
12168
12169 * event-top.c (command_line_handler): Remove useless if.
12170
12171 2002-03-27 Andreas Jaeger <aj@suse.de>
12172
12173 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12174 comment.
12175
12176 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12177
12178 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12179 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12180 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12181 (x86_64_linux_dr_get_status, supply_gregset),
12182 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12183 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12184 (x86_64_register_info_table): Add.
12185 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12186 (x86_64_register_raw_size, x86_64_register_virtual_type),
12187 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12188 general x86_64_register_info_table.
12189 (i386_gdbarch_init): gdbarch_register_bytes is now set
12190 dynamicaly during initialization.
12191 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12192 * gdbserver/linux-x86-64-low.c: Ditto.
12193
12194 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * gdbserver/server.c (main): Call target_signal_to_host_p
12197 and target_signal_to_host on signals received from the remote.
12198 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12199 target_signal_from_host on signals sent to the remote.
12200 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12201 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12202
12203 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12204
12205 * signals/signals.c: Include "server.h" in gdbserver build.
12206 (target_signal_from_name): Don't use STREQ.
12207 (_initialize_signals): Likewise. Don't include function in
12208 gdbserver build.
12209
12210 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12211
12212 * signals.c: Moved to...
12213 * signals/signals.c: Here.
12214 * Makefile (signals.o): Update.
12215
12216 2002-03-26 Jeff Law (law@redhat.com)
12217
12218 * somread.c (som_symtab_read): Remove some commented out code and
12219 updated related comments. Do not set the minimal symbol table to
12220 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12221 in a dynamic executable.
12222 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12223 where we are unable to find the minimal symbol for the given
12224 PC value.
12225
12226 2002-03-25 Jeff Law (law@redhat.com)
12227
12228 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12229
12230 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12231
12232 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12233
12234 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12235
12236 * command.h: Update copyright.
12237 (struct cmd_list_element): Replace definition with opaque
12238 declaration.
12239 (enum cmd_types): Document that it will eventually be moved to
12240 cli/cli-decode.h
12241 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12242 (MALLOCED_REPLACEMENT): Delete macro.
12243 * Makefile.in (cli_decode_h): Add $(command_h).
12244 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12245 * top.c: Include "cli/cli-decode.h".
12246 * completer.c: Include "cli/cli-decode.h".
12247 * maint.c: Include "cli/cli-decode.h".
12248 * cli/cli-decode.h: Include "command.h".
12249 (enum command_class): Delete.
12250 (enum cmd_types): Comment out.
12251 (enum cmd_auto_boolean): Delete.
12252 (enum var_types): Delete.
12253
12254 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12255
12256 * cli/cli-decode.c: Include "gdb_assert.h".
12257 (add_set_or_show_cmd): New static function.
12258 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12259 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12260 all fields, such as func, from the set command.
12261
12262 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12263
12264 * MAINTAINERS (sh-elf): Change warning flag to -w.
12265
12266 2002-03-23 Andrew Cagney <cagney@redhat.com>
12267
12268 * defs.h (error): Add printf format attribute.
12269 * thread-db.c (thread_from_lwp): Fix error format string.
12270 * stack.c (parse_frame_specification): Ditto.
12271 * cli/cli-decode.c (undef_cmd_error): Ditto.
12272 * scm-lang.c (scm_lookup_name): Ditto.
12273 * tracepoint.c (trace_error): Ditto.
12274 * remote-utils.c (usage): Ditto.
12275 * remote.c (compare_sections_command): Ditto.
12276 Fix PR gdb/328.
12277
12278 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12279
12280 * gdbtypes.c (append_composite_type_field): New function.
12281 (init_composite_type): New function.
12282 * gdbtypes.h (append_composite_type_field): Declare.
12283 (init_composite_type): Ditto.
12284
12285 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12286
12287 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12288 function.
12289 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12290 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12291 structure returning convention for SYSV ABI case, but not
12292 for GNU/Linux, FreeBSD, or NetBSD.
12293
12294 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12295
12296 * symtab.h (lookup_block_symbol): Add mangled_name argument
12297 to prototype.
12298
12299 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12300 with new mangled_name argument.
12301 * linespec.c (decode_line_1): Likewise.
12302 * valops (value_of_this): Likewise.
12303 * symtab.c (lookup_transparent_type): Likewise.
12304 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12305 (lookup_symbol): If we are given a mangled name, pass it down
12306 to lookup_symbol_aux.
12307 (lookup_block_symbol): If we are given a mangled name to check
12308 against, only return symbols which match it.
12309
12310 2002-03-22 Christopher Faylor <cgf@redhat.com>
12311
12312 * win32-nat.c (child_create_inferior): Check for proper shell to use
12313 here, in case the user changes it on the fly.
12314 (_initialize_inftarg): Remove shell path considerations.
12315
12316 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12317
12318 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12319 for gdbarch_max_register_raw_size and max_register_virtual_size.
12320 Adjust copyright year.
12321
12322 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12323
12324 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12325 in a function to cover the entire beginning of the function
12326 as well if it does not already.
12327
12328 2002-03-21 Tom Rix <trix@redhat.com>
12329
12330 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12331 (rs6000_ptrace64): Renamed from ptrace64.
12332
12333 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12334
12335 * gdbserver/remote-utils.c (remote_open): Don't call
12336 getprotobyname, we're all using TCP here so just use
12337 IPPROTO_TCP.
12338 * gdbserver/gdbreplay.c (remote_open): Ditto.
12339
12340 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12341
12342 * regcache.c (_initialize_regcache): No need to call
12343 build_regcache() at this time; it gets called whenever
12344 the gdbarch changes.
12345
12346 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12347
12348 * sparc-nat.c: Include sys/param.h where possible.
12349
12350 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12351
12352 Fix PR gdb/422.
12353 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12354 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12355 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12356 complex types.
12357 * stabsread.c (rs6000_builtin_type): Likewise.
12358 (read_sun_floating_type): Likewise.
12359
12360 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12361
12362 * stabsread.c (read_member_functions): Remove skip code for duplicate
12363 constructor/destructor methods. Use standard parsing for these
12364 methods and just do not chain them to the list of methods after
12365 parsing.
12366
12367 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12368
12369 * coffread.c: Remove redundant static declarations. Replace
12370 occurrences of `PTR' with `void *'.
12371 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12372 * top.h (quit_cover): Likewise.
12373 * defs.h (catch_errors): Likewise.
12374
12375 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12376
12377 * defs.h (XMALLOC): Define.
12378 * gdb-events.sh (XMALLOC): Delete macro.
12379 * gdb-events.c, gdb-events.h: Regenerate.
12380 * gdbarch.sh (XMALLOC): Delete macro.
12381 * gdbarch.c: Regenerate.
12382 * serial.c (XMALLOC): Delete macro.
12383 * ui-file.c (XMALLOC): Ditto.
12384 * ser-unix.h (XMALLOC): Ditto.
12385 * sh-tdep.c (XMALLOC): Ditto.
12386 * ui-out.c (XMALLOC): Ditto.
12387 * utils.c (XMALLOC): Ditto.
12388 * i386-tdep.c (XMALLOC): Ditto.
12389 * gdb-events.c (XMALLOC): Ditto.
12390 * d10v-tdep.c (XMALLOC): Ditto.
12391 * cli-out.c (XMALLOC): Ditto.
12392
12393 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12394 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12395 * ui-file.c, ui-out.c: Ditto.
12396
12397 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12398
12399 * command.h (struct cmd_list_element): Add field context.
12400 (set_cmd_context, get_cmd_context): Declare.
12401 * cli/cli-decode.h: Ditto.
12402 * cli/cli-decode.c (get_cmd_context): New function.
12403 (set_cmd_context): New function.
12404 (add_cmd): Initialize context.
12405 Part of fixing PR gdb/145 and PR gdb/146.
12406
12407 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12408
12409 * cli/cli-decode.c (cmd_type): New function.
12410 * command.h (cmd_type): Declare.
12411 * infrun.c (set_schedlock_func): Call function cmd_type.
12412 * kod.c (kod_set_os): Call cmd_type.
12413 * cris-tdep.c (cris_version_update): Use function cmd_type.
12414 (cris_mode_update, cris_abi_update): Ditto.
12415
12416 * command.h: (execute_cmd_post_hook): Declare.
12417 (execute_cmd_pre_hook): Declare.
12418 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12419 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12420 functions. Execute pre/post hook while ensuring that afterwords
12421 hook_in is cleared.
12422 * top.c (execute_command): Use execute_cmd_post_hook, and
12423 execute_cmd_pre_hook to execute pre/post commands.
12424 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12425 hook_stop_stub.
12426 (hook_stop_stub): Call execute_cmd_pre_hook.
12427
12428 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12429
12430 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12431 set'' and this leads to a core dump. Move xstrdup of
12432 operating_system to after check that it is not NULL.
12433
12434 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12435
12436 * kod.c (kod_set_os): Remove unnecessary check that
12437 ``command->type'' is set_cmd.
12438
12439 * valprint.c (set_input_radix): Use input_radix.
12440 (set_output_radix): Use output_radix.
12441 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12442 isn't reverted.
12443
12444 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12445
12446 * value.h (struct value): Delete field ``substring_addr''. Change
12447 aligner fields to force_doublest_align, force_longest_align,
12448 force_core_addr_align and force_pointer_aligh.
12449
12450 * value.h (struct value): Fix typo in above change.
12451
12452 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12453
12454 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12455 to fix internal_error from ``maintenance print architecture''.
12456
12457 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12458
12459 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12460 for gcc versions after gcc-2.8.1.
12461
12462 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12463
12464 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12465 for method resolution. Restore adjustment of ``this'' pointer after
12466 calling value_struct_elt, which was accidentally removed during the
12467 HP merge.
12468
12469 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12470
12471 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12472 value_of_register.
12473 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12474 get_saved_register.
12475 * value.h (value_of_register): Update.
12476
12477 2002-03-14 Richard Henderson <rth@redhat.com>
12478
12479 * configure.in: Detect declaration for canonicalize_file_name.
12480 * utils.c (canonicalize_file_name): Declare, if needed.
12481 (gdb_realpath): Prefer realpath if available and usable.
12482 * config.in, configure: Rebuild.
12483
12484 2002-03-14 Richard Henderson <rth@redhat.com>
12485
12486 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12487 a constant array bound.
12488
12489 * MAINTAINERS: Add myself to write-after-approval.
12490
12491 2002-03-14 Michael Snyder <msnyder@redhat.com>
12492
12493 * symfile.c (syms_from_objfile): Return immediately if no syms.
12494 (symbol_file_add): Return immediately if no syms.
12495 (find_sym_fns): Return immediately if no syms.
12496
12497 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12498
12499 * gdbserver/remote-util.c (remote_open): Print remote-side's
12500 IP address when remote debugging over the network.
12501
12502 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12503
12504 * config/sparc/fbsd.mh: Fix copyright.
12505 * config/sparc/fbsd.mt: Likewise.
12506
12507 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12508
12509 * MAINTAINERS: Fix typo in name of gdb warnings option.
12510 (x86-64): Fix formating so that this can be parsed by awk.
12511
12512 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12513
12514 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12515 * defs.h: Include "gdb/signals.h".
12516 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12517
12518 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12519
12520 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12521 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12522 from x86-64-tdep.h
12523
12524 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12525 Don Howard <dhoward@redhat.com>
12526
12527 * mips-tdep.c (ST0_FR): Define.
12528 (mips2_fp_compat): New function, temporarily disabled.
12529 (mips_read_fp_register_single): New function.
12530 (mips_read_fp_register_double): New function.
12531 (mips_print_register): Use them.
12532 (do_fp_register_row): Likewise.
12533
12534 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12535
12536 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12537 approval''.
12538
12539 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12540
12541 * stabsread.c (read_member_functions): Fix is_stub test for
12542 static member functions, improve comment.
12543
12544 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12545
12546 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12547 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12548 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12549 commands that set boolean values.
12550 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12551 (arm_rdi_resume): Always initialize PC.
12552 (arm_rdi_open): Don't use rslt as a boolean.
12553 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12554 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12555 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12556 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12557
12558 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12559
12560 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12561 * configure: Rebuilt.
12562
12563 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12564
12565 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12566 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12567
12568 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12569
12570 * cli/cli-decode.c (set_cmd_completer): New function.
12571 * command.h (set_cmd_completer): Declare.
12572 * cli/cli-decode.h (set_cmd_completer): Ditto.
12573
12574 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12575 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12576 * win32-nat.c (_initialize_inftarg): Ditto.
12577 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12578 * proc-api.c (_initialize_proc_api): Ditto.
12579 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12580 * source.c (_initialize_source): Ditto.
12581 * exec.c (_initialize_exec): Ditto.
12582 * solib.c (_initialize_solib): Ditto.
12583 * top.c (init_main): Ditto.
12584 * tracepoint.c (_initialize_tracepoint): Ditto.
12585 * symfile.c (_initialize_symfile): Ditto.
12586 * printcmd.c (_initialize_printcmd): Ditto.
12587 * infcmd.c (_initialize_infcmd): Ditto.
12588 * corefile.c (_initialize_core): Ditto.
12589
12590 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12591
12592 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12593
12594 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12595
12596 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12597
12598 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12599
12600 * NEWS: Update headings, 5.2 has branched.
12601
12602 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12603
12604 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12605 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12606 (register_addr, REGISTER_RAW_SIZE): Likewise.
12607 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12608 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12609
12610 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12611
12612 * MAINTAINERS (x86-64): Add myself.
12613 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12614 changed value_ptr -> struct value *
12615
12616 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12617
12618 * configure.host (sparc64-*-freebsd): Add.
12619 * configure.tgt: Likewise.
12620 * config/sparc/fbsd.mh: New file.
12621 * config/sparc/fbsd.mt: Likewise.
12622 * config/sparc/nm-fbsd.h: Likewise.
12623 * config/sparc/tm-fbsd.h: Likewise.
12624
12625 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12626
12627 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12628 regformats/reg-s390x.dat.
12629
12630 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12631
12632 * utils.c: Add FIXME explaining true/false problem.
12633
12634 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12635
12636 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12637
12638 2002-02-28 Michael Chastain <mec@shout.net>
12639
12640 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12641
12642 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12643
12644 * gdbserver/linux-s390-low.c: New file.
12645 * regformats/reg-s390.dat: New file.
12646 * regformats/reg-s390x.dat: New file.
12647 * gdbserver/configure.srv: Add S/390.
12648 * gdbserver/Makefile.in: Add S/390.
12649 * configure.tgt: Enable gdbserver for S/390.
12650
12651 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12652
12653 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12654 first line of the doc string for "info dos", except at the end of
12655 the sentence, since the short help stops at the first period.
12656
12657 2002-02-28 Jason Merrill <jason@redhat.com>
12658
12659 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12660
12661 2002-02-27 Fred Fish <fnf@redhat.com>
12662
12663 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12664 comment (dumy -> dummy).
12665
12666 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12667
12668 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12669
12670 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12671
12672 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12673
12674 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12675
12676 * gdbserver/acconfig.h: New file.
12677 * gdbserver/i387-fp.c: New file.
12678 * gdbserver/i387-fp.h: New file.
12679 * gdbserver/linux-x86-64.c: New file.
12680 * regformats/reg-x86-64.dat: New file.
12681 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12682 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12683 * gdbserver/configure.in: Add support for regsets.
12684 * gdbserver/config.in: Regenerate.
12685 * gdbserver/configure: Regenerate.
12686 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12687 * gdbserver/linux-low.h: New file.
12688 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12689 for regsets.
12690 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12691 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12692 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12693 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12694 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12695 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12696 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12697 "i387-fp.h". Add PTRACE_GETREGS and friends.
12698 * gdbserver/regcache.c (supply_register): New function.
12699 (supply_register_by_name): New function.
12700 (collect_register): New function.
12701 (collect_register_by_name): New function.
12702
12703 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12704
12705 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12706 (config.status): Add configure.srv dependency.
12707 (server_h): Add config.h dependency.
12708
12709 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12710
12711 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12712 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12713 * gdbserver/configure.srv: Change i386-*-linux* to use
12714 reg-i386-linux.o.
12715
12716 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12717
12718 * x86-64-tdep.c: Re-indent. Update copyright date.
12719
12720 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12721
12722 From Michal Ludvig <mludvig@suse.cz>:
12723 * x86-64-tdep.c (value.h): Delete.
12724 (gdb_assert.h): Include.
12725 (x86_64_register_convert_to_virtual,
12726 x86_64_register_convert_to_raw ): Add check which lets only
12727 floating-point values to be converted.
12728 (value_push): Delete.
12729 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12730 (i386_gdbarch_init): Number of register_bytes fixed.
12731
12732 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12733
12734 * MAINTAINERS: Add x86-64 target.
12735
12736 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12737
12738 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12739 * osfsolib.c (solib_map_sections): Ditto.
12740 * irix5-nat.c (solib_map_sections): Ditto.
12741 * corelow.c (gdb_check_format): Ditto.
12742 * symfile.c (symfile_bfd_open): Ditto.
12743 * solib.c (solib_map_sections): Ditto.
12744 Fix PR gdb/354.
12745
12746 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12747
12748 * remote.c (_initialize_remote): By default, disable ``e'' and
12749 ``E'' step out-of-range packets.
12750
12751 2002-02-26 Andreas Schwab <schwab@suse.de>
12752
12753 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12754 m68k_linux_frame_saved_pc.
12755 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12756 in_sigtramp.
12757 (SIGCONTEXT_PC_OFFSET): Remove.
12758 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12759 m68k_linux_sigtramp_saved_pc): New functions.
12760 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12761 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12762 (UCONTEXT_PC_OFFSET): Define.
12763 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12764 non-RT and RT signal trampolines.
12765
12766 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12767
12768 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12769 (TARGET_NBPG, STACK_END_ADDR): Delete
12770 (VARIABLES_INSIDE_BLOCK): Delete.
12771
12772 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12773
12774 * utils.c (perror_with_name): Make string parameter constant.
12775 (print_sys_errmsg): Ditto.
12776 (query): Ditto.
12777 * defs.h (perror_with_name): Update.
12778 (print_sys_errmsg): Update.
12779 (query): Update.
12780
12781 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12782
12783 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12784 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12785
12786 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12787
12788 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12789 if it already matches the current architecture from the exec file.
12790 Include arch-utils.h for gdbarch_info_init prototype.
12791 * Makefile.in (rs6000-nat.o): Update dependencies.
12792
12793 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12794
12795 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12796 list of exported variables.
12797
12798 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12799
12800 * gdbserver/configure.srv: New file.
12801 * gdbserver/configure.in: Use configure.srv instead
12802 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12803 from it.
12804 * gdbserver/configure: Regenerated.
12805 * gdbserver/terminal.h: New file.
12806 * gdbserver/Makefile.in: Update for configure changes. Remove
12807 more unneeded include paths.
12808
12809 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12810
12811 From wiz at danbala:
12812 * config/sparc/tm-sp64.h: Fix grammar and typos.
12813 Fix PR gdb/287.
12814
12815 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12816
12817 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12818 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12819 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12820 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12821 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12822 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12823 * s390-tdep.c: Ditto.
12824 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12825 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12826 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12827 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12828 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12829 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12830 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12831 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12832 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12833 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12834 Fix PR gdb/378.
12835
12836 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12837
12838 * lin-thread.c: Delete file.
12839 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12840 to gdb_proc_service.h.
12841 * configure: Re-generate.
12842
12843 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12844 * serial.c (serial_open): Delete check for "ocd".
12845 Fix PR gdb/349.
12846
12847 * Makefile.in (linux-thread.o): Delete target.
12848 * linux-thread.c: Delete file.
12849
12850 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12851 renamed SH files to be consistent.
12852
12853 * symtab.c (sort_search_symbols): Use xfree.
12854
12855 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12856
12857 * arm-linux-tdep.c (arm_linux_init_abi): Register
12858 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12859 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12860 definition with undef, since we don't want the sysvr4 definition.
12861 (SKIP_TRAMPOLINE_CODE): Likewise.
12862
12863 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12864
12865 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12866
12867 * configure.in: (AC_CHECK_FUNCS) Added test for
12868 canonicalize_file_name Regenerated.
12869 * config.in, configure: Regenerated.
12870 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12871 defined use canonicalize_file_name.
12872
12873 2002-02-23 Michael Chastain <mec@shout.net>
12874
12875 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12876
12877 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12878
12879 * README: Remove references to cygnus.com.
12880 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12881 dot com'' form. Remove references to cygnus.com and sourceware.
12882
12883 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12884
12885 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12886 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12887 1003.1-2001 no longer allows "head -1".
12888 * gdb/Makefile.in (version.c): Likewise.
12889 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12890 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12891 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12892
12893 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12894
12895 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12896 * command.h (cmd_cfunc_eq): Declare.
12897 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12898
12899 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12900 ``struct cmd_list_element *''.
12901 * cli/cli-cmds.c (is_complete_command): Update. Use
12902 cmd_cfunc_eq.
12903 * top.c (execute_command): Pass the command to
12904 is_complete_command.
12905 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12906
12907 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12908
12909 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12910 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12911 architecture defines.
12912 * s390-tdep.c (s390_gdbarch_init): Likewise.
12913
12914 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12915
12916 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12917 (arm_linux_push_arguments): Likewise.
12918 (arm_linux_init_abi): Register them. Also register linux-specific
12919 call_dummy_words.
12920 (find_minsym_and_objfile): Use strcmp, not STREQ.
12921 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12922 (arm_linux_call_dummy_words): Delete declaration.
12923 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12924 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12925 declarations.
12926 (LOWEST_PC): Delete.
12927
12928 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12929
12930 * maint.c (print_section_info): Do not prepend `0x' to filepos
12931 output, it will be handled by local_hex_string_custom.
12932
12933 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12934
12935 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12936 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12937 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12938
12939 2002-02-22 Jim Blandy <jimb@redhat.com>
12940
12941 Indicate that the bcache functions don't change the strings
12942 they're passed.
12943 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12944 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12945
12946 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12947
12948 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12949
12950 2002-02-21 Christopher Faylor <cgf@redhat.com>
12951
12952 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12953 find the complete path to a loaded DLL.
12954
12955 2002-02-21 Fred Fish <fnf@redhat.com>
12956
12957 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12958 that marks the end of the range of a function, enter a line number
12959 entry that has a line number of zero and a PC offset that matches
12960 the end of the function. This starts a range of PC's for which no
12961 line number information is known.
12962 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12963 PC's for which no line number info is found (line number is zero)
12964 then we didn't find any valid line information.
12965 * symtab.h: Document use of zero line number entry.
12966
12967 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12968
12969 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12970 (have_ptrace_getvrregs): Define for run time checks.
12971 (gdb_vrregset_t): New type for Altivec register handling.
12972 (fetch_register, store_register): Fetch/store altivec register
12973 when needed.
12974 (fetch_altivec_register, store_altivec_register): New functions.
12975 (supply_vrregset, fill_vrregset): New functions.
12976 (fetch_altivec_registers, store_altivec_registers): New functions.
12977 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12978 registers as well.
12979
12980 2002-02-21 Jiri Smid <smid@suse.cz>
12981
12982 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12983
12984 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12985
12986 * Makefile.in (armnbsd-nat.o): Update dependencies.
12987 * armnbsd-nat.c (supply_gregset): New function. Common code to
12988 supply the integer register set.
12989 (supply_fparegset): New function. Similar for FPA registers.
12990 (fetch_regs, fetch_fp_regs): Use them.
12991 (fetch_core_registers): Likewise.
12992 (fetch_elfcore_registers): New function.
12993 (arm_netbsd_elfcore_fns): New core-file type specification.
12994 (_initialize_arm_netbsd_nat): Register it.
12995
12996 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12997
12998 * armnbsd-nat.c: Include gdbcore.h.
12999 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13000 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13001 'void' to declaration, to shut up ARI.
13002 (fetch_core_registers): Make static. Rewrite using supply_register.
13003 (arm_netbsd_core_fns): New core-file type specification.
13004 (_initialize_arm_netbsd_nat): New function.
13005
13006 2002-02-21 Christopher Faylor <cgf@redhat.com>
13007
13008 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13009 value.
13010
13011 2002-02-20 Christopher Faylor <cgf@redhat.com>
13012
13013 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13014 fails.
13015
13016 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13017
13018 * jv-exp.y (parse_number): Change type of implicit longs
13019 to builtin_type_uint64.
13020
13021 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13022
13023 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13024 to be an integer instead of a `union wait'.
13025
13026 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13027
13028 * mips-linux-nat.c: Call the operating system GNU/Linux.
13029 * mips-linux-tdep.c: Likewise.
13030 * mips-tdep.c: Likewise.
13031
13032 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13033
13034 Fix PR gdb/265.
13035 * jv-exp.y (parse_number): Handle 64-bit integers.
13036
13037 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13038
13039 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13040 AC_STDC_HEADERS to AC_HEADER_STDC.
13041 * gdbserver/configure: Regenerated.
13042
13043 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13044
13045 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13046 is defined.
13047 * sparc-tdep.c (get_longjmp_target): Likewise.
13048
13049 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13050
13051 * News: Add news about ARM and Multi-arch. Mention the new target
13052 arm*-*-netbsd*.
13053
13054 2002-02-19 Jim Blandy <jimb@redhat.com>
13055
13056 * stabsread.c (error_type_complaint): Improve error message.
13057
13058 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13059
13060 * gdbserver/README: Update documentation.
13061 * gdbserver/configure.in: Update configury to match documentation.
13062 * gdbserver/Makefile.in: Likewise.
13063 * gdbserver/configure: Regenerated.
13064 * gdbserver/aclocal.m4: New file, generated by aclocal.
13065 * gdbserver/config.in: New file, generated by autoheader.
13066
13067 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13068
13069 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13070 armnbsd-nat.c.
13071
13072 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13073
13074 * arm-tdep.h (enum arm_float_model): New enum.
13075 (struct gdbarch_tdep): Add fp_model.
13076 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13077 up floating-point conversions until we know the floating-point model
13078 in use by the inferior. Don't complain about being unable to
13079 determine the ABI of the inferior when we don't have one.
13080 (arm_extract_return_value): Support different floating-point models.
13081 (arm_store_return_value): Likewise.
13082 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13083 ARM_FLOAT_SOFT.
13084 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13085
13086 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13087
13088 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13089 of ``current_gdbarch''.
13090
13091 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13092
13093 * armnbsd-nat.c : ANSIfy all function declarations.
13094 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13095 (fetch_inferior_registers): Re-implement in terms of above.
13096 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13097 (store_inferior_registers): Re-implement in terms of above.
13098
13099 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13100
13101 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13102 kernel.
13103 * arm-linux-tdep.c: Likewise.
13104 * config/arm/tm-linux.h: Likewise.
13105
13106 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13107
13108 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13109 * config/arm/nbsd.mt (TM_FILE): Delete.
13110 * config/arm/tm-nbsd.h: Delete.
13111
13112 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13113
13114 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13115 Initialize CALL_DUMMY_LENGTH.
13116
13117 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13118
13119 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13120 function.
13121 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13122 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13123 defines one thing and that is incorrect for this port.
13124 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13125
13126 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13127
13128 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13129
13130 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13131
13132 * win32-nat.c (display_selector): New function. Displays information
13133 about the information returned by GetThreadSelectorEntry API function.
13134 (display_selectors): New function. Displays the infomation of
13135 the selector given as argument, or of CS, DS ans FS selectors
13136 if no argument is given.
13137 ( _initialize_inftarg): Add "w32" as info prefix command.
13138 Add "info w32 selector" as command calling display_selectors.
13139
13140 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13141
13142 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13143 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13144 if not defined.
13145
13146 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13147
13148 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13149
13150 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13151
13152 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13153 (arm_fix_call_dummy): Call it.
13154 (arm_call_dummy_breakpoint_offset): Delete.
13155 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13156 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13157
13158 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13159
13160 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13161 Default to func_frame_chain_valid.
13162 * gdbarch.h, gdbarch.c: Re-generate.
13163 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13164
13165 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13166
13167 * ppc-linux-nat.c: Update copyright.
13168 (fetch_register, store_register): Add tid parameter, don't compute
13169 tid here.
13170 (fetch_ppc_registers, store_ppc_registers): Add tid
13171 parameter. Pass it along to callees.
13172 (fetch_inferior_registers, store_inferior_registers): Compute tid
13173 here, and pass it to calleed functions.
13174 (fill_gregset, supply_fpregset): Clean up formatting.
13175
13176 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13177
13178 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13179 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13180
13181 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13182
13183 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13184 * gdbarch.c gdbarch.h: Regenerate.
13185 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13186 function.
13187 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13188 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13189 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13190
13191 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13192 * arm-tdep.c (arm_get_longjmp_target): New function.
13193 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13194 this to a positive value register arm_get_longjmp_target as the
13195 longjmp handler.
13196 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13197 (arm_linux_init_abi): Set up longjmp description in tdep.
13198 * armnbsd-nat.c (get_longjmp_target): Delete.
13199 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13200 description in tdep.
13201 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13202 (get_longjmp_target): Delete declaration.
13203 (GET_LONGJMP_TARGET): Delete.
13204 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13205 (GET_LONGJMP_TARGET): Delete.
13206
13207 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13208
13209 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13210 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13211 of ``current_gdbarch''.
13212
13213 2002-02-17 Tom Tromey <tromey@redhat.com>
13214
13215 * cli/cli-cmds.c (compare_strings): New function.
13216 (complete_command): Only print each unique item once.
13217 * completer.h (complete_line): Declare.
13218 * completer.c (complete_line): New function.
13219 (line_completion_function): Use it.
13220
13221 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13222
13223 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13224 * gdbarch.h, gdbarch.c: Re-generate.
13225
13226 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13227
13228 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13229
13230 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13231
13232 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13233 * valops.c (value_arg_coerce): Don't take the address of a reference
13234 to convert an argument to a reference.
13235
13236 2002-02-15 Christopher Faylor <cgf@redhat.com>
13237
13238 * win32-nat.c (get_image_name): New function.
13239 (handle_load_dll): Use get_image_name function.
13240 (get_child_debug_event): Avoid registering debug events until possibly
13241 execed process is started.
13242 (child_create_inferior): Allow invocation via shell so that command
13243 line redirection, etc. works ok.
13244 (_initialize_inftarg): Add new command: "set shell" to control whether
13245 a shell is used to start a process.
13246
13247 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13250 instead of find_register_by_number.
13251 (cannot_store_register): Likewise.
13252
13253 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13254
13255 * dwarf2read.c: Replace fprintf (stderr, ...) by
13256 fprintf_unfiltered (gdb_stderr, ...).
13257
13258 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13259
13260 * gdbserver/gdbserver.1: Document --attach.
13261
13262 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13263
13264 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13265 descriptions.
13266 * arm-tdep.c (arm_default_arm_le_breakpoint)
13267 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13268 (arm_default_thumb_be_breakpoint): New. Initialize them from
13269 traditional breakpoint defines.
13270 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13271 (arm_gdbarch_init): Initialize new breakpoint variables.
13272 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13273 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13274 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13275 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13276 code out to ...
13277 (arm_netbsd_init_abi_common): ... here; new function.
13278 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13279 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13280 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13281 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13282
13283 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13284
13285 * arm-tdep.h (enum arm_abi): New enum.
13286 (struct gdbarch_tdep): New structure.
13287 (LOWEST_PC): Provide a default.
13288 (arm_gdbarch_register_os_abi): Declare new function.
13289 * arm-tdep.c (arm_abi_names): New array.
13290 (process_note_abi_tag_sections): New function.
13291 (get_elfosabi): New function.
13292 (arm_gdbarch_register_os_abi): New function.
13293 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13294 support for that ABI has been built in, then call the appropriate
13295 configuration routine. Use gdbarch_num_regs() to get the number
13296 of registers.
13297 (arm_dump_tdep): New function.
13298 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13299 place-holder functions.
13300 (_initialize_arm_tdep): Register them.
13301 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13302
13303 * armnbsd-tdep.c: New file.
13304 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13305 * config/arm/nbsd.mt (TDEPFILES): Add it.
13306 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13307
13308 * armnbsd-nat.c: Include regcache.h.
13309 * Makefile.in (armnbsd-nat.o): Update dependency list.
13310
13311 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13312
13313 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13314
13315 * gdbserver/Makefile.in: Fix typos in target rules.
13316
13317 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13318
13319 Fix part of PR gdb/267.
13320 * linespec.c (find_methods): Handle constructors specially for now.
13321
13322 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13323
13324 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13325 handling.
13326 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13327 standard_coerce_float_to_double().
13328
13329 2002-02-14 Christopher Faylor <cgf@redhat.com>
13330
13331 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13332 GDBINIT_FILENAME.
13333
13334 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13335
13336 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13337 find_variant_by_name, because it confuses the multiarch
13338 framework. Return NULL if there isn't an architecture with the
13339 user supplied name, instead of forcing a different one without
13340 recording the change with the multiarch machinery.
13341 (find_variant_by_name): Delete.
13342
13343 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13344
13345 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13346 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13347
13348 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13349
13350 * stack.c (print_frame_info_base): When calling
13351 print_frame_info_listing_hook, set current_source_symtab.
13352
13353 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13354
13355 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13356 and remove unused $(INCLUDE_DIR).
13357 Add regcache.c to OBS.
13358 Add generated register protocol files to clean target.
13359 Update dependencies for new objects, obsolete old target code.
13360
13361 * gdbserver/linux-low.c: Remove all platform-specific code to
13362 new files. Remove various dead code. Update to use regcache
13363 functionality.
13364 * gdbserver/remote-utils.c (fromhex): Add return statement
13365 to quiet warning.
13366 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13367 constant.
13368 (input_interrupt): Add integer parameter to match prototype
13369 of a signal handler.
13370 (outreg): Use register_data ().
13371 (prepare_resume_reply): Use gdbserver_expedite_regs.
13372 * gdbserver/server.c (main): Dynamically allocate own_buf because
13373 PBUFSIZ is no longer constant. Use registers_to_string () and
13374 registers_from_string ().
13375 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13376 for error (), fatal (), and warning (). Update definition of
13377 PBUFSIZ to use regcache functionality. Add include guard.
13378 * gdbserver/utils.c (fatal): Add missing ``const''.
13379 (warning): New function.
13380
13381 * regformats/regdat.sh: Include "regcache.h" in generated files.
13382 Provide init_registers () function.
13383 * regformats/regdef.h: Add prototype for set_register_cache ().
13384 Add include guard.
13385
13386 * gdbserver/linux-arm-low.c: New file.
13387 * gdbserver/linux-i386-low.c: New file.
13388 * gdbserver/linux-ia64-low.c: New file.
13389 * gdbserver/linux-m68k-low.c: New file.
13390 * gdbserver/linux-mips-low.c: New file.
13391 * gdbserver/linux-ppc-low.c: New file.
13392 * gdbserver/linux-sh-low.c: New file.
13393
13394 * gdbserver/regcache.c: New file.
13395 * gdbserver/regcache.h: New file.
13396
13397 * gdbserver/low-linux.c: Removed obsolete file.
13398
13399 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13400
13401 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13402 * config/i386/linux.mt: Likewise.
13403 * config/ia64/linux.mt: Likewise.
13404 * config/m68k/linux.mh: Likewise.
13405 * config/powerpc/linux.mh: Likewise.
13406 * config/mips/linux.mt: Likewise.
13407
13408 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13409
13410 * config/i386/i386lynx.mh: Mark gdbserver variables
13411 as (currently) obsolete for this target.
13412 * config/i386/nbsd.mt: Likewise.
13413 * config/i386/nbsdelf.mt: Likewise.
13414 * config/m32r/m32r.mt: Likewise.
13415 * config/m68k/m68klynx.mh: Likewise.
13416 * config/m68k/nbsd.mt: Likewise.
13417 * config/m68k/sun3os4.mh: Likewise.
13418 * config/mips/vr5000.mt: Likewise.
13419 * config/ns32k/nbsd.mt: Likewise.
13420 * config/pa/hppabsd.mh: Likewise.
13421 * config/pa/hppaosf.mh: Likewise.
13422 * config/powerpc/nbsd.mt: Likewise.
13423 * config/rs6000/rs6000lynx.mh: Likewise.
13424 * config/s390/s390.mt: Likewise.
13425 * config/s390/s390x.mt: Likewise.
13426 * config/sparc/sparclynx.mh: Likewise.
13427 * config/sparc/sun4os4.mh: Likewise.
13428 * config/i386/x86-64linux.mt: Likewise.
13429 * config/sparc/linux.mh: Likewise.
13430
13431 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13432
13433 * configure.tgt: Configure gdbserver only for known working
13434 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13435 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13436 SUBDIRS if it is configured. Update comment for ${nativefile}.
13437 * configure: Regenerated.
13438
13439 2002-02-13 Michael Snyder <msnyder@redhat.com>
13440
13441 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13442
13443 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13444 (default_gcore_mach): Just return 0, work around a problem in bfd.
13445 (default_gcore_target): OK to return NULL if exec_bfd is null.
13446 (make_mem_sec): Use a cast, avoid a warning.
13447
13448 * procfs.c (find_memory_regions_callback): Use a cast instead of
13449 calling host_pointer_to_address (which complains if
13450 sizeof (host pointer) != sizeof (target pointer)).
13451 (procfs_make_note_section): Avoid overflow in psargs string.
13452
13453 * procfs.c (procfs_make_note_section): Make the default
13454 implementation return an error.
13455
13456 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13457
13458 * procfs.c (procfs_make_note_section): Provide a default definition
13459 (for alpha-dec-osf4.0f). Fix typos.
13460
13461 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13462
13463 * linux-proc.c: Add include of regcache.h.
13464 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13465
13466 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13467
13468 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13469 * memattr.c (create_mem_region): Disallow useless empty region.
13470 Regions are half-open intervals, so allow [A..B) [B..C) as
13471 non-overlapping.
13472
13473 2002-02-13 Michael Chastain <mec@shout.net>
13474
13475 * defs.h: Kill CONST_PTR.
13476 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13477 * c-lang.c (c_builtin_types): Likewise.
13478 * ch-lang.c (ch_builtin_types): Likewise.
13479 * f-lang.c (f_builtin_types): Likewise.
13480 * language.c (unknown_builtin_types): Likewise.
13481 * m2-lang.c (m2_builtin_types): Likewise.
13482 * p-lang.c (pascal_builtin_types): Likewise.
13483 * scm-lang.c (c_builtin_types): Likewise.
13484
13485 2002-02-13 Keith Seitz <keiths@redhat.com>
13486
13487 * arm-tdep.h (arm_get_next_pc): Add declaration.
13488
13489 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13490
13491 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13492 with other related struct-returning functions.
13493 (arm_extract_struct_value_address): New function.
13494 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13495 initialize float_format, double_format and long_double_format as
13496 appropriate to the endianness of the target.
13497 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13498 (arm_use_struct_convention): Delete declaration.
13499 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13500
13501 2002-02-13 Keith Seitz <keiths@redhat.com>
13502
13503 * defs.h (core_addr_to_string_nz): New function.
13504
13505 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13506
13507 Apply missing bits of 2002-01-15 patch.
13508 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13509 (fill_fpregset): Use i387_fill_fsave.
13510
13511 2002-02-12 Keith Seitz <keiths@redhat.com>
13512
13513 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13514 (core_addr_to_string_nz): New function.
13515
13516 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13517
13518 * arm-linux-nat.c: Really include arm-tdep.h.
13519 * config/arm/tm-linux.h (struct type, struct value): Declare.
13520
13521 2002-02-11 Michael Snyder <msnyder@redhat.com>
13522
13523 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13524 (gcore section): Ifdef for Solaris and Unixware only.
13525 (procfs_do_thread_registers): Unixware needs one lwpstatus
13526 per thread (not one prstatus or pstatus).
13527 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13528 not over all gdb threads. For unixware, call elfcore_write_pstatus
13529 once before iterating over threads.
13530
13531 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13532
13533 * arm-tdep.h: New file.
13534 * arm-tdep.c: Include arm-tdep.h.
13535 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13536 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13537 (arm_print_float_info, arm_register_type, convert_to_extended)
13538 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13539 (arm_extract_return_value, arm_register_name): Make static.
13540 (arm_software_single_step): Similarly. Fix types in declaration.
13541 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13542 (arm_store_return_value, arm_store_struct_return): New functions.
13543 (arm_gdbarch_init): Register the above functions. Also register
13544 call_dummy_start_offset, sizeof_call_dummy_words,
13545 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13546 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13547 max_register_virtual_size, register_size. Set up
13548 prologue_cache.saved_regs here, rather than ...
13549 (_initialize_arm_tdep): ... here.
13550 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13551 declarations.
13552 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13553 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13554 (arm_print_float_info, arm_register_type, convert_to_extended)
13555 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13556 (arm_extract_return_value, arm_register_name): Delete declarations.
13557 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13558 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13559 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13560 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13561 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13562 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13563 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13564 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13565 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13566 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13567 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13568 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13569 interface.
13570 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13571 * remote-rdi.c remote-rdp.c: Likewise.
13572 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13573 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13574 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13575 definition.
13576
13577 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13578 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13579 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13580 from non-ARM_ prefixed definitions.
13581 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13582 all uses of above.
13583 * remote-rdi.c remote-rdp.c: Likewise.
13584 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13585
13586 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13587
13588 * arm-tdep.c (arm_frameless_function_invocation)
13589 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13590 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13591 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13592 (arm_pop_frame, arm_get_next_pc): Make static.
13593 (arm_gdbarch_init): Register above in gdbarch structure.
13594 (arm_read_fp): Renamed from arm_target_read_fp.
13595 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13596 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13597 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13598 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13599 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13600 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13601 (arm_pc_is_thumb_dummy): Delete declarations.
13602 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13603 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13604 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13605 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13606
13607 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13608
13609 * symtab.c (compare_search_syms): New function.
13610 (sort_search_symbols): New function.
13611 (search_symbols): Sort symbols after searching rather than
13612 before.
13613
13614 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13615
13616 * NEWS: Linux -> GNU/Linux.
13617
13618 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13619
13620 * gdbarch.sh: For for level one methods, disallow a definition
13621 when partially multi-arched. Add comments explaining rationale.
13622 * gdbarch.h: Re-generate.
13623
13624 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13625
13626 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13627 multi-arch partial.
13628
13629 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13630
13631 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13632 field. Use diff -u.
13633 * gdbarch.c: Re-generate.
13634
13635 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13636
13637 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13638 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13639 partial.
13640
13641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13642
13643 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13644 multi-arch partial.
13645 (PUSH_ARGUMENTS): Switch to using predefault.
13646 * gdbarch.c: Regenerate.
13647
13648 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13649
13650 * valops.c (PUSH_ARGUMENTS): Delete definition.
13651 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13652 partial. Default to default_push_arguments.
13653 * gdbarch.h, gdbarch.c: Regenerate.
13654
13655 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13656
13657 * defs.h (throw_exception): Rename return_to_top_level. Update
13658 comments.
13659 * utils.c (error_stream, internal_verror, quit): Ditto.
13660 * top.c (throw_exception, catcher): Ditto.
13661 * sparclet-rom.c (sparclet_load): Ditto.
13662 * remote.c (interrupt_query, minitelnet): Ditto.
13663 * remote-sds.c (interrupt_query): Ditto.
13664 * remote-mips.c (mips_error, mips_kill): Ditto.
13665 * ocd.c (interrupt_query): Ditto.
13666 * monitor.c (monitor_interrupt_query): Ditto.
13667 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13668 * target.h: Update comment.
13669
13670 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13671
13672 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13673
13674 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13675 default_double_format.
13676 * gdbarch.h, gdbarch.c: Re-generate.
13677 * findvar.c (floatformat_unknown): Delete variable definition.
13678 * doublest.h (floatformat_unknown): Delete variable declaration.
13679
13680 2002-02-09 Jim Blandy <jimb@redhat.com>
13681
13682 * stabsread.c (read_type): Add code to parse Sun's syntax for
13683 prototyped function types.
13684
13685 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13686
13687 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13688 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13689
13690 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13691
13692 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13693 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13694 now _initialize_xcoffsolib gets called again and overrides the
13695 commands from solib.c in a native configuration.
13696
13697 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13698
13699 * doublest.c (store_typed_floating): Don't try to return a value.
13700 Fixes PR gdb/290.
13701
13702 2002-02-08 Jim Blandy <jimb@redhat.com>
13703
13704 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13705 is prototyped and has no arguments, print its argument list as
13706 `(void)'.
13707
13708 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13709
13710 * MAINTAINERS (write-after-approval): Add myself.
13711 (paper-trail): I've escaped!
13712
13713 2002-02-08 Christopher Faylor <cgf@redhat.com>
13714
13715 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13716 changes.
13717 (_initialize_check_for_gdb_ini): Ditto.
13718
13719 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13720
13721 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13722 xaprintf -> xasprintf.
13723
13724 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13725
13726 * win32-nat.c: Remove use of printf and sprintf functions.
13727
13728 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13729
13730 * arm-tdep.c (arm_frame_chain_valid): Make static.
13731 (arm_push_arguments): Likewise.
13732 (arm_gdbarch_init): New function.
13733 (_initialize_arm_tdep): Call it.
13734 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13735 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13736 (FRAME_CHAIN_VALID): Delete.
13737 (arm_frame_chain_valid): Delete declaration.
13738 (PUSH_ARGUMENTS): Delete.
13739 (arm_push_arguments): Delete declaration.
13740 (CALL_DUMMY_P): Delete.
13741
13742 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13743 Corinna Vinschen <vinschen@redhat.com>
13744
13745 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13746 on builtin float types.
13747
13748 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13749
13750 * utils.c: Include <curses.h> before "bfd.h".
13751 * tui/tui-hooks.c: Likewise.
13752 * tui/tui.c: Likewise.
13753 * tui/tuiCommand.c: Likewise.
13754 * tui/tuiData.c: Likewise.
13755 * tui/tuiDataWin.c: Likewise.
13756 * tui/tuiDisassem.c: Likewise.
13757 * tui/tuiGeneralWin.c: Likewise.
13758 * tui/tuiIO.c: Likewise.
13759 * tui/tuiLayout.c: Likewise.
13760 * tui/tuiRegs.c: Likewise.
13761 * tui/tuiSource.c: Likewise.
13762 * tui/tuiSourceWin.c: Likewise.
13763 * tui/tuiStack.c: Likewise.
13764 * tui/tuiWin.c: Likewise.
13765
13766 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13767
13768 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13769 to include space for pseudoregs as well. Update loops accordingly.
13770 (sh_fp_frame_init_saved_regs): Ditto.
13771 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13772
13773 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13774
13775 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13776 Add Richard Earnshaw to Arm maintainers.
13777
13778 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13779
13780 * defs.h (warning_begin): Delete declaration.
13781
13782 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13783 Delete macro.
13784
13785 2002-02-07 Michael Snyder <msnyder@redhat.com>
13786
13787 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13788 Logic bug, remove misplaced else.
13789
13790 2002-02-07 Klee Dienes <klee@apple.com>
13791
13792 * fork-inferior.c (fork_inferior): Add '!' to the list of
13793 characters that need to be quoted when building a string for the
13794 shell. Quote '!' specifically with a backslash, since CSH chokes
13795 when trying to evaluate "str!str".
13796
13797 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13798
13799 * rdi-share/host.h: Only provide a typedef for bool if it is not
13800 defined.
13801
13802 2002-02-04 Michael Snyder <msnyder@redhat.com>
13803
13804 * breakpoint.h (enum bptype): Add new overlay event bp type.
13805 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13806
13807 * breakpoint.c (create_internal_breakpoint): New function.
13808 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13809 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13810 (create_thread_event_breakpoint): Ditto.
13811 (create_solib_event_breakpoint): Ditto.
13812 (create_overlay_event_breakpoint): New function.
13813 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13814 (update_breakpoints_after_exec): Delete and re-initialize
13815 overlay event breakpoints after an exec. Add FIXME comment
13816 about longjmp breakpoint.
13817 (print_it_typical): Ignore overlay event breakpoints.
13818 (print_one_breakpoint): Ditto.
13819 (mention): Ditto.
13820 (bpstat_what): Do not stop for overlay event breakpoints.
13821 (delete_breakpoint): Don't delete overlay event breakpoints.
13822 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13823 (breakpoint_re_set): Re-create overlay event breakpoint.
13824
13825 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13826 (overlay_manual_command): Disable overlay breakpoints.
13827 (overlay_off_command): Disable overlay breakpoints.
13828
13829 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13830
13831 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13832 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13833 to here from config/tm-arm.h.
13834 (coff_sym_is_thumb): Make static.
13835 (arm_elf_make_msymbol_special): New function.
13836 (arm_coff_make_msymbol_special): New function.
13837 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13838 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13839 (coff_sym_is_thumb): Delete declaration.
13840 (arm_elf_make_msymbol_special): Declare.
13841 (arm_coff_make_msymbol_special): Declare.
13842 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13843 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13844
13845 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13846
13847 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13848
13849 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13850
13851 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13852 * gdbarch.c gdbarch.h: Regenerate.
13853 * arch-utils.c (default_print_float_info): New function.
13854 * arch-utils.h (default_print_float_info): Prototype it.
13855 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13856 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13857 (PRINT_FLOAT_INFO): Document it.
13858
13859 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13860 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13861 (PRINT_FLOAT_INFO): Define.
13862
13863 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13864
13865 * win32-nat.c (_initialize_check_for_gdb_ini):
13866 Add typecast to sprintf argument to suppress a warning.
13867
13868 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13869
13870 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13871 to allow easier handling of pass state.
13872 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13873 that gives exception name and address.
13874 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13875 and set last_sig value to ourstatus->value.sig. Some missing
13876 exceptions added.
13877 (child_continue): Correctly report continue_status.
13878 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13879 TARGET_SIGNAL_0 (new default value).
13880 (child_resume): consider sig argument passed to decide if
13881 the exception should be passed to debuggee or not.
13882
13883 2002-02-05 Michael Snyder <msnyder@redhat.com>
13884
13885 * regcache.c (fetch_register): Call target_fetch_register
13886 only if we don't call FETCH_PSEUDO_REGISTER.
13887 (store_register): Call target_store_register only if we
13888 don't call STORE_PSEUDO_REGISTER.
13889
13890 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13891
13892 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13893 ELF_MAKE_MSYMBOL_SPECIAL.
13894 * gdbarch.c, gdbarch.h: Regenerate.
13895 * arch-utils.c (default_make_msymbol_special): New function.
13896 * arch-utils.h (default_make_msymbol_special): Export.
13897 * elfread.c (elf_symtab_read): Compile use of
13898 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13899 multiarched.
13900 * coffread.c (coff_symtab_read): Ditto, for
13901 COFF_MAKE_MSYMBOL_SPECIAL.
13902
13903 2002-02-05 Jim Blandy <jimb@redhat.com>
13904
13905 * solib-svr4.c (svr4_truncate_ptr): New function.
13906 (svr4_relocate_section_addresses): Do the address arithmetic with
13907 the appropriate truncation for target addresses, even when
13908 CORE_ADDR is larger than a target address.
13909
13910 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13911
13912 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13913 to (int *).
13914
13915 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13916
13917 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13918 code.
13919
13920 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13921
13922 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13923
13924 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13925
13926 * gdbserver/linux-low.c: Remove unused include files.
13927
13928 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13929
13930 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13931 (read_inferior_memory): Use it.
13932 (write_inferior_memory): Likewise.
13933
13934 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13935
13936 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13937 grubbing through sys_errlist.
13938
13939 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13940
13941 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13942
13943 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13944 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13945
13946 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13947
13948 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13949 (do_sfunc, set_cmd_sfunc): New functions.
13950
13951 * command.h (struct cmd_list_element): Add field func.
13952 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13953 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13954 * cli/cli-decode.h: Ditto.
13955
13956 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13957 (help_all, help_cmd_list): Ditto.
13958 (find_cmd, complete_on_cmdlist): Ditto.
13959 * top.c (execute_command): Ditto.
13960
13961 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13962 function.sfunc.
13963
13964 * infcmd.c (notice_args_read): Fix function signature.
13965
13966 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13967 * cli/cli-decode.c (add_set_cmd): Ditto.
13968 * utils.c (initialize_utils): Ditto.
13969 * maint.c (_initialize_maint_cmds): Ditto.
13970 * infrun.c (_initialize_infrun): Ditto.
13971 * demangle.c (_initialize_demangler): Ditto.
13972 * remote.c (add_packet_config_cmd): Ditto.
13973 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13974 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13975 * proc-api.c (_initialize_proc_api): Ditto.
13976 * kod.c (_initialize_kod): Ditto.
13977 * valprint.c (_initialize_valprint): Ditto.
13978 * top.c (init_main): Ditto.
13979 * infcmd.c (_initialize_infcmd): Ditto.
13980 * corefile.c (_initialize_core): Ditto.
13981 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13982 * arch-utils.c (initialize_current_architecture): Ditto.
13983 (_initialize_gdbarch_utils): Ditto.
13984 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13985
13986 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13987 * wince.c (_initialize_inftarg): Ditto.
13988 * symfile.c (_initialize_symfile): Ditto.
13989 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13990 * language.c (_initialize_language): Ditto.
13991 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13992
13993 2002-02-04 Michael Snyder <msnyder@redhat.com>
13994
13995 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13996
13997 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13998
13999 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14000 Add rules for building the register data files.
14001
14002 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14003
14004 * regformats/regdat.sh: Add braces to the definition of
14005 expedite_regs_${arch}.
14006
14007 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14008
14009 * regformats/regdef.h (struct reg): Add comment describing the
14010 requirements for offset and size fields.
14011
14012 2002-02-04 Andreas Schwab <schwab@suse.de>
14013
14014 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14015 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14016
14017 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14018
14019 * gdbarch.sh (copyright): Update years in generated header.
14020 (SMASH_TEXT_ADDRESS): Add rule.
14021 * gdbarch.h, gdbarch.c: Re-generate.
14022 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14023 * dbxread.c: Likewise.
14024 * dwarfread.c: Likewise.
14025 * elfread.c: Likewise.
14026 * somread.c: Likewise.
14027
14028 * arm-tdep.c (arm_smash_text_address): New function.
14029 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14030
14031 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14032
14033 Add support for hardware watchpoints on win32 native.
14034 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14035 CONTEXT_DEBUG_REGISTERS.
14036 (dr variable): New variable. Static array containing a local copy
14037 of debug registers.
14038 (debug_registers_changed): New variable. Reflects when debug registers
14039 are changed and need to be written to inferior.
14040 (debug_registers_used): New variable. Reflects when any debug register
14041 was set, used when new threads are created.
14042 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14043 i386-nat code.
14044 (thread_rec): Set dr array if id is the thread of current_event .
14045 (child_continue, child_resume): Change the debug registers for all
14046 threads if debug_registers_changed.
14047 (child_add_thread): Change the debug registers if debug_registers_used.
14048 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14049 Link nm.h to new nm-cygwin.h file.
14050 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14051 of hardware registers.
14052
14053 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14054
14055 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14056 Restore behavour broken by 2002-01-20 Andrew Cagney
14057 <ac131313@redhat.com> IEEE_FLOAT removal.
14058
14059 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14060
14061 * c-valprint.c (c_val_print): Pass a proper valaddr to
14062 cp_print_class_method.
14063 * valops.c (search_struct_method): If there is only one method
14064 and args is NULL, return that method.
14065
14066 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14067
14068 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14069 accessing tag_name directly.
14070
14071 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14072
14073 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14074 of accessing tag_name directly.
14075
14076 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14077
14078 PR gdb/280
14079 * gdbtypes.c (replace_type): New function.
14080 * gdbtypes.h (replace_type): Add prototype.
14081 * stabsread.c (read_type): Use replace_type.
14082
14083 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14084
14085 * Makefile.in (memattr.o): Add missing dependencies rule.
14086
14087 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14088
14089 * breakpoint.c (break_at_finish_command): Really export.
14090 (break_at_finish_at_depth_command): Ditto.
14091 (tbreak_at_finish_command): Ditto.
14092 * hppa-tdep.c: Include completer.h.
14093 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14094 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14095
14096 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14097
14098 * utils.c (do_write): New function.
14099 (error_stream): Rewrite combining the code from error_begin and
14100 verror.
14101 (verror): Rewrite using error_stream.
14102 (error_begin): Delete function.
14103
14104 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14105
14106 * utils.c (error_begin): Make static.
14107 * defs.h (error_begin): Delete declaration.
14108
14109 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14110 (decode_line_1): Use cplusplus_error instead of error_begin,
14111 cplusplus_hint and return_to_top_level.
14112 * coffread.c (coff_symfile_read): Use error instead of error_begin
14113 and return_to_top_level.
14114 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14115
14116 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14117
14118 * language.h (type_error, range_error): Make string parameter
14119 constant.
14120 * language.c (warning_pre_print): Delete extern declaration.
14121 * dwarfread.c (warning_pre_print): Ditto.
14122 * language.c (type_error, range_error): Rewrite to use verror and
14123 vwarning instead of warning_begin.
14124
14125 2002-02-01 Michael Snyder <msnyder@redhat.com>
14126
14127 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14128 (set_ignore_count): Move misplaced comment back where it belongs.
14129
14130 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14131
14132 * command.h (NO_FUNCTION): Delete macro.
14133 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14134 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14135 * tracepoint.c (_initialize_tracepoint): Ditto.
14136 * cli/cli-decode.c (add_set_cmd): Ditto.
14137 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14138
14139 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14140
14141 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14142 Update ``this'' pointer when calling virtual functions.
14143
14144 2002-02-01 Michael Snyder <msnyder@redhat.com>
14145
14146 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14147 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14148
14149 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14150
14151 * regformats/reg-arm.dat: New file.
14152 * regformats/reg-i386.dat: New file.
14153 * regformats/reg-ia64.dat: New file.
14154 * regformats/reg-m68k.dat: New file.
14155 * regformats/reg-mips.dat: New file.
14156 * regformats/reg-ppc.dat: New file.
14157 * regformats/reg-sh.dat: New file.
14158 * regformats/regdef.h: New file.
14159 * regformats/regdat.sh: New file.
14160
14161 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14162
14163 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14164 (arm_frame_args_address, arm_frame_locals_address): New functions.
14165 (arm_frame_num_args): New function.
14166 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14167 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14168 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14169
14170 2002-01-31 Michael Snyder <msnyder@redhat.com>
14171
14172 * breakpoint.c (break_at_finish_command): Export.
14173 (break_at_finish_at_depth_command): Export.
14174 (tbreak_at_finish_command): Export.
14175 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14176 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14177 "txbreak" commands, which are HPPA specific.
14178
14179 * printcmd.c (disassemble_command): Remove an ancient
14180 artifact of an old merge.
14181
14182 * symfile.h (enum overlay_debugging_state):
14183 Define enum constant values for overlay mode.
14184 * symfile.c (overlay_debugging): Use enums instead of literals.
14185 (overlay_is_mapped, overlay_auto_command,
14186 overlay_manual_command): Ditto.
14187
14188 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14189 breakpoint_here_p, breakpoint_inserted_here_p,
14190 breakpoint_thread_match, bpstat_stop_status,
14191 describe_other_breakpoints, check_duplicates, clear_command):
14192 Coding standard fixes.
14193
14194 * target.c (target_xfer_memory): Add spaces, coding standard.
14195 (do_xfer_memory): Add missing line to trust-readonly
14196 code: check bfd SEC_READONLY flag for section.
14197
14198 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14199
14200 * PROBLEMS: Fix typo, 5.1->5.1.1.
14201
14202 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14203
14204 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14205 data symbols, since we search based on textlow and texthigh.
14206 (find_pc_sect_symtab): Likewise.
14207
14208 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14209
14210 * defs.h (vwarning): Declare.
14211 * utils.c (vwarning): New function.
14212 (warning): Call vwarning.
14213 (warning_begin): Delete function.
14214
14215 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14216 the warning message.
14217 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14218 warning_begin.
14219
14220 2002-01-30 Michael Snyder <msnyder@redhat.com>
14221
14222 * NEWS: Mention "set trust-readonly-sections" command.
14223 Mention generate-core-file command.
14224
14225 2002-01-15 Michael Snyder <msnyder@redhat.com>
14226
14227 * target.c: New command, "set trust-readonly-sections on".
14228 (do_xfer_memory): Honor the suggestion to trust readonly sections
14229 by reading them from the object file instead of from the target.
14230 (initialize_targets): Register command "set trust-readonly-sections".
14231
14232 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14233
14234 * parse.c (target_map_name_to_register): Simplify, search regs and
14235 pseudo-regs using a single loop.
14236
14237 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14238
14239 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14240
14241 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14242
14243 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14244 * config/i386/i386v42mp.mh: Add i387-nat.o .
14245 * i386v4-nat.c: Include i387-nat.h.
14246 (supply_fpregset): Use i387_supply_fsave.
14247 (fill_fpregset): Use i387_fill_fsave.
14248
14249 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14250
14251 * arm-tdep.c (arm_call_dummy_words): Define.
14252 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14253 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14254 (CALL_DUMMY_WORDS): Define.
14255 (arm_call_dummy_words): Declare.
14256 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14257 (arm_linux_call_dummy_words): Declare.
14258
14259 2002-01-30 Andreas Schwab <schwab@suse.de>
14260
14261 * m68klinux-nat.c: Fix last change to use regcache_collect
14262 instead of referencing registers[] directly.
14263
14264 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14265
14266 * parse.c (target_map_name_to_register): Delete code wrapped in
14267 #ifdef REGISTER_NAME_ALIAS_HOOK.
14268
14269 2002-01-28 Michael Snyder <msnyder@redhat.com>
14270
14271 * regcache.c (legacy_read_register_gen): Need to be able to
14272 read pseudo-register as well as real register.
14273 (legacy_write_register_gen): Ditto.
14274
14275 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14276
14277 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14278 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14279 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14280 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14281 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14282 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14283 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14284 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14285 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14286 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14287 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14288 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14289 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14290 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14291 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14292 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14293 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14294 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14295 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14296 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14297
14298 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14299
14300 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14301 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14302 (initialize_current_architecture): Update target_byte_order using
14303 information from BFD.
14304 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14305 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14306
14307 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14308
14309 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14310 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14311
14312 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14313 #ifdef INVALID_FLOAT.
14314 * infcmd.c (do_registers_info): Ditto.
14315 * values.c (unpack_double): Ditto. Add comment.
14316
14317 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14318 already commented out.
14319
14320 2002-01-26 Andreas Schwab <schwab@suse.de>
14321
14322 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14323 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14324 registers and add support for PTRACE_GETREGS.
14325
14326 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14327
14328 GDB 5.1.1 released from 5.1 branch.
14329 * NEWS: Add 5.1.1 news.
14330 * README: Sync with 5.1 branch.
14331
14332 2002-01-23 Fred Fish <fnf@redhat.com>
14333
14334 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14335 stabstring on initial malloc. Reallocing will copy it for us,
14336 if necessary.
14337
14338 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14339
14340 * Makefile.in (hpread_h): Delete.
14341 (HFILES_NO_SRCDIR): Remove hpread.h.
14342 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14343 (hpread.o): Update dependencies.
14344 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14345
14346 * hp-psymtab-read.c: Remove file.
14347 * hp-symtab-read.c: Remove file.
14348 * hpread.h: Remove file.
14349
14350 * hpread.c: Merge all contents of hp-psymtab-read.c,
14351 hp-symtab-read.c and hpread.h into this file, as it was prior to
14352 January 1999.
14353
14354 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14355 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14356 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14357 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14358
14359 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14360
14361 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14362 fill_gregset): Call gdbarch_tdep() just once, assign result to
14363 variable and use that, instead of calling the function several
14364 times.
14365
14366 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14367
14368 * configure.host: Accept sparcv9 as alias for sparc64.
14369 * configure.tgt: Likewise.
14370
14371 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14372
14373 * solib-aix5.c (build_so_list_from_mapfile)
14374 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14375 arguments is not reversed.
14376 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14377 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14378
14379 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14380
14381 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14382 modified version of obsolete sh_fetch_pseudo_register.
14383 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14384 (sh4_register_read): New function.
14385 (sh_pseudo_register_write): New function. Renamed and modified
14386 version of obsolete sh_store_pseudo_register.
14387 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14388 (sh4_register_write): New function.
14389 (sh_gdbarch_init): Remove setting of gdbarch function
14390 fetch_pseudo_register and store_pseudo_register. Remove setting of
14391 register_convert_to_raw, register_convert_to_virtual,
14392 register_convertible.
14393 (sh_sh4_register_convertible): Delete. No longer needed. All is
14394 taken care by architecture specific functions
14395 register_read/register_write.
14396 (sh_sh4_register_convert_to_virtual): Make static.
14397 (sh_sh4_register_convert_to_raw): Ditto.
14398
14399 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14400
14401 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14402 (floatformat_is_nan, floatformat_mantissa): Ditto.
14403
14404 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14405 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14406 builtin_type_ieee_double_little,
14407 builtin_type_ieee_double_littlebyte_bigword,
14408 builtin_type_m68881_ext, builtin_type_i960_ext,
14409 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14410 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14411 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14412 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14413
14414 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14415
14416 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14417 parameter. Set frameless flag if it exists and depended of
14418 whether the scanned function is frameless or not.
14419 (xstormy16_skip_prologue): If function is frameless, return
14420 result of xstormy16_scan_prologue().
14421 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14422 call.
14423
14424 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14425
14426 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14427 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14428 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14429 sh_sh4_register_byte, sh_sh4_register_raw_size,
14430 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14431 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14432 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14433 sh_store_pseudo_register, sh_do_pseudo_register): Call
14434 gdbarch_tdep() just once, assign result to variable and use that,
14435 instead of calling the function several times.
14436
14437 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14438
14439 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14440 macros instead of LAST_FPU_CTRL_REGNUM.
14441 (store_register): Likewise.
14442
14443 2002-01-21 Jim Blandy <jimb@redhat.com>
14444
14445 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14446 is up-to-date before running the program, not just when a program
14447 exits.
14448
14449 2002-01-21 Fred Fish <fnf@redhat.com>
14450
14451 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14452 when we have found all instructions we are looking for.
14453
14454 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14455
14456 * arm-tdep.c (arm_register_name): New function.
14457 (arm_registers_names): Make static.
14458 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14459 (arm_register_name): Declare.
14460 (REGISTER_NAME): Use it.
14461
14462 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14463 Kevin Buettner <kevinb@redhat.com>
14464
14465 Convert arm targets to new FRAME interface.
14466 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14467 (arm_frame_find_save_regs): Delete.
14468 (arm_frame_init_saved_regs): New.
14469 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14470 Allocate extra_info as required. Convert all uses of fsr.regs
14471 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14472 to use extra_info.
14473 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14474 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14475 (check_prologue_cache, save_prologue_cache): Likewise.
14476 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14477 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14478 (FRAME_FIND_SAVED_REGS): Delete.
14479 (arm_frame_find_saved_regs): Delete prototype.
14480 (arm_frame_init_saved_regs): New prototype.
14481 (FRAME_INIT_SAVED_REGS): Define.
14482
14483 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14484
14485 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14486
14487 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14488
14489 From Jeff Law <law@redhat.com>:
14490 * infttrace.c: Include <sys/pstat.h>.
14491 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14492 exec file if the ttrace equivalent fails.
14493
14494 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14495
14496 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14497 (closeLogFile): Ditto.
14498
14499 2002-01-20 Michael Chastain <mec@shout.net>
14500
14501 * top.c (print_gdb_version): Bump copyright year to 2002.
14502
14503 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14504
14505 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14506 Zannoni and Eli Zaretskii.
14507
14508 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14509
14510 * buildsym.c: Update copyright years.
14511 * c-typeprint.c: Likewise.
14512 * dwarf2read.c: Likewise.
14513 * f-typeprint.c: Likewise.
14514 * gdbtypes.c: Likewise.
14515 * gdbtypes.h: Likewise.
14516 * hp-symtab-read.c: Likewise.
14517 * hpread.c: Likewise.
14518 * mdebugread.c: Likewise.
14519 * p-typeprint.c: Likewise.
14520
14521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14522
14523 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14524 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14525 byte-order selectable.
14526 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14527 * arch-utils.c: Ditto.
14528 (set_endian): Ditto.
14529 (set_endian_from_file): Ditto.
14530 * gdbserver/low-sim.c (create_inferior): Ditto.
14531 * gdbarch.sh: Ditto.
14532 * gdbarch.h: Re-generate.
14533 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14534 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14535 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14536 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14537 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14538 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14539 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14540 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14541 macro definition.
14542 * config/mips/tm-wince.h: Remove #undef of macro
14543 TARGET_BYTE_ORDER_SELECTABLE.
14544 * config/sh/tm-wince.h: Ditto.
14545
14546 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14547
14548 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14549 member function fields. Add accessor macro
14550 TYPE_FN_FIELD_ARTIFICIAL.
14551 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14552 * c-typeprint.c (c_type_print_base): Skip artificial member
14553 functions.
14554
14555 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14556
14557 * f-typeprint.c: Delete unused function f_type_print_args.
14558 * p-typeprint.c: Delete unused function pascal_type_print_args.
14559
14560 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14561
14562 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14563 comment. Add ``artificial'' to ``union field_location''.
14564
14565 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14566
14567 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14568 * mdebugread.c (parse_symbol): Likewise.
14569 * stabsread.c (define_symbol): Likewise.
14570 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14571 initializing TYPE_FIELD_BITPOS to n (obsolete).
14572 (hpread_doc_function_type): Likewise.
14573 * hpread.c (hpread_function_type): Likewise.
14574
14575 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14576
14577 * configure.in (host_makefile_frag): Only require a host makefile
14578 fragment when a native build.
14579 * configure: Re-generate.
14580
14581 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14582
14583 * doublest.h (floatformat_from_type): Declare.
14584 * doublest.c (floatformat_from_type): New function.
14585 (convert_typed_floating): Use.
14586
14587 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14588 call to function floatformat_from_type.
14589
14590 * gdbarch.sh (IEEE_FLOAT): Delete.
14591 * gdbarch.h, gdbarch.c: Re-generate.
14592 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14593 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14594 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14595 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14596 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14597 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14598 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14599 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14600 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14601 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14602 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14603 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14604
14605 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14606 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14607 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14608 * sh-tdep.c (sh_gdbarch_init): Ditto.
14609 * mips-tdep.c (mips_gdbarch_init): Ditto.
14610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14611 * cris-tdep.c (cris_gdbarch_init): Ditto.
14612
14613 2002-01-20 Jiri Smid <smid@suse.cz>
14614
14615 * configure.host, configure.tgt: Support x86-64.
14616 * NEWS: Note new target x86-64.
14617
14618 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14619 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14620 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14621 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14622 x86-64-linux-nat.o): Fix dependencies.
14623
14624 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14625
14626 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14627 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14628 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14629 * config/sparc/xm-sun4os4.h: Delete file.
14630 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14631
14632 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14633
14634 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14635 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14636 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14637 * config/i386/i386lynx.mh (XM_FILE): Delete.
14638 * config/rs6000/xm-rs6000ly.h: Delete file.
14639 * config/sparc/xm-sparclynx.h: Delete file.
14640 * config/m68k/xm-m68klynx.h: Delete file.
14641 * config/i386/xm-i386lynx.h: Delete file.
14642 * config/xm-lynx.h: Delete file.
14643 * config/djgpp/fnchange.lst: Update.
14644
14645 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14646
14647 * alpha-tdep.c (alpha_register_byte): New function.
14648 (alpha_register_raw_size): Ditto.
14649 (alpha_register_virtual_size): Ditto.
14650 (alpha_skip_prologue_internal): Renamed from
14651 alpha_skip_prologue.
14652 (alpha_skip_prologue): New version that calls
14653 alpha_skip_prologue_internal.
14654 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14655 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14656 second argument from alpha_skip_prologue.
14657 (REGISTER_BYTE): Use alpha_register_byte.
14658 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14659 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14660 (FRAMELESS_FUNCTION_INVOCATION): Use
14661 generic_frameless_function_invocation_not.
14662 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14663 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14664
14665 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14666
14667 * config/mips/xm-news-mips.h: Delete file.
14668 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14669
14670 * config/m88k/xm-m88k.h: Delete file.
14671 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14672 * config/m88k/xm-delta88v4.h: Ditto.
14673 * config/m88k/xm-delta88.h: Ditto.
14674
14675 * config/alpha/xm-fbsd.h: Delete file.
14676 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14677
14678 * config/sparc/xm-sparc.h: Delete file.
14679 * Makefile.in (xm-sun4os4.h): Delete dependency.
14680 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14681 * config/sparc/xm-sun4os4.h: Ditto.
14682 * config/sparc/xm-linux.h: Ditto.
14683
14684 * config/i386/xm-windows.h: Delete file.
14685
14686 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14687
14688 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14689 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14690
14691 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14692
14693 * alpha-tdep.c (alpha_call_dummy_words): New.
14694 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14695 (CALL_DUMMY_P): Define.
14696 (CALL_DUMMY_WORDS): Define.
14697 (SIZEOF_CALL_DUMMY_WORDS): Define.
14698
14699 2002-01-19 Per Bothner <per@bothner.com>
14700
14701 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14702 isn't NULL, which can happen with some gcj-3.x-produced code.
14703
14704 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14705
14706 * alpha-tdep.c (alpha_register_virtual_type): New function.
14707 (alpha_init_frame_pc_first): Ditto.
14708 (alpha_fix_call_dummy): Ditto.
14709 (alpha_store_struct_return): Ditto.
14710 (alpha_extract_struct_value_address): Ditto.
14711 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14712 alpha_register_virtual_type.
14713 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14714 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14715 alpha_extract_struct_value_address.
14716 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14717 (INIT_FRAME_PC): Use init_frame_pc_noop.
14718 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14719
14720 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14721
14722 * i386gnu-nat.c: Include "i386-tdep.h".
14723 (fetch_fpregs): Simplify code dealing with uninitialized floating
14724 point states such that it doesn't require FP7_REGNUM.
14725
14726 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14727
14728 * alpha-tdep.c (frame_extra_info): New.
14729 (alpha_find_saved_regs): Make static. Use
14730 frame->extra_info.
14731 (alpha_frame_init_saved_regs): New function.
14732 (alpha_frame_saved_pc): Use frame->extra_info.
14733 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14734 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14735 (init_extra_frame_info): Rename to...
14736 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14737 (alpha_print_extra_frame_info): New function.
14738 (alpha_frame_locals_address): Ditto.
14739 (alpha_frame_args_address): Ditto.
14740 (alpha_pop_frame): Use frame->extra_info.
14741 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14742 alpha_frame_args_address.
14743 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14744 (alpha_find_saved_regs): Remove prototype.
14745 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14746 (EXTRA_FRAME_INFO): Remove.
14747 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14748 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14749
14750 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14751
14752 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14753 (alpha_cannot_fetch_register): Ditto.
14754 (alpha_cannot_store_register): Ditto.
14755 (alpha_register_convertible): Ditto.
14756 (alpha_use_struct_convention): Ditto.
14757 * config/alpha/tm-alpha.h: Update copyright years.
14758 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14759 (INNER_THAN): Use core_addr_lessthan.
14760 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14761 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14762 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14763 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14764 (FRAME_CHAIN): Remove unnecessary cast.
14765
14766 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14767
14768 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14769 obsolete.
14770
14771 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14772
14773 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14774 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14775 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14776 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14777 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14778 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14779 * x86-64-linux-nat.c: Ditto.
14780
14781 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14782
14783 * alpha-tdep.c (alpha_register_name): New function.
14784 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14785 (REGISTER_NAME): Define.
14786
14787 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14788
14789 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14790
14791 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14792
14793 * alpha-tdep.c: Update copyright years.
14794 (alpha_next_pc): New function.
14795 (alpha_software_single_step): Ditto.
14796 * config/alpha/tm-alpha.h: Add prototype for
14797 alpha_software_single_step.
14798
14799 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14800
14801 * alphabsd-nat.c: Update copyright years.
14802 (fill_gregset): Use regcache_collect.
14803 (fill_fpregset): Likewise.
14804 (fetch_inferior_registers): Only fetch integer registers
14805 if requested to do so.
14806 (store_inferior_registers): Only store integer registers
14807 if requested to do so.
14808
14809 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14810
14811 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14812 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14813 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14814 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14815 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14816 * config/arm/linux.mh (XDEPFILES): Delete.
14817 * config/arm/nbsd.mh (XDEPFILES): Delete.
14818 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14819 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14820 * config/i386/i386m3.mh (XDEPFILES): Delete.
14821 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14822 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14823 * config/i386/fbsd.mh (XDEPFILES): Delete.
14824 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14825 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14826 * config/i386/i386v4.mh (XDEPFILES): Delete.
14827 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14828 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14829 * config/i386/i386aix.mh (XDEPFILES): Delete.
14830 * config/i386/go32.mh (XDEPFILES): Delete.
14831 * config/i386/cygwin.mh (XDEPFILES): Delete.
14832 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14833 * config/i386/i386mach.mh (XDEPFILES): Delete.
14834 * config/i386/i386v32.mh (XDEPFILES): Delete.
14835 * config/i386/linux.mh (XDEPFILES): Delete.
14836 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14837 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14838 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14839 * config/i386/i386sco.mh (XDEPFILES): Delete.
14840 * config/i386/i386v.mh (XDEPFILES): Delete.
14841 * config/i386/nbsd.mh (XDEPFILES): Delete.
14842 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14843 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14844 * config/i386/symmetry.mh (XDEPFILES): Delete.
14845 * config/i386/obsd.mh (XDEPFILES): Delete.
14846 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14847 * config/ia64/linux.mh (XDEPFILES): Delete.
14848 * config/ia64/aix.mh (XDEPFILES): Delete.
14849 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14850 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14851 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14852 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14853 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14854 * config/m68k/linux.mh (XDEPFILES): Delete.
14855 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14856 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14857 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14858 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14859 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14860 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14861 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14862 * config/m88k/delta88.mh (XDEPFILES): Delete.
14863 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14864 * config/m88k/m88k.mh (XDEPFILES): Delete.
14865 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14866 * config/mips/linux.mh (XDEPFILES): Delete.
14867 * config/mips/irix6.mh (XDEPFILES): Delete.
14868 * config/mips/irix5.mh (XDEPFILES): Delete.
14869 * config/mips/irix4.mh (XDEPFILES): Delete.
14870 * config/mips/irix3.mh (XDEPFILES): Delete.
14871 * config/mips/decstation.mh (XDEPFILES): Delete.
14872 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14873 (NATDEPFILES): Move core-aout.o to here.
14874 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14875 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14876 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14877 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14878 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14879 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14880 * config/pa/hpux11.mh (XDEPFILES): Delete.
14881 * config/powerpc/aix.mh (XDEPFILES): Delete.
14882 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14883 * config/powerpc/linux.mh (XDEPFILES): Delete.
14884 * config/romp/rtbsd.mh: Rename XDEPFILES.
14885 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14886 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14887 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14888 * config/s390/s390.mh (XDEPFILES): Delete.
14889 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14890 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14891 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14892 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14893 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14894 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14895 * config/sparc/linux.mh (XDEPFILES): Delete.
14896 * config/vax/vaxult.mh (XDEPFILES): Delete.
14897 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14898 * Makefile.in (DEPFILES): Remove XDEPFILES.
14899
14900 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14901
14902 * utils.c (internal_verror): Fix comments, default is yes not no.
14903 Update queries to match. Default to quit and dump core.
14904
14905 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14906
14907 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14908 copyright.
14909 * defs.h, event-top.c, gdbcmd.h: Ditto.
14910 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14911 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14912 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14913 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14914 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14915 * mi/mi-main.c:Ditto.
14916
14917 * stack.c, symfile.c: Update copyright.
14918
14919 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14920
14921 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14922 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14923 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14924 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14925
14926 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14927
14928 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14929 * gdbserver/low-lynx.c (myattach): Likewise.
14930 * gdbserver/low-nbsd.c (myattach): Likewise.
14931 * gdbserver/low-sim.c (myattach): Likewise.
14932 * gdbserver/low-sparc.c (myattach): Likewise.
14933 * gdbserver/low-sun3.c (myattach): Likewise.
14934
14935 * gdbserver/low-linux.c (myattach): New function.
14936
14937 * gdbserver/server.c (attach_inferior): New function.
14938 (main): Handle "--attach".
14939
14940 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14941
14942 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14943 maintainer.
14944
14945 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14946
14947 * c-typeprint.c (is_type_conversion_operator): Add additional
14948 check for non-conversion operators.
14949
14950 2002-01-15 Michael Snyder <msnyder@redhat.com>
14951
14952 * linux-proc.c: Add "info proc" command, a la procfs.c.
14953 (read_mapping): New function, abstract and re-use code.
14954 (linux_find_memory_regions): Use new func read_mapping.
14955 (linux_info_proc_cmd): New function, implement "info proc".
14956 (_initialize_linux_proc): Add new command "info proc".
14957
14958 2002-01-15 Michael Snyder <msnyder@redhat.com>
14959
14960 * symfile.c (generic_load): Use bfd_map_over_sections method
14961 instead of manipulating bfd structure members directly.
14962 (add_section_size_callback): New function, bfd sections callback
14963 used by generic_load.
14964 (load_sections_callback): New function, bfd sections callback
14965 used by generic_load.
14966
14967 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14968
14969 [Based on work by Jim Blandy]
14970 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14971 (builtin_type_vec128): Export.
14972 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14973 types.
14974 (builtin_type_vec128): New builtin type for 128 bit vector
14975 registers.
14976 (build_gdbtypes): Initialize builtin_type_v16qi and
14977 builtin_type_v8hi. Create the vec128 register builtin type
14978 structure.
14979 (build_builtin_type_vec128): New function.
14980 (_initialize_gdbtypes): Register builtin_type_v16qi and
14981 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14982 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14983 AltiVec register to new builtin type.
14984
14985 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14986
14987 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14988 to make_cv_type.
14989
14990 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14991
14992 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14993 CLEAN_UP_REGISTER_VALUE.
14994 * regcache.c (supply_register): Update only call.
14995
14996 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14997
14998 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14999 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15000 a29k-*-vxworks* targets as obsolete.
15001
15002 2002-01-14 Michael Snyder <msnyder@redhat.com>
15003
15004 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15005 until we can resolve portability issues.
15006 * gregset.h: Remove references to fpxregs.
15007 * gcore.c (gcore_command): Initialize note_sec to NULL.
15008
15009 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15010
15011 * signals.c (target_signal_to_name): Rewrite. Only use
15012 signals[].name when in bounds and non-NULL.
15013
15014 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15015
15016 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15017 * signals.c (target_signal_to_name): Verify that SIG is within the
15018 bounds of the signals array.
15019
15020 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15021
15022 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15023
15024 2002-01-13 Keith Seitz <keiths@redhat.com>
15025
15026 * stack.c (print_frame_info_base): Print the frame's pc
15027 only if when print_frame_info_listing_hook is not defined.
15028
15029 2002-01-13 Keith Seitz <keiths@redhat.com>
15030
15031 * varobj.c (varobj_set_value): Make sure that there were no
15032 errors evaluating the object before attempting to set its
15033 value.
15034 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15035 so this offset adjustment is no longer necessary.
15036 (create_child): Don't set the error flag if the child is
15037 a CPLUS_FAKE_CHILD.
15038 (value_of_child): If value_fetch_lazy fails, return NULL
15039 so that callers will be notified that an error occurred.
15040 (c_value_of_variable): Delay check of variable's validity
15041 until later. We actually want all structs and unions to have
15042 the value "{...}".
15043 Do not return "???" for variables which could not be evaluated.
15044 This error condition must be returned to the caller so that it
15045 can get the error condition from gdb.
15046 (cplus_name_of_child): Adjust index for vptr before figuring
15047 out the name of the child.
15048 (cplus_value_of_child): If a child's (real) parent is not valid,
15049 don't even bother trying to give a value for it. Just return
15050 an error. Change all instances in this function.
15051 (cplus_type_of_child): If our parent is one of the "fake"
15052 parents, we need to get at the type of the real parent, and
15053 derive the child's true type using this information.
15054
15055 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15056
15057 From 2002-01-09 John Marshall <johnm@falch.net>:
15058 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15059 sources.redhat.com, and tweak some related URLs which had
15060 suffered from linkrot.
15061
15062 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15063
15064 From Jeff law:
15065 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15066 structures passed in registers.
15067
15068 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15069
15070 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15071 white space which prevented compilation. Reported by DSK
15072 <dsk@student.unsw.edu.au>.
15073
15074 2002-01-11 Michael Snyder <msnyder@redhat.com>
15075
15076 * symfile.c (build_section_addr_info_from_section_tab):
15077 Use bfd access method instead of manipulating bfd directly.
15078 (syms_from_objfile): Ditto.
15079 (simple_overlay_update_1): Ditto.
15080 (simple_overlay_update): Ditto.
15081 (generic_load): Ditto.
15082 (overlay_unmapped_address): FIXME comment, bfd access methods.
15083 (sections_overlap): FIXME comment, bfd access methods.
15084 (pc_in_mapped_range): FIXME comment, bfd access methods.
15085 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15086 (section_is_mapped): FIXME comment, bfd access methods.
15087 (section_is_overlay): FIXME comment, bfd access methods.
15088
15089 * symfile.c (generic_load): Whitespace and long line cleanups.
15090 Remove duplicate variable, change several local variables to
15091 more appropriate data types.
15092 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15093
15094 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15095
15096 From Peter Schauer:
15097 * language.c (longest_local_hex_string_custom): Use phex_nz to
15098 convert NUM to a hex string.
15099
15100 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15101
15102 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15103 the function.
15104 Update Copyright year.
15105
15106 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15107
15108 * language.c (longest_raw_hex_string): Delete unused function.
15109
15110 2002-01-11 Petr Sorfa <petrs@caldera.com>
15111
15112 * MAINTAINERS (write-after-approval): Add myself.
15113 * dwarf2read.c (read_tag_string_type): Handling of
15114 DW_AT_byte_size.
15115 (read_tag_string_type): FORTRAN fix to prevent propagation of
15116 first string size.
15117 (set_cu_language): Handling of DW_LANG_Fortran95
15118
15119 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15120
15121 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15122 GETPID(inferior_ptid).
15123 (store_inferior_registers): Likewise.
15124
15125 2002-01-10 Jason Merrill <jason@redhat.com>
15126
15127 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15128 Fix DW_OP_minus.
15129
15130 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15131
15132 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15133 and bfd/elf32-sh-nbsd.c.
15134
15135 2002-01-10 Michael Snyder <msnyder@redhat.com>
15136
15137 * NEWS: Mention --pid and corefile/proc-id behavior change.
15138
15139 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15140 * gcore.c: Include cli/cli-decode.h instead of command.h.
15141
15142 * main.c (captured_main): Add new command line option "--pid".
15143 If the second command line argument (following the symbol-file)
15144 begins with a digit, try to attach to it before trying to open
15145 it as a corefile.
15146 (print_gdb_help): Document the "--pid" argument.
15147
15148 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15149
15150 * completer.c (command_completer): New function.
15151
15152 * completer.h <command_completer>: Add prototype.
15153
15154 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15155 completer for the "help" command.
15156
15157 2002-01-09 Jason Merrill <jason@redhat.com>
15158
15159 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15160
15161 2002-01-09 Michael Snyder <msnyder@redhat.com>
15162
15163 * i386-linux-nat.c (fill_fpxregset): Make global.
15164 (store_fpxregset): Ditto.
15165
15166 * gregset.h (gdb_fpxregset_t): Define.
15167 (supply_fpxregset): Prototype.
15168 (fill_fpxregset): Prototype.
15169
15170 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15171
15172 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15173
15174 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15175 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15176 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15177
15178 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15179
15180 * MAINTAINERS: Update target maintainer rules so that any
15181 Maintainer can approve a tested patch for a maintenance-only
15182 target.
15183
15184 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15185
15186 * MAINTAINERS (write-after-approval): Add myself.
15187
15188 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15189 IN_SIGTRAMP.
15190
15191 2002-01-08 Michael Snyder <msnyder@redhat.com>
15192
15193 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15194 real name of the executable, rather than the /proc name.
15195
15196 2002-01-03 Michael Snyder <msnyder@redhat.com>
15197
15198 Implement a "generate-core-file" command in gdb, save target state.
15199 * gcore.c: New file. Implement new command 'generate-core-file'.
15200 Save a corefile image of the current state of the inferior.
15201 * linux-proc.c: Add linux-specific code for saving corefiles.
15202 * target.h (struct target_ops): Add new target vectors for saving
15203 corefiles; to_find_memory_regions and to_make_corefile_notes.
15204 (target_find_memory_regions): New macro.
15205 (target_make_corefile_notes): New macro.
15206 * target.c (update_current_target): Inherit new target methods.
15207 (dummy_find_memory_regions): New place-holder method.
15208 (dummy_make_corefile_notes): New place-holder method.
15209 (init_dummy_target): Initialize new dummy target vectors.
15210 * exec.c (exec_set_find_memory_regions): New function.
15211 Allow the exec_ops vector for memory regions to be taken over.
15212 (exec_make_note_section): New function, target vector method.
15213 * defs.h (exec_set_find_memory_regions): Export prototype.
15214 * procfs.c (proc_find_memory_regions): New function, corefile method.
15215 (procfs_make_note_section): New function, corefile method.
15216 (init_procfs_ops): Set new target vector pointers.
15217 (find_memory_regions_callback): New function.
15218 (procfs_do_thread_registers): New function.
15219 (procfs_corefile_thread_callback): New function.
15220 * sol-thread.c (sol_find_memory_regions): New function.
15221 (sol_make_note_section): New function.
15222 (init_sol_thread_ops): Initialize new target vectors.
15223 * inftarg.c (inftarg_set_find_memory_regions): New function.
15224 Allow to_find_memory_regions vector to be taken over.
15225 (inftarg_set_make_corefile_notes): New function.
15226 Allow to_make_corefile_notes vector to be taken over.
15227 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15228 interface layer if not target_has_execution (may be a corefile).
15229 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15230 * config/sparc/sun4sol2.mh: Ditto.
15231 * config/alpha/alpha-linux.mh: Ditto.
15232 * config/arm/linux.mh: Ditto.
15233 * config/i386/x86-64linux.mh: Ditto.
15234 * config/ia64/linux.mh: Ditto.
15235 * config/m68k/linux.mh: Ditto.
15236 * config/mips/linux.mh: Ditto.
15237 * config/powerpc/linux.mh: Ditto.
15238 * config/sparc/linux.mh: Ditto.
15239
15240 2002-01-07 Michael Snyder <msnyder@redhat.com>
15241
15242 * arm-linux-nat.c: Remove references to regcache.c internal data
15243 (registers[] and register_valid[]).
15244
15245 2002-01-07 Michael Snyder <msnyder@redhat.com>
15246
15247 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15248 so that attaching to a pid will automatically read the process's
15249 symbol file and shlibs.
15250 * Makefile.in: Add rule for linux-proc.o.
15251 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15252 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15253 * config/arm/linux.mh: Ditto.
15254 * config/i386/linux.mh: Ditto.
15255 * config/i386/x86-64linux.mh: Ditto.
15256 * config/ia64/linux.mh: Ditto.
15257 * config/m68k/linux.mh: Ditto.
15258 * config/mips/linux.mh: Ditto.
15259 * config/powerpc/linux.mh: Ditto.
15260 * config/sparc/linux.mh: Ditto.
15261
15262 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15263
15264 * win32-nat.c: Add i386-tdep.h dependency.
15265
15266 2002-01-07 Michael Snyder <msnyder@redhat.com>
15267
15268 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15269 instead of bfd_get_arch_size. Don't bail out just because
15270 there's no exec_bfd.
15271
15272 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15273 * p-valprint.c (pascal_object_print_value): Ditto.
15274 * somread.c (som_symtab_read): Ditto.
15275 * symfile.c (simple_free_overlay_region_table): Ditto.
15276 * valops.c (value_assign): Ditto.
15277
15278 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15279 use tilde_expand and strerror for opening save-tracepoints file.
15280
15281 * thread-db.c (thread_db_new_objfile): Indendation fix.
15282
15283 * infptrace.c (GDB_MAX_ALLOCA): New define.
15284 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15285 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15286 can be overridden with whatever value is appropriate to the host).
15287 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15288 alloca to allocate potentially large buffer.
15289 * rs6000-nat.c (child_xfer_memory): Ditto.
15290 * symm-nat.c (child_xfer_memory): Ditto.
15291 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15292
15293 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15294
15295 From Nick Clifton <nickc@redhat.com>
15296 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15297
15298 2002-01-07 Michael Snyder <msnyder@redhat.com>
15299
15300 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15301 Don't use exec_bfd if it's NULL.
15302
15303 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15304
15305 * valops.c (value_arg_coerce): Fix formatting.
15306
15307 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15308
15309 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15310 * gnu-nat.c: Ditto.
15311
15312 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15313
15314 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15315 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15316 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15317 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15318 z8k-coff have not been multi-arched. Update z8k-coff build
15319 status.
15320
15321 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15322
15323 * MAINTAINERS: Mark a29k target as obsolete.
15324 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15325 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15326 comments.
15327 * NEWS: Note that a29k targets are obsolete.
15328 * a29k-tdep.c: Mark as obsolete.
15329 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15330 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15331 a29k-*-vxworks* targets as obsolete.
15332 * remote-adapt.c: Obsolete.
15333 * remote-eb.c: Obsolete.
15334 * remote-mm.c: Obsolete.
15335 * remote-udi.c: Obsolete.
15336 * config/a29k/a29k-udi.mt: Obsolete.
15337 * config/a29k/a29k.mt: Obsolete.
15338 * config/a29k/tm-a29k.h: Obsolete.
15339 * config/a29k/tm-vx29k.h: Obsolete.
15340 * config/a29k/vx29k.mt: Obsolete.
15341
15342 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15343
15344 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15345 with BFD_ENDIAN_BIG.
15346
15347 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15348
15349 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15350 * configure, config.in: Re-generate.
15351 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15352 * defs.h: Do not include <endian.h>.
15353
15354 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15355
15356 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15357 * config.in: Regenerate.
15358 * configure.in: Update copyright years.
15359 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15360 * configure: Regenerate.
15361 * i386bsd-nat.c: Update copyright years.
15362 (fill_gregset): Use regcache_collect.
15363 (fetch_inferior_registers): Only fetch integer registers
15364 if requested to do so. Add support for XMM registers
15365 using PT_GETXMMREGS.
15366 (store_inferior_registers): Only store integer registers
15367 if requested to do so. Add support for XMM registers
15368 using PT_SETXMMREGS.
15369 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15370 (store_inferior_registers): Remove.
15371 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15372 (fetch_elfcore_registers): New function.
15373 (i386nbsd_elfcore_fns): New.
15374 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15375 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15376 i386bsd-nat.o.
15377 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15378 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15379 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15380 * config/i386/tm-nbsd.h: Update copyright years.
15381 (HAVE_SSE_REGS): Define.
15382 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15383 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15384 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15385 (SIGCONTEXT_PC_OFFSET): Remove.
15386 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15387
15388 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15389
15390 * configure.tgt: Remove powerpc-*-macos* target.
15391 * config/m68k/xm-mpw.h: Delete file.
15392 * config/xm-mpw.h: Delete file.
15393 * ser-mac.c: Delete file.
15394 * mpw-make.sed: Delete file.
15395 * mpw-config.in: Delete file.
15396 * mac-xdep.c: Delete file.
15397 * mac-gdb.r: Delete file.
15398 * mac-defs.h: Delete file.
15399 * mac-nat.c: Delete file.
15400 * config/powerpc/macos.mh: Delete file.
15401 * config/powerpc/macos.mt: Delete file.
15402 * config/powerpc/nm-macos.h: Delete file.
15403 * config/powerpc/tm-macos.h: Delete file.
15404 * source.c (openp, open_source_file): Remove obsolete code.
15405 * top.c (gdb_readline): Ditto.
15406 * utils.c (query): Ditto.
15407 * event-top.c (display_gdb_prompt): Ditto.
15408 * Makefile.in (ser-mac.o): Delete obsolete target.
15409 * NEWS: Update.
15410
15411 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15412
15413 * defs.h (BIG_ENDIAN): Delete macro definition.
15414 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15415 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15416 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15417 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15418 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15419 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15420 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15421 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15422 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15423 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15424 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15425 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15426 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15427 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15428 * gdbarch.c: Re-generate.
15429
15430 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15431
15432 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15433 for core files.
15434
15435 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15436
15437 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15438
15439 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15440
15441 * value.h (value_ptr): Delete typedef.
15442
15443 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15444
15445 * i386nbsd-nat.c: Update copyright years.
15446 Include i386-tdep.h.
15447
15448 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15449
15450 * stabsread.c: Update copyright years.
15451
15452 From Debashis Mahata <debashis.mahata@wipro.com>:
15453 (read_struct_fields): Deal with Sun C compiler erroneous stab
15454 output for structs and unions.
15455 Fix PR gdb/269.
15456
15457 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15458
15459 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15460 prototype.
15461
15462 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15463
15464 * cp-abi.c: Fix whitespace.
15465 (baseclass_offset): New wrapper function.
15466 * cp-abi.h (baseclass_offset): Add prototype.
15467 (struct cp_abi_ops): Add baseclass_offset pointer.
15468
15469 * valops.c (vb_match): Move to...
15470 * gnu-v2-abi.c (vb_match): here.
15471 * valops.c (baseclass_offset): Move to...
15472 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15473
15474 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15475
15476 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15477 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15478 * hpacc-abi.c (init_hpacc_ops): Likewise.
15479
15480 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15481
15482 * valops.c (find_overload_match): Accept obj as a
15483 reference parameter. Update it before returning.
15484 * value.h (find_overload_match): Update prototype.
15485 * eval.c (evaluate_subexp_standard): Pass object to
15486 find_overload_match by reference.
15487
15488 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15489
15490 * valarith.c: Replace value_ptr with struct value pointer. Remove
15491 register attribute from value declarations.
15492 * valops.c: Ditto.
15493 * value.h: Ditto.
15494 * scm-lang.c (scm_lookup_name): Ditto.
15495
15496 2002-01-03 Michael Snyder <msnyder@redhat.com>
15497
15498 Abstract the functionality of iterating over mapped memory
15499 regions into a general purpose iterator function.
15500 * procfs.c (iterate_over_mappings): New function, general purpose
15501 iterator for memory sections.
15502 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15503 (solib_mappings_callback): New function, callback for above.
15504 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15505 (info_mappings_callback): New function, callback for above.
15506
15507 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15508
15509 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15510
15511 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15512 * i386-tdep.c: Include "elf-bfd.h".
15513 (process_note_abi_tag_sections): New function.
15514 (i386_gdbarch_init): Add code to recognize various OS/ABI
15515 combinations.
15516
15517 * maint.c (_initialize_maint_cmds): Add missing \ in
15518 string-literal.
15519
15520 For older changes see ChangeLog-2001
15521 \f
15522 Local Variables:
15523 mode: change-log
15524 left-margin: 8
15525 fill-column: 74
15526 version-control: never
15527 End:
This page took 0.352798 seconds and 5 git commands to generate.