]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* arch-utils.c (gdbarch_info_init): Set osabi to
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4be87837
DJ
12003-01-04 Daniel Jacobowitz <drow@mvista.com>
2
3 * arch-utils.c (gdbarch_info_init): Set osabi to
4 GDB_OSABI_UNINITIALIZED.
5 * gdbarch.sh: Add osabi to struct gdbarch and to struct
6 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
7 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
8 * gdbarch.c: Regenerated.
9 * gdbarch.h: Regenerated.
10 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11 there's no BFD.
12 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13 * osabi.h (enum gdb_osabi): Move to defs.h.
14 (gdbarch_init_osabi): Update prototype.
15 * defs.h (enum gdb_osabi): Moved here.
16 * Makefile.in: Update dependencies.
17
18 * alpha-tdep.h: Don't include "osabi.h".
19 (struct gdbarch_tdep): Remove osabi member.
20 * alpha-tdep.c: Include "osabi.h".
21 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
22 iterate over arches. Update call to gdbarch_init_osabi.
23 (alpha_dump_tdep): Don't dump osabi.
24 * alpha-linux-tdep.c: Include "osabi.h".
25 * alpha-osf1-tdep.c: Include "osabi.h".
26 * alphafbsd-tdep.c: Include "osabi.h".
27 * alphanbsd-tdep.c: Include "osabi.h".
28
29 * arm-tdep.h: Don't include "osabi.h".
30 (struct gdbarch_tdep): Remove osabi member.
31 * arm-tdep.c: Include "osabi.h".
32 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
33 iterate over arches. Update call to gdbarch_init_osabi.
34 (arm_dump_tdep): Don't dump osabi.
35 * arm-linux-tdep.c: Include "osabi.h".
36 * armnbsd-tdep.c: Include "osabi.h".
37
38 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
39 Update call to gdbarch_init_osabi.
40
41 * i386-tdep.h: Don't include "osabi.h".
42 (struct gdbarch_tdep): Remove osabi member.
43 * i386-tdep.c: Include "osabi.h".
44 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
45 iterate over arches. Update call to gdbarch_init_osabi.
46 (i386_dump_tdep): Don't dump osabi.
47 * i386-linux-tdep.c: Include "osabi.h".
48 * i386-sol2-tdep.c: Include "osabi.h".
49 * i386bsd-tdep.c: Include "osabi.h".
50 * i386gnu-tdep.c: Include "osabi.h".
51 * i386ly-tdep.c: Include "osabi.h".
52 * i386nbsd-tdep.c: Include "osabi.h".
53 * i386obsd-tdep.c: Include "osabi.h".
54
55 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
56 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
57 check osabi when iterating over arches. Update call to
58 gdbarch_init_osabi.
59 (mips_dump_tdep): Don't dump osabi.
60
61 * ns32k-tdep.h: Don't include "osabi.h".
62 (struct gdbarch_tdep): Remove.
63 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
64 gdbarch_lookup_osabi. Don't iterate over arches. Don't
65 allocate tdep. Update call to gdbarch_init_osabi.
66 (ns32k_dump_tdep): Remove.
67 (_initialize_ns32k_tdep): Update call to gdbarch_register.
68 * ns32knbsd-tdep.c: Include "osabi.h".
69
70 * ppc-tdep.h: Don't include "osabi.h".
71 (struct gdbarch_tdep): Remove osabi member.
72 * rs6000-tdep.c: Include "osabi.h".
73 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
74 osabi when iterating over arches. Update call to
75 gdbarch_init_osabi.
76 (rs6000_dump_tdep): Don't dump osabi.
77 * ppc-linux-tdep.c: Include "osabi.h".
78 * ppcnbsd-tdep.c: Include "osabi.h".
79
80 * sh-tdep.h: Don't include "osabi.h".
81 (struct gdbarch_tdep): Remove osabi member.
82 * sh-tdep.c: Include "osabi.h".
83 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
84 iterate over arches. Update call to gdbarch_init_osabi.
85 (sh_dump_tdep): Don't dump osabi.
86 * shnbsd-tdep.c: Include "osabi.h".
87
88 * sparc-tdep.c: Include "osabi.h".
89 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
90 iterate over arches. Update call to gdbarch_init_osabi.
91 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
92 tdep structure.
93
94 * vax-tdep.h: Don't include "osabi.h".
95 (struct gdbarch_tdep): Remove.
96 * vax-tdep.c: Include "osabi.h".
97 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
98 iterate over arches. Don't allocate tdep. Update call
99 to gdbarch_init_osabi.
100 (vax_dump_tdep): Remove.
101 (_initialize_vax_tdep): Update call to gdbarch_register.
102
a881cf8e
DJ
1032003-01-04 Daniel Jacobowitz <drow@mvista.com>
104
105 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
106 entirely.
107 (breakpoint_re_set_one): Don't fetch the value for a disabled
108 watchpoint.
109
1e698235
DJ
1102003-01-04 Daniel Jacobowitz <drow@mvista.com>
111
112 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
113 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
114 (COERCE_FLOAT_TO_DOUBLE): Remove.
115 * gdbarch.c: Regenerate.
116 * gdbarch.h: Regenerate.
117 * Makefile.in: Remove value_h from gdbarch_h.
118 * valops.c (coerce_float_to_double): New variable.
119 (default_coerce_float_to_double): Remove.
120 (standard_coerce_float_to_double): Remove.
121 (value_arg_coerce): Use coerce_float_to_double.
122 (_initialize_valops): Add "set coerce-float-to-double".
123 * value.h (default_coerce_float_to_double): Remove prototype.
124 (standard_coerce_float_to_double): Remove prototype.
125
126 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
127 prototyped.
128 * mdebugread.c (parse_symbol): Likewise.
129 * stabsread.c (define_symbol): Mark all functions as prototyped.
130
131 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
132 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
133 set_gdbarch_coerce_float_to_double.
134 * arm-tdep.c (arm_gdbarch_init): Likewise.
135 * frv-tdep.c (frv_gdbarch_init): Likewise.
136 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
137 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
138 * mips-tdep.c (mips_gdbarch_init): Likewise.
139 (mips_coerce_float_to_double): Remove.
140 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
141 (rs6000_coerce_float_to_double): Remove.
142 * s390-tdep.c (s390_gdbarch_init): Likewise.
143 * sh-tdep.c (sh_gdbarch_init): Likewise.
144 (sh_coerce_float_to_double): Remove.
145 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
146 (sparc_coerce_float_to_double): Remove.
147 * v850-tdep.c (v850_gdbarch_init): Likewise.
148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
149 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
150 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
151 (hppa_coerce_float_to_double): Remove prototype.
152 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
153
f436a26a
DJ
1542003-01-04 Daniel Jacobowitz <drow@mvista.com>
155
156 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
157
248f8055
DJ
1582003-01-04 Daniel Jacobowitz <drow@mvista.com>
159
160 Suggested by Stewart Brown <sb24@avaya.com>:
161 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
162 in recursive calls. Handle TYPE_CODE_TYPEDEF.
163 (c_type_print_varspec_suffix): Likewise.
164
72cfdc76
MK
1652003-01-04 Mark Kettenis <kettenis@gnu.org>
166
bfd260bb
MK
167 * configure.in: Don't set and AC_SUBST SUBDIRS.
168 * configure: Regenerated.
169
72cfdc76
MK
170 * configure.in: Remove code dealing with shared libraries.
171 * Makefile.in: Remove HLDFLAGS and HLDENV.
172 * configure: Regenerated.
173
c8b8a898
AC
1742003-01-04 Andrew Cagney <ac131313@redhat.com>
175
176 * frame.c (deprecated_frame_xmalloc): New function.
177 (deprecated_set_frame_saved_regs_hack): New function.
178 (deprecated_set_frame_extra_info_hack): New function.
179 * frame.h (deprecated_frame_xmalloc): Declare.
180 (deprecated_set_frame_saved_regs_hack): Declare.
181 (deprecated_set_frame_extra_info_hack): Declare.
182
14abd0fb
MK
1832003-01-04 Mark Kettenis <kettenis@gnu.org>
184
8ee53726
MK
185 * configure.in: Move code that provides the --enable-gdbtk option
186 right after the code that handles the --enable-tui option, and
187 polish it somewhat.
188 * configure: Regenerated.
189
14abd0fb
MK
190 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
191 AC_CHECK_FUNCS and remove the old check for pread64.
192 * acinclude.m4 (AC_GNU_SOURCE): New macro.
193 * acconfig.h (_GNU_SOURCE): Add.
194 (HAVE_PREAD64): Remove.
195 * configure, aclocal.m4, config.in: Regenerated.
196
b2fb4676
AC
1972003-01-03 Andrew Cagney <ac131313@redhat.com>
198
199 * alpha-tdep.c: Use get_frame_saved_regs.
200 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
201 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
202 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
203 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
204 * vax-tdep.c, xstormy16-tdep.c: Ditto.
205
8dcde887
MK
2062003-01-03 Mark Kettenis <kettenis@gnu.org>
207
208 * configure.in: Remove all use of the SUBDIRS variable; add
209 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
210 code providing the --enable-multi-ice option, and move it right in
211 front of the code that checks whether gdbserver is supported.
212 Polish that too.
213 * configure: Regenerated.
214 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
215 @SUBDIRS@.
216
8ccd593b
AC
2172003-01-03 Andrew Cagney <cagney@redhat.com>
218
219 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
220 * avr-tdep.c, cris-tdep.c: Ditto.
221 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
222 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
223
91151a06
MK
2242003-01-03 Mark Kettenis <kettenis@gnu.org>
225
226 * configure.in: Remove --enable-netrom option.
227 * configure: Regenerated.
228
8fe84d01
MK
2292003-01-03 Mark Kettenis <kettenis@gnu.org>
230
231 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
232 declaration for `struct re_pattern_buffer' instead.
233 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
234
f0394be6
JB
2352003-01-03 J. Brobecker <brobecker@gnat.com>
236
237 * mdebugread.c (parse_symbol): Count until the stEnd matching
238 the structure name.
239
27e9bf90
MK
2402003-01-02 Mark Kettenis <kettenis@gnu.org>
241
93d331ba
MK
242 * configure.in: Remove --with-cpu option.
243 subscripts. Remove evil changequotes here.
244 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
245 * config.in, configure: Regenerated.
246
27e9bf90
MK
247 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
248 * configure.in: Cleanup section that sources GDB and BFD configure
249 subscripts. Remove evil changequotes here.
250 * config.in, configure: Regenerated.
251
50abf9e5
AC
2522003-01-02 Andrew Cagney <ac131313@redhat.com>
253
254 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
255 frame accessor methods.
256 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
257 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
258 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
259 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
260 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
261 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
262 * z8k-tdep.c: Ditto.
263
287c1a40
MK
2642003-01-02 Mark Kettenis <kettenis@gnu.org>
265
f5dbc56d
MK
266 * configure.in: Remove UI_OUT configuration code.
267 * ada-lang.c: Update assuming UI_OUT is always true.
268 * Makefile.in (UIOUT_CFLAGS): Remove.
269 * configure: Regenerated.
270 * TODO: Remove blurb about elimination of -DUI_OUT.
271
627af7ea
MK
272 * configure.in: Move code that provides the --enable-gdbcli,
273 --enable-gdbmi options right before the code that handles the
274 --enable-tui option. Polish a bit.
275 * configure: Regenerated.
276
06825bd1
MK
277 * configure.in: Rewrite check for GNU regex and the
278 --without-included regex option, and move it into the "Checks for
279 library functions" section. This makes us use the system regex
280 again by default on systems with version 2 of the GNU C library.
281 This was apparently broken.
282 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
283 * acconfig.h (USE_INCLUDED_REGEX): Remove.
284 * config.in, configure: Regenerated.
285
287c1a40
MK
286 * configure.in: Move code that provides the --enable-tui option
287 before the "Checks for libraries" section. Polish the code
288 somewhat and set need_curses to yes if we build the TUI. Rewrite
289 code that looks for a library providing termcap functionality to
290 match more closely what's done in the Readline library, and move
291 it into to the "Checks for libraries" section.
292 * configure: Regenerated.
293 * Makefile.in (TERMCAP): Remove variable.
294 * config/i386/go32.mh (TERMCAP): Remove variable.
295
684e56bf
AC
2962003-01-02 Andrew Cagney <ac131313@redhat.com>
297
298 * MAINTAINERS: Mention gdb_mbuild.sh.
299 * gdb_mbuild.sh: Rewrite.
300
e1ea1d75
MK
3012003-01-02 Mark Kettenis <kettenis@gnu.org>
302
303 * configure.in: Fix typo in last change.
304 * config.in, configure: Regenerated.
305
1b831c93
AC
3062003-01-02 Andrew Cagney <ac131313@redhat.com>
307
308 * valarith.c (value_binop): Delete obsolete code and comments.
309 * configure.host: Ditto.
310 * buildsym.h (make_blockvector): Ditto.
311 * buildsym.c (make_blockvector): Ditto.
312 * defs.h (enum language): Ditto.
313 (chill_demangle): Ditto.
314 * elfread.c (elf_symtab_read): Ditto.
315 * dwarfread.c (CHILL_PRODUCER): Ditto.
316 (set_cu_language): Ditto.
317 (handle_producer): Ditto.
318 * expprint.c (print_subexp): Ditto.
319 * gdbtypes.c (chill_varying_type): Ditto.
320 * gdbtypes.h (builtin_type_chill_bool): Ditto.
321 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
322 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
323 (chill_varying_type): Ditto.
324 * language.h (_LANG_chill): Ditto.
325 * language.c (binop_result_type, integral_type): Ditto.
326 (character_type, string_type, structured_type): Ditto.
327 (lang_bool_type, binop_type_check): Ditto.
328 * stabsread.h (os9k_stabs): Ditto.
329 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
330 (define_symbol, read_type, read_struct_fields): Ditto.
331 (read_array_type, read_enum_type, read_huge_number): Ditto.
332 (read_range_type, start_stabs): Ditto.
333 * symfile.c (init_filename_language_table): Ditto.
334 (add_psymbol_with_dem_name_to_list): Ditto.
335 * symtab.c (symbol_init_language_specific): Ditto.
336 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
337 * symtab.h (struct general_symbol_info): Ditto.
338 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
339 * typeprint.c (typedef_print): Ditto.
340 * utils.c (fprintf_symbol_filtered): Ditto.
341 * valops.c (value_cast, search_struct_field, value_slice): Delete
342 obsolete code.
343 (varying_to_slice): Delete function.
344 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
345 (varying_to_slice): Delete declaration.
346 * MAINTAINERS: Update.
347
8bb2c122
MK
3482003-01-02 Mark Kettenis <kettenis@gnu.org>
349
97bf5e38
MK
350 * configure.in: Reorganize "Checks for library functions section"
351 a bit. Remove check for `btowc' and `isascii' functions.
352 * configure: Regenerated.
353
5ee754fc
MK
354 * acconfig.h (_MSE_INT_H): Remove.
355 * configure.in: Create "Checks for header files" section, and move
356 appropriate tests there. Don't check for objlist.h, wchar.h,
357 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
358 misdetection fix. Also add "Checks for types", "Checks for
359 compiler characteristics" and "Checks for library functions"
360 sections.
361 * config.in, configure: Regenerated.
362
8bb2c122
MK
363 * configure.in: Create "Checks for programs" section, and move
364 appropriate tests there.
365
9a156167
MK
3662003-01-01 Mark Kettenis <kettenis@gnu.org>
367
368 * configure.in: Create "Checks for libraries" section, and move
369 appropriate tests there. Cleanup check for wctype in libw. Use
370 AC_SEARCH_LIBS to see whether we need libsocket.
371 * configure: Regenerated.
372
3250596b
MK
3732002-12-31 Mark Kettenis <kettenis@gnu.org>
374
375 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
376 * config.in, configure: Regenerated.
377
9608ab8b
MK
3782002-12-31 Mark Kettenis <kettenis@gnu.org>
379
380 * gdb_dirent.h: Cleanup and update code to match the example in
381 the Autoconf manual.
382 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
383 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
384 * configure: Regenerated.
385
7ee21aad
AF
3862002-12-30 Adam Fedor <fedor@gnu.org>
387
388 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
389 (yylex): Initialize c to avoid uninitialized warning.
390
4c8eeedd
KH
3912002-12-29 Kazu Hirata <kazu@cs.umass.edu>
392
393 * doc/fdl.texi: Revert the last change.
394
6f2ecac5
MK
3952002-12-29 Mark Kettenis <kettenis@gnu.org>
396
397 * tracepoint.c (ISATTY): Removed.
398
60383d10
JB
3992002-12-26 J. Brobecker <brobecker@gnat.com>
400
401 Continuing work to convert the hppa targets to multiarch partil.
402
403 * hppa-tdep.c: Add some missing forward declarations.
404 (frameless_function_invocation): Prefix the function name
405 by "hppa_" to avoid polluting the namespace. Update all calls
406 to use the new function name.
407 (saved_pc_after_call): Ditto.
408 (init_extra_frame_info): Ditto.
409 (frame_chain): Ditto.
410 (push_dummy_frame): Ditto.
411 (target_read_pc): Ditto.
412 (target_write_pc): Ditto.
413 (in_solib_call_trampoline): Ditto.
414 (in_solib_return_trampoline): Ditto.
415 (skip_trampoline_code): Ditto.
416 (hppa_read_fp): New function, renamed from target_read_fp.
417 (hppa_target_read_fp): New function, using hppa_read_fp.
418 This function conforms to the function profile for the
419 READ_FP gdbarch method.
420 (hppa_extract_struct_value_address): New function, extracted
421 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
422 macro.
423 (hppa_frame_num_args): New function.
424 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
425
426 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
427 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
428 for the switch to multiarch partial.
429 Update some of the macros definitions to match some changes
430 described above in the name of the function they are calling.
431 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
432 not be straightforward to convert. Do now wrap it inside
433 "#if !... #endif" to remember that this macro has still not
434 been taken care of.
435 (FIX_CALL_DUMMY): Likewise.
436
60e1ff27
JB
4372002-12-26 J. Brobecker <brobecker@gnat.com>
438
439 Continuing work to convert the hppa targets to multiarch partial.
440
60383d10 441 * hppa-tdep.c (hppa_register_raw_size): New function replacing
60e1ff27
JB
442 the body of macro REGISTER_RAW_SIZE.
443 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
444 config/pa/tm-hppah.h. These functions will be used to initialize
445 the gdbarch structure.
446 (hppa_hpux_pc_in_sigtramp): New function.
447 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
448 (hppa_hpux_frame_base_before_sigtramp): New function.
449 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
450 Add gdbcore.h #include.
451 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
452 of this gdbarch-eligible macro to a call to the new associated
453 function.
454 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
455 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
456 into a call to the new associated function.
457 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
458 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
459 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
460
6c756a30
DC
4612002-12-24 David Carlton <carlton@math.stanford.edu>
462
463 * config/sparc/tm-sparc.h: Delete duplicate definition of
464 DEPRECATED_PC_IN_CALL_DUMMY.
465
96f026fc
KB
4662002-12-24 Kevin Buettner <kevinb@redhat.com>
467
468 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
469 $(gdb_assert_h).
470 * configure.tgt: Recognize mips64*-*-linux*.
471 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
472 (supply_32_bit_reg): New function.
473 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
474 (fill_gregset): Use regcache_collect() instead of
475 deprecated_registers[].
476 (register_addr): Change name to mips_linux_register_addr().
477 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
478 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
479 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
480 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
481 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
482 (MIPS64_LINUX_JB_PC): New defines.
483 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
484 (mips64_elf_fpregset_t): New typedefs.
485 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
486 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
487 (mips64_linux_register_addr, set_mips_linux_register_addr)
488 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
489 (init_register_addr_data)
490 New functions.
491 (fetch_core_registers): Add support for core file formats with 64-bit
492 registers.
493 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
494 (register_addr_data): New static global variable.
495 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
496 gdbarch_register_osabi() for each MIPS machine.
497 * config/mips/linux64.mt: New file.
498 * config/mips/tm-linux64.h: New file.
499
5a24b7e3
AF
5002002-12-23 Adam Fedor <fedor@gnu.org>
501
502 * maint.c (maintenance_demangle): Add switch to demangle
503 ObjC language symbols as well.
504
9d1127c5
AF
5052002-12-23 Adam Fedor <fedor@gnu.org>
506
507 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
508 last argument from complaint function call.
509
96f026fc 5102002-12-23 Kevin Buettner <kevinb@redhat.com>
bcf16802
KB
511
512 * exec.c (print_section_info): Add FIXME comments regarding format
513 string choices.
514
710686b3
DJ
5152002-12-23 Daniel Jacobowitz <drow@mvista.com>
516
517 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
518 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
519
5202002-12-23 Rodney Brown <rbrown64@csc.com.au>
521
522 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
523
e45febe2
DC
5242002-12-23 David Carlton <carlton@math.stanford.edu>
525
526 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
527 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
528 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
529 information associated to a minsym, not lookup_symbol.
530
2213a65d
MK
5312002-12-21 Mark Kettenis <kettenis@gnu.org>
532
533 * x86-64-tdep.h (x86_64_init_abi): New prototype.
534 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
535 (x86_64_init_abi): Make non-static. Set number of pseudo
536 registers to 0.
537 (x86_64_gdbarch_init): Remove function.
538 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
539 Remove code dealing with dissambly.
540 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
541 (_initialize_x86_64_linux_tdep): New function.
542 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
543 i386-tdep.o.
544
05816f70
MK
5452002-12-14 Mark Kettenis <kettenis@gnu.org>
546
547 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
548 (struct gdb_osabi_handler): Remove member `arch'. Add member
549 `arch_info'.
550 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
551 construct a `struct bfd_arch_info' and store it in the `struct
552 gdb_osabi_handler' that is created.
553 (gdbarch_init_osabi): Check for compatibility based on machine
554 type and architecture.
555 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
556 comment.
557 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
558 second argument in call to gdbarch_register_osabi.
559 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
560 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
561 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
562 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
563 * arm-tdep.c (_initialize_arm_tdep): Likewise.
564 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
565 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
566 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
567 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
568 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
569 * i386-tdep.c (_initialize_i386_tdep): Likewise.
570 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
571 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
572 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
573 _initialize_i386bsd_tdep and updated likewise.
574 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
575 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
576 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
577 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
578 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
579 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
580 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
581 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
582 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
583 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
584
743b930b
KB
5852002-12-20 Kevin Buettner <kevinb@redhat.com>
586
587 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
588 DT_MIPS_RLD_MAP case for 64-bit targets.
589
3758ac48
KB
5902002-12-20 Kevin Buettner <kevinb@redhat.com>
591
592 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
593 ``temp_saved_regs'', not the pointer or other storage contiguous
594 to this pointer.
595
19ed69dd
KB
5962002-12-20 Kevin Buettner <kevinb@redhat.com>
597
598 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
599 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
600 (mips_linux_get_longjmp_target): Delete declarations.
601 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
602 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
603 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
604 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
605 (mips_linux_get_longjmp_target)
606 (mips_linux_svr4_fetch_link_map_offsets): Make static.
607 (mips_linux_init_abi): New function.
608 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
609
7990a578
EZ
6102002-12-19 Keith Seitz <keiths@redhat.com>
611
612 patch committed by Elena Zannoni <ezannoni@redhat.com>
613 * thread.c (do_captured_list_thread_ids): Call prune_threads and
614 target_find_new_threads. Fix for PR mi/669.
615
84fba31b
DC
6162002-12-19 David Carlton <carlton@math.stanford.edu>
617
618 * linespec.c (decode_line_1): Move code into decode_all_digits.
619 (decode_all_digits): New function.
620
2fc70c99
KB
6212002-12-19 Kevin Buettner <kevinb@redhat.com>
622
623 * exec.c (print_section_info): Select a format string to use with
624 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
625
2f107107
AC
6262002-12-18 Andrew Cagney <ac131313@redhat.com>
627
628 * frame.c (deprecated_update_current_frame_pc_hack): Replace
629 deprecated_update_current_frame_pc_hack.
630 (deprecated_update_frame_base_hack): New function.
631 * frame.h (deprecated_update_frame_pc_hack): Replace
632 (deprecated_update_frame_base_hack): Declare.
633 * infrun.c (normal_stop): Update.
634
c9012c71
AC
6352002-12-18 Andrew Cagney <ac131313@redhat.com>
636
637 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
638 frame_extra_info_zalloc.
639 (rs6000_frame_args_address): Use get_frame_extra_info.
640 (frame_get_saved_regs): Use get_frame_saved_regs.
641 (frame_initial_stack_address): Use get_frame_saved_regs and
642 get_frame_extra_info.
643 (frame_initial_stack_address): Use get_frame_extra_info.
644
6819ae38
KB
6452002-12-17 Kevin Buettner <kevinb@redhat.com>
646
647 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
648 array size.
649 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
650 checks for r3900_regnames[].
651
625602f2
RE
6522002-12-17 Richard Earnshaw <rearnsha@arm.com>
653
654 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
655 All uses changed
656 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
657
38d49aff
DC
6582002-12-17 David Carlton <carlton@math.stanford.edu>
659
660 * symtab.c (lookup_partial_symbol): Don't search past the end of
661 the partial symbols.
662
30f7db39
AC
6632002-12-17 Andrew Cagney <ac131313@redhat.com>
664
665 * stack.c (frame_info): Use get_frame_saved_regs.
666 * breakpoint.c (until_break_command): Use get_frame_pc.
667
23136709
KB
6682002-12-16 Kevin Buettner <kevinb@redhat.com>
669
670 * buildsym.c (block_end_complaint, anon_block_end_complaint)
671 (innerblock_complaint, innerblock_anon_complaint)
672 (blockvector_complaint): Delete deprecated complaint structs.
673 (finish_block, make_blockvector, end_symtab): Replace calls
674 to complain() with calls to complaint().
675 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
676 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
677 (unexpected_type_complaint, bad_sclass_complaint)
678 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
679 Delete deprecated complaint structs.
680 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
681 Replace calls to complain() with calls to complaint().
682 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
683 (unknown_symtype_complaint, unknown_symchar_complaint)
684 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
685 (lbrac_mismatch_complaint, repeated_header_complaint)
686 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
687 Delete deprecated complaint structs.
688 (unknown_symtype_complaint, lbrac_mismatch_complaint)
689 (repeated_header_complaint)
690 (function_outside_compiliation_unit_complaint): New functions.
691 (add_old_header_file, find_corresponding_bincl_psymtab)
692 (set_namestring, find_stab_function_addr, read_dbx_symtab)
693 (process_one_symbol): Replace calls to complain() with, possibly
694 indirect, calls to complaint().
695 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
696 (unknown_attribute_form, unknown_attribute_length)
697 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
698 (const_ignored, botched_modified_type, op_deref2, op_deref4)
699 (basereg_not_handled, dup_user_type_allocation)
700 (dup_user_type_definition, missing_tag, bad_array_element_type)
701 (subscript_data_items, unhandled_array_subscript_format)
702 (unknown_array_subscript_format, not_row_major)
703 (missing_at_name): Delete deprecated complaint structs.
704 (bad_die_ref_complaint, unknown_attribute_form_complaint)
705 (dup_user_type_definition_complaint)
706 (bad_array_element_type_complaint): New functions.
707 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
708 (decode_subscript_data_item, dwarf_read_array_type)
709 (read_tag_string_type, read_subroutine_type, read_func_scope)
710 (locval, scan_partial_symbols, decode_modified_type)
711 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
712 (attribute_size): Replace calls to complain() with, possibly
713 indirect, calls to complaint().
714 * elfread.c (section_info_complaint, section_info_dup_complaint)
715 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
716 Delete deprecated complaint structs.
717 (elf_symtab_read, elfstab_offset_sections): Replace calls to
718 complain() with calls to complaint().
719 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
720 struct.
721 (stub_noname_complaint): New function.
722 (check_typedef, add_mangled_type): Replace calls to complain()
723 with calls to complaint().
724 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
725 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
726 (hpread_unhandled_type_complaint, hpread_struct_complaint)
727 (hpread_array_complaint, hpread_type_lookup_complaint)
728 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
729 (hpread_unhandled_common_complaint)
730 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
731 struct definitions and declarations.
732 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
733 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
734 Replace calls to complain() with, possibly indirect, calls to
735 complaint().
736 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
737 Likewise.
738 * mdebugread.c (bad_file_number_complaint, index_complaint)
739 (aux_index_complaint, block_index_complaint)
740 (unknown_ext_complaint, unknown_sym_complaint)
741 (unknown_st_complaint, block_overflow_complaint)
742 (basic_type_complaint, unknown_type_qual_complaint)
743 (array_index_type_complaint, bad_tag_guess_complaint)
744 (block_member_complaint, stEnd_complaint)
745 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
746 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
747 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
748 (bad_continued_complaint, bad_rfd_entry_complaint)
749 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
750 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
751 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
752 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
753 complaint structs.
754 (index_complaint, unknown_ext_complaint, basic_type_complaint)
755 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
756 (unexpected_type_code_complaint)
757 (function_outside_compilation_unit_complaint): New functions.
758 (parse_symbol, parse_type, upgrade_type, parse_procedure)
759 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
760 Replace calls to complain() with, possibly indirect calls to
761 complaint().
762 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
763 Delete deprecated complaint structs.
764 (lookup__objc_class, lookup_child_selector): Replace complain()
765 with complaint().
766 * remote-vx.c (cant_contact_target): Delete deprecated complaint
767 struct.
768 (vx_lookup_symbol): Replace complain() with complaint().
769 * stabsread.c (invalid_cpp_abbrev_complaint)
770 (invalid_cpp_type_complaint, member_fn_complaint)
771 (const_vol_complaint, error_type_complaint)
772 (invalid_member_complaint, range_type_base_complaint)
773 (reg_value_complaint, vtbl_notfound_complaint)
774 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
775 (unresolved_sym_chain_complaint, stabs_general_complaint)
776 (lrs_general_complaint, multiply_defined_struct): Delete
777 deprecated complaint structs.
778 (invalid_cpp_abbrev_complaint, ref_value_complaint)
779 (stabs_general_complaint, lrs_general_complaint)
780 (msg_unknown_complaint): New functions.
781 (dbx_lookup_type, read_cfront_baseclasses)
782 (read_cfront_member_functions, resolve_symbol_reference)
783 (define_symbol, resolve_live_range, add_live_range, read_type)
784 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
785 (read_one_struct_field, read_baseclasses, read_tilde_fields)
786 (read_cfront_static_fields, attach_fields_to_type)
787 (complain_about_struct_wipeout, read_range_type)
788 (common_block_start, common_block_end, cleanup_undefined_types)
789 (scan_file_globals): Replace complain() with complaint().
790 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
791 Delete deprecated complaint struct declarations.
792 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
793 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
794 (bf_not_found_complaint, ef_complaint, eb_complaint)
795 (function_outside_compilation_unit_complaint): New functions.
796 (record_include_begin, record_include_end, enter_line_range)
797 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
798 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
799 complain() with complaint().
800
1a14e234
AC
8012002-12-16 Andrew Cagney <ac131313@redhat.com>
802
803 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
804 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
805 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
806 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
807 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
808 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
809 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
810 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
811 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
812 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
813 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
814 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
815 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
816 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
817 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
818 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
819 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
820 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
821 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
822 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
823 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
824 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
825 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
826 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
827 * config/m88k/xm-dgux.h: Delete.
828 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
829 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
830 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
831 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
832 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
833 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
834 * ch-valprint.c: Delete.
835
04e68871
DJ
8362002-12-15 Daniel Jacobowitz <drow@mvista.com>
837
838 * infrun.c (handle_inferior_event): Rearrange code to resume if
839 no catchpoint triggers for an event.
840
deb3b17b
DJ
8412002-12-15 Daniel Jacobowitz <drow@mvista.com>
842
843 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
844 and TARGET_WAITKIND_VFORKED cases.
845
675bf4cb
DJ
8462002-12-15 Daniel Jacobowitz <drow@mvista.com>
847
848 * infrun.c (handle_inferior_event): Assume that catchpoints
849 are not affected by DECR_PC_AFTER_BREAK.
850
81e56179
DJ
8512002-12-15 Daniel Jacobowitz <drow@mvista.com>
852
853 * target.c (update_current_target): Don't inherit DONT_USE.
854 * target.h (struct target_ops): Remove DONT_USE.
855 (target_next): Remove macro.
856
a3edc55b
MK
8572002-12-15 Mark Kettenis <kettenis@gnu.org>
858
859 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
860
b508a996
RE
8612002-12-14 Richard Earnshaw <rearnsha@arm.com>
862
863 * arm-tdep.c (convert_from_extended): New argument to hold the
864 type of floating point result we want to convert to. Make input
865 argument const. Fix all callers.
866 (convert_to_extended): Similarly.
867 (arm_extract_return_value): Now takes a regcache argument. Change
868 code to use regcache accessor functions. Correctly extract
869 smaller-than-word results on big-endian machines.
870 (arm_store_return_value): Now takes a regcache argument. Change
871 code to use regcache accessor functions. Correctly zero/sign extend
872 smaller than word results before storing into r0.
873 (arm_gdbarch_init): Register new-style extract_return_value and
874 store_return_value functions.
875
3197744f
MS
8762002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
877
878 * thread-db.c (thread_from_lwp): Uniquify error msg.
879 (lwp_from_thread): Ditto.
880 (check_event): Ditto.
881 (find_new_threads_callback): Ditto.
882 (thread_db_pid_to_str): Ditto.
883
6baff1d2
AC
8842002-12-13 Andrew Cagney <ac131313@redhat.com>
885
886 * frame.h (get_frame_saved_regs): Declare.
887 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
888 pointer.
889 * frame.c (get_frame_saved_regs): New function.
890 (frame_saved_regs_zalloc): Return the allocated saved_regs.
891
b87efeee
AC
8922002-12-13 Andrew Cagney <ac131313@redhat.com>
893
894 * frame.c (deprecated_update_current_frame_pc_hack): New
895 function.
896 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
897 * infrun.c (normal_stop): Use said function instead of directly
898 modifying the frame's PC.
899
3de2dc4f
AO
9002002-12-13 Alexandre Oliva <aoliva@redhat.com>
901
902 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
903
fe29b929
KB
9042002-12-13 Kevin Buettner <kevinb@redhat.com>
905
906 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
907 config/mips/tm-irix6.h (NUM_REGS): Delete.
908 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
909 (temp_saved_regs): Declare as a pointer rather than an array.
910 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
911 that ``temp_saved_regs'' has storage allocated to it and that
912 it's the correct size.
913
c04e0a08
JJ
9142002-12-13 Jeff Johnston <jjohnstn@redhat.com>
915
916 * defs.h (init_last_source_visited): New prototype.
917 (add_path): Ditto.
918 * source.c (add_path): New function that adds to a specified path.
919 (mod_path): Change to call add_path.
920 (init_last_source_visited): New function to allow interfaces to
921 initialize static variable: last_source_visited. Part of fix
922 for PR gdb/741.
923 * Makefile.in: Add support for mi/mi-cmd-env.c.
924
c689142b
AC
9252002-12-13 Andrew Cagney <ac131313@redhat.com>
926
927 * frame.h (frame_id_unwind): Declare.
928 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
929 id_unwind_cache.
930 (frame_id_unwind_ftype): Declare.
931 * frame.c (frame_id_unwind): New function.
932 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
933 (create_new_frame, get_prev_frame): Pass id_unwind to
934 set_unwind_by_pc.
935 (frame_saved_regs_id_unwind): New function.
936 (frame_saved_regs_id_unwind): New function.
937 * dummy-frame.c (dummy_frame_id_unwind): New function.
938 (struct dummy_frame): Add field id.
939 (generic_push_dummy_frame): Initialize `id'.
940 * dummy-frame.h (dummy_frame_id_unwind): Declare.
941
18ea5ba4
AC
9422002-12-13 Andrew Cagney <ac131313@redhat.com>
943
944 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
945 pass that to set_momentary_breakpoint. Move comments to where they
946 belong.
947 * frame.h (set_current_frame): Delete declaration.
948 * frame.c (set_current_frame): Delete function.
949
2c517d0e
AC
9502002-12-13 Andrew Cagney <ac131313@redhat.com>
951
952 * frame.c (frame_extra_info_zalloc): New function.
953 * frame.h (frame_extra_info_zalloc): Declare.
954
516b1f28
JB
9552002-12-13 Joel Brobecker <brobecker@gnat.com>
956
957 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
958 in the previous prototype change to set_momentary_breakpoint.
959
fbb265fc
DJ
9602002-12-12 Daniel Jacobowitz <drow@mvista.com>
961
962 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
963 and saw_child_exec.
964 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
965 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
966 (stop_stepping): Remove outdated check for child vfork events.
967
4fd7f624
AC
9682002-12-12 Andrew Cagney <ac131313@redhat.com>
969
970 * GDB 5.3 released from gdb_5_3-branch.
971
4c9ba7e0
DJ
9722002-12-11 Daniel Jacobowitz <drow@mvista.com>
973
974 * corelow.c (init_core_ops): Delete references to to_require_attach
975 and to_require_detach.
976 * exec.c (init_exec_ops): Likewise.
977 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
978 hppa_require_detach directly.
979 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
980 * inftarg.c (child_detach): Remove.
981 (child_detach_from_process): Rename to child_detach, remove
982 after_fork argument.
983 (child_attach): Remove.
984 (child_attach_to_process): Rename to child_attach, remove after_fork
985 argument.
986 (init_child_ops): Delete references to to_require_attach
987 and to_require_detach.
988 * infttrace.c (hppa_require_attach): Update comment.
989 * target.c (cleanup_target, update_current_target)
990 (init_dummy_target, setup_target_debug): Delete references to
991 to_require_attach and to_require_detach.
992 (find_default_require_detach, find_default_require_attach)
993 (debug_to_require_attach, debug_to_require_detach): Remove
994 functions.
995 * target.h (struct target_ops): Remove to_require_attach
996 and to_require_detach.
997 (target_require_attach, target_require_detach): Delete macros.
998 (find_default_require_detach, find_default_require_attach): Delete
999 prototypes.
1000 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1001
0394eb2a
AC
10022002-12-11 Andrew Cagney <ac131313@redhat.com>
1003
1004 * frame.c (get_frame_extra_info): New function.
1005 * frame.h (get_frame_extra_info): Declare.
1006
818dd999
AC
10072002-12-11 Andrew Cagney <ac131313@redhat.com>
1008
1009 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1010 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1011 with `struct frame_id'.
1012 (set_longjmp_resume_breakpoint): Ditto.
1013 * infrun.c (handle_inferior_event): Update.
1014 * breakpoint.c (watch_command_1, until_break_command): Update.
1015 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1016 (handle_inferior_event, step_over_function): Update.
1017 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1018 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1019 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1020 * infcmd.c (finish_command, run_stack_dummy): Update.
1021
4d3c2250
KB
10222002-12-11 Kevin Buettner <kevinb@redhat.com>
1023
1024 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1025 (dwarf2_non_const_array_bound_ignored)
1026 (dwarf2_missing_line_number_section)
1027 (dwarf2_statement_list_fits_in_line_number_section)
1028 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1029 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1030 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1031 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1032 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1033 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1034 (dwarf2_missing_member_fn_type_complaint)
1035 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1036 (dwarf2_const_value_length_mismatch)
1037 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1038 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1039 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1040 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1041 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1042 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1043 complaints using deprecated struct..
1044 (dwarf2_non_const_array_bound_ignored_complaint)
1045 (dwarf2_complex_location_expr_complaint)
1046 (dwarf2_unsupported_at_frame_base_complaint)
1047 (dwarf2_const_value_length_mismatch_complaint)
1048 (dwarf2_macros_too_long_complaint)
1049 (dwarf2_macro_malformed_definition_complaint)
1050 (dwarf2_invalid_attrib_class_complaint): New functions.
1051 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1052 (read_structure_scope, read_array_type, read_common_block)
1053 (read_tag_pointer_type, read_base_type, read_partial_die)
1054 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1055 (new_symbol, dwarf2_const_value, read_type_die)
1056 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1057 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1058 complain() with, possibly indirect, calls to complaint().
1059
95486978
AC
10602002-12-11 Andrew Cagney <cagney@redhat.com>
1061
1062 * frame.c (deprecated_get_frame_saved_regs): Rename
1063 get_frame_saved_regs.
1064 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1065 * sparc-tdep.c: Update.
1066 * hppa-tdep.c: Update.
1067 * h8500-tdep.c: Update.
1068
321432c0
KB
10692002-12-11 Kevin Buettner <kevinb@redhat.com>
1070
1071 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1072 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1073 ``char *'' for return and parameter types.
1074 * gdbarch.h, gdbarch.c: Regenerate.
1075 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1076 return type from ``char *'' to ``const char *''.
1077 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1078 const.
1079
5a4d6ff4
MK
10802002-12-11 Mark Kettenis <kettenis@gnu.org>
1081
1082 * i386-tdep.c: Include "dummy-frame.h".
1083 (i386_frame_chain, i386_frame_saved_pc): Replace
1084 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1085 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1086
a5afb99f
AC
10872002-12-10 Andrew Cagney <cagney@redhat.com>
1088
1089 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1090 Change to a function with predicate.
1091 * gdbarch.h, gdbarch.c: Re-generate.
1092 * frame.c (get_prev_frame): Update. Test
1093 DEPRECATED_INIT_FRAME_PC_P.
1094 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1095 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1096 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1097 * alpha-tdep.c (alpha_gdbarch_init): Update.
1098 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1099 * mips-tdep.c (mips_gdbarch_init): Update.
1100 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1101 * arm-tdep.c: Update comments.
1102 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1103 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1104 * frv-tdep.c (frv_gdbarch_init): Ditto.
1105 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1106 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1107 * s390-tdep.c (s390_gdbarch_init): Ditto.
1108 * v850-tdep.c (v850_gdbarch_init): Ditto.
1109 * vax-tdep.c (vax_gdbarch_init): Ditto.
1110 * sh-tdep.c (sh_gdbarch_init): Ditto.
1111 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1113 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1115 * i386-tdep.c (i386_gdbarch_init): Ditto.
1116 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1117 * cris-tdep.c (cris_gdbarch_init): Ditto.
1118 * avr-tdep.c (avr_gdbarch_init): Ditto.
1119 * arm-tdep.c (arm_gdbarch_init): Ditto.
1120 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1121 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1122
6604731b
DJ
11232002-12-10 Daniel Jacobowitz <drow@mvista.com>
1124
1125 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1126 CHILD_FOLLOW_FORK.
1127 * hppah-nat.c (saved_vfork_pid): Add.
1128 (child_post_follow_vfork): Remove.
1129 (child_follow_fork): New function.
1130 (child_wait): Call detach_breakpoints after receiving the child vfork.
1131 Call child_resume directly instead of going through resume ().
1132 Make sure we have the exec before reporting the vfork.
1133 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1134 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1135 (follow_fork): New function. Call target_follow_fork.
1136 (follow_inferior_reset_breakpoints): New function broken out from
1137 old follow_inferior_fork.
1138 (resume): Remove hack to follow exec after vfork.
1139 * inftarg.c (child_post_follow_vfork): Remove.
1140 (child_follow_fork): New function.
1141 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1142 * target.c (cleanup_target): Replace to_post_follow_vfork with
1143 to_follow_fork.
1144 (update_current_target): Likewise.
1145 (setup_target_debug): Likewise.
1146 (debug_to_post_follow_vfork): Remove.
1147 (debug_to_follow_fork): New function.
1148 * target.h (struct target_ops): Replace to_post_folow_vfork with
1149 to_follow_fork.
1150 (child_post_follow_vfork): Remove prototype.
1151 (child_follow_fork): Add prototype.
1152 (target_post_follow_vfork): Remove macro.
1153 (target_follow_fork): Add macro.
1154
7d2830a3
DJ
11552002-12-10 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1158 (child_post_follow_vfork): Cancel pending exec event if we follow
1159 the parent.
1160 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1161 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1162 event at the following wait call if necessary.
1163 * infrun.c (follow_vfork): Don't follow_exec here.
1164 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1165 case about HP/UX 10.20. Remove code pushed down to
1166 hppah-nat.c:child_wait.
1167 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1168 vfork_in_flight is set.
1169
11702002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
1171
1172 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1173 for the parent's fork event.
1174 * infrun.c (handle_inferior_event): Only expect one fork event.
1175 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1176 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1177
50631d4f
AC
11782002-12-10 Andrew Cagney <ac131313@redhat.com>
1179
bc124bd3
AC
1180 * PROBLEMS: Delete reference to PR gdb/725.
1181
50631d4f
AC
1182 * MAINTAINERS (gdb.c++): Add David Carlton.
1183
808013d1
DC
11842002-12-09 David Carlton <carlton@math.stanford.edu>
1185
1186 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1187 * cli/cli-cmds.c: Ditto.
1188
31deffe5
AC
11892002-12-09 Andrew Cagney <cagney@redhat.com>
1190
6cbda714
AC
1191 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1192 function address in <>.
31deffe5
AC
1193 * gdbarch.c: Re-generate.
1194
2692ddb3
DC
11952002-12-09 David Carlton <carlton@math.stanford.edu>
1196
1197 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1198
f3c39e76
DC
11992002-12-09 David Carlton <carlton@math.stanford.edu>
1200
1201 * linespec.c (symtab_from_filename): New function.
1202 (decode_line_1): Move code into symtab_from_filename.
1203
1b84163e
KB
12042002-12-09 Kevin Buettner <kevinb@redhat.com>
1205
1206 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1207
bdd78e62
AC
12082002-12-07 Andrew Cagney <ac131313@redhat.com>
1209
1210 * f-valprint.c (info_common_command): Use get_frame_pc.
1211 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1212 * ax-gdb.c (agent_command): Ditto.
1213 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1214 (rs6000_pop_frame): Ditto.
1215 (rs6000_frameless_function_invocation): Ditto.
1216 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1217 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1218 * macroscope.c (default_macro_scope): Ditto.
1219 * stack.c (print_frame_info_base): Ditto.
1220 (print_frame, frame_info, print_frame_label_vars): Ditto.
1221 (return_command, func_command, get_frame_language): Ditto.
1222 * infcmd.c (finish_command): Ditto.
1223 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1224 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1225 (break_at_finish_at_depth_command_1): Ditto.
1226 (break_at_finish_command_1): Ditto.
1227 (until_break_command, get_catch_sals): Ditto.
1228 * blockframe.c (func_frame_chain_valid): Ditto.
1229 (frameless_look_for_prologue): Ditto.
1230 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1231
408400e7
AC
12322002-12-08 Andrew Cagney <ac131313@redhat.com>
1233
1234 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1235 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1236
97f46953
AC
12372002-12-08 Andrew Cagney <ac131313@redhat.com>
1238
1239 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1240 to pure functions.
1241 * gdbarch.h, gdbarch.c: Re-generate.
1242 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1243 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1244
1245 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1246 declaration to a function returning a CORE_ADDR.
1247 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1248 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1249 (init_frame_pc_default): Ditto.
1250 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1251 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1252 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1253 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1254 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1255 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1256
1257 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1258 to init_frame_pc_noop.
1259 (i386_interix_init_frame_pc): Delete function.
1260 * z8k-tdep.c (init_frame_pc): Delete function.
1261 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1262 (INIT_FRAME_PC_FIRST): Ditto.
1263 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1264 (INIT_FRAME_PC_FIRST): Ditto.
1265 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1266 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1267 init_frame_pc_noop.
1268 (INIT_FRAME_PC_FIRST): Convert to an expression.
1269 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1270
8b36eed8
AC
12712002-12-08 Andrew Cagney <ac131313@redhat.com>
1272
1273 * blockframe.c: Use get_frame_base instead of directly accessing
1274 the `struct frame_info' member frame.
1275 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1276 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1277
aeeccc89
EZ
12782002-12-08 Elena Zannoni <ezannoni@redhat.com>
1279
1280 * Makefile.in (readline_h): Define.
1281 (completer.o): Depend on readline_h.
1282 (corelow.o): Ditto.
1283 (event-top.o): Ditto.
1284 (exec.o): Ditto.
1285 (solib.o): Ditto.
1286 (source.o): Ditto.
1287 (symfile.o): Ditto.
1288 (symmisc.o): Ditto.
1289 (top.o): Ditto.
1290 (tracepoint.o): Ditto.
1291 (utils.o): Ditto.
1292 (cli-dump.o): Ditto.
1293 (tui-hooks.o): Ditto.
1294 (tuiWin.o): Ditto.
1295
38017ce8
EZ
12962002-12-08 Elena Zannoni <ezannoni@redhat.com>
1297
1298 More cleanup from import of readline 4.3.
1299 * completer.h (complete_line, readline_line_completion_function):
1300 Update prototypes.
1301 (line_completion_function): Removed, not used outside of completer.c.
1302 * completer.c (readline_line_completion_function,
1303 complete_function, line_completion_function): Use const for first
1304 parameter.
1305 (line_completion_function): Make static.
1306 (filename_completer): filename_completion_function is now called
1307 rl_filename_completion_function
1308 * corelow.c: Include <readline/readline.h>.
1309 * exec.c: Ditto.
1310 * solib.c: Ditto.
1311 * source.c: Ditto.
1312 * symfile.c: Ditto.
1313 * symmisc.c: Ditto.
1314 * top.c (init_main): No need to coerce
1315 readline_line_completion_function anymore.
1316 * cli/cli-dump.c: Include <readline/readline.h>.
1317
75e3c1f9
AC
13182002-12-08 Andrew Cagney <ac131313@redhat.com>
1319
1320 * stack.c (frame_info): Use get_prev_frame.
1321 * blockframe.c (frame_address_in_block): Ditto.
1322 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1323 (rs6000_frameless_function_invocation): Ditto.
1324 (rs6000_frame_saved_pc): Ditto.
1325 (rs6000_frame_chain): Ditto.
1326 * arch-utils.c (init_frame_pc_default): Ditto.
1327
0d2b8049
AC
13282002-12-08 Andrew Cagney <ac131313@redhat.com>
1329
1330 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1331 Delete redundant definition.
1332
9255ee31
EZ
13332002-12-08 Elena Zannoni <ezannoni@redhat.com>
1334
1335 Import of readline 4.3:
1336 * cli/cli-cmds.c: Include readline/tilde.h.
1337 * cli/cli-setshow.c: Ditto.
1338 * defs.h: Don't declare tilde_expand anymore, since readline
1339 exports it.
1340
3442dad6 13412002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
1342
1343 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1344 -Werror on this file.
1345
52f87c51
AC
13462002-12-07 Andrew Cagney <ac131313@redhat.com>
1347
1348 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1349 the format name.
1350 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1351 * gdbarch.c: Regenerate.
1352
2ca6c561
AC
13532002-12-06 Andrew Cagney <ac131313@redhat.com>
1354
1355 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1356 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1357 provide a default value.
1358 * gdbarch.h, gdbarch.c: Regenerate.
1359 * frame.c (get_prev_frame): Update. Check
1360 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1361 * s390-tdep.c (s390_gdbarch_init): Update.
1362 * mips-tdep.c (mips_gdbarch_init): Update.
1363 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1364 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1365 * alpha-tdep.c (alpha_gdbarch_init): Update.
1366
e162d11b
EZ
13672002-12-06 Elena Zannoni <ezannoni@redhat.com>
1368
1369 * ia64-linux-nat.c: Include gdb_string.h.
1370 * alpha-nat.c: Ditto.
2b298b5d
EZ
1371 * ppc-linux-nat.c: Ditto.
1372 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1373 Update dependencies.
e162d11b 1374
aa0cd9c1
AC
13752002-12-05 Andrew Cagney <ac131313@redhat.com>
1376
1377 * gdbthread.h: Include "frame.h".
1378 (struct thread_info): Replace step_frame_address with
1379 step_frame_id.
1380 * inferior.h: Include "frame.h".
1381 (step_frame_id): Replace external variable step_frame_address.
1382 * gdbthread.h (save_infrun_state): Replace step_frame_address
1383 parameter with step_frame_id parameter.
1384 (load_infrun_state): Ditto.
1385 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1386 * infcmd.c (step_frame_id, step_1, step_once): Update.
1387 * thread.c (load_infrun_state, save_infrun_state): Update.
1388 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1389 (handle_inferior_event, step_over_function): Update.
1390 (normal_stop, context_switch, restore_inferior_status): Update.
1391 (struct inferior_status): Replace step_frame_address with
1392 step_frame_id.
1393
a9a9bd0f
DC
13942002-12-05 David Carlton <carlton@math.stanford.edu>
1395
1396 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1397 DW_TAG_member as well as a declaration as being a C++ static data
1398 member.
1399 (read_structure_scope): Combine tests for DW_TAG_member and
1400 DW_TAG_variable.
1401
614b3b14
DC
14022002-12-05 David Carlton <carlton@math.stanford.edu>
1403
1404 * linespec.c (decode_compound): New function.
1405 (decode_line_1): Move code into decode_compound.
1406
e4051eeb
DC
14072002-12-05 David Carlton <carlton@math.stanford.edu>
1408
1409 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1410 argument.
1411 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1412 the static block. See PR gdb/804.
1413
f61e8913
DC
14142002-12-05 David Carlton <carlton@math.stanford.edu>
1415
1416 * symtab.c (lookup_symbol_aux_block): New function.
1417 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1418
1e9f55d0
AC
14192002-12-05 Andrew Cagney <ac131313@redhat.com>
1420
1421 * gdbarch.sh: Dump the predicate function and macro values.
1422 (read): Print error on standard error.
1423 * gdbarch.c: Regenerate.
1424
d1973055
KB
14252002-12-04 Kevin Buettner <kevinb@redhat.com>
1426
1427 * Makefile.in (mips_tdep_h): Define.
1428 (mips-tdep.o): Add mips_tdep_h to dependency list.
1429 * mips-tdep.h: New file.
1430 * mips-tdep.c (mips-tdep.h): Include.
1431 (enum mips_abi): Move to mips-tdep.h.
1432 (mips_abi): New function.
1433
f1253c7b
DC
14342002-12-04 David Carlton <carlton@math.stanford.edu>
1435
1436 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1437
406bc4de
DC
14382002-12-04 David Carlton <carlton@math.stanford.edu>
1439
1440 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1441 function.
1442 (lookup_symbol_aux_minsyms): New function.
1443
2a3750c5
JB
14442002-12-04 J. Brobecker <brobecker@gnat.com>
1445
1446 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1447
961d8652
JB
14482002-12-04 J. Brobecker <brobecker@gnat.com>
1449
1450 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1451 which is an obsolete macro name.
1452
38c52d5a
DJ
14532002-12-04 Daniel Jacobowitz <drow@mvista.com>
1454
1455 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1456 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1457
d8ef46f5
DJ
14582002-12-03 H.J. Lu (hjl@gnu.org)
1459
1460 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1461 (create_breakpoints): Make sure the addr_string field is not
1462 NULL.
1463
02ae7771
AC
14642002-12-03 Andrew Cagney <ac131313@redhat.com>
1465
1466 * sparc-nat.c (fetch_inferior_registers)
1467 (store_inferior_registers): Add comment on problem of LWP vs
1468 threads.
1469
1470 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1471 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1472 (lin_lwp_store_registers): Remove.
1473 (init_lin_lwp_ops): Use fetch_inferior_registers
1474 and store_inferior_registers directly.
1475 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1476 (store_inferior_registers): Likewise.
1477 Fix PR gdb/725.
1478
7a424e99
AC
14792002-12-03 Andrew Cagney <ac131313@redhat.com>
1480
1481 * frame.h (get_frame_id): Convert to a function.
1482 (null_frame_id, frame_id_p): Declare.
1483 (frame_id_eq, frame_id_inner): Declare.
1484 (frame_id_build): New function.
1485 * frame.c (get_frame_id): Update. Use null_frame_id.
1486 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1487 frame_id_inner.
1488 (null_frame_id, frame_id_p): Define.
1489 (frame_id_eq, frame_id_inner): Define.
1490 (frame_id_build): New function.
1491 * varobj.c (varobj_create): Update.
1492 (varobj_update): Update.
1493 * valops.c (value_assign): Update.
1494 (new_root_variable): Update.
1495 * infrun.c (save_inferior_status): Update.
1496 * breakpoint.c (watch_command_1): Update.
1497
891c7f5f
JB
14982002-12-03 J. Brobecker <brobecker@gnat.com>
1499
1500 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1501 (SNAP2): Likewise.
1502
144da3c1
AC
15032002-12-03 Andrew Cagney <cagney@redhat.com>
1504
46248966
AC
1505 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1506 patch.
1507
144da3c1
AC
1508 * PROBLEMS: Mention PR gdb/725.
1509
03c6228e
AS
15102002-12-03 Andreas Schwab <schwab@suse.de>
1511
1512 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1513
36e53c63
AF
15142002-12-02 Adam Fedor <fedor@gnu.org>
1515 Klee Dienes <kdienes@apple.com>
1516
1517 * objc-lang.c (objc_printstr): Add width arg to match
1518 printstr prototype.
1519 (compare_selectors): Add 'const' to arg types.
1520 (compare_classes): Likewise.
1521 (find_imps): Cast msym pointer to avoid compiler warning.
1522 (print_object_command): Validate the address before
1523 passing it to the print routine.
1524 (find_objc_msgcall_submethod): Change function argument to
1525 return an int.
1526 * objc-lang.h: Add 'extern' to all function declarations.
1527 (value_nsstring): Add declaration.
1528
504d5c7e
JB
15292002-12-02 J. Brobecker <brobecker@gnat.com>
1530
1531 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1532 Fixes a build failure on HP/UX.
1533
1534 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1535 failure on HP/UX.
1536 (hpread_has_name): Advance declaration to avoid a compilation warning.
1537 (pst_syms_count): Add missing variable type. By change, the compiler
1538 was defaulting to int, which seems a good choice. Fixes a compilation
1539 warning.
1540 (pst_syms_size): Likewise.
1541
59623e27
JB
15422002-12-02 J. Brobecker <brobecker@gnat.com>
1543
1544 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1545 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1546 later to set the proper gdbarch methods depending on the osabi.
1547 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1548
a09a320d
JB
15492002-12-02 J. Brobecker <brobecker@gnat.com>
1550
1551 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1552 * osabi.c (gdb_osabi_name): Add strings images for the two new
1553 enum values.
1554 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1555
8a81a99e
AC
15562002-12-02 Andrew Cagney <ac131313@redhat.com>
1557
1558 * MAINTAINERS (Java): Global maintainers are responible for Java.
1559 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1560 part Java maintainers.
1561
7af35dad
JB
15622002-12-02 J. Brobecker <brobecker@gnat.com>
1563
1564 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1565 Fixes a compilation failure on AiX.
1566
f4ede9bc
JB
15672002-12-02 J. Brobecker <brobecker@gnat.com>
1568
1569 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1570 why aix-thread.o is not listed.
1571
ae45cd16
AC
15722002-12-01 Andrew Cagney <ac131313@redhat.com>
1573
1574 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1575 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1576 * gdbarch.h, gdbarch.c: Re-generate.
1577 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1578 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1579 * config/pa/tm-hppa.h, frame.h: Update.
1580 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1581 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1582 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1583 * cris-tdep.c, alpha-tdep.c: Update.
1584 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1585 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1586 (get_prev_frame): Ditto.
1587
020cc13c
AC
15882002-11-30 Andrew Cagney <cagney@redhat.com>
1589
1590 * exec.c (xfer_memory): Replace boolean with int.
1591 * p-exp.y: Use 0 instead of false.
1592 * corelow.c (gdb_check_format): Change return type to int from
1593 boolean.
1594 * utils.c: Don't include <curses.h> or <term.h> first.
1595
1d9b2aa8
SC
15962002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1597
1598 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1599 (m68hc11_register_byte): Remove.
1600 (m68hc11_gdbarch_init): Don't set the above.
1601
a193e397
AC
16022002-11-29 Andrew Cagney <cagney@redhat.com>
1603
1604 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1605 by calling get_selected_frame.
1606 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1607 set_current_frame, create_new_frame, select_frame and
1608 get_current_frame.
1609 * remote-e7000.c (e7000_start_remote): Ditto.
1610 * remote-mips.c (common_open): Ditto
1611 * remote-rdp.c (remote_rdp_open): Ditto.
1612
b5fc49aa
AS
16132002-11-29 Andreas Schwab <schwab@suse.de>
1614
1615 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1616 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1617 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1618 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1619 read_memory_unsigned_integer instead of read_memory_integer when
1620 dealing with addresses and instruction opcodes.
1621 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1622 (m68k_linux_frame_saved_pc): Likewise.
1623
6e7f8b9c
AC
16242002-11-29 Andrew Cagney <ac131313@redhat.com>
1625
1626 * stack.c (selected_frame, select_frame): Move from here ...
1627 * frame.c (selected_frame, select_frame): ... to here. Include
1628 "language.h".
1629 * Makefile.in (frame.o): Update dependencies.
1630 * frame.c (get_selected_frame): New function.
1631 * frame.h (get_selected_frame): Declare.
1632 (deprecated_selected_frame): Rename selected_frame.
1633 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1634 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1635 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1636 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1637 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1638 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1639 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1640 * z8k-tdep.c, cli/cli-cmds.c: Update.
1641
805e2818
AC
16422002-11-29 Andrew Cagney <ac131313@redhat.com>
1643
1644 * frame.h (get_selected_block): Add comments.
1645
1058bca7
AC
16462002-11-28 Andrew Cagney <ac131313@redhat.com>
1647
1648 * frame.c (pc_notcurrent): New function.
1649 (find_frame_sal): New function.
1650 * frame.h (find_frame_sal): Declare.
1651 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1652 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1653 find_pc_line.
1058bca7
AC
1654 (frame_info): Ditto.
1655 * ada-lang.c (find_printable_frame): Ditto.
1656
d92419e5
JB
16572002-11-28 J. Brobecker <brobecker@gnat.com>
1658
1659 * configure.in: Check that the pthdebug library is recent enough
1660 before enabling thread support on native AiX.
1661 * configure: Regenerate.
1662
1663 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1664 from the list of object files as it is now appended by configure
1665 if thread support is enabled.
1666 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1667 if thread support is enabled.
1668
8c69fc49
AC
16692002-11-28 Andrew Cagney <cagney@redhat.com>
1670
1671 * stack.c (get_selected_block): In-line get_current_block.
1672 * frame.h (get_current_block): Delete declaration.
1673 * blockframe.c (get_current_block): Delete function.
1674
07555a72
AC
16752002-11-28 Andrew Cagney <ac131313@redhat.com>
1676
1677 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1678 USE_GENERIC_DUMMY_FRAMES.
1679 * gdbarch.h, gdbarch.c: Regenerate.
1680 * valops.c, frame.c: Update.
1681 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1682 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1683 * config/pa/tm-hppa.h, blockframe.c: Update.
1684 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1685 * m68k-tdep.c, alpha-tdep.c: Ditto.
1686
1687 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1688 * mips-tdep.c: Ditto.
1689
b99fa2d2
AC
16902002-11-27 Andrew Cagney <ac131313@redhat.com>
1691
1692 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1693 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1694 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1695 * gdbarch.c, gdbarch.h: Re-generate.
1696 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1697 (CALL_DUMMY_LOCATION): Delete macro definition.
1698 (PC_IN_CALL_DUMMY): Delete macro definitions.
1699
1700 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1701 default is already generic_pc_in_call_dummy.
1702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1703 * v850-tdep.c (v850_gdbarch_init): Ditto.
1704 * sh-tdep.c (sh_gdbarch_init): Ditto.
1705 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1706 * mips-tdep.c (mips_gdbarch_init): Ditto.
1707 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1709 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1710 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1711 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1712 * avr-tdep.c (avr_gdbarch_init): Ditto.
1713
1714 * arm-tdep.c (arm_gdbarch_init): Do not set
1715 use_generic_dummy_frames, default is already 1.
1716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1717 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1718 * v850-tdep.c (v850_gdbarch_init): Ditto.
1719 * sh-tdep.c (sh_gdbarch_init): Ditto.
1720 * s390-tdep.c (s390_gdbarch_init): Ditto.
1721 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1722 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1723 * mips-tdep.c (mips_gdbarch_init): Ditto.
1724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1726 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1727 * i386-tdep.c (i386_gdbarch_init): Ditto.
1728 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1729 * frv-tdep.c (frv_gdbarch_init): Ditto.
1730 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1731 * cris-tdep.c (cris_gdbarch_init): Ditto.
1732 * avr-tdep.c (avr_gdbarch_init): Ditto.
1733
1734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1735 call_dummy_location, default is already AT_ENTRY_POINT.
1736 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1737 * v850-tdep.c (v850_gdbarch_init): Ditto.
1738 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1739 * sh-tdep.c (sh_gdbarch_init): Ditto.
1740 * s390-tdep.c (s390_gdbarch_init): Ditto.
1741 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1742 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1743 * mips-tdep.c (mips_gdbarch_init): Ditto.
1744 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1746 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1747 * i386-tdep.c (i386_gdbarch_init): Ditto.
1748 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1749 * frv-tdep.c (frv_gdbarch_init): Ditto.
1750 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1751 * cris-tdep.c (cris_gdbarch_init): Ditto.
1752 * avr-tdep.c (avr_gdbarch_init): Ditto.
1753 * arm-tdep.c (arm_gdbarch_init): Ditto.
1754 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1755
abc0af47
AC
17562002-11-28 Andrew Cagney <cagney@redhat.com>
1757
1758 * frame.h: Update comments on set_current_frame, create_new_frame,
1759 flush_cached_frames, reinit_frame_cache, select_frame and
1760 selected_frame.
1761
ed5cedc5
AC
17622002-11-27 Andrew Cagney <cagney@redhat.com>
1763
1764 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1765 deprecated pc_in_call_dummy function.
1766 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1767 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1768 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1769 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1770 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1771
b2a1bd4f
MH
17722002-11-26 Martin M. Hunt <hunt@redhat.com>
1773
1774 * Makefile.in: Remove Tix dependencies.
1775 * acinclude.m4: Ditto.
1776 * aclocal.m4: Ditto.
1777 * configure.in: Ditto.
1778 * configure: Regenerated.
1779
f09cffaa
AC
17802002-11-26 Andrew Cagney <ac131313@redhat.com>
1781
1782 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1783 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1784 * gdbarch.c: Re-generate.
1785
e92b0cc9
AC
17862002-11-26 Andrew Cagney <ac131313@redhat.com>
1787
1788 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1789 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1790 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1791 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1792 pc_in_call_dummy_at_entry_point.
1793 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1794 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1795 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1796 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1797 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1798 pc_in_call_dummy_on_stack.
1799 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1800 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1801 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1802 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1803 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1804
b4b88177
AC
18052002-11-26 Andrew Cagney <ac131313@redhat.com>
1806
1807 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1808 pc_in_call_dummy_before_text_end
1809 (deprecated_pc_in_call_dummy_after_text_end): Rename
1810 pc_in_call_dummy_after_text_end.
1811 (deprecated_pc_in_call_dummy_on_stack): Rename
1812 pc_in_call_dummy_on_stack.
1813 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1814 pc_in_call_dummy_at_entry_point.
1815 * m68k-tdep.c (m68k_gdbarch_init): Update.
1816 * s390-tdep.c (s390_gdbarch_init): Update.
1817 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1818 * vax-tdep.c (vax_gdbarch_init): Update.
1819 * sparc-tdep.c (sparc_gdbarch_init): Update.
1820 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1821 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1822 * i386-tdep.c (i386_gdbarch_init): Update.
1823 * frv-tdep.c (frv_gdbarch_init): Update.
1824 * cris-tdep.c (cris_gdbarch_init): Update.
1825 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1826 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1827 (deprecated_pc_in_call_dummy_after_text_end)
1828 (deprecated_pc_in_call_dummy_on_stack)
1829 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1830 * alpha-tdep.c (alpha_gdbarch_init): Update.
1831
eb784848
DJ
18322002-11-25 Daniel Jacobowitz <drow@mvista.com>
1833
1834 * acconfig.h (HAVE_PREAD64): Add.
1835 * configure.in: Check for pread64.
1836 * config.in: Regenerated.
1837 * configure: Regenerated.
1838 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1839 * linux-proc.c (linux_proc_xfer_memory): New function.
1840 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1841
933c6fe4
DC
18422002-11-25 David Carlton <carlton@math.stanford.edu>
1843
1844 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1845 pdi's with no name.
1846
158a8022
AC
18472002-11-25 Andrew Cagney <ac131313@redhat.com>
1848
1849 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1850 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1851
481d0f41
JB
18522002-11-25 Jim Blandy <jimb@redhat.com>
1853
e8289572
JB
1854 * symfile.c (init_objfile_sect_indices): New function.
1855 (default_symfile_offsets): Move the section-index-initializing
1856 stuff into init_objfile_sect_indices, and call that.
1857
b29c9944
JB
1858 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1859 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1860
13de58df
JB
1861 * symfile.c (syms_from_objfile): Adjust indentation.
1862
481d0f41
JB
1863 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1864 || info_verbose isn't true.
1865
7d6a26a7
AC
18662002-11-24 Andrew Cagney <ac131313@redhat.com>
1867
1868 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1869 default to get_frame_base.
1870 * gdbarch.h, gdbarch.c: Regenerate.
1871 * arch-utils.c (default_frame_address): Delete function.
1872 * arch-utils.h (default_frame_address): Delete declaration
1873
6abe1021
PM
18742002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1875
1876 * varobj.c (find_frame_addr_in_frame_chain):
1877 Use get_frame_base instead of FRAME_FP,
1878 obvious fix.
1879
c193f6ac
AC
18802002-11-19 Andrew Cagney <ac131313@redhat.com>
1881
1882 * frame.h (FRAME_FP): Delete macro.
1883 (get_frame_base): New function declaration.
1884 * frame.c (get_frame_base): New function.
1885 (get_frame_id): Use ->frame.
1886 (frame_find_by_id): Rewrite to use get_frame_id.
1887 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1888 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1889 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1890 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1891 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1892 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1893 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1894
e5d2af14
AC
18952002-11-24 Andrew Cagney <ac131313@redhat.com>
1896
1897 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1898
931d12c6
AC
18992002-11-24 Andrew Cagney <ac131313@redhat.com>
1900
1901 * frame.c (set_unwind_by_pc): Revert change below, use
1902 PC_IN_CALL_DUMMY.
1903 (get_prev_frame): Ditto.
1904
5e0f933e
AC
19052002-11-24 Andrew Cagney <ac131313@redhat.com>
1906
1907 * dummy-frame.c (pc_in_dummy_frame): New function.
1908 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1909 (find_dummy_frame): Update comment.
1910 (generic_pop_current_frame): Use get_frame_type.
1911 * dummy-frame.h (pc_in_dummy_frame): Declare.
1912 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1913 (create_new_frame): Use pc_in_dummy_frame.
1914 (get_prev_frame): Use pc_in_dummy_frame.
1915 (frame_saved_regs_register_unwind): Use get_prev_frame.
1916 (deprecated_generic_get_saved_register): Use get_prev_frame.
1917
7d8547c9
AC
19182002-11-23 Andrew Cagney <ac131313@redhat.com>
1919
1920 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1921 from here ...
1922 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1923 (varobj_create): Note that frame ID should be used.
1924 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1925
0225421b
AC
19262002-11-23 Andrew Cagney <ac131313@redhat.com>
1927
1928 * breakpoint.c: Include "gdb_assert.h".
1929 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1930 not being used.
1931 * Makefile.in (breakpoint.o): Update dependencies.
1932 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1933 deprecated_frame_in_dummy.
1934 * stack.c (print_frame_info_base): Ditto.
1935 (frame_info): Ditto.
1936 (print_frame_info_base): Ditto. Delete dead code.
1937
32eeb91a
AS
19382002-11-23 Andreas Schwab <schwab@suse.de>
1939
1940 * Makefile.in (m68k_tdep_h): Define.
1941 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1942 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1943 * m68k-tdep.c: Move register number enum ...
1944 * m68k-tdep.h: ... to this new file and rename the constants from
1945 E_* to M68K_*. All uses changed.
1946 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1947 * abug-rom.c: Include "m68k-tdep.h". Use
1948 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1949 * cpu32bug-rom.c: Likewise.
1950 * dbug-rom.c: Likewise.
1951 * m68k-tdep.c: Likewise.
1952 * m68klinux-nat.c: Likewise.
1953 * remote-est.c: Likewise.
1954 * rom68k-rom.c: Likewise.
1955 * config/m68k/tm-linux.h: Likewise.
1956
9648bac8
AC
19572002-11-23 Andrew Cagney <ac131313@redhat.com>
1958
1959 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1960 dummy frame initialization code.
1961 * mips-tdep.c (mips_gdbarch_init): Ditto.
1962
91a175b3
CF
19632002-11-22 Christopher Faylor <cgf@redhat.com>
1964
1965 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1966 attach will hang.
1967
f4ded5b1
AC
19682002-11-22 Andrew Cagney <ac131313@redhat.com>
1969
1970 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1971 to default_frame_address.
1972 * gdbarch.h, gdbarch.c: Re-generate.
1973
1974 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1975 or frame_locals_address to default_frame_address.
1976 * m68k-tdep.c (m68k_gdbarch_init): Update.
1977 * i386-tdep.c (i386_gdbarch_init): Update.
1978 * frv-tdep.c (frv_gdbarch_init): Update.
1979 * sh-tdep.c (sh_gdbarch_init): Update.
1980 * v850-tdep.c (v850_gdbarch_init): Update.
1981 * sparc-tdep.c (sparc_gdbarch_init): Update.
1982 * mips-tdep.c (mips_gdbarch_init): Update.
1983 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1984 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1986
1987 * cris-tdep.c (cris_frame_args_address): Delete function.
1988 (cris_frame_locals_address): Delete function.
1989 (cris_gdbarch_init): Do not set frame_args_address or
1990 frame_locals_address.
1991
f7c1e0f3
MS
19922002-11-22 Michael Snyder <msnyder@redhat.com>
1993
1994 * thread-db.c (thread_db_load): Tell the user what's going on
1995 if dlopen fails on libthread_db.
1996
03dac896
AS
19972002-11-23 Andreas Schwab <schwab@suse.de>
1998
1999 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2000 invariant return values.
2001
7a67d0fe
AS
20022002-11-22 Andreas Schwab <schwab@suse.de>
2003
2004 * valops.c (value_slice): Move declaration of `offset' to avoid
2005 warning.
2006
5633f842
CF
20072002-11-22 Christopher Faylor <cgf@redhat.com>
2008
2009 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2010 (struct so_stuff): Add end_addr field.
2011 (register_loaded_dll): Calculate and store end address of loaded dll.
2012 (solib_address): New function.
2013 (child_solib_loaded_library_pathname): Pass carefully constructed
2014 section info to safe_symbol_file_add rather than ignoring it.
2015 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2016 DLL is loaded.
2017 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2018 (child_create_inferior): Fix a compiler warning.
2019 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2020 (solib_address): Declare new function.
2021
d85fe7f7
AS
20222002-11-22 Andreas Schwab <schwab@suse.de>
2023
2024 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2025 and FPS registers.
2026
8308e54c
DJ
20272002-11-21 Daniel Jacobowitz <drow@mvista.com>
2028
2029 * maint.c (_initialize_maint_cmds): Fix typo. From
2030 Francesco Potorti` <pot@gnu.org>.
2031
8997bd5e
AC
20322002-11-21 Andrew Cagney <cagney@redhat.com>
2033
2034 * mips-tdep.c (mips_dump_tdep): Delete references to
2035 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2036 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2037 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2038 * printcmd.c (build_address_symbolic): Delete calls to
2039 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2040 (address_info): Ditto.
2041 Fix PR gdb/773.
2042
4e87b832
KD
20432002-11-19 Klee Dienes <kdienes@apple.com>
2044 Adam Fedor <fedor@gnu.org>
2045
2046 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2047 the ability to explicitly specify the quote characters and word
2048 break characters; if NULL is specified for either, use the old
2049 behavior of using the characters used by the completer.
2050 (skip_chars): New function. Convenience wrapper around
2051 skip_quoted_chars to provide the original skip_chars behavior.
2052 * completer.h (skip_quoted_chars): Add prototype.
2053
9ba8d803
AC
20542002-11-19 Andrew Cagney <ac131313@redhat.com>
2055
2056 Problems reported by Paul Eggert.
2057 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2058
0a595803
AS
20592002-11-19 Andreas Schwab <schwab@suse.de>
2060
2061 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2062 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2063 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2064 (m68k_linux_frame_saved_pc): Move to ...
2065 * m68klinux-tdep.c: ... here. New file.
2066 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2067 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2068
e8afa4d7
AF
20692002-11-19 Adam Fedor <fedor@gnu.org>
2070
2071 * objc-exp.y: Revert to old skip_quoted usage.
2072
a76c9d72
AF
20732002-11-19 Adam Fedor <fedor@gnu.org>
2074
2075 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2076 (objc_lang_h): Define.
2077 (YYFILES): Add objc-exp.tab.c.
2078 (local-maintainer-clean): Remove objc-exp.tab.c.
2079 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2080
fd0e9d45
PM
20812002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2082
2083 * p-exp.y (typecast rule): Add automatic dereference of
2084 pascal classes if needed.
2085 (THIS): Set current_type.
2086 Automatically dereference pascal classes.
2087 (typebase rule): Add ^typebase recognition.
2088
82eeeb94
AF
20892002-11-18 Adam Fedor <fedor@gnu.org>
2090
2091 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2092 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2093 (op_name): Handle OP_OBJC_SELF.
2094 * Makefile.in (expprint.o): Add additional depends.
2095
646df18d
AF
20962002-11-18 Adam Fedor <fedor@gnu.org>
2097
2098 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2099 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2100 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2101 * objc-exp.y: Likewise.
2102
379b85df
AF
21032002-11-18 Adam Fedor <fedor@gnu.org>
2104
2105 * gdb/parser-defs.h: (struct objc_class_str): New structure
2106 for parsing ObjC classes.
2107
85cf597a
AC
21082002-11-18 Andrew Cagney <ac131313@redhat.com>
2109
2110 * stack.c (frame_relative_level): Copy function from here ...
2111 * frame.c (frame_relative_level): ...to here.
2112
5a203e44
AC
21132002-11-18 Andrew Cagney <ac131313@redhat.com>
2114
2115 * frame.h (enum frame_type): Define.
2116 (get_frame_type): Declare.
2117 (struct frame_info): Add field `type'. Delete field
2118 signal_handler_caller.
2119 (deprecated_set_frame_signal_handler_caller): Declare.
2120 * frame.c (get_frame_type): New function.
2121 (deprecated_set_frame_type): New function.
2122 (create_new_frame): Set the frame's type.
2123 (get_prev_frame): Similar.
2124 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2125 * s390-tdep.c: Ditto.
2126 * m68klinux-nat.c: Ditto.
2127 * ns32k-tdep.c: Ditto.
2128 * x86-64-linux-tdep.c: Ditto.
2129 * vax-tdep.c: Ditto.
2130 * rs6000-tdep.c: Ditto.
2131 * ppc-linux-tdep.c: Ditto.
2132 * i386-interix-tdep.c: Ditto.
2133 * mips-tdep.c: Ditto.
2134 * m68k-tdep.c: Ditto.
2135 * hppa-tdep.c: Ditto.
2136 * ia64-tdep.c: Ditto.
2137 * cris-tdep.c: Ditto.
2138 * arm-tdep.c: Ditto.
2139 * alpha-tdep.c: Ditto.
2140 * i386-tdep.c: Ditto.
2141 * stack.c: Ditto.
2142 * ada-lang.c: Ditto.
2143 * blockframe.c: Update.
2144 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2145 deprecated_set_frame_type instead of signal_handler_caller.
2146 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2147 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2148 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2149
bf4ae8b2
KD
21502002-11-18 Klee Dienes <kdienes@apple.com>
2151
2152 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2153
a672ef13
KD
21542002-11-18 Klee Dienes <kdienes@apple.com>
2155
2156 * buildsym.c (pop_context): Add comment.
2157
0c5e171a
KD
21582002-11-18 Klee Dienes <kdienes@apple.com>
2159
2160 * buildsym.h (pop_context): Convert to function, defined in
2161 buildsym.c.
2162 * buildsym.c: Include gdb_assert.h.
2163 (pop_context): Implement as C function. Add check for stack
2164 underflow.
2165 * dbxread.c (process_one_symbol): Complain and stop processing
2166 that symbol if we are already at the top of the context stack for
2167 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2168 when processing N_RBRAC.
2169
8a1f4c4c
DJ
21702002-11-16 Daniel Jacobowitz <drow@mvista.com>
2171
2172 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2173 define.
2174 (struct target_waitstatus): Add opaque definition.
2175 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2176 * exec.c (init_exec_ops): Likewise.
2177 * fork-child.c (clone_and_follow_inferior): Remove.
2178 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2179 * inferior.h (clone_and_follow_inferior): Remove prototype.
2180 * infrun.c (follow_fork_mode_both): Remove.
2181 (follow_fork_mode_kind_names): Remove commented out "both".
2182 (follow_inferior_fork): Remove follow_fork_mode_both support.
2183 * inftarg.c (child_clone_and_follow_inferior): Remove.
2184 (child_post_follow_inferior_by_clone): Remove.
2185 (init_child_ops): Don't set to_clone_and_follow_inferior
2186 or to_post_follow_inferior_by_clone.
2187 * target.c (default_clone_and_follow_inferior): Remove.
2188 (cleanup_target): Don't set to_clone_and_follow_inferior
2189 or to_post_follow_inferior_by_clone.
2190 (find_default_clone_and_follow_inferior): Remove.
2191 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2192 (debug_to_clone_and_follow_inferior): Remove.
2193 (debug_to_post_follow_inferior_by_clone): Remove.
2194 (setup_target_debug): Don't set to_clone_and_follow_inferior
2195 or to_post_follow_inferior_by_clone.
2196 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2197 and to_post_follow_inferior_by_clone.
2198 (child_clone_and_follow_inferior): Remove prototype.
2199 (child_post_follow_inferior_by_clone): Remove prototype.
2200 (target_clone_and_follow_inferior): Remove macro.
2201 (target_post_follow_inferior_by_clone): Remove macro.
2202 (find_default_clone_and_follow_inferior): Remove prototype.
2203
47932f85
DJ
22042002-11-16 Daniel Jacobowitz <drow@mvista.com>
2205
2206 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2207 inferior_has_vforked, and inferior_has_execd instead of
2208 target_has_forked, target_has_vforked, and target_has_execd.
2209 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2210 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2211 (CHILD_WAIT): Define.
2212 (child_wait): Add prototype.
2213 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2214 Add prototype.
2215 (hpux_has_vforked): Likewise, from child_has_vforked.
2216 (hpux_has_execd): Likewise, from child_has_execd.
2217 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2218 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2219 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2220 and hpux_has_syscall_event instead of the target hooks.
2221 * infrun.c (inferior_has_forked, inferior_has_vforked)
2222 (inferior_has_execd): New functions.
2223 * inftarg.c (not_same_real_pid): Remove.
2224 (child_wait): Remove references to not_same_real_pid,
2225 target_has_forked, target_has_vforked, target_has_execd,
2226 and target_has_syscall_event.
2227 (child_has_forked, child_has_vforked, child_has_execd)
2228 (child_has_syscall_event): Remove.
2229 (init_child_ops): Remove references to child_has_forked,
2230 child_has_vforked, child_has_execd, and child_has_syscall_event.
2231 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2232 (hpux_has_vforked): Likewise, from child_has_vforked.
2233 (hpux_has_execd): Likewise, from child_has_execd.
2234 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2235 * target.c (cleanup_target): Remove references to
2236 to_has_forked, to_has_vforked, to_has_execd, and
2237 to_has_syscall_event.
2238 (update_current_target): Likewise.
2239 (setup_target_debug): Likewise.
2240 (debug_to_has_forked): Remove.
2241 (debug_to_has_vforked): Remove.
2242 (debug_to_has_execd): Remove.
2243 (debug_to_has_syscall_event): Remove.
2244 * target.h (struct target_ops): Remove to_has_forked.
2245 to_has_vforked, to_has_execd, and to_has_syscall_event.
2246 (child_has_forked, child_has_vforked, child_has_execd)
2247 (child_has_syscall_event): Remove prototypes.
2248 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2249 prototypes.
2250 (target_has_forked, target_has_vforked, target_has_execd)
2251 (target_has_syscall_event): Remove macros.
2252
4088142a
DJ
22532002-11-16 Daniel Jacobowitz <drow@mvista.com>
2254
2255 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2256 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2257 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2258 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2259 * target.c (cleanup_target): Remove reference to
2260 to_can_follow_vfork_prior_to_exec.
2261 (update_current_target): Likewise.
2262 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2263 (setup_target_debug): Remove reference to
2264 to_can_follow_vfork_prior_to_exec.
2265 * target.h (struct target_ops): Remove
2266 to_can_follow_vfork_prior_to_exec.
2267 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2268 (target_can_follow_vfork_prior_to_exec): Remove definition.
2269 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2270 define.
2271 * infrun.c (follow_vfork_when_exec): Remove.
2272 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2273 (follow_exec): Likewise.
2274 (handle_inferior_event): Likewise.
2275 (keep_going): Likewise.
2276
18cde8d5
AC
22772002-11-15 Andrew Cagney <cagney@redhat.com>
2278
2279 * frame.c (generic_unwind_get_saved_register): Make static.
2280 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2281 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2282 defaults to generic_unwind_get_saved_register.
2283 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2284 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2285 * frv-tdep.c (frv_gdbarch_init): Ditto.
2286 * i386-tdep.c (i386_gdbarch_init): Ditto.
2287 * s390-tdep.c (s390_gdbarch_init): Ditto.
2288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2289 * v850-tdep.c (v850_gdbarch_init): Ditto.
2290 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2291 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2292 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2293
a6b063af
AC
22942002-11-15 Andrew Cagney <cagney@redhat.com>
2295
2296 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2297 i386-tdep.c.
2298
f407986f
AC
22992002-11-15 Andrew Cagney <cagney@redhat.com>
2300
2301 * frame.h (sigtramp_saved_pc): Delete declaration.
2302 * blockframe.c (sigtramp_saved_pc): Delete function.
2303 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2304 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2305 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2306 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2307
f18c5a73
AC
23082002-11-15 Andrew Cagney <ac131313@redhat.com>
2309
2310 * frame.c (frame_pc_unwind): New function.
2311 (frame_saved_regs_pc_unwind): New function.
2312 (frame_register_unwind): Pass unwind_cache instead of
2313 register_unwind_cache.
2314 (set_unwind_by_pc): Add unwind_pc parameter, set.
2315 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2316 (get_prev_frame): Ditto.
2317 * frame.h (frame_pc_unwind_ftype): Declare.
2318 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2319 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2320 (frame_pc_unwind): Declare.
2321 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2322 (struct dummy_frame): Add comment mentioning that values are for
2323 previous frame.
2324 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2325 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2326 (generic_file_frame_chain_valid): Ditto.
2327 * stack.c (frame_info): Ditto.
2328
d9285969 23292002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
2330
2331 * linespec.c (locate_first_half): New function.
2332 (decode_line_1): Move code into locate_first_half.
2333
d741b867
AC
23342002-11-15 Andrew Cagney <ac131313@redhat.com>
2335
2336 * complaints.h: Add comment explaining how to eliminate a
2337 deprecated_complain call.
24382c5c 2338 * complaints.h: Fix spelling errors.
d741b867 2339
82d03c99
DC
23402002-11-15 David Carlton <carlton@math.stanford.edu>
2341
2342 * printcmd.c: Remove #include "disasm.h".
2343
c97eb5d9
AC
23442002-11-14 Andrew Cagney <ac131313@redhat.com>
2345
2346 * frame.h: Move the most relevant interface functions to the start
2347 of the file.
2348
524d7c18
AC
23492002-11-14 Andrew Cagney <ac131313@redhat.com>
2350
2351 * regcache.h (deprecated_registers): Rename registers.
2352 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2353 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2354 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2355 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2356 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2357 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2358 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2359 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2360 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2361 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2362 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2363 * v850ice.c: Update.
2364
6411e720
AC
2365Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2366
2367 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2368 NULL buffer.
2369
73937e03
AC
23702002-11-13 Andrew Cagney <cagney@redhat.com>
2371
2372 * regcache.h (deprecated_read_register_bytes): Rename
2373 read_register_bytes.
2374 (deprecated_write_register_bytes): Rename write_register_bytes.
2375 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2376 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2377 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2378 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2379 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2380 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2381 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2382 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2383 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2384 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2385 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2386 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2387 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2388 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2389
fb0cd46e
JB
23902002-11-13 Jim Blandy <jimb@redhat.com>
2391
2392 * findvar.c (read_var_value): Doc fix.
2393
2d28509a
AC
23942002-11-13 Andrew Cagney <cagney@redhat.com>
2395
2396 * regcache.c (struct regcache): Replace passthough_p with
2397 readonly_p.
2398 (regcache_xmalloc): Initialize readonly_p.
2399 (build_regcache): Initialize readonly_p.
2400 (regcache_save): New function.
2401 (regcache_restore): New function.
2402 (regcache_cpy): Re-implement using regcache_save and
2403 regcache_restore.
2404 (regcache_raw_read): Update.
2405 (regcache_cooked_read): When a read-only cache, checked for cached
2406 pseudo register values.
2407 (regcache_raw_write): Assert that the cache is not read-only.
2408 Remove code handling a non-passthrough cache.
2409 * regcache.h (regcache_save): Declare.
2410 (regcache_restore): Declare.
2411
067df2e5
AC
24122002-11-13 Andrew Cagney <cagney@redhat.com>
2413
2414 * regcache.c (struct regcache_descr): Add fields
2415 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2416 (init_legacy_regcache_descr): Compute the size of a cooked
2417 register cache and then assign that to sizeof_raw_registers. Set
2418 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2419 (init_legacy_regcache_descr): Ditto.
2420
51b1fe4e
AC
24212002-11-13 Andrew Cagney <cagney@redhat.com>
2422
2423 * regcache.c (register_buffer): Move to near start of file, update
2424 description.
2425 (regcache_raw_read): Use.
2426 (regcache_raw_write): Use.
2427 (struct regcache): Rename raw_registers to registers and
2428 raw_register_valid_p to register_valid_p.
2429 (regcache_xmalloc): Update.
2430 (regcache_xfree): Update.
2431 (register_buffer): Update.
2432 (regcache_cpy): Update.
2433 (regcache_cpy_no_passthrough): Update.
2434 (regcache_valid_p): Update.
2435 (deprecated_grub_regcache_for_registers): Update.
2436 (deprecated_grub_regcache_for_register_valid): Update.
2437 (set_register_cached): Update.
2438 (regcache_raw_write): Update.
2439
80b4c677
PM
24402002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2441
2442 * p-exp.y (name_not_typename): Use copy_name to
2443 set current_type variable for fields of THIS.
2444
0f3fafde
DJ
24452002-11-12 Daniel Jacobowitz <drow@mvista.com>
2446
2447 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2448 * monitor.c (init_base_monitor_ops): Likewise.
2449 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2450 * remote-array.c (init_array_ops): Likewise.
2451 * remote-e7000.c (init_e7000_ops): Likewise.
2452 * remote-es.c (init_es1800_ops): Likewise.
2453 (init_es1800_child_ops): Likewise.
2454 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2455 * remote-sim.c (init_gdbsim_ops): Likewise.
2456 * remote-st.c (init_st2000_ops): Likewise.
2457 * sol-thread.c (init_sol_core_ops): Likewise.
2458 (init_sol_thread_ops): Likewise.
2459 * v850ice.c (init_850ice_ops): Likewise.
2460 * win32-nat.c (init_child_ops): Likewise.
2461 * wince.c (init_child_ops): Likewise.
2462
82c0260e
AC
24632002-11-12 Andrew Cagney <ac131313@redhat.com>
2464
2465 * utils.c (gdb_realpath): Make rp a constant pointer.
2466
70d35819
AC
24672002-11-12 Andrew Cagney <ac131313@redhat.com>
2468
2469 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2470 a constant buffer; cannonicalize_file_name(); realpath() with a
2471 pathconf() defined buffer, xstrdup().
2472
9835a8b0
AC
24732002-11-12 Andrew Cagney <ac131313@redhat.com>
2474
2475 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2476 to hang2.C; hang3.c to hang3.C.
2477
3f47be5c
EZ
24782002-11-11 Elena Zannoni <ezannoni@redhat.com>
2479
2480 * findvar.c (read_var_value): Reenable TLS code.
2481
24822002-11-11 Elena Zannoni <ezannoni@redhat.com>
2483 Jim Blandy <jimb@redhat.com>
2484
2485 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2486 * target.c (update_current_target): Add
2487 to_get_thread_local_address.
2488 * target.h (to_get_thread_local_address): Export.
2489 (target_get_thread_local_address): Define.
2490 (target_get_thread_local_address_p): Define.
2491 * thread-db.c: Include solib-svr4.h.
2492 (td_thr_tls_get_addr_p): Define.
2493 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2494 (thread_db_get_thread_local_address): New function.
2495 (init_thread_db_ops): Initialize to_get_thread_local_address.
2496 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2497 * configure: Regenerate.
2498 * config.in: Regenerate.
2499
636b1a6d
DC
25002002-11-11 David Carlton <carlton@math.stanford.edu>
2501
2502 * linespec.c (set_flags): New function.
2503 (decode_line_1): Move code into set_flags.
2504
44fe14ab
DC
25052002-11-11 David Carlton <carlton@math.stanford.edu>
2506
2507 * linespec.c (decode_line_1): Move chunks of code to separate
2508 functions.
2509 (initialize_defaults): New function.
2510 (decode_indirect): New function.
2511
e6f181f5
AC
25122002-11-11 Andrew Cagney <ac131313@redhat.com>
2513
8971b011
AC
2514 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2515 instead of void_code_ptr.
2516 (sigtramp_saved_pc): Ditto.
2517
e6f181f5
AC
2518 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2519 i386_fp_regnum_p.
2520
01ad7f36
DJ
25212002-11-10 Daniel Jacobowitz <drow@mvista.com>
2522
2523 * gdbtypes.h (struct main_type): Move artificial flag out of
2524 loc. New member of ``struct field'' named static_kind. Reduce
2525 overloaded meaning of bitsize.
2526 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2527 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2528 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2529
2530 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2531 new fields.
2532 (template_to_fixed_record_type, template_to_static_fixed_type)
2533 (to_record_with_fixed_variant_part): Likewise.
2534 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2535 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2536 * dwarfread.c (struct_type, enum_type): Likewise.
2537 * hpread.c (hpread_read_enum_type)
2538 (hpread_read_function_type, hpread_read_doc_function_type)
2539 (hpread_read_struct_type): Likewise.
2540 * mdebugread.c (parse_symbol): Likewise.
2541
bf1e52be
AC
25422002-11-10 Andrew Cagney <ac131313@redhat.com>
2543
2544 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2545 * stack.c (print_frame_info_base): Update.
2546 (print_frame_info_base, frame_info): Update.
2547 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2548 (sparc_frame_saved_pc): Update.
2549 * ada-lang.c (find_printable_frame): Update.
2550 * breakpoint.c (deprecated_frame_in_dummy): Update.
2551
ce556f85
MK
25522002-11-09 Mark Kettenis <kettenis@gnu.org>
2553
2554 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2555 defined.
2556 (regmap): Extend to cover all registers.
2557 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2558 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2559 definitions.
2560 (fetch_register, sore_register): Simplify.
2561 (old_fetch_inferior_registers, old_store_inferior_registers):
2562 Remove functions.
2563 (cannot_fetch_register, cannot_store_register): Change
2564 implementation to use regmap array to decide which registers
2565 cannot be fetched/stored. This removes $orig_eax from the
2566 registers that cannot be fetched/stored.
2567 (fetch_inferior_registers): Call fetch_register directly instead
2568 of calling old_fetch_inferior_registers.
2569 (store_inferior_registers): Call store_register directly instead
2570 of calling old_store_inferior_registers.
2571 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2572 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2573 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2574
932bb524
KD
25752002-11-09 Klee Dienes <kdienes@apple.com>
2576
2577 * i387-tdep.c (i387_supply_register): When called with NULL as a
2578 buffer, mark the register as not provided (to mirror the behavior
2579 of supply_register).
2580 (i387_supply_fxsave): Ditto.
2581 (i387_supply_fsave): Ditto (inherits the behavior from
2582 i387_supply_register).
2583
ebe68b27
KD
25842002-11-09 Klee Dienes <kdienes@apple.com>
2585
2586 * blockframe.c (sigtramp_saved_pc): Use
2587 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2588 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2589 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2590
15220c65
AC
25912002-11-09 Andrew Cagney <ac131313@redhat.com>
2592
2593 * frame.c (get_prev_frame): Test prev_p to identify a previously
2594 unwound frame. Initialize prev_p.
2595 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2596 comment.
2597
95adb866
AC
25982002-11-09 Andrew Cagney <ac131313@redhat.com>
2599
2600 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2601 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2602 more comments. Zap dead code.
2603
e71ecd70
MK
26042002-11-09 Mark Kettenis <kettenis@gnu.org>
2605
2606 * infcmd.c (print_vector_info, print_float_info): Move code that
2607 checks whether the target has any registers and whether there is a
2608 selected frame up, such that it is also used if a target provides
2609 multi-arch definitions of these functions.
2610
c525330d
AC
26112002-11-08 Andrew Cagney <ac131313@redhat.com>
2612
72bdd927
AC
2613 * Makefile.in (DESTDIR): Define.
2614 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2615 prefix.
2616
c525330d
AC
2617 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2618 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2619
38c968cf
AC
26202002-11-08 Andrew Cagney <ac131313@redhat.com>
2621
2622 * i386-linux-tdep.c: Include "reggroups.h".
2623 (i386_linux_register_reggroup_p): New function.
2624 (i386_linux_init_abi): Set register_reggroup_p to
2625 i386_linux_register_reggroup_p.
2626 * i386-tdep.h (i386_register_reggroup_p): Declare.
2627 * i386-tdep.c: Include "reggroups.h".
2628 (i386_init_reggroups): New function.
2629 (i386_add_reggroups): New function.
2630 (i386_register_reggroup_p): New function.
2631 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2632 (_initialize_i386_tdep): Call i386_init_reggroups.
2633 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2634 specific reggroups.
2635
19e33363
MK
26362002-11-09 Mark Kettenis <kettenis@gnu.org>
2637
371a6e84
MK
2638 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2639 request that's available in *BSD.
2640
94ba925a
MK
2641 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2642
19e33363
MK
2643 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2644 FDOFF_REGNUM.
2645
8779790c
AC
26462002-11-08 Andrew Cagney <ac131313@redhat.com>
2647
2648 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2649 * dummy-frame.c (find_dummy_frame): Rename
2650 generic_find_dummy_frame, make static. Return the dummy frame
2651 instead of the regcache.
2652 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2653 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2654 (dummy_frame_register_unwind): Rename
2655 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2656 * dummy-frame.h (dummy_frame_register_unwind): Rename
2657 generic_call_dummy_register_unwind.
2658
8674b74f
MK
26592002-11-08 Mark Kettenis <kettenis@gnu.org>
2660
2661 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2662 except the inclusion of "i386/tm-i386.h", to...
2663 * config/i386/nm-i386v42mp.h: ...here.
2664 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2665
4c1e7e9d
AC
26662002-11-08 Andrew Cagney <ac131313@redhat.com>
2667
2668 * Makefile.in (frame.o): Update dependencies.
2669 * blockframe.c (current_frame, frame_obstack_alloc)
2670 (frame_saved_regs_zalloc, get_current_frame)
2671 (set_current_frame, create_new_frame)
2672 (set_unwind_by_pc, get_next_frame)
2673 (flush_cached_frames, reinit_frame_cache)
2674 (frame_saved_regs_register_unwind)
2675 (deprecated_generic_get_saved_register)
2676 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2677 (_initialize_blockframe): Move frame code from here...
2678 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2679 "annotate.h" and "dummy-frame.h".
2680 (_initialize_frame): New function.
2681
921e78cf
JB
26822002-11-08 Jim Blandy <jimb@redhat.com>
2683
2684 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2685 when we finish a function a context.
2686 * buildsym.h (outermost_context_p): New macro.
2687 (Bug analyzed by David Edelsohn.)
2688
9c1412c1
AC
26892002-11-08 Andrew Cagney <ac131313@redhat.com>
2690
2691 * blockframe.c: Include "dummy-frame.h".
2692 (struct dummy_frame, dummy_frame_stack)
2693 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2694 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2695 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2696 (generic_save_call_dummy_addr, generic_pop_current_frame)
2697 (generic_pop_dummy_frame, generic_fix_call_dummy)
2698 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2699 dummy frame code from here...
2700 * dummy-frame.c: ...to here. New file.
2701 * dummy-frame.h: New file.
2702 (generic_call_dummy_register_unwind): Declare.
2703 (generic_find_dummy_frame): Declare.
2704 * Makefile.in (SFILES): Add dummy-frame.c.
2705 (dummy-frame.o): Specify dependencies.
2706 (dummy_frame_h): Define.
2707 (COMMON_OBS): Add dummy-frame.o.
2708 (blockframe.o): Update dependencies.
2709
208d8187
JB
27102002-11-08 Jim Blandy <jimb@redhat.com>
2711
2712 * dwarf2read.c (read_func_scope): Restore local_symbols and
2713 param_symbols after we finish the function context. (Based on a
2714 patch from David Edelsohn.)
2715
413dad4d
DC
27162002-11-08 David Carlton <carlton@math.stanford.edu>
2717
2718 * linespec.c (symbol_found): New function.
2719 (minsym_found): New function.
2720 (decode_line_1): Separate out some code into separate functions.
2721
5512c44a
JB
27222002-11-08 Joel Brobecker <brobecker@gnat.com>
2723
2724 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2725 the benefit of the interix target.
2726 * i386-tdep.h (i386_frameless_signal_p): Declare.
2727
1b33ef47
AC
27282002-11-08 Andrew Cagney <ac131313@redhat.com>
2729
2730 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2731 declaration that snuck in from change below.
2732
23a34459
AC
27332002-11-06 Andrew Cagney <cagney@redhat.com>
2734
2735 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2736 all callers.
2737 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2738 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2739 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2740 (i386_mxcsr_regnum_p): new function. Use instead of
2741 MXCSR_REGNUM_P.
2742 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2743 (i386_sse_regnum_p): Declare.
2744 (i386_mxcsr_regnum_p): Declare.
2745 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2746 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2747 (IS_FP_REGNUM): Update definition.
2748 (IS_FPU_CTRL_REGNUM): Update definition..
2749 (IS_SSE_REGNUM): Update definition..
2750 * i386v-nat.c (register_u_addr): Update.
2751 * go32-nat.c (fetch_register): Update.
2752 (store_register): Update.
2753
d709c020
JB
27542002-11-07 Joel Brobecker <brobecker@gnat.com>
2755
2756 Preparation work to convert the hppa targets to multiarch partial.
2757
2758 * hppa-tdep.c: Add new functions replacing macro bodies from
2759 config/pa/tm-hppa.h. These function will be used to initialize
2760 the gdbarch structure. Import some comments from tm-hppa.h,
2761 and place them where appropriate, to avoid loosing them when
2762 we cleanup this file.
2763 (hppa_reg_struct_has_addr): New function.
2764 (hppa_inner_than): New function.
2765 (hppa_stack_align): New function.
2766 (hppa_pc_requires_run_before_use): New function.
2767 (hppa_instruction_nullified): New function.
2768 (hppa_register_byte): New function.
2769 (hppa_register_virtual_type): New function.
2770 (hppa_store_struct_return): New function.
2771 (hppa_cannot_store_register): New function.
2772 (hppa_frame_args_address): New function.
2773 (hppa_frame_locals_address): New function.
2774 (hppa_smash_text_address): New function.
2775 (hppa_coerce_float_to_double): New function. Requires the inclusion
2776 of "language.h".
2777
2778 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2779
2780 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2781 gdbarch-eligible macro to a call to the new associated function
2782 created in hppa-tdep.c.
2783 (INNER_THAN): Likewise.
2784 (STACK_ALIGN): Likewise.
2785 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2786 (INSTRUCTION_NULLIFIED): Likewise.
2787 (REGISTER_BYTE): Likewise.
2788 (REGISTER_VIRTUAL_TYPE): Likewise.
2789 (STORE_STRUCT_RETURN): Likewise.
2790 (CANNOT_STORE_REGISTER): Likewise.
2791 (FRAME_ARGS_ADDRESS): Likewise.
2792 (FRAME_LOCALS_ADDRESS): Likewise.
2793 (SMASH_TEXT_ADDRESS): Likewise.
2794 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2795 (ABOUT_TO_RETURN): Delete, as no longer used.
2796
83c31e7d
FN
27972002-11-07 Fernando Nasser <fnasser@redhat.com>
2798
2799 * printcmd.c (disassemble_command): Remove obsolete function.
2800 (_initialize_printcmd): Do not create disassemble command here.
2801 * cli/cli-cmds.c (disassemble_command): New function. Implements
2802 disassemble command.
2803 (init_cli_cmds): Create disassemble command here instead.
2804
0ec30a36
AC
28052002-11-07 Andrew Cagney <ac131313@redhat.com>
2806
2807 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2808
e600bd34
AC
28092002-11-07 Andrew Cagney <ac131313@redhat.com>
2810
2811 * regcache.h (regcache_cooked_read_using_offset_hack)
2812 (regcache_cooked_write_using_offset_hack): Delete declarations.
2813 (register_changed): Delete declaration.
2814 * regcache.c (regcache_cooked_read_using_offset_hack)
2815 (regcache_cooked_write_using_offset_hack): Delete functions.
2816 (cooked_xfer_using_offset_hack): Delete function.
2817 (register_changed): Delete function.
2818
568f8739
JB
28192002-11-07 Jim Blandy <jimb@redhat.com>
2820
2821 * macroscope.c: #include "complaints.h".
2822 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2823 but not in the macro table.
2824 * Makefile.in (macroscope.o): Record dependency.
2825
b0718b7b
JB
28262002-11-07 Joel Brobecker <brobecker@gnat.com>
2827
2828 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2829
2b9e5f3f
AC
28302002-11-07 Andrew Cagney <ac131313@redhat.com>
2831
2832 * regcache.c (deprecated_registers_fetched): Update.
2833 * regcache.h (deprecated_registers_fetched): Rename
2834 registers_fetched.
2835 * remote-vxsparc.c (vx_read_register): Update.
2836 * remote-vxmips.c (vx_read_register): Update.
2837 * remote-vx68.c (vx_read_register): Update.
2838 * irix5-nat.c (fetch_core_registers): Update.
2839 * mipsm3-nat.c (fetch_inferior_registers): Update.
2840 * sun3-nat.c (fetch_inferior_registers): Update.
2841 * symm-nat.c (fetch_inferior_registers): Update.
2842 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2843 (fetch_core_registers): Update.
2844 (fetch_kcore_registers): Update.
2845 * mips-nat.c (fetch_inferior_registers): Update.
2846 * corelow.c (get_core_registers): Update.
2847 * a68v-nat.c (fetch_inferior_registers): Update.
2848
e6e68f1f
JB
28492002-11-06 Joel Brobecker <brobecker@gnat.com>
2850
2851 Put in place the framework necessary for multiarching the hppa targets.
2852 * hppa-tdep.c (hppa_gdbarch_init): New function.
2853 (hppa_dump_tdep): New function.
2854 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2855 tdep structure dumper.
2856 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2857 until the multi-arching conversion has partially been completed.
2858
492254e9
AC
28592002-11-06 Andrew Cagney <ac131313@redhat.com>
2860
2861 * valops.c (value_assign): Merge lval_register case into
2862 lval_reg_frame_relative. Use frame_register and
2863 regcache_cooked_write instead of get_saved_register and
2864 write_register_bytes. After flushing the register cache, try to
2865 re-select the selected frame.
2866
8262ee23
AC
28672002-11-06 Andrew Cagney <ac131313@redhat.com>
2868
2869 * regcache.h (deprecated_register_valid): Rename register_valid.
2870 * regcache.c: Update.
2871 * ia64-aix-nat.c: Update.
2872 * i386gnu-nat.c: Update.
2873 * alpha-nat.c: Update.
2874 * sparc-nat.c: Update.
2875 * lynx-nat.c: Update.
2876 * remote-mips.c: Update.
2877
4facf7e8
JB
28782002-11-06 Joel Brobecker <brobecker@gnat.com>
2879
2880 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2881 to end of file, to be more consistent with the pratice followed
2882 by other targets.
2883
f9418c0f
AC
28842002-11-06 Andrew Cagney <ac131313@redhat.com>
2885
2886 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2887 (print_float_info): Print registers in float_reggroup.
2888 (print_vector_info): Print registers in vector_reggroup.
2889 (default_print_registers_info): When all, print registers in
2890 all_reggroup. Otherwize, print registers in general_reggroup.
2891 (registers_info): Rewrite. Add support for register groups.
2892 Eliminate a goto.
2893
3fe235a7
EZ
28942002-11-06 Elena Zannoni <ezannoni@redhat.com>
2895
2896 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2897 ages.
2898 (symtab_symbol_info): Remove eons old ifdeffed out code.
2899 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2900 command.
2901
ef944135
TR
29022002-11-06 Theodore A. Roth <troth@openavr.org>
2903
2904 * c-exp.y: Add missing semi-colons.
2905 * f-exp.y: Add missing semi-colons.
2906 * m2-exp.y: Add missing semi-colons.
2907 * p-exp.y: Add missing semi-colons.
2908 Add empty action to start rule to avoid a type clash error when
2909 building with bison >= 1.50.
2910
f8302a57
JB
29112002-11-06 Jim Blandy <jimb@redhat.com>
2912
2913 * macrotab.h (struct macro_source_file): Doc fix.
2914
6e382aa3
JJ
29152002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2916
2917 * varobj.c (child_exists, cplus_number_of_children): Change
2918 STREQ macro references to strcmp.
2919 (cplus_name_of_child): Change code to handle the fact that
2920 fields are not necessarily contiguous with regards to their
2921 access control. This is a fix for PR gdb/792.
2922
a216a322
AC
29232002-11-05 Andrew Cagney <ac131313@redhat.com>
2924
2925 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2926 * gdbarch.h, gdbarch.c: Regnerate.
2927 * frame.h (frame_register): Declare.
2928 * frame.c (frame_register): New function.
2929 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2930 GET_SAVED_REGISTER, otherwize call
2931 generic_unwind_get_saved_register.
2932 (frame_register_read): Use frame_register instead of
2933 get_saved_register.
2934
7d5b6fdd
EZ
29352002-11-05 Elena Zannoni <ezannoni@redhat.com>
2936
2937 From Jim Ingham <jingham@apple.com>:
2938 * event-top.c (gdb_disable_readline): New function.
2939 (_initialize_event_loop): Move comment.
2940
b7c64260
EZ
29412002-11-05 Elena Zannoni <ezannoni@redhat.com>
2942
2943 * event-loop.c (start_event_loop): Add comment.
2944 Update copyright.
2945
c2e1b8f2
AC
29462002-11-05 Andrew Cagney <ac131313@redhat.com>
2947
2948 * infcmd.c (default_print_registers_info): Do not call
2949 PRINT_REGISTER_HOOK.
2950
87647bb0
AC
29512002-11-05 Andrew Cagney <ac131313@redhat.com>
2952
2953 * sparc-tdep.c (sparc_print_register_hook): Make static.
2954 (sparc_print_registers_info): New function.
2955 (sparc_do_registers_info): New function.
2956 (sparclet_print_registers_info): New function.
2957 (sparclet_do_registers_info): New function.
2958 (do_sparc_print_registers_info): New function.
2959 (sparc_print_registers): New static function, clone of infcmd.c's
2960 default_print_registers_info.
2961 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2962 (sparclet_do_registers_info): Declare.
2963 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2964 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2965 Re-define.
2966 (sparc_do_registers_info): Declare.
2967 (PRINT_REGISTER_HOOK): Delete macro.
2968 (sparc_print_register_hook): Delete declaration.
2969
8155455b
DC
29702002-11-05 David Carlton <carlton@math.stanford.edu>
2971
2972 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2973 functions.
2974 (lookup_symbol_aux_local): New function.
2975 (lookup_symbol_aux_symtabs): New function.
2976 (lookup_symbol_aux_psymtabs): New function.
2977
29924310
DC
29782002-11-05 David Carlton <carlton@math.stanford.edu>
2979
2980 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2981 previous values of 'objfile' and 'block'.
2982
cc303028
PM
29832002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2984
2985 * values.c (value_change_enclosing_type): Set
2986 enclosing_type field correctly also for the case where
2987 more memory needs to be allocated.
2988
1d70089a
MK
29892002-11-03 Mark Kettenis <kettenis@gnu.org>
2990
f16a25ae
MK
2991 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2992 of puts_filtered.
2993
1d70089a
MK
2994 * i387-tdep.c (i387_print_float_info): Replace calls to
2995 register_read and deprecated_read_register_gen with calls to
2996 frame_register_read, and make the necessary adjustments to the
2997 surrounding code.
2998
7e20f3fb
AC
29992002-11-02 Andrew Cagney <ac131313@redhat.com>
3000
3001 * gdbarch.sh (register_reggroup_p): Allow default value.
3002 * gdbarch.h, gdbarch.c: Regenerate.
3003
192dbe33
AC
30042002-11-02 Andrew Cagney <ac131313@redhat.com>
3005
3006 * regcache.h: Add coment indicating replacements for deprecated
3007 functions.
3008
b59ff9d5
AC
30092002-11-02 Andrew Cagney <cagney@redhat.com>
3010
3011 * reggroups.h, reggroups.c: New files.
3012 * regcache.c: Include "reggroups.h".
3013 (enum regcache_dump_what): Add `regcache_dump_groups'.
3014 (regcache_dump): Contract size of the "Type" column. When
3015 specified, dump the register's groups.
3016 (maintenance_print_register_groups): New function.
3017 (_initialize_regcache): Add command `maint print register-groups'.
3018 * Makefile.in (COMMON_OBS): Add reggroups.o
3019 (SFILES): Add reggroups.c.
3020 (reggroups_h): Define.
3021 (regcache.o, gdbarch.o): Update dependencies.
3022 (reggroups.o): Specify dependencies.
3023 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3024 Add opaque declaration for `struct reggroup' in generated .h file.
3025 Include "reggroups.h" in generated .c file.
3026 gdbarch.h, gdbarch.c: Re-generate.
3027
4caf0990
AC
30282002-11-02 Andrew Cagney <cagney@redhat.com>
3029
3030 * regcache.h (deprecated_read_register_gen): Rename
3031 read_register_gen.
3032 (deprecated_write_register_gen): Rename write_register_gen.
3033 * i387-tdep.c: Update.
3034 * x86-64-linux-nat.c: Update
3035 * wince.c: Update.
3036 * thread-db.c: Update.
3037 * win32-nat.c: Update.
3038 * mips-tdep.c: Update.
3039 * d10v-tdep.c: Update.
3040 * cris-tdep.c: Update.
3041 * remote-sim.c: Update.
3042 * remote-rdi.c: Update.
3043 * remote-rdp.c: Update.
3044 * frame.c: Update.
3045 * target.c: Update.
3046 * blockframe.c: Update.
3047 * x86-64-tdep.c: Update.
3048 * xstormy16-tdep.c: Update.
3049 * sh-tdep.c: Update.
3050 * s390-tdep.c: Update.
3051 * rs6000-tdep.c: Update.
3052 * sparc-tdep.c: Update.
3053 * i386-tdep.c: Update.
3054 * dwarf2cfi.c: Update.
3055 * regcache.c: Update.
3056
7a7adcdf
JB
30572002-11-01 Joel Brobecker <brobecker@gnat.com>
3058
3059 New interix-specific files:
3060 * config/i386/nm-interix.h: New file.
3061 * config/i386/interix.mh: New file.
3062 * config/i386/interix.mt: New file.
3063 * i386-interix-nat.c: New file.
3064 * i386-interix-tdep.c: New file.
3065
bdcdd535
AC
30662002-11-01 Andrew Cagney <cagney@redhat.com>
3067
3068 * frame.h (deprecated_generic_get_saved_register): Rename
3069 generic_get_saved_register.
3070 * blockframe.c (deprecated_generic_get_saved_register): Update.
3071 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3072 (xstormy16_frame_saved_register): Update.
3073 * sh-tdep.c (sh_gdbarch_init): Update.
3074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3075 * ia64-tdep.c (ia64_get_saved_register): Update.
3076 * cris-tdep.c (cris_gdbarch_init): Update.
3077 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3078 * arm-tdep.c (arm_gdbarch_init): Update.
3079
2a4b7c45
DJ
30802002-10-31 Daniel Jacobowitz <drow@mvista.com>
3081
3082 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3083
ef17e74b
DJ
30842002-10-31 Daniel Jacobowitz <drow@mvista.com>
3085
3086 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3087 trampolines in sigaction.
3088
4904ba5b
AC
30892002-10-31 Andrew Cagney <cagney@redhat.com>
3090
3091 * h8300-tdep.c: Include "gdb_assert.h".
3092 (h8300_print_register): Add gdbarch, file and frame parameters.
3093 Use frame_read_unsigned_register to read the register's value.
3094 Use fprintf_filtered to display output.
3095 (h8300_print_registers_info): Replace h8300_do_registers_info.
3096 (h8300_gdbarch_init): Set print_registers_info.
3097
f908a0eb
AC
30982002-10-31 Andrew Cagney <cagney@redhat.com>
3099
3100 * frame.c (frame_read_unsigned_register): New function.
3101 (frame_read_signed_register): New function.
3102 * frame.h (frame_read_unsigned_register): Declare.
3103 (frame_read_signed_register): Declare.
3104
c5646e11
AC
31052002-10-31 Andrew Cagney <cagney@redhat.com>
3106
3107 * h8500-tdep.c (h8500_print_registers_info): New static function,
3108 clone of infcmd.c's default_print_registers_info.
3109 (h8500_do_registers_info): New funtion.
3110 (h8500_print_register_hook): Rename print_register_hook, make
3111 static.
3112
3113 * config/h8500/tm-h8500.h: Update copyright.
3114 (DEPRECATED_DO_REGISTERS_INFO): Define.
3115 (h8500_do_registers_info: Declare.
3116 (PRINT_REGISTER_HOOK): Delete macro.
3117 (print_register_hook): Delete function.
3118
0bdd672b
AC
31192002-10-31 Andrew Cagney <cagney@redhat.com>
3120
3121 * z8k-tdep.c (z8k_print_register_hook): Make static.
3122 (z8k_print_registers_info): New static function, clone of
3123 infcmd.c's default_print_registers_info.
3124 (z8k_do_registers_info): New function. Wrap
3125 z8k_print_registers_info.
3126 * config/z8k/tm-z8k.h: Update copyright.
3127 (PRINT_REGISTER_HOOK): Delete macro.
3128 (z8k_print_register_hook): Delete declaration.
3129 (DEPRECATED_DO_REGISTERS_INFO): Define.
3130 (z8k_do_registers_info): Declare.
3131
bf9c25dc
JB
31322002-10-30 Joel Brobecker <brobecker@gnat.com>
3133
3134 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3135 as this is already provided by value.h, and was actually causing
3136 a compilation error because of a conflict in parameter type
3137 declaration due to a missing const keyword.
3138 (low_text_segment_addres): Fix a compilation warning.
3139
2c665b51
DJ
31402002-10-29 Daniel Jacobowitz <drow@mvista.com>
3141
3142 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3143 registers without a name.
3144 (mips_linux_cannot_store_register): Don't store registers without
3145 a name.
3146
e70ea697
DC
31472002-10-28 David Carlton <carlton@math.stanford.edu>
3148
3149 * symtab.c (find_addr_symbol): Delete. (It was already commented
3150 out.)
3151 * symtab.h: Delete prototype for find_addr_symbol.
3152
903ad3a6
AC
31532002-10-26 Andrew Cagney <cagney@redhat.com>
3154
3155 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3156 DO_REGISTERS_INFO.
3157 gdbarch.h, gdbarch.c: Re-generate.
3158 * infcmd.c (default_print_registers_info): Update reference.
3159 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3160 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3161 * sh-tdep.c (sh_gdbarch_init): Ditto.
3162 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3163 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3164
ab91194c
MK
31652002-10-26 Mark Kettenis <kettenis@gnu.org>
3166
e3033f15
MK
3167 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3168 cfi_init_extra_frame_info.
3169 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3170 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3171
b83b026c
MK
3172 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3173 target where necessary. Add more comments and remove the ones
3174 that don't provide any useful information.
3175
267bf4bb
MK
3176 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3177 deprecated_read_register_dummy with
3178 frame_unwind_unsigned_register.
3179
751f1375
MK
3180 * i386-tdep.c (i386_extract_struct_value_address): Use
3181 regcache_raw_read_unsigned instead of
3182 regcache_cooked_read_unsigned since we know that the register
3183 we're reading isn't a pseudo register. Rename variable 'val' into
3184 the more descriptive 'addr'.
3185
26abbdc4
MK
3186 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3187 (x86_64_push_return_address): Add comment.
3188 (x86_64_pop_frame): Make static.
3189 (examine_argument): Clarify comment.
3190 (x86_64_skip_prologue): Make prolog_expact variable static.
3191
9f1549cc
MK
3192 * dwarf2cfi.c: Fix some formatting problems.
3193 (context_cpy, read_encoded_pointer): Clarify comments.
3194
ab91194c
MK
3195 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3196 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3197 i386 target back into x86_64_gdbarch_init. Add some comments and
3198 remove meaningless ones.
3199
72367fb4
AC
32002002-10-25 Andrew Cagney <cagney@redhat.com>
3201
3202 * complaints.h (struct deprecated_complaint): Rename `struct
3203 complaint'.
3204 * complaints.c (complain): Update.
3205 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3206 incorrect comment indicating that "symfile.h" was being included
3207 for the `struct complaint' definition.
3208 * remote-vx.c: Update.
3209 * objc-lang.c: Update.
3210 * xcoffread.c: Update.
3211 * hpread.c: Update.
3212 * mdebugread.c: Update.
3213 * stabsread.c: Update.
3214 * dwarf2read.c: Update.
3215 * dwarfread.c: Update.
3216 * elfread.c: Update.
3217 * coffread.c: Update.
3218 * stabsread.h: Update.
3219 * dbxread.c: Update.
3220 * buildsym.c: Update.
3221 * gdbtypes.c: Update.
3222 * macrotab.c: Update.
3223
1f2baacc
MK
32242002-10-25 Mark Kettenis <kettenis@gnu.org>
3225
0c1a73d6
MK
3226 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3227 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3228 (x86_64_init_abi): ...new function.
3229
6aee4d54 3230 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
3231 * i386v-nat.c: Include "i386-tdep.h".
3232
8f9cbe01
AC
32332002-10-25 Andrew Cagney <cagney@redhat.com>
3234
5f11f355
AC
3235 * gdbtypes.c (address_space_name_to_int): Update.
3236 (address_space_int_to_name): Update.
3237 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3238 multi-arch predicate.
3239 (address_class_name_to_type_flags): Ditto.
3240 * gdbarch.h, gdbarch.c: Re-generate.
3241
8f9cbe01
AC
3242 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3243
e8d96a5d
MH
32442002-10-24 Martin M. Hunt <hunt@redhat.com>
3245
3246 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3247
fe39c653
EZ
32482002-10-24 Elena Zannoni <ezannoni@redhat.com>
3249
3250 * symtab.h (INIT_SAL): Delete macro.
3251 (init_sal): Export.
3252 * symtab.c (init_sal): New function.
3253
3254 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3255 to init_sal function call.
3256 (find_sal_from_funcs_and_line): Ditto.
3257 (all_sals_for_line): Ditto.
3258 * breakpoint.c (create_internal_breakpoint): Ditto.
3259 (create_fork_vfork_event_catchpoint): Ditto.
3260 (create_exec_event_catchpoint): Ditto.
3261 (parse_breakpoint_sals): Ditto.
3262 (watch_command_1): Ditto.
3263 (handle_gnu_4_16_catch_command): Ditto.
3264 (clear_command): Ditto.
3265 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3266 * infcmd.c (run_stack_dummy): Ditto.
3267 * infrun.c (process_event_stop_test): Ditto.
3268 (check_sigtramp2): Ditto.
3269 (step_over_function): Ditto.
3270 * linespec.c (decode_line_2): Ditto.
3271 (decode_line_1): Ditto.
3272 * source.c (line_info): Ditto.
3273 * symtab.c (find_pc_sect_line): Ditto.
3274
baed091b
ML
32752002-10-24 Michal Ludvig <mludvig@suse.cz>
3276
3277 * dwarf2cfi.c (struct context)
3278 (struct context_reg): Moved to dwarf2cfi.h
3279 (context_alloc, frame_state_alloc, context_cpy):
3280 Made extern instead of static, removed prototypes.
3281 * dwarf2cfi.h (struct context)
3282 (struct context_reg): New, moved from dwarf2cfi.c
3283 (context_alloc, frame_state_alloc, context_cpy):
3284 New prototypes.
3285 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3286 Changed from static to extern.
3287 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3288 (LINUX_SIGCONTEXT_FP_OFFSET)
3289 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3290 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3291 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3292 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3293 set_gdbarch_*() calls now use x86-64 specific functions
3294 instead of DWARF2 CFI ones.
3295 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3296 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3297 (x86_64_init_extra_frame_info): New prototypes.
3298
c38da1af
DC
32992002-10-23 David Carlton <carlton@math.stanford.edu>
3300
3301 * linespec.c: #include "parser-defs.h".
3302 Delete prototype for find_template_name_end.
3303 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3304
fb9b6b35
JJ
33052002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3306
3307 * NEWS: add recent mi fixes.
3308 * varobj.c (struct varobj): Add new "updated" flag.
3309 (new_variable): Default "updated" flag to 0.
3310 (varobj_set_value): Set "updated" flag to 1 if value
3311 changes.
3312 (varobj_update): Check varobj "updated" flag before
3313 comparing old and refreshed values. Fix for
3314 PR gdb/702.
3315
8da065d5
DC
33162002-10-23 David Carlton <carlton@math.stanford.edu>
3317
3318 * parse.c (parse_exp_1): Use BLOCK_START.
3319 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3320 SYMBOL_BLOCK_VALUE.
3321 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3322
87f2f08c
DC
33232002-10-23 David Carlton <carlton@math.stanford.edu>
3324
3325 * symtab.c: Delete cplusplus_hint.
3326 Delete prototype for find_template_name_end.
3327
88cda038
EZ
33282002-10-23 Elena Zannoni <ezannoni@redhat.com>
3329
3330 * symtab.h: Update comment.
3331
2625d86c
MS
33322002-10-23 Michael Snyder <msnyder@redhat.com>
3333
3334 * printcmd.c (address_info): Restore quotes in output.
3335 * valops.c (value_of_local): Restore quotes in error message.
3336
9cc0d196
EZ
33372002-10-23 Elena Zannoni <ezannoni@redhat.com>
3338
3339 * symtab.c (symbol_demangled_name): New function.
3340 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3341 turning most of it into a function.
3342 (symbol_demangled_name): Export.
3343
19de93d0
MS
33442002-10-23 Michael Snyder <msnyder@redhat.com>
3345
3346 * valops.c (value_of_local): Restore quotes in error message.
3347
89aad1f9
EZ
33482002-10-23 Elena Zannoni <ezannoni@redhat.com>
3349
3350 * symtab.c (symbol_init_language_specific): New function.
3351 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3352 turning most of it into a function.
3353 (symbol_init_language_specific): Export.
3354
d9fa45fe
DC
33552002-10-23 David Carlton <carlton@math.stanford.edu>
3356
3357 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3358 (dwarf_attr_name): Ditto.
3359 (dwarf_type_encoding_name): Ditto.
3360 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3361 (process_die): Handle DW_TAG_namespace,
3362 DW_TAG_imported_declaration, DW_TAG_imported_module.
3363 (read_namespace): New function.
3364
1045b512
JB
33652002-10-22 Joel Brobecker <brobecker@gnat.com>
3366
3367 * configure.in: Define NEW_PROC_API on Interix too.
3368 * configure: Regenerate.
3369
33702002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
3371
3372 * configure: Regenerate using the proper version of autoconf.
3373
3987b9d4
EZ
33742002-10-21 Elena Zannoni <ezannoni@redhat.com>
3375
3376 * findvar.c (read_var_value): Temporarily disable TLS code, until
3377 complete TLS support is added.
3378
9d774e44
EZ
33792002-10-21 Jim Blandy <jimb@redhat.com>
3380 Elena Zannoni <ezannoni@redhat.com>
3381
3382 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3383 for thread local storage locations.
3384 (struct symbol): Add objfile field.
3385 (SYMBOL_OBJFILE): Define.
3386 * dwarf2read.c (is_thread_local): New static variable.
3387 (new_symbol): If variable is in thread local fill in address class
3388 and objfile appropriately.
3389 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3390 stack operation.
3391 * printcmd.c (address_info): Print the information for thread
3392 local storage variable.
3393 * findvar.c (read_var_value): In case of thread local variable,
3394 defer to the target vector code to compute address.
3395
bc4a16ae
EZ
33962002-10-21 Elena Zannoni <ezannoni@redhat.com>
3397
3398 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3399 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3400
407caf07
EZ
34012002-10-21 Elena Zannoni <ezannoni@redhat.com>
3402
3403 * symtab.h (address_class): Rename
3404 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3405 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3406 * printcmd.c (address_info): Ditto.
3407 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3408
005328e3
MK
34092002-10-20 Mark Kettenis <kettenis@gnu.org>
3410
afdb036a
MK
3411 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3412 DBREG_DRX macro to acces debug registers.
3413
ca02e098
MK
3414 * Makefile.in (i386obsd-tdep.o): New target.
3415
03cc47f7
MK
3416 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3417 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3418
005328e3
MK
3419 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3420 * config/i386/obsd.mt: New file.
3421 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3422 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3423 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3424 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3425 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3426 * i386obsd-tdep.c: New file.
3427
9c96f9f2
AF
34282002-10-19 Adam Fedor <fedor@gnu.org>
3429
3430 * objc-exp.y (name_not_typename): Fix invalid comment.
3431
ce1ed485
MK
34322002-10-20 Mark Kettenis <kettenis@gnu.org>
3433
3434 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3435 to allocate partial syms and macro byte caches.
3436
1efc7aaa
DC
34372002-10-18 David Carlton <carlton@math.stanford.edu>
3438
3439 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3440
7e1d63ec
AF
34412002-10-18 Adam Fedor <fedor@gnu.org>
3442
3443 * stabsread.c (find_name_end): New function.
3444 (define_symbol): Use it.
3445
6e8d29a9
DJ
34462002-10-18 Daniel Jacobowitz <drow@mvista.com>
3447
3448 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3449 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3450 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3451 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3452
1efc7aaa 34532002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
3454
3455 * symfile.h: Add opaque declaration for struct obstack.
3456 Declare obsavestring to take a const char *.
3457 * symfile.c (obsavestring): Make first argument a const char *.
3458
1aeae86e
AF
34592002-10-16 Adam Fedor <fedor@gnu.org>
3460
3461 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3462 names when matching breakpoints in current file.
3463
8b2dbe47
KB
34642002-10-16 Kevin Buettner <kevinb@redhat.com>
3465
3466 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3467 (read_tag_pointer_type): Add address class support.
3468 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3469 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3470 New methods.
3471 * gdbarch.h, gdbarch.c: Regenerate.
3472 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3473 (make_type_with_address_space, recursive_type_dump): Add address
3474 class support.
3475 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3476 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3477 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3478
74451869
KD
34792002-10-16 Klee Dienes <kdienes@apple.com>
3480
3481 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3482 to get the last character of a char[] buffer, not
3483 name[sizeof(vptr_name)-1].
3484
ff4cb3e8
AF
34852002-10-14 Adam Fedor <fedor@gnu.org>
3486
3487 * symtab.h: New objc_specific struct.
3488 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3489 (SYMBOL_DEMANGLED_NAME): Likewise.
3490
da2cf7e0
AF
34912002-10-14 Adam Fedor <fedor@gnu.org>
3492
3493 * symfile.c (init_filename_language_table): Add ObjC file extension.
3494
4a351cef
AF
34952002-10-14 Adam Fedor <fedor@gnu.org>
3496
3497 * utils.c (puts_filtered_tabular): New function.
3498 (fprintf_symbol_filtered): Get ObjC demangled name.
3499 * defs.h (puts_filtered_tabular): Declared.
3500
9750e763
KB
35012002-10-14 Kevin Buettner <kevinb@redhat.com>
3502
3503 * c-lang.h (c_type_print_varspec_prefix): Delete.
3504 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3505 ``need_post_space'' parameter. Adjust all callers.
3506
eee771c1
DJ
35072002-10-14 Daniel Jacobowitz <drow@mvista.com>
3508
3509 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3510 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3511 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3512 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3513
46c82446
AF
35142002-10-13 Adam Fedor <fedor@gnu.org>
3515
3516 * source.c (print_source_lines): Update comments.
3517
d069f99d
AF
35182002-10-13 Adam Fedor <fedor@gnu.org>
3519
3520 * valops.c (value_of_local): New function.
3521 (value_of_this): Use it.
3522 * value.h (value_of_local): Declared.
3523
53c551b7
AF
35242002-10-13 Adam Fedor <fedor@gnu.org>
3525
3526 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3527 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3528
eb392fbf
AF
35292002-10-12 Adam Fedor <fedor@gnu.org>
3530
3531 * language.c (binop_result_type): Add language_objc to case.
3532 (integral_type): Likewise.
3533 (character_type): Likewise.
3534 (string_type): Likewise.
3535 (boolean_type): Likewise.
3536 (structured_type): Likewise.
3537 (binop_type_check): Likewise.
3538
e2b23ee9
AF
35392002-10-11 Adam Fedor <fedor@gnu.org>
3540
3541 * printcmd.c (address_info): Print 'self' for ObjC.
3542
b01ab485
AF
35432002-10-11 Adam Fedor <fedor@gnu.org>
3544
3545 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3546 OP_SELF.
3547
806e6073
AF
35482002-10-11 Adam Fedor <fedor@gnu.org>
3549
3550 * language.h (CAST_IS_CONVERSION): Add language_objc.
3551
50f85cdf
AF
35522002-10-11 Adam Fedor <fedor@gnu.org>
3553
3554 * defs.h (enum language): Add language_objc.
3555
0d540cdf
KD
35562002-10-11 Klee Dienes <kdienes@apple.com>
3557
69266111 3558 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3559 * gdbcore.h (read_memory_typed_address): Add prototype.
3560 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3561 to read a value destined for a CORE_ADDR, not read_memory_integer.
3562 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3563 (f77_get_dynamic_lowerbound): Ditto.
3564
d5dc7960
MH
35652002-10-11 Martin M. Hunt <hunt@redhat.com>
3566
3567 * utils.c (string_to_core_addr): After turning string into
3568 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3569 which will do necessary sign-extension, etc.
3570
8343f86c
DJ
35712002-10-11 Daniel Jacobowitz <drow@mvista.com>
3572
3573 * c-exp.y (THIS): Delete token and grammar rule.
3574 (yylex): Don't return THIS.
3575 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3576 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3577 * demangle.c (cplus_markers): Update comment. Put '$'
3578 first. Remove CPLUS_MARKER.
3579 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3580 * jv-exp.y (THIS): Delete token and grammar rule.
3581 (yylex): Don't return THIS.
3582 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3583 * objc-exp.y (THIS): Delete token and grammar rule.
3584 (yylex): Don't return THIS.
3585 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3586 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3587 (read_member_functions): Likewise for opname.
3588 (read_tilde_fields): Use is_cplus_marker.
3589
3590 * defs.h (CPLUS_MARKER): Don't define.
3591 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3592 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3593 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3594 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3595 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3596
3597 * config/i386/tm-i386v4.h: Delete file.
3598 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3599 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3600 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3601 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3602 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3603 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3604 * config/i386/i386v4.mt (TM_FILE): Likewise.
3605 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3606
967c0d83
MM
36072002-10-10 Marko Mlinar <markom@opencores.org>
3608
3609 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3610 accidentially not commited 2002-10-09
3611 * gdbarch.h, gdbarch.c: Re-generate.
3612
f74fa174
MM
36132002-10-09 Marko Mlinar <markom@opencores.org>
3614
3615 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3616 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3617 * gdbarch.h, gdbarch.c: Re-generate.
3618
57349743
JB
36192002-10-08 Petr Sorfa <petrs@caldera.com>
3620
3621 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3622
3623 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3624 so we can work on more than one compilation unit at a time. This
3625 helps prepare GDB to handle inter-CU die references.
3626 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3627 the code to be defined before struct comp_unit_head.
3628 (comp_unit_head): Added new members - offset, cu_head,
3629 begin_die, next and dwarf2_abbrevs.
3630 (dwarf2_abbrevs): Removed single static var; now member of
3631 struct comp_unit_head.
3632 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3633 members.
3634 (psymtab_to_symtab_1): Changed to work with the new
3635 struct comp_unit_head.
3636 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3637 constructs the dwarf2_abbrevs[] inside the cu_header.
3638 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3639 dwarf2_abbrev table to clean up.
3640 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3641 handling of dwarf2_abbrevs inside the cu_header.
3642 (read_partial_die): Now supports the call to the new
3643 dwarf2_lookup_abbrev.
3644 (read_full_die): Now supports the call to the new
3645 dwarf2_lookup_abbrev.
3646
4092aadb
CF
36472002-10-06 Christopher Faylor <cgf@redhat.com>
3648
3649 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3650 insure that shell variables, such as "transformed_name" are propagated
3651 to later shell statements in rule.
3652
af0b2512
MK
36532002-10-06 Mark Kettenis <kettenis@gnu.org>
3654
3655 * config/i386/nm-i386sco.h: Add protection against
3656 multiple-inclusion. Include "i386/nm-i386v.h".
3657 (REGISTER_U_ADDR): Remove define.
3658 (i386_register_u_addr): Remove prototype.
3659
d6020d45
MS
36602002-10-04 Michael Snyder <msnyder@redhat.com>
3661
3662 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3663 before treating it as a single-step event.
3664
7248f48e
AF
36652002-10-03 Adam Fedor <fedor@gnu.org>
3666
3667 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3668 (objc_demangle): Remove assignment in if statements, Replace
3669 free with xfree.
3670 (add_msglist): Likewise.
3671 (end_msglist): Likewise.
3672 (complare_selectors): Likewise.
3673 (selectors_info): Likewise.
3674 (compare_classes): Likewise.
3675 (classes_info): Likewise.
3676 (print_object_command): Likewise.
3677 (find_objc_msgcall_submethod): Replace PTR with void *.
3678 * objc-lang.h: Remove check for __STDC__.
3679
52c6a6ac
JJ
36802002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3681
3682 * ui-out.h (ui_out_field_fmt_int): New prototype.
3683 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3684 of field width and alignment.
3685 * stack.c (print_frame_info_base): When printing frame level, use
3686 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3687 PR gdb/192
3688
7e3cec17
JJ
36892002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3690
3691 * MAINTAINERS: Add self to Write After Approval list.
3692
a58dd373
EZ
36932002-10-02 Elena Zannoni <ezannoni@redhat.com>
3694
3695 * infcmd.c (interrupt_target_command_wrapper): Delete.
3696 (interrupt_target_command): Make non static.
3697 (nofp_registers_info): Make static.
3698 * stack.c (return_command_wrapper): Delete.
3699 (return_command): Make non static.
3700
cee6ddeb
EZ
37012002-10-02 Elena Zannoni <ezannoni@redhat.com>
3702
3703 * event-top.c (gdb_setup_readline): New function. Code moved from
3704 _initialize_event_loop().
3705 (_initialize_event_loop): Call gdb_setup_readline().
3706
c4ed33b9
AC
37072002-10-02 Andrew Cagney <ac131313@redhat.com>
3708
3709 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3710 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3711 * gdbarch.h, gdbarch.c: Re-generate.
3712
cef4f5dd
DJ
37132002-10-02 Daniel Jacobowitz <drow@mvista.com>
3714
3715 Fix PR gdb/778
3716 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3717 before recursing.
3718 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3719 of fill_in_vptr_fieldno.
3720
36dc181b 37212002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3722
36dc181b
EZ
3723 * inferior.h (registers_info, stepi_command, nexti_command,
3724 continue_command, interrupt_target_command): Export from infcmd.c.
3725 * frame.h (args_info, selected_frame_level_changed_hook,
3726 return_command): Export from stack.c.
3727 * v850ice.c (stepi_command, nexti_command, continue_command): use
3728 prototypes from inferior.h.
3729 * tracepoint.c (registers_info, args_info, locals_info): Use
3730 prototypes from frame.h and inferior.h.
3731 * Makefile.in (mi-main.o): Add dependency on frame.h.
3732
6f99cb26
AC
37332002-10-02 Andrew Cagney <ac131313@redhat.com>
3734
da3eff49
AC
3735 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3736 value in register 3 adjusted by ppc_gp0_regnum.
3737
6f99cb26
AC
3738 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3739
da615bee
MM
37402002-10-02 Marko Mlinar <markom@opencores.org>
3741
3742 * MAINTAINERS: Add myself to the Write After Approval list.
3743
d154bee2
AO
37442002-10-01 Alexandre Oliva <aoliva@redhat.com>
3745
62a49b2c
AO
3746 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3747 of the section for the N64 ABI, fixed.
3748
d154bee2
AO
3749 * config/mips/tm-irix6.h: Include solib.h.
3750
ed348acc
EZ
37512002-10-01 Elena Zannoni <ezannoni@redhat.com>
3752
3753 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3754 GNU operators.
3755
da0f9dcd
AC
37562002-10-01 Andrew Cagney <ac131313@redhat.com>
3757
3758 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3759 and that "mi0" syntax has been removed.
3760
bdf64bac
DC
37612002-09-30 David Carlton <carlton@math.stanford.edu>
3762
3763 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3764 * ppc-sysv-tdep.c: #include "gdb_string.h".
3765 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3766 pacify GCC.
3767
54c2a1e6
AC
37682002-10-01 Andrew Cagney <ac131313@redhat.com>
3769
3770 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3771 "vrsave"'s register number.
3772
cedea778
AC
37732002-09-30 Andrew Cagney <ac131313@redhat.com>
3774
3775 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3776 use frame_unwind_signed_register to obtain the PC.
3777 (mips_frame_chain): Handle a generic dummy frame.
3778 (mips_init_extra_frame_info): When a generic dummy frame, don't
3779 re-compute the frame base.
3780 (mips_pop_frame): Handle generic dummy frames.
3781 (mips_gdbarch_init): When generic dummy frames, set
3782 use_generic_dummy_frames, push_dummy_frame to
3783 generic_push_dummy_frame, pc_in_call_dummy to
3784 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3785 generic_save_dummy_frame_tos.
3786
68315eb8
AC
37872002-09-30 Andrew Cagney <ac131313@redhat.com>
3788
3789 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3790 against TOP when TOP was explictly set.
3791 (generic_push_dummy_frame): Set TOP to zero.
3792
3b8630c3
EZ
37932002-09-30 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * event-loop.c (start_event_loop): Rename variable 'result' to
3796 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3797
28ee05e9
KS
37982002-09-30 Keith Seitz <keiths@redhat.com>
3799
3800 * gdb-events.sh (selected_thread_changed): New event.
3801 * gdb-events.c: Regenerated.
3802 * gdb-events.h: Regenerated.
3803
6eecb1c8
HPN
38042002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3805
3806 * MAINTAINERS: Add self to Write After Approval list.
3807
92df71f0
FN
38082002-09-30 Fernando Nasser <fnasser@redhat.com>
3809
3b8630c3
EZ
3810 * disasm.c: New file.
3811 * disasm.h: New file.
92df71f0
FN
3812 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3813 (compare_lines): Ditto.
3814 (dump_insns): Ditto.
3b8630c3
EZ
3815 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3816 argument.
92df71f0 3817 (do_assembly_only): Ditto.
3b8630c3
EZ
3818 (do_disassembly): Renamed to gdb_disassembly and moved to
3819 disasm.c. Sdded uiout argument.
3820 * Makefile.in: Add new files. Reorder SFILES list. Update
3821 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3822
0c22854d
AC
38232002-09-29 Andrew Cagney <ac131313@redhat.com>
3824
3825 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3826 bfd/elf64-alpha-fbsd.c.
3827
e67f2023
AC
38282002-09-29 Andrew Cagney <ac131313@redhat.com>
3829
3830 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3831 i386gnu-tdep.c.
3832
89396210
AC
38332002-09-29 Andrew Cagney <ac131313@redhat.com>
3834
3835 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3836 __FUNCTION__.
3837 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3838 function name.
3839 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3840 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3841 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3842 (S_msg_sig_post_reply): Ditto.
3843
7079c36c
CV
38442002-09-28 Corinna Vinschen <vinschen@redhat.com>
3845
89396210
AC
3846 * sh-tdep.c (sh_use_struct_convention): Use definition according
3847 to ABI.
7079c36c
CV
3848 (sh_push_arguments): Store in register with correct endianess.
3849 (sh_default_store_return_value): Ditto.
3850 (sh_gdbarch_init): Set sizeof long double to 8.
3851
975ac915
MK
38522002-09-27 Mark Kettenis <kettenis@gnu.org>
3853
3854 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3855 Fix some whitespace problems.
3856
9bbe19fb
DC
38572002-09-27 David Carlton <carlton@math.stanford.edu>
3858
3859 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3860 (mcore-tdep.o): Ditto.
3861 (ns32k-tdep.o): Ditto.
3862 (ns32knbsd-tdep.o): Ditto.
3863 (sh3-rom.o): Ditto.
3864 (vax-tdep.o): Ditto.
3865 * cris-tdep.c: #include "gdb_string.h"
3866 * mcore-tdep.c: Ditto.
3867 * ns32k-tdep.c: Ditto.
3868 * ns32knbsd-tdep.c: Ditto.
3869 * sh3-rom.c: Ditto.
3870 * vax-tdep.c: Ditto.
3871
43b2fdc7
DC
38722002-09-27 David Carlton <carlton@math.stanford.edu>
3873
3874 * config/djgpp/fnchange.lst: Add entries for
3875 gdb/testsuite/gdb.c++/m-static files.
3876
e8cfbbd9
JW
38772002-09-27 Jim Wilson <wilson@redhat.com>
3878
3879 * MAINTAINERS: Add myself to the Write After Approval list.
3880
43b2fdc7 38812002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3882
3883 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3884
3885
9f3b7f07
AC
38862002-09-26 Andrew Cagney <ac131313@redhat.com>
3887
3888 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3889 frame.
3890
11269d7e
AC
38912002-09-26 Andrew Cagney <ac131313@redhat.com>
3892
3893 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3894 (rs6000_struct_return_address): Delete variable.
3895 (rs6000_store_struct_return): Update.
3896 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3897 deprecated_extract_struct_value_address.
3898 (rs6000_frame_align): New function.
3899 (rs6000_gdbarch_init): Set frame_align.
3900
f15ab4a7
AC
39012002-09-26 Andrew Cagney <ac131313@redhat.com>
3902
3903 From Grace Sainsbury <graces@redhat.com>:
3904 * Makefile.in (gdbtk-main.o): New target.
3905 (gdb.o): New target.
3906 (main_h): Define.
3907 (main.o): Update dependencies.
3908 (gdb$(EXEEXT)): Add gdb.o.
3909 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3910 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3911 (SUBDIR_GDBTK_CLEAN): Set.
3912 (install-gdbtk): Install the insight binary.
3913 (uninstall-gdbtk): New target.
3914 (all-gdbtk, clean-gdbtk): New rule.
3915 * top.c (use_windows): Default to zero.
3916 * main.c: Include "main.h".
3917 (main): Delete.
3918 (struct captured_main_args): Delete.
3919 (gdb_main): New function.
3920 * main.h: New file.
3921 * gdb.c: New File.
3922
e36180d7
AC
39232002-09-25 Andrew Cagney <cagney@redhat.com>
3924
3925 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3926 (frame_map_regnum_to_name): New function.
3927 (frame_map_name_to_regnum): New function.
3928 * frame.h (frame_map_name_to_regnum): Declare.
3929 (frame_map_regnum_to_name): Declare.
3930 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3931 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3932 * parse.c: Do not include "builtin-regs.h".
3933 (target_map_name_to_register): Delete function.
3934 (write_dollar_variable): Use frame_map_name_to_regnum.
3935 * parser-defs.h (target_map_name_to_register): Delete declaration.
3936 * expprint.c: Include "frame.h".
3937 (print_subexp): Use frame_map_regnum_to_name.
3938 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3939 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3940
8b69000d
AC
39412002-09-25 Andrew Cagney <ac131313@redhat.com>
3942
3943 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3944 wasn't saved, and the next innermost frame is a dummy, return the
3945 dummy frame's link register.
3946
046ca86a
JB
39472002-09-24 Jim Blandy <jimb@redhat.com>
3948
3949 Fix from Paul Breed:
3950 * main.c (captured_main): Add a `break' after the case for 'b'.
3951
94b66fa7
KS
39522002-09-24 Keith Seitz <keiths@redhat.com>
3953
3954 * varobj.c (c_type_of_child): Use get_target_type instead
3955 of TYPE_TARGET_TYPE.
3956
c214a6fd
FN
39572002-09-22 Fernando Nasser <fnasser@redhat.com>
3958
53cb0458
FN
3959 * source.c (get_current_or_default_source_symtab_and_line): Remove
3960 function.
3961 (set_default_source_symtab_and_line): New function. Attempts to
3962 determine a source file to list lines from if one is not currently
3963 defined.
3964 (get_current_source_symtab_and_line): Initialize sal.pc and
3965 sal.end fields.
3966 (set_current_source_symtab_and_line): Mark argument as const.
3967 * source.h: Update declarations and comments.
3968 * linespec.c (decode_line_1): Replace call to removed routine above.
3969 * stack.c (print_frame_info_base): Ditto.
3970 * cli/cli-cmds.c (edit_command): Ditto.
3971 (list_command): Ditto.
3972
39732002-09-22 Fernando Nasser <fnasser@redhat.com>
3974
d6020d45 3975 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3976 sal.pc and sal.end fields.
c214a6fd
FN
3977 (get_current_or_default_source_symtab_and_line): Ditto.
3978 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3979 so we do not cause a new source symtab to be searched for (reverting an
3980 unintentional change from the 2002-09-20 patch).
3981 * scm-lang.c (scm_unpac): Ditto.
3982
cc3b68a5
AC
39832002-09-21 Andrew Cagney <cagney@redhat.com>
3984
3985 * complaints.c (symfile_explanations): Remove new-line from
3986 ``isolated_message''.
3987 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3988 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3989
5835abe7
NC
39902002-09-20 Nick Clifton <nickc@redhat.com>
3991
3992 * NEWS: Announce that V850EA ISA is no longer supported.
3993 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3994
a15ef5f5
DC
39952002-09-20 David Carlton <carlton@math.stanford.edu>
3996
06ba1b39
DC
3997 * Makefile.in (c-lang.o): Correct dependencies.
3998 (utils.o): Gather dependencies.
3999 (charset.o): Move.
a15ef5f5
DC
4000 * c-lang.c: #include "gdb_string.h"
4001
87885426
FN
40022002-09-20 Fernando Nasser <fnasser@redhat.com>
4003
4004 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4005 * cli/cli-cmds.c (list_command): New function. Implements the new
4006 cli edit command.
4007 (_init_cli_cmds): Add new command definition.
4008 * gdb.1: Document edit command.
4009 * doc/gdb.texinfo: Document edit command.
4010
40112002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
4012
4013 * source.c: Make global variables current_source_symtab and
4014 current_source_line static.
4015 (list_command): Moved to cli/cli-cmds.c.
4016 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4017 (get_first_line_listed): New accessor function.
4018 (get_lines_to_list): New accessor function.
4019 (get_current_source_symtab_and_line): New function. Retrieves the
4020 position in the source code that we consider current.
4021 (get_current_or_default_source_symtab_and_line): New function.
4022 Like the above but attempts to determine a default position if one
4023 is not currently defined.
4024 (set_current_source_symtab_and_line): New function. Sets the source
4025 code position considered current and returns the previously set one.
4026 (clear_current_source_symtab_and_line): Reset stored information about
4027 a current source line.
4028 (_initialize_source): Remove registration for the "list" command and
4029 its alias.
4030 * source.h: Add declarations for the new functions above.
4031 * symtab.h: Remove declarations for the global variables mentioned
4032 above.
4033 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4034 obtain current source line.
4035 * linespec.c (decode_line_1): Ditto.
4036 * macroscope.c (default_macro_scope): Ditto.
4037 * scm-lang.c (scm_unpac): Ditto.
4038 * stack.c (print_frame_info_base): Ditto.
4039 * symfile.c (clear_symtab_users): Ditto.
4040 * symtab.c (decode_line_spec): Ditto.
4041 * cli/cli-cmds.c (list_command): Moved here from source.c.
4042 (ambiguous_line_spec): Moved here from source.c.
4043 (_init_cli_cmds): Add definition for "list" and its alias.
4044 * Makefile.in: Update dependencies.
4045
ddd216ea
CV
40462002-09-20 Corinna Vinschen <vinschen@redhat.com>
4047
4048 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4049 with what gcc thinks is correct.
4050
6d305052
CV
40512002-09-20 Corinna Vinschen <vinschen@redhat.com>
4052
4053 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4054 multiple register push instruction.
4055
234b45d4
KB
40562002-09-19 Jim Blandy <jimb@redhat.com>
4057
4058 Add support for distinct host and target character sets.
4059 * charset.c, charset.h: New files.
4060 * c-exp.y: #include "charset.h".
4061 (yylex): Convert character and string literals to the target
4062 character set, before returning them as the semantic value of the
4063 token.
4064 * c-lang.c: #include "charset.h".
4065 (c_emit_char): Use charset-specific methods to recognize
4066 characters with backslash escape forms, to decide which characters
4067 to print literally and which to print using numeric escape
4068 sequences, and to convert target characters to host characters
4069 before printing.
4070 * utils.c: #include "charset.h".
4071 (no_control_char_error): New function.
4072 (parse_escape): Use charset-specific methods to recognize
4073 backslash escapes, parse `control character' notation, and convert
4074 characters from the host character set to the target character set.
4075 * configure.in: Set the default host character set.
4076 Check where to find iconv, and what its argument types might be.
4077 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4078 * Makefile.in (SFILES): List charset.c.
4079 (COMMON_OBS): List charset.o.
4080 (charset.o): New rule.
4081 (charset_h): New header dependency variable.
4082 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4083 (LIBICONV): New variable, set by configure.
4084 (CLIBS): Include $(LIBICONV) here.
4085 * aclocal.m4, config.in, configure: Regenerated.
4086
525d6a61
JB
40872002-09-19 Joel Brobecker <brobecker@gnat.com>
4088
4089 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4090 bison 1.35 warning.
4091
3ed93867
RE
40922002-09-19 Richard Earnshaw <rearnsha@arm.com>
4093
4094 * gdb_mbuild.sh: New file.
4095
437666f8
AC
40962002-09-19 Andrew Cagney <ac131313@redhat.com>
4097
4098 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4099
389e51db
AC
41002002-09-18 Andrew Cagney <ac131313@redhat.com>
4101
4102 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4103 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4104 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4105 valops.c, value.h: Revert previous change.
4106
3b4efeaa
MS
41072002-09-18 Michael Snyder <msnyder@redhat.com>
4108
4109 Preliminary support for Objective-C:
4110 * defs.h (language_objc): New enum value.
4111 (puts_filtered_tabular): Declaration only, exported from utils.c.
4112 (skip_quoted): Delete, declared in completer.h.
4113 * c-exp.y: Include completer.h.
4114 * p-exp.y: Ditto.
4115 * jv-exp.y: Ditto.
4116 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4117 New operator enum values.
4118 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4119 * language.c (binop_result_type): Handle language_objc case.
4120 (integral_type, character_type, string_type, boolean_type,
4121 structured_type, binop_type_check): Ditto.
4122 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4123 (struct objc_specific): Add to general_symbol_info.
4124 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4125 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4126 * parser-defs.h (struct objc_class_str): New struct type.
4127 (start_msglist, end_msglist, add_msglist): Declaration only,
4128 exported from objc-lang.c.
4129 * value.h (value_of_local, value_nsstring,
4130 call_function_by_hand_expecting_type): Exported from valops.c.
4131 * valops.c (find_function_addr): Export.
4132 (call_function_by_hand_expecting_type): New function.
4133 (value_of_local): New function.
4134 * symfile.c (init_filename_language_table): Add ".m" extension
4135 for Objective-C.
4136 * utils.c (puts_filtered_tabular): New function.
4137 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4138 (set/show demangle): Extend help-string to refer to ObjC.
4139 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4140 * stabsread.c (symbol_reference_defined): Objective-C symbols
4141 may contain colons: make allowances when scanning stabs strings
4142 for colons.
4143 (objc_find_colon): New function.
4144 * printcmd.c (address_info): If language == objc then print
4145 "self" instead of "this".
4146 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4147 OP_NSSTRING, and OP_SELF.
4148 (prefixify_subexp): Ditto.
4149 * source.c (print_source_lines): Mention objc in comment.
4150 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4151 method names.
4152
b9caf505
AC
41532002-09-18 Andrew Cagney <ac131313@redhat.com>
4154
4155 * complaints.h: Update copyright.
4156 (struct complaints): Declare.
4157 (struct complaint): Make `message' constant.
4158 (internal_complaint): Declare.
4159 (complaint): Declare.
4160 (complaint_root): Delete declaration.
4161 (symfile_complaints): Delete declaration.
4162 (struct complaints): Add opaque declaration.
4163 (clear_complaints): Add a complaints parameter.
4164 * complaints.c: Update copyright.
4165 (enum complaint_series): Define.
4166 (complaint_root): Delete.
4167 (struct complaints): Define.
4168 (complaint_sentinel, symfile_complaint_book): New variables.
4169 (symfile_explanations, symfile_complaints): New variables.
4170 New variables.
4171 (get_complaints): New function.
4172 (vcomplaint): New function.
4173 (complaint): New function.
4174 (internal_complaint): New function.
4175 (complain): Call vcomplain with symfile_complaint.
4176 (clear_complaints): Rewrite.
4177 (_initialize_complaints): Use add_setshow_command.
4178 * Makefile.in (complaints.o): Update dependencies.
4179 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4180 to call to clear_complaints.
4181 (new_symfile_objfile, reread_symbols): Ditto.
4182 (oldsyms_complaint): Delete.
4183 (empty_symtab_complaint, unknown_option_complaint): Delete.
4184 (free_named_symtabs): Use complaint instead of complain.
4185
d2e6263c
MS
41862002-09-18 Michael Snyder <msnyder@redhat.com>
4187
5fb2031a
AC
4188 Contributed by Apple Computer, Inc. Merged with current sources
4189 by Adam Fedor <fedor@doc.com> [cagney].
4190
d2e6263c
MS
4191 * objc-lang.c: First clean-up round: comments, indentation.
4192 * objc-lang.h: Ditto.
4193 * objc-lang.y: Ditto.
4194
dec43320
AC
41952002-09-18 Andrew Cagney <ac131313@redhat.com>
4196
4197 * maint.c (maintenance_internal_error): Print the parameter as the
4198 error message.
4199 (maintenance_internal_warning): New function.
4200 (_initialize_maint_cmds): Add command `maint internal-warning'.
4201
4202 * defs.h (internal_warning, internal_vwarning): Declare.
4203 * utils.c (struct internal_problem): Define.
4204 (internal_vproblem): New function.
4205 (internal_warning): New function.
4206 (internal_vwarning): New function.
4207 (internal_warning_problem, internal_error_problem): New variables.
4208 (internal_verror): Just call internal_vproblem.
4209
b81654f1
MS
42102002-09-18 Michael Snyder <msnyder@redhat.com>
4211
4212 * objc-lang.c: New file, support for Objective-C.
4213 Preliminary check-in, not yet integrated into gdb.
4214 * objc-lang.h: New file.
4215 * objc-exp.y: New file.
4216
0542c381
AC
42172002-09-18 Andrew Cagney <ac131313@redhat.com>
4218
7bda5e4a
AC
4219 * infrun.c (signal_stop_update): Convert definition to ISO C.
4220 (signal_print_update): Ditto.
4221 (signal_pass_update): Ditto.
4222 * inflow.c (terminal_save_ours): Ditto.
4223
5247b418
AC
4224 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4225 comments.
4226
fc60962c
AC
4227 * config/djgpp/fnchange.lst: Handle name clashes between
4228 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4229 bfd/coff-tic80.c.
4230
0542c381
AC
4231 * i386-linux-tdep.h: Fix tipo.
4232
5b924b9b
AF
42332002-09-18 Adam Fedor <fedor@gnu.org>
4234
4235 * MAINTAINERS: Add myself to the Write After Approval list.
4236
5afc051b
JB
42372002-09-18 Jim Blandy <jimb@redhat.com>
4238
4239 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4240 texthigh and textlow to reader-specific structs caused
4241 objfile_relocate to miss them. This is fixable, but the work that
4242 the change was supposed to prepare GDB for never got done anyway.
4243
eb944380
DC
42442002-09-18 David Carlton <carlton@math.stanford.edu>
4245
4246 * MAINTAINERS: Alphabetize Write After Approval list.
4247
948e66d9
DJ
42482002-09-18 Daniel Jacobowitz <drow@mvista.com>
4249
4250 Fix PR gdb/709
4251 * values.c (value_static_field): Call read_var_value.
4252
dc604539
AC
42532002-09-18 Andrew Cagney <ac131313@redhat.com>
4254
4255 * valops.c (hand_function_call): Align the initial stack pointer
4256 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4257 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4258 return value.
4259 * mips-tdep.c (mips_frame_align): New function.
4260 (mips_gdbarch_init): Set frame_align.
4261 * gdbarch.sh (FRAME_ALIGN): New method.
4262 * gdbarch.h, gdbarch.c: Re-generate.
4263
cb7e422f
ML
42642002-09-18 Michal Ludvig <mludvig@suse.cz>
4265
4266 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4267 registers.
4268
a094c6fb
AC
42692002-09-17 Andrew Cagney <ac131313@redhat.com>
4270
4271 * NEWS: Mention that MIPS $fp behavior changed.
4272 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4273 reference to FP_REGNUM.
4274 (mipsnbsd_cannot_store_register): Ditto.
4275 * mips-linux-nat.c: Update copyright.
4276 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4277 (mips_linux_cannot_store_register): Ditto.
4278 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4279 * config/mips/tm-mips.h: Update copyright.
4280 (FP_REGNUM): Delete macro.
4281 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4282 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4283 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4284 (mips_r3041_reg_names, mips_r3051_reg_names)
4285 (mips_r3081_reg_names): Replace "fp" with "".
4286 Fix PR gdb/480.
4287
45cf40d1
TR
42882002-09-17 Theodore A. Roth <troth@verinet.com>
4289
4290 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4291 generic_read_register_dummy() (PR gdb/703).
4292 (avr_push_return_address): #if 0 out unused vars.
4293 (avr_gdbarch_init): Enable use of avr_push_return_address().
4294
c7e701b5
MS
42952002-09-17 Michael Snyder <msnyder@redhat.com>
4296
d76ba2a5 4297 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
4298 RTE will take care of it.
4299
20bcf01c
AC
43002002-09-17 Andrew Cagney <ac131313@redhat.com>
4301
4302 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4303 invalid, return SP_REGNUM.
4304
009a9971 43052002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
4306
4307 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4308 point registers without sign extension.
4309
135c175f
AC
43102002-09-17 Andrew Cagney <cagney@redhat.com>
4311
4312 * blockframe.c (deprecated_read_register_dummy): Rename
4313 generic_read_register_dummy.
4314 * frame.c (frame_unwind_signed_register): New function.
4315 (frame_unwind_unsigned_register): New function.
4316 * frame.h (frame_unwind_signed_register): Declare.
4317 (frame_unwind_unsigned_register): Declare.
4318 (deprecated_read_register_dummy): Rename
4319 generic_read_register_dummy.
4320
4321 * h8300-tdep.c (h8300_frame_chain): Update.
4322 (h8300_frame_saved_pc): Update.
4323 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4324 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4325 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4326 (s390_frame_chain): Update.
4327 * v850-tdep.c (v850_find_callers_reg): Update.
4328 (v850_frame_saved_pc): Update.
4329 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4330 (m32r_find_callers_reg): Update.
4331 (m32r_frame_saved_pc): Update.
4332 * sh-tdep.c (sh_find_callers_reg): Update.
4333 (sh64_get_saved_pr): Update.
4334 (sh_init_extra_frame_info): Update.
4335 (sh_init_extra_frame_info): Update.
4336 (sh64_init_extra_frame_info): Update.
4337 (sh64_init_extra_frame_info): Update.
4338 * mcore-tdep.c (mcore_find_callers_reg): Update.
4339 (mcore_frame_saved_pc): Update.
4340 (mcore_init_extra_frame_info): Update.
4341 * i386-tdep.c (i386_frame_saved_pc): Update.
4342 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4343 (ia64_init_extra_frame_info): Update.
4344 (ia64_init_extra_frame_info): Update.
4345 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4346 * cris-tdep.c (cris_init_extra_frame_info): Update.
4347 * avr-tdep.c (avr_frame_chain): Update.
4348 (avr_init_extra_frame_info): Update.
4349 (avr_frame_saved_pc): Update.
4350 * arm-tdep.c (arm_find_callers_reg): Update.
4351 (arm_init_extra_frame_info): Update.
4352 (arm_frame_saved_pc): Update.
4353
a741e514
TT
43542002-09-17 Tom Tromey <tromey@redhat.com>
4355
4356 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4357 is "'".
4358
d1a8e808
CV
43592002-09-17 Corinna Vinschen <vinschen@redhat.com>
4360
4361 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4362 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4363 NEXT_PROLOGUE_INSN.
4364 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4365 NEXT_PROLOGUE_INSN.
4366
d9025a18
JB
43672002-09-16 Joel Brobecker <brobecker@gnat.com>
4368
4369 * osfsolib.c: Remove file, replaced by solib-osf.c.
4370 * Makefile.in: Remove compilation rules for osfsolib.c.
4371
1b2ef1b6
DC
43722002-09-16 David Carlton <carlton@math.stanford.edu>
4373
4374 * cp-valprint.c (cp_print_class_method): Correct args to
4375 check_stub_method_group.
4376
928e48af
CV
43772002-09-16 Corinna Vinschen <vinschen@redhat.com>
4378
4379 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4380 `set architecture'. Unify naming convention of functions.
4381 (h8300_skip_prologue): Improve prologue analysis.
4382 (h8300_push_arguments): Rewritten to more closely match GCC's
4383 bizarre argument-passing behavior, along with the comment describing
4384 said behavior.
4385 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4386 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4387 sim, remote-e7000.c, remote-hms.c and remote.c
4388
5e3397bb
MK
43892002-09-15 Mark Kettenis <kettenis@gnu.org>
4390
4391 * i386-tdep.c (gdb_print_insn_i386): Removed.
4392 (i386_print_insn): New function.
4393 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4394 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4395 tm_print_insn_info.
4396
f710f4fc
MK
43972002-09-14 Mark Kettenis <kettenis@gnu.org>
4398
4399 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4400 zero.
4401
db54fef4
CV
44022002-09-14 Corinna Vinschen <vinschen@redhat.com>
4403
4404 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4405 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4406 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4407
2becadee
CF
44082002-09-13 Christopher Faylor <cgf@redhat.com>
4409
4410 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4411
de17c821
DJ
44122002-09-13 Daniel Jacobowitz <drow@mvista.com>
4413
4414 * gdbtypes.c (check_stub_method): Make static.
4415 (check_stub_method_group): New function.
4416 * gdbtypes.h: Update prototypes.
4417 * cp-support.c: New file.
4418 * cp-support.h: New file.
4419
4420 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4421 (update_method_name_from_physname): New function.
4422 (read_member_functions): Correct method names for operators
4423 and v3 constructors/destructors. Separate v2 constructors and
4424 destructors.
4425 * Makefile.in (stabsread.o): Update dependencies.
4426 (SFILES): Add cp-support.c.
4427 (COMMON_OBS): Add cp-support.o.
4428 (cp_support_h, cp-support.o): Add.
4429
4430 * cp-valprint.c (cp_print_class_method): Call
4431 check_stub_method_group instead of check_stub_method. Remove
4432 extraneous QUITs.
4433 * p-valprint.c (pascal_object_print_class_method): Likewise.
4434 * valops.c (search_struct_method): Likewise.
4435 (find_method_list, value_struct_elt_for_reference): Likewise.
4436
e76cff22
AC
44372002-09-13 Andrew Cagney <cagney@redhat.com>
4438
4439 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4440 * gdbarch.h, gdbarch.c: Regenerate.
4441
905abb3f
AC
44422002-09-13 Andrew Cagney <ac131313@redhat.com>
4443
4444 * frame.c (find_saved_register): Delete function.
4445 * frame.h (find_saved_register): Delete declaration.
4446 Fix PR gdb/631.
4447
64159455
AC
4448Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4449
4450 * mips-tdep.c (read_next_frame_reg): Re-hack using
4451 frame_register_unwind.
4452
795e1e11
AC
4453Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4454
4455 * mips-tdep.c (mips_get_saved_register): Re-hack using
4456 frame_register_unwind.
4457
5720643c
JB
44582002-09-12 Joel Brobecker <brobecker@gnat.com>
4459
4460 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4461 vector. Will be useful for Interix.
4462 * gdbarch.h, gdbarch.c: Regenerate.
4463
4464 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4465 name of the malloc function by NAME_OF_MALLOC.
4466
3bada2a2
JB
44672002-09-12 Joel Brobecker <brobecker@gnat.com>
4468
4469 * value.h (find_function_in_inferior): Add const keyword to
4470 one of the parameters. Allows us to invoke this function with
4471 a const char *.
4472 * valops.c (find_function_in_inferior): Likewise.
4473
3db26b01
JB
44742002-09-12 Joel Brobecker <brobecker@gnat.com>
4475
4476 * exec.c (xfer_memory): Fix compilation warning with old versions
4477 of GCC.
4478 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4479
17c5ed2c
DC
44802002-09-12 David Carlton <carlton@math.stanford.edu>
4481
4482 * symtab.h: Run through gdb_indent.h.
4483 Add 2002 to Copyright year list.
4484
ecd1107e
AM
44852002-09-12 Alan Modra <amodra@bigpond.net.au>
4486
4487 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4488 mach constants.
4489 * MAINTAINERS: Add myself to write after approval list.
4490
e64f66d1
JB
44912002-09-11 J. Brobecker <brobecker@gnat.com>
4492
4493 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4494
f9395794
JB
44952002-09-11 J. Brobecker <brobecker@gnat.com>
4496
4497 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4498 Interix.
4499
1a303dec
MS
45002002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4501
4502 * procfs.c (do_detach): Clear current signal, not just fault.
4503 Corrects problem with breakpoint trap signal leaking to detached
4504 process on Tru64.
4505
c0219d42
MS
45062002-09-10 Michael Snyder <msnyder@redhat.com>
4507
4508 * buildsym.c (finish_block): Protect against null pointer.
4509
9d84ac84
AC
45102002-09-10 Andrew Cagney <cagney@redhat.com>
4511
4512 * infcmd.c (default_print_registers_info): Send all output to
4513 ``file'' instead of ``gdb_stdout''.
4514
77d8f2b4
MS
45152002-09-10 Michael Snyder <msnyder@redhat.com>
4516
4517 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4518 LONGEST, and use signed register read (addresses are sign-
4519 extended for mips).
4520
99656a61
SC
45212002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4522
4523 * event-loop.c (gdb_do_one_event): Make public.
4524 * event-loop.h (gdb_do_one_event): Declare.
4525
da12f4d8
JL
45262002-09-10 Jeff Law <law@redhat.com>
4527
4528 * infttrace.c (child_resume): Simplify and rework to avoid
4529 TT_PROC_CONTINUE.
4530
d0aee0c4
FF
45312002-09-09 Fred Fish <fnf@intrinsity.com>
4532
4533 * printcmd.c (print_scalar_formatted): "len" is the number of
4534 target bytes, NOT the number of target bits.
4535
7cb3ec5e
EZ
45362002-09-09 Elena Zannoni <ezannoni@redhat.com>
4537
4538 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4539 * top.c (init_main): Set rl_terminal_name.
4540
4dc81987
AS
45412002-09-08 Aidan Skinner <aidan@velvet.net>
4542
4543 * ada-lang.c (ada_array_bound, ada_type_match,
4544 _initialize_ada_language): Fix K&R definitions.
4545 * ada-tasks.c (get_current_task): Fix K&R definitions.
4546 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4547
842330b4
CF
45482002-09-07 Christopher Faylor <cgf@redhat.com>
4549
4550 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4551 Add XP.
4552
43156d82
MK
45532002-09-06 Mark Kettenis <kettenis@gnu.org>
4554
66da5fd8
MK
4555 * i386-tdep.c (i386_register_virtual_type,
4556 i386_register_convertible, i386_register_convert_to_virtual,
4557 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4558 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4559 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4560 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4561 Don't set push_arguments twice.
4562
4b218c18
MK
4563 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4564 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4565 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4566 sigtramp_end to NULL.
4567 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4568 defines.
4569 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4570
4cc314d5
MK
4571 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4572 whitespace.
4573
43156d82
MK
4574 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4575 * gdbarch.h, gdbarch.c: Re-generate.
4576 * blockframe.c (find_pc_sect_partial_function): Convert to use
4577 SIGTRAMP_START_P predicate.
4578
6672060b
MS
45792002-09-05 Michael Snyder <msnyder@redhat.com>
4580
a90c3637
MS
4581 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4582 generic_dummy_frame method and old method. Also distinguish
4583 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4584 (arm_extract_return_value): Use new regcache method.
a90c3637 4585
6672060b
MS
4586 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4587 adjustment that doesn't conform to the ABI.
4588 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4589 saved regcache, not from current regcache.
4590
299ffc64
AC
45912002-09-05 Andrew Cagney <ac131313@redhat.com>
4592
4593 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4594 * README: Update.
4595
a3a2ee65
JT
45962002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4599 if arm_apcs_32 is false.
4600
2bc7eea9
AC
46012002-09-04 Andrew Cagney <ac131313@redhat.com>
4602
4603 GDB 5.3 branch created.
4604
8a55a7c5
TR
46052002-09-03 Theodore A. Roth <troth@verinet.com>
4606
4607 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4608 generic_unwind_get_saved_register.
4609
e26fb1d7
DC
46102002-09-03 David Carlton <carlton@math.stanford.edu>
4611
4612 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4613 argument (PR gdb/653). Update call to smash_to_method_type.
4614 (read_structure_scope): Update call to dwarf2_add_member_fn.
4615
30d52491
ML
46162002-09-03 Michal Ludvig <mludvig@suse.cz>
4617
4618 * x86-64-linux-tdep.c: Include gdb_string.h
4619 * x86-64-linux-nat.c: Ditto.
4620
06891d83
JT
46212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4622
4623 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4624 when YYDEBUG is set to 1.
4625 * c-exp.y: Likewise.
4626 * f-exp.y: Likewise.
4627 * jv-exp.y: Likewise.
4628 * m2-exp.y: Likewise.
4629 * p-exp.y: Likewise.
4630
7d400e77
JT
46312002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4632
4633 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4634 dependency list.
4635 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4636 solib_svr4_fetch_link_map_offsets to
4637 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4638 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4639 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4640 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4641 solib-svr4.o, and solib-legacy.o.
4642 * config/i386/tm-nbsd.h: Include solib.h.
4643
704a27c4
JT
46442002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4645
4646 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4647 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4648 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4649 comment noting that this needs its own target configuration.
4650 * config/i386/nbsd.mt: New file.
4651 * config/i386/nbsdaout.mt: Remove.
4652 * config/i386/nbsdelf.mt: Ditto.
4653 * config/i386/tm-nbsdaout.h: Ditto.
4654
d66198e1
JT
46552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4656
4657 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4658 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4659 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4660 tdep->sigtramp_end.
4661 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4662 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4663 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4664
3cac699e
JT
46652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4666
4667 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4668 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4669 * i386-tdep.h (i386bsd_init_abi): New prototype.
4670 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4671 function declaration.
4672 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4673 for NetBSD-a.out or NetBSD-ELF.
4674 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4675 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4676 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4677 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4678 and nbsd-tdep.h.
4679 (i386nbsd_pc_in_sigtramp): New function.
4680 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4681 i386nbsd_pc_in_sigtramp.
4682 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4683 and i386nbsdelf_init_abi OS ABI handlers.
4684 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4685 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4686
7010ca0a
MK
46872002-09-02 Mark Kettenis <kettenis@gnu.org>
4688
4689 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4690 registers if the target really has them.
4691
6dd93b72
JT
46922002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4693
4694 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4695 than nbsd-tdep.h.
4696
2ca8ae21
JT
46972002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4698
4699 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4700 list.
4701 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4702 (alphanbsd_skip_sigtramp_frame): New functions.
4703 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4704 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4705 to alphanbsd_sigcontext_addr.
4706
3d9b49b0
JT
47072002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4708
4709 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4710 list.
4711 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4712 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4713 nbsd_pc_in_sigtramp.
4714 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4715 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4716 * nbsd-tdep.c: Include gdb_string.h.
4717 (nbsd_pc_in_sigtramp): New function.
4718 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4719 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4720 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4721 ppcnbsd_pc_in_sigtramp.
4722 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4723 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4724 shnbsd_pc_in_sigtramp.
4725 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4726 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4727 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4728
c860120c
PM
47292002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4730
4731 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4732 watchpoints to NULL.
4733 (insert_breakpoints): set val field of watchpoints if NULL.
4734
4735
c7612d53
JB
47362002-08-29 Jim Blandy <jimb@redhat.com>
4737
4738 * symtab.c (lookup_symbol_aux): In the cases where we find a
4739 minimal symbol of an appropriate name and use its address to
4740 select a symtab to read and search, use `name' (as passed to us)
4741 as the demangled name when searching the symtab's global and
4742 static blocks, not the minsym's name.
4743
66609862
KS
47442002-08-29 Keith Seitz <keiths@redhat.com>
4745
4746 * stack.c (print_frame_info_base): Always set current_source_symtab
4747 and current_source_line.
4748
151fefe2
JB
47492002-08-29 Donn Terry <donnte@microsoft.com>
4750
4751 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4752
bfb3754e
KS
47532002-08-28 Keith Seitz <keiths@redhat.com>
4754
4755 * stack.c (select_frame): Add FIXME concerning selected-frame
4756 events.
4757 (select_frame_command): Send selected-frame-level-changed
4758 event notification, but only if the level actually changed.
4759 (up_silently_base): Add selected-frame-level-changed event
4760 notification.
4761 (down_silently_base): Likewise.
4762
e822a2a0
AC
47632002-08-28 Andrew Cagney <ac131313@redhat.com>
4764
4765 * Makefile.in: Update dependencies for all gdb/*.c files.
4766
309367d4
TT
47672002-08-27 Tom Tromey <tromey@redhat.com>
4768
4769 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4770 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4771 Update dependencies.
4772 * i387-tdep.c: Include gdb_string.h.
4773 * osabi.c: Likewise.
4774 * i386-linux-nat.c: Likewise.
4775 * lin-lwp.c: Likewise.
4776 * ax-gdb.c: Likewise.
4777 * signals/signals.c: Likewise.
4778 * jv-valprint.c: Likewise.
4779 * p-lang.c: Likewise.
4780 * c-valprint.c: Likewise.
4781 * cp-abi.c: Likewise.
4782
e1507482
EZ
47832002-08-27 Elena Zannoni <ezannoni@redhat.com>
4784
4785 * cli/cli-script.h (copy_command_lines): Export.
4786 * breakpoint.c: Include cli/cli-script.h.
4787 * Makefile.in (breakpoint.o): Update dependencies.
4788
c6510018
MS
47892002-08-26 Michael Snyder <msnyder@redhat.com>
4790
4791 * breakpoint.c (insert_breakpoints): Protect all references
4792 to 'process_warning'. Shorten long lines.
4793
c2b8ed2c
MS
47942002-08-26 Joel Brobecker <brobecker@gnat.com>
4795
4796 * cli/cli-script.c (copy_command_lines): New function.
4797 * defs.h (copy_command_lines): Export.
4798 * testsuite/gdb.base/commands.exp: New tests for commands
4799 attached to a temporary breakpoint, and for commands that
4800 delete the breakpoint they are attached to.
4801
48022002-08-26 Michael Snyder <msnyder@redhat.com>
4803
4804 * breakpoint.c (bpstat_stop_status): Instead of copying the
4805 pointer to the breakpoint commands struct, make a new copy
4806 of the struct and point to that.
4807 (bpstat_clear): Free the commands struct.
4808 (bpstat_clear_actions): Free the commands struct.
4809 (bpstat_do_actions): Free the command actions. Also execute
4810 the local cleanups, instead of deleting them.
4811 (delete_breakpoint): Leave the commands field of the bpstat
4812 chain alone -- it will be freed later.
4813
64b84175
KB
48142002-08-26 Kevin Buettner <kevinb@redhat.com>
4815
4816 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4817 deleted in 2002-08-20 commit. This function is still used by
4818 ppc-linux-nat.c.
4819
55970da6
KS
48202002-08-26 Keith Seitz <keiths@redhat.com>
4821
4822 * gdb-events.sh: Add selected-frame-level-changed event.
4823 * gdb-events.c: Regenerated.
4824 * gdb-events.h: Regenerated.
4825
a790ad35
SC
48262002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4827
4828 Fix PR gdb/393:
4829 * inflow.c (terminal_save_ours): New function to save terminal
4830 settings.
4831 * inferior.h (terminal_save_ours): Declare.
4832 * target.c (debug_to_terminal_save_ours): New function.
4833 (cleanup_target): Defaults to_terminal_save_ours.
4834 (update_current_target): Inherit to_terminal_save_ours.
4835 (setup_target_debug): Set to_terminal_save_ours.
4836 * target.h (target_terminal_save_ours): New to save terminal settings.
4837 (target_ops): New member to_terminal_save_ours.
4838 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4839 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4840 * inftarg.c (init_child_ops): Likewise.
4841 * m3-nat.c (init_m3_ops): Likewise.
4842 * procfs.c (init_procfs_ops): Likewise.
4843 * wince.c (init_child_ops): Likewise.
4844 * win32-nat.c (init_child_ops): Likewise.
4845 * sol-thread.c (init_sol_thread_ops): Likewise.
4846
c00dcbe9
MK
48472002-08-26 Mark Kettenis <kettenis@gnu.org>
4848
3d7f4f49
MK
4849 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4850 use regcache_* functions.
4851 (i386_gdbarch_init): Set store_return_value instead of
4852 deprecated_store_return_value.
4853
c00dcbe9
MK
4854 * regcache.c (regcache_raw_write_signed,
4855 regcache_raw_write_unsigned): New functions.
4856 * regcache.h (regcache_raw_write_signed,
4857 regcache_raw_write_unsigned): New prototypes.
4858
0e0d15ca
AC
48592002-08-25 Andrew Cagney <ac131313@redhat.com>
4860
4861 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4862 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4863 source file dependencies. Cleanup corresponding generator rules.
4864
d3b22ed5
AC
48652002-08-25 Andrew Cagney <ac131313@redhat.com>
4866
4867 * regcache.h (register_offset_hack): Declare.
4868 (regcache_cooked_read_using_offset_hack): Declare.
4869 (regcache_cooked_write_using_offset_hack): Declare.
4870
4871 * regcache.c (register_offset_hack): New function.
4872 (regcache_cooked_read_using_offset_hack): New function.
4873 (regcache_cooked_write_using_offset_hack): New function.
4874 (regcache_dump): Check that the registers, according to their
4875 offset, are packed hard against each other.
4876 (cooked_xfer_using_offset_hack): New function.
4877
bb425013
AC
48782002-08-25 Andrew Cagney <ac131313@redhat.com>
4879
4880 * regcache.c (struct regcache_descr): Add field register_type.
4881 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4882 in as a parameter
4883 (init_regcache_descr): Initialize register_type. Pass the descr
4884 to init_legacy_regcache_descr. Use register_type instead of
4885 REGISTER_VIRTUAL_TYPE.
4886 (register_type): New function.
4887 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4888 * regcache.h (register_type): Declare.
4889
d0403e00
AC
48902002-08-25 Andrew Cagney <ac131313@redhat.com>
4891
4892 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4893 instead of deprecated_store_return_value. Fix fallout from
4894 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4895
0ed04cce
AC
48962002-08-25 Andrew Cagney <ac131313@redhat.com>
4897
4898 * regcache.c (max_register_size): New function.
4899 (init_legacy_regcache_descr): Ensure that max_register_size is
4900 large enough for REGISTER_VIRTUAL_SIZE.
4901 * regcache.h (max_register_size): Declare.
4902
46d79c04
AC
49032002-08-24 Andrew Cagney <ac131313@redhat.com>
4904
4905 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4906 store_return_value.
4907 (e500_extract_return_value): Change type of valbuf pointer to
4908 void.
4909
853c7bd0
MK
49102002-08-24 Mark Kettenis <kettenis@gnu.org>
4911
cd87e769
MK
4912 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4913 workaround.
4914
853c7bd0
MK
4915 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4916 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4917 long long) to prevent compiler warning on 64-bit systems.
4918
ebba8386
AC
49192002-08-23 Andrew Cagney <cagney@redhat.com>
4920
4921 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4922 (DEPRECATED_STORE_RETURN_VALUE): New method.
4923 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4924 * gdbarch.h, gdbarch.c: Re-generate.
4925
4926 * values.c (set_return_value): Pass current_regcache to
4927 STORE_RETURN_VALUE.
4928 * arch-utils.h (legacy_store_return_value): Declare.
4929 * arch-utils.c (legacy_store_return_value): New function.
4930 (legacy_extract_return_value): Update parameters.
4931
4932 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4933 STORE_RETURN_VALUE.
4934 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4935 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4936 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4937 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4938 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4939 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4940 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4941 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4942 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4943 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4944
4945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4946 * i386-tdep.c (i386_extract_return_value): Update.
4947 * arch-utils.c (legacy_extract_return_value): Update.
4948 * frv-tdep.c (frv_gdbarch_init): Update.
4949 * cris-tdep.c (cris_gdbarch_init): Update.
4950 * d10v-tdep.c (d10v_gdbarch_init): Update.
4951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4952 * m68k-tdep.c (m68k_gdbarch_init): Update.
4953 * mcore-tdep.c (mcore_gdbarch_init): Update.
4954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4955 * s390-tdep.c (s390_gdbarch_init): Update.
4956 * sparc-tdep.c (sparc_gdbarch_init): Update.
4957 * sh-tdep.c (sh_gdbarch_init): Update.
4958 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4959 * v850-tdep.c (v850_gdbarch_init): Update.
4960 * avr-tdep.c (avr_gdbarch_init): Update.
4961 * ia64-tdep.c (ia64_gdbarch_init): Update.
4962 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4963 * vax-tdep.c (vax_gdbarch_init): Update.
4964 * alpha-tdep.c (alpha_gdbarch_init): Update.
4965 * arm-tdep.c (arm_gdbarch_init): Update.
4966 * mips-tdep.c (mips_gdbarch_init): Update.
4967 * i386-tdep.c (i386_gdbarch_init): Update.
4968
5bd8c6d0
AC
49692002-08-23 Andrew Cagney <ac131313@redhat.com>
4970
4971 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4972 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4973
e73e1724
MK
49742002-08-24 Mark Kettenis <kettenis@gnu.org>
4975
4976 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4977 problems.
4978
3e6564e1
JB
49792002-08-23 Joel Brobecker <brobecker@gnat.com>
4980
4981 * infrun.c (handle_inferior_event): Move a comment outside of a
4982 function call, in order to avoid indent reformatting this part
4983 of the code in an unreadable way.
4984
81d0cc19
GS
49852002-08-23 Grace Sainsbury <graces@redhat.com>
4986
4987 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4988 when breakpoints fail. Move general breakpoint error messages to
4989 insert_breakpoints.
4990 * breakpoint.c (insert_breakpoints): Change warnings when
4991 breakpoints are nto inserted to specify the type. Remove call to
4992 memory_error when hardware breakpoints can't be inserted. Remove
4993 multiple calls to warning so all messages are sent to the user at
4994 once.
4995 (delete_breakpoints): Make insert error messsages more explicit.
4996
17574093
DJ
49972002-08-23 Daniel Jacobowitz <drow@mvista.com>
4998
4999 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5000 gdbserver/ChangeLog.
5001
8acc2935
MK
50022002-08-23 Mark Kettenis <kettenis@gnu.org>
5003
dfe01d39
MK
5004 * i386-tdep.c: Include "objfiles.h".
5005 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5006 skip_trampoline_code.
5007 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5008 (CPLUS_MARKER): Define to '.'.
5009
8acc2935
MK
5010 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5011 member.
5012 (linux_corefile_thread_callback): Increase args->num_notes.
5013 (linux_make_note_section): Initialize thread_args.num_notes, and
5014 use it to determine whether notes for any threads were created.
5015
151fefe2 50162002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
5017
5018 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5019 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5020 and PCUNKILL.
5021 (write_with_trace): Conditionalize out the switch branch handling
5022 PCSHOLD if the corresponding macro is not defined. Likewise for
5023 PRSABORT and PRSTOP.
5024 This change will be needed by the Interix port.
5025
e1507482
EZ
50262002-08-22 Elena Zannoni <ezannoni@redhat.com>
5027
5028 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5029 write_register wherever possible instead of manipulating the
5030 register bytes directly.
5031 Assign VALUE_CONTENTS to a variable and use that.
5032 The GPR numbers are now dependent on the architecture.
5033
96ff0de4
EZ
50342002-08-22 Elena Zannoni <ezannoni@redhat.com>
5035
5036 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5037 ev_offset fields.
5038 (skip_prologue): Add support for BookE/e500 instructions.
5039 (e500_extract_return_value): New function.
5040 (frame_get_saved_regs): Add support for saving ev registers and
5041 pseudo gpr's.
5042 (e500_store_return_value): New function.
5043 (rs6000_gdbarch_init): Move up default intializations of
5044 deprecated_extract_return_value and store_return_value. Overwrite
5045 init of store_return_value with e500 specific version.
5046 Set extract_return_value for e500.
5047
fbefca5b
EZ
50482002-08-22 Elena Zannoni <ezannoni@redhat.com>
5049
5050 * blockframe.c (generic_call_dummy_register_unwind): Use
5051 regcache_cooked_read to catch cases in which the variable is
5052 stored in a pseudo register.
5053
4d210288
AC
50542002-08-22 Andrew Cagney <cagney@redhat.com>
5055
5056 * NEWS: Mention that the i960 has been made obsolete.
5057 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5058 i960-tdep.c
5059 (remote-nrom.o): Obsolete target.
5060 (remote-nindy.o, i960-tdep.o): Ditto.
5061 * remote-nrom.c: Make file obsolete.
5062 * remote-nindy.c, remote-vx960.c: Ditto.
5063 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5064 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5065 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5066 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5067 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5068 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5069 i960-*-vxworks* obsolete.
5070 * MAINTAINERS: Note that the i960 is obsolete.
5071
6c0c456d
CV
50722002-08-21 Corinna Vinschen <vinschen@redhat.com
5073
5074 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5075 detach to allow reinitialization.
5076
9f9d12b3
AC
50772002-08-22 Andrew Cagney <ac131313@redhat.com>
5078
5079 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5080 attempt).
5081
ebeb39fe
JB
50822002-08-22 Jim Blandy <jimb@redhat.com>
5083
5084 * coffread.c (coff_symfile_read): Don't try to read the line
5085 number table from disk if the image file doesn't have a symbol
5086 table; we'll never actually look at the info anyway, and Windows
5087 ships DLL's with bogus file offsets for the line number data.
5088
5bf1c677
EZ
50892002-08-21 Elena Zannoni <ezannoni@redhat.com>
5090
5091 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5092 an e500 executable.
5093
71b8ef93
MS
50942002-08-21 Michael Snyder <msnyder@redhat.com>
5095
5096 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5097 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
5098 (DEFAULT_MIPS_TYPE): Delete unused macro.
5099 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5100 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 5101
d174216d
JB
51022002-08-21 Jim Blandy <jimb@redhat.com>
5103
5104 * valops.c (value_cast): Simplify and correct logic for doing a
5105 static cast from a pointer to a base class to a pointer to a
5106 derived class.
5107
0ab7a791
AC
51082002-08-21 Andrew Cagney <ac131313@redhat.com>
5109
5110 * infcmd.c (default_print_registers_info): Replace
5111 do_registers_info.
5112 (registers_info): Use gdbarch_print_registers_info instead of
5113 DO_REGISTERS_INFO.
5114 * inferior.h (default_print_registers_info): Replace
5115 do_registers_info.
5116 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5117 (DO_REGISTERS_INFO): Change to a predicate function.
5118 * gdbarch.h, gdbarch.c: Regenerate.
5119
e23792cc
KS
51202002-08-21 Keith Seitz <keiths@redhat.com>
5121
5122 * gdb-events.sh: Add target-changed event.
5123 * gdb-events.c: Regenerated.
5124 * gdb-events.c: Regenerated.
5125 * valops.c (value_assign): Add target-changed event notification
5126 to inlval_register, lval_memory, and lval_reg_frame_relative.
5127
9fb14e79
JB
51282002-08-21 Joel Brobecker <brobecker@gnat.com>
5129
5130 * NEWS: Add an entry regarding the improvement of the next/step
5131 operation on Alpha Tru64 multi-processor machines.
5132
6d39a69f
AC
51332002-08-21 Andrew Cagney <ac131313@redhat.com>
5134
72acd513
AC
5135 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5136 directores.
342af04b 5137 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
5138 * Makefile.in (install-gdbtk): Move to install section.
5139 (rdi-share/libangsd.a): Move to end of file.
5140
fa5f27c7
AC
51412002-08-19 Andrew Cagney <ac131313@redhat.com>
5142
5143 * frame.c (frame_register_unwind): When a register, set addrp to
5144 the register's byte.
5145
5a89d8aa
MS
51462002-08-20 Michael Snyder <msnyder@redhat.com>
5147
5148 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5149 used locally, so move them from the target machine header to here.
5150 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5151 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5152 Make static.
5153 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5154
822e978b
AC
51552002-08-20 Andrew Cagney <cagney@redhat.com>
5156
5157 * NEWS: Mention that the Apollo line was made obsolete.
5158 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5159 m68*-hp-hpux* obsolete.
5160 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5161 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5162 * buildsym.c (make_blockvector): Make static.
5163 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5164 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5165 (ALLDEPFILES): Remove dstread.c.
5166 (dstread.o): Obsolete make rule.
5167 * dstread.c: Makefile obsolete.
5168 * dst.h: Ditto.
5169 * config/m68k/hp300hpux.mt: Ditto.
5170 * config/m68k/hp300hpux.mh: Ditto.
5171 * config/m68k/hp300bsd.mt: Ditto.
5172 * config/m68k/hp300bsd.mh: Ditto.
5173 * config/m68k/apollo68b.mt: Ditto.
5174 * config/m68k/apollo68v.mh: Ditto.
5175 * config/m68k/apollo68b.mh: Ditto.
5176
e41b17f0
MS
51772002-08-20 Michael Snyder <msnyder@redhat.com>
5178
5179 * mips-tdep.c (mips_in_return_stub): Make static.
5180 (mips_gdbarch_init): Set in_solib_return_trampoline.
5181 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5182
d50355b6
MS
51832002-08-20 Michael Snyder <msnyder@redhat.com>
5184
5185 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5186 * gdbarch.c, gdbarch.h: Regenerate.
5187 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5188 Add.
5189 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5190
757a7cc6
MS
51912002-08-20 Michael Snyder <msnyder@redhat.com>
5192
5193 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5194 (mips_gdbarch_init): Set skip_trampoline_code,
5195 in_solib_call_trampoline.
5196 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5197 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5198
c8001721
EZ
51992002-08-20 Elena Zannoni <ezannoni@redhat.com>
5200
5201 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5202
5203 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5204 vector type for ev registers.
5205 (e500_pseudo_register_read): New function.
5206 (e500_pseudo_register_write): New function.
5207 (e500_dwarf2_reg_to_regnum): New function.
5208 (PPC_UISA_NOFP_SPRS): New macro.
5209 (PPC_EV_REGS): New macro.
5210 (PPC_GPRS_PSEUDO_REGS): New macro.
5211 (registers_e500): New register set for e500.
5212 (variants): Add e500 variant.
5213 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5214 before setting architectural dependent variations. Initialize ev
5215 registers numbers. Add case for e500 architecture. Set the
5216 number of pseudo registers.
5217
64366f1c
EZ
52182002-08-20 Elena Zannoni <ezannoni@redhat.com>
5219
5220 * rs6000-tdep.c: Clean up comments.
5221
7e78f0ca
AC
52222002-08-20 Andrew Cagney <cagney@redhat.com>
5223
5224 * h8300-tdep.c: Re-indent file.
5225
697f7479
JB
52262002-08-20 Jim Blandy <jimb@redhat.com>
5227
5228 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5229 default for this.
697f7479 5230
e86ae29f
KS
52312002-08-20 Keith Seitz <keiths@redhat.com>
5232
5233 * breakpoints.c (watch_command_1): Use internal breakpoint
5234 when setting a watchpoint_scope breakpoint.
5235
216b504f
EZ
52362002-08-20 Elena Zannoni <ezannoni@redhat.com>
5237
5238 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5239 (build_builtin_type_vec64i): Ditto.
5240 (build_builtin_type_vec128): Ditto.
5241 (build_builtin_type_vec128i): Ditto.
5242
f7ab6ec6
MS
52432002-08-19 Michael Snyder <msnyder@redhat.com>
5244
5245 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5246 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5247 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5248 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5249 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5250 CALL_DUMMY_ADDRESS): Delete.
5251 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5252 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5253 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5254 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5255 push_return_address.
5256 (mips_register_raw_size, mips_eabi_use_struct_convention,
5257 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5258 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5259 mips_init_extra_frame_info, mips_eabi_push_arguments,
5260 mips_n32n64_push_arguments, mips_push_return_address,
5261 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5262 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5263
b5d1566e
MS
52642002-08-19 Michael Snyder <msnyder@redhat.com>
5265
5266 * mips-tdep.c (mips_frame_num_args): New function.
5267 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5268 frame_saved_pc, frame_args_address, frame_locals_address,
5269 frame_num_args, and frame_args_skip.
5270 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5271 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5272 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5273 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5274
2f1488ce
MS
52752002-08-20 Michael Snyder <msnyder@redhat.com>
5276
5277 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5278 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5279 * mips-tdep.c (mips_store_struct_return): New function.
5280 (mips_extract_struct_value_address): New function.
5281 (mips_gdbarch_init): Set store_struct_return and
5282 extract_struct_value_address.
5283
41ff2da1
DC
52842002-08-20 David Carlton <carlton@math.stanford.edu>
5285
5286 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5287 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5288 (read_file_scope): Check that line_header is nonzero before
5289 decoding macro information.
5290
e5451d58
MK
52912002-08-20 Mark Kettenis <kettenis@gnu.org>
5292
5293 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5294 flag the general-purpose registers as floating-point on targets
5295 that don't support the floating-point registers.
5296
4a6daafa
EZ
52972002-08-20 Elena Zannoni <ezannoni@redhat.com>
5298
5299 * rs6000-tdep.c (altivec_register_p): Delete.
5300 (rs6000_do_altivec_registers): Delete.
5301 (rs6000_altivec_registers_info): Delete.
5302 (rs6000_do_registers_info): Delete.
5303 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5304 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5305
ab4327e0
EZ
53062002-08-20 Elena Zannoni <ezannoni@redhat.com>
5307
5308 * infcmd.c (do_registers_info): Print vector registers in hex
5309 format only.
5310 (print_vector_info): Check that printing registers
5311 makes sense.
5312 (print_float_info): Ditto.
5313
cb1d2653
AC
53142002-08-20 Andrew Cagney <ac131313@redhat.com>
5315
5316 * mips-tdep.c (mips_gdbarch_init): Update.
5317 (mips_o32_extract_return_value): Rewrite.
5318 (mips_o32_store_return_value): Rewrite.
5319 (mips_o32_xfer_return_value): New function.
5320 (mips_xfer_register): Tweak debug print message. Allow for
5321 buf_offset when dumping the value transfered.
5322
dfc3d9b2
AC
53232002-08-20 Andrew Cagney <ac131313@redhat.com>
5324
5325 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5326 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5327 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5328 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5329 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5330
7807aa61
MS
53312002-08-14 Michael Snyder <msnyder@redhat.com>
5332
5333 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5334
489461e2
EZ
53352002-08-19 Elena Zannoni <ezannoni@redhat.com>
5336
5337 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5338 register.
5339 (P): New macro to define a register as a pseudo register.
5340 (R, R4, R8, R16, FR32, R64, R0): Updated.
5341 (struct variant): Add new fields for number of pseudo registers
5342 and number of total registers.
5343 (tot_num_registers): New macro replacing....
5344 (num_registers): ...deleted macro.
5345 (num_registers): New function.
5346 (num_pseudo_registers): New function.
5347 (variants): Update all variants to intialize new fields correctly.
5348 Postpone initialization of number of pseudo regs and real regs.
5349 (init_variants): New function.
5350 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5351 registers offsets.
5352
fcaffe4c
DC
53532002-08-19 David Carlton <carlton@math.stanford.edu>
5354
2c2738a0
DC
5355 * valops.c (search_struct_field): Change error message to treat
5356 return value of 0 from value_static_field as meaning that field is
5357 optimized out.
5358 (value_struct_elt_for_reference): Ditto.
5359 * values.c (value_static_field): Treat an unresolved location the
5360 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
5361 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5362 enclosed. Fix PR gdb/574.
fcaffe4c
DC
5363 * MAINTAINERS: Add self to Write After Approval list.
5364
88658117
AC
53652002-08-19 Andrew Cagney <ac131313@redhat.com>
5366
5367 * mips-tdep.c (mips_xfer_register): New function.
5368 (mips_n32n64_extract_return_value): Rewrite.
5369 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5370 instead of deprecated_extract_return_value.
5371
21283beb
EZ
53722002-08-19 Elena Zannoni <ezannoni@redhat.com>
5373
5374 * rs6000-tdep.c (TDEP): Delete macro.
5375 (branch_dest): Replace use of TDEP macro with its body.
5376 (rs6000_pop_frame): Ditto.
5377 (rs6000_push_arguments): Ditto.
5378 (rs6000_skip_trampoline_code): Ditto.
5379 (rs6000_frame_saved_pc): Ditto.
5380 (rs6000_frame_chain): Ditto.
5381 (rs6000_register_name): Ditto.
5382 (rs6000_register_byte): Ditto.
5383 (rs6000_register_raw_size): Ditto.
5384 (rs6000_register_virtual_type): Ditto.
5385 (rs6000_register_convertible): Ditto.
5386 (rs6000_convert_from_func_ptr_addr): Ditto.
5387
bf072999
DJ
53882002-08-19 Daniel Jacobowitz <drow@mvista.com>
5389
5390 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5391 conditionally.
5392 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5393 MIPS_LINUX_JB_ELEMENT_SIZE.
5394 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5395 for MAX_REGISTER_RAW_SIZE arrays.
5396 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5397 MIPS_LINUX_JB_ELEMENT_SIZE.
5398
9b949a49
PM
53992002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5400
5401 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5402
6d3e79c6
AS
54032002-08-19 Aidan Skinner <aidan@velvet.net>
5404
5405 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5406 ada-valprint.c ada-tasks.c.
5407 (YYFILES): Add ada-exp.y.
5408 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5409 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5410 (ada-exp.tab.o): New target.
5411
06c0b04e
AC
54122002-08-18 Andrew Cagney <ac131313@redhat.com>
5413
5414 * regcache.c (regcache_xfer_part): New function.
5415 (regcache_raw_read_part): New function.
5416 (regcache_raw_write_part): New function.
5417 (regcache_cooked_read_part): New function.
5418 (regcache_cooked_write_part): New function.
5419 * regcache.h (regcache_raw_read_part): Declare.
5420 (regcache_raw_write_part): Declare.
5421 (regcache_cooked_read_part): Declare.
5422 (regcache_cooked_write_part): Declare.
5423
92d1e331
DJ
54242002-08-18 Daniel Jacobowitz <drow@mvista.com>
5425
5426 * remote.c (remote_open_1): Add async_p.
5427 (remote_async_open_1): Delete.
5428 (open_remote_target): Delete.
5429 (remote_open, extended_remote_open): Update calls to remote_open_1.
5430 (remote_async_open, extended_remote_async_open): Call
5431 remote_open_1 instead of remote_async_open_1.
5432
247055de
MK
54332002-08-19 Mark Kettenis <kettenis@gnu.org>
5434
5435 * blockframe.c: Fix a few coding standard violations.
5436
641eda39
MK
54372002-08-19 Mark Kettenis <kettenis@gnu.org>
5438
0b717710
MK
5439 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5440 here from ...
5441 * config/i386/tm-i386sco5.h: ... here. File removed.
5442 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5443
26d28e12 5444 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
5445 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5446 (TM_FILE): Set to tm-i386.h.
5447 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5448 * config/i386/tm-i386v.h: Remove file.
5449 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5450 instead of "i386/tm-i386v.h".
5451 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5452 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5453 "i386/tm-i386v.h".
5454 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5455 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5456 "i386/tm-i386.h".
5457
d4e0bab4
MK
54582002-08-18 Mark Kettenis <kettenis@gnu.org>
5459
5460 * config/i386/nm-i386v.h: Add protection against
5461 multiple-inclusion.
5462 (i386_register_u_addr): Remove prototype.
5463 (register_u_addr): New prototype.
5464 (REGISTER_U_ADDR): Redefine accordingly.
5465 * i386v-nat.c: Improve several comments.
5466 (i386_register_u_addr): Change signature and rename to
5467 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5468 ubase variable.
5469
46cac009
AC
54702002-08-18 Andrew Cagney <ac131313@redhat.com>
5471
5472 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5473 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5474 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5475 deprecated_extract_return_value.
5476 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5477 rename mips_o32o64_push_arguments.
5478 (mips_gdbarch_init): Update.
5479 (mips_extract_return_value): Delete.
5480 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5481 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5482 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5483 (mips_n32n64_extract_return_value): Clone
5484 mips_extract_return_value.
5485 (mips_store_return_value): Delete.
5486 (mips_o32_store_return_value): Clone mips_store_return_value.
5487 (mips_o64_store_return_value): Clone mips_store_return_value.
5488 (mips_eabi_store_return_value): Clone mips_store_return_value.
5489 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5490
d2e4a39e
AS
54912002-08-18 Aidan Skinner <aidan@velvet.net>
5492
0c30c098
AS
5493 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5494 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5495
54962002-08-18 Aidan Skinner <aidan@velvet.net>
5497
5498 * ada-lang.c: Run through gdb_indent.sh.
5499 * ada-lang.h: Run through gdb_indent.sh.
5500 * ada-tasks.c: Run through gdb_indent.sh.
5501 * ada-typeprint.c: Run through gdb_indent.sh.
5502 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 5503
01fc4e33
AC
55042002-08-18 Andrew Cagney <ac131313@redhat.com>
5505
5506 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5507 ABI.
5508
d8ee244c
MK
55092002-08-18 Mark Kettenis <kettenis@gnu.org>
5510
c38d8261
MK
5511 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5512
222db64c
MK
5513 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5514 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5515
c2848c82
MK
5516 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5517 write_register_gen instead of write_register_bytes.
5518
d8ee244c
MK
5519 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5520 i[3456]-*-osf1mk* configurations have been made obsolete.
5521 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5522 i[3456]86-*-osf1mk* hosts obsolete.
5523 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5524 targets obsolete.
5525 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5526 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5527 config/i386/i386m3.mt, config/i386/nm-m3.h,
5528 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5529 config/i386/i386mk.mh, config/i386/i386mk.mt,
5530 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5531 obsolete.
5532 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5533 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5534 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5535
61d8d407
AC
55362002-08-18 Andrew Cagney <ac131313@redhat.com>
5537
5538 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5539 (hppa_value_returned_from_stack): Declare.
5540 (hppa_extract_return_value): Declare.
5541 * config/pa/hppa.mt: New file.
5542 * configure.tgt: Recognize hppa*-*-*.
5543 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5544
0c52bd59
MK
55452002-08-18 Mark Kettenis <kettenis@gnu.org>
5546
5547 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5548 comment.
5549
b5686e99
MK
55502002-08-17 Mark Kettenis <kettenis@gnu.org>
5551
5552 * top.c (gdb_rl_operate_and_get_next): Make sure
5553 operate-and-get-next functions correctly even when the history
5554 list is completely filled.
5555
c1bab85b
AC
55562002-08-18 Andrew Cagney <ac131313@redhat.com>
5557
5558 * MAINTAINERS (Target Instruction Set Architectures): Rename
5559 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5560 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5561 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5562 already listed under Host/Native.
5563
5564 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5565 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5566 mips*-*-*.
5567
32089c7c
AC
55682002-08-17 Andrew Cagney <ac131313@redhat.com>
5569
5570 * config/ia64/ia64.mt: New file.
5571 * config/alpha/alpha.mt: New file.
5572 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5573 ia64-linux-gnu. Mention that ia64-elf is broken.
5574 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5575
b4671f85
MK
55762002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5577
5578 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5579 generic_func_frame_valid instead of func_frame_valid.
5580
c8edd8b4
JB
55812002-08-16 Joel Brobecker <brobecker@gnat.com>
5582
5583 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5584 procfs appears to be broken when debugging on multi-processor
5585 machines. So enable software single stepping in order to avoid
5586 using the procfs interface to do next/step operations, using
5587 internal breakpoints instead.
5588
5589 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5590 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5591 make this pc address equal to the value it would have if the
5592 system stepping capability was used. Also set a new flag used
5593 to ensure that we don't readjust the PC one more time later.
5594
5595 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5596 address by DECR_PC_AFTER_BREAK when software single step is
5597 in use for this architecture, as this has already been taken
5598 care of in handle_inferior_event().
5599
238617f6
JB
56002002-08-16 Joel Brobecker <brobecker@gnat.com>
5601
5602 * infrun.c (handle_inferior_event): Minor reformatting, to make
5603 a rather long condition expression easier to read.
5604
541a7aac
AC
56052002-08-16 Andrew Cagney <ac131313@redhat.com>
5606
5607 * Makefile.in (gdbtk.o): Move to end of file.
5608 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5609 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5610 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5611 (gdbtk-wrapper.o, gdbres.o): Ditto.
5612
f92d4a7b
AC
56132002-08-16 Andrew Cagney <ac131313@redhat.com>
5614
5615 * Makefile.in (copying.o): Separate out compile rule.
5616 (hpux-thread.o, procfs.o, signals.o): Ditto.
5617 (v850ice.o, z8k-tdep.o): Ditto.
5618 (tui-file.o): Move to TUI section.
5619 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5620 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5621
1cce71eb
JB
56222002-08-16 Joel Brobecker <brobecker@gnat.com>
5623
5624 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5625 skip_trampoline_code, for better namespace-proofing.
5626
5627 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5628
0851f23d
JB
56292002-08-16 Joel Brobecker <brobecker@gnat.com>
5630
5631 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5632
f8d40ec8
JB
56332002-08-16 Joel Brobecker <brobecker@gnat.com>
5634
5635 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5636 signal, check whether we hit a breakpoint before checking for a
5637 single step breakpoint. Otherwise, GDB fails to notice that a
5638 breakpoint has been hit when stepping onto a breakpoint.
5639
63d022e0
KS
56402002-08-16 Keith Seitz <keiths@redhat.com>
5641
5642 * gdb-events.sh (clear_gdb_event_hooks): New function.
5643 * gdb-events.c: Regenerate.
5644 * gdb-events.h: Regenerate.
5645
6e31adb3
AC
56462002-08-16 Andrew Cagney <ac131313@redhat.com>
5647
5648 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5649 not_a_sw_breakpoint.
5650 * breakpoint.h (bpstat_stop_status): Add parameter names.
5651
c8189ed1
GS
56522002-08-16 Grace Sainsbury <graces@redhat.com>
5653
5654 * remote.c (remote_insert_hw_breakpoint)
5655 (remote_remove_hw_breakpoint): Fix calculation of length field
5656 for Z-packet.
5657
d05285fa
MS
56582002-08-15 Michael Snyder <msnyder@redhat.com>
5659
466d7106
MS
5660 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5661 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5662 (supply_fpregset): Ditto.
5663
d05285fa
MS
5664 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5665 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5666 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5667 (TARGET_READ_SP): Delete.
bf1f5b4c 5668 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5669 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5670 Delete.
5671 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5672 from macros to functions.
bf1f5b4c 5673
d05285fa
MS
5674 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5675 (mips_register_convertible, mips_register_convert_to_virtual,
5676 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5677 (mips_read_sp): New function.
5678 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5679 (mips_do_registers_info): Make static.
5680 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5681 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5682 (mips_register_convert_from_type, mips_register_convert_to_type):
5683 New functions.
5684 (mips_gdbarch_init): Set up function_start_offset,
5685 register_virtual_size, pc_in_sigtramp.
d05285fa 5686
e76f1f2e
AC
56872002-08-15 Andrew Cagney <ac131313@redhat.com>
5688
5689 * infcmd.c (vector_info): New function.
5690 (_initialize_infcmd): Add command "info vector".
5691 (print_vector_info): New function.
5692
5693 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5694 * gdbarch.h, gdbarch.c: Regenerate.
5695
4782dc19
AC
56962002-08-15 Andrew Cagney <ac131313@redhat.com>
5697
5698 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5699 ``print_all''. Only print vector registers when ``print_all''.
5700
23e3a7ac
AC
57012002-08-15 Andrew Cagney <ac131313@redhat.com>
5702
8e186fd6
AC
5703 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5704 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5705
23e3a7ac
AC
5706 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5707 Add `args' parameter.
5708 * gdbarch.h, gdbarch.c: Regenerate.
5709
5710 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5711
5712 * infcmd.c (float_info): Call print_float_info.
5713 (print_float_info): New function. By default, print the
5714 floating-point registers.
5715
5716 * arch-utils.h (default_print_float_info): Delete declaration.
5717 * arch-utils.c (default_print_float_info): Delete function.
5718
e0ca2bb9
MK
57192002-08-16 Mark Kettenis <kettenis@gnu.org>
5720
3f733acc
MK
5721 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5722 out define.
5723
7d8d2918
MK
5724 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5725 FRAME.
5726
1c7cc583
MK
5727 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5728 * configure.host: Make i[3456]86-*-aix host obsolete.
5729 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5730 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5731 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5732 config/i386/xm-i386aix.h: Make files obsolete.
5733 * i386aix-nat.c: Make file obsolete.
5734 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5735 (i386aix-nat.o): Make target obsolete.
5736
e0ca2bb9
MK
5737 * config/i386/nm-gnu.h: Removed.
5738 * config/i386/nm-i386gnu.h: New file.
5739 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5740 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5741 Moved here from ...
5742 * config/i386/tm-i386gnu.h: ... here. Removed.
5743 * config/i386/xm-i386gnu.h: Removed.
5744 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5745 (NAT_FILE): Set to nm-i386gnu.h.
5746 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5747 * i386-tdep.c: New file.
5748 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5749 (i386gnu-tdep.o): Specify dependencies.
5750
16057ec7 57512002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5752
6b99ee2e
MK
5753 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5754 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5755 Adjust a few comments to reflect reality a bit closer.
5756 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5757 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5758 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5759 target_insert_watchpoint, target_remove_watchpoint):
5760 Move defines to ...
5761 * config/i386/nm-i386sco5.h: ... here.
5762 (kernel_u_size): Add prototype. Improve a few comments and add
5763 protection against multiple inclusion.
5764
d9a6f65c
MK
5765 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5766 out define.
5767
047eff6a
MK
5768 * uw-thread.c (SP_ARG0): Define if not already defined.
5769 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5770
dcdb1290
MK
5771 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5772
5d2d0b2a
MK
5773 * config/i386/tm-i386.h: Don't include "regcache.h".
5774
61113f8b
MK
5775 * i387-tdep.h (i387_print_float_info): New prototype.
5776 * i387-tdep.c (print_i387_value, print_i387_ext,
5777 print_i387_status_word, print_i387_control_word): Add `struct
5778 ui_file *' argument and use it for output.
5779 (i387_print_float_info): Renamed from i387_float_info. Add
5780 `struct gdbarch *' and `struct ui_file *' arguments and use the
5781 latter for output.
5782 * i386-tdep.c: Include "i387-tdep.h".
5783 (i386_gdbarch_init): Set print_float_info.
5784 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5785 (FLOAT_INFO): Remove define.
5786
46e0f506
MS
57872002-08-13 Michael Snyder <msnyder@redhat.com>
5788
5789 * mips-tdep.c (mips_push_arguments): Rename to
5790 mips_eabi_push_arguments, and tune for EABI.
5791 (MIPS_REGS_HAVE_HOME_P): Delete.
5792 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5793 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5794 Delete references to mips_regs_have_home_p.
5795
409268de
KS
57962002-08-14 Keith Seitz <keiths@redhat.com>
5797
5798 * Makefile.in (install-gdbtk): Create insight plugin directory.
5799 Install plugins.tcl file.
5800
ffc6a242
KS
58012002-08-14 Keith Seitz <keiths@redhat.com>
5802
5803 * configure.in: Move SUBDIRS to near top of the file so that
5804 --enable options may add things to it.
5805 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5806 * configure: Regenerate.
5807
ebafbe83
MS
58082002-08-13 Michael Snyder <msnyder@redhat.com>
5809
5810 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5811 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5812 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5813
32f6f25d
AC
58142002-08-13 Andrew Cagney <ac131313@redhat.com>
5815
5816 * vax-tdep.c (vax_get_saved_register): Delete function.
5817 (vax_gdbarch_init): Update.
5818 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5819 (ns32k_gdbarch_init): Update.
5820 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5821 (alpha_gdbarch_init): Update.
5822
53826de9
AC
58232002-08-13 Andrew Cagney <cagney@redhat.com>
5824
5825 * regcache.c (init_regcache_descr): Overallocate the
5826 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5827 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5828 nr_raw_registers.
5829 (set_register_cached): Add range checking assertions. Use
5830 current_regcache.
5831
16057ec7 58322002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5833
5834 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5835 numbers for MMX registers.
5836
7b4c2dce
AC
58372002-08-13 Andrew Cagney <cagney@redhat.com>
5838
5839 * i386-tdep.c (i386_gdbarch_init): Use
5840 generic_unwind_get_saved_register.
5841
1e03ad20
KB
58422002-08-13 Kevin Buettner <kevinb@redhat.com>
5843
5844 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5845 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5846 target vector.
5847 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5848 Delete. Add comment regarding this now-deleted target method.
5849
548bcbec
SC
58502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5851
5852 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5853 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5854 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5855 real PC and the page number (if it's within the memory bank window).
5856 (m68hc11_pseudo_register_write): Likewise when saving.
5857 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5858 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5859 (m68hc11_register_raw_size): And use 32-bit for it.
5860 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5861 16K memory bank is used by the prog; also use the virtual pc.
5862
7df11f59
SC
58632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5864
5865 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5866 (m68hc11_gdbarch_init): Install it in gdbarch.
5867 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5868 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5869 (MSYMBOL_SIZE): New for documentation.
5870 (insn_return_kind): Enum to specify how a function returns.
5871 (frame_extra_info): Cleanup and record the return mode.
5872 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5873 register in address computation.
5874 (m68hc11_get_return_insn): New to obtain the return instruction used
5875 by the function.
5876 (m68hc11_frame_init_saved_regs): Take into account the return
5877 instruction used by the function for far and interrupt functions.
5878 (m68hc11_init_extra_frame_info): Take into account page register.
5879 (m68hc11_frame_args_address): Adjust according to the return mode.
5880 (show_regs): Print page register only when it's used.
5881
5706502a
SC
58822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5883
5884 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5885 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5886 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5887 registers.
5888 (m68hc11_register_raw_size): Likewise.
5889
28fc6740
AC
58902002-08-13 Andrew Cagney <cagney@redhat.com>
5891
5892 * i386-tdep.c (i386_register_name): Handle mmx registers.
5893 (mmx_regnum_p): New function.
5894 (i386_mmx_names): New array.
5895 (mmx_num_regs): New variable.
5896 (i386_pseudo_register_read): New function.
5897 (i386_pseudo_register_write): New function.
5898 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5899
5900 * regcache.c (regcache_raw_read_unsigned): New function.
5901 (regcache_raw_read_signed): New function.
5902 * regcache.h (regcache_raw_read_unsigned): Declare.
5903 (regcache_raw_read_signed): Declare.
5904
a378f419
AC
59052002-08-13 Andrew Cagney <cagney@redhat.com>
5906
5907 * regcache.c (regcache_raw_read_as_address): Delete function.
5908 (regcache_cooked_read_signed): New function.
5909 (regcache_cooked_read_unsigned): New function.
5910 * regcache.h (regcache_cooked_read_signed): Declare.
5911 (regcache_cooked_read_unsigned): Declare.
5912 (regcache_raw_read_as_address): Delete declaration.
5913
5914 * blockframe.c (generic_read_register_dummy): Use
5915 regcache_cooked_read_unsigned.
5916 * i386-tdep.c (i386_extract_struct_value_address): Use
5917 regcache_cooked_read_unsigned.
5918
81967506
SC
59192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5920
5921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5922 double sizes according to ELF ABI flags.
5923 (gdbarch_tdep): Record elf_flags.
5924
ffe1f3ee
SC
59252002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5926
5927 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5928 (m6812_prolog): They can appear in 68HC12 function prologue.
5929 (m68hc11_frame_chain): Cleanup.
5930
98216c5d
AC
59312002-08-12 Andrew Cagney <cagney@redhat.com>
5932
5933 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5934 declarations.
5935 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5936 (i386_linux_register_raw_size): Delete function.
5937 (i386_linux_init_abi): Update.
5938 * i386-tdep.c (i386_register_raw_size): Delete function.
5939 (i386_register_byte): Delete function.
5940 (i386_gdbarch_init): Update.
5941 (i386_register_size): Delete array.
5942 (i386_register_offset): Delete array.
5943
5944 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5945 (REGISTER_RAW_SIZE): Delete macro.
5946 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5947 (REGISTER_BYTE): Delete macro.
5948
3b19021e
AS
59492002-08-11 Aidan Skinner <aidan@velvet.net>
5950
5951 * ada-lang.c (ada_lookup_partial_symbol)
5952 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5953 prototype names so that grep ^func works properly.
5954
5955 * ada-lang.c (ada_array_element_type)
5956 (ada_lookup_partial_symbol): Fix typos in parameter list.
5957
5958 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5959 Fix prototype names so that grep ^func works properly.
5960
b063e7a2
AC
59612002-08-10 Andrew Cagney <cagney@redhat.com>
5962 Elena Zannoni <ezannoni@redhat.com>
5963 Martin M. Hunt <hunt@redhat.com>
5964
5965 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5966 (build_builtin_type_vec128i): Set the vector bit.
5967 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5968 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5969 (build_builtin_type_vec64): New function.
5970 (build_builtin_type_vec64i): New function.
5971 (build_gdbtypes): Initialize builtin_type_vec64 and
5972 builtin_type_vec64i.
5973
a7e3c2ad
AC
59742002-08-09 Andrew Cagney <cagney@redhat.com>
5975
5976 * regcache.c (regcache_dump): Compare the register offset
5977 with REGISTER_BYTE.
5978 * arch-utils.c (generic_register_byte): New function.
5979 * arch-utils.h (generic_register_byte): Declare.
5980 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5981 * gdbarch.h, gdbarch.c: Regenerate.
5982
af030b9a
AC
59832002-08-09 Andrew Cagney <cagney@redhat.com>
5984
5985 * regcache.c: Include "gdbcmd.h"
5986 (_initialize_regcache): Add commands "maintenance print
5987 registers", "maintenance print raw-registers" and "maintenance
5988 print cooked-registers".
5989 (enum regcache_dump_what): Define.
5990 (dump_endian_bytes): New function.
5991 (regcache_dump): New function.
5992 (regcache_print): New function.
5993 (maintenance_print_registers): New function.
5994 (maintenance_print_raw_registers): New function.
5995 (maintenance_print_cooked_registers): New function.
5996 * Makefile.in (regcache.o): Update dependencies.
5997
cb3d25d1
MS
59982002-08-09 Michael Snyder <msnyder@redhat.com>
5999
6000 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6001 (mips_push_arguments): Correct some comments. Use paddr_nz
6002 for printing addresses in debug output. Replace static
6003 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6004 (mips_n32n64_push_arguments): New function, cloned from
6005 mips_push_arguments and tuned for the n32/n64 ABI.
6006 (mips_push_register): Buffer needs dynamic allocation.
6007 (mips_print_register): Ditto.
6008 (do_gp_register_row): Ditto.
6009 (mips_store_return_value): Ditto.
6010 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6011
2163ab9d
DH
60122002-08-09 Don Howard <dhoward@redhat.com>
6013
6014 * memattr.c (mem_info_command): Print special case of upper bound
6015 as max CORE_ADDR + 1.
6016
b78bcb18
MS
60172002-08-08 Michael Snyder <msnyder@redhat.com>
6018
6019 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6020 returns structs by ref if they're too big to fit in two registers.
6021
ffabd70d
KB
60222002-08-09 Kevin Buettner <kevinb@redhat.com>
6023
6024 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6025 saved regs value.
6026 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6027 mips_find_saved_regs().
6028 (mips_pop_frame): Likewise.
6029
fbcdb4a3
KB
60302002-08-09 Kevin Buettner <kevinb@redhat.com>
6031
6032 * blockframe.c (frame_saved_regs_register_unwind): Revise
6033 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6034 frames are in use.
6035
3c3bea1c
GS
60362002-08-09 Grace Sainsbury <graces@redhat.com>
6037
6038 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6039 T-packets; the 'a' is not taken as a register number.
6040 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6041 (remote_stopped_data_address): New functions; add to target
6042 vector.
6043 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6044 prototypes to match other implementations of this
6045 function. replace integer argument with pointer -- the length
6046 field in the Z-packet is the length of what is pointed to or 1 if
6047 pointer is null. Add to target vector.
6048 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6049 target vector.
6050
6051 From Mark Salter:
6052 * remote.c (remote_wait): Add support to extract optional
6053 watchpoint information from T-packet. Ignore unrecognized
6054 optional info in T-packet.
6055 (remote_async_wait): Ditto.
6056
5d1d95de
CV
60572002-08-09 Corinna Vinschen <vinschen@redhat.com>
6058
6059 * cli/cli-dump.c: Change fopen modes to use binary open modes
6060 as defined in include/fopen-bin.h throughout.
6061
c86b5b38
MS
60622002-08-08 Michael Snyder <msnyder@redhat.com>
6063
6064 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6065
b30590dc
KB
60662002-08-08 Kevin Buettner <kevinb@redhat.com>
6067
6068 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6069 assertion failure by returning early after a warning.
6070
498868ed
KB
60712002-08-08 Kevin Buettner <kevinb@redhat.com>
6072
6073 * mips-tdep.c (mips_find_saved_regs): Make static.
6074 (mips_frame_init_saved_regs): New function.
6075 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6076 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6077 (mips_find_saved_regs): Delete declaration.
6078
b2dd6311
GS
60792002-08-08 Grace Sainsbury <graces@redhat.com>
6080
3c3bea1c
GS
6081 * remote.c (remote_wait, remote_async_wait): Change
6082 thread_num from int to ULONGEST.
6083 (unpack_varlen_hex): Change result parameter from
6084 int * to ULONGEST *.
b2dd6311 6085
ea47855f
AC
60862002-08-08 Andrew Cagney <ac131313@redhat.com>
6087
6088 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6089 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6090 powerpc*-*-*.
6091 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6092
69db8bae
AC
60932002-08-08 Andrew Cagney <cagney@redhat.com>
6094
6095 * gcore.c (override_derive_stack_segment): Delete variable.
6096 (preempt_derive_stack_segment): Delete function.
6097 (derive_stack_segment): Delete function.
6098 (default_derive_stack_segment): Renamed to derive_stack_segment.
6099 (override_derive_heap_segment): Delete variable.
6100 (preempt_derive_heap_segment): Delete function.
6101 (derive_heap_segment): Delete function.
6102 (default_derive_heap_segment): Rename to derive_heap_segment.
6103
cb811fe7
MS
61042002-08-06 Michael Snyder <msnyder@redhat.com>
6105
6106 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6107 * mips-tdep.c (mips_EABI_use_struct_convention,
6108 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6109 New functions. (mips_use_struct_convention): Delete.
6110 (mips_gdbarch_init): set use_gdbarch_convention.
6111
8b389c40
MS
61122002-08-06 Michael Snyder <msnyder@redhat.com>
6113
6114 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6115 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6116 mips_o32_reg_struct_has_addr): New functions.
6117 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6118
5c27f28a
AC
61192002-08-07 Andrew Cagney <ac131313@redhat.com>
6120
6121 * regcache.c (pseudo_register): Delete function.
6122 (fetch_register): Delete function.
6123 (store_register): Delete function.
6124 (regcache_raw_read, legacy_read_register_gen): Use
6125 target_fetch_registers instead of fetch_register.
6126 (legacy_write_register_gen, regcache_raw_write): Use
6127 target_store_register instead of store_register.
6128 (write_register_bytes): Ditto.
6129
6130 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6131 (STORE_PSEUDO_REGISTER): Delete.
6132 * gdbarch.h, gdbarch.c: Regenerate.
6133
5b331675
CV
61342002-08-06 Corinna Vinschen <vinschen@redhat.com>
6135
6136 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6137 write dump file binary.
6138
6acdf5c7
MS
61392002-08-05 Michael Snyder <msnyder@redhat.com>
6140
6141 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6142 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6143 (mips_gdbarch_init): Set N32 target to be mips64.
6144
b2f01c35
KB
61452002-08-06 Kevin Buettner <kevinb@redhat.com>
6146
6147 * frame.c (find_saved_register): Break out of loop once saved
6148 register address is found. Don't mention sparc in loop comment
6149 anymore.
6150
63db5580
KB
61512002-08-06 Kevin Buettner <kevinb@redhat.com>
6152
6153 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6154 mips_default_saved_regsize to 8.
6155
5e34e75e
AC
61562002-08-06 Andrew Cagney <ac131313@redhat.com>
6157
6158 * gcore.c: Do not include <sys/procfs.h>.
6159 * Makefile.in (gcore.o): Update dependencies.
6160
eb4c54a2
AC
61612002-08-06 Andrew Cagney <cagney@redhat.com>
6162
6163 * configure.tgt: Make arc-*-* obsolete.
6164 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6165 * MAINTAINERS: Make arc-elf obsolete.
6166 * arc-tdep.c: Make file obsolete.
6167 * config/arc/arc.mt: Ditto.
6168 * config/arc/tm-arc.h: Ditto.
6169
ced15480
TR
61702002-08-05 Theodore A. Roth <troth@verinet.com>
6171
c1bab85b 6172 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 6173
b4743822
AC
61742002-08-05 Andrew Cagney <ac131313@redhat.com>
6175
6176 * mcore-tdep.c (mcore_gdbarch_init): Use
6177 generic_unwind_get_saved_register instead of
6178 generic_get_saved_register.
6179 * v850-tdep.c (v850_gdbarch_init): Ditto.
6180 * frv-tdep.c (frv_gdbarch_init): Ditto.
6181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6182 * s390-tdep.c (s390_gdbarch_init): Ditto.
6183 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6184 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6185 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6186
3956d554
JB
61872002-08-05 Joel Brobecker <brobecker@gnat.com>
6188
6189 * objfiles.h: Add missing #include "symfile.h"
6190
6191 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6192
8249c0d6
AC
61932002-08-04 Andrew Cagney <ac131313@redhat.com>
6194
6195 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6196 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6197 of FIELD_BITSIZE.
6198
b9d14705
DJ
61992002-08-04 Daniel Jacobowitz <drow@mvista.com>
6200
6201 * NEWS: Cleanup and nitpick.
6202
dd73b9bb
AC
62032002-08-03 Andrew Cagney <ac131313@redhat.com>
6204
6205 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6206
043a27f8
AC
62072002-08-03 Andrew Cagney <ac131313@redhat.com>
6208
6209 * Makefile.in (gdbtk-bp.o): Update dependencies.
6210 (gdbtk-register.o): Ditto.
6211 (gdbtk-varobj.o): Ditto.
6212
46ce284d
AC
62132002-08-03 Andrew Cagney <cagney@redhat.com>
6214
6215 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6216 m68hc11_fetch_pseudo_register.
6217 (m68hc11_pseudo_register_write): Replace
6218 m68hc11_store_pseudo_register.
6219 (m68hc11_gdbarch_init): Update.
6220
b66d6d2e
AC
6221Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6222
6223 * gdbarch.sh: Include "gdb_string.h".
6224 * gdbarch.c: Regenerate.
6225
6226 * regcache.c: Include "gdb_string.h".
6227 * ax-general.c: Ditto.
6228 * varobj.c: Ditto.
6229 * std-regs.c: Ditto.
6230 * fbsd-proc.c: Ditto.
6231 * thread.c: Ditto.
6232
6233 * Makefile.in (regcache.o): Update dependencies.
6234 (thread.o, gdbarch.o): Ditto.
6235 (ax-general.o, gdbarch.o): Ditto.
6236 (varobj.o, std-regs.o): Ditto.
6237 (fbsd-proc.o): Specify dependencies.
6238
29e1842b
AC
62392002-08-02 Andrew Cagney <cagney@redhat.com>
6240
6241 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6242 regnum.
6243 (regcache_cooked_write): Ditto.
6244
68365089
AC
62452002-08-02 Andrew Cagney <ac131313@redhat.com>
6246
6247 * regcache.c (regcache_cooked_read): New function.
6248 (regcache_cooked_write): New function.
6249 (read_register_gen): Rewrite using regcache_cooked_read.
6250 (write_register_gen): Rewrite using regcache_cooked_write.
6251
6252 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6253 Declare.
6254
d8124050
AC
62552002-08-02 Andrew Cagney <cagney@redhat.com>
6256
6257 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6258 Replace the architecture methods register_read and register_write.
6259 * gdbarch.h, gdbarch.c: Regenerate.
6260 * regcache.c (init_regcache_descr): Update.
6261 (read_register_gen): Update.
6262 (write_register_gen): Update.
6263 (supply_register): Update comment.
6264
6265 * sh-tdep.c (sh_gdbarch_init): Update.
6266 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6267 `regcache' and `gdbarch' parameters. Make `buffer' a void
6268 pointer. Update code.
6269 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6270 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6271 void pointer. Update code.
6272 (sh64_register_write): Delete.
6273 (sh4_register_read): Delete.
6274 (sh64_register_read): Delete.
6275 (sh4_register_write): Delete.
6276 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6277 void pointer, `to' parameter a void pointer.
6278 (sh_sh64_register_convert_to_raw): Ditto.
6279
a6425924
KB
62802002-08-01 Kevin Buettner <kevinb@redhat.com>
6281
6282 * mips-tdep.c (mips_register_virtual_type): Use architecture
6283 invariant return values.
6284
ff5922b5
AC
62852002-08-01 Andrew Cagney <cagney@redhat.com>
6286
6287 * linux-proc.c: Include "gdb_string.h".
6288 * Makefile.in (linux-proc.o): Update dependency list.
6289
32a6503c
KB
62902002-08-01 Kevin Buettner <kevinb@redhat.com>
6291
6292 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6293 comment.
6294
ccaa32c7
GS
62952002-08-01 Grace Sainsbury <graces@redhat.com>
6296
6297 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6298 to_insert_watchpoint, to_remove_watchpoint,
6299 to_stopped_by_watchpoint, to_stopped_data_address,
6300 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6301 target vecctor. Define their corresponding macros so they call
6302 them.
6303
6304 * target.c: Add default and debug versions of for
6305 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6306 to_insert_watchpoint, to_remove_watchpoint,
6307 to_stopped_by_watchpoint, to_stopped_data_address,
6308 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6309
78fde5f8
KB
63102002-08-01 Kevin Buettner <kevinb@redhat.com>
6311
6312 * mips-tdep.c (mips_register_virtual_type): New function.
6313 (mips_gdbarch_init): Register mips_register_virtual_type()
6314 with gdbarch machinery.
6315 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6316 this file instead of tm-bigmips.h.
6317 (MIPS_REGSIZE): Delete this macro.
6318 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6319 multiarch version in mips-tdep.c will be found.
6320
db034ac5
AC
63212002-08-01 Andrew Cagney <cagney@redhat.com>
6322
6323 * NEWS: Menion that CHILL has been made obsolete.
6324
6325 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
6326 * stabsread.c (read_range_type): Ditto.
6327 * gdbtypes.h: Ditto.
6328 * language.c (binop_type_check): Ditto.
6329 (binop_result_type): Ditto.
6330 (integral_type): Ditto.
6331 (character_type): Ditto.
6332 (string_type): Ditto.
6333 (boolean_type): Ditto.
6334 (structured_type): Ditto.
6335 (lang_bool_type): Ditto.
6336 (binop_type_check): Ditto.
6337 * language.h (_LANG_chill): Ditto.
6338 * dwarfread.c (set_cu_language): Ditto.
6339 * dwarfread.c (CHILL_PRODUCER): Ditto.
6340 * dwarfread.c (handle_producer): Ditto.
6341 * expression.h (enum exp_opcode): Ditto.
6342 * eval.c: Ditto for comments.
6343 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6344 * expprint.c (print_subexp): Ditto.
6345 (print_subexp): Ditto.
6346 * valops.c (value_cast): Ditto.
6347 (search_struct_field): Ditto.
6348 * value.h (COERCE_VARYING_ARRAY): Ditto.
6349 * symfile.c (init_filename_language_table): Ditto.
6350 (add_psymbol_with_dem_name_to_list): Ditto.
6351 * valarith.c (value_binop): Ditto.
6352 (value_neg): Ditto.
6353 * valops.c (value_slice): Ditto.
6354 * symtab.h (union language_specific): Ditto.
6355 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6356 (SYMBOL_DEMANGLED_NAME): Ditto.
6357 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6358 * defs.h (enum language): Ditto.
6359 * symtab.c (got_symtab): Ditto.
6360 * utils.c (fprintf_symbol_filtered): Ditto.
6361
6362 * ch-typeprint.c: Make file obsolete.
6363 * ch-valprint.c: Make file obsolete.
6364 * ch-lang.h: Make file obsolete.
6365 * ch-exp.c: Make file obsolete.
6366 * ch-lang.c: Make file obsolete.
6367
6368 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6369 CHILL_LIB.
6370 (TARGET_FLAGS_TO_PASS): Ditto.
6371 (CHILLFLAGS): Obsolete.
6372 (CHILL): Obsolete.
6373 (CHILL_FOR_TARGET): Obsolete.
6374 (CHILL_LIB): Obsolete.
6375 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6376 ch-valprint.c.
6377 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6378 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6379 ch-lang.o.
6380 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6381 targets.
6382
8aaf0b47
JB
63832002-07-31 Joel Brobecker <brobecker@gnat.com>
6384
6385 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6386 This does not change anything at the moment, but will be helpful
6387 later when full Ada support is integrated.
6388
f3a7b3a5
KB
63892002-07-31 Kevin Buettner <kevinb@redhat.com>
6390
6391 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6392 help message.
6393
fb850278
KB
63942002-07-31 Kevin Buettner <kevinb@redhat.com>
6395
6396 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6397 and save it in a local variable. Use variable in later test.
6398
e3bddbfa
KB
63992002-07-31 Kevin Buettner <kevinb@redhat.com>
6400
6401 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6402 test. (Thanks to Daniel Jacobowitz.)
6403
28d169de
KB
64042002-07-31 Kevin Buettner <kevinb@redhat.com>
6405
6406 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6407 (mips_abi_strings): Add "n64".
6408 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6409
7fe7e44e
KB
64102002-07-31 Kevin Buettner <kevinb@redhat.com>
6411
6412 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6413 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6414
c6caf090
KB
64152002-07-31 Kevin Buettner <kevinb@redhat.com>
6416
6417 * utils.c (host_pointer_to_address, address_to_host_pointer):
6418 Use gdb_assert() instead of explicit call to internal_error().
6419
c41669e0
KB
64202002-07-30 Kevin Buettner <kevinb@redhat.com>
6421
6422 * Makefile.in (rs6000-nat.o): Update dependencies.
6423
6424 From Nicholas Duffek:
6425 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6426 (aix-thread.o): New rule.
6427 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6428 * config/powerpc/aix432.mh: New file.
6429
2fda4977
DJ
64302002-07-30 Daniel Jacobowitz <drow@mvista.com>
6431
6432 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6433 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6434 (fetch_core_registers, ppc_linux_supply_gregset)
6435 (ppc_linux_supply_fpregset): New functions.
6436 (ppc_linux_regset_core_fns): New.
6437 (_initialize_ppc_linux_tdep): Call add_core_fns.
6438 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6439 and ppc_linux_supply_gregset.
6440 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6441 (supply_fpregset): Call ppc_linux_supply_fpregset.
6442 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6443 corelow.o.
6444 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6445
729051e6
DJ
64462002-07-30 Daniel Jacobowitz <drow@mvista.com>
6447
6448 * symtab.c (lookup_symbol): Demangle before lowercasing.
6449
5f8a3188
AC
64502002-07-30 Andrew Cagney <ac131313@redhat.com>
6451
6452 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6453 declaration.
6454 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6455 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6456 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6457 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6458 "gdb_string.h".
6459 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6460 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6461 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6462 (avr-tdep.o, mon960-rom.o): Ditto.
6463 (aout_stabs_gnu_h): Define.
6464 (symtab_h): Remove $(gdb_obstack_h).
6465
67f07146
JB
64662002-07-30 Jim Blandy <jimb@redhat.com>
6467
6468 Patch from David Carlton <carlton@math.stanford.edu>:
6469 * gdbinit.in: Move the `dir' commands that add GDB's own source
6470 directory to the search path to the end, so that the `gdb' source
6471 directory will be searched first.
6472
04ea0df1
AC
64732002-07-29 Andrew Cagney <ac131313@redhat.com>
6474
6475 * gdb_obstack.h: New file.
6476 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6477 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6478 * objfiles.h: Include "gdb_obstack.h".
6479 * Makefile.in (gdb_obstack_h): Define.
6480 (symtab_h): Add $(gdb_obstack_h).
6481 (objfiles_h): Add $(gdb_obstack_h).
6482
6483 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6484 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6485 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6486 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6487 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6488 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6489 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6490 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6491
6492 * Makefile.in (bcache.o): Update dependencies.
6493 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6494 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6495 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6496 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6497 (stabsread.o, symfile.o, symmisc.o): Ditto.
6498 (symtab.o, typeprint.o, macroexp.o): Ditto.
6499 (macrotab.o, mdebugread.o): Ditto.
6500 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6501 (coff_ecoff_h, aout_aout64_h): Define.
6502 (aout_stabs_gnu_h, libaout_h): Define.
6503
d138e37a
AC
65042002-07-29 Andrew Cagney <cagney@redhat.com>
6505
6506 * regcache.c (struct regcache_descr): Rename nr_registers to
6507 nr_cooked_registers. Revise comments describing the structure
6508 member fields.
6509 (init_regcache_descr): Update.
6510 (init_legacy_regcache_descr): Update.
6511 (read_register_gen, write_register_gen): When a cooked register in
6512 the raw register range, directly access the value from the raw
6513 register cache.
6514
460e6ec3
AC
65152002-07-29 Andrew Cagney <ac131313@redhat.com>
6516
6517 * z8k-tdep.c: Do not include "obstack.h".
6518 * h8300-tdep.c, h8500-tdep.c: Ditto.
6519 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6520 * valprint.c, v850-tdep.c: Ditto.
6521 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6522 * mn10200-tdep.c: Ditto.
6523
6524 * Makefile.in (z8k-tdep.o): Update dependencies.
6525 (m68hc11-tdep.o, valprint.o): Ditto.
6526 (v850-tdep.o, d10v-tdep.o): Ditto.
6527 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6528 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6529 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6530 (sh_opc_h, gdb_sim_sh_h): Define.
6531 (elf_sh_h, elf_bfd_h): Define.
6532 (opcode_m68hc11_h): Define.
6533 (OPCODES_SRC, OPCODES_DIR): define.
6534 (OPCODES): Use $(OPCODES_DIR).
6535 (gdb_sim_d10v_h): Rename sim_d10v_h.
6536 (gdb_sim_arm_h): Rename sim_arm_h.
6537
790c9cf0
KB
65382002-07-26 Kevin Buettner <kevinb@redhat.com>
6539
6540 * utils.c (host_pointer_to_address, address_to_host_pointer):
6541 Change internal_error() message to indicate function responsible
6542 for the error.
6543
9647fa49
KB
65442002-07-26 Kevin Buettner <kevinb@redhat.com>
6545
6546 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6547 calls to local_hex_string_custom().
6548
dabbe2c0
KB
65492002-07-26 Kevin Buettner <kevinb@redhat.com>
6550
6551 * irix5-nat.c: Move IRIX shared library support from here...
6552 * solib-irix.c: ...to here. Revised substantially to work with
6553 generic solib framework.
6554
b96d0a4e
KB
6555 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6556 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6557 * mips-irix-tdep.c: New file.
6558
313fb2f6
KB
6559 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6560 (mips-irix-tdep.o, solib-irix.o): New rules.
6561 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6562 solib-irix.o.
6563 * config/mips/irix6.mt (TDEPFILES): Likewise.
6564 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6565
ab2eaf26
KB
65662002-07-26 Kevin Buettner <kevinb@redhat.com>
6567
177e4768 6568 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6569 disabled (via ``#if 0'') includes.
6570
7244546a
KB
65712002-07-26 Kevin Buettner <kevinb@redhat.com>
6572
6573 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6574 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6575 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6576 Add support for the fpscr register.
6577 * rs6000-nat.c (regmap, fetch_inferior_registers)
6578 (store_inferior_registers, fetch_core_registers): Likewise.
6579
dd7be90a
KB
65802002-07-26 Kevin Buettner <kevinb@redhat.com>
6581
6582 * rs6000-nat.c (language.h): Include.
6583 (special_regs): Delete this array.
6584 (regmap): New function.
6585 (fetch_register, store_register): Use regmap() to map gdb
6586 register numbers to ptrace register numbers. Also, use
6587 outputs from regmap() to make decisions regarding type of
6588 ptrace() call to make. In particular, don't compare against
6589 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6590 (fetch_inferior_registers, store_inferior_registers): Where
6591 possible, obtain register numbers from tdep struct. Don't
6592 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6593 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6594 (LAST_UISA_SP_REGNUM): Delete.
6595
11bf77db
KB
65962002-07-25 Kevin Buettner <kevinb@redhat.com>
6597
6598 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6599 (fetch_registers, store_register, fetch_core_registers): Don't
6600 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6601 regcache_collect() as appropriate.
6602 (find_toc_address): Format hex address with local_hex_string().
6603
06afebeb
AC
66042002-07-25 Andrew Cagney <ac131313@redhat.com>
6605
6606 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6607 bfd/elf32-frv.c.
6608
8c554d79
TT
66092002-07-24 Tom Tromey <tromey@redhat.com>
6610
6611 * jv-exp.y: Marked all strings with _().
6612 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6613 internal_error.
6614 (MethodInvocation, CastExpression, parse_number, yyerror,
6615 java_type_from_name, push_expression_name, yylex): Typo fixes.
6616
e4c242d9
DJ
66172002-07-24 Daniel Jacobowitz <drow@mvista.com>
6618
6619 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6620 (tee_file_flush, tee_file_write, tee_file_fputs)
6621 (tee_file_isatty): New.
6622 * ui-file.h (tee_file_new): Add prototype.
6623
ebf56fd3
AS
66242002-07-24 Aidan Skinner <aidan@velvet.net>
6625
6626 * ada-lang.c: Change k&r style function definitions to prototyped
6627 form.
6628 * ada-typeprint.c: Change k&r style function definitions to prototyped
6629 form.
6630 * ada-valprint.c: Change k&r style function definitions to prototyped
6631 form.
6632
7fb623f7
AC
66332002-07-24 Andrew Cagney <cagney@redhat.com>
6634
6635 * README: Remove reference to remote-bug.
6636 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6637 remote-bug.c.
6638 (m88k-nat.o): Delete rule.
6639 (m88k-tdep.o): Delete rule.
6640 (remote-bug.o): Delete rule.
6641 * MAINTAINERS: Mark as obsolete.
6642 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6643 * m88k-tdep.c: Make file obsolete.
6644 * config/m88k/m88k.mh: Ditto.
6645 * config/m88k/delta88v4.mh: Ditto.
6646 * config/m88k/delta88v4.mt: Ditto.
6647 * config/m88k/delta88.mt: Ditto.
6648 * config/m88k/delta88.mh: Ditto.
6649 * remote-bug.c: Ditto.
6650 * config/m88k/tm-delta88.h: Ditto.
6651 * config/m88k/nm-delta88v4.h: Ditto.
6652 * config/m88k/xm-delta88.h: Ditto.
6653 * config/m88k/xm-dgux.h: Ditto.
6654 * config/m88k/tm-m88k.h: Ditto.
6655 * config/m88k/nm-m88k.h: Ditto.
6656 * config/m88k/tm-delta88v4.h: Ditto.
6657 * m88k-nat.c: Ditto.
6658 * cxux-nat.c: Ditto.
6659 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6660 and m88*-*-* obsolete.
6661 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6662 m88*-*-* obsolete.
6663
37611a2b
AC
66642002-07-24 Andrew Cagney <cagney@redhat.com>
6665
6666 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6667 constant. Same for local pointer variables.
6668 (extract_signed_integer): Ditto.
6669 * defs.h (extract_unsigned_integer): Update.
6670 (extract_signed_integer): Update.
6671
1aaa5f99
AC
66722002-07-24 Andrew Cagney <cagney@redhat.com>
6673
6674 * regcache.c (regcache_raw_write): Change buf parameter to a
6675 constant void pointer.
6676 (regcache_raw_read): Change buf parameter to a void pointer.
6677 (legacy_write_register_gen): Change myaddr parameter a constant
6678 void pointer.
6679 (supply_register): Change val parameter to a const void pointer.
6680 * regcache.h (regcache_raw_write): Update declaration.
6681 (regcache_raw_read): Update declaration.
6682 (supply_register): Update declaration.
6683
b4f5539f
TT
66842002-07-24 Tom Tromey <tromey@redhat.com>
6685
6686 * defs.h (gdb_readline_wrapper): Declare.
6687 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6688 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6689 * top.c (gdb_readline_wrapper): New function.
6690 (command_line_input): Use it.
6691
0818c12a
AC
66922002-07-24 Andrew Cagney <cagney@redhat.com>
6693
6694 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6695 regcache_read and regcache_write.
6696 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6697 * regcache.c: Update.
6698 * sh-tdep.c (sh64_push_arguments): Update comment.
6699 (sh_pseudo_register_read): Update.
6700 (sh_pseudo_register_write): Update.
6701 (sh4_register_read): Update.
6702 (sh4_register_write): Update.
6703 (sh64_pseudo_register_read): Update.
6704 (sh64_pseudo_register_write): Update.
6705 (sh64_register_read): Update.
6706 (sh64_register_write): Update.
6707 * i386-tdep.c (i386_extract_return_value): Update.
6708 (i386_extract_struct_value_address): Update.
6709 (i386_extract_return_value): Update.
6710 * blockframe.c (generic_read_register_dummy): Update.
6711 (generic_call_dummy_register_unwind): Update
6712 * infrun.c (write_inferior_status_register): Update.
6713
f7321c06
JB
67142002-07-23 Jim Blandy <jimb@redhat.com>
6715
6716 * parser-defs.h (expression_context_pc): Make this extern.
6717 (Thanks to Michael Snyder.)
6718
2037aebb
AC
67192002-07-23 Andrew Cagney <ac131313@redhat.com>
6720
6721 GDB 5.2.1 released from 5.2 branch.
6722 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6723 * README: Update to mention 5.2.1.
6724
66504d44
MS
67252002-07-23 Mark Salter <msalter@redhat.com>
6726
6727 * remote.c (remote_read_bytes): Fix check for error.
6728
27bae383
KB
67292002-07-22 Kevin Buettner <kevinb@redhat.com>
6730
6731 * aix-thread.c (language.h): Include.
6732 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6733 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6734 Print newlines at end of debug messages.
6735 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6736 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6737
67382002-07-22 Kevin Buettner <kevinb@redhat.com>
6739
6740 * aix-thread.c (ppc-tdep.h): Include.
6741 (special_register_p): New function.
6742 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6743 (store_regs_user_thread): Use register number information from
6744 gdbarch_tdep struct instead of hardcoded offsets relative to
6745 FIRST_UISA_SP_REGNUM.
6746 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6747 special_register_p() instead of using FPLAST_REGNUM and
6748 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6749 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6750 will be MQ's register number.
6751
67522002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6753
6754 * aix-thread.c (ops): Rename to aix_thread_ops.
6755 (base_ops): Rename to base_target.
6756 (ops_attach): Rename to aix_thread_attach.
6757 (ops_detach): Rename to aix_thread_detach.
6758 (ops_resume): Rename to aix_thread_detach.
6759 (ops_wait): Rename to aix_thread_wait.
6760 (ops_kill): Rename to aix_thread_kill.
6761 (init_ops): Rename to init_aix_thread_ops.
6762 (ops_fetch_register): Rename to aix_thread_fetch_register.
6763 (ops_store_register): Rename to aix_thread_store_register.
6764 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6765 (ops_thread_alive): Rename to aix_thread_thread_alive.
6766 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6767 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6768 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6769 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6770 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6771 (store_regs_lib): Rename to store_regs_user_thread.
6772 (store_regs_kern): Rename to store_regs_kernel_thread.
6773
27bae383 67742002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6775
6776 * aix-thread.c (ops_prepare_to_store): Eliminate.
6777 (init_ops): Don't initialize ops.prepare_to_store.
6778 (store_regs_kern): Pre-fetch register buffers from child,
6779 because some registers may not be in the cache. Copy
6780 regs from register cache only if they are cached.
6781 (store_regs_lib): Copy regs from register cache only
6782 if they are cached.
6783 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6784 fill_gprs64): Ditto.
6785
61c5da0b
KB
67862002-07-22 Kevin Buettner <kevinb@redhat.com>
6787
6788 * aix-thread.c (gdb_assert.h): Include.
6789 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6790 register sizes (from register cache) match size of buffer holding
6791 register data.
6792 (fill_sprs32): Change parameter types to match those in the ptrace()
6793 buffer.
6794 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6795 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6796
67972002-07-22 Michael Snyder <msnyder@redhat.com>
6798
6799 * aix-thread.c (supply_sprs64): Cosmetic change.
6800 (supply_sprs32): Cosmetic change.
6801 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6802 (fill_sprs64): Use regcache_collect instead of read_register.
6803 (store_regs_lib): Use regcache_collect instead of
6804 read_register. Use fill_sprs32 instead of fill_sprs64,
6805 if debugging a 32-bit architecture.
6806 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6807 out of the register cache, instead of passing a pointer into
6808 the register cache directly to ptrace. Use regcache_collect
6809 insteaad of read_register.
6810 (ops_prepare_to_store): Use target_read_registers instead
6811 of read_register_bytes.
6812
36479eb1
AS
68132002-07-20 Aidan Skinner <aidan@velvet.net>
6814
6815 * MAINTAINERS: Add self under write after approval.
6816
80ae6ee2
AS
68172002-07-20 Aidan Skinner <aidan@velvet.net>
6818
6819 * ada-tasks.c: Change k&r style function definitions to prototyped
6820 form.
6821
8a8ab2b9
AC
68222002-07-19 Andrew Cagney <ac131313@redhat.com>
6823
6824 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6825 * x86-64-tdep.c: Include "objfiles.h".
6826 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6827 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6828
fb16b900
ML
68292002-07-17 Michal Ludvig <michal@suse.cz>
6830
6831 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6832 (update_context): Initialise cfa variable.
6833
0fe7bf7b
MS
68342002-07-17 Michael Snyder <msnyder@redhat.com>
6835
6836 * aix-thread.c: Shorten some long lines.
6837 Bring comments into line with code spec.
6838
488f131b
JB
68392002-07-18 Joel Brobecker <brobecker@gnat.com>
6840
6841 * infrun.c: Re-indent using gdb_indent.sh.
6842
46c415d2
JB
68432002-07-18 Joel Brobecker <brobecker@gnat.com>
6844
6845 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6846 Leave the indentation temporarily untouched, to minimize the diffs.
6847
cdecafbe
EZ
68482002-07-18 Elena Zannoni <ezannoni@redhat.com>
6849
6850 * stabsread.c: Make os9k sections of the code obsolete,
6851 for real this time.
6852 * stabsread.h: Make os9k sections of the code obsolete.
6853
7b6aa020
ML
68542002-07-18 Michal Ludvig <mludvig@suse.cz>
6855
09ec9b38
ML
6856 * linux-low.c (regsets_store_inferior_registers): Add free()
6857 at the end of a loop to prevent memory leak.
6858 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6859 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6860 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6861 line a comment.
4894ac5d 6862 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6863
233282cd
JB
68642002-07-17 Jim Blandy <jimb@redhat.com>
6865
6866 * macrocmd.c (info_macro_command): Remove newline from error
6867 message.
6868
7b6aa020 68692002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6870
6871 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6872 (sh_gdbarch_init): Use it for sh-dsp.
6873
f7ef9339
KB
68742002-07-16 Kevin Buettner <kevinb@redhat.com>
6875
6876 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6877 64-bit DWARF2 format.
6878
8dd72958
JB
68792002-07-16 Joel Brobecker <brobecker@gnat.com>
6880
6881 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6882 <sys/proc.h> when not available.
6883
a99a9e1b
AC
68842002-07-16 Andrew Cagney <ac131313@redhat.com>
6885
6886 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6887 * stabsread.c: Make os9k sections of the code obsolete.
6888 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6889 * config/i386/i386os9k.mt: Make file obsolete.
6890 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6891 (COMMON_OBS): Remove os9kread.o
6892 (SFILES): Remove os9kread.c.
6893 (os9kread.o, remote-os9k.o): Make target obsolete.
6894 * remote-os9k.c: Make file obsolete.
6895 * os9kread.c: Make file obsolete.
6896 * Makefile.in
6897
7a3085c1
AC
68982002-07-16 Andrew Cagney <ac131313@redhat.com>
6899
6900 * NEWS: Mention that the FR30 has been made obsolete.
6901 * fr30-tdep.c: Make file obsolete.
6902 * config/fr30/tm-fr30.h: Ditto.
6903 * config/fr30/fr30.mt: Ditto.
6904 * configure.tgt: Make fr30-*-elf obsolete.
6905 * MAINTAINERS: Make fr30-elf obsolete.
6906
28a93f5a
PM
69072002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6908
6909 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6910 found is not inside a section.
6911
be006b8b
KB
69122002-07-15 Kevin Buettner <kevinb@redhat.com>
6913
6914 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6915 strerror().
6916 (pdc_realloc): Use xrealloc() instead of realloc().
6917
14fa3751
KB
69182002-07-15 Kevin Buettner <kevinb@redhat.com>
6919
6920 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6921 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6922 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6923 macros.
6924
42cc437f
KB
69252002-07-15 Kevin Buettner <kevinb@redhat.com>
6926
6927 * aix-thread.c (ptrace_check): Eliminate goto.
6928 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6929 problem.
6930
8e2c28d4
KB
69312002-07-15 Kevin Buettner <kevinb@redhat.com>
6932
6933 * aix-thread.c (gdbcmd.h): Include.
6934 (DEBUG, DBG, DBG2, dbg): Eliminate.
6935 (debug_aix_thread): New static global.
6936 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6937 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6938 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6939 invocations to DBG and DBG2 macros to test against
6940 ``debug_aix_thread'' and call fprintf_unfiltered().
6941 (_initialize_aix_thread): Add new command "set debug aix-thread".
6942
30413464
AC
69432002-07-15 Andrew Cagney <ac131313@redhat.com>
6944
6945 From Gerhard Tonn <TON@de.ibm.com>:
6946 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6947 instead of supply_register.
6948
7c43edc1
AC
69492002-07-15 Andrew Cagney <ac131313@redhat.com>
6950
6951 * dwarf2cfi.c: Include "gdb_assert.h".
6952 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6953 non-NULL.
6954 (update_context): Do not use __func__. Add missing ``break''.
6955 (update_context): Do not use __func__.
6956
9364a0ef
EZ
69572002-07-15 Elena Zannoni <ezannoni@redhat.com>
6958
6959 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6960 and its setting. Set gdbarch instruction printing functions
6961 directly. For non-rs6000 case use new function
6962 gdb_print_insn_powerpc.
6963 (gdb_print_insn_powerpc): New function.
6964
3fbeef0b
AC
69652002-07-13 Andrew Cagney <ac131313@redhat.com>
6966
92eb23c5 6967 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6968 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6969 * configure.tgt: Mark d30v-*-* as obsolete.
6970 * d30v-tdep.c: Mark file as obsolete.
6971 * config/d30v/d30v.mt: Ditto.
6972 * config/d30v/tm-d30v.h: Ditto.
6973
aacb1f0a
AS
69742002-07-13 Aidan Skinner <aidan@velvet.net>
6975
6976 * ada-tasks.c (add_task_entry): replace calls to
6977 malloc() with xmalloc
6978 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6979
6980 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6981 ada_finish_decode_line_1, all_sals_for_line
6982 ada_breakpoint_rewrite): replace calls to free() with xfree()
6983
c11d79f2
KB
69842002-07-12 Kevin Buettner <kevinb@redhat.com>
6985
6986 From Nicholas Duffek (with minor changes by Martin Hunt,
6987 Louis Hamilton, and Kevin Buettner):
6988 * aix-thread.c: New file.
6989
8e19ed76
PS
69902002-07-12 Petr Sorfa <petrs@caldera.com>
6991
6992 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6993 complaint for invalid attribute class or form.
6994 (read_func_scope): DW_AT_frame_base
6995 better handling of DW_AT_block*.
6996 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6997 better handling of DW_AT_block*.
6998 (read_common_block): DW_AT_location
6999 better handling of DW_AT_block*.
7000 (read_partial_die): DW_AT_location better handling
7001 of DW_AT_block*.
7002 (new_symbol): DW_AT_external better handling of
7003 DW_AT_block*. Proper initialization of variable
7004 "addr".
7005 (attr_form_is_block): New function that returns true
7006 if the attribute's form is of DW_FORM_block*.
7007
295401f7
DJ
70082002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7009
7010 * valops.c (find_method_list): Remove comment about
7011 removed STATIC_MEMFUNCP argument.
7012 (value_find_oload_method_list): Likewise.
7013
e42dc924
KB
70142002-07-12 Kevin Buettner <kevinb@redhat.com>
7015
7016 From Nicholas Duffek:
7017 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7018 target_new_objfile_hook.
7019
6904b546
KB
70202002-07-12 Kevin Buettner <kevinb@redhat.com>
7021
7022 From Nicholas Duffek:
7023 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7024 csect.
7025
53fe9346
AC
70262002-07-12 Andrew Cagney <cagney@redhat.com>
7027
7028 * MAINTAINERS: Mention --enable-sim-build-warnings.
7029 (m68hc11-elf): Disable sim build warnings.
7030 (m32r-elf): Mark as broken obsolete candidate.
7031 (x86_64-linux-gnu): Mark as buildable with -Werror.
7032 (arm-elf): Change -w to ``,'' which enables warnings but not
7033 -Werror.
7034
af5f3db6
AC
70352002-07-12 Andrew Cagney <ac131313@redhat.com>
7036
7037 * bcache.h: Update copyright.
7038 (struct bstring, struct bcache): Move definition to "bcache.c".
7039 Replaced by opaque declaration.
7040 (bcache_xfree): Replace free_bcache.
7041 (bcache_xmalloc, bcache_memory_used): Declare.
7042
7043 * bcache.c: Update copyright.
7044 (struct bstring, struct bcache): Moved to here from "bcache.h".
7045 Update comments.
7046 (bcache_xmalloc, bcache_memory_used): New functions.
7047 (bcache_xfree): Replace function free_bcache.
7048
7049 * Makefile.in (objfiles.o): Add $(bcache_h).
7050 (objfiles_h): Remove $(bcache_h).
7051 (symfile.o): Add $(bcache_h).
7052
7053 * symmisc.c: Update copyright.
7054 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7055 (print_objfile_statistics): Use bcache_memory_used.
7056
7057 * symfile.c: Include "bcache.h".
7058 (reread_symbols): Use bcache_xfree.
7059 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7060 (add_psymbol_to_list): Pass psymbol_cache by value.
7061 (add_psymbol_with_dem_name_to_list): Ditto.
7062
7063 * objfiles.h: Update copyright.
7064 (struct bcache): Declare opaque. Do not include "bcache.h".
7065 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7066 bcache'' pointers.
7067 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7068
7069 * objfiles.c: Include "bcache.h". Update copyright.
7070 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7071 macro_cache.
7072 (free_objfile): Use bcache_xfree.
7073
444199e7
GS
70742002-07-11 Grace Sainsbury <graces@redhat.com>
7075
7076 * monitor.c (monitor_fetch_register): Make name a constant.
7077 (monitor_store_register): Same.
7078
261397f8
DJ
70792002-07-11 Daniel Jacobowitz <drow@mvista.com>
7080
7081 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7082 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7083 (finish_block) For non-function blocks, hash the symbol table. For
7084 function blocks, mark the symbol table as unhashed.
7085 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7086 (msymbol_hash_iw): Likewise.
7087 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7088 value.
7089 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7090 (lookup_minimal_symbol): Likewise for both.
7091 * symtab.h (struct block): Add `hashtable' flag. Comment the
7092 hashtable.
7093 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7094 (ALL_BLOCK_SYMBOLS): Update.
7095 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7096 (struct symbol): Add `hash_next' pointer.
7097 * symtab.c (lookup_block_symbol): Search using the hash table when
7098 possible.
7099 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7100 (search_symbols, find_addr_symbol): Likewise.
7101
7102 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7103 (read_dst_symtab): Likewise.
7104 * jv-lang.c (get_java_class_symtab): Likewise.
7105 * mdebugread.c: Include "gdb_assert.h".
7106 (shrink_block): Assert that the block being modified is not hashed.
7107 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7108 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7109 symbols.
7110 (dump_symtab): Recognize hashed blocks.
7111 * printcmd.c (print_frame_args): Assert that function blocks do not
7112 have hashed symbol tables.
7113 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7114 (fill_in_ada_prototype, debug_print_block): Likewise.
7115 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7116
6f0eaa01
CV
71172002-07-11 Corinna Vinschen <vinschen@redhat.com>
7118
7119 * stack.c (print_frame): Use result of frame_address_in_block()
7120 instead of fi->pc when evaluating symbols.
7121 (backtrace_command_1): Ditto.
7122
a208b0cb
AC
71232002-07-11 Andrew Cagney <cagney@redhat.com>
7124
7125 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7126 Make static.
7127
7128 * arm-tdep.c (arm_register_name): Make return type constant.
7129
a6b6b089
AC
71302002-07-10 Andrew Cagney <ac131313@redhat.com>
7131
5ae5f592
AC
7132 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7133 prototype.
7134 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7135 * s390-tdep.c (s390_fp_regnum): Ditto.
7136 (s390_read_fp): Ditto.
7137 (s390_pop_frame): Ditto.
7138 (_initialize_s390_tdep): Ditto.
7139 * remote.c (get_remote_state): Ditto.
7140 * procfs.c (mappingflags): Ditto.
7141 * memattr.c (_initialize_mem): Ditto.
7142 * mcore-tdep.c (mcore_pop_frame): Ditto.
7143 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7144 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7145 * language.c (set_case_str): Ditto.
7146 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7147 * frv-tdep.c (new_variant): Ditto.
7148 (frv_stopped_data_address): Ditto.
7149 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7150 (context_alloc): Ditto.
7151 (frame_state_alloc): Ditto.
7152 (unwind_tmp_obstack_init): Ditto.
7153 (unwind_tmp_obstack_free): Ditto.
7154 (cfi_read_fp): Ditto.
7155 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7156 (cris_pop_frame): Ditto.
7157 * c-lang.c (scanning_macro_expansion): Ditto.
7158 (finished_macro_expansion): Ditto.
7159 (c_preprocess_and_parse): Ditto.
7160 * gdbarch.sh: Ditto.
7161 * gdbarch.h, gdbarch.c: Regenerate.
7162 * config/mn10200/tm-mn10200.h: Adjust indentation.
7163 * target.c: Adjust indentation.
7164 * symtab.h: Adjust indentation.
7165 * stabsread.h: Adjust indentation.
7166 * remote-es.c: Adjust indentation.
7167 * os9kread.c: Adjust indentation.
7168
71692002-07-10 Andrew Cagney <ac131313@redhat.com>
7170
a6b6b089
AC
7171 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7172 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7173
a1789893
GS
71742002-07-10 Grace Sainsbury <graces@redhat.com>
7175
7176 * NEWS: Mention m68k, mcore multi-arching.
7177 * MAINTAINERS: Change status of m68k, mcore to reflect
7178 multi-arching.
7179
02f0d45d
DJ
71802002-07-10 Daniel Jacobowitz <drow@mvista.com>
7181
7182 * valops.c (find_overload_match): Free oload_syms.
7183
f15f768e
JB
71842002-07-09 Joel Brobecker <brobecker@gnat.com>
7185
7186 Define HAVE_SYS_PROC_H if sys/proc.h exists
7187 * configure.in: Add check for sys/proc.h
7188 * config.in: Regenerate.
7189 * configure: Regenerate.
7190
902a7139
GS
71912002-07-09 Grace Sainsbury <graces@redhat.com>
7192
7193 * config/m68k/tm-m68k.h: Remove macros wrapped in
7194 #if !GDB_MULTI_ARCH.
7195
a534e424
AC
71962002-07-08 Andrew Cagney <ac131313@redhat.com>
7197
7198 * config.in, configure: Regenerate.
7199
9b94f7bf
MK
72002002-07-08 Mark Kettenis <kettenis@gnu.org>
7201
7202 * dwarf2cfi.c: Include "gcore.h".
7203 (execute_stack_op): Fix implementation of the
7204 DW_OP_deref and DW_OP_deref_size operators by letting do their
7205 lookup in the target.
7206
1d34db41
MK
72072002-07-07 Mark Kettenis <kettenis@gnu.org>
7208
7209 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7210 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7211 tdep->sc_sp_offset.
7212
79d5b63a
DJ
72132002-07-05 Daniel Jacobowitz <drow@mvista.com>
7214
7215 Fix PR gdb/595, gdb/602
7216 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7217 Don't call value_cast, just read the vtable pointer; update comments
7218 to match.
7219
3bb912e8
GS
72202002-07-05 Grace Sainsbury <graces@redhat.com>
7221
7222 * config/mcore/tm-mcore.h: Remove file.
7223 * config/mcore/mcore.mt: Remove definition of TM_FILE
7224 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7225
ca39387d
MK
72262002-07-05 Mark Kettenis <kettenis@gnu.org>
7227
7228 * i386bsd-tdep.c: Include "gdb_string.h".
7229
efdc1108
GS
72302002-07-04 Grace Sainsbury <graces@redhat.com>
7231
7232 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7233 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7234 mcore-tdep.
7235 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7236 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7237 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7238 (RETVAL_REGNUM): Move macros from tm-mcore.h
7239 (mcore_reg_struct_has_addr): New function.
7240 (mcore_gdbarch_init): Added initializations for the macros removed
7241 from tm-mcore.h.
7242
bb21884d
MK
72432002-07-04 Mark Kettenis <kettenis@gnu.org>
7244
7245 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7246 traditonal string branding within the ELF header.
7247
228c6d41
DJ
72482002-07-04 Daniel Jacobowitz <drow@mvista.com>
7249
7250 * symtab.c (remove_params): New function.
7251 (make_symbol_overload_list): Use it instead of cplus_demangle.
7252 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7253
2404952e
MK
72542002-07-04 Mark Kettenis <kettenis@gnu.org>
7255
e5e4acad
MK
7256 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7257
baadce09
MK
7258 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7259 New variables.
7260 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7261 and tdep->sigtramp_end.
7262 * i386obsd-nat.c: New file.
7263 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7264
2404952e
MK
7265 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7266 Don't call get_current_frame().
7267
9b4f1ba7
PM
72682002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7269
7270 * i386-nat.c (child_post_startup_inferior): New function
7271 calling i386_cleanup_dregs if
7272 I386_USE_GENERIC_WATCHPOINTS is defined.
7273 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7274 conditional to acknowledge that i386-nat.c has its
7275 own child_post_startup_inferior function.
7276
c0d1d883
MK
72772002-07-04 Mark Kettenis <kettenis@gnu.org>
7278
00f8375e
MK
7279 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7280 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7281 instead of MAX_REGISTER_RAW_SIZE.
7282 (i386_extract_return_value, i386_extract_struct_value_address):
7283 Convert to use regcache.
7284 (i386_gdbarch_init): Set max_register_raw_size and
7285 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7286 Set extract_return_value and extract_struct_value_address instead
7287 of their deprecated variants.
7288
c0d1d883
MK
7289 Convert i386 target to generic dummy frames.
7290 * i386-tdep.c: Include "symfile.h".
7291 (i386_frameless_signal_p): Consider a function to be frameless if
7292 the pc points at the first instruction of the function.
7293 (i386_frame_chain): Handle (generic) call dummies.
7294 (i386_frame_saved_pc): Likewise.
7295 (i386_frame_init_saved_regs): Remove code dealing with call
7296 dummies on the stack.
7297 (i386_push_dummy_frame): Removed.
7298 (i386_call_dummy_words): Removed.
7299 (i386_fix_call_dummy): Removed.
7300 (i386_push_return_address): New function.
7301 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7302 parameter, and don't call get_current_frame.
7303 (i386_pop_frame): New function.
7304 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7305 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7306 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7307 call_dummy_length to 0, set call_dummy_words to NULL, set
7308 sizeof_call_dummy_words to 0, set fix_call_dummy to
7309 generic_fix_call_dummy, set pc_in_call_dummy to
7310 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7311 generic_push_dummy_frame, set push_return_address to
7312 i386_push_return_address and set frame_chain_valid to
7313 generic_file_frame_chain_valid.
7314
049ee0e4
AC
73152002-07-03 Andrew Cagney <ac131313@redhat.com>
7316
7317 * gdbarch.sh (struct regcache): Add opaque declaration.
7318 (EXTRACT_RETURN_VALUE): New architecture method.
7319 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7320 * gdbarch.h, gdbarch.c: Regenerate.
7321 * arch-utils.c (legacy_extract_return_value): New function.
7322 * arch-utils.h (legacy_extract_return_value): Declare.
7323 * values.c (value_being_returned): Re-enable code handling
7324 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7325 deprecated_grub_regcache_for_registers call to block handling
7326 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7327 (EXTRACT_RETURN_VALUE): Do not define.
7328
4e0d9804
GS
73292002-07-03 Grace Sainsbury <graces@redhat.com>
7330
7331 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7332 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7333 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7334 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7335 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7336 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7337 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7338 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7339 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7340 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7341 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7342 argument so the function fits the prototype in the architecture
7343 vector.
7344 (mcore_pop_frame): Remove argument so the function fits the
7345 prototype. Use get_current_frame instead of the argument.
7346 (mcore_push_arguments): Change type of struct_return so the
7347 function can be used in the architecture vector.
7348 (mcore_store_struct_return): Add.
7349 (mcore_frame_init_saved_regs): Add.
7350 (mcore_gdbarch_init): Add function calls to replace the macros
7351 removed from tm-mcore.h
7352
36160dc4
AC
73532002-07-03 Andrew Cagney <ac131313@redhat.com>
7354
7355 * infcmd.c (print_return_value): Remove compatibility code calling
7356 deprecated_grub_regcache_for_registers.
7357
7358 * values.c: Include "regcache.h".
7359 (value_being_returned): Update. Use
7360 deprecated_grub_regcache_for_registers to extract the register
7361 buffer address.
7362 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7363 ``struct regcache''.
7364 * Makefile.in (values.o): Add dependency on $(regcache_h).
7365
7366 * inferior.h (run_stack_dummy): Change type of second parameter to
7367 a ``struct regcache''.
7368 * valops.c (hand_function_call): Change type of retbuf to ``struct
7369 regcache''. Allocate using regcache_xmalloc, clean using
7370 make_cleanup_regcache_xfree.
7371 * infcmd.c (run_stack_dummy): Update. Use
7372 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7373
7374 * regcache.c (do_regcache_xfree): New function.
7375 (make_cleanup_regcache_xfree): New function.
7376 * regcache.h (make_cleanup_regcache_xfree): Declare.
7377
e64d9b3d
MH
73782002-07-03 Martin M. Hunt <hunt@redhat.com>
7379
4dd79c29
MH
7380 * event-top.c (command_line_handler): Don't read past
7381 beginning of buffer.
e64d9b3d 7382
4dd79c29
MH
73832002-07-03 Martin M. Hunt <hunt@redhat.com>
7384
e64d9b3d
MH
7385 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7386 struct frame_id.
7387 (varobj_create): Store frame_id for root.
7388 (varobj_gen_name): Use xasprintf.
7389 (varobj_update): Save and restore frame using get_frame_id() and
7390 frame_find_by_id().
7391 (create_child): Use xasprintf.
7392 (new_root_variable): Initialize frame_id.
7393 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7394 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7395 to prevent memory leak.
7396
26e6c56a
AC
73972002-07-03 Andrew Cagney <ac131313@redhat.com>
7398
7399 * valops.c (hand_function_call): Move declaration of retbuf to
7400 start of function, allocate using malloc, add a cleanup but before
7401 the inf_status cleanup, cleanup the buffer. Rename local variable
7402 old_chain to inf_status_cleanup.
7403
f436dd25
MH
74042002-07-03 Martin M. Hunt <hunt@redhat.com>
7405
7406 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7407
7408 * cli/cli-decode.c (cmd_func_p): New function.
7409 (cmd_func): New function.
7410
7411 * command.h: Add cmd_func() and cmd_func_p().
7412
4cfe2084
GS
74132002-07-03 Grace Sainsbury <graces@redhat.com>
7414
7415 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7416 (REGISTER_SIZE): Remove.
7417 (MAX_REGISTER_RAW_SIZE): Remove.
7418 (REGISTER_VIRTUAL_TYPE): Remove.
7419 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7420 (REGISTER_NAME): Remove.
7421 (USE_GENERIC_DUMMY_FRAMES): Remove.
7422 (CALL_DUMMY): Remove.
7423 (CALL_DUMMY_START_OFFSET): Remove.
7424 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7425 (CALL_DUMMY_LOCATION): Remove.
7426 (FIX_CALL_DUMMY): Remove.
7427 (CALL_DUMMY_ADDRESS): Remove.
7428 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7429 (SAVE_DUMMY_FRAME_TOS): Remove.
7430 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7431 (mcore_register_virtual_type): New function.
7432 (mcore_register_byte): New function.
7433 (mcore_register_size): New function.
7434 (mcore_register_name): New function.
7435 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7436 macros removed from tm-mcore.h.
7437 (mcore_dump_tdep): Add.
7438 (_initialize_mcore_tdep): Add gdbarch_register call.
7439
4fd667e9
MK
74402002-07-03 Mark Kettenis <kettenis@gnu.org>
7441
7442 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7443 frameless_look_for_prologue, such that we actually call this
7444 function.
7445
42f99ac2
JB
74462002-07-02 Joel Brobecker <brobecker@gnat.com>
7447
7448 * frame.h (frame_address_in_block): New function.
7449
7450 * blockframe.c (frame_address_in_block): New function extracted
7451 from get_frame_block().
7452 (get_frame_block): Use frame_address_in_block().
7453 (block_innermost_frame): Use frame_address_in_block() to match
7454 the frame pc address against the block boundaries rather than
7455 the frame pc directly. This prevents a failure when a frame pc
7456 is actually a return-address pointing immediately after the end
7457 of the given block.
7458
103a1597 74592002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
7460
7461 * MAINTAINERS: Add self under write after approval.
7462
74632002-07-02 Grace Sainsbury <graces@redhat.com>
7464
103a1597
GS
7465 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7466 used in architecture vector. The default is
7467 m68k_local_breakpoint_from_pc.
7468 (m68k_local_breakpoint_from_pc): Add.
7469 (enum): Add register numbers from tm-m68k.h.
7470 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7471 vector.
7472 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7473 GDB_MULTI_ARCH_PARTIAL.
7474 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7475 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7476 m68k-tdep.c.
7477 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7478 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7479 to enum in m68k-tdep.c
7480
7a5a0534
JB
74812002-07-02 Joel Brobecker <brobecker@gnat.com>
7482
7483 * solib-osf.c (open_map): Compute the list of shared libraries
7484 loaded by the inferior, rather than the list of libraries loaded
7485 by GDB itself. Otherwise, GDB ends up reading the symbols from
7486 the wrong shared libraries...
7487
6f558d74
MK
74882002-07-02 Mark Kettenis <kettenis@gnu.org>
7489
b7d15bf7
MK
7490 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7491 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7492 macros.
7493 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7494 Remove functions.
7495 (FRAMELESS_SIGNAL): Remove function.
7496 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7497 i386_linux_saved_pc_after_call): Removed.
7498 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7499 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7500 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7501
6bff26de
MK
7502 * i386-tdep.c (i386_frameless_signal_p): New function.
7503 (i386_frame_chain): Deal with frameless signals.
7504 (i386_sigtramp_saved_sp): New function.
7505 (i386_frame_saved_pc): Deal with frameless signals.
7506 (i386_saved_pc_after_call): Make sure the correct value is
7507 returned just after entry into a sigtramp.
7508 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7509 i386fbsd4_sc_sp_offset): New variables.
7510 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7511 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7512 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7513 similiar to what we already did for sc_pc_offset.
7514 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7515 tdep->sc_sp_offset.
7516
6f558d74
MK
7517 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7518
145564b7
ML
75192002-07-02 Michal Ludvig <mludvig@suse.cz>
7520
7521 * config/i386/tm-x86-64linux.h: New.
7522 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7523 definitions.
7524 * config/i386/nm-x86-64.h: Rename to ...
7525 * config/i386/nm-x86-64linux.h: ... this one.
7526 * config/i386/x86-64linux.mh: Reflect the above change.
7527
3a1e71e3
MK
75282002-07-01 Mark Kettenis <kettenis@gnu.org>
7529
21d0e8a4
MK
7530 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7531 with sigcontext_addr. Add sc_sp_offset.
7532 (i386bsd_sigtramp_saved_pc): Remove prototype.
7533 (i386bsd_sicontext_addr): Add prototype.
7534 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7535 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7536 (i386_svr4_sigtramp_saved_pc): Removed.
7537 (i386_svr4_sigcontext_addr): New function.
7538 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7539 Initialize tdep->sigcontext_addr instead. Initialize
7540 tdep->sc_pc_offset and tdep->sc_sp_offset.
7541 (i386_gdbarch_init): Likewise.
7542 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7543 any more.
7544 (i386bsd_sigtramp_saved_pc): Remove function.
7545 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7546 Initialize tdep->sigcontext_addr instead. Initialize
7547 tdep->sc_pc_offset.
7548 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7549 of tdep->sigtramp_saved_pc.
7550 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7551 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7552 instead.
7553
3a1e71e3
MK
7554 * i386-tdep.c (i386_frameless_function_invocation,
7555 i386_frame_num_args, i386_frame_init_saved_regs,
7556 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7557 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7558 i386_extract_return_value, i386_store_return_value,
7559 i386_extract_struct_value_address, i386_register_virtual_type,
7560 i386_register_convertible, i386_register_convert_to_virtual,
7561 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7562 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7563 static.
7564
52e9098c
MK
75652002-07-01 Mark Kettenis <kettenis@gnu.org>
7566
77b13a25
MK
7567 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7568
52e9098c
MK
7569 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7570 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7571 this macro. Include "value.h".
7572
1b372fff
AS
75732002-06-30 Aidan Skinner <aidan@velvet.net>
7574
7575 * ada-exp.tab.c: remove as it's a generated file
7576 * ada-lex.c: remove as it's a generated file
7577
9c5045b5
MK
75782002-06-30 Mark Kettenis <kettenis@gnu.org>
7579
4a93c5bb
MK
7580 * config/i386/tm-i386.h (struct frame_info, struct
7581 frame_saved_regs, struct value, struct type): Remove forward
7582 declarations.
7583
322d4fe0
MK
7584 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7585 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7586 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7587 (FILL_FPXREGSET): Define.
7588
fdd8263d
MK
7589 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7590
482e577b
MK
7591 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7592 i[3456]86-*-netbsd* case.
7593 * config/i386/tm-obsd.h: Removed.
7594 * config/i386/obsd.mt: Removed.
7595 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7596 core-aout.o.
7597 (MH_CFLAGS): Add -DYYDEBUG=0.
7598
6916549a
MK
7599 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7600 i386nbsd_sc_pc_offset on OpenBSD too.
7601
9c5045b5
MK
7602 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7603 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7604 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7605 define.
7606 * i386bsd-tdep.c: Include "arch-utils.h".
7607 (i386bsd_aout_in_solib_call_trampoline): New function.
7608 (i386bsd_init_abi): Set in_solib_call_trampoline to
7609 i386bsd_aout_in_solib_call_trampoline.
7610 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7611 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7612
aa84d1bb
AC
76132002-06-28 Andrew Cagney <ac131313@redhat.com>
7614
7615 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7616 (struct obstack, struct bcache): Add opaque declarations.
7617 * Makefile.in (macrotab_h): Update
7618
b4d83933
AC
76192002-06-28 Andrew Cagney <ac131313@redhat.com>
7620
7621 * blockframe.c (generic_find_dummy_frame): Change return type to
7622 ``struct regcache''.
7623 (struct dummy_frame): Replace field ``registers'' with regcache, a
7624 struct regcache object.
7625 (generic_find_dummy_frame): Update.
7626 (generic_push_dummy_frame): Update. Use regcache_xfree,
7627 regcache_xmalloc and regcache_cpy.
7628 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7629 regcache_xfree.
7630 (deprecated_generic_find_dummy_frame): Update.
7631 (generic_read_register_dummy): Update. Use
7632 regcache_read_as_address.
7633 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7634 (generic_get_saved_register): Update. Use regcache_read.
7635
08c0b5bc
AC
76362002-06-28 Andrew Cagney <ac131313@redhat.com>
7637
7638 * Makefile.in (objfiles_h): Add $(bcache_h).
7639 * objfiles.h: Include "bcache.h".
7640
7641 * Makefile.in (symtab_h): Remove $(bcache_h).
7642 * symtab.h: Do not include "bcache.h".
7643
1f89801a
AC
76442002-06-28 Andrew Cagney <ac131313@redhat.com>
7645
7646 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7647 generic_func_frame_chain_valid.
7648
b9644b58
DB
76492002-06-28 David O'Brien <obrien@FreeBSD.org>
7650
7651 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7652 * config/i386/tm-fbsd.h: Likewise.
7653
dd486634
AC
76542002-06-28 Andrew Cagney <ac131313@redhat.com>
7655
7656 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7657 generic_unwind_get_saved_register.
7658
0b434a00
AC
76592002-06-27 Andrew Cagney <ac131313@redhat.com>
7660
7661 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7662 * regcache.c (supply_register): Add missing argument to
7663 register_buffer call.
7664
f30e5a77
AC
76652002-06-27 Andrew Cagney <ac131313@redhat.com>
7666
7667 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7668 Solaris /bin/grep does not not like it. From Peter Schauer.
7669
9f064c95
TT
76702002-06-26 Tom Tromey <tromey@redhat.com>
7671
7672 * command.h (add_setshow_cmd): Declare.
7673 (add_setshow_cmd_full): Declare.
7674 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7675 returns void. Use add_setshow_cmd_full.
7676 (add_setshow_cmd_full): New function.
7677 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7678 (add_setshow_boolean_cmd): Likewise.
7679
099c7589
JT
76802002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7681
7682 * config/vax/tm-vax.h: Protect from multiple inclusion.
7683 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7684 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7685 * config/vax/tm-vaxbsd.h: ...here. New file.
7686 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7687
1d049c5e
JT
76882002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7689
7690 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7691 (BELIEVE_PCC_PROMOTION): Remove.
7692 (AP_REGNUM): Move to...
7693 * config/vax/nm-vax.h: ...here.
7694 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7695 (vax_breakpoint_from_pc): New function.
7696 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7697 and gdbarch_believe_pcc_promotion.
7698
4791e091
JT
76992002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7700
7701 * Makefile.in (vax_tdep_h): Define.
7702 (vax-tdep.o): Use $(vax_tdep_h).
7703 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7704 (vax_dump_tdep): New function.
7705 (_initialize_vax_tdep): Register vax_dump_tdep.
7706 * vax-tdep.h: Include osabi.h.
7707 (struct gdbarch_tdep): New.
7708
da130f98
AC
77092002-06-26 Andrew Cagney <cagney@redhat.com>
7710
7711 * frame.h (deprecated_generic_find_dummy_frame): Rename
7712 generic_find_dummy_frame.
7713 * blockframe.c (generic_find_dummy_frame): Make static.
7714 (deprecated_generic_find_dummy_frame): New function.
7715 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7716 generic_find_dummy_frame with deprecated_find_dummy_frame.
7717 (sh64_nofp_frame_init_saved_regs): Ditto.
7718 (sh_fp_frame_init_saved_regs): Ditto.
7719 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7720 (s390_frame_chain): Ditto.
7721 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7722
6300c360
GS
77232002-06-26 Grace Sainsbury <graces@redhat.com>
7724
7725 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7726 gdbarch vector are at the top.
7727 (NUM_REGS): Remove.
7728 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7729 (FRAME_ARGS_ADDRESS): Remove.
7730 (FRAME_LOCALS_ADDRESS): Remove.
7731 (FRAME_NUM_ARGS): Remove.
7732 (FRAME_ARGS_SKIP): Remove.
7733 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7734 (m68k_gdbarch_init): Add gdbarch initializations for macros
7735 undefined in tm-m68k.h
7736
1c617db8
GS
77372002-06-26 Grace Sainsbury <graces@redhat.com>
7738
7739 * monitor.h: Add the function regname to monitor_ops
7740 structure. This way NUM_REGS does not have to be a constant.
7741 * monitor.c (monitor_fetch_register): Added support for regname
7742 function. The function is called if the array regnames is NULL.
7743 (monitor_store_register): Same.
da130f98
AC
7744 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7745 regnames array.
1c617db8
GS
7746 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7747 cpu32bug_cmds.regname to point to new function.
7748 * abug-rom.c (abug_regname): Same as above.
7749 (init_abug_cmds): Same.
7750 * dbug-rom.c (dbug_regname): Same as above.
7751 (init_dbug_cmds): Same.
7752 * remote-est.c (est_regname): Same.
7753 (init_est_cmds): Same.
7754 * rom68k-rom.c (rom68k_regname): Same.
7755 (init_rom68k_cmds): Same.
7756
ea9365bb
TT
77572002-06-25 Tom Tromey <tromey@redhat.com>
7758
7759 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7760
72cec141
AC
77612002-06-25 Andrew Cagney <cagney@redhat.com>
7762
7763 * infrun.c (stop_registers): Change variable's type to ``struct
7764 regcache'''.
7765 (xmalloc_inferior_status): Delete function.
7766 (free_inferior_status): Delete function.
7767 (normal_stop): Use regcache_cpy.
7768 (struct inferior_status): Change type of fields ``stop_registers''
7769 and ``registers'' to ``struct regcache''.
7770 (write_inferior_status_register): Use regcache_write.
7771 (save_inferior_status): Instead of calling
7772 xmalloc_inferior_status, allocate the inf_status buffer directly.
7773 Use regcache_dup_no_passthrough and regcache_dup to save the
7774 buffers.
7775 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7776 Replace the stop_registers regcache instead of overriding it. Use
7777 regcache_xfree. Instead of calling free_inferior_status, xfree
7778 the buffer directly.
7779 (discard_inferior_status): Use regcache_xfree. Instead of calling
7780 free_inferior_status, xfree the buffer directly.
7781 (build_infrun): Use regcache_xmalloc.
7782 (_initialize_infrun): Delete redundant call to build_infrun.
7783
7784 * Makefile.in (infcmd.o): Add $(regcache_h).
7785
7786 * infcmd.c: Include "regcache.h".
7787 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7788 obtain the address of `stop_registers' register buffer.
7789 (print_return_value): Ditto.
7790
7791 * inferior.h (struct regcache): Add opaque declaration.
7792 (stop_registers): Change variable's declared type to ``struct
7793 regcache''.
7794
defc6f8c
TT
77952002-06-24 Tom Tromey <tromey@redhat.com>
7796
c0e624e7
TT
7797 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7798 * target.c (initialize_targets): Fixed typo in
7799 trust-readonly-sections `show' documentation.
7800
defc6f8c
TT
7801 * main.c: Marked all strings with _().
7802
2b236d82
DH
78032002-06-24 Don Howard <dhoward@redhat.com>
7804
7805 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7806 that means max CORE_ADDR+1.
7807 (lookup_mem_region): Ditto.
7808 (mem_info_command): Ditto.
7809
942dc0e9
GS
78102002-06-24 Grace Sainsbury <graces@redhat.com>
7811
7812 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7813 (REGISTER_BYTES_OK): Remove.
7814 (REGISTER_BYTES): Remove.
7815 (STORE_STRUCT_RETURN): Remove.
7816 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7817 (STORE_RETURN_VALUE): Remove.
7818 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7819 (FRAME_CHAIN): Remove.
7820 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7821 (FRAME_SAVED_PC): Remove.
7822 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7823 (m68k_store_struct_return): Add.
7824 (m68k_deprecated_extract_return_value): Add.
7825 (m68k_deprecated_extract_struct_value_address): Add.
7826 (m68k_store_return_value): Add.
7827 (m68k_frame_chain): Add.
7828 (m68k_frameless_function_invocation): Add.
7829 (m68k_frame_saved_pc): Add.
7830 (m68k_gdbarch_init): added set_gdbarch calls for new
7831 functions and deleted macros.
7832
03c30d4d
TT
78332002-06-23 Tom Tromey <tromey@redhat.com>
7834
7835 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7836 (ALLDEPFILES): Likewise.
7837 (udiheaders): Removed.
7838 (udip2soc.o): Likewise.
7839 (udi2go32.o): Likewise.
7840 (udr.o): Likewise.
7841 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7842
37e71372
AC
78432002-06-22 Andrew Cagney <ac131313@redhat.com>
7844
06a6ac57
AC
7845 * infrun.c (_initialize_infrun): Delete unnecessary call to
7846 build_infrun.
7847
37e71372
AC
7848 * regcache.h: Update comments describing the regcache_cpy family
7849 of functions.
7850 (regcache_save, regcache_restore): Delete declaration.
7851 (regcache_save_no_passthrough): Delete declaration.
7852 (regcache_restore_no_passthrough): Delete declaration.
7853 * regcache.c (regcache_save): Delete function.
7854 (regcache_save_no_passthrough): Delete function.
7855 (regcache_restore): Delete function.
7856 (regcache_restore_no_passthrough): Delete function.
7857
78f6d055
AC
78582002-06-21 Andrew Cagney <ac131313@redhat.com>
7859
7860 * config/m68k/tm-m68k.h: Fix typo.
7861 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7862 (m68k_frame_init_saved_regs): Declare.
7863
78b119cb
JB
78642002-06-21 Jim Blandy <jimb@redhat.com>
7865
7866 Remove some vestiges of Harris 88k support.
7867 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7868 register numbering quirk.
7869 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7870 odd symbols occurring in Harris 88k ELF targets.
7871
0fbb3da7
TT
78722002-06-21 Tom Tromey <tromey@redhat.com>
7873
7874 * gdb_locale.h: New file.
7875 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7876 (defs_h): Added gdb_locale.h.
7877 * configure, config.in: Rebuilt.
7878 * configure.in (PACKAGE): Define.
7879 * defs.h: Include gdb_locale.h.
7880 * main.c (captured_main): Call setlocale, bindtextdomain,
7881 textdomain.
7882
456f8b9d
DB
78832002-06-21 Dave Brolley <brolley@redhat.com>
7884
7885 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7886 * config/frv/frv.mt: New file.
7887 * config/frv/tm-frv.h: New file.
7888 * configure.tgt: Support frv-*-*.
7889 * Makefile.in (frv-tdep.o): New target.
7890 * frv-tdep.c: New file.
7891 * NEWS: Mention frv.
7892
cdd463f9
DB
78932002-06-21 Dave Brolley <brolley@redhat.com>
7894
7895 * MAINTAINERS: Add self to "Write After Approval" list.
7896
5d3ed2e3
GS
78972002-06-21 Grace Sainsbury <graces@redhat.com>
7898
7899 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7900 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7901 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7902 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7903 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7904
7905 * m68k-tdep.c: Include arch-utils.h
7906 (m68k_register_raw_size): Add.
7907 (m68k_register_virtual_size): Add.
7908 (m68k_register_virtual_type): Add.
7909 (m68k_register_name): Add.
7910 (m68k_stack_align): Add.
7911 (m68k_register_byte): Add.
7912 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7913 tm-m68k.h.
7914
7f8e7424
GS
79152002-06-21 Grace Sainsbury <graces@redhat.com>
7916
a2c6a6d5 7917 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7918 m68k_find_saved_regs.
7919 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7920 references to it with frame->saved_regs.
7f8e7424
GS
7921 (m68k_gdbarch_init): Added function calls to initialize the
7922 gdbarch structure.
a2c6a6d5
GS
7923 (m68k_fix_call_dummy): Add.
7924 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7925 (CALL_DUMMY): Remove.
7926 (CALL_DUMMY_LENGTH): Remove.
7927 (CALL_DUMMY_START_OFFSET): Remove.
7928 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7929 (FIX_CALL_DUMMY): Remove.
7930 (PUSH_DUMMY_FRAME): Remove.
7931 (POP_FRAME): Remove.
7f8e7424 7932
f461f5cf
PM
79332002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7934
7935 * parse.c (parse_fprintf): New function used to avoid calls to
7936 fprintf in bison parser generated debug code.
7937 * parser-defs.h: Declaration of new parse_fprintf function.
7938 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7939 Set YYDEBUG to 1 by default.
7940 Set YYFPRINTF as parse_fprintf.
7941
7f0c12ed
ML
79422002-06-21 Michal Ludvig <mludvig@suse.cz>
7943
7944 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7945 encoding anymore.
7946 (pointer_encoding, enum ptr_encoding): New.
7947 (execute_cfa_program): Take care about pointer encoding.
7948 (dwarf2_build_frame_info): Only call parse_frame_info for
7949 .debug_frame and .eh_frame.
7950 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7951 fixed augmentation handling, added relative addressing,
7952 ignore duplicate FDEs. Added comments.
19d833a2 7953 * dwarf2cfi.c: Reindented.
7f0c12ed 7954
87c4a039
EZ
79552002-06-20 Elena Zannoni <ezannoni@redhat.com>
7956
7957 * event-top.c (command_handler): Don't use space_at_cmd_start
7958 unless there is sbrk() on the host. Assign time and space data
7959 to union fields of the appropriate length.
7960
1cf877ad
ML
79612002-06-20 Michal Ludvig <mludvig@suse.cz>
7962
7963 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7964 x86_64_register_name. Return type changed to 'const char *'.
7965 (x86_64_register_name2nr): Rename to x86_64_register_number.
7966 (x86_64_gdbarch_init): Update to reflect the change.
7967 * x86-64-tdep.h: Ditto.
7968 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7969 (supply_fpregset): Ditto.
7970
3fadccb3
AC
79712002-06-19 Andrew Cagney <cagney@redhat.com>
7972
7973 * regcache.h: Update copyright.
7974 (struct regcache, struct gdbarch): Add opaque declarations.
7975 (current_regcache): Declare global variable.
7976 (regcache_read, regcache_write): Add gdbarch parameter.
7977 (regcache_save, regcache_save_no_passthrough)
7978 (regcache_restore, regcache_restore_no_passthrough)
7979 (regcache_dup, regcache_dup_no_passthrough)
7980 (regcache_cpy, regcache_cpy_no_passthrough)
7981 (deprecated_grub_regcache_for_registers)
7982 (deprecated_grub_regcache_for_register_valid)
7983 (regcache_valid_p): Add function declarations.
7984
7985 * regcache.c: Update copyright.
7986 (regcache_descr_handle): New global variable.
7987 (struct regcache_descr): Define.
7988 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7989 (regcache_descr, xfree_regcache_descr): New functions.
7990 (struct regcache): Define.
7991 (regcache_xmalloc, regcache_xfree): New functions.
7992 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7993 (regcache_dup, regcache_dup_no_passthrough): New functions.
7994 (regcache_valid_p, regcache_read_as_address): New functions.
7995 (deprecated_grub_regcache_for_registers): New function.
7996 (deprecated_grub_regcache_for_register_valid): New function.
7997 (current_regcache): New global variable.
7998 (register_buffer): Add regcache parameter. Update calls.
7999 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8000 (read_register_gen, write_register_gen): Update register_buffer
8001 call. Test for legacy_p instead of gdbarch_register_read_p or
8002 gdbarch_register_write_p.
8003 (regcache_collect): Update register_buffer call.
8004 (build_regcache): Rewrite. Use deprecated grub functions.
8005 (regcache_save, regcache_save_no_passthrough): New functions.
8006 (regcache_restore, regcache_restore_no_passthrough): New
8007 functions.
8008 (_initialize_regcache): Create the regcache_data_handle. Swap
8009 current_regcache global variable.
8010
8011 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8012 parameter to regcache_read and regcache_write calls.
8013 (sh4_register_read): Ditto.
8014 (sh64_pseudo_register_read): Ditto.
8015 (sh64_register_read): Ditto.
8016 (sh_pseudo_register_write): Ditto.
8017 (sh4_register_write): Ditto.
8018 (sh64_pseudo_register_write): Ditto.
8019 (sh64_register_write): Ditto.
8020
8021 * defs.h (XCALLOC): Define.
8022
152d9db6
GS
80232002-06-19 Grace Sainsbury <graces@redhat.com>
8024
8025 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8026 * m68k-tdep.c (m68k_gdbarch_init): Added.
8027 (m68k_dump_tdep): Added.
8028
170911c7
DJ
80292002-06-19 Daniel Jacobowitz <drow@mvista.com>
8030
8031 * ada-lang.c (fill_in_ada_prototype): Update comment.
8032
2e4ebe70
DJ
80332002-06-19 Daniel Jacobowitz <drow@mvista.com>
8034
8035 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8036 MIPS_ABI_LAST.
8037 (mips_abi_string, mips_abi_strings): New.
8038 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8039 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8040 tdep->mips_abi_string. Honor mips_abi_string. Default to
8041 O32 if no ABI is found.
8042 (mips_dump_tdep): Use mips_abi_strings.
8043 (mips_abi_update): New function.
8044 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8045 ``set mips abi'' and ``show mips abi''. Check the size of
8046 mips_abi_strings.
8047
16775908
AC
80482002-06-19 Andrew Cagney <cagney@redhat.com>
8049
8050 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8051 constant.
8052
5051bfa4 80532002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 8054
5051bfa4
JB
8055 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8056 current frame using only the first stack size adjustment. All
8057 subsequent size adjustments are not considered to be part of
8058 the "static" part of the current frame.
8059 Compute the address of the saved registers relative to the
8060 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8061 in use in this frame.
8062
56468235
DH
80632002-06-18 Don Howard <dhoward@redhat.com>
8064
8065 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8066 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8067 suggesting this solution.
8068
0b624158
AC
80692002-06-18 Andrew Cagney <ac131313@redhat.com>
8070
8071 * config/romp/xm-rtbsd.h: Delete file.
8072 * config/romp/rtbsd.mh: Delete file.
8073
221ea385
KS
80742002-06-18 Keith Seitz <keiths@redhat.com>
8075
8076 * breakpoint.c (condition_command): Post breakpoint_modify
8077 when a condition is added to an existing breakpoint.
8078 (commands_command): Likewise for commands.
8079 (set_ignore_count): Likewise for ignore counts.
8080 If no tty, do not simply return, still need to send event
8081 notification.
8082 (ignore_command): Only print a newline if the command came
8083 from a tty.
8084 Don't call breakpoints_changed, since this is now properly
8085 handled by set_ignore_count.
8086
5402eed1
AC
80872002-06-18 Andrew Cagney <cagney@redhat.com>
8088
8089 * MAINTAINERS: Note that cris-elf target can be compiled with
8090 -Werror.
8091 * cris-tdep.c (cris_register_name): Make return type constant.
8092 (cris_breakpoint_from_pc): Ditto.
8093
cc22880b
ML
80942002-06-18 Michal Ludvig <mludvig@suse.cz>
8095
8096 * frame.h (struct frame_info): Change type of context to
8097 'struct context'.
8098
fa88f677
AC
80992002-06-17 Andrew Cagney <cagney@redhat.com>
8100
8101 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8102 pointer.
8103 * gdbarch.h, gdbarch.c: Regenerate.
8104 * config/mips/tm-mips.h (mips_register_name): Update.
8105 * i386-tdep.h (i386_register_name): Update.
8106 * mips-tdep.c (mips_register_name): Update
8107 * alpha-tdep.c (alpha_register_name): Update.
8108 * arch-utils.c (legacy_register_name): Update.
8109 * arch-utils.h (legacy_register_name): Update.
8110 * avr-tdep.c (avr_register_name): Update.
8111 * ia64-tdep.c (ia64_register_name): Update.
8112 * i386-tdep.c (i386_register_name): Update.
8113 * sparc-tdep.c (sparc32_register_name): Update.
8114 (sparc64_register_name): Update.
8115 (sparclite_register_name): Update.
8116 (sparclet_register_name): Update.
8117 * sh-tdep.c (sh_generic_register_name): Update.
8118 (sh_sh_register_name): Update.
8119 (sh_sh3_register_name): Update.
8120 (sh_sh3e_register_name): Update.
8121 (sh_sh_dsp_register_name): Update.
8122 (sh_sh3_dsp_register_name): Update.
8123 (sh_sh4_register_name): Update.
8124 (sh_sh64_register_name): Update.
8125 * s390-tdep.c (s390_register_name): Update.
8126 * rs6000-tdep.c (rs6000_register_name): Update.
8127 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8128 (ns32k_register_name_32382): Update.
8129 * d10v-tdep.c (d10v_ts2_register_name): Update.
8130 (d10v_ts3_register_name): Update.
8131 * xstormy16-tdep.c (xstormy16_register_name): Update.
8132 * vax-tdep.c (vax_register_name): Update.
8133 * v850-tdep.c (v850_register_name): Update.
8134 * m68hc11-tdep.c (m68hc11_register_name): Update.
8135 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8136 (am33_register_name): Update.
8137
ea1e7ef6
GS
81382002-06-17 Grace Sainsbury <graces@redhat.com>
8139
8140 * m68k-tdep.c: Reindented.
8141
9b02dd1b
AC
81422002-06-17 Andrew Cagney <ac131313@redhat.com>
8143
8144 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8145 list of predefined types.
8146
8758dec1
MK
81472002-06-16 Mark Kettenis <kettenis@gnu.org>
8148
b6197528
MK
8149 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8150 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8151 REGISTER_CONVERT_TO_RAW): Remove defines.
8152 (i386_register_virtual_type, i386_register_convertible,
8153 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8154 Remove prototypes.
8155 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8156 macros mentioned above.
8157
82b47e62
MK
8158 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8159 (i386lynx_saved_pc_after_call): Remove prototype.
8160 * i386ly-tdep.c: Include "i386-tdep.h".
8161 (i386lynx_saved_pc_after_call): Make static. Use
8162 read_memory_nobpt instead of read_memory. Use
8163 read_memory_unsigned_integer instead of read_memory_integer.
8164 (i386lynx_init_abi): New function.
8165 (i386lynx_coff_osabi_sniffer): New function.
8166 (_initialize_i386bsd_tdep): New function.
8167
8758dec1
MK
8168 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8169 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8170 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8171 (i386_fix_call_dummy): Remove prototype.
8172 * i386-tdep.c (i386_call_dummy_words): New variable.
8173 (i386_gdbarch_init): Adjust for removal of the
8174 macros mentioned above.
8175
e9e68a56
AC
81762002-06-15 Andrew Cagney <ac131313@redhat.com>
8177
8178 * command.h (add_setshow_auto_boolean_cmd): Replace
8179 add_set_auto_boolean_cmd.
8180 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8181 add_set_auto_boolean_cmd.
8182 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8183 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8184 mask-address'' command.
8185 (show_mask_address): Add cmd parameter.
8186 * remote.c (add_packet_config_cmd): Update. Change type of
8187 set_func and show_func to cmd_sfunc_ftype.
8188 (_initialize_remote): Update `set remote Z-packet'
8189 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8190 (show_remote_protocol_e_packet_cmd): Ditto.
8191 (show_remote_protocol_E_packet_cmd): Ditto.
8192 (show_remote_protocol_P_packet_cmd): Ditto.
8193 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8194 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8195 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8196 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8197 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8198 (show_remote_protocol_Z_packet_cmd): Ditto.
8199 (show_remote_protocol_binary_download_cmd): Ditto.
8200 (show_remote_cmd): Pass NULL to all of above.
8201
fc08ec52
MK
82022002-06-15 Mark Kettenis <kettenis@gnu.org>
8203
8204 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8205 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8206 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8207 POP_FRAME): Remove defines.
8208 (i386_push_arguments, i386_store_struct_return,
8209 i386_extract_return_value, i386_store_return_value,
8210 i386_extract_struct_value_address, i386_push_dummy_frame,
8211 i386_pop_frame): Renove prototypes.
8212 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8213 macros mentioned above.
8214
e707bbc2
AC
82152002-06-15 Andrew Cagney <ac131313@redhat.com>
8216
8217 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8218 add_set_boolean_cmd.
8219 (add_setshow_cmd): New function.
8220 * command.h (add_setshow_boolean_cmd): Replace
8221 add_set_boolean_cmd.
8222 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8223 and ``set rdiromatzero''.
8224 * maint.c (_initialize_maint_cmds): Update commented out code.
8225 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8226 * target.c (initialize_targets): Update `set
8227 trust-readonly-sections'.
8228 * remote.c (_initialize_remote): Update `set remotebreak'.
8229
42fdc8df
MK
82302002-06-15 Mark Kettenis <kettenis@gnu.org>
8231
93924b6b
MK
8232 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8233 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8234 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8235 fit into multi-arch framework.
8236 (i386_breakpoint_from_pc): New function.
8237 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8238 above.
8239
42fdc8df
MK
8240 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8241 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8242 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8243 (i386_frameless_function_invocation, i386_frame_num_args,
8244 i386_frame_init_saved_regs): Remove prototypes.
8245 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8246 macros mentioned above.
8247
9773a94b
AC
82482002-06-15 Andrew Cagney <ac131313@redhat.com>
8249
8250 * cli/cli-decode.c (set_cmd_cfunc): Update.
8251 (set_cmd_sfunc): Update.
8252 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8253 (set_cmd_sfunc, set_cmd_cfunc): Update.
8254 * cli/cli-decode.h: Update.
8255
6e157172
MK
82562002-06-15 Mark Kettenis <kettenis@gnu.org>
8257
8258 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8259 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8260
7f19b9a2
AC
82612002-06-15 Andrew Cagney <ac131313@redhat.com>
8262
8263 * defs.h (auto_boolean): Declare enum.
8264 * command.h (cmd_auto_boolean): Delete enum.
8265 * mips-tdep.c (mask_address_var): Update.
8266 (mips_mask_address_p): Update.
8267 (show_mask_address): Update.
8268 * remote.c (struct packet_config): Update.
8269 (update_packet_config): Update.
8270 (show_packet_config_cmd): Update.
8271 (packet_ok): Update.
8272 (add_packet_config_cmd): Update.
8273 (_initialize_remote):
8274 * command.h: Update.
8275 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8276 (do_setshow_command): Update.
8277 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8278 * cli/cli-decode.h: Update.
8279
1cf88de5
MK
82802002-06-15 Mark Kettenis <kettenis@gnu.org>
8281
22ba8cf2
MK
8282 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8283 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8284 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8285 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8286 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8287 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8288
762c5349
MK
8289 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8290 list of DJGPP COFF targets.
8291
091198bb
MK
8292 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8293 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8294 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8295 (FP0_REGNUM): Remove define.
8296 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8297 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8298 (i386_register_virtual_size): Remove protoype.
8299 * i386-tdep.c (i386_register_virtual_size): Removed.
8300 (i386_extract_return_value, i386_store_return_value): Use
8301 FP0_REGNUM instead of NUM_FREGS to determine whether the
8302 floating-point registers are available.
8303 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8304 Adjust for removal of macros mentioned above.
8305
83062002-06-15 Mark Kettenis <kettenis@gnu.org>
8307
fcc9bf01
MK
8308 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8309 comments.
8310 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8311 Remove prototypes.
8312 (supply_gregset, fill_gregset): Remove use of register keyword and
8313 remove declaration for regmap. Use I386_NUM_GREGS instead of
8314 NUM_REGS and NUM_FREGS.
8315 (FPREGSET_FSAVE_OFFSET): Remove.
8316 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8317 NUM_FREGS to determine whether the floating-point registers are
8318 available.
8319
65e78234
MK
8320 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8321 gnu_store_registers): Replace usage of NUM_GREGS with
8322 I386_NUM_GREGS.
8323
98df6387
MK
8324 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8325 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8326 usage of NUM_GREGS with I386_NUM_GREGS.
8327
099a9414
MK
8328 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8329
57976e88
MK
8330 * i386bsd-nat.c: Include "i386-tdep.h".
8331 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8332 I386_NUM_GREGS.
8333
b335f4a6
MK
8334 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8335 and associated comment. They no longer make any sense, since we
8336 don't use this file anymore on Linux.
8337
1cf88de5
MK
8338 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8339 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8340 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8341 elements in these arrays.
8342 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8343 MAX_NUM_REGS.
8344
daa66587
MK
83452002-06-15 Mark Kettenis <kettenis@gnu.org>
8346
8347 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8348 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8349
26e9b323
AC
83502002-06-14 Andrew Cagney <cagney@redhat.com>
8351
8352 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8353 EXTRACT_RETURN_VALUE.
8354 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8355 EXTRACT_STRUCT_VALUE_ADDRESS.
8356 * gdbarch.h, gdbarch.c: Regenerate.
8357
8358 * values.c (value_being_returned): Handle
8359 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8360 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8361
8362 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8363 * arm-tdep.c (arm_gdbarch_init): Update.
8364 * avr-tdep.c (avr_gdbarch_init): Update.
8365 * cris-tdep.c (cris_gdbarch_init): Update.
8366 * d10v-tdep.c (d10v_gdbarch_init): Update.
8367 * ia64-tdep.c (ia64_gdbarch_init): Update.
8368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8370 * s390-tdep.c (s390_gdbarch_init): Update.
8371 * sh-tdep.c (sh_gdbarch_init): Update.
8372 * s390-tdep.c (s390_gdbarch_init): Update.
8373 * sparc-tdep.c (sparc_gdbarch_init): Update.
8374 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8375 * v850-tdep.c (v850_gdbarch_init): Update.
8376 * vax-tdep.c (vax_gdbarch_init): Update.
8377 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8379
8380 * config/arc/tm-arc.h: Update.
8381 * config/d30v/tm-d30v.h: Update.
8382 * config/fr30/tm-fr30.h: Update.
8383 * config/h8300/tm-h8300.h: Update.
8384 * config/h8500/tm-h8500.h: Update.
8385 * config/i386/tm-i386.h: Update.
8386 * config/i386/tm-ptx.h: Update.
8387 * config/i386/tm-symmetry.h: Update.
8388 * config/i960/tm-i960.h: Update.
8389 * config/m32r/tm-m32r.h: Update.
8390 * config/m68k/tm-delta68.h: Update.
8391 * config/m68k/tm-linux.h: Update.
8392 * config/m68k/tm-m68k.h: Update.
8393 * config/m88k/tm-m88k.h: Update.
8394 * config/mcore/tm-mcore.h: Update.
8395 * config/mips/tm-mips.h: Update.
8396 * config/mn10200/tm-mn10200.h: Update.
8397 * config/pa/tm-hppa.h: Update.
8398 * config/pa/tm-hppa64.h: Update.
8399 * config/sparc/tm-sp64.h: Update.
8400 * config/sparc/tm-sparc.h: Update.
8401 * config/sparc/tm-sparclet.h: Update.
8402 * config/z8k/tm-z8k.h: Update.
8403
5179e78f
AC
84042002-06-14 Andrew Cagney <cagney@redhat.com>
8405
8406 * Makefile.in (i386_linux_tdep_h): Define.
8407 (i386_tdep_h, i387_tdep_h): Define.
8408 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8409 $(i386_tdep_h) and $(i387_tdep_h).
8410 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8411
8201327c
MK
84122002-06-14 Mark Kettenis <kettenis@gnu.org>
8413
edf393ac
MK
8414 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8415 Already covered by the default.
8416
896fb97d
MK
8417 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8418 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8419 (i386_gdbarch_init): Initialize long_double_format and long_double
8420 bit.
8421
8201327c
MK
8422 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8423 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8424 Move these to ...
8425 * config/i386/i386sol2.mh: ... here.
8426 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8427 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8428 (SIGCONTEXT_PC_OFFSET): Remove define.
8429 (IN_SIGTRAMP): Remove define.
8430 * i386-sol2-tdep.c: New file.
8431
8432 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8433 * config/i386/tm-i386nw.h: Removed.
8434
8435 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8436 USE_STRUCT_CONVENTION): Remove defines.
8437 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8438 (get_longjmp_target): Remove prototype.
8439 (IN_SIGTRAMP): Remove define.
8440 (i386bsd_in_sigtramp): Remove prototype.
8441 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8442 function. Update comment accordingly
8443 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8444 (FRAME_SAVED_PC): Remove define.
8445 (i386bsd_frame_saved_pc): Remove prototype.
8446 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8447 GET_LONGJMP_TARGET): Remove defines.
8448 (get_longjmp_target): Remove prototype.
8449 (IN_SIGTRAMP): Remove define.
8450 (i386bsd_in_sigtramp): Remove prototype.
8451 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8452 function. Update comment accordingly
8453 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8454 (FRAME_SAVED_PC): Remove define.
8455 (i386bsd_frame_saved_pc): Remove prototype.
8456 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8457 Remove prototype.
8458 (USE_STRUCT_CONVENTION): Remove prototype.
8459 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8460 declaration.
8461 (_initialize_i386bsd_nat): Revise logic to determine some
8462 constants at compile time when compiling a native GDB. Warn if
8463 things don't match up with what we expect.
8464 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8465 Remove variables.
8466 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8467 to use date stored in `struct gdbarch_tdep'.
8468 (i386bsd_sigcontext_offset): Remove varaible.
8469 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8470 stored in `struct gdbarch_tdep'.
8471 (i386bsd_frame_saved_pc): Make static.
8472 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8473 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8474 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8475 i386fbsd4_sc_pc_offset): New variables.
8476 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8477 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8478 functions.
8479 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8480 functions.
8481 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8482 Modify the value of i386fbsd_sigtramp_start and
8483 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8484 i386fbsd_sigtramp_end.
8485 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8486 function.
8487
8488 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8489 define to i386-linux-tdep.h.
8490 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8491 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8492 defines.
8493 (i386_linux_register_name, i386_linux_register_byte,
8494 i386_linux_register_raw_size): Remove prototypes.
8495 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8496 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8497 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8498 TARGET_WRITE_PC): Remove defines.
8499 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8500 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8501 i386_linux_write_pc): Remove prototypes.
8502 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8503 (get_longjmp_target): Remove prototype.
8504 * i386-linux-tdep.h: New file.
8505 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8506 * i386-linux-tdep.c: Include "i386-tdep.h" and
8507 "i386-linux-tdep.h".
8508 (i386_linux_register_name, i386_linux_register_byte,
8509 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8510 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8511 Make static.
8512 (i386_linux_init_abi): New function.
8513 (_initialize_i386_linux_tdep): New function.
8514
8515 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8516 (i386_saved_pc_after_call): Remove prototype.
8517 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8518 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8519 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8520 (i386_register_name, i386_stab_reg_to_regnum,
8521 i386_dwarf_reg_to_regnum): Remove prototypes.
8522 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8523 SIZEOF_SSE_REGS): Remove defines.
8524 (REGISTER_BYTES): Remove define.
8525 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8526 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8527 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8528 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8529 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8530 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8531 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8532 (get_longjmp_target): Remove prototype.
8533 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8534 (sigtramp_saved_pc): Remove define.
8535 (i386v4_sigtramp_saved_pc): Remove prototype.
8536 * config/i386/tm-go32.h (FRAME_CHAIN,
8537 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8538 (i386go32_frame_saved_pc): Remove prototype.
8539 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8540 (get_longjmp_target): Remove prototype.
8541 * i386-tdep.h: Include "osabi.h".
8542 (enum i386_abi): Removed.
8543 (enum struct_return): New enum.
8544 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8545 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8546 sc_pc_offset members.
8547 (i386_gdbarch_register_os_abi): Remove prototype.
8548 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8549 I386_SSE_NUM_REGS): New defines.
8550 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8551 I386_SSE_SIZEOF_REGS): New defines.
8552 (i386_register_name, i386_register_byte, i386_register_raw_size):
8553 New prototypes.
8554 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8555 (i386bsd_sigtramp_saved_pc): New prototype.
8556 * i386-tdep.c: Don't include "elf-bfd.h".
8557 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8558 i386_frame_chain, i386_saved_pc_after_call): Make static.
8559 (i386_frame_saved_pc): Rewrite to call architecture dependent
8560 function to deal with signal handlers. Make static.
8561 (i386go32_frame_saved_pc): Removed.
8562 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8563 Removed.
8564 (i386_get_longjmp_target): New function.
8565 (default_struct_convention, pcc_struct_convention,
8566 reg_struct_convention, valid_conventions, struct_convention): New
8567 variables.
8568 (i386_use_struct_convention): New function.
8569 (i386v4_sigtramp_saved_pc): Renamed to
8570 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8571 (i386_pc_in_sigtramp): New function.
8572 (i386_abi_names): Removed.
8573 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8574 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8575 Removed.
8576 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8577 i386_gdbarch_register_os_abi): Removed.
8578 (struct i386_abi_handler): Removed.
8579 (i386_abi_handler_list): Removed.
8580 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8581 functions.
8582 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8583 i386_nw_init_abi): New functions.
8584 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8585 Use set_gdbarch_xxx() calls instead of relying on macros for a
8586 number of calls.
8587 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8588 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8589 Register the various architecture variants defined in this file.
8590
ad2f7632
DJ
85912002-06-14 Daniel Jacobowitz <drow@mvista.com>
8592
8593 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8594 (struct main_type): Remove arg_types member. Update comments for
8595 struct field.
8596 (TYPE_ARG_TYPES): Remove.
8597 (TYPE_FN_FIELD_ARGS): Update.
8598 (smash_to_method_type): Update prototype.
8599
8600 * c-typeprint.c (cp_type_print_method_args): Take method type
8601 instead of argument list. Use new argument layout. Simplify.
8602 (c_type_print_args): Use new argument layout. Simplify.
8603 (c_type_print_base): Update call to cp_type_print_method_args.
8604 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8605 argument; use die->type instead. Update call to
8606 smash_to_method_type.
8607 (read_structure_scope): Update call to dwarf2_add_member_fn.
8608 * gdbtypes.c (allocate_stub_method): Update comment.
8609 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8610 Use new argument layout.
8611 (check_stub_method): Use new argument layout. Don't count
8612 void as an argument.
8613 (print_arg_types): Update comments. Use new argument layout.
8614 (recursive_dump_type): Don't print arg_types member.
8615 * hpread.c (hpread_read_struct_type): Use new argument layout.
8616 (fixup_class_method_type): Likewise.
8617 (hpread_type_lookup): Likewise.
8618 * stabsread.c (read_type): Update calls to read_args and
8619 smash_to_method_type.
8620 (read_args): Use new argument layout. Simplify.
8621 * valops.c (typecmp): Use new argument layout. Update parameters
8622 and comments. Simplify.
8623 (hand_function_call): Use new argument layout.
8624 (search_struct_method): Update call to typecmp.
8625 (find_overload_match): Use new argument layout.
8626
6da02953
DJ
86272002-06-13 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * NEWS: Mention multithreaded debug support for gdbserver.
8630
519b2366
DJ
86312002-06-13 Daniel Jacobowitz <drow@mvista.com>
8632
8633 * MAINTAINERS: Mention NEWS.
8634
6c0d6680
DJ
86352002-06-13 Daniel Jacobowitz <drow@mvista.com>
8636
8637 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8638 (struct mips_objfile_private, compare_pdr_entries): New.
8639 (non_heuristic_proc_desc): Read the ".pdr" section if it
8640 is present.
8641
6529d2dd
AC
86422002-06-12 Andrew Cagney <ac131313@redhat.com>
8643
8644 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8645 (arm_debug): New static variable.
8646 (_initialize_arm_tdep): Add ``set debug arm'' command.
8647
26216b98
AC
86482002-06-12 Andrew Cagney <ac131313@redhat.com>
8649
8650 * Makefile.in (sim_arm_h): Define.
8651 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8652 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8653 (arm_register_sim_regno): New function, map an internal REGNUM
8654 onto a simulator register number.
8655 (arm_gdbarch_init): Set register_sim_regno.
8656
814b3ba0
AH
86572002-06-09 Aldy Hernandez <aldyh@redhat.com>
8658
8659 * MAINTAINERS: Add self.
8660
475b0867
JB
86612002-06-11 Jim Blandy <jimb@redhat.com>
8662
919d772c
JB
8663 * source.c (source_info): Mention whether the symtab has
8664 information about preprocessor macros.
8665
475b0867
JB
8666 Call the command `info macro', not `show macro'.
8667 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8668 Fix error message.
8669 (_initialize_macrocmd): Register `info_macro_command' in
8670 `infolist', not `showlist'.
8671
9e364162
DJ
86722002-06-11 Daniel Jacobowitz <drow@mvista.com>
8673
8674 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8675 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8676 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8677 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8678 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8679 unconditionally.
8680 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8681 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8682 (_initialize_mips_tdep): Remove dead code.
8683 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8684 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8685 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8686 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8687 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8688 MIPS_LAST_FP_ARG_REGNUM): Remove.
8689
23aa4c72
ML
86902002-06-11 Michal Ludvig <mludvig@suse.cz>
8691
8692 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8693 (unwind_tmp_obstack_free, parse_frame_info)
8694 (update_context, cfi_read_fp, cfi_write_fp)
8695 (cfi_frame_chain, cfi_init_extra_frame_info)
8696 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8697 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8698
70eb15a4
CV
86992002-06-11 Corinna Vinschen <vinschen@redhat.com>
8700
8701 * v850-tdep.c (v850_type_is_scalar): New function.
8702 (v850_use_struct_convention): Match current gcc implementation
8703 as close as possible.
8704 (v850_push_arguments): Fix stack_offset handling. Don't write
8705 struct_addr into register. This is done by v850_store_struct_return.
8706 (v850_extract_return_value): Care for structs.
8707 (v850_store_return_value): Ditto.
8708 (v850_store_struct_return): Actually write address.
8709
482a4d06
ML
87102002-06-11 Michal Ludvig <mludvig@suse.cz>
8711
8712 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8713 without debug information too.
8714
d855c300
AC
87152002-06-10 Andrew Cagney <ac131313@redhat.com>
8716
8717 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8718 Make multi-arch pure.
8719 * gdbarch.h, gdbarch.c: Re-generate.
8720 * arm-tdep.c (arm_print_float_info): Update.
8721 * arch-utils.h (default_print_float_info): Update.
8722 * arch-utils.c (default_print_float_info): Update.
8723 * infcmd.c (float_info): Update call.
8724
dd12a101
AC
87252002-06-10 Andrew Cagney <ac131313@redhat.com>
8726
8727 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8728 the front of the initialize list.
8729
101dcfbe
AC
87302002-06-10 Andrew Cagney <ac131313@redhat.com>
8731
8732 * infrun.c (struct inferior_status): Replace fields
8733 selected_frame_address and selected_level with field
8734 selected_frame_id.
8735 (save_inferior_status): Update. Use get_frame_id.
8736 (struct restore_selected_frame_args): Delete.
8737 (restore_selected_frame): Update. Use frame_find_by_id.
8738 (restore_inferior_status): Update.
8739
8740 * breakpoint.h (struct breakpoint): Change type of
8741 watchpoint_frame to frame_id.
8742 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8743 call to get_current_frame.
8744 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8745 get_current_frame.
8746 (watchpoint_check): Use frame_find_by_id.
8747
8748 * frame.h (record_selected_frame): Delete declaration.
8749 * stack.c (record_selected_frame): Delete function.
8750
8751 * frame.h (struct frame_id): Define.
8752 (get_frame_id): Declare.
8753 (frame_find_by_id): Declare.
8754 * frame.c (frame_find_by_id): New function.
8755 (get_frame_id): New function.
8756
304270b6
AV
87572002-06-10 Andrey Volkov <avolkov@transas.com>
8758
8759 * ser-e7kpc.c: Fix duplicated define and call of
8760 _initialize_ser_e7000pc
8761
2f2cf184
DJ
87622002-06-09 Daniel Jacobowitz <drow@mvista.com>
8763
8764 * signals/signals.c (target_signal_from_host): Fix #ifdef
8765 SIGRTMIN case.
8766 (do_target_signal_to_host): Likewise.
8767
caaa3122
DJ
87682002-06-09 Daniel Jacobowitz <drow@mvista.com>
8769
8770 * mips-tdep.c (mips_find_abi_section): New function.
8771 (mips_gdbarch_init): Call it.
8772
6ac5df3a
MK
87732002-06-09 Mark Kettenis <kettenis@gnu.org>
8774
8775 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8776 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8777 after Andrew's 2002-06-08 gdbarch change.
8778
82ea117a
MK
87792002-06-09 Mark Kettenis <kettenis@gnu.org>
8780
8781 * i386-linux-nat.c (suppy_gregset): Don't supply
8782 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8783 register cache.
8784 (fill_gregset): Don't fetch it under the same circumstances.
8785
3c25f8c7
AC
87862002-06-09 Andrew Cagney <cagney@redhat.com>
8787
8788 * Makefile.in (callback_h): Define.
8789 (remote_sim_h): Update path to remote-sim.h.
8790 (remote-rdp.o): Add $(callback_h).
8791 (remote-sim.o): Use $(callback_h).
8792 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8793 * remote-rdp.c: Include "gdb/callback.h".
8794
1029b7fa
MK
87952002-06-09 Mark Kettenis <kettenis@gnu.org>
8796
8797 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8798 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8799
616675d3
AC
88002002-06-08 Andrew Cagney <ac131313@redhat.com>
8801
a3efda28
AC
8802 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8803 * rdi-share/serpardr.c: Ditto.
8804 * rdi-share/unixcomm.c: Ditto.
8805 * rdi-share/serdrv.c: Ditto.
8806 * rdi-share/hostchan.h: Ditto.
8807 * rdi-share/hostchan.c: Ditto.
8808 * rdi-share/host.h: Ditto.
8809 * rdi-share/devsw.c: Ditto.
8810
c5f10366
AC
8811 * objfiles.h: Change type of obj_private to void pointer.
8812 * pa64solib.c: Update copyright. Don't include "assert.h", use
8813 strcmp instead of STREQ, use LONGEST, do not use PTR
8814 * somsolib.c: Ditto.
8815
616675d3
AC
8816 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8817 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8818 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8819
e4b415d9
AC
88202002-06-08 Andrew Cagney <ac131313@redhat.com>
8821
8822 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8823 (default_get_saved_register): Delete function.
8824 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8825 generic_unwind_get_saved_register.
8826 * gdbarch.h, gdbarch.c: Re-generate.
8827
ca0d0b52
AC
88282002-06-08 Andrew Cagney <ac131313@redhat.com>
8829
8830 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8831 generic_func_frame_chain_valid.
8832 * gdbarch.h, gdbarch.c: Re-generate.
8833 * blockframe.c (generic_func_frame_chain_valid): Only check
8834 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8835 passing FP to PC_IN_CALL_DUMMY.
8836 Fix PR gdb/360.
8837
76860b5f
AC
88382002-06-08 Andrew Cagney <ac131313@redhat.com>
8839
8840 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8841 (register_gdbarch_data): Initialize init_p.
8842 (gdbarch_data): Initialize data pointer using the init function.
8843 (init_gdbarch_data): Delete function.
8844 (gdbarch_update_p): Update.
8845 (initialize_non_multiarch): Update.
8846 (struct gdbarch): Add field initialized_p.
8847 * gdbarch.h, gdbarch.c: Re-generate.
8848
8dda9770
ML
88492002-06-07 Michal Ludvig <mludvig@suse.cz>
8850
8851 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8852 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8853 better do the things actually here.
8854 * x86-64-tdep.c (x86_64_register_name2nr): New.
8855 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8856 (x86_64_gdbarch_init): Respect the above change.
8857 * x86-64-tdep.h (x86_64_register_name2nr)
8858 (x86_64_register_nr2name): Add prototypes.
8859 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8860
3d79a47c
MS
88612002-06-06 Michael Snyder <msnyder@redhat.com>
8862
7bd91a28
MS
8863 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8864 Delete extra braces and re-indent.
8865 (d10v_store_return_value): Char return values
3d79a47c
MS
8866 must be shifted over by one byte in R0.
8867 (d10v_extract_return_value): Delete extra braces, re-indent.
8868
095a4c96
EZ
88692002-06-06 Elena Zannoni <ezannoni@redhat.com>
8870
8871 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8872 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8873 (d10v_integer_to_address): Rewrite.
8874 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8875 the d10v specific functions which take care of converting to the
8876 correct space.
8877
e8a77ca4
EZ
88782002-06-06 Elena Zannoni <ezannoni@redhat.com>
8879
8880 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8881 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8882
4f2e4a4f
AC
88832002-06-02 Andrew Cagney <ac131313@redhat.com>
8884
8885 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8886 includes.
8887 * config/tm-linux.h: Ditto.
8888 * config/alpha/tm-alphalinux.h: Ditto.
8889 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8890 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8891 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8892 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8893 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8894 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8895 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8896 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8897 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8898 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8899 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8900 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8901 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8902 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8903 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8904 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8905 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8906 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8907 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8908 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8909 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8910 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8911 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8912 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8913 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8914 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8915 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8916 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8917 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8918 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8919 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8920 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8921 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8922 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8923 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8924 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8925 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8926
ae2ab2ce
AS
89272002-05-04 Aidan Skinner <aidan@velvet.net>
8928
8929 * ada-exp.tab.c: New file
8930 * ada-exp.y: New file
8931 * ada-lang.c: New file
8932 * ada-lang.h: New file
8933 * ada-lex.c: New file
8934 * ada-lex.l: New file
8935 * ada-tasks.c: New file
8936 * ada-typeprint.c: New file
8937 * ada-valprint.c: New file
8938
0ddd0135
JT
89392002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8942 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8943
750fbacc
JT
89442002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8945
8946 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8947 insetead of ppc-linux-tdep.o.
8948 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8949 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8950
df94e18a
AC
89512002-06-02 Andrew Cagney <ac131313@redhat.com>
8952
8953 2002-05-07 Christian Groessler <chris@groessler.org>
8954 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8955 bit register contents for little endian hosts.
8956
1a38ab75
AC
89572002-06-01 Andrew Cagney <ac131313@redhat.com>
8958
8959 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8960 any maintainer.
8961
8b1632ac
AC
89622002-06-01 Andrew Cagney <ac131313@redhat.com>
8963
8964 * gdbarch.h: Regenerate.
8965
627054c8
AC
89662002-06-01 Andrew Cagney <ac131313@redhat.com>
8967
8968 * MAINTAINERS: Add everyone to write-after-approval list.
8969
4f460812
AC
89702002-06-01 Andrew Cagney <ac131313@redhat.com>
8971
8972 * stack.c (frame_info): Use frame_register_unwind instead of
8973 saved_regs. Mention when the SP is on the stack or in a register.
8974
8975 * frame.h (frame_register_unwind_ftype): Define. Document.
8976 (struct frame_info): Add field register_unwind and
8977 register_unwind_cache.
8978 (frame_register_unwind): Declare.
8979 (generic_unwind_get_saved_register): Declare.
8980
8981 * frame.c (frame_register_unwind): New function.
8982 (generic_unwind_get_saved_register): New function.
8983
8984 * blockframe.c (generic_call_dummy_register_unwind): New function.
8985 (frame_saved_regs_register_unwind): New function.
8986 (set_unwind_by_pc): New function.
8987 (create_new_frame): New function.
8988 (get_prev_frame): New function.
8989
de888f76
AC
89902002-05-30 Andrew Cagney <ac131313@redhat.com>
8991
8992 * a29k-share/: Delete directory.
8993 * remote-vx29k.c: Delete file.
8994
2f2c3626
JT
89952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8996
8997 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8998 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8999
9ce5c36a
JT
90002002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9001
9002 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9003 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9004 (sparc64nbsd-nat.o)
9005 (sparcnbsd-nat.o)
9006 (sparcnbsd-tdep.o): New dependency lists.
9007 * NEWS: Note new UltraSPARC NetBSD native configuration.
9008 * configure.host (sparc64-*-netbsd*): New host.
9009 * configure.tgt (sparc-*-netbsdelf*)
9010 (sparc-*-netbsd*): Set gdb_target to nbsd.
9011 (sparc64-*-netbsd*): New target.
9012 * sparc64nbsd-nat.c: New file.
9013 * sparcnbsd-nat.c: New file.
9014 * sparcnbsd-tdep.c: New file.
9015 * sparcnbsd-tdep.h: New file.
9016 * config/sparc/nbsd.mt: New file.
9017 * config/sparc/nbsd64.mh: New file.
9018 * config/sparc/nbsd64.mt: New file.
9019 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9020 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9021 (HOST_IPC): Remove.
9022 * config/sparc/nbsdaout.mt: Remove.
9023 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9024 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9025 (HOST_IPC): Remove.
9026 * config/sparc/nbsdelf.mt: Remove.
9027 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9028 sparc-nat.c compatiblity defines.
9029 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9030 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9031 * config/sparc/tm-nbsd64.h: New file.
9032 * config/sparc/tm-nbsdaout.h: Remove.
9033 * config/sparc/xm-nbsd.h: Remove.
9034
ef3cf062
JT
90352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9036
9037 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9038 * sparc-tdep.c: Include osabi.h.
9039 (gdbarch_tdep): Add osabi member.
9040 (_initialize_sparc_tdep): Use gdbarch_register.
9041 (sparc_gdbarch_init): Use generic OS ABI framework.
9042 (sparc_dump_tdep): New function.
9043
ee8ff470
KB
90442002-05-30 Kevin Buettner <kevinb@redhat.com>
9045
9046 * corefile.c (do_captured_read_memory_integer): Return non-zero
9047 result.
9048 (safe_read_memory_integer): Copy result of memory read when
9049 status is non-zero. Also, add comments.
9050
7b112f9c
JT
90512002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9052
9053 * Makefile.in (ppc_tdep_h): Define.
9054 (ppc-linux-nat.o)
9055 (ppc-linux-tdep.o)
9056 (rs6000-tdep.o): Use $(ppc_tdep_h).
9057 (ppc-sysv-tdep.o)
9058 (ppcnbsd-nat.o)
9059 (ppcnbsd-tdep.o): New dependency lists.
9060 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
9061 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9062 (ppc_linux_init_abi): New functions.
7b112f9c
JT
9063 (ppc_sysv_abi_broken_use_struct_convention)
9064 (ppc_sysv_abi_use_struct_convention)
9065 (ppc_sysv_abi_push_arguments): Move to...
9066 * ppc-sysv-tdep.c: ...here.
9067 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9068 * rs6000-tdep.c (process_note_abi_tag_sections)
9069 (get_elfosabi): Remove.
9070 (rs6000_gdbarch_init): Use generic OS ABI framework.
9071 (rs6000_dump_tdep): New function.
9072 (_initialize_rs6000_tdep): Use gdbarch_register.
9073 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9074 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9075 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9076 of ppc-linux-tdep.o.
9077 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9078 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9079 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9080 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9081 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9082 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9083
480dd42a
JB
90842002-05-29 Jim Blandy <jimb@redhat.com>
9085
9086 * macroscope.c (default_macro_scope): Put `void' in empty argument
9087 list.
9088
4182591f
AC
90892002-05-29 Andrew Cagney <ac131313@redhat.com>
9090
9091 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9092 * arch-utils.c: Include "sim-regno.h".
9093 * gdbarch.sh: Don't include "sim-regno.h".
9094 * gdbarch.h, gdbarch.c: Regenerate.
9095 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9096 here.
9097 * arch-utils.h (legacy_register_sim_regno): To here.
9098 * remote-sim.c (legacy_register_sim_regno): Move function from
9099 here.
9100 * arch-utils.c (legacy_register_sim_regno): To here.
9101
8238d0bf
AC
91022002-05-28 Andrew Cagney <ac131313@redhat.com>
9103
9104 * sim-regno.h: New file.
9105 * Makefile.in (sim_regno_h): Define.
9106 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9107 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9108 (legacy_register_sim_regno): New function.
9109 (one2one_register_sim_regno): New function.
9110 (gdbsim_fetch_register): Rewrite.
9111 (gdbsim_store_register): Only store a register when
9112 REGISTER_SIM_REGNO is valid.
9113 * d10v-tdep.c: Include "sim-regno.h".
9114 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9115 (d10v_ts3_register_sim_regno): Ditto.
9116 * gdbarch.sh: Include "sim-regno.h".
9117 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9118 * gdbarch.h, gdbarch.c: Regenerate.
9119 * arch-utils.h (default_register_sim_regno): Delete declaration.
9120 * arch-utils.c (default_register_sim_regno): Delete function.
9121
485721b1
JT
91222002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9123
9124 * ppcnbsd-nat.c: Rewrite.
9125 * ppcnbsd-tdep.c: New file.
9126 * ppcnbsd-tdep.h: New file.
9127 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9128 solib.o, and solib-svr4.o.
9129 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9130 nbsd-tdep.o, and corelow.o.
9131
697f244d
AC
91322002-05-28 Andrew Cagney <ac131313@redhat.com>
9133
9134 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9135 `tr' and `sed'. Mention that `broken' targets are not expected to
9136 build.
9137
f08caad1 91382002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
9139
9140 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9141 Let PC point right after the prologue before looking up symbols.
9142
3139facc
MH
91432002-05-27 Martin M. Hunt <hunt@redhat.com>
9144
9145 * i386-tdep.c (i386_register_virtual_type): Return
9146 builtin_type_vec128i for SSE registers.
9147
9148 * gdbtypes.h (builtin_type_vec128i): Declare.
9149
9150 * gdbtypes.c (build_builtin_type_vec128i): New function.
9151 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9152 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9153 (build_gdbtypes): Initialize new builtin vector types.
9154 (_initialize_gdbtypes): Register new vector types with gdbarch.
9155
6e3ba3b8
JT
91562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9159 since it has been multi-arch'd.
9160 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9161 Move Alpha and VAX multi-arch news entries to same section
9162 as other multi-arch news.
9163
93d5585d
JT
91642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9165
9166 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9167 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9168 static. Rename some register numbers to put them in ns32k-tdep
9169 private namespace.
9170 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9171 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9172 functions.
9173 (_initialize_ns32k_tdep): Use gdbarch_register.
9174 * ns32k-tdep.h: New file.
9175 * ns32knbsd-tdep.c: New file.
9176 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9177 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9178 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9179 REGISTER_BYTES, REGISTER_BYTE): Remove.
9180 * config/ns32k/tm-ns32k.h: New file.
9181 * config/ns32k/tm-umax.h: Remove.
9182
efb2c70e
JT
91832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9184
9185 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9186 ns32k_store_struct_return, ns32k_extract_return_value,
9187 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9188 functions.
9189 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9190 ns32k_saved_pc_after_call.
9191 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9192 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9193 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9194 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9195 ns32k_extract_struct_value_address.
9196
7bcc927b
JT
91972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9198
9199 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9200 ns32k_fix_call_dummy): New.
9201 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9202 ns32k_call_dummy_words.
9203 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9204 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9205 CALL_DUMMY_NARGS): Remove.
9206 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9207
78f9d765
JT
92082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9209
9210 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9211 ns32k_frame_saved_pc, ns32k_frame_args_address,
9212 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9213 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9214 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9215 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9216 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9217 (BREAKPOINT): Remove..
9218 (FRAME_CHAIN): Define as ns32k_frame_chain.
9219 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9220 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9221 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9222 (FRAME_FIND_SAVED_REGS): Remove.
9223 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9224 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9225 (POP_FRAME): Define as ns32k_pop_frame.
9226
f2c762e0
JT
92272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9228
9229 * ns32k-tdep.c (ns32k_register_byte_32082,
9230 ns32k_register_byte_32382, ns32k_register_raw_size,
9231 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9232 functions.
9233 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9234 ns32k_register_byte_32382.
9235 * config/ns32k/tm-umax.h: Update copyright years.
9236 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9237 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9238 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9239 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9240 (ns32k_get_enter_addr): Fix prototype.
9241
af137673
JT
92422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9243
9244 * ns32k-tdep.c: Update copyright years.
9245 (ns32k_register_name_32082): New function.
9246 (ns32k_register_name_32382): Ditto.
9247 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9248 (REGISTER_NAME): Define as ns32k_register_name_32382.
9249 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9250 (REGISTER_NAME): Define as ns32k_register_name_32082.
9251
a8bc7b56
JB
92522002-05-24 Jim Blandy <jimb@redhat.com>
9253
9254 * dwarf2read.c (free_line_header): Use xfree, not free.
9255
83a45910
JT
92562002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9257
9258 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9259 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9260
0db71247
AC
92612002-05-23 Andrew Cagney <ac131313@redhat.com>
9262
9263 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9264
b9e5e4dd
AC
92652002-05-23 Andrew Cagney <ac131313@redhat.com>
9266
9267 From Ross Alexander at NEC Europe:
9268 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9269
de530e84
MS
92702002-05-23 Michael Snyder <msnyder@redhat.com>
9271
9272 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9273 for input, rather than parse_and_eval_address.
9274
b91b96f4
AC
92752002-05-23 Andrew Cagney <ac131313@redhat.com>
9276
9277 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9278 * Makefile.in (sim_d10v_h): Update definition.
9279
8b279e7a
AC
92802002-05-24 Andrew Cagney <cagney@redhat.com>
9281
9282 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9283 change `2002-05-22 Michael Snyder' below.
9284 (d10v_push_arguments): Ditto.
9285 (d10v_extract_return_value): Ditto.
9286
0a3d0425
JB
92872002-05-23 Jim Blandy <jimb@redhat.com>
9288
9289 * macrotab.c (check_for_redefinition): Don't complain if the new
9290 definition is the same as the previous one. Take more arguments
9291 to allow the comparison.
9292 (macro_define_object, macro_define_function): Pass more arguments
9293 to check_for_redefinition.
9294
78eac43e
MS
92952002-05-22 Michael Snyder <msnyder@redhat.com>
9296
9297 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9298 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9299 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9300 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9301 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9302 Add a temp variable to save a call (and a memory read).
9303 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9304 if possible (so that PC_IN_CALL_DUMMY will work).
9305
9bc1edb8
CV
93062002-05-22 Corinna Vinschen <vinschen@redhat.com>
9307
9308 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9309
005ef3d2
ML
93102002-05-22 Michal Ludvig <mludvig@suse.cz>
9311
9312 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9313 fde->cie_ptr.
9314 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9315 (dwarf2_build_frame_info): Add offset to fde->initial_location
9316 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
9317 (execute_stack_op): Change type of 'result' from ULONGEST to
9318 CORE_ADDR.
005ef3d2 9319
fcf4f891
JT
93202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9321
9322 * config/alpha/tm-nbsd.h: Include solib.h.
9323
cfef91e4
JT
93242002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9325
9326 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9327 assumptions about the host's byte order.
9328
9964235a
JT
93292002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9330
9331 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9332 to dependency list.
9333 * alphanbsd-tdep.c: Include solib-svr4.h.
9334 * shnbsd-tdep.c: Ditto.
9335
9eeef8ef
JT
93362002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9337
9338 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9339 nbsd-tdep.h to dependency list.
9340 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9341 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9342 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9343 nbsdaout.mh and nbsdelf.mh consistently.
9344 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9345 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9346 nbsdaout.mt and nbsdelf.mh consistently.
9347 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9348 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9349 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9350 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9351 a.out shared library stuff from here...
9352 * config/nm-nbsdaout.h: ...to here.
9353 * config/tm-nbsd.h: Remove.
9354 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9355 * config/arm/nbsd.mh: Remove.
9356 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9357 nbsd-tdep.o.
9358 * config/arm/nbsdaout.mh: New file.
9359 * config/arm/nbsdelf.mh: New file.
9360 * config/arm/nm-nbsdaout.h: New file.
9361 * config/i386/nbsd.mh: Remove.
9362 * config/i386/nbsd.mt: Remove.
9363 * config/i386/nbsdaout.mh: New file.
9364 * config/i386/nbsdaout.mt: New file.
9365 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9366 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9367 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9368 i386_register_u_addr): Remove.
9369 * config/i386/nm-nbsdaout.h: New file.
9370 * config/i386/nm-nbsdelf.h: Remove.
9371 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9372 (USE_STRUCT_CONVENTION): Remove.
9373 * config/i386/tm-nbsdaout.h: New file.
9374 * config/i386/tm-nbsdelf.h: Remove.
9375 * config/m68k/nbsd.mh: Remove.
9376 * config/m68k/nbsd.mt: Remove.
9377 * config/m68k/nbsdaout.mh: New file.
9378 * config/m68k/nbsdaout.mt: New file.
9379 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9380 * config/m68k/nm-nbsdaout.h: New file.
9381 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9382 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9383 * config/ns32k/nbsd.mh: Remove.
9384 * config/ns32k/nbsd.mt: Remove.
9385 * config/ns32k/nbsdaout.mh: New file.
9386 * config/ns32k/nbsdaout.mt: New file.
9387 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9388 * config/ns32k/nm-nbsdaout.h: New file.
9389 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9390 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9391 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9392 (SVR4_SHARED_LIBS): Remove.
9393 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9394 * config/sparc/nbsd.mh: Remove.
9395 * config/sparc/nbsd.mt: Remove.
9396 * config/sparc/nbsdaout.mh: New file.
9397 * config/sparc/nbsdaout.mt: New file.
9398 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9399 * config/sparc/nbsdelf.mt: New file.
9400 * config/sparc/nm-nbsdaout.h: New file.
9401 * config/sparc/nm-nbsdelf.h: Remove.
9402 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9403 * config/sparc/tm-nbsdaout.h: New file.
9404
257ce470
JT
94052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9406
9407 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9408 mipsnbsd-tdep.c
9409 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9410
76a6d5fe
JT
94112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9412
9413 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9414 shnbsd-nat.c.
9415 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9416
45888261
JT
94172002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9418
9419 * NEWS: Note new MIPS NetBSD native configuration.
9420 * configure.host (mips*-*-netbsd*): New host.
9421 * configure.tgt (mips*-*-netbsd*): New target.
9422 * mipsnbsd-nat.c: New file.
9423 * mipsnbsd-tdep.c: New file.
9424 * mipsnbsd-tdep.h: New file.
9425 * config/mips/nbsd.mh: New file.
9426 * config/mips/nbsd.mt: New file.
9427 * config/mips/nm-nbsd.h: New file.
9428 * config/mips/tm-nbsd.h: New file.
9429
70f80edf
JT
94302002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9431
9432 * Makefile.in (SFILES): Add osabi.c.
9433 (COMMON_OBS): Add osabi.o.
9434 (osabi.o): New dependency list.
9435 * osabi.c: New file.
9436 * osabi.h: New file.
9437 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9438
9439 * Makefile.in (alpha_tdep_h): Define and use instead of
9440 alpha-tdep.h.
9441 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9442 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9443 Remove.
9444 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9445 * alpha-tdep.h: Include osabi.h.
9446 (alpha_abi): Remove.
9447 (gdbarch_tdep): Use generic OS ABI framework.
9448 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9449 gdbarch_register_osabi.
9450 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9451 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9452 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9453
9454 * Makefile.in (sh_tdep_h): Add osabi.h.
9455 * sh-tdep.h (sh_osabi): Remove.
9456 (gdbarch_tdep): Use generic OS ABI framework.
9457 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9458 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9459 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9460 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9461
9462 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9463 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9464 gdbarch_register_osabi.
9465 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9466 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9467 (get_elfosabi): Rename to...
9468 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9469 ABI framework support routines.
9470 (arm_gdbarch_init): Use generic OS ABI framework.
9471 (arm_dump_tdep): Likewise.
9472 (_initialize_arm_tdep): Likewise.
9473 * arm-tdep.h: Include osabi.h.
9474 (arm_abi): Remove.
9475 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9476 osabi member.
9477 (arm_gdbarch_register_os_abi): Remove prototype.
9478 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9479 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9480
9481 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9482 * mips-tdep.c: Include osabi.h.
9483 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9484 OS ABI framework.
9485
d194345b
KH
94862002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9487
9488 * h8300-tdep.c: Fix formatting.
9489
70c6b0d1
EZ
94902002-05-20 Elena Zannoni <ezannoni@redhat.com>
9491
9492 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9493 printing vector registers.
9494
165b8e33
AC
94952002-05-19 Andrew Cagney <ac131313@redhat.com>
9496
9497 From Fernando Nasser:
9498 * remote.c (remote_async_open_1): Re-throw the exception when the
9499 connection fails.
9500 (remote_cisco_open): Ditto.
9501 (remote_open_1): Ditto.
9502
36918e70
AC
95032002-05-19 Andrew Cagney <ac131313@redhat.com>
9504
9505 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9506 (remote_start_remote): Add uiout parameter. Pass through to
9507 remote_start_remote_dummy.
9508 (remote_open_1): Use catch_exception instead of catch_errors.
9509 (remote_async_open_1): Ditto.
9510 (remote_cisco_open): Ditto.
9511
ae44c0c4
AC
95122002-05-19 Andrew Cagney <ac131313@redhat.com>
9513
9514 * remote.c (remote_start_remote): Replace PTR with void pointer.
9515 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9516 static.
9517
8efe637d
AC
95182002-05-18 Andrew Cagney <ac131313@redhat.com>
9519
9520 * gdb_indent.sh: Allow the script to be run in the sim directory.
9521
2f1b5984
MK
95222002-05-18 Mark Kettenis <kettenis@gnu.org>
9523
f0f625e2
MK
9524 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9525 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9526
2f1b5984
MK
9527 * corelow.c (core_open): Only call set_gdbarch_from_file if
9528 exec_bfd is NULL.
9529
fc974602
AV
95302002-05-17 Andrey Volkov <avolkov@transas.com>
9531
9532 * h8300-tdep.c: Add support of EXR register
9533 * config/h8300/tm-h8300.h: Ditto.
9534
906709f4
AV
95352002-05-17 Andrey Volkov <avolkov@transas.com>
9536
9537 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9538
6e591d68
AV
95392002-05-17 Andrey Volkov <avolkov@transas.com>
9540
9541 * h8300-tdep.c: Change literal regnums to REGNO.
9542
84f0252a
JB
95432002-05-17 Jim Blandy <jimb@redhat.com>
9544
e0e9281e
JB
9545 * NEWS: Note addition of macro support.
9546
84f0252a
JB
9547 Expand preprocessor macros in C expressions.
9548 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9549 (scan_macro_expansion, scanning_macro_expansion,
9550 finished_macro_expansion): New function declarations.
9551 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9552 variable declarations.
9553 * parser-defs.h (expression_context_pc): New declaration.
9554 * parse.c (expression_context_pc): New variable.
9555 (parse_exp_1): Set expression_context_pc, as well as
9556 expression_context_block.
9557 * c-exp.y (yylex): If we're not already reading the result of a
9558 macro expansion, try to macro-expand the next token. When we're
9559 done scanning a macro expansion, switch back to the mainline text.
9560 Commas and `if's in a macro's expansion don't terminate the input.
9561 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9562 (macro_original_text, macro_expanded_text,
9563 expression_macro_lookup_func, expression_macro_lookup_baton): New
9564 variables.
9565 (scan_macro_expansion, scanning_macro_expansion,
9566 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9567 c_preprocess_and_parse): New functions.
9568 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9569 c_preprocess_and_parse, instead of c_parse.
9570 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9571 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9572
1c509ca8
JR
9573Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9574
9575 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9576 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9577 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9578
2250ee0c
CV
95792002-05-17 Corinna Vinschen <vinschen@redhat.com>
9580
9581 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9582
ab3b8126
JT
95832002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9584
9585 * Makefile.in (sh_tdep_h): Define and use.
9586 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9587 register enum): Move to...
9588 * * sh-tdep.h: ...here.
9589 * sh-tdep.c: Include sh-tdep.h.
9590 * sh3-rom.c: Likewise.
9591 * shnbsd-tdep.c: Likewise.
9592
ed9d4749
MS
95932002-05-16 Michael Snyder <msnyder@redhat.com>
9594
9595 * arm-tdep.c: Spelling fix in comment.
9596
2e276125
JB
95972002-05-16 Jim Blandy <jimb@redhat.com>
9598
6821892e
JB
9599 Add commands for manually expanding macros and showing their
9600 definitions.
9601 * macrocmd.c, macroscope.c, macroscope.h: New files.
9602 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9603 (macroscope_h): New variable.
9604 (HFILES_NO_SRCDIR): Add macroscope.h.
9605 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9606 (macroscope.o, macrocmd.o): New rules.
9607
2e276125
JB
9608 Teach the Dwarf 2 reader to read macro information.
9609 * dwarf2read.c: #include "macrotab.h".
9610 (dwarf_macinfo_buffer): New variable.
9611 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9612 dwarf_macinfo_size.
9613 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9614 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9615 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9616 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9617 dwarf2_macro_spaces_in_definition): New complaints.
9618 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9619 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9620 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9621 the partial symbol table.
9622 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9623 from what's recorded in the partial symbol table.
9624 (read_file_scope): If the compilation unit has a
9625 `DW_AT_macro_info' attribute, read its macro information.
9626 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9627
2f53fe6c
DJ
96282002-05-16 Daniel Jacobowitz <drow@mvista.com>
9629
9630 Fix PR gdb/546
9631 * ser-tcp.c: Don't include <netinet/udp.h>.
9632
2be99286
SC
96332002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9634
9635 * MAINTAINERS: Update my email address.
9636
c9af212b 96372002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9638
9639 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9640 include file of the same name.
9641
bf5f1a52
CV
96422002-05-16 Corinna Vinschen <vinschen@redhat.com>
9643
9644 * configure.tgt: Mark v850 as multi-arched.
9645 * config/v850/tm-v850.h: Remove file.
9646 * config/v850/v850.mt: Eliminate TM_FILE.
9647
435e042a
CV
96482002-05-16 Corinna Vinschen <vinschen@redhat.com>
9649
9650 * v850-tdep.c: Full multi-arch.
9651 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9652 Define GDB_MULTI_ARCH to 2.
9653
9819c6c8
PM
96542002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9655
9656 * p-exp.y (current_type): New static variable.
9657 Carries the type of the expression at the position that is parsed.
9658 (push_current_type, pop_current_type): Two new functions. Used
9659 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9660 (search_field): New static variable. Set to one after parsing a point
9661 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9662 (FIELDNAME): New token. After a point only a token belonging to
9663 current_type type definition is allowed.
9664 (all over token rules): reset and change current_type according
9665 to rules.
9666 (exp '[' rule): insert implicit array index field if
9667 exp is a pascal string type.
9668
3a06899a
CV
96692002-05-16 Corinna Vinschen <vinschen@redhat.com>
9670
9671 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9672 frame info. Use frame_info's saved_regs instead of matching member
9673 in extra_frame_info throughout.
9674 (v850_frame_init_saved_regs): New function.
9675 (v850_init_extra_frame_info): Move most functionality into
9676 v850_frame_init_saved_regs().
9677 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9678 (v850_frame_find_saved_regs): Remove declaration.
9679 (FRAME_FIND_SAVED_REGS): Remove definition.
9680 (v850_frame_init_saved_regs): Add declaration.
9681 (FRAME_INIT_SAVED_REGS): Add definition.
9682
6ed14b0e
CV
96832002-05-16 Corinna Vinschen <vinschen@redhat.com>
9684
9685 * v850-tdep.c: Begin multi-arch'ing v850.
9686 (v850_target_architecture_hook): Remove function.
9687 (v850_gdbarch_init): New function. Add code previously in
9688 v850_target_architecture_hook().
9689 (_initialize_v850_tdep): Don't set target_architecture_hook.
9690 Call register_gdbarch_init() instead.
9691
42725910
DJ
96922002-05-16 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9695 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9696 (fixup_class_method_type): Likewise.
9697
99d9066e
JB
96982002-05-15 Jim Blandy <jimb@redhat.com>
9699
9700 Add macro structures to GDB's symbol tables. Nobody puts anything
9701 in them yet.
9702 * symtab.h (struct symtab): New member: `macro_table'.
9703 * buildsym.h (pending_macros): New global variable.
9704 * buildsym.c: #include "macrotab.h".
9705 (buildsym_init): Initialize `pending_macros'.
9706 (end_symtab): If we found macro information while reading a CU's
9707 debugging info, do build a symtab structure for it. Make the
9708 symtab point to the macro information, and clear the
9709 `pending_macros' pointer which held it while we were reading the
9710 debug info.
9711 (really_free_pendings): Free any pending macro table.
9712 * objfiles.h (struct objfile): New member: `macro_cache'.
9713 * objfiles.c (allocate_objfile): Set allocate and free functions
9714 for the macro cache's objstack.
9715 (free_objfile): Empty the macro cache's obstack.
9716 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9717 set new allocate and free functions for it.
9718 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9719 free functions for the macro cache's objstack. (Why is this
9720 function building its own objfile?)
9721 * symmisc.c (print_objfile_statistics): Print statistics on the
9722 macro bcache.
9723 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9724
c899585b
RE
97252002-05-15 Richard Earnshaw <rearnsha@arm.com>
9726
9727 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9728 (REGISTER_U_ADDR): Delete definition.
9729 (arm_register_u_addr): Delete declaration.
9730
a6cdd8c5
RE
97312002-05-15 Richard Earnshaw <rearnsha@arm.com>
9732
9733 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9734 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9735
c97dcfc7
AC
97362002-05-14 Andrew Cagney <ac131313@redhat.com>
9737
9738 * regcache.c (register_valid): Revise comments refering to "Not
9739 available" and "unavailable".
9740 * frame.c (frame_register_read): Ditto.
9741 * findvar.c (value_of_register): Ditto.
9742
93021b7d
AC
97432002-05-15 Andrew Cagney <cagney@redhat.com>
9744
9745 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9746 (remote-sim.o): Update dependencies.
9747 (d10v-tdep.o): Specify dependencies.
9748 (sim_d10v_h): Define.
9749
a86bc61c
JB
97502002-05-14 Jim Blandy <jimb@redhat.com>
9751
9752 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9753 * macrotab.c (macro_lookup_inclusion, find_definition,
9754 new_macro_table): Same.
9755
9756 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9757 not `! strcmp ()'. This is a dubious improvement.
9758 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9759
9760 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9761 although it's not necessary, to avoid a warning.
9762
2fdde8f8
DJ
97632002-05-14 Daniel Jacobowitz <drow@mvista.com>
9764
9765 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9766 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9767 TYPE_INSTANCE_FLAGS.
9768 (struct main_type): New.
9769 (struct type): Move most members to struct main_type. Change
9770 cv_type and as_type to new type_chain member. Add instance_flags.
9771 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9772 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9773 (finish_cv_type): Remove prototype.
9774 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9775 Set TYPE_CHAIN.
9776 (alloc_type_instance): New function.
9777 (smash_type): New function.
9778 (make_pointer_type, make_reference_type, make_function_type)
9779 (smash_to_member_type, smash_to_method_type): Call smash_type.
9780 (make_qualified_type): New function.
9781 (make_type_with_address_space): Call make_qualified_type.
9782 (make_cv_type): Likewise.
9783 (finish_cv_type): Remove unnecessary function.
9784 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9785 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9786 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9787 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9788 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9789 * hpread.c (hpread_read_struct_type): Likewise.
9790 * stabsread.c (read_struct_type): Likewise.
9791
843fedf4
EZ
97922002-05-14 Elena Zannoni <ezannoni@redhat.com>
9793
9794 * configure.tgt: Add a catch all sh* target, for cases like
9795 sh[2,3,4]-elf and sh-hms.
9796
05a6c72c
KS
97972002-05-14 Keith Seitz <keiths@redhat.com>
9798
9799 * event-loop.c (create_file_handler): Don't do anything but
9800 update data when we are given a fd which we are already
9801 monitoring.
9802
5d085aaf
ML
98032002-05-14 Michal Ludvig <mludvig@suse.cz>
9804
9805 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9806 (update_context): Use __func__ in warnings.
9807
9db8d71f
DJ
98082002-05-14 Daniel Jacobowitz <drow@mvista.com>
9809
9810 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9811 and tcp_close to net_open and net_close.
9812 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9813 using UDP if requested. Don't try to disable Nagle on UDP
9814 sockets.
9815 * remote.c (remote_serial_open): New function. Warn about UDP.
9816 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9817
5dbc6baa
EZ
98182002-05-13 Elena Zannoni <ezannoni@redhat.com>
9819
9820 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9821
cc3023f7
EZ
98222002-05-13 Elena Zannoni <ezannoni@redhat.com>
9823
9824 * configure.tgt: Remove sh-hms target.
9825 * MAINTAINERS: Don't list sh-hms as a separate target.
9826
ec2bcbe7
JB
98272002-05-13 Jim Blandy <jimb@redhat.com>
9828
9829 Add first preprocessor macro-expansion files.
9830 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9831 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9832 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9833 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9834 (COMMON_OBS): Add macrotab.o, macroexp.o.
9835 (macroexp.o, macrotab.o): New rules.
9836
6d531722
AC
98372002-05-13 Andrew Cagney <ac131313@redhat.com>
9838
9839 * config/m88k/tm-m88k.h: Update copyright.
9840 (m88k_target_write_pc): Declare
9841 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9842 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9843 (SHIFT_INST_REGS): Update definition.
9844 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9845 using old definition of TARGET_WRITE_PC.
9846 * regcache.c (generic_target_write_pc): Delete code handling
9847 NNPC_REGNUM.
9848 * gdbarch.sh (NNPC_REGNUM): Delete.
9849 * gdbarch.h, gdbarch.c: Regenerate.
9850
3e3f2739
RE
98512002-05-13 Richard Earnshaw <rearnsha@arm.com>
9852
9853 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9854 builtin reg number.
9855
0004e5a2
DJ
98562002-05-13 Daniel Jacobowitz <drow@mvista.com>
9857
9858 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9859 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9860 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9861 access macros.
9862 * c-typeprint.c (cp_type_print_method_args): Likewise.
9863 (c_type_print_args): Likewise.
9864 * d10v-tdep.c (d10v_push_arguments): Likewise.
9865 (d10v_extract_return_value): Likewise.
9866 * expprint.c (print_subexp): Likewise.
9867 * gdbtypes.c (lookup_primitive_typename): Likewise.
9868 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9869 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9870 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9871 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9872 (TYPE_VECTOR): Likewise.
9873 * hpread.c (hpread_read_struct_type)
9874 (fix_static_member_physnames, fixup_class_method_type)
9875 (hpread_type_lookup): Likewise.
9876 * mdebugread.c (parse_symbol, parse_type): Likewise.
9877 * p-lang.c (is_pascal_string_type): Likewise.
9878 * valops.c (hand_function_call): Likewise.
9879 * x86-64-tdep.c (classify_argument): Likewise.
9880
9881 * hpread.c (hpread_read_function_type)
9882 (hpread_read_doc_function_type): Call replace_type.
9883 * dstread.c (create_new_type): Delete.
9884 (decode_dst_structure, process_dst_function): Call alloc_type.
9885 Use type access macros.
9886
dff95cc7
MK
98872002-05-12 Mark Kettenis <kettenis@gnu.org>
9888
9889 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9890 the're not supported by the current architecture.
9891 (i387_fill_fxsave): Likewise.
9892
bbcd32ad
FF
98932002-05-12 Fred Fish <fnf@redhat.com>
9894
9895 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9896 sect_index_xxx members to index the first slot in section_offsets
9897 if all of the section_offsets are zero.
9898
89cf4787
MK
98992002-05-12 Mark Kettenis <kettenis@gnu.org>
9900
9901 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9902 checked in with last change.
9903
1f77ffc5
MK
99042002-05-12 Mark Kettenis <kettenis@gnu.org>
9905
9906 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9907 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9908 config.sub.
9909
89b8b4a9
DJ
99102002-05-12 Daniel Jacobowitz <drow@mvista.com>
9911
9912 * Makefile.in: Update dependencies.
9913
14a5e767
AC
99142002-05-11 Andrew Cagney <ac131313@redhat.com>
9915
9916 * language.c (local_hex_string_custom): Simplify. Do not depend
9917 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9918
9919 * memattr.c (mem_info_command): Replace calls to
9920 longest_local_hex_string and longest_local_hex_string_custom.
9921 * buildsym.c (make_blockvector): Ditto.
9922 * solib.c (info_sharedlibrary_command): Ditto.
9923 * tracepoint.c (tracepoints_info): Ditto.
9924 * symtab.c (print_msymbol_info): Ditto.
9925
9926 * language.c (local_hex_string): Delete.
9927 (local_hex_string_custom): Delete.
9928 (longest_local_hex_string): Rename to local_hex_string.
9929 (longest_local_hex_string_custom): Rename to
9930 local_hex_string_custom.
9931 * language.h (local_hex_string): Change parameter type to LONGEST.
9932 (local_hex_string_custom): Ditto.
9933 (longest_local_hex_string): Delete declaration.
9934 (longest_local_hex_string_custom): Ditto.
9935
9936 * solib.c: Update copyright.
9937 * memattr.c: Update copyright.
9938
13d01224
AC
99392002-05-11 Andrew Cagney <ac131313@redhat.com>
9940
9941 * arch-utils.h (legacy_register_to_value): Declare.
9942 (legacy_value_to_register): Declare.
9943 (legacy_convert_register_p): Declare.
9944 * arch-utils.c (legacy_register_to_value): New function.
9945 (legacy_value_to_register): New function.
9946 (legacy_convert_register_p): New function.
9947
9948 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9949 (VALUE_TO_REGISTER): Define.
9950 (CONVERT_REGISTER_P): Define.
9951 * gdbarch.h, gdbarch.c: Regenerate.
9952
9953 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9954 VALUE_TO_REGISTER.
9955 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9956 CONVERT_REGISTER_P.
9957
4a1970e4
DJ
99582005-05-11 Daniel Jacobowitz <drow@mvista.com>
9959 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9960
9961 * Makefile.in: Update dependencies for valops.c.
9962 * valops.c: Include "gdb_assert.h".
9963 (typecmp): Skip THIS parameter to methods.
9964 (find_method_list): Remove static_memfuncp argument,
9965 update callers. Check for stub methods.
9966 (find_value_oload_method_list): Don't set *static_memfuncp.
9967 (find_overload_match): Don't check for stub methods. Assert
9968 that methods are not stubbed. Handle static methods.
9969 (value_find_oload_method_list): Remove static_memfuncp argument.
9970 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9971 to the argument list for static stub methods.
9972 * value.h (value_find_oload_method_list): Update prototype.
9973
b2e75d78
AC
99742002-05-11 Andrew Cagney <ac131313@redhat.com>
9975
9976 * arch-utils.h (generic_register_size): Declare.
9977 (generic_register_raw_size, generic_register_virtual_size): Delete
9978 declarations.
9979 * arch-utils.c (generic_register_raw_size): Delete.
9980 (generic_register_size): New function.
9981 (generic_register_virtual_size): Delete.
9982
9983 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9984 default generic_register_size.
9985 * gdbarch.h, gdbarch.c: Re-generate.
9986
9987 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9988 register_virtual_size.
9989 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9990 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9991
451fbdda
AC
99922002-05-11 Andrew Cagney <ac131313@redhat.com>
9993
9994 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9995 * gdbarch.h, gdbarch.c: Regenerate.
9996 * gnu-v3-abi.c: Update copyright.
9997 (vtable_address_point_offset): Update.
9998 (gnuv3_rtti_type): Update.
9999 (gnuv3_baseclass_offset): Update.
10000 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10001 (init_fetch_link_map_offsets): Update.
10002 * remote.c (get_remote_state): Update.
10003
6d2f5cea
DJ
100042002-05-11 Daniel Jacobowitz <drow@mvista.com>
10005
10006 * TODO: Remove value_headof/value_from_vtable_info comment.
10007 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10008 * values.c (value_headof, value_from_vtable_info): Delete.
10009 * value.h (value_from_vtable_info): Delete prototype.
10010
d2324da4
AC
100112002-05-11 Andrew Cagney <ac131313@redhat.com>
10012
10013 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10014 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10015 $(gdb_regex_h).
10016 (gdb_assert_h): Define.
10017 (gdb_wait_h): Define.
10018 (gdb_regex_h): Define.
10019
5c717440
DJ
100202002-05-11 Daniel Jacobowitz <drow@mvista.com>
10021
10022 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10023 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10024
6c7861b3
JT
100252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10026
10027 * nbsd-tdep.c: Fix comment.
10028
ea5bc2a6
JT
100292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10030
10031 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10032 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10033 (nbsd-tdep.o): New dependency list.
10034 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10035 nbsd-tdep.h.
10036 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10037 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10038 * nbsd-tdep.c: New file.
10039 * nbsd-tdep.h: New file.
10040 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10041 nbsd-tdep.h.
10042 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10043 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10044 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10045 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10046
b28da865
JT
100472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10048
10049 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10050 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10051 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10052 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10053 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10054 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10055
4b8ff1fa
JT
100562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10057
10058 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10059 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10060 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10061 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10062 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10063 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10064 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10065
dfe6eb1f
JT
100662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10067
10068 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10069 fetch_elfcore_registers to...
10070 * i386nbsd-tdep.c: ...here.
10071 (i386nbsd_use_struct_convention): Rename to...
10072 (i386nbsd_aout_use_struct_convention): ...this.
10073 (i386nbsd_supply_reg): New function.
10074 (i386nbsd_fill_reg): New function.
10075 (fetch_core_registers): Use i386nbsd_supply_reg.
10076 (fetch_elfcore_registers): Likewise.
10077 (_initialize_i386nbsd_tdep): New function.
10078 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10079 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10080 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10081 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10082 (i386nbsd_aout_use_struct_convention): ...this.
10083
20cb8cda
JT
100842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10085
10086 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10087 (store_inferior_registers): Use shnbsd_fill_reg.
10088 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10089 sh_nbsd_supply_register): Collapse into...
10090 (shnbsd_supply_reg): ...this.
10091 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10092 (shnbsd_fill_reg): ...this.
10093 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10094 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10095 (fetch_core_registers): Use shnbsd_supply_reg.
10096 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10097 (sh_nbsd_core_fns): Rename to...
10098 (shnbsd_core_fns): ...this.
10099 (sh_nbsd_elfcore_fns): Rename to...
10100 (shnbsd_elfcore_fns): ...this.
10101 (sh_nbsd_init_abi): Rename to...
10102 (shnbsd_init_abi): ...this.
10103 (_initialize_sh_nbsd_tdep): Rename to...
10104 (_initialize_shnbsd_tdep): ...this.
10105 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10106 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10107 sh_nbsd_fill_register): Remove prototypes.
10108 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10109
e750d25e
JT
101102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10111
10112 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10113 (i387-nat.o): Delete dependency list.
10114 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10115 (x86-64-linux-nat.o): Likewise.
10116 * i387-nat.c: Delete file, moving contents to...
10117 * i387-tdep.c: ...here.
10118 * i387-nat.h: Rename...
10119 * i387-tdep.h: ...to this.
10120 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10121 * i386-linux-nat.c: Likewise.
10122 * i386bsd-nat.c: Likewise.
10123 * i386gnu-nat.c: Likewise.
10124 * i386nbsd-nat.c: Likewise.
10125 * i386v4-nat.c: Likewise.
10126 * x86-64-linux-nat.c: Likewise.
10127 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10128 * config/i386/go32.mh (NATDEPFILES): Likewise.
10129 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10130 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10131 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10132 * config/i386/linux.mh (NATDEPFILES): Likewise.
10133 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10134 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10135 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10136 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10137
1aee598a
JT
101382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10139
10140 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10141 (alphanbsd-nat.o): Remove dependency list.
10142 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10143 * alphanbsd-nat.c: Delete. Contents moved to...
10144 * alphanbsd-tdep.c: ...here.
10145 (_initialize_alphanbsd_tdep): Register core functions.
10146 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10147
12bcb0fe
JT
101482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10149
10150 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10151 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10152 (alphanbsd-nat.o): Likewise.
10153 (alphabsd-tdep.o): New dependency list.
10154 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10155 (fill_gregset): Use alphabsd_fill_reg.
10156 (supply_fpregset): Use alphabsd_supply_fpreg.
10157 (fill_fpregset): Use alphabsd_fill_fpreg.
10158 (fetch_inferior_registers): Use struct reg and struct fpreg
10159 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10160 and alphabsd_supply_fpreg.
10161 (store_inferior_registers): Use struct reg and struct fpreg
10162 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10163 and alphabsd_fill_fpreg.
10164 * alphabsd-tdep.c: New file.
10165 * alphabsd-tdep.h: New file.
10166 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10167 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10168 alphabsd_supply_fpreg.
10169 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10170 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10171
361d1df0
EC
101722002-05-11 Eric Christopher <echristo@redhat.com>
10173
10174 * mips-tdep.c (mips_double_register_type): Fix thinko.
10175 (mips_single_register_type): Ditto.
10176 * MAINTAINERS: Add self.
10177
92dd7cee
MK
101782002-05-11 Mark Kettenis <kettenis@gnu.org>
10179
10180 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10181 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10182 right thing on architectures with different endianness and/or
10183 integer sizes.
10184
e27da16d
JT
101852002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10186
10187 From Christian Limpach <chris@Pin.LU>
10188 * configure.in: Change sed expression which comments out
10189 NATDEPFILES to also comment out continuation lines.
10190 * configure: Regenerate.
10191
ddde02bd
EZ
101922002-05-10 Elena Zannoni <ezannoni@redhat.com>
10193
10194 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10195 big patch.
10196
1c922164
EZ
101972002-05-10 Elena Zannoni <ezannoni@redhat.com>
10198
10199 * sh-tdep.c: Include correct file.
10200
283150cd
EZ
102012002-05-10 Elena Zannoni <ezannoni@redhat.com>
10202
10203 New support for sh64-elf (sh5) target.
10204
10205 * configure.tgt: For sh64-elf target, default to sh-elf.
10206
10207 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10208 (struct gdbarch_tdep): Add new fields for new registers and ABI
10209 info.
361d1df0 10210
283150cd
EZ
10211 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10212 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10213 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10214 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10215 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10216 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10217 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10218 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10219 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10220 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10221 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10222 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10223 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10224 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10225 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10226 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10227 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10228 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10229 sign_extend, sh64_nofp_frame_init_saved_regs,
10230 sh64_init_extra_frame_info, sh64_get_saved_register,
10231 sh64_extract_struct_value_address, sh64_pop_frame,
10232 sh64_push_arguments, sh64_extract_return_value,
10233 sh64_store_return_value, sh64_show_media_regs,
10234 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10235 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10236 sh_sh64_register_virtual_type,
10237 sh_sh64_register_convert_to_virtual,
10238 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10239 sh64_register_read, sh64_pseudo_register_write,
10240 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10241 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10242 sh64_do_pseudo_register, sh_compact_do_registers_info,
10243 sh64_do_registers_info, sh_gdbarch_init): New functions.
10244
3117ed25
EZ
102452002-05-10 Elena Zannoni <ezannoni@redhat.com>
10246
10247 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10248
2654e6d4
DJ
102492002-05-10 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * linespec.c (decode_line_1): Check for a double quote after
10252 a filename correctly.
10253
9ab3e532
JB
102542002-05-10 Jim Blandy <jimb@redhat.com>
10255
10256 Properly track the size of the current objfile's .debug_line section.
10257 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10258 (DWARF_LINE_SIZE): New macro.
10259 (dwarf2_build_psymtabs_hard): Record the line section's size in
10260 the partial symbol table.
10261 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10262 symbol table.
10263
126fa72d
PS
102642002-05-10 Petr Sorfa <petrs@caldera.com>
10265
10266 * ia64-tdep.c: Handle breakpoints on L instruction type
10267 in MLX instruction bundle by moving the breakpoint to
10268 the third slot (X instruction type) as L holds only data.
10269
1f077a3e
KB
102702002-05-10 Kevin Buettner <kevinb@redhat.com>
10271
10272 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10273 (process_one_symbol): Complain about discarding local symbols
10274 due to a misplaced N_LBRAC entry.
10275
8120c9d5 102762002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
10277
10278 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
10279 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10280 decrease the depth we are at, in the case of templates.
361d1df0 10281
67b2c998
DJ
102822002-05-09 Daniel Jacobowitz <drow@mvista.com>
10283
10284 * mips-tdep.c (mips_float_register_type): New function.
10285 (mips_double_register_type): New function.
10286 (mips_print_register): Use them.
10287 (do_fp_register_row): Likewise.
10288
fd326606
DJ
102892002-05-09 Daniel Jacobowitz <drow@mvista.com>
10290
6609d9af 10291 * signals/signals.c (signals): Remove conditional compilation around
fd326606 10292 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 10293 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 10294
bef35864
MS
102952002-05-09 Michael Snyder <msnyder@redhat.com>
10296
10297 * remote-rdp.c (remote_rdp_can_run): Remove.
10298
c55a3f73
TT
102992002-05-09 Tom Tromey <tromey@redhat.com>
10300
10301 * jv-valprint.c (java_val_print): Handle `char' as a special case
10302 of TYPE_CODE_INT.
10303
b8d5e71d
MS
103042002-05-09 Michael Snyder <msnyder@redhat.com>
10305
10306 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10307 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 10308 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 10309 str r(0123),[sp,#nn].
361d1df0 10310 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
10311 order-independent by placing it in a loop.
10312
e2cd42dd
MS
103132002-05-06 Michael Snyder <msnyder@redhat.com>
10314
10315 * stabsread.c (read_type): Add recognition for new attribute:
10316 "@V;" means that an array type is actually a vector.
10317 This is analogous to the vector flag that's been added to dwarf2.
10318
3ce1502b
MK
103192002-05-09 Mark Kettenis <kettenis@gnu.org>
10320
10321 * i386-tdep.h (i386_abi): New enum.
10322 (struct gdbarch_tdep): Replace os_ident member with abi.
10323 (i386_gdbarch_register_os_abi): New prototype.
10324 * i386-tdep.c (i386_abi_names): New array.
10325 (process_note_abi_tag_sections): Removed.
10326 (process_note_sections): New function.
10327 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10328 (struct i386_abi_handler): New struct.
10329 (i386_abi_handler_list): New variable.
10330 (i386_gdbarch_register_os_abi): New function.
10331 (i386_gdbarch_init): Adapt for the changes given above.
10332
084c156a
DJ
103332002-05-08 Daniel Jacobowitz <drow@mvista.com>
10334
10335 * gregset.h: Say "GNU/Linux".
10336
6599f021
EZ
103372002-05-08 Elena Zannoni <ezannoni@redhat.com>
10338
10339 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10340 (build_gdbtypes): Build builtin_type_v2_float.
10341 (_initialize_gdbtypes): Register new builtin type.
10342
40af4b0c
AC
103432002-05-08 Andrew Cagney <ac131313@redhat.com>
10344
10345 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10346 (clear_gdbarch_swap): New function.
10347 (initialize_non_multiarch): Call.
10348 (gdbarch_update_p): Before calling init(), swap out and clear the
10349 existing architecture.
10350 * gdbarch.c: Regenerate.
10351
4fe84f46
JT
103522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10353
10354 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10355 alphanbsd-tdep.c.
10356
4015edd1
JT
103572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10358
10359 * sh-nbsd-nat.c: Rename to...
10360 * shnbsd-nat.c: ...this.
10361 * sh-nbsd-tdep.c: Rename to...
10362 * shnbsd-tdep.c: ...this.
10363 * sh-nbsd-tdep.h: Rename to...
10364 * shnbsd-tdep.h: ...this.
10365 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10366 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10367
0e2bd219
RE
103682002-05-08 Richard Earnshaw <rearnsha@arm.com>
10369
10370 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10371 concatenation for command help messages.
10372
13a38d45
JT
103732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10374
10375 * NEWS: Note new sh*-*-netbsdelf* configuration.
10376 * configure.host: Set gdb_host_cpu to sh for all sh*.
10377 (sh*-*-netbsdelf*): New host.
10378 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10379 (sh*-*-netbsdelf*): New target.
10380 * sh-nbsd-nat.c: New file.
10381 * sh-nbsd-tdep.c: New file.
10382 * sh-nbsd-tdep.h: New file.
10383 * config/sh/nbsd.mh: New file.
10384 * config/sh/nbsd.mt: New file.
10385 * config/sh/nm-nbsd.h: New file.
10386 * config/sh/tm-nbsd.h: New file.
10387
d658f924
JT
103882002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10389
10390 * sh-tdep.c (sh_osabi_names): Declare.
10391 (process_note_abi_tag_sections): New function.
10392 (get_elfosabi): Ditto.
10393 (sh_gdbarch_register_os_abi): Ditto.
10394 (sh_dump_tdep): Ditto.
10395 _initialize_sh_tdep): Use gdbarch_register to register
10396 sh_gdbarch_init and sh_dump_tdep.
10397 * config/sh/tm-sh.h (sh_osabi): Declare.
10398 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10399
848cfffb
AC
104002002-05-07 Andrew Cagney <ac131313@redhat.com>
10401
10402 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10403 (thumb_scan_prologue): Ditto.
10404 (arm_find_callers_reg): Ditto.
10405 (arm_frame_chain): Ditto.
10406 (arm_init_extra_frame_info): Ditto.
10407 (arm_frame_saved_pc): Ditto.
10408 (arm_pop_frame): Ditto.
10409 (arm_push_return_address): New function.
10410 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10411 call_dummy_location, call_dummy_breakpoint_offset_p,
10412 call_dummy_breakpoint_offset, call_dummy_p,
10413 call_dummy_stack_adjust_p, call_dummy_words,
10414 sizeof_call_dummy_words, call_dummy_start_offset,
10415 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10416 call_dummy_address, push_return_address and push_dummy_frame for
10417 generic dummy frames.
10418
e7d717c0
JT
104192002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10420
10421 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10422 size computation for alloca.
10423 (sh_fp_frame_init_saved_regs): Likewise.
10424
7bbcf283
RE
104252002-05-07 Richard Earnshaw <rearnsha@arm.com>
10426
10427 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10428 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 10429 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
10430 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10431 * remote-rdp.c (remote_rdp_fetch_register): Use
10432 ARM_MAX_REGISTER_RAW_SIZE.
10433 (remote_rdp_store_register): Likewise.
10434
4657573b
ML
104352002-05-07 Michal Ludvig <mludvig@suse.cz>
10436
361d1df0 10437 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
10438 added default labels to switch {} statements.
10439 * x86-64-tdep.c: Ditto.
10440 * x86-64-linux-nat.c: Ditto.
10441
010f3b2f
JT
104422002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10443
10444 * solib.h: Protect against multiple inclusion.
10445
debd256d
JB
104462002-05-06 Jim Blandy <jimb@redhat.com>
10447
9ab3e532
JB
10448 Add first preprocessor macro-expansion files.
10449 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10450 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10451 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10452 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10453 (COMMON_OBS): Add macrotab.o, macroexp.o.
10454 (macroexp.o, macrotab.o): New rules.
10455
debd256d
JB
10456 Separate the job of reading the line number info statement program
10457 header (...expialidocious) out into its own function.
10458 * dwarf2read.c (struct line_head, struct filenames, struct
10459 directories): Replace with...
10460 (struct line_header): New structure, containing the full
10461 contents of the statement program header, including the
10462 include directory and file name tables.
10463 (read_file_scope): If we have line number info, instead of just
10464 calling dwarf_decode_lines to do all the work, call
10465 dwarf_decode_line_header first to get a `struct line_header'
10466 containing the data in the statement program header, and then
10467 pass that to dwarf_decode_lines, which will pick up where that
10468 left off. Be sure to clean up the `struct line_header' object.
10469 (dwarf_decode_line_header, free_line_header, add_include_dir,
10470 add_file_name): New functions.
10471 (dwarf_decode_lines): Move all the code to read the statement
10472 program header into dwarf_decode_line_header. Take the line
10473 header it built as the first argument, instead of the offset to
10474 the compilation unit's line number info. Use the new `struct
10475 line_header' type instead of the old structures. No need to do
10476 cleanups here now, since we don't allocate anything.
10477 (dwarf2_statement_list_fits_in_line_number_section,
10478 dwarf2_line_header_too_long): New complaints.
10479
ac3aafc7
EZ
104802002-05-06 Elena Zannoni <ezannoni@redhat.com>
10481
10482 * gdbtypes.c (init_vector_type): New function.
10483 (build_builtin_type_vec128): Simplify the representation of SIMD
10484 registers.
10485 (build_gdbtypes): Initialize new builtin vector types.
10486 (_initialize_gdbtypes): Register new vector types with gdbarch.
10487 (builtin_type_v4_float, builtin_type_v4_int32,
10488 builtin_type_v8_int16, builtin_type_v16_int8,
10489 builtin_type_v2_int32, builtin_type_v4_int16,
10490 builtin_type_v8_int8): New (renamed) SIMD types.
10491
13e49980
MK
104922002-05-06 Mark Kettenis <kettenis@gnu.org>
10493
10494 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10495 (i387_fill_fxsave): Likewise.
10496
997b20b8
AO
104972002-05-05 Alexandre Oliva <aoliva@redhat.com>
10498
10499 * alpha-tdep.c (alpha_extract_return_value): Don't use
10500 non-constant array size in prototype.
10501
535c96ce
AC
105022002-05-04 Andrew Cagney <ac131313@redhat.com>
10503
10504 From Brian Taylor <briant at model dot com>:
10505 * ui-out.c (ui_out_field_core_addr): Use the function
10506 longest_local_hex_string_custom'to format addresses > 32 bits
10507 wide.
10508
10509 * ui-out.c (ui_out_field_core_addr): Update comment.
10510
bedfa57b
AC
105112002-05-04 Andrew Cagney <ac131313@redhat.com>
10512
10513 * stack.c (select_and_print_frame): Make static. Delete the
10514 parameter `level'.
10515 (func_command): Update call.
10516 (select_frame_command): Delete code computing the frame level.
10517 * frame.h (select_and_print_frame): Delete declaration.
10518
f621c63e
AC
105192002-05-04 Andrew Cagney <ac131313@redhat.com>
10520
10521 * sparc-tdep.c (sparc_get_saved_register): Comment why
10522 get_prev_frame call is safe.
10523
0f7d239c
AC
105242002-05-04 Andrew Cagney <ac131313@redhat.com>
10525
10526 * frame.h (select_frame): Delete level parameter.
10527 * stack.c (select_frame): Update. Use frame_relative_level to
10528 obtain the frame's level.
10529 (select_and_print_frame): Update call.
10530 (select_frame_command): Ditto.
10531 (up_silently_base): Ditto.
10532 (down_silently_base): Ditto.
10533 * ocd.c (ocd_start_remote): Ditto.
10534 * remote-rdp.c (remote_rdp_open): Ditto.
10535 * remote-mips.c (mips_initialize): Ditto.
10536 (common_open): Ditto.
10537 * remote-e7000.c (e7000_start_remote): Ditto.
10538 * m3-nat.c (select_thread): Ditto.
10539 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10540 (child_get_current_exception_event): Ditto.
10541 * varobj.c (varobj_create): Ditto.
10542 (varobj_update): Ditto.
10543 (c_value_of_root): Ditto.
10544 * tracepoint.c (finish_tfind_command): Ditto.
10545 * corelow.c (core_open): Ditto.
10546 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10547 * thread.c (info_threads_command): Ditto.
10548 (switch_to_thread): Ditto.
10549 * infrun.c (normal_stop): Ditto.
10550 (restore_selected_frame): Ditto.
10551 (restore_inferior_status): Ditto.
10552 * breakpoint.c (insert_breakpoints): Ditto.
10553 (watchpoint_check): Ditto.
10554 (bpstat_stop_status): Ditto.
10555 (do_enable_breakpoint): Ditto.
10556 * blockframe.c (flush_cached_frames): Ditto.
10557 (reinit_frame_cache): Ditto.
10558
71d6c7b1
AC
105592002-05-04 Andrew Cagney <ac131313@redhat.com>
10560
10561 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10562 maintainer.
10563
cda6c68a
JB
105642002-05-04 Jim Blandy <jimb@redhat.com>
10565
10566 * gdbtypes.c (replace_type): Doc fix.
10567
5c1c87f0
AC
105682002-05-04 Andrew Cagney <ac131313@redhat.com>
10569
10570 * valprint.c (strcat_longest): Delete commented out function.
10571 Update copyright.
10572
cd9bfe15
AC
105732002-05-04 Andrew Cagney <ac131313@redhat.com>
10574
10575 * MAINTAINERS: Mark a29k as deleted.
10576 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10577 Move new configurations to the top.
10578 * configure.tgt: Remove a29k.
10579 * config/a29k/tm-vx29k.h: Delete.
10580 * config/a29k/vx29k.mt: Delete.
10581 * config/a29k/tm-a29k.h: Delete.
10582 * config/a29k/a29k-udi.mt: Delete.
10583 * config/a29k/a29k.mt: Delete.
10584 * a29k-tdep.c: Delete.
10585 * remote-udi.c: Delete.
10586 * remote-mm.c: Delete.
10587 * remote-eb.c: Delete.
10588 * remote-adapt.c: Delete.
10589 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10590 * config/s390/s390x.mt: Ditto.
10591 * config/s390/s390.mt: Ditto.
10592 * config/sparc/sparclynx.mh: Ditto.
10593 * config/sparc/linux.mh: Ditto.
10594 * config/pa/hppaosf.mh: Ditto.
10595 * config/pa/hppabsd.mh: Ditto.
10596 * config/ns32k/nbsd.mt: Ditto.
10597 * config/mips/vr5000.mt: Ditto.
10598 * config/m68k/sun3os4.mh: Ditto.
10599 * config/m68k/nbsd.mt: Ditto.
10600 * config/m68k/m68klynx.mh: Ditto.
10601 * config/m32r/m32r.mt: Ditto.
10602 * config/i386/x86-64linux.mt: Ditto.
10603 * config/i386/nbsdelf.mt: Ditto.
10604 * config/i386/nbsd.mt: Ditto.
10605 * config/i386/i386lynx.mh: Ditto.
10606
bf0c5130
AC
106072002-05-04 Andrew Cagney <ac131313@redhat.com>
10608
10609 * target.c (debug_print_register): New function. Handle oversize
10610 registers.
10611 (debug_to_fetch_registers): Call.
10612 (debug_to_store_registers): Call.
10613
2ae1c2d2
JB
106142002-05-03 Jim Blandy <jimb@redhat.com>
10615
13a393b0
JB
10616 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10617 (read_type): Doc fix.
10618 * gdbtypes.c (replace_type): Doc fix.
10619
2ae1c2d2
JB
10620 * stabsread.c (multiply_defined_struct): New complaint.
10621 (read_struct_type): If the type we were passed isn't empty, or
10622 incomplete, don't read the new struct type into it; complain,
10623 and return the original type unchanged. Take a new `type_code'
10624 argument, which is the type code for the new type.
10625 (read_type): Rather than storing the type's type code here, pass
10626 it as an argument to read_struct_type, and let that take care of
10627 storing it. That way, we don't overwrite the original type code,
10628 so read_struct_type can use it to decide whether we're overwriting
10629 something we shouldn't.
10630 (complain_about_struct_wipeout): New function.
10631
8de9bdc4
AC
106322002-05-03 Andrew Cagney <ac131313@redhat.com>
10633
10634 * gdbarch.sh: Assert that gdbarch is non-NULL.
10635 * gdbarch.c: Regenerate.
10636
f773fdbb
JM
106372002-05-03 Jason Merrill <jason@redhat.com>
10638
10639 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10640 and return NULL.
10641
0e04a514
ML
106422002-05-03 Michal Ludvig <mludvig@suse.cz>
10643
10644 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10645 (x86_64_dwarf2gdb_regno_map_length),
10646 (x86_64_dwarf2_reg_to_regnum): Added.
10647 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10648 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10649 (_initialize_x86_64_tdep): Synced with the change above.
10650 (x86_64_skip_prologue): Reformulated message.
10651
065432a8
PM
106522002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10653
10654 * f-exp.y: Also use new prev_lexptr variable
10655 to improve error reporting. Based on Michael Snyder
10656 2002-04-24 dated patch to c-exp.y.
10657 * jv-exp.y: Likewise.
10658 * m2-exp.y: Likewise.
10659
a3162708
EZ
106602002-05-02 Elena Zannoni <ezannoni@redhat.com>
10661
10662 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10663 we are dealing with vectors.
10664
03620c38
PM
106652002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10666
10667 * config/m68k/tm-nbsd.h: Obvious fix,
10668 correct machine name.
10669
6604db2e
PM
106702002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10671
10672 * p-typeprint.c (pascal_type_print_base): Add support
10673 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10674
0906b739
PM
106752002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10676
10677 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10678 for fondamental pascal 'char' type.
10679
e2625b33
PM
106802002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10681
10682 * p-lang.h (is_pascal_string_type): Declaration changed,
10683 new sixth argument of type char ** added.
361d1df0 10684 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10685 changed. Args length_pos, length_size, string_pos, char_size
10686 can now be NULL. New argument arrayname set to the field
10687 name of the char array. Return value set to char array
10688 field index plus one.
361d1df0 10689 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10690 is_pascal_string_type function.
10691
cf17c188
AC
106922002-05-02 Andrew Cagney <cagney@redhat.com>
10693
10694 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10695 <cagney@redhat.com> change.
10696 * gdbarch.c: Regenerate.
10697
52bca491
AC
106982002-05-02 Andrew Cagney <cagney@redhat.com>
10699
10700 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10701 before probing for a new one. Detect errorenous gdbarch_init
10702 functions.
10703 * gdbarch.c: Regenerate.
10704
d5e72505
AC
107052002-05-01 Andrew Cagney <cagney@redhat.com>
10706
10707 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10708 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10709 * config/v850/tm-v850.h: Ditto. Update copyright.
10710
af566d9f
AC
107112002-04-30 Andrew Cagney <ac131313@redhat.com>
10712
10713 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10714 current_gdbarch.
10715
880d85fa
MS
107162002-04-30 Michael Snyder <msnyder@redhat.com>
10717
94c30b78
MS
10718 * arm-tdep.c: Whitespace clean-ups.
10719 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10720 should have been removed as part of 4/24 change.
10721
6f5987a6
KB
107222002-04-30 Kevin Buettner <kevinb@redhat.com>
10723
10724 * rs6000-tdep.c: Added comment describing how fpscr register
10725 numbers were chosen.
10726
1a113c93
MS
107272002-04-30 Michael Snyder <msnyder@redhat.com>
10728
10729 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10730
9a6f53fe
EZ
107312002-04-29 Elena Zannoni <ezannoni@redhat.com>
10732
10733 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10734 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10735 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10736
11ed25ac
KB
107372002-04-29 Kevin Buettner <kevinb@redhat.com>
10738
10739 From Louis Hamilton <hamilton@redhat.com>:
10740 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10741 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10742 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10743 not bfd-private xcoff data, to determine wordsize.
10744 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10745
ae232405
AC
107462002-04-29 Andrew Cagney <ac131313@redhat.com>
10747
10748 GDB 5.2 released from 5.2 branch.
10749
91fd20f7
ML
107502002-04-29 Michal Ludvig <mludvig@suse.cz>
10751
10752 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10753 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10754 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10755
2dc5091b
EZ
107562002-04-29 Elena Zannoni <ezannoni@redhat.com>
10757
10758 * rs6000-tdep.c (rs6000_extract_return_value,
10759 rs6000_store_return_value): Handle returning vectors.
10760 (rs6000_gdbarch_init): Use
10761 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10762 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10763 New function.
10764 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10765 vectors.
10766 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10767 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10768
2b9848d8
PM
107692002-04-24 Pierre Muller <ics.u-strasbg.fr>
10770
10771 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10772 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10773 with fprintf_unfiltered (gdb_stderr,...).
10774
f8d17dc5
PM
107752002-04-24 Pierre Muller <ics.u-strasbg.fr>
10776
10777 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10778 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10779 Replace fprintf (stderr,...
10780 with fprintf_unfiltered (gdb_stderr,....
10781 * remote-es.c: Likewise.
10782 * remote-os9k.c: Likewise.
10783 * remote-st.c: Likewise.
10784
2f2f1ad1
AS
107852002-04-28 Andreas Schwab <schwab@suse.de>
10786
10787 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10788 linux-proc.o and gcore.o.
10789
b6779aa2
AC
107902002-04-26 Michal Ludvig <mludvig@suse.cz>
10791
10792 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10793 code without frame pointers.
10794
7e57f5f4
AC
107952002-04-26 Andrew Cagney <ac131313@redhat.com>
10796
10797 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10798 ON_STACK is needed.
10799
2ceb85d0
BE
108002002-04-26 Ben Elliston <bje@redhat.com>
10801
10802 * target.c (do_xfer_memory): Correct reference to the new option
10803 "trust-readonly-sections".
10804
f5f8a009
EZ
108052002-04-26 Elena Zannoni <ezannoni@redhat.com>
10806
10807 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10808 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10809 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10810 vectors.
10811 (read_array_type): Record the fact that this array type is really a
10812 vector (i.e. are passed in by value).
10813
5868c862
JT
108142002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10815
10816 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10817 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10818 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10819 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10820 * alpha-linux-tdep.c: Include frame.h.
10821 (alpha_linux_sigcontext_addr): New function.
10822 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10823 alpha_linux_sigcontext_addr.
10824 * alpha-osf1-tdep.c: Include gdbcore.h.
10825 (alpha_osf1_sigcontext_addr): New function.
10826 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10827 alpha_osf1_sigcontext_addr.
10828 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10829 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10830
bfb01f37
AC
108312002-04-26 Andrew Cagney <ac131313@redhat.com>
10832
361d1df0 10833 * stack.c (selected_frame_level):
bfb01f37
AC
10834 (select_frame): Do not set selected_frame_level.
10835 * frame.h (selected_frame_level): Delete declaration.
10836
15813d3f
AC
108372002-04-26 Andrew Cagney <ac131313@redhat.com>
10838
10839 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10840 convert_from_func_ptr-addr when AIX / PowerOpen.
10841
6096c27a
AC
108422002-04-25 Andrew Cagney <ac131313@redhat.com>
10843
10844 * valops.c (hand_function_call): Call
10845 generic_save_call_dummy_addr.
10846 * frame.h (generic_save_call_dummy_addr): Declare.
10847 * blockframe.c (struct dummy_frame): Add fields call_lo and
10848 call_hi.
10849 (generic_find_dummy_frame): Check for PC in range call_lo to
10850 call_hi instead of entry_point_address.
10851 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10852 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10853 (generic_save_call_dummy_addr): New function.
10854
f510d44e
DM
108552002-04-24 David S. Miller <davem@redhat.com>
10856
10857 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10858 sparc_skip_prologue.
10859 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10860 information to find prologue when possible.
10861 (sparc_prologue_frameless_p): Call examine_prologue directly.
10862 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10863 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10864 second argument.
10865 (SKIP_PROLOGUE): Likewise.
10866
15d72a92
JT
108672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10868
10869 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10870 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10871 indicate that the condition it was testing is always true.
10872 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10873 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10874 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10875
accc6d1f
JT
108762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10877
10878 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10879 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10880 tdep->jb_pc and tdep->jb_elt_size.
10881 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10882 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10883 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10884 * alpha-nat.c (get_longjmp_target): Remove.
10885 (JB_ELEMENT_SIZE): Ditto.
10886 (JB_PC): Ditto.
10887 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10888 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10889 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10890 to alpha_get_longjmp_target.
10891 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10892 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10893 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10894
1bfdc549
AC
108952002-04-25 Andrew Cagney <ac131313@redhat.com>
10896
10897 * README: Update to GDB 5.2.
10898
1bd316f0
AC
108992002-04-25 Andrew Cagney <ac131313@redhat.com>
10900
10901 * gdbarch.sh (LC_ALL): Set to `c'.
10902
2e5ff58c
TR
109032002-04-25 Theodore A. Roth <troth@verinet.com>
10904
10905 * avr-tdep.c: Ran through gdb_indent.sh.
10906
e33ce519
TR
109072002-04-25 Theodore A. Roth <troth@verinet.com>
10908
10909 * MAINTAINERS: Add myself as AVR maintainer.
10910 * NEWS: Note new target avr.
10911
8818c391
TR
109122002-04-25 Theodore A. Roth <troth@verinet.com>
10913
10914 * Makefile.in: Add support for AVR target.
10915 * configure.tgt: Add support for AVR target.
10916 * avr-tdep.c: New file
10917 * config/avr/avr.mt: New file.
10918
79509c2d
TR
109192002-04-25 Theodore A. Roth <troth@verinet.com>
10920
10921 * MAINTAINERS: Add myself to write-after-approval.
10922
dac8068e
PM
109232002-04-24 Pierre Muller <ics.u-strasbg.fr>
10924
10925 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10926 with fprintf_unfiltered (gdb_stderr,....
10927
25bf3106
PM
109282002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10929
10930 Fix PR gdb/508.
10931 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10932
24467a86
PM
109332002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10934
10935 * p-exp.y: Also use new prev_lexptr variable
10936 to improve error reporting. Based on Michael Snyder
10937 2002-04-24 dated patch to c-exp.y.
10938
95b80706
JT
109392002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10940
10941 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10942 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10943 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10944 to 0.
10945 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10946 and struct value.
10947 (FUNCTION_START_OFFSET): Remove.
10948 (BREAKPOINT): Ditto.
10949
e90cc612
JT
109502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10951
10952 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10953 * NEWS: Ditto.
10954
6c72f9f9
JT
109552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10956
10957 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10958 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10959 alpha_linux_pc_in_sigtramp.
10960 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10961 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10962 alpha_osf1_pc_in_sigtramp.
10963 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10964 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10965 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10966 alphafbsd_pc_in_sigtramp.
10967 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10968 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10969 alphanbsd_pc_in_sigtramp.
10970 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10971 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10972
5e4f3379
JT
109732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10974
10975 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10976
da8ca43d
JT
109772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10978
10979 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10980 alphanbsd-tdep.c.
10981 (alphanbsd-nat.o): New dependency list.
10982 (alphanbsd-tdep.o): Ditto.
10983 * NEWS: Note new native NetBSD/alpha configuration.
10984 * alphanbsd-nat.c: New file.
10985 * alphanbsd-tdep.c: Ditto.
10986 * configure.host (alpha*-*-netbsd*): New host.
10987 * configure.tgt (alpha*-*-netbsd*): New target.
10988 * config/alpha/nbsd.mh: New file.
10989 * config/alpha/nbsd.mt: Ditto.
10990 * config/alpha/nm-nbsd.h: Ditto.
10991 * config/alpha/tm-nbsd.h: Ditto.
10992
36a6271d
JT
109932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10994
10995 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10996 (alpha-osf1-tdep.o): New dependency list.
10997 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10998 and skip_sigtramp_frame members.
10999 * alpha-linux-tdep.c: Include gdbcore.h.
11000 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11001 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11002 * alpha-osf1-tdep.c: New file.
11003 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11004 alpha-osf1-dep.c.
11005 (alpha_frame_past_sigtramp_frame): New function.
11006 (alpha_dynamic_sigtramp_offset): Ditto.
11007 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11008 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11009 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11010 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11011 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11012 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11013 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11014 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11015 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11016 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11017 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11018 to find_solib_trampoline_target.
11019 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11020 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11021 (SKIP_TRAMPOLINE_CODE): Remove.
11022 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11023 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11024 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11025 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11026 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11027 (PROC_SIGTRAMP_MAGIC): Ditto.
11028 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11029 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11030 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11031 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11032 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11033
2f4bc57b
JT
110342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11035
11036 * NEWS: Note that Alpha targets are now multi-arch.
11037
665132f9
MS
110382002-04-24 Michael Snyder <msnyder@redhat.com>
11039
11040 * parser-defs.h (prev_lexptr): New external variable.
11041 * parse.c (parse_exp_1): Set prev_lexptr to null before
11042 calling the language-specific parser.
11043 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11044 (yyerror): Use prev_lexptr in error reporting.
11045
32872fa7
DJ
110462002-04-24 Daniel Jacobowitz <drow@mvista.com>
11047
11048 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11049 * gregset.h: If FILL_FPXREGSET is defined, provide
11050 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11051 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11052 is defined, call fill_fpxregset.
11053
57e76fac
MS
110542002-04-24 Roland McGrath <roland@frob.com>
11055
11056 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11057 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11058 (supply_gregset, supply_fpregset): New functions.
11059
11060 * gnu-nat.c (gnu_find_memory_regions): New function.
11061 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11062 (gnu_xfer_memory): Add a cast.
11063
f43845b3
MS
110642002-04-24 Michael Snyder <msnyder@redhat.com>
11065
361d1df0 11066 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
11067 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11068 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 11069 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
11070 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11071 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11072
a0abec03
AC
11073Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11074
11075 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11076 NUM_PSEUDO_REGS can be used.
11077
d7bd68ca
AC
110782002-04-24 Andrew Cagney <ac131313@redhat.com>
11079
11080 * arch-utils.h: Update copyright.
11081
11082 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11083 * gdbarch.h, gdbarch.c: Re-generate.
11084
11085 * inferior.h (IN_SIGTRAMP): Delete definition.
11086 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11087 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11088
11089 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11090 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11091 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11092 (find_proc_framesize): Ditto.
11093 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11094 (alpha_init_extra_frame_info): Ditto.
11095 * infrun.c (handle_inferior_event): Ditto.
11096 (handle_inferior_event): Ditto.
11097 (check_sigtramp2): Ditto.
11098 * blockframe.c (create_new_frame): Ditto.
11099 (get_prev_frame): Ditto.
11100 * ppc-linux-tdep.c: Update comments.
11101 * i386-linux-tdep.c: Update comments.
11102 * breakpoint.c (bpstat_what): Update comment.
11103
4867e41e
DM
111042002-04-24 David S. Miller <davem@redhat.com>
11105
21d83aa5
DM
11106 * i960-tdep.c (register_in_window_p): New function.
11107 (i960_find_saved_register): Use it instead of
11108 REGISTER_IN_WINDOW_P.
11109 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11110
4867e41e
DM
11111 * symtab.h (find_stab_function_addr): Kill extern.
11112 * minsyms.c (find_stab_function_addr): Remove from here...
11113 * dbxread.c: ... to here, and mark it static.
11114
69cdf6a2
DM
111152002-04-20 David S. Miller <davem@redhat.com>
11116
11117 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11118 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11119
5a595886
DM
111202002-04-21 David S. Miller <davem@redhat.com>
11121
11122 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11123 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11124 (vx_write_register): Likewise.
11125
1da1a192
JB
111262002-04-23 J. Brobecker <brobecker@gnat.com>
11127
11128 * source.c (is_regular_file): New function.
11129 (openp): Check wether file to open is a regular file
11130 to avoid opening directories.
11131
baa6f10b
JT
111322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11133
11134 * findvar.c (extract_signed_integer): Cast printf argument
11135 to suppress format warning.
11136 (extract_unsigned_integer): Likewise.
11137 * infcmd.c (registers_info): Likewise.
11138 * top.c (get_prompt_1): Likewise.
11139 * valops.c (value_assign): Likewise.
11140 * valprint.c (print_decimal): Likewise.
11141
b2c4da81
L
111422002-04-22 H.J. Lu (hjl@gnu.org)
11143
11144 * c-exp.y (typebase): Support
361d1df0 11145
b2c4da81
L
11146 [long|long long|short] [signed|unsigned] [int|]
11147
11148 and
11149
11150 signed [long|long long|short] int
11151
f267bd6a
JT
111522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11153
11154 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11155 and vax-tdep.h.
11156 * vax-tdep.h: New file.
11157 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11158 Make several routines static.
11159 (vax_get_saved_register): New function.
11160 (vax_gdbarch_init): New function.
11161 (_initialize_vax_tdep): Register vax_gdbarch_init.
11162 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11163 Remove macros now under the control of gdbarch.
11164
da3c6d4a
MS
111652002-04-22 Michael Snyder <msnyder@redhat.com>
11166
11d3b27d
MS
11167 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11168 Some whitespace and coding standards tweaks.
da3c6d4a 11169
a33f7558
JT
111702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11171
11172 * vax-tdep.c: Include regcache.h.
11173 (vax_call_dummy_words): New.
11174 (sizeof_vax_call_dummy_words): New.
11175 (vax_fix_call_dummy): New function.
11176 (vax_saved_pc_after_call): Ditto.
11177 * config/vax/tm-vax.h: Don't include regcache.h.
11178 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11179 (CALL_DUMMY): Remove.
11180 (CALL_DUMMY_WORDS): Define.
11181 (SIZEOF_CALL_DUMMY_WORDS): Define.
11182 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11183
47a73475
MS
111842002-04-18 Michael Snyder <msnyder@redhat.com>
11185
11186 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11187
52efde73
JT
111882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11189
11190 * vax-tdep.c (vax_frame_chain): New function.
11191 (vax_push_dummy_frame): Ditto.
11192 (vax_pop_frame): Ditto.
11193 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11194 (FRAMELESS_FUNCTION_INVOCATION): Use
11195 generic_frameless_function_invocation_not.
11196 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11197 (POP_FRAME): Use vax_pop_frame.
11198
ea74468c
JT
111992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11200
11201 * vax-tdep.c (vax_store_struct_return): New function.
11202 (vax_extract_return_value): Ditto.
11203 (vax_store_return_value): Ditto.
11204 (vax_extract_struct_value_address): Ditto.
11205 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11206 vax_store_struct_return.
11207 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11208 (STORE_RETURN_VALUE): Use vax_store_return_value.
11209 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11210
5516aa92
JT
112112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11212
11213 * vax-tdep.c (vax_frame_saved_pc): New function.
11214 (vax_frame_args_address_correct): Ditto.
11215 (vax_frame_args_address): Ditto.
11216 (vax_frame_locals_address): Ditto.
11217 (vax_frame_num_args): Move code to be in proximity to
11218 other frame-related functions.
11219 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11220 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11221 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11222 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11223 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11224
36af0b35
L
112252002-04-22 H.J. Lu (hjl@gnu.org)
11226
11227 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11228 includedir.
11229
ab62c900
JT
112302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11231
11232 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11233 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11234 (FRAME_INIT_SAVED_REGS): New macro.
11235
7232b100
JT
112362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11237
11238 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11239
b70d2aee
JT
112402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11241
11242 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11243 where needed.
11244 (fetch_osf_core_registers): Likewise.
11245 (supply_gregset): Likewise.
11246
a0e8a2d1 112472002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 11248
a0e8a2d1
JB
11249 * symfile.h (get_section_index): Define.
11250 * symfile.c (get_section_index): New function.
11251 * mdebugread.c (SC_IS_SBSS): New macro.
11252 (SC_IS_BSS): Return true for the scBss storage class only, as
11253 the scSBss storage class refers to the .sbss section.
11254 (parse_partial_symbols): Discard the symbols which associated
11255 section does not exist.
11256 Make sure to use the .sbss section index for symbols which
11257 storage class is scBss, rather than using the .bss section index.
11258
51eb8b08
JT
112592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11260
11261 * vax-tdep.c: Update copyright years.
11262 (vax_register_name): New function.
11263 (vax_register_byte): Ditto.
11264 (vax_register_raw_size): Ditto.
11265 (vax_register_virtual_size): Ditto.
11266 (vax_register_virtual_type): Ditto.
11267 * config/vax/tm-vax.h: Update copyright years.
11268 (REGISTER_NAMES): Remove.
11269 (REGISTER_NAME): Define.
11270 (REGISTER_BYTE): Use vax_register_byte.
11271 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11272 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11273 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11274
6cc1c0a8
AC
112752002-04-21 Andrew Cagney <ac131313@redhat.com>
11276
11277 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11278 declaration
11279 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11280
9319a2fe
DM
112812002-04-21 David S. Miller <davem@redhat.com>
11282
11283 * arch-utils.c (generic_prologue_frameless_p): Kill
11284 SKIP_PROLOGUE_FRAMELESS_P code.
11285 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11286 references.
11287 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11288 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11289 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11290 references.
11291 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11292 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11293 (sparc_gdbarch_init): Pass it to
11294 set_gdbarch_prologue_frameless_p.
a0e8a2d1 11295
e9ed6d01
JT
112962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11297
11298 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11299 (alphabsd-nat.o): New dependency list.
11300
36012033
JT
113012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11302
11303 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11304 alphafbsd-tdep.c.
11305 (alpha-linux-tdep.o): New dependency list.
11306 (alphafbsd-tdep.o): Likewise.
11307
3379287a
JT
113082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11309
11310 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11311 to here...
11312 * alpha-tdep.c: ...from here.
11313 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11314
4bcbd6cb
JT
113152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11316
11317 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11318 prototype from here...
11319 * alpha-tdep.h: ...to here.
11320
b31da25e
AC
113212002-04-21 Andrew Cagney <ac131313@redhat.com>
11322
11323 * frame.h (selected_frame_level): Document as deprecated.
11324 (frame_relative_level): Declare.
11325 * stack.c (frame_relative_level): New function.
11326 (selected_frame_level): Document as deprecated.
11327 (select_frame): Do not set the selected_frame_level.
11328
11329 * stack.c (frame_info, record_selected_frame): Update.
11330 (frame_command, current_frame_command): Update.
11331 (up_silently_base, up_command, down_silently_base): Update.
11332 (down_command): Update.
11333 * inflow.c (kill_command): Update.
11334 * tracepoint.c (finish_tfind_command): Update.
11335 * corelow.c (core_open): Update.
11336 * thread.c (info_threads_command): Update.
11337 (do_captured_thread_select): Update.
11338 * infcmd.c (finish_command): Update.
11339 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11340
9c1d6fe5
JT
113412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11342
11343 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11344
ab89facf
AC
113452002-04-21 Andrew Cagney <ac131313@redhat.com>
11346
11347 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11348 type const.
11349
82a4efa1
JT
113502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11351
11352 * alphafbsd-tdep.c: Update copyright years. Include
11353 alpha-tdep.h.
11354 (alphafbsd_use_struct_convention): Make static.
11355 (alphafbsd_init_abi): New function.
11356 (_initialize_alphafbsd_tdep): New function.
11357 * config/alpha/tm-fbsd.h: Update copyright years.
11358 (USE_STRUCT_CONVENTION): Remove.
11359
44dffaac
JT
113602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11361
11362 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11363 an Alpha ABI variant.
11364 (alpha_abi_handler_list): Declare.
11365 (alpha_gdbarch_register_os_abi): New function.
11366 (alpha_gdbarch_init): Give registered ABI variant handlers a
11367 chance to tweak the gdbarch once we have set up defaults.
11368 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11369
65585be4
JT
113702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11371
11372 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11373 to standard_coerce_float_to_double.
11374 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11375
d9b023cc
JT
113762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11377
11378 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11379 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11380 from gdbarch_tdep rather than a constant.
11381 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11382 the default text address for all Alpha Unix ABIs.
11383 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11384 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11385
dc129d82
JT
113862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11387
11388 * alpha-tdep.h: New file. Includes several Alpha target constants
11389 taken from...
11390 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11391 let gdbarch deal with.
11392 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11393 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11394 to dependency list.
11395 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11396 Alpha target register names.
11397 * alphabsd-nat.c: Likewise.
11398 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11399 Alpha target register names. Make serveral routines static.
11400 (alpha_get_saved_register): New function.
11401 (alpha_abi_names): New.
11402 (process_note_abi_tag_sections): New function.
11403 (get_elfosabi): New function.
11404 (alpha_gdbarch_init): New function.
11405 (alpha_dump_tdep): New function.
11406 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11407
d49d1e0a
AC
114082002-04-21 Andrew Cagney <ac131313@redhat.com>
11409
11410 * frame.c (find_saved_register): Delete #ifdef
11411 HAVE_REGISTER_WINDOWS code.
11412 * config/sparc/tm-sparc.h: Update comments.
11413 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11414
92e8c9ed
AC
114152002-04-21 Andrew Cagney <ac131313@redhat.com>
11416
11417 * i960-tdep.c (i960_find_saved_register): New function.
11418 (i960_get_saved_register): New function.
11419 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11420 (i960_get_saved_register): Declare.
11421 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11422
e1925118
DM
114232002-04-20 David S. Miller <davem@redhat.com>
11424
11425 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11426
29673b29
AC
114272002-04-20 Andrew Cagney <ac131313@redhat.com>
11428
11429 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11430 instead of NUM_PSEUDO_REGS.
11431
6c86dcd5
DM
114322002-04-20 David S. Miller <davem@redhat.com>
11433
11434 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11435 GDB_MULTI_ARCH_PARTIAL
11436 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11437 define, let tm-sp64.h do it.
11438
aa40ec90
JT
114392002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11440
11441 * frame.c (find_saved_register): Avoid a NULL pointer
11442 dereference and actually walk the frame list.
11443
0f79675b
AC
114442002-04-20 Andrew Cagney <ac131313@redhat.com>
11445
11446 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11447 sorted in most most-recent-used order. Document.
11448 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11449
f91305dd 114502002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
11451
11452 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11453 instead of ->prev.
11454 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11455 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11456 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11457 instead of ->prev.
11458
73d322b1
EZ
114592002-04-19 Elena Zannoni <ezannoni@redhat.com>
11460
11461 Fix PR gdb/471.
11462 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11463 (build_builtin_type_vec128): Ditto.
11464 (append_composite_type_field): Fix calculation of type length in
11465 union case.
11466
ccd9a834
EZ
114672002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11468
11469 * config/djgpp/README: Update.
11470
11471 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11472 compiler warnings.
11473
a57f9e49
JT
114742002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11475
11476 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11477 (alpha_setup_arbitrary_frame): ...to this.
11478 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11479 for alpha_setup_arbitrary_frame.
11480
f4f9705a
AC
114812002-04-18 Andrew Cagney <cagney@redhat.com>
11482
11483 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11484 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11485
f4f9705a
AC
11486 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11487 * target.h (memory_breakpoint_from_pc): Update declaration.
11488 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11489
11490 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11491 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11492 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11493 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11494 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11495 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11496 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11497 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11498 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11499 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11500 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11501 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11502
11503 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11504 const pointer.
11505 * monitor.c (monitor_insert_breakpoint): Ditto.
11506 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11507
11508 * config/mcore/tm-mcore.h: Update copyright.
11509 * mem-break.c: Ditto.
11510 * xstormy16-tdep.c: Ditto.
11511
29f319b8
PM
115122002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11513
11514 * p-exp.y: Add precedence rule for '^' token.
11515 This removes the shift/reduce conflicts.
11516 Remove the comment concerning these shift/reduce conflicts.
11517
ebeac11a
EZ
115182002-04-18 Elena Zannoni <ezannoni@redhat.com>
11519
11520 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11521 (registers_powerpc_nofp): New register set for processors
11522 without floating point unit.
11523
27c31547
DM
115242002-04-18 David S. Miller <davem@redhat.com>
11525
11526 * MAINTAINERS: Add myself to write-after-approval.
11527
47a73475
MS
115282002-04-17 Michael Snyder <msnyder@redhat.com>
11529
11530 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11531
953836b2
AC
115322002-04-17 Andrew Cagney <ac131313@redhat.com>
11533
11534 * rs6000-tdep.c (frame_initial_stack_address): Use
11535 frame_register_read to read the alloca_reg.
11536
8b0d4340
AC
115372002-04-17 Andrew Cagney <ac131313@redhat.com>
11538
11539 * frame.c (find_saved_register): Find saved registers in the next
11540 not prev frame.
11541 Fix PR gdb/365.
11542
d8864532
AC
115432002-04-17 Andrew Cagney <ac131313@redhat.com>
11544
11545 * gdbarch.sh (LANG): Set to ``c''.
11546
36cc83a3 115472002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11548
36cc83a3 11549 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11550
2f4150cc 115512002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11552
11553 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11554 Update copyright.
11555
628703c6 11556 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11557 Also fix PR gdb/391.
361d1df0 11558
56157b4a
AC
115592002-04-14 Andrew Cagney <ac131313@redhat.com>
11560
11561 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11562 * aclocal.m4, configure: Re-generate.
11563 Fix PR gdb/391.
361d1df0 11564
6d1e3329
EZ
115652002-04-14 Elena Zannoni <ezannoni@redhat.com>
11566
11567 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11568 instead of tm_print_insn.
11569
cb06fa07
EZ
115702002-04-14 Elena Zannoni <ezannoni@redhat.com>
11571
11572 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11573
f208ba17
AC
115742002-04-14 Andrew Cagney <ac131313@redhat.com>
11575
11576 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11577 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11578 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11579
20f01a46
DH
115802002-04-12 Don Howard <dhoward@redhat.com>
11581
11582 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11583 max_user_call_depth.
11584 (init_cmd_lists): Initialize the new value;
11585 * cli/cli-script.c (execute_user_command): Limit the call depth of
11586 user defined commands. This avoids a core-dump when user commands
11587 are infinitly recursive.
11588
a88376a3
KB
115892002-04-12 Kevin Buettner <kevinb@redhat.com>
11590
11591 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11592 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11593 from tdep struct instead of DEFAULT_LR_SAVE.
11594 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11595 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11596 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11597
f2172603
MS
115982002-04-12 Michael Snyder <msnyder@redhat.com>
11599
694f61fb 11600 * Remote.c: Spelling fix.
20fe79c8
MS
11601 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11602 If no symbol found for "sbrk", try "_sbrk".
11603 (make_output_phdrs): Use bfd_section_name.
11604 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11605 * eval.c: Indentation fix-ups.
169a7369
MS
11606 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11607 in case it gets applied to an address that is already
11608 in the instruction space.
de74f71f
MS
11609 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11610 * symfile.c: Fix indentation, long lines.
f2172603
MS
11611 * source.c: White space fix-up.
11612
cda5a58a
AC
116132002-04-12 Andrew Cagney <cagney@redhat.com>
11614
11615 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11616 * frame.c (frame_register_read): New function. Return non-zero on
11617 success.
11618 (read_relative_register_raw_bytes_for_frame): Delete.
11619 (read_relative_register_raw_bytes): Delete.
11620 * frame.h (frame_register_read): Declare.
11621 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11622 * sh-tdep.c: Ditto.
11623 * infcmd.c (do_registers_info): Ditto.
11624 * hppa-tdep.c: Ditto.
11625 * rs6000-tdep.c: Ditto.
11626 * h8500-tdep.c: Ditto.
11627 * mips-tdep.c: Ditto.
11628 * h8300-tdep.c: Ditto.
11629 * z8k-tdep.c: Ditto.
11630
2ea5f656
KB
116312002-04-12 Kevin Buettner <kevinb@redhat.com>
11632
11633 From Jimi X <jimix@watson.ibm.com>:
11634 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11635 64-bit SysV ABI.
11636
27b15785
KB
116372002-04-12 Kevin Buettner <kevinb@redhat.com>
11638
11639 From Jimi X <jimix@watson.ibm.com>:
11640 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11641 bfd info.
11642
5d57ee30
KB
116432002-04-12 Kevin Buettner <kevinb@redhat.com>
11644
11645 From Jimi X <jimix@watson.ibm.com>:
11646 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11647 register sets for these processor variants.
11648
bc1e36ca
DJ
116492002-04-11 Daniel Jacobowitz <drow@mvista.com>
11650
bc1e36ca
DJ
11651 * regformats/reg-ppc.dat: Support FPSCR.
11652
e3f36dbd
KB
116532002-04-11 Kevin Buettner <kevinb@redhat.com>
11654
11655 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11656 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11657 Add fpscr as an invalid/unfetchable register.
11658 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11659 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11660 (fill_fpregset): Add support for register fpscr.
11661 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11662 (fill_gregset): Account for the fact that register ``mq'' might
11663 not exist.
11664 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11665 (registers_power): Add fpscr to register set at slot 71.
11666 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11667 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11668
943c9c25
MS
116692002-04-11 Michael Snyder <msnyder@redhat.com>
11670
11671 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11672 * configure: Regenerate.
11673 * config.in: Regenerate.
11674 * acconfig.h: Add define for _SYSCALL32.
11675 * core-sol2.c: Remove #define _SYSCALL32.
11676 * solib-legacy.c: Remove #define _SYSCALL32.
11677
d8c0a2e7
AC
116782002-04-10 Andrew Cagney <ac131313@redhat.com>
11679
11680 * stack.c (select_frame): Cleanup internal error message, do not
11681 use %p.
11682
7cc19214
AC
116832002-04-10 Andrew Cagney <ac131313@redhat.com>
11684
11685 * stack.c (select_frame): Check that selected_frame and the
11686 specified level are as expected.
11687 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11688 Update copyright.
11689 * frame.h (struct frame_info): Add field `level'. Update
11690 copyright.
11691 Work-in-progress PR gdb/464.
11692
67a2b77e
AC
116932002-04-10 Andrew Cagney <ac131313@redhat.com>
11694
11695 * maint.c (maint_print_section_info): Rename print_section_info.
11696 (print_bfd_section_info, print_objfile_section_info): Update.
11697 * inferior.h (struct gdbarch): Add opaque declaration.
11698 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11699 * gdbarch.h: Regenerate.
11700
8cfda98c
ML
117012002-04-10 Michal Ludvig <mludvig@suse.cz>
11702
11703 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11704 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11705 (kernel_u_size): Added.
11706 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11707 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11708
ca439ad2 117092002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11710
ca439ad2
JI
11711 * valarith.c (find_size_for_pointer_math): New function, either returns
11712 the size for a pointer's target, returns 1 for void *, or errors for
11713 incomplete types.
11714 (value_add, value_sub): use find_size_for_pointer_math.
11715
2f2893d9
DJ
117162002-04-09 Daniel Jacobowitz <drow@mvista.com>
11717
11718 * linux-low.c (linux_look_up_symbols): New hook.
11719 (linux_target_ops): Add linux_look_up_symbols.
11720 * remote-utils.c (decode_address): New function.
11721 (look_up_one_symbol): New function.
11722 * server.c (handle_query): Call target look_up_symbols hook.
11723 * server.h (look_up_one_symbol): Add prototype.
11724 * target.h (struct target_ops): Add look_up_symbols hook.
11725
96cb11df
AC
117262002-04-09 Andrew Cagney <ac131313@redhat.com>
11727
11728 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11729 override FP_REGNUM with frame->fp. Update copyright.
11730 * parse.c (num_std_regs, std_regs): Delete.
11731 (target_map_name_to_register): Do not search std_regs. Update
11732 function description.
11733 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11734 declarations. Update copyright.
11735 Fix PR gdb/251.
361d1df0 11736
97658e92
DJ
117372002-04-09 Daniel Jacobowitz <drow@mvista.com>
11738
11739 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11740 after the last symbol in a block.
11741
6044e3eb
PM
117422002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11743
11744 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11745 is non zero as a found symbol.
11746
0406ec40
AC
117472002-04-08 Andrew Cagney <ac131313@redhat.com>
11748
11749 * findvar.c: Include "builtin-regs.h".
11750 (value_of_register): Call value_of_builtin_reg when applicable.
11751 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11752 (target_map_name_to_register): Call
11753 builtin_reg_map_name_to_regnum.
11754 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11755 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11756 (builtin_regs_h): Define.
11757 (builtin-regs.o): New target.
11758 (findvar.o): Add $(builtin_regs_h).
11759 * builtin-regs.c, builtin-regs.h: New files.
11760 * std-regs.c: New file.
11761 Partial fix for PR gdb/251.
11762
56a6dfb9
KB
117632002-04-08 Kevin Buettner <kevinb@redhat.com>
11764
11765 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11766 it's no longer required.
11767
3a808432
AC
117682002-04-08 Andrew Cagney <ac131313@redhat.com>
11769
11770 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11771
7c40d541
KB
117722002-04-08 Kevin Buettner <kevinb@redhat.com>
11773
11774 From Jimi X <jimix@watson.ibm.com>:
11775 * rs6000-tdep.c (rs6000_software_single_step): Use
11776 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11777 and size. Use target_insert_breakpoint() and
11778 target_remove_breakpoint() to insert and remove breakpoints
11779 instead of explicit memory reads and writes.
11780
cc9836a8
KB
117812002-04-08 Kevin Buettner <kevinb@redhat.com>
11782
11783 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11784 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11785 ELF_OBJECT_FORMAT ifdef.
11786
7495d1dc
KB
117872002-04-08 Kevin Buettner <kevinb@redhat.com>
11788
11789 From Jimi X <jimix@watson.ibm.com>:
11790 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11791
4288e836
KB
117922002-04-08 Kevin Buettner <kevinb@redhat.com>
11793
11794 From Jimi X <jimix@watson.ibm.com>:
11795 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11796 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11797
a4e4e501
MK
117982002-04-07 Mark Kettenis <kettenis@gnu.org>
11799
11800 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11801 s/asprintf/xasprintf/.
11802 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11803
006defba
AC
118042002-04-07 Andrew Cagney <ac131313@redhat.com>
11805
11806 I believe Jeff Law denies responsability for this one:
11807 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11808 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11809 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11810 Work-around for PR gdb/366.
11811
7aa83cac
EZ
118122002-04-07 Elena Zannoni <ezannoni@redhat.com>
11813
11814 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11815 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11816 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11817
cf1fcca1
EZ
118182002-04-07 Elena Zannoni <ezannoni@redhat.com>
11819
11820 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11821 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11822 information.
11823
3f289e6f
AC
118242002-04-07 Andrew Cagney <ac131313@redhat.com>
11825
11826 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11827 maintainer.
11828
129188f6
AC
118292002-04-07 Andrew Cagney <ac131313@redhat.com>
11830
11831 * README (Reporting Bugs in GDB): Document the bug web page as the
11832 prefered way of submitting bugs.
11833 Fix PR gdb/402.
11834
1200cd6e
AC
118352002-04-06 Andrew Cagney <ac131313@redhat.com>
11836
11837 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11838 -1. Update comment.
11839 * gdbarch.h, gdbarch.c: Re-generate.
11840
2853c33c
AS
118412002-04-07 Andreas Schwab <schwab@suse.de>
11842
11843 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11844 buffer to regcache_collect.
11845
c2169756
AC
118462002-04-06 Andrew Cagney <ac131313@redhat.com>
11847
11848 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11849 * gdbarch.c, gdbarch.h: Re-generate.
11850
25f1b008
AC
118512002-04-06 Andrew Cagney <ac131313@redhat.com>
11852
11853 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11854 declaration. Fix -Werror.
11855
59263426
DJ
118562002-04-05 Daniel Jacobowitz <drow@mvista.com>
11857
11858 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11859 * gdbarch.c: Regenerate.
11860
f5db4da3
MS
118612002-04-05 Michael Snyder <msnyder@redhat.com>
11862
80f8a6eb
MS
11863 * breakpoint.c (clear_command): Rewrite middle section to
11864 combine two loops with identical control conditions.
11865 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11866 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11867
ad3dcc5c
L
118682002-04-05 H.J. Lu (hjl@gnu.org)
11869
11870 * solib-svr4.c (bkpt_names): Add "__start".
11871
f32e7a74
AC
118722002-04-04 Andrew Cagney <ac131313@redhat.com>
11873
11874 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11875 as test for 64 bit target.
11876
8227c0ff
AC
118772002-04-05 Andrew Cagney <ac131313@redhat.com>
11878
11879 * h8500-tdep.c (h8500_write_fp): Delete function.
11880 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11881 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11882 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11884 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11885 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11886 (s390_write_fp):
11887 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11888 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11889 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11890 (d10v_write_fp): Delete function.
11891 * inferior.h (write_fp, generic_target_write_fp): Delete
11892 declarations.
11893 * regcache.c (generic_target_write_fp): Delete function.
11894 (write_fp): Delete function.
11895 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11896 * gdbarch.h, gdbarch.c: Regenerate.
11897 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11898 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11899 (sparc64_write_fp): Delete declaration.
11900 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11901 (h8500_write_fp): Delete declaration.
11902
2757dd86
AC
119032002-04-04 Andrew Cagney <ac131313@redhat.com>
11904
11905 * sparc-tdep.c (sparc64_write_fp): Delete.
11906 (sparc_push_dummy_frame): Replace write_fp call with code to store
11907 the FP directly.
11908 (sparc_gdbarch_init): Do not initialize write_fp.
11909
c69255e1
KB
119102002-04-05 Kevin Buettner <kevinb@redhat.com>
11911
11912 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11913 clause.
11914
ae767bfb
JB
119152002-03-29 Jim Blandy <jimb@redhat.com>
11916
11917 * stack.c (get_selected_block): Add new argument `addr_in_block',
11918 used to return the exact code address we used to select the block,
11919 not just the block.
11920 * blockframe.c (get_frame_block, get_current_block): Same.
11921 * frame.h (get_frame_block, get_current_block,
11922 get_selected_block): Update declarations.
11923 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11924 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11925
84d2ac95
MS
119262002-04-05 Michael Snyder <msnyder@redhat.com>
11927
11928 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11929 warning message.
11930
596aa3bf
JB
119312002-04-05 J. Brobecker <brobecker@gnat.com>
11932
11933 * utils.c (xfullpath): New function.
11934 * defs.h (xfullpath): Add declaration.
11935 * source.c (openp): Use xfullpath in place of gdb_realpath to
11936 avoid resolving the basename part of filenames when the
11937 associated file is a symbolic link. This fixes a potential
11938 inconsistency between the filenames known to GDB and the
11939 filenames it prints in the annotations.
11940 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11941 to be able to match a filename with either the real filename, or
11942 the name of any symbolic link to this file.
11943 (lookup_partial_symtab): Ditto.
11944
c02f5703
MS
119452002-04-04 Michael Snyder <msnyder@redhat.com>
11946
11947 * breakpoint.c: Add support for hardware breakpoints in overlays.
11948 (overlay_events_enabled): New state variable.
11949 (insert_breakpoints): Use overlay_events_enabled to decide
11950 whether to attempt to set a breakpoint at the overlay load addr.
11951 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11952 (remove_breakpoint): Use overlay_events_enabled to decide
11953 whether breakpoints need to be removed from overlay load addr.
11954 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11955 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11956 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11957 disable_overlay_breakpoints): Update overlay_events_enabled.
11958
5fb290d7
DJ
119592002-04-04 Daniel Jacobowitz <drow@mvista.com>
11960
11961 * dwarf2read.c (struct function_range): New.
11962 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11963 (check_cu_functions): New.
11964 (read_file_scope): Initialize global function lists.
11965 Call dwarf_decode_line after processing children.
11966 (read_func_scope): Add to global function list.
11967 (dwarf_decode_lines): Call check_cu_functions everywhere
11968 record_line is called. Call record_line with a linenumber
11969 of 0 to mark sequence ends.
11970
7b3fabf0
ML
119712002-04-04 Michal Ludvig <mludvig@suse.cz>
11972
361d1df0 11973 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11974 change sync with glibc.
11975
bce58c09
JB
119762002-04-03 Jim Blandy <jimb@redhat.com>
11977
11978 * configure.in: Call AC_C_INLINE.
11979 * configure: Regenerated.
361d1df0 11980
2fccf04a
DJ
119812002-04-01 Daniel Jacobowitz <drow@mvista.com>
11982
11983 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11984 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11985
2d1bfe2e
MK
119862002-03-31 Mark Kettenis <kettenis@gnu.org>
11987
a5941fbf
MK
11988 * NEWS: Mention gcore support on FreeBSD/i386.
11989
a90cd31d
MK
11990 * fbsd-proc.c: New file.
11991 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11992 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11993
2d1bfe2e
MK
11994 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11995 while statement.
11996
9eb6e5a1
JB
119972002-03-29 Jim Blandy <jimb@redhat.com>
11998
11999 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12000 unescaped newlines in string literals, but newer ones don't. So
12001 escape them.
12002
f02df580
MS
120032002-03-26 Michael Snyder <msnyder@redhat.com>
12004 Andrew Cagney <cagney@redhat.com>
12005
361d1df0 12006 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
12007 restore file to memory.
12008 * cli/cli-dump.h: New file.
12009 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 12010 * NEWS: Mention new commands.
f02df580 12011
109f874e
MS
120122002-03-28 Michael Snyder <msnyder@redhat.com>
12013
12014 * symfile.c (symbol_file_add): Move test for null symbols to later.
12015
520f6ade
AC
120162002-03-27 Andrew Cagney <ac131313@redhat.com>
12017
12018 From veksler at il.ibm.com:
12019 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12020 the xstrduped original path.
12021 Fix PR gdb/417.
12022
d4654627
MS
120232002-03-27 Michael Snyder <msnyder@redhat.com>
12024
12025 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12026 * infcmd.c (_initialize_infcmd): Ditto.
12027 * language.c (_initialize_language): Ditto.
12028 * symfile.c (_initialize_symfile): Ditto.
12029 * top.c (_init_main): Ditto.
12030 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12031
6be8bc0c
EZ
120322002-03-27 Elena Zannoni <ezannoni@redhat.com>
12033
12034 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12035 vector registers handling.
12036 (skip_prologue): Handle new AltiVec instructions. Fill in new
12037 fields of frame data.
12038 (frame_get_saved_regs): Fill in information for AltiVec registers.
12039
12af6855
JB
120402002-03-27 Jim Blandy <jimb@redhat.com>
12041
12042 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12043 a function; leave this macro here to invoke that function.
12044 (symbol_init_mangled_name): Declaration for that function.
12045 * symtab.c (symbol_init_mangled_name): New function.
12046
dc672865
AC
120472002-03-27 Andrew Cagney <ac131313@redhat.com>
12048
12049 * valarith.c: Replace strerror with safe_strerror.
12050 * tracepoint.c: Ditto.
12051 * lin-lwp.c: Ditto.
12052 * go32-nat.c: Ditto.
12053 * inflow.c: Ditto.
12054 * gnu-nat.c: Ditto.
12055
d96429cd
AS
120562002-03-27 Andreas Schwab <schwab@suse.de>
12057
12058 * event-top.c (command_line_handler): Remove useless if.
12059
7e336ba1
AJ
120602002-03-27 Andreas Jaeger <aj@suse.de>
12061
12062 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12063 comment.
12064
de220d0f
ML
120652002-03-27 Michal Ludvig <mludvig@suse.cz>
12066
12067 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12068 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12069 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12070 (x86_64_linux_dr_get_status, supply_gregset),
12071 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12072 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12073 (x86_64_register_info_table): Add.
12074 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12075 (x86_64_register_raw_size, x86_64_register_virtual_type),
12076 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12077 general x86_64_register_info_table.
12078 (i386_gdbarch_init): gdbarch_register_bytes is now set
12079 dynamicaly during initialization.
12080 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12081 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 12082
0e98d0a7
DJ
120832002-03-27 Daniel Jacobowitz <drow@mvista.com>
12084
12085 * gdbserver/server.c (main): Call target_signal_to_host_p
12086 and target_signal_to_host on signals received from the remote.
12087 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12088 target_signal_from_host on signals sent to the remote.
12089 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12090 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12091
3130066b
DJ
120922002-03-27 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * signals/signals.c: Include "server.h" in gdbserver build.
12095 (target_signal_from_name): Don't use STREQ.
12096 (_initialize_signals): Likewise. Don't include function in
12097 gdbserver build.
12098
9aedf4f4
DJ
120992002-03-27 Daniel Jacobowitz <drow@mvista.com>
12100
12101 * signals.c: Moved to...
12102 * signals/signals.c: Here.
7e336ba1 12103 * Makefile (signals.o): Update.
9aedf4f4 12104
3fa41cdb
JL
121052002-03-26 Jeff Law (law@redhat.com)
12106
12107 * somread.c (som_symtab_read): Remove some commented out code and
12108 updated related comments. Do not set the minimal symbol table to
12109 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12110 in a dynamic executable.
12111 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12112 where we are unable to find the minimal symbol for the given
12113 PC value.
12114
ee677e8d
MS
121152002-03-25 Jeff Law (law@redhat.com)
12116
12117 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12118
e76e1718
ML
121192002-03-25 Michal Ludvig <mludvig@suse.cz>
12120
12121 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12122
18a642a1
AC
121232002-03-23 Andrew Cagney <ac131313@redhat.com>
12124
12125 * command.h: Update copyright.
12126 (struct cmd_list_element): Replace definition with opaque
12127 declaration.
12128 (enum cmd_types): Document that it will eventually be moved to
12129 cli/cli-decode.h
12130 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12131 (MALLOCED_REPLACEMENT): Delete macro.
12132 * Makefile.in (cli_decode_h): Add $(command_h).
12133 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 12134 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
12135 * completer.c: Include "cli/cli-decode.h".
12136 * maint.c: Include "cli/cli-decode.h".
12137 * cli/cli-decode.h: Include "command.h".
12138 (enum command_class): Delete.
12139 (enum cmd_types): Comment out.
12140 (enum cmd_auto_boolean): Delete.
12141 (enum var_types): Delete.
12142
b2875cc0
AC
121432002-03-23 Andrew Cagney <ac131313@redhat.com>
12144
12145 * cli/cli-decode.c: Include "gdb_assert.h".
12146 (add_set_or_show_cmd): New static function.
12147 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12148 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12149 all fields, such as func, from the set command.
12150
3b45974e
AC
121512002-03-23 Andrew Cagney <ac131313@redhat.com>
12152
12153 * MAINTAINERS (sh-elf): Change warning flag to -w.
12154
823ca731
AC
121552002-03-23 Andrew Cagney <cagney@redhat.com>
12156
12157 * defs.h (error): Add printf format attribute.
12158 * thread-db.c (thread_from_lwp): Fix error format string.
12159 * stack.c (parse_frame_specification): Ditto.
12160 * cli/cli-decode.c (undef_cmd_error): Ditto.
12161 * scm-lang.c (scm_lookup_name): Ditto.
12162 * tracepoint.c (trace_error): Ditto.
12163 * remote-utils.c (usage): Ditto.
12164 * remote.c (compare_sections_command): Ditto.
12165 Fix PR gdb/328.
12166
0e101458
AC
121672002-03-22 Andrew Cagney <ac131313@redhat.com>
12168
12169 * gdbtypes.c (append_composite_type_field): New function.
12170 (init_composite_type): New function.
12171 * gdbtypes.h (append_composite_type_field): Declare.
12172 (init_composite_type): Ditto.
12173
8e0662df
EZ
121742002-03-22 Elena Zannoni <ezannoni@redhat.com>
12175
12176 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 12177 function.
8e0662df
EZ
12178 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12179 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12180 structure returning convention for SYSV ABI case, but not
12181 for GNU/Linux, FreeBSD, or NetBSD.
12182
3121eff0
DJ
121832002-03-22 Daniel Jacobowitz <drow@mvista.com>
12184
12185 * symtab.h (lookup_block_symbol): Add mangled_name argument
12186 to prototype.
12187
12188 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12189 with new mangled_name argument.
12190 * linespec.c (decode_line_1): Likewise.
12191 * valops (value_of_this): Likewise.
12192 * symtab.c (lookup_transparent_type): Likewise.
12193 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12194 (lookup_symbol): If we are given a mangled name, pass it down
12195 to lookup_symbol_aux.
12196 (lookup_block_symbol): If we are given a mangled name to check
12197 against, only return symbols which match it.
12198
349b409f
CF
121992002-03-22 Christopher Faylor <cgf@redhat.com>
12200
12201 * win32-nat.c (child_create_inferior): Check for proper shell to use
12202 here, in case the user changes it on the fly.
12203 (_initialize_inftarg): Remove shell path considerations.
12204
2a873819
EZ
122052002-03-21 Elena Zannoni <ezannoni@redhat.com>
12206
12207 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12208 for gdbarch_max_register_raw_size and max_register_virtual_size.
12209 Adjust copyright year.
12210
a1b9830c
DJ
122112002-03-21 Daniel Jacobowitz <drow@mvista.com>
12212
12213 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12214 in a function to cover the entire beginning of the function
12215 as well if it does not already.
12216
8b5790f2
TR
122172002-03-21 Tom Rix <trix@redhat.com>
12218
12219 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12220 (rs6000_ptrace64): Renamed from ptrace64.
12221
bdbe5747
MH
122222002-03-20 Martin M. Hunt <hunt@redhat.com>
12223
12224 * gdbserver/remote-utils.c (remote_open): Don't call
12225 getprotobyname, we're all using TCP here so just use
12226 IPPROTO_TCP.
7e336ba1 12227 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
12228
122292002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 12230
bdbe5747
MH
12231 * regcache.c (_initialize_regcache): No need to call
12232 build_regcache() at this time; it gets called whenever
12233 the gdbarch changes.
12234
7781cd62
DB
122352002-03-20 David O'Brien <obrien@FreeBSD.org>
12236
12237 * sparc-nat.c: Include sys/param.h where possible.
12238
f65ca430
DJ
122392002-03-20 Daniel Jacobowitz <drow@mvista.com>
12240
12241 Fix PR gdb/422.
12242 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12243 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12244 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12245 complex types.
12246 * stabsread.c (rs6000_builtin_type): Likewise.
12247 (read_sun_floating_type): Likewise.
12248
0c867556
PS
122492002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12250
12251 * stabsread.c (read_member_functions): Remove skip code for duplicate
12252 constructor/destructor methods. Use standard parsing for these
12253 methods and just do not chain them to the list of methods after
12254 parsing.
12255
12b9c64f
AO
122562002-03-19 Alexandre Oliva <aoliva@redhat.com>
12257
12258 * coffread.c: Remove redundant static declarations. Replace
12259 occurrences of `PTR' with `void *'.
12260 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12261 * top.h (quit_cover): Likewise.
12262 * defs.h (catch_errors): Likewise.
12263
349c5d5f
AC
122642002-03-18 Andrew Cagney <ac131313@redhat.com>
12265
12266 * defs.h (XMALLOC): Define.
12267 * gdb-events.sh (XMALLOC): Delete macro.
12268 * gdb-events.c, gdb-events.h: Regenerate.
12269 * gdbarch.sh (XMALLOC): Delete macro.
12270 * gdbarch.c: Regenerate.
12271 * serial.c (XMALLOC): Delete macro.
12272 * ui-file.c (XMALLOC): Ditto.
12273 * ser-unix.h (XMALLOC): Ditto.
12274 * sh-tdep.c (XMALLOC): Ditto.
12275 * ui-out.c (XMALLOC): Ditto.
12276 * utils.c (XMALLOC): Ditto.
12277 * i386-tdep.c (XMALLOC): Ditto.
12278 * gdb-events.c (XMALLOC): Ditto.
12279 * d10v-tdep.c (XMALLOC): Ditto.
12280 * cli-out.c (XMALLOC): Ditto.
12281
12282 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12283 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12284 * ui-file.c, ui-out.c: Ditto.
12285
7d0766f3
AC
122862002-03-18 Andrew Cagney <ac131313@redhat.com>
12287
12288 * command.h (struct cmd_list_element): Add field context.
12289 (set_cmd_context, get_cmd_context): Declare.
12290 * cli/cli-decode.h: Ditto.
12291 * cli/cli-decode.c (get_cmd_context): New function.
12292 (set_cmd_context): New function.
12293 (add_cmd): Initialize context.
12294 Part of fixing PR gdb/145 and PR gdb/146.
12295
5913bcb0
AC
122962002-03-17 Andrew Cagney <ac131313@redhat.com>
12297
1868c04e
AC
12298 * cli/cli-decode.c (cmd_type): New function.
12299 * command.h (cmd_type): Declare.
12300 * infrun.c (set_schedlock_func): Call function cmd_type.
12301 * kod.c (kod_set_os): Call cmd_type.
12302 * cris-tdep.c (cris_version_update): Use function cmd_type.
12303 (cris_mode_update, cris_abi_update): Ditto.
12304
5913bcb0
AC
12305 * command.h: (execute_cmd_post_hook): Declare.
12306 (execute_cmd_pre_hook): Declare.
12307 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12308 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12309 functions. Execute pre/post hook while ensuring that afterwords
12310 hook_in is cleared.
12311 * top.c (execute_command): Use execute_cmd_post_hook, and
12312 execute_cmd_pre_hook to execute pre/post commands.
12313 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12314 hook_stop_stub.
12315 (hook_stop_stub): Call execute_cmd_pre_hook.
12316
b51450c9
AC
123172002-03-17 Andrew Cagney <ac131313@redhat.com>
12318
12319 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12320 set'' and this leads to a core dump. Move xstrdup of
12321 operating_system to after check that it is not NULL.
12322
f66c9f11
AC
123232002-03-17 Andrew Cagney <ac131313@redhat.com>
12324
8e694ecf
AC
12325 * kod.c (kod_set_os): Remove unnecessary check that
12326 ``command->type'' is set_cmd.
12327
f66c9f11
AC
12328 * valprint.c (set_input_radix): Use input_radix.
12329 (set_output_radix): Use output_radix.
12330 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12331 isn't reverted.
12332
9d01611c
AC
123332002-03-16 Andrew Cagney <ac131313@redhat.com>
12334
12335 * value.h (struct value): Delete field ``substring_addr''. Change
12336 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
12337 force_core_addr_align and force_pointer_aligh.
12338
12339 * value.h (struct value): Fix typo in above change.
9d01611c 12340
4156bb53
PS
123412002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12342
12343 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12344 to fix internal_error from ``maintenance print architecture''.
12345
0e5e3ea6
PS
123462002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12347
12348 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12349 for gcc versions after gcc-2.8.1.
12350
9b013045
PS
123512002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12352
12353 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12354 for method resolution. Restore adjustment of ``this'' pointer after
12355 calling value_struct_elt, which was accidentally removed during the
12356 HP merge.
12357
376c9600
AC
123582002-03-15 Andrew Cagney <ac131313@redhat.com>
12359
12360 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12361 value_of_register.
12362 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12363 get_saved_register.
12364 * value.h (value_of_register): Update.
12365
a4db0f07
RH
123662002-03-14 Richard Henderson <rth@redhat.com>
12367
12368 * configure.in: Detect declaration for canonicalize_file_name.
12369 * utils.c (canonicalize_file_name): Declare, if needed.
12370 (gdb_realpath): Prefer realpath if available and usable.
12371 * config.in, configure: Rebuild.
12372
96383835
RH
123732002-03-14 Richard Henderson <rth@redhat.com>
12374
12375 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12376 a constant array bound.
12377
12378 * MAINTAINERS: Add myself to write-after-approval.
12379
75245b24
MS
123802002-03-14 Michael Snyder <msnyder@redhat.com>
12381
12382 * symfile.c (syms_from_objfile): Return immediately if no syms.
12383 (symbol_file_add): Return immediately if no syms.
12384 (find_sym_fns): Return immediately if no syms.
12385
e641a1ca
ML
123862002-03-13 Michal Ludvig <mludvig@suse.cz>
12387
12388 * gdbserver/remote-util.c (remote_open): Print remote-side's
12389 IP address when remote debugging over the network.
7e336ba1 12390
df08bfec
DB
123912002-03-12 David O'Brien <obrien@FreeBSD.org>
12392
12393 * config/sparc/fbsd.mh: Fix copyright.
12394 * config/sparc/fbsd.mt: Likewise.
12395
9a57864f
RE
123962002-03-11 Richard Earnshaw <rearnsha@arm.com>
12397
12398 * MAINTAINERS: Fix typo in name of gdb warnings option.
12399 (x86-64): Fix formating so that this can be parsed by awk.
12400
dd7bf85e
DJ
124012002-03-10 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12404 * defs.h: Include "gdb/signals.h".
12405 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12406
33a0a2ac
ML
124072002-03-10 Michal Ludvig <mludvig@suse.cz>
12408
12409 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 12410 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
12411 from x86-64-tdep.h
12412
dd824b04
DJ
124132002-03-10 Daniel Jacobowitz <drow@mvista.com>
12414 Don Howard <dhoward@redhat.com>
12415
12416 * mips-tdep.c (ST0_FR): Define.
12417 (mips2_fp_compat): New function, temporarily disabled.
12418 (mips_read_fp_register_single): New function.
12419 (mips_read_fp_register_double): New function.
12420 (mips_print_register): Use them.
12421 (do_fp_register_row): Likewise.
12422
6a41ff59
AC
124232002-03-09 Andrew Cagney <ac131313@redhat.com>
12424
12425 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12426 approval''.
12427
4ea09c10
PS
124282002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12429
12430 * stabsread.c (read_member_functions): Fix is_stub test for
12431 static member functions, improve comment.
12432
6ccc741d
RE
124332002-03-07 Richard Earnshaw <rearnsha@arm.com>
12434
12435 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12436 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12437 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12438 commands that set boolean values.
12439 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12440 (arm_rdi_resume): Always initialize PC.
12441 (arm_rdi_open): Don't use rslt as a boolean.
12442 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12443 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12444 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12445 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12446
438013df
AO
124472002-03-06 Alexandre Oliva <aoliva@redhat.com>
12448
12449 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12450 * configure: Rebuilt.
12451
70ed8774
SC
124522002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12453
12454 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12455 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12456
5ba2abeb
AC
124572002-03-06 Andrew Cagney <ac131313@redhat.com>
12458
12459 * cli/cli-decode.c (set_cmd_completer): New function.
12460 * command.h (set_cmd_completer): Declare.
12461 * cli/cli-decode.h (set_cmd_completer): Ditto.
12462
12463 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12464 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12465 * win32-nat.c (_initialize_inftarg): Ditto.
12466 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12467 * proc-api.c (_initialize_proc_api): Ditto.
12468 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12469 * source.c (_initialize_source): Ditto.
12470 * exec.c (_initialize_exec): Ditto.
12471 * solib.c (_initialize_solib): Ditto.
12472 * top.c (init_main): Ditto.
12473 * tracepoint.c (_initialize_tracepoint): Ditto.
12474 * symfile.c (_initialize_symfile): Ditto.
12475 * printcmd.c (_initialize_printcmd): Ditto.
12476 * infcmd.c (_initialize_infcmd): Ditto.
12477 * corefile.c (_initialize_core): Ditto.
12478
f779ca99
AC
124792002-03-05 Andrew Cagney <ac131313@redhat.com>
12480
12481 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12482
01a3934b
AC
124832002-03-05 Andrew Cagney <ac131313@redhat.com>
12484
12485 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12486
37057839
AC
124872002-03-05 Andrew Cagney <ac131313@redhat.com>
12488
12489 * NEWS: Update headings, 5.2 has branched.
12490
c6ecbae5
DJ
124912002-03-04 Daniel Jacobowitz <drow@mvista.com>
12492
12493 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12494 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12495 (register_addr, REGISTER_RAW_SIZE): Likewise.
12496 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12497 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12498
e9f30c21
ML
124992002-03-03 Michal Ludvig <mludvig@suse.cz>
12500
12501 * MAINTAINERS (x86-64): Add myself.
12502 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12503 changed value_ptr -> struct value *
12504
54394ac3
DB
125052002-03-01 David O'Brien <obrien@FreeBSD.org>
12506
12507 * configure.host (sparc64-*-freebsd): Add.
12508 * configure.tgt: Likewise.
12509 * config/sparc/fbsd.mh: New file.
12510 * config/sparc/fbsd.mt: Likewise.
12511 * config/sparc/nm-fbsd.h: Likewise.
12512 * config/sparc/tm-fbsd.h: Likewise.
12513
bfe95955
DJ
125142002-03-01 Daniel Jacobowitz <drow@mvista.com>
12515
12516 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12517 regformats/reg-s390x.dat.
12518
f33c6cbf
AC
125192002-03-01 Andrew Cagney <ac131313@redhat.com>
12520
12521 * utils.c: Add FIXME explaining true/false problem.
12522
5ecaa7dd
AC
125232002-02-28 Andrew Cagney <ac131313@redhat.com>
12524
12525 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12526
2a251cc2
MC
125272002-02-28 Michael Chastain <mec@shout.net>
12528
12529 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12530
6a8031a3 125312002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12532
12533 * gdbserver/linux-s390-low.c: New file.
12534 * regformats/reg-s390.dat: New file.
12535 * regformats/reg-s390x.dat: New file.
12536 * gdbserver/configure.srv: Add S/390.
12537 * gdbserver/Makefile.in: Add S/390.
12538 * configure.tgt: Enable gdbserver for S/390.
12539
ac469903
EZ
125402002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12541
12542 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12543 first line of the doc string for "info dos", except at the end of
12544 the sentence, since the short help stops at the first period.
12545
985cb1a3
JM
125462002-02-28 Jason Merrill <jason@redhat.com>
12547
12548 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12549
c570663e
FF
125502002-02-27 Fred Fish <fnf@redhat.com>
12551
12552 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12553 comment (dumy -> dummy).
12554
43630227
PS
125552002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12556
12557 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12558
b84911e8
RB
125592002-02-27 Rodney Brown <rbrown64@csc.com.au>
12560
12561 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12562
58caa3dc
DJ
125632002-02-27 Daniel Jacobowitz <drow@mvista.com>
12564
12565 * gdbserver/acconfig.h: New file.
12566 * gdbserver/i387-fp.c: New file.
12567 * gdbserver/i387-fp.h: New file.
12568 * gdbserver/linux-x86-64.c: New file.
12569 * regformats/reg-x86-64.dat: New file.
12570 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12571 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12572 * gdbserver/configure.in: Add support for regsets.
12573 * gdbserver/config.in: Regenerate.
12574 * gdbserver/configure: Regenerate.
12575 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12576 * gdbserver/linux-low.h: New file.
12577 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12578 for regsets.
12579 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12580 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12581 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12582 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12583 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12584 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12585 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12586 "i387-fp.h". Add PTRACE_GETREGS and friends.
12587 * gdbserver/regcache.c (supply_register): New function.
12588 (supply_register_by_name): New function.
12589 (collect_register): New function.
12590 (collect_register_by_name): New function.
12591
93652174
DJ
125922002-02-27 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12595 (config.status): Add configure.srv dependency.
12596 (server_h): Add config.h dependency.
12597
a02e4a61
DJ
125982002-02-27 Daniel Jacobowitz <drow@mvista.com>
12599
12600 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12601 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12602 * gdbserver/configure.srv: Change i386-*-linux* to use
12603 reg-i386-linux.o.
12604
ce0eebec
AC
126052002-02-26 Andrew Cagney <ac131313@redhat.com>
12606
12607 * x86-64-tdep.c: Re-indent. Update copyright date.
12608
82dbc5f7
AC
126092002-02-26 Andrew Cagney <ac131313@redhat.com>
12610
12611 From Michal Ludvig <mludvig@suse.cz>:
12612 * x86-64-tdep.c (value.h): Delete.
12613 (gdb_assert.h): Include.
12614 (x86_64_register_convert_to_virtual,
12615 x86_64_register_convert_to_raw ): Add check which lets only
12616 floating-point values to be converted.
12617 (value_push): Delete.
12618 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12619 (i386_gdbarch_init): Number of register_bytes fixed.
12620
e4621584
AC
126212002-02-26 Andrew Cagney <ac131313@redhat.com>
12622
12623 * MAINTAINERS: Add x86-64 target.
12624
81a9a963
AC
126252002-02-26 Andrew Cagney <ac131313@redhat.com>
12626
12627 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12628 * osfsolib.c (solib_map_sections): Ditto.
12629 * irix5-nat.c (solib_map_sections): Ditto.
12630 * corelow.c (gdb_check_format): Ditto.
12631 * symfile.c (symfile_bfd_open): Ditto.
12632 * solib.c (solib_map_sections): Ditto.
12633 Fix PR gdb/354.
7e336ba1 12634
0f017ab9
AC
126352002-02-26 Andrew Cagney <ac131313@redhat.com>
12636
12637 * remote.c (_initialize_remote): By default, disable ``e'' and
12638 ``E'' step out-of-range packets.
12639
75738c29
AS
126402002-02-26 Andreas Schwab <schwab@suse.de>
12641
12642 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12643 m68k_linux_frame_saved_pc.
12644 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12645 in_sigtramp.
12646 (SIGCONTEXT_PC_OFFSET): Remove.
12647 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12648 m68k_linux_sigtramp_saved_pc): New functions.
12649 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12650 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12651 (UCONTEXT_PC_OFFSET): Define.
12652 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12653 non-RT and RT signal trampolines.
12654
7e8ed687
RE
126552002-02-26 Richard Earnshaw <rearnsha@arm.com>
12656
12657 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12658 (TARGET_NBPG, STACK_END_ADDR): Delete
12659 (VARIABLES_INSIDE_BLOCK): Delete.
12660
6972bc8b
AC
126612002-02-25 Andrew Cagney <ac131313@redhat.com>
12662
12663 * utils.c (perror_with_name): Make string parameter constant.
12664 (print_sys_errmsg): Ditto.
12665 (query): Ditto.
12666 * defs.h (perror_with_name): Update.
12667 (print_sys_errmsg): Update.
12668 (query): Update.
12669
aa32f823
DJ
126702002-02-25 Daniel Jacobowitz <drow@mvista.com>
12671
12672 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12673 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12674
19caaa45
PS
126752002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12676
12677 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12678 if it already matches the current architecture from the exec file.
12679 Include arch-utils.h for gdbarch_info_init prototype.
12680 * Makefile.in (rs6000-nat.o): Update dependencies.
12681
d951901f
EZ
126822002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12683
12684 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12685 list of exported variables.
12686
7ea81414
DJ
126872002-02-24 Daniel Jacobowitz <drow@mvista.com>
12688
12689 * gdbserver/configure.srv: New file.
12690 * gdbserver/configure.in: Use configure.srv instead
12691 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12692 from it.
12693 * gdbserver/configure: Regenerated.
12694 * gdbserver/terminal.h: New file.
12695 * gdbserver/Makefile.in: Update for configure changes. Remove
12696 more unneeded include paths.
12697
080fe24b
AC
126982002-02-24 Andrew Cagney <ac131313@redhat.com>
12699
12700 From wiz at danbala:
12701 * config/sparc/tm-sp64.h: Fix grammar and typos.
12702 Fix PR gdb/287.
12703
8605d56e
AC
127042002-02-24 Andrew Cagney <ac131313@redhat.com>
12705
12706 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12707 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12708 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12709 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12710 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12711 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12712 * s390-tdep.c: Ditto.
92362027
AC
12713 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12714 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12715 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12716 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12717 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12718 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12719 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12720 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12721 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12722 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12723 Fix PR gdb/378.
7e336ba1 12724
8ed32cc0
AC
127252002-02-23 Andrew Cagney <ac131313@redhat.com>
12726
a3007b6f
AC
12727 * lin-thread.c: Delete file.
12728 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12729 to gdb_proc_service.h.
12730 * configure: Re-generate.
12731
50a9e2f1
AC
12732 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12733 * serial.c (serial_open): Delete check for "ocd".
12734 Fix PR gdb/349.
12735
8b6e7932
AC
12736 * Makefile.in (linux-thread.o): Delete target.
12737 * linux-thread.c: Delete file.
12738
d155c46b
AC
12739 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12740 renamed SH files to be consistent.
12741
8ed32cc0
AC
12742 * symtab.c (sort_search_symbols): Use xfree.
12743
0e18d038
RE
127442002-02-23 Richard Earnshaw <rearnsha@arm.com>
12745
12746 * arm-linux-tdep.c (arm_linux_init_abi): Register
12747 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12748 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12749 definition with undef, since we don't want the sysvr4 definition.
12750 (SKIP_TRAMPOLINE_CODE): Likewise.
12751
27aac7ff
AC
127522002-02-23 Andrew Cagney <ac131313@redhat.com>
12753
12754 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12755
12756 * configure.in: (AC_CHECK_FUNCS) Added test for
12757 canonicalize_file_name Regenerated.
12758 * config.in, configure: Regenerated.
12759 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12760 defined use canonicalize_file_name.
7e336ba1 12761
65a6e0ee
MC
127622002-02-23 Michael Chastain <mec@shout.net>
12763
12764 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12765
47b95330
AC
127662002-02-23 Andrew Cagney <ac131313@redhat.com>
12767
12768 * README: Remove references to cygnus.com.
12769 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12770 dot com'' form. Remove references to cygnus.com and sourceware.
12771
696f451b
AC
127722002-02-23 Andrew Cagney <ac131313@redhat.com>
12773
12774 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12775 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12776 1003.1-2001 no longer allows "head -1".
12777 * gdb/Makefile.in (version.c): Likewise.
12778 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12779 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12780 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12781
bbaca940
AC
127822002-02-23 Andrew Cagney <ac131313@redhat.com>
12783
12784 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12785 * command.h (cmd_cfunc_eq): Declare.
12786 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12787
12788 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12789 ``struct cmd_list_element *''.
12790 * cli/cli-cmds.c (is_complete_command): Update. Use
12791 cmd_cfunc_eq.
12792 * top.c (execute_command): Pass the command to
12793 is_complete_command.
12794 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12795
b8b8b047
AC
127962002-02-23 Andrew Cagney <ac131313@redhat.com>
12797
12798 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12799 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12800 architecture defines.
12801 * s390-tdep.c (s390_gdbarch_init): Likewise.
12802
19d3fc80
RE
128032002-02-23 Richard Earnshaw <rearnsha@arm.com>
12804
12805 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12806 (arm_linux_push_arguments): Likewise.
12807 (arm_linux_init_abi): Register them. Also register linux-specific
12808 call_dummy_words.
12809 (find_minsym_and_objfile): Use strcmp, not STREQ.
12810 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12811 (arm_linux_call_dummy_words): Delete declaration.
12812 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12813 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12814 declarations.
12815 (LOWEST_PC): Delete.
12816
3ab13650
PS
128172002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12818
12819 * maint.c (print_section_info): Do not prepend `0x' to filepos
12820 output, it will be handled by local_hex_string_custom.
12821
19d3fc80 128222002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12823
12824 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12825 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12826 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12827
d85a5daf
JB
128282002-02-22 Jim Blandy <jimb@redhat.com>
12829
12830 Indicate that the bcache functions don't change the strings
12831 they're passed.
12832 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12833 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12834
eeb25b8a
PM
128352002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12836
12837 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12838
6badb179
CF
128392002-02-21 Christopher Faylor <cgf@redhat.com>
12840
12841 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12842 find the complete path to a loaded DLL.
12843
e8717518
FF
128442002-02-21 Fred Fish <fnf@redhat.com>
12845
12846 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12847 that marks the end of the range of a function, enter a line number
12848 entry that has a line number of zero and a PC offset that matches
12849 the end of the function. This starts a range of PC's for which no
12850 line number information is known.
12851 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12852 PC's for which no line number info is found (line number is zero)
12853 then we didn't find any valid line information.
12854 * symtab.h: Document use of zero line number entry.
12855
9abe5450
EZ
128562002-02-21 Elena Zannoni <ezannoni@redhat.com>
12857
12858 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12859 (have_ptrace_getvrregs): Define for run time checks.
12860 (gdb_vrregset_t): New type for Altivec register handling.
12861 (fetch_register, store_register): Fetch/store altivec register
12862 when needed.
12863 (fetch_altivec_register, store_altivec_register): New functions.
12864 (supply_vrregset, fill_vrregset): New functions.
12865 (fetch_altivec_registers, store_altivec_registers): New functions.
12866 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12867 registers as well.
12868
aaa38bb5
AJ
128692002-02-21 Jiri Smid <smid@suse.cz>
12870
12871 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12872
b34db576
RE
128732002-02-21 Richard Earnshaw <rearnsha@arm.com>
12874
12875 * Makefile.in (armnbsd-nat.o): Update dependencies.
12876 * armnbsd-nat.c (supply_gregset): New function. Common code to
12877 supply the integer register set.
12878 (supply_fparegset): New function. Similar for FPA registers.
12879 (fetch_regs, fetch_fp_regs): Use them.
12880 (fetch_core_registers): Likewise.
12881 (fetch_elfcore_registers): New function.
12882 (arm_netbsd_elfcore_fns): New core-file type specification.
12883 (_initialize_arm_netbsd_nat): Register it.
12884
3e56fc4b
RE
128852002-02-21 Richard Earnshaw <rearnsha@arm.com>
12886
12887 * armnbsd-nat.c: Include gdbcore.h.
12888 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12889 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12890 'void' to declaration, to shut up ARI.
12891 (fetch_core_registers): Make static. Rewrite using supply_register.
12892 (arm_netbsd_core_fns): New core-file type specification.
12893 (_initialize_arm_netbsd_nat): New function.
12894
097f6b0b
CF
128952002-02-21 Christopher Faylor <cgf@redhat.com>
12896
12897 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12898 value.
12899
c914e0cc
CF
129002002-02-20 Christopher Faylor <cgf@redhat.com>
12901
12902 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12903 fails.
12904
385fa495
DJ
129052002-02-20 Daniel Jacobowitz <drow@mvista.com>
12906
12907 * jv-exp.y (parse_number): Change type of implicit longs
12908 to builtin_type_uint64.
12909
e5f1222d
DJ
129102002-02-20 Daniel Jacobowitz <drow@mvista.com>
12911
12912 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12913 to be an integer instead of a `union wait'.
12914
75c9abc6
DJ
129152002-02-20 Daniel Jacobowitz <drow@mvista.com>
12916
12917 * mips-linux-nat.c: Call the operating system GNU/Linux.
12918 * mips-linux-tdep.c: Likewise.
12919 * mips-tdep.c: Likewise.
12920
551792a5
DJ
129212002-02-20 Daniel Jacobowitz <drow@mvista.com>
12922
12923 Fix PR gdb/265.
12924 * jv-exp.y (parse_number): Handle 64-bit integers.
12925
ee6e2b82
DJ
129262002-02-20 Daniel Jacobowitz <drow@mvista.com>
12927
12928 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12929 AC_STDC_HEADERS to AC_HEADER_STDC.
12930 * gdbserver/configure: Regenerated.
12931
a48442a0
RE
129322002-02-20 Richard Earnshaw <rearnsha@arm.com>
12933
12934 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12935 is defined.
12936 * sparc-tdep.c (get_longjmp_target): Likewise.
12937
fe419ffc
RE
129382002-02-20 Richard Earnshaw <rearnsha@arm.com>
12939
12940 * News: Add news about ARM and Multi-arch. Mention the new target
12941 arm*-*-netbsd*.
12942
5832ed7e
JB
129432002-02-19 Jim Blandy <jimb@redhat.com>
12944
12945 * stabsread.c (error_type_complaint): Improve error message.
12946
84563040
DJ
129472002-02-19 Daniel Jacobowitz <drow@mvista.com>
12948
12949 * gdbserver/README: Update documentation.
12950 * gdbserver/configure.in: Update configury to match documentation.
12951 * gdbserver/Makefile.in: Likewise.
12952 * gdbserver/configure: Regenerated.
12953 * gdbserver/aclocal.m4: New file, generated by aclocal.
12954 * gdbserver/config.in: New file, generated by autoheader.
12955
375fd65b
RE
129562002-02-19 Richard Earnshaw <rearnsha@arm.com>
12957
12958 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12959 armnbsd-nat.c.
12960
08216dd7
RE
129612002-02-19 Richard Earnshaw <rearnsha@arm.com>
12962
12963 * arm-tdep.h (enum arm_float_model): New enum.
12964 (struct gdbarch_tdep): Add fp_model.
12965 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12966 up floating-point conversions until we know the floating-point model
12967 in use by the inferior. Don't complain about being unable to
12968 determine the ABI of the inferior when we don't have one.
12969 (arm_extract_return_value): Support different floating-point models.
12970 (arm_store_return_value): Likewise.
aaa38bb5 12971 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12972 ARM_FLOAT_SOFT.
12973 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12974
65d6d66a
PS
129752002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12976
12977 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12978 of ``current_gdbarch''.
12979
47221191
RE
129802002-02-19 Richard Earnshaw <rearnsha@arm.com>
12981
12982 * armnbsd-nat.c : ANSIfy all function declarations.
12983 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12984 (fetch_inferior_registers): Re-implement in terms of above.
12985 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12986 (store_inferior_registers): Re-implement in terms of above.
12987
fdf39c9a
RE
129882002-02-19 Richard Earnshaw <rearnsha@arm.com>
12989
aaa38bb5 12990 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12991 kernel.
12992 * arm-linux-tdep.c: Likewise.
12993 * config/arm/tm-linux.h: Likewise.
12994
93247f88
RE
129952002-02-19 Richard Earnshaw <rearnsha@arm.com>
12996
12997 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12998 * config/arm/nbsd.mt (TM_FILE): Delete.
12999 * config/arm/tm-nbsd.h: Delete.
13000
d7b486e7
RE
130012002-02-19 Richard Earnshaw <rearnsha@arm.com>
13002
13003 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13004 Initialize CALL_DUMMY_LENGTH.
13005
41d39a95
RE
130062002-02-19 Richard Earnshaw <rearnsha@arm.com>
13007
13008 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13009 function.
13010 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 13011 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
13012 defines one thing and that is incorrect for this port.
13013 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13014
e1195560
PM
130152002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13016
13017 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13018
c1748f97
PM
130192002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13020
13021 * win32-nat.c (display_selector): New function. Displays information
13022 about the information returned by GetThreadSelectorEntry API function.
13023 (display_selectors): New function. Displays the infomation of
13024 the selector given as argument, or of CS, DS ans FS selectors
13025 if no argument is given.
13026 ( _initialize_inftarg): Add "w32" as info prefix command.
13027 Add "info w32 selector" as command calling display_selectors.
13028
e41e6bbf
PM
130292002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13030
13031 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13032 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13033 if not defined.
13034
0d3a9f48
RE
130352002-02-18 Richard Earnshaw <rearnsha@arm.com>
13036
13037 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13038
3fb4b924
RE
130392002-02-18 Richard Earnshaw <rearnsha@arm.com>
13040
13041 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13042 (arm_fix_call_dummy): Call it.
13043 (arm_call_dummy_breakpoint_offset): Delete.
13044 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13045 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13046
7f55af32
AC
130472002-02-18 Andrew Cagney <ac131313@redhat.com>
13048
13049 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13050 Default to func_frame_chain_valid.
13051 * gdbarch.h, gdbarch.c: Re-generate.
13052 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13053
05f13b9c
EZ
130542002-02-18 Elena Zannoni <ezannoni@redhat.com>
13055
13056 * ppc-linux-nat.c: Update copyright.
13057 (fetch_register, store_register): Add tid parameter, don't compute
13058 tid here.
13059 (fetch_ppc_registers, store_ppc_registers): Add tid
13060 parameter. Pass it along to callees.
13061 (fetch_inferior_registers, store_inferior_registers): Compute tid
13062 here, and pass it to calleed functions.
13063 (fill_gregset, supply_fpregset): Clean up formatting.
13064
d7afb4c9
RE
130652002-02-18 Richard Earnshaw <rearnsha@arm.com>
13066
13067 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13068 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13069
9df628e0
RE
130702002-02-18 Richard Earnshaw <rearnsha@arm.com>
13071
13072 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13073 * gdbarch.c gdbarch.h: Regenerate.
13074 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13075 function.
13076 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13077 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13078 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13079
13080 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13081 * arm-tdep.c (arm_get_longjmp_target): New function.
13082 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13083 this to a positive value register arm_get_longjmp_target as the
13084 longjmp handler.
13085 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13086 (arm_linux_init_abi): Set up longjmp description in tdep.
13087 * armnbsd-nat.c (get_longjmp_target): Delete.
13088 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13089 description in tdep.
13090 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13091 (get_longjmp_target): Delete declaration.
13092 (GET_LONGJMP_TARGET): Delete.
13093 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13094 (GET_LONGJMP_TARGET): Delete.
13095
57bc8964
KB
130962002-02-17 Kevin Buettner <kevinb@redhat.com>
13097
13098 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13099 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13100 of ``current_gdbarch''.
13101
83d31a92
TT
131022002-02-17 Tom Tromey <tromey@redhat.com>
13103
13104 * cli/cli-cmds.c (compare_strings): New function.
13105 (complete_command): Only print each unique item once.
13106 * completer.h (complete_line): Declare.
13107 * completer.c (complete_line): New function.
13108 (line_completion_function): Use it.
13109
17ef5d92
AC
131102002-02-16 Andrew Cagney <ac131313@redhat.com>
13111
13112 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13113 * gdbarch.h, gdbarch.c: Re-generate.
13114
491b8946
DJ
131152002-02-16 Daniel Jacobowitz <drow@mvista.com>
13116
13117 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13118
131192002-02-16 Daniel Jacobowitz <drow@mvista.com>
13120
13121 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13122 * valops.c (value_arg_coerce): Don't take the address of a reference
13123 to convert an argument to a reference.
13124
dfe7f3ac
CF
131252002-02-15 Christopher Faylor <cgf@redhat.com>
13126
13127 * win32-nat.c (get_image_name): New function.
13128 (handle_load_dll): Use get_image_name function.
13129 (get_child_debug_event): Avoid registering debug events until possibly
13130 execed process is started.
13131 (child_create_inferior): Allow invocation via shell so that command
13132 line redirection, etc. works ok.
13133 (_initialize_inftarg): Add new command: "set shell" to control whether
13134 a shell is used to start a process.
13135
1d33e73a
DJ
131362002-02-15 Daniel Jacobowitz <drow@mvista.com>
13137
13138 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13139 instead of find_register_by_number.
13140 (cannot_store_register): Likewise.
13141
48cd0caa
PM
131422002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13143
aaa38bb5 13144 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
13145 fprintf_unfiltered (gdb_stderr, ...).
13146
8656e7d8
DJ
131472002-02-15 Daniel Jacobowitz <drow@mvista.com>
13148
13149 * gdbserver/gdbserver.1: Document --attach.
13150
66e810cd
RE
131512002-02-15 Richard Earnshaw <rearnsha@arm.com>
13152
13153 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13154 descriptions.
13155 * arm-tdep.c (arm_default_arm_le_breakpoint)
13156 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13157 (arm_default_thumb_be_breakpoint): New. Initialize them from
13158 traditional breakpoint defines.
13159 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13160 (arm_gdbarch_init): Initialize new breakpoint variables.
13161 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13162 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13163 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13164 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13165 code out to ...
13166 (arm_netbsd_init_abi_common): ... here; new function.
13167 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13168 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13169 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13170 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13171
97e03143
RE
131722002-02-15 Richard Earnshaw <rearnsha@arm.com>
13173
13174 * arm-tdep.h (enum arm_abi): New enum.
13175 (struct gdbarch_tdep): New structure.
13176 (LOWEST_PC): Provide a default.
13177 (arm_gdbarch_register_os_abi): Declare new function.
13178 * arm-tdep.c (arm_abi_names): New array.
13179 (process_note_abi_tag_sections): New function.
13180 (get_elfosabi): New function.
13181 (arm_gdbarch_register_os_abi): New function.
13182 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13183 support for that ABI has been built in, then call the appropriate
13184 configuration routine. Use gdbarch_num_regs() to get the number
13185 of registers.
13186 (arm_dump_tdep): New function.
13187 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13188 place-holder functions.
13189 (_initialize_arm_tdep): Register them.
13190 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13191
13192 * armnbsd-tdep.c: New file.
13193 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13194 * config/arm/nbsd.mt (TDEPFILES): Add it.
13195 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13196
13197 * armnbsd-nat.c: Include regcache.h.
13198 * Makefile.in (armnbsd-nat.o): Update dependency list.
13199
13200 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13201
ad68be46
DJ
132022002-02-14 Daniel Jacobowitz <drow@mvista.com>
13203
13204 * gdbserver/Makefile.in: Fix typos in target rules.
13205
003d6d1d
DJ
132062002-02-14 Daniel Jacobowitz <drow@mvista.com>
13207
aaa38bb5 13208 Fix part of PR gdb/267.
003d6d1d
DJ
13209 * linespec.c (find_methods): Handle constructors specially for now.
13210
6b230f1b
CV
132112002-02-14 Corinna Vinschen <vinschen@redhat.com>
13212
13213 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13214 handling.
13215 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13216 standard_coerce_float_to_double().
13217
1ea98d12
CF
132182002-02-14 Christopher Faylor <cgf@redhat.com>
13219
13220 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13221 GDBINIT_FILENAME.
13222
dd47e6fd
EZ
132232002-02-14 Elena Zannoni <ezannoni@redhat.com>
13224
13225 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13226 find_variant_by_name, because it confuses the multiarch
13227 framework. Return NULL if there isn't an architecture with the
13228 user supplied name, instead of forcing a different one without
13229 recording the change with the multiarch machinery.
13230 (find_variant_by_name): Delete.
13231
d7e39b9e
PS
132322002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13233
13234 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13235 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13236
76e42a4f
MH
132372002-02-13 Martin M. Hunt <hunt@redhat.com>
13238
aaa38bb5 13239 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
13240 print_frame_info_listing_hook, set current_source_symtab.
13241
0a30fbc4
DJ
132422002-02-14 Daniel Jacobowitz <drow@mvista.com>
13243
13244 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13245 and remove unused $(INCLUDE_DIR).
13246 Add regcache.c to OBS.
13247 Add generated register protocol files to clean target.
13248 Update dependencies for new objects, obsolete old target code.
13249
13250 * gdbserver/linux-low.c: Remove all platform-specific code to
13251 new files. Remove various dead code. Update to use regcache
13252 functionality.
13253 * gdbserver/remote-utils.c (fromhex): Add return statement
13254 to quiet warning.
13255 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13256 constant.
13257 (input_interrupt): Add integer parameter to match prototype
13258 of a signal handler.
13259 (outreg): Use register_data ().
13260 (prepare_resume_reply): Use gdbserver_expedite_regs.
13261 * gdbserver/server.c (main): Dynamically allocate own_buf because
13262 PBUFSIZ is no longer constant. Use registers_to_string () and
13263 registers_from_string ().
13264 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13265 for error (), fatal (), and warning (). Update definition of
13266 PBUFSIZ to use regcache functionality. Add include guard.
13267 * gdbserver/utils.c (fatal): Add missing ``const''.
13268 (warning): New function.
13269
13270 * regformats/regdat.sh: Include "regcache.h" in generated files.
13271 Provide init_registers () function.
13272 * regformats/regdef.h: Add prototype for set_register_cache ().
13273 Add include guard.
13274
13275 * gdbserver/linux-arm-low.c: New file.
13276 * gdbserver/linux-i386-low.c: New file.
13277 * gdbserver/linux-ia64-low.c: New file.
13278 * gdbserver/linux-m68k-low.c: New file.
13279 * gdbserver/linux-mips-low.c: New file.
13280 * gdbserver/linux-ppc-low.c: New file.
13281 * gdbserver/linux-sh-low.c: New file.
13282
13283 * gdbserver/regcache.c: New file.
13284 * gdbserver/regcache.h: New file.
13285
13286 * gdbserver/low-linux.c: Removed obsolete file.
13287
4cc841d0
DJ
132882002-02-14 Daniel Jacobowitz <drow@mvista.com>
13289
13290 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13291 * config/i386/linux.mt: Likewise.
13292 * config/ia64/linux.mt: Likewise.
13293 * config/m68k/linux.mh: Likewise.
13294 * config/powerpc/linux.mh: Likewise.
13295 * config/mips/linux.mt: Likewise.
13296
13297 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13298
13299 * config/i386/i386lynx.mh: Mark gdbserver variables
13300 as (currently) obsolete for this target.
13301 * config/i386/nbsd.mt: Likewise.
13302 * config/i386/nbsdelf.mt: Likewise.
13303 * config/m32r/m32r.mt: Likewise.
13304 * config/m68k/m68klynx.mh: Likewise.
13305 * config/m68k/nbsd.mt: Likewise.
13306 * config/m68k/sun3os4.mh: Likewise.
13307 * config/mips/vr5000.mt: Likewise.
13308 * config/ns32k/nbsd.mt: Likewise.
13309 * config/pa/hppabsd.mh: Likewise.
13310 * config/pa/hppaosf.mh: Likewise.
13311 * config/powerpc/nbsd.mt: Likewise.
13312 * config/rs6000/rs6000lynx.mh: Likewise.
13313 * config/s390/s390.mt: Likewise.
13314 * config/s390/s390x.mt: Likewise.
13315 * config/sparc/sparclynx.mh: Likewise.
13316 * config/sparc/sun4os4.mh: Likewise.
13317 * config/i386/x86-64linux.mt: Likewise.
13318 * config/sparc/linux.mh: Likewise.
13319
a85f51e7
DJ
133202002-02-14 Daniel Jacobowitz <drow@mvista.com>
13321
13322 * configure.tgt: Configure gdbserver only for known working
13323 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13324 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13325 SUBDIRS if it is configured. Update comment for ${nativefile}.
13326 * configure: Regenerated.
13327
65554fef
MS
133282002-02-13 Michael Snyder <msnyder@redhat.com>
13329
670a52db
MS
13330 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13331
6dbdc4a3
MS
13332 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13333 (default_gcore_mach): Just return 0, work around a problem in bfd.
13334 (default_gcore_target): OK to return NULL if exec_bfd is null.
13335 (make_mem_sec): Use a cast, avoid a warning.
13336
13337 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 13338 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
13339 sizeof (host pointer) != sizeof (target pointer)).
13340 (procfs_make_note_section): Avoid overflow in psargs string.
13341
aaa38bb5 13342 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
13343 implementation return an error.
13344
133452002-02-13 Rodney Brown <rbrown64@csc.com.au>
13346
13347 * procfs.c (procfs_make_note_section): Provide a default definition
13348 (for alpha-dec-osf4.0f). Fix typos.
13349
1e4d76e7
EZ
133502002-02-13 Elena Zannoni <ezannoni@redhat.com>
13351
13352 * linux-proc.c: Add include of regcache.h.
13353 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13354
b6d1a1d5
AC
133552002-02-13 Andrew Cagney <ac131313@redhat.com>
13356
13357 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
13358 * memattr.c (create_mem_region): Disallow useless empty region.
13359 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 13360 non-overlapping.
b6d1a1d5 13361
6c6ea35e
MC
133622002-02-13 Michael Chastain <mec@shout.net>
13363
13364 * defs.h: Kill CONST_PTR.
13365 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13366 * c-lang.c (c_builtin_types): Likewise.
13367 * ch-lang.c (ch_builtin_types): Likewise.
13368 * f-lang.c (f_builtin_types): Likewise.
13369 * language.c (unknown_builtin_types): Likewise.
13370 * m2-lang.c (m2_builtin_types): Likewise.
13371 * p-lang.c (pascal_builtin_types): Likewise.
13372 * scm-lang.c (c_builtin_types): Likewise.
13373
3e0b0f48
KS
133742002-02-13 Keith Seitz <keiths@redhat.com>
13375
13376 * arm-tdep.h (arm_get_next_pc): Add declaration.
13377
67255d04
RE
133782002-02-13 Richard Earnshaw <rearnsha@arm.com>
13379
13380 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13381 with other related struct-returning functions.
13382 (arm_extract_struct_value_address): New function.
13383 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13384 initialize float_format, double_format and long_double_format as
13385 appropriate to the endianness of the target.
13386 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13387 (arm_use_struct_convention): Delete declaration.
13388 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13389
079777f6
KS
133902002-02-13 Keith Seitz <keiths@redhat.com>
13391
13392 * defs.h (core_addr_to_string_nz): New function.
13393
34588f23
MK
133942002-02-13 Mark Kettenis <kettenis@gnu.org>
13395
13396 Apply missing bits of 2002-01-15 patch.
13397 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13398 (fill_fpregset): Use i387_fill_fsave.
13399
49b563f9
KS
134002002-02-12 Keith Seitz <keiths@redhat.com>
13401
49b563f9
KS
13402 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13403 (core_addr_to_string_nz): New function.
13404
aeb98c60
RE
134052002-02-11 Richard Earnshaw <rearnsha@arm.com>
13406
13407 * arm-linux-nat.c: Really include arm-tdep.h.
13408 * config/arm/tm-linux.h (struct type, struct value): Declare.
13409
65554fef
MS
134102002-02-11 Michael Snyder <msnyder@redhat.com>
13411
13412 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13413 (gcore section): Ifdef for Solaris and Unixware only.
13414 (procfs_do_thread_registers): Unixware needs one lwpstatus
13415 per thread (not one prstatus or pstatus).
13416 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13417 not over all gdb threads. For unixware, call elfcore_write_pstatus
13418 once before iterating over threads.
13419
34e8f22d
RE
134202002-02-11 Richard Earnshaw <rearnsha@arm.com>
13421
13422 * arm-tdep.h: New file.
13423 * arm-tdep.c: Include arm-tdep.h.
13424 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13425 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13426 (arm_print_float_info, arm_register_type, convert_to_extended)
13427 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13428 (arm_extract_return_value, arm_register_name): Make static.
13429 (arm_software_single_step): Similarly. Fix types in declaration.
13430 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13431 (arm_store_return_value, arm_store_struct_return): New functions.
13432 (arm_gdbarch_init): Register the above functions. Also register
13433 call_dummy_start_offset, sizeof_call_dummy_words,
13434 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13435 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 13436 max_register_virtual_size, register_size. Set up
34e8f22d
RE
13437 prologue_cache.saved_regs here, rather than ...
13438 (_initialize_arm_tdep): ... here.
13439 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13440 declarations.
13441 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13442 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13443 (arm_print_float_info, arm_register_type, convert_to_extended)
13444 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13445 (arm_extract_return_value, arm_register_name): Delete declarations.
13446 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13447 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13448 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13449 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13450 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13451 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13452 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13453 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13454 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13455 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13456 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13457 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13458 interface.
13459 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13460 * remote-rdi.c remote-rdp.c: Likewise.
13461 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13462 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13463 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13464 definition.
13465
13466 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13467 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13468 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13469 from non-ARM_ prefixed definitions.
13470 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13471 all uses of above.
13472 * remote-rdi.c remote-rdp.c: Likewise.
13473 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13474
148754e5
RE
134752002-02-11 Richard Earnshaw <rearnsha@arm.com>
13476
13477 * arm-tdep.c (arm_frameless_function_invocation)
13478 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13479 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13480 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13481 (arm_pop_frame, arm_get_next_pc): Make static.
13482 (arm_gdbarch_init): Register above in gdbarch structure.
13483 (arm_read_fp): Renamed from arm_target_read_fp.
13484 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13485 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13486 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13487 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13488 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13489 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13490 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
13491 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13492 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13493 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13494 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 13495
434d2d4f
DJ
134962002-02-10 Daniel Jacobowitz <drow@mvista.com>
13497
13498 * symtab.c (compare_search_syms): New function.
13499 (sort_search_symbols): New function.
13500 (search_symbols): Sort symbols after searching rather than
13501 before.
13502
55241689
AC
135032002-02-10 Andrew Cagney <ac131313@redhat.com>
13504
13505 * NEWS: Linux -> GNU/Linux.
13506
028c194b
AC
135072002-02-10 Andrew Cagney <ac131313@redhat.com>
13508
13509 * gdbarch.sh: For for level one methods, disallow a definition
13510 when partially multi-arched. Add comments explaining rationale.
13511 * gdbarch.h: Re-generate.
13512
6acf50cd
AC
135132002-02-10 Andrew Cagney <ac131313@redhat.com>
13514
13515 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13516 multi-arch partial.
aaa38bb5 13517
50248794
AC
135182002-02-10 Andrew Cagney <ac131313@redhat.com>
13519
13520 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13521 field. Use diff -u.
13522 * gdbarch.c: Re-generate.
13523
c30e0066
AC
135242002-02-10 Andrew Cagney <ac131313@redhat.com>
13525
9b56c5f3 13526 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13527 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13528 partial.
13529
6e6d6484
AC
135302002-02-10 Andrew Cagney <ac131313@redhat.com>
13531
13532 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13533 multi-arch partial.
13534 (PUSH_ARGUMENTS): Switch to using predefault.
13535 * gdbarch.c: Regenerate.
13536
c203844d
AC
135372002-02-10 Andrew Cagney <ac131313@redhat.com>
13538
13539 * valops.c (PUSH_ARGUMENTS): Delete definition.
13540 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13541 partial. Default to default_push_arguments.
13542 * gdbarch.h, gdbarch.c: Regenerate.
13543
b5a2688f
AC
135442002-02-09 Andrew Cagney <ac131313@redhat.com>
13545
13546 * defs.h (throw_exception): Rename return_to_top_level. Update
13547 comments.
13548 * utils.c (error_stream, internal_verror, quit): Ditto.
13549 * top.c (throw_exception, catcher): Ditto.
13550 * sparclet-rom.c (sparclet_load): Ditto.
13551 * remote.c (interrupt_query, minitelnet): Ditto.
13552 * remote-sds.c (interrupt_query): Ditto.
13553 * remote-mips.c (mips_error, mips_kill): Ditto.
13554 * ocd.c (interrupt_query): Ditto.
13555 * monitor.c (monitor_interrupt_query): Ditto.
13556 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13557 * target.h: Update comment.
aaa38bb5 13558
b5a2688f 13559 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13560
2fa5c1e0
AC
135612002-02-09 Andrew Cagney <ac131313@redhat.com>
13562
13563 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13564 default_double_format.
13565 * gdbarch.h, gdbarch.c: Re-generate.
13566 * findvar.c (floatformat_unknown): Delete variable definition.
13567 * doublest.h (floatformat_unknown): Delete variable declaration.
13568
da966255
JB
135692002-02-09 Jim Blandy <jimb@redhat.com>
13570
13571 * stabsread.c (read_type): Add code to parse Sun's syntax for
13572 prototyped function types.
13573
123a4891
AC
135742002-02-09 Andrew Cagney <ac131313@redhat.com>
13575
13576 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13577 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13578
fb39c8f3
PS
135792002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13580
13581 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13582 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13583 now _initialize_xcoffsolib gets called again and overrides the
13584 commands from solib.c in a native configuration.
13585
0b87a11d
MK
135862002-02-09 Mark Kettenis <kettenis@gnu.org>
13587
13588 * doublest.c (store_typed_floating): Don't try to return a value.
13589 Fixes PR gdb/290.
13590
bdc2fc72
JB
135912002-02-08 Jim Blandy <jimb@redhat.com>
13592
13593 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13594 is prototyped and has no arguments, print its argument list as
13595 `(void)'.
13596
da69bbcf
CD
135972002-02-08 Chris Demetriou <cgd@broadcom.com>
13598
13599 * MAINTAINERS (write-after-approval): Add myself.
13600 (paper-trail): I've escaped!
aaa38bb5 13601
b69571f5
CF
136022002-02-08 Christopher Faylor <cgf@redhat.com>
13603
13604 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13605 changes.
13606 (_initialize_check_for_gdb_ini): Ditto.
13607
f6871398
MH
136082002-02-08 Martin M. Hunt <hunt@redhat.com>
13609
13610 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13611 xaprintf -> xasprintf.
13612
4e52d31c
PM
136132002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13614
13615 * win32-nat.c: Remove use of printf and sprintf functions.
13616
39bbf761
RE
136172002-02-08 Richard Earnshaw <rearnsha@arm.com>
13618
13619 * arm-tdep.c (arm_frame_chain_valid): Make static.
13620 (arm_push_arguments): Likewise.
13621 (arm_gdbarch_init): New function.
13622 (_initialize_arm_tdep): Call it.
13623 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13624 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13625 (FRAME_CHAIN_VALID): Delete.
13626 (arm_frame_chain_valid): Delete declaration.
13627 (PUSH_ARGUMENTS): Delete.
13628 (arm_push_arguments): Delete declaration.
13629 (CALL_DUMMY_P): Delete.
13630
9c9532c9
CV
136312002-02-08 Andrew Cagney <ac131313@redhat.com>
13632 Corinna Vinschen <vinschen@redhat.com>
13633
13634 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13635 on builtin float types.
13636
4e8f7a8b
DJ
136372002-02-08 Daniel Jacobowitz <drow@mvista.com>
13638
13639 * utils.c: Include <curses.h> before "bfd.h".
13640 * tui/tui-hooks.c: Likewise.
13641 * tui/tui.c: Likewise.
13642 * tui/tuiCommand.c: Likewise.
13643 * tui/tuiData.c: Likewise.
13644 * tui/tuiDataWin.c: Likewise.
13645 * tui/tuiDisassem.c: Likewise.
13646 * tui/tuiGeneralWin.c: Likewise.
13647 * tui/tuiIO.c: Likewise.
13648 * tui/tuiLayout.c: Likewise.
13649 * tui/tuiRegs.c: Likewise.
13650 * tui/tuiSource.c: Likewise.
13651 * tui/tuiSourceWin.c: Likewise.
13652 * tui/tuiStack.c: Likewise.
13653 * tui/tuiWin.c: Likewise.
13654
cd4bffcf
EZ
136552002-02-07 Elena Zannoni <ezannoni@redhat.com>
13656
13657 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13658 to include space for pseudoregs as well. Update loops accordingly.
13659 (sh_fp_frame_init_saved_regs): Ditto.
13660 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13661
26806ce2
AC
136622002-02-07 Andrew Cagney <ac131313@redhat.com>
13663
13664 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13665 Add Richard Earnshaw to Arm maintainers.
13666
97fdab62
AC
136672002-02-07 Andrew Cagney <ac131313@redhat.com>
13668
a6b98203
AC
13669 * defs.h (warning_begin): Delete declaration.
13670
97fdab62
AC
13671 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13672 Delete macro.
13673
78b29b40
MS
136742002-02-07 Michael Snyder <msnyder@redhat.com>
13675
aaa38bb5 13676 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13677 Logic bug, remove misplaced else.
13678
d8849953
KD
136792002-02-07 Klee Dienes <klee@apple.com>
13680
13681 * fork-inferior.c (fork_inferior): Add '!' to the list of
13682 characters that need to be quoted when building a string for the
13683 shell. Quote '!' specifically with a backslash, since CSH chokes
13684 when trying to evaluate "str!str".
aaa38bb5 13685
095778a0
NC
136862002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13687
13688 * rdi-share/host.h: Only provide a typedef for bool if it is not
13689 defined.
13690
1900040c
MS
136912002-02-04 Michael Snyder <msnyder@redhat.com>
13692
13693 * breakpoint.h (enum bptype): Add new overlay event bp type.
13694 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13695
1900040c
MS
13696 * breakpoint.c (create_internal_breakpoint): New function.
13697 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13698 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13699 (create_thread_event_breakpoint): Ditto.
13700 (create_solib_event_breakpoint): Ditto.
13701 (create_overlay_event_breakpoint): New function.
13702 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13703 (update_breakpoints_after_exec): Delete and re-initialize
13704 overlay event breakpoints after an exec. Add FIXME comment
13705 about longjmp breakpoint.
13706 (print_it_typical): Ignore overlay event breakpoints.
13707 (print_one_breakpoint): Ditto.
13708 (mention): Ditto.
13709 (bpstat_what): Do not stop for overlay event breakpoints.
13710 (delete_breakpoint): Don't delete overlay event breakpoints.
13711 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13712 (breakpoint_re_set): Re-create overlay event breakpoint.
13713
13714 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13715 (overlay_manual_command): Disable overlay breakpoints.
13716 (overlay_off_command): Disable overlay breakpoints.
13717
082fc60d
RE
137182002-02-06 Richard Earnshaw <rearnsha@arm.com>
13719
13720 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13721 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13722 to here from config/tm-arm.h.
13723 (coff_sym_is_thumb): Make static.
13724 (arm_elf_make_msymbol_special): New function.
13725 (arm_coff_make_msymbol_special): New function.
13726 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13727 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13728 (coff_sym_is_thumb): Delete declaration.
13729 (arm_elf_make_msymbol_special): Declare.
13730 (arm_coff_make_msymbol_special): Declare.
13731 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13732 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13733
039c5766
RE
137342002-02-06 Richard Earnshaw <rearnsha@arm.com>
13735
13736 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13737
137382002-02-06 Richard Earnshaw <rearnsha@arm.com>
13739
13740 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13741 * gdbarch.c gdbarch.h: Regenerate.
13742 * arch-utils.c (default_print_float_info): New function.
13743 * arch-utils.h (default_print_float_info): Prototype it.
13744 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13745 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13746 (PRINT_FLOAT_INFO): Document it.
13747
13748 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13749 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13750 (PRINT_FLOAT_INFO): Define.
13751
58fa08f0
PM
137522002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13753
aaa38bb5 13754 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13755 Add typecast to sprintf argument to suppress a warning.
13756
7393af7c
PM
137572002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13758
58fa08f0 13759 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13760 to allow easier handling of pass state.
13761 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13762 that gives exception name and address.
13763 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13764 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13765 exceptions added.
aaa38bb5
AJ
13766 (child_continue): Correctly report continue_status.
13767 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13768 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13769 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13770 the exception should be passed to debuggee or not.
13771
6af4589c
MS
137722002-02-05 Michael Snyder <msnyder@redhat.com>
13773
13774 * regcache.c (fetch_register): Call target_fetch_register
13775 only if we don't call FETCH_PSEUDO_REGISTER.
13776 (store_register): Call target_store_register only if we
13777 don't call STORE_PSEUDO_REGISTER.
13778
a2cf933a
EZ
137792002-02-05 Elena Zannoni <ezannoni@redhat.com>
13780
13781 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13782 ELF_MAKE_MSYMBOL_SPECIAL.
13783 * gdbarch.c, gdbarch.h: Regenerate.
13784 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13785 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13786 * elfread.c (elf_symtab_read): Compile use of
13787 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13788 multiarched.
13789 * coffread.c (coff_symtab_read): Ditto, for
13790 COFF_MAKE_MSYMBOL_SPECIAL.
13791
6bb7be43
JB
137922002-02-05 Jim Blandy <jimb@redhat.com>
13793
13794 * solib-svr4.c (svr4_truncate_ptr): New function.
13795 (svr4_relocate_section_addresses): Do the address arithmetic with
13796 the appropriate truncation for target addresses, even when
13797 CORE_ADDR is larger than a target address.
13798
e18651ec
DJ
137992002-02-05 Daniel Jacobowitz <drow@mvista.com>
13800
13801 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13802 to (int *).
13803
6b2725be
DJ
138042002-02-05 Daniel Jacobowitz <drow@mvista.com>
13805
13806 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13807 code.
13808
fca9e603
DJ
138092002-02-05 Daniel Jacobowitz <drow@mvista.com>
13810
13811 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13812
6c537a52
DJ
138132002-02-05 Daniel Jacobowitz <drow@mvista.com>
13814
13815 * gdbserver/linux-low.c: Remove unused include files.
13816
d844cde6
DJ
138172002-02-05 Daniel Jacobowitz <drow@mvista.com>
13818
13819 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13820 (read_inferior_memory): Use it.
13821 (write_inferior_memory): Likewise.
13822
d07c63e7
DJ
138232002-02-05 Daniel Jacobowitz <drow@mvista.com>
13824
13825 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13826 grubbing through sys_errlist.
13827
da6d8c04
DJ
138282002-02-05 Daniel Jacobowitz <drow@mvista.com>
13829
13830 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13831
5b421780
PM
138322002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13833 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13834
9f60d481
AC
138352002-02-04 Andrew Cagney <ac131313@redhat.com>
13836
13837 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13838 (do_sfunc, set_cmd_sfunc): New functions.
13839
13840 * command.h (struct cmd_list_element): Add field func.
13841 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13842 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13843 * cli/cli-decode.h: Ditto.
13844
13845 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13846 (help_all, help_cmd_list): Ditto.
13847 (find_cmd, complete_on_cmdlist): Ditto.
13848 * top.c (execute_command): Ditto.
13849
13850 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13851 function.sfunc.
13852
13853 * infcmd.c (notice_args_read): Fix function signature.
13854
13855 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13856 * cli/cli-decode.c (add_set_cmd): Ditto.
13857 * utils.c (initialize_utils): Ditto.
13858 * maint.c (_initialize_maint_cmds): Ditto.
13859 * infrun.c (_initialize_infrun): Ditto.
13860 * demangle.c (_initialize_demangler): Ditto.
13861 * remote.c (add_packet_config_cmd): Ditto.
13862 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13863 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13864 * proc-api.c (_initialize_proc_api): Ditto.
13865 * kod.c (_initialize_kod): Ditto.
13866 * valprint.c (_initialize_valprint): Ditto.
13867 * top.c (init_main): Ditto.
13868 * infcmd.c (_initialize_infcmd): Ditto.
13869 * corefile.c (_initialize_core): Ditto.
13870 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13871 * arch-utils.c (initialize_current_architecture): Ditto.
13872 (_initialize_gdbarch_utils): Ditto.
13873 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13874
13875 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13876 * wince.c (_initialize_inftarg): Ditto.
13877 * symfile.c (_initialize_symfile): Ditto.
13878 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13879 * language.c (_initialize_language): Ditto.
13880 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13881
f9ba0717
MS
138822002-02-04 Michael Snyder <msnyder@redhat.com>
13883
13884 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13885
0c74b2a7
DJ
138862002-02-04 Daniel Jacobowitz <drow@mvista.com>
13887
13888 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13889 Add rules for building the register data files.
13890
c638789f
DJ
138912002-02-04 Daniel Jacobowitz <drow@mvista.com>
13892
13893 * regformats/regdat.sh: Add braces to the definition of
13894 expedite_regs_${arch}.
13895
db253027
DJ
138962002-02-04 Daniel Jacobowitz <drow@mvista.com>
13897
13898 * regformats/regdef.h (struct reg): Add comment describing the
13899 requirements for offset and size fields.
13900
206be19c
AS
139012002-02-04 Andreas Schwab <schwab@suse.de>
13902
13903 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13904 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13905
181c1381
RE
139062002-02-04 Richard Earnshaw <rearnsha@arm.com>
13907
13908 * gdbarch.sh (copyright): Update years in generated header.
13909 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13910 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13911 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13912 * dbxread.c: Likewise.
13913 * dwarfread.c: Likewise.
13914 * elfread.c: Likewise.
13915 * somread.c: Likewise.
13916
13917 * arm-tdep.c (arm_smash_text_address): New function.
13918 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13919
fa4ba8da
PM
139202002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13921
13922 Add support for hardware watchpoints on win32 native.
aaa38bb5 13923 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13924 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13925 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13926 of debug registers.
13927 (debug_registers_changed): New variable. Reflects when debug registers
13928 are changed and need to be written to inferior.
aaa38bb5 13929 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13930 was set, used when new threads are created.
13931 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13932 i386-nat code.
13933 (thread_rec): Set dr array if id is the thread of current_event .
13934 (child_continue, child_resume): Change the debug registers for all
13935 threads if debug_registers_changed.
13936 (child_add_thread): Change the debug registers if debug_registers_used.
13937 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13938 Link nm.h to new nm-cygwin.h file.
13939 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13940 of hardware registers.
13941
a73c86fb
AC
139422002-02-03 Andrew Cagney <ac131313@redhat.com>
13943
13944 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13945 Restore behavour broken by 2002-01-20 Andrew Cagney
13946 <ac131313@redhat.com> IEEE_FLOAT removal.
13947
acf5ed49
DJ
139482002-02-03 Daniel Jacobowitz <drow@mvista.com>
13949
13950 * c-valprint.c (c_val_print): Pass a proper valaddr to
13951 cp_print_class_method.
13952 * valops.c (search_struct_method): If there is only one method
13953 and args is NULL, return that method.
13954
493d28d5
DJ
139552002-02-03 Daniel Jacobowitz <drow@mvista.com>
13956
13957 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13958 accessing tag_name directly.
13959
7495dfdb
DJ
139602002-02-03 Daniel Jacobowitz <drow@mvista.com>
13961
13962 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13963 of accessing tag_name directly.
13964
dd6bda65
DJ
139652002-02-03 Daniel Jacobowitz <drow@mvista.com>
13966
13967 PR gdb/280
13968 * gdbtypes.c (replace_type): New function.
13969 * gdbtypes.h (replace_type): Add prototype.
13970 * stabsread.c (read_type): Use replace_type.
13971
88fe217c
RE
139722002-02-03 Richard Earnshaw <rearnsha@arm.com>
13973
13974 * Makefile.in (memattr.o): Add missing dependencies rule.
13975
e5d66720
PS
139762002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13977
13978 * breakpoint.c (break_at_finish_command): Really export.
13979 (break_at_finish_at_depth_command): Ditto.
13980 (tbreak_at_finish_command): Ditto.
13981 * hppa-tdep.c: Include completer.h.
13982 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13983 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13984
fffee0be
AC
139852002-02-01 Andrew Cagney <ac131313@redhat.com>
13986
13987 * utils.c (do_write): New function.
13988 (error_stream): Rewrite combining the code from error_begin and
13989 verror.
13990 (verror): Rewrite using error_stream.
13991 (error_begin): Delete function.
13992
255e7dbf
AC
139932002-02-01 Andrew Cagney <ac131313@redhat.com>
13994
13995 * utils.c (error_begin): Make static.
13996 * defs.h (error_begin): Delete declaration.
13997
13998 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13999 (decode_line_1): Use cplusplus_error instead of error_begin,
14000 cplusplus_hint and return_to_top_level.
14001 * coffread.c (coff_symfile_read): Use error instead of error_begin
14002 and return_to_top_level.
14003 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14004
ddfe3c15
AC
140052002-02-01 Andrew Cagney <ac131313@redhat.com>
14006
14007 * language.h (type_error, range_error): Make string parameter
14008 constant.
14009 * language.c (warning_pre_print): Delete extern declaration.
14010 * dwarfread.c (warning_pre_print): Ditto.
14011 * language.c (type_error, range_error): Rewrite to use verror and
14012 vwarning instead of warning_begin.
14013
03ac34d5
MS
140142002-02-01 Michael Snyder <msnyder@redhat.com>
14015
261c4ca2
MS
14016 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14017 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 14018
e00d1dc8
AC
140192002-02-01 Andrew Cagney <ac131313@redhat.com>
14020
14021 * command.h (NO_FUNCTION): Delete macro.
14022 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14023 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14024 * tracepoint.c (_initialize_tracepoint): Ditto.
14025 * cli/cli-decode.c (add_set_cmd): Ditto.
14026 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 14027
76b79d6e
DJ
140282002-02-01 Daniel Jacobowitz <drow@mvista.com>
14029
14030 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14031 Update ``this'' pointer when calling virtual functions.
14032
799f9e91
MS
140332002-02-01 Michael Snyder <msnyder@redhat.com>
14034
c7bd442c 14035 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
14036 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14037
3cf384d4
DJ
140382002-02-01 Daniel Jacobowitz <drow@mvista.com>
14039
14040 * regformats/reg-arm.dat: New file.
14041 * regformats/reg-i386.dat: New file.
14042 * regformats/reg-ia64.dat: New file.
14043 * regformats/reg-m68k.dat: New file.
14044 * regformats/reg-mips.dat: New file.
14045 * regformats/reg-ppc.dat: New file.
14046 * regformats/reg-sh.dat: New file.
14047 * regformats/regdef.h: New file.
14048 * regformats/regdat.sh: New file.
14049
0defa245
RE
140502002-02-01 Richard Earnshaw <reanrsha@arm.com>
14051
14052 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14053 (arm_frame_args_address, arm_frame_locals_address): New functions.
14054 (arm_frame_num_args): New function.
14055 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14056 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14057 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14058
405f26e6
MS
140592002-01-31 Michael Snyder <msnyder@redhat.com>
14060
502fd408
MS
14061 * breakpoint.c (break_at_finish_command): Export.
14062 (break_at_finish_at_depth_command): Export.
14063 (tbreak_at_finish_command): Export.
d6020d45 14064 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 14065 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 14066 "txbreak" commands, which are HPPA specific.
502fd408 14067
7d35e135
MS
14068 * printcmd.c (disassemble_command): Remove an ancient
14069 artifact of an old merge.
14070
aaa38bb5 14071 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
14072 Define enum constant values for overlay mode.
14073 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
14074 (overlay_is_mapped, overlay_auto_command,
14075 overlay_manual_command): Ditto.
d874f1e2 14076
aaa38bb5
AJ
14077 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14078 breakpoint_here_p, breakpoint_inserted_here_p,
14079 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
14080 describe_other_breakpoints, check_duplicates, clear_command):
14081 Coding standard fixes.
14082
8add0441 14083 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 14084 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
14085 code: check bfd SEC_READONLY flag for section.
14086
e351066e
AC
140872002-01-31 Andrew Cagney <ac131313@redhat.com>
14088
7d35e135 14089 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 14090
8a48e967
DJ
140912002-01-30 Daniel Jacobowitz <drow@mvista.com>
14092
14093 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14094 data symbols, since we search based on textlow and texthigh.
14095 (find_pc_sect_symtab): Likewise.
14096
f5a96129
AC
140972002-01-30 Andrew Cagney <ac131313@redhat.com>
14098
14099 * defs.h (vwarning): Declare.
f5a96129
AC
14100 * utils.c (vwarning): New function.
14101 (warning): Call vwarning.
14102 (warning_begin): Delete function.
14103
14104 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14105 the warning message.
14106 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14107 warning_begin.
14108
cefd4ef5
MS
141092002-01-30 Michael Snyder <msnyder@redhat.com>
14110
1a703748
MS
14111 * NEWS: Mention "set trust-readonly-sections" command.
14112 Mention generate-core-file command.
cefd4ef5 14113
3a11626d
MS
141142002-01-15 Michael Snyder <msnyder@redhat.com>
14115
14116 * target.c: New command, "set trust-readonly-sections on".
14117 (do_xfer_memory): Honor the suggestion to trust readonly sections
14118 by reading them from the object file instead of from the target.
14119 (initialize_targets): Register command "set trust-readonly-sections".
14120
d1c7e53b
AC
141212002-01-29 Andrew Cagney <ac131313@redhat.com>
14122
14123 * parse.c (target_map_name_to_register): Simplify, search regs and
14124 pseudo-regs using a single loop.
14125
e2c9a72c
AC
141262002-01-30 Andrew Cagney <ac131313@redhat.com>
14127
14128 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14129
69824b4e
MK
141302002-01-15 Rodney Brown <rbrown64@csc.com.au>
14131
14132 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14133 * config/i386/i386v42mp.mh: Add i387-nat.o .
14134 * i386v4-nat.c: Include i387-nat.h.
14135 (supply_fpregset): Use i387_supply_fsave.
14136 (fill_fpregset): Use i387_fill_fsave.
14137
6eb69eab
RE
141382002-01-30 Richard Earnshaw <rearnsha@arm.com>
14139
14140 * arm-tdep.c (arm_call_dummy_words): Define.
14141 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14142 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14143 (CALL_DUMMY_WORDS): Define.
14144 (arm_call_dummy_words): Declare.
14145 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14146 (arm_linux_call_dummy_words): Declare.
14147
9852326a
AS
141482002-01-30 Andreas Schwab <schwab@suse.de>
14149
14150 * m68klinux-nat.c: Fix last change to use regcache_collect
14151 instead of referencing registers[] directly.
14152
977a3030
AC
141532002-01-29 Andrew Cagney <ac131313@redhat.com>
14154
14155 * parse.c (target_map_name_to_register): Delete code wrapped in
14156 #ifdef REGISTER_NAME_ALIAS_HOOK.
14157
2076c72b
MS
141582002-01-28 Michael Snyder <msnyder@redhat.com>
14159
14160 * regcache.c (legacy_read_register_gen): Need to be able to
14161 read pseudo-register as well as real register.
14162 (legacy_write_register_gen): Ditto.
14163
8fcc723b
AC
141642002-01-28 Andrew Cagney <ac131313@redhat.com>
14165
14166 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14167 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14168 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14169 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14170 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14171 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14172 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14173 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14174 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14175 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14176 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14177 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14178 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14179 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14180 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14181 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14182 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14183 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14184 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14185 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14186
afe64c1a
AC
141872002-01-28 Andrew Cagney <ac131313@redhat.com>
14188
14189 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14190 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14191 (initialize_current_architecture): Update target_byte_order using
14192 information from BFD.
aaa38bb5 14193 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
14194 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14195
75bc7ddf
AC
141962002-01-28 Andrew Cagney <ac131313@redhat.com>
14197
14198 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14199 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14200
14201 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14202 #ifdef INVALID_FLOAT.
14203 * infcmd.c (do_registers_info): Ditto.
14204 * values.c (unpack_double): Ditto. Add comment.
14205
14206 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14207 already commented out.
14208
0280a90a
AS
142092002-01-26 Andreas Schwab <schwab@suse.de>
14210
14211 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14212 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14213 registers and add support for PTRACE_GETREGS.
14214
7072a954
AC
142152002-01-24 Andrew Cagney <ac131313@redhat.com>
14216
14217 GDB 5.1.1 released from 5.1 branch.
14218 * NEWS: Add 5.1.1 news.
14219 * README: Sync with 5.1 branch.
14220
86f902e0
FF
142212002-01-23 Fred Fish <fnf@redhat.com>
14222
14223 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14224 stabstring on initial malloc. Reallocing will copy it for us,
14225 if necessary.
14226
8af51c36
EZ
142272002-01-23 Elena Zannoni <ezannoni@redhat.com>
14228
aaa38bb5 14229 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
14230 (HFILES_NO_SRCDIR): Remove hpread.h.
14231 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14232 (hpread.o): Update dependencies.
14233 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14234
14235 * hp-psymtab-read.c: Remove file.
14236 * hp-symtab-read.c: Remove file.
14237 * hpread.h: Remove file.
14238
14239 * hpread.c: Merge all contents of hp-psymtab-read.c,
14240 hp-symtab-read.c and hpread.h into this file, as it was prior to
14241 January 1999.
14242
14243 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 14244 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
14245 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14246 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14247
dc5cfeb6
EZ
142482002-01-23 Elena Zannoni <ezannoni@redhat.com>
14249
14250 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14251 fill_gregset): Call gdbarch_tdep() just once, assign result to
14252 variable and use that, instead of calling the function several
14253 times.
14254
ea87b71b
AO
142552002-01-24 Alexandre Oliva <aoliva@redhat.com>
14256
14257 * configure.host: Accept sparcv9 as alias for sparc64.
14258 * configure.tgt: Likewise.
14259
13fc0c2f
KB
142602002-01-22 Kevin Buettner <kevinb@redhat.com>
14261
14262 * solib-aix5.c (build_so_list_from_mapfile)
14263 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14264 arguments is not reversed.
14265 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14266 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 14267
7bd872fe
EZ
142682002-01-22 Elena Zannoni <ezannoni@redhat.com>
14269
14270 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14271 modified version of obsolete sh_fetch_pseudo_register.
14272 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14273 (sh4_register_read): New function.
14274 (sh_pseudo_register_write): New function. Renamed and modified
14275 version of obsolete sh_store_pseudo_register.
14276 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14277 (sh4_register_write): New function.
14278 (sh_gdbarch_init): Remove setting of gdbarch function
14279 fetch_pseudo_register and store_pseudo_register. Remove setting of
14280 register_convert_to_raw, register_convert_to_virtual,
14281 register_convertible.
14282 (sh_sh4_register_convertible): Delete. No longer needed. All is
14283 taken care by architecture specific functions
14284 register_read/register_write.
14285 (sh_sh4_register_convert_to_virtual): Make static.
14286 (sh_sh4_register_convert_to_raw): Ditto.
14287
069e84fd
AC
142882002-01-22 Andrew Cagney <ac131313@redhat.com>
14289
14290 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14291 (floatformat_is_nan, floatformat_mantissa): Ditto.
14292
14293 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14294 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14295 builtin_type_ieee_double_little,
14296 builtin_type_ieee_double_littlebyte_bigword,
14297 builtin_type_m68881_ext, builtin_type_i960_ext,
14298 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14299 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14300 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14301 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14302
211a4f69
CV
143032002-01-22 Corinna Vinschen <vinschen@redhat.com>
14304
14305 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14306 parameter. Set frameless flag if it exists and depended of
14307 whether the scanned function is frameless or not.
14308 (xstormy16_skip_prologue): If function is frameless, return
14309 result of xstormy16_scan_prologue().
14310 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14311 call.
14312
f81353e4
EZ
143132002-01-21 Elena Zannoni <ezannoni@redhat.com>
14314
14315 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14316 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14317 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14318 sh_sh4_register_byte, sh_sh4_register_raw_size,
14319 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14320 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14321 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14322 sh_store_pseudo_register, sh_do_pseudo_register): Call
14323 gdbarch_tdep() just once, assign result to variable and use that,
14324 instead of calling the function several times.
14325
63c73a17
MK
143262002-01-20 Mark Kettenis <kettenis@gnu.org>
14327
14328 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14329 macros instead of LAST_FPU_CTRL_REGNUM.
14330 (store_register): Likewise.
14331
39ad761d
JB
143322002-01-21 Jim Blandy <jimb@redhat.com>
14333
14334 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14335 is up-to-date before running the program, not just when a program
14336 exits.
14337
3d74b771
FF
143382002-01-21 Fred Fish <fnf@redhat.com>
14339
14340 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14341 when we have found all instructions we are looking for.
14342
966fbf70
RE
143432002-01-21 Richard Earnshaw <rearnsha@arm.com>
14344
14345 * arm-tdep.c (arm_register_name): New function.
14346 (arm_registers_names): Make static.
14347 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14348 (arm_register_name): Declare.
14349 (REGISTER_NAME): Use it.
14350
c3b4394c
RE
143512002-01-21 Richard Earnshaw <rearnsha@arm.com>
14352 Kevin Buettner <kevinb@redhat.com>
14353
14354 Convert arm targets to new FRAME interface.
14355 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14356 (arm_frame_find_save_regs): Delete.
14357 (arm_frame_init_saved_regs): New.
14358 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14359 Allocate extra_info as required. Convert all uses of fsr.regs
14360 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14361 to use extra_info.
14362 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14363 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14364 (check_prologue_cache, save_prologue_cache): Likewise.
14365 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14366 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14367 (FRAME_FIND_SAVED_REGS): Delete.
14368 (arm_frame_find_saved_regs): Delete prototype.
14369 (arm_frame_init_saved_regs): New prototype.
14370 (FRAME_INIT_SAVED_REGS): Define.
14371
61d99182
AC
143722002-01-20 Andrew Cagney <ac131313@redhat.com>
14373
14374 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14375
6aaea291
AC
143762002-01-20 Andrew Cagney <ac131313@redhat.com>
14377
14378 From Jeff Law <law@redhat.com>:
14379 * infttrace.c: Include <sys/pstat.h>.
14380 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14381 exec file if the ttrace equivalent fails.
14382
15f698d2
AC
143832002-01-20 Andrew Cagney <ac131313@redhat.com>
14384
14385 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14386 (closeLogFile): Ditto.
14387
f86ddd7c
MC
143882002-01-20 Michael Chastain <mec@shout.net>
14389
14390 * top.c (print_gdb_version): Bump copyright year to 2002.
14391
904507ce
AC
143922002-01-20 Andrew Cagney <ac131313@redhat.com>
14393
14394 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14395 Zannoni and Eli Zaretskii.
14396
d7f0b9ce
DJ
143972002-01-20 Daniel Jacobowitz <drow@mvista.com>
14398
14399 * buildsym.c: Update copyright years.
14400 * c-typeprint.c: Likewise.
14401 * dwarf2read.c: Likewise.
14402 * f-typeprint.c: Likewise.
14403 * gdbtypes.c: Likewise.
14404 * gdbtypes.h: Likewise.
14405 * hp-symtab-read.c: Likewise.
14406 * hpread.c: Likewise.
14407 * mdebugread.c: Likewise.
14408 * p-typeprint.c: Likewise.
14409
3fd3d7d2
AC
144102002-01-20 Andrew Cagney <ac131313@redhat.com>
14411
14412 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14413 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14414 byte-order selectable.
14415 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14416 * arch-utils.c: Ditto.
14417 (set_endian): Ditto.
14418 (set_endian_from_file): Ditto.
14419 * gdbserver/low-sim.c (create_inferior): Ditto.
14420 * gdbarch.sh: Ditto.
14421 * gdbarch.h: Re-generate.
aaa38bb5
AJ
14422 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14423 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14424 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14425 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14426 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14427 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14428 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
14429 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14430 macro definition.
14431 * config/mips/tm-wince.h: Remove #undef of macro
14432 TARGET_BYTE_ORDER_SELECTABLE.
14433 * config/sh/tm-wince.h: Ditto.
14434
b02dede2
DJ
144352002-01-20 Daniel Jacobowitz <drow@mvista.com>
14436
14437 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14438 member function fields. Add accessor macro
14439 TYPE_FN_FIELD_ARTIFICIAL.
14440 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14441 * c-typeprint.c (c_type_print_base): Skip artificial member
14442 functions.
14443
c3643761
DJ
144442002-01-20 Daniel Jacobowitz <drow@mvista.com>
14445
14446 * f-typeprint.c: Delete unused function f_type_print_args.
14447 * p-typeprint.c: Delete unused function pascal_type_print_args.
14448
8176bb6d
DJ
144492002-01-20 Daniel Jacobowitz <drow@mvista.com>
14450
14451 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14452 comment. Add ``artificial'' to ``union field_location''.
14453
14454 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14455
14456 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14457 * mdebugread.c (parse_symbol): Likewise.
14458 * stabsread.c (define_symbol): Likewise.
14459 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14460 initializing TYPE_FIELD_BITPOS to n (obsolete).
14461 (hpread_doc_function_type): Likewise.
14462 * hpread.c (hpread_function_type): Likewise.
14463
7fd60527
AC
144642002-01-20 Andrew Cagney <ac131313@redhat.com>
14465
14466 * configure.in (host_makefile_frag): Only require a host makefile
14467 fragment when a native build.
14468 * configure: Re-generate.
14469
c2f05ac9
AC
144702002-01-20 Andrew Cagney <ac131313@redhat.com>
14471
14472 * doublest.h (floatformat_from_type): Declare.
14473 * doublest.c (floatformat_from_type): New function.
14474 (convert_typed_floating): Use.
14475
14476 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14477 call to function floatformat_from_type.
14478
14479 * gdbarch.sh (IEEE_FLOAT): Delete.
14480 * gdbarch.h, gdbarch.c: Re-generate.
14481 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14482 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14483 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14484 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14485 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14486 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14487 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14488 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14489 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14490 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14491 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
14492 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14493
14494 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14495 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14496 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14497 * sh-tdep.c (sh_gdbarch_init): Ditto.
14498 * mips-tdep.c (mips_gdbarch_init): Ditto.
14499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14500 * cris-tdep.c (cris_gdbarch_init): Ditto.
14501
abf22e64
AJ
145022002-01-20 Jiri Smid <smid@suse.cz>
14503
14504 * configure.host, configure.tgt: Support x86-64.
14505 * NEWS: Note new target x86-64.
14506
b7c4cbf8
AJ
14507 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14508 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14509 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14510 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14511 x86-64-linux-nat.o): Fix dependencies.
14512
82600034
AC
145132002-01-19 Andrew Cagney <ac131313@redhat.com>
14514
14515 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14516 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14517 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14518 * config/sparc/xm-sun4os4.h: Delete file.
14519 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 14520
bbe5c628
AC
145212002-01-19 Andrew Cagney <ac131313@redhat.com>
14522
14523 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14524 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14525 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14526 * config/i386/i386lynx.mh (XM_FILE): Delete.
14527 * config/rs6000/xm-rs6000ly.h: Delete file.
14528 * config/sparc/xm-sparclynx.h: Delete file.
14529 * config/m68k/xm-m68klynx.h: Delete file.
14530 * config/i386/xm-i386lynx.h: Delete file.
14531 * config/xm-lynx.h: Delete file.
14532 * config/djgpp/fnchange.lst: Update.
14533
f8453e34
JT
145342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14535
14536 * alpha-tdep.c (alpha_register_byte): New function.
14537 (alpha_register_raw_size): Ditto.
14538 (alpha_register_virtual_size): Ditto.
14539 (alpha_skip_prologue_internal): Renamed from
14540 alpha_skip_prologue.
14541 (alpha_skip_prologue): New version that calls
14542 alpha_skip_prologue_internal.
14543 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14544 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14545 second argument from alpha_skip_prologue.
14546 (REGISTER_BYTE): Use alpha_register_byte.
14547 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14548 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14549 (FRAMELESS_FUNCTION_INVOCATION): Use
14550 generic_frameless_function_invocation_not.
14551 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14552 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14553
52d9e613
AC
145542002-01-19 Andrew Cagney <ac131313@redhat.com>
14555
14556 * config/mips/xm-news-mips.h: Delete file.
14557 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14558
14559 * config/m88k/xm-m88k.h: Delete file.
14560 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14561 * config/m88k/xm-delta88v4.h: Ditto.
14562 * config/m88k/xm-delta88.h: Ditto.
14563
14564 * config/alpha/xm-fbsd.h: Delete file.
14565 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14566
14567 * config/sparc/xm-sparc.h: Delete file.
14568 * Makefile.in (xm-sun4os4.h): Delete dependency.
14569 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14570 * config/sparc/xm-sun4os4.h: Ditto.
14571 * config/sparc/xm-linux.h: Ditto.
14572
14573 * config/i386/xm-windows.h: Delete file.
14574
2d1b2124
AC
145752002-01-19 Andrew Cagney <ac131313@redhat.com>
14576
14577 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14578 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14579
ee1f65f0
JT
145802002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14581
14582 * alpha-tdep.c (alpha_call_dummy_words): New.
14583 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14584 (CALL_DUMMY_P): Define.
14585 (CALL_DUMMY_WORDS): Define.
14586 (SIZEOF_CALL_DUMMY_WORDS): Define.
14587
98081e55
PB
145882002-01-19 Per Bothner <per@bothner.com>
14589
14590 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14591 isn't NULL, which can happen with some gcj-3.x-produced code.
14592
0d056799
JT
145932002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14594
14595 * alpha-tdep.c (alpha_register_virtual_type): New function.
14596 (alpha_init_frame_pc_first): Ditto.
14597 (alpha_fix_call_dummy): Ditto.
14598 (alpha_store_struct_return): Ditto.
14599 (alpha_extract_struct_value_address): Ditto.
14600 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14601 alpha_register_virtual_type.
14602 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14603 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14604 alpha_extract_struct_value_address.
14605 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14606 (INIT_FRAME_PC): Use init_frame_pc_noop.
14607 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14608
4604bcad
MK
146092002-01-19 Mark Kettenis <kettenis@gnu.org>
14610
14611 * i386gnu-nat.c: Include "i386-tdep.h".
14612 (fetch_fpregs): Simplify code dealing with uninitialized floating
14613 point states such that it doesn't require FP7_REGNUM.
14614
140f9984
JT
146152002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14616
abf22e64
AJ
14617 * alpha-tdep.c (frame_extra_info): New.
14618 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14619 frame->extra_info.
14620 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14621 (alpha_frame_saved_pc): Use frame->extra_info.
14622 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14623 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14624 (init_extra_frame_info): Rename to...
14625 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14626 (alpha_print_extra_frame_info): New function.
140f9984
JT
14627 (alpha_frame_locals_address): Ditto.
14628 (alpha_frame_args_address): Ditto.
abf22e64 14629 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14630 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14631 alpha_frame_args_address.
abf22e64 14632 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14633 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14634 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14635 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14636 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14637 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14638
d734c450
JT
146392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14640
14641 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14642 (alpha_cannot_fetch_register): Ditto.
14643 (alpha_cannot_store_register): Ditto.
14644 (alpha_register_convertible): Ditto.
14645 (alpha_use_struct_convention): Ditto.
14646 * config/alpha/tm-alpha.h: Update copyright years.
14647 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14648 (INNER_THAN): Use core_addr_lessthan.
14649 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14650 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14651 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14652 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14653 (FRAME_CHAIN): Remove unnecessary cast.
14654
b4ceaee6
AC
146552002-01-18 Andrew Cagney <ac131313@redhat.com>
14656
14657 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14658 obsolete.
14659
0a65a603
AC
146602002-01-18 Andrew Cagney <ac131313@redhat.com>
14661
14662 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14663 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14664 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14665 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14666 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14667 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14668 * x86-64-linux-nat.c: Ditto.
14669
636a6dfc
JT
146702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14671
abf22e64 14672 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14673 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14674 (REGISTER_NAME): Define.
14675
acceddb6
JT
146762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14677
14678 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14679
ec32e4be
JT
146802002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14681
14682 * alpha-tdep.c: Update copyright years.
14683 (alpha_next_pc): New function.
14684 (alpha_software_single_step): Ditto.
14685 * config/alpha/tm-alpha.h: Add prototype for
14686 alpha_software_single_step.
14687
e771a871
JT
146882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14689
14690 * alphabsd-nat.c: Update copyright years.
14691 (fill_gregset): Use regcache_collect.
14692 (fill_fpregset): Likewise.
14693 (fetch_inferior_registers): Only fetch integer registers
14694 if requested to do so.
14695 (store_inferior_registers): Only store integer registers
14696 if requested to do so.
14697
7708fa01
AC
146982002-01-17 Andrew Cagney <ac131313@redhat.com>
14699
14700 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14701 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14702 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14703 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14704 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14705 * config/arm/linux.mh (XDEPFILES): Delete.
14706 * config/arm/nbsd.mh (XDEPFILES): Delete.
14707 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14708 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14709 * config/i386/i386m3.mh (XDEPFILES): Delete.
14710 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14711 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14712 * config/i386/fbsd.mh (XDEPFILES): Delete.
14713 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14714 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14715 * config/i386/i386v4.mh (XDEPFILES): Delete.
14716 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14717 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14718 * config/i386/i386aix.mh (XDEPFILES): Delete.
14719 * config/i386/go32.mh (XDEPFILES): Delete.
14720 * config/i386/cygwin.mh (XDEPFILES): Delete.
14721 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14722 * config/i386/i386mach.mh (XDEPFILES): Delete.
14723 * config/i386/i386v32.mh (XDEPFILES): Delete.
14724 * config/i386/linux.mh (XDEPFILES): Delete.
14725 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14726 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14727 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14728 * config/i386/i386sco.mh (XDEPFILES): Delete.
14729 * config/i386/i386v.mh (XDEPFILES): Delete.
14730 * config/i386/nbsd.mh (XDEPFILES): Delete.
14731 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14732 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14733 * config/i386/symmetry.mh (XDEPFILES): Delete.
14734 * config/i386/obsd.mh (XDEPFILES): Delete.
14735 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14736 * config/ia64/linux.mh (XDEPFILES): Delete.
14737 * config/ia64/aix.mh (XDEPFILES): Delete.
14738 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14739 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14740 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14741 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14742 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14743 * config/m68k/linux.mh (XDEPFILES): Delete.
14744 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14745 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14746 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14747 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14748 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14749 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14750 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14751 * config/m88k/delta88.mh (XDEPFILES): Delete.
14752 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14753 * config/m88k/m88k.mh (XDEPFILES): Delete.
14754 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14755 * config/mips/linux.mh (XDEPFILES): Delete.
14756 * config/mips/irix6.mh (XDEPFILES): Delete.
14757 * config/mips/irix5.mh (XDEPFILES): Delete.
14758 * config/mips/irix4.mh (XDEPFILES): Delete.
14759 * config/mips/irix3.mh (XDEPFILES): Delete.
14760 * config/mips/decstation.mh (XDEPFILES): Delete.
14761 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14762 (NATDEPFILES): Move core-aout.o to here.
14763 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14764 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14765 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14766 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14767 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14768 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14769 * config/pa/hpux11.mh (XDEPFILES): Delete.
14770 * config/powerpc/aix.mh (XDEPFILES): Delete.
14771 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14772 * config/powerpc/linux.mh (XDEPFILES): Delete.
14773 * config/romp/rtbsd.mh: Rename XDEPFILES.
14774 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14775 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14776 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14777 * config/s390/s390.mh (XDEPFILES): Delete.
14778 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14779 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14780 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14781 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14782 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14783 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14784 * config/sparc/linux.mh (XDEPFILES): Delete.
14785 * config/vax/vaxult.mh (XDEPFILES): Delete.
14786 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14787 * Makefile.in (DEPFILES): Remove XDEPFILES.
14788
375fc983
AC
147892002-01-17 Andrew Cagney <ac131313@redhat.com>
14790
14791 * utils.c (internal_verror): Fix comments, default is yes not no.
14792 Update queries to match. Default to quit and dump core.
14793
8926118c
AC
147942002-01-17 Andrew Cagney <ac131313@redhat.com>
14795
14796 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14797 copyright.
14798 * defs.h, event-top.c, gdbcmd.h: Ditto.
14799 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14800 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14801 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14802 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14803 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14804 * mi/mi-main.c:Ditto.
14805
14806 * stack.c, symfile.c: Update copyright.
14807
45b7b345
DJ
148082002-01-17 Daniel Jacobowitz <drow@mvista.com>
14809
db728ff7
DJ
14810 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14811 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14812 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14813 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14814
db728ff7
DJ
148152002-01-17 Daniel Jacobowitz <drow@mvista.com>
14816
14817 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14818 * gdbserver/low-lynx.c (myattach): Likewise.
14819 * gdbserver/low-nbsd.c (myattach): Likewise.
14820 * gdbserver/low-sim.c (myattach): Likewise.
14821 * gdbserver/low-sparc.c (myattach): Likewise.
14822 * gdbserver/low-sun3.c (myattach): Likewise.
14823
14824 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14825
db728ff7 14826 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14827 (main): Handle "--attach".
14828
8de3c354
AC
148292002-01-16 Andrew Cagney <ac131313@redhat.com>
14830
14831 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14832 maintainer.
14833
b0129042
DJ
148342002-01-15 Daniel Jacobowitz <drow@mvista.com>
14835
14836 * c-typeprint.c (is_type_conversion_operator): Add additional
14837 check for non-conversion operators.
14838
ba8679fb 148392002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14840
14841 * linux-proc.c: Add "info proc" command, a la procfs.c.
14842 (read_mapping): New function, abstract and re-use code.
14843 (linux_find_memory_regions): Use new func read_mapping.
14844 (linux_info_proc_cmd): New function, implement "info proc".
14845 (_initialize_linux_proc): Add new command "info proc".
14846
e4f9b4d5
MS
148472002-01-15 Michael Snyder <msnyder@redhat.com>
14848
14849 * symfile.c (generic_load): Use bfd_map_over_sections method
14850 instead of manipulating bfd structure members directly.
14851 (add_section_size_callback): New function, bfd sections callback
14852 used by generic_load.
14853 (load_sections_callback): New function, bfd sections callback
14854 used by generic_load.
14855
08cf96df
EZ
148562002-01-15 Elena Zannoni <ezannoni@redhat.com>
14857
abf22e64 14858 [Based on work by Jim Blandy]
08cf96df
EZ
14859 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14860 (builtin_type_vec128): Export.
14861 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14862 types.
14863 (builtin_type_vec128): New builtin type for 128 bit vector
14864 registers.
14865 (build_gdbtypes): Initialize builtin_type_v16qi and
14866 builtin_type_v8hi. Create the vec128 register builtin type
14867 structure.
14868 (build_builtin_type_vec128): New function.
abf22e64 14869 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14870 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14871 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14872 AltiVec register to new builtin type.
14873
d7242108
DJ
148742001-01-15 Daniel Jacobowitz <drow@mvista.com>
14875
14876 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14877 to make_cv_type.
14878
4ee3352d
AC
148792002-01-14 Andrew Cagney <ac131313@redhat.com>
14880
14881 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14882 CLEAN_UP_REGISTER_VALUE.
14883 * regcache.c (supply_register): Update only call.
14884
f015b2e7
AC
148852002-01-14 Andrew Cagney <ac131313@redhat.com>
14886
14887 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14888 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14889 a29k-*-vxworks* targets as obsolete.
14890
356ae49d
MS
148912002-01-14 Michael Snyder <msnyder@redhat.com>
14892
14893 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14894 until we can resolve portability issues.
14895 * gregset.h: Remove references to fpxregs.
14896 * gcore.c (gcore_command): Initialize note_sec to NULL.
14897
ade8f45e
AC
148982002-01-13 Andrew Cagney <ac131313@redhat.com>
14899
14900 * signals.c (target_signal_to_name): Rewrite. Only use
14901 signals[].name when in bounds and non-NULL.
abf22e64 14902
89c49e7a
AC
149032002-01-13 Andrew Cagney <ac131313@redhat.com>
14904
14905 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14906 * signals.c (target_signal_to_name): Verify that SIG is within the
14907 bounds of the signals array.
14908
4daa9f9f
AC
149092002-01-13 Andrew Cagney <ac131313@redhat.com>
14910
14911 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14912
ba4bbdcb
KS
149132002-01-13 Keith Seitz <keiths@redhat.com>
14914
14915 * stack.c (print_frame_info_base): Print the frame's pc
14916 only if when print_frame_info_listing_hook is not defined.
14917
575bbeb6
KS
149182002-01-13 Keith Seitz <keiths@redhat.com>
14919
14920 * varobj.c (varobj_set_value): Make sure that there were no
14921 errors evaluating the object before attempting to set its
14922 value.
14923 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14924 so this offset adjustment is no longer necessary.
14925 (create_child): Don't set the error flag if the child is
14926 a CPLUS_FAKE_CHILD.
14927 (value_of_child): If value_fetch_lazy fails, return NULL
14928 so that callers will be notified that an error occurred.
14929 (c_value_of_variable): Delay check of variable's validity
14930 until later. We actually want all structs and unions to have
14931 the value "{...}".
14932 Do not return "???" for variables which could not be evaluated.
14933 This error condition must be returned to the caller so that it
14934 can get the error condition from gdb.
14935 (cplus_name_of_child): Adjust index for vptr before figuring
14936 out the name of the child.
14937 (cplus_value_of_child): If a child's (real) parent is not valid,
14938 don't even bother trying to give a value for it. Just return
14939 an error. Change all instances in this function.
14940 (cplus_type_of_child): If our parent is one of the "fake"
14941 parents, we need to get at the type of the real parent, and
14942 derive the child's true type using this information.
14943
b76898ab
AC
149442002-01-13 Andrew Cagney <ac131313@redhat.com>
14945
14946 From 2002-01-09 John Marshall <johnm@falch.net>:
14947 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14948 sources.redhat.com, and tweak some related URLs which had
14949 suffered from linkrot.
14950
b6649e88
AC
149512002-01-13 Andrew Cagney <ac131313@redhat.com>
14952
14953 From Jeff law:
14954 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14955 structures passed in registers.
14956
82cc5033
EZ
149572002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14958
14959 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14960 white space which prevented compilation. Reported by DSK
14961 <dsk@student.unsw.edu.au>.
14962
ba5f2f8a
MS
149632002-01-11 Michael Snyder <msnyder@redhat.com>
14964
fbd35540
MS
14965 * symfile.c (build_section_addr_info_from_section_tab):
14966 Use bfd access method instead of manipulating bfd directly.
14967 (syms_from_objfile): Ditto.
14968 (simple_overlay_update_1): Ditto.
14969 (simple_overlay_update): Ditto.
14970 (generic_load): Ditto.
14971 (overlay_unmapped_address): FIXME comment, bfd access methods.
14972 (sections_overlap): FIXME comment, bfd access methods.
14973 (pc_in_mapped_range): FIXME comment, bfd access methods.
14974 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14975 (section_is_mapped): FIXME comment, bfd access methods.
14976 (section_is_overlay): FIXME comment, bfd access methods.
14977
ba5f2f8a
MS
14978 * symfile.c (generic_load): Whitespace and long line cleanups.
14979 Remove duplicate variable, change several local variables to
14980 more appropriate data types.
14981 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14982
17df2af6
AC
149832002-01-12 Andrew Cagney <ac131313@redhat.com>
14984
14985 From Peter Schauer:
14986 * language.c (longest_local_hex_string_custom): Use phex_nz to
14987 convert NUM to a hex string.
14988
ec920329
EZ
149892002-01-12 Elena Zannoni <ezannoni@redhat.com>
14990
14991 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14992 the function.
538a76d6 14993 Update Copyright year.
ec920329 14994
3abd2e01
AC
149952002-01-12 Andrew Cagney <ac131313@redhat.com>
14996
14997 * language.c (longest_raw_hex_string): Delete unused function.
14998
b21b22e0
PS
149992002-01-11 Petr Sorfa <petrs@caldera.com>
15000
15001 * MAINTAINERS (write-after-approval): Add myself.
15002 * dwarf2read.c (read_tag_string_type): Handling of
15003 DW_AT_byte_size.
15004 (read_tag_string_type): FORTRAN fix to prevent propagation of
15005 first string size.
15006 (set_cu_language): Handling of DW_LANG_Fortran95
15007
747fe712
RE
150082002-01-11 Richard Earnshaw <rearnsha@arm.com>
15009
15010 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15011 GETPID(inferior_ptid).
15012 (store_inferior_registers): Likewise.
15013
f1bea926
JM
150142002-01-10 Jason Merrill <jason@redhat.com>
15015
15016 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15017 Fix DW_OP_minus.
15018
ae940673
AC
150192002-01-10 Andrew Cagney <ac131313@redhat.com>
15020
15021 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15022 and bfd/elf32-sh-nbsd.c.
15023
00546b04
MS
150242002-01-10 Michael Snyder <msnyder@redhat.com>
15025
352ed7b4
MS
15026 * NEWS: Mention --pid and corefile/proc-id behavior change.
15027
c18be923
MS
15028 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15029 * gcore.c: Include cli/cli-decode.h instead of command.h.
15030
00546b04
MS
15031 * main.c (captured_main): Add new command line option "--pid".
15032 If the second command line argument (following the symbol-file)
15033 begins with a digit, try to attach to it before trying to open
15034 it as a corefile.
15035 (print_gdb_help): Document the "--pid" argument.
15036
db60ec62
EZ
150372002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15038
15039 * completer.c (command_completer): New function.
15040
15041 * completer.h <command_completer>: Add prototype.
15042
15043 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15044 completer for the "help" command.
15045
39c22d1a
JM
150462002-01-09 Jason Merrill <jason@redhat.com>
15047
15048 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15049
c564377f
MS
150502002-01-09 Michael Snyder <msnyder@redhat.com>
15051
975aec09
MS
15052 * i386-linux-nat.c (fill_fpxregset): Make global.
15053 (store_fpxregset): Ditto.
15054
db4a10fa
MS
15055 * gregset.h (gdb_fpxregset_t): Define.
15056 (supply_fpxregset): Prototype.
15057 (fill_fpxregset): Prototype.
15058
c564377f
MS
15059 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15060
c3d45d70
RE
150612002-01-09 Richard Earnshaw <rearnsha@arm.com>
15062
15063 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15064 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15065 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15066
fcc87af1
AC
150672002-01-09 Andrew Cagney <ac131313@redhat.com>
15068
15069 * MAINTAINERS: Update target maintainer rules so that any
15070 Maintainer can approve a tested patch for a maintenance-only
15071 target.
15072
dd96c05b
RE
150732002-01-09 Richard Earnshaw <rearnsha@arm.com>
15074
d4297db9 15075 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 15076
d4297db9 15077 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
15078 IN_SIGTRAMP.
15079
145fdc6e
MS
150802002-01-08 Michael Snyder <msnyder@redhat.com>
15081
15082 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15083 real name of the executable, rather than the /proc name.
15084
be4d1333
MS
150852002-01-03 Michael Snyder <msnyder@redhat.com>
15086
15087 Implement a "generate-core-file" command in gdb, save target state.
15088 * gcore.c: New file. Implement new command 'generate-core-file'.
15089 Save a corefile image of the current state of the inferior.
15090 * linux-proc.c: Add linux-specific code for saving corefiles.
15091 * target.h (struct target_ops): Add new target vectors for saving
15092 corefiles; to_find_memory_regions and to_make_corefile_notes.
15093 (target_find_memory_regions): New macro.
15094 (target_make_corefile_notes): New macro.
15095 * target.c (update_current_target): Inherit new target methods.
15096 (dummy_find_memory_regions): New place-holder method.
15097 (dummy_make_corefile_notes): New place-holder method.
15098 (init_dummy_target): Initialize new dummy target vectors.
15099 * exec.c (exec_set_find_memory_regions): New function.
15100 Allow the exec_ops vector for memory regions to be taken over.
15101 (exec_make_note_section): New function, target vector method.
15102 * defs.h (exec_set_find_memory_regions): Export prototype.
15103 * procfs.c (proc_find_memory_regions): New function, corefile method.
15104 (procfs_make_note_section): New function, corefile method.
15105 (init_procfs_ops): Set new target vector pointers.
15106 (find_memory_regions_callback): New function.
15107 (procfs_do_thread_registers): New function.
15108 (procfs_corefile_thread_callback): New function.
15109 * sol-thread.c (sol_find_memory_regions): New function.
15110 (sol_make_note_section): New function.
15111 (init_sol_thread_ops): Initialize new target vectors.
15112 * inftarg.c (inftarg_set_find_memory_regions): New function.
15113 Allow to_find_memory_regions vector to be taken over.
15114 (inftarg_set_make_corefile_notes): New function.
15115 Allow to_make_corefile_notes vector to be taken over.
15116 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15117 interface layer if not target_has_execution (may be a corefile).
15118 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15119 * config/sparc/sun4sol2.mh: Ditto.
15120 * config/alpha/alpha-linux.mh: Ditto.
15121 * config/arm/linux.mh: Ditto.
15122 * config/i386/x86-64linux.mh: Ditto.
15123 * config/ia64/linux.mh: Ditto.
15124 * config/m68k/linux.mh: Ditto.
15125 * config/mips/linux.mh: Ditto.
15126 * config/powerpc/linux.mh: Ditto.
15127 * config/sparc/linux.mh: Ditto.
15128
c6b92abd
MS
151292002-01-07 Michael Snyder <msnyder@redhat.com>
15130
15131 * arm-linux-nat.c: Remove references to regcache.c internal data
15132 (registers[] and register_valid[]).
15133
4b09dc8c
MS
151342002-01-07 Michael Snyder <msnyder@redhat.com>
15135
abf22e64
AJ
15136 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15137 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
15138 symbol file and shlibs.
15139 * Makefile.in: Add rule for linux-proc.o.
15140 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15141 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15142 * config/arm/linux.mh: Ditto.
15143 * config/i386/linux.mh: Ditto.
15144 * config/i386/x86-64linux.mh: Ditto.
15145 * config/ia64/linux.mh: Ditto.
15146 * config/m68k/linux.mh: Ditto.
15147 * config/mips/linux.mh: Ditto.
15148 * config/powerpc/linux.mh: Ditto.
15149 * config/sparc/linux.mh: Ditto.
15150
c25b74ac
PM
151512002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15152
15153 * win32-nat.c: Add i386-tdep.h dependency.
15154
94cd915f
MS
151552002-01-07 Michael Snyder <msnyder@redhat.com>
15156
c7cccb76
MS
15157 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15158 instead of bfd_get_arch_size. Don't bail out just because
15159 there's no exec_bfd.
abf22e64 15160
34c0bd93
MS
15161 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15162 * p-valprint.c (pascal_object_print_value): Ditto.
15163 * somread.c (som_symtab_read): Ditto.
15164 * symfile.c (simple_free_overlay_region_table): Ditto.
15165 * valops.c (value_assign): Ditto.
15166
21c1c920
MS
15167 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15168 use tilde_expand and strerror for opening save-tracepoints file.
15169
5bbd998e
MS
15170 * thread-db.c (thread_db_new_objfile): Indendation fix.
15171
94cd915f
MS
15172 * infptrace.c (GDB_MAX_ALLOCA): New define.
15173 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 15174 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
15175 can be overridden with whatever value is appropriate to the host).
15176 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15177 alloca to allocate potentially large buffer.
15178 * rs6000-nat.c (child_xfer_memory): Ditto.
15179 * symm-nat.c (child_xfer_memory): Ditto.
15180 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15181
494e8a93
JSC
151822002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15183
15184 From Nick Clifton <nickc@redhat.com>
15185 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15186
d0e1d48e
MS
151872002-01-07 Michael Snyder <msnyder@redhat.com>
15188
abf22e64 15189 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
15190 Don't use exec_bfd if it's NULL.
15191
290b2c7a
MK
151922002-01-06 Mark Kettenis <kettenis@gnu.org>
15193
abf22e64 15194 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 15195
aef21287
AC
151962002-01-06 Andrew Cagney <ac131313@redhat.com>
15197
15198 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15199 * gnu-nat.c: Ditto.
15200
30efa627
AC
152012002-01-06 Andrew Cagney <ac131313@redhat.com>
15202
15203 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15204 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15205 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15206 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15207 z8k-coff have not been multi-arched. Update z8k-coff build
15208 status.
15209
9b4ff276
AC
152102002-01-06 Andrew Cagney <ac131313@redhat.com>
15211
15212 * MAINTAINERS: Mark a29k target as obsolete.
15213 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15214 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15215 comments.
15216 * NEWS: Note that a29k targets are obsolete.
15217 * a29k-tdep.c: Mark as obsolete.
15218 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15219 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15220 a29k-*-vxworks* targets as obsolete.
15221 * remote-adapt.c: Obsolete.
15222 * remote-eb.c: Obsolete.
15223 * remote-mm.c: Obsolete.
15224 * remote-udi.c: Obsolete.
15225 * config/a29k/a29k-udi.mt: Obsolete.
15226 * config/a29k/a29k.mt: Obsolete.
15227 * config/a29k/tm-a29k.h: Obsolete.
15228 * config/a29k/tm-vx29k.h: Obsolete.
15229 * config/a29k/vx29k.mt: Obsolete.
15230
a9011d31
AC
152312002-01-05 Andrew Cagney <ac131313@redhat.com>
15232
15233 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15234 with BFD_ENDIAN_BIG.
15235
9299404e
AC
152362002-01-05 Andrew Cagney <ac131313@redhat.com>
15237
15238 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15239 * configure, config.in: Re-generate.
15240 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15241 * defs.h: Do not include <endian.h>.
15242
7e89e357
JT
152432002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15244
15245 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15246 * config.in: Regenerate.
15247 * configure.in: Update copyright years.
15248 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15249 * configure: Regenerate.
15250 * i386bsd-nat.c: Update copyright years.
15251 (fill_gregset): Use regcache_collect.
15252 (fetch_inferior_registers): Only fetch integer registers
15253 if requested to do so. Add support for XMM registers
15254 using PT_GETXMMREGS.
15255 (store_inferior_registers): Only store integer registers
15256 if requested to do so. Add support for XMM registers
15257 using PT_SETXMMREGS.
15258 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15259 (store_inferior_registers): Remove.
15260 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15261 (fetch_elfcore_registers): New function.
15262 (i386nbsd_elfcore_fns): New.
15263 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15264 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15265 i386bsd-nat.o.
15266 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15267 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15268 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15269 * config/i386/tm-nbsd.h: Update copyright years.
15270 (HAVE_SSE_REGS): Define.
15271 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15272 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15273 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15274 (SIGCONTEXT_PC_OFFSET): Remove.
15275 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15276
a752853e
AC
152772002-01-05 Andrew Cagney <ac131313@redhat.com>
15278
15279 * configure.tgt: Remove powerpc-*-macos* target.
15280 * config/m68k/xm-mpw.h: Delete file.
15281 * config/xm-mpw.h: Delete file.
15282 * ser-mac.c: Delete file.
15283 * mpw-make.sed: Delete file.
15284 * mpw-config.in: Delete file.
15285 * mac-xdep.c: Delete file.
15286 * mac-gdb.r: Delete file.
15287 * mac-defs.h: Delete file.
15288 * mac-nat.c: Delete file.
15289 * config/powerpc/macos.mh: Delete file.
15290 * config/powerpc/macos.mt: Delete file.
15291 * config/powerpc/nm-macos.h: Delete file.
15292 * config/powerpc/tm-macos.h: Delete file.
15293 * source.c (openp, open_source_file): Remove obsolete code.
15294 * top.c (gdb_readline): Ditto.
15295 * utils.c (query): Ditto.
15296 * event-top.c (display_gdb_prompt): Ditto.
15297 * Makefile.in (ser-mac.o): Delete obsolete target.
15298 * NEWS: Update.
15299
d7449b42
AC
153002002-01-04 Andrew Cagney <ac131313@redhat.com>
15301
15302 * defs.h (BIG_ENDIAN): Delete macro definition.
15303 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15304 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15305 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15306 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15307 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15308 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15309 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15310 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15311 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15312 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15313 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15314 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15315 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15316 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15317 * gdbarch.c: Re-generate.
15318
356374e8
DJ
153192002-01-04 Daniel Jacobowitz <drow@mvista.com>
15320
15321 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15322 for core files.
15323
a2b8f8f8
JT
153242002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15325
15326 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15327
12466af9
AC
153282002-01-04 Andrew Cagney <ac131313@redhat.com>
15329
15330 * value.h (value_ptr): Delete typedef.
15331
3549ab40
JT
153322002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15333
15334 * i386nbsd-nat.c: Update copyright years.
15335 Include i386-tdep.h.
15336
fedbd091
EZ
153372002-01-04 Elena Zannoni <ezannoni@redhat.com>
15338
15339 * stabsread.c: Update copyright years.
15340
15341 From Debashis Mahata <debashis.mahata@wipro.com>:
15342 (read_struct_fields): Deal with Sun C compiler erroneous stab
15343 output for structs and unions.
fec8b34f 15344 Fix PR gdb/269.
fedbd091 15345
eb43544b
DJ
153462002-01-04 Daniel Jacobowitz <drow@mvista.com>
15347
15348 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15349 prototype.
15350
1514d34e
DJ
153512002-01-04 Daniel Jacobowitz <drow@mvista.com>
15352
15353 * cp-abi.c: Fix whitespace.
15354 (baseclass_offset): New wrapper function.
15355 * cp-abi.h (baseclass_offset): Add prototype.
15356 (struct cp_abi_ops): Add baseclass_offset pointer.
15357
15358 * valops.c (vb_match): Move to...
15359 * gnu-v2-abi.c (vb_match): here.
15360 * valops.c (baseclass_offset): Move to...
15361 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15362
15363 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15364
15365 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15366 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15367 * hpacc-abi.c (init_hpacc_ops): Likewise.
15368
7f8c9282
DJ
153692002-01-04 Daniel Jacobowitz <drow@mvista.com>
15370
15371 * valops.c (find_overload_match): Accept obj as a
15372 reference parameter. Update it before returning.
15373 * value.h (find_overload_match): Update prototype.
15374 * eval.c (evaluate_subexp_standard): Pass object to
15375 find_overload_match by reference.
15376
f23631e4
AC
153772002-01-03 Andrew Cagney <ac131313@redhat.com>
15378
15379 * valarith.c: Replace value_ptr with struct value pointer. Remove
15380 register attribute from value declarations.
15381 * valops.c: Ditto.
15382 * value.h: Ditto.
15383 * scm-lang.c (scm_lookup_name): Ditto.
15384
79e10fab 153852002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 15386
79e10fab
AC
15387 Abstract the functionality of iterating over mapped memory
15388 regions into a general purpose iterator function.
abf22e64 15389 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
15390 iterator for memory sections.
15391 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15392 (solib_mappings_callback): New function, callback for above.
15393 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15394 (info_mappings_callback): New function, callback for above.
15395
15396 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15397
c5ad026a
MK
153982002-01-01 Mark Kettenis <kettenis@gnu.org>
15399
d2a7c97a
MK
15400 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15401 * i386-tdep.c: Include "elf-bfd.h".
15402 (process_note_abi_tag_sections): New function.
15403 (i386_gdbarch_init): Add code to recognize various OS/ABI
15404 combinations.
15405
c5ad026a
MK
15406 * maint.c (_initialize_maint_cmds): Add missing \ in
15407 string-literal.
15408
a1a5b71e 15409For older changes see ChangeLog-2001
c906108c
SS
15410\f
15411Local Variables:
15412mode: change-log
15413left-margin: 8
15414fill-column: 74
15415version-control: never
15416End: