Fix PR gdb/844
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1e698235
DJ
12003-01-04 Daniel Jacobowitz <drow@mvista.com>
2
3 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
4 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
5 (COERCE_FLOAT_TO_DOUBLE): Remove.
6 * gdbarch.c: Regenerate.
7 * gdbarch.h: Regenerate.
8 * Makefile.in: Remove value_h from gdbarch_h.
9 * valops.c (coerce_float_to_double): New variable.
10 (default_coerce_float_to_double): Remove.
11 (standard_coerce_float_to_double): Remove.
12 (value_arg_coerce): Use coerce_float_to_double.
13 (_initialize_valops): Add "set coerce-float-to-double".
14 * value.h (default_coerce_float_to_double): Remove prototype.
15 (standard_coerce_float_to_double): Remove prototype.
16
17 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
18 prototyped.
19 * mdebugread.c (parse_symbol): Likewise.
20 * stabsread.c (define_symbol): Mark all functions as prototyped.
21
22 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
23 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
24 set_gdbarch_coerce_float_to_double.
25 * arm-tdep.c (arm_gdbarch_init): Likewise.
26 * frv-tdep.c (frv_gdbarch_init): Likewise.
27 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
28 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
29 * mips-tdep.c (mips_gdbarch_init): Likewise.
30 (mips_coerce_float_to_double): Remove.
31 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
32 (rs6000_coerce_float_to_double): Remove.
33 * s390-tdep.c (s390_gdbarch_init): Likewise.
34 * sh-tdep.c (sh_gdbarch_init): Likewise.
35 (sh_coerce_float_to_double): Remove.
36 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
37 (sparc_coerce_float_to_double): Remove.
38 * v850-tdep.c (v850_gdbarch_init): Likewise.
39 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
40 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
41 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
42 (hppa_coerce_float_to_double): Remove prototype.
43 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
44
f436a26a
DJ
452003-01-04 Daniel Jacobowitz <drow@mvista.com>
46
47 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
48
248f8055
DJ
492003-01-04 Daniel Jacobowitz <drow@mvista.com>
50
51 Suggested by Stewart Brown <sb24@avaya.com>:
52 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
53 in recursive calls. Handle TYPE_CODE_TYPEDEF.
54 (c_type_print_varspec_suffix): Likewise.
55
72cfdc76
MK
562003-01-04 Mark Kettenis <kettenis@gnu.org>
57
bfd260bb
MK
58 * configure.in: Don't set and AC_SUBST SUBDIRS.
59 * configure: Regenerated.
60
72cfdc76
MK
61 * configure.in: Remove code dealing with shared libraries.
62 * Makefile.in: Remove HLDFLAGS and HLDENV.
63 * configure: Regenerated.
64
c8b8a898
AC
652003-01-04 Andrew Cagney <ac131313@redhat.com>
66
67 * frame.c (deprecated_frame_xmalloc): New function.
68 (deprecated_set_frame_saved_regs_hack): New function.
69 (deprecated_set_frame_extra_info_hack): New function.
70 * frame.h (deprecated_frame_xmalloc): Declare.
71 (deprecated_set_frame_saved_regs_hack): Declare.
72 (deprecated_set_frame_extra_info_hack): Declare.
73
14abd0fb
MK
742003-01-04 Mark Kettenis <kettenis@gnu.org>
75
8ee53726
MK
76 * configure.in: Move code that provides the --enable-gdbtk option
77 right after the code that handles the --enable-tui option, and
78 polish it somewhat.
79 * configure: Regenerated.
80
14abd0fb
MK
81 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
82 AC_CHECK_FUNCS and remove the old check for pread64.
83 * acinclude.m4 (AC_GNU_SOURCE): New macro.
84 * acconfig.h (_GNU_SOURCE): Add.
85 (HAVE_PREAD64): Remove.
86 * configure, aclocal.m4, config.in: Regenerated.
87
b2fb4676
AC
882003-01-03 Andrew Cagney <ac131313@redhat.com>
89
90 * alpha-tdep.c: Use get_frame_saved_regs.
91 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
92 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
93 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
94 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
95 * vax-tdep.c, xstormy16-tdep.c: Ditto.
96
8dcde887
MK
972003-01-03 Mark Kettenis <kettenis@gnu.org>
98
99 * configure.in: Remove all use of the SUBDIRS variable; add
100 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
101 code providing the --enable-multi-ice option, and move it right in
102 front of the code that checks whether gdbserver is supported.
103 Polish that too.
104 * configure: Regenerated.
105 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
106 @SUBDIRS@.
107
8ccd593b
AC
1082003-01-03 Andrew Cagney <cagney@redhat.com>
109
110 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
111 * avr-tdep.c, cris-tdep.c: Ditto.
112 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
113 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
114
91151a06
MK
1152003-01-03 Mark Kettenis <kettenis@gnu.org>
116
117 * configure.in: Remove --enable-netrom option.
118 * configure: Regenerated.
119
8fe84d01
MK
1202003-01-03 Mark Kettenis <kettenis@gnu.org>
121
122 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
123 declaration for `struct re_pattern_buffer' instead.
124 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
125
f0394be6
JB
1262003-01-03 J. Brobecker <brobecker@gnat.com>
127
128 * mdebugread.c (parse_symbol): Count until the stEnd matching
129 the structure name.
130
27e9bf90
MK
1312003-01-02 Mark Kettenis <kettenis@gnu.org>
132
93d331ba
MK
133 * configure.in: Remove --with-cpu option.
134 subscripts. Remove evil changequotes here.
135 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
136 * config.in, configure: Regenerated.
137
27e9bf90
MK
138 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
139 * configure.in: Cleanup section that sources GDB and BFD configure
140 subscripts. Remove evil changequotes here.
141 * config.in, configure: Regenerated.
142
50abf9e5
AC
1432003-01-02 Andrew Cagney <ac131313@redhat.com>
144
145 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
146 frame accessor methods.
147 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
148 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
149 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
150 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
151 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
152 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
153 * z8k-tdep.c: Ditto.
154
287c1a40
MK
1552003-01-02 Mark Kettenis <kettenis@gnu.org>
156
f5dbc56d
MK
157 * configure.in: Remove UI_OUT configuration code.
158 * ada-lang.c: Update assuming UI_OUT is always true.
159 * Makefile.in (UIOUT_CFLAGS): Remove.
160 * configure: Regenerated.
161 * TODO: Remove blurb about elimination of -DUI_OUT.
162
627af7ea
MK
163 * configure.in: Move code that provides the --enable-gdbcli,
164 --enable-gdbmi options right before the code that handles the
165 --enable-tui option. Polish a bit.
166 * configure: Regenerated.
167
06825bd1
MK
168 * configure.in: Rewrite check for GNU regex and the
169 --without-included regex option, and move it into the "Checks for
170 library functions" section. This makes us use the system regex
171 again by default on systems with version 2 of the GNU C library.
172 This was apparently broken.
173 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
174 * acconfig.h (USE_INCLUDED_REGEX): Remove.
175 * config.in, configure: Regenerated.
176
287c1a40
MK
177 * configure.in: Move code that provides the --enable-tui option
178 before the "Checks for libraries" section. Polish the code
179 somewhat and set need_curses to yes if we build the TUI. Rewrite
180 code that looks for a library providing termcap functionality to
181 match more closely what's done in the Readline library, and move
182 it into to the "Checks for libraries" section.
183 * configure: Regenerated.
184 * Makefile.in (TERMCAP): Remove variable.
185 * config/i386/go32.mh (TERMCAP): Remove variable.
186
684e56bf
AC
1872003-01-02 Andrew Cagney <ac131313@redhat.com>
188
189 * MAINTAINERS: Mention gdb_mbuild.sh.
190 * gdb_mbuild.sh: Rewrite.
191
e1ea1d75
MK
1922003-01-02 Mark Kettenis <kettenis@gnu.org>
193
194 * configure.in: Fix typo in last change.
195 * config.in, configure: Regenerated.
196
1b831c93
AC
1972003-01-02 Andrew Cagney <ac131313@redhat.com>
198
199 * valarith.c (value_binop): Delete obsolete code and comments.
200 * configure.host: Ditto.
201 * buildsym.h (make_blockvector): Ditto.
202 * buildsym.c (make_blockvector): Ditto.
203 * defs.h (enum language): Ditto.
204 (chill_demangle): Ditto.
205 * elfread.c (elf_symtab_read): Ditto.
206 * dwarfread.c (CHILL_PRODUCER): Ditto.
207 (set_cu_language): Ditto.
208 (handle_producer): Ditto.
209 * expprint.c (print_subexp): Ditto.
210 * gdbtypes.c (chill_varying_type): Ditto.
211 * gdbtypes.h (builtin_type_chill_bool): Ditto.
212 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
213 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
214 (chill_varying_type): Ditto.
215 * language.h (_LANG_chill): Ditto.
216 * language.c (binop_result_type, integral_type): Ditto.
217 (character_type, string_type, structured_type): Ditto.
218 (lang_bool_type, binop_type_check): Ditto.
219 * stabsread.h (os9k_stabs): Ditto.
220 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
221 (define_symbol, read_type, read_struct_fields): Ditto.
222 (read_array_type, read_enum_type, read_huge_number): Ditto.
223 (read_range_type, start_stabs): Ditto.
224 * symfile.c (init_filename_language_table): Ditto.
225 (add_psymbol_with_dem_name_to_list): Ditto.
226 * symtab.c (symbol_init_language_specific): Ditto.
227 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
228 * symtab.h (struct general_symbol_info): Ditto.
229 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
230 * typeprint.c (typedef_print): Ditto.
231 * utils.c (fprintf_symbol_filtered): Ditto.
232 * valops.c (value_cast, search_struct_field, value_slice): Delete
233 obsolete code.
234 (varying_to_slice): Delete function.
235 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
236 (varying_to_slice): Delete declaration.
237 * MAINTAINERS: Update.
238
8bb2c122
MK
2392003-01-02 Mark Kettenis <kettenis@gnu.org>
240
97bf5e38
MK
241 * configure.in: Reorganize "Checks for library functions section"
242 a bit. Remove check for `btowc' and `isascii' functions.
243 * configure: Regenerated.
244
5ee754fc
MK
245 * acconfig.h (_MSE_INT_H): Remove.
246 * configure.in: Create "Checks for header files" section, and move
247 appropriate tests there. Don't check for objlist.h, wchar.h,
248 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
249 misdetection fix. Also add "Checks for types", "Checks for
250 compiler characteristics" and "Checks for library functions"
251 sections.
252 * config.in, configure: Regenerated.
253
8bb2c122
MK
254 * configure.in: Create "Checks for programs" section, and move
255 appropriate tests there.
256
9a156167
MK
2572003-01-01 Mark Kettenis <kettenis@gnu.org>
258
259 * configure.in: Create "Checks for libraries" section, and move
260 appropriate tests there. Cleanup check for wctype in libw. Use
261 AC_SEARCH_LIBS to see whether we need libsocket.
262 * configure: Regenerated.
263
3250596b
MK
2642002-12-31 Mark Kettenis <kettenis@gnu.org>
265
266 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
267 * config.in, configure: Regenerated.
268
9608ab8b
MK
2692002-12-31 Mark Kettenis <kettenis@gnu.org>
270
271 * gdb_dirent.h: Cleanup and update code to match the example in
272 the Autoconf manual.
273 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
274 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
275 * configure: Regenerated.
276
7ee21aad
AF
2772002-12-30 Adam Fedor <fedor@gnu.org>
278
279 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
280 (yylex): Initialize c to avoid uninitialized warning.
281
4c8eeedd
KH
2822002-12-29 Kazu Hirata <kazu@cs.umass.edu>
283
284 * doc/fdl.texi: Revert the last change.
285
6f2ecac5
MK
2862002-12-29 Mark Kettenis <kettenis@gnu.org>
287
288 * tracepoint.c (ISATTY): Removed.
289
60383d10
JB
2902002-12-26 J. Brobecker <brobecker@gnat.com>
291
292 Continuing work to convert the hppa targets to multiarch partil.
293
294 * hppa-tdep.c: Add some missing forward declarations.
295 (frameless_function_invocation): Prefix the function name
296 by "hppa_" to avoid polluting the namespace. Update all calls
297 to use the new function name.
298 (saved_pc_after_call): Ditto.
299 (init_extra_frame_info): Ditto.
300 (frame_chain): Ditto.
301 (push_dummy_frame): Ditto.
302 (target_read_pc): Ditto.
303 (target_write_pc): Ditto.
304 (in_solib_call_trampoline): Ditto.
305 (in_solib_return_trampoline): Ditto.
306 (skip_trampoline_code): Ditto.
307 (hppa_read_fp): New function, renamed from target_read_fp.
308 (hppa_target_read_fp): New function, using hppa_read_fp.
309 This function conforms to the function profile for the
310 READ_FP gdbarch method.
311 (hppa_extract_struct_value_address): New function, extracted
312 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
313 macro.
314 (hppa_frame_num_args): New function.
315 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
316
317 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
318 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
319 for the switch to multiarch partial.
320 Update some of the macros definitions to match some changes
321 described above in the name of the function they are calling.
322 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
323 not be straightforward to convert. Do now wrap it inside
324 "#if !... #endif" to remember that this macro has still not
325 been taken care of.
326 (FIX_CALL_DUMMY): Likewise.
327
60e1ff27
JB
3282002-12-26 J. Brobecker <brobecker@gnat.com>
329
330 Continuing work to convert the hppa targets to multiarch partial.
331
60383d10 332 * hppa-tdep.c (hppa_register_raw_size): New function replacing
60e1ff27
JB
333 the body of macro REGISTER_RAW_SIZE.
334 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
335 config/pa/tm-hppah.h. These functions will be used to initialize
336 the gdbarch structure.
337 (hppa_hpux_pc_in_sigtramp): New function.
338 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
339 (hppa_hpux_frame_base_before_sigtramp): New function.
340 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
341 Add gdbcore.h #include.
342 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
343 of this gdbarch-eligible macro to a call to the new associated
344 function.
345 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
346 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
347 into a call to the new associated function.
348 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
349 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
350 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
351
6c756a30
DC
3522002-12-24 David Carlton <carlton@math.stanford.edu>
353
354 * config/sparc/tm-sparc.h: Delete duplicate definition of
355 DEPRECATED_PC_IN_CALL_DUMMY.
356
96f026fc
KB
3572002-12-24 Kevin Buettner <kevinb@redhat.com>
358
359 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
360 $(gdb_assert_h).
361 * configure.tgt: Recognize mips64*-*-linux*.
362 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
363 (supply_32_bit_reg): New function.
364 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
365 (fill_gregset): Use regcache_collect() instead of
366 deprecated_registers[].
367 (register_addr): Change name to mips_linux_register_addr().
368 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
369 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
370 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
371 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
372 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
373 (MIPS64_LINUX_JB_PC): New defines.
374 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
375 (mips64_elf_fpregset_t): New typedefs.
376 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
377 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
378 (mips64_linux_register_addr, set_mips_linux_register_addr)
379 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
380 (init_register_addr_data)
381 New functions.
382 (fetch_core_registers): Add support for core file formats with 64-bit
383 registers.
384 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
385 (register_addr_data): New static global variable.
386 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
387 gdbarch_register_osabi() for each MIPS machine.
388 * config/mips/linux64.mt: New file.
389 * config/mips/tm-linux64.h: New file.
390
5a24b7e3
AF
3912002-12-23 Adam Fedor <fedor@gnu.org>
392
393 * maint.c (maintenance_demangle): Add switch to demangle
394 ObjC language symbols as well.
395
9d1127c5
AF
3962002-12-23 Adam Fedor <fedor@gnu.org>
397
398 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
399 last argument from complaint function call.
400
96f026fc 4012002-12-23 Kevin Buettner <kevinb@redhat.com>
bcf16802
KB
402
403 * exec.c (print_section_info): Add FIXME comments regarding format
404 string choices.
405
710686b3
DJ
4062002-12-23 Daniel Jacobowitz <drow@mvista.com>
407
408 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
409 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
410
4112002-12-23 Rodney Brown <rbrown64@csc.com.au>
412
413 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
414
e45febe2
DC
4152002-12-23 David Carlton <carlton@math.stanford.edu>
416
417 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
418 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
419 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
420 information associated to a minsym, not lookup_symbol.
421
2213a65d
MK
4222002-12-21 Mark Kettenis <kettenis@gnu.org>
423
424 * x86-64-tdep.h (x86_64_init_abi): New prototype.
425 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
426 (x86_64_init_abi): Make non-static. Set number of pseudo
427 registers to 0.
428 (x86_64_gdbarch_init): Remove function.
429 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
430 Remove code dealing with dissambly.
431 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
432 (_initialize_x86_64_linux_tdep): New function.
433 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
434 i386-tdep.o.
435
05816f70
MK
4362002-12-14 Mark Kettenis <kettenis@gnu.org>
437
438 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
439 (struct gdb_osabi_handler): Remove member `arch'. Add member
440 `arch_info'.
441 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
442 construct a `struct bfd_arch_info' and store it in the `struct
443 gdb_osabi_handler' that is created.
444 (gdbarch_init_osabi): Check for compatibility based on machine
445 type and architecture.
446 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
447 comment.
448 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
449 second argument in call to gdbarch_register_osabi.
450 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
451 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
452 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
453 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
454 * arm-tdep.c (_initialize_arm_tdep): Likewise.
455 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
456 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
457 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
458 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
459 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
460 * i386-tdep.c (_initialize_i386_tdep): Likewise.
461 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
462 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
463 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
464 _initialize_i386bsd_tdep and updated likewise.
465 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
466 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
467 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
468 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
469 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
470 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
471 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
472 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
473 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
474 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
475
743b930b
KB
4762002-12-20 Kevin Buettner <kevinb@redhat.com>
477
478 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
479 DT_MIPS_RLD_MAP case for 64-bit targets.
480
3758ac48
KB
4812002-12-20 Kevin Buettner <kevinb@redhat.com>
482
483 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
484 ``temp_saved_regs'', not the pointer or other storage contiguous
485 to this pointer.
486
19ed69dd
KB
4872002-12-20 Kevin Buettner <kevinb@redhat.com>
488
489 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
490 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
491 (mips_linux_get_longjmp_target): Delete declarations.
492 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
493 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
494 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
495 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
496 (mips_linux_get_longjmp_target)
497 (mips_linux_svr4_fetch_link_map_offsets): Make static.
498 (mips_linux_init_abi): New function.
499 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
500
7990a578
EZ
5012002-12-19 Keith Seitz <keiths@redhat.com>
502
503 patch committed by Elena Zannoni <ezannoni@redhat.com>
504 * thread.c (do_captured_list_thread_ids): Call prune_threads and
505 target_find_new_threads. Fix for PR mi/669.
506
84fba31b
DC
5072002-12-19 David Carlton <carlton@math.stanford.edu>
508
509 * linespec.c (decode_line_1): Move code into decode_all_digits.
510 (decode_all_digits): New function.
511
2fc70c99
KB
5122002-12-19 Kevin Buettner <kevinb@redhat.com>
513
514 * exec.c (print_section_info): Select a format string to use with
515 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
516
2f107107
AC
5172002-12-18 Andrew Cagney <ac131313@redhat.com>
518
519 * frame.c (deprecated_update_current_frame_pc_hack): Replace
520 deprecated_update_current_frame_pc_hack.
521 (deprecated_update_frame_base_hack): New function.
522 * frame.h (deprecated_update_frame_pc_hack): Replace
523 (deprecated_update_frame_base_hack): Declare.
524 * infrun.c (normal_stop): Update.
525
c9012c71
AC
5262002-12-18 Andrew Cagney <ac131313@redhat.com>
527
528 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
529 frame_extra_info_zalloc.
530 (rs6000_frame_args_address): Use get_frame_extra_info.
531 (frame_get_saved_regs): Use get_frame_saved_regs.
532 (frame_initial_stack_address): Use get_frame_saved_regs and
533 get_frame_extra_info.
534 (frame_initial_stack_address): Use get_frame_extra_info.
535
6819ae38
KB
5362002-12-17 Kevin Buettner <kevinb@redhat.com>
537
538 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
539 array size.
540 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
541 checks for r3900_regnames[].
542
625602f2
RE
5432002-12-17 Richard Earnshaw <rearnsha@arm.com>
544
545 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
546 All uses changed
547 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
548
38d49aff
DC
5492002-12-17 David Carlton <carlton@math.stanford.edu>
550
551 * symtab.c (lookup_partial_symbol): Don't search past the end of
552 the partial symbols.
553
30f7db39
AC
5542002-12-17 Andrew Cagney <ac131313@redhat.com>
555
556 * stack.c (frame_info): Use get_frame_saved_regs.
557 * breakpoint.c (until_break_command): Use get_frame_pc.
558
23136709
KB
5592002-12-16 Kevin Buettner <kevinb@redhat.com>
560
561 * buildsym.c (block_end_complaint, anon_block_end_complaint)
562 (innerblock_complaint, innerblock_anon_complaint)
563 (blockvector_complaint): Delete deprecated complaint structs.
564 (finish_block, make_blockvector, end_symtab): Replace calls
565 to complain() with calls to complaint().
566 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
567 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
568 (unexpected_type_complaint, bad_sclass_complaint)
569 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
570 Delete deprecated complaint structs.
571 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
572 Replace calls to complain() with calls to complaint().
573 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
574 (unknown_symtype_complaint, unknown_symchar_complaint)
575 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
576 (lbrac_mismatch_complaint, repeated_header_complaint)
577 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
578 Delete deprecated complaint structs.
579 (unknown_symtype_complaint, lbrac_mismatch_complaint)
580 (repeated_header_complaint)
581 (function_outside_compiliation_unit_complaint): New functions.
582 (add_old_header_file, find_corresponding_bincl_psymtab)
583 (set_namestring, find_stab_function_addr, read_dbx_symtab)
584 (process_one_symbol): Replace calls to complain() with, possibly
585 indirect, calls to complaint().
586 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
587 (unknown_attribute_form, unknown_attribute_length)
588 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
589 (const_ignored, botched_modified_type, op_deref2, op_deref4)
590 (basereg_not_handled, dup_user_type_allocation)
591 (dup_user_type_definition, missing_tag, bad_array_element_type)
592 (subscript_data_items, unhandled_array_subscript_format)
593 (unknown_array_subscript_format, not_row_major)
594 (missing_at_name): Delete deprecated complaint structs.
595 (bad_die_ref_complaint, unknown_attribute_form_complaint)
596 (dup_user_type_definition_complaint)
597 (bad_array_element_type_complaint): New functions.
598 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
599 (decode_subscript_data_item, dwarf_read_array_type)
600 (read_tag_string_type, read_subroutine_type, read_func_scope)
601 (locval, scan_partial_symbols, decode_modified_type)
602 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
603 (attribute_size): Replace calls to complain() with, possibly
604 indirect, calls to complaint().
605 * elfread.c (section_info_complaint, section_info_dup_complaint)
606 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
607 Delete deprecated complaint structs.
608 (elf_symtab_read, elfstab_offset_sections): Replace calls to
609 complain() with calls to complaint().
610 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
611 struct.
612 (stub_noname_complaint): New function.
613 (check_typedef, add_mangled_type): Replace calls to complain()
614 with calls to complaint().
615 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
616 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
617 (hpread_unhandled_type_complaint, hpread_struct_complaint)
618 (hpread_array_complaint, hpread_type_lookup_complaint)
619 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
620 (hpread_unhandled_common_complaint)
621 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
622 struct definitions and declarations.
623 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
624 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
625 Replace calls to complain() with, possibly indirect, calls to
626 complaint().
627 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
628 Likewise.
629 * mdebugread.c (bad_file_number_complaint, index_complaint)
630 (aux_index_complaint, block_index_complaint)
631 (unknown_ext_complaint, unknown_sym_complaint)
632 (unknown_st_complaint, block_overflow_complaint)
633 (basic_type_complaint, unknown_type_qual_complaint)
634 (array_index_type_complaint, bad_tag_guess_complaint)
635 (block_member_complaint, stEnd_complaint)
636 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
637 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
638 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
639 (bad_continued_complaint, bad_rfd_entry_complaint)
640 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
641 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
642 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
643 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
644 complaint structs.
645 (index_complaint, unknown_ext_complaint, basic_type_complaint)
646 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
647 (unexpected_type_code_complaint)
648 (function_outside_compilation_unit_complaint): New functions.
649 (parse_symbol, parse_type, upgrade_type, parse_procedure)
650 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
651 Replace calls to complain() with, possibly indirect calls to
652 complaint().
653 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
654 Delete deprecated complaint structs.
655 (lookup__objc_class, lookup_child_selector): Replace complain()
656 with complaint().
657 * remote-vx.c (cant_contact_target): Delete deprecated complaint
658 struct.
659 (vx_lookup_symbol): Replace complain() with complaint().
660 * stabsread.c (invalid_cpp_abbrev_complaint)
661 (invalid_cpp_type_complaint, member_fn_complaint)
662 (const_vol_complaint, error_type_complaint)
663 (invalid_member_complaint, range_type_base_complaint)
664 (reg_value_complaint, vtbl_notfound_complaint)
665 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
666 (unresolved_sym_chain_complaint, stabs_general_complaint)
667 (lrs_general_complaint, multiply_defined_struct): Delete
668 deprecated complaint structs.
669 (invalid_cpp_abbrev_complaint, ref_value_complaint)
670 (stabs_general_complaint, lrs_general_complaint)
671 (msg_unknown_complaint): New functions.
672 (dbx_lookup_type, read_cfront_baseclasses)
673 (read_cfront_member_functions, resolve_symbol_reference)
674 (define_symbol, resolve_live_range, add_live_range, read_type)
675 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
676 (read_one_struct_field, read_baseclasses, read_tilde_fields)
677 (read_cfront_static_fields, attach_fields_to_type)
678 (complain_about_struct_wipeout, read_range_type)
679 (common_block_start, common_block_end, cleanup_undefined_types)
680 (scan_file_globals): Replace complain() with complaint().
681 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
682 Delete deprecated complaint struct declarations.
683 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
684 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
685 (bf_not_found_complaint, ef_complaint, eb_complaint)
686 (function_outside_compilation_unit_complaint): New functions.
687 (record_include_begin, record_include_end, enter_line_range)
688 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
689 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
690 complain() with complaint().
691
1a14e234
AC
6922002-12-16 Andrew Cagney <ac131313@redhat.com>
693
694 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
695 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
696 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
697 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
698 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
699 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
700 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
701 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
702 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
703 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
704 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
705 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
706 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
707 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
708 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
709 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
710 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
711 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
712 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
713 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
714 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
715 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
716 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
717 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
718 * config/m88k/xm-dgux.h: Delete.
719 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
720 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
721 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
722 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
723 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
724 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
725 * ch-valprint.c: Delete.
726
04e68871
DJ
7272002-12-15 Daniel Jacobowitz <drow@mvista.com>
728
729 * infrun.c (handle_inferior_event): Rearrange code to resume if
730 no catchpoint triggers for an event.
731
deb3b17b
DJ
7322002-12-15 Daniel Jacobowitz <drow@mvista.com>
733
734 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
735 and TARGET_WAITKIND_VFORKED cases.
736
675bf4cb
DJ
7372002-12-15 Daniel Jacobowitz <drow@mvista.com>
738
739 * infrun.c (handle_inferior_event): Assume that catchpoints
740 are not affected by DECR_PC_AFTER_BREAK.
741
81e56179
DJ
7422002-12-15 Daniel Jacobowitz <drow@mvista.com>
743
744 * target.c (update_current_target): Don't inherit DONT_USE.
745 * target.h (struct target_ops): Remove DONT_USE.
746 (target_next): Remove macro.
747
a3edc55b
MK
7482002-12-15 Mark Kettenis <kettenis@gnu.org>
749
750 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
751
b508a996
RE
7522002-12-14 Richard Earnshaw <rearnsha@arm.com>
753
754 * arm-tdep.c (convert_from_extended): New argument to hold the
755 type of floating point result we want to convert to. Make input
756 argument const. Fix all callers.
757 (convert_to_extended): Similarly.
758 (arm_extract_return_value): Now takes a regcache argument. Change
759 code to use regcache accessor functions. Correctly extract
760 smaller-than-word results on big-endian machines.
761 (arm_store_return_value): Now takes a regcache argument. Change
762 code to use regcache accessor functions. Correctly zero/sign extend
763 smaller than word results before storing into r0.
764 (arm_gdbarch_init): Register new-style extract_return_value and
765 store_return_value functions.
766
3197744f
MS
7672002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
768
769 * thread-db.c (thread_from_lwp): Uniquify error msg.
770 (lwp_from_thread): Ditto.
771 (check_event): Ditto.
772 (find_new_threads_callback): Ditto.
773 (thread_db_pid_to_str): Ditto.
774
6baff1d2
AC
7752002-12-13 Andrew Cagney <ac131313@redhat.com>
776
777 * frame.h (get_frame_saved_regs): Declare.
778 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
779 pointer.
780 * frame.c (get_frame_saved_regs): New function.
781 (frame_saved_regs_zalloc): Return the allocated saved_regs.
782
b87efeee
AC
7832002-12-13 Andrew Cagney <ac131313@redhat.com>
784
785 * frame.c (deprecated_update_current_frame_pc_hack): New
786 function.
787 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
788 * infrun.c (normal_stop): Use said function instead of directly
789 modifying the frame's PC.
790
3de2dc4f
AO
7912002-12-13 Alexandre Oliva <aoliva@redhat.com>
792
793 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
794
fe29b929
KB
7952002-12-13 Kevin Buettner <kevinb@redhat.com>
796
797 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
798 config/mips/tm-irix6.h (NUM_REGS): Delete.
799 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
800 (temp_saved_regs): Declare as a pointer rather than an array.
801 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
802 that ``temp_saved_regs'' has storage allocated to it and that
803 it's the correct size.
804
c04e0a08
JJ
8052002-12-13 Jeff Johnston <jjohnstn@redhat.com>
806
807 * defs.h (init_last_source_visited): New prototype.
808 (add_path): Ditto.
809 * source.c (add_path): New function that adds to a specified path.
810 (mod_path): Change to call add_path.
811 (init_last_source_visited): New function to allow interfaces to
812 initialize static variable: last_source_visited. Part of fix
813 for PR gdb/741.
814 * Makefile.in: Add support for mi/mi-cmd-env.c.
815
c689142b
AC
8162002-12-13 Andrew Cagney <ac131313@redhat.com>
817
818 * frame.h (frame_id_unwind): Declare.
819 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
820 id_unwind_cache.
821 (frame_id_unwind_ftype): Declare.
822 * frame.c (frame_id_unwind): New function.
823 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
824 (create_new_frame, get_prev_frame): Pass id_unwind to
825 set_unwind_by_pc.
826 (frame_saved_regs_id_unwind): New function.
827 (frame_saved_regs_id_unwind): New function.
828 * dummy-frame.c (dummy_frame_id_unwind): New function.
829 (struct dummy_frame): Add field id.
830 (generic_push_dummy_frame): Initialize `id'.
831 * dummy-frame.h (dummy_frame_id_unwind): Declare.
832
18ea5ba4
AC
8332002-12-13 Andrew Cagney <ac131313@redhat.com>
834
835 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
836 pass that to set_momentary_breakpoint. Move comments to where they
837 belong.
838 * frame.h (set_current_frame): Delete declaration.
839 * frame.c (set_current_frame): Delete function.
840
2c517d0e
AC
8412002-12-13 Andrew Cagney <ac131313@redhat.com>
842
843 * frame.c (frame_extra_info_zalloc): New function.
844 * frame.h (frame_extra_info_zalloc): Declare.
845
516b1f28
JB
8462002-12-13 Joel Brobecker <brobecker@gnat.com>
847
848 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
849 in the previous prototype change to set_momentary_breakpoint.
850
fbb265fc
DJ
8512002-12-12 Daniel Jacobowitz <drow@mvista.com>
852
853 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
854 and saw_child_exec.
855 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
856 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
857 (stop_stepping): Remove outdated check for child vfork events.
858
4fd7f624
AC
8592002-12-12 Andrew Cagney <ac131313@redhat.com>
860
861 * GDB 5.3 released from gdb_5_3-branch.
862
4c9ba7e0
DJ
8632002-12-11 Daniel Jacobowitz <drow@mvista.com>
864
865 * corelow.c (init_core_ops): Delete references to to_require_attach
866 and to_require_detach.
867 * exec.c (init_exec_ops): Likewise.
868 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
869 hppa_require_detach directly.
870 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
871 * inftarg.c (child_detach): Remove.
872 (child_detach_from_process): Rename to child_detach, remove
873 after_fork argument.
874 (child_attach): Remove.
875 (child_attach_to_process): Rename to child_attach, remove after_fork
876 argument.
877 (init_child_ops): Delete references to to_require_attach
878 and to_require_detach.
879 * infttrace.c (hppa_require_attach): Update comment.
880 * target.c (cleanup_target, update_current_target)
881 (init_dummy_target, setup_target_debug): Delete references to
882 to_require_attach and to_require_detach.
883 (find_default_require_detach, find_default_require_attach)
884 (debug_to_require_attach, debug_to_require_detach): Remove
885 functions.
886 * target.h (struct target_ops): Remove to_require_attach
887 and to_require_detach.
888 (target_require_attach, target_require_detach): Delete macros.
889 (find_default_require_detach, find_default_require_attach): Delete
890 prototypes.
891 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
892
0394eb2a
AC
8932002-12-11 Andrew Cagney <ac131313@redhat.com>
894
895 * frame.c (get_frame_extra_info): New function.
896 * frame.h (get_frame_extra_info): Declare.
897
818dd999
AC
8982002-12-11 Andrew Cagney <ac131313@redhat.com>
899
900 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
901 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
902 with `struct frame_id'.
903 (set_longjmp_resume_breakpoint): Ditto.
904 * infrun.c (handle_inferior_event): Update.
905 * breakpoint.c (watch_command_1, until_break_command): Update.
906 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
907 (handle_inferior_event, step_over_function): Update.
908 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
909 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
910 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
911 * infcmd.c (finish_command, run_stack_dummy): Update.
912
4d3c2250
KB
9132002-12-11 Kevin Buettner <kevinb@redhat.com>
914
915 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
916 (dwarf2_non_const_array_bound_ignored)
917 (dwarf2_missing_line_number_section)
918 (dwarf2_statement_list_fits_in_line_number_section)
919 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
920 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
921 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
922 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
923 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
924 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
925 (dwarf2_missing_member_fn_type_complaint)
926 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
927 (dwarf2_const_value_length_mismatch)
928 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
929 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
930 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
931 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
932 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
933 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
934 complaints using deprecated struct..
935 (dwarf2_non_const_array_bound_ignored_complaint)
936 (dwarf2_complex_location_expr_complaint)
937 (dwarf2_unsupported_at_frame_base_complaint)
938 (dwarf2_const_value_length_mismatch_complaint)
939 (dwarf2_macros_too_long_complaint)
940 (dwarf2_macro_malformed_definition_complaint)
941 (dwarf2_invalid_attrib_class_complaint): New functions.
942 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
943 (read_structure_scope, read_array_type, read_common_block)
944 (read_tag_pointer_type, read_base_type, read_partial_die)
945 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
946 (new_symbol, dwarf2_const_value, read_type_die)
947 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
948 (parse_macro_definition, dwarf_decode_macros): Replace calls to
949 complain() with, possibly indirect, calls to complaint().
950
95486978
AC
9512002-12-11 Andrew Cagney <cagney@redhat.com>
952
953 * frame.c (deprecated_get_frame_saved_regs): Rename
954 get_frame_saved_regs.
955 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
956 * sparc-tdep.c: Update.
957 * hppa-tdep.c: Update.
958 * h8500-tdep.c: Update.
959
321432c0
KB
9602002-12-11 Kevin Buettner <kevinb@redhat.com>
961
962 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
963 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
964 ``char *'' for return and parameter types.
965 * gdbarch.h, gdbarch.c: Regenerate.
966 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
967 return type from ``char *'' to ``const char *''.
968 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
969 const.
970
5a4d6ff4
MK
9712002-12-11 Mark Kettenis <kettenis@gnu.org>
972
973 * i386-tdep.c: Include "dummy-frame.h".
974 (i386_frame_chain, i386_frame_saved_pc): Replace
975 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
976 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
977
a5afb99f
AC
9782002-12-10 Andrew Cagney <cagney@redhat.com>
979
980 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
981 Change to a function with predicate.
982 * gdbarch.h, gdbarch.c: Re-generate.
983 * frame.c (get_prev_frame): Update. Test
984 DEPRECATED_INIT_FRAME_PC_P.
985 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
986 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
987 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
988 * alpha-tdep.c (alpha_gdbarch_init): Update.
989 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
990 * mips-tdep.c (mips_gdbarch_init): Update.
991 * i386-interix-tdep.c (i386_interix_init_abi): Update.
992 * arm-tdep.c: Update comments.
993 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
994 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
995 * frv-tdep.c (frv_gdbarch_init): Ditto.
996 * x86-64-tdep.c (x86_64_init_abi): Ditto.
997 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
998 * s390-tdep.c (s390_gdbarch_init): Ditto.
999 * v850-tdep.c (v850_gdbarch_init): Ditto.
1000 * vax-tdep.c (vax_gdbarch_init): Ditto.
1001 * sh-tdep.c (sh_gdbarch_init): Ditto.
1002 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1004 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1006 * i386-tdep.c (i386_gdbarch_init): Ditto.
1007 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1008 * cris-tdep.c (cris_gdbarch_init): Ditto.
1009 * avr-tdep.c (avr_gdbarch_init): Ditto.
1010 * arm-tdep.c (arm_gdbarch_init): Ditto.
1011 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1012 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1013
6604731b
DJ
10142002-12-10 Daniel Jacobowitz <drow@mvista.com>
1015
1016 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1017 CHILD_FOLLOW_FORK.
1018 * hppah-nat.c (saved_vfork_pid): Add.
1019 (child_post_follow_vfork): Remove.
1020 (child_follow_fork): New function.
1021 (child_wait): Call detach_breakpoints after receiving the child vfork.
1022 Call child_resume directly instead of going through resume ().
1023 Make sure we have the exec before reporting the vfork.
1024 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1025 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1026 (follow_fork): New function. Call target_follow_fork.
1027 (follow_inferior_reset_breakpoints): New function broken out from
1028 old follow_inferior_fork.
1029 (resume): Remove hack to follow exec after vfork.
1030 * inftarg.c (child_post_follow_vfork): Remove.
1031 (child_follow_fork): New function.
1032 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1033 * target.c (cleanup_target): Replace to_post_follow_vfork with
1034 to_follow_fork.
1035 (update_current_target): Likewise.
1036 (setup_target_debug): Likewise.
1037 (debug_to_post_follow_vfork): Remove.
1038 (debug_to_follow_fork): New function.
1039 * target.h (struct target_ops): Replace to_post_folow_vfork with
1040 to_follow_fork.
1041 (child_post_follow_vfork): Remove prototype.
1042 (child_follow_fork): Add prototype.
1043 (target_post_follow_vfork): Remove macro.
1044 (target_follow_fork): Add macro.
1045
7d2830a3
DJ
10462002-12-10 Daniel Jacobowitz <drow@mvista.com>
1047
1048 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1049 (child_post_follow_vfork): Cancel pending exec event if we follow
1050 the parent.
1051 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1052 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1053 event at the following wait call if necessary.
1054 * infrun.c (follow_vfork): Don't follow_exec here.
1055 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1056 case about HP/UX 10.20. Remove code pushed down to
1057 hppah-nat.c:child_wait.
1058 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1059 vfork_in_flight is set.
1060
10612002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
1062
1063 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1064 for the parent's fork event.
1065 * infrun.c (handle_inferior_event): Only expect one fork event.
1066 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1067 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1068
50631d4f
AC
10692002-12-10 Andrew Cagney <ac131313@redhat.com>
1070
bc124bd3
AC
1071 * PROBLEMS: Delete reference to PR gdb/725.
1072
50631d4f
AC
1073 * MAINTAINERS (gdb.c++): Add David Carlton.
1074
808013d1
DC
10752002-12-09 David Carlton <carlton@math.stanford.edu>
1076
1077 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1078 * cli/cli-cmds.c: Ditto.
1079
31deffe5
AC
10802002-12-09 Andrew Cagney <cagney@redhat.com>
1081
6cbda714
AC
1082 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1083 function address in <>.
31deffe5
AC
1084 * gdbarch.c: Re-generate.
1085
2692ddb3
DC
10862002-12-09 David Carlton <carlton@math.stanford.edu>
1087
1088 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1089
f3c39e76
DC
10902002-12-09 David Carlton <carlton@math.stanford.edu>
1091
1092 * linespec.c (symtab_from_filename): New function.
1093 (decode_line_1): Move code into symtab_from_filename.
1094
1b84163e
KB
10952002-12-09 Kevin Buettner <kevinb@redhat.com>
1096
1097 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1098
bdd78e62
AC
10992002-12-07 Andrew Cagney <ac131313@redhat.com>
1100
1101 * f-valprint.c (info_common_command): Use get_frame_pc.
1102 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1103 * ax-gdb.c (agent_command): Ditto.
1104 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1105 (rs6000_pop_frame): Ditto.
1106 (rs6000_frameless_function_invocation): Ditto.
1107 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1108 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1109 * macroscope.c (default_macro_scope): Ditto.
1110 * stack.c (print_frame_info_base): Ditto.
1111 (print_frame, frame_info, print_frame_label_vars): Ditto.
1112 (return_command, func_command, get_frame_language): Ditto.
1113 * infcmd.c (finish_command): Ditto.
1114 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1115 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1116 (break_at_finish_at_depth_command_1): Ditto.
1117 (break_at_finish_command_1): Ditto.
1118 (until_break_command, get_catch_sals): Ditto.
1119 * blockframe.c (func_frame_chain_valid): Ditto.
1120 (frameless_look_for_prologue): Ditto.
1121 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1122
408400e7
AC
11232002-12-08 Andrew Cagney <ac131313@redhat.com>
1124
1125 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1126 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1127
97f46953
AC
11282002-12-08 Andrew Cagney <ac131313@redhat.com>
1129
1130 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1131 to pure functions.
1132 * gdbarch.h, gdbarch.c: Re-generate.
1133 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1134 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1135
1136 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1137 declaration to a function returning a CORE_ADDR.
1138 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1139 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1140 (init_frame_pc_default): Ditto.
1141 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1142 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1143 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1144 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1145 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1146 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1147
1148 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1149 to init_frame_pc_noop.
1150 (i386_interix_init_frame_pc): Delete function.
1151 * z8k-tdep.c (init_frame_pc): Delete function.
1152 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1153 (INIT_FRAME_PC_FIRST): Ditto.
1154 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1155 (INIT_FRAME_PC_FIRST): Ditto.
1156 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1157 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1158 init_frame_pc_noop.
1159 (INIT_FRAME_PC_FIRST): Convert to an expression.
1160 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1161
8b36eed8
AC
11622002-12-08 Andrew Cagney <ac131313@redhat.com>
1163
1164 * blockframe.c: Use get_frame_base instead of directly accessing
1165 the `struct frame_info' member frame.
1166 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1167 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1168
aeeccc89
EZ
11692002-12-08 Elena Zannoni <ezannoni@redhat.com>
1170
1171 * Makefile.in (readline_h): Define.
1172 (completer.o): Depend on readline_h.
1173 (corelow.o): Ditto.
1174 (event-top.o): Ditto.
1175 (exec.o): Ditto.
1176 (solib.o): Ditto.
1177 (source.o): Ditto.
1178 (symfile.o): Ditto.
1179 (symmisc.o): Ditto.
1180 (top.o): Ditto.
1181 (tracepoint.o): Ditto.
1182 (utils.o): Ditto.
1183 (cli-dump.o): Ditto.
1184 (tui-hooks.o): Ditto.
1185 (tuiWin.o): Ditto.
1186
38017ce8
EZ
11872002-12-08 Elena Zannoni <ezannoni@redhat.com>
1188
1189 More cleanup from import of readline 4.3.
1190 * completer.h (complete_line, readline_line_completion_function):
1191 Update prototypes.
1192 (line_completion_function): Removed, not used outside of completer.c.
1193 * completer.c (readline_line_completion_function,
1194 complete_function, line_completion_function): Use const for first
1195 parameter.
1196 (line_completion_function): Make static.
1197 (filename_completer): filename_completion_function is now called
1198 rl_filename_completion_function
1199 * corelow.c: Include <readline/readline.h>.
1200 * exec.c: Ditto.
1201 * solib.c: Ditto.
1202 * source.c: Ditto.
1203 * symfile.c: Ditto.
1204 * symmisc.c: Ditto.
1205 * top.c (init_main): No need to coerce
1206 readline_line_completion_function anymore.
1207 * cli/cli-dump.c: Include <readline/readline.h>.
1208
75e3c1f9
AC
12092002-12-08 Andrew Cagney <ac131313@redhat.com>
1210
1211 * stack.c (frame_info): Use get_prev_frame.
1212 * blockframe.c (frame_address_in_block): Ditto.
1213 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1214 (rs6000_frameless_function_invocation): Ditto.
1215 (rs6000_frame_saved_pc): Ditto.
1216 (rs6000_frame_chain): Ditto.
1217 * arch-utils.c (init_frame_pc_default): Ditto.
1218
0d2b8049
AC
12192002-12-08 Andrew Cagney <ac131313@redhat.com>
1220
1221 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1222 Delete redundant definition.
1223
9255ee31
EZ
12242002-12-08 Elena Zannoni <ezannoni@redhat.com>
1225
1226 Import of readline 4.3:
1227 * cli/cli-cmds.c: Include readline/tilde.h.
1228 * cli/cli-setshow.c: Ditto.
1229 * defs.h: Don't declare tilde_expand anymore, since readline
1230 exports it.
1231
3442dad6 12322002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
1233
1234 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1235 -Werror on this file.
1236
52f87c51
AC
12372002-12-07 Andrew Cagney <ac131313@redhat.com>
1238
1239 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1240 the format name.
1241 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1242 * gdbarch.c: Regenerate.
1243
2ca6c561
AC
12442002-12-06 Andrew Cagney <ac131313@redhat.com>
1245
1246 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1247 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1248 provide a default value.
1249 * gdbarch.h, gdbarch.c: Regenerate.
1250 * frame.c (get_prev_frame): Update. Check
1251 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1252 * s390-tdep.c (s390_gdbarch_init): Update.
1253 * mips-tdep.c (mips_gdbarch_init): Update.
1254 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1255 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1256 * alpha-tdep.c (alpha_gdbarch_init): Update.
1257
e162d11b
EZ
12582002-12-06 Elena Zannoni <ezannoni@redhat.com>
1259
1260 * ia64-linux-nat.c: Include gdb_string.h.
1261 * alpha-nat.c: Ditto.
2b298b5d
EZ
1262 * ppc-linux-nat.c: Ditto.
1263 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1264 Update dependencies.
e162d11b 1265
aa0cd9c1
AC
12662002-12-05 Andrew Cagney <ac131313@redhat.com>
1267
1268 * gdbthread.h: Include "frame.h".
1269 (struct thread_info): Replace step_frame_address with
1270 step_frame_id.
1271 * inferior.h: Include "frame.h".
1272 (step_frame_id): Replace external variable step_frame_address.
1273 * gdbthread.h (save_infrun_state): Replace step_frame_address
1274 parameter with step_frame_id parameter.
1275 (load_infrun_state): Ditto.
1276 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1277 * infcmd.c (step_frame_id, step_1, step_once): Update.
1278 * thread.c (load_infrun_state, save_infrun_state): Update.
1279 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1280 (handle_inferior_event, step_over_function): Update.
1281 (normal_stop, context_switch, restore_inferior_status): Update.
1282 (struct inferior_status): Replace step_frame_address with
1283 step_frame_id.
1284
a9a9bd0f
DC
12852002-12-05 David Carlton <carlton@math.stanford.edu>
1286
1287 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1288 DW_TAG_member as well as a declaration as being a C++ static data
1289 member.
1290 (read_structure_scope): Combine tests for DW_TAG_member and
1291 DW_TAG_variable.
1292
614b3b14
DC
12932002-12-05 David Carlton <carlton@math.stanford.edu>
1294
1295 * linespec.c (decode_compound): New function.
1296 (decode_line_1): Move code into decode_compound.
1297
e4051eeb
DC
12982002-12-05 David Carlton <carlton@math.stanford.edu>
1299
1300 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1301 argument.
1302 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1303 the static block. See PR gdb/804.
1304
f61e8913
DC
13052002-12-05 David Carlton <carlton@math.stanford.edu>
1306
1307 * symtab.c (lookup_symbol_aux_block): New function.
1308 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1309
1e9f55d0
AC
13102002-12-05 Andrew Cagney <ac131313@redhat.com>
1311
1312 * gdbarch.sh: Dump the predicate function and macro values.
1313 (read): Print error on standard error.
1314 * gdbarch.c: Regenerate.
1315
d1973055
KB
13162002-12-04 Kevin Buettner <kevinb@redhat.com>
1317
1318 * Makefile.in (mips_tdep_h): Define.
1319 (mips-tdep.o): Add mips_tdep_h to dependency list.
1320 * mips-tdep.h: New file.
1321 * mips-tdep.c (mips-tdep.h): Include.
1322 (enum mips_abi): Move to mips-tdep.h.
1323 (mips_abi): New function.
1324
f1253c7b
DC
13252002-12-04 David Carlton <carlton@math.stanford.edu>
1326
1327 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1328
406bc4de
DC
13292002-12-04 David Carlton <carlton@math.stanford.edu>
1330
1331 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1332 function.
1333 (lookup_symbol_aux_minsyms): New function.
1334
2a3750c5
JB
13352002-12-04 J. Brobecker <brobecker@gnat.com>
1336
1337 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1338
961d8652
JB
13392002-12-04 J. Brobecker <brobecker@gnat.com>
1340
1341 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1342 which is an obsolete macro name.
1343
38c52d5a
DJ
13442002-12-04 Daniel Jacobowitz <drow@mvista.com>
1345
1346 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1347 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1348
d8ef46f5
DJ
13492002-12-03 H.J. Lu (hjl@gnu.org)
1350
1351 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1352 (create_breakpoints): Make sure the addr_string field is not
1353 NULL.
1354
02ae7771
AC
13552002-12-03 Andrew Cagney <ac131313@redhat.com>
1356
1357 * sparc-nat.c (fetch_inferior_registers)
1358 (store_inferior_registers): Add comment on problem of LWP vs
1359 threads.
1360
1361 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1362 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1363 (lin_lwp_store_registers): Remove.
1364 (init_lin_lwp_ops): Use fetch_inferior_registers
1365 and store_inferior_registers directly.
1366 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1367 (store_inferior_registers): Likewise.
1368 Fix PR gdb/725.
1369
7a424e99
AC
13702002-12-03 Andrew Cagney <ac131313@redhat.com>
1371
1372 * frame.h (get_frame_id): Convert to a function.
1373 (null_frame_id, frame_id_p): Declare.
1374 (frame_id_eq, frame_id_inner): Declare.
1375 (frame_id_build): New function.
1376 * frame.c (get_frame_id): Update. Use null_frame_id.
1377 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1378 frame_id_inner.
1379 (null_frame_id, frame_id_p): Define.
1380 (frame_id_eq, frame_id_inner): Define.
1381 (frame_id_build): New function.
1382 * varobj.c (varobj_create): Update.
1383 (varobj_update): Update.
1384 * valops.c (value_assign): Update.
1385 (new_root_variable): Update.
1386 * infrun.c (save_inferior_status): Update.
1387 * breakpoint.c (watch_command_1): Update.
1388
891c7f5f
JB
13892002-12-03 J. Brobecker <brobecker@gnat.com>
1390
1391 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1392 (SNAP2): Likewise.
1393
144da3c1
AC
13942002-12-03 Andrew Cagney <cagney@redhat.com>
1395
46248966
AC
1396 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1397 patch.
1398
144da3c1
AC
1399 * PROBLEMS: Mention PR gdb/725.
1400
03c6228e
AS
14012002-12-03 Andreas Schwab <schwab@suse.de>
1402
1403 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1404
36e53c63
AF
14052002-12-02 Adam Fedor <fedor@gnu.org>
1406 Klee Dienes <kdienes@apple.com>
1407
1408 * objc-lang.c (objc_printstr): Add width arg to match
1409 printstr prototype.
1410 (compare_selectors): Add 'const' to arg types.
1411 (compare_classes): Likewise.
1412 (find_imps): Cast msym pointer to avoid compiler warning.
1413 (print_object_command): Validate the address before
1414 passing it to the print routine.
1415 (find_objc_msgcall_submethod): Change function argument to
1416 return an int.
1417 * objc-lang.h: Add 'extern' to all function declarations.
1418 (value_nsstring): Add declaration.
1419
504d5c7e
JB
14202002-12-02 J. Brobecker <brobecker@gnat.com>
1421
1422 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1423 Fixes a build failure on HP/UX.
1424
1425 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1426 failure on HP/UX.
1427 (hpread_has_name): Advance declaration to avoid a compilation warning.
1428 (pst_syms_count): Add missing variable type. By change, the compiler
1429 was defaulting to int, which seems a good choice. Fixes a compilation
1430 warning.
1431 (pst_syms_size): Likewise.
1432
59623e27
JB
14332002-12-02 J. Brobecker <brobecker@gnat.com>
1434
1435 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1436 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1437 later to set the proper gdbarch methods depending on the osabi.
1438 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1439
a09a320d
JB
14402002-12-02 J. Brobecker <brobecker@gnat.com>
1441
1442 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1443 * osabi.c (gdb_osabi_name): Add strings images for the two new
1444 enum values.
1445 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1446
8a81a99e
AC
14472002-12-02 Andrew Cagney <ac131313@redhat.com>
1448
1449 * MAINTAINERS (Java): Global maintainers are responible for Java.
1450 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1451 part Java maintainers.
1452
7af35dad
JB
14532002-12-02 J. Brobecker <brobecker@gnat.com>
1454
1455 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1456 Fixes a compilation failure on AiX.
1457
f4ede9bc
JB
14582002-12-02 J. Brobecker <brobecker@gnat.com>
1459
1460 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1461 why aix-thread.o is not listed.
1462
ae45cd16
AC
14632002-12-01 Andrew Cagney <ac131313@redhat.com>
1464
1465 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1466 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1467 * gdbarch.h, gdbarch.c: Re-generate.
1468 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1469 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1470 * config/pa/tm-hppa.h, frame.h: Update.
1471 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1472 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1473 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1474 * cris-tdep.c, alpha-tdep.c: Update.
1475 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1476 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1477 (get_prev_frame): Ditto.
1478
020cc13c
AC
14792002-11-30 Andrew Cagney <cagney@redhat.com>
1480
1481 * exec.c (xfer_memory): Replace boolean with int.
1482 * p-exp.y: Use 0 instead of false.
1483 * corelow.c (gdb_check_format): Change return type to int from
1484 boolean.
1485 * utils.c: Don't include <curses.h> or <term.h> first.
1486
1d9b2aa8
SC
14872002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1488
1489 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1490 (m68hc11_register_byte): Remove.
1491 (m68hc11_gdbarch_init): Don't set the above.
1492
a193e397
AC
14932002-11-29 Andrew Cagney <cagney@redhat.com>
1494
1495 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1496 by calling get_selected_frame.
1497 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1498 set_current_frame, create_new_frame, select_frame and
1499 get_current_frame.
1500 * remote-e7000.c (e7000_start_remote): Ditto.
1501 * remote-mips.c (common_open): Ditto
1502 * remote-rdp.c (remote_rdp_open): Ditto.
1503
b5fc49aa
AS
15042002-11-29 Andreas Schwab <schwab@suse.de>
1505
1506 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1507 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1508 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1509 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1510 read_memory_unsigned_integer instead of read_memory_integer when
1511 dealing with addresses and instruction opcodes.
1512 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1513 (m68k_linux_frame_saved_pc): Likewise.
1514
6e7f8b9c
AC
15152002-11-29 Andrew Cagney <ac131313@redhat.com>
1516
1517 * stack.c (selected_frame, select_frame): Move from here ...
1518 * frame.c (selected_frame, select_frame): ... to here. Include
1519 "language.h".
1520 * Makefile.in (frame.o): Update dependencies.
1521 * frame.c (get_selected_frame): New function.
1522 * frame.h (get_selected_frame): Declare.
1523 (deprecated_selected_frame): Rename selected_frame.
1524 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1525 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1526 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1527 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1528 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1529 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1530 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1531 * z8k-tdep.c, cli/cli-cmds.c: Update.
1532
805e2818
AC
15332002-11-29 Andrew Cagney <ac131313@redhat.com>
1534
1535 * frame.h (get_selected_block): Add comments.
1536
1058bca7
AC
15372002-11-28 Andrew Cagney <ac131313@redhat.com>
1538
1539 * frame.c (pc_notcurrent): New function.
1540 (find_frame_sal): New function.
1541 * frame.h (find_frame_sal): Declare.
1542 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1543 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1544 find_pc_line.
1058bca7
AC
1545 (frame_info): Ditto.
1546 * ada-lang.c (find_printable_frame): Ditto.
1547
d92419e5
JB
15482002-11-28 J. Brobecker <brobecker@gnat.com>
1549
1550 * configure.in: Check that the pthdebug library is recent enough
1551 before enabling thread support on native AiX.
1552 * configure: Regenerate.
1553
1554 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1555 from the list of object files as it is now appended by configure
1556 if thread support is enabled.
1557 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1558 if thread support is enabled.
1559
8c69fc49
AC
15602002-11-28 Andrew Cagney <cagney@redhat.com>
1561
1562 * stack.c (get_selected_block): In-line get_current_block.
1563 * frame.h (get_current_block): Delete declaration.
1564 * blockframe.c (get_current_block): Delete function.
1565
07555a72
AC
15662002-11-28 Andrew Cagney <ac131313@redhat.com>
1567
1568 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1569 USE_GENERIC_DUMMY_FRAMES.
1570 * gdbarch.h, gdbarch.c: Regenerate.
1571 * valops.c, frame.c: Update.
1572 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1573 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1574 * config/pa/tm-hppa.h, blockframe.c: Update.
1575 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1576 * m68k-tdep.c, alpha-tdep.c: Ditto.
1577
1578 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1579 * mips-tdep.c: Ditto.
1580
b99fa2d2
AC
15812002-11-27 Andrew Cagney <ac131313@redhat.com>
1582
1583 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1584 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1585 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1586 * gdbarch.c, gdbarch.h: Re-generate.
1587 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1588 (CALL_DUMMY_LOCATION): Delete macro definition.
1589 (PC_IN_CALL_DUMMY): Delete macro definitions.
1590
1591 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1592 default is already generic_pc_in_call_dummy.
1593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1594 * v850-tdep.c (v850_gdbarch_init): Ditto.
1595 * sh-tdep.c (sh_gdbarch_init): Ditto.
1596 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1597 * mips-tdep.c (mips_gdbarch_init): Ditto.
1598 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1600 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1601 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1602 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1603 * avr-tdep.c (avr_gdbarch_init): Ditto.
1604
1605 * arm-tdep.c (arm_gdbarch_init): Do not set
1606 use_generic_dummy_frames, default is already 1.
1607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1608 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1609 * v850-tdep.c (v850_gdbarch_init): Ditto.
1610 * sh-tdep.c (sh_gdbarch_init): Ditto.
1611 * s390-tdep.c (s390_gdbarch_init): Ditto.
1612 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1613 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1614 * mips-tdep.c (mips_gdbarch_init): Ditto.
1615 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1617 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1618 * i386-tdep.c (i386_gdbarch_init): Ditto.
1619 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1620 * frv-tdep.c (frv_gdbarch_init): Ditto.
1621 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1622 * cris-tdep.c (cris_gdbarch_init): Ditto.
1623 * avr-tdep.c (avr_gdbarch_init): Ditto.
1624
1625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1626 call_dummy_location, default is already AT_ENTRY_POINT.
1627 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1628 * v850-tdep.c (v850_gdbarch_init): Ditto.
1629 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1630 * sh-tdep.c (sh_gdbarch_init): Ditto.
1631 * s390-tdep.c (s390_gdbarch_init): Ditto.
1632 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1634 * mips-tdep.c (mips_gdbarch_init): Ditto.
1635 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1637 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1638 * i386-tdep.c (i386_gdbarch_init): Ditto.
1639 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1640 * frv-tdep.c (frv_gdbarch_init): Ditto.
1641 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1642 * cris-tdep.c (cris_gdbarch_init): Ditto.
1643 * avr-tdep.c (avr_gdbarch_init): Ditto.
1644 * arm-tdep.c (arm_gdbarch_init): Ditto.
1645 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1646
abc0af47
AC
16472002-11-28 Andrew Cagney <cagney@redhat.com>
1648
1649 * frame.h: Update comments on set_current_frame, create_new_frame,
1650 flush_cached_frames, reinit_frame_cache, select_frame and
1651 selected_frame.
1652
ed5cedc5
AC
16532002-11-27 Andrew Cagney <cagney@redhat.com>
1654
1655 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1656 deprecated pc_in_call_dummy function.
1657 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1658 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1659 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1660 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1661 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1662
b2a1bd4f
MH
16632002-11-26 Martin M. Hunt <hunt@redhat.com>
1664
1665 * Makefile.in: Remove Tix dependencies.
1666 * acinclude.m4: Ditto.
1667 * aclocal.m4: Ditto.
1668 * configure.in: Ditto.
1669 * configure: Regenerated.
1670
f09cffaa
AC
16712002-11-26 Andrew Cagney <ac131313@redhat.com>
1672
1673 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1674 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1675 * gdbarch.c: Re-generate.
1676
e92b0cc9
AC
16772002-11-26 Andrew Cagney <ac131313@redhat.com>
1678
1679 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1680 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1681 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1682 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1683 pc_in_call_dummy_at_entry_point.
1684 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1685 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1686 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1687 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1688 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1689 pc_in_call_dummy_on_stack.
1690 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1691 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1692 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1693 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1694 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1695
b4b88177
AC
16962002-11-26 Andrew Cagney <ac131313@redhat.com>
1697
1698 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1699 pc_in_call_dummy_before_text_end
1700 (deprecated_pc_in_call_dummy_after_text_end): Rename
1701 pc_in_call_dummy_after_text_end.
1702 (deprecated_pc_in_call_dummy_on_stack): Rename
1703 pc_in_call_dummy_on_stack.
1704 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1705 pc_in_call_dummy_at_entry_point.
1706 * m68k-tdep.c (m68k_gdbarch_init): Update.
1707 * s390-tdep.c (s390_gdbarch_init): Update.
1708 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1709 * vax-tdep.c (vax_gdbarch_init): Update.
1710 * sparc-tdep.c (sparc_gdbarch_init): Update.
1711 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1712 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1713 * i386-tdep.c (i386_gdbarch_init): Update.
1714 * frv-tdep.c (frv_gdbarch_init): Update.
1715 * cris-tdep.c (cris_gdbarch_init): Update.
1716 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1717 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1718 (deprecated_pc_in_call_dummy_after_text_end)
1719 (deprecated_pc_in_call_dummy_on_stack)
1720 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1721 * alpha-tdep.c (alpha_gdbarch_init): Update.
1722
eb784848
DJ
17232002-11-25 Daniel Jacobowitz <drow@mvista.com>
1724
1725 * acconfig.h (HAVE_PREAD64): Add.
1726 * configure.in: Check for pread64.
1727 * config.in: Regenerated.
1728 * configure: Regenerated.
1729 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1730 * linux-proc.c (linux_proc_xfer_memory): New function.
1731 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1732
933c6fe4
DC
17332002-11-25 David Carlton <carlton@math.stanford.edu>
1734
1735 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1736 pdi's with no name.
1737
158a8022
AC
17382002-11-25 Andrew Cagney <ac131313@redhat.com>
1739
1740 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1741 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1742
481d0f41
JB
17432002-11-25 Jim Blandy <jimb@redhat.com>
1744
e8289572
JB
1745 * symfile.c (init_objfile_sect_indices): New function.
1746 (default_symfile_offsets): Move the section-index-initializing
1747 stuff into init_objfile_sect_indices, and call that.
1748
b29c9944
JB
1749 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1750 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1751
13de58df
JB
1752 * symfile.c (syms_from_objfile): Adjust indentation.
1753
481d0f41
JB
1754 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1755 || info_verbose isn't true.
1756
7d6a26a7
AC
17572002-11-24 Andrew Cagney <ac131313@redhat.com>
1758
1759 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1760 default to get_frame_base.
1761 * gdbarch.h, gdbarch.c: Regenerate.
1762 * arch-utils.c (default_frame_address): Delete function.
1763 * arch-utils.h (default_frame_address): Delete declaration
1764
6abe1021
PM
17652002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1766
1767 * varobj.c (find_frame_addr_in_frame_chain):
1768 Use get_frame_base instead of FRAME_FP,
1769 obvious fix.
1770
c193f6ac
AC
17712002-11-19 Andrew Cagney <ac131313@redhat.com>
1772
1773 * frame.h (FRAME_FP): Delete macro.
1774 (get_frame_base): New function declaration.
1775 * frame.c (get_frame_base): New function.
1776 (get_frame_id): Use ->frame.
1777 (frame_find_by_id): Rewrite to use get_frame_id.
1778 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1779 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1780 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1781 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1782 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1783 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1784 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1785
e5d2af14
AC
17862002-11-24 Andrew Cagney <ac131313@redhat.com>
1787
1788 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1789
931d12c6
AC
17902002-11-24 Andrew Cagney <ac131313@redhat.com>
1791
1792 * frame.c (set_unwind_by_pc): Revert change below, use
1793 PC_IN_CALL_DUMMY.
1794 (get_prev_frame): Ditto.
1795
5e0f933e
AC
17962002-11-24 Andrew Cagney <ac131313@redhat.com>
1797
1798 * dummy-frame.c (pc_in_dummy_frame): New function.
1799 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1800 (find_dummy_frame): Update comment.
1801 (generic_pop_current_frame): Use get_frame_type.
1802 * dummy-frame.h (pc_in_dummy_frame): Declare.
1803 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1804 (create_new_frame): Use pc_in_dummy_frame.
1805 (get_prev_frame): Use pc_in_dummy_frame.
1806 (frame_saved_regs_register_unwind): Use get_prev_frame.
1807 (deprecated_generic_get_saved_register): Use get_prev_frame.
1808
7d8547c9
AC
18092002-11-23 Andrew Cagney <ac131313@redhat.com>
1810
1811 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1812 from here ...
1813 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1814 (varobj_create): Note that frame ID should be used.
1815 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1816
0225421b
AC
18172002-11-23 Andrew Cagney <ac131313@redhat.com>
1818
1819 * breakpoint.c: Include "gdb_assert.h".
1820 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1821 not being used.
1822 * Makefile.in (breakpoint.o): Update dependencies.
1823 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1824 deprecated_frame_in_dummy.
1825 * stack.c (print_frame_info_base): Ditto.
1826 (frame_info): Ditto.
1827 (print_frame_info_base): Ditto. Delete dead code.
1828
32eeb91a
AS
18292002-11-23 Andreas Schwab <schwab@suse.de>
1830
1831 * Makefile.in (m68k_tdep_h): Define.
1832 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1833 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1834 * m68k-tdep.c: Move register number enum ...
1835 * m68k-tdep.h: ... to this new file and rename the constants from
1836 E_* to M68K_*. All uses changed.
1837 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1838 * abug-rom.c: Include "m68k-tdep.h". Use
1839 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1840 * cpu32bug-rom.c: Likewise.
1841 * dbug-rom.c: Likewise.
1842 * m68k-tdep.c: Likewise.
1843 * m68klinux-nat.c: Likewise.
1844 * remote-est.c: Likewise.
1845 * rom68k-rom.c: Likewise.
1846 * config/m68k/tm-linux.h: Likewise.
1847
9648bac8
AC
18482002-11-23 Andrew Cagney <ac131313@redhat.com>
1849
1850 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1851 dummy frame initialization code.
1852 * mips-tdep.c (mips_gdbarch_init): Ditto.
1853
91a175b3
CF
18542002-11-22 Christopher Faylor <cgf@redhat.com>
1855
1856 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1857 attach will hang.
1858
f4ded5b1
AC
18592002-11-22 Andrew Cagney <ac131313@redhat.com>
1860
1861 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1862 to default_frame_address.
1863 * gdbarch.h, gdbarch.c: Re-generate.
1864
1865 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1866 or frame_locals_address to default_frame_address.
1867 * m68k-tdep.c (m68k_gdbarch_init): Update.
1868 * i386-tdep.c (i386_gdbarch_init): Update.
1869 * frv-tdep.c (frv_gdbarch_init): Update.
1870 * sh-tdep.c (sh_gdbarch_init): Update.
1871 * v850-tdep.c (v850_gdbarch_init): Update.
1872 * sparc-tdep.c (sparc_gdbarch_init): Update.
1873 * mips-tdep.c (mips_gdbarch_init): Update.
1874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1875 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1877
1878 * cris-tdep.c (cris_frame_args_address): Delete function.
1879 (cris_frame_locals_address): Delete function.
1880 (cris_gdbarch_init): Do not set frame_args_address or
1881 frame_locals_address.
1882
f7c1e0f3
MS
18832002-11-22 Michael Snyder <msnyder@redhat.com>
1884
1885 * thread-db.c (thread_db_load): Tell the user what's going on
1886 if dlopen fails on libthread_db.
1887
03dac896
AS
18882002-11-23 Andreas Schwab <schwab@suse.de>
1889
1890 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1891 invariant return values.
1892
7a67d0fe
AS
18932002-11-22 Andreas Schwab <schwab@suse.de>
1894
1895 * valops.c (value_slice): Move declaration of `offset' to avoid
1896 warning.
1897
5633f842
CF
18982002-11-22 Christopher Faylor <cgf@redhat.com>
1899
1900 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1901 (struct so_stuff): Add end_addr field.
1902 (register_loaded_dll): Calculate and store end address of loaded dll.
1903 (solib_address): New function.
1904 (child_solib_loaded_library_pathname): Pass carefully constructed
1905 section info to safe_symbol_file_add rather than ignoring it.
1906 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1907 DLL is loaded.
1908 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1909 (child_create_inferior): Fix a compiler warning.
1910 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1911 (solib_address): Declare new function.
1912
d85fe7f7
AS
19132002-11-22 Andreas Schwab <schwab@suse.de>
1914
1915 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1916 and FPS registers.
1917
8308e54c
DJ
19182002-11-21 Daniel Jacobowitz <drow@mvista.com>
1919
1920 * maint.c (_initialize_maint_cmds): Fix typo. From
1921 Francesco Potorti` <pot@gnu.org>.
1922
8997bd5e
AC
19232002-11-21 Andrew Cagney <cagney@redhat.com>
1924
1925 * mips-tdep.c (mips_dump_tdep): Delete references to
1926 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1927 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1928 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1929 * printcmd.c (build_address_symbolic): Delete calls to
1930 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1931 (address_info): Ditto.
1932 Fix PR gdb/773.
1933
4e87b832
KD
19342002-11-19 Klee Dienes <kdienes@apple.com>
1935 Adam Fedor <fedor@gnu.org>
1936
1937 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1938 the ability to explicitly specify the quote characters and word
1939 break characters; if NULL is specified for either, use the old
1940 behavior of using the characters used by the completer.
1941 (skip_chars): New function. Convenience wrapper around
1942 skip_quoted_chars to provide the original skip_chars behavior.
1943 * completer.h (skip_quoted_chars): Add prototype.
1944
9ba8d803
AC
19452002-11-19 Andrew Cagney <ac131313@redhat.com>
1946
1947 Problems reported by Paul Eggert.
1948 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1949
0a595803
AS
19502002-11-19 Andreas Schwab <schwab@suse.de>
1951
1952 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1953 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1954 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1955 (m68k_linux_frame_saved_pc): Move to ...
1956 * m68klinux-tdep.c: ... here. New file.
1957 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1958 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1959
e8afa4d7
AF
19602002-11-19 Adam Fedor <fedor@gnu.org>
1961
1962 * objc-exp.y: Revert to old skip_quoted usage.
1963
a76c9d72
AF
19642002-11-19 Adam Fedor <fedor@gnu.org>
1965
1966 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1967 (objc_lang_h): Define.
1968 (YYFILES): Add objc-exp.tab.c.
1969 (local-maintainer-clean): Remove objc-exp.tab.c.
1970 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1971
fd0e9d45
PM
19722002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1973
1974 * p-exp.y (typecast rule): Add automatic dereference of
1975 pascal classes if needed.
1976 (THIS): Set current_type.
1977 Automatically dereference pascal classes.
1978 (typebase rule): Add ^typebase recognition.
1979
82eeeb94
AF
19802002-11-18 Adam Fedor <fedor@gnu.org>
1981
1982 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1983 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1984 (op_name): Handle OP_OBJC_SELF.
1985 * Makefile.in (expprint.o): Add additional depends.
1986
646df18d
AF
19872002-11-18 Adam Fedor <fedor@gnu.org>
1988
1989 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1990 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1991 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1992 * objc-exp.y: Likewise.
1993
379b85df
AF
19942002-11-18 Adam Fedor <fedor@gnu.org>
1995
1996 * gdb/parser-defs.h: (struct objc_class_str): New structure
1997 for parsing ObjC classes.
1998
85cf597a
AC
19992002-11-18 Andrew Cagney <ac131313@redhat.com>
2000
2001 * stack.c (frame_relative_level): Copy function from here ...
2002 * frame.c (frame_relative_level): ...to here.
2003
5a203e44
AC
20042002-11-18 Andrew Cagney <ac131313@redhat.com>
2005
2006 * frame.h (enum frame_type): Define.
2007 (get_frame_type): Declare.
2008 (struct frame_info): Add field `type'. Delete field
2009 signal_handler_caller.
2010 (deprecated_set_frame_signal_handler_caller): Declare.
2011 * frame.c (get_frame_type): New function.
2012 (deprecated_set_frame_type): New function.
2013 (create_new_frame): Set the frame's type.
2014 (get_prev_frame): Similar.
2015 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2016 * s390-tdep.c: Ditto.
2017 * m68klinux-nat.c: Ditto.
2018 * ns32k-tdep.c: Ditto.
2019 * x86-64-linux-tdep.c: Ditto.
2020 * vax-tdep.c: Ditto.
2021 * rs6000-tdep.c: Ditto.
2022 * ppc-linux-tdep.c: Ditto.
2023 * i386-interix-tdep.c: Ditto.
2024 * mips-tdep.c: Ditto.
2025 * m68k-tdep.c: Ditto.
2026 * hppa-tdep.c: Ditto.
2027 * ia64-tdep.c: Ditto.
2028 * cris-tdep.c: Ditto.
2029 * arm-tdep.c: Ditto.
2030 * alpha-tdep.c: Ditto.
2031 * i386-tdep.c: Ditto.
2032 * stack.c: Ditto.
2033 * ada-lang.c: Ditto.
2034 * blockframe.c: Update.
2035 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2036 deprecated_set_frame_type instead of signal_handler_caller.
2037 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2038 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2039 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2040
bf4ae8b2
KD
20412002-11-18 Klee Dienes <kdienes@apple.com>
2042
2043 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2044
a672ef13
KD
20452002-11-18 Klee Dienes <kdienes@apple.com>
2046
2047 * buildsym.c (pop_context): Add comment.
2048
0c5e171a
KD
20492002-11-18 Klee Dienes <kdienes@apple.com>
2050
2051 * buildsym.h (pop_context): Convert to function, defined in
2052 buildsym.c.
2053 * buildsym.c: Include gdb_assert.h.
2054 (pop_context): Implement as C function. Add check for stack
2055 underflow.
2056 * dbxread.c (process_one_symbol): Complain and stop processing
2057 that symbol if we are already at the top of the context stack for
2058 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2059 when processing N_RBRAC.
2060
8a1f4c4c
DJ
20612002-11-16 Daniel Jacobowitz <drow@mvista.com>
2062
2063 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2064 define.
2065 (struct target_waitstatus): Add opaque definition.
2066 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2067 * exec.c (init_exec_ops): Likewise.
2068 * fork-child.c (clone_and_follow_inferior): Remove.
2069 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2070 * inferior.h (clone_and_follow_inferior): Remove prototype.
2071 * infrun.c (follow_fork_mode_both): Remove.
2072 (follow_fork_mode_kind_names): Remove commented out "both".
2073 (follow_inferior_fork): Remove follow_fork_mode_both support.
2074 * inftarg.c (child_clone_and_follow_inferior): Remove.
2075 (child_post_follow_inferior_by_clone): Remove.
2076 (init_child_ops): Don't set to_clone_and_follow_inferior
2077 or to_post_follow_inferior_by_clone.
2078 * target.c (default_clone_and_follow_inferior): Remove.
2079 (cleanup_target): Don't set to_clone_and_follow_inferior
2080 or to_post_follow_inferior_by_clone.
2081 (find_default_clone_and_follow_inferior): Remove.
2082 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2083 (debug_to_clone_and_follow_inferior): Remove.
2084 (debug_to_post_follow_inferior_by_clone): Remove.
2085 (setup_target_debug): Don't set to_clone_and_follow_inferior
2086 or to_post_follow_inferior_by_clone.
2087 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2088 and to_post_follow_inferior_by_clone.
2089 (child_clone_and_follow_inferior): Remove prototype.
2090 (child_post_follow_inferior_by_clone): Remove prototype.
2091 (target_clone_and_follow_inferior): Remove macro.
2092 (target_post_follow_inferior_by_clone): Remove macro.
2093 (find_default_clone_and_follow_inferior): Remove prototype.
2094
47932f85
DJ
20952002-11-16 Daniel Jacobowitz <drow@mvista.com>
2096
2097 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2098 inferior_has_vforked, and inferior_has_execd instead of
2099 target_has_forked, target_has_vforked, and target_has_execd.
2100 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2101 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2102 (CHILD_WAIT): Define.
2103 (child_wait): Add prototype.
2104 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2105 Add prototype.
2106 (hpux_has_vforked): Likewise, from child_has_vforked.
2107 (hpux_has_execd): Likewise, from child_has_execd.
2108 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2109 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2110 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2111 and hpux_has_syscall_event instead of the target hooks.
2112 * infrun.c (inferior_has_forked, inferior_has_vforked)
2113 (inferior_has_execd): New functions.
2114 * inftarg.c (not_same_real_pid): Remove.
2115 (child_wait): Remove references to not_same_real_pid,
2116 target_has_forked, target_has_vforked, target_has_execd,
2117 and target_has_syscall_event.
2118 (child_has_forked, child_has_vforked, child_has_execd)
2119 (child_has_syscall_event): Remove.
2120 (init_child_ops): Remove references to child_has_forked,
2121 child_has_vforked, child_has_execd, and child_has_syscall_event.
2122 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2123 (hpux_has_vforked): Likewise, from child_has_vforked.
2124 (hpux_has_execd): Likewise, from child_has_execd.
2125 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2126 * target.c (cleanup_target): Remove references to
2127 to_has_forked, to_has_vforked, to_has_execd, and
2128 to_has_syscall_event.
2129 (update_current_target): Likewise.
2130 (setup_target_debug): Likewise.
2131 (debug_to_has_forked): Remove.
2132 (debug_to_has_vforked): Remove.
2133 (debug_to_has_execd): Remove.
2134 (debug_to_has_syscall_event): Remove.
2135 * target.h (struct target_ops): Remove to_has_forked.
2136 to_has_vforked, to_has_execd, and to_has_syscall_event.
2137 (child_has_forked, child_has_vforked, child_has_execd)
2138 (child_has_syscall_event): Remove prototypes.
2139 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2140 prototypes.
2141 (target_has_forked, target_has_vforked, target_has_execd)
2142 (target_has_syscall_event): Remove macros.
2143
4088142a
DJ
21442002-11-16 Daniel Jacobowitz <drow@mvista.com>
2145
2146 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2147 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2148 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2149 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2150 * target.c (cleanup_target): Remove reference to
2151 to_can_follow_vfork_prior_to_exec.
2152 (update_current_target): Likewise.
2153 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2154 (setup_target_debug): Remove reference to
2155 to_can_follow_vfork_prior_to_exec.
2156 * target.h (struct target_ops): Remove
2157 to_can_follow_vfork_prior_to_exec.
2158 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2159 (target_can_follow_vfork_prior_to_exec): Remove definition.
2160 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2161 define.
2162 * infrun.c (follow_vfork_when_exec): Remove.
2163 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2164 (follow_exec): Likewise.
2165 (handle_inferior_event): Likewise.
2166 (keep_going): Likewise.
2167
18cde8d5
AC
21682002-11-15 Andrew Cagney <cagney@redhat.com>
2169
2170 * frame.c (generic_unwind_get_saved_register): Make static.
2171 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2172 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2173 defaults to generic_unwind_get_saved_register.
2174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2175 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2176 * frv-tdep.c (frv_gdbarch_init): Ditto.
2177 * i386-tdep.c (i386_gdbarch_init): Ditto.
2178 * s390-tdep.c (s390_gdbarch_init): Ditto.
2179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2180 * v850-tdep.c (v850_gdbarch_init): Ditto.
2181 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2183 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2184
a6b063af
AC
21852002-11-15 Andrew Cagney <cagney@redhat.com>
2186
2187 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2188 i386-tdep.c.
2189
f407986f
AC
21902002-11-15 Andrew Cagney <cagney@redhat.com>
2191
2192 * frame.h (sigtramp_saved_pc): Delete declaration.
2193 * blockframe.c (sigtramp_saved_pc): Delete function.
2194 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2195 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2196 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2197 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2198
f18c5a73
AC
21992002-11-15 Andrew Cagney <ac131313@redhat.com>
2200
2201 * frame.c (frame_pc_unwind): New function.
2202 (frame_saved_regs_pc_unwind): New function.
2203 (frame_register_unwind): Pass unwind_cache instead of
2204 register_unwind_cache.
2205 (set_unwind_by_pc): Add unwind_pc parameter, set.
2206 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2207 (get_prev_frame): Ditto.
2208 * frame.h (frame_pc_unwind_ftype): Declare.
2209 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2210 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2211 (frame_pc_unwind): Declare.
2212 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2213 (struct dummy_frame): Add comment mentioning that values are for
2214 previous frame.
2215 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2216 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2217 (generic_file_frame_chain_valid): Ditto.
2218 * stack.c (frame_info): Ditto.
2219
d9285969 22202002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
2221
2222 * linespec.c (locate_first_half): New function.
2223 (decode_line_1): Move code into locate_first_half.
2224
d741b867
AC
22252002-11-15 Andrew Cagney <ac131313@redhat.com>
2226
2227 * complaints.h: Add comment explaining how to eliminate a
2228 deprecated_complain call.
24382c5c 2229 * complaints.h: Fix spelling errors.
d741b867 2230
82d03c99
DC
22312002-11-15 David Carlton <carlton@math.stanford.edu>
2232
2233 * printcmd.c: Remove #include "disasm.h".
2234
c97eb5d9
AC
22352002-11-14 Andrew Cagney <ac131313@redhat.com>
2236
2237 * frame.h: Move the most relevant interface functions to the start
2238 of the file.
2239
524d7c18
AC
22402002-11-14 Andrew Cagney <ac131313@redhat.com>
2241
2242 * regcache.h (deprecated_registers): Rename registers.
2243 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2244 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2245 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2246 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2247 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2248 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2249 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2250 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2251 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2252 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2253 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2254 * v850ice.c: Update.
2255
6411e720
AC
2256Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2257
2258 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2259 NULL buffer.
2260
73937e03
AC
22612002-11-13 Andrew Cagney <cagney@redhat.com>
2262
2263 * regcache.h (deprecated_read_register_bytes): Rename
2264 read_register_bytes.
2265 (deprecated_write_register_bytes): Rename write_register_bytes.
2266 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2267 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2268 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2269 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2270 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2271 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2272 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2273 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2274 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2275 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2276 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2277 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2278 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2279 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2280
fb0cd46e
JB
22812002-11-13 Jim Blandy <jimb@redhat.com>
2282
2283 * findvar.c (read_var_value): Doc fix.
2284
2d28509a
AC
22852002-11-13 Andrew Cagney <cagney@redhat.com>
2286
2287 * regcache.c (struct regcache): Replace passthough_p with
2288 readonly_p.
2289 (regcache_xmalloc): Initialize readonly_p.
2290 (build_regcache): Initialize readonly_p.
2291 (regcache_save): New function.
2292 (regcache_restore): New function.
2293 (regcache_cpy): Re-implement using regcache_save and
2294 regcache_restore.
2295 (regcache_raw_read): Update.
2296 (regcache_cooked_read): When a read-only cache, checked for cached
2297 pseudo register values.
2298 (regcache_raw_write): Assert that the cache is not read-only.
2299 Remove code handling a non-passthrough cache.
2300 * regcache.h (regcache_save): Declare.
2301 (regcache_restore): Declare.
2302
067df2e5
AC
23032002-11-13 Andrew Cagney <cagney@redhat.com>
2304
2305 * regcache.c (struct regcache_descr): Add fields
2306 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2307 (init_legacy_regcache_descr): Compute the size of a cooked
2308 register cache and then assign that to sizeof_raw_registers. Set
2309 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2310 (init_legacy_regcache_descr): Ditto.
2311
51b1fe4e
AC
23122002-11-13 Andrew Cagney <cagney@redhat.com>
2313
2314 * regcache.c (register_buffer): Move to near start of file, update
2315 description.
2316 (regcache_raw_read): Use.
2317 (regcache_raw_write): Use.
2318 (struct regcache): Rename raw_registers to registers and
2319 raw_register_valid_p to register_valid_p.
2320 (regcache_xmalloc): Update.
2321 (regcache_xfree): Update.
2322 (register_buffer): Update.
2323 (regcache_cpy): Update.
2324 (regcache_cpy_no_passthrough): Update.
2325 (regcache_valid_p): Update.
2326 (deprecated_grub_regcache_for_registers): Update.
2327 (deprecated_grub_regcache_for_register_valid): Update.
2328 (set_register_cached): Update.
2329 (regcache_raw_write): Update.
2330
80b4c677
PM
23312002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2332
2333 * p-exp.y (name_not_typename): Use copy_name to
2334 set current_type variable for fields of THIS.
2335
0f3fafde
DJ
23362002-11-12 Daniel Jacobowitz <drow@mvista.com>
2337
2338 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2339 * monitor.c (init_base_monitor_ops): Likewise.
2340 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2341 * remote-array.c (init_array_ops): Likewise.
2342 * remote-e7000.c (init_e7000_ops): Likewise.
2343 * remote-es.c (init_es1800_ops): Likewise.
2344 (init_es1800_child_ops): Likewise.
2345 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2346 * remote-sim.c (init_gdbsim_ops): Likewise.
2347 * remote-st.c (init_st2000_ops): Likewise.
2348 * sol-thread.c (init_sol_core_ops): Likewise.
2349 (init_sol_thread_ops): Likewise.
2350 * v850ice.c (init_850ice_ops): Likewise.
2351 * win32-nat.c (init_child_ops): Likewise.
2352 * wince.c (init_child_ops): Likewise.
2353
82c0260e
AC
23542002-11-12 Andrew Cagney <ac131313@redhat.com>
2355
2356 * utils.c (gdb_realpath): Make rp a constant pointer.
2357
70d35819
AC
23582002-11-12 Andrew Cagney <ac131313@redhat.com>
2359
2360 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2361 a constant buffer; cannonicalize_file_name(); realpath() with a
2362 pathconf() defined buffer, xstrdup().
2363
9835a8b0
AC
23642002-11-12 Andrew Cagney <ac131313@redhat.com>
2365
2366 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2367 to hang2.C; hang3.c to hang3.C.
2368
3f47be5c
EZ
23692002-11-11 Elena Zannoni <ezannoni@redhat.com>
2370
2371 * findvar.c (read_var_value): Reenable TLS code.
2372
23732002-11-11 Elena Zannoni <ezannoni@redhat.com>
2374 Jim Blandy <jimb@redhat.com>
2375
2376 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2377 * target.c (update_current_target): Add
2378 to_get_thread_local_address.
2379 * target.h (to_get_thread_local_address): Export.
2380 (target_get_thread_local_address): Define.
2381 (target_get_thread_local_address_p): Define.
2382 * thread-db.c: Include solib-svr4.h.
2383 (td_thr_tls_get_addr_p): Define.
2384 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2385 (thread_db_get_thread_local_address): New function.
2386 (init_thread_db_ops): Initialize to_get_thread_local_address.
2387 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2388 * configure: Regenerate.
2389 * config.in: Regenerate.
2390
636b1a6d
DC
23912002-11-11 David Carlton <carlton@math.stanford.edu>
2392
2393 * linespec.c (set_flags): New function.
2394 (decode_line_1): Move code into set_flags.
2395
44fe14ab
DC
23962002-11-11 David Carlton <carlton@math.stanford.edu>
2397
2398 * linespec.c (decode_line_1): Move chunks of code to separate
2399 functions.
2400 (initialize_defaults): New function.
2401 (decode_indirect): New function.
2402
e6f181f5
AC
24032002-11-11 Andrew Cagney <ac131313@redhat.com>
2404
8971b011
AC
2405 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2406 instead of void_code_ptr.
2407 (sigtramp_saved_pc): Ditto.
2408
e6f181f5
AC
2409 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2410 i386_fp_regnum_p.
2411
01ad7f36
DJ
24122002-11-10 Daniel Jacobowitz <drow@mvista.com>
2413
2414 * gdbtypes.h (struct main_type): Move artificial flag out of
2415 loc. New member of ``struct field'' named static_kind. Reduce
2416 overloaded meaning of bitsize.
2417 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2418 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2419 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2420
2421 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2422 new fields.
2423 (template_to_fixed_record_type, template_to_static_fixed_type)
2424 (to_record_with_fixed_variant_part): Likewise.
2425 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2426 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2427 * dwarfread.c (struct_type, enum_type): Likewise.
2428 * hpread.c (hpread_read_enum_type)
2429 (hpread_read_function_type, hpread_read_doc_function_type)
2430 (hpread_read_struct_type): Likewise.
2431 * mdebugread.c (parse_symbol): Likewise.
2432
bf1e52be
AC
24332002-11-10 Andrew Cagney <ac131313@redhat.com>
2434
2435 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2436 * stack.c (print_frame_info_base): Update.
2437 (print_frame_info_base, frame_info): Update.
2438 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2439 (sparc_frame_saved_pc): Update.
2440 * ada-lang.c (find_printable_frame): Update.
2441 * breakpoint.c (deprecated_frame_in_dummy): Update.
2442
ce556f85
MK
24432002-11-09 Mark Kettenis <kettenis@gnu.org>
2444
2445 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2446 defined.
2447 (regmap): Extend to cover all registers.
2448 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2449 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2450 definitions.
2451 (fetch_register, sore_register): Simplify.
2452 (old_fetch_inferior_registers, old_store_inferior_registers):
2453 Remove functions.
2454 (cannot_fetch_register, cannot_store_register): Change
2455 implementation to use regmap array to decide which registers
2456 cannot be fetched/stored. This removes $orig_eax from the
2457 registers that cannot be fetched/stored.
2458 (fetch_inferior_registers): Call fetch_register directly instead
2459 of calling old_fetch_inferior_registers.
2460 (store_inferior_registers): Call store_register directly instead
2461 of calling old_store_inferior_registers.
2462 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2463 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2464 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2465
932bb524
KD
24662002-11-09 Klee Dienes <kdienes@apple.com>
2467
2468 * i387-tdep.c (i387_supply_register): When called with NULL as a
2469 buffer, mark the register as not provided (to mirror the behavior
2470 of supply_register).
2471 (i387_supply_fxsave): Ditto.
2472 (i387_supply_fsave): Ditto (inherits the behavior from
2473 i387_supply_register).
2474
ebe68b27
KD
24752002-11-09 Klee Dienes <kdienes@apple.com>
2476
2477 * blockframe.c (sigtramp_saved_pc): Use
2478 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2479 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2480 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2481
15220c65
AC
24822002-11-09 Andrew Cagney <ac131313@redhat.com>
2483
2484 * frame.c (get_prev_frame): Test prev_p to identify a previously
2485 unwound frame. Initialize prev_p.
2486 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2487 comment.
2488
95adb866
AC
24892002-11-09 Andrew Cagney <ac131313@redhat.com>
2490
2491 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2492 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2493 more comments. Zap dead code.
2494
e71ecd70
MK
24952002-11-09 Mark Kettenis <kettenis@gnu.org>
2496
2497 * infcmd.c (print_vector_info, print_float_info): Move code that
2498 checks whether the target has any registers and whether there is a
2499 selected frame up, such that it is also used if a target provides
2500 multi-arch definitions of these functions.
2501
c525330d
AC
25022002-11-08 Andrew Cagney <ac131313@redhat.com>
2503
72bdd927
AC
2504 * Makefile.in (DESTDIR): Define.
2505 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2506 prefix.
2507
c525330d
AC
2508 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2509 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2510
38c968cf
AC
25112002-11-08 Andrew Cagney <ac131313@redhat.com>
2512
2513 * i386-linux-tdep.c: Include "reggroups.h".
2514 (i386_linux_register_reggroup_p): New function.
2515 (i386_linux_init_abi): Set register_reggroup_p to
2516 i386_linux_register_reggroup_p.
2517 * i386-tdep.h (i386_register_reggroup_p): Declare.
2518 * i386-tdep.c: Include "reggroups.h".
2519 (i386_init_reggroups): New function.
2520 (i386_add_reggroups): New function.
2521 (i386_register_reggroup_p): New function.
2522 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2523 (_initialize_i386_tdep): Call i386_init_reggroups.
2524 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2525 specific reggroups.
2526
19e33363
MK
25272002-11-09 Mark Kettenis <kettenis@gnu.org>
2528
371a6e84
MK
2529 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2530 request that's available in *BSD.
2531
94ba925a
MK
2532 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2533
19e33363
MK
2534 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2535 FDOFF_REGNUM.
2536
8779790c
AC
25372002-11-08 Andrew Cagney <ac131313@redhat.com>
2538
2539 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2540 * dummy-frame.c (find_dummy_frame): Rename
2541 generic_find_dummy_frame, make static. Return the dummy frame
2542 instead of the regcache.
2543 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2544 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2545 (dummy_frame_register_unwind): Rename
2546 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2547 * dummy-frame.h (dummy_frame_register_unwind): Rename
2548 generic_call_dummy_register_unwind.
2549
8674b74f
MK
25502002-11-08 Mark Kettenis <kettenis@gnu.org>
2551
2552 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2553 except the inclusion of "i386/tm-i386.h", to...
2554 * config/i386/nm-i386v42mp.h: ...here.
2555 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2556
4c1e7e9d
AC
25572002-11-08 Andrew Cagney <ac131313@redhat.com>
2558
2559 * Makefile.in (frame.o): Update dependencies.
2560 * blockframe.c (current_frame, frame_obstack_alloc)
2561 (frame_saved_regs_zalloc, get_current_frame)
2562 (set_current_frame, create_new_frame)
2563 (set_unwind_by_pc, get_next_frame)
2564 (flush_cached_frames, reinit_frame_cache)
2565 (frame_saved_regs_register_unwind)
2566 (deprecated_generic_get_saved_register)
2567 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2568 (_initialize_blockframe): Move frame code from here...
2569 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2570 "annotate.h" and "dummy-frame.h".
2571 (_initialize_frame): New function.
2572
921e78cf
JB
25732002-11-08 Jim Blandy <jimb@redhat.com>
2574
2575 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2576 when we finish a function a context.
2577 * buildsym.h (outermost_context_p): New macro.
2578 (Bug analyzed by David Edelsohn.)
2579
9c1412c1
AC
25802002-11-08 Andrew Cagney <ac131313@redhat.com>
2581
2582 * blockframe.c: Include "dummy-frame.h".
2583 (struct dummy_frame, dummy_frame_stack)
2584 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2585 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2586 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2587 (generic_save_call_dummy_addr, generic_pop_current_frame)
2588 (generic_pop_dummy_frame, generic_fix_call_dummy)
2589 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2590 dummy frame code from here...
2591 * dummy-frame.c: ...to here. New file.
2592 * dummy-frame.h: New file.
2593 (generic_call_dummy_register_unwind): Declare.
2594 (generic_find_dummy_frame): Declare.
2595 * Makefile.in (SFILES): Add dummy-frame.c.
2596 (dummy-frame.o): Specify dependencies.
2597 (dummy_frame_h): Define.
2598 (COMMON_OBS): Add dummy-frame.o.
2599 (blockframe.o): Update dependencies.
2600
208d8187
JB
26012002-11-08 Jim Blandy <jimb@redhat.com>
2602
2603 * dwarf2read.c (read_func_scope): Restore local_symbols and
2604 param_symbols after we finish the function context. (Based on a
2605 patch from David Edelsohn.)
2606
413dad4d
DC
26072002-11-08 David Carlton <carlton@math.stanford.edu>
2608
2609 * linespec.c (symbol_found): New function.
2610 (minsym_found): New function.
2611 (decode_line_1): Separate out some code into separate functions.
2612
5512c44a
JB
26132002-11-08 Joel Brobecker <brobecker@gnat.com>
2614
2615 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2616 the benefit of the interix target.
2617 * i386-tdep.h (i386_frameless_signal_p): Declare.
2618
1b33ef47
AC
26192002-11-08 Andrew Cagney <ac131313@redhat.com>
2620
2621 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2622 declaration that snuck in from change below.
2623
23a34459
AC
26242002-11-06 Andrew Cagney <cagney@redhat.com>
2625
2626 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2627 all callers.
2628 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2629 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2630 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2631 (i386_mxcsr_regnum_p): new function. Use instead of
2632 MXCSR_REGNUM_P.
2633 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2634 (i386_sse_regnum_p): Declare.
2635 (i386_mxcsr_regnum_p): Declare.
2636 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2637 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2638 (IS_FP_REGNUM): Update definition.
2639 (IS_FPU_CTRL_REGNUM): Update definition..
2640 (IS_SSE_REGNUM): Update definition..
2641 * i386v-nat.c (register_u_addr): Update.
2642 * go32-nat.c (fetch_register): Update.
2643 (store_register): Update.
2644
d709c020
JB
26452002-11-07 Joel Brobecker <brobecker@gnat.com>
2646
2647 Preparation work to convert the hppa targets to multiarch partial.
2648
2649 * hppa-tdep.c: Add new functions replacing macro bodies from
2650 config/pa/tm-hppa.h. These function will be used to initialize
2651 the gdbarch structure. Import some comments from tm-hppa.h,
2652 and place them where appropriate, to avoid loosing them when
2653 we cleanup this file.
2654 (hppa_reg_struct_has_addr): New function.
2655 (hppa_inner_than): New function.
2656 (hppa_stack_align): New function.
2657 (hppa_pc_requires_run_before_use): New function.
2658 (hppa_instruction_nullified): New function.
2659 (hppa_register_byte): New function.
2660 (hppa_register_virtual_type): New function.
2661 (hppa_store_struct_return): New function.
2662 (hppa_cannot_store_register): New function.
2663 (hppa_frame_args_address): New function.
2664 (hppa_frame_locals_address): New function.
2665 (hppa_smash_text_address): New function.
2666 (hppa_coerce_float_to_double): New function. Requires the inclusion
2667 of "language.h".
2668
2669 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2670
2671 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2672 gdbarch-eligible macro to a call to the new associated function
2673 created in hppa-tdep.c.
2674 (INNER_THAN): Likewise.
2675 (STACK_ALIGN): Likewise.
2676 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2677 (INSTRUCTION_NULLIFIED): Likewise.
2678 (REGISTER_BYTE): Likewise.
2679 (REGISTER_VIRTUAL_TYPE): Likewise.
2680 (STORE_STRUCT_RETURN): Likewise.
2681 (CANNOT_STORE_REGISTER): Likewise.
2682 (FRAME_ARGS_ADDRESS): Likewise.
2683 (FRAME_LOCALS_ADDRESS): Likewise.
2684 (SMASH_TEXT_ADDRESS): Likewise.
2685 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2686 (ABOUT_TO_RETURN): Delete, as no longer used.
2687
83c31e7d
FN
26882002-11-07 Fernando Nasser <fnasser@redhat.com>
2689
2690 * printcmd.c (disassemble_command): Remove obsolete function.
2691 (_initialize_printcmd): Do not create disassemble command here.
2692 * cli/cli-cmds.c (disassemble_command): New function. Implements
2693 disassemble command.
2694 (init_cli_cmds): Create disassemble command here instead.
2695
0ec30a36
AC
26962002-11-07 Andrew Cagney <ac131313@redhat.com>
2697
2698 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2699
e600bd34
AC
27002002-11-07 Andrew Cagney <ac131313@redhat.com>
2701
2702 * regcache.h (regcache_cooked_read_using_offset_hack)
2703 (regcache_cooked_write_using_offset_hack): Delete declarations.
2704 (register_changed): Delete declaration.
2705 * regcache.c (regcache_cooked_read_using_offset_hack)
2706 (regcache_cooked_write_using_offset_hack): Delete functions.
2707 (cooked_xfer_using_offset_hack): Delete function.
2708 (register_changed): Delete function.
2709
568f8739
JB
27102002-11-07 Jim Blandy <jimb@redhat.com>
2711
2712 * macroscope.c: #include "complaints.h".
2713 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2714 but not in the macro table.
2715 * Makefile.in (macroscope.o): Record dependency.
2716
b0718b7b
JB
27172002-11-07 Joel Brobecker <brobecker@gnat.com>
2718
2719 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2720
2b9e5f3f
AC
27212002-11-07 Andrew Cagney <ac131313@redhat.com>
2722
2723 * regcache.c (deprecated_registers_fetched): Update.
2724 * regcache.h (deprecated_registers_fetched): Rename
2725 registers_fetched.
2726 * remote-vxsparc.c (vx_read_register): Update.
2727 * remote-vxmips.c (vx_read_register): Update.
2728 * remote-vx68.c (vx_read_register): Update.
2729 * irix5-nat.c (fetch_core_registers): Update.
2730 * mipsm3-nat.c (fetch_inferior_registers): Update.
2731 * sun3-nat.c (fetch_inferior_registers): Update.
2732 * symm-nat.c (fetch_inferior_registers): Update.
2733 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2734 (fetch_core_registers): Update.
2735 (fetch_kcore_registers): Update.
2736 * mips-nat.c (fetch_inferior_registers): Update.
2737 * corelow.c (get_core_registers): Update.
2738 * a68v-nat.c (fetch_inferior_registers): Update.
2739
e6e68f1f
JB
27402002-11-06 Joel Brobecker <brobecker@gnat.com>
2741
2742 Put in place the framework necessary for multiarching the hppa targets.
2743 * hppa-tdep.c (hppa_gdbarch_init): New function.
2744 (hppa_dump_tdep): New function.
2745 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2746 tdep structure dumper.
2747 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2748 until the multi-arching conversion has partially been completed.
2749
492254e9
AC
27502002-11-06 Andrew Cagney <ac131313@redhat.com>
2751
2752 * valops.c (value_assign): Merge lval_register case into
2753 lval_reg_frame_relative. Use frame_register and
2754 regcache_cooked_write instead of get_saved_register and
2755 write_register_bytes. After flushing the register cache, try to
2756 re-select the selected frame.
2757
8262ee23
AC
27582002-11-06 Andrew Cagney <ac131313@redhat.com>
2759
2760 * regcache.h (deprecated_register_valid): Rename register_valid.
2761 * regcache.c: Update.
2762 * ia64-aix-nat.c: Update.
2763 * i386gnu-nat.c: Update.
2764 * alpha-nat.c: Update.
2765 * sparc-nat.c: Update.
2766 * lynx-nat.c: Update.
2767 * remote-mips.c: Update.
2768
4facf7e8
JB
27692002-11-06 Joel Brobecker <brobecker@gnat.com>
2770
2771 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2772 to end of file, to be more consistent with the pratice followed
2773 by other targets.
2774
f9418c0f
AC
27752002-11-06 Andrew Cagney <ac131313@redhat.com>
2776
2777 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2778 (print_float_info): Print registers in float_reggroup.
2779 (print_vector_info): Print registers in vector_reggroup.
2780 (default_print_registers_info): When all, print registers in
2781 all_reggroup. Otherwize, print registers in general_reggroup.
2782 (registers_info): Rewrite. Add support for register groups.
2783 Eliminate a goto.
2784
3fe235a7
EZ
27852002-11-06 Elena Zannoni <ezannoni@redhat.com>
2786
2787 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2788 ages.
2789 (symtab_symbol_info): Remove eons old ifdeffed out code.
2790 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2791 command.
2792
ef944135
TR
27932002-11-06 Theodore A. Roth <troth@openavr.org>
2794
2795 * c-exp.y: Add missing semi-colons.
2796 * f-exp.y: Add missing semi-colons.
2797 * m2-exp.y: Add missing semi-colons.
2798 * p-exp.y: Add missing semi-colons.
2799 Add empty action to start rule to avoid a type clash error when
2800 building with bison >= 1.50.
2801
f8302a57
JB
28022002-11-06 Jim Blandy <jimb@redhat.com>
2803
2804 * macrotab.h (struct macro_source_file): Doc fix.
2805
6e382aa3
JJ
28062002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2807
2808 * varobj.c (child_exists, cplus_number_of_children): Change
2809 STREQ macro references to strcmp.
2810 (cplus_name_of_child): Change code to handle the fact that
2811 fields are not necessarily contiguous with regards to their
2812 access control. This is a fix for PR gdb/792.
2813
a216a322
AC
28142002-11-05 Andrew Cagney <ac131313@redhat.com>
2815
2816 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2817 * gdbarch.h, gdbarch.c: Regnerate.
2818 * frame.h (frame_register): Declare.
2819 * frame.c (frame_register): New function.
2820 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2821 GET_SAVED_REGISTER, otherwize call
2822 generic_unwind_get_saved_register.
2823 (frame_register_read): Use frame_register instead of
2824 get_saved_register.
2825
7d5b6fdd
EZ
28262002-11-05 Elena Zannoni <ezannoni@redhat.com>
2827
2828 From Jim Ingham <jingham@apple.com>:
2829 * event-top.c (gdb_disable_readline): New function.
2830 (_initialize_event_loop): Move comment.
2831
b7c64260
EZ
28322002-11-05 Elena Zannoni <ezannoni@redhat.com>
2833
2834 * event-loop.c (start_event_loop): Add comment.
2835 Update copyright.
2836
c2e1b8f2
AC
28372002-11-05 Andrew Cagney <ac131313@redhat.com>
2838
2839 * infcmd.c (default_print_registers_info): Do not call
2840 PRINT_REGISTER_HOOK.
2841
87647bb0
AC
28422002-11-05 Andrew Cagney <ac131313@redhat.com>
2843
2844 * sparc-tdep.c (sparc_print_register_hook): Make static.
2845 (sparc_print_registers_info): New function.
2846 (sparc_do_registers_info): New function.
2847 (sparclet_print_registers_info): New function.
2848 (sparclet_do_registers_info): New function.
2849 (do_sparc_print_registers_info): New function.
2850 (sparc_print_registers): New static function, clone of infcmd.c's
2851 default_print_registers_info.
2852 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2853 (sparclet_do_registers_info): Declare.
2854 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2855 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2856 Re-define.
2857 (sparc_do_registers_info): Declare.
2858 (PRINT_REGISTER_HOOK): Delete macro.
2859 (sparc_print_register_hook): Delete declaration.
2860
8155455b
DC
28612002-11-05 David Carlton <carlton@math.stanford.edu>
2862
2863 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2864 functions.
2865 (lookup_symbol_aux_local): New function.
2866 (lookup_symbol_aux_symtabs): New function.
2867 (lookup_symbol_aux_psymtabs): New function.
2868
29924310
DC
28692002-11-05 David Carlton <carlton@math.stanford.edu>
2870
2871 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2872 previous values of 'objfile' and 'block'.
2873
cc303028
PM
28742002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2875
2876 * values.c (value_change_enclosing_type): Set
2877 enclosing_type field correctly also for the case where
2878 more memory needs to be allocated.
2879
1d70089a
MK
28802002-11-03 Mark Kettenis <kettenis@gnu.org>
2881
f16a25ae
MK
2882 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2883 of puts_filtered.
2884
1d70089a
MK
2885 * i387-tdep.c (i387_print_float_info): Replace calls to
2886 register_read and deprecated_read_register_gen with calls to
2887 frame_register_read, and make the necessary adjustments to the
2888 surrounding code.
2889
7e20f3fb
AC
28902002-11-02 Andrew Cagney <ac131313@redhat.com>
2891
2892 * gdbarch.sh (register_reggroup_p): Allow default value.
2893 * gdbarch.h, gdbarch.c: Regenerate.
2894
192dbe33
AC
28952002-11-02 Andrew Cagney <ac131313@redhat.com>
2896
2897 * regcache.h: Add coment indicating replacements for deprecated
2898 functions.
2899
b59ff9d5
AC
29002002-11-02 Andrew Cagney <cagney@redhat.com>
2901
2902 * reggroups.h, reggroups.c: New files.
2903 * regcache.c: Include "reggroups.h".
2904 (enum regcache_dump_what): Add `regcache_dump_groups'.
2905 (regcache_dump): Contract size of the "Type" column. When
2906 specified, dump the register's groups.
2907 (maintenance_print_register_groups): New function.
2908 (_initialize_regcache): Add command `maint print register-groups'.
2909 * Makefile.in (COMMON_OBS): Add reggroups.o
2910 (SFILES): Add reggroups.c.
2911 (reggroups_h): Define.
2912 (regcache.o, gdbarch.o): Update dependencies.
2913 (reggroups.o): Specify dependencies.
2914 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2915 Add opaque declaration for `struct reggroup' in generated .h file.
2916 Include "reggroups.h" in generated .c file.
2917 gdbarch.h, gdbarch.c: Re-generate.
2918
4caf0990
AC
29192002-11-02 Andrew Cagney <cagney@redhat.com>
2920
2921 * regcache.h (deprecated_read_register_gen): Rename
2922 read_register_gen.
2923 (deprecated_write_register_gen): Rename write_register_gen.
2924 * i387-tdep.c: Update.
2925 * x86-64-linux-nat.c: Update
2926 * wince.c: Update.
2927 * thread-db.c: Update.
2928 * win32-nat.c: Update.
2929 * mips-tdep.c: Update.
2930 * d10v-tdep.c: Update.
2931 * cris-tdep.c: Update.
2932 * remote-sim.c: Update.
2933 * remote-rdi.c: Update.
2934 * remote-rdp.c: Update.
2935 * frame.c: Update.
2936 * target.c: Update.
2937 * blockframe.c: Update.
2938 * x86-64-tdep.c: Update.
2939 * xstormy16-tdep.c: Update.
2940 * sh-tdep.c: Update.
2941 * s390-tdep.c: Update.
2942 * rs6000-tdep.c: Update.
2943 * sparc-tdep.c: Update.
2944 * i386-tdep.c: Update.
2945 * dwarf2cfi.c: Update.
2946 * regcache.c: Update.
2947
7a7adcdf
JB
29482002-11-01 Joel Brobecker <brobecker@gnat.com>
2949
2950 New interix-specific files:
2951 * config/i386/nm-interix.h: New file.
2952 * config/i386/interix.mh: New file.
2953 * config/i386/interix.mt: New file.
2954 * i386-interix-nat.c: New file.
2955 * i386-interix-tdep.c: New file.
2956
bdcdd535
AC
29572002-11-01 Andrew Cagney <cagney@redhat.com>
2958
2959 * frame.h (deprecated_generic_get_saved_register): Rename
2960 generic_get_saved_register.
2961 * blockframe.c (deprecated_generic_get_saved_register): Update.
2962 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2963 (xstormy16_frame_saved_register): Update.
2964 * sh-tdep.c (sh_gdbarch_init): Update.
2965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2966 * ia64-tdep.c (ia64_get_saved_register): Update.
2967 * cris-tdep.c (cris_gdbarch_init): Update.
2968 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2969 * arm-tdep.c (arm_gdbarch_init): Update.
2970
2a4b7c45
DJ
29712002-10-31 Daniel Jacobowitz <drow@mvista.com>
2972
2973 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2974
ef17e74b
DJ
29752002-10-31 Daniel Jacobowitz <drow@mvista.com>
2976
2977 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2978 trampolines in sigaction.
2979
4904ba5b
AC
29802002-10-31 Andrew Cagney <cagney@redhat.com>
2981
2982 * h8300-tdep.c: Include "gdb_assert.h".
2983 (h8300_print_register): Add gdbarch, file and frame parameters.
2984 Use frame_read_unsigned_register to read the register's value.
2985 Use fprintf_filtered to display output.
2986 (h8300_print_registers_info): Replace h8300_do_registers_info.
2987 (h8300_gdbarch_init): Set print_registers_info.
2988
f908a0eb
AC
29892002-10-31 Andrew Cagney <cagney@redhat.com>
2990
2991 * frame.c (frame_read_unsigned_register): New function.
2992 (frame_read_signed_register): New function.
2993 * frame.h (frame_read_unsigned_register): Declare.
2994 (frame_read_signed_register): Declare.
2995
c5646e11
AC
29962002-10-31 Andrew Cagney <cagney@redhat.com>
2997
2998 * h8500-tdep.c (h8500_print_registers_info): New static function,
2999 clone of infcmd.c's default_print_registers_info.
3000 (h8500_do_registers_info): New funtion.
3001 (h8500_print_register_hook): Rename print_register_hook, make
3002 static.
3003
3004 * config/h8500/tm-h8500.h: Update copyright.
3005 (DEPRECATED_DO_REGISTERS_INFO): Define.
3006 (h8500_do_registers_info: Declare.
3007 (PRINT_REGISTER_HOOK): Delete macro.
3008 (print_register_hook): Delete function.
3009
0bdd672b
AC
30102002-10-31 Andrew Cagney <cagney@redhat.com>
3011
3012 * z8k-tdep.c (z8k_print_register_hook): Make static.
3013 (z8k_print_registers_info): New static function, clone of
3014 infcmd.c's default_print_registers_info.
3015 (z8k_do_registers_info): New function. Wrap
3016 z8k_print_registers_info.
3017 * config/z8k/tm-z8k.h: Update copyright.
3018 (PRINT_REGISTER_HOOK): Delete macro.
3019 (z8k_print_register_hook): Delete declaration.
3020 (DEPRECATED_DO_REGISTERS_INFO): Define.
3021 (z8k_do_registers_info): Declare.
3022
bf9c25dc
JB
30232002-10-30 Joel Brobecker <brobecker@gnat.com>
3024
3025 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3026 as this is already provided by value.h, and was actually causing
3027 a compilation error because of a conflict in parameter type
3028 declaration due to a missing const keyword.
3029 (low_text_segment_addres): Fix a compilation warning.
3030
2c665b51
DJ
30312002-10-29 Daniel Jacobowitz <drow@mvista.com>
3032
3033 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3034 registers without a name.
3035 (mips_linux_cannot_store_register): Don't store registers without
3036 a name.
3037
e70ea697
DC
30382002-10-28 David Carlton <carlton@math.stanford.edu>
3039
3040 * symtab.c (find_addr_symbol): Delete. (It was already commented
3041 out.)
3042 * symtab.h: Delete prototype for find_addr_symbol.
3043
903ad3a6
AC
30442002-10-26 Andrew Cagney <cagney@redhat.com>
3045
3046 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3047 DO_REGISTERS_INFO.
3048 gdbarch.h, gdbarch.c: Re-generate.
3049 * infcmd.c (default_print_registers_info): Update reference.
3050 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3051 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3052 * sh-tdep.c (sh_gdbarch_init): Ditto.
3053 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3054 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3055
ab91194c
MK
30562002-10-26 Mark Kettenis <kettenis@gnu.org>
3057
e3033f15
MK
3058 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3059 cfi_init_extra_frame_info.
3060 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3061 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3062
b83b026c
MK
3063 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3064 target where necessary. Add more comments and remove the ones
3065 that don't provide any useful information.
3066
267bf4bb
MK
3067 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3068 deprecated_read_register_dummy with
3069 frame_unwind_unsigned_register.
3070
751f1375
MK
3071 * i386-tdep.c (i386_extract_struct_value_address): Use
3072 regcache_raw_read_unsigned instead of
3073 regcache_cooked_read_unsigned since we know that the register
3074 we're reading isn't a pseudo register. Rename variable 'val' into
3075 the more descriptive 'addr'.
3076
26abbdc4
MK
3077 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3078 (x86_64_push_return_address): Add comment.
3079 (x86_64_pop_frame): Make static.
3080 (examine_argument): Clarify comment.
3081 (x86_64_skip_prologue): Make prolog_expact variable static.
3082
9f1549cc
MK
3083 * dwarf2cfi.c: Fix some formatting problems.
3084 (context_cpy, read_encoded_pointer): Clarify comments.
3085
ab91194c
MK
3086 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3087 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3088 i386 target back into x86_64_gdbarch_init. Add some comments and
3089 remove meaningless ones.
3090
72367fb4
AC
30912002-10-25 Andrew Cagney <cagney@redhat.com>
3092
3093 * complaints.h (struct deprecated_complaint): Rename `struct
3094 complaint'.
3095 * complaints.c (complain): Update.
3096 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3097 incorrect comment indicating that "symfile.h" was being included
3098 for the `struct complaint' definition.
3099 * remote-vx.c: Update.
3100 * objc-lang.c: Update.
3101 * xcoffread.c: Update.
3102 * hpread.c: Update.
3103 * mdebugread.c: Update.
3104 * stabsread.c: Update.
3105 * dwarf2read.c: Update.
3106 * dwarfread.c: Update.
3107 * elfread.c: Update.
3108 * coffread.c: Update.
3109 * stabsread.h: Update.
3110 * dbxread.c: Update.
3111 * buildsym.c: Update.
3112 * gdbtypes.c: Update.
3113 * macrotab.c: Update.
3114
1f2baacc
MK
31152002-10-25 Mark Kettenis <kettenis@gnu.org>
3116
0c1a73d6
MK
3117 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3118 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3119 (x86_64_init_abi): ...new function.
3120
6aee4d54 3121 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
3122 * i386v-nat.c: Include "i386-tdep.h".
3123
8f9cbe01
AC
31242002-10-25 Andrew Cagney <cagney@redhat.com>
3125
5f11f355
AC
3126 * gdbtypes.c (address_space_name_to_int): Update.
3127 (address_space_int_to_name): Update.
3128 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3129 multi-arch predicate.
3130 (address_class_name_to_type_flags): Ditto.
3131 * gdbarch.h, gdbarch.c: Re-generate.
3132
8f9cbe01
AC
3133 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3134
e8d96a5d
MH
31352002-10-24 Martin M. Hunt <hunt@redhat.com>
3136
3137 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3138
fe39c653
EZ
31392002-10-24 Elena Zannoni <ezannoni@redhat.com>
3140
3141 * symtab.h (INIT_SAL): Delete macro.
3142 (init_sal): Export.
3143 * symtab.c (init_sal): New function.
3144
3145 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3146 to init_sal function call.
3147 (find_sal_from_funcs_and_line): Ditto.
3148 (all_sals_for_line): Ditto.
3149 * breakpoint.c (create_internal_breakpoint): Ditto.
3150 (create_fork_vfork_event_catchpoint): Ditto.
3151 (create_exec_event_catchpoint): Ditto.
3152 (parse_breakpoint_sals): Ditto.
3153 (watch_command_1): Ditto.
3154 (handle_gnu_4_16_catch_command): Ditto.
3155 (clear_command): Ditto.
3156 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3157 * infcmd.c (run_stack_dummy): Ditto.
3158 * infrun.c (process_event_stop_test): Ditto.
3159 (check_sigtramp2): Ditto.
3160 (step_over_function): Ditto.
3161 * linespec.c (decode_line_2): Ditto.
3162 (decode_line_1): Ditto.
3163 * source.c (line_info): Ditto.
3164 * symtab.c (find_pc_sect_line): Ditto.
3165
baed091b
ML
31662002-10-24 Michal Ludvig <mludvig@suse.cz>
3167
3168 * dwarf2cfi.c (struct context)
3169 (struct context_reg): Moved to dwarf2cfi.h
3170 (context_alloc, frame_state_alloc, context_cpy):
3171 Made extern instead of static, removed prototypes.
3172 * dwarf2cfi.h (struct context)
3173 (struct context_reg): New, moved from dwarf2cfi.c
3174 (context_alloc, frame_state_alloc, context_cpy):
3175 New prototypes.
3176 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3177 Changed from static to extern.
3178 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3179 (LINUX_SIGCONTEXT_FP_OFFSET)
3180 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3181 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3182 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3183 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3184 set_gdbarch_*() calls now use x86-64 specific functions
3185 instead of DWARF2 CFI ones.
3186 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3187 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3188 (x86_64_init_extra_frame_info): New prototypes.
3189
c38da1af
DC
31902002-10-23 David Carlton <carlton@math.stanford.edu>
3191
3192 * linespec.c: #include "parser-defs.h".
3193 Delete prototype for find_template_name_end.
3194 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3195
fb9b6b35
JJ
31962002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3197
3198 * NEWS: add recent mi fixes.
3199 * varobj.c (struct varobj): Add new "updated" flag.
3200 (new_variable): Default "updated" flag to 0.
3201 (varobj_set_value): Set "updated" flag to 1 if value
3202 changes.
3203 (varobj_update): Check varobj "updated" flag before
3204 comparing old and refreshed values. Fix for
3205 PR gdb/702.
3206
8da065d5
DC
32072002-10-23 David Carlton <carlton@math.stanford.edu>
3208
3209 * parse.c (parse_exp_1): Use BLOCK_START.
3210 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3211 SYMBOL_BLOCK_VALUE.
3212 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3213
87f2f08c
DC
32142002-10-23 David Carlton <carlton@math.stanford.edu>
3215
3216 * symtab.c: Delete cplusplus_hint.
3217 Delete prototype for find_template_name_end.
3218
88cda038
EZ
32192002-10-23 Elena Zannoni <ezannoni@redhat.com>
3220
3221 * symtab.h: Update comment.
3222
2625d86c
MS
32232002-10-23 Michael Snyder <msnyder@redhat.com>
3224
3225 * printcmd.c (address_info): Restore quotes in output.
3226 * valops.c (value_of_local): Restore quotes in error message.
3227
9cc0d196
EZ
32282002-10-23 Elena Zannoni <ezannoni@redhat.com>
3229
3230 * symtab.c (symbol_demangled_name): New function.
3231 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3232 turning most of it into a function.
3233 (symbol_demangled_name): Export.
3234
19de93d0
MS
32352002-10-23 Michael Snyder <msnyder@redhat.com>
3236
3237 * valops.c (value_of_local): Restore quotes in error message.
3238
89aad1f9
EZ
32392002-10-23 Elena Zannoni <ezannoni@redhat.com>
3240
3241 * symtab.c (symbol_init_language_specific): New function.
3242 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3243 turning most of it into a function.
3244 (symbol_init_language_specific): Export.
3245
d9fa45fe
DC
32462002-10-23 David Carlton <carlton@math.stanford.edu>
3247
3248 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3249 (dwarf_attr_name): Ditto.
3250 (dwarf_type_encoding_name): Ditto.
3251 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3252 (process_die): Handle DW_TAG_namespace,
3253 DW_TAG_imported_declaration, DW_TAG_imported_module.
3254 (read_namespace): New function.
3255
1045b512
JB
32562002-10-22 Joel Brobecker <brobecker@gnat.com>
3257
3258 * configure.in: Define NEW_PROC_API on Interix too.
3259 * configure: Regenerate.
3260
32612002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
3262
3263 * configure: Regenerate using the proper version of autoconf.
3264
3987b9d4
EZ
32652002-10-21 Elena Zannoni <ezannoni@redhat.com>
3266
3267 * findvar.c (read_var_value): Temporarily disable TLS code, until
3268 complete TLS support is added.
3269
9d774e44
EZ
32702002-10-21 Jim Blandy <jimb@redhat.com>
3271 Elena Zannoni <ezannoni@redhat.com>
3272
3273 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3274 for thread local storage locations.
3275 (struct symbol): Add objfile field.
3276 (SYMBOL_OBJFILE): Define.
3277 * dwarf2read.c (is_thread_local): New static variable.
3278 (new_symbol): If variable is in thread local fill in address class
3279 and objfile appropriately.
3280 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3281 stack operation.
3282 * printcmd.c (address_info): Print the information for thread
3283 local storage variable.
3284 * findvar.c (read_var_value): In case of thread local variable,
3285 defer to the target vector code to compute address.
3286
bc4a16ae
EZ
32872002-10-21 Elena Zannoni <ezannoni@redhat.com>
3288
3289 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3290 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3291
407caf07
EZ
32922002-10-21 Elena Zannoni <ezannoni@redhat.com>
3293
3294 * symtab.h (address_class): Rename
3295 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3296 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3297 * printcmd.c (address_info): Ditto.
3298 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3299
005328e3
MK
33002002-10-20 Mark Kettenis <kettenis@gnu.org>
3301
afdb036a
MK
3302 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3303 DBREG_DRX macro to acces debug registers.
3304
ca02e098
MK
3305 * Makefile.in (i386obsd-tdep.o): New target.
3306
03cc47f7
MK
3307 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3308 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3309
005328e3
MK
3310 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3311 * config/i386/obsd.mt: New file.
3312 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3313 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3314 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3315 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3316 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3317 * i386obsd-tdep.c: New file.
3318
9c96f9f2
AF
33192002-10-19 Adam Fedor <fedor@gnu.org>
3320
3321 * objc-exp.y (name_not_typename): Fix invalid comment.
3322
ce1ed485
MK
33232002-10-20 Mark Kettenis <kettenis@gnu.org>
3324
3325 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3326 to allocate partial syms and macro byte caches.
3327
1efc7aaa
DC
33282002-10-18 David Carlton <carlton@math.stanford.edu>
3329
3330 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3331
7e1d63ec
AF
33322002-10-18 Adam Fedor <fedor@gnu.org>
3333
3334 * stabsread.c (find_name_end): New function.
3335 (define_symbol): Use it.
3336
6e8d29a9
DJ
33372002-10-18 Daniel Jacobowitz <drow@mvista.com>
3338
3339 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3340 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3341 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3342 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3343
1efc7aaa 33442002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
3345
3346 * symfile.h: Add opaque declaration for struct obstack.
3347 Declare obsavestring to take a const char *.
3348 * symfile.c (obsavestring): Make first argument a const char *.
3349
1aeae86e
AF
33502002-10-16 Adam Fedor <fedor@gnu.org>
3351
3352 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3353 names when matching breakpoints in current file.
3354
8b2dbe47
KB
33552002-10-16 Kevin Buettner <kevinb@redhat.com>
3356
3357 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3358 (read_tag_pointer_type): Add address class support.
3359 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3360 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3361 New methods.
3362 * gdbarch.h, gdbarch.c: Regenerate.
3363 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3364 (make_type_with_address_space, recursive_type_dump): Add address
3365 class support.
3366 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3367 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3368 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3369
74451869
KD
33702002-10-16 Klee Dienes <kdienes@apple.com>
3371
3372 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3373 to get the last character of a char[] buffer, not
3374 name[sizeof(vptr_name)-1].
3375
ff4cb3e8
AF
33762002-10-14 Adam Fedor <fedor@gnu.org>
3377
3378 * symtab.h: New objc_specific struct.
3379 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3380 (SYMBOL_DEMANGLED_NAME): Likewise.
3381
da2cf7e0
AF
33822002-10-14 Adam Fedor <fedor@gnu.org>
3383
3384 * symfile.c (init_filename_language_table): Add ObjC file extension.
3385
4a351cef
AF
33862002-10-14 Adam Fedor <fedor@gnu.org>
3387
3388 * utils.c (puts_filtered_tabular): New function.
3389 (fprintf_symbol_filtered): Get ObjC demangled name.
3390 * defs.h (puts_filtered_tabular): Declared.
3391
9750e763
KB
33922002-10-14 Kevin Buettner <kevinb@redhat.com>
3393
3394 * c-lang.h (c_type_print_varspec_prefix): Delete.
3395 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3396 ``need_post_space'' parameter. Adjust all callers.
3397
eee771c1
DJ
33982002-10-14 Daniel Jacobowitz <drow@mvista.com>
3399
3400 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3401 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3402 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3403 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3404
46c82446
AF
34052002-10-13 Adam Fedor <fedor@gnu.org>
3406
3407 * source.c (print_source_lines): Update comments.
3408
d069f99d
AF
34092002-10-13 Adam Fedor <fedor@gnu.org>
3410
3411 * valops.c (value_of_local): New function.
3412 (value_of_this): Use it.
3413 * value.h (value_of_local): Declared.
3414
53c551b7
AF
34152002-10-13 Adam Fedor <fedor@gnu.org>
3416
3417 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3418 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3419
eb392fbf
AF
34202002-10-12 Adam Fedor <fedor@gnu.org>
3421
3422 * language.c (binop_result_type): Add language_objc to case.
3423 (integral_type): Likewise.
3424 (character_type): Likewise.
3425 (string_type): Likewise.
3426 (boolean_type): Likewise.
3427 (structured_type): Likewise.
3428 (binop_type_check): Likewise.
3429
e2b23ee9
AF
34302002-10-11 Adam Fedor <fedor@gnu.org>
3431
3432 * printcmd.c (address_info): Print 'self' for ObjC.
3433
b01ab485
AF
34342002-10-11 Adam Fedor <fedor@gnu.org>
3435
3436 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3437 OP_SELF.
3438
806e6073
AF
34392002-10-11 Adam Fedor <fedor@gnu.org>
3440
3441 * language.h (CAST_IS_CONVERSION): Add language_objc.
3442
50f85cdf
AF
34432002-10-11 Adam Fedor <fedor@gnu.org>
3444
3445 * defs.h (enum language): Add language_objc.
3446
0d540cdf
KD
34472002-10-11 Klee Dienes <kdienes@apple.com>
3448
69266111 3449 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3450 * gdbcore.h (read_memory_typed_address): Add prototype.
3451 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3452 to read a value destined for a CORE_ADDR, not read_memory_integer.
3453 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3454 (f77_get_dynamic_lowerbound): Ditto.
3455
d5dc7960
MH
34562002-10-11 Martin M. Hunt <hunt@redhat.com>
3457
3458 * utils.c (string_to_core_addr): After turning string into
3459 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3460 which will do necessary sign-extension, etc.
3461
8343f86c
DJ
34622002-10-11 Daniel Jacobowitz <drow@mvista.com>
3463
3464 * c-exp.y (THIS): Delete token and grammar rule.
3465 (yylex): Don't return THIS.
3466 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3467 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3468 * demangle.c (cplus_markers): Update comment. Put '$'
3469 first. Remove CPLUS_MARKER.
3470 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3471 * jv-exp.y (THIS): Delete token and grammar rule.
3472 (yylex): Don't return THIS.
3473 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3474 * objc-exp.y (THIS): Delete token and grammar rule.
3475 (yylex): Don't return THIS.
3476 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3477 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3478 (read_member_functions): Likewise for opname.
3479 (read_tilde_fields): Use is_cplus_marker.
3480
3481 * defs.h (CPLUS_MARKER): Don't define.
3482 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3483 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3484 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3485 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3486 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3487
3488 * config/i386/tm-i386v4.h: Delete file.
3489 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3490 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3491 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3492 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3493 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3494 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3495 * config/i386/i386v4.mt (TM_FILE): Likewise.
3496 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3497
967c0d83
MM
34982002-10-10 Marko Mlinar <markom@opencores.org>
3499
3500 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3501 accidentially not commited 2002-10-09
3502 * gdbarch.h, gdbarch.c: Re-generate.
3503
f74fa174
MM
35042002-10-09 Marko Mlinar <markom@opencores.org>
3505
3506 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3507 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3508 * gdbarch.h, gdbarch.c: Re-generate.
3509
57349743
JB
35102002-10-08 Petr Sorfa <petrs@caldera.com>
3511
3512 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3513
3514 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3515 so we can work on more than one compilation unit at a time. This
3516 helps prepare GDB to handle inter-CU die references.
3517 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3518 the code to be defined before struct comp_unit_head.
3519 (comp_unit_head): Added new members - offset, cu_head,
3520 begin_die, next and dwarf2_abbrevs.
3521 (dwarf2_abbrevs): Removed single static var; now member of
3522 struct comp_unit_head.
3523 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3524 members.
3525 (psymtab_to_symtab_1): Changed to work with the new
3526 struct comp_unit_head.
3527 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3528 constructs the dwarf2_abbrevs[] inside the cu_header.
3529 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3530 dwarf2_abbrev table to clean up.
3531 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3532 handling of dwarf2_abbrevs inside the cu_header.
3533 (read_partial_die): Now supports the call to the new
3534 dwarf2_lookup_abbrev.
3535 (read_full_die): Now supports the call to the new
3536 dwarf2_lookup_abbrev.
3537
4092aadb
CF
35382002-10-06 Christopher Faylor <cgf@redhat.com>
3539
3540 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3541 insure that shell variables, such as "transformed_name" are propagated
3542 to later shell statements in rule.
3543
af0b2512
MK
35442002-10-06 Mark Kettenis <kettenis@gnu.org>
3545
3546 * config/i386/nm-i386sco.h: Add protection against
3547 multiple-inclusion. Include "i386/nm-i386v.h".
3548 (REGISTER_U_ADDR): Remove define.
3549 (i386_register_u_addr): Remove prototype.
3550
d6020d45
MS
35512002-10-04 Michael Snyder <msnyder@redhat.com>
3552
3553 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3554 before treating it as a single-step event.
3555
7248f48e
AF
35562002-10-03 Adam Fedor <fedor@gnu.org>
3557
3558 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3559 (objc_demangle): Remove assignment in if statements, Replace
3560 free with xfree.
3561 (add_msglist): Likewise.
3562 (end_msglist): Likewise.
3563 (complare_selectors): Likewise.
3564 (selectors_info): Likewise.
3565 (compare_classes): Likewise.
3566 (classes_info): Likewise.
3567 (print_object_command): Likewise.
3568 (find_objc_msgcall_submethod): Replace PTR with void *.
3569 * objc-lang.h: Remove check for __STDC__.
3570
52c6a6ac
JJ
35712002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3572
3573 * ui-out.h (ui_out_field_fmt_int): New prototype.
3574 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3575 of field width and alignment.
3576 * stack.c (print_frame_info_base): When printing frame level, use
3577 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3578 PR gdb/192
3579
7e3cec17
JJ
35802002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3581
3582 * MAINTAINERS: Add self to Write After Approval list.
3583
a58dd373
EZ
35842002-10-02 Elena Zannoni <ezannoni@redhat.com>
3585
3586 * infcmd.c (interrupt_target_command_wrapper): Delete.
3587 (interrupt_target_command): Make non static.
3588 (nofp_registers_info): Make static.
3589 * stack.c (return_command_wrapper): Delete.
3590 (return_command): Make non static.
3591
cee6ddeb
EZ
35922002-10-02 Elena Zannoni <ezannoni@redhat.com>
3593
3594 * event-top.c (gdb_setup_readline): New function. Code moved from
3595 _initialize_event_loop().
3596 (_initialize_event_loop): Call gdb_setup_readline().
3597
c4ed33b9
AC
35982002-10-02 Andrew Cagney <ac131313@redhat.com>
3599
3600 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3601 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3602 * gdbarch.h, gdbarch.c: Re-generate.
3603
cef4f5dd
DJ
36042002-10-02 Daniel Jacobowitz <drow@mvista.com>
3605
3606 Fix PR gdb/778
3607 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3608 before recursing.
3609 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3610 of fill_in_vptr_fieldno.
3611
36dc181b 36122002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3613
36dc181b
EZ
3614 * inferior.h (registers_info, stepi_command, nexti_command,
3615 continue_command, interrupt_target_command): Export from infcmd.c.
3616 * frame.h (args_info, selected_frame_level_changed_hook,
3617 return_command): Export from stack.c.
3618 * v850ice.c (stepi_command, nexti_command, continue_command): use
3619 prototypes from inferior.h.
3620 * tracepoint.c (registers_info, args_info, locals_info): Use
3621 prototypes from frame.h and inferior.h.
3622 * Makefile.in (mi-main.o): Add dependency on frame.h.
3623
6f99cb26
AC
36242002-10-02 Andrew Cagney <ac131313@redhat.com>
3625
da3eff49
AC
3626 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3627 value in register 3 adjusted by ppc_gp0_regnum.
3628
6f99cb26
AC
3629 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3630
da615bee
MM
36312002-10-02 Marko Mlinar <markom@opencores.org>
3632
3633 * MAINTAINERS: Add myself to the Write After Approval list.
3634
d154bee2
AO
36352002-10-01 Alexandre Oliva <aoliva@redhat.com>
3636
62a49b2c
AO
3637 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3638 of the section for the N64 ABI, fixed.
3639
d154bee2
AO
3640 * config/mips/tm-irix6.h: Include solib.h.
3641
ed348acc
EZ
36422002-10-01 Elena Zannoni <ezannoni@redhat.com>
3643
3644 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3645 GNU operators.
3646
da0f9dcd
AC
36472002-10-01 Andrew Cagney <ac131313@redhat.com>
3648
3649 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3650 and that "mi0" syntax has been removed.
3651
bdf64bac
DC
36522002-09-30 David Carlton <carlton@math.stanford.edu>
3653
3654 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3655 * ppc-sysv-tdep.c: #include "gdb_string.h".
3656 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3657 pacify GCC.
3658
54c2a1e6
AC
36592002-10-01 Andrew Cagney <ac131313@redhat.com>
3660
3661 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3662 "vrsave"'s register number.
3663
cedea778
AC
36642002-09-30 Andrew Cagney <ac131313@redhat.com>
3665
3666 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3667 use frame_unwind_signed_register to obtain the PC.
3668 (mips_frame_chain): Handle a generic dummy frame.
3669 (mips_init_extra_frame_info): When a generic dummy frame, don't
3670 re-compute the frame base.
3671 (mips_pop_frame): Handle generic dummy frames.
3672 (mips_gdbarch_init): When generic dummy frames, set
3673 use_generic_dummy_frames, push_dummy_frame to
3674 generic_push_dummy_frame, pc_in_call_dummy to
3675 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3676 generic_save_dummy_frame_tos.
3677
68315eb8
AC
36782002-09-30 Andrew Cagney <ac131313@redhat.com>
3679
3680 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3681 against TOP when TOP was explictly set.
3682 (generic_push_dummy_frame): Set TOP to zero.
3683
3b8630c3
EZ
36842002-09-30 Elena Zannoni <ezannoni@redhat.com>
3685
3686 * event-loop.c (start_event_loop): Rename variable 'result' to
3687 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3688
28ee05e9
KS
36892002-09-30 Keith Seitz <keiths@redhat.com>
3690
3691 * gdb-events.sh (selected_thread_changed): New event.
3692 * gdb-events.c: Regenerated.
3693 * gdb-events.h: Regenerated.
3694
6eecb1c8
HPN
36952002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3696
3697 * MAINTAINERS: Add self to Write After Approval list.
3698
92df71f0
FN
36992002-09-30 Fernando Nasser <fnasser@redhat.com>
3700
3b8630c3
EZ
3701 * disasm.c: New file.
3702 * disasm.h: New file.
92df71f0
FN
3703 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3704 (compare_lines): Ditto.
3705 (dump_insns): Ditto.
3b8630c3
EZ
3706 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3707 argument.
92df71f0 3708 (do_assembly_only): Ditto.
3b8630c3
EZ
3709 (do_disassembly): Renamed to gdb_disassembly and moved to
3710 disasm.c. Sdded uiout argument.
3711 * Makefile.in: Add new files. Reorder SFILES list. Update
3712 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3713
0c22854d
AC
37142002-09-29 Andrew Cagney <ac131313@redhat.com>
3715
3716 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3717 bfd/elf64-alpha-fbsd.c.
3718
e67f2023
AC
37192002-09-29 Andrew Cagney <ac131313@redhat.com>
3720
3721 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3722 i386gnu-tdep.c.
3723
89396210
AC
37242002-09-29 Andrew Cagney <ac131313@redhat.com>
3725
3726 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3727 __FUNCTION__.
3728 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3729 function name.
3730 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3731 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3732 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3733 (S_msg_sig_post_reply): Ditto.
3734
7079c36c
CV
37352002-09-28 Corinna Vinschen <vinschen@redhat.com>
3736
89396210
AC
3737 * sh-tdep.c (sh_use_struct_convention): Use definition according
3738 to ABI.
7079c36c
CV
3739 (sh_push_arguments): Store in register with correct endianess.
3740 (sh_default_store_return_value): Ditto.
3741 (sh_gdbarch_init): Set sizeof long double to 8.
3742
975ac915
MK
37432002-09-27 Mark Kettenis <kettenis@gnu.org>
3744
3745 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3746 Fix some whitespace problems.
3747
9bbe19fb
DC
37482002-09-27 David Carlton <carlton@math.stanford.edu>
3749
3750 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3751 (mcore-tdep.o): Ditto.
3752 (ns32k-tdep.o): Ditto.
3753 (ns32knbsd-tdep.o): Ditto.
3754 (sh3-rom.o): Ditto.
3755 (vax-tdep.o): Ditto.
3756 * cris-tdep.c: #include "gdb_string.h"
3757 * mcore-tdep.c: Ditto.
3758 * ns32k-tdep.c: Ditto.
3759 * ns32knbsd-tdep.c: Ditto.
3760 * sh3-rom.c: Ditto.
3761 * vax-tdep.c: Ditto.
3762
43b2fdc7
DC
37632002-09-27 David Carlton <carlton@math.stanford.edu>
3764
3765 * config/djgpp/fnchange.lst: Add entries for
3766 gdb/testsuite/gdb.c++/m-static files.
3767
e8cfbbd9
JW
37682002-09-27 Jim Wilson <wilson@redhat.com>
3769
3770 * MAINTAINERS: Add myself to the Write After Approval list.
3771
43b2fdc7 37722002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3773
3774 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3775
3776
9f3b7f07
AC
37772002-09-26 Andrew Cagney <ac131313@redhat.com>
3778
3779 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3780 frame.
3781
11269d7e
AC
37822002-09-26 Andrew Cagney <ac131313@redhat.com>
3783
3784 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3785 (rs6000_struct_return_address): Delete variable.
3786 (rs6000_store_struct_return): Update.
3787 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3788 deprecated_extract_struct_value_address.
3789 (rs6000_frame_align): New function.
3790 (rs6000_gdbarch_init): Set frame_align.
3791
f15ab4a7
AC
37922002-09-26 Andrew Cagney <ac131313@redhat.com>
3793
3794 From Grace Sainsbury <graces@redhat.com>:
3795 * Makefile.in (gdbtk-main.o): New target.
3796 (gdb.o): New target.
3797 (main_h): Define.
3798 (main.o): Update dependencies.
3799 (gdb$(EXEEXT)): Add gdb.o.
3800 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3801 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3802 (SUBDIR_GDBTK_CLEAN): Set.
3803 (install-gdbtk): Install the insight binary.
3804 (uninstall-gdbtk): New target.
3805 (all-gdbtk, clean-gdbtk): New rule.
3806 * top.c (use_windows): Default to zero.
3807 * main.c: Include "main.h".
3808 (main): Delete.
3809 (struct captured_main_args): Delete.
3810 (gdb_main): New function.
3811 * main.h: New file.
3812 * gdb.c: New File.
3813
e36180d7
AC
38142002-09-25 Andrew Cagney <cagney@redhat.com>
3815
3816 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3817 (frame_map_regnum_to_name): New function.
3818 (frame_map_name_to_regnum): New function.
3819 * frame.h (frame_map_name_to_regnum): Declare.
3820 (frame_map_regnum_to_name): Declare.
3821 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3822 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3823 * parse.c: Do not include "builtin-regs.h".
3824 (target_map_name_to_register): Delete function.
3825 (write_dollar_variable): Use frame_map_name_to_regnum.
3826 * parser-defs.h (target_map_name_to_register): Delete declaration.
3827 * expprint.c: Include "frame.h".
3828 (print_subexp): Use frame_map_regnum_to_name.
3829 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3830 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3831
8b69000d
AC
38322002-09-25 Andrew Cagney <ac131313@redhat.com>
3833
3834 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3835 wasn't saved, and the next innermost frame is a dummy, return the
3836 dummy frame's link register.
3837
046ca86a
JB
38382002-09-24 Jim Blandy <jimb@redhat.com>
3839
3840 Fix from Paul Breed:
3841 * main.c (captured_main): Add a `break' after the case for 'b'.
3842
94b66fa7
KS
38432002-09-24 Keith Seitz <keiths@redhat.com>
3844
3845 * varobj.c (c_type_of_child): Use get_target_type instead
3846 of TYPE_TARGET_TYPE.
3847
c214a6fd
FN
38482002-09-22 Fernando Nasser <fnasser@redhat.com>
3849
53cb0458
FN
3850 * source.c (get_current_or_default_source_symtab_and_line): Remove
3851 function.
3852 (set_default_source_symtab_and_line): New function. Attempts to
3853 determine a source file to list lines from if one is not currently
3854 defined.
3855 (get_current_source_symtab_and_line): Initialize sal.pc and
3856 sal.end fields.
3857 (set_current_source_symtab_and_line): Mark argument as const.
3858 * source.h: Update declarations and comments.
3859 * linespec.c (decode_line_1): Replace call to removed routine above.
3860 * stack.c (print_frame_info_base): Ditto.
3861 * cli/cli-cmds.c (edit_command): Ditto.
3862 (list_command): Ditto.
3863
38642002-09-22 Fernando Nasser <fnasser@redhat.com>
3865
d6020d45 3866 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3867 sal.pc and sal.end fields.
c214a6fd
FN
3868 (get_current_or_default_source_symtab_and_line): Ditto.
3869 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3870 so we do not cause a new source symtab to be searched for (reverting an
3871 unintentional change from the 2002-09-20 patch).
3872 * scm-lang.c (scm_unpac): Ditto.
3873
cc3b68a5
AC
38742002-09-21 Andrew Cagney <cagney@redhat.com>
3875
3876 * complaints.c (symfile_explanations): Remove new-line from
3877 ``isolated_message''.
3878 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3879 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3880
5835abe7
NC
38812002-09-20 Nick Clifton <nickc@redhat.com>
3882
3883 * NEWS: Announce that V850EA ISA is no longer supported.
3884 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3885
a15ef5f5
DC
38862002-09-20 David Carlton <carlton@math.stanford.edu>
3887
06ba1b39
DC
3888 * Makefile.in (c-lang.o): Correct dependencies.
3889 (utils.o): Gather dependencies.
3890 (charset.o): Move.
a15ef5f5
DC
3891 * c-lang.c: #include "gdb_string.h"
3892
87885426
FN
38932002-09-20 Fernando Nasser <fnasser@redhat.com>
3894
3895 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3896 * cli/cli-cmds.c (list_command): New function. Implements the new
3897 cli edit command.
3898 (_init_cli_cmds): Add new command definition.
3899 * gdb.1: Document edit command.
3900 * doc/gdb.texinfo: Document edit command.
3901
39022002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3903
3904 * source.c: Make global variables current_source_symtab and
3905 current_source_line static.
3906 (list_command): Moved to cli/cli-cmds.c.
3907 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3908 (get_first_line_listed): New accessor function.
3909 (get_lines_to_list): New accessor function.
3910 (get_current_source_symtab_and_line): New function. Retrieves the
3911 position in the source code that we consider current.
3912 (get_current_or_default_source_symtab_and_line): New function.
3913 Like the above but attempts to determine a default position if one
3914 is not currently defined.
3915 (set_current_source_symtab_and_line): New function. Sets the source
3916 code position considered current and returns the previously set one.
3917 (clear_current_source_symtab_and_line): Reset stored information about
3918 a current source line.
3919 (_initialize_source): Remove registration for the "list" command and
3920 its alias.
3921 * source.h: Add declarations for the new functions above.
3922 * symtab.h: Remove declarations for the global variables mentioned
3923 above.
3924 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3925 obtain current source line.
3926 * linespec.c (decode_line_1): Ditto.
3927 * macroscope.c (default_macro_scope): Ditto.
3928 * scm-lang.c (scm_unpac): Ditto.
3929 * stack.c (print_frame_info_base): Ditto.
3930 * symfile.c (clear_symtab_users): Ditto.
3931 * symtab.c (decode_line_spec): Ditto.
3932 * cli/cli-cmds.c (list_command): Moved here from source.c.
3933 (ambiguous_line_spec): Moved here from source.c.
3934 (_init_cli_cmds): Add definition for "list" and its alias.
3935 * Makefile.in: Update dependencies.
3936
ddd216ea
CV
39372002-09-20 Corinna Vinschen <vinschen@redhat.com>
3938
3939 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3940 with what gcc thinks is correct.
3941
6d305052
CV
39422002-09-20 Corinna Vinschen <vinschen@redhat.com>
3943
3944 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3945 multiple register push instruction.
3946
234b45d4
KB
39472002-09-19 Jim Blandy <jimb@redhat.com>
3948
3949 Add support for distinct host and target character sets.
3950 * charset.c, charset.h: New files.
3951 * c-exp.y: #include "charset.h".
3952 (yylex): Convert character and string literals to the target
3953 character set, before returning them as the semantic value of the
3954 token.
3955 * c-lang.c: #include "charset.h".
3956 (c_emit_char): Use charset-specific methods to recognize
3957 characters with backslash escape forms, to decide which characters
3958 to print literally and which to print using numeric escape
3959 sequences, and to convert target characters to host characters
3960 before printing.
3961 * utils.c: #include "charset.h".
3962 (no_control_char_error): New function.
3963 (parse_escape): Use charset-specific methods to recognize
3964 backslash escapes, parse `control character' notation, and convert
3965 characters from the host character set to the target character set.
3966 * configure.in: Set the default host character set.
3967 Check where to find iconv, and what its argument types might be.
3968 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3969 * Makefile.in (SFILES): List charset.c.
3970 (COMMON_OBS): List charset.o.
3971 (charset.o): New rule.
3972 (charset_h): New header dependency variable.
3973 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3974 (LIBICONV): New variable, set by configure.
3975 (CLIBS): Include $(LIBICONV) here.
3976 * aclocal.m4, config.in, configure: Regenerated.
3977
525d6a61
JB
39782002-09-19 Joel Brobecker <brobecker@gnat.com>
3979
3980 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3981 bison 1.35 warning.
3982
3ed93867
RE
39832002-09-19 Richard Earnshaw <rearnsha@arm.com>
3984
3985 * gdb_mbuild.sh: New file.
3986
437666f8
AC
39872002-09-19 Andrew Cagney <ac131313@redhat.com>
3988
3989 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3990
389e51db
AC
39912002-09-18 Andrew Cagney <ac131313@redhat.com>
3992
3993 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3994 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3995 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3996 valops.c, value.h: Revert previous change.
3997
3b4efeaa
MS
39982002-09-18 Michael Snyder <msnyder@redhat.com>
3999
4000 Preliminary support for Objective-C:
4001 * defs.h (language_objc): New enum value.
4002 (puts_filtered_tabular): Declaration only, exported from utils.c.
4003 (skip_quoted): Delete, declared in completer.h.
4004 * c-exp.y: Include completer.h.
4005 * p-exp.y: Ditto.
4006 * jv-exp.y: Ditto.
4007 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4008 New operator enum values.
4009 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4010 * language.c (binop_result_type): Handle language_objc case.
4011 (integral_type, character_type, string_type, boolean_type,
4012 structured_type, binop_type_check): Ditto.
4013 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4014 (struct objc_specific): Add to general_symbol_info.
4015 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4016 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4017 * parser-defs.h (struct objc_class_str): New struct type.
4018 (start_msglist, end_msglist, add_msglist): Declaration only,
4019 exported from objc-lang.c.
4020 * value.h (value_of_local, value_nsstring,
4021 call_function_by_hand_expecting_type): Exported from valops.c.
4022 * valops.c (find_function_addr): Export.
4023 (call_function_by_hand_expecting_type): New function.
4024 (value_of_local): New function.
4025 * symfile.c (init_filename_language_table): Add ".m" extension
4026 for Objective-C.
4027 * utils.c (puts_filtered_tabular): New function.
4028 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4029 (set/show demangle): Extend help-string to refer to ObjC.
4030 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4031 * stabsread.c (symbol_reference_defined): Objective-C symbols
4032 may contain colons: make allowances when scanning stabs strings
4033 for colons.
4034 (objc_find_colon): New function.
4035 * printcmd.c (address_info): If language == objc then print
4036 "self" instead of "this".
4037 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4038 OP_NSSTRING, and OP_SELF.
4039 (prefixify_subexp): Ditto.
4040 * source.c (print_source_lines): Mention objc in comment.
4041 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4042 method names.
4043
b9caf505
AC
40442002-09-18 Andrew Cagney <ac131313@redhat.com>
4045
4046 * complaints.h: Update copyright.
4047 (struct complaints): Declare.
4048 (struct complaint): Make `message' constant.
4049 (internal_complaint): Declare.
4050 (complaint): Declare.
4051 (complaint_root): Delete declaration.
4052 (symfile_complaints): Delete declaration.
4053 (struct complaints): Add opaque declaration.
4054 (clear_complaints): Add a complaints parameter.
4055 * complaints.c: Update copyright.
4056 (enum complaint_series): Define.
4057 (complaint_root): Delete.
4058 (struct complaints): Define.
4059 (complaint_sentinel, symfile_complaint_book): New variables.
4060 (symfile_explanations, symfile_complaints): New variables.
4061 New variables.
4062 (get_complaints): New function.
4063 (vcomplaint): New function.
4064 (complaint): New function.
4065 (internal_complaint): New function.
4066 (complain): Call vcomplain with symfile_complaint.
4067 (clear_complaints): Rewrite.
4068 (_initialize_complaints): Use add_setshow_command.
4069 * Makefile.in (complaints.o): Update dependencies.
4070 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4071 to call to clear_complaints.
4072 (new_symfile_objfile, reread_symbols): Ditto.
4073 (oldsyms_complaint): Delete.
4074 (empty_symtab_complaint, unknown_option_complaint): Delete.
4075 (free_named_symtabs): Use complaint instead of complain.
4076
d2e6263c
MS
40772002-09-18 Michael Snyder <msnyder@redhat.com>
4078
5fb2031a
AC
4079 Contributed by Apple Computer, Inc. Merged with current sources
4080 by Adam Fedor <fedor@doc.com> [cagney].
4081
d2e6263c
MS
4082 * objc-lang.c: First clean-up round: comments, indentation.
4083 * objc-lang.h: Ditto.
4084 * objc-lang.y: Ditto.
4085
dec43320
AC
40862002-09-18 Andrew Cagney <ac131313@redhat.com>
4087
4088 * maint.c (maintenance_internal_error): Print the parameter as the
4089 error message.
4090 (maintenance_internal_warning): New function.
4091 (_initialize_maint_cmds): Add command `maint internal-warning'.
4092
4093 * defs.h (internal_warning, internal_vwarning): Declare.
4094 * utils.c (struct internal_problem): Define.
4095 (internal_vproblem): New function.
4096 (internal_warning): New function.
4097 (internal_vwarning): New function.
4098 (internal_warning_problem, internal_error_problem): New variables.
4099 (internal_verror): Just call internal_vproblem.
4100
b81654f1
MS
41012002-09-18 Michael Snyder <msnyder@redhat.com>
4102
4103 * objc-lang.c: New file, support for Objective-C.
4104 Preliminary check-in, not yet integrated into gdb.
4105 * objc-lang.h: New file.
4106 * objc-exp.y: New file.
4107
0542c381
AC
41082002-09-18 Andrew Cagney <ac131313@redhat.com>
4109
7bda5e4a
AC
4110 * infrun.c (signal_stop_update): Convert definition to ISO C.
4111 (signal_print_update): Ditto.
4112 (signal_pass_update): Ditto.
4113 * inflow.c (terminal_save_ours): Ditto.
4114
5247b418
AC
4115 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4116 comments.
4117
fc60962c
AC
4118 * config/djgpp/fnchange.lst: Handle name clashes between
4119 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4120 bfd/coff-tic80.c.
4121
0542c381
AC
4122 * i386-linux-tdep.h: Fix tipo.
4123
5b924b9b
AF
41242002-09-18 Adam Fedor <fedor@gnu.org>
4125
4126 * MAINTAINERS: Add myself to the Write After Approval list.
4127
5afc051b
JB
41282002-09-18 Jim Blandy <jimb@redhat.com>
4129
4130 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4131 texthigh and textlow to reader-specific structs caused
4132 objfile_relocate to miss them. This is fixable, but the work that
4133 the change was supposed to prepare GDB for never got done anyway.
4134
eb944380
DC
41352002-09-18 David Carlton <carlton@math.stanford.edu>
4136
4137 * MAINTAINERS: Alphabetize Write After Approval list.
4138
948e66d9
DJ
41392002-09-18 Daniel Jacobowitz <drow@mvista.com>
4140
4141 Fix PR gdb/709
4142 * values.c (value_static_field): Call read_var_value.
4143
dc604539
AC
41442002-09-18 Andrew Cagney <ac131313@redhat.com>
4145
4146 * valops.c (hand_function_call): Align the initial stack pointer
4147 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4148 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4149 return value.
4150 * mips-tdep.c (mips_frame_align): New function.
4151 (mips_gdbarch_init): Set frame_align.
4152 * gdbarch.sh (FRAME_ALIGN): New method.
4153 * gdbarch.h, gdbarch.c: Re-generate.
4154
cb7e422f
ML
41552002-09-18 Michal Ludvig <mludvig@suse.cz>
4156
4157 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4158 registers.
4159
a094c6fb
AC
41602002-09-17 Andrew Cagney <ac131313@redhat.com>
4161
4162 * NEWS: Mention that MIPS $fp behavior changed.
4163 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4164 reference to FP_REGNUM.
4165 (mipsnbsd_cannot_store_register): Ditto.
4166 * mips-linux-nat.c: Update copyright.
4167 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4168 (mips_linux_cannot_store_register): Ditto.
4169 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4170 * config/mips/tm-mips.h: Update copyright.
4171 (FP_REGNUM): Delete macro.
4172 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4173 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4174 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4175 (mips_r3041_reg_names, mips_r3051_reg_names)
4176 (mips_r3081_reg_names): Replace "fp" with "".
4177 Fix PR gdb/480.
4178
45cf40d1
TR
41792002-09-17 Theodore A. Roth <troth@verinet.com>
4180
4181 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4182 generic_read_register_dummy() (PR gdb/703).
4183 (avr_push_return_address): #if 0 out unused vars.
4184 (avr_gdbarch_init): Enable use of avr_push_return_address().
4185
c7e701b5
MS
41862002-09-17 Michael Snyder <msnyder@redhat.com>
4187
d76ba2a5 4188 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
4189 RTE will take care of it.
4190
20bcf01c
AC
41912002-09-17 Andrew Cagney <ac131313@redhat.com>
4192
4193 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4194 invalid, return SP_REGNUM.
4195
009a9971 41962002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
4197
4198 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4199 point registers without sign extension.
4200
135c175f
AC
42012002-09-17 Andrew Cagney <cagney@redhat.com>
4202
4203 * blockframe.c (deprecated_read_register_dummy): Rename
4204 generic_read_register_dummy.
4205 * frame.c (frame_unwind_signed_register): New function.
4206 (frame_unwind_unsigned_register): New function.
4207 * frame.h (frame_unwind_signed_register): Declare.
4208 (frame_unwind_unsigned_register): Declare.
4209 (deprecated_read_register_dummy): Rename
4210 generic_read_register_dummy.
4211
4212 * h8300-tdep.c (h8300_frame_chain): Update.
4213 (h8300_frame_saved_pc): Update.
4214 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4215 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4216 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4217 (s390_frame_chain): Update.
4218 * v850-tdep.c (v850_find_callers_reg): Update.
4219 (v850_frame_saved_pc): Update.
4220 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4221 (m32r_find_callers_reg): Update.
4222 (m32r_frame_saved_pc): Update.
4223 * sh-tdep.c (sh_find_callers_reg): Update.
4224 (sh64_get_saved_pr): Update.
4225 (sh_init_extra_frame_info): Update.
4226 (sh_init_extra_frame_info): Update.
4227 (sh64_init_extra_frame_info): Update.
4228 (sh64_init_extra_frame_info): Update.
4229 * mcore-tdep.c (mcore_find_callers_reg): Update.
4230 (mcore_frame_saved_pc): Update.
4231 (mcore_init_extra_frame_info): Update.
4232 * i386-tdep.c (i386_frame_saved_pc): Update.
4233 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4234 (ia64_init_extra_frame_info): Update.
4235 (ia64_init_extra_frame_info): Update.
4236 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4237 * cris-tdep.c (cris_init_extra_frame_info): Update.
4238 * avr-tdep.c (avr_frame_chain): Update.
4239 (avr_init_extra_frame_info): Update.
4240 (avr_frame_saved_pc): Update.
4241 * arm-tdep.c (arm_find_callers_reg): Update.
4242 (arm_init_extra_frame_info): Update.
4243 (arm_frame_saved_pc): Update.
4244
a741e514
TT
42452002-09-17 Tom Tromey <tromey@redhat.com>
4246
4247 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4248 is "'".
4249
d1a8e808
CV
42502002-09-17 Corinna Vinschen <vinschen@redhat.com>
4251
4252 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4253 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4254 NEXT_PROLOGUE_INSN.
4255 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4256 NEXT_PROLOGUE_INSN.
4257
d9025a18
JB
42582002-09-16 Joel Brobecker <brobecker@gnat.com>
4259
4260 * osfsolib.c: Remove file, replaced by solib-osf.c.
4261 * Makefile.in: Remove compilation rules for osfsolib.c.
4262
1b2ef1b6
DC
42632002-09-16 David Carlton <carlton@math.stanford.edu>
4264
4265 * cp-valprint.c (cp_print_class_method): Correct args to
4266 check_stub_method_group.
4267
928e48af
CV
42682002-09-16 Corinna Vinschen <vinschen@redhat.com>
4269
4270 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4271 `set architecture'. Unify naming convention of functions.
4272 (h8300_skip_prologue): Improve prologue analysis.
4273 (h8300_push_arguments): Rewritten to more closely match GCC's
4274 bizarre argument-passing behavior, along with the comment describing
4275 said behavior.
4276 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4277 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4278 sim, remote-e7000.c, remote-hms.c and remote.c
4279
5e3397bb
MK
42802002-09-15 Mark Kettenis <kettenis@gnu.org>
4281
4282 * i386-tdep.c (gdb_print_insn_i386): Removed.
4283 (i386_print_insn): New function.
4284 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4285 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4286 tm_print_insn_info.
4287
f710f4fc
MK
42882002-09-14 Mark Kettenis <kettenis@gnu.org>
4289
4290 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4291 zero.
4292
db54fef4
CV
42932002-09-14 Corinna Vinschen <vinschen@redhat.com>
4294
4295 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4296 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4297 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4298
2becadee
CF
42992002-09-13 Christopher Faylor <cgf@redhat.com>
4300
4301 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4302
de17c821
DJ
43032002-09-13 Daniel Jacobowitz <drow@mvista.com>
4304
4305 * gdbtypes.c (check_stub_method): Make static.
4306 (check_stub_method_group): New function.
4307 * gdbtypes.h: Update prototypes.
4308 * cp-support.c: New file.
4309 * cp-support.h: New file.
4310
4311 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4312 (update_method_name_from_physname): New function.
4313 (read_member_functions): Correct method names for operators
4314 and v3 constructors/destructors. Separate v2 constructors and
4315 destructors.
4316 * Makefile.in (stabsread.o): Update dependencies.
4317 (SFILES): Add cp-support.c.
4318 (COMMON_OBS): Add cp-support.o.
4319 (cp_support_h, cp-support.o): Add.
4320
4321 * cp-valprint.c (cp_print_class_method): Call
4322 check_stub_method_group instead of check_stub_method. Remove
4323 extraneous QUITs.
4324 * p-valprint.c (pascal_object_print_class_method): Likewise.
4325 * valops.c (search_struct_method): Likewise.
4326 (find_method_list, value_struct_elt_for_reference): Likewise.
4327
e76cff22
AC
43282002-09-13 Andrew Cagney <cagney@redhat.com>
4329
4330 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4331 * gdbarch.h, gdbarch.c: Regenerate.
4332
905abb3f
AC
43332002-09-13 Andrew Cagney <ac131313@redhat.com>
4334
4335 * frame.c (find_saved_register): Delete function.
4336 * frame.h (find_saved_register): Delete declaration.
4337 Fix PR gdb/631.
4338
64159455
AC
4339Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4340
4341 * mips-tdep.c (read_next_frame_reg): Re-hack using
4342 frame_register_unwind.
4343
795e1e11
AC
4344Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4345
4346 * mips-tdep.c (mips_get_saved_register): Re-hack using
4347 frame_register_unwind.
4348
5720643c
JB
43492002-09-12 Joel Brobecker <brobecker@gnat.com>
4350
4351 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4352 vector. Will be useful for Interix.
4353 * gdbarch.h, gdbarch.c: Regenerate.
4354
4355 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4356 name of the malloc function by NAME_OF_MALLOC.
4357
3bada2a2
JB
43582002-09-12 Joel Brobecker <brobecker@gnat.com>
4359
4360 * value.h (find_function_in_inferior): Add const keyword to
4361 one of the parameters. Allows us to invoke this function with
4362 a const char *.
4363 * valops.c (find_function_in_inferior): Likewise.
4364
3db26b01
JB
43652002-09-12 Joel Brobecker <brobecker@gnat.com>
4366
4367 * exec.c (xfer_memory): Fix compilation warning with old versions
4368 of GCC.
4369 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4370
17c5ed2c
DC
43712002-09-12 David Carlton <carlton@math.stanford.edu>
4372
4373 * symtab.h: Run through gdb_indent.h.
4374 Add 2002 to Copyright year list.
4375
ecd1107e
AM
43762002-09-12 Alan Modra <amodra@bigpond.net.au>
4377
4378 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4379 mach constants.
4380 * MAINTAINERS: Add myself to write after approval list.
4381
e64f66d1
JB
43822002-09-11 J. Brobecker <brobecker@gnat.com>
4383
4384 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4385
f9395794
JB
43862002-09-11 J. Brobecker <brobecker@gnat.com>
4387
4388 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4389 Interix.
4390
1a303dec
MS
43912002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4392
4393 * procfs.c (do_detach): Clear current signal, not just fault.
4394 Corrects problem with breakpoint trap signal leaking to detached
4395 process on Tru64.
4396
c0219d42
MS
43972002-09-10 Michael Snyder <msnyder@redhat.com>
4398
4399 * buildsym.c (finish_block): Protect against null pointer.
4400
9d84ac84
AC
44012002-09-10 Andrew Cagney <cagney@redhat.com>
4402
4403 * infcmd.c (default_print_registers_info): Send all output to
4404 ``file'' instead of ``gdb_stdout''.
4405
77d8f2b4
MS
44062002-09-10 Michael Snyder <msnyder@redhat.com>
4407
4408 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4409 LONGEST, and use signed register read (addresses are sign-
4410 extended for mips).
4411
99656a61
SC
44122002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4413
4414 * event-loop.c (gdb_do_one_event): Make public.
4415 * event-loop.h (gdb_do_one_event): Declare.
4416
da12f4d8
JL
44172002-09-10 Jeff Law <law@redhat.com>
4418
4419 * infttrace.c (child_resume): Simplify and rework to avoid
4420 TT_PROC_CONTINUE.
4421
d0aee0c4
FF
44222002-09-09 Fred Fish <fnf@intrinsity.com>
4423
4424 * printcmd.c (print_scalar_formatted): "len" is the number of
4425 target bytes, NOT the number of target bits.
4426
7cb3ec5e
EZ
44272002-09-09 Elena Zannoni <ezannoni@redhat.com>
4428
4429 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4430 * top.c (init_main): Set rl_terminal_name.
4431
4dc81987
AS
44322002-09-08 Aidan Skinner <aidan@velvet.net>
4433
4434 * ada-lang.c (ada_array_bound, ada_type_match,
4435 _initialize_ada_language): Fix K&R definitions.
4436 * ada-tasks.c (get_current_task): Fix K&R definitions.
4437 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4438
842330b4
CF
44392002-09-07 Christopher Faylor <cgf@redhat.com>
4440
4441 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4442 Add XP.
4443
43156d82
MK
44442002-09-06 Mark Kettenis <kettenis@gnu.org>
4445
66da5fd8
MK
4446 * i386-tdep.c (i386_register_virtual_type,
4447 i386_register_convertible, i386_register_convert_to_virtual,
4448 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4449 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4450 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4451 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4452 Don't set push_arguments twice.
4453
4b218c18
MK
4454 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4455 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4456 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4457 sigtramp_end to NULL.
4458 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4459 defines.
4460 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4461
4cc314d5
MK
4462 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4463 whitespace.
4464
43156d82
MK
4465 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4466 * gdbarch.h, gdbarch.c: Re-generate.
4467 * blockframe.c (find_pc_sect_partial_function): Convert to use
4468 SIGTRAMP_START_P predicate.
4469
6672060b
MS
44702002-09-05 Michael Snyder <msnyder@redhat.com>
4471
a90c3637
MS
4472 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4473 generic_dummy_frame method and old method. Also distinguish
4474 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4475 (arm_extract_return_value): Use new regcache method.
a90c3637 4476
6672060b
MS
4477 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4478 adjustment that doesn't conform to the ABI.
4479 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4480 saved regcache, not from current regcache.
4481
299ffc64
AC
44822002-09-05 Andrew Cagney <ac131313@redhat.com>
4483
4484 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4485 * README: Update.
4486
a3a2ee65
JT
44872002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4488
4489 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4490 if arm_apcs_32 is false.
4491
2bc7eea9
AC
44922002-09-04 Andrew Cagney <ac131313@redhat.com>
4493
4494 GDB 5.3 branch created.
4495
8a55a7c5
TR
44962002-09-03 Theodore A. Roth <troth@verinet.com>
4497
4498 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4499 generic_unwind_get_saved_register.
4500
e26fb1d7
DC
45012002-09-03 David Carlton <carlton@math.stanford.edu>
4502
4503 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4504 argument (PR gdb/653). Update call to smash_to_method_type.
4505 (read_structure_scope): Update call to dwarf2_add_member_fn.
4506
30d52491
ML
45072002-09-03 Michal Ludvig <mludvig@suse.cz>
4508
4509 * x86-64-linux-tdep.c: Include gdb_string.h
4510 * x86-64-linux-nat.c: Ditto.
4511
06891d83
JT
45122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4513
4514 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4515 when YYDEBUG is set to 1.
4516 * c-exp.y: Likewise.
4517 * f-exp.y: Likewise.
4518 * jv-exp.y: Likewise.
4519 * m2-exp.y: Likewise.
4520 * p-exp.y: Likewise.
4521
7d400e77
JT
45222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4523
4524 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4525 dependency list.
4526 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4527 solib_svr4_fetch_link_map_offsets to
4528 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4529 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4530 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4531 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4532 solib-svr4.o, and solib-legacy.o.
4533 * config/i386/tm-nbsd.h: Include solib.h.
4534
704a27c4
JT
45352002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4536
4537 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4538 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4539 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4540 comment noting that this needs its own target configuration.
4541 * config/i386/nbsd.mt: New file.
4542 * config/i386/nbsdaout.mt: Remove.
4543 * config/i386/nbsdelf.mt: Ditto.
4544 * config/i386/tm-nbsdaout.h: Ditto.
4545
d66198e1
JT
45462002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4547
4548 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4549 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4550 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4551 tdep->sigtramp_end.
4552 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4553 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4554 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4555
3cac699e
JT
45562002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4557
4558 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4559 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4560 * i386-tdep.h (i386bsd_init_abi): New prototype.
4561 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4562 function declaration.
4563 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4564 for NetBSD-a.out or NetBSD-ELF.
4565 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4566 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4567 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4568 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4569 and nbsd-tdep.h.
4570 (i386nbsd_pc_in_sigtramp): New function.
4571 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4572 i386nbsd_pc_in_sigtramp.
4573 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4574 and i386nbsdelf_init_abi OS ABI handlers.
4575 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4576 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4577
7010ca0a
MK
45782002-09-02 Mark Kettenis <kettenis@gnu.org>
4579
4580 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4581 registers if the target really has them.
4582
6dd93b72
JT
45832002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4584
4585 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4586 than nbsd-tdep.h.
4587
2ca8ae21
JT
45882002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4589
4590 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4591 list.
4592 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4593 (alphanbsd_skip_sigtramp_frame): New functions.
4594 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4595 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4596 to alphanbsd_sigcontext_addr.
4597
3d9b49b0
JT
45982002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4599
4600 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4601 list.
4602 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4603 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4604 nbsd_pc_in_sigtramp.
4605 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4606 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4607 * nbsd-tdep.c: Include gdb_string.h.
4608 (nbsd_pc_in_sigtramp): New function.
4609 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4610 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4611 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4612 ppcnbsd_pc_in_sigtramp.
4613 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4614 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4615 shnbsd_pc_in_sigtramp.
4616 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4617 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4618 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4619
c860120c
PM
46202002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4621
4622 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4623 watchpoints to NULL.
4624 (insert_breakpoints): set val field of watchpoints if NULL.
4625
4626
c7612d53
JB
46272002-08-29 Jim Blandy <jimb@redhat.com>
4628
4629 * symtab.c (lookup_symbol_aux): In the cases where we find a
4630 minimal symbol of an appropriate name and use its address to
4631 select a symtab to read and search, use `name' (as passed to us)
4632 as the demangled name when searching the symtab's global and
4633 static blocks, not the minsym's name.
4634
66609862
KS
46352002-08-29 Keith Seitz <keiths@redhat.com>
4636
4637 * stack.c (print_frame_info_base): Always set current_source_symtab
4638 and current_source_line.
4639
151fefe2
JB
46402002-08-29 Donn Terry <donnte@microsoft.com>
4641
4642 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4643
bfb3754e
KS
46442002-08-28 Keith Seitz <keiths@redhat.com>
4645
4646 * stack.c (select_frame): Add FIXME concerning selected-frame
4647 events.
4648 (select_frame_command): Send selected-frame-level-changed
4649 event notification, but only if the level actually changed.
4650 (up_silently_base): Add selected-frame-level-changed event
4651 notification.
4652 (down_silently_base): Likewise.
4653
e822a2a0
AC
46542002-08-28 Andrew Cagney <ac131313@redhat.com>
4655
4656 * Makefile.in: Update dependencies for all gdb/*.c files.
4657
309367d4
TT
46582002-08-27 Tom Tromey <tromey@redhat.com>
4659
4660 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4661 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4662 Update dependencies.
4663 * i387-tdep.c: Include gdb_string.h.
4664 * osabi.c: Likewise.
4665 * i386-linux-nat.c: Likewise.
4666 * lin-lwp.c: Likewise.
4667 * ax-gdb.c: Likewise.
4668 * signals/signals.c: Likewise.
4669 * jv-valprint.c: Likewise.
4670 * p-lang.c: Likewise.
4671 * c-valprint.c: Likewise.
4672 * cp-abi.c: Likewise.
4673
e1507482
EZ
46742002-08-27 Elena Zannoni <ezannoni@redhat.com>
4675
4676 * cli/cli-script.h (copy_command_lines): Export.
4677 * breakpoint.c: Include cli/cli-script.h.
4678 * Makefile.in (breakpoint.o): Update dependencies.
4679
c6510018
MS
46802002-08-26 Michael Snyder <msnyder@redhat.com>
4681
4682 * breakpoint.c (insert_breakpoints): Protect all references
4683 to 'process_warning'. Shorten long lines.
4684
c2b8ed2c
MS
46852002-08-26 Joel Brobecker <brobecker@gnat.com>
4686
4687 * cli/cli-script.c (copy_command_lines): New function.
4688 * defs.h (copy_command_lines): Export.
4689 * testsuite/gdb.base/commands.exp: New tests for commands
4690 attached to a temporary breakpoint, and for commands that
4691 delete the breakpoint they are attached to.
4692
46932002-08-26 Michael Snyder <msnyder@redhat.com>
4694
4695 * breakpoint.c (bpstat_stop_status): Instead of copying the
4696 pointer to the breakpoint commands struct, make a new copy
4697 of the struct and point to that.
4698 (bpstat_clear): Free the commands struct.
4699 (bpstat_clear_actions): Free the commands struct.
4700 (bpstat_do_actions): Free the command actions. Also execute
4701 the local cleanups, instead of deleting them.
4702 (delete_breakpoint): Leave the commands field of the bpstat
4703 chain alone -- it will be freed later.
4704
64b84175
KB
47052002-08-26 Kevin Buettner <kevinb@redhat.com>
4706
4707 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4708 deleted in 2002-08-20 commit. This function is still used by
4709 ppc-linux-nat.c.
4710
55970da6
KS
47112002-08-26 Keith Seitz <keiths@redhat.com>
4712
4713 * gdb-events.sh: Add selected-frame-level-changed event.
4714 * gdb-events.c: Regenerated.
4715 * gdb-events.h: Regenerated.
4716
a790ad35
SC
47172002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4718
4719 Fix PR gdb/393:
4720 * inflow.c (terminal_save_ours): New function to save terminal
4721 settings.
4722 * inferior.h (terminal_save_ours): Declare.
4723 * target.c (debug_to_terminal_save_ours): New function.
4724 (cleanup_target): Defaults to_terminal_save_ours.
4725 (update_current_target): Inherit to_terminal_save_ours.
4726 (setup_target_debug): Set to_terminal_save_ours.
4727 * target.h (target_terminal_save_ours): New to save terminal settings.
4728 (target_ops): New member to_terminal_save_ours.
4729 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4730 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4731 * inftarg.c (init_child_ops): Likewise.
4732 * m3-nat.c (init_m3_ops): Likewise.
4733 * procfs.c (init_procfs_ops): Likewise.
4734 * wince.c (init_child_ops): Likewise.
4735 * win32-nat.c (init_child_ops): Likewise.
4736 * sol-thread.c (init_sol_thread_ops): Likewise.
4737
c00dcbe9
MK
47382002-08-26 Mark Kettenis <kettenis@gnu.org>
4739
3d7f4f49
MK
4740 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4741 use regcache_* functions.
4742 (i386_gdbarch_init): Set store_return_value instead of
4743 deprecated_store_return_value.
4744
c00dcbe9
MK
4745 * regcache.c (regcache_raw_write_signed,
4746 regcache_raw_write_unsigned): New functions.
4747 * regcache.h (regcache_raw_write_signed,
4748 regcache_raw_write_unsigned): New prototypes.
4749
0e0d15ca
AC
47502002-08-25 Andrew Cagney <ac131313@redhat.com>
4751
4752 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4753 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4754 source file dependencies. Cleanup corresponding generator rules.
4755
d3b22ed5
AC
47562002-08-25 Andrew Cagney <ac131313@redhat.com>
4757
4758 * regcache.h (register_offset_hack): Declare.
4759 (regcache_cooked_read_using_offset_hack): Declare.
4760 (regcache_cooked_write_using_offset_hack): Declare.
4761
4762 * regcache.c (register_offset_hack): New function.
4763 (regcache_cooked_read_using_offset_hack): New function.
4764 (regcache_cooked_write_using_offset_hack): New function.
4765 (regcache_dump): Check that the registers, according to their
4766 offset, are packed hard against each other.
4767 (cooked_xfer_using_offset_hack): New function.
4768
bb425013
AC
47692002-08-25 Andrew Cagney <ac131313@redhat.com>
4770
4771 * regcache.c (struct regcache_descr): Add field register_type.
4772 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4773 in as a parameter
4774 (init_regcache_descr): Initialize register_type. Pass the descr
4775 to init_legacy_regcache_descr. Use register_type instead of
4776 REGISTER_VIRTUAL_TYPE.
4777 (register_type): New function.
4778 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4779 * regcache.h (register_type): Declare.
4780
d0403e00
AC
47812002-08-25 Andrew Cagney <ac131313@redhat.com>
4782
4783 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4784 instead of deprecated_store_return_value. Fix fallout from
4785 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4786
0ed04cce
AC
47872002-08-25 Andrew Cagney <ac131313@redhat.com>
4788
4789 * regcache.c (max_register_size): New function.
4790 (init_legacy_regcache_descr): Ensure that max_register_size is
4791 large enough for REGISTER_VIRTUAL_SIZE.
4792 * regcache.h (max_register_size): Declare.
4793
46d79c04
AC
47942002-08-24 Andrew Cagney <ac131313@redhat.com>
4795
4796 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4797 store_return_value.
4798 (e500_extract_return_value): Change type of valbuf pointer to
4799 void.
4800
853c7bd0
MK
48012002-08-24 Mark Kettenis <kettenis@gnu.org>
4802
cd87e769
MK
4803 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4804 workaround.
4805
853c7bd0
MK
4806 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4807 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4808 long long) to prevent compiler warning on 64-bit systems.
4809
ebba8386
AC
48102002-08-23 Andrew Cagney <cagney@redhat.com>
4811
4812 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4813 (DEPRECATED_STORE_RETURN_VALUE): New method.
4814 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4815 * gdbarch.h, gdbarch.c: Re-generate.
4816
4817 * values.c (set_return_value): Pass current_regcache to
4818 STORE_RETURN_VALUE.
4819 * arch-utils.h (legacy_store_return_value): Declare.
4820 * arch-utils.c (legacy_store_return_value): New function.
4821 (legacy_extract_return_value): Update parameters.
4822
4823 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4824 STORE_RETURN_VALUE.
4825 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4826 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4827 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4828 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4829 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4830 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4831 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4832 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4833 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4834 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4835
4836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4837 * i386-tdep.c (i386_extract_return_value): Update.
4838 * arch-utils.c (legacy_extract_return_value): Update.
4839 * frv-tdep.c (frv_gdbarch_init): Update.
4840 * cris-tdep.c (cris_gdbarch_init): Update.
4841 * d10v-tdep.c (d10v_gdbarch_init): Update.
4842 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4843 * m68k-tdep.c (m68k_gdbarch_init): Update.
4844 * mcore-tdep.c (mcore_gdbarch_init): Update.
4845 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4846 * s390-tdep.c (s390_gdbarch_init): Update.
4847 * sparc-tdep.c (sparc_gdbarch_init): Update.
4848 * sh-tdep.c (sh_gdbarch_init): Update.
4849 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4850 * v850-tdep.c (v850_gdbarch_init): Update.
4851 * avr-tdep.c (avr_gdbarch_init): Update.
4852 * ia64-tdep.c (ia64_gdbarch_init): Update.
4853 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4854 * vax-tdep.c (vax_gdbarch_init): Update.
4855 * alpha-tdep.c (alpha_gdbarch_init): Update.
4856 * arm-tdep.c (arm_gdbarch_init): Update.
4857 * mips-tdep.c (mips_gdbarch_init): Update.
4858 * i386-tdep.c (i386_gdbarch_init): Update.
4859
5bd8c6d0
AC
48602002-08-23 Andrew Cagney <ac131313@redhat.com>
4861
4862 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4863 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4864
e73e1724
MK
48652002-08-24 Mark Kettenis <kettenis@gnu.org>
4866
4867 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4868 problems.
4869
3e6564e1
JB
48702002-08-23 Joel Brobecker <brobecker@gnat.com>
4871
4872 * infrun.c (handle_inferior_event): Move a comment outside of a
4873 function call, in order to avoid indent reformatting this part
4874 of the code in an unreadable way.
4875
81d0cc19
GS
48762002-08-23 Grace Sainsbury <graces@redhat.com>
4877
4878 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4879 when breakpoints fail. Move general breakpoint error messages to
4880 insert_breakpoints.
4881 * breakpoint.c (insert_breakpoints): Change warnings when
4882 breakpoints are nto inserted to specify the type. Remove call to
4883 memory_error when hardware breakpoints can't be inserted. Remove
4884 multiple calls to warning so all messages are sent to the user at
4885 once.
4886 (delete_breakpoints): Make insert error messsages more explicit.
4887
17574093
DJ
48882002-08-23 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4891 gdbserver/ChangeLog.
4892
8acc2935
MK
48932002-08-23 Mark Kettenis <kettenis@gnu.org>
4894
dfe01d39
MK
4895 * i386-tdep.c: Include "objfiles.h".
4896 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4897 skip_trampoline_code.
4898 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4899 (CPLUS_MARKER): Define to '.'.
4900
8acc2935
MK
4901 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4902 member.
4903 (linux_corefile_thread_callback): Increase args->num_notes.
4904 (linux_make_note_section): Initialize thread_args.num_notes, and
4905 use it to determine whether notes for any threads were created.
4906
151fefe2 49072002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4908
4909 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4910 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4911 and PCUNKILL.
4912 (write_with_trace): Conditionalize out the switch branch handling
4913 PCSHOLD if the corresponding macro is not defined. Likewise for
4914 PRSABORT and PRSTOP.
4915 This change will be needed by the Interix port.
4916
e1507482
EZ
49172002-08-22 Elena Zannoni <ezannoni@redhat.com>
4918
4919 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4920 write_register wherever possible instead of manipulating the
4921 register bytes directly.
4922 Assign VALUE_CONTENTS to a variable and use that.
4923 The GPR numbers are now dependent on the architecture.
4924
96ff0de4
EZ
49252002-08-22 Elena Zannoni <ezannoni@redhat.com>
4926
4927 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4928 ev_offset fields.
4929 (skip_prologue): Add support for BookE/e500 instructions.
4930 (e500_extract_return_value): New function.
4931 (frame_get_saved_regs): Add support for saving ev registers and
4932 pseudo gpr's.
4933 (e500_store_return_value): New function.
4934 (rs6000_gdbarch_init): Move up default intializations of
4935 deprecated_extract_return_value and store_return_value. Overwrite
4936 init of store_return_value with e500 specific version.
4937 Set extract_return_value for e500.
4938
fbefca5b
EZ
49392002-08-22 Elena Zannoni <ezannoni@redhat.com>
4940
4941 * blockframe.c (generic_call_dummy_register_unwind): Use
4942 regcache_cooked_read to catch cases in which the variable is
4943 stored in a pseudo register.
4944
4d210288
AC
49452002-08-22 Andrew Cagney <cagney@redhat.com>
4946
4947 * NEWS: Mention that the i960 has been made obsolete.
4948 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4949 i960-tdep.c
4950 (remote-nrom.o): Obsolete target.
4951 (remote-nindy.o, i960-tdep.o): Ditto.
4952 * remote-nrom.c: Make file obsolete.
4953 * remote-nindy.c, remote-vx960.c: Ditto.
4954 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4955 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4956 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4957 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4958 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4959 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4960 i960-*-vxworks* obsolete.
4961 * MAINTAINERS: Note that the i960 is obsolete.
4962
6c0c456d
CV
49632002-08-21 Corinna Vinschen <vinschen@redhat.com
4964
4965 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4966 detach to allow reinitialization.
4967
9f9d12b3
AC
49682002-08-22 Andrew Cagney <ac131313@redhat.com>
4969
4970 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4971 attempt).
4972
ebeb39fe
JB
49732002-08-22 Jim Blandy <jimb@redhat.com>
4974
4975 * coffread.c (coff_symfile_read): Don't try to read the line
4976 number table from disk if the image file doesn't have a symbol
4977 table; we'll never actually look at the info anyway, and Windows
4978 ships DLL's with bogus file offsets for the line number data.
4979
5bf1c677
EZ
49802002-08-21 Elena Zannoni <ezannoni@redhat.com>
4981
4982 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4983 an e500 executable.
4984
71b8ef93
MS
49852002-08-21 Michael Snyder <msnyder@redhat.com>
4986
4987 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4988 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4989 (DEFAULT_MIPS_TYPE): Delete unused macro.
4990 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4991 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4992
d174216d
JB
49932002-08-21 Jim Blandy <jimb@redhat.com>
4994
4995 * valops.c (value_cast): Simplify and correct logic for doing a
4996 static cast from a pointer to a base class to a pointer to a
4997 derived class.
4998
0ab7a791
AC
49992002-08-21 Andrew Cagney <ac131313@redhat.com>
5000
5001 * infcmd.c (default_print_registers_info): Replace
5002 do_registers_info.
5003 (registers_info): Use gdbarch_print_registers_info instead of
5004 DO_REGISTERS_INFO.
5005 * inferior.h (default_print_registers_info): Replace
5006 do_registers_info.
5007 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5008 (DO_REGISTERS_INFO): Change to a predicate function.
5009 * gdbarch.h, gdbarch.c: Regenerate.
5010
e23792cc
KS
50112002-08-21 Keith Seitz <keiths@redhat.com>
5012
5013 * gdb-events.sh: Add target-changed event.
5014 * gdb-events.c: Regenerated.
5015 * gdb-events.c: Regenerated.
5016 * valops.c (value_assign): Add target-changed event notification
5017 to inlval_register, lval_memory, and lval_reg_frame_relative.
5018
9fb14e79
JB
50192002-08-21 Joel Brobecker <brobecker@gnat.com>
5020
5021 * NEWS: Add an entry regarding the improvement of the next/step
5022 operation on Alpha Tru64 multi-processor machines.
5023
6d39a69f
AC
50242002-08-21 Andrew Cagney <ac131313@redhat.com>
5025
72acd513
AC
5026 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5027 directores.
342af04b 5028 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
5029 * Makefile.in (install-gdbtk): Move to install section.
5030 (rdi-share/libangsd.a): Move to end of file.
5031
fa5f27c7
AC
50322002-08-19 Andrew Cagney <ac131313@redhat.com>
5033
5034 * frame.c (frame_register_unwind): When a register, set addrp to
5035 the register's byte.
5036
5a89d8aa
MS
50372002-08-20 Michael Snyder <msnyder@redhat.com>
5038
5039 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5040 used locally, so move them from the target machine header to here.
5041 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5042 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5043 Make static.
5044 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5045
822e978b
AC
50462002-08-20 Andrew Cagney <cagney@redhat.com>
5047
5048 * NEWS: Mention that the Apollo line was made obsolete.
5049 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5050 m68*-hp-hpux* obsolete.
5051 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5052 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5053 * buildsym.c (make_blockvector): Make static.
5054 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5055 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5056 (ALLDEPFILES): Remove dstread.c.
5057 (dstread.o): Obsolete make rule.
5058 * dstread.c: Makefile obsolete.
5059 * dst.h: Ditto.
5060 * config/m68k/hp300hpux.mt: Ditto.
5061 * config/m68k/hp300hpux.mh: Ditto.
5062 * config/m68k/hp300bsd.mt: Ditto.
5063 * config/m68k/hp300bsd.mh: Ditto.
5064 * config/m68k/apollo68b.mt: Ditto.
5065 * config/m68k/apollo68v.mh: Ditto.
5066 * config/m68k/apollo68b.mh: Ditto.
5067
e41b17f0
MS
50682002-08-20 Michael Snyder <msnyder@redhat.com>
5069
5070 * mips-tdep.c (mips_in_return_stub): Make static.
5071 (mips_gdbarch_init): Set in_solib_return_trampoline.
5072 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5073
d50355b6
MS
50742002-08-20 Michael Snyder <msnyder@redhat.com>
5075
5076 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5077 * gdbarch.c, gdbarch.h: Regenerate.
5078 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5079 Add.
5080 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5081
757a7cc6
MS
50822002-08-20 Michael Snyder <msnyder@redhat.com>
5083
5084 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5085 (mips_gdbarch_init): Set skip_trampoline_code,
5086 in_solib_call_trampoline.
5087 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5088 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5089
c8001721
EZ
50902002-08-20 Elena Zannoni <ezannoni@redhat.com>
5091
5092 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5093
5094 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5095 vector type for ev registers.
5096 (e500_pseudo_register_read): New function.
5097 (e500_pseudo_register_write): New function.
5098 (e500_dwarf2_reg_to_regnum): New function.
5099 (PPC_UISA_NOFP_SPRS): New macro.
5100 (PPC_EV_REGS): New macro.
5101 (PPC_GPRS_PSEUDO_REGS): New macro.
5102 (registers_e500): New register set for e500.
5103 (variants): Add e500 variant.
5104 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5105 before setting architectural dependent variations. Initialize ev
5106 registers numbers. Add case for e500 architecture. Set the
5107 number of pseudo registers.
5108
64366f1c
EZ
51092002-08-20 Elena Zannoni <ezannoni@redhat.com>
5110
5111 * rs6000-tdep.c: Clean up comments.
5112
7e78f0ca
AC
51132002-08-20 Andrew Cagney <cagney@redhat.com>
5114
5115 * h8300-tdep.c: Re-indent file.
5116
697f7479
JB
51172002-08-20 Jim Blandy <jimb@redhat.com>
5118
5119 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5120 default for this.
697f7479 5121
e86ae29f
KS
51222002-08-20 Keith Seitz <keiths@redhat.com>
5123
5124 * breakpoints.c (watch_command_1): Use internal breakpoint
5125 when setting a watchpoint_scope breakpoint.
5126
216b504f
EZ
51272002-08-20 Elena Zannoni <ezannoni@redhat.com>
5128
5129 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5130 (build_builtin_type_vec64i): Ditto.
5131 (build_builtin_type_vec128): Ditto.
5132 (build_builtin_type_vec128i): Ditto.
5133
f7ab6ec6
MS
51342002-08-19 Michael Snyder <msnyder@redhat.com>
5135
5136 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5137 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5138 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5139 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5140 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5141 CALL_DUMMY_ADDRESS): Delete.
5142 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5143 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5144 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5145 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5146 push_return_address.
5147 (mips_register_raw_size, mips_eabi_use_struct_convention,
5148 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5149 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5150 mips_init_extra_frame_info, mips_eabi_push_arguments,
5151 mips_n32n64_push_arguments, mips_push_return_address,
5152 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5153 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5154
b5d1566e
MS
51552002-08-19 Michael Snyder <msnyder@redhat.com>
5156
5157 * mips-tdep.c (mips_frame_num_args): New function.
5158 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5159 frame_saved_pc, frame_args_address, frame_locals_address,
5160 frame_num_args, and frame_args_skip.
5161 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5162 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5163 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5164 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5165
2f1488ce
MS
51662002-08-20 Michael Snyder <msnyder@redhat.com>
5167
5168 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5169 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5170 * mips-tdep.c (mips_store_struct_return): New function.
5171 (mips_extract_struct_value_address): New function.
5172 (mips_gdbarch_init): Set store_struct_return and
5173 extract_struct_value_address.
5174
41ff2da1
DC
51752002-08-20 David Carlton <carlton@math.stanford.edu>
5176
5177 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5178 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5179 (read_file_scope): Check that line_header is nonzero before
5180 decoding macro information.
5181
e5451d58
MK
51822002-08-20 Mark Kettenis <kettenis@gnu.org>
5183
5184 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5185 flag the general-purpose registers as floating-point on targets
5186 that don't support the floating-point registers.
5187
4a6daafa
EZ
51882002-08-20 Elena Zannoni <ezannoni@redhat.com>
5189
5190 * rs6000-tdep.c (altivec_register_p): Delete.
5191 (rs6000_do_altivec_registers): Delete.
5192 (rs6000_altivec_registers_info): Delete.
5193 (rs6000_do_registers_info): Delete.
5194 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5195 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5196
ab4327e0
EZ
51972002-08-20 Elena Zannoni <ezannoni@redhat.com>
5198
5199 * infcmd.c (do_registers_info): Print vector registers in hex
5200 format only.
5201 (print_vector_info): Check that printing registers
5202 makes sense.
5203 (print_float_info): Ditto.
5204
cb1d2653
AC
52052002-08-20 Andrew Cagney <ac131313@redhat.com>
5206
5207 * mips-tdep.c (mips_gdbarch_init): Update.
5208 (mips_o32_extract_return_value): Rewrite.
5209 (mips_o32_store_return_value): Rewrite.
5210 (mips_o32_xfer_return_value): New function.
5211 (mips_xfer_register): Tweak debug print message. Allow for
5212 buf_offset when dumping the value transfered.
5213
dfc3d9b2
AC
52142002-08-20 Andrew Cagney <ac131313@redhat.com>
5215
5216 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5217 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5218 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5219 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5220 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5221
7807aa61
MS
52222002-08-14 Michael Snyder <msnyder@redhat.com>
5223
5224 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5225
489461e2
EZ
52262002-08-19 Elena Zannoni <ezannoni@redhat.com>
5227
5228 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5229 register.
5230 (P): New macro to define a register as a pseudo register.
5231 (R, R4, R8, R16, FR32, R64, R0): Updated.
5232 (struct variant): Add new fields for number of pseudo registers
5233 and number of total registers.
5234 (tot_num_registers): New macro replacing....
5235 (num_registers): ...deleted macro.
5236 (num_registers): New function.
5237 (num_pseudo_registers): New function.
5238 (variants): Update all variants to intialize new fields correctly.
5239 Postpone initialization of number of pseudo regs and real regs.
5240 (init_variants): New function.
5241 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5242 registers offsets.
5243
fcaffe4c
DC
52442002-08-19 David Carlton <carlton@math.stanford.edu>
5245
2c2738a0
DC
5246 * valops.c (search_struct_field): Change error message to treat
5247 return value of 0 from value_static_field as meaning that field is
5248 optimized out.
5249 (value_struct_elt_for_reference): Ditto.
5250 * values.c (value_static_field): Treat an unresolved location the
5251 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
5252 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5253 enclosed. Fix PR gdb/574.
fcaffe4c
DC
5254 * MAINTAINERS: Add self to Write After Approval list.
5255
88658117
AC
52562002-08-19 Andrew Cagney <ac131313@redhat.com>
5257
5258 * mips-tdep.c (mips_xfer_register): New function.
5259 (mips_n32n64_extract_return_value): Rewrite.
5260 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5261 instead of deprecated_extract_return_value.
5262
21283beb
EZ
52632002-08-19 Elena Zannoni <ezannoni@redhat.com>
5264
5265 * rs6000-tdep.c (TDEP): Delete macro.
5266 (branch_dest): Replace use of TDEP macro with its body.
5267 (rs6000_pop_frame): Ditto.
5268 (rs6000_push_arguments): Ditto.
5269 (rs6000_skip_trampoline_code): Ditto.
5270 (rs6000_frame_saved_pc): Ditto.
5271 (rs6000_frame_chain): Ditto.
5272 (rs6000_register_name): Ditto.
5273 (rs6000_register_byte): Ditto.
5274 (rs6000_register_raw_size): Ditto.
5275 (rs6000_register_virtual_type): Ditto.
5276 (rs6000_register_convertible): Ditto.
5277 (rs6000_convert_from_func_ptr_addr): Ditto.
5278
bf072999
DJ
52792002-08-19 Daniel Jacobowitz <drow@mvista.com>
5280
5281 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5282 conditionally.
5283 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5284 MIPS_LINUX_JB_ELEMENT_SIZE.
5285 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5286 for MAX_REGISTER_RAW_SIZE arrays.
5287 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5288 MIPS_LINUX_JB_ELEMENT_SIZE.
5289
9b949a49
PM
52902002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5291
5292 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5293
6d3e79c6
AS
52942002-08-19 Aidan Skinner <aidan@velvet.net>
5295
5296 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5297 ada-valprint.c ada-tasks.c.
5298 (YYFILES): Add ada-exp.y.
5299 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5300 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5301 (ada-exp.tab.o): New target.
5302
06c0b04e
AC
53032002-08-18 Andrew Cagney <ac131313@redhat.com>
5304
5305 * regcache.c (regcache_xfer_part): New function.
5306 (regcache_raw_read_part): New function.
5307 (regcache_raw_write_part): New function.
5308 (regcache_cooked_read_part): New function.
5309 (regcache_cooked_write_part): New function.
5310 * regcache.h (regcache_raw_read_part): Declare.
5311 (regcache_raw_write_part): Declare.
5312 (regcache_cooked_read_part): Declare.
5313 (regcache_cooked_write_part): Declare.
5314
92d1e331
DJ
53152002-08-18 Daniel Jacobowitz <drow@mvista.com>
5316
5317 * remote.c (remote_open_1): Add async_p.
5318 (remote_async_open_1): Delete.
5319 (open_remote_target): Delete.
5320 (remote_open, extended_remote_open): Update calls to remote_open_1.
5321 (remote_async_open, extended_remote_async_open): Call
5322 remote_open_1 instead of remote_async_open_1.
5323
247055de
MK
53242002-08-19 Mark Kettenis <kettenis@gnu.org>
5325
5326 * blockframe.c: Fix a few coding standard violations.
5327
641eda39
MK
53282002-08-19 Mark Kettenis <kettenis@gnu.org>
5329
0b717710
MK
5330 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5331 here from ...
5332 * config/i386/tm-i386sco5.h: ... here. File removed.
5333 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5334
26d28e12 5335 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
5336 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5337 (TM_FILE): Set to tm-i386.h.
5338 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5339 * config/i386/tm-i386v.h: Remove file.
5340 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5341 instead of "i386/tm-i386v.h".
5342 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5343 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5344 "i386/tm-i386v.h".
5345 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5346 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5347 "i386/tm-i386.h".
5348
d4e0bab4
MK
53492002-08-18 Mark Kettenis <kettenis@gnu.org>
5350
5351 * config/i386/nm-i386v.h: Add protection against
5352 multiple-inclusion.
5353 (i386_register_u_addr): Remove prototype.
5354 (register_u_addr): New prototype.
5355 (REGISTER_U_ADDR): Redefine accordingly.
5356 * i386v-nat.c: Improve several comments.
5357 (i386_register_u_addr): Change signature and rename to
5358 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5359 ubase variable.
5360
46cac009
AC
53612002-08-18 Andrew Cagney <ac131313@redhat.com>
5362
5363 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5364 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5365 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5366 deprecated_extract_return_value.
5367 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5368 rename mips_o32o64_push_arguments.
5369 (mips_gdbarch_init): Update.
5370 (mips_extract_return_value): Delete.
5371 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5372 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5373 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5374 (mips_n32n64_extract_return_value): Clone
5375 mips_extract_return_value.
5376 (mips_store_return_value): Delete.
5377 (mips_o32_store_return_value): Clone mips_store_return_value.
5378 (mips_o64_store_return_value): Clone mips_store_return_value.
5379 (mips_eabi_store_return_value): Clone mips_store_return_value.
5380 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5381
d2e4a39e
AS
53822002-08-18 Aidan Skinner <aidan@velvet.net>
5383
0c30c098
AS
5384 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5385 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5386
53872002-08-18 Aidan Skinner <aidan@velvet.net>
5388
5389 * ada-lang.c: Run through gdb_indent.sh.
5390 * ada-lang.h: Run through gdb_indent.sh.
5391 * ada-tasks.c: Run through gdb_indent.sh.
5392 * ada-typeprint.c: Run through gdb_indent.sh.
5393 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 5394
01fc4e33
AC
53952002-08-18 Andrew Cagney <ac131313@redhat.com>
5396
5397 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5398 ABI.
5399
d8ee244c
MK
54002002-08-18 Mark Kettenis <kettenis@gnu.org>
5401
c38d8261
MK
5402 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5403
222db64c
MK
5404 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5405 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5406
c2848c82
MK
5407 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5408 write_register_gen instead of write_register_bytes.
5409
d8ee244c
MK
5410 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5411 i[3456]-*-osf1mk* configurations have been made obsolete.
5412 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5413 i[3456]86-*-osf1mk* hosts obsolete.
5414 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5415 targets obsolete.
5416 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5417 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5418 config/i386/i386m3.mt, config/i386/nm-m3.h,
5419 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5420 config/i386/i386mk.mh, config/i386/i386mk.mt,
5421 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5422 obsolete.
5423 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5424 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5425 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5426
61d8d407
AC
54272002-08-18 Andrew Cagney <ac131313@redhat.com>
5428
5429 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5430 (hppa_value_returned_from_stack): Declare.
5431 (hppa_extract_return_value): Declare.
5432 * config/pa/hppa.mt: New file.
5433 * configure.tgt: Recognize hppa*-*-*.
5434 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5435
0c52bd59
MK
54362002-08-18 Mark Kettenis <kettenis@gnu.org>
5437
5438 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5439 comment.
5440
b5686e99
MK
54412002-08-17 Mark Kettenis <kettenis@gnu.org>
5442
5443 * top.c (gdb_rl_operate_and_get_next): Make sure
5444 operate-and-get-next functions correctly even when the history
5445 list is completely filled.
5446
c1bab85b
AC
54472002-08-18 Andrew Cagney <ac131313@redhat.com>
5448
5449 * MAINTAINERS (Target Instruction Set Architectures): Rename
5450 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5451 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5452 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5453 already listed under Host/Native.
5454
5455 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5456 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5457 mips*-*-*.
5458
32089c7c
AC
54592002-08-17 Andrew Cagney <ac131313@redhat.com>
5460
5461 * config/ia64/ia64.mt: New file.
5462 * config/alpha/alpha.mt: New file.
5463 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5464 ia64-linux-gnu. Mention that ia64-elf is broken.
5465 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5466
b4671f85
MK
54672002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5468
5469 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5470 generic_func_frame_valid instead of func_frame_valid.
5471
c8edd8b4
JB
54722002-08-16 Joel Brobecker <brobecker@gnat.com>
5473
5474 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5475 procfs appears to be broken when debugging on multi-processor
5476 machines. So enable software single stepping in order to avoid
5477 using the procfs interface to do next/step operations, using
5478 internal breakpoints instead.
5479
5480 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5481 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5482 make this pc address equal to the value it would have if the
5483 system stepping capability was used. Also set a new flag used
5484 to ensure that we don't readjust the PC one more time later.
5485
5486 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5487 address by DECR_PC_AFTER_BREAK when software single step is
5488 in use for this architecture, as this has already been taken
5489 care of in handle_inferior_event().
5490
238617f6
JB
54912002-08-16 Joel Brobecker <brobecker@gnat.com>
5492
5493 * infrun.c (handle_inferior_event): Minor reformatting, to make
5494 a rather long condition expression easier to read.
5495
541a7aac
AC
54962002-08-16 Andrew Cagney <ac131313@redhat.com>
5497
5498 * Makefile.in (gdbtk.o): Move to end of file.
5499 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5500 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5501 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5502 (gdbtk-wrapper.o, gdbres.o): Ditto.
5503
f92d4a7b
AC
55042002-08-16 Andrew Cagney <ac131313@redhat.com>
5505
5506 * Makefile.in (copying.o): Separate out compile rule.
5507 (hpux-thread.o, procfs.o, signals.o): Ditto.
5508 (v850ice.o, z8k-tdep.o): Ditto.
5509 (tui-file.o): Move to TUI section.
5510 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5511 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5512
1cce71eb
JB
55132002-08-16 Joel Brobecker <brobecker@gnat.com>
5514
5515 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5516 skip_trampoline_code, for better namespace-proofing.
5517
5518 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5519
0851f23d
JB
55202002-08-16 Joel Brobecker <brobecker@gnat.com>
5521
5522 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5523
f8d40ec8
JB
55242002-08-16 Joel Brobecker <brobecker@gnat.com>
5525
5526 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5527 signal, check whether we hit a breakpoint before checking for a
5528 single step breakpoint. Otherwise, GDB fails to notice that a
5529 breakpoint has been hit when stepping onto a breakpoint.
5530
63d022e0
KS
55312002-08-16 Keith Seitz <keiths@redhat.com>
5532
5533 * gdb-events.sh (clear_gdb_event_hooks): New function.
5534 * gdb-events.c: Regenerate.
5535 * gdb-events.h: Regenerate.
5536
6e31adb3
AC
55372002-08-16 Andrew Cagney <ac131313@redhat.com>
5538
5539 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5540 not_a_sw_breakpoint.
5541 * breakpoint.h (bpstat_stop_status): Add parameter names.
5542
c8189ed1
GS
55432002-08-16 Grace Sainsbury <graces@redhat.com>
5544
5545 * remote.c (remote_insert_hw_breakpoint)
5546 (remote_remove_hw_breakpoint): Fix calculation of length field
5547 for Z-packet.
5548
d05285fa
MS
55492002-08-15 Michael Snyder <msnyder@redhat.com>
5550
466d7106
MS
5551 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5552 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5553 (supply_fpregset): Ditto.
5554
d05285fa
MS
5555 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5556 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5557 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5558 (TARGET_READ_SP): Delete.
bf1f5b4c 5559 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5560 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5561 Delete.
5562 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5563 from macros to functions.
bf1f5b4c 5564
d05285fa
MS
5565 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5566 (mips_register_convertible, mips_register_convert_to_virtual,
5567 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5568 (mips_read_sp): New function.
5569 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5570 (mips_do_registers_info): Make static.
5571 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5572 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5573 (mips_register_convert_from_type, mips_register_convert_to_type):
5574 New functions.
5575 (mips_gdbarch_init): Set up function_start_offset,
5576 register_virtual_size, pc_in_sigtramp.
d05285fa 5577
e76f1f2e
AC
55782002-08-15 Andrew Cagney <ac131313@redhat.com>
5579
5580 * infcmd.c (vector_info): New function.
5581 (_initialize_infcmd): Add command "info vector".
5582 (print_vector_info): New function.
5583
5584 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5585 * gdbarch.h, gdbarch.c: Regenerate.
5586
4782dc19
AC
55872002-08-15 Andrew Cagney <ac131313@redhat.com>
5588
5589 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5590 ``print_all''. Only print vector registers when ``print_all''.
5591
23e3a7ac
AC
55922002-08-15 Andrew Cagney <ac131313@redhat.com>
5593
8e186fd6
AC
5594 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5595 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5596
23e3a7ac
AC
5597 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5598 Add `args' parameter.
5599 * gdbarch.h, gdbarch.c: Regenerate.
5600
5601 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5602
5603 * infcmd.c (float_info): Call print_float_info.
5604 (print_float_info): New function. By default, print the
5605 floating-point registers.
5606
5607 * arch-utils.h (default_print_float_info): Delete declaration.
5608 * arch-utils.c (default_print_float_info): Delete function.
5609
e0ca2bb9
MK
56102002-08-16 Mark Kettenis <kettenis@gnu.org>
5611
3f733acc
MK
5612 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5613 out define.
5614
7d8d2918
MK
5615 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5616 FRAME.
5617
1c7cc583
MK
5618 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5619 * configure.host: Make i[3456]86-*-aix host obsolete.
5620 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5621 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5622 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5623 config/i386/xm-i386aix.h: Make files obsolete.
5624 * i386aix-nat.c: Make file obsolete.
5625 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5626 (i386aix-nat.o): Make target obsolete.
5627
e0ca2bb9
MK
5628 * config/i386/nm-gnu.h: Removed.
5629 * config/i386/nm-i386gnu.h: New file.
5630 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5631 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5632 Moved here from ...
5633 * config/i386/tm-i386gnu.h: ... here. Removed.
5634 * config/i386/xm-i386gnu.h: Removed.
5635 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5636 (NAT_FILE): Set to nm-i386gnu.h.
5637 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5638 * i386-tdep.c: New file.
5639 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5640 (i386gnu-tdep.o): Specify dependencies.
5641
16057ec7 56422002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5643
6b99ee2e
MK
5644 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5645 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5646 Adjust a few comments to reflect reality a bit closer.
5647 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5648 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5649 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5650 target_insert_watchpoint, target_remove_watchpoint):
5651 Move defines to ...
5652 * config/i386/nm-i386sco5.h: ... here.
5653 (kernel_u_size): Add prototype. Improve a few comments and add
5654 protection against multiple inclusion.
5655
d9a6f65c
MK
5656 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5657 out define.
5658
047eff6a
MK
5659 * uw-thread.c (SP_ARG0): Define if not already defined.
5660 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5661
dcdb1290
MK
5662 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5663
5d2d0b2a
MK
5664 * config/i386/tm-i386.h: Don't include "regcache.h".
5665
61113f8b
MK
5666 * i387-tdep.h (i387_print_float_info): New prototype.
5667 * i387-tdep.c (print_i387_value, print_i387_ext,
5668 print_i387_status_word, print_i387_control_word): Add `struct
5669 ui_file *' argument and use it for output.
5670 (i387_print_float_info): Renamed from i387_float_info. Add
5671 `struct gdbarch *' and `struct ui_file *' arguments and use the
5672 latter for output.
5673 * i386-tdep.c: Include "i387-tdep.h".
5674 (i386_gdbarch_init): Set print_float_info.
5675 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5676 (FLOAT_INFO): Remove define.
5677
46e0f506
MS
56782002-08-13 Michael Snyder <msnyder@redhat.com>
5679
5680 * mips-tdep.c (mips_push_arguments): Rename to
5681 mips_eabi_push_arguments, and tune for EABI.
5682 (MIPS_REGS_HAVE_HOME_P): Delete.
5683 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5684 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5685 Delete references to mips_regs_have_home_p.
5686
409268de
KS
56872002-08-14 Keith Seitz <keiths@redhat.com>
5688
5689 * Makefile.in (install-gdbtk): Create insight plugin directory.
5690 Install plugins.tcl file.
5691
ffc6a242
KS
56922002-08-14 Keith Seitz <keiths@redhat.com>
5693
5694 * configure.in: Move SUBDIRS to near top of the file so that
5695 --enable options may add things to it.
5696 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5697 * configure: Regenerate.
5698
ebafbe83
MS
56992002-08-13 Michael Snyder <msnyder@redhat.com>
5700
5701 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5702 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5703 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5704
32f6f25d
AC
57052002-08-13 Andrew Cagney <ac131313@redhat.com>
5706
5707 * vax-tdep.c (vax_get_saved_register): Delete function.
5708 (vax_gdbarch_init): Update.
5709 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5710 (ns32k_gdbarch_init): Update.
5711 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5712 (alpha_gdbarch_init): Update.
5713
53826de9
AC
57142002-08-13 Andrew Cagney <cagney@redhat.com>
5715
5716 * regcache.c (init_regcache_descr): Overallocate the
5717 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5718 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5719 nr_raw_registers.
5720 (set_register_cached): Add range checking assertions. Use
5721 current_regcache.
5722
16057ec7 57232002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5724
5725 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5726 numbers for MMX registers.
5727
7b4c2dce
AC
57282002-08-13 Andrew Cagney <cagney@redhat.com>
5729
5730 * i386-tdep.c (i386_gdbarch_init): Use
5731 generic_unwind_get_saved_register.
5732
1e03ad20
KB
57332002-08-13 Kevin Buettner <kevinb@redhat.com>
5734
5735 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5736 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5737 target vector.
5738 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5739 Delete. Add comment regarding this now-deleted target method.
5740
548bcbec
SC
57412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5742
5743 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5744 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5745 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5746 real PC and the page number (if it's within the memory bank window).
5747 (m68hc11_pseudo_register_write): Likewise when saving.
5748 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5749 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5750 (m68hc11_register_raw_size): And use 32-bit for it.
5751 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5752 16K memory bank is used by the prog; also use the virtual pc.
5753
7df11f59
SC
57542002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5755
5756 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5757 (m68hc11_gdbarch_init): Install it in gdbarch.
5758 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5759 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5760 (MSYMBOL_SIZE): New for documentation.
5761 (insn_return_kind): Enum to specify how a function returns.
5762 (frame_extra_info): Cleanup and record the return mode.
5763 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5764 register in address computation.
5765 (m68hc11_get_return_insn): New to obtain the return instruction used
5766 by the function.
5767 (m68hc11_frame_init_saved_regs): Take into account the return
5768 instruction used by the function for far and interrupt functions.
5769 (m68hc11_init_extra_frame_info): Take into account page register.
5770 (m68hc11_frame_args_address): Adjust according to the return mode.
5771 (show_regs): Print page register only when it's used.
5772
5706502a
SC
57732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5774
5775 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5776 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5777 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5778 registers.
5779 (m68hc11_register_raw_size): Likewise.
5780
28fc6740
AC
57812002-08-13 Andrew Cagney <cagney@redhat.com>
5782
5783 * i386-tdep.c (i386_register_name): Handle mmx registers.
5784 (mmx_regnum_p): New function.
5785 (i386_mmx_names): New array.
5786 (mmx_num_regs): New variable.
5787 (i386_pseudo_register_read): New function.
5788 (i386_pseudo_register_write): New function.
5789 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5790
5791 * regcache.c (regcache_raw_read_unsigned): New function.
5792 (regcache_raw_read_signed): New function.
5793 * regcache.h (regcache_raw_read_unsigned): Declare.
5794 (regcache_raw_read_signed): Declare.
5795
a378f419
AC
57962002-08-13 Andrew Cagney <cagney@redhat.com>
5797
5798 * regcache.c (regcache_raw_read_as_address): Delete function.
5799 (regcache_cooked_read_signed): New function.
5800 (regcache_cooked_read_unsigned): New function.
5801 * regcache.h (regcache_cooked_read_signed): Declare.
5802 (regcache_cooked_read_unsigned): Declare.
5803 (regcache_raw_read_as_address): Delete declaration.
5804
5805 * blockframe.c (generic_read_register_dummy): Use
5806 regcache_cooked_read_unsigned.
5807 * i386-tdep.c (i386_extract_struct_value_address): Use
5808 regcache_cooked_read_unsigned.
5809
81967506
SC
58102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5811
5812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5813 double sizes according to ELF ABI flags.
5814 (gdbarch_tdep): Record elf_flags.
5815
ffe1f3ee
SC
58162002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5817
5818 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5819 (m6812_prolog): They can appear in 68HC12 function prologue.
5820 (m68hc11_frame_chain): Cleanup.
5821
98216c5d
AC
58222002-08-12 Andrew Cagney <cagney@redhat.com>
5823
5824 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5825 declarations.
5826 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5827 (i386_linux_register_raw_size): Delete function.
5828 (i386_linux_init_abi): Update.
5829 * i386-tdep.c (i386_register_raw_size): Delete function.
5830 (i386_register_byte): Delete function.
5831 (i386_gdbarch_init): Update.
5832 (i386_register_size): Delete array.
5833 (i386_register_offset): Delete array.
5834
5835 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5836 (REGISTER_RAW_SIZE): Delete macro.
5837 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5838 (REGISTER_BYTE): Delete macro.
5839
3b19021e
AS
58402002-08-11 Aidan Skinner <aidan@velvet.net>
5841
5842 * ada-lang.c (ada_lookup_partial_symbol)
5843 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5844 prototype names so that grep ^func works properly.
5845
5846 * ada-lang.c (ada_array_element_type)
5847 (ada_lookup_partial_symbol): Fix typos in parameter list.
5848
5849 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5850 Fix prototype names so that grep ^func works properly.
5851
b063e7a2
AC
58522002-08-10 Andrew Cagney <cagney@redhat.com>
5853 Elena Zannoni <ezannoni@redhat.com>
5854 Martin M. Hunt <hunt@redhat.com>
5855
5856 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5857 (build_builtin_type_vec128i): Set the vector bit.
5858 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5859 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5860 (build_builtin_type_vec64): New function.
5861 (build_builtin_type_vec64i): New function.
5862 (build_gdbtypes): Initialize builtin_type_vec64 and
5863 builtin_type_vec64i.
5864
a7e3c2ad
AC
58652002-08-09 Andrew Cagney <cagney@redhat.com>
5866
5867 * regcache.c (regcache_dump): Compare the register offset
5868 with REGISTER_BYTE.
5869 * arch-utils.c (generic_register_byte): New function.
5870 * arch-utils.h (generic_register_byte): Declare.
5871 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5872 * gdbarch.h, gdbarch.c: Regenerate.
5873
af030b9a
AC
58742002-08-09 Andrew Cagney <cagney@redhat.com>
5875
5876 * regcache.c: Include "gdbcmd.h"
5877 (_initialize_regcache): Add commands "maintenance print
5878 registers", "maintenance print raw-registers" and "maintenance
5879 print cooked-registers".
5880 (enum regcache_dump_what): Define.
5881 (dump_endian_bytes): New function.
5882 (regcache_dump): New function.
5883 (regcache_print): New function.
5884 (maintenance_print_registers): New function.
5885 (maintenance_print_raw_registers): New function.
5886 (maintenance_print_cooked_registers): New function.
5887 * Makefile.in (regcache.o): Update dependencies.
5888
cb3d25d1
MS
58892002-08-09 Michael Snyder <msnyder@redhat.com>
5890
5891 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5892 (mips_push_arguments): Correct some comments. Use paddr_nz
5893 for printing addresses in debug output. Replace static
5894 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5895 (mips_n32n64_push_arguments): New function, cloned from
5896 mips_push_arguments and tuned for the n32/n64 ABI.
5897 (mips_push_register): Buffer needs dynamic allocation.
5898 (mips_print_register): Ditto.
5899 (do_gp_register_row): Ditto.
5900 (mips_store_return_value): Ditto.
5901 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5902
2163ab9d
DH
59032002-08-09 Don Howard <dhoward@redhat.com>
5904
5905 * memattr.c (mem_info_command): Print special case of upper bound
5906 as max CORE_ADDR + 1.
5907
b78bcb18
MS
59082002-08-08 Michael Snyder <msnyder@redhat.com>
5909
5910 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5911 returns structs by ref if they're too big to fit in two registers.
5912
ffabd70d
KB
59132002-08-09 Kevin Buettner <kevinb@redhat.com>
5914
5915 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5916 saved regs value.
5917 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5918 mips_find_saved_regs().
5919 (mips_pop_frame): Likewise.
5920
fbcdb4a3
KB
59212002-08-09 Kevin Buettner <kevinb@redhat.com>
5922
5923 * blockframe.c (frame_saved_regs_register_unwind): Revise
5924 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5925 frames are in use.
5926
3c3bea1c
GS
59272002-08-09 Grace Sainsbury <graces@redhat.com>
5928
5929 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5930 T-packets; the 'a' is not taken as a register number.
5931 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5932 (remote_stopped_data_address): New functions; add to target
5933 vector.
5934 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5935 prototypes to match other implementations of this
5936 function. replace integer argument with pointer -- the length
5937 field in the Z-packet is the length of what is pointed to or 1 if
5938 pointer is null. Add to target vector.
5939 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5940 target vector.
5941
5942 From Mark Salter:
5943 * remote.c (remote_wait): Add support to extract optional
5944 watchpoint information from T-packet. Ignore unrecognized
5945 optional info in T-packet.
5946 (remote_async_wait): Ditto.
5947
5d1d95de
CV
59482002-08-09 Corinna Vinschen <vinschen@redhat.com>
5949
5950 * cli/cli-dump.c: Change fopen modes to use binary open modes
5951 as defined in include/fopen-bin.h throughout.
5952
c86b5b38
MS
59532002-08-08 Michael Snyder <msnyder@redhat.com>
5954
5955 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5956
b30590dc
KB
59572002-08-08 Kevin Buettner <kevinb@redhat.com>
5958
5959 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5960 assertion failure by returning early after a warning.
5961
498868ed
KB
59622002-08-08 Kevin Buettner <kevinb@redhat.com>
5963
5964 * mips-tdep.c (mips_find_saved_regs): Make static.
5965 (mips_frame_init_saved_regs): New function.
5966 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5967 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5968 (mips_find_saved_regs): Delete declaration.
5969
b2dd6311
GS
59702002-08-08 Grace Sainsbury <graces@redhat.com>
5971
3c3bea1c
GS
5972 * remote.c (remote_wait, remote_async_wait): Change
5973 thread_num from int to ULONGEST.
5974 (unpack_varlen_hex): Change result parameter from
5975 int * to ULONGEST *.
b2dd6311 5976
ea47855f
AC
59772002-08-08 Andrew Cagney <ac131313@redhat.com>
5978
5979 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5980 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5981 powerpc*-*-*.
5982 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5983
69db8bae
AC
59842002-08-08 Andrew Cagney <cagney@redhat.com>
5985
5986 * gcore.c (override_derive_stack_segment): Delete variable.
5987 (preempt_derive_stack_segment): Delete function.
5988 (derive_stack_segment): Delete function.
5989 (default_derive_stack_segment): Renamed to derive_stack_segment.
5990 (override_derive_heap_segment): Delete variable.
5991 (preempt_derive_heap_segment): Delete function.
5992 (derive_heap_segment): Delete function.
5993 (default_derive_heap_segment): Rename to derive_heap_segment.
5994
cb811fe7
MS
59952002-08-06 Michael Snyder <msnyder@redhat.com>
5996
5997 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5998 * mips-tdep.c (mips_EABI_use_struct_convention,
5999 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6000 New functions. (mips_use_struct_convention): Delete.
6001 (mips_gdbarch_init): set use_gdbarch_convention.
6002
8b389c40
MS
60032002-08-06 Michael Snyder <msnyder@redhat.com>
6004
6005 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6006 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6007 mips_o32_reg_struct_has_addr): New functions.
6008 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6009
5c27f28a
AC
60102002-08-07 Andrew Cagney <ac131313@redhat.com>
6011
6012 * regcache.c (pseudo_register): Delete function.
6013 (fetch_register): Delete function.
6014 (store_register): Delete function.
6015 (regcache_raw_read, legacy_read_register_gen): Use
6016 target_fetch_registers instead of fetch_register.
6017 (legacy_write_register_gen, regcache_raw_write): Use
6018 target_store_register instead of store_register.
6019 (write_register_bytes): Ditto.
6020
6021 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6022 (STORE_PSEUDO_REGISTER): Delete.
6023 * gdbarch.h, gdbarch.c: Regenerate.
6024
5b331675
CV
60252002-08-06 Corinna Vinschen <vinschen@redhat.com>
6026
6027 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6028 write dump file binary.
6029
6acdf5c7
MS
60302002-08-05 Michael Snyder <msnyder@redhat.com>
6031
6032 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6033 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6034 (mips_gdbarch_init): Set N32 target to be mips64.
6035
b2f01c35
KB
60362002-08-06 Kevin Buettner <kevinb@redhat.com>
6037
6038 * frame.c (find_saved_register): Break out of loop once saved
6039 register address is found. Don't mention sparc in loop comment
6040 anymore.
6041
63db5580
KB
60422002-08-06 Kevin Buettner <kevinb@redhat.com>
6043
6044 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6045 mips_default_saved_regsize to 8.
6046
5e34e75e
AC
60472002-08-06 Andrew Cagney <ac131313@redhat.com>
6048
6049 * gcore.c: Do not include <sys/procfs.h>.
6050 * Makefile.in (gcore.o): Update dependencies.
6051
eb4c54a2
AC
60522002-08-06 Andrew Cagney <cagney@redhat.com>
6053
6054 * configure.tgt: Make arc-*-* obsolete.
6055 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6056 * MAINTAINERS: Make arc-elf obsolete.
6057 * arc-tdep.c: Make file obsolete.
6058 * config/arc/arc.mt: Ditto.
6059 * config/arc/tm-arc.h: Ditto.
6060
ced15480
TR
60612002-08-05 Theodore A. Roth <troth@verinet.com>
6062
c1bab85b 6063 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 6064
b4743822
AC
60652002-08-05 Andrew Cagney <ac131313@redhat.com>
6066
6067 * mcore-tdep.c (mcore_gdbarch_init): Use
6068 generic_unwind_get_saved_register instead of
6069 generic_get_saved_register.
6070 * v850-tdep.c (v850_gdbarch_init): Ditto.
6071 * frv-tdep.c (frv_gdbarch_init): Ditto.
6072 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6073 * s390-tdep.c (s390_gdbarch_init): Ditto.
6074 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6075 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6076 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6077
3956d554
JB
60782002-08-05 Joel Brobecker <brobecker@gnat.com>
6079
6080 * objfiles.h: Add missing #include "symfile.h"
6081
6082 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6083
8249c0d6
AC
60842002-08-04 Andrew Cagney <ac131313@redhat.com>
6085
6086 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6087 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6088 of FIELD_BITSIZE.
6089
b9d14705
DJ
60902002-08-04 Daniel Jacobowitz <drow@mvista.com>
6091
6092 * NEWS: Cleanup and nitpick.
6093
dd73b9bb
AC
60942002-08-03 Andrew Cagney <ac131313@redhat.com>
6095
6096 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6097
043a27f8
AC
60982002-08-03 Andrew Cagney <ac131313@redhat.com>
6099
6100 * Makefile.in (gdbtk-bp.o): Update dependencies.
6101 (gdbtk-register.o): Ditto.
6102 (gdbtk-varobj.o): Ditto.
6103
46ce284d
AC
61042002-08-03 Andrew Cagney <cagney@redhat.com>
6105
6106 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6107 m68hc11_fetch_pseudo_register.
6108 (m68hc11_pseudo_register_write): Replace
6109 m68hc11_store_pseudo_register.
6110 (m68hc11_gdbarch_init): Update.
6111
b66d6d2e
AC
6112Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6113
6114 * gdbarch.sh: Include "gdb_string.h".
6115 * gdbarch.c: Regenerate.
6116
6117 * regcache.c: Include "gdb_string.h".
6118 * ax-general.c: Ditto.
6119 * varobj.c: Ditto.
6120 * std-regs.c: Ditto.
6121 * fbsd-proc.c: Ditto.
6122 * thread.c: Ditto.
6123
6124 * Makefile.in (regcache.o): Update dependencies.
6125 (thread.o, gdbarch.o): Ditto.
6126 (ax-general.o, gdbarch.o): Ditto.
6127 (varobj.o, std-regs.o): Ditto.
6128 (fbsd-proc.o): Specify dependencies.
6129
29e1842b
AC
61302002-08-02 Andrew Cagney <cagney@redhat.com>
6131
6132 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6133 regnum.
6134 (regcache_cooked_write): Ditto.
6135
68365089
AC
61362002-08-02 Andrew Cagney <ac131313@redhat.com>
6137
6138 * regcache.c (regcache_cooked_read): New function.
6139 (regcache_cooked_write): New function.
6140 (read_register_gen): Rewrite using regcache_cooked_read.
6141 (write_register_gen): Rewrite using regcache_cooked_write.
6142
6143 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6144 Declare.
6145
d8124050
AC
61462002-08-02 Andrew Cagney <cagney@redhat.com>
6147
6148 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6149 Replace the architecture methods register_read and register_write.
6150 * gdbarch.h, gdbarch.c: Regenerate.
6151 * regcache.c (init_regcache_descr): Update.
6152 (read_register_gen): Update.
6153 (write_register_gen): Update.
6154 (supply_register): Update comment.
6155
6156 * sh-tdep.c (sh_gdbarch_init): Update.
6157 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6158 `regcache' and `gdbarch' parameters. Make `buffer' a void
6159 pointer. Update code.
6160 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6161 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6162 void pointer. Update code.
6163 (sh64_register_write): Delete.
6164 (sh4_register_read): Delete.
6165 (sh64_register_read): Delete.
6166 (sh4_register_write): Delete.
6167 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6168 void pointer, `to' parameter a void pointer.
6169 (sh_sh64_register_convert_to_raw): Ditto.
6170
a6425924
KB
61712002-08-01 Kevin Buettner <kevinb@redhat.com>
6172
6173 * mips-tdep.c (mips_register_virtual_type): Use architecture
6174 invariant return values.
6175
ff5922b5
AC
61762002-08-01 Andrew Cagney <cagney@redhat.com>
6177
6178 * linux-proc.c: Include "gdb_string.h".
6179 * Makefile.in (linux-proc.o): Update dependency list.
6180
32a6503c
KB
61812002-08-01 Kevin Buettner <kevinb@redhat.com>
6182
6183 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6184 comment.
6185
ccaa32c7
GS
61862002-08-01 Grace Sainsbury <graces@redhat.com>
6187
6188 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6189 to_insert_watchpoint, to_remove_watchpoint,
6190 to_stopped_by_watchpoint, to_stopped_data_address,
6191 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6192 target vecctor. Define their corresponding macros so they call
6193 them.
6194
6195 * target.c: Add default and debug versions of for
6196 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6197 to_insert_watchpoint, to_remove_watchpoint,
6198 to_stopped_by_watchpoint, to_stopped_data_address,
6199 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6200
78fde5f8
KB
62012002-08-01 Kevin Buettner <kevinb@redhat.com>
6202
6203 * mips-tdep.c (mips_register_virtual_type): New function.
6204 (mips_gdbarch_init): Register mips_register_virtual_type()
6205 with gdbarch machinery.
6206 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6207 this file instead of tm-bigmips.h.
6208 (MIPS_REGSIZE): Delete this macro.
6209 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6210 multiarch version in mips-tdep.c will be found.
6211
db034ac5
AC
62122002-08-01 Andrew Cagney <cagney@redhat.com>
6213
6214 * NEWS: Menion that CHILL has been made obsolete.
6215
6216 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
6217 * stabsread.c (read_range_type): Ditto.
6218 * gdbtypes.h: Ditto.
6219 * language.c (binop_type_check): Ditto.
6220 (binop_result_type): Ditto.
6221 (integral_type): Ditto.
6222 (character_type): Ditto.
6223 (string_type): Ditto.
6224 (boolean_type): Ditto.
6225 (structured_type): Ditto.
6226 (lang_bool_type): Ditto.
6227 (binop_type_check): Ditto.
6228 * language.h (_LANG_chill): Ditto.
6229 * dwarfread.c (set_cu_language): Ditto.
6230 * dwarfread.c (CHILL_PRODUCER): Ditto.
6231 * dwarfread.c (handle_producer): Ditto.
6232 * expression.h (enum exp_opcode): Ditto.
6233 * eval.c: Ditto for comments.
6234 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6235 * expprint.c (print_subexp): Ditto.
6236 (print_subexp): Ditto.
6237 * valops.c (value_cast): Ditto.
6238 (search_struct_field): Ditto.
6239 * value.h (COERCE_VARYING_ARRAY): Ditto.
6240 * symfile.c (init_filename_language_table): Ditto.
6241 (add_psymbol_with_dem_name_to_list): Ditto.
6242 * valarith.c (value_binop): Ditto.
6243 (value_neg): Ditto.
6244 * valops.c (value_slice): Ditto.
6245 * symtab.h (union language_specific): Ditto.
6246 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6247 (SYMBOL_DEMANGLED_NAME): Ditto.
6248 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6249 * defs.h (enum language): Ditto.
6250 * symtab.c (got_symtab): Ditto.
6251 * utils.c (fprintf_symbol_filtered): Ditto.
6252
6253 * ch-typeprint.c: Make file obsolete.
6254 * ch-valprint.c: Make file obsolete.
6255 * ch-lang.h: Make file obsolete.
6256 * ch-exp.c: Make file obsolete.
6257 * ch-lang.c: Make file obsolete.
6258
6259 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6260 CHILL_LIB.
6261 (TARGET_FLAGS_TO_PASS): Ditto.
6262 (CHILLFLAGS): Obsolete.
6263 (CHILL): Obsolete.
6264 (CHILL_FOR_TARGET): Obsolete.
6265 (CHILL_LIB): Obsolete.
6266 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6267 ch-valprint.c.
6268 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6269 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6270 ch-lang.o.
6271 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6272 targets.
6273
8aaf0b47
JB
62742002-07-31 Joel Brobecker <brobecker@gnat.com>
6275
6276 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6277 This does not change anything at the moment, but will be helpful
6278 later when full Ada support is integrated.
6279
f3a7b3a5
KB
62802002-07-31 Kevin Buettner <kevinb@redhat.com>
6281
6282 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6283 help message.
6284
fb850278
KB
62852002-07-31 Kevin Buettner <kevinb@redhat.com>
6286
6287 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6288 and save it in a local variable. Use variable in later test.
6289
e3bddbfa
KB
62902002-07-31 Kevin Buettner <kevinb@redhat.com>
6291
6292 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6293 test. (Thanks to Daniel Jacobowitz.)
6294
28d169de
KB
62952002-07-31 Kevin Buettner <kevinb@redhat.com>
6296
6297 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6298 (mips_abi_strings): Add "n64".
6299 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6300
7fe7e44e
KB
63012002-07-31 Kevin Buettner <kevinb@redhat.com>
6302
6303 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6304 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6305
c6caf090
KB
63062002-07-31 Kevin Buettner <kevinb@redhat.com>
6307
6308 * utils.c (host_pointer_to_address, address_to_host_pointer):
6309 Use gdb_assert() instead of explicit call to internal_error().
6310
c41669e0
KB
63112002-07-30 Kevin Buettner <kevinb@redhat.com>
6312
6313 * Makefile.in (rs6000-nat.o): Update dependencies.
6314
6315 From Nicholas Duffek:
6316 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6317 (aix-thread.o): New rule.
6318 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6319 * config/powerpc/aix432.mh: New file.
6320
2fda4977
DJ
63212002-07-30 Daniel Jacobowitz <drow@mvista.com>
6322
6323 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6324 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6325 (fetch_core_registers, ppc_linux_supply_gregset)
6326 (ppc_linux_supply_fpregset): New functions.
6327 (ppc_linux_regset_core_fns): New.
6328 (_initialize_ppc_linux_tdep): Call add_core_fns.
6329 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6330 and ppc_linux_supply_gregset.
6331 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6332 (supply_fpregset): Call ppc_linux_supply_fpregset.
6333 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6334 corelow.o.
6335 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6336
729051e6
DJ
63372002-07-30 Daniel Jacobowitz <drow@mvista.com>
6338
6339 * symtab.c (lookup_symbol): Demangle before lowercasing.
6340
5f8a3188
AC
63412002-07-30 Andrew Cagney <ac131313@redhat.com>
6342
6343 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6344 declaration.
6345 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6346 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6347 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6348 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6349 "gdb_string.h".
6350 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6351 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6352 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6353 (avr-tdep.o, mon960-rom.o): Ditto.
6354 (aout_stabs_gnu_h): Define.
6355 (symtab_h): Remove $(gdb_obstack_h).
6356
67f07146
JB
63572002-07-30 Jim Blandy <jimb@redhat.com>
6358
6359 Patch from David Carlton <carlton@math.stanford.edu>:
6360 * gdbinit.in: Move the `dir' commands that add GDB's own source
6361 directory to the search path to the end, so that the `gdb' source
6362 directory will be searched first.
6363
04ea0df1
AC
63642002-07-29 Andrew Cagney <ac131313@redhat.com>
6365
6366 * gdb_obstack.h: New file.
6367 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6368 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6369 * objfiles.h: Include "gdb_obstack.h".
6370 * Makefile.in (gdb_obstack_h): Define.
6371 (symtab_h): Add $(gdb_obstack_h).
6372 (objfiles_h): Add $(gdb_obstack_h).
6373
6374 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6375 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6376 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6377 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6378 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6379 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6380 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6381 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6382
6383 * Makefile.in (bcache.o): Update dependencies.
6384 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6385 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6386 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6387 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6388 (stabsread.o, symfile.o, symmisc.o): Ditto.
6389 (symtab.o, typeprint.o, macroexp.o): Ditto.
6390 (macrotab.o, mdebugread.o): Ditto.
6391 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6392 (coff_ecoff_h, aout_aout64_h): Define.
6393 (aout_stabs_gnu_h, libaout_h): Define.
6394
d138e37a
AC
63952002-07-29 Andrew Cagney <cagney@redhat.com>
6396
6397 * regcache.c (struct regcache_descr): Rename nr_registers to
6398 nr_cooked_registers. Revise comments describing the structure
6399 member fields.
6400 (init_regcache_descr): Update.
6401 (init_legacy_regcache_descr): Update.
6402 (read_register_gen, write_register_gen): When a cooked register in
6403 the raw register range, directly access the value from the raw
6404 register cache.
6405
460e6ec3
AC
64062002-07-29 Andrew Cagney <ac131313@redhat.com>
6407
6408 * z8k-tdep.c: Do not include "obstack.h".
6409 * h8300-tdep.c, h8500-tdep.c: Ditto.
6410 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6411 * valprint.c, v850-tdep.c: Ditto.
6412 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6413 * mn10200-tdep.c: Ditto.
6414
6415 * Makefile.in (z8k-tdep.o): Update dependencies.
6416 (m68hc11-tdep.o, valprint.o): Ditto.
6417 (v850-tdep.o, d10v-tdep.o): Ditto.
6418 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6419 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6420 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6421 (sh_opc_h, gdb_sim_sh_h): Define.
6422 (elf_sh_h, elf_bfd_h): Define.
6423 (opcode_m68hc11_h): Define.
6424 (OPCODES_SRC, OPCODES_DIR): define.
6425 (OPCODES): Use $(OPCODES_DIR).
6426 (gdb_sim_d10v_h): Rename sim_d10v_h.
6427 (gdb_sim_arm_h): Rename sim_arm_h.
6428
790c9cf0
KB
64292002-07-26 Kevin Buettner <kevinb@redhat.com>
6430
6431 * utils.c (host_pointer_to_address, address_to_host_pointer):
6432 Change internal_error() message to indicate function responsible
6433 for the error.
6434
9647fa49
KB
64352002-07-26 Kevin Buettner <kevinb@redhat.com>
6436
6437 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6438 calls to local_hex_string_custom().
6439
dabbe2c0
KB
64402002-07-26 Kevin Buettner <kevinb@redhat.com>
6441
6442 * irix5-nat.c: Move IRIX shared library support from here...
6443 * solib-irix.c: ...to here. Revised substantially to work with
6444 generic solib framework.
6445
b96d0a4e
KB
6446 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6447 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6448 * mips-irix-tdep.c: New file.
6449
313fb2f6
KB
6450 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6451 (mips-irix-tdep.o, solib-irix.o): New rules.
6452 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6453 solib-irix.o.
6454 * config/mips/irix6.mt (TDEPFILES): Likewise.
6455 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6456
ab2eaf26
KB
64572002-07-26 Kevin Buettner <kevinb@redhat.com>
6458
177e4768 6459 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6460 disabled (via ``#if 0'') includes.
6461
7244546a
KB
64622002-07-26 Kevin Buettner <kevinb@redhat.com>
6463
6464 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6465 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6466 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6467 Add support for the fpscr register.
6468 * rs6000-nat.c (regmap, fetch_inferior_registers)
6469 (store_inferior_registers, fetch_core_registers): Likewise.
6470
dd7be90a
KB
64712002-07-26 Kevin Buettner <kevinb@redhat.com>
6472
6473 * rs6000-nat.c (language.h): Include.
6474 (special_regs): Delete this array.
6475 (regmap): New function.
6476 (fetch_register, store_register): Use regmap() to map gdb
6477 register numbers to ptrace register numbers. Also, use
6478 outputs from regmap() to make decisions regarding type of
6479 ptrace() call to make. In particular, don't compare against
6480 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6481 (fetch_inferior_registers, store_inferior_registers): Where
6482 possible, obtain register numbers from tdep struct. Don't
6483 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6484 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6485 (LAST_UISA_SP_REGNUM): Delete.
6486
11bf77db
KB
64872002-07-25 Kevin Buettner <kevinb@redhat.com>
6488
6489 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6490 (fetch_registers, store_register, fetch_core_registers): Don't
6491 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6492 regcache_collect() as appropriate.
6493 (find_toc_address): Format hex address with local_hex_string().
6494
06afebeb
AC
64952002-07-25 Andrew Cagney <ac131313@redhat.com>
6496
6497 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6498 bfd/elf32-frv.c.
6499
8c554d79
TT
65002002-07-24 Tom Tromey <tromey@redhat.com>
6501
6502 * jv-exp.y: Marked all strings with _().
6503 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6504 internal_error.
6505 (MethodInvocation, CastExpression, parse_number, yyerror,
6506 java_type_from_name, push_expression_name, yylex): Typo fixes.
6507
e4c242d9
DJ
65082002-07-24 Daniel Jacobowitz <drow@mvista.com>
6509
6510 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6511 (tee_file_flush, tee_file_write, tee_file_fputs)
6512 (tee_file_isatty): New.
6513 * ui-file.h (tee_file_new): Add prototype.
6514
ebf56fd3
AS
65152002-07-24 Aidan Skinner <aidan@velvet.net>
6516
6517 * ada-lang.c: Change k&r style function definitions to prototyped
6518 form.
6519 * ada-typeprint.c: Change k&r style function definitions to prototyped
6520 form.
6521 * ada-valprint.c: Change k&r style function definitions to prototyped
6522 form.
6523
7fb623f7
AC
65242002-07-24 Andrew Cagney <cagney@redhat.com>
6525
6526 * README: Remove reference to remote-bug.
6527 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6528 remote-bug.c.
6529 (m88k-nat.o): Delete rule.
6530 (m88k-tdep.o): Delete rule.
6531 (remote-bug.o): Delete rule.
6532 * MAINTAINERS: Mark as obsolete.
6533 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6534 * m88k-tdep.c: Make file obsolete.
6535 * config/m88k/m88k.mh: Ditto.
6536 * config/m88k/delta88v4.mh: Ditto.
6537 * config/m88k/delta88v4.mt: Ditto.
6538 * config/m88k/delta88.mt: Ditto.
6539 * config/m88k/delta88.mh: Ditto.
6540 * remote-bug.c: Ditto.
6541 * config/m88k/tm-delta88.h: Ditto.
6542 * config/m88k/nm-delta88v4.h: Ditto.
6543 * config/m88k/xm-delta88.h: Ditto.
6544 * config/m88k/xm-dgux.h: Ditto.
6545 * config/m88k/tm-m88k.h: Ditto.
6546 * config/m88k/nm-m88k.h: Ditto.
6547 * config/m88k/tm-delta88v4.h: Ditto.
6548 * m88k-nat.c: Ditto.
6549 * cxux-nat.c: Ditto.
6550 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6551 and m88*-*-* obsolete.
6552 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6553 m88*-*-* obsolete.
6554
37611a2b
AC
65552002-07-24 Andrew Cagney <cagney@redhat.com>
6556
6557 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6558 constant. Same for local pointer variables.
6559 (extract_signed_integer): Ditto.
6560 * defs.h (extract_unsigned_integer): Update.
6561 (extract_signed_integer): Update.
6562
1aaa5f99
AC
65632002-07-24 Andrew Cagney <cagney@redhat.com>
6564
6565 * regcache.c (regcache_raw_write): Change buf parameter to a
6566 constant void pointer.
6567 (regcache_raw_read): Change buf parameter to a void pointer.
6568 (legacy_write_register_gen): Change myaddr parameter a constant
6569 void pointer.
6570 (supply_register): Change val parameter to a const void pointer.
6571 * regcache.h (regcache_raw_write): Update declaration.
6572 (regcache_raw_read): Update declaration.
6573 (supply_register): Update declaration.
6574
b4f5539f
TT
65752002-07-24 Tom Tromey <tromey@redhat.com>
6576
6577 * defs.h (gdb_readline_wrapper): Declare.
6578 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6579 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6580 * top.c (gdb_readline_wrapper): New function.
6581 (command_line_input): Use it.
6582
0818c12a
AC
65832002-07-24 Andrew Cagney <cagney@redhat.com>
6584
6585 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6586 regcache_read and regcache_write.
6587 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6588 * regcache.c: Update.
6589 * sh-tdep.c (sh64_push_arguments): Update comment.
6590 (sh_pseudo_register_read): Update.
6591 (sh_pseudo_register_write): Update.
6592 (sh4_register_read): Update.
6593 (sh4_register_write): Update.
6594 (sh64_pseudo_register_read): Update.
6595 (sh64_pseudo_register_write): Update.
6596 (sh64_register_read): Update.
6597 (sh64_register_write): Update.
6598 * i386-tdep.c (i386_extract_return_value): Update.
6599 (i386_extract_struct_value_address): Update.
6600 (i386_extract_return_value): Update.
6601 * blockframe.c (generic_read_register_dummy): Update.
6602 (generic_call_dummy_register_unwind): Update
6603 * infrun.c (write_inferior_status_register): Update.
6604
f7321c06
JB
66052002-07-23 Jim Blandy <jimb@redhat.com>
6606
6607 * parser-defs.h (expression_context_pc): Make this extern.
6608 (Thanks to Michael Snyder.)
6609
2037aebb
AC
66102002-07-23 Andrew Cagney <ac131313@redhat.com>
6611
6612 GDB 5.2.1 released from 5.2 branch.
6613 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6614 * README: Update to mention 5.2.1.
6615
66504d44
MS
66162002-07-23 Mark Salter <msalter@redhat.com>
6617
6618 * remote.c (remote_read_bytes): Fix check for error.
6619
27bae383
KB
66202002-07-22 Kevin Buettner <kevinb@redhat.com>
6621
6622 * aix-thread.c (language.h): Include.
6623 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6624 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6625 Print newlines at end of debug messages.
6626 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6627 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6628
66292002-07-22 Kevin Buettner <kevinb@redhat.com>
6630
6631 * aix-thread.c (ppc-tdep.h): Include.
6632 (special_register_p): New function.
6633 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6634 (store_regs_user_thread): Use register number information from
6635 gdbarch_tdep struct instead of hardcoded offsets relative to
6636 FIRST_UISA_SP_REGNUM.
6637 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6638 special_register_p() instead of using FPLAST_REGNUM and
6639 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6640 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6641 will be MQ's register number.
6642
66432002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6644
6645 * aix-thread.c (ops): Rename to aix_thread_ops.
6646 (base_ops): Rename to base_target.
6647 (ops_attach): Rename to aix_thread_attach.
6648 (ops_detach): Rename to aix_thread_detach.
6649 (ops_resume): Rename to aix_thread_detach.
6650 (ops_wait): Rename to aix_thread_wait.
6651 (ops_kill): Rename to aix_thread_kill.
6652 (init_ops): Rename to init_aix_thread_ops.
6653 (ops_fetch_register): Rename to aix_thread_fetch_register.
6654 (ops_store_register): Rename to aix_thread_store_register.
6655 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6656 (ops_thread_alive): Rename to aix_thread_thread_alive.
6657 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6658 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6659 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6660 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6661 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6662 (store_regs_lib): Rename to store_regs_user_thread.
6663 (store_regs_kern): Rename to store_regs_kernel_thread.
6664
27bae383 66652002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6666
6667 * aix-thread.c (ops_prepare_to_store): Eliminate.
6668 (init_ops): Don't initialize ops.prepare_to_store.
6669 (store_regs_kern): Pre-fetch register buffers from child,
6670 because some registers may not be in the cache. Copy
6671 regs from register cache only if they are cached.
6672 (store_regs_lib): Copy regs from register cache only
6673 if they are cached.
6674 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6675 fill_gprs64): Ditto.
6676
61c5da0b
KB
66772002-07-22 Kevin Buettner <kevinb@redhat.com>
6678
6679 * aix-thread.c (gdb_assert.h): Include.
6680 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6681 register sizes (from register cache) match size of buffer holding
6682 register data.
6683 (fill_sprs32): Change parameter types to match those in the ptrace()
6684 buffer.
6685 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6686 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6687
66882002-07-22 Michael Snyder <msnyder@redhat.com>
6689
6690 * aix-thread.c (supply_sprs64): Cosmetic change.
6691 (supply_sprs32): Cosmetic change.
6692 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6693 (fill_sprs64): Use regcache_collect instead of read_register.
6694 (store_regs_lib): Use regcache_collect instead of
6695 read_register. Use fill_sprs32 instead of fill_sprs64,
6696 if debugging a 32-bit architecture.
6697 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6698 out of the register cache, instead of passing a pointer into
6699 the register cache directly to ptrace. Use regcache_collect
6700 insteaad of read_register.
6701 (ops_prepare_to_store): Use target_read_registers instead
6702 of read_register_bytes.
6703
36479eb1
AS
67042002-07-20 Aidan Skinner <aidan@velvet.net>
6705
6706 * MAINTAINERS: Add self under write after approval.
6707
80ae6ee2
AS
67082002-07-20 Aidan Skinner <aidan@velvet.net>
6709
6710 * ada-tasks.c: Change k&r style function definitions to prototyped
6711 form.
6712
8a8ab2b9
AC
67132002-07-19 Andrew Cagney <ac131313@redhat.com>
6714
6715 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6716 * x86-64-tdep.c: Include "objfiles.h".
6717 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6718 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6719
fb16b900
ML
67202002-07-17 Michal Ludvig <michal@suse.cz>
6721
6722 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6723 (update_context): Initialise cfa variable.
6724
0fe7bf7b
MS
67252002-07-17 Michael Snyder <msnyder@redhat.com>
6726
6727 * aix-thread.c: Shorten some long lines.
6728 Bring comments into line with code spec.
6729
488f131b
JB
67302002-07-18 Joel Brobecker <brobecker@gnat.com>
6731
6732 * infrun.c: Re-indent using gdb_indent.sh.
6733
46c415d2
JB
67342002-07-18 Joel Brobecker <brobecker@gnat.com>
6735
6736 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6737 Leave the indentation temporarily untouched, to minimize the diffs.
6738
cdecafbe
EZ
67392002-07-18 Elena Zannoni <ezannoni@redhat.com>
6740
6741 * stabsread.c: Make os9k sections of the code obsolete,
6742 for real this time.
6743 * stabsread.h: Make os9k sections of the code obsolete.
6744
7b6aa020
ML
67452002-07-18 Michal Ludvig <mludvig@suse.cz>
6746
09ec9b38
ML
6747 * linux-low.c (regsets_store_inferior_registers): Add free()
6748 at the end of a loop to prevent memory leak.
6749 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6750 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6751 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6752 line a comment.
4894ac5d 6753 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6754
233282cd
JB
67552002-07-17 Jim Blandy <jimb@redhat.com>
6756
6757 * macrocmd.c (info_macro_command): Remove newline from error
6758 message.
6759
7b6aa020 67602002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6761
6762 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6763 (sh_gdbarch_init): Use it for sh-dsp.
6764
f7ef9339
KB
67652002-07-16 Kevin Buettner <kevinb@redhat.com>
6766
6767 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6768 64-bit DWARF2 format.
6769
8dd72958
JB
67702002-07-16 Joel Brobecker <brobecker@gnat.com>
6771
6772 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6773 <sys/proc.h> when not available.
6774
a99a9e1b
AC
67752002-07-16 Andrew Cagney <ac131313@redhat.com>
6776
6777 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6778 * stabsread.c: Make os9k sections of the code obsolete.
6779 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6780 * config/i386/i386os9k.mt: Make file obsolete.
6781 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6782 (COMMON_OBS): Remove os9kread.o
6783 (SFILES): Remove os9kread.c.
6784 (os9kread.o, remote-os9k.o): Make target obsolete.
6785 * remote-os9k.c: Make file obsolete.
6786 * os9kread.c: Make file obsolete.
6787 * Makefile.in
6788
7a3085c1
AC
67892002-07-16 Andrew Cagney <ac131313@redhat.com>
6790
6791 * NEWS: Mention that the FR30 has been made obsolete.
6792 * fr30-tdep.c: Make file obsolete.
6793 * config/fr30/tm-fr30.h: Ditto.
6794 * config/fr30/fr30.mt: Ditto.
6795 * configure.tgt: Make fr30-*-elf obsolete.
6796 * MAINTAINERS: Make fr30-elf obsolete.
6797
28a93f5a
PM
67982002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6799
6800 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6801 found is not inside a section.
6802
be006b8b
KB
68032002-07-15 Kevin Buettner <kevinb@redhat.com>
6804
6805 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6806 strerror().
6807 (pdc_realloc): Use xrealloc() instead of realloc().
6808
14fa3751
KB
68092002-07-15 Kevin Buettner <kevinb@redhat.com>
6810
6811 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6812 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6813 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6814 macros.
6815
42cc437f
KB
68162002-07-15 Kevin Buettner <kevinb@redhat.com>
6817
6818 * aix-thread.c (ptrace_check): Eliminate goto.
6819 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6820 problem.
6821
8e2c28d4
KB
68222002-07-15 Kevin Buettner <kevinb@redhat.com>
6823
6824 * aix-thread.c (gdbcmd.h): Include.
6825 (DEBUG, DBG, DBG2, dbg): Eliminate.
6826 (debug_aix_thread): New static global.
6827 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6828 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6829 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6830 invocations to DBG and DBG2 macros to test against
6831 ``debug_aix_thread'' and call fprintf_unfiltered().
6832 (_initialize_aix_thread): Add new command "set debug aix-thread".
6833
30413464
AC
68342002-07-15 Andrew Cagney <ac131313@redhat.com>
6835
6836 From Gerhard Tonn <TON@de.ibm.com>:
6837 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6838 instead of supply_register.
6839
7c43edc1
AC
68402002-07-15 Andrew Cagney <ac131313@redhat.com>
6841
6842 * dwarf2cfi.c: Include "gdb_assert.h".
6843 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6844 non-NULL.
6845 (update_context): Do not use __func__. Add missing ``break''.
6846 (update_context): Do not use __func__.
6847
9364a0ef
EZ
68482002-07-15 Elena Zannoni <ezannoni@redhat.com>
6849
6850 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6851 and its setting. Set gdbarch instruction printing functions
6852 directly. For non-rs6000 case use new function
6853 gdb_print_insn_powerpc.
6854 (gdb_print_insn_powerpc): New function.
6855
3fbeef0b
AC
68562002-07-13 Andrew Cagney <ac131313@redhat.com>
6857
92eb23c5 6858 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6859 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6860 * configure.tgt: Mark d30v-*-* as obsolete.
6861 * d30v-tdep.c: Mark file as obsolete.
6862 * config/d30v/d30v.mt: Ditto.
6863 * config/d30v/tm-d30v.h: Ditto.
6864
aacb1f0a
AS
68652002-07-13 Aidan Skinner <aidan@velvet.net>
6866
6867 * ada-tasks.c (add_task_entry): replace calls to
6868 malloc() with xmalloc
6869 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6870
6871 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6872 ada_finish_decode_line_1, all_sals_for_line
6873 ada_breakpoint_rewrite): replace calls to free() with xfree()
6874
c11d79f2
KB
68752002-07-12 Kevin Buettner <kevinb@redhat.com>
6876
6877 From Nicholas Duffek (with minor changes by Martin Hunt,
6878 Louis Hamilton, and Kevin Buettner):
6879 * aix-thread.c: New file.
6880
8e19ed76
PS
68812002-07-12 Petr Sorfa <petrs@caldera.com>
6882
6883 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6884 complaint for invalid attribute class or form.
6885 (read_func_scope): DW_AT_frame_base
6886 better handling of DW_AT_block*.
6887 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6888 better handling of DW_AT_block*.
6889 (read_common_block): DW_AT_location
6890 better handling of DW_AT_block*.
6891 (read_partial_die): DW_AT_location better handling
6892 of DW_AT_block*.
6893 (new_symbol): DW_AT_external better handling of
6894 DW_AT_block*. Proper initialization of variable
6895 "addr".
6896 (attr_form_is_block): New function that returns true
6897 if the attribute's form is of DW_FORM_block*.
6898
295401f7
DJ
68992002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6900
6901 * valops.c (find_method_list): Remove comment about
6902 removed STATIC_MEMFUNCP argument.
6903 (value_find_oload_method_list): Likewise.
6904
e42dc924
KB
69052002-07-12 Kevin Buettner <kevinb@redhat.com>
6906
6907 From Nicholas Duffek:
6908 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6909 target_new_objfile_hook.
6910
6904b546
KB
69112002-07-12 Kevin Buettner <kevinb@redhat.com>
6912
6913 From Nicholas Duffek:
6914 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6915 csect.
6916
53fe9346
AC
69172002-07-12 Andrew Cagney <cagney@redhat.com>
6918
6919 * MAINTAINERS: Mention --enable-sim-build-warnings.
6920 (m68hc11-elf): Disable sim build warnings.
6921 (m32r-elf): Mark as broken obsolete candidate.
6922 (x86_64-linux-gnu): Mark as buildable with -Werror.
6923 (arm-elf): Change -w to ``,'' which enables warnings but not
6924 -Werror.
6925
af5f3db6
AC
69262002-07-12 Andrew Cagney <ac131313@redhat.com>
6927
6928 * bcache.h: Update copyright.
6929 (struct bstring, struct bcache): Move definition to "bcache.c".
6930 Replaced by opaque declaration.
6931 (bcache_xfree): Replace free_bcache.
6932 (bcache_xmalloc, bcache_memory_used): Declare.
6933
6934 * bcache.c: Update copyright.
6935 (struct bstring, struct bcache): Moved to here from "bcache.h".
6936 Update comments.
6937 (bcache_xmalloc, bcache_memory_used): New functions.
6938 (bcache_xfree): Replace function free_bcache.
6939
6940 * Makefile.in (objfiles.o): Add $(bcache_h).
6941 (objfiles_h): Remove $(bcache_h).
6942 (symfile.o): Add $(bcache_h).
6943
6944 * symmisc.c: Update copyright.
6945 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6946 (print_objfile_statistics): Use bcache_memory_used.
6947
6948 * symfile.c: Include "bcache.h".
6949 (reread_symbols): Use bcache_xfree.
6950 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6951 (add_psymbol_to_list): Pass psymbol_cache by value.
6952 (add_psymbol_with_dem_name_to_list): Ditto.
6953
6954 * objfiles.h: Update copyright.
6955 (struct bcache): Declare opaque. Do not include "bcache.h".
6956 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6957 bcache'' pointers.
6958 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6959
6960 * objfiles.c: Include "bcache.h". Update copyright.
6961 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6962 macro_cache.
6963 (free_objfile): Use bcache_xfree.
6964
444199e7
GS
69652002-07-11 Grace Sainsbury <graces@redhat.com>
6966
6967 * monitor.c (monitor_fetch_register): Make name a constant.
6968 (monitor_store_register): Same.
6969
261397f8
DJ
69702002-07-11 Daniel Jacobowitz <drow@mvista.com>
6971
6972 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6973 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6974 (finish_block) For non-function blocks, hash the symbol table. For
6975 function blocks, mark the symbol table as unhashed.
6976 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6977 (msymbol_hash_iw): Likewise.
6978 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6979 value.
6980 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6981 (lookup_minimal_symbol): Likewise for both.
6982 * symtab.h (struct block): Add `hashtable' flag. Comment the
6983 hashtable.
6984 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6985 (ALL_BLOCK_SYMBOLS): Update.
6986 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6987 (struct symbol): Add `hash_next' pointer.
6988 * symtab.c (lookup_block_symbol): Search using the hash table when
6989 possible.
6990 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6991 (search_symbols, find_addr_symbol): Likewise.
6992
6993 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6994 (read_dst_symtab): Likewise.
6995 * jv-lang.c (get_java_class_symtab): Likewise.
6996 * mdebugread.c: Include "gdb_assert.h".
6997 (shrink_block): Assert that the block being modified is not hashed.
6998 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6999 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7000 symbols.
7001 (dump_symtab): Recognize hashed blocks.
7002 * printcmd.c (print_frame_args): Assert that function blocks do not
7003 have hashed symbol tables.
7004 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7005 (fill_in_ada_prototype, debug_print_block): Likewise.
7006 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7007
6f0eaa01
CV
70082002-07-11 Corinna Vinschen <vinschen@redhat.com>
7009
7010 * stack.c (print_frame): Use result of frame_address_in_block()
7011 instead of fi->pc when evaluating symbols.
7012 (backtrace_command_1): Ditto.
7013
a208b0cb
AC
70142002-07-11 Andrew Cagney <cagney@redhat.com>
7015
7016 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7017 Make static.
7018
7019 * arm-tdep.c (arm_register_name): Make return type constant.
7020
a6b6b089
AC
70212002-07-10 Andrew Cagney <ac131313@redhat.com>
7022
5ae5f592
AC
7023 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7024 prototype.
7025 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7026 * s390-tdep.c (s390_fp_regnum): Ditto.
7027 (s390_read_fp): Ditto.
7028 (s390_pop_frame): Ditto.
7029 (_initialize_s390_tdep): Ditto.
7030 * remote.c (get_remote_state): Ditto.
7031 * procfs.c (mappingflags): Ditto.
7032 * memattr.c (_initialize_mem): Ditto.
7033 * mcore-tdep.c (mcore_pop_frame): Ditto.
7034 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7035 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7036 * language.c (set_case_str): Ditto.
7037 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7038 * frv-tdep.c (new_variant): Ditto.
7039 (frv_stopped_data_address): Ditto.
7040 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7041 (context_alloc): Ditto.
7042 (frame_state_alloc): Ditto.
7043 (unwind_tmp_obstack_init): Ditto.
7044 (unwind_tmp_obstack_free): Ditto.
7045 (cfi_read_fp): Ditto.
7046 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7047 (cris_pop_frame): Ditto.
7048 * c-lang.c (scanning_macro_expansion): Ditto.
7049 (finished_macro_expansion): Ditto.
7050 (c_preprocess_and_parse): Ditto.
7051 * gdbarch.sh: Ditto.
7052 * gdbarch.h, gdbarch.c: Regenerate.
7053 * config/mn10200/tm-mn10200.h: Adjust indentation.
7054 * target.c: Adjust indentation.
7055 * symtab.h: Adjust indentation.
7056 * stabsread.h: Adjust indentation.
7057 * remote-es.c: Adjust indentation.
7058 * os9kread.c: Adjust indentation.
7059
70602002-07-10 Andrew Cagney <ac131313@redhat.com>
7061
a6b6b089
AC
7062 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7063 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7064
a1789893
GS
70652002-07-10 Grace Sainsbury <graces@redhat.com>
7066
7067 * NEWS: Mention m68k, mcore multi-arching.
7068 * MAINTAINERS: Change status of m68k, mcore to reflect
7069 multi-arching.
7070
02f0d45d
DJ
70712002-07-10 Daniel Jacobowitz <drow@mvista.com>
7072
7073 * valops.c (find_overload_match): Free oload_syms.
7074
f15f768e
JB
70752002-07-09 Joel Brobecker <brobecker@gnat.com>
7076
7077 Define HAVE_SYS_PROC_H if sys/proc.h exists
7078 * configure.in: Add check for sys/proc.h
7079 * config.in: Regenerate.
7080 * configure: Regenerate.
7081
902a7139
GS
70822002-07-09 Grace Sainsbury <graces@redhat.com>
7083
7084 * config/m68k/tm-m68k.h: Remove macros wrapped in
7085 #if !GDB_MULTI_ARCH.
7086
a534e424
AC
70872002-07-08 Andrew Cagney <ac131313@redhat.com>
7088
7089 * config.in, configure: Regenerate.
7090
9b94f7bf
MK
70912002-07-08 Mark Kettenis <kettenis@gnu.org>
7092
7093 * dwarf2cfi.c: Include "gcore.h".
7094 (execute_stack_op): Fix implementation of the
7095 DW_OP_deref and DW_OP_deref_size operators by letting do their
7096 lookup in the target.
7097
1d34db41
MK
70982002-07-07 Mark Kettenis <kettenis@gnu.org>
7099
7100 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7101 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7102 tdep->sc_sp_offset.
7103
79d5b63a
DJ
71042002-07-05 Daniel Jacobowitz <drow@mvista.com>
7105
7106 Fix PR gdb/595, gdb/602
7107 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7108 Don't call value_cast, just read the vtable pointer; update comments
7109 to match.
7110
3bb912e8
GS
71112002-07-05 Grace Sainsbury <graces@redhat.com>
7112
7113 * config/mcore/tm-mcore.h: Remove file.
7114 * config/mcore/mcore.mt: Remove definition of TM_FILE
7115 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7116
ca39387d
MK
71172002-07-05 Mark Kettenis <kettenis@gnu.org>
7118
7119 * i386bsd-tdep.c: Include "gdb_string.h".
7120
efdc1108
GS
71212002-07-04 Grace Sainsbury <graces@redhat.com>
7122
7123 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7124 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7125 mcore-tdep.
7126 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7127 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7128 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7129 (RETVAL_REGNUM): Move macros from tm-mcore.h
7130 (mcore_reg_struct_has_addr): New function.
7131 (mcore_gdbarch_init): Added initializations for the macros removed
7132 from tm-mcore.h.
7133
bb21884d
MK
71342002-07-04 Mark Kettenis <kettenis@gnu.org>
7135
7136 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7137 traditonal string branding within the ELF header.
7138
228c6d41
DJ
71392002-07-04 Daniel Jacobowitz <drow@mvista.com>
7140
7141 * symtab.c (remove_params): New function.
7142 (make_symbol_overload_list): Use it instead of cplus_demangle.
7143 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7144
2404952e
MK
71452002-07-04 Mark Kettenis <kettenis@gnu.org>
7146
e5e4acad
MK
7147 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7148
baadce09
MK
7149 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7150 New variables.
7151 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7152 and tdep->sigtramp_end.
7153 * i386obsd-nat.c: New file.
7154 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7155
2404952e
MK
7156 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7157 Don't call get_current_frame().
7158
9b4f1ba7
PM
71592002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7160
7161 * i386-nat.c (child_post_startup_inferior): New function
7162 calling i386_cleanup_dregs if
7163 I386_USE_GENERIC_WATCHPOINTS is defined.
7164 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7165 conditional to acknowledge that i386-nat.c has its
7166 own child_post_startup_inferior function.
7167
c0d1d883
MK
71682002-07-04 Mark Kettenis <kettenis@gnu.org>
7169
00f8375e
MK
7170 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7171 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7172 instead of MAX_REGISTER_RAW_SIZE.
7173 (i386_extract_return_value, i386_extract_struct_value_address):
7174 Convert to use regcache.
7175 (i386_gdbarch_init): Set max_register_raw_size and
7176 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7177 Set extract_return_value and extract_struct_value_address instead
7178 of their deprecated variants.
7179
c0d1d883
MK
7180 Convert i386 target to generic dummy frames.
7181 * i386-tdep.c: Include "symfile.h".
7182 (i386_frameless_signal_p): Consider a function to be frameless if
7183 the pc points at the first instruction of the function.
7184 (i386_frame_chain): Handle (generic) call dummies.
7185 (i386_frame_saved_pc): Likewise.
7186 (i386_frame_init_saved_regs): Remove code dealing with call
7187 dummies on the stack.
7188 (i386_push_dummy_frame): Removed.
7189 (i386_call_dummy_words): Removed.
7190 (i386_fix_call_dummy): Removed.
7191 (i386_push_return_address): New function.
7192 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7193 parameter, and don't call get_current_frame.
7194 (i386_pop_frame): New function.
7195 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7196 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7197 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7198 call_dummy_length to 0, set call_dummy_words to NULL, set
7199 sizeof_call_dummy_words to 0, set fix_call_dummy to
7200 generic_fix_call_dummy, set pc_in_call_dummy to
7201 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7202 generic_push_dummy_frame, set push_return_address to
7203 i386_push_return_address and set frame_chain_valid to
7204 generic_file_frame_chain_valid.
7205
049ee0e4
AC
72062002-07-03 Andrew Cagney <ac131313@redhat.com>
7207
7208 * gdbarch.sh (struct regcache): Add opaque declaration.
7209 (EXTRACT_RETURN_VALUE): New architecture method.
7210 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7211 * gdbarch.h, gdbarch.c: Regenerate.
7212 * arch-utils.c (legacy_extract_return_value): New function.
7213 * arch-utils.h (legacy_extract_return_value): Declare.
7214 * values.c (value_being_returned): Re-enable code handling
7215 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7216 deprecated_grub_regcache_for_registers call to block handling
7217 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7218 (EXTRACT_RETURN_VALUE): Do not define.
7219
4e0d9804
GS
72202002-07-03 Grace Sainsbury <graces@redhat.com>
7221
7222 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7223 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7224 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7225 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7226 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7227 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7228 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7229 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7230 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7231 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7232 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7233 argument so the function fits the prototype in the architecture
7234 vector.
7235 (mcore_pop_frame): Remove argument so the function fits the
7236 prototype. Use get_current_frame instead of the argument.
7237 (mcore_push_arguments): Change type of struct_return so the
7238 function can be used in the architecture vector.
7239 (mcore_store_struct_return): Add.
7240 (mcore_frame_init_saved_regs): Add.
7241 (mcore_gdbarch_init): Add function calls to replace the macros
7242 removed from tm-mcore.h
7243
36160dc4
AC
72442002-07-03 Andrew Cagney <ac131313@redhat.com>
7245
7246 * infcmd.c (print_return_value): Remove compatibility code calling
7247 deprecated_grub_regcache_for_registers.
7248
7249 * values.c: Include "regcache.h".
7250 (value_being_returned): Update. Use
7251 deprecated_grub_regcache_for_registers to extract the register
7252 buffer address.
7253 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7254 ``struct regcache''.
7255 * Makefile.in (values.o): Add dependency on $(regcache_h).
7256
7257 * inferior.h (run_stack_dummy): Change type of second parameter to
7258 a ``struct regcache''.
7259 * valops.c (hand_function_call): Change type of retbuf to ``struct
7260 regcache''. Allocate using regcache_xmalloc, clean using
7261 make_cleanup_regcache_xfree.
7262 * infcmd.c (run_stack_dummy): Update. Use
7263 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7264
7265 * regcache.c (do_regcache_xfree): New function.
7266 (make_cleanup_regcache_xfree): New function.
7267 * regcache.h (make_cleanup_regcache_xfree): Declare.
7268
e64d9b3d
MH
72692002-07-03 Martin M. Hunt <hunt@redhat.com>
7270
4dd79c29
MH
7271 * event-top.c (command_line_handler): Don't read past
7272 beginning of buffer.
e64d9b3d 7273
4dd79c29
MH
72742002-07-03 Martin M. Hunt <hunt@redhat.com>
7275
e64d9b3d
MH
7276 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7277 struct frame_id.
7278 (varobj_create): Store frame_id for root.
7279 (varobj_gen_name): Use xasprintf.
7280 (varobj_update): Save and restore frame using get_frame_id() and
7281 frame_find_by_id().
7282 (create_child): Use xasprintf.
7283 (new_root_variable): Initialize frame_id.
7284 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7285 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7286 to prevent memory leak.
7287
26e6c56a
AC
72882002-07-03 Andrew Cagney <ac131313@redhat.com>
7289
7290 * valops.c (hand_function_call): Move declaration of retbuf to
7291 start of function, allocate using malloc, add a cleanup but before
7292 the inf_status cleanup, cleanup the buffer. Rename local variable
7293 old_chain to inf_status_cleanup.
7294
f436dd25
MH
72952002-07-03 Martin M. Hunt <hunt@redhat.com>
7296
7297 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7298
7299 * cli/cli-decode.c (cmd_func_p): New function.
7300 (cmd_func): New function.
7301
7302 * command.h: Add cmd_func() and cmd_func_p().
7303
4cfe2084
GS
73042002-07-03 Grace Sainsbury <graces@redhat.com>
7305
7306 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7307 (REGISTER_SIZE): Remove.
7308 (MAX_REGISTER_RAW_SIZE): Remove.
7309 (REGISTER_VIRTUAL_TYPE): Remove.
7310 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7311 (REGISTER_NAME): Remove.
7312 (USE_GENERIC_DUMMY_FRAMES): Remove.
7313 (CALL_DUMMY): Remove.
7314 (CALL_DUMMY_START_OFFSET): Remove.
7315 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7316 (CALL_DUMMY_LOCATION): Remove.
7317 (FIX_CALL_DUMMY): Remove.
7318 (CALL_DUMMY_ADDRESS): Remove.
7319 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7320 (SAVE_DUMMY_FRAME_TOS): Remove.
7321 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7322 (mcore_register_virtual_type): New function.
7323 (mcore_register_byte): New function.
7324 (mcore_register_size): New function.
7325 (mcore_register_name): New function.
7326 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7327 macros removed from tm-mcore.h.
7328 (mcore_dump_tdep): Add.
7329 (_initialize_mcore_tdep): Add gdbarch_register call.
7330
4fd667e9
MK
73312002-07-03 Mark Kettenis <kettenis@gnu.org>
7332
7333 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7334 frameless_look_for_prologue, such that we actually call this
7335 function.
7336
42f99ac2
JB
73372002-07-02 Joel Brobecker <brobecker@gnat.com>
7338
7339 * frame.h (frame_address_in_block): New function.
7340
7341 * blockframe.c (frame_address_in_block): New function extracted
7342 from get_frame_block().
7343 (get_frame_block): Use frame_address_in_block().
7344 (block_innermost_frame): Use frame_address_in_block() to match
7345 the frame pc address against the block boundaries rather than
7346 the frame pc directly. This prevents a failure when a frame pc
7347 is actually a return-address pointing immediately after the end
7348 of the given block.
7349
103a1597 73502002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
7351
7352 * MAINTAINERS: Add self under write after approval.
7353
73542002-07-02 Grace Sainsbury <graces@redhat.com>
7355
103a1597
GS
7356 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7357 used in architecture vector. The default is
7358 m68k_local_breakpoint_from_pc.
7359 (m68k_local_breakpoint_from_pc): Add.
7360 (enum): Add register numbers from tm-m68k.h.
7361 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7362 vector.
7363 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7364 GDB_MULTI_ARCH_PARTIAL.
7365 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7366 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7367 m68k-tdep.c.
7368 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7369 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7370 to enum in m68k-tdep.c
7371
7a5a0534
JB
73722002-07-02 Joel Brobecker <brobecker@gnat.com>
7373
7374 * solib-osf.c (open_map): Compute the list of shared libraries
7375 loaded by the inferior, rather than the list of libraries loaded
7376 by GDB itself. Otherwise, GDB ends up reading the symbols from
7377 the wrong shared libraries...
7378
6f558d74
MK
73792002-07-02 Mark Kettenis <kettenis@gnu.org>
7380
b7d15bf7
MK
7381 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7382 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7383 macros.
7384 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7385 Remove functions.
7386 (FRAMELESS_SIGNAL): Remove function.
7387 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7388 i386_linux_saved_pc_after_call): Removed.
7389 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7390 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7391 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7392
6bff26de
MK
7393 * i386-tdep.c (i386_frameless_signal_p): New function.
7394 (i386_frame_chain): Deal with frameless signals.
7395 (i386_sigtramp_saved_sp): New function.
7396 (i386_frame_saved_pc): Deal with frameless signals.
7397 (i386_saved_pc_after_call): Make sure the correct value is
7398 returned just after entry into a sigtramp.
7399 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7400 i386fbsd4_sc_sp_offset): New variables.
7401 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7402 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7403 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7404 similiar to what we already did for sc_pc_offset.
7405 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7406 tdep->sc_sp_offset.
7407
6f558d74
MK
7408 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7409
145564b7
ML
74102002-07-02 Michal Ludvig <mludvig@suse.cz>
7411
7412 * config/i386/tm-x86-64linux.h: New.
7413 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7414 definitions.
7415 * config/i386/nm-x86-64.h: Rename to ...
7416 * config/i386/nm-x86-64linux.h: ... this one.
7417 * config/i386/x86-64linux.mh: Reflect the above change.
7418
3a1e71e3
MK
74192002-07-01 Mark Kettenis <kettenis@gnu.org>
7420
21d0e8a4
MK
7421 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7422 with sigcontext_addr. Add sc_sp_offset.
7423 (i386bsd_sigtramp_saved_pc): Remove prototype.
7424 (i386bsd_sicontext_addr): Add prototype.
7425 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7426 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7427 (i386_svr4_sigtramp_saved_pc): Removed.
7428 (i386_svr4_sigcontext_addr): New function.
7429 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7430 Initialize tdep->sigcontext_addr instead. Initialize
7431 tdep->sc_pc_offset and tdep->sc_sp_offset.
7432 (i386_gdbarch_init): Likewise.
7433 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7434 any more.
7435 (i386bsd_sigtramp_saved_pc): Remove function.
7436 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7437 Initialize tdep->sigcontext_addr instead. Initialize
7438 tdep->sc_pc_offset.
7439 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7440 of tdep->sigtramp_saved_pc.
7441 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7442 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7443 instead.
7444
3a1e71e3
MK
7445 * i386-tdep.c (i386_frameless_function_invocation,
7446 i386_frame_num_args, i386_frame_init_saved_regs,
7447 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7448 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7449 i386_extract_return_value, i386_store_return_value,
7450 i386_extract_struct_value_address, i386_register_virtual_type,
7451 i386_register_convertible, i386_register_convert_to_virtual,
7452 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7453 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7454 static.
7455
52e9098c
MK
74562002-07-01 Mark Kettenis <kettenis@gnu.org>
7457
77b13a25
MK
7458 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7459
52e9098c
MK
7460 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7461 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7462 this macro. Include "value.h".
7463
1b372fff
AS
74642002-06-30 Aidan Skinner <aidan@velvet.net>
7465
7466 * ada-exp.tab.c: remove as it's a generated file
7467 * ada-lex.c: remove as it's a generated file
7468
9c5045b5
MK
74692002-06-30 Mark Kettenis <kettenis@gnu.org>
7470
4a93c5bb
MK
7471 * config/i386/tm-i386.h (struct frame_info, struct
7472 frame_saved_regs, struct value, struct type): Remove forward
7473 declarations.
7474
322d4fe0
MK
7475 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7476 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7477 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7478 (FILL_FPXREGSET): Define.
7479
fdd8263d
MK
7480 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7481
482e577b
MK
7482 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7483 i[3456]86-*-netbsd* case.
7484 * config/i386/tm-obsd.h: Removed.
7485 * config/i386/obsd.mt: Removed.
7486 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7487 core-aout.o.
7488 (MH_CFLAGS): Add -DYYDEBUG=0.
7489
6916549a
MK
7490 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7491 i386nbsd_sc_pc_offset on OpenBSD too.
7492
9c5045b5
MK
7493 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7494 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7495 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7496 define.
7497 * i386bsd-tdep.c: Include "arch-utils.h".
7498 (i386bsd_aout_in_solib_call_trampoline): New function.
7499 (i386bsd_init_abi): Set in_solib_call_trampoline to
7500 i386bsd_aout_in_solib_call_trampoline.
7501 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7502 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7503
aa84d1bb
AC
75042002-06-28 Andrew Cagney <ac131313@redhat.com>
7505
7506 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7507 (struct obstack, struct bcache): Add opaque declarations.
7508 * Makefile.in (macrotab_h): Update
7509
b4d83933
AC
75102002-06-28 Andrew Cagney <ac131313@redhat.com>
7511
7512 * blockframe.c (generic_find_dummy_frame): Change return type to
7513 ``struct regcache''.
7514 (struct dummy_frame): Replace field ``registers'' with regcache, a
7515 struct regcache object.
7516 (generic_find_dummy_frame): Update.
7517 (generic_push_dummy_frame): Update. Use regcache_xfree,
7518 regcache_xmalloc and regcache_cpy.
7519 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7520 regcache_xfree.
7521 (deprecated_generic_find_dummy_frame): Update.
7522 (generic_read_register_dummy): Update. Use
7523 regcache_read_as_address.
7524 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7525 (generic_get_saved_register): Update. Use regcache_read.
7526
08c0b5bc
AC
75272002-06-28 Andrew Cagney <ac131313@redhat.com>
7528
7529 * Makefile.in (objfiles_h): Add $(bcache_h).
7530 * objfiles.h: Include "bcache.h".
7531
7532 * Makefile.in (symtab_h): Remove $(bcache_h).
7533 * symtab.h: Do not include "bcache.h".
7534
1f89801a
AC
75352002-06-28 Andrew Cagney <ac131313@redhat.com>
7536
7537 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7538 generic_func_frame_chain_valid.
7539
b9644b58
DB
75402002-06-28 David O'Brien <obrien@FreeBSD.org>
7541
7542 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7543 * config/i386/tm-fbsd.h: Likewise.
7544
dd486634
AC
75452002-06-28 Andrew Cagney <ac131313@redhat.com>
7546
7547 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7548 generic_unwind_get_saved_register.
7549
0b434a00
AC
75502002-06-27 Andrew Cagney <ac131313@redhat.com>
7551
7552 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7553 * regcache.c (supply_register): Add missing argument to
7554 register_buffer call.
7555
f30e5a77
AC
75562002-06-27 Andrew Cagney <ac131313@redhat.com>
7557
7558 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7559 Solaris /bin/grep does not not like it. From Peter Schauer.
7560
9f064c95
TT
75612002-06-26 Tom Tromey <tromey@redhat.com>
7562
7563 * command.h (add_setshow_cmd): Declare.
7564 (add_setshow_cmd_full): Declare.
7565 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7566 returns void. Use add_setshow_cmd_full.
7567 (add_setshow_cmd_full): New function.
7568 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7569 (add_setshow_boolean_cmd): Likewise.
7570
099c7589
JT
75712002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7572
7573 * config/vax/tm-vax.h: Protect from multiple inclusion.
7574 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7575 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7576 * config/vax/tm-vaxbsd.h: ...here. New file.
7577 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7578
1d049c5e
JT
75792002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7580
7581 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7582 (BELIEVE_PCC_PROMOTION): Remove.
7583 (AP_REGNUM): Move to...
7584 * config/vax/nm-vax.h: ...here.
7585 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7586 (vax_breakpoint_from_pc): New function.
7587 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7588 and gdbarch_believe_pcc_promotion.
7589
4791e091
JT
75902002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7591
7592 * Makefile.in (vax_tdep_h): Define.
7593 (vax-tdep.o): Use $(vax_tdep_h).
7594 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7595 (vax_dump_tdep): New function.
7596 (_initialize_vax_tdep): Register vax_dump_tdep.
7597 * vax-tdep.h: Include osabi.h.
7598 (struct gdbarch_tdep): New.
7599
da130f98
AC
76002002-06-26 Andrew Cagney <cagney@redhat.com>
7601
7602 * frame.h (deprecated_generic_find_dummy_frame): Rename
7603 generic_find_dummy_frame.
7604 * blockframe.c (generic_find_dummy_frame): Make static.
7605 (deprecated_generic_find_dummy_frame): New function.
7606 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7607 generic_find_dummy_frame with deprecated_find_dummy_frame.
7608 (sh64_nofp_frame_init_saved_regs): Ditto.
7609 (sh_fp_frame_init_saved_regs): Ditto.
7610 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7611 (s390_frame_chain): Ditto.
7612 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7613
6300c360
GS
76142002-06-26 Grace Sainsbury <graces@redhat.com>
7615
7616 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7617 gdbarch vector are at the top.
7618 (NUM_REGS): Remove.
7619 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7620 (FRAME_ARGS_ADDRESS): Remove.
7621 (FRAME_LOCALS_ADDRESS): Remove.
7622 (FRAME_NUM_ARGS): Remove.
7623 (FRAME_ARGS_SKIP): Remove.
7624 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7625 (m68k_gdbarch_init): Add gdbarch initializations for macros
7626 undefined in tm-m68k.h
7627
1c617db8
GS
76282002-06-26 Grace Sainsbury <graces@redhat.com>
7629
7630 * monitor.h: Add the function regname to monitor_ops
7631 structure. This way NUM_REGS does not have to be a constant.
7632 * monitor.c (monitor_fetch_register): Added support for regname
7633 function. The function is called if the array regnames is NULL.
7634 (monitor_store_register): Same.
da130f98
AC
7635 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7636 regnames array.
1c617db8
GS
7637 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7638 cpu32bug_cmds.regname to point to new function.
7639 * abug-rom.c (abug_regname): Same as above.
7640 (init_abug_cmds): Same.
7641 * dbug-rom.c (dbug_regname): Same as above.
7642 (init_dbug_cmds): Same.
7643 * remote-est.c (est_regname): Same.
7644 (init_est_cmds): Same.
7645 * rom68k-rom.c (rom68k_regname): Same.
7646 (init_rom68k_cmds): Same.
7647
ea9365bb
TT
76482002-06-25 Tom Tromey <tromey@redhat.com>
7649
7650 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7651
72cec141
AC
76522002-06-25 Andrew Cagney <cagney@redhat.com>
7653
7654 * infrun.c (stop_registers): Change variable's type to ``struct
7655 regcache'''.
7656 (xmalloc_inferior_status): Delete function.
7657 (free_inferior_status): Delete function.
7658 (normal_stop): Use regcache_cpy.
7659 (struct inferior_status): Change type of fields ``stop_registers''
7660 and ``registers'' to ``struct regcache''.
7661 (write_inferior_status_register): Use regcache_write.
7662 (save_inferior_status): Instead of calling
7663 xmalloc_inferior_status, allocate the inf_status buffer directly.
7664 Use regcache_dup_no_passthrough and regcache_dup to save the
7665 buffers.
7666 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7667 Replace the stop_registers regcache instead of overriding it. Use
7668 regcache_xfree. Instead of calling free_inferior_status, xfree
7669 the buffer directly.
7670 (discard_inferior_status): Use regcache_xfree. Instead of calling
7671 free_inferior_status, xfree the buffer directly.
7672 (build_infrun): Use regcache_xmalloc.
7673 (_initialize_infrun): Delete redundant call to build_infrun.
7674
7675 * Makefile.in (infcmd.o): Add $(regcache_h).
7676
7677 * infcmd.c: Include "regcache.h".
7678 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7679 obtain the address of `stop_registers' register buffer.
7680 (print_return_value): Ditto.
7681
7682 * inferior.h (struct regcache): Add opaque declaration.
7683 (stop_registers): Change variable's declared type to ``struct
7684 regcache''.
7685
defc6f8c
TT
76862002-06-24 Tom Tromey <tromey@redhat.com>
7687
c0e624e7
TT
7688 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7689 * target.c (initialize_targets): Fixed typo in
7690 trust-readonly-sections `show' documentation.
7691
defc6f8c
TT
7692 * main.c: Marked all strings with _().
7693
2b236d82
DH
76942002-06-24 Don Howard <dhoward@redhat.com>
7695
7696 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7697 that means max CORE_ADDR+1.
7698 (lookup_mem_region): Ditto.
7699 (mem_info_command): Ditto.
7700
942dc0e9
GS
77012002-06-24 Grace Sainsbury <graces@redhat.com>
7702
7703 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7704 (REGISTER_BYTES_OK): Remove.
7705 (REGISTER_BYTES): Remove.
7706 (STORE_STRUCT_RETURN): Remove.
7707 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7708 (STORE_RETURN_VALUE): Remove.
7709 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7710 (FRAME_CHAIN): Remove.
7711 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7712 (FRAME_SAVED_PC): Remove.
7713 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7714 (m68k_store_struct_return): Add.
7715 (m68k_deprecated_extract_return_value): Add.
7716 (m68k_deprecated_extract_struct_value_address): Add.
7717 (m68k_store_return_value): Add.
7718 (m68k_frame_chain): Add.
7719 (m68k_frameless_function_invocation): Add.
7720 (m68k_frame_saved_pc): Add.
7721 (m68k_gdbarch_init): added set_gdbarch calls for new
7722 functions and deleted macros.
7723
03c30d4d
TT
77242002-06-23 Tom Tromey <tromey@redhat.com>
7725
7726 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7727 (ALLDEPFILES): Likewise.
7728 (udiheaders): Removed.
7729 (udip2soc.o): Likewise.
7730 (udi2go32.o): Likewise.
7731 (udr.o): Likewise.
7732 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7733
37e71372
AC
77342002-06-22 Andrew Cagney <ac131313@redhat.com>
7735
06a6ac57
AC
7736 * infrun.c (_initialize_infrun): Delete unnecessary call to
7737 build_infrun.
7738
37e71372
AC
7739 * regcache.h: Update comments describing the regcache_cpy family
7740 of functions.
7741 (regcache_save, regcache_restore): Delete declaration.
7742 (regcache_save_no_passthrough): Delete declaration.
7743 (regcache_restore_no_passthrough): Delete declaration.
7744 * regcache.c (regcache_save): Delete function.
7745 (regcache_save_no_passthrough): Delete function.
7746 (regcache_restore): Delete function.
7747 (regcache_restore_no_passthrough): Delete function.
7748
78f6d055
AC
77492002-06-21 Andrew Cagney <ac131313@redhat.com>
7750
7751 * config/m68k/tm-m68k.h: Fix typo.
7752 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7753 (m68k_frame_init_saved_regs): Declare.
7754
78b119cb
JB
77552002-06-21 Jim Blandy <jimb@redhat.com>
7756
7757 Remove some vestiges of Harris 88k support.
7758 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7759 register numbering quirk.
7760 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7761 odd symbols occurring in Harris 88k ELF targets.
7762
0fbb3da7
TT
77632002-06-21 Tom Tromey <tromey@redhat.com>
7764
7765 * gdb_locale.h: New file.
7766 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7767 (defs_h): Added gdb_locale.h.
7768 * configure, config.in: Rebuilt.
7769 * configure.in (PACKAGE): Define.
7770 * defs.h: Include gdb_locale.h.
7771 * main.c (captured_main): Call setlocale, bindtextdomain,
7772 textdomain.
7773
456f8b9d
DB
77742002-06-21 Dave Brolley <brolley@redhat.com>
7775
7776 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7777 * config/frv/frv.mt: New file.
7778 * config/frv/tm-frv.h: New file.
7779 * configure.tgt: Support frv-*-*.
7780 * Makefile.in (frv-tdep.o): New target.
7781 * frv-tdep.c: New file.
7782 * NEWS: Mention frv.
7783
cdd463f9
DB
77842002-06-21 Dave Brolley <brolley@redhat.com>
7785
7786 * MAINTAINERS: Add self to "Write After Approval" list.
7787
5d3ed2e3
GS
77882002-06-21 Grace Sainsbury <graces@redhat.com>
7789
7790 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7791 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7792 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7793 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7794 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7795
7796 * m68k-tdep.c: Include arch-utils.h
7797 (m68k_register_raw_size): Add.
7798 (m68k_register_virtual_size): Add.
7799 (m68k_register_virtual_type): Add.
7800 (m68k_register_name): Add.
7801 (m68k_stack_align): Add.
7802 (m68k_register_byte): Add.
7803 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7804 tm-m68k.h.
7805
7f8e7424
GS
78062002-06-21 Grace Sainsbury <graces@redhat.com>
7807
a2c6a6d5 7808 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7809 m68k_find_saved_regs.
7810 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7811 references to it with frame->saved_regs.
7f8e7424
GS
7812 (m68k_gdbarch_init): Added function calls to initialize the
7813 gdbarch structure.
a2c6a6d5
GS
7814 (m68k_fix_call_dummy): Add.
7815 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7816 (CALL_DUMMY): Remove.
7817 (CALL_DUMMY_LENGTH): Remove.
7818 (CALL_DUMMY_START_OFFSET): Remove.
7819 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7820 (FIX_CALL_DUMMY): Remove.
7821 (PUSH_DUMMY_FRAME): Remove.
7822 (POP_FRAME): Remove.
7f8e7424 7823
f461f5cf
PM
78242002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7825
7826 * parse.c (parse_fprintf): New function used to avoid calls to
7827 fprintf in bison parser generated debug code.
7828 * parser-defs.h: Declaration of new parse_fprintf function.
7829 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7830 Set YYDEBUG to 1 by default.
7831 Set YYFPRINTF as parse_fprintf.
7832
7f0c12ed
ML
78332002-06-21 Michal Ludvig <mludvig@suse.cz>
7834
7835 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7836 encoding anymore.
7837 (pointer_encoding, enum ptr_encoding): New.
7838 (execute_cfa_program): Take care about pointer encoding.
7839 (dwarf2_build_frame_info): Only call parse_frame_info for
7840 .debug_frame and .eh_frame.
7841 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7842 fixed augmentation handling, added relative addressing,
7843 ignore duplicate FDEs. Added comments.
19d833a2 7844 * dwarf2cfi.c: Reindented.
7f0c12ed 7845
87c4a039
EZ
78462002-06-20 Elena Zannoni <ezannoni@redhat.com>
7847
7848 * event-top.c (command_handler): Don't use space_at_cmd_start
7849 unless there is sbrk() on the host. Assign time and space data
7850 to union fields of the appropriate length.
7851
1cf877ad
ML
78522002-06-20 Michal Ludvig <mludvig@suse.cz>
7853
7854 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7855 x86_64_register_name. Return type changed to 'const char *'.
7856 (x86_64_register_name2nr): Rename to x86_64_register_number.
7857 (x86_64_gdbarch_init): Update to reflect the change.
7858 * x86-64-tdep.h: Ditto.
7859 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7860 (supply_fpregset): Ditto.
7861
3fadccb3
AC
78622002-06-19 Andrew Cagney <cagney@redhat.com>
7863
7864 * regcache.h: Update copyright.
7865 (struct regcache, struct gdbarch): Add opaque declarations.
7866 (current_regcache): Declare global variable.
7867 (regcache_read, regcache_write): Add gdbarch parameter.
7868 (regcache_save, regcache_save_no_passthrough)
7869 (regcache_restore, regcache_restore_no_passthrough)
7870 (regcache_dup, regcache_dup_no_passthrough)
7871 (regcache_cpy, regcache_cpy_no_passthrough)
7872 (deprecated_grub_regcache_for_registers)
7873 (deprecated_grub_regcache_for_register_valid)
7874 (regcache_valid_p): Add function declarations.
7875
7876 * regcache.c: Update copyright.
7877 (regcache_descr_handle): New global variable.
7878 (struct regcache_descr): Define.
7879 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7880 (regcache_descr, xfree_regcache_descr): New functions.
7881 (struct regcache): Define.
7882 (regcache_xmalloc, regcache_xfree): New functions.
7883 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7884 (regcache_dup, regcache_dup_no_passthrough): New functions.
7885 (regcache_valid_p, regcache_read_as_address): New functions.
7886 (deprecated_grub_regcache_for_registers): New function.
7887 (deprecated_grub_regcache_for_register_valid): New function.
7888 (current_regcache): New global variable.
7889 (register_buffer): Add regcache parameter. Update calls.
7890 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7891 (read_register_gen, write_register_gen): Update register_buffer
7892 call. Test for legacy_p instead of gdbarch_register_read_p or
7893 gdbarch_register_write_p.
7894 (regcache_collect): Update register_buffer call.
7895 (build_regcache): Rewrite. Use deprecated grub functions.
7896 (regcache_save, regcache_save_no_passthrough): New functions.
7897 (regcache_restore, regcache_restore_no_passthrough): New
7898 functions.
7899 (_initialize_regcache): Create the regcache_data_handle. Swap
7900 current_regcache global variable.
7901
7902 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7903 parameter to regcache_read and regcache_write calls.
7904 (sh4_register_read): Ditto.
7905 (sh64_pseudo_register_read): Ditto.
7906 (sh64_register_read): Ditto.
7907 (sh_pseudo_register_write): Ditto.
7908 (sh4_register_write): Ditto.
7909 (sh64_pseudo_register_write): Ditto.
7910 (sh64_register_write): Ditto.
7911
7912 * defs.h (XCALLOC): Define.
7913
152d9db6
GS
79142002-06-19 Grace Sainsbury <graces@redhat.com>
7915
7916 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7917 * m68k-tdep.c (m68k_gdbarch_init): Added.
7918 (m68k_dump_tdep): Added.
7919
170911c7
DJ
79202002-06-19 Daniel Jacobowitz <drow@mvista.com>
7921
7922 * ada-lang.c (fill_in_ada_prototype): Update comment.
7923
2e4ebe70
DJ
79242002-06-19 Daniel Jacobowitz <drow@mvista.com>
7925
7926 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7927 MIPS_ABI_LAST.
7928 (mips_abi_string, mips_abi_strings): New.
7929 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7930 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7931 tdep->mips_abi_string. Honor mips_abi_string. Default to
7932 O32 if no ABI is found.
7933 (mips_dump_tdep): Use mips_abi_strings.
7934 (mips_abi_update): New function.
7935 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7936 ``set mips abi'' and ``show mips abi''. Check the size of
7937 mips_abi_strings.
7938
16775908
AC
79392002-06-19 Andrew Cagney <cagney@redhat.com>
7940
7941 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7942 constant.
7943
5051bfa4 79442002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7945
5051bfa4
JB
7946 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7947 current frame using only the first stack size adjustment. All
7948 subsequent size adjustments are not considered to be part of
7949 the "static" part of the current frame.
7950 Compute the address of the saved registers relative to the
7951 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7952 in use in this frame.
7953
56468235
DH
79542002-06-18 Don Howard <dhoward@redhat.com>
7955
7956 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7957 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7958 suggesting this solution.
7959
0b624158
AC
79602002-06-18 Andrew Cagney <ac131313@redhat.com>
7961
7962 * config/romp/xm-rtbsd.h: Delete file.
7963 * config/romp/rtbsd.mh: Delete file.
7964
221ea385
KS
79652002-06-18 Keith Seitz <keiths@redhat.com>
7966
7967 * breakpoint.c (condition_command): Post breakpoint_modify
7968 when a condition is added to an existing breakpoint.
7969 (commands_command): Likewise for commands.
7970 (set_ignore_count): Likewise for ignore counts.
7971 If no tty, do not simply return, still need to send event
7972 notification.
7973 (ignore_command): Only print a newline if the command came
7974 from a tty.
7975 Don't call breakpoints_changed, since this is now properly
7976 handled by set_ignore_count.
7977
5402eed1
AC
79782002-06-18 Andrew Cagney <cagney@redhat.com>
7979
7980 * MAINTAINERS: Note that cris-elf target can be compiled with
7981 -Werror.
7982 * cris-tdep.c (cris_register_name): Make return type constant.
7983 (cris_breakpoint_from_pc): Ditto.
7984
cc22880b
ML
79852002-06-18 Michal Ludvig <mludvig@suse.cz>
7986
7987 * frame.h (struct frame_info): Change type of context to
7988 'struct context'.
7989
fa88f677
AC
79902002-06-17 Andrew Cagney <cagney@redhat.com>
7991
7992 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7993 pointer.
7994 * gdbarch.h, gdbarch.c: Regenerate.
7995 * config/mips/tm-mips.h (mips_register_name): Update.
7996 * i386-tdep.h (i386_register_name): Update.
7997 * mips-tdep.c (mips_register_name): Update
7998 * alpha-tdep.c (alpha_register_name): Update.
7999 * arch-utils.c (legacy_register_name): Update.
8000 * arch-utils.h (legacy_register_name): Update.
8001 * avr-tdep.c (avr_register_name): Update.
8002 * ia64-tdep.c (ia64_register_name): Update.
8003 * i386-tdep.c (i386_register_name): Update.
8004 * sparc-tdep.c (sparc32_register_name): Update.
8005 (sparc64_register_name): Update.
8006 (sparclite_register_name): Update.
8007 (sparclet_register_name): Update.
8008 * sh-tdep.c (sh_generic_register_name): Update.
8009 (sh_sh_register_name): Update.
8010 (sh_sh3_register_name): Update.
8011 (sh_sh3e_register_name): Update.
8012 (sh_sh_dsp_register_name): Update.
8013 (sh_sh3_dsp_register_name): Update.
8014 (sh_sh4_register_name): Update.
8015 (sh_sh64_register_name): Update.
8016 * s390-tdep.c (s390_register_name): Update.
8017 * rs6000-tdep.c (rs6000_register_name): Update.
8018 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8019 (ns32k_register_name_32382): Update.
8020 * d10v-tdep.c (d10v_ts2_register_name): Update.
8021 (d10v_ts3_register_name): Update.
8022 * xstormy16-tdep.c (xstormy16_register_name): Update.
8023 * vax-tdep.c (vax_register_name): Update.
8024 * v850-tdep.c (v850_register_name): Update.
8025 * m68hc11-tdep.c (m68hc11_register_name): Update.
8026 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8027 (am33_register_name): Update.
8028
ea1e7ef6
GS
80292002-06-17 Grace Sainsbury <graces@redhat.com>
8030
8031 * m68k-tdep.c: Reindented.
8032
9b02dd1b
AC
80332002-06-17 Andrew Cagney <ac131313@redhat.com>
8034
8035 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8036 list of predefined types.
8037
8758dec1
MK
80382002-06-16 Mark Kettenis <kettenis@gnu.org>
8039
b6197528
MK
8040 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8041 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8042 REGISTER_CONVERT_TO_RAW): Remove defines.
8043 (i386_register_virtual_type, i386_register_convertible,
8044 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8045 Remove prototypes.
8046 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8047 macros mentioned above.
8048
82b47e62
MK
8049 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8050 (i386lynx_saved_pc_after_call): Remove prototype.
8051 * i386ly-tdep.c: Include "i386-tdep.h".
8052 (i386lynx_saved_pc_after_call): Make static. Use
8053 read_memory_nobpt instead of read_memory. Use
8054 read_memory_unsigned_integer instead of read_memory_integer.
8055 (i386lynx_init_abi): New function.
8056 (i386lynx_coff_osabi_sniffer): New function.
8057 (_initialize_i386bsd_tdep): New function.
8058
8758dec1
MK
8059 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8060 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8061 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8062 (i386_fix_call_dummy): Remove prototype.
8063 * i386-tdep.c (i386_call_dummy_words): New variable.
8064 (i386_gdbarch_init): Adjust for removal of the
8065 macros mentioned above.
8066
e9e68a56
AC
80672002-06-15 Andrew Cagney <ac131313@redhat.com>
8068
8069 * command.h (add_setshow_auto_boolean_cmd): Replace
8070 add_set_auto_boolean_cmd.
8071 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8072 add_set_auto_boolean_cmd.
8073 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8074 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8075 mask-address'' command.
8076 (show_mask_address): Add cmd parameter.
8077 * remote.c (add_packet_config_cmd): Update. Change type of
8078 set_func and show_func to cmd_sfunc_ftype.
8079 (_initialize_remote): Update `set remote Z-packet'
8080 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8081 (show_remote_protocol_e_packet_cmd): Ditto.
8082 (show_remote_protocol_E_packet_cmd): Ditto.
8083 (show_remote_protocol_P_packet_cmd): Ditto.
8084 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8085 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8086 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8087 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8088 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8089 (show_remote_protocol_Z_packet_cmd): Ditto.
8090 (show_remote_protocol_binary_download_cmd): Ditto.
8091 (show_remote_cmd): Pass NULL to all of above.
8092
fc08ec52
MK
80932002-06-15 Mark Kettenis <kettenis@gnu.org>
8094
8095 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8096 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8097 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8098 POP_FRAME): Remove defines.
8099 (i386_push_arguments, i386_store_struct_return,
8100 i386_extract_return_value, i386_store_return_value,
8101 i386_extract_struct_value_address, i386_push_dummy_frame,
8102 i386_pop_frame): Renove prototypes.
8103 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8104 macros mentioned above.
8105
e707bbc2
AC
81062002-06-15 Andrew Cagney <ac131313@redhat.com>
8107
8108 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8109 add_set_boolean_cmd.
8110 (add_setshow_cmd): New function.
8111 * command.h (add_setshow_boolean_cmd): Replace
8112 add_set_boolean_cmd.
8113 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8114 and ``set rdiromatzero''.
8115 * maint.c (_initialize_maint_cmds): Update commented out code.
8116 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8117 * target.c (initialize_targets): Update `set
8118 trust-readonly-sections'.
8119 * remote.c (_initialize_remote): Update `set remotebreak'.
8120
42fdc8df
MK
81212002-06-15 Mark Kettenis <kettenis@gnu.org>
8122
93924b6b
MK
8123 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8124 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8125 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8126 fit into multi-arch framework.
8127 (i386_breakpoint_from_pc): New function.
8128 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8129 above.
8130
42fdc8df
MK
8131 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8132 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8133 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8134 (i386_frameless_function_invocation, i386_frame_num_args,
8135 i386_frame_init_saved_regs): Remove prototypes.
8136 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8137 macros mentioned above.
8138
9773a94b
AC
81392002-06-15 Andrew Cagney <ac131313@redhat.com>
8140
8141 * cli/cli-decode.c (set_cmd_cfunc): Update.
8142 (set_cmd_sfunc): Update.
8143 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8144 (set_cmd_sfunc, set_cmd_cfunc): Update.
8145 * cli/cli-decode.h: Update.
8146
6e157172
MK
81472002-06-15 Mark Kettenis <kettenis@gnu.org>
8148
8149 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8150 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8151
7f19b9a2
AC
81522002-06-15 Andrew Cagney <ac131313@redhat.com>
8153
8154 * defs.h (auto_boolean): Declare enum.
8155 * command.h (cmd_auto_boolean): Delete enum.
8156 * mips-tdep.c (mask_address_var): Update.
8157 (mips_mask_address_p): Update.
8158 (show_mask_address): Update.
8159 * remote.c (struct packet_config): Update.
8160 (update_packet_config): Update.
8161 (show_packet_config_cmd): Update.
8162 (packet_ok): Update.
8163 (add_packet_config_cmd): Update.
8164 (_initialize_remote):
8165 * command.h: Update.
8166 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8167 (do_setshow_command): Update.
8168 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8169 * cli/cli-decode.h: Update.
8170
1cf88de5
MK
81712002-06-15 Mark Kettenis <kettenis@gnu.org>
8172
22ba8cf2
MK
8173 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8174 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8175 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8176 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8177 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8178 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8179
762c5349
MK
8180 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8181 list of DJGPP COFF targets.
8182
091198bb
MK
8183 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8184 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8185 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8186 (FP0_REGNUM): Remove define.
8187 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8188 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8189 (i386_register_virtual_size): Remove protoype.
8190 * i386-tdep.c (i386_register_virtual_size): Removed.
8191 (i386_extract_return_value, i386_store_return_value): Use
8192 FP0_REGNUM instead of NUM_FREGS to determine whether the
8193 floating-point registers are available.
8194 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8195 Adjust for removal of macros mentioned above.
8196
81972002-06-15 Mark Kettenis <kettenis@gnu.org>
8198
fcc9bf01
MK
8199 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8200 comments.
8201 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8202 Remove prototypes.
8203 (supply_gregset, fill_gregset): Remove use of register keyword and
8204 remove declaration for regmap. Use I386_NUM_GREGS instead of
8205 NUM_REGS and NUM_FREGS.
8206 (FPREGSET_FSAVE_OFFSET): Remove.
8207 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8208 NUM_FREGS to determine whether the floating-point registers are
8209 available.
8210
65e78234
MK
8211 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8212 gnu_store_registers): Replace usage of NUM_GREGS with
8213 I386_NUM_GREGS.
8214
98df6387
MK
8215 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8216 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8217 usage of NUM_GREGS with I386_NUM_GREGS.
8218
099a9414
MK
8219 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8220
57976e88
MK
8221 * i386bsd-nat.c: Include "i386-tdep.h".
8222 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8223 I386_NUM_GREGS.
8224
b335f4a6
MK
8225 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8226 and associated comment. They no longer make any sense, since we
8227 don't use this file anymore on Linux.
8228
1cf88de5
MK
8229 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8230 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8231 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8232 elements in these arrays.
8233 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8234 MAX_NUM_REGS.
8235
daa66587
MK
82362002-06-15 Mark Kettenis <kettenis@gnu.org>
8237
8238 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8239 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8240
26e9b323
AC
82412002-06-14 Andrew Cagney <cagney@redhat.com>
8242
8243 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8244 EXTRACT_RETURN_VALUE.
8245 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8246 EXTRACT_STRUCT_VALUE_ADDRESS.
8247 * gdbarch.h, gdbarch.c: Regenerate.
8248
8249 * values.c (value_being_returned): Handle
8250 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8251 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8252
8253 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8254 * arm-tdep.c (arm_gdbarch_init): Update.
8255 * avr-tdep.c (avr_gdbarch_init): Update.
8256 * cris-tdep.c (cris_gdbarch_init): Update.
8257 * d10v-tdep.c (d10v_gdbarch_init): Update.
8258 * ia64-tdep.c (ia64_gdbarch_init): Update.
8259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8260 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8261 * s390-tdep.c (s390_gdbarch_init): Update.
8262 * sh-tdep.c (sh_gdbarch_init): Update.
8263 * s390-tdep.c (s390_gdbarch_init): Update.
8264 * sparc-tdep.c (sparc_gdbarch_init): Update.
8265 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8266 * v850-tdep.c (v850_gdbarch_init): Update.
8267 * vax-tdep.c (vax_gdbarch_init): Update.
8268 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8270
8271 * config/arc/tm-arc.h: Update.
8272 * config/d30v/tm-d30v.h: Update.
8273 * config/fr30/tm-fr30.h: Update.
8274 * config/h8300/tm-h8300.h: Update.
8275 * config/h8500/tm-h8500.h: Update.
8276 * config/i386/tm-i386.h: Update.
8277 * config/i386/tm-ptx.h: Update.
8278 * config/i386/tm-symmetry.h: Update.
8279 * config/i960/tm-i960.h: Update.
8280 * config/m32r/tm-m32r.h: Update.
8281 * config/m68k/tm-delta68.h: Update.
8282 * config/m68k/tm-linux.h: Update.
8283 * config/m68k/tm-m68k.h: Update.
8284 * config/m88k/tm-m88k.h: Update.
8285 * config/mcore/tm-mcore.h: Update.
8286 * config/mips/tm-mips.h: Update.
8287 * config/mn10200/tm-mn10200.h: Update.
8288 * config/pa/tm-hppa.h: Update.
8289 * config/pa/tm-hppa64.h: Update.
8290 * config/sparc/tm-sp64.h: Update.
8291 * config/sparc/tm-sparc.h: Update.
8292 * config/sparc/tm-sparclet.h: Update.
8293 * config/z8k/tm-z8k.h: Update.
8294
5179e78f
AC
82952002-06-14 Andrew Cagney <cagney@redhat.com>
8296
8297 * Makefile.in (i386_linux_tdep_h): Define.
8298 (i386_tdep_h, i387_tdep_h): Define.
8299 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8300 $(i386_tdep_h) and $(i387_tdep_h).
8301 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8302
8201327c
MK
83032002-06-14 Mark Kettenis <kettenis@gnu.org>
8304
edf393ac
MK
8305 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8306 Already covered by the default.
8307
896fb97d
MK
8308 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8309 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8310 (i386_gdbarch_init): Initialize long_double_format and long_double
8311 bit.
8312
8201327c
MK
8313 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8314 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8315 Move these to ...
8316 * config/i386/i386sol2.mh: ... here.
8317 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8318 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8319 (SIGCONTEXT_PC_OFFSET): Remove define.
8320 (IN_SIGTRAMP): Remove define.
8321 * i386-sol2-tdep.c: New file.
8322
8323 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8324 * config/i386/tm-i386nw.h: Removed.
8325
8326 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8327 USE_STRUCT_CONVENTION): Remove defines.
8328 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8329 (get_longjmp_target): Remove prototype.
8330 (IN_SIGTRAMP): Remove define.
8331 (i386bsd_in_sigtramp): Remove prototype.
8332 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8333 function. Update comment accordingly
8334 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8335 (FRAME_SAVED_PC): Remove define.
8336 (i386bsd_frame_saved_pc): Remove prototype.
8337 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8338 GET_LONGJMP_TARGET): Remove defines.
8339 (get_longjmp_target): Remove prototype.
8340 (IN_SIGTRAMP): Remove define.
8341 (i386bsd_in_sigtramp): Remove prototype.
8342 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8343 function. Update comment accordingly
8344 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8345 (FRAME_SAVED_PC): Remove define.
8346 (i386bsd_frame_saved_pc): Remove prototype.
8347 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8348 Remove prototype.
8349 (USE_STRUCT_CONVENTION): Remove prototype.
8350 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8351 declaration.
8352 (_initialize_i386bsd_nat): Revise logic to determine some
8353 constants at compile time when compiling a native GDB. Warn if
8354 things don't match up with what we expect.
8355 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8356 Remove variables.
8357 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8358 to use date stored in `struct gdbarch_tdep'.
8359 (i386bsd_sigcontext_offset): Remove varaible.
8360 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8361 stored in `struct gdbarch_tdep'.
8362 (i386bsd_frame_saved_pc): Make static.
8363 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8364 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8365 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8366 i386fbsd4_sc_pc_offset): New variables.
8367 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8368 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8369 functions.
8370 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8371 functions.
8372 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8373 Modify the value of i386fbsd_sigtramp_start and
8374 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8375 i386fbsd_sigtramp_end.
8376 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8377 function.
8378
8379 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8380 define to i386-linux-tdep.h.
8381 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8382 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8383 defines.
8384 (i386_linux_register_name, i386_linux_register_byte,
8385 i386_linux_register_raw_size): Remove prototypes.
8386 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8387 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8388 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8389 TARGET_WRITE_PC): Remove defines.
8390 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8391 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8392 i386_linux_write_pc): Remove prototypes.
8393 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8394 (get_longjmp_target): Remove prototype.
8395 * i386-linux-tdep.h: New file.
8396 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8397 * i386-linux-tdep.c: Include "i386-tdep.h" and
8398 "i386-linux-tdep.h".
8399 (i386_linux_register_name, i386_linux_register_byte,
8400 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8401 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8402 Make static.
8403 (i386_linux_init_abi): New function.
8404 (_initialize_i386_linux_tdep): New function.
8405
8406 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8407 (i386_saved_pc_after_call): Remove prototype.
8408 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8409 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8410 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8411 (i386_register_name, i386_stab_reg_to_regnum,
8412 i386_dwarf_reg_to_regnum): Remove prototypes.
8413 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8414 SIZEOF_SSE_REGS): Remove defines.
8415 (REGISTER_BYTES): Remove define.
8416 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8417 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8418 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8419 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8420 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8421 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8422 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8423 (get_longjmp_target): Remove prototype.
8424 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8425 (sigtramp_saved_pc): Remove define.
8426 (i386v4_sigtramp_saved_pc): Remove prototype.
8427 * config/i386/tm-go32.h (FRAME_CHAIN,
8428 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8429 (i386go32_frame_saved_pc): Remove prototype.
8430 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8431 (get_longjmp_target): Remove prototype.
8432 * i386-tdep.h: Include "osabi.h".
8433 (enum i386_abi): Removed.
8434 (enum struct_return): New enum.
8435 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8436 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8437 sc_pc_offset members.
8438 (i386_gdbarch_register_os_abi): Remove prototype.
8439 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8440 I386_SSE_NUM_REGS): New defines.
8441 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8442 I386_SSE_SIZEOF_REGS): New defines.
8443 (i386_register_name, i386_register_byte, i386_register_raw_size):
8444 New prototypes.
8445 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8446 (i386bsd_sigtramp_saved_pc): New prototype.
8447 * i386-tdep.c: Don't include "elf-bfd.h".
8448 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8449 i386_frame_chain, i386_saved_pc_after_call): Make static.
8450 (i386_frame_saved_pc): Rewrite to call architecture dependent
8451 function to deal with signal handlers. Make static.
8452 (i386go32_frame_saved_pc): Removed.
8453 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8454 Removed.
8455 (i386_get_longjmp_target): New function.
8456 (default_struct_convention, pcc_struct_convention,
8457 reg_struct_convention, valid_conventions, struct_convention): New
8458 variables.
8459 (i386_use_struct_convention): New function.
8460 (i386v4_sigtramp_saved_pc): Renamed to
8461 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8462 (i386_pc_in_sigtramp): New function.
8463 (i386_abi_names): Removed.
8464 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8465 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8466 Removed.
8467 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8468 i386_gdbarch_register_os_abi): Removed.
8469 (struct i386_abi_handler): Removed.
8470 (i386_abi_handler_list): Removed.
8471 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8472 functions.
8473 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8474 i386_nw_init_abi): New functions.
8475 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8476 Use set_gdbarch_xxx() calls instead of relying on macros for a
8477 number of calls.
8478 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8479 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8480 Register the various architecture variants defined in this file.
8481
ad2f7632
DJ
84822002-06-14 Daniel Jacobowitz <drow@mvista.com>
8483
8484 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8485 (struct main_type): Remove arg_types member. Update comments for
8486 struct field.
8487 (TYPE_ARG_TYPES): Remove.
8488 (TYPE_FN_FIELD_ARGS): Update.
8489 (smash_to_method_type): Update prototype.
8490
8491 * c-typeprint.c (cp_type_print_method_args): Take method type
8492 instead of argument list. Use new argument layout. Simplify.
8493 (c_type_print_args): Use new argument layout. Simplify.
8494 (c_type_print_base): Update call to cp_type_print_method_args.
8495 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8496 argument; use die->type instead. Update call to
8497 smash_to_method_type.
8498 (read_structure_scope): Update call to dwarf2_add_member_fn.
8499 * gdbtypes.c (allocate_stub_method): Update comment.
8500 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8501 Use new argument layout.
8502 (check_stub_method): Use new argument layout. Don't count
8503 void as an argument.
8504 (print_arg_types): Update comments. Use new argument layout.
8505 (recursive_dump_type): Don't print arg_types member.
8506 * hpread.c (hpread_read_struct_type): Use new argument layout.
8507 (fixup_class_method_type): Likewise.
8508 (hpread_type_lookup): Likewise.
8509 * stabsread.c (read_type): Update calls to read_args and
8510 smash_to_method_type.
8511 (read_args): Use new argument layout. Simplify.
8512 * valops.c (typecmp): Use new argument layout. Update parameters
8513 and comments. Simplify.
8514 (hand_function_call): Use new argument layout.
8515 (search_struct_method): Update call to typecmp.
8516 (find_overload_match): Use new argument layout.
8517
6da02953
DJ
85182002-06-13 Daniel Jacobowitz <drow@mvista.com>
8519
8520 * NEWS: Mention multithreaded debug support for gdbserver.
8521
519b2366
DJ
85222002-06-13 Daniel Jacobowitz <drow@mvista.com>
8523
8524 * MAINTAINERS: Mention NEWS.
8525
6c0d6680
DJ
85262002-06-13 Daniel Jacobowitz <drow@mvista.com>
8527
8528 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8529 (struct mips_objfile_private, compare_pdr_entries): New.
8530 (non_heuristic_proc_desc): Read the ".pdr" section if it
8531 is present.
8532
6529d2dd
AC
85332002-06-12 Andrew Cagney <ac131313@redhat.com>
8534
8535 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8536 (arm_debug): New static variable.
8537 (_initialize_arm_tdep): Add ``set debug arm'' command.
8538
26216b98
AC
85392002-06-12 Andrew Cagney <ac131313@redhat.com>
8540
8541 * Makefile.in (sim_arm_h): Define.
8542 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8543 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8544 (arm_register_sim_regno): New function, map an internal REGNUM
8545 onto a simulator register number.
8546 (arm_gdbarch_init): Set register_sim_regno.
8547
814b3ba0
AH
85482002-06-09 Aldy Hernandez <aldyh@redhat.com>
8549
8550 * MAINTAINERS: Add self.
8551
475b0867
JB
85522002-06-11 Jim Blandy <jimb@redhat.com>
8553
919d772c
JB
8554 * source.c (source_info): Mention whether the symtab has
8555 information about preprocessor macros.
8556
475b0867
JB
8557 Call the command `info macro', not `show macro'.
8558 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8559 Fix error message.
8560 (_initialize_macrocmd): Register `info_macro_command' in
8561 `infolist', not `showlist'.
8562
9e364162
DJ
85632002-06-11 Daniel Jacobowitz <drow@mvista.com>
8564
8565 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8566 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8567 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8568 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8569 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8570 unconditionally.
8571 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8572 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8573 (_initialize_mips_tdep): Remove dead code.
8574 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8575 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8576 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8577 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8578 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8579 MIPS_LAST_FP_ARG_REGNUM): Remove.
8580
23aa4c72
ML
85812002-06-11 Michal Ludvig <mludvig@suse.cz>
8582
8583 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8584 (unwind_tmp_obstack_free, parse_frame_info)
8585 (update_context, cfi_read_fp, cfi_write_fp)
8586 (cfi_frame_chain, cfi_init_extra_frame_info)
8587 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8588 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8589
70eb15a4
CV
85902002-06-11 Corinna Vinschen <vinschen@redhat.com>
8591
8592 * v850-tdep.c (v850_type_is_scalar): New function.
8593 (v850_use_struct_convention): Match current gcc implementation
8594 as close as possible.
8595 (v850_push_arguments): Fix stack_offset handling. Don't write
8596 struct_addr into register. This is done by v850_store_struct_return.
8597 (v850_extract_return_value): Care for structs.
8598 (v850_store_return_value): Ditto.
8599 (v850_store_struct_return): Actually write address.
8600
482a4d06
ML
86012002-06-11 Michal Ludvig <mludvig@suse.cz>
8602
8603 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8604 without debug information too.
8605
d855c300
AC
86062002-06-10 Andrew Cagney <ac131313@redhat.com>
8607
8608 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8609 Make multi-arch pure.
8610 * gdbarch.h, gdbarch.c: Re-generate.
8611 * arm-tdep.c (arm_print_float_info): Update.
8612 * arch-utils.h (default_print_float_info): Update.
8613 * arch-utils.c (default_print_float_info): Update.
8614 * infcmd.c (float_info): Update call.
8615
dd12a101
AC
86162002-06-10 Andrew Cagney <ac131313@redhat.com>
8617
8618 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8619 the front of the initialize list.
8620
101dcfbe
AC
86212002-06-10 Andrew Cagney <ac131313@redhat.com>
8622
8623 * infrun.c (struct inferior_status): Replace fields
8624 selected_frame_address and selected_level with field
8625 selected_frame_id.
8626 (save_inferior_status): Update. Use get_frame_id.
8627 (struct restore_selected_frame_args): Delete.
8628 (restore_selected_frame): Update. Use frame_find_by_id.
8629 (restore_inferior_status): Update.
8630
8631 * breakpoint.h (struct breakpoint): Change type of
8632 watchpoint_frame to frame_id.
8633 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8634 call to get_current_frame.
8635 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8636 get_current_frame.
8637 (watchpoint_check): Use frame_find_by_id.
8638
8639 * frame.h (record_selected_frame): Delete declaration.
8640 * stack.c (record_selected_frame): Delete function.
8641
8642 * frame.h (struct frame_id): Define.
8643 (get_frame_id): Declare.
8644 (frame_find_by_id): Declare.
8645 * frame.c (frame_find_by_id): New function.
8646 (get_frame_id): New function.
8647
304270b6
AV
86482002-06-10 Andrey Volkov <avolkov@transas.com>
8649
8650 * ser-e7kpc.c: Fix duplicated define and call of
8651 _initialize_ser_e7000pc
8652
2f2cf184
DJ
86532002-06-09 Daniel Jacobowitz <drow@mvista.com>
8654
8655 * signals/signals.c (target_signal_from_host): Fix #ifdef
8656 SIGRTMIN case.
8657 (do_target_signal_to_host): Likewise.
8658
caaa3122
DJ
86592002-06-09 Daniel Jacobowitz <drow@mvista.com>
8660
8661 * mips-tdep.c (mips_find_abi_section): New function.
8662 (mips_gdbarch_init): Call it.
8663
6ac5df3a
MK
86642002-06-09 Mark Kettenis <kettenis@gnu.org>
8665
8666 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8667 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8668 after Andrew's 2002-06-08 gdbarch change.
8669
82ea117a
MK
86702002-06-09 Mark Kettenis <kettenis@gnu.org>
8671
8672 * i386-linux-nat.c (suppy_gregset): Don't supply
8673 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8674 register cache.
8675 (fill_gregset): Don't fetch it under the same circumstances.
8676
3c25f8c7
AC
86772002-06-09 Andrew Cagney <cagney@redhat.com>
8678
8679 * Makefile.in (callback_h): Define.
8680 (remote_sim_h): Update path to remote-sim.h.
8681 (remote-rdp.o): Add $(callback_h).
8682 (remote-sim.o): Use $(callback_h).
8683 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8684 * remote-rdp.c: Include "gdb/callback.h".
8685
1029b7fa
MK
86862002-06-09 Mark Kettenis <kettenis@gnu.org>
8687
8688 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8689 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8690
616675d3
AC
86912002-06-08 Andrew Cagney <ac131313@redhat.com>
8692
a3efda28
AC
8693 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8694 * rdi-share/serpardr.c: Ditto.
8695 * rdi-share/unixcomm.c: Ditto.
8696 * rdi-share/serdrv.c: Ditto.
8697 * rdi-share/hostchan.h: Ditto.
8698 * rdi-share/hostchan.c: Ditto.
8699 * rdi-share/host.h: Ditto.
8700 * rdi-share/devsw.c: Ditto.
8701
c5f10366
AC
8702 * objfiles.h: Change type of obj_private to void pointer.
8703 * pa64solib.c: Update copyright. Don't include "assert.h", use
8704 strcmp instead of STREQ, use LONGEST, do not use PTR
8705 * somsolib.c: Ditto.
8706
616675d3
AC
8707 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8708 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8709 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8710
e4b415d9
AC
87112002-06-08 Andrew Cagney <ac131313@redhat.com>
8712
8713 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8714 (default_get_saved_register): Delete function.
8715 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8716 generic_unwind_get_saved_register.
8717 * gdbarch.h, gdbarch.c: Re-generate.
8718
ca0d0b52
AC
87192002-06-08 Andrew Cagney <ac131313@redhat.com>
8720
8721 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8722 generic_func_frame_chain_valid.
8723 * gdbarch.h, gdbarch.c: Re-generate.
8724 * blockframe.c (generic_func_frame_chain_valid): Only check
8725 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8726 passing FP to PC_IN_CALL_DUMMY.
8727 Fix PR gdb/360.
8728
76860b5f
AC
87292002-06-08 Andrew Cagney <ac131313@redhat.com>
8730
8731 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8732 (register_gdbarch_data): Initialize init_p.
8733 (gdbarch_data): Initialize data pointer using the init function.
8734 (init_gdbarch_data): Delete function.
8735 (gdbarch_update_p): Update.
8736 (initialize_non_multiarch): Update.
8737 (struct gdbarch): Add field initialized_p.
8738 * gdbarch.h, gdbarch.c: Re-generate.
8739
8dda9770
ML
87402002-06-07 Michal Ludvig <mludvig@suse.cz>
8741
8742 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8743 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8744 better do the things actually here.
8745 * x86-64-tdep.c (x86_64_register_name2nr): New.
8746 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8747 (x86_64_gdbarch_init): Respect the above change.
8748 * x86-64-tdep.h (x86_64_register_name2nr)
8749 (x86_64_register_nr2name): Add prototypes.
8750 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8751
3d79a47c
MS
87522002-06-06 Michael Snyder <msnyder@redhat.com>
8753
7bd91a28
MS
8754 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8755 Delete extra braces and re-indent.
8756 (d10v_store_return_value): Char return values
3d79a47c
MS
8757 must be shifted over by one byte in R0.
8758 (d10v_extract_return_value): Delete extra braces, re-indent.
8759
095a4c96
EZ
87602002-06-06 Elena Zannoni <ezannoni@redhat.com>
8761
8762 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8763 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8764 (d10v_integer_to_address): Rewrite.
8765 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8766 the d10v specific functions which take care of converting to the
8767 correct space.
8768
e8a77ca4
EZ
87692002-06-06 Elena Zannoni <ezannoni@redhat.com>
8770
8771 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8772 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8773
4f2e4a4f
AC
87742002-06-02 Andrew Cagney <ac131313@redhat.com>
8775
8776 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8777 includes.
8778 * config/tm-linux.h: Ditto.
8779 * config/alpha/tm-alphalinux.h: Ditto.
8780 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8781 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8782 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8783 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8784 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8785 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8786 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8787 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8788 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8789 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8790 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8791 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8792 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8793 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8794 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8795 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8796 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8797 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8798 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8799 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8800 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8801 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8802 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8803 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8804 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8805 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8806 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8807 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8808 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8809 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8810 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8811 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8812 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8813 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8814 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8815 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8816 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8817
ae2ab2ce
AS
88182002-05-04 Aidan Skinner <aidan@velvet.net>
8819
8820 * ada-exp.tab.c: New file
8821 * ada-exp.y: New file
8822 * ada-lang.c: New file
8823 * ada-lang.h: New file
8824 * ada-lex.c: New file
8825 * ada-lex.l: New file
8826 * ada-tasks.c: New file
8827 * ada-typeprint.c: New file
8828 * ada-valprint.c: New file
8829
0ddd0135
JT
88302002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8831
8832 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8833 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8834
750fbacc
JT
88352002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8838 insetead of ppc-linux-tdep.o.
8839 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8840 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8841
df94e18a
AC
88422002-06-02 Andrew Cagney <ac131313@redhat.com>
8843
8844 2002-05-07 Christian Groessler <chris@groessler.org>
8845 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8846 bit register contents for little endian hosts.
8847
1a38ab75
AC
88482002-06-01 Andrew Cagney <ac131313@redhat.com>
8849
8850 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8851 any maintainer.
8852
8b1632ac
AC
88532002-06-01 Andrew Cagney <ac131313@redhat.com>
8854
8855 * gdbarch.h: Regenerate.
8856
627054c8
AC
88572002-06-01 Andrew Cagney <ac131313@redhat.com>
8858
8859 * MAINTAINERS: Add everyone to write-after-approval list.
8860
4f460812
AC
88612002-06-01 Andrew Cagney <ac131313@redhat.com>
8862
8863 * stack.c (frame_info): Use frame_register_unwind instead of
8864 saved_regs. Mention when the SP is on the stack or in a register.
8865
8866 * frame.h (frame_register_unwind_ftype): Define. Document.
8867 (struct frame_info): Add field register_unwind and
8868 register_unwind_cache.
8869 (frame_register_unwind): Declare.
8870 (generic_unwind_get_saved_register): Declare.
8871
8872 * frame.c (frame_register_unwind): New function.
8873 (generic_unwind_get_saved_register): New function.
8874
8875 * blockframe.c (generic_call_dummy_register_unwind): New function.
8876 (frame_saved_regs_register_unwind): New function.
8877 (set_unwind_by_pc): New function.
8878 (create_new_frame): New function.
8879 (get_prev_frame): New function.
8880
de888f76
AC
88812002-05-30 Andrew Cagney <ac131313@redhat.com>
8882
8883 * a29k-share/: Delete directory.
8884 * remote-vx29k.c: Delete file.
8885
2f2c3626
JT
88862002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8887
8888 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8889 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8890
9ce5c36a
JT
88912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8892
8893 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8894 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8895 (sparc64nbsd-nat.o)
8896 (sparcnbsd-nat.o)
8897 (sparcnbsd-tdep.o): New dependency lists.
8898 * NEWS: Note new UltraSPARC NetBSD native configuration.
8899 * configure.host (sparc64-*-netbsd*): New host.
8900 * configure.tgt (sparc-*-netbsdelf*)
8901 (sparc-*-netbsd*): Set gdb_target to nbsd.
8902 (sparc64-*-netbsd*): New target.
8903 * sparc64nbsd-nat.c: New file.
8904 * sparcnbsd-nat.c: New file.
8905 * sparcnbsd-tdep.c: New file.
8906 * sparcnbsd-tdep.h: New file.
8907 * config/sparc/nbsd.mt: New file.
8908 * config/sparc/nbsd64.mh: New file.
8909 * config/sparc/nbsd64.mt: New file.
8910 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8911 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8912 (HOST_IPC): Remove.
8913 * config/sparc/nbsdaout.mt: Remove.
8914 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8915 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8916 (HOST_IPC): Remove.
8917 * config/sparc/nbsdelf.mt: Remove.
8918 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8919 sparc-nat.c compatiblity defines.
8920 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8921 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8922 * config/sparc/tm-nbsd64.h: New file.
8923 * config/sparc/tm-nbsdaout.h: Remove.
8924 * config/sparc/xm-nbsd.h: Remove.
8925
ef3cf062
JT
89262002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8927
8928 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8929 * sparc-tdep.c: Include osabi.h.
8930 (gdbarch_tdep): Add osabi member.
8931 (_initialize_sparc_tdep): Use gdbarch_register.
8932 (sparc_gdbarch_init): Use generic OS ABI framework.
8933 (sparc_dump_tdep): New function.
8934
ee8ff470
KB
89352002-05-30 Kevin Buettner <kevinb@redhat.com>
8936
8937 * corefile.c (do_captured_read_memory_integer): Return non-zero
8938 result.
8939 (safe_read_memory_integer): Copy result of memory read when
8940 status is non-zero. Also, add comments.
8941
7b112f9c
JT
89422002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8943
8944 * Makefile.in (ppc_tdep_h): Define.
8945 (ppc-linux-nat.o)
8946 (ppc-linux-tdep.o)
8947 (rs6000-tdep.o): Use $(ppc_tdep_h).
8948 (ppc-sysv-tdep.o)
8949 (ppcnbsd-nat.o)
8950 (ppcnbsd-tdep.o): New dependency lists.
8951 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8952 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8953 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8954 (ppc_sysv_abi_broken_use_struct_convention)
8955 (ppc_sysv_abi_use_struct_convention)
8956 (ppc_sysv_abi_push_arguments): Move to...
8957 * ppc-sysv-tdep.c: ...here.
8958 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8959 * rs6000-tdep.c (process_note_abi_tag_sections)
8960 (get_elfosabi): Remove.
8961 (rs6000_gdbarch_init): Use generic OS ABI framework.
8962 (rs6000_dump_tdep): New function.
8963 (_initialize_rs6000_tdep): Use gdbarch_register.
8964 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8965 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8966 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8967 of ppc-linux-tdep.o.
8968 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8969 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8970 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8971 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8972 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8973 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8974
480dd42a
JB
89752002-05-29 Jim Blandy <jimb@redhat.com>
8976
8977 * macroscope.c (default_macro_scope): Put `void' in empty argument
8978 list.
8979
4182591f
AC
89802002-05-29 Andrew Cagney <ac131313@redhat.com>
8981
8982 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8983 * arch-utils.c: Include "sim-regno.h".
8984 * gdbarch.sh: Don't include "sim-regno.h".
8985 * gdbarch.h, gdbarch.c: Regenerate.
8986 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8987 here.
8988 * arch-utils.h (legacy_register_sim_regno): To here.
8989 * remote-sim.c (legacy_register_sim_regno): Move function from
8990 here.
8991 * arch-utils.c (legacy_register_sim_regno): To here.
8992
8238d0bf
AC
89932002-05-28 Andrew Cagney <ac131313@redhat.com>
8994
8995 * sim-regno.h: New file.
8996 * Makefile.in (sim_regno_h): Define.
8997 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8998 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8999 (legacy_register_sim_regno): New function.
9000 (one2one_register_sim_regno): New function.
9001 (gdbsim_fetch_register): Rewrite.
9002 (gdbsim_store_register): Only store a register when
9003 REGISTER_SIM_REGNO is valid.
9004 * d10v-tdep.c: Include "sim-regno.h".
9005 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9006 (d10v_ts3_register_sim_regno): Ditto.
9007 * gdbarch.sh: Include "sim-regno.h".
9008 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9009 * gdbarch.h, gdbarch.c: Regenerate.
9010 * arch-utils.h (default_register_sim_regno): Delete declaration.
9011 * arch-utils.c (default_register_sim_regno): Delete function.
9012
485721b1
JT
90132002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9014
9015 * ppcnbsd-nat.c: Rewrite.
9016 * ppcnbsd-tdep.c: New file.
9017 * ppcnbsd-tdep.h: New file.
9018 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9019 solib.o, and solib-svr4.o.
9020 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9021 nbsd-tdep.o, and corelow.o.
9022
697f244d
AC
90232002-05-28 Andrew Cagney <ac131313@redhat.com>
9024
9025 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9026 `tr' and `sed'. Mention that `broken' targets are not expected to
9027 build.
9028
f08caad1 90292002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
9030
9031 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9032 Let PC point right after the prologue before looking up symbols.
9033
3139facc
MH
90342002-05-27 Martin M. Hunt <hunt@redhat.com>
9035
9036 * i386-tdep.c (i386_register_virtual_type): Return
9037 builtin_type_vec128i for SSE registers.
9038
9039 * gdbtypes.h (builtin_type_vec128i): Declare.
9040
9041 * gdbtypes.c (build_builtin_type_vec128i): New function.
9042 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9043 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9044 (build_gdbtypes): Initialize new builtin vector types.
9045 (_initialize_gdbtypes): Register new vector types with gdbarch.
9046
6e3ba3b8
JT
90472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9048
9049 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9050 since it has been multi-arch'd.
9051 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9052 Move Alpha and VAX multi-arch news entries to same section
9053 as other multi-arch news.
9054
93d5585d
JT
90552002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9056
9057 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9058 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9059 static. Rename some register numbers to put them in ns32k-tdep
9060 private namespace.
9061 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9062 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9063 functions.
9064 (_initialize_ns32k_tdep): Use gdbarch_register.
9065 * ns32k-tdep.h: New file.
9066 * ns32knbsd-tdep.c: New file.
9067 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9068 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9069 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9070 REGISTER_BYTES, REGISTER_BYTE): Remove.
9071 * config/ns32k/tm-ns32k.h: New file.
9072 * config/ns32k/tm-umax.h: Remove.
9073
efb2c70e
JT
90742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9075
9076 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9077 ns32k_store_struct_return, ns32k_extract_return_value,
9078 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9079 functions.
9080 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9081 ns32k_saved_pc_after_call.
9082 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9083 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9084 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9085 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9086 ns32k_extract_struct_value_address.
9087
7bcc927b
JT
90882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9089
9090 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9091 ns32k_fix_call_dummy): New.
9092 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9093 ns32k_call_dummy_words.
9094 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9095 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9096 CALL_DUMMY_NARGS): Remove.
9097 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9098
78f9d765
JT
90992002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9100
9101 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9102 ns32k_frame_saved_pc, ns32k_frame_args_address,
9103 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9104 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9105 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9106 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9107 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9108 (BREAKPOINT): Remove..
9109 (FRAME_CHAIN): Define as ns32k_frame_chain.
9110 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9111 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9112 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9113 (FRAME_FIND_SAVED_REGS): Remove.
9114 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9115 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9116 (POP_FRAME): Define as ns32k_pop_frame.
9117
f2c762e0
JT
91182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9119
9120 * ns32k-tdep.c (ns32k_register_byte_32082,
9121 ns32k_register_byte_32382, ns32k_register_raw_size,
9122 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9123 functions.
9124 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9125 ns32k_register_byte_32382.
9126 * config/ns32k/tm-umax.h: Update copyright years.
9127 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9128 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9129 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9130 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9131 (ns32k_get_enter_addr): Fix prototype.
9132
af137673
JT
91332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9134
9135 * ns32k-tdep.c: Update copyright years.
9136 (ns32k_register_name_32082): New function.
9137 (ns32k_register_name_32382): Ditto.
9138 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9139 (REGISTER_NAME): Define as ns32k_register_name_32382.
9140 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9141 (REGISTER_NAME): Define as ns32k_register_name_32082.
9142
a8bc7b56
JB
91432002-05-24 Jim Blandy <jimb@redhat.com>
9144
9145 * dwarf2read.c (free_line_header): Use xfree, not free.
9146
83a45910
JT
91472002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9148
9149 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9150 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9151
0db71247
AC
91522002-05-23 Andrew Cagney <ac131313@redhat.com>
9153
9154 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9155
b9e5e4dd
AC
91562002-05-23 Andrew Cagney <ac131313@redhat.com>
9157
9158 From Ross Alexander at NEC Europe:
9159 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9160
de530e84
MS
91612002-05-23 Michael Snyder <msnyder@redhat.com>
9162
9163 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9164 for input, rather than parse_and_eval_address.
9165
b91b96f4
AC
91662002-05-23 Andrew Cagney <ac131313@redhat.com>
9167
9168 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9169 * Makefile.in (sim_d10v_h): Update definition.
9170
8b279e7a
AC
91712002-05-24 Andrew Cagney <cagney@redhat.com>
9172
9173 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9174 change `2002-05-22 Michael Snyder' below.
9175 (d10v_push_arguments): Ditto.
9176 (d10v_extract_return_value): Ditto.
9177
0a3d0425
JB
91782002-05-23 Jim Blandy <jimb@redhat.com>
9179
9180 * macrotab.c (check_for_redefinition): Don't complain if the new
9181 definition is the same as the previous one. Take more arguments
9182 to allow the comparison.
9183 (macro_define_object, macro_define_function): Pass more arguments
9184 to check_for_redefinition.
9185
78eac43e
MS
91862002-05-22 Michael Snyder <msnyder@redhat.com>
9187
9188 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9189 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9190 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9191 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9192 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9193 Add a temp variable to save a call (and a memory read).
9194 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9195 if possible (so that PC_IN_CALL_DUMMY will work).
9196
9bc1edb8
CV
91972002-05-22 Corinna Vinschen <vinschen@redhat.com>
9198
9199 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9200
005ef3d2
ML
92012002-05-22 Michal Ludvig <mludvig@suse.cz>
9202
9203 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9204 fde->cie_ptr.
9205 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9206 (dwarf2_build_frame_info): Add offset to fde->initial_location
9207 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
9208 (execute_stack_op): Change type of 'result' from ULONGEST to
9209 CORE_ADDR.
005ef3d2 9210
fcf4f891
JT
92112002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9212
9213 * config/alpha/tm-nbsd.h: Include solib.h.
9214
cfef91e4
JT
92152002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9216
9217 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9218 assumptions about the host's byte order.
9219
9964235a
JT
92202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9221
9222 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9223 to dependency list.
9224 * alphanbsd-tdep.c: Include solib-svr4.h.
9225 * shnbsd-tdep.c: Ditto.
9226
9eeef8ef
JT
92272002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9228
9229 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9230 nbsd-tdep.h to dependency list.
9231 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9232 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9233 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9234 nbsdaout.mh and nbsdelf.mh consistently.
9235 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9236 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9237 nbsdaout.mt and nbsdelf.mh consistently.
9238 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9239 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9240 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9241 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9242 a.out shared library stuff from here...
9243 * config/nm-nbsdaout.h: ...to here.
9244 * config/tm-nbsd.h: Remove.
9245 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9246 * config/arm/nbsd.mh: Remove.
9247 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9248 nbsd-tdep.o.
9249 * config/arm/nbsdaout.mh: New file.
9250 * config/arm/nbsdelf.mh: New file.
9251 * config/arm/nm-nbsdaout.h: New file.
9252 * config/i386/nbsd.mh: Remove.
9253 * config/i386/nbsd.mt: Remove.
9254 * config/i386/nbsdaout.mh: New file.
9255 * config/i386/nbsdaout.mt: New file.
9256 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9257 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9258 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9259 i386_register_u_addr): Remove.
9260 * config/i386/nm-nbsdaout.h: New file.
9261 * config/i386/nm-nbsdelf.h: Remove.
9262 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9263 (USE_STRUCT_CONVENTION): Remove.
9264 * config/i386/tm-nbsdaout.h: New file.
9265 * config/i386/tm-nbsdelf.h: Remove.
9266 * config/m68k/nbsd.mh: Remove.
9267 * config/m68k/nbsd.mt: Remove.
9268 * config/m68k/nbsdaout.mh: New file.
9269 * config/m68k/nbsdaout.mt: New file.
9270 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9271 * config/m68k/nm-nbsdaout.h: New file.
9272 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9273 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9274 * config/ns32k/nbsd.mh: Remove.
9275 * config/ns32k/nbsd.mt: Remove.
9276 * config/ns32k/nbsdaout.mh: New file.
9277 * config/ns32k/nbsdaout.mt: New file.
9278 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9279 * config/ns32k/nm-nbsdaout.h: New file.
9280 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9281 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9282 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9283 (SVR4_SHARED_LIBS): Remove.
9284 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9285 * config/sparc/nbsd.mh: Remove.
9286 * config/sparc/nbsd.mt: Remove.
9287 * config/sparc/nbsdaout.mh: New file.
9288 * config/sparc/nbsdaout.mt: New file.
9289 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9290 * config/sparc/nbsdelf.mt: New file.
9291 * config/sparc/nm-nbsdaout.h: New file.
9292 * config/sparc/nm-nbsdelf.h: Remove.
9293 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9294 * config/sparc/tm-nbsdaout.h: New file.
9295
257ce470
JT
92962002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9297
9298 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9299 mipsnbsd-tdep.c
9300 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9301
76a6d5fe
JT
93022002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9303
9304 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9305 shnbsd-nat.c.
9306 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9307
45888261
JT
93082002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9309
9310 * NEWS: Note new MIPS NetBSD native configuration.
9311 * configure.host (mips*-*-netbsd*): New host.
9312 * configure.tgt (mips*-*-netbsd*): New target.
9313 * mipsnbsd-nat.c: New file.
9314 * mipsnbsd-tdep.c: New file.
9315 * mipsnbsd-tdep.h: New file.
9316 * config/mips/nbsd.mh: New file.
9317 * config/mips/nbsd.mt: New file.
9318 * config/mips/nm-nbsd.h: New file.
9319 * config/mips/tm-nbsd.h: New file.
9320
70f80edf
JT
93212002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9322
9323 * Makefile.in (SFILES): Add osabi.c.
9324 (COMMON_OBS): Add osabi.o.
9325 (osabi.o): New dependency list.
9326 * osabi.c: New file.
9327 * osabi.h: New file.
9328 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9329
9330 * Makefile.in (alpha_tdep_h): Define and use instead of
9331 alpha-tdep.h.
9332 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9333 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9334 Remove.
9335 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9336 * alpha-tdep.h: Include osabi.h.
9337 (alpha_abi): Remove.
9338 (gdbarch_tdep): Use generic OS ABI framework.
9339 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9340 gdbarch_register_osabi.
9341 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9342 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9343 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9344
9345 * Makefile.in (sh_tdep_h): Add osabi.h.
9346 * sh-tdep.h (sh_osabi): Remove.
9347 (gdbarch_tdep): Use generic OS ABI framework.
9348 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9349 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9350 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9351 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9352
9353 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9354 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9355 gdbarch_register_osabi.
9356 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9357 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9358 (get_elfosabi): Rename to...
9359 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9360 ABI framework support routines.
9361 (arm_gdbarch_init): Use generic OS ABI framework.
9362 (arm_dump_tdep): Likewise.
9363 (_initialize_arm_tdep): Likewise.
9364 * arm-tdep.h: Include osabi.h.
9365 (arm_abi): Remove.
9366 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9367 osabi member.
9368 (arm_gdbarch_register_os_abi): Remove prototype.
9369 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9370 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9371
9372 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9373 * mips-tdep.c: Include osabi.h.
9374 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9375 OS ABI framework.
9376
d194345b
KH
93772002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9378
9379 * h8300-tdep.c: Fix formatting.
9380
70c6b0d1
EZ
93812002-05-20 Elena Zannoni <ezannoni@redhat.com>
9382
9383 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9384 printing vector registers.
9385
165b8e33
AC
93862002-05-19 Andrew Cagney <ac131313@redhat.com>
9387
9388 From Fernando Nasser:
9389 * remote.c (remote_async_open_1): Re-throw the exception when the
9390 connection fails.
9391 (remote_cisco_open): Ditto.
9392 (remote_open_1): Ditto.
9393
36918e70
AC
93942002-05-19 Andrew Cagney <ac131313@redhat.com>
9395
9396 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9397 (remote_start_remote): Add uiout parameter. Pass through to
9398 remote_start_remote_dummy.
9399 (remote_open_1): Use catch_exception instead of catch_errors.
9400 (remote_async_open_1): Ditto.
9401 (remote_cisco_open): Ditto.
9402
ae44c0c4
AC
94032002-05-19 Andrew Cagney <ac131313@redhat.com>
9404
9405 * remote.c (remote_start_remote): Replace PTR with void pointer.
9406 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9407 static.
9408
8efe637d
AC
94092002-05-18 Andrew Cagney <ac131313@redhat.com>
9410
9411 * gdb_indent.sh: Allow the script to be run in the sim directory.
9412
2f1b5984
MK
94132002-05-18 Mark Kettenis <kettenis@gnu.org>
9414
f0f625e2
MK
9415 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9416 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9417
2f1b5984
MK
9418 * corelow.c (core_open): Only call set_gdbarch_from_file if
9419 exec_bfd is NULL.
9420
fc974602
AV
94212002-05-17 Andrey Volkov <avolkov@transas.com>
9422
9423 * h8300-tdep.c: Add support of EXR register
9424 * config/h8300/tm-h8300.h: Ditto.
9425
906709f4
AV
94262002-05-17 Andrey Volkov <avolkov@transas.com>
9427
9428 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9429
6e591d68
AV
94302002-05-17 Andrey Volkov <avolkov@transas.com>
9431
9432 * h8300-tdep.c: Change literal regnums to REGNO.
9433
84f0252a
JB
94342002-05-17 Jim Blandy <jimb@redhat.com>
9435
e0e9281e
JB
9436 * NEWS: Note addition of macro support.
9437
84f0252a
JB
9438 Expand preprocessor macros in C expressions.
9439 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9440 (scan_macro_expansion, scanning_macro_expansion,
9441 finished_macro_expansion): New function declarations.
9442 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9443 variable declarations.
9444 * parser-defs.h (expression_context_pc): New declaration.
9445 * parse.c (expression_context_pc): New variable.
9446 (parse_exp_1): Set expression_context_pc, as well as
9447 expression_context_block.
9448 * c-exp.y (yylex): If we're not already reading the result of a
9449 macro expansion, try to macro-expand the next token. When we're
9450 done scanning a macro expansion, switch back to the mainline text.
9451 Commas and `if's in a macro's expansion don't terminate the input.
9452 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9453 (macro_original_text, macro_expanded_text,
9454 expression_macro_lookup_func, expression_macro_lookup_baton): New
9455 variables.
9456 (scan_macro_expansion, scanning_macro_expansion,
9457 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9458 c_preprocess_and_parse): New functions.
9459 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9460 c_preprocess_and_parse, instead of c_parse.
9461 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9462 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9463
1c509ca8
JR
9464Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9465
9466 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9467 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9468 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9469
2250ee0c
CV
94702002-05-17 Corinna Vinschen <vinschen@redhat.com>
9471
9472 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9473
ab3b8126
JT
94742002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9475
9476 * Makefile.in (sh_tdep_h): Define and use.
9477 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9478 register enum): Move to...
9479 * * sh-tdep.h: ...here.
9480 * sh-tdep.c: Include sh-tdep.h.
9481 * sh3-rom.c: Likewise.
9482 * shnbsd-tdep.c: Likewise.
9483
ed9d4749
MS
94842002-05-16 Michael Snyder <msnyder@redhat.com>
9485
9486 * arm-tdep.c: Spelling fix in comment.
9487
2e276125
JB
94882002-05-16 Jim Blandy <jimb@redhat.com>
9489
6821892e
JB
9490 Add commands for manually expanding macros and showing their
9491 definitions.
9492 * macrocmd.c, macroscope.c, macroscope.h: New files.
9493 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9494 (macroscope_h): New variable.
9495 (HFILES_NO_SRCDIR): Add macroscope.h.
9496 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9497 (macroscope.o, macrocmd.o): New rules.
9498
2e276125
JB
9499 Teach the Dwarf 2 reader to read macro information.
9500 * dwarf2read.c: #include "macrotab.h".
9501 (dwarf_macinfo_buffer): New variable.
9502 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9503 dwarf_macinfo_size.
9504 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9505 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9506 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9507 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9508 dwarf2_macro_spaces_in_definition): New complaints.
9509 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9510 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9511 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9512 the partial symbol table.
9513 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9514 from what's recorded in the partial symbol table.
9515 (read_file_scope): If the compilation unit has a
9516 `DW_AT_macro_info' attribute, read its macro information.
9517 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9518
2f53fe6c
DJ
95192002-05-16 Daniel Jacobowitz <drow@mvista.com>
9520
9521 Fix PR gdb/546
9522 * ser-tcp.c: Don't include <netinet/udp.h>.
9523
2be99286
SC
95242002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9525
9526 * MAINTAINERS: Update my email address.
9527
c9af212b 95282002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9529
9530 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9531 include file of the same name.
9532
bf5f1a52
CV
95332002-05-16 Corinna Vinschen <vinschen@redhat.com>
9534
9535 * configure.tgt: Mark v850 as multi-arched.
9536 * config/v850/tm-v850.h: Remove file.
9537 * config/v850/v850.mt: Eliminate TM_FILE.
9538
435e042a
CV
95392002-05-16 Corinna Vinschen <vinschen@redhat.com>
9540
9541 * v850-tdep.c: Full multi-arch.
9542 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9543 Define GDB_MULTI_ARCH to 2.
9544
9819c6c8
PM
95452002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9546
9547 * p-exp.y (current_type): New static variable.
9548 Carries the type of the expression at the position that is parsed.
9549 (push_current_type, pop_current_type): Two new functions. Used
9550 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9551 (search_field): New static variable. Set to one after parsing a point
9552 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9553 (FIELDNAME): New token. After a point only a token belonging to
9554 current_type type definition is allowed.
9555 (all over token rules): reset and change current_type according
9556 to rules.
9557 (exp '[' rule): insert implicit array index field if
9558 exp is a pascal string type.
9559
3a06899a
CV
95602002-05-16 Corinna Vinschen <vinschen@redhat.com>
9561
9562 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9563 frame info. Use frame_info's saved_regs instead of matching member
9564 in extra_frame_info throughout.
9565 (v850_frame_init_saved_regs): New function.
9566 (v850_init_extra_frame_info): Move most functionality into
9567 v850_frame_init_saved_regs().
9568 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9569 (v850_frame_find_saved_regs): Remove declaration.
9570 (FRAME_FIND_SAVED_REGS): Remove definition.
9571 (v850_frame_init_saved_regs): Add declaration.
9572 (FRAME_INIT_SAVED_REGS): Add definition.
9573
6ed14b0e
CV
95742002-05-16 Corinna Vinschen <vinschen@redhat.com>
9575
9576 * v850-tdep.c: Begin multi-arch'ing v850.
9577 (v850_target_architecture_hook): Remove function.
9578 (v850_gdbarch_init): New function. Add code previously in
9579 v850_target_architecture_hook().
9580 (_initialize_v850_tdep): Don't set target_architecture_hook.
9581 Call register_gdbarch_init() instead.
9582
42725910
DJ
95832002-05-16 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9586 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9587 (fixup_class_method_type): Likewise.
9588
99d9066e
JB
95892002-05-15 Jim Blandy <jimb@redhat.com>
9590
9591 Add macro structures to GDB's symbol tables. Nobody puts anything
9592 in them yet.
9593 * symtab.h (struct symtab): New member: `macro_table'.
9594 * buildsym.h (pending_macros): New global variable.
9595 * buildsym.c: #include "macrotab.h".
9596 (buildsym_init): Initialize `pending_macros'.
9597 (end_symtab): If we found macro information while reading a CU's
9598 debugging info, do build a symtab structure for it. Make the
9599 symtab point to the macro information, and clear the
9600 `pending_macros' pointer which held it while we were reading the
9601 debug info.
9602 (really_free_pendings): Free any pending macro table.
9603 * objfiles.h (struct objfile): New member: `macro_cache'.
9604 * objfiles.c (allocate_objfile): Set allocate and free functions
9605 for the macro cache's objstack.
9606 (free_objfile): Empty the macro cache's obstack.
9607 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9608 set new allocate and free functions for it.
9609 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9610 free functions for the macro cache's objstack. (Why is this
9611 function building its own objfile?)
9612 * symmisc.c (print_objfile_statistics): Print statistics on the
9613 macro bcache.
9614 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9615
c899585b
RE
96162002-05-15 Richard Earnshaw <rearnsha@arm.com>
9617
9618 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9619 (REGISTER_U_ADDR): Delete definition.
9620 (arm_register_u_addr): Delete declaration.
9621
a6cdd8c5
RE
96222002-05-15 Richard Earnshaw <rearnsha@arm.com>
9623
9624 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9625 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9626
c97dcfc7
AC
96272002-05-14 Andrew Cagney <ac131313@redhat.com>
9628
9629 * regcache.c (register_valid): Revise comments refering to "Not
9630 available" and "unavailable".
9631 * frame.c (frame_register_read): Ditto.
9632 * findvar.c (value_of_register): Ditto.
9633
93021b7d
AC
96342002-05-15 Andrew Cagney <cagney@redhat.com>
9635
9636 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9637 (remote-sim.o): Update dependencies.
9638 (d10v-tdep.o): Specify dependencies.
9639 (sim_d10v_h): Define.
9640
a86bc61c
JB
96412002-05-14 Jim Blandy <jimb@redhat.com>
9642
9643 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9644 * macrotab.c (macro_lookup_inclusion, find_definition,
9645 new_macro_table): Same.
9646
9647 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9648 not `! strcmp ()'. This is a dubious improvement.
9649 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9650
9651 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9652 although it's not necessary, to avoid a warning.
9653
2fdde8f8
DJ
96542002-05-14 Daniel Jacobowitz <drow@mvista.com>
9655
9656 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9657 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9658 TYPE_INSTANCE_FLAGS.
9659 (struct main_type): New.
9660 (struct type): Move most members to struct main_type. Change
9661 cv_type and as_type to new type_chain member. Add instance_flags.
9662 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9663 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9664 (finish_cv_type): Remove prototype.
9665 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9666 Set TYPE_CHAIN.
9667 (alloc_type_instance): New function.
9668 (smash_type): New function.
9669 (make_pointer_type, make_reference_type, make_function_type)
9670 (smash_to_member_type, smash_to_method_type): Call smash_type.
9671 (make_qualified_type): New function.
9672 (make_type_with_address_space): Call make_qualified_type.
9673 (make_cv_type): Likewise.
9674 (finish_cv_type): Remove unnecessary function.
9675 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9676 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9677 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9678 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9679 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9680 * hpread.c (hpread_read_struct_type): Likewise.
9681 * stabsread.c (read_struct_type): Likewise.
9682
843fedf4
EZ
96832002-05-14 Elena Zannoni <ezannoni@redhat.com>
9684
9685 * configure.tgt: Add a catch all sh* target, for cases like
9686 sh[2,3,4]-elf and sh-hms.
9687
05a6c72c
KS
96882002-05-14 Keith Seitz <keiths@redhat.com>
9689
9690 * event-loop.c (create_file_handler): Don't do anything but
9691 update data when we are given a fd which we are already
9692 monitoring.
9693
5d085aaf
ML
96942002-05-14 Michal Ludvig <mludvig@suse.cz>
9695
9696 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9697 (update_context): Use __func__ in warnings.
9698
9db8d71f
DJ
96992002-05-14 Daniel Jacobowitz <drow@mvista.com>
9700
9701 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9702 and tcp_close to net_open and net_close.
9703 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9704 using UDP if requested. Don't try to disable Nagle on UDP
9705 sockets.
9706 * remote.c (remote_serial_open): New function. Warn about UDP.
9707 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9708
5dbc6baa
EZ
97092002-05-13 Elena Zannoni <ezannoni@redhat.com>
9710
9711 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9712
cc3023f7
EZ
97132002-05-13 Elena Zannoni <ezannoni@redhat.com>
9714
9715 * configure.tgt: Remove sh-hms target.
9716 * MAINTAINERS: Don't list sh-hms as a separate target.
9717
ec2bcbe7
JB
97182002-05-13 Jim Blandy <jimb@redhat.com>
9719
9720 Add first preprocessor macro-expansion files.
9721 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9722 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9723 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9724 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9725 (COMMON_OBS): Add macrotab.o, macroexp.o.
9726 (macroexp.o, macrotab.o): New rules.
9727
6d531722
AC
97282002-05-13 Andrew Cagney <ac131313@redhat.com>
9729
9730 * config/m88k/tm-m88k.h: Update copyright.
9731 (m88k_target_write_pc): Declare
9732 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9733 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9734 (SHIFT_INST_REGS): Update definition.
9735 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9736 using old definition of TARGET_WRITE_PC.
9737 * regcache.c (generic_target_write_pc): Delete code handling
9738 NNPC_REGNUM.
9739 * gdbarch.sh (NNPC_REGNUM): Delete.
9740 * gdbarch.h, gdbarch.c: Regenerate.
9741
3e3f2739
RE
97422002-05-13 Richard Earnshaw <rearnsha@arm.com>
9743
9744 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9745 builtin reg number.
9746
0004e5a2
DJ
97472002-05-13 Daniel Jacobowitz <drow@mvista.com>
9748
9749 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9750 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9751 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9752 access macros.
9753 * c-typeprint.c (cp_type_print_method_args): Likewise.
9754 (c_type_print_args): Likewise.
9755 * d10v-tdep.c (d10v_push_arguments): Likewise.
9756 (d10v_extract_return_value): Likewise.
9757 * expprint.c (print_subexp): Likewise.
9758 * gdbtypes.c (lookup_primitive_typename): Likewise.
9759 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9760 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9761 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9762 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9763 (TYPE_VECTOR): Likewise.
9764 * hpread.c (hpread_read_struct_type)
9765 (fix_static_member_physnames, fixup_class_method_type)
9766 (hpread_type_lookup): Likewise.
9767 * mdebugread.c (parse_symbol, parse_type): Likewise.
9768 * p-lang.c (is_pascal_string_type): Likewise.
9769 * valops.c (hand_function_call): Likewise.
9770 * x86-64-tdep.c (classify_argument): Likewise.
9771
9772 * hpread.c (hpread_read_function_type)
9773 (hpread_read_doc_function_type): Call replace_type.
9774 * dstread.c (create_new_type): Delete.
9775 (decode_dst_structure, process_dst_function): Call alloc_type.
9776 Use type access macros.
9777
dff95cc7
MK
97782002-05-12 Mark Kettenis <kettenis@gnu.org>
9779
9780 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9781 the're not supported by the current architecture.
9782 (i387_fill_fxsave): Likewise.
9783
bbcd32ad
FF
97842002-05-12 Fred Fish <fnf@redhat.com>
9785
9786 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9787 sect_index_xxx members to index the first slot in section_offsets
9788 if all of the section_offsets are zero.
9789
89cf4787
MK
97902002-05-12 Mark Kettenis <kettenis@gnu.org>
9791
9792 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9793 checked in with last change.
9794
1f77ffc5
MK
97952002-05-12 Mark Kettenis <kettenis@gnu.org>
9796
9797 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9798 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9799 config.sub.
9800
89b8b4a9
DJ
98012002-05-12 Daniel Jacobowitz <drow@mvista.com>
9802
9803 * Makefile.in: Update dependencies.
9804
14a5e767
AC
98052002-05-11 Andrew Cagney <ac131313@redhat.com>
9806
9807 * language.c (local_hex_string_custom): Simplify. Do not depend
9808 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9809
9810 * memattr.c (mem_info_command): Replace calls to
9811 longest_local_hex_string and longest_local_hex_string_custom.
9812 * buildsym.c (make_blockvector): Ditto.
9813 * solib.c (info_sharedlibrary_command): Ditto.
9814 * tracepoint.c (tracepoints_info): Ditto.
9815 * symtab.c (print_msymbol_info): Ditto.
9816
9817 * language.c (local_hex_string): Delete.
9818 (local_hex_string_custom): Delete.
9819 (longest_local_hex_string): Rename to local_hex_string.
9820 (longest_local_hex_string_custom): Rename to
9821 local_hex_string_custom.
9822 * language.h (local_hex_string): Change parameter type to LONGEST.
9823 (local_hex_string_custom): Ditto.
9824 (longest_local_hex_string): Delete declaration.
9825 (longest_local_hex_string_custom): Ditto.
9826
9827 * solib.c: Update copyright.
9828 * memattr.c: Update copyright.
9829
13d01224
AC
98302002-05-11 Andrew Cagney <ac131313@redhat.com>
9831
9832 * arch-utils.h (legacy_register_to_value): Declare.
9833 (legacy_value_to_register): Declare.
9834 (legacy_convert_register_p): Declare.
9835 * arch-utils.c (legacy_register_to_value): New function.
9836 (legacy_value_to_register): New function.
9837 (legacy_convert_register_p): New function.
9838
9839 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9840 (VALUE_TO_REGISTER): Define.
9841 (CONVERT_REGISTER_P): Define.
9842 * gdbarch.h, gdbarch.c: Regenerate.
9843
9844 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9845 VALUE_TO_REGISTER.
9846 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9847 CONVERT_REGISTER_P.
9848
4a1970e4
DJ
98492005-05-11 Daniel Jacobowitz <drow@mvista.com>
9850 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9851
9852 * Makefile.in: Update dependencies for valops.c.
9853 * valops.c: Include "gdb_assert.h".
9854 (typecmp): Skip THIS parameter to methods.
9855 (find_method_list): Remove static_memfuncp argument,
9856 update callers. Check for stub methods.
9857 (find_value_oload_method_list): Don't set *static_memfuncp.
9858 (find_overload_match): Don't check for stub methods. Assert
9859 that methods are not stubbed. Handle static methods.
9860 (value_find_oload_method_list): Remove static_memfuncp argument.
9861 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9862 to the argument list for static stub methods.
9863 * value.h (value_find_oload_method_list): Update prototype.
9864
b2e75d78
AC
98652002-05-11 Andrew Cagney <ac131313@redhat.com>
9866
9867 * arch-utils.h (generic_register_size): Declare.
9868 (generic_register_raw_size, generic_register_virtual_size): Delete
9869 declarations.
9870 * arch-utils.c (generic_register_raw_size): Delete.
9871 (generic_register_size): New function.
9872 (generic_register_virtual_size): Delete.
9873
9874 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9875 default generic_register_size.
9876 * gdbarch.h, gdbarch.c: Re-generate.
9877
9878 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9879 register_virtual_size.
9880 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9881 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9882
451fbdda
AC
98832002-05-11 Andrew Cagney <ac131313@redhat.com>
9884
9885 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9886 * gdbarch.h, gdbarch.c: Regenerate.
9887 * gnu-v3-abi.c: Update copyright.
9888 (vtable_address_point_offset): Update.
9889 (gnuv3_rtti_type): Update.
9890 (gnuv3_baseclass_offset): Update.
9891 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9892 (init_fetch_link_map_offsets): Update.
9893 * remote.c (get_remote_state): Update.
9894
6d2f5cea
DJ
98952002-05-11 Daniel Jacobowitz <drow@mvista.com>
9896
9897 * TODO: Remove value_headof/value_from_vtable_info comment.
9898 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9899 * values.c (value_headof, value_from_vtable_info): Delete.
9900 * value.h (value_from_vtable_info): Delete prototype.
9901
d2324da4
AC
99022002-05-11 Andrew Cagney <ac131313@redhat.com>
9903
9904 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9905 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9906 $(gdb_regex_h).
9907 (gdb_assert_h): Define.
9908 (gdb_wait_h): Define.
9909 (gdb_regex_h): Define.
9910
5c717440
DJ
99112002-05-11 Daniel Jacobowitz <drow@mvista.com>
9912
9913 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9914 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9915
6c7861b3
JT
99162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9917
9918 * nbsd-tdep.c: Fix comment.
9919
ea5bc2a6
JT
99202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9921
9922 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9923 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9924 (nbsd-tdep.o): New dependency list.
9925 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9926 nbsd-tdep.h.
9927 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9928 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9929 * nbsd-tdep.c: New file.
9930 * nbsd-tdep.h: New file.
9931 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9932 nbsd-tdep.h.
9933 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9934 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9935 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9936 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9937
b28da865
JT
99382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9939
9940 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9941 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9942 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9943 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9944 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9945 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9946
4b8ff1fa
JT
99472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9948
9949 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9950 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9951 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9952 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9953 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9954 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9955 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9956
dfe6eb1f
JT
99572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9958
9959 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9960 fetch_elfcore_registers to...
9961 * i386nbsd-tdep.c: ...here.
9962 (i386nbsd_use_struct_convention): Rename to...
9963 (i386nbsd_aout_use_struct_convention): ...this.
9964 (i386nbsd_supply_reg): New function.
9965 (i386nbsd_fill_reg): New function.
9966 (fetch_core_registers): Use i386nbsd_supply_reg.
9967 (fetch_elfcore_registers): Likewise.
9968 (_initialize_i386nbsd_tdep): New function.
9969 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9970 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9971 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9972 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9973 (i386nbsd_aout_use_struct_convention): ...this.
9974
20cb8cda
JT
99752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9976
9977 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9978 (store_inferior_registers): Use shnbsd_fill_reg.
9979 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9980 sh_nbsd_supply_register): Collapse into...
9981 (shnbsd_supply_reg): ...this.
9982 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9983 (shnbsd_fill_reg): ...this.
9984 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9985 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9986 (fetch_core_registers): Use shnbsd_supply_reg.
9987 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9988 (sh_nbsd_core_fns): Rename to...
9989 (shnbsd_core_fns): ...this.
9990 (sh_nbsd_elfcore_fns): Rename to...
9991 (shnbsd_elfcore_fns): ...this.
9992 (sh_nbsd_init_abi): Rename to...
9993 (shnbsd_init_abi): ...this.
9994 (_initialize_sh_nbsd_tdep): Rename to...
9995 (_initialize_shnbsd_tdep): ...this.
9996 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9997 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9998 sh_nbsd_fill_register): Remove prototypes.
9999 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10000
e750d25e
JT
100012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10004 (i387-nat.o): Delete dependency list.
10005 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10006 (x86-64-linux-nat.o): Likewise.
10007 * i387-nat.c: Delete file, moving contents to...
10008 * i387-tdep.c: ...here.
10009 * i387-nat.h: Rename...
10010 * i387-tdep.h: ...to this.
10011 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10012 * i386-linux-nat.c: Likewise.
10013 * i386bsd-nat.c: Likewise.
10014 * i386gnu-nat.c: Likewise.
10015 * i386nbsd-nat.c: Likewise.
10016 * i386v4-nat.c: Likewise.
10017 * x86-64-linux-nat.c: Likewise.
10018 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10019 * config/i386/go32.mh (NATDEPFILES): Likewise.
10020 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10021 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10022 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10023 * config/i386/linux.mh (NATDEPFILES): Likewise.
10024 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10025 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10026 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10027 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10028
1aee598a
JT
100292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10030
10031 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10032 (alphanbsd-nat.o): Remove dependency list.
10033 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10034 * alphanbsd-nat.c: Delete. Contents moved to...
10035 * alphanbsd-tdep.c: ...here.
10036 (_initialize_alphanbsd_tdep): Register core functions.
10037 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10038
12bcb0fe
JT
100392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10040
10041 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10042 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10043 (alphanbsd-nat.o): Likewise.
10044 (alphabsd-tdep.o): New dependency list.
10045 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10046 (fill_gregset): Use alphabsd_fill_reg.
10047 (supply_fpregset): Use alphabsd_supply_fpreg.
10048 (fill_fpregset): Use alphabsd_fill_fpreg.
10049 (fetch_inferior_registers): Use struct reg and struct fpreg
10050 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10051 and alphabsd_supply_fpreg.
10052 (store_inferior_registers): Use struct reg and struct fpreg
10053 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10054 and alphabsd_fill_fpreg.
10055 * alphabsd-tdep.c: New file.
10056 * alphabsd-tdep.h: New file.
10057 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10058 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10059 alphabsd_supply_fpreg.
10060 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10061 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10062
361d1df0
EC
100632002-05-11 Eric Christopher <echristo@redhat.com>
10064
10065 * mips-tdep.c (mips_double_register_type): Fix thinko.
10066 (mips_single_register_type): Ditto.
10067 * MAINTAINERS: Add self.
10068
92dd7cee
MK
100692002-05-11 Mark Kettenis <kettenis@gnu.org>
10070
10071 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10072 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10073 right thing on architectures with different endianness and/or
10074 integer sizes.
10075
e27da16d
JT
100762002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10077
10078 From Christian Limpach <chris@Pin.LU>
10079 * configure.in: Change sed expression which comments out
10080 NATDEPFILES to also comment out continuation lines.
10081 * configure: Regenerate.
10082
ddde02bd
EZ
100832002-05-10 Elena Zannoni <ezannoni@redhat.com>
10084
10085 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10086 big patch.
10087
1c922164
EZ
100882002-05-10 Elena Zannoni <ezannoni@redhat.com>
10089
10090 * sh-tdep.c: Include correct file.
10091
283150cd
EZ
100922002-05-10 Elena Zannoni <ezannoni@redhat.com>
10093
10094 New support for sh64-elf (sh5) target.
10095
10096 * configure.tgt: For sh64-elf target, default to sh-elf.
10097
10098 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10099 (struct gdbarch_tdep): Add new fields for new registers and ABI
10100 info.
361d1df0 10101
283150cd
EZ
10102 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10103 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10104 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10105 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10106 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10107 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10108 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10109 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10110 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10111 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10112 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10113 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10114 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10115 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10116 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10117 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10118 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10119 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10120 sign_extend, sh64_nofp_frame_init_saved_regs,
10121 sh64_init_extra_frame_info, sh64_get_saved_register,
10122 sh64_extract_struct_value_address, sh64_pop_frame,
10123 sh64_push_arguments, sh64_extract_return_value,
10124 sh64_store_return_value, sh64_show_media_regs,
10125 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10126 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10127 sh_sh64_register_virtual_type,
10128 sh_sh64_register_convert_to_virtual,
10129 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10130 sh64_register_read, sh64_pseudo_register_write,
10131 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10132 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10133 sh64_do_pseudo_register, sh_compact_do_registers_info,
10134 sh64_do_registers_info, sh_gdbarch_init): New functions.
10135
3117ed25
EZ
101362002-05-10 Elena Zannoni <ezannoni@redhat.com>
10137
10138 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10139
2654e6d4
DJ
101402002-05-10 Daniel Jacobowitz <drow@mvista.com>
10141
10142 * linespec.c (decode_line_1): Check for a double quote after
10143 a filename correctly.
10144
9ab3e532
JB
101452002-05-10 Jim Blandy <jimb@redhat.com>
10146
10147 Properly track the size of the current objfile's .debug_line section.
10148 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10149 (DWARF_LINE_SIZE): New macro.
10150 (dwarf2_build_psymtabs_hard): Record the line section's size in
10151 the partial symbol table.
10152 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10153 symbol table.
10154
126fa72d
PS
101552002-05-10 Petr Sorfa <petrs@caldera.com>
10156
10157 * ia64-tdep.c: Handle breakpoints on L instruction type
10158 in MLX instruction bundle by moving the breakpoint to
10159 the third slot (X instruction type) as L holds only data.
10160
1f077a3e
KB
101612002-05-10 Kevin Buettner <kevinb@redhat.com>
10162
10163 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10164 (process_one_symbol): Complain about discarding local symbols
10165 due to a misplaced N_LBRAC entry.
10166
8120c9d5 101672002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
10168
10169 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
10170 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10171 decrease the depth we are at, in the case of templates.
361d1df0 10172
67b2c998
DJ
101732002-05-09 Daniel Jacobowitz <drow@mvista.com>
10174
10175 * mips-tdep.c (mips_float_register_type): New function.
10176 (mips_double_register_type): New function.
10177 (mips_print_register): Use them.
10178 (do_fp_register_row): Likewise.
10179
fd326606
DJ
101802002-05-09 Daniel Jacobowitz <drow@mvista.com>
10181
6609d9af 10182 * signals/signals.c (signals): Remove conditional compilation around
fd326606 10183 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 10184 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 10185
bef35864
MS
101862002-05-09 Michael Snyder <msnyder@redhat.com>
10187
10188 * remote-rdp.c (remote_rdp_can_run): Remove.
10189
c55a3f73
TT
101902002-05-09 Tom Tromey <tromey@redhat.com>
10191
10192 * jv-valprint.c (java_val_print): Handle `char' as a special case
10193 of TYPE_CODE_INT.
10194
b8d5e71d
MS
101952002-05-09 Michael Snyder <msnyder@redhat.com>
10196
10197 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10198 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 10199 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 10200 str r(0123),[sp,#nn].
361d1df0 10201 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
10202 order-independent by placing it in a loop.
10203
e2cd42dd
MS
102042002-05-06 Michael Snyder <msnyder@redhat.com>
10205
10206 * stabsread.c (read_type): Add recognition for new attribute:
10207 "@V;" means that an array type is actually a vector.
10208 This is analogous to the vector flag that's been added to dwarf2.
10209
3ce1502b
MK
102102002-05-09 Mark Kettenis <kettenis@gnu.org>
10211
10212 * i386-tdep.h (i386_abi): New enum.
10213 (struct gdbarch_tdep): Replace os_ident member with abi.
10214 (i386_gdbarch_register_os_abi): New prototype.
10215 * i386-tdep.c (i386_abi_names): New array.
10216 (process_note_abi_tag_sections): Removed.
10217 (process_note_sections): New function.
10218 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10219 (struct i386_abi_handler): New struct.
10220 (i386_abi_handler_list): New variable.
10221 (i386_gdbarch_register_os_abi): New function.
10222 (i386_gdbarch_init): Adapt for the changes given above.
10223
084c156a
DJ
102242002-05-08 Daniel Jacobowitz <drow@mvista.com>
10225
10226 * gregset.h: Say "GNU/Linux".
10227
6599f021
EZ
102282002-05-08 Elena Zannoni <ezannoni@redhat.com>
10229
10230 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10231 (build_gdbtypes): Build builtin_type_v2_float.
10232 (_initialize_gdbtypes): Register new builtin type.
10233
40af4b0c
AC
102342002-05-08 Andrew Cagney <ac131313@redhat.com>
10235
10236 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10237 (clear_gdbarch_swap): New function.
10238 (initialize_non_multiarch): Call.
10239 (gdbarch_update_p): Before calling init(), swap out and clear the
10240 existing architecture.
10241 * gdbarch.c: Regenerate.
10242
4fe84f46
JT
102432002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10244
10245 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10246 alphanbsd-tdep.c.
10247
4015edd1
JT
102482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10249
10250 * sh-nbsd-nat.c: Rename to...
10251 * shnbsd-nat.c: ...this.
10252 * sh-nbsd-tdep.c: Rename to...
10253 * shnbsd-tdep.c: ...this.
10254 * sh-nbsd-tdep.h: Rename to...
10255 * shnbsd-tdep.h: ...this.
10256 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10257 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10258
0e2bd219
RE
102592002-05-08 Richard Earnshaw <rearnsha@arm.com>
10260
10261 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10262 concatenation for command help messages.
10263
13a38d45
JT
102642002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10265
10266 * NEWS: Note new sh*-*-netbsdelf* configuration.
10267 * configure.host: Set gdb_host_cpu to sh for all sh*.
10268 (sh*-*-netbsdelf*): New host.
10269 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10270 (sh*-*-netbsdelf*): New target.
10271 * sh-nbsd-nat.c: New file.
10272 * sh-nbsd-tdep.c: New file.
10273 * sh-nbsd-tdep.h: New file.
10274 * config/sh/nbsd.mh: New file.
10275 * config/sh/nbsd.mt: New file.
10276 * config/sh/nm-nbsd.h: New file.
10277 * config/sh/tm-nbsd.h: New file.
10278
d658f924
JT
102792002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10280
10281 * sh-tdep.c (sh_osabi_names): Declare.
10282 (process_note_abi_tag_sections): New function.
10283 (get_elfosabi): Ditto.
10284 (sh_gdbarch_register_os_abi): Ditto.
10285 (sh_dump_tdep): Ditto.
10286 _initialize_sh_tdep): Use gdbarch_register to register
10287 sh_gdbarch_init and sh_dump_tdep.
10288 * config/sh/tm-sh.h (sh_osabi): Declare.
10289 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10290
848cfffb
AC
102912002-05-07 Andrew Cagney <ac131313@redhat.com>
10292
10293 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10294 (thumb_scan_prologue): Ditto.
10295 (arm_find_callers_reg): Ditto.
10296 (arm_frame_chain): Ditto.
10297 (arm_init_extra_frame_info): Ditto.
10298 (arm_frame_saved_pc): Ditto.
10299 (arm_pop_frame): Ditto.
10300 (arm_push_return_address): New function.
10301 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10302 call_dummy_location, call_dummy_breakpoint_offset_p,
10303 call_dummy_breakpoint_offset, call_dummy_p,
10304 call_dummy_stack_adjust_p, call_dummy_words,
10305 sizeof_call_dummy_words, call_dummy_start_offset,
10306 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10307 call_dummy_address, push_return_address and push_dummy_frame for
10308 generic dummy frames.
10309
e7d717c0
JT
103102002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10311
10312 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10313 size computation for alloca.
10314 (sh_fp_frame_init_saved_regs): Likewise.
10315
7bbcf283
RE
103162002-05-07 Richard Earnshaw <rearnsha@arm.com>
10317
10318 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10319 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 10320 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
10321 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10322 * remote-rdp.c (remote_rdp_fetch_register): Use
10323 ARM_MAX_REGISTER_RAW_SIZE.
10324 (remote_rdp_store_register): Likewise.
10325
4657573b
ML
103262002-05-07 Michal Ludvig <mludvig@suse.cz>
10327
361d1df0 10328 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
10329 added default labels to switch {} statements.
10330 * x86-64-tdep.c: Ditto.
10331 * x86-64-linux-nat.c: Ditto.
10332
010f3b2f
JT
103332002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10334
10335 * solib.h: Protect against multiple inclusion.
10336
debd256d
JB
103372002-05-06 Jim Blandy <jimb@redhat.com>
10338
9ab3e532
JB
10339 Add first preprocessor macro-expansion files.
10340 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10341 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10342 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10343 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10344 (COMMON_OBS): Add macrotab.o, macroexp.o.
10345 (macroexp.o, macrotab.o): New rules.
10346
debd256d
JB
10347 Separate the job of reading the line number info statement program
10348 header (...expialidocious) out into its own function.
10349 * dwarf2read.c (struct line_head, struct filenames, struct
10350 directories): Replace with...
10351 (struct line_header): New structure, containing the full
10352 contents of the statement program header, including the
10353 include directory and file name tables.
10354 (read_file_scope): If we have line number info, instead of just
10355 calling dwarf_decode_lines to do all the work, call
10356 dwarf_decode_line_header first to get a `struct line_header'
10357 containing the data in the statement program header, and then
10358 pass that to dwarf_decode_lines, which will pick up where that
10359 left off. Be sure to clean up the `struct line_header' object.
10360 (dwarf_decode_line_header, free_line_header, add_include_dir,
10361 add_file_name): New functions.
10362 (dwarf_decode_lines): Move all the code to read the statement
10363 program header into dwarf_decode_line_header. Take the line
10364 header it built as the first argument, instead of the offset to
10365 the compilation unit's line number info. Use the new `struct
10366 line_header' type instead of the old structures. No need to do
10367 cleanups here now, since we don't allocate anything.
10368 (dwarf2_statement_list_fits_in_line_number_section,
10369 dwarf2_line_header_too_long): New complaints.
10370
ac3aafc7
EZ
103712002-05-06 Elena Zannoni <ezannoni@redhat.com>
10372
10373 * gdbtypes.c (init_vector_type): New function.
10374 (build_builtin_type_vec128): Simplify the representation of SIMD
10375 registers.
10376 (build_gdbtypes): Initialize new builtin vector types.
10377 (_initialize_gdbtypes): Register new vector types with gdbarch.
10378 (builtin_type_v4_float, builtin_type_v4_int32,
10379 builtin_type_v8_int16, builtin_type_v16_int8,
10380 builtin_type_v2_int32, builtin_type_v4_int16,
10381 builtin_type_v8_int8): New (renamed) SIMD types.
10382
13e49980
MK
103832002-05-06 Mark Kettenis <kettenis@gnu.org>
10384
10385 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10386 (i387_fill_fxsave): Likewise.
10387
997b20b8
AO
103882002-05-05 Alexandre Oliva <aoliva@redhat.com>
10389
10390 * alpha-tdep.c (alpha_extract_return_value): Don't use
10391 non-constant array size in prototype.
10392
535c96ce
AC
103932002-05-04 Andrew Cagney <ac131313@redhat.com>
10394
10395 From Brian Taylor <briant at model dot com>:
10396 * ui-out.c (ui_out_field_core_addr): Use the function
10397 longest_local_hex_string_custom'to format addresses > 32 bits
10398 wide.
10399
10400 * ui-out.c (ui_out_field_core_addr): Update comment.
10401
bedfa57b
AC
104022002-05-04 Andrew Cagney <ac131313@redhat.com>
10403
10404 * stack.c (select_and_print_frame): Make static. Delete the
10405 parameter `level'.
10406 (func_command): Update call.
10407 (select_frame_command): Delete code computing the frame level.
10408 * frame.h (select_and_print_frame): Delete declaration.
10409
f621c63e
AC
104102002-05-04 Andrew Cagney <ac131313@redhat.com>
10411
10412 * sparc-tdep.c (sparc_get_saved_register): Comment why
10413 get_prev_frame call is safe.
10414
0f7d239c
AC
104152002-05-04 Andrew Cagney <ac131313@redhat.com>
10416
10417 * frame.h (select_frame): Delete level parameter.
10418 * stack.c (select_frame): Update. Use frame_relative_level to
10419 obtain the frame's level.
10420 (select_and_print_frame): Update call.
10421 (select_frame_command): Ditto.
10422 (up_silently_base): Ditto.
10423 (down_silently_base): Ditto.
10424 * ocd.c (ocd_start_remote): Ditto.
10425 * remote-rdp.c (remote_rdp_open): Ditto.
10426 * remote-mips.c (mips_initialize): Ditto.
10427 (common_open): Ditto.
10428 * remote-e7000.c (e7000_start_remote): Ditto.
10429 * m3-nat.c (select_thread): Ditto.
10430 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10431 (child_get_current_exception_event): Ditto.
10432 * varobj.c (varobj_create): Ditto.
10433 (varobj_update): Ditto.
10434 (c_value_of_root): Ditto.
10435 * tracepoint.c (finish_tfind_command): Ditto.
10436 * corelow.c (core_open): Ditto.
10437 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10438 * thread.c (info_threads_command): Ditto.
10439 (switch_to_thread): Ditto.
10440 * infrun.c (normal_stop): Ditto.
10441 (restore_selected_frame): Ditto.
10442 (restore_inferior_status): Ditto.
10443 * breakpoint.c (insert_breakpoints): Ditto.
10444 (watchpoint_check): Ditto.
10445 (bpstat_stop_status): Ditto.
10446 (do_enable_breakpoint): Ditto.
10447 * blockframe.c (flush_cached_frames): Ditto.
10448 (reinit_frame_cache): Ditto.
10449
71d6c7b1
AC
104502002-05-04 Andrew Cagney <ac131313@redhat.com>
10451
10452 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10453 maintainer.
10454
cda6c68a
JB
104552002-05-04 Jim Blandy <jimb@redhat.com>
10456
10457 * gdbtypes.c (replace_type): Doc fix.
10458
5c1c87f0
AC
104592002-05-04 Andrew Cagney <ac131313@redhat.com>
10460
10461 * valprint.c (strcat_longest): Delete commented out function.
10462 Update copyright.
10463
cd9bfe15
AC
104642002-05-04 Andrew Cagney <ac131313@redhat.com>
10465
10466 * MAINTAINERS: Mark a29k as deleted.
10467 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10468 Move new configurations to the top.
10469 * configure.tgt: Remove a29k.
10470 * config/a29k/tm-vx29k.h: Delete.
10471 * config/a29k/vx29k.mt: Delete.
10472 * config/a29k/tm-a29k.h: Delete.
10473 * config/a29k/a29k-udi.mt: Delete.
10474 * config/a29k/a29k.mt: Delete.
10475 * a29k-tdep.c: Delete.
10476 * remote-udi.c: Delete.
10477 * remote-mm.c: Delete.
10478 * remote-eb.c: Delete.
10479 * remote-adapt.c: Delete.
10480 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10481 * config/s390/s390x.mt: Ditto.
10482 * config/s390/s390.mt: Ditto.
10483 * config/sparc/sparclynx.mh: Ditto.
10484 * config/sparc/linux.mh: Ditto.
10485 * config/pa/hppaosf.mh: Ditto.
10486 * config/pa/hppabsd.mh: Ditto.
10487 * config/ns32k/nbsd.mt: Ditto.
10488 * config/mips/vr5000.mt: Ditto.
10489 * config/m68k/sun3os4.mh: Ditto.
10490 * config/m68k/nbsd.mt: Ditto.
10491 * config/m68k/m68klynx.mh: Ditto.
10492 * config/m32r/m32r.mt: Ditto.
10493 * config/i386/x86-64linux.mt: Ditto.
10494 * config/i386/nbsdelf.mt: Ditto.
10495 * config/i386/nbsd.mt: Ditto.
10496 * config/i386/i386lynx.mh: Ditto.
10497
bf0c5130
AC
104982002-05-04 Andrew Cagney <ac131313@redhat.com>
10499
10500 * target.c (debug_print_register): New function. Handle oversize
10501 registers.
10502 (debug_to_fetch_registers): Call.
10503 (debug_to_store_registers): Call.
10504
2ae1c2d2
JB
105052002-05-03 Jim Blandy <jimb@redhat.com>
10506
13a393b0
JB
10507 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10508 (read_type): Doc fix.
10509 * gdbtypes.c (replace_type): Doc fix.
10510
2ae1c2d2
JB
10511 * stabsread.c (multiply_defined_struct): New complaint.
10512 (read_struct_type): If the type we were passed isn't empty, or
10513 incomplete, don't read the new struct type into it; complain,
10514 and return the original type unchanged. Take a new `type_code'
10515 argument, which is the type code for the new type.
10516 (read_type): Rather than storing the type's type code here, pass
10517 it as an argument to read_struct_type, and let that take care of
10518 storing it. That way, we don't overwrite the original type code,
10519 so read_struct_type can use it to decide whether we're overwriting
10520 something we shouldn't.
10521 (complain_about_struct_wipeout): New function.
10522
8de9bdc4
AC
105232002-05-03 Andrew Cagney <ac131313@redhat.com>
10524
10525 * gdbarch.sh: Assert that gdbarch is non-NULL.
10526 * gdbarch.c: Regenerate.
10527
f773fdbb
JM
105282002-05-03 Jason Merrill <jason@redhat.com>
10529
10530 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10531 and return NULL.
10532
0e04a514
ML
105332002-05-03 Michal Ludvig <mludvig@suse.cz>
10534
10535 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10536 (x86_64_dwarf2gdb_regno_map_length),
10537 (x86_64_dwarf2_reg_to_regnum): Added.
10538 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10539 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10540 (_initialize_x86_64_tdep): Synced with the change above.
10541 (x86_64_skip_prologue): Reformulated message.
10542
065432a8
PM
105432002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10544
10545 * f-exp.y: Also use new prev_lexptr variable
10546 to improve error reporting. Based on Michael Snyder
10547 2002-04-24 dated patch to c-exp.y.
10548 * jv-exp.y: Likewise.
10549 * m2-exp.y: Likewise.
10550
a3162708
EZ
105512002-05-02 Elena Zannoni <ezannoni@redhat.com>
10552
10553 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10554 we are dealing with vectors.
10555
03620c38
PM
105562002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10557
10558 * config/m68k/tm-nbsd.h: Obvious fix,
10559 correct machine name.
10560
6604db2e
PM
105612002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10562
10563 * p-typeprint.c (pascal_type_print_base): Add support
10564 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10565
0906b739
PM
105662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10567
10568 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10569 for fondamental pascal 'char' type.
10570
e2625b33
PM
105712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10572
10573 * p-lang.h (is_pascal_string_type): Declaration changed,
10574 new sixth argument of type char ** added.
361d1df0 10575 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10576 changed. Args length_pos, length_size, string_pos, char_size
10577 can now be NULL. New argument arrayname set to the field
10578 name of the char array. Return value set to char array
10579 field index plus one.
361d1df0 10580 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10581 is_pascal_string_type function.
10582
cf17c188
AC
105832002-05-02 Andrew Cagney <cagney@redhat.com>
10584
10585 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10586 <cagney@redhat.com> change.
10587 * gdbarch.c: Regenerate.
10588
52bca491
AC
105892002-05-02 Andrew Cagney <cagney@redhat.com>
10590
10591 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10592 before probing for a new one. Detect errorenous gdbarch_init
10593 functions.
10594 * gdbarch.c: Regenerate.
10595
d5e72505
AC
105962002-05-01 Andrew Cagney <cagney@redhat.com>
10597
10598 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10599 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10600 * config/v850/tm-v850.h: Ditto. Update copyright.
10601
af566d9f
AC
106022002-04-30 Andrew Cagney <ac131313@redhat.com>
10603
10604 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10605 current_gdbarch.
10606
880d85fa
MS
106072002-04-30 Michael Snyder <msnyder@redhat.com>
10608
94c30b78
MS
10609 * arm-tdep.c: Whitespace clean-ups.
10610 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10611 should have been removed as part of 4/24 change.
10612
6f5987a6
KB
106132002-04-30 Kevin Buettner <kevinb@redhat.com>
10614
10615 * rs6000-tdep.c: Added comment describing how fpscr register
10616 numbers were chosen.
10617
1a113c93
MS
106182002-04-30 Michael Snyder <msnyder@redhat.com>
10619
10620 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10621
9a6f53fe
EZ
106222002-04-29 Elena Zannoni <ezannoni@redhat.com>
10623
10624 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10625 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10626 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10627
11ed25ac
KB
106282002-04-29 Kevin Buettner <kevinb@redhat.com>
10629
10630 From Louis Hamilton <hamilton@redhat.com>:
10631 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10632 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10633 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10634 not bfd-private xcoff data, to determine wordsize.
10635 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10636
ae232405
AC
106372002-04-29 Andrew Cagney <ac131313@redhat.com>
10638
10639 GDB 5.2 released from 5.2 branch.
10640
91fd20f7
ML
106412002-04-29 Michal Ludvig <mludvig@suse.cz>
10642
10643 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10644 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10645 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10646
2dc5091b
EZ
106472002-04-29 Elena Zannoni <ezannoni@redhat.com>
10648
10649 * rs6000-tdep.c (rs6000_extract_return_value,
10650 rs6000_store_return_value): Handle returning vectors.
10651 (rs6000_gdbarch_init): Use
10652 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10653 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10654 New function.
10655 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10656 vectors.
10657 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10658 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10659
2b9848d8
PM
106602002-04-24 Pierre Muller <ics.u-strasbg.fr>
10661
10662 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10663 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10664 with fprintf_unfiltered (gdb_stderr,...).
10665
f8d17dc5
PM
106662002-04-24 Pierre Muller <ics.u-strasbg.fr>
10667
10668 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10669 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10670 Replace fprintf (stderr,...
10671 with fprintf_unfiltered (gdb_stderr,....
10672 * remote-es.c: Likewise.
10673 * remote-os9k.c: Likewise.
10674 * remote-st.c: Likewise.
10675
2f2f1ad1
AS
106762002-04-28 Andreas Schwab <schwab@suse.de>
10677
10678 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10679 linux-proc.o and gcore.o.
10680
b6779aa2
AC
106812002-04-26 Michal Ludvig <mludvig@suse.cz>
10682
10683 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10684 code without frame pointers.
10685
7e57f5f4
AC
106862002-04-26 Andrew Cagney <ac131313@redhat.com>
10687
10688 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10689 ON_STACK is needed.
10690
2ceb85d0
BE
106912002-04-26 Ben Elliston <bje@redhat.com>
10692
10693 * target.c (do_xfer_memory): Correct reference to the new option
10694 "trust-readonly-sections".
10695
f5f8a009
EZ
106962002-04-26 Elena Zannoni <ezannoni@redhat.com>
10697
10698 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10699 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10700 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10701 vectors.
10702 (read_array_type): Record the fact that this array type is really a
10703 vector (i.e. are passed in by value).
10704
5868c862
JT
107052002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10706
10707 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10708 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10709 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10710 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10711 * alpha-linux-tdep.c: Include frame.h.
10712 (alpha_linux_sigcontext_addr): New function.
10713 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10714 alpha_linux_sigcontext_addr.
10715 * alpha-osf1-tdep.c: Include gdbcore.h.
10716 (alpha_osf1_sigcontext_addr): New function.
10717 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10718 alpha_osf1_sigcontext_addr.
10719 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10720 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10721
bfb01f37
AC
107222002-04-26 Andrew Cagney <ac131313@redhat.com>
10723
361d1df0 10724 * stack.c (selected_frame_level):
bfb01f37
AC
10725 (select_frame): Do not set selected_frame_level.
10726 * frame.h (selected_frame_level): Delete declaration.
10727
15813d3f
AC
107282002-04-26 Andrew Cagney <ac131313@redhat.com>
10729
10730 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10731 convert_from_func_ptr-addr when AIX / PowerOpen.
10732
6096c27a
AC
107332002-04-25 Andrew Cagney <ac131313@redhat.com>
10734
10735 * valops.c (hand_function_call): Call
10736 generic_save_call_dummy_addr.
10737 * frame.h (generic_save_call_dummy_addr): Declare.
10738 * blockframe.c (struct dummy_frame): Add fields call_lo and
10739 call_hi.
10740 (generic_find_dummy_frame): Check for PC in range call_lo to
10741 call_hi instead of entry_point_address.
10742 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10743 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10744 (generic_save_call_dummy_addr): New function.
10745
f510d44e
DM
107462002-04-24 David S. Miller <davem@redhat.com>
10747
10748 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10749 sparc_skip_prologue.
10750 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10751 information to find prologue when possible.
10752 (sparc_prologue_frameless_p): Call examine_prologue directly.
10753 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10754 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10755 second argument.
10756 (SKIP_PROLOGUE): Likewise.
10757
15d72a92
JT
107582002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10759
10760 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10761 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10762 indicate that the condition it was testing is always true.
10763 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10764 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10765 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10766
accc6d1f
JT
107672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10768
10769 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10770 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10771 tdep->jb_pc and tdep->jb_elt_size.
10772 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10773 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10774 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10775 * alpha-nat.c (get_longjmp_target): Remove.
10776 (JB_ELEMENT_SIZE): Ditto.
10777 (JB_PC): Ditto.
10778 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10779 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10780 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10781 to alpha_get_longjmp_target.
10782 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10783 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10784 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10785
1bfdc549
AC
107862002-04-25 Andrew Cagney <ac131313@redhat.com>
10787
10788 * README: Update to GDB 5.2.
10789
1bd316f0
AC
107902002-04-25 Andrew Cagney <ac131313@redhat.com>
10791
10792 * gdbarch.sh (LC_ALL): Set to `c'.
10793
2e5ff58c
TR
107942002-04-25 Theodore A. Roth <troth@verinet.com>
10795
10796 * avr-tdep.c: Ran through gdb_indent.sh.
10797
e33ce519
TR
107982002-04-25 Theodore A. Roth <troth@verinet.com>
10799
10800 * MAINTAINERS: Add myself as AVR maintainer.
10801 * NEWS: Note new target avr.
10802
8818c391
TR
108032002-04-25 Theodore A. Roth <troth@verinet.com>
10804
10805 * Makefile.in: Add support for AVR target.
10806 * configure.tgt: Add support for AVR target.
10807 * avr-tdep.c: New file
10808 * config/avr/avr.mt: New file.
10809
79509c2d
TR
108102002-04-25 Theodore A. Roth <troth@verinet.com>
10811
10812 * MAINTAINERS: Add myself to write-after-approval.
10813
dac8068e
PM
108142002-04-24 Pierre Muller <ics.u-strasbg.fr>
10815
10816 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10817 with fprintf_unfiltered (gdb_stderr,....
10818
25bf3106
PM
108192002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10820
10821 Fix PR gdb/508.
10822 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10823
24467a86
PM
108242002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10825
10826 * p-exp.y: Also use new prev_lexptr variable
10827 to improve error reporting. Based on Michael Snyder
10828 2002-04-24 dated patch to c-exp.y.
10829
95b80706
JT
108302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10831
10832 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10833 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10834 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10835 to 0.
10836 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10837 and struct value.
10838 (FUNCTION_START_OFFSET): Remove.
10839 (BREAKPOINT): Ditto.
10840
e90cc612
JT
108412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10842
10843 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10844 * NEWS: Ditto.
10845
6c72f9f9
JT
108462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10847
10848 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10849 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10850 alpha_linux_pc_in_sigtramp.
10851 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10852 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10853 alpha_osf1_pc_in_sigtramp.
10854 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10855 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10856 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10857 alphafbsd_pc_in_sigtramp.
10858 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10859 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10860 alphanbsd_pc_in_sigtramp.
10861 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10862 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10863
5e4f3379
JT
108642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10865
10866 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10867
da8ca43d
JT
108682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10869
10870 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10871 alphanbsd-tdep.c.
10872 (alphanbsd-nat.o): New dependency list.
10873 (alphanbsd-tdep.o): Ditto.
10874 * NEWS: Note new native NetBSD/alpha configuration.
10875 * alphanbsd-nat.c: New file.
10876 * alphanbsd-tdep.c: Ditto.
10877 * configure.host (alpha*-*-netbsd*): New host.
10878 * configure.tgt (alpha*-*-netbsd*): New target.
10879 * config/alpha/nbsd.mh: New file.
10880 * config/alpha/nbsd.mt: Ditto.
10881 * config/alpha/nm-nbsd.h: Ditto.
10882 * config/alpha/tm-nbsd.h: Ditto.
10883
36a6271d
JT
108842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10885
10886 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10887 (alpha-osf1-tdep.o): New dependency list.
10888 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10889 and skip_sigtramp_frame members.
10890 * alpha-linux-tdep.c: Include gdbcore.h.
10891 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10892 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10893 * alpha-osf1-tdep.c: New file.
10894 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10895 alpha-osf1-dep.c.
10896 (alpha_frame_past_sigtramp_frame): New function.
10897 (alpha_dynamic_sigtramp_offset): Ditto.
10898 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10899 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10900 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10901 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10902 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10903 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10904 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10905 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10906 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10907 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10908 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10909 to find_solib_trampoline_target.
10910 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10911 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10912 (SKIP_TRAMPOLINE_CODE): Remove.
10913 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10914 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10915 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10916 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10917 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10918 (PROC_SIGTRAMP_MAGIC): Ditto.
10919 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10920 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10921 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10922 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10923 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10924
2f4bc57b
JT
109252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10926
10927 * NEWS: Note that Alpha targets are now multi-arch.
10928
665132f9
MS
109292002-04-24 Michael Snyder <msnyder@redhat.com>
10930
10931 * parser-defs.h (prev_lexptr): New external variable.
10932 * parse.c (parse_exp_1): Set prev_lexptr to null before
10933 calling the language-specific parser.
10934 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10935 (yyerror): Use prev_lexptr in error reporting.
10936
32872fa7
DJ
109372002-04-24 Daniel Jacobowitz <drow@mvista.com>
10938
10939 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10940 * gregset.h: If FILL_FPXREGSET is defined, provide
10941 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10942 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10943 is defined, call fill_fpxregset.
10944
57e76fac
MS
109452002-04-24 Roland McGrath <roland@frob.com>
10946
10947 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10948 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10949 (supply_gregset, supply_fpregset): New functions.
10950
10951 * gnu-nat.c (gnu_find_memory_regions): New function.
10952 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10953 (gnu_xfer_memory): Add a cast.
10954
f43845b3
MS
109552002-04-24 Michael Snyder <msnyder@redhat.com>
10956
361d1df0 10957 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10958 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10959 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10960 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10961 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10962 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10963
a0abec03
AC
10964Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10965
10966 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10967 NUM_PSEUDO_REGS can be used.
10968
d7bd68ca
AC
109692002-04-24 Andrew Cagney <ac131313@redhat.com>
10970
10971 * arch-utils.h: Update copyright.
10972
10973 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10974 * gdbarch.h, gdbarch.c: Re-generate.
10975
10976 * inferior.h (IN_SIGTRAMP): Delete definition.
10977 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10978 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10979
10980 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10981 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10982 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10983 (find_proc_framesize): Ditto.
10984 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10985 (alpha_init_extra_frame_info): Ditto.
10986 * infrun.c (handle_inferior_event): Ditto.
10987 (handle_inferior_event): Ditto.
10988 (check_sigtramp2): Ditto.
10989 * blockframe.c (create_new_frame): Ditto.
10990 (get_prev_frame): Ditto.
10991 * ppc-linux-tdep.c: Update comments.
10992 * i386-linux-tdep.c: Update comments.
10993 * breakpoint.c (bpstat_what): Update comment.
10994
4867e41e
DM
109952002-04-24 David S. Miller <davem@redhat.com>
10996
21d83aa5
DM
10997 * i960-tdep.c (register_in_window_p): New function.
10998 (i960_find_saved_register): Use it instead of
10999 REGISTER_IN_WINDOW_P.
11000 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11001
4867e41e
DM
11002 * symtab.h (find_stab_function_addr): Kill extern.
11003 * minsyms.c (find_stab_function_addr): Remove from here...
11004 * dbxread.c: ... to here, and mark it static.
11005
69cdf6a2
DM
110062002-04-20 David S. Miller <davem@redhat.com>
11007
11008 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11009 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11010
5a595886
DM
110112002-04-21 David S. Miller <davem@redhat.com>
11012
11013 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11014 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11015 (vx_write_register): Likewise.
11016
1da1a192
JB
110172002-04-23 J. Brobecker <brobecker@gnat.com>
11018
11019 * source.c (is_regular_file): New function.
11020 (openp): Check wether file to open is a regular file
11021 to avoid opening directories.
11022
baa6f10b
JT
110232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11024
11025 * findvar.c (extract_signed_integer): Cast printf argument
11026 to suppress format warning.
11027 (extract_unsigned_integer): Likewise.
11028 * infcmd.c (registers_info): Likewise.
11029 * top.c (get_prompt_1): Likewise.
11030 * valops.c (value_assign): Likewise.
11031 * valprint.c (print_decimal): Likewise.
11032
b2c4da81
L
110332002-04-22 H.J. Lu (hjl@gnu.org)
11034
11035 * c-exp.y (typebase): Support
361d1df0 11036
b2c4da81
L
11037 [long|long long|short] [signed|unsigned] [int|]
11038
11039 and
11040
11041 signed [long|long long|short] int
11042
f267bd6a
JT
110432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11044
11045 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11046 and vax-tdep.h.
11047 * vax-tdep.h: New file.
11048 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11049 Make several routines static.
11050 (vax_get_saved_register): New function.
11051 (vax_gdbarch_init): New function.
11052 (_initialize_vax_tdep): Register vax_gdbarch_init.
11053 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11054 Remove macros now under the control of gdbarch.
11055
da3c6d4a
MS
110562002-04-22 Michael Snyder <msnyder@redhat.com>
11057
11d3b27d
MS
11058 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11059 Some whitespace and coding standards tweaks.
da3c6d4a 11060
a33f7558
JT
110612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11062
11063 * vax-tdep.c: Include regcache.h.
11064 (vax_call_dummy_words): New.
11065 (sizeof_vax_call_dummy_words): New.
11066 (vax_fix_call_dummy): New function.
11067 (vax_saved_pc_after_call): Ditto.
11068 * config/vax/tm-vax.h: Don't include regcache.h.
11069 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11070 (CALL_DUMMY): Remove.
11071 (CALL_DUMMY_WORDS): Define.
11072 (SIZEOF_CALL_DUMMY_WORDS): Define.
11073 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11074
47a73475
MS
110752002-04-18 Michael Snyder <msnyder@redhat.com>
11076
11077 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11078
52efde73
JT
110792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11080
11081 * vax-tdep.c (vax_frame_chain): New function.
11082 (vax_push_dummy_frame): Ditto.
11083 (vax_pop_frame): Ditto.
11084 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11085 (FRAMELESS_FUNCTION_INVOCATION): Use
11086 generic_frameless_function_invocation_not.
11087 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11088 (POP_FRAME): Use vax_pop_frame.
11089
ea74468c
JT
110902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11091
11092 * vax-tdep.c (vax_store_struct_return): New function.
11093 (vax_extract_return_value): Ditto.
11094 (vax_store_return_value): Ditto.
11095 (vax_extract_struct_value_address): Ditto.
11096 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11097 vax_store_struct_return.
11098 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11099 (STORE_RETURN_VALUE): Use vax_store_return_value.
11100 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11101
5516aa92
JT
111022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11103
11104 * vax-tdep.c (vax_frame_saved_pc): New function.
11105 (vax_frame_args_address_correct): Ditto.
11106 (vax_frame_args_address): Ditto.
11107 (vax_frame_locals_address): Ditto.
11108 (vax_frame_num_args): Move code to be in proximity to
11109 other frame-related functions.
11110 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11111 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11112 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11113 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11114 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11115
36af0b35
L
111162002-04-22 H.J. Lu (hjl@gnu.org)
11117
11118 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11119 includedir.
11120
ab62c900
JT
111212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11122
11123 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11124 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11125 (FRAME_INIT_SAVED_REGS): New macro.
11126
7232b100
JT
111272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11128
11129 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11130
b70d2aee
JT
111312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11132
11133 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11134 where needed.
11135 (fetch_osf_core_registers): Likewise.
11136 (supply_gregset): Likewise.
11137
a0e8a2d1 111382002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 11139
a0e8a2d1
JB
11140 * symfile.h (get_section_index): Define.
11141 * symfile.c (get_section_index): New function.
11142 * mdebugread.c (SC_IS_SBSS): New macro.
11143 (SC_IS_BSS): Return true for the scBss storage class only, as
11144 the scSBss storage class refers to the .sbss section.
11145 (parse_partial_symbols): Discard the symbols which associated
11146 section does not exist.
11147 Make sure to use the .sbss section index for symbols which
11148 storage class is scBss, rather than using the .bss section index.
11149
51eb8b08
JT
111502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11151
11152 * vax-tdep.c: Update copyright years.
11153 (vax_register_name): New function.
11154 (vax_register_byte): Ditto.
11155 (vax_register_raw_size): Ditto.
11156 (vax_register_virtual_size): Ditto.
11157 (vax_register_virtual_type): Ditto.
11158 * config/vax/tm-vax.h: Update copyright years.
11159 (REGISTER_NAMES): Remove.
11160 (REGISTER_NAME): Define.
11161 (REGISTER_BYTE): Use vax_register_byte.
11162 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11163 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11164 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11165
6cc1c0a8
AC
111662002-04-21 Andrew Cagney <ac131313@redhat.com>
11167
11168 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11169 declaration
11170 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11171
9319a2fe
DM
111722002-04-21 David S. Miller <davem@redhat.com>
11173
11174 * arch-utils.c (generic_prologue_frameless_p): Kill
11175 SKIP_PROLOGUE_FRAMELESS_P code.
11176 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11177 references.
11178 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11179 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11180 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11181 references.
11182 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11183 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11184 (sparc_gdbarch_init): Pass it to
11185 set_gdbarch_prologue_frameless_p.
a0e8a2d1 11186
e9ed6d01
JT
111872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11188
11189 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11190 (alphabsd-nat.o): New dependency list.
11191
36012033
JT
111922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11193
11194 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11195 alphafbsd-tdep.c.
11196 (alpha-linux-tdep.o): New dependency list.
11197 (alphafbsd-tdep.o): Likewise.
11198
3379287a
JT
111992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11200
11201 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11202 to here...
11203 * alpha-tdep.c: ...from here.
11204 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11205
4bcbd6cb
JT
112062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11207
11208 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11209 prototype from here...
11210 * alpha-tdep.h: ...to here.
11211
b31da25e
AC
112122002-04-21 Andrew Cagney <ac131313@redhat.com>
11213
11214 * frame.h (selected_frame_level): Document as deprecated.
11215 (frame_relative_level): Declare.
11216 * stack.c (frame_relative_level): New function.
11217 (selected_frame_level): Document as deprecated.
11218 (select_frame): Do not set the selected_frame_level.
11219
11220 * stack.c (frame_info, record_selected_frame): Update.
11221 (frame_command, current_frame_command): Update.
11222 (up_silently_base, up_command, down_silently_base): Update.
11223 (down_command): Update.
11224 * inflow.c (kill_command): Update.
11225 * tracepoint.c (finish_tfind_command): Update.
11226 * corelow.c (core_open): Update.
11227 * thread.c (info_threads_command): Update.
11228 (do_captured_thread_select): Update.
11229 * infcmd.c (finish_command): Update.
11230 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11231
9c1d6fe5
JT
112322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11233
11234 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11235
ab89facf
AC
112362002-04-21 Andrew Cagney <ac131313@redhat.com>
11237
11238 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11239 type const.
11240
82a4efa1
JT
112412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11242
11243 * alphafbsd-tdep.c: Update copyright years. Include
11244 alpha-tdep.h.
11245 (alphafbsd_use_struct_convention): Make static.
11246 (alphafbsd_init_abi): New function.
11247 (_initialize_alphafbsd_tdep): New function.
11248 * config/alpha/tm-fbsd.h: Update copyright years.
11249 (USE_STRUCT_CONVENTION): Remove.
11250
44dffaac
JT
112512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11252
11253 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11254 an Alpha ABI variant.
11255 (alpha_abi_handler_list): Declare.
11256 (alpha_gdbarch_register_os_abi): New function.
11257 (alpha_gdbarch_init): Give registered ABI variant handlers a
11258 chance to tweak the gdbarch once we have set up defaults.
11259 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11260
65585be4
JT
112612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11262
11263 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11264 to standard_coerce_float_to_double.
11265 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11266
d9b023cc
JT
112672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11268
11269 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11270 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11271 from gdbarch_tdep rather than a constant.
11272 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11273 the default text address for all Alpha Unix ABIs.
11274 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11275 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11276
dc129d82
JT
112772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11278
11279 * alpha-tdep.h: New file. Includes several Alpha target constants
11280 taken from...
11281 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11282 let gdbarch deal with.
11283 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11284 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11285 to dependency list.
11286 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11287 Alpha target register names.
11288 * alphabsd-nat.c: Likewise.
11289 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11290 Alpha target register names. Make serveral routines static.
11291 (alpha_get_saved_register): New function.
11292 (alpha_abi_names): New.
11293 (process_note_abi_tag_sections): New function.
11294 (get_elfosabi): New function.
11295 (alpha_gdbarch_init): New function.
11296 (alpha_dump_tdep): New function.
11297 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11298
d49d1e0a
AC
112992002-04-21 Andrew Cagney <ac131313@redhat.com>
11300
11301 * frame.c (find_saved_register): Delete #ifdef
11302 HAVE_REGISTER_WINDOWS code.
11303 * config/sparc/tm-sparc.h: Update comments.
11304 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11305
92e8c9ed
AC
113062002-04-21 Andrew Cagney <ac131313@redhat.com>
11307
11308 * i960-tdep.c (i960_find_saved_register): New function.
11309 (i960_get_saved_register): New function.
11310 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11311 (i960_get_saved_register): Declare.
11312 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11313
e1925118
DM
113142002-04-20 David S. Miller <davem@redhat.com>
11315
11316 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11317
29673b29
AC
113182002-04-20 Andrew Cagney <ac131313@redhat.com>
11319
11320 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11321 instead of NUM_PSEUDO_REGS.
11322
6c86dcd5
DM
113232002-04-20 David S. Miller <davem@redhat.com>
11324
11325 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11326 GDB_MULTI_ARCH_PARTIAL
11327 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11328 define, let tm-sp64.h do it.
11329
aa40ec90
JT
113302002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11331
11332 * frame.c (find_saved_register): Avoid a NULL pointer
11333 dereference and actually walk the frame list.
11334
0f79675b
AC
113352002-04-20 Andrew Cagney <ac131313@redhat.com>
11336
11337 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11338 sorted in most most-recent-used order. Document.
11339 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11340
f91305dd 113412002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
11342
11343 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11344 instead of ->prev.
11345 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11346 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11347 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11348 instead of ->prev.
11349
73d322b1
EZ
113502002-04-19 Elena Zannoni <ezannoni@redhat.com>
11351
11352 Fix PR gdb/471.
11353 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11354 (build_builtin_type_vec128): Ditto.
11355 (append_composite_type_field): Fix calculation of type length in
11356 union case.
11357
ccd9a834
EZ
113582002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11359
11360 * config/djgpp/README: Update.
11361
11362 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11363 compiler warnings.
11364
a57f9e49
JT
113652002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11366
11367 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11368 (alpha_setup_arbitrary_frame): ...to this.
11369 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11370 for alpha_setup_arbitrary_frame.
11371
f4f9705a
AC
113722002-04-18 Andrew Cagney <cagney@redhat.com>
11373
11374 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11375 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11376
f4f9705a
AC
11377 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11378 * target.h (memory_breakpoint_from_pc): Update declaration.
11379 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11380
11381 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11382 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11383 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11384 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11385 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11386 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11387 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11388 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11389 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11390 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11391 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11392 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11393
11394 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11395 const pointer.
11396 * monitor.c (monitor_insert_breakpoint): Ditto.
11397 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11398
11399 * config/mcore/tm-mcore.h: Update copyright.
11400 * mem-break.c: Ditto.
11401 * xstormy16-tdep.c: Ditto.
11402
29f319b8
PM
114032002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11404
11405 * p-exp.y: Add precedence rule for '^' token.
11406 This removes the shift/reduce conflicts.
11407 Remove the comment concerning these shift/reduce conflicts.
11408
ebeac11a
EZ
114092002-04-18 Elena Zannoni <ezannoni@redhat.com>
11410
11411 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11412 (registers_powerpc_nofp): New register set for processors
11413 without floating point unit.
11414
27c31547
DM
114152002-04-18 David S. Miller <davem@redhat.com>
11416
11417 * MAINTAINERS: Add myself to write-after-approval.
11418
47a73475
MS
114192002-04-17 Michael Snyder <msnyder@redhat.com>
11420
11421 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11422
953836b2
AC
114232002-04-17 Andrew Cagney <ac131313@redhat.com>
11424
11425 * rs6000-tdep.c (frame_initial_stack_address): Use
11426 frame_register_read to read the alloca_reg.
11427
8b0d4340
AC
114282002-04-17 Andrew Cagney <ac131313@redhat.com>
11429
11430 * frame.c (find_saved_register): Find saved registers in the next
11431 not prev frame.
11432 Fix PR gdb/365.
11433
d8864532
AC
114342002-04-17 Andrew Cagney <ac131313@redhat.com>
11435
11436 * gdbarch.sh (LANG): Set to ``c''.
11437
36cc83a3 114382002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11439
36cc83a3 11440 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11441
2f4150cc 114422002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11443
11444 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11445 Update copyright.
11446
628703c6 11447 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11448 Also fix PR gdb/391.
361d1df0 11449
56157b4a
AC
114502002-04-14 Andrew Cagney <ac131313@redhat.com>
11451
11452 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11453 * aclocal.m4, configure: Re-generate.
11454 Fix PR gdb/391.
361d1df0 11455
6d1e3329
EZ
114562002-04-14 Elena Zannoni <ezannoni@redhat.com>
11457
11458 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11459 instead of tm_print_insn.
11460
cb06fa07
EZ
114612002-04-14 Elena Zannoni <ezannoni@redhat.com>
11462
11463 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11464
f208ba17
AC
114652002-04-14 Andrew Cagney <ac131313@redhat.com>
11466
11467 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11468 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11469 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11470
20f01a46
DH
114712002-04-12 Don Howard <dhoward@redhat.com>
11472
11473 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11474 max_user_call_depth.
11475 (init_cmd_lists): Initialize the new value;
11476 * cli/cli-script.c (execute_user_command): Limit the call depth of
11477 user defined commands. This avoids a core-dump when user commands
11478 are infinitly recursive.
11479
a88376a3
KB
114802002-04-12 Kevin Buettner <kevinb@redhat.com>
11481
11482 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11483 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11484 from tdep struct instead of DEFAULT_LR_SAVE.
11485 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11486 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11487 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11488
f2172603
MS
114892002-04-12 Michael Snyder <msnyder@redhat.com>
11490
694f61fb 11491 * Remote.c: Spelling fix.
20fe79c8
MS
11492 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11493 If no symbol found for "sbrk", try "_sbrk".
11494 (make_output_phdrs): Use bfd_section_name.
11495 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11496 * eval.c: Indentation fix-ups.
169a7369
MS
11497 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11498 in case it gets applied to an address that is already
11499 in the instruction space.
de74f71f
MS
11500 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11501 * symfile.c: Fix indentation, long lines.
f2172603
MS
11502 * source.c: White space fix-up.
11503
cda5a58a
AC
115042002-04-12 Andrew Cagney <cagney@redhat.com>
11505
11506 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11507 * frame.c (frame_register_read): New function. Return non-zero on
11508 success.
11509 (read_relative_register_raw_bytes_for_frame): Delete.
11510 (read_relative_register_raw_bytes): Delete.
11511 * frame.h (frame_register_read): Declare.
11512 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11513 * sh-tdep.c: Ditto.
11514 * infcmd.c (do_registers_info): Ditto.
11515 * hppa-tdep.c: Ditto.
11516 * rs6000-tdep.c: Ditto.
11517 * h8500-tdep.c: Ditto.
11518 * mips-tdep.c: Ditto.
11519 * h8300-tdep.c: Ditto.
11520 * z8k-tdep.c: Ditto.
11521
2ea5f656
KB
115222002-04-12 Kevin Buettner <kevinb@redhat.com>
11523
11524 From Jimi X <jimix@watson.ibm.com>:
11525 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11526 64-bit SysV ABI.
11527
27b15785
KB
115282002-04-12 Kevin Buettner <kevinb@redhat.com>
11529
11530 From Jimi X <jimix@watson.ibm.com>:
11531 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11532 bfd info.
11533
5d57ee30
KB
115342002-04-12 Kevin Buettner <kevinb@redhat.com>
11535
11536 From Jimi X <jimix@watson.ibm.com>:
11537 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11538 register sets for these processor variants.
11539
bc1e36ca
DJ
115402002-04-11 Daniel Jacobowitz <drow@mvista.com>
11541
bc1e36ca
DJ
11542 * regformats/reg-ppc.dat: Support FPSCR.
11543
e3f36dbd
KB
115442002-04-11 Kevin Buettner <kevinb@redhat.com>
11545
11546 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11547 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11548 Add fpscr as an invalid/unfetchable register.
11549 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11550 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11551 (fill_fpregset): Add support for register fpscr.
11552 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11553 (fill_gregset): Account for the fact that register ``mq'' might
11554 not exist.
11555 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11556 (registers_power): Add fpscr to register set at slot 71.
11557 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11558 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11559
943c9c25
MS
115602002-04-11 Michael Snyder <msnyder@redhat.com>
11561
11562 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11563 * configure: Regenerate.
11564 * config.in: Regenerate.
11565 * acconfig.h: Add define for _SYSCALL32.
11566 * core-sol2.c: Remove #define _SYSCALL32.
11567 * solib-legacy.c: Remove #define _SYSCALL32.
11568
d8c0a2e7
AC
115692002-04-10 Andrew Cagney <ac131313@redhat.com>
11570
11571 * stack.c (select_frame): Cleanup internal error message, do not
11572 use %p.
11573
7cc19214
AC
115742002-04-10 Andrew Cagney <ac131313@redhat.com>
11575
11576 * stack.c (select_frame): Check that selected_frame and the
11577 specified level are as expected.
11578 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11579 Update copyright.
11580 * frame.h (struct frame_info): Add field `level'. Update
11581 copyright.
11582 Work-in-progress PR gdb/464.
11583
67a2b77e
AC
115842002-04-10 Andrew Cagney <ac131313@redhat.com>
11585
11586 * maint.c (maint_print_section_info): Rename print_section_info.
11587 (print_bfd_section_info, print_objfile_section_info): Update.
11588 * inferior.h (struct gdbarch): Add opaque declaration.
11589 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11590 * gdbarch.h: Regenerate.
11591
8cfda98c
ML
115922002-04-10 Michal Ludvig <mludvig@suse.cz>
11593
11594 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11595 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11596 (kernel_u_size): Added.
11597 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11598 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11599
ca439ad2 116002002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11601
ca439ad2
JI
11602 * valarith.c (find_size_for_pointer_math): New function, either returns
11603 the size for a pointer's target, returns 1 for void *, or errors for
11604 incomplete types.
11605 (value_add, value_sub): use find_size_for_pointer_math.
11606
2f2893d9
DJ
116072002-04-09 Daniel Jacobowitz <drow@mvista.com>
11608
11609 * linux-low.c (linux_look_up_symbols): New hook.
11610 (linux_target_ops): Add linux_look_up_symbols.
11611 * remote-utils.c (decode_address): New function.
11612 (look_up_one_symbol): New function.
11613 * server.c (handle_query): Call target look_up_symbols hook.
11614 * server.h (look_up_one_symbol): Add prototype.
11615 * target.h (struct target_ops): Add look_up_symbols hook.
11616
96cb11df
AC
116172002-04-09 Andrew Cagney <ac131313@redhat.com>
11618
11619 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11620 override FP_REGNUM with frame->fp. Update copyright.
11621 * parse.c (num_std_regs, std_regs): Delete.
11622 (target_map_name_to_register): Do not search std_regs. Update
11623 function description.
11624 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11625 declarations. Update copyright.
11626 Fix PR gdb/251.
361d1df0 11627
97658e92
DJ
116282002-04-09 Daniel Jacobowitz <drow@mvista.com>
11629
11630 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11631 after the last symbol in a block.
11632
6044e3eb
PM
116332002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11634
11635 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11636 is non zero as a found symbol.
11637
0406ec40
AC
116382002-04-08 Andrew Cagney <ac131313@redhat.com>
11639
11640 * findvar.c: Include "builtin-regs.h".
11641 (value_of_register): Call value_of_builtin_reg when applicable.
11642 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11643 (target_map_name_to_register): Call
11644 builtin_reg_map_name_to_regnum.
11645 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11646 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11647 (builtin_regs_h): Define.
11648 (builtin-regs.o): New target.
11649 (findvar.o): Add $(builtin_regs_h).
11650 * builtin-regs.c, builtin-regs.h: New files.
11651 * std-regs.c: New file.
11652 Partial fix for PR gdb/251.
11653
56a6dfb9
KB
116542002-04-08 Kevin Buettner <kevinb@redhat.com>
11655
11656 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11657 it's no longer required.
11658
3a808432
AC
116592002-04-08 Andrew Cagney <ac131313@redhat.com>
11660
11661 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11662
7c40d541
KB
116632002-04-08 Kevin Buettner <kevinb@redhat.com>
11664
11665 From Jimi X <jimix@watson.ibm.com>:
11666 * rs6000-tdep.c (rs6000_software_single_step): Use
11667 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11668 and size. Use target_insert_breakpoint() and
11669 target_remove_breakpoint() to insert and remove breakpoints
11670 instead of explicit memory reads and writes.
11671
cc9836a8
KB
116722002-04-08 Kevin Buettner <kevinb@redhat.com>
11673
11674 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11675 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11676 ELF_OBJECT_FORMAT ifdef.
11677
7495d1dc
KB
116782002-04-08 Kevin Buettner <kevinb@redhat.com>
11679
11680 From Jimi X <jimix@watson.ibm.com>:
11681 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11682
4288e836
KB
116832002-04-08 Kevin Buettner <kevinb@redhat.com>
11684
11685 From Jimi X <jimix@watson.ibm.com>:
11686 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11687 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11688
a4e4e501
MK
116892002-04-07 Mark Kettenis <kettenis@gnu.org>
11690
11691 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11692 s/asprintf/xasprintf/.
11693 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11694
006defba
AC
116952002-04-07 Andrew Cagney <ac131313@redhat.com>
11696
11697 I believe Jeff Law denies responsability for this one:
11698 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11699 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11700 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11701 Work-around for PR gdb/366.
11702
7aa83cac
EZ
117032002-04-07 Elena Zannoni <ezannoni@redhat.com>
11704
11705 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11706 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11707 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11708
cf1fcca1
EZ
117092002-04-07 Elena Zannoni <ezannoni@redhat.com>
11710
11711 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11712 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11713 information.
11714
3f289e6f
AC
117152002-04-07 Andrew Cagney <ac131313@redhat.com>
11716
11717 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11718 maintainer.
11719
129188f6
AC
117202002-04-07 Andrew Cagney <ac131313@redhat.com>
11721
11722 * README (Reporting Bugs in GDB): Document the bug web page as the
11723 prefered way of submitting bugs.
11724 Fix PR gdb/402.
11725
1200cd6e
AC
117262002-04-06 Andrew Cagney <ac131313@redhat.com>
11727
11728 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11729 -1. Update comment.
11730 * gdbarch.h, gdbarch.c: Re-generate.
11731
2853c33c
AS
117322002-04-07 Andreas Schwab <schwab@suse.de>
11733
11734 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11735 buffer to regcache_collect.
11736
c2169756
AC
117372002-04-06 Andrew Cagney <ac131313@redhat.com>
11738
11739 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11740 * gdbarch.c, gdbarch.h: Re-generate.
11741
25f1b008
AC
117422002-04-06 Andrew Cagney <ac131313@redhat.com>
11743
11744 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11745 declaration. Fix -Werror.
11746
59263426
DJ
117472002-04-05 Daniel Jacobowitz <drow@mvista.com>
11748
11749 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11750 * gdbarch.c: Regenerate.
11751
f5db4da3
MS
117522002-04-05 Michael Snyder <msnyder@redhat.com>
11753
80f8a6eb
MS
11754 * breakpoint.c (clear_command): Rewrite middle section to
11755 combine two loops with identical control conditions.
11756 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11757 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11758
ad3dcc5c
L
117592002-04-05 H.J. Lu (hjl@gnu.org)
11760
11761 * solib-svr4.c (bkpt_names): Add "__start".
11762
f32e7a74
AC
117632002-04-04 Andrew Cagney <ac131313@redhat.com>
11764
11765 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11766 as test for 64 bit target.
11767
8227c0ff
AC
117682002-04-05 Andrew Cagney <ac131313@redhat.com>
11769
11770 * h8500-tdep.c (h8500_write_fp): Delete function.
11771 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11772 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11773 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11775 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11776 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11777 (s390_write_fp):
11778 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11779 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11780 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11781 (d10v_write_fp): Delete function.
11782 * inferior.h (write_fp, generic_target_write_fp): Delete
11783 declarations.
11784 * regcache.c (generic_target_write_fp): Delete function.
11785 (write_fp): Delete function.
11786 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11787 * gdbarch.h, gdbarch.c: Regenerate.
11788 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11789 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11790 (sparc64_write_fp): Delete declaration.
11791 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11792 (h8500_write_fp): Delete declaration.
11793
2757dd86
AC
117942002-04-04 Andrew Cagney <ac131313@redhat.com>
11795
11796 * sparc-tdep.c (sparc64_write_fp): Delete.
11797 (sparc_push_dummy_frame): Replace write_fp call with code to store
11798 the FP directly.
11799 (sparc_gdbarch_init): Do not initialize write_fp.
11800
c69255e1
KB
118012002-04-05 Kevin Buettner <kevinb@redhat.com>
11802
11803 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11804 clause.
11805
ae767bfb
JB
118062002-03-29 Jim Blandy <jimb@redhat.com>
11807
11808 * stack.c (get_selected_block): Add new argument `addr_in_block',
11809 used to return the exact code address we used to select the block,
11810 not just the block.
11811 * blockframe.c (get_frame_block, get_current_block): Same.
11812 * frame.h (get_frame_block, get_current_block,
11813 get_selected_block): Update declarations.
11814 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11815 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11816
84d2ac95
MS
118172002-04-05 Michael Snyder <msnyder@redhat.com>
11818
11819 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11820 warning message.
11821
596aa3bf
JB
118222002-04-05 J. Brobecker <brobecker@gnat.com>
11823
11824 * utils.c (xfullpath): New function.
11825 * defs.h (xfullpath): Add declaration.
11826 * source.c (openp): Use xfullpath in place of gdb_realpath to
11827 avoid resolving the basename part of filenames when the
11828 associated file is a symbolic link. This fixes a potential
11829 inconsistency between the filenames known to GDB and the
11830 filenames it prints in the annotations.
11831 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11832 to be able to match a filename with either the real filename, or
11833 the name of any symbolic link to this file.
11834 (lookup_partial_symtab): Ditto.
11835
c02f5703
MS
118362002-04-04 Michael Snyder <msnyder@redhat.com>
11837
11838 * breakpoint.c: Add support for hardware breakpoints in overlays.
11839 (overlay_events_enabled): New state variable.
11840 (insert_breakpoints): Use overlay_events_enabled to decide
11841 whether to attempt to set a breakpoint at the overlay load addr.
11842 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11843 (remove_breakpoint): Use overlay_events_enabled to decide
11844 whether breakpoints need to be removed from overlay load addr.
11845 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11846 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11847 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11848 disable_overlay_breakpoints): Update overlay_events_enabled.
11849
5fb290d7
DJ
118502002-04-04 Daniel Jacobowitz <drow@mvista.com>
11851
11852 * dwarf2read.c (struct function_range): New.
11853 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11854 (check_cu_functions): New.
11855 (read_file_scope): Initialize global function lists.
11856 Call dwarf_decode_line after processing children.
11857 (read_func_scope): Add to global function list.
11858 (dwarf_decode_lines): Call check_cu_functions everywhere
11859 record_line is called. Call record_line with a linenumber
11860 of 0 to mark sequence ends.
11861
7b3fabf0
ML
118622002-04-04 Michal Ludvig <mludvig@suse.cz>
11863
361d1df0 11864 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11865 change sync with glibc.
11866
bce58c09
JB
118672002-04-03 Jim Blandy <jimb@redhat.com>
11868
11869 * configure.in: Call AC_C_INLINE.
11870 * configure: Regenerated.
361d1df0 11871
2fccf04a
DJ
118722002-04-01 Daniel Jacobowitz <drow@mvista.com>
11873
11874 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11875 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11876
2d1bfe2e
MK
118772002-03-31 Mark Kettenis <kettenis@gnu.org>
11878
a5941fbf
MK
11879 * NEWS: Mention gcore support on FreeBSD/i386.
11880
a90cd31d
MK
11881 * fbsd-proc.c: New file.
11882 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11883 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11884
2d1bfe2e
MK
11885 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11886 while statement.
11887
9eb6e5a1
JB
118882002-03-29 Jim Blandy <jimb@redhat.com>
11889
11890 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11891 unescaped newlines in string literals, but newer ones don't. So
11892 escape them.
11893
f02df580
MS
118942002-03-26 Michael Snyder <msnyder@redhat.com>
11895 Andrew Cagney <cagney@redhat.com>
11896
361d1df0 11897 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11898 restore file to memory.
11899 * cli/cli-dump.h: New file.
11900 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11901 * NEWS: Mention new commands.
f02df580 11902
109f874e
MS
119032002-03-28 Michael Snyder <msnyder@redhat.com>
11904
11905 * symfile.c (symbol_file_add): Move test for null symbols to later.
11906
520f6ade
AC
119072002-03-27 Andrew Cagney <ac131313@redhat.com>
11908
11909 From veksler at il.ibm.com:
11910 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11911 the xstrduped original path.
11912 Fix PR gdb/417.
11913
d4654627
MS
119142002-03-27 Michael Snyder <msnyder@redhat.com>
11915
11916 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11917 * infcmd.c (_initialize_infcmd): Ditto.
11918 * language.c (_initialize_language): Ditto.
11919 * symfile.c (_initialize_symfile): Ditto.
11920 * top.c (_init_main): Ditto.
11921 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11922
6be8bc0c
EZ
119232002-03-27 Elena Zannoni <ezannoni@redhat.com>
11924
11925 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11926 vector registers handling.
11927 (skip_prologue): Handle new AltiVec instructions. Fill in new
11928 fields of frame data.
11929 (frame_get_saved_regs): Fill in information for AltiVec registers.
11930
12af6855
JB
119312002-03-27 Jim Blandy <jimb@redhat.com>
11932
11933 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11934 a function; leave this macro here to invoke that function.
11935 (symbol_init_mangled_name): Declaration for that function.
11936 * symtab.c (symbol_init_mangled_name): New function.
11937
dc672865
AC
119382002-03-27 Andrew Cagney <ac131313@redhat.com>
11939
11940 * valarith.c: Replace strerror with safe_strerror.
11941 * tracepoint.c: Ditto.
11942 * lin-lwp.c: Ditto.
11943 * go32-nat.c: Ditto.
11944 * inflow.c: Ditto.
11945 * gnu-nat.c: Ditto.
11946
d96429cd
AS
119472002-03-27 Andreas Schwab <schwab@suse.de>
11948
11949 * event-top.c (command_line_handler): Remove useless if.
11950
7e336ba1
AJ
119512002-03-27 Andreas Jaeger <aj@suse.de>
11952
11953 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11954 comment.
11955
de220d0f
ML
119562002-03-27 Michal Ludvig <mludvig@suse.cz>
11957
11958 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11959 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11960 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11961 (x86_64_linux_dr_get_status, supply_gregset),
11962 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11963 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11964 (x86_64_register_info_table): Add.
11965 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11966 (x86_64_register_raw_size, x86_64_register_virtual_type),
11967 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11968 general x86_64_register_info_table.
11969 (i386_gdbarch_init): gdbarch_register_bytes is now set
11970 dynamicaly during initialization.
11971 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11972 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11973
0e98d0a7
DJ
119742002-03-27 Daniel Jacobowitz <drow@mvista.com>
11975
11976 * gdbserver/server.c (main): Call target_signal_to_host_p
11977 and target_signal_to_host on signals received from the remote.
11978 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11979 target_signal_from_host on signals sent to the remote.
11980 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11981 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11982
3130066b
DJ
119832002-03-27 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * signals/signals.c: Include "server.h" in gdbserver build.
11986 (target_signal_from_name): Don't use STREQ.
11987 (_initialize_signals): Likewise. Don't include function in
11988 gdbserver build.
11989
9aedf4f4
DJ
119902002-03-27 Daniel Jacobowitz <drow@mvista.com>
11991
11992 * signals.c: Moved to...
11993 * signals/signals.c: Here.
7e336ba1 11994 * Makefile (signals.o): Update.
9aedf4f4 11995
3fa41cdb
JL
119962002-03-26 Jeff Law (law@redhat.com)
11997
11998 * somread.c (som_symtab_read): Remove some commented out code and
11999 updated related comments. Do not set the minimal symbol table to
12000 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12001 in a dynamic executable.
12002 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12003 where we are unable to find the minimal symbol for the given
12004 PC value.
12005
ee677e8d
MS
120062002-03-25 Jeff Law (law@redhat.com)
12007
12008 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12009
e76e1718
ML
120102002-03-25 Michal Ludvig <mludvig@suse.cz>
12011
12012 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12013
18a642a1
AC
120142002-03-23 Andrew Cagney <ac131313@redhat.com>
12015
12016 * command.h: Update copyright.
12017 (struct cmd_list_element): Replace definition with opaque
12018 declaration.
12019 (enum cmd_types): Document that it will eventually be moved to
12020 cli/cli-decode.h
12021 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12022 (MALLOCED_REPLACEMENT): Delete macro.
12023 * Makefile.in (cli_decode_h): Add $(command_h).
12024 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 12025 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
12026 * completer.c: Include "cli/cli-decode.h".
12027 * maint.c: Include "cli/cli-decode.h".
12028 * cli/cli-decode.h: Include "command.h".
12029 (enum command_class): Delete.
12030 (enum cmd_types): Comment out.
12031 (enum cmd_auto_boolean): Delete.
12032 (enum var_types): Delete.
12033
b2875cc0
AC
120342002-03-23 Andrew Cagney <ac131313@redhat.com>
12035
12036 * cli/cli-decode.c: Include "gdb_assert.h".
12037 (add_set_or_show_cmd): New static function.
12038 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12039 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12040 all fields, such as func, from the set command.
12041
3b45974e
AC
120422002-03-23 Andrew Cagney <ac131313@redhat.com>
12043
12044 * MAINTAINERS (sh-elf): Change warning flag to -w.
12045
823ca731
AC
120462002-03-23 Andrew Cagney <cagney@redhat.com>
12047
12048 * defs.h (error): Add printf format attribute.
12049 * thread-db.c (thread_from_lwp): Fix error format string.
12050 * stack.c (parse_frame_specification): Ditto.
12051 * cli/cli-decode.c (undef_cmd_error): Ditto.
12052 * scm-lang.c (scm_lookup_name): Ditto.
12053 * tracepoint.c (trace_error): Ditto.
12054 * remote-utils.c (usage): Ditto.
12055 * remote.c (compare_sections_command): Ditto.
12056 Fix PR gdb/328.
12057
0e101458
AC
120582002-03-22 Andrew Cagney <ac131313@redhat.com>
12059
12060 * gdbtypes.c (append_composite_type_field): New function.
12061 (init_composite_type): New function.
12062 * gdbtypes.h (append_composite_type_field): Declare.
12063 (init_composite_type): Ditto.
12064
8e0662df
EZ
120652002-03-22 Elena Zannoni <ezannoni@redhat.com>
12066
12067 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 12068 function.
8e0662df
EZ
12069 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12070 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12071 structure returning convention for SYSV ABI case, but not
12072 for GNU/Linux, FreeBSD, or NetBSD.
12073
3121eff0
DJ
120742002-03-22 Daniel Jacobowitz <drow@mvista.com>
12075
12076 * symtab.h (lookup_block_symbol): Add mangled_name argument
12077 to prototype.
12078
12079 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12080 with new mangled_name argument.
12081 * linespec.c (decode_line_1): Likewise.
12082 * valops (value_of_this): Likewise.
12083 * symtab.c (lookup_transparent_type): Likewise.
12084 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12085 (lookup_symbol): If we are given a mangled name, pass it down
12086 to lookup_symbol_aux.
12087 (lookup_block_symbol): If we are given a mangled name to check
12088 against, only return symbols which match it.
12089
349b409f
CF
120902002-03-22 Christopher Faylor <cgf@redhat.com>
12091
12092 * win32-nat.c (child_create_inferior): Check for proper shell to use
12093 here, in case the user changes it on the fly.
12094 (_initialize_inftarg): Remove shell path considerations.
12095
2a873819
EZ
120962002-03-21 Elena Zannoni <ezannoni@redhat.com>
12097
12098 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12099 for gdbarch_max_register_raw_size and max_register_virtual_size.
12100 Adjust copyright year.
12101
a1b9830c
DJ
121022002-03-21 Daniel Jacobowitz <drow@mvista.com>
12103
12104 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12105 in a function to cover the entire beginning of the function
12106 as well if it does not already.
12107
8b5790f2
TR
121082002-03-21 Tom Rix <trix@redhat.com>
12109
12110 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12111 (rs6000_ptrace64): Renamed from ptrace64.
12112
bdbe5747
MH
121132002-03-20 Martin M. Hunt <hunt@redhat.com>
12114
12115 * gdbserver/remote-utils.c (remote_open): Don't call
12116 getprotobyname, we're all using TCP here so just use
12117 IPPROTO_TCP.
7e336ba1 12118 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
12119
121202002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 12121
bdbe5747
MH
12122 * regcache.c (_initialize_regcache): No need to call
12123 build_regcache() at this time; it gets called whenever
12124 the gdbarch changes.
12125
7781cd62
DB
121262002-03-20 David O'Brien <obrien@FreeBSD.org>
12127
12128 * sparc-nat.c: Include sys/param.h where possible.
12129
f65ca430
DJ
121302002-03-20 Daniel Jacobowitz <drow@mvista.com>
12131
12132 Fix PR gdb/422.
12133 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12134 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12135 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12136 complex types.
12137 * stabsread.c (rs6000_builtin_type): Likewise.
12138 (read_sun_floating_type): Likewise.
12139
0c867556
PS
121402002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12141
12142 * stabsread.c (read_member_functions): Remove skip code for duplicate
12143 constructor/destructor methods. Use standard parsing for these
12144 methods and just do not chain them to the list of methods after
12145 parsing.
12146
12b9c64f
AO
121472002-03-19 Alexandre Oliva <aoliva@redhat.com>
12148
12149 * coffread.c: Remove redundant static declarations. Replace
12150 occurrences of `PTR' with `void *'.
12151 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12152 * top.h (quit_cover): Likewise.
12153 * defs.h (catch_errors): Likewise.
12154
349c5d5f
AC
121552002-03-18 Andrew Cagney <ac131313@redhat.com>
12156
12157 * defs.h (XMALLOC): Define.
12158 * gdb-events.sh (XMALLOC): Delete macro.
12159 * gdb-events.c, gdb-events.h: Regenerate.
12160 * gdbarch.sh (XMALLOC): Delete macro.
12161 * gdbarch.c: Regenerate.
12162 * serial.c (XMALLOC): Delete macro.
12163 * ui-file.c (XMALLOC): Ditto.
12164 * ser-unix.h (XMALLOC): Ditto.
12165 * sh-tdep.c (XMALLOC): Ditto.
12166 * ui-out.c (XMALLOC): Ditto.
12167 * utils.c (XMALLOC): Ditto.
12168 * i386-tdep.c (XMALLOC): Ditto.
12169 * gdb-events.c (XMALLOC): Ditto.
12170 * d10v-tdep.c (XMALLOC): Ditto.
12171 * cli-out.c (XMALLOC): Ditto.
12172
12173 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12174 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12175 * ui-file.c, ui-out.c: Ditto.
12176
7d0766f3
AC
121772002-03-18 Andrew Cagney <ac131313@redhat.com>
12178
12179 * command.h (struct cmd_list_element): Add field context.
12180 (set_cmd_context, get_cmd_context): Declare.
12181 * cli/cli-decode.h: Ditto.
12182 * cli/cli-decode.c (get_cmd_context): New function.
12183 (set_cmd_context): New function.
12184 (add_cmd): Initialize context.
12185 Part of fixing PR gdb/145 and PR gdb/146.
12186
5913bcb0
AC
121872002-03-17 Andrew Cagney <ac131313@redhat.com>
12188
1868c04e
AC
12189 * cli/cli-decode.c (cmd_type): New function.
12190 * command.h (cmd_type): Declare.
12191 * infrun.c (set_schedlock_func): Call function cmd_type.
12192 * kod.c (kod_set_os): Call cmd_type.
12193 * cris-tdep.c (cris_version_update): Use function cmd_type.
12194 (cris_mode_update, cris_abi_update): Ditto.
12195
5913bcb0
AC
12196 * command.h: (execute_cmd_post_hook): Declare.
12197 (execute_cmd_pre_hook): Declare.
12198 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12199 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12200 functions. Execute pre/post hook while ensuring that afterwords
12201 hook_in is cleared.
12202 * top.c (execute_command): Use execute_cmd_post_hook, and
12203 execute_cmd_pre_hook to execute pre/post commands.
12204 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12205 hook_stop_stub.
12206 (hook_stop_stub): Call execute_cmd_pre_hook.
12207
b51450c9
AC
122082002-03-17 Andrew Cagney <ac131313@redhat.com>
12209
12210 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12211 set'' and this leads to a core dump. Move xstrdup of
12212 operating_system to after check that it is not NULL.
12213
f66c9f11
AC
122142002-03-17 Andrew Cagney <ac131313@redhat.com>
12215
8e694ecf
AC
12216 * kod.c (kod_set_os): Remove unnecessary check that
12217 ``command->type'' is set_cmd.
12218
f66c9f11
AC
12219 * valprint.c (set_input_radix): Use input_radix.
12220 (set_output_radix): Use output_radix.
12221 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12222 isn't reverted.
12223
9d01611c
AC
122242002-03-16 Andrew Cagney <ac131313@redhat.com>
12225
12226 * value.h (struct value): Delete field ``substring_addr''. Change
12227 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
12228 force_core_addr_align and force_pointer_aligh.
12229
12230 * value.h (struct value): Fix typo in above change.
9d01611c 12231
4156bb53
PS
122322002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12233
12234 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12235 to fix internal_error from ``maintenance print architecture''.
12236
0e5e3ea6
PS
122372002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12238
12239 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12240 for gcc versions after gcc-2.8.1.
12241
9b013045
PS
122422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12243
12244 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12245 for method resolution. Restore adjustment of ``this'' pointer after
12246 calling value_struct_elt, which was accidentally removed during the
12247 HP merge.
12248
376c9600
AC
122492002-03-15 Andrew Cagney <ac131313@redhat.com>
12250
12251 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12252 value_of_register.
12253 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12254 get_saved_register.
12255 * value.h (value_of_register): Update.
12256
a4db0f07
RH
122572002-03-14 Richard Henderson <rth@redhat.com>
12258
12259 * configure.in: Detect declaration for canonicalize_file_name.
12260 * utils.c (canonicalize_file_name): Declare, if needed.
12261 (gdb_realpath): Prefer realpath if available and usable.
12262 * config.in, configure: Rebuild.
12263
96383835
RH
122642002-03-14 Richard Henderson <rth@redhat.com>
12265
12266 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12267 a constant array bound.
12268
12269 * MAINTAINERS: Add myself to write-after-approval.
12270
75245b24
MS
122712002-03-14 Michael Snyder <msnyder@redhat.com>
12272
12273 * symfile.c (syms_from_objfile): Return immediately if no syms.
12274 (symbol_file_add): Return immediately if no syms.
12275 (find_sym_fns): Return immediately if no syms.
12276
e641a1ca
ML
122772002-03-13 Michal Ludvig <mludvig@suse.cz>
12278
12279 * gdbserver/remote-util.c (remote_open): Print remote-side's
12280 IP address when remote debugging over the network.
7e336ba1 12281
df08bfec
DB
122822002-03-12 David O'Brien <obrien@FreeBSD.org>
12283
12284 * config/sparc/fbsd.mh: Fix copyright.
12285 * config/sparc/fbsd.mt: Likewise.
12286
9a57864f
RE
122872002-03-11 Richard Earnshaw <rearnsha@arm.com>
12288
12289 * MAINTAINERS: Fix typo in name of gdb warnings option.
12290 (x86-64): Fix formating so that this can be parsed by awk.
12291
dd7bf85e
DJ
122922002-03-10 Daniel Jacobowitz <drow@mvista.com>
12293
12294 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12295 * defs.h: Include "gdb/signals.h".
12296 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12297
33a0a2ac
ML
122982002-03-10 Michal Ludvig <mludvig@suse.cz>
12299
12300 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 12301 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
12302 from x86-64-tdep.h
12303
dd824b04
DJ
123042002-03-10 Daniel Jacobowitz <drow@mvista.com>
12305 Don Howard <dhoward@redhat.com>
12306
12307 * mips-tdep.c (ST0_FR): Define.
12308 (mips2_fp_compat): New function, temporarily disabled.
12309 (mips_read_fp_register_single): New function.
12310 (mips_read_fp_register_double): New function.
12311 (mips_print_register): Use them.
12312 (do_fp_register_row): Likewise.
12313
6a41ff59
AC
123142002-03-09 Andrew Cagney <ac131313@redhat.com>
12315
12316 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12317 approval''.
12318
4ea09c10
PS
123192002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12320
12321 * stabsread.c (read_member_functions): Fix is_stub test for
12322 static member functions, improve comment.
12323
6ccc741d
RE
123242002-03-07 Richard Earnshaw <rearnsha@arm.com>
12325
12326 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12327 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12328 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12329 commands that set boolean values.
12330 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12331 (arm_rdi_resume): Always initialize PC.
12332 (arm_rdi_open): Don't use rslt as a boolean.
12333 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12334 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12335 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12336 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12337
438013df
AO
123382002-03-06 Alexandre Oliva <aoliva@redhat.com>
12339
12340 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12341 * configure: Rebuilt.
12342
70ed8774
SC
123432002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12344
12345 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12346 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12347
5ba2abeb
AC
123482002-03-06 Andrew Cagney <ac131313@redhat.com>
12349
12350 * cli/cli-decode.c (set_cmd_completer): New function.
12351 * command.h (set_cmd_completer): Declare.
12352 * cli/cli-decode.h (set_cmd_completer): Ditto.
12353
12354 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12355 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12356 * win32-nat.c (_initialize_inftarg): Ditto.
12357 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12358 * proc-api.c (_initialize_proc_api): Ditto.
12359 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12360 * source.c (_initialize_source): Ditto.
12361 * exec.c (_initialize_exec): Ditto.
12362 * solib.c (_initialize_solib): Ditto.
12363 * top.c (init_main): Ditto.
12364 * tracepoint.c (_initialize_tracepoint): Ditto.
12365 * symfile.c (_initialize_symfile): Ditto.
12366 * printcmd.c (_initialize_printcmd): Ditto.
12367 * infcmd.c (_initialize_infcmd): Ditto.
12368 * corefile.c (_initialize_core): Ditto.
12369
f779ca99
AC
123702002-03-05 Andrew Cagney <ac131313@redhat.com>
12371
12372 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12373
01a3934b
AC
123742002-03-05 Andrew Cagney <ac131313@redhat.com>
12375
12376 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12377
37057839
AC
123782002-03-05 Andrew Cagney <ac131313@redhat.com>
12379
12380 * NEWS: Update headings, 5.2 has branched.
12381
c6ecbae5
DJ
123822002-03-04 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12385 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12386 (register_addr, REGISTER_RAW_SIZE): Likewise.
12387 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12388 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12389
e9f30c21
ML
123902002-03-03 Michal Ludvig <mludvig@suse.cz>
12391
12392 * MAINTAINERS (x86-64): Add myself.
12393 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12394 changed value_ptr -> struct value *
12395
54394ac3
DB
123962002-03-01 David O'Brien <obrien@FreeBSD.org>
12397
12398 * configure.host (sparc64-*-freebsd): Add.
12399 * configure.tgt: Likewise.
12400 * config/sparc/fbsd.mh: New file.
12401 * config/sparc/fbsd.mt: Likewise.
12402 * config/sparc/nm-fbsd.h: Likewise.
12403 * config/sparc/tm-fbsd.h: Likewise.
12404
bfe95955
DJ
124052002-03-01 Daniel Jacobowitz <drow@mvista.com>
12406
12407 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12408 regformats/reg-s390x.dat.
12409
f33c6cbf
AC
124102002-03-01 Andrew Cagney <ac131313@redhat.com>
12411
12412 * utils.c: Add FIXME explaining true/false problem.
12413
5ecaa7dd
AC
124142002-02-28 Andrew Cagney <ac131313@redhat.com>
12415
12416 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12417
2a251cc2
MC
124182002-02-28 Michael Chastain <mec@shout.net>
12419
12420 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12421
6a8031a3 124222002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12423
12424 * gdbserver/linux-s390-low.c: New file.
12425 * regformats/reg-s390.dat: New file.
12426 * regformats/reg-s390x.dat: New file.
12427 * gdbserver/configure.srv: Add S/390.
12428 * gdbserver/Makefile.in: Add S/390.
12429 * configure.tgt: Enable gdbserver for S/390.
12430
ac469903
EZ
124312002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12432
12433 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12434 first line of the doc string for "info dos", except at the end of
12435 the sentence, since the short help stops at the first period.
12436
985cb1a3
JM
124372002-02-28 Jason Merrill <jason@redhat.com>
12438
12439 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12440
c570663e
FF
124412002-02-27 Fred Fish <fnf@redhat.com>
12442
12443 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12444 comment (dumy -> dummy).
12445
43630227
PS
124462002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12447
12448 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12449
b84911e8
RB
124502002-02-27 Rodney Brown <rbrown64@csc.com.au>
12451
12452 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12453
58caa3dc
DJ
124542002-02-27 Daniel Jacobowitz <drow@mvista.com>
12455
12456 * gdbserver/acconfig.h: New file.
12457 * gdbserver/i387-fp.c: New file.
12458 * gdbserver/i387-fp.h: New file.
12459 * gdbserver/linux-x86-64.c: New file.
12460 * regformats/reg-x86-64.dat: New file.
12461 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12462 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12463 * gdbserver/configure.in: Add support for regsets.
12464 * gdbserver/config.in: Regenerate.
12465 * gdbserver/configure: Regenerate.
12466 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12467 * gdbserver/linux-low.h: New file.
12468 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12469 for regsets.
12470 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12471 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12472 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12473 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12474 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12475 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12476 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12477 "i387-fp.h". Add PTRACE_GETREGS and friends.
12478 * gdbserver/regcache.c (supply_register): New function.
12479 (supply_register_by_name): New function.
12480 (collect_register): New function.
12481 (collect_register_by_name): New function.
12482
93652174
DJ
124832002-02-27 Daniel Jacobowitz <drow@mvista.com>
12484
12485 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12486 (config.status): Add configure.srv dependency.
12487 (server_h): Add config.h dependency.
12488
a02e4a61
DJ
124892002-02-27 Daniel Jacobowitz <drow@mvista.com>
12490
12491 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12492 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12493 * gdbserver/configure.srv: Change i386-*-linux* to use
12494 reg-i386-linux.o.
12495
ce0eebec
AC
124962002-02-26 Andrew Cagney <ac131313@redhat.com>
12497
12498 * x86-64-tdep.c: Re-indent. Update copyright date.
12499
82dbc5f7
AC
125002002-02-26 Andrew Cagney <ac131313@redhat.com>
12501
12502 From Michal Ludvig <mludvig@suse.cz>:
12503 * x86-64-tdep.c (value.h): Delete.
12504 (gdb_assert.h): Include.
12505 (x86_64_register_convert_to_virtual,
12506 x86_64_register_convert_to_raw ): Add check which lets only
12507 floating-point values to be converted.
12508 (value_push): Delete.
12509 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12510 (i386_gdbarch_init): Number of register_bytes fixed.
12511
e4621584
AC
125122002-02-26 Andrew Cagney <ac131313@redhat.com>
12513
12514 * MAINTAINERS: Add x86-64 target.
12515
81a9a963
AC
125162002-02-26 Andrew Cagney <ac131313@redhat.com>
12517
12518 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12519 * osfsolib.c (solib_map_sections): Ditto.
12520 * irix5-nat.c (solib_map_sections): Ditto.
12521 * corelow.c (gdb_check_format): Ditto.
12522 * symfile.c (symfile_bfd_open): Ditto.
12523 * solib.c (solib_map_sections): Ditto.
12524 Fix PR gdb/354.
7e336ba1 12525
0f017ab9
AC
125262002-02-26 Andrew Cagney <ac131313@redhat.com>
12527
12528 * remote.c (_initialize_remote): By default, disable ``e'' and
12529 ``E'' step out-of-range packets.
12530
75738c29
AS
125312002-02-26 Andreas Schwab <schwab@suse.de>
12532
12533 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12534 m68k_linux_frame_saved_pc.
12535 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12536 in_sigtramp.
12537 (SIGCONTEXT_PC_OFFSET): Remove.
12538 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12539 m68k_linux_sigtramp_saved_pc): New functions.
12540 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12541 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12542 (UCONTEXT_PC_OFFSET): Define.
12543 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12544 non-RT and RT signal trampolines.
12545
7e8ed687
RE
125462002-02-26 Richard Earnshaw <rearnsha@arm.com>
12547
12548 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12549 (TARGET_NBPG, STACK_END_ADDR): Delete
12550 (VARIABLES_INSIDE_BLOCK): Delete.
12551
6972bc8b
AC
125522002-02-25 Andrew Cagney <ac131313@redhat.com>
12553
12554 * utils.c (perror_with_name): Make string parameter constant.
12555 (print_sys_errmsg): Ditto.
12556 (query): Ditto.
12557 * defs.h (perror_with_name): Update.
12558 (print_sys_errmsg): Update.
12559 (query): Update.
12560
aa32f823
DJ
125612002-02-25 Daniel Jacobowitz <drow@mvista.com>
12562
12563 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12564 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12565
19caaa45
PS
125662002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12567
12568 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12569 if it already matches the current architecture from the exec file.
12570 Include arch-utils.h for gdbarch_info_init prototype.
12571 * Makefile.in (rs6000-nat.o): Update dependencies.
12572
d951901f
EZ
125732002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12574
12575 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12576 list of exported variables.
12577
7ea81414
DJ
125782002-02-24 Daniel Jacobowitz <drow@mvista.com>
12579
12580 * gdbserver/configure.srv: New file.
12581 * gdbserver/configure.in: Use configure.srv instead
12582 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12583 from it.
12584 * gdbserver/configure: Regenerated.
12585 * gdbserver/terminal.h: New file.
12586 * gdbserver/Makefile.in: Update for configure changes. Remove
12587 more unneeded include paths.
12588
080fe24b
AC
125892002-02-24 Andrew Cagney <ac131313@redhat.com>
12590
12591 From wiz at danbala:
12592 * config/sparc/tm-sp64.h: Fix grammar and typos.
12593 Fix PR gdb/287.
12594
8605d56e
AC
125952002-02-24 Andrew Cagney <ac131313@redhat.com>
12596
12597 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12598 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12599 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12600 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12601 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12602 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12603 * s390-tdep.c: Ditto.
92362027
AC
12604 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12605 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12606 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12607 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12608 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12609 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12610 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12611 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12612 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12613 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12614 Fix PR gdb/378.
7e336ba1 12615
8ed32cc0
AC
126162002-02-23 Andrew Cagney <ac131313@redhat.com>
12617
a3007b6f
AC
12618 * lin-thread.c: Delete file.
12619 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12620 to gdb_proc_service.h.
12621 * configure: Re-generate.
12622
50a9e2f1
AC
12623 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12624 * serial.c (serial_open): Delete check for "ocd".
12625 Fix PR gdb/349.
12626
8b6e7932
AC
12627 * Makefile.in (linux-thread.o): Delete target.
12628 * linux-thread.c: Delete file.
12629
d155c46b
AC
12630 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12631 renamed SH files to be consistent.
12632
8ed32cc0
AC
12633 * symtab.c (sort_search_symbols): Use xfree.
12634
0e18d038
RE
126352002-02-23 Richard Earnshaw <rearnsha@arm.com>
12636
12637 * arm-linux-tdep.c (arm_linux_init_abi): Register
12638 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12639 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12640 definition with undef, since we don't want the sysvr4 definition.
12641 (SKIP_TRAMPOLINE_CODE): Likewise.
12642
27aac7ff
AC
126432002-02-23 Andrew Cagney <ac131313@redhat.com>
12644
12645 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12646
12647 * configure.in: (AC_CHECK_FUNCS) Added test for
12648 canonicalize_file_name Regenerated.
12649 * config.in, configure: Regenerated.
12650 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12651 defined use canonicalize_file_name.
7e336ba1 12652
65a6e0ee
MC
126532002-02-23 Michael Chastain <mec@shout.net>
12654
12655 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12656
47b95330
AC
126572002-02-23 Andrew Cagney <ac131313@redhat.com>
12658
12659 * README: Remove references to cygnus.com.
12660 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12661 dot com'' form. Remove references to cygnus.com and sourceware.
12662
696f451b
AC
126632002-02-23 Andrew Cagney <ac131313@redhat.com>
12664
12665 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12666 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12667 1003.1-2001 no longer allows "head -1".
12668 * gdb/Makefile.in (version.c): Likewise.
12669 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12670 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12671 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12672
bbaca940
AC
126732002-02-23 Andrew Cagney <ac131313@redhat.com>
12674
12675 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12676 * command.h (cmd_cfunc_eq): Declare.
12677 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12678
12679 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12680 ``struct cmd_list_element *''.
12681 * cli/cli-cmds.c (is_complete_command): Update. Use
12682 cmd_cfunc_eq.
12683 * top.c (execute_command): Pass the command to
12684 is_complete_command.
12685 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12686
b8b8b047
AC
126872002-02-23 Andrew Cagney <ac131313@redhat.com>
12688
12689 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12690 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12691 architecture defines.
12692 * s390-tdep.c (s390_gdbarch_init): Likewise.
12693
19d3fc80
RE
126942002-02-23 Richard Earnshaw <rearnsha@arm.com>
12695
12696 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12697 (arm_linux_push_arguments): Likewise.
12698 (arm_linux_init_abi): Register them. Also register linux-specific
12699 call_dummy_words.
12700 (find_minsym_and_objfile): Use strcmp, not STREQ.
12701 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12702 (arm_linux_call_dummy_words): Delete declaration.
12703 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12704 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12705 declarations.
12706 (LOWEST_PC): Delete.
12707
3ab13650
PS
127082002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12709
12710 * maint.c (print_section_info): Do not prepend `0x' to filepos
12711 output, it will be handled by local_hex_string_custom.
12712
19d3fc80 127132002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12714
12715 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12716 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12717 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12718
d85a5daf
JB
127192002-02-22 Jim Blandy <jimb@redhat.com>
12720
12721 Indicate that the bcache functions don't change the strings
12722 they're passed.
12723 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12724 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12725
eeb25b8a
PM
127262002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12727
12728 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12729
6badb179
CF
127302002-02-21 Christopher Faylor <cgf@redhat.com>
12731
12732 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12733 find the complete path to a loaded DLL.
12734
e8717518
FF
127352002-02-21 Fred Fish <fnf@redhat.com>
12736
12737 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12738 that marks the end of the range of a function, enter a line number
12739 entry that has a line number of zero and a PC offset that matches
12740 the end of the function. This starts a range of PC's for which no
12741 line number information is known.
12742 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12743 PC's for which no line number info is found (line number is zero)
12744 then we didn't find any valid line information.
12745 * symtab.h: Document use of zero line number entry.
12746
9abe5450
EZ
127472002-02-21 Elena Zannoni <ezannoni@redhat.com>
12748
12749 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12750 (have_ptrace_getvrregs): Define for run time checks.
12751 (gdb_vrregset_t): New type for Altivec register handling.
12752 (fetch_register, store_register): Fetch/store altivec register
12753 when needed.
12754 (fetch_altivec_register, store_altivec_register): New functions.
12755 (supply_vrregset, fill_vrregset): New functions.
12756 (fetch_altivec_registers, store_altivec_registers): New functions.
12757 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12758 registers as well.
12759
aaa38bb5
AJ
127602002-02-21 Jiri Smid <smid@suse.cz>
12761
12762 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12763
b34db576
RE
127642002-02-21 Richard Earnshaw <rearnsha@arm.com>
12765
12766 * Makefile.in (armnbsd-nat.o): Update dependencies.
12767 * armnbsd-nat.c (supply_gregset): New function. Common code to
12768 supply the integer register set.
12769 (supply_fparegset): New function. Similar for FPA registers.
12770 (fetch_regs, fetch_fp_regs): Use them.
12771 (fetch_core_registers): Likewise.
12772 (fetch_elfcore_registers): New function.
12773 (arm_netbsd_elfcore_fns): New core-file type specification.
12774 (_initialize_arm_netbsd_nat): Register it.
12775
3e56fc4b
RE
127762002-02-21 Richard Earnshaw <rearnsha@arm.com>
12777
12778 * armnbsd-nat.c: Include gdbcore.h.
12779 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12780 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12781 'void' to declaration, to shut up ARI.
12782 (fetch_core_registers): Make static. Rewrite using supply_register.
12783 (arm_netbsd_core_fns): New core-file type specification.
12784 (_initialize_arm_netbsd_nat): New function.
12785
097f6b0b
CF
127862002-02-21 Christopher Faylor <cgf@redhat.com>
12787
12788 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12789 value.
12790
c914e0cc
CF
127912002-02-20 Christopher Faylor <cgf@redhat.com>
12792
12793 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12794 fails.
12795
385fa495
DJ
127962002-02-20 Daniel Jacobowitz <drow@mvista.com>
12797
12798 * jv-exp.y (parse_number): Change type of implicit longs
12799 to builtin_type_uint64.
12800
e5f1222d
DJ
128012002-02-20 Daniel Jacobowitz <drow@mvista.com>
12802
12803 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12804 to be an integer instead of a `union wait'.
12805
75c9abc6
DJ
128062002-02-20 Daniel Jacobowitz <drow@mvista.com>
12807
12808 * mips-linux-nat.c: Call the operating system GNU/Linux.
12809 * mips-linux-tdep.c: Likewise.
12810 * mips-tdep.c: Likewise.
12811
551792a5
DJ
128122002-02-20 Daniel Jacobowitz <drow@mvista.com>
12813
12814 Fix PR gdb/265.
12815 * jv-exp.y (parse_number): Handle 64-bit integers.
12816
ee6e2b82
DJ
128172002-02-20 Daniel Jacobowitz <drow@mvista.com>
12818
12819 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12820 AC_STDC_HEADERS to AC_HEADER_STDC.
12821 * gdbserver/configure: Regenerated.
12822
a48442a0
RE
128232002-02-20 Richard Earnshaw <rearnsha@arm.com>
12824
12825 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12826 is defined.
12827 * sparc-tdep.c (get_longjmp_target): Likewise.
12828
fe419ffc
RE
128292002-02-20 Richard Earnshaw <rearnsha@arm.com>
12830
12831 * News: Add news about ARM and Multi-arch. Mention the new target
12832 arm*-*-netbsd*.
12833
5832ed7e
JB
128342002-02-19 Jim Blandy <jimb@redhat.com>
12835
12836 * stabsread.c (error_type_complaint): Improve error message.
12837
84563040
DJ
128382002-02-19 Daniel Jacobowitz <drow@mvista.com>
12839
12840 * gdbserver/README: Update documentation.
12841 * gdbserver/configure.in: Update configury to match documentation.
12842 * gdbserver/Makefile.in: Likewise.
12843 * gdbserver/configure: Regenerated.
12844 * gdbserver/aclocal.m4: New file, generated by aclocal.
12845 * gdbserver/config.in: New file, generated by autoheader.
12846
375fd65b
RE
128472002-02-19 Richard Earnshaw <rearnsha@arm.com>
12848
12849 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12850 armnbsd-nat.c.
12851
08216dd7
RE
128522002-02-19 Richard Earnshaw <rearnsha@arm.com>
12853
12854 * arm-tdep.h (enum arm_float_model): New enum.
12855 (struct gdbarch_tdep): Add fp_model.
12856 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12857 up floating-point conversions until we know the floating-point model
12858 in use by the inferior. Don't complain about being unable to
12859 determine the ABI of the inferior when we don't have one.
12860 (arm_extract_return_value): Support different floating-point models.
12861 (arm_store_return_value): Likewise.
aaa38bb5 12862 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12863 ARM_FLOAT_SOFT.
12864 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12865
65d6d66a
PS
128662002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12867
12868 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12869 of ``current_gdbarch''.
12870
47221191
RE
128712002-02-19 Richard Earnshaw <rearnsha@arm.com>
12872
12873 * armnbsd-nat.c : ANSIfy all function declarations.
12874 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12875 (fetch_inferior_registers): Re-implement in terms of above.
12876 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12877 (store_inferior_registers): Re-implement in terms of above.
12878
fdf39c9a
RE
128792002-02-19 Richard Earnshaw <rearnsha@arm.com>
12880
aaa38bb5 12881 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12882 kernel.
12883 * arm-linux-tdep.c: Likewise.
12884 * config/arm/tm-linux.h: Likewise.
12885
93247f88
RE
128862002-02-19 Richard Earnshaw <rearnsha@arm.com>
12887
12888 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12889 * config/arm/nbsd.mt (TM_FILE): Delete.
12890 * config/arm/tm-nbsd.h: Delete.
12891
d7b486e7
RE
128922002-02-19 Richard Earnshaw <rearnsha@arm.com>
12893
12894 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12895 Initialize CALL_DUMMY_LENGTH.
12896
41d39a95
RE
128972002-02-19 Richard Earnshaw <rearnsha@arm.com>
12898
12899 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12900 function.
12901 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12902 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12903 defines one thing and that is incorrect for this port.
12904 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12905
e1195560
PM
129062002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12907
12908 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12909
c1748f97
PM
129102002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12911
12912 * win32-nat.c (display_selector): New function. Displays information
12913 about the information returned by GetThreadSelectorEntry API function.
12914 (display_selectors): New function. Displays the infomation of
12915 the selector given as argument, or of CS, DS ans FS selectors
12916 if no argument is given.
12917 ( _initialize_inftarg): Add "w32" as info prefix command.
12918 Add "info w32 selector" as command calling display_selectors.
12919
e41e6bbf
PM
129202002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12921
12922 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12923 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12924 if not defined.
12925
0d3a9f48
RE
129262002-02-18 Richard Earnshaw <rearnsha@arm.com>
12927
12928 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12929
3fb4b924
RE
129302002-02-18 Richard Earnshaw <rearnsha@arm.com>
12931
12932 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12933 (arm_fix_call_dummy): Call it.
12934 (arm_call_dummy_breakpoint_offset): Delete.
12935 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12936 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12937
7f55af32
AC
129382002-02-18 Andrew Cagney <ac131313@redhat.com>
12939
12940 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12941 Default to func_frame_chain_valid.
12942 * gdbarch.h, gdbarch.c: Re-generate.
12943 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12944
05f13b9c
EZ
129452002-02-18 Elena Zannoni <ezannoni@redhat.com>
12946
12947 * ppc-linux-nat.c: Update copyright.
12948 (fetch_register, store_register): Add tid parameter, don't compute
12949 tid here.
12950 (fetch_ppc_registers, store_ppc_registers): Add tid
12951 parameter. Pass it along to callees.
12952 (fetch_inferior_registers, store_inferior_registers): Compute tid
12953 here, and pass it to calleed functions.
12954 (fill_gregset, supply_fpregset): Clean up formatting.
12955
d7afb4c9
RE
129562002-02-18 Richard Earnshaw <rearnsha@arm.com>
12957
12958 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12959 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12960
9df628e0
RE
129612002-02-18 Richard Earnshaw <rearnsha@arm.com>
12962
12963 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12964 * gdbarch.c gdbarch.h: Regenerate.
12965 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12966 function.
12967 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12968 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12969 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12970
12971 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12972 * arm-tdep.c (arm_get_longjmp_target): New function.
12973 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12974 this to a positive value register arm_get_longjmp_target as the
12975 longjmp handler.
12976 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12977 (arm_linux_init_abi): Set up longjmp description in tdep.
12978 * armnbsd-nat.c (get_longjmp_target): Delete.
12979 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12980 description in tdep.
12981 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12982 (get_longjmp_target): Delete declaration.
12983 (GET_LONGJMP_TARGET): Delete.
12984 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12985 (GET_LONGJMP_TARGET): Delete.
12986
57bc8964
KB
129872002-02-17 Kevin Buettner <kevinb@redhat.com>
12988
12989 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12990 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12991 of ``current_gdbarch''.
12992
83d31a92
TT
129932002-02-17 Tom Tromey <tromey@redhat.com>
12994
12995 * cli/cli-cmds.c (compare_strings): New function.
12996 (complete_command): Only print each unique item once.
12997 * completer.h (complete_line): Declare.
12998 * completer.c (complete_line): New function.
12999 (line_completion_function): Use it.
13000
17ef5d92
AC
130012002-02-16 Andrew Cagney <ac131313@redhat.com>
13002
13003 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13004 * gdbarch.h, gdbarch.c: Re-generate.
13005
491b8946
DJ
130062002-02-16 Daniel Jacobowitz <drow@mvista.com>
13007
13008 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13009
130102002-02-16 Daniel Jacobowitz <drow@mvista.com>
13011
13012 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13013 * valops.c (value_arg_coerce): Don't take the address of a reference
13014 to convert an argument to a reference.
13015
dfe7f3ac
CF
130162002-02-15 Christopher Faylor <cgf@redhat.com>
13017
13018 * win32-nat.c (get_image_name): New function.
13019 (handle_load_dll): Use get_image_name function.
13020 (get_child_debug_event): Avoid registering debug events until possibly
13021 execed process is started.
13022 (child_create_inferior): Allow invocation via shell so that command
13023 line redirection, etc. works ok.
13024 (_initialize_inftarg): Add new command: "set shell" to control whether
13025 a shell is used to start a process.
13026
1d33e73a
DJ
130272002-02-15 Daniel Jacobowitz <drow@mvista.com>
13028
13029 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13030 instead of find_register_by_number.
13031 (cannot_store_register): Likewise.
13032
48cd0caa
PM
130332002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13034
aaa38bb5 13035 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
13036 fprintf_unfiltered (gdb_stderr, ...).
13037
8656e7d8
DJ
130382002-02-15 Daniel Jacobowitz <drow@mvista.com>
13039
13040 * gdbserver/gdbserver.1: Document --attach.
13041
66e810cd
RE
130422002-02-15 Richard Earnshaw <rearnsha@arm.com>
13043
13044 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13045 descriptions.
13046 * arm-tdep.c (arm_default_arm_le_breakpoint)
13047 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13048 (arm_default_thumb_be_breakpoint): New. Initialize them from
13049 traditional breakpoint defines.
13050 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13051 (arm_gdbarch_init): Initialize new breakpoint variables.
13052 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13053 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13054 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13055 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13056 code out to ...
13057 (arm_netbsd_init_abi_common): ... here; new function.
13058 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13059 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13060 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13061 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13062
97e03143
RE
130632002-02-15 Richard Earnshaw <rearnsha@arm.com>
13064
13065 * arm-tdep.h (enum arm_abi): New enum.
13066 (struct gdbarch_tdep): New structure.
13067 (LOWEST_PC): Provide a default.
13068 (arm_gdbarch_register_os_abi): Declare new function.
13069 * arm-tdep.c (arm_abi_names): New array.
13070 (process_note_abi_tag_sections): New function.
13071 (get_elfosabi): New function.
13072 (arm_gdbarch_register_os_abi): New function.
13073 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13074 support for that ABI has been built in, then call the appropriate
13075 configuration routine. Use gdbarch_num_regs() to get the number
13076 of registers.
13077 (arm_dump_tdep): New function.
13078 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13079 place-holder functions.
13080 (_initialize_arm_tdep): Register them.
13081 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13082
13083 * armnbsd-tdep.c: New file.
13084 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13085 * config/arm/nbsd.mt (TDEPFILES): Add it.
13086 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13087
13088 * armnbsd-nat.c: Include regcache.h.
13089 * Makefile.in (armnbsd-nat.o): Update dependency list.
13090
13091 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13092
ad68be46
DJ
130932002-02-14 Daniel Jacobowitz <drow@mvista.com>
13094
13095 * gdbserver/Makefile.in: Fix typos in target rules.
13096
003d6d1d
DJ
130972002-02-14 Daniel Jacobowitz <drow@mvista.com>
13098
aaa38bb5 13099 Fix part of PR gdb/267.
003d6d1d
DJ
13100 * linespec.c (find_methods): Handle constructors specially for now.
13101
6b230f1b
CV
131022002-02-14 Corinna Vinschen <vinschen@redhat.com>
13103
13104 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13105 handling.
13106 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13107 standard_coerce_float_to_double().
13108
1ea98d12
CF
131092002-02-14 Christopher Faylor <cgf@redhat.com>
13110
13111 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13112 GDBINIT_FILENAME.
13113
dd47e6fd
EZ
131142002-02-14 Elena Zannoni <ezannoni@redhat.com>
13115
13116 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13117 find_variant_by_name, because it confuses the multiarch
13118 framework. Return NULL if there isn't an architecture with the
13119 user supplied name, instead of forcing a different one without
13120 recording the change with the multiarch machinery.
13121 (find_variant_by_name): Delete.
13122
d7e39b9e
PS
131232002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13124
13125 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13126 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13127
76e42a4f
MH
131282002-02-13 Martin M. Hunt <hunt@redhat.com>
13129
aaa38bb5 13130 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
13131 print_frame_info_listing_hook, set current_source_symtab.
13132
0a30fbc4
DJ
131332002-02-14 Daniel Jacobowitz <drow@mvista.com>
13134
13135 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13136 and remove unused $(INCLUDE_DIR).
13137 Add regcache.c to OBS.
13138 Add generated register protocol files to clean target.
13139 Update dependencies for new objects, obsolete old target code.
13140
13141 * gdbserver/linux-low.c: Remove all platform-specific code to
13142 new files. Remove various dead code. Update to use regcache
13143 functionality.
13144 * gdbserver/remote-utils.c (fromhex): Add return statement
13145 to quiet warning.
13146 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13147 constant.
13148 (input_interrupt): Add integer parameter to match prototype
13149 of a signal handler.
13150 (outreg): Use register_data ().
13151 (prepare_resume_reply): Use gdbserver_expedite_regs.
13152 * gdbserver/server.c (main): Dynamically allocate own_buf because
13153 PBUFSIZ is no longer constant. Use registers_to_string () and
13154 registers_from_string ().
13155 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13156 for error (), fatal (), and warning (). Update definition of
13157 PBUFSIZ to use regcache functionality. Add include guard.
13158 * gdbserver/utils.c (fatal): Add missing ``const''.
13159 (warning): New function.
13160
13161 * regformats/regdat.sh: Include "regcache.h" in generated files.
13162 Provide init_registers () function.
13163 * regformats/regdef.h: Add prototype for set_register_cache ().
13164 Add include guard.
13165
13166 * gdbserver/linux-arm-low.c: New file.
13167 * gdbserver/linux-i386-low.c: New file.
13168 * gdbserver/linux-ia64-low.c: New file.
13169 * gdbserver/linux-m68k-low.c: New file.
13170 * gdbserver/linux-mips-low.c: New file.
13171 * gdbserver/linux-ppc-low.c: New file.
13172 * gdbserver/linux-sh-low.c: New file.
13173
13174 * gdbserver/regcache.c: New file.
13175 * gdbserver/regcache.h: New file.
13176
13177 * gdbserver/low-linux.c: Removed obsolete file.
13178
4cc841d0
DJ
131792002-02-14 Daniel Jacobowitz <drow@mvista.com>
13180
13181 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13182 * config/i386/linux.mt: Likewise.
13183 * config/ia64/linux.mt: Likewise.
13184 * config/m68k/linux.mh: Likewise.
13185 * config/powerpc/linux.mh: Likewise.
13186 * config/mips/linux.mt: Likewise.
13187
13188 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13189
13190 * config/i386/i386lynx.mh: Mark gdbserver variables
13191 as (currently) obsolete for this target.
13192 * config/i386/nbsd.mt: Likewise.
13193 * config/i386/nbsdelf.mt: Likewise.
13194 * config/m32r/m32r.mt: Likewise.
13195 * config/m68k/m68klynx.mh: Likewise.
13196 * config/m68k/nbsd.mt: Likewise.
13197 * config/m68k/sun3os4.mh: Likewise.
13198 * config/mips/vr5000.mt: Likewise.
13199 * config/ns32k/nbsd.mt: Likewise.
13200 * config/pa/hppabsd.mh: Likewise.
13201 * config/pa/hppaosf.mh: Likewise.
13202 * config/powerpc/nbsd.mt: Likewise.
13203 * config/rs6000/rs6000lynx.mh: Likewise.
13204 * config/s390/s390.mt: Likewise.
13205 * config/s390/s390x.mt: Likewise.
13206 * config/sparc/sparclynx.mh: Likewise.
13207 * config/sparc/sun4os4.mh: Likewise.
13208 * config/i386/x86-64linux.mt: Likewise.
13209 * config/sparc/linux.mh: Likewise.
13210
a85f51e7
DJ
132112002-02-14 Daniel Jacobowitz <drow@mvista.com>
13212
13213 * configure.tgt: Configure gdbserver only for known working
13214 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13215 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13216 SUBDIRS if it is configured. Update comment for ${nativefile}.
13217 * configure: Regenerated.
13218
65554fef
MS
132192002-02-13 Michael Snyder <msnyder@redhat.com>
13220
670a52db
MS
13221 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13222
6dbdc4a3
MS
13223 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13224 (default_gcore_mach): Just return 0, work around a problem in bfd.
13225 (default_gcore_target): OK to return NULL if exec_bfd is null.
13226 (make_mem_sec): Use a cast, avoid a warning.
13227
13228 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 13229 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
13230 sizeof (host pointer) != sizeof (target pointer)).
13231 (procfs_make_note_section): Avoid overflow in psargs string.
13232
aaa38bb5 13233 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
13234 implementation return an error.
13235
132362002-02-13 Rodney Brown <rbrown64@csc.com.au>
13237
13238 * procfs.c (procfs_make_note_section): Provide a default definition
13239 (for alpha-dec-osf4.0f). Fix typos.
13240
1e4d76e7
EZ
132412002-02-13 Elena Zannoni <ezannoni@redhat.com>
13242
13243 * linux-proc.c: Add include of regcache.h.
13244 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13245
b6d1a1d5
AC
132462002-02-13 Andrew Cagney <ac131313@redhat.com>
13247
13248 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
13249 * memattr.c (create_mem_region): Disallow useless empty region.
13250 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 13251 non-overlapping.
b6d1a1d5 13252
6c6ea35e
MC
132532002-02-13 Michael Chastain <mec@shout.net>
13254
13255 * defs.h: Kill CONST_PTR.
13256 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13257 * c-lang.c (c_builtin_types): Likewise.
13258 * ch-lang.c (ch_builtin_types): Likewise.
13259 * f-lang.c (f_builtin_types): Likewise.
13260 * language.c (unknown_builtin_types): Likewise.
13261 * m2-lang.c (m2_builtin_types): Likewise.
13262 * p-lang.c (pascal_builtin_types): Likewise.
13263 * scm-lang.c (c_builtin_types): Likewise.
13264
3e0b0f48
KS
132652002-02-13 Keith Seitz <keiths@redhat.com>
13266
13267 * arm-tdep.h (arm_get_next_pc): Add declaration.
13268
67255d04
RE
132692002-02-13 Richard Earnshaw <rearnsha@arm.com>
13270
13271 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13272 with other related struct-returning functions.
13273 (arm_extract_struct_value_address): New function.
13274 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13275 initialize float_format, double_format and long_double_format as
13276 appropriate to the endianness of the target.
13277 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13278 (arm_use_struct_convention): Delete declaration.
13279 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13280
079777f6
KS
132812002-02-13 Keith Seitz <keiths@redhat.com>
13282
13283 * defs.h (core_addr_to_string_nz): New function.
13284
34588f23
MK
132852002-02-13 Mark Kettenis <kettenis@gnu.org>
13286
13287 Apply missing bits of 2002-01-15 patch.
13288 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13289 (fill_fpregset): Use i387_fill_fsave.
13290
49b563f9
KS
132912002-02-12 Keith Seitz <keiths@redhat.com>
13292
49b563f9
KS
13293 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13294 (core_addr_to_string_nz): New function.
13295
aeb98c60
RE
132962002-02-11 Richard Earnshaw <rearnsha@arm.com>
13297
13298 * arm-linux-nat.c: Really include arm-tdep.h.
13299 * config/arm/tm-linux.h (struct type, struct value): Declare.
13300
65554fef
MS
133012002-02-11 Michael Snyder <msnyder@redhat.com>
13302
13303 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13304 (gcore section): Ifdef for Solaris and Unixware only.
13305 (procfs_do_thread_registers): Unixware needs one lwpstatus
13306 per thread (not one prstatus or pstatus).
13307 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13308 not over all gdb threads. For unixware, call elfcore_write_pstatus
13309 once before iterating over threads.
13310
34e8f22d
RE
133112002-02-11 Richard Earnshaw <rearnsha@arm.com>
13312
13313 * arm-tdep.h: New file.
13314 * arm-tdep.c: Include arm-tdep.h.
13315 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13316 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13317 (arm_print_float_info, arm_register_type, convert_to_extended)
13318 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13319 (arm_extract_return_value, arm_register_name): Make static.
13320 (arm_software_single_step): Similarly. Fix types in declaration.
13321 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13322 (arm_store_return_value, arm_store_struct_return): New functions.
13323 (arm_gdbarch_init): Register the above functions. Also register
13324 call_dummy_start_offset, sizeof_call_dummy_words,
13325 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13326 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 13327 max_register_virtual_size, register_size. Set up
34e8f22d
RE
13328 prologue_cache.saved_regs here, rather than ...
13329 (_initialize_arm_tdep): ... here.
13330 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13331 declarations.
13332 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13333 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13334 (arm_print_float_info, arm_register_type, convert_to_extended)
13335 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13336 (arm_extract_return_value, arm_register_name): Delete declarations.
13337 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13338 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13339 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13340 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13341 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13342 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13343 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13344 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13345 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13346 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13347 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13348 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13349 interface.
13350 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13351 * remote-rdi.c remote-rdp.c: Likewise.
13352 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13353 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13354 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13355 definition.
13356
13357 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13358 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13359 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13360 from non-ARM_ prefixed definitions.
13361 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13362 all uses of above.
13363 * remote-rdi.c remote-rdp.c: Likewise.
13364 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13365
148754e5
RE
133662002-02-11 Richard Earnshaw <rearnsha@arm.com>
13367
13368 * arm-tdep.c (arm_frameless_function_invocation)
13369 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13370 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13371 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13372 (arm_pop_frame, arm_get_next_pc): Make static.
13373 (arm_gdbarch_init): Register above in gdbarch structure.
13374 (arm_read_fp): Renamed from arm_target_read_fp.
13375 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13376 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13377 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13378 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13379 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13380 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13381 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
13382 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13383 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13384 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13385 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 13386
434d2d4f
DJ
133872002-02-10 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * symtab.c (compare_search_syms): New function.
13390 (sort_search_symbols): New function.
13391 (search_symbols): Sort symbols after searching rather than
13392 before.
13393
55241689
AC
133942002-02-10 Andrew Cagney <ac131313@redhat.com>
13395
13396 * NEWS: Linux -> GNU/Linux.
13397
028c194b
AC
133982002-02-10 Andrew Cagney <ac131313@redhat.com>
13399
13400 * gdbarch.sh: For for level one methods, disallow a definition
13401 when partially multi-arched. Add comments explaining rationale.
13402 * gdbarch.h: Re-generate.
13403
6acf50cd
AC
134042002-02-10 Andrew Cagney <ac131313@redhat.com>
13405
13406 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13407 multi-arch partial.
aaa38bb5 13408
50248794
AC
134092002-02-10 Andrew Cagney <ac131313@redhat.com>
13410
13411 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13412 field. Use diff -u.
13413 * gdbarch.c: Re-generate.
13414
c30e0066
AC
134152002-02-10 Andrew Cagney <ac131313@redhat.com>
13416
9b56c5f3 13417 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13418 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13419 partial.
13420
6e6d6484
AC
134212002-02-10 Andrew Cagney <ac131313@redhat.com>
13422
13423 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13424 multi-arch partial.
13425 (PUSH_ARGUMENTS): Switch to using predefault.
13426 * gdbarch.c: Regenerate.
13427
c203844d
AC
134282002-02-10 Andrew Cagney <ac131313@redhat.com>
13429
13430 * valops.c (PUSH_ARGUMENTS): Delete definition.
13431 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13432 partial. Default to default_push_arguments.
13433 * gdbarch.h, gdbarch.c: Regenerate.
13434
b5a2688f
AC
134352002-02-09 Andrew Cagney <ac131313@redhat.com>
13436
13437 * defs.h (throw_exception): Rename return_to_top_level. Update
13438 comments.
13439 * utils.c (error_stream, internal_verror, quit): Ditto.
13440 * top.c (throw_exception, catcher): Ditto.
13441 * sparclet-rom.c (sparclet_load): Ditto.
13442 * remote.c (interrupt_query, minitelnet): Ditto.
13443 * remote-sds.c (interrupt_query): Ditto.
13444 * remote-mips.c (mips_error, mips_kill): Ditto.
13445 * ocd.c (interrupt_query): Ditto.
13446 * monitor.c (monitor_interrupt_query): Ditto.
13447 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13448 * target.h: Update comment.
aaa38bb5 13449
b5a2688f 13450 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13451
2fa5c1e0
AC
134522002-02-09 Andrew Cagney <ac131313@redhat.com>
13453
13454 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13455 default_double_format.
13456 * gdbarch.h, gdbarch.c: Re-generate.
13457 * findvar.c (floatformat_unknown): Delete variable definition.
13458 * doublest.h (floatformat_unknown): Delete variable declaration.
13459
da966255
JB
134602002-02-09 Jim Blandy <jimb@redhat.com>
13461
13462 * stabsread.c (read_type): Add code to parse Sun's syntax for
13463 prototyped function types.
13464
123a4891
AC
134652002-02-09 Andrew Cagney <ac131313@redhat.com>
13466
13467 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13468 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13469
fb39c8f3
PS
134702002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13471
13472 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13473 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13474 now _initialize_xcoffsolib gets called again and overrides the
13475 commands from solib.c in a native configuration.
13476
0b87a11d
MK
134772002-02-09 Mark Kettenis <kettenis@gnu.org>
13478
13479 * doublest.c (store_typed_floating): Don't try to return a value.
13480 Fixes PR gdb/290.
13481
bdc2fc72
JB
134822002-02-08 Jim Blandy <jimb@redhat.com>
13483
13484 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13485 is prototyped and has no arguments, print its argument list as
13486 `(void)'.
13487
da69bbcf
CD
134882002-02-08 Chris Demetriou <cgd@broadcom.com>
13489
13490 * MAINTAINERS (write-after-approval): Add myself.
13491 (paper-trail): I've escaped!
aaa38bb5 13492
b69571f5
CF
134932002-02-08 Christopher Faylor <cgf@redhat.com>
13494
13495 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13496 changes.
13497 (_initialize_check_for_gdb_ini): Ditto.
13498
f6871398
MH
134992002-02-08 Martin M. Hunt <hunt@redhat.com>
13500
13501 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13502 xaprintf -> xasprintf.
13503
4e52d31c
PM
135042002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13505
13506 * win32-nat.c: Remove use of printf and sprintf functions.
13507
39bbf761
RE
135082002-02-08 Richard Earnshaw <rearnsha@arm.com>
13509
13510 * arm-tdep.c (arm_frame_chain_valid): Make static.
13511 (arm_push_arguments): Likewise.
13512 (arm_gdbarch_init): New function.
13513 (_initialize_arm_tdep): Call it.
13514 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13515 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13516 (FRAME_CHAIN_VALID): Delete.
13517 (arm_frame_chain_valid): Delete declaration.
13518 (PUSH_ARGUMENTS): Delete.
13519 (arm_push_arguments): Delete declaration.
13520 (CALL_DUMMY_P): Delete.
13521
9c9532c9
CV
135222002-02-08 Andrew Cagney <ac131313@redhat.com>
13523 Corinna Vinschen <vinschen@redhat.com>
13524
13525 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13526 on builtin float types.
13527
4e8f7a8b
DJ
135282002-02-08 Daniel Jacobowitz <drow@mvista.com>
13529
13530 * utils.c: Include <curses.h> before "bfd.h".
13531 * tui/tui-hooks.c: Likewise.
13532 * tui/tui.c: Likewise.
13533 * tui/tuiCommand.c: Likewise.
13534 * tui/tuiData.c: Likewise.
13535 * tui/tuiDataWin.c: Likewise.
13536 * tui/tuiDisassem.c: Likewise.
13537 * tui/tuiGeneralWin.c: Likewise.
13538 * tui/tuiIO.c: Likewise.
13539 * tui/tuiLayout.c: Likewise.
13540 * tui/tuiRegs.c: Likewise.
13541 * tui/tuiSource.c: Likewise.
13542 * tui/tuiSourceWin.c: Likewise.
13543 * tui/tuiStack.c: Likewise.
13544 * tui/tuiWin.c: Likewise.
13545
cd4bffcf
EZ
135462002-02-07 Elena Zannoni <ezannoni@redhat.com>
13547
13548 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13549 to include space for pseudoregs as well. Update loops accordingly.
13550 (sh_fp_frame_init_saved_regs): Ditto.
13551 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13552
26806ce2
AC
135532002-02-07 Andrew Cagney <ac131313@redhat.com>
13554
13555 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13556 Add Richard Earnshaw to Arm maintainers.
13557
97fdab62
AC
135582002-02-07 Andrew Cagney <ac131313@redhat.com>
13559
a6b98203
AC
13560 * defs.h (warning_begin): Delete declaration.
13561
97fdab62
AC
13562 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13563 Delete macro.
13564
78b29b40
MS
135652002-02-07 Michael Snyder <msnyder@redhat.com>
13566
aaa38bb5 13567 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13568 Logic bug, remove misplaced else.
13569
d8849953
KD
135702002-02-07 Klee Dienes <klee@apple.com>
13571
13572 * fork-inferior.c (fork_inferior): Add '!' to the list of
13573 characters that need to be quoted when building a string for the
13574 shell. Quote '!' specifically with a backslash, since CSH chokes
13575 when trying to evaluate "str!str".
aaa38bb5 13576
095778a0
NC
135772002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13578
13579 * rdi-share/host.h: Only provide a typedef for bool if it is not
13580 defined.
13581
1900040c
MS
135822002-02-04 Michael Snyder <msnyder@redhat.com>
13583
13584 * breakpoint.h (enum bptype): Add new overlay event bp type.
13585 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13586
1900040c
MS
13587 * breakpoint.c (create_internal_breakpoint): New function.
13588 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13589 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13590 (create_thread_event_breakpoint): Ditto.
13591 (create_solib_event_breakpoint): Ditto.
13592 (create_overlay_event_breakpoint): New function.
13593 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13594 (update_breakpoints_after_exec): Delete and re-initialize
13595 overlay event breakpoints after an exec. Add FIXME comment
13596 about longjmp breakpoint.
13597 (print_it_typical): Ignore overlay event breakpoints.
13598 (print_one_breakpoint): Ditto.
13599 (mention): Ditto.
13600 (bpstat_what): Do not stop for overlay event breakpoints.
13601 (delete_breakpoint): Don't delete overlay event breakpoints.
13602 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13603 (breakpoint_re_set): Re-create overlay event breakpoint.
13604
13605 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13606 (overlay_manual_command): Disable overlay breakpoints.
13607 (overlay_off_command): Disable overlay breakpoints.
13608
082fc60d
RE
136092002-02-06 Richard Earnshaw <rearnsha@arm.com>
13610
13611 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13612 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13613 to here from config/tm-arm.h.
13614 (coff_sym_is_thumb): Make static.
13615 (arm_elf_make_msymbol_special): New function.
13616 (arm_coff_make_msymbol_special): New function.
13617 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13618 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13619 (coff_sym_is_thumb): Delete declaration.
13620 (arm_elf_make_msymbol_special): Declare.
13621 (arm_coff_make_msymbol_special): Declare.
13622 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13623 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13624
039c5766
RE
136252002-02-06 Richard Earnshaw <rearnsha@arm.com>
13626
13627 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13628
136292002-02-06 Richard Earnshaw <rearnsha@arm.com>
13630
13631 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13632 * gdbarch.c gdbarch.h: Regenerate.
13633 * arch-utils.c (default_print_float_info): New function.
13634 * arch-utils.h (default_print_float_info): Prototype it.
13635 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13636 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13637 (PRINT_FLOAT_INFO): Document it.
13638
13639 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13640 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13641 (PRINT_FLOAT_INFO): Define.
13642
58fa08f0
PM
136432002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13644
aaa38bb5 13645 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13646 Add typecast to sprintf argument to suppress a warning.
13647
7393af7c
PM
136482002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13649
58fa08f0 13650 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13651 to allow easier handling of pass state.
13652 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13653 that gives exception name and address.
13654 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13655 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13656 exceptions added.
aaa38bb5
AJ
13657 (child_continue): Correctly report continue_status.
13658 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13659 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13660 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13661 the exception should be passed to debuggee or not.
13662
6af4589c
MS
136632002-02-05 Michael Snyder <msnyder@redhat.com>
13664
13665 * regcache.c (fetch_register): Call target_fetch_register
13666 only if we don't call FETCH_PSEUDO_REGISTER.
13667 (store_register): Call target_store_register only if we
13668 don't call STORE_PSEUDO_REGISTER.
13669
a2cf933a
EZ
136702002-02-05 Elena Zannoni <ezannoni@redhat.com>
13671
13672 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13673 ELF_MAKE_MSYMBOL_SPECIAL.
13674 * gdbarch.c, gdbarch.h: Regenerate.
13675 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13676 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13677 * elfread.c (elf_symtab_read): Compile use of
13678 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13679 multiarched.
13680 * coffread.c (coff_symtab_read): Ditto, for
13681 COFF_MAKE_MSYMBOL_SPECIAL.
13682
6bb7be43
JB
136832002-02-05 Jim Blandy <jimb@redhat.com>
13684
13685 * solib-svr4.c (svr4_truncate_ptr): New function.
13686 (svr4_relocate_section_addresses): Do the address arithmetic with
13687 the appropriate truncation for target addresses, even when
13688 CORE_ADDR is larger than a target address.
13689
e18651ec
DJ
136902002-02-05 Daniel Jacobowitz <drow@mvista.com>
13691
13692 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13693 to (int *).
13694
6b2725be
DJ
136952002-02-05 Daniel Jacobowitz <drow@mvista.com>
13696
13697 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13698 code.
13699
fca9e603
DJ
137002002-02-05 Daniel Jacobowitz <drow@mvista.com>
13701
13702 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13703
6c537a52
DJ
137042002-02-05 Daniel Jacobowitz <drow@mvista.com>
13705
13706 * gdbserver/linux-low.c: Remove unused include files.
13707
d844cde6
DJ
137082002-02-05 Daniel Jacobowitz <drow@mvista.com>
13709
13710 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13711 (read_inferior_memory): Use it.
13712 (write_inferior_memory): Likewise.
13713
d07c63e7
DJ
137142002-02-05 Daniel Jacobowitz <drow@mvista.com>
13715
13716 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13717 grubbing through sys_errlist.
13718
da6d8c04
DJ
137192002-02-05 Daniel Jacobowitz <drow@mvista.com>
13720
13721 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13722
5b421780
PM
137232002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13724 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13725
9f60d481
AC
137262002-02-04 Andrew Cagney <ac131313@redhat.com>
13727
13728 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13729 (do_sfunc, set_cmd_sfunc): New functions.
13730
13731 * command.h (struct cmd_list_element): Add field func.
13732 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13733 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13734 * cli/cli-decode.h: Ditto.
13735
13736 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13737 (help_all, help_cmd_list): Ditto.
13738 (find_cmd, complete_on_cmdlist): Ditto.
13739 * top.c (execute_command): Ditto.
13740
13741 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13742 function.sfunc.
13743
13744 * infcmd.c (notice_args_read): Fix function signature.
13745
13746 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13747 * cli/cli-decode.c (add_set_cmd): Ditto.
13748 * utils.c (initialize_utils): Ditto.
13749 * maint.c (_initialize_maint_cmds): Ditto.
13750 * infrun.c (_initialize_infrun): Ditto.
13751 * demangle.c (_initialize_demangler): Ditto.
13752 * remote.c (add_packet_config_cmd): Ditto.
13753 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13754 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13755 * proc-api.c (_initialize_proc_api): Ditto.
13756 * kod.c (_initialize_kod): Ditto.
13757 * valprint.c (_initialize_valprint): Ditto.
13758 * top.c (init_main): Ditto.
13759 * infcmd.c (_initialize_infcmd): Ditto.
13760 * corefile.c (_initialize_core): Ditto.
13761 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13762 * arch-utils.c (initialize_current_architecture): Ditto.
13763 (_initialize_gdbarch_utils): Ditto.
13764 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13765
13766 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13767 * wince.c (_initialize_inftarg): Ditto.
13768 * symfile.c (_initialize_symfile): Ditto.
13769 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13770 * language.c (_initialize_language): Ditto.
13771 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13772
f9ba0717
MS
137732002-02-04 Michael Snyder <msnyder@redhat.com>
13774
13775 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13776
0c74b2a7
DJ
137772002-02-04 Daniel Jacobowitz <drow@mvista.com>
13778
13779 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13780 Add rules for building the register data files.
13781
c638789f
DJ
137822002-02-04 Daniel Jacobowitz <drow@mvista.com>
13783
13784 * regformats/regdat.sh: Add braces to the definition of
13785 expedite_regs_${arch}.
13786
db253027
DJ
137872002-02-04 Daniel Jacobowitz <drow@mvista.com>
13788
13789 * regformats/regdef.h (struct reg): Add comment describing the
13790 requirements for offset and size fields.
13791
206be19c
AS
137922002-02-04 Andreas Schwab <schwab@suse.de>
13793
13794 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13795 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13796
181c1381
RE
137972002-02-04 Richard Earnshaw <rearnsha@arm.com>
13798
13799 * gdbarch.sh (copyright): Update years in generated header.
13800 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13801 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13802 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13803 * dbxread.c: Likewise.
13804 * dwarfread.c: Likewise.
13805 * elfread.c: Likewise.
13806 * somread.c: Likewise.
13807
13808 * arm-tdep.c (arm_smash_text_address): New function.
13809 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13810
fa4ba8da
PM
138112002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13812
13813 Add support for hardware watchpoints on win32 native.
aaa38bb5 13814 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13815 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13816 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13817 of debug registers.
13818 (debug_registers_changed): New variable. Reflects when debug registers
13819 are changed and need to be written to inferior.
aaa38bb5 13820 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13821 was set, used when new threads are created.
13822 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13823 i386-nat code.
13824 (thread_rec): Set dr array if id is the thread of current_event .
13825 (child_continue, child_resume): Change the debug registers for all
13826 threads if debug_registers_changed.
13827 (child_add_thread): Change the debug registers if debug_registers_used.
13828 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13829 Link nm.h to new nm-cygwin.h file.
13830 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13831 of hardware registers.
13832
a73c86fb
AC
138332002-02-03 Andrew Cagney <ac131313@redhat.com>
13834
13835 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13836 Restore behavour broken by 2002-01-20 Andrew Cagney
13837 <ac131313@redhat.com> IEEE_FLOAT removal.
13838
acf5ed49
DJ
138392002-02-03 Daniel Jacobowitz <drow@mvista.com>
13840
13841 * c-valprint.c (c_val_print): Pass a proper valaddr to
13842 cp_print_class_method.
13843 * valops.c (search_struct_method): If there is only one method
13844 and args is NULL, return that method.
13845
493d28d5
DJ
138462002-02-03 Daniel Jacobowitz <drow@mvista.com>
13847
13848 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13849 accessing tag_name directly.
13850
7495dfdb
DJ
138512002-02-03 Daniel Jacobowitz <drow@mvista.com>
13852
13853 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13854 of accessing tag_name directly.
13855
dd6bda65
DJ
138562002-02-03 Daniel Jacobowitz <drow@mvista.com>
13857
13858 PR gdb/280
13859 * gdbtypes.c (replace_type): New function.
13860 * gdbtypes.h (replace_type): Add prototype.
13861 * stabsread.c (read_type): Use replace_type.
13862
88fe217c
RE
138632002-02-03 Richard Earnshaw <rearnsha@arm.com>
13864
13865 * Makefile.in (memattr.o): Add missing dependencies rule.
13866
e5d66720
PS
138672002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13868
13869 * breakpoint.c (break_at_finish_command): Really export.
13870 (break_at_finish_at_depth_command): Ditto.
13871 (tbreak_at_finish_command): Ditto.
13872 * hppa-tdep.c: Include completer.h.
13873 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13874 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13875
fffee0be
AC
138762002-02-01 Andrew Cagney <ac131313@redhat.com>
13877
13878 * utils.c (do_write): New function.
13879 (error_stream): Rewrite combining the code from error_begin and
13880 verror.
13881 (verror): Rewrite using error_stream.
13882 (error_begin): Delete function.
13883
255e7dbf
AC
138842002-02-01 Andrew Cagney <ac131313@redhat.com>
13885
13886 * utils.c (error_begin): Make static.
13887 * defs.h (error_begin): Delete declaration.
13888
13889 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13890 (decode_line_1): Use cplusplus_error instead of error_begin,
13891 cplusplus_hint and return_to_top_level.
13892 * coffread.c (coff_symfile_read): Use error instead of error_begin
13893 and return_to_top_level.
13894 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13895
ddfe3c15
AC
138962002-02-01 Andrew Cagney <ac131313@redhat.com>
13897
13898 * language.h (type_error, range_error): Make string parameter
13899 constant.
13900 * language.c (warning_pre_print): Delete extern declaration.
13901 * dwarfread.c (warning_pre_print): Ditto.
13902 * language.c (type_error, range_error): Rewrite to use verror and
13903 vwarning instead of warning_begin.
13904
03ac34d5
MS
139052002-02-01 Michael Snyder <msnyder@redhat.com>
13906
261c4ca2
MS
13907 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13908 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13909
e00d1dc8
AC
139102002-02-01 Andrew Cagney <ac131313@redhat.com>
13911
13912 * command.h (NO_FUNCTION): Delete macro.
13913 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13914 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13915 * tracepoint.c (_initialize_tracepoint): Ditto.
13916 * cli/cli-decode.c (add_set_cmd): Ditto.
13917 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13918
76b79d6e
DJ
139192002-02-01 Daniel Jacobowitz <drow@mvista.com>
13920
13921 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13922 Update ``this'' pointer when calling virtual functions.
13923
799f9e91
MS
139242002-02-01 Michael Snyder <msnyder@redhat.com>
13925
c7bd442c 13926 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13927 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13928
3cf384d4
DJ
139292002-02-01 Daniel Jacobowitz <drow@mvista.com>
13930
13931 * regformats/reg-arm.dat: New file.
13932 * regformats/reg-i386.dat: New file.
13933 * regformats/reg-ia64.dat: New file.
13934 * regformats/reg-m68k.dat: New file.
13935 * regformats/reg-mips.dat: New file.
13936 * regformats/reg-ppc.dat: New file.
13937 * regformats/reg-sh.dat: New file.
13938 * regformats/regdef.h: New file.
13939 * regformats/regdat.sh: New file.
13940
0defa245
RE
139412002-02-01 Richard Earnshaw <reanrsha@arm.com>
13942
13943 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13944 (arm_frame_args_address, arm_frame_locals_address): New functions.
13945 (arm_frame_num_args): New function.
13946 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13947 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13948 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13949
405f26e6
MS
139502002-01-31 Michael Snyder <msnyder@redhat.com>
13951
502fd408
MS
13952 * breakpoint.c (break_at_finish_command): Export.
13953 (break_at_finish_at_depth_command): Export.
13954 (tbreak_at_finish_command): Export.
d6020d45 13955 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13956 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13957 "txbreak" commands, which are HPPA specific.
502fd408 13958
7d35e135
MS
13959 * printcmd.c (disassemble_command): Remove an ancient
13960 artifact of an old merge.
13961
aaa38bb5 13962 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13963 Define enum constant values for overlay mode.
13964 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13965 (overlay_is_mapped, overlay_auto_command,
13966 overlay_manual_command): Ditto.
d874f1e2 13967
aaa38bb5
AJ
13968 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13969 breakpoint_here_p, breakpoint_inserted_here_p,
13970 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13971 describe_other_breakpoints, check_duplicates, clear_command):
13972 Coding standard fixes.
13973
8add0441 13974 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13975 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13976 code: check bfd SEC_READONLY flag for section.
13977
e351066e
AC
139782002-01-31 Andrew Cagney <ac131313@redhat.com>
13979
7d35e135 13980 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13981
8a48e967
DJ
139822002-01-30 Daniel Jacobowitz <drow@mvista.com>
13983
13984 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13985 data symbols, since we search based on textlow and texthigh.
13986 (find_pc_sect_symtab): Likewise.
13987
f5a96129
AC
139882002-01-30 Andrew Cagney <ac131313@redhat.com>
13989
13990 * defs.h (vwarning): Declare.
f5a96129
AC
13991 * utils.c (vwarning): New function.
13992 (warning): Call vwarning.
13993 (warning_begin): Delete function.
13994
13995 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13996 the warning message.
13997 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13998 warning_begin.
13999
cefd4ef5
MS
140002002-01-30 Michael Snyder <msnyder@redhat.com>
14001
1a703748
MS
14002 * NEWS: Mention "set trust-readonly-sections" command.
14003 Mention generate-core-file command.
cefd4ef5 14004
3a11626d
MS
140052002-01-15 Michael Snyder <msnyder@redhat.com>
14006
14007 * target.c: New command, "set trust-readonly-sections on".
14008 (do_xfer_memory): Honor the suggestion to trust readonly sections
14009 by reading them from the object file instead of from the target.
14010 (initialize_targets): Register command "set trust-readonly-sections".
14011
d1c7e53b
AC
140122002-01-29 Andrew Cagney <ac131313@redhat.com>
14013
14014 * parse.c (target_map_name_to_register): Simplify, search regs and
14015 pseudo-regs using a single loop.
14016
e2c9a72c
AC
140172002-01-30 Andrew Cagney <ac131313@redhat.com>
14018
14019 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14020
69824b4e
MK
140212002-01-15 Rodney Brown <rbrown64@csc.com.au>
14022
14023 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14024 * config/i386/i386v42mp.mh: Add i387-nat.o .
14025 * i386v4-nat.c: Include i387-nat.h.
14026 (supply_fpregset): Use i387_supply_fsave.
14027 (fill_fpregset): Use i387_fill_fsave.
14028
6eb69eab
RE
140292002-01-30 Richard Earnshaw <rearnsha@arm.com>
14030
14031 * arm-tdep.c (arm_call_dummy_words): Define.
14032 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14033 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14034 (CALL_DUMMY_WORDS): Define.
14035 (arm_call_dummy_words): Declare.
14036 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14037 (arm_linux_call_dummy_words): Declare.
14038
9852326a
AS
140392002-01-30 Andreas Schwab <schwab@suse.de>
14040
14041 * m68klinux-nat.c: Fix last change to use regcache_collect
14042 instead of referencing registers[] directly.
14043
977a3030
AC
140442002-01-29 Andrew Cagney <ac131313@redhat.com>
14045
14046 * parse.c (target_map_name_to_register): Delete code wrapped in
14047 #ifdef REGISTER_NAME_ALIAS_HOOK.
14048
2076c72b
MS
140492002-01-28 Michael Snyder <msnyder@redhat.com>
14050
14051 * regcache.c (legacy_read_register_gen): Need to be able to
14052 read pseudo-register as well as real register.
14053 (legacy_write_register_gen): Ditto.
14054
8fcc723b
AC
140552002-01-28 Andrew Cagney <ac131313@redhat.com>
14056
14057 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14058 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14059 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14060 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14061 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14062 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14063 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14064 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14065 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14066 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14067 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14068 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14069 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14070 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14071 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14072 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14073 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14074 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14075 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14076 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14077
afe64c1a
AC
140782002-01-28 Andrew Cagney <ac131313@redhat.com>
14079
14080 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14081 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14082 (initialize_current_architecture): Update target_byte_order using
14083 information from BFD.
aaa38bb5 14084 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
14085 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14086
75bc7ddf
AC
140872002-01-28 Andrew Cagney <ac131313@redhat.com>
14088
14089 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14090 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14091
14092 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14093 #ifdef INVALID_FLOAT.
14094 * infcmd.c (do_registers_info): Ditto.
14095 * values.c (unpack_double): Ditto. Add comment.
14096
14097 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14098 already commented out.
14099
0280a90a
AS
141002002-01-26 Andreas Schwab <schwab@suse.de>
14101
14102 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14103 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14104 registers and add support for PTRACE_GETREGS.
14105
7072a954
AC
141062002-01-24 Andrew Cagney <ac131313@redhat.com>
14107
14108 GDB 5.1.1 released from 5.1 branch.
14109 * NEWS: Add 5.1.1 news.
14110 * README: Sync with 5.1 branch.
14111
86f902e0
FF
141122002-01-23 Fred Fish <fnf@redhat.com>
14113
14114 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14115 stabstring on initial malloc. Reallocing will copy it for us,
14116 if necessary.
14117
8af51c36
EZ
141182002-01-23 Elena Zannoni <ezannoni@redhat.com>
14119
aaa38bb5 14120 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
14121 (HFILES_NO_SRCDIR): Remove hpread.h.
14122 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14123 (hpread.o): Update dependencies.
14124 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14125
14126 * hp-psymtab-read.c: Remove file.
14127 * hp-symtab-read.c: Remove file.
14128 * hpread.h: Remove file.
14129
14130 * hpread.c: Merge all contents of hp-psymtab-read.c,
14131 hp-symtab-read.c and hpread.h into this file, as it was prior to
14132 January 1999.
14133
14134 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 14135 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
14136 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14137 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14138
dc5cfeb6
EZ
141392002-01-23 Elena Zannoni <ezannoni@redhat.com>
14140
14141 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14142 fill_gregset): Call gdbarch_tdep() just once, assign result to
14143 variable and use that, instead of calling the function several
14144 times.
14145
ea87b71b
AO
141462002-01-24 Alexandre Oliva <aoliva@redhat.com>
14147
14148 * configure.host: Accept sparcv9 as alias for sparc64.
14149 * configure.tgt: Likewise.
14150
13fc0c2f
KB
141512002-01-22 Kevin Buettner <kevinb@redhat.com>
14152
14153 * solib-aix5.c (build_so_list_from_mapfile)
14154 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14155 arguments is not reversed.
14156 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14157 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 14158
7bd872fe
EZ
141592002-01-22 Elena Zannoni <ezannoni@redhat.com>
14160
14161 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14162 modified version of obsolete sh_fetch_pseudo_register.
14163 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14164 (sh4_register_read): New function.
14165 (sh_pseudo_register_write): New function. Renamed and modified
14166 version of obsolete sh_store_pseudo_register.
14167 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14168 (sh4_register_write): New function.
14169 (sh_gdbarch_init): Remove setting of gdbarch function
14170 fetch_pseudo_register and store_pseudo_register. Remove setting of
14171 register_convert_to_raw, register_convert_to_virtual,
14172 register_convertible.
14173 (sh_sh4_register_convertible): Delete. No longer needed. All is
14174 taken care by architecture specific functions
14175 register_read/register_write.
14176 (sh_sh4_register_convert_to_virtual): Make static.
14177 (sh_sh4_register_convert_to_raw): Ditto.
14178
069e84fd
AC
141792002-01-22 Andrew Cagney <ac131313@redhat.com>
14180
14181 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14182 (floatformat_is_nan, floatformat_mantissa): Ditto.
14183
14184 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14185 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14186 builtin_type_ieee_double_little,
14187 builtin_type_ieee_double_littlebyte_bigword,
14188 builtin_type_m68881_ext, builtin_type_i960_ext,
14189 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14190 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14191 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14192 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14193
211a4f69
CV
141942002-01-22 Corinna Vinschen <vinschen@redhat.com>
14195
14196 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14197 parameter. Set frameless flag if it exists and depended of
14198 whether the scanned function is frameless or not.
14199 (xstormy16_skip_prologue): If function is frameless, return
14200 result of xstormy16_scan_prologue().
14201 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14202 call.
14203
f81353e4
EZ
142042002-01-21 Elena Zannoni <ezannoni@redhat.com>
14205
14206 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14207 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14208 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14209 sh_sh4_register_byte, sh_sh4_register_raw_size,
14210 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14211 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14212 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14213 sh_store_pseudo_register, sh_do_pseudo_register): Call
14214 gdbarch_tdep() just once, assign result to variable and use that,
14215 instead of calling the function several times.
14216
63c73a17
MK
142172002-01-20 Mark Kettenis <kettenis@gnu.org>
14218
14219 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14220 macros instead of LAST_FPU_CTRL_REGNUM.
14221 (store_register): Likewise.
14222
39ad761d
JB
142232002-01-21 Jim Blandy <jimb@redhat.com>
14224
14225 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14226 is up-to-date before running the program, not just when a program
14227 exits.
14228
3d74b771
FF
142292002-01-21 Fred Fish <fnf@redhat.com>
14230
14231 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14232 when we have found all instructions we are looking for.
14233
966fbf70
RE
142342002-01-21 Richard Earnshaw <rearnsha@arm.com>
14235
14236 * arm-tdep.c (arm_register_name): New function.
14237 (arm_registers_names): Make static.
14238 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14239 (arm_register_name): Declare.
14240 (REGISTER_NAME): Use it.
14241
c3b4394c
RE
142422002-01-21 Richard Earnshaw <rearnsha@arm.com>
14243 Kevin Buettner <kevinb@redhat.com>
14244
14245 Convert arm targets to new FRAME interface.
14246 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14247 (arm_frame_find_save_regs): Delete.
14248 (arm_frame_init_saved_regs): New.
14249 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14250 Allocate extra_info as required. Convert all uses of fsr.regs
14251 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14252 to use extra_info.
14253 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14254 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14255 (check_prologue_cache, save_prologue_cache): Likewise.
14256 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14257 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14258 (FRAME_FIND_SAVED_REGS): Delete.
14259 (arm_frame_find_saved_regs): Delete prototype.
14260 (arm_frame_init_saved_regs): New prototype.
14261 (FRAME_INIT_SAVED_REGS): Define.
14262
61d99182
AC
142632002-01-20 Andrew Cagney <ac131313@redhat.com>
14264
14265 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14266
6aaea291
AC
142672002-01-20 Andrew Cagney <ac131313@redhat.com>
14268
14269 From Jeff Law <law@redhat.com>:
14270 * infttrace.c: Include <sys/pstat.h>.
14271 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14272 exec file if the ttrace equivalent fails.
14273
15f698d2
AC
142742002-01-20 Andrew Cagney <ac131313@redhat.com>
14275
14276 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14277 (closeLogFile): Ditto.
14278
f86ddd7c
MC
142792002-01-20 Michael Chastain <mec@shout.net>
14280
14281 * top.c (print_gdb_version): Bump copyright year to 2002.
14282
904507ce
AC
142832002-01-20 Andrew Cagney <ac131313@redhat.com>
14284
14285 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14286 Zannoni and Eli Zaretskii.
14287
d7f0b9ce
DJ
142882002-01-20 Daniel Jacobowitz <drow@mvista.com>
14289
14290 * buildsym.c: Update copyright years.
14291 * c-typeprint.c: Likewise.
14292 * dwarf2read.c: Likewise.
14293 * f-typeprint.c: Likewise.
14294 * gdbtypes.c: Likewise.
14295 * gdbtypes.h: Likewise.
14296 * hp-symtab-read.c: Likewise.
14297 * hpread.c: Likewise.
14298 * mdebugread.c: Likewise.
14299 * p-typeprint.c: Likewise.
14300
3fd3d7d2
AC
143012002-01-20 Andrew Cagney <ac131313@redhat.com>
14302
14303 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14304 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14305 byte-order selectable.
14306 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14307 * arch-utils.c: Ditto.
14308 (set_endian): Ditto.
14309 (set_endian_from_file): Ditto.
14310 * gdbserver/low-sim.c (create_inferior): Ditto.
14311 * gdbarch.sh: Ditto.
14312 * gdbarch.h: Re-generate.
aaa38bb5
AJ
14313 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14314 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14315 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14316 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14317 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14318 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14319 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
14320 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14321 macro definition.
14322 * config/mips/tm-wince.h: Remove #undef of macro
14323 TARGET_BYTE_ORDER_SELECTABLE.
14324 * config/sh/tm-wince.h: Ditto.
14325
b02dede2
DJ
143262002-01-20 Daniel Jacobowitz <drow@mvista.com>
14327
14328 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14329 member function fields. Add accessor macro
14330 TYPE_FN_FIELD_ARTIFICIAL.
14331 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14332 * c-typeprint.c (c_type_print_base): Skip artificial member
14333 functions.
14334
c3643761
DJ
143352002-01-20 Daniel Jacobowitz <drow@mvista.com>
14336
14337 * f-typeprint.c: Delete unused function f_type_print_args.
14338 * p-typeprint.c: Delete unused function pascal_type_print_args.
14339
8176bb6d
DJ
143402002-01-20 Daniel Jacobowitz <drow@mvista.com>
14341
14342 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14343 comment. Add ``artificial'' to ``union field_location''.
14344
14345 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14346
14347 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14348 * mdebugread.c (parse_symbol): Likewise.
14349 * stabsread.c (define_symbol): Likewise.
14350 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14351 initializing TYPE_FIELD_BITPOS to n (obsolete).
14352 (hpread_doc_function_type): Likewise.
14353 * hpread.c (hpread_function_type): Likewise.
14354
7fd60527
AC
143552002-01-20 Andrew Cagney <ac131313@redhat.com>
14356
14357 * configure.in (host_makefile_frag): Only require a host makefile
14358 fragment when a native build.
14359 * configure: Re-generate.
14360
c2f05ac9
AC
143612002-01-20 Andrew Cagney <ac131313@redhat.com>
14362
14363 * doublest.h (floatformat_from_type): Declare.
14364 * doublest.c (floatformat_from_type): New function.
14365 (convert_typed_floating): Use.
14366
14367 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14368 call to function floatformat_from_type.
14369
14370 * gdbarch.sh (IEEE_FLOAT): Delete.
14371 * gdbarch.h, gdbarch.c: Re-generate.
14372 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14373 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14374 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14375 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14376 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14377 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14378 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14379 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14380 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14381 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14382 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
14383 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14384
14385 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14386 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14387 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14388 * sh-tdep.c (sh_gdbarch_init): Ditto.
14389 * mips-tdep.c (mips_gdbarch_init): Ditto.
14390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14391 * cris-tdep.c (cris_gdbarch_init): Ditto.
14392
abf22e64
AJ
143932002-01-20 Jiri Smid <smid@suse.cz>
14394
14395 * configure.host, configure.tgt: Support x86-64.
14396 * NEWS: Note new target x86-64.
14397
b7c4cbf8
AJ
14398 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14399 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14400 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14401 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14402 x86-64-linux-nat.o): Fix dependencies.
14403
82600034
AC
144042002-01-19 Andrew Cagney <ac131313@redhat.com>
14405
14406 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14407 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14408 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14409 * config/sparc/xm-sun4os4.h: Delete file.
14410 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 14411
bbe5c628
AC
144122002-01-19 Andrew Cagney <ac131313@redhat.com>
14413
14414 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14415 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14416 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14417 * config/i386/i386lynx.mh (XM_FILE): Delete.
14418 * config/rs6000/xm-rs6000ly.h: Delete file.
14419 * config/sparc/xm-sparclynx.h: Delete file.
14420 * config/m68k/xm-m68klynx.h: Delete file.
14421 * config/i386/xm-i386lynx.h: Delete file.
14422 * config/xm-lynx.h: Delete file.
14423 * config/djgpp/fnchange.lst: Update.
14424
f8453e34
JT
144252002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14426
14427 * alpha-tdep.c (alpha_register_byte): New function.
14428 (alpha_register_raw_size): Ditto.
14429 (alpha_register_virtual_size): Ditto.
14430 (alpha_skip_prologue_internal): Renamed from
14431 alpha_skip_prologue.
14432 (alpha_skip_prologue): New version that calls
14433 alpha_skip_prologue_internal.
14434 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14435 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14436 second argument from alpha_skip_prologue.
14437 (REGISTER_BYTE): Use alpha_register_byte.
14438 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14439 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14440 (FRAMELESS_FUNCTION_INVOCATION): Use
14441 generic_frameless_function_invocation_not.
14442 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14443 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14444
52d9e613
AC
144452002-01-19 Andrew Cagney <ac131313@redhat.com>
14446
14447 * config/mips/xm-news-mips.h: Delete file.
14448 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14449
14450 * config/m88k/xm-m88k.h: Delete file.
14451 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14452 * config/m88k/xm-delta88v4.h: Ditto.
14453 * config/m88k/xm-delta88.h: Ditto.
14454
14455 * config/alpha/xm-fbsd.h: Delete file.
14456 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14457
14458 * config/sparc/xm-sparc.h: Delete file.
14459 * Makefile.in (xm-sun4os4.h): Delete dependency.
14460 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14461 * config/sparc/xm-sun4os4.h: Ditto.
14462 * config/sparc/xm-linux.h: Ditto.
14463
14464 * config/i386/xm-windows.h: Delete file.
14465
2d1b2124
AC
144662002-01-19 Andrew Cagney <ac131313@redhat.com>
14467
14468 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14469 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14470
ee1f65f0
JT
144712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14472
14473 * alpha-tdep.c (alpha_call_dummy_words): New.
14474 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14475 (CALL_DUMMY_P): Define.
14476 (CALL_DUMMY_WORDS): Define.
14477 (SIZEOF_CALL_DUMMY_WORDS): Define.
14478
98081e55
PB
144792002-01-19 Per Bothner <per@bothner.com>
14480
14481 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14482 isn't NULL, which can happen with some gcj-3.x-produced code.
14483
0d056799
JT
144842002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14485
14486 * alpha-tdep.c (alpha_register_virtual_type): New function.
14487 (alpha_init_frame_pc_first): Ditto.
14488 (alpha_fix_call_dummy): Ditto.
14489 (alpha_store_struct_return): Ditto.
14490 (alpha_extract_struct_value_address): Ditto.
14491 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14492 alpha_register_virtual_type.
14493 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14494 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14495 alpha_extract_struct_value_address.
14496 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14497 (INIT_FRAME_PC): Use init_frame_pc_noop.
14498 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14499
4604bcad
MK
145002002-01-19 Mark Kettenis <kettenis@gnu.org>
14501
14502 * i386gnu-nat.c: Include "i386-tdep.h".
14503 (fetch_fpregs): Simplify code dealing with uninitialized floating
14504 point states such that it doesn't require FP7_REGNUM.
14505
140f9984
JT
145062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14507
abf22e64
AJ
14508 * alpha-tdep.c (frame_extra_info): New.
14509 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14510 frame->extra_info.
14511 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14512 (alpha_frame_saved_pc): Use frame->extra_info.
14513 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14514 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14515 (init_extra_frame_info): Rename to...
14516 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14517 (alpha_print_extra_frame_info): New function.
140f9984
JT
14518 (alpha_frame_locals_address): Ditto.
14519 (alpha_frame_args_address): Ditto.
abf22e64 14520 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14521 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14522 alpha_frame_args_address.
abf22e64 14523 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14524 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14525 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14526 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14527 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14528 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14529
d734c450
JT
145302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14531
14532 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14533 (alpha_cannot_fetch_register): Ditto.
14534 (alpha_cannot_store_register): Ditto.
14535 (alpha_register_convertible): Ditto.
14536 (alpha_use_struct_convention): Ditto.
14537 * config/alpha/tm-alpha.h: Update copyright years.
14538 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14539 (INNER_THAN): Use core_addr_lessthan.
14540 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14541 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14542 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14543 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14544 (FRAME_CHAIN): Remove unnecessary cast.
14545
b4ceaee6
AC
145462002-01-18 Andrew Cagney <ac131313@redhat.com>
14547
14548 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14549 obsolete.
14550
0a65a603
AC
145512002-01-18 Andrew Cagney <ac131313@redhat.com>
14552
14553 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14554 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14555 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14556 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14557 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14558 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14559 * x86-64-linux-nat.c: Ditto.
14560
636a6dfc
JT
145612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14562
abf22e64 14563 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14564 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14565 (REGISTER_NAME): Define.
14566
acceddb6
JT
145672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14568
14569 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14570
ec32e4be
JT
145712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14572
14573 * alpha-tdep.c: Update copyright years.
14574 (alpha_next_pc): New function.
14575 (alpha_software_single_step): Ditto.
14576 * config/alpha/tm-alpha.h: Add prototype for
14577 alpha_software_single_step.
14578
e771a871
JT
145792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14580
14581 * alphabsd-nat.c: Update copyright years.
14582 (fill_gregset): Use regcache_collect.
14583 (fill_fpregset): Likewise.
14584 (fetch_inferior_registers): Only fetch integer registers
14585 if requested to do so.
14586 (store_inferior_registers): Only store integer registers
14587 if requested to do so.
14588
7708fa01
AC
145892002-01-17 Andrew Cagney <ac131313@redhat.com>
14590
14591 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14592 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14593 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14594 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14595 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14596 * config/arm/linux.mh (XDEPFILES): Delete.
14597 * config/arm/nbsd.mh (XDEPFILES): Delete.
14598 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14599 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14600 * config/i386/i386m3.mh (XDEPFILES): Delete.
14601 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14602 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14603 * config/i386/fbsd.mh (XDEPFILES): Delete.
14604 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14605 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14606 * config/i386/i386v4.mh (XDEPFILES): Delete.
14607 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14608 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14609 * config/i386/i386aix.mh (XDEPFILES): Delete.
14610 * config/i386/go32.mh (XDEPFILES): Delete.
14611 * config/i386/cygwin.mh (XDEPFILES): Delete.
14612 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14613 * config/i386/i386mach.mh (XDEPFILES): Delete.
14614 * config/i386/i386v32.mh (XDEPFILES): Delete.
14615 * config/i386/linux.mh (XDEPFILES): Delete.
14616 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14617 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14618 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14619 * config/i386/i386sco.mh (XDEPFILES): Delete.
14620 * config/i386/i386v.mh (XDEPFILES): Delete.
14621 * config/i386/nbsd.mh (XDEPFILES): Delete.
14622 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14623 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14624 * config/i386/symmetry.mh (XDEPFILES): Delete.
14625 * config/i386/obsd.mh (XDEPFILES): Delete.
14626 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14627 * config/ia64/linux.mh (XDEPFILES): Delete.
14628 * config/ia64/aix.mh (XDEPFILES): Delete.
14629 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14630 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14631 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14632 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14633 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14634 * config/m68k/linux.mh (XDEPFILES): Delete.
14635 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14636 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14637 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14638 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14639 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14640 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14641 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14642 * config/m88k/delta88.mh (XDEPFILES): Delete.
14643 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14644 * config/m88k/m88k.mh (XDEPFILES): Delete.
14645 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14646 * config/mips/linux.mh (XDEPFILES): Delete.
14647 * config/mips/irix6.mh (XDEPFILES): Delete.
14648 * config/mips/irix5.mh (XDEPFILES): Delete.
14649 * config/mips/irix4.mh (XDEPFILES): Delete.
14650 * config/mips/irix3.mh (XDEPFILES): Delete.
14651 * config/mips/decstation.mh (XDEPFILES): Delete.
14652 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14653 (NATDEPFILES): Move core-aout.o to here.
14654 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14655 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14656 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14657 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14658 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14659 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14660 * config/pa/hpux11.mh (XDEPFILES): Delete.
14661 * config/powerpc/aix.mh (XDEPFILES): Delete.
14662 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14663 * config/powerpc/linux.mh (XDEPFILES): Delete.
14664 * config/romp/rtbsd.mh: Rename XDEPFILES.
14665 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14666 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14667 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14668 * config/s390/s390.mh (XDEPFILES): Delete.
14669 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14670 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14671 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14672 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14673 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14674 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14675 * config/sparc/linux.mh (XDEPFILES): Delete.
14676 * config/vax/vaxult.mh (XDEPFILES): Delete.
14677 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14678 * Makefile.in (DEPFILES): Remove XDEPFILES.
14679
375fc983
AC
146802002-01-17 Andrew Cagney <ac131313@redhat.com>
14681
14682 * utils.c (internal_verror): Fix comments, default is yes not no.
14683 Update queries to match. Default to quit and dump core.
14684
8926118c
AC
146852002-01-17 Andrew Cagney <ac131313@redhat.com>
14686
14687 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14688 copyright.
14689 * defs.h, event-top.c, gdbcmd.h: Ditto.
14690 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14691 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14692 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14693 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14694 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14695 * mi/mi-main.c:Ditto.
14696
14697 * stack.c, symfile.c: Update copyright.
14698
45b7b345
DJ
146992002-01-17 Daniel Jacobowitz <drow@mvista.com>
14700
db728ff7
DJ
14701 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14702 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14703 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14704 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14705
db728ff7
DJ
147062002-01-17 Daniel Jacobowitz <drow@mvista.com>
14707
14708 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14709 * gdbserver/low-lynx.c (myattach): Likewise.
14710 * gdbserver/low-nbsd.c (myattach): Likewise.
14711 * gdbserver/low-sim.c (myattach): Likewise.
14712 * gdbserver/low-sparc.c (myattach): Likewise.
14713 * gdbserver/low-sun3.c (myattach): Likewise.
14714
14715 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14716
db728ff7 14717 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14718 (main): Handle "--attach".
14719
8de3c354
AC
147202002-01-16 Andrew Cagney <ac131313@redhat.com>
14721
14722 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14723 maintainer.
14724
b0129042
DJ
147252002-01-15 Daniel Jacobowitz <drow@mvista.com>
14726
14727 * c-typeprint.c (is_type_conversion_operator): Add additional
14728 check for non-conversion operators.
14729
ba8679fb 147302002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14731
14732 * linux-proc.c: Add "info proc" command, a la procfs.c.
14733 (read_mapping): New function, abstract and re-use code.
14734 (linux_find_memory_regions): Use new func read_mapping.
14735 (linux_info_proc_cmd): New function, implement "info proc".
14736 (_initialize_linux_proc): Add new command "info proc".
14737
e4f9b4d5
MS
147382002-01-15 Michael Snyder <msnyder@redhat.com>
14739
14740 * symfile.c (generic_load): Use bfd_map_over_sections method
14741 instead of manipulating bfd structure members directly.
14742 (add_section_size_callback): New function, bfd sections callback
14743 used by generic_load.
14744 (load_sections_callback): New function, bfd sections callback
14745 used by generic_load.
14746
08cf96df
EZ
147472002-01-15 Elena Zannoni <ezannoni@redhat.com>
14748
abf22e64 14749 [Based on work by Jim Blandy]
08cf96df
EZ
14750 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14751 (builtin_type_vec128): Export.
14752 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14753 types.
14754 (builtin_type_vec128): New builtin type for 128 bit vector
14755 registers.
14756 (build_gdbtypes): Initialize builtin_type_v16qi and
14757 builtin_type_v8hi. Create the vec128 register builtin type
14758 structure.
14759 (build_builtin_type_vec128): New function.
abf22e64 14760 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14761 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14762 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14763 AltiVec register to new builtin type.
14764
d7242108
DJ
147652001-01-15 Daniel Jacobowitz <drow@mvista.com>
14766
14767 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14768 to make_cv_type.
14769
4ee3352d
AC
147702002-01-14 Andrew Cagney <ac131313@redhat.com>
14771
14772 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14773 CLEAN_UP_REGISTER_VALUE.
14774 * regcache.c (supply_register): Update only call.
14775
f015b2e7
AC
147762002-01-14 Andrew Cagney <ac131313@redhat.com>
14777
14778 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14779 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14780 a29k-*-vxworks* targets as obsolete.
14781
356ae49d
MS
147822002-01-14 Michael Snyder <msnyder@redhat.com>
14783
14784 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14785 until we can resolve portability issues.
14786 * gregset.h: Remove references to fpxregs.
14787 * gcore.c (gcore_command): Initialize note_sec to NULL.
14788
ade8f45e
AC
147892002-01-13 Andrew Cagney <ac131313@redhat.com>
14790
14791 * signals.c (target_signal_to_name): Rewrite. Only use
14792 signals[].name when in bounds and non-NULL.
abf22e64 14793
89c49e7a
AC
147942002-01-13 Andrew Cagney <ac131313@redhat.com>
14795
14796 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14797 * signals.c (target_signal_to_name): Verify that SIG is within the
14798 bounds of the signals array.
14799
4daa9f9f
AC
148002002-01-13 Andrew Cagney <ac131313@redhat.com>
14801
14802 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14803
ba4bbdcb
KS
148042002-01-13 Keith Seitz <keiths@redhat.com>
14805
14806 * stack.c (print_frame_info_base): Print the frame's pc
14807 only if when print_frame_info_listing_hook is not defined.
14808
575bbeb6
KS
148092002-01-13 Keith Seitz <keiths@redhat.com>
14810
14811 * varobj.c (varobj_set_value): Make sure that there were no
14812 errors evaluating the object before attempting to set its
14813 value.
14814 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14815 so this offset adjustment is no longer necessary.
14816 (create_child): Don't set the error flag if the child is
14817 a CPLUS_FAKE_CHILD.
14818 (value_of_child): If value_fetch_lazy fails, return NULL
14819 so that callers will be notified that an error occurred.
14820 (c_value_of_variable): Delay check of variable's validity
14821 until later. We actually want all structs and unions to have
14822 the value "{...}".
14823 Do not return "???" for variables which could not be evaluated.
14824 This error condition must be returned to the caller so that it
14825 can get the error condition from gdb.
14826 (cplus_name_of_child): Adjust index for vptr before figuring
14827 out the name of the child.
14828 (cplus_value_of_child): If a child's (real) parent is not valid,
14829 don't even bother trying to give a value for it. Just return
14830 an error. Change all instances in this function.
14831 (cplus_type_of_child): If our parent is one of the "fake"
14832 parents, we need to get at the type of the real parent, and
14833 derive the child's true type using this information.
14834
b76898ab
AC
148352002-01-13 Andrew Cagney <ac131313@redhat.com>
14836
14837 From 2002-01-09 John Marshall <johnm@falch.net>:
14838 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14839 sources.redhat.com, and tweak some related URLs which had
14840 suffered from linkrot.
14841
b6649e88
AC
148422002-01-13 Andrew Cagney <ac131313@redhat.com>
14843
14844 From Jeff law:
14845 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14846 structures passed in registers.
14847
82cc5033
EZ
148482002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14849
14850 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14851 white space which prevented compilation. Reported by DSK
14852 <dsk@student.unsw.edu.au>.
14853
ba5f2f8a
MS
148542002-01-11 Michael Snyder <msnyder@redhat.com>
14855
fbd35540
MS
14856 * symfile.c (build_section_addr_info_from_section_tab):
14857 Use bfd access method instead of manipulating bfd directly.
14858 (syms_from_objfile): Ditto.
14859 (simple_overlay_update_1): Ditto.
14860 (simple_overlay_update): Ditto.
14861 (generic_load): Ditto.
14862 (overlay_unmapped_address): FIXME comment, bfd access methods.
14863 (sections_overlap): FIXME comment, bfd access methods.
14864 (pc_in_mapped_range): FIXME comment, bfd access methods.
14865 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14866 (section_is_mapped): FIXME comment, bfd access methods.
14867 (section_is_overlay): FIXME comment, bfd access methods.
14868
ba5f2f8a
MS
14869 * symfile.c (generic_load): Whitespace and long line cleanups.
14870 Remove duplicate variable, change several local variables to
14871 more appropriate data types.
14872 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14873
17df2af6
AC
148742002-01-12 Andrew Cagney <ac131313@redhat.com>
14875
14876 From Peter Schauer:
14877 * language.c (longest_local_hex_string_custom): Use phex_nz to
14878 convert NUM to a hex string.
14879
ec920329
EZ
148802002-01-12 Elena Zannoni <ezannoni@redhat.com>
14881
14882 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14883 the function.
538a76d6 14884 Update Copyright year.
ec920329 14885
3abd2e01
AC
148862002-01-12 Andrew Cagney <ac131313@redhat.com>
14887
14888 * language.c (longest_raw_hex_string): Delete unused function.
14889
b21b22e0
PS
148902002-01-11 Petr Sorfa <petrs@caldera.com>
14891
14892 * MAINTAINERS (write-after-approval): Add myself.
14893 * dwarf2read.c (read_tag_string_type): Handling of
14894 DW_AT_byte_size.
14895 (read_tag_string_type): FORTRAN fix to prevent propagation of
14896 first string size.
14897 (set_cu_language): Handling of DW_LANG_Fortran95
14898
747fe712
RE
148992002-01-11 Richard Earnshaw <rearnsha@arm.com>
14900
14901 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14902 GETPID(inferior_ptid).
14903 (store_inferior_registers): Likewise.
14904
f1bea926
JM
149052002-01-10 Jason Merrill <jason@redhat.com>
14906
14907 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14908 Fix DW_OP_minus.
14909
ae940673
AC
149102002-01-10 Andrew Cagney <ac131313@redhat.com>
14911
14912 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14913 and bfd/elf32-sh-nbsd.c.
14914
00546b04
MS
149152002-01-10 Michael Snyder <msnyder@redhat.com>
14916
352ed7b4
MS
14917 * NEWS: Mention --pid and corefile/proc-id behavior change.
14918
c18be923
MS
14919 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14920 * gcore.c: Include cli/cli-decode.h instead of command.h.
14921
00546b04
MS
14922 * main.c (captured_main): Add new command line option "--pid".
14923 If the second command line argument (following the symbol-file)
14924 begins with a digit, try to attach to it before trying to open
14925 it as a corefile.
14926 (print_gdb_help): Document the "--pid" argument.
14927
db60ec62
EZ
149282002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14929
14930 * completer.c (command_completer): New function.
14931
14932 * completer.h <command_completer>: Add prototype.
14933
14934 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14935 completer for the "help" command.
14936
39c22d1a
JM
149372002-01-09 Jason Merrill <jason@redhat.com>
14938
14939 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14940
c564377f
MS
149412002-01-09 Michael Snyder <msnyder@redhat.com>
14942
975aec09
MS
14943 * i386-linux-nat.c (fill_fpxregset): Make global.
14944 (store_fpxregset): Ditto.
14945
db4a10fa
MS
14946 * gregset.h (gdb_fpxregset_t): Define.
14947 (supply_fpxregset): Prototype.
14948 (fill_fpxregset): Prototype.
14949
c564377f
MS
14950 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14951
c3d45d70
RE
149522002-01-09 Richard Earnshaw <rearnsha@arm.com>
14953
14954 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14955 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14956 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14957
fcc87af1
AC
149582002-01-09 Andrew Cagney <ac131313@redhat.com>
14959
14960 * MAINTAINERS: Update target maintainer rules so that any
14961 Maintainer can approve a tested patch for a maintenance-only
14962 target.
14963
dd96c05b
RE
149642002-01-09 Richard Earnshaw <rearnsha@arm.com>
14965
d4297db9 14966 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14967
d4297db9 14968 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14969 IN_SIGTRAMP.
14970
145fdc6e
MS
149712002-01-08 Michael Snyder <msnyder@redhat.com>
14972
14973 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14974 real name of the executable, rather than the /proc name.
14975
be4d1333
MS
149762002-01-03 Michael Snyder <msnyder@redhat.com>
14977
14978 Implement a "generate-core-file" command in gdb, save target state.
14979 * gcore.c: New file. Implement new command 'generate-core-file'.
14980 Save a corefile image of the current state of the inferior.
14981 * linux-proc.c: Add linux-specific code for saving corefiles.
14982 * target.h (struct target_ops): Add new target vectors for saving
14983 corefiles; to_find_memory_regions and to_make_corefile_notes.
14984 (target_find_memory_regions): New macro.
14985 (target_make_corefile_notes): New macro.
14986 * target.c (update_current_target): Inherit new target methods.
14987 (dummy_find_memory_regions): New place-holder method.
14988 (dummy_make_corefile_notes): New place-holder method.
14989 (init_dummy_target): Initialize new dummy target vectors.
14990 * exec.c (exec_set_find_memory_regions): New function.
14991 Allow the exec_ops vector for memory regions to be taken over.
14992 (exec_make_note_section): New function, target vector method.
14993 * defs.h (exec_set_find_memory_regions): Export prototype.
14994 * procfs.c (proc_find_memory_regions): New function, corefile method.
14995 (procfs_make_note_section): New function, corefile method.
14996 (init_procfs_ops): Set new target vector pointers.
14997 (find_memory_regions_callback): New function.
14998 (procfs_do_thread_registers): New function.
14999 (procfs_corefile_thread_callback): New function.
15000 * sol-thread.c (sol_find_memory_regions): New function.
15001 (sol_make_note_section): New function.
15002 (init_sol_thread_ops): Initialize new target vectors.
15003 * inftarg.c (inftarg_set_find_memory_regions): New function.
15004 Allow to_find_memory_regions vector to be taken over.
15005 (inftarg_set_make_corefile_notes): New function.
15006 Allow to_make_corefile_notes vector to be taken over.
15007 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15008 interface layer if not target_has_execution (may be a corefile).
15009 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15010 * config/sparc/sun4sol2.mh: Ditto.
15011 * config/alpha/alpha-linux.mh: Ditto.
15012 * config/arm/linux.mh: Ditto.
15013 * config/i386/x86-64linux.mh: Ditto.
15014 * config/ia64/linux.mh: Ditto.
15015 * config/m68k/linux.mh: Ditto.
15016 * config/mips/linux.mh: Ditto.
15017 * config/powerpc/linux.mh: Ditto.
15018 * config/sparc/linux.mh: Ditto.
15019
c6b92abd
MS
150202002-01-07 Michael Snyder <msnyder@redhat.com>
15021
15022 * arm-linux-nat.c: Remove references to regcache.c internal data
15023 (registers[] and register_valid[]).
15024
4b09dc8c
MS
150252002-01-07 Michael Snyder <msnyder@redhat.com>
15026
abf22e64
AJ
15027 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15028 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
15029 symbol file and shlibs.
15030 * Makefile.in: Add rule for linux-proc.o.
15031 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15032 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15033 * config/arm/linux.mh: Ditto.
15034 * config/i386/linux.mh: Ditto.
15035 * config/i386/x86-64linux.mh: Ditto.
15036 * config/ia64/linux.mh: Ditto.
15037 * config/m68k/linux.mh: Ditto.
15038 * config/mips/linux.mh: Ditto.
15039 * config/powerpc/linux.mh: Ditto.
15040 * config/sparc/linux.mh: Ditto.
15041
c25b74ac
PM
150422002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15043
15044 * win32-nat.c: Add i386-tdep.h dependency.
15045
94cd915f
MS
150462002-01-07 Michael Snyder <msnyder@redhat.com>
15047
c7cccb76
MS
15048 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15049 instead of bfd_get_arch_size. Don't bail out just because
15050 there's no exec_bfd.
abf22e64 15051
34c0bd93
MS
15052 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15053 * p-valprint.c (pascal_object_print_value): Ditto.
15054 * somread.c (som_symtab_read): Ditto.
15055 * symfile.c (simple_free_overlay_region_table): Ditto.
15056 * valops.c (value_assign): Ditto.
15057
21c1c920
MS
15058 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15059 use tilde_expand and strerror for opening save-tracepoints file.
15060
5bbd998e
MS
15061 * thread-db.c (thread_db_new_objfile): Indendation fix.
15062
94cd915f
MS
15063 * infptrace.c (GDB_MAX_ALLOCA): New define.
15064 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 15065 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
15066 can be overridden with whatever value is appropriate to the host).
15067 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15068 alloca to allocate potentially large buffer.
15069 * rs6000-nat.c (child_xfer_memory): Ditto.
15070 * symm-nat.c (child_xfer_memory): Ditto.
15071 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15072
494e8a93
JSC
150732002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15074
15075 From Nick Clifton <nickc@redhat.com>
15076 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15077
d0e1d48e
MS
150782002-01-07 Michael Snyder <msnyder@redhat.com>
15079
abf22e64 15080 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
15081 Don't use exec_bfd if it's NULL.
15082
290b2c7a
MK
150832002-01-06 Mark Kettenis <kettenis@gnu.org>
15084
abf22e64 15085 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 15086
aef21287
AC
150872002-01-06 Andrew Cagney <ac131313@redhat.com>
15088
15089 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15090 * gnu-nat.c: Ditto.
15091
30efa627
AC
150922002-01-06 Andrew Cagney <ac131313@redhat.com>
15093
15094 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15095 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15096 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15097 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15098 z8k-coff have not been multi-arched. Update z8k-coff build
15099 status.
15100
9b4ff276
AC
151012002-01-06 Andrew Cagney <ac131313@redhat.com>
15102
15103 * MAINTAINERS: Mark a29k target as obsolete.
15104 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15105 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15106 comments.
15107 * NEWS: Note that a29k targets are obsolete.
15108 * a29k-tdep.c: Mark as obsolete.
15109 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15110 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15111 a29k-*-vxworks* targets as obsolete.
15112 * remote-adapt.c: Obsolete.
15113 * remote-eb.c: Obsolete.
15114 * remote-mm.c: Obsolete.
15115 * remote-udi.c: Obsolete.
15116 * config/a29k/a29k-udi.mt: Obsolete.
15117 * config/a29k/a29k.mt: Obsolete.
15118 * config/a29k/tm-a29k.h: Obsolete.
15119 * config/a29k/tm-vx29k.h: Obsolete.
15120 * config/a29k/vx29k.mt: Obsolete.
15121
a9011d31
AC
151222002-01-05 Andrew Cagney <ac131313@redhat.com>
15123
15124 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15125 with BFD_ENDIAN_BIG.
15126
9299404e
AC
151272002-01-05 Andrew Cagney <ac131313@redhat.com>
15128
15129 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15130 * configure, config.in: Re-generate.
15131 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15132 * defs.h: Do not include <endian.h>.
15133
7e89e357
JT
151342002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15135
15136 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15137 * config.in: Regenerate.
15138 * configure.in: Update copyright years.
15139 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15140 * configure: Regenerate.
15141 * i386bsd-nat.c: Update copyright years.
15142 (fill_gregset): Use regcache_collect.
15143 (fetch_inferior_registers): Only fetch integer registers
15144 if requested to do so. Add support for XMM registers
15145 using PT_GETXMMREGS.
15146 (store_inferior_registers): Only store integer registers
15147 if requested to do so. Add support for XMM registers
15148 using PT_SETXMMREGS.
15149 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15150 (store_inferior_registers): Remove.
15151 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15152 (fetch_elfcore_registers): New function.
15153 (i386nbsd_elfcore_fns): New.
15154 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15155 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15156 i386bsd-nat.o.
15157 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15158 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15159 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15160 * config/i386/tm-nbsd.h: Update copyright years.
15161 (HAVE_SSE_REGS): Define.
15162 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15163 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15164 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15165 (SIGCONTEXT_PC_OFFSET): Remove.
15166 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15167
a752853e
AC
151682002-01-05 Andrew Cagney <ac131313@redhat.com>
15169
15170 * configure.tgt: Remove powerpc-*-macos* target.
15171 * config/m68k/xm-mpw.h: Delete file.
15172 * config/xm-mpw.h: Delete file.
15173 * ser-mac.c: Delete file.
15174 * mpw-make.sed: Delete file.
15175 * mpw-config.in: Delete file.
15176 * mac-xdep.c: Delete file.
15177 * mac-gdb.r: Delete file.
15178 * mac-defs.h: Delete file.
15179 * mac-nat.c: Delete file.
15180 * config/powerpc/macos.mh: Delete file.
15181 * config/powerpc/macos.mt: Delete file.
15182 * config/powerpc/nm-macos.h: Delete file.
15183 * config/powerpc/tm-macos.h: Delete file.
15184 * source.c (openp, open_source_file): Remove obsolete code.
15185 * top.c (gdb_readline): Ditto.
15186 * utils.c (query): Ditto.
15187 * event-top.c (display_gdb_prompt): Ditto.
15188 * Makefile.in (ser-mac.o): Delete obsolete target.
15189 * NEWS: Update.
15190
d7449b42
AC
151912002-01-04 Andrew Cagney <ac131313@redhat.com>
15192
15193 * defs.h (BIG_ENDIAN): Delete macro definition.
15194 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15195 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15196 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15197 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15198 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15199 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15200 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15201 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15202 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15203 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15204 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15205 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15206 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15207 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15208 * gdbarch.c: Re-generate.
15209
356374e8
DJ
152102002-01-04 Daniel Jacobowitz <drow@mvista.com>
15211
15212 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15213 for core files.
15214
a2b8f8f8
JT
152152002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15216
15217 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15218
12466af9
AC
152192002-01-04 Andrew Cagney <ac131313@redhat.com>
15220
15221 * value.h (value_ptr): Delete typedef.
15222
3549ab40
JT
152232002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15224
15225 * i386nbsd-nat.c: Update copyright years.
15226 Include i386-tdep.h.
15227
fedbd091
EZ
152282002-01-04 Elena Zannoni <ezannoni@redhat.com>
15229
15230 * stabsread.c: Update copyright years.
15231
15232 From Debashis Mahata <debashis.mahata@wipro.com>:
15233 (read_struct_fields): Deal with Sun C compiler erroneous stab
15234 output for structs and unions.
fec8b34f 15235 Fix PR gdb/269.
fedbd091 15236
eb43544b
DJ
152372002-01-04 Daniel Jacobowitz <drow@mvista.com>
15238
15239 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15240 prototype.
15241
1514d34e
DJ
152422002-01-04 Daniel Jacobowitz <drow@mvista.com>
15243
15244 * cp-abi.c: Fix whitespace.
15245 (baseclass_offset): New wrapper function.
15246 * cp-abi.h (baseclass_offset): Add prototype.
15247 (struct cp_abi_ops): Add baseclass_offset pointer.
15248
15249 * valops.c (vb_match): Move to...
15250 * gnu-v2-abi.c (vb_match): here.
15251 * valops.c (baseclass_offset): Move to...
15252 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15253
15254 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15255
15256 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15257 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15258 * hpacc-abi.c (init_hpacc_ops): Likewise.
15259
7f8c9282
DJ
152602002-01-04 Daniel Jacobowitz <drow@mvista.com>
15261
15262 * valops.c (find_overload_match): Accept obj as a
15263 reference parameter. Update it before returning.
15264 * value.h (find_overload_match): Update prototype.
15265 * eval.c (evaluate_subexp_standard): Pass object to
15266 find_overload_match by reference.
15267
f23631e4
AC
152682002-01-03 Andrew Cagney <ac131313@redhat.com>
15269
15270 * valarith.c: Replace value_ptr with struct value pointer. Remove
15271 register attribute from value declarations.
15272 * valops.c: Ditto.
15273 * value.h: Ditto.
15274 * scm-lang.c (scm_lookup_name): Ditto.
15275
79e10fab 152762002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 15277
79e10fab
AC
15278 Abstract the functionality of iterating over mapped memory
15279 regions into a general purpose iterator function.
abf22e64 15280 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
15281 iterator for memory sections.
15282 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15283 (solib_mappings_callback): New function, callback for above.
15284 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15285 (info_mappings_callback): New function, callback for above.
15286
15287 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15288
c5ad026a
MK
152892002-01-01 Mark Kettenis <kettenis@gnu.org>
15290
d2a7c97a
MK
15291 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15292 * i386-tdep.c: Include "elf-bfd.h".
15293 (process_note_abi_tag_sections): New function.
15294 (i386_gdbarch_init): Add code to recognize various OS/ABI
15295 combinations.
15296
c5ad026a
MK
15297 * maint.c (_initialize_maint_cmds): Add missing \ in
15298 string-literal.
15299
a1a5b71e 15300For older changes see ChangeLog-2001
c906108c
SS
15301\f
15302Local Variables:
15303mode: change-log
15304left-margin: 8
15305fill-column: 74
15306version-control: never
15307End:
This page took 2.774043 seconds and 4 git commands to generate.