2003-01-03 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8ccd593b
AC
12003-01-03 Andrew Cagney <cagney@redhat.com>
2
3 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4 * avr-tdep.c, cris-tdep.c: Ditto.
5 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7
91151a06
MK
82003-01-03 Mark Kettenis <kettenis@gnu.org>
9
10 * configure.in: Remove --enable-netrom option.
11 * configure: Regenerated.
12
8fe84d01
MK
132003-01-03 Mark Kettenis <kettenis@gnu.org>
14
15 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
16 declaration for `struct re_pattern_buffer' instead.
17 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
18
f0394be6
JB
192003-01-03 J. Brobecker <brobecker@gnat.com>
20
21 * mdebugread.c (parse_symbol): Count until the stEnd matching
22 the structure name.
23
27e9bf90
MK
242003-01-02 Mark Kettenis <kettenis@gnu.org>
25
93d331ba
MK
26 * configure.in: Remove --with-cpu option.
27 subscripts. Remove evil changequotes here.
28 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
29 * config.in, configure: Regenerated.
30
27e9bf90
MK
31 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
32 * configure.in: Cleanup section that sources GDB and BFD configure
33 subscripts. Remove evil changequotes here.
34 * config.in, configure: Regenerated.
35
50abf9e5
AC
362003-01-02 Andrew Cagney <ac131313@redhat.com>
37
38 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
39 frame accessor methods.
40 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
41 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
42 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
43 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
44 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
45 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
46 * z8k-tdep.c: Ditto.
47
287c1a40
MK
482003-01-02 Mark Kettenis <kettenis@gnu.org>
49
f5dbc56d
MK
50 * configure.in: Remove UI_OUT configuration code.
51 * ada-lang.c: Update assuming UI_OUT is always true.
52 * Makefile.in (UIOUT_CFLAGS): Remove.
53 * configure: Regenerated.
54 * TODO: Remove blurb about elimination of -DUI_OUT.
55
627af7ea
MK
56 * configure.in: Move code that provides the --enable-gdbcli,
57 --enable-gdbmi options right before the code that handles the
58 --enable-tui option. Polish a bit.
59 * configure: Regenerated.
60
06825bd1
MK
61 * configure.in: Rewrite check for GNU regex and the
62 --without-included regex option, and move it into the "Checks for
63 library functions" section. This makes us use the system regex
64 again by default on systems with version 2 of the GNU C library.
65 This was apparently broken.
66 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
67 * acconfig.h (USE_INCLUDED_REGEX): Remove.
68 * config.in, configure: Regenerated.
69
287c1a40
MK
70 * configure.in: Move code that provides the --enable-tui option
71 before the "Checks for libraries" section. Polish the code
72 somewhat and set need_curses to yes if we build the TUI. Rewrite
73 code that looks for a library providing termcap functionality to
74 match more closely what's done in the Readline library, and move
75 it into to the "Checks for libraries" section.
76 * configure: Regenerated.
77 * Makefile.in (TERMCAP): Remove variable.
78 * config/i386/go32.mh (TERMCAP): Remove variable.
79
684e56bf
AC
802003-01-02 Andrew Cagney <ac131313@redhat.com>
81
82 * MAINTAINERS: Mention gdb_mbuild.sh.
83 * gdb_mbuild.sh: Rewrite.
84
e1ea1d75
MK
852003-01-02 Mark Kettenis <kettenis@gnu.org>
86
87 * configure.in: Fix typo in last change.
88 * config.in, configure: Regenerated.
89
1b831c93
AC
902003-01-02 Andrew Cagney <ac131313@redhat.com>
91
92 * valarith.c (value_binop): Delete obsolete code and comments.
93 * configure.host: Ditto.
94 * buildsym.h (make_blockvector): Ditto.
95 * buildsym.c (make_blockvector): Ditto.
96 * defs.h (enum language): Ditto.
97 (chill_demangle): Ditto.
98 * elfread.c (elf_symtab_read): Ditto.
99 * dwarfread.c (CHILL_PRODUCER): Ditto.
100 (set_cu_language): Ditto.
101 (handle_producer): Ditto.
102 * expprint.c (print_subexp): Ditto.
103 * gdbtypes.c (chill_varying_type): Ditto.
104 * gdbtypes.h (builtin_type_chill_bool): Ditto.
105 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
106 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
107 (chill_varying_type): Ditto.
108 * language.h (_LANG_chill): Ditto.
109 * language.c (binop_result_type, integral_type): Ditto.
110 (character_type, string_type, structured_type): Ditto.
111 (lang_bool_type, binop_type_check): Ditto.
112 * stabsread.h (os9k_stabs): Ditto.
113 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
114 (define_symbol, read_type, read_struct_fields): Ditto.
115 (read_array_type, read_enum_type, read_huge_number): Ditto.
116 (read_range_type, start_stabs): Ditto.
117 * symfile.c (init_filename_language_table): Ditto.
118 (add_psymbol_with_dem_name_to_list): Ditto.
119 * symtab.c (symbol_init_language_specific): Ditto.
120 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
121 * symtab.h (struct general_symbol_info): Ditto.
122 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
123 * typeprint.c (typedef_print): Ditto.
124 * utils.c (fprintf_symbol_filtered): Ditto.
125 * valops.c (value_cast, search_struct_field, value_slice): Delete
126 obsolete code.
127 (varying_to_slice): Delete function.
128 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
129 (varying_to_slice): Delete declaration.
130 * MAINTAINERS: Update.
131
8bb2c122
MK
1322003-01-02 Mark Kettenis <kettenis@gnu.org>
133
97bf5e38
MK
134 * configure.in: Reorganize "Checks for library functions section"
135 a bit. Remove check for `btowc' and `isascii' functions.
136 * configure: Regenerated.
137
5ee754fc
MK
138 * acconfig.h (_MSE_INT_H): Remove.
139 * configure.in: Create "Checks for header files" section, and move
140 appropriate tests there. Don't check for objlist.h, wchar.h,
141 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
142 misdetection fix. Also add "Checks for types", "Checks for
143 compiler characteristics" and "Checks for library functions"
144 sections.
145 * config.in, configure: Regenerated.
146
8bb2c122
MK
147 * configure.in: Create "Checks for programs" section, and move
148 appropriate tests there.
149
9a156167
MK
1502003-01-01 Mark Kettenis <kettenis@gnu.org>
151
152 * configure.in: Create "Checks for libraries" section, and move
153 appropriate tests there. Cleanup check for wctype in libw. Use
154 AC_SEARCH_LIBS to see whether we need libsocket.
155 * configure: Regenerated.
156
3250596b
MK
1572002-12-31 Mark Kettenis <kettenis@gnu.org>
158
159 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
160 * config.in, configure: Regenerated.
161
9608ab8b
MK
1622002-12-31 Mark Kettenis <kettenis@gnu.org>
163
164 * gdb_dirent.h: Cleanup and update code to match the example in
165 the Autoconf manual.
166 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
167 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
168 * configure: Regenerated.
169
7ee21aad
AF
1702002-12-30 Adam Fedor <fedor@gnu.org>
171
172 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
173 (yylex): Initialize c to avoid uninitialized warning.
174
4c8eeedd
KH
1752002-12-29 Kazu Hirata <kazu@cs.umass.edu>
176
177 * doc/fdl.texi: Revert the last change.
178
6f2ecac5
MK
1792002-12-29 Mark Kettenis <kettenis@gnu.org>
180
181 * tracepoint.c (ISATTY): Removed.
182
60383d10
JB
1832002-12-26 J. Brobecker <brobecker@gnat.com>
184
185 Continuing work to convert the hppa targets to multiarch partil.
186
187 * hppa-tdep.c: Add some missing forward declarations.
188 (frameless_function_invocation): Prefix the function name
189 by "hppa_" to avoid polluting the namespace. Update all calls
190 to use the new function name.
191 (saved_pc_after_call): Ditto.
192 (init_extra_frame_info): Ditto.
193 (frame_chain): Ditto.
194 (push_dummy_frame): Ditto.
195 (target_read_pc): Ditto.
196 (target_write_pc): Ditto.
197 (in_solib_call_trampoline): Ditto.
198 (in_solib_return_trampoline): Ditto.
199 (skip_trampoline_code): Ditto.
200 (hppa_read_fp): New function, renamed from target_read_fp.
201 (hppa_target_read_fp): New function, using hppa_read_fp.
202 This function conforms to the function profile for the
203 READ_FP gdbarch method.
204 (hppa_extract_struct_value_address): New function, extracted
205 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
206 macro.
207 (hppa_frame_num_args): New function.
208 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
209
210 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
211 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
212 for the switch to multiarch partial.
213 Update some of the macros definitions to match some changes
214 described above in the name of the function they are calling.
215 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
216 not be straightforward to convert. Do now wrap it inside
217 "#if !... #endif" to remember that this macro has still not
218 been taken care of.
219 (FIX_CALL_DUMMY): Likewise.
220
60e1ff27
JB
2212002-12-26 J. Brobecker <brobecker@gnat.com>
222
223 Continuing work to convert the hppa targets to multiarch partial.
224
60383d10 225 * hppa-tdep.c (hppa_register_raw_size): New function replacing
60e1ff27
JB
226 the body of macro REGISTER_RAW_SIZE.
227 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
228 config/pa/tm-hppah.h. These functions will be used to initialize
229 the gdbarch structure.
230 (hppa_hpux_pc_in_sigtramp): New function.
231 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
232 (hppa_hpux_frame_base_before_sigtramp): New function.
233 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
234 Add gdbcore.h #include.
235 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
236 of this gdbarch-eligible macro to a call to the new associated
237 function.
238 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
239 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
240 into a call to the new associated function.
241 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
242 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
243 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
244
6c756a30
DC
2452002-12-24 David Carlton <carlton@math.stanford.edu>
246
247 * config/sparc/tm-sparc.h: Delete duplicate definition of
248 DEPRECATED_PC_IN_CALL_DUMMY.
249
96f026fc
KB
2502002-12-24 Kevin Buettner <kevinb@redhat.com>
251
252 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
253 $(gdb_assert_h).
254 * configure.tgt: Recognize mips64*-*-linux*.
255 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
256 (supply_32_bit_reg): New function.
257 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
258 (fill_gregset): Use regcache_collect() instead of
259 deprecated_registers[].
260 (register_addr): Change name to mips_linux_register_addr().
261 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
262 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
263 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
264 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
265 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
266 (MIPS64_LINUX_JB_PC): New defines.
267 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
268 (mips64_elf_fpregset_t): New typedefs.
269 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
270 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
271 (mips64_linux_register_addr, set_mips_linux_register_addr)
272 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
273 (init_register_addr_data)
274 New functions.
275 (fetch_core_registers): Add support for core file formats with 64-bit
276 registers.
277 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
278 (register_addr_data): New static global variable.
279 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
280 gdbarch_register_osabi() for each MIPS machine.
281 * config/mips/linux64.mt: New file.
282 * config/mips/tm-linux64.h: New file.
283
5a24b7e3
AF
2842002-12-23 Adam Fedor <fedor@gnu.org>
285
286 * maint.c (maintenance_demangle): Add switch to demangle
287 ObjC language symbols as well.
288
9d1127c5
AF
2892002-12-23 Adam Fedor <fedor@gnu.org>
290
291 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
292 last argument from complaint function call.
293
96f026fc 2942002-12-23 Kevin Buettner <kevinb@redhat.com>
bcf16802
KB
295
296 * exec.c (print_section_info): Add FIXME comments regarding format
297 string choices.
298
710686b3
DJ
2992002-12-23 Daniel Jacobowitz <drow@mvista.com>
300
301 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
302 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
303
3042002-12-23 Rodney Brown <rbrown64@csc.com.au>
305
306 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
307
e45febe2
DC
3082002-12-23 David Carlton <carlton@math.stanford.edu>
309
310 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
311 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
312 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
313 information associated to a minsym, not lookup_symbol.
314
2213a65d
MK
3152002-12-21 Mark Kettenis <kettenis@gnu.org>
316
317 * x86-64-tdep.h (x86_64_init_abi): New prototype.
318 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
319 (x86_64_init_abi): Make non-static. Set number of pseudo
320 registers to 0.
321 (x86_64_gdbarch_init): Remove function.
322 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
323 Remove code dealing with dissambly.
324 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
325 (_initialize_x86_64_linux_tdep): New function.
326 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
327 i386-tdep.o.
328
05816f70
MK
3292002-12-14 Mark Kettenis <kettenis@gnu.org>
330
331 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
332 (struct gdb_osabi_handler): Remove member `arch'. Add member
333 `arch_info'.
334 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
335 construct a `struct bfd_arch_info' and store it in the `struct
336 gdb_osabi_handler' that is created.
337 (gdbarch_init_osabi): Check for compatibility based on machine
338 type and architecture.
339 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
340 comment.
341 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
342 second argument in call to gdbarch_register_osabi.
343 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
344 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
345 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
346 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
347 * arm-tdep.c (_initialize_arm_tdep): Likewise.
348 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
349 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
350 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
351 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
352 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
353 * i386-tdep.c (_initialize_i386_tdep): Likewise.
354 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
355 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
356 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
357 _initialize_i386bsd_tdep and updated likewise.
358 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
359 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
360 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
361 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
362 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
363 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
364 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
365 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
366 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
367 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
368
743b930b
KB
3692002-12-20 Kevin Buettner <kevinb@redhat.com>
370
371 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
372 DT_MIPS_RLD_MAP case for 64-bit targets.
373
3758ac48
KB
3742002-12-20 Kevin Buettner <kevinb@redhat.com>
375
376 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
377 ``temp_saved_regs'', not the pointer or other storage contiguous
378 to this pointer.
379
19ed69dd
KB
3802002-12-20 Kevin Buettner <kevinb@redhat.com>
381
382 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
383 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
384 (mips_linux_get_longjmp_target): Delete declarations.
385 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
386 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
387 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
388 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
389 (mips_linux_get_longjmp_target)
390 (mips_linux_svr4_fetch_link_map_offsets): Make static.
391 (mips_linux_init_abi): New function.
392 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
393
7990a578
EZ
3942002-12-19 Keith Seitz <keiths@redhat.com>
395
396 patch committed by Elena Zannoni <ezannoni@redhat.com>
397 * thread.c (do_captured_list_thread_ids): Call prune_threads and
398 target_find_new_threads. Fix for PR mi/669.
399
84fba31b
DC
4002002-12-19 David Carlton <carlton@math.stanford.edu>
401
402 * linespec.c (decode_line_1): Move code into decode_all_digits.
403 (decode_all_digits): New function.
404
2fc70c99
KB
4052002-12-19 Kevin Buettner <kevinb@redhat.com>
406
407 * exec.c (print_section_info): Select a format string to use with
408 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
409
2f107107
AC
4102002-12-18 Andrew Cagney <ac131313@redhat.com>
411
412 * frame.c (deprecated_update_current_frame_pc_hack): Replace
413 deprecated_update_current_frame_pc_hack.
414 (deprecated_update_frame_base_hack): New function.
415 * frame.h (deprecated_update_frame_pc_hack): Replace
416 (deprecated_update_frame_base_hack): Declare.
417 * infrun.c (normal_stop): Update.
418
c9012c71
AC
4192002-12-18 Andrew Cagney <ac131313@redhat.com>
420
421 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
422 frame_extra_info_zalloc.
423 (rs6000_frame_args_address): Use get_frame_extra_info.
424 (frame_get_saved_regs): Use get_frame_saved_regs.
425 (frame_initial_stack_address): Use get_frame_saved_regs and
426 get_frame_extra_info.
427 (frame_initial_stack_address): Use get_frame_extra_info.
428
6819ae38
KB
4292002-12-17 Kevin Buettner <kevinb@redhat.com>
430
431 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
432 array size.
433 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
434 checks for r3900_regnames[].
435
625602f2
RE
4362002-12-17 Richard Earnshaw <rearnsha@arm.com>
437
438 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
439 All uses changed
440 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
441
38d49aff
DC
4422002-12-17 David Carlton <carlton@math.stanford.edu>
443
444 * symtab.c (lookup_partial_symbol): Don't search past the end of
445 the partial symbols.
446
30f7db39
AC
4472002-12-17 Andrew Cagney <ac131313@redhat.com>
448
449 * stack.c (frame_info): Use get_frame_saved_regs.
450 * breakpoint.c (until_break_command): Use get_frame_pc.
451
23136709
KB
4522002-12-16 Kevin Buettner <kevinb@redhat.com>
453
454 * buildsym.c (block_end_complaint, anon_block_end_complaint)
455 (innerblock_complaint, innerblock_anon_complaint)
456 (blockvector_complaint): Delete deprecated complaint structs.
457 (finish_block, make_blockvector, end_symtab): Replace calls
458 to complain() with calls to complaint().
459 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
460 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
461 (unexpected_type_complaint, bad_sclass_complaint)
462 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
463 Delete deprecated complaint structs.
464 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
465 Replace calls to complain() with calls to complaint().
466 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
467 (unknown_symtype_complaint, unknown_symchar_complaint)
468 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
469 (lbrac_mismatch_complaint, repeated_header_complaint)
470 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
471 Delete deprecated complaint structs.
472 (unknown_symtype_complaint, lbrac_mismatch_complaint)
473 (repeated_header_complaint)
474 (function_outside_compiliation_unit_complaint): New functions.
475 (add_old_header_file, find_corresponding_bincl_psymtab)
476 (set_namestring, find_stab_function_addr, read_dbx_symtab)
477 (process_one_symbol): Replace calls to complain() with, possibly
478 indirect, calls to complaint().
479 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
480 (unknown_attribute_form, unknown_attribute_length)
481 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
482 (const_ignored, botched_modified_type, op_deref2, op_deref4)
483 (basereg_not_handled, dup_user_type_allocation)
484 (dup_user_type_definition, missing_tag, bad_array_element_type)
485 (subscript_data_items, unhandled_array_subscript_format)
486 (unknown_array_subscript_format, not_row_major)
487 (missing_at_name): Delete deprecated complaint structs.
488 (bad_die_ref_complaint, unknown_attribute_form_complaint)
489 (dup_user_type_definition_complaint)
490 (bad_array_element_type_complaint): New functions.
491 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
492 (decode_subscript_data_item, dwarf_read_array_type)
493 (read_tag_string_type, read_subroutine_type, read_func_scope)
494 (locval, scan_partial_symbols, decode_modified_type)
495 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
496 (attribute_size): Replace calls to complain() with, possibly
497 indirect, calls to complaint().
498 * elfread.c (section_info_complaint, section_info_dup_complaint)
499 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
500 Delete deprecated complaint structs.
501 (elf_symtab_read, elfstab_offset_sections): Replace calls to
502 complain() with calls to complaint().
503 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
504 struct.
505 (stub_noname_complaint): New function.
506 (check_typedef, add_mangled_type): Replace calls to complain()
507 with calls to complaint().
508 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
509 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
510 (hpread_unhandled_type_complaint, hpread_struct_complaint)
511 (hpread_array_complaint, hpread_type_lookup_complaint)
512 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
513 (hpread_unhandled_common_complaint)
514 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
515 struct definitions and declarations.
516 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
517 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
518 Replace calls to complain() with, possibly indirect, calls to
519 complaint().
520 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
521 Likewise.
522 * mdebugread.c (bad_file_number_complaint, index_complaint)
523 (aux_index_complaint, block_index_complaint)
524 (unknown_ext_complaint, unknown_sym_complaint)
525 (unknown_st_complaint, block_overflow_complaint)
526 (basic_type_complaint, unknown_type_qual_complaint)
527 (array_index_type_complaint, bad_tag_guess_complaint)
528 (block_member_complaint, stEnd_complaint)
529 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
530 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
531 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
532 (bad_continued_complaint, bad_rfd_entry_complaint)
533 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
534 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
535 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
536 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
537 complaint structs.
538 (index_complaint, unknown_ext_complaint, basic_type_complaint)
539 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
540 (unexpected_type_code_complaint)
541 (function_outside_compilation_unit_complaint): New functions.
542 (parse_symbol, parse_type, upgrade_type, parse_procedure)
543 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
544 Replace calls to complain() with, possibly indirect calls to
545 complaint().
546 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
547 Delete deprecated complaint structs.
548 (lookup__objc_class, lookup_child_selector): Replace complain()
549 with complaint().
550 * remote-vx.c (cant_contact_target): Delete deprecated complaint
551 struct.
552 (vx_lookup_symbol): Replace complain() with complaint().
553 * stabsread.c (invalid_cpp_abbrev_complaint)
554 (invalid_cpp_type_complaint, member_fn_complaint)
555 (const_vol_complaint, error_type_complaint)
556 (invalid_member_complaint, range_type_base_complaint)
557 (reg_value_complaint, vtbl_notfound_complaint)
558 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
559 (unresolved_sym_chain_complaint, stabs_general_complaint)
560 (lrs_general_complaint, multiply_defined_struct): Delete
561 deprecated complaint structs.
562 (invalid_cpp_abbrev_complaint, ref_value_complaint)
563 (stabs_general_complaint, lrs_general_complaint)
564 (msg_unknown_complaint): New functions.
565 (dbx_lookup_type, read_cfront_baseclasses)
566 (read_cfront_member_functions, resolve_symbol_reference)
567 (define_symbol, resolve_live_range, add_live_range, read_type)
568 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
569 (read_one_struct_field, read_baseclasses, read_tilde_fields)
570 (read_cfront_static_fields, attach_fields_to_type)
571 (complain_about_struct_wipeout, read_range_type)
572 (common_block_start, common_block_end, cleanup_undefined_types)
573 (scan_file_globals): Replace complain() with complaint().
574 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
575 Delete deprecated complaint struct declarations.
576 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
577 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
578 (bf_not_found_complaint, ef_complaint, eb_complaint)
579 (function_outside_compilation_unit_complaint): New functions.
580 (record_include_begin, record_include_end, enter_line_range)
581 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
582 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
583 complain() with complaint().
584
1a14e234
AC
5852002-12-16 Andrew Cagney <ac131313@redhat.com>
586
587 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
588 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
589 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
590 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
591 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
592 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
593 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
594 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
595 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
596 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
597 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
598 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
599 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
600 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
601 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
602 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
603 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
604 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
605 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
606 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
607 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
608 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
609 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
610 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
611 * config/m88k/xm-dgux.h: Delete.
612 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
613 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
614 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
615 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
616 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
617 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
618 * ch-valprint.c: Delete.
619
04e68871
DJ
6202002-12-15 Daniel Jacobowitz <drow@mvista.com>
621
622 * infrun.c (handle_inferior_event): Rearrange code to resume if
623 no catchpoint triggers for an event.
624
deb3b17b
DJ
6252002-12-15 Daniel Jacobowitz <drow@mvista.com>
626
627 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
628 and TARGET_WAITKIND_VFORKED cases.
629
675bf4cb
DJ
6302002-12-15 Daniel Jacobowitz <drow@mvista.com>
631
632 * infrun.c (handle_inferior_event): Assume that catchpoints
633 are not affected by DECR_PC_AFTER_BREAK.
634
81e56179
DJ
6352002-12-15 Daniel Jacobowitz <drow@mvista.com>
636
637 * target.c (update_current_target): Don't inherit DONT_USE.
638 * target.h (struct target_ops): Remove DONT_USE.
639 (target_next): Remove macro.
640
a3edc55b
MK
6412002-12-15 Mark Kettenis <kettenis@gnu.org>
642
643 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
644
b508a996
RE
6452002-12-14 Richard Earnshaw <rearnsha@arm.com>
646
647 * arm-tdep.c (convert_from_extended): New argument to hold the
648 type of floating point result we want to convert to. Make input
649 argument const. Fix all callers.
650 (convert_to_extended): Similarly.
651 (arm_extract_return_value): Now takes a regcache argument. Change
652 code to use regcache accessor functions. Correctly extract
653 smaller-than-word results on big-endian machines.
654 (arm_store_return_value): Now takes a regcache argument. Change
655 code to use regcache accessor functions. Correctly zero/sign extend
656 smaller than word results before storing into r0.
657 (arm_gdbarch_init): Register new-style extract_return_value and
658 store_return_value functions.
659
3197744f
MS
6602002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
661
662 * thread-db.c (thread_from_lwp): Uniquify error msg.
663 (lwp_from_thread): Ditto.
664 (check_event): Ditto.
665 (find_new_threads_callback): Ditto.
666 (thread_db_pid_to_str): Ditto.
667
6baff1d2
AC
6682002-12-13 Andrew Cagney <ac131313@redhat.com>
669
670 * frame.h (get_frame_saved_regs): Declare.
671 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
672 pointer.
673 * frame.c (get_frame_saved_regs): New function.
674 (frame_saved_regs_zalloc): Return the allocated saved_regs.
675
b87efeee
AC
6762002-12-13 Andrew Cagney <ac131313@redhat.com>
677
678 * frame.c (deprecated_update_current_frame_pc_hack): New
679 function.
680 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
681 * infrun.c (normal_stop): Use said function instead of directly
682 modifying the frame's PC.
683
3de2dc4f
AO
6842002-12-13 Alexandre Oliva <aoliva@redhat.com>
685
686 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
687
fe29b929
KB
6882002-12-13 Kevin Buettner <kevinb@redhat.com>
689
690 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
691 config/mips/tm-irix6.h (NUM_REGS): Delete.
692 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
693 (temp_saved_regs): Declare as a pointer rather than an array.
694 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
695 that ``temp_saved_regs'' has storage allocated to it and that
696 it's the correct size.
697
c04e0a08
JJ
6982002-12-13 Jeff Johnston <jjohnstn@redhat.com>
699
700 * defs.h (init_last_source_visited): New prototype.
701 (add_path): Ditto.
702 * source.c (add_path): New function that adds to a specified path.
703 (mod_path): Change to call add_path.
704 (init_last_source_visited): New function to allow interfaces to
705 initialize static variable: last_source_visited. Part of fix
706 for PR gdb/741.
707 * Makefile.in: Add support for mi/mi-cmd-env.c.
708
c689142b
AC
7092002-12-13 Andrew Cagney <ac131313@redhat.com>
710
711 * frame.h (frame_id_unwind): Declare.
712 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
713 id_unwind_cache.
714 (frame_id_unwind_ftype): Declare.
715 * frame.c (frame_id_unwind): New function.
716 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
717 (create_new_frame, get_prev_frame): Pass id_unwind to
718 set_unwind_by_pc.
719 (frame_saved_regs_id_unwind): New function.
720 (frame_saved_regs_id_unwind): New function.
721 * dummy-frame.c (dummy_frame_id_unwind): New function.
722 (struct dummy_frame): Add field id.
723 (generic_push_dummy_frame): Initialize `id'.
724 * dummy-frame.h (dummy_frame_id_unwind): Declare.
725
18ea5ba4
AC
7262002-12-13 Andrew Cagney <ac131313@redhat.com>
727
728 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
729 pass that to set_momentary_breakpoint. Move comments to where they
730 belong.
731 * frame.h (set_current_frame): Delete declaration.
732 * frame.c (set_current_frame): Delete function.
733
2c517d0e
AC
7342002-12-13 Andrew Cagney <ac131313@redhat.com>
735
736 * frame.c (frame_extra_info_zalloc): New function.
737 * frame.h (frame_extra_info_zalloc): Declare.
738
516b1f28
JB
7392002-12-13 Joel Brobecker <brobecker@gnat.com>
740
741 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
742 in the previous prototype change to set_momentary_breakpoint.
743
fbb265fc
DJ
7442002-12-12 Daniel Jacobowitz <drow@mvista.com>
745
746 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
747 and saw_child_exec.
748 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
749 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
750 (stop_stepping): Remove outdated check for child vfork events.
751
4fd7f624
AC
7522002-12-12 Andrew Cagney <ac131313@redhat.com>
753
754 * GDB 5.3 released from gdb_5_3-branch.
755
4c9ba7e0
DJ
7562002-12-11 Daniel Jacobowitz <drow@mvista.com>
757
758 * corelow.c (init_core_ops): Delete references to to_require_attach
759 and to_require_detach.
760 * exec.c (init_exec_ops): Likewise.
761 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
762 hppa_require_detach directly.
763 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
764 * inftarg.c (child_detach): Remove.
765 (child_detach_from_process): Rename to child_detach, remove
766 after_fork argument.
767 (child_attach): Remove.
768 (child_attach_to_process): Rename to child_attach, remove after_fork
769 argument.
770 (init_child_ops): Delete references to to_require_attach
771 and to_require_detach.
772 * infttrace.c (hppa_require_attach): Update comment.
773 * target.c (cleanup_target, update_current_target)
774 (init_dummy_target, setup_target_debug): Delete references to
775 to_require_attach and to_require_detach.
776 (find_default_require_detach, find_default_require_attach)
777 (debug_to_require_attach, debug_to_require_detach): Remove
778 functions.
779 * target.h (struct target_ops): Remove to_require_attach
780 and to_require_detach.
781 (target_require_attach, target_require_detach): Delete macros.
782 (find_default_require_detach, find_default_require_attach): Delete
783 prototypes.
784 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
785
0394eb2a
AC
7862002-12-11 Andrew Cagney <ac131313@redhat.com>
787
788 * frame.c (get_frame_extra_info): New function.
789 * frame.h (get_frame_extra_info): Declare.
790
818dd999
AC
7912002-12-11 Andrew Cagney <ac131313@redhat.com>
792
793 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
794 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
795 with `struct frame_id'.
796 (set_longjmp_resume_breakpoint): Ditto.
797 * infrun.c (handle_inferior_event): Update.
798 * breakpoint.c (watch_command_1, until_break_command): Update.
799 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
800 (handle_inferior_event, step_over_function): Update.
801 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
802 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
803 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
804 * infcmd.c (finish_command, run_stack_dummy): Update.
805
4d3c2250
KB
8062002-12-11 Kevin Buettner <kevinb@redhat.com>
807
808 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
809 (dwarf2_non_const_array_bound_ignored)
810 (dwarf2_missing_line_number_section)
811 (dwarf2_statement_list_fits_in_line_number_section)
812 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
813 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
814 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
815 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
816 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
817 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
818 (dwarf2_missing_member_fn_type_complaint)
819 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
820 (dwarf2_const_value_length_mismatch)
821 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
822 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
823 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
824 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
825 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
826 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
827 complaints using deprecated struct..
828 (dwarf2_non_const_array_bound_ignored_complaint)
829 (dwarf2_complex_location_expr_complaint)
830 (dwarf2_unsupported_at_frame_base_complaint)
831 (dwarf2_const_value_length_mismatch_complaint)
832 (dwarf2_macros_too_long_complaint)
833 (dwarf2_macro_malformed_definition_complaint)
834 (dwarf2_invalid_attrib_class_complaint): New functions.
835 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
836 (read_structure_scope, read_array_type, read_common_block)
837 (read_tag_pointer_type, read_base_type, read_partial_die)
838 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
839 (new_symbol, dwarf2_const_value, read_type_die)
840 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
841 (parse_macro_definition, dwarf_decode_macros): Replace calls to
842 complain() with, possibly indirect, calls to complaint().
843
95486978
AC
8442002-12-11 Andrew Cagney <cagney@redhat.com>
845
846 * frame.c (deprecated_get_frame_saved_regs): Rename
847 get_frame_saved_regs.
848 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
849 * sparc-tdep.c: Update.
850 * hppa-tdep.c: Update.
851 * h8500-tdep.c: Update.
852
321432c0
KB
8532002-12-11 Kevin Buettner <kevinb@redhat.com>
854
855 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
856 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
857 ``char *'' for return and parameter types.
858 * gdbarch.h, gdbarch.c: Regenerate.
859 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
860 return type from ``char *'' to ``const char *''.
861 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
862 const.
863
5a4d6ff4
MK
8642002-12-11 Mark Kettenis <kettenis@gnu.org>
865
866 * i386-tdep.c: Include "dummy-frame.h".
867 (i386_frame_chain, i386_frame_saved_pc): Replace
868 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
869 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
870
a5afb99f
AC
8712002-12-10 Andrew Cagney <cagney@redhat.com>
872
873 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
874 Change to a function with predicate.
875 * gdbarch.h, gdbarch.c: Re-generate.
876 * frame.c (get_prev_frame): Update. Test
877 DEPRECATED_INIT_FRAME_PC_P.
878 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
879 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
880 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
881 * alpha-tdep.c (alpha_gdbarch_init): Update.
882 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
883 * mips-tdep.c (mips_gdbarch_init): Update.
884 * i386-interix-tdep.c (i386_interix_init_abi): Update.
885 * arm-tdep.c: Update comments.
886 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
887 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
888 * frv-tdep.c (frv_gdbarch_init): Ditto.
889 * x86-64-tdep.c (x86_64_init_abi): Ditto.
890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
891 * s390-tdep.c (s390_gdbarch_init): Ditto.
892 * v850-tdep.c (v850_gdbarch_init): Ditto.
893 * vax-tdep.c (vax_gdbarch_init): Ditto.
894 * sh-tdep.c (sh_gdbarch_init): Ditto.
895 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
899 * i386-tdep.c (i386_gdbarch_init): Ditto.
900 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
901 * cris-tdep.c (cris_gdbarch_init): Ditto.
902 * avr-tdep.c (avr_gdbarch_init): Ditto.
903 * arm-tdep.c (arm_gdbarch_init): Ditto.
904 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
905 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
906
6604731b
DJ
9072002-12-10 Daniel Jacobowitz <drow@mvista.com>
908
909 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
910 CHILD_FOLLOW_FORK.
911 * hppah-nat.c (saved_vfork_pid): Add.
912 (child_post_follow_vfork): Remove.
913 (child_follow_fork): New function.
914 (child_wait): Call detach_breakpoints after receiving the child vfork.
915 Call child_resume directly instead of going through resume ().
916 Make sure we have the exec before reporting the vfork.
917 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
918 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
919 (follow_fork): New function. Call target_follow_fork.
920 (follow_inferior_reset_breakpoints): New function broken out from
921 old follow_inferior_fork.
922 (resume): Remove hack to follow exec after vfork.
923 * inftarg.c (child_post_follow_vfork): Remove.
924 (child_follow_fork): New function.
925 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
926 * target.c (cleanup_target): Replace to_post_follow_vfork with
927 to_follow_fork.
928 (update_current_target): Likewise.
929 (setup_target_debug): Likewise.
930 (debug_to_post_follow_vfork): Remove.
931 (debug_to_follow_fork): New function.
932 * target.h (struct target_ops): Replace to_post_folow_vfork with
933 to_follow_fork.
934 (child_post_follow_vfork): Remove prototype.
935 (child_follow_fork): Add prototype.
936 (target_post_follow_vfork): Remove macro.
937 (target_follow_fork): Add macro.
938
7d2830a3
DJ
9392002-12-10 Daniel Jacobowitz <drow@mvista.com>
940
941 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
942 (child_post_follow_vfork): Cancel pending exec event if we follow
943 the parent.
944 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
945 events have been processed. Return a fake TARGET_WAITKIND_EXECD
946 event at the following wait call if necessary.
947 * infrun.c (follow_vfork): Don't follow_exec here.
948 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
949 case about HP/UX 10.20. Remove code pushed down to
950 hppah-nat.c:child_wait.
951 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
952 vfork_in_flight is set.
953
9542002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
955
956 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
957 for the parent's fork event.
958 * infrun.c (handle_inferior_event): Only expect one fork event.
959 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
960 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
961
50631d4f
AC
9622002-12-10 Andrew Cagney <ac131313@redhat.com>
963
bc124bd3
AC
964 * PROBLEMS: Delete reference to PR gdb/725.
965
50631d4f
AC
966 * MAINTAINERS (gdb.c++): Add David Carlton.
967
808013d1
DC
9682002-12-09 David Carlton <carlton@math.stanford.edu>
969
970 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
971 * cli/cli-cmds.c: Ditto.
972
31deffe5
AC
9732002-12-09 Andrew Cagney <cagney@redhat.com>
974
6cbda714
AC
975 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
976 function address in <>.
31deffe5
AC
977 * gdbarch.c: Re-generate.
978
2692ddb3
DC
9792002-12-09 David Carlton <carlton@math.stanford.edu>
980
981 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
982
f3c39e76
DC
9832002-12-09 David Carlton <carlton@math.stanford.edu>
984
985 * linespec.c (symtab_from_filename): New function.
986 (decode_line_1): Move code into symtab_from_filename.
987
1b84163e
KB
9882002-12-09 Kevin Buettner <kevinb@redhat.com>
989
990 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
991
bdd78e62
AC
9922002-12-07 Andrew Cagney <ac131313@redhat.com>
993
994 * f-valprint.c (info_common_command): Use get_frame_pc.
995 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
996 * ax-gdb.c (agent_command): Ditto.
997 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
998 (rs6000_pop_frame): Ditto.
999 (rs6000_frameless_function_invocation): Ditto.
1000 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1001 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1002 * macroscope.c (default_macro_scope): Ditto.
1003 * stack.c (print_frame_info_base): Ditto.
1004 (print_frame, frame_info, print_frame_label_vars): Ditto.
1005 (return_command, func_command, get_frame_language): Ditto.
1006 * infcmd.c (finish_command): Ditto.
1007 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1008 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1009 (break_at_finish_at_depth_command_1): Ditto.
1010 (break_at_finish_command_1): Ditto.
1011 (until_break_command, get_catch_sals): Ditto.
1012 * blockframe.c (func_frame_chain_valid): Ditto.
1013 (frameless_look_for_prologue): Ditto.
1014 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1015
408400e7
AC
10162002-12-08 Andrew Cagney <ac131313@redhat.com>
1017
1018 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1019 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1020
97f46953
AC
10212002-12-08 Andrew Cagney <ac131313@redhat.com>
1022
1023 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1024 to pure functions.
1025 * gdbarch.h, gdbarch.c: Re-generate.
1026 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1027 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1028
1029 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1030 declaration to a function returning a CORE_ADDR.
1031 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1032 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1033 (init_frame_pc_default): Ditto.
1034 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1035 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1036 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1037 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1038 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1039 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1040
1041 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1042 to init_frame_pc_noop.
1043 (i386_interix_init_frame_pc): Delete function.
1044 * z8k-tdep.c (init_frame_pc): Delete function.
1045 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1046 (INIT_FRAME_PC_FIRST): Ditto.
1047 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1048 (INIT_FRAME_PC_FIRST): Ditto.
1049 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1050 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1051 init_frame_pc_noop.
1052 (INIT_FRAME_PC_FIRST): Convert to an expression.
1053 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1054
8b36eed8
AC
10552002-12-08 Andrew Cagney <ac131313@redhat.com>
1056
1057 * blockframe.c: Use get_frame_base instead of directly accessing
1058 the `struct frame_info' member frame.
1059 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1060 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1061
aeeccc89
EZ
10622002-12-08 Elena Zannoni <ezannoni@redhat.com>
1063
1064 * Makefile.in (readline_h): Define.
1065 (completer.o): Depend on readline_h.
1066 (corelow.o): Ditto.
1067 (event-top.o): Ditto.
1068 (exec.o): Ditto.
1069 (solib.o): Ditto.
1070 (source.o): Ditto.
1071 (symfile.o): Ditto.
1072 (symmisc.o): Ditto.
1073 (top.o): Ditto.
1074 (tracepoint.o): Ditto.
1075 (utils.o): Ditto.
1076 (cli-dump.o): Ditto.
1077 (tui-hooks.o): Ditto.
1078 (tuiWin.o): Ditto.
1079
38017ce8
EZ
10802002-12-08 Elena Zannoni <ezannoni@redhat.com>
1081
1082 More cleanup from import of readline 4.3.
1083 * completer.h (complete_line, readline_line_completion_function):
1084 Update prototypes.
1085 (line_completion_function): Removed, not used outside of completer.c.
1086 * completer.c (readline_line_completion_function,
1087 complete_function, line_completion_function): Use const for first
1088 parameter.
1089 (line_completion_function): Make static.
1090 (filename_completer): filename_completion_function is now called
1091 rl_filename_completion_function
1092 * corelow.c: Include <readline/readline.h>.
1093 * exec.c: Ditto.
1094 * solib.c: Ditto.
1095 * source.c: Ditto.
1096 * symfile.c: Ditto.
1097 * symmisc.c: Ditto.
1098 * top.c (init_main): No need to coerce
1099 readline_line_completion_function anymore.
1100 * cli/cli-dump.c: Include <readline/readline.h>.
1101
75e3c1f9
AC
11022002-12-08 Andrew Cagney <ac131313@redhat.com>
1103
1104 * stack.c (frame_info): Use get_prev_frame.
1105 * blockframe.c (frame_address_in_block): Ditto.
1106 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1107 (rs6000_frameless_function_invocation): Ditto.
1108 (rs6000_frame_saved_pc): Ditto.
1109 (rs6000_frame_chain): Ditto.
1110 * arch-utils.c (init_frame_pc_default): Ditto.
1111
0d2b8049
AC
11122002-12-08 Andrew Cagney <ac131313@redhat.com>
1113
1114 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1115 Delete redundant definition.
1116
9255ee31
EZ
11172002-12-08 Elena Zannoni <ezannoni@redhat.com>
1118
1119 Import of readline 4.3:
1120 * cli/cli-cmds.c: Include readline/tilde.h.
1121 * cli/cli-setshow.c: Ditto.
1122 * defs.h: Don't declare tilde_expand anymore, since readline
1123 exports it.
1124
3442dad6 11252002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
1126
1127 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1128 -Werror on this file.
1129
52f87c51
AC
11302002-12-07 Andrew Cagney <ac131313@redhat.com>
1131
1132 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1133 the format name.
1134 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1135 * gdbarch.c: Regenerate.
1136
2ca6c561
AC
11372002-12-06 Andrew Cagney <ac131313@redhat.com>
1138
1139 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1140 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1141 provide a default value.
1142 * gdbarch.h, gdbarch.c: Regenerate.
1143 * frame.c (get_prev_frame): Update. Check
1144 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1145 * s390-tdep.c (s390_gdbarch_init): Update.
1146 * mips-tdep.c (mips_gdbarch_init): Update.
1147 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1148 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1149 * alpha-tdep.c (alpha_gdbarch_init): Update.
1150
e162d11b
EZ
11512002-12-06 Elena Zannoni <ezannoni@redhat.com>
1152
1153 * ia64-linux-nat.c: Include gdb_string.h.
1154 * alpha-nat.c: Ditto.
2b298b5d
EZ
1155 * ppc-linux-nat.c: Ditto.
1156 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1157 Update dependencies.
e162d11b 1158
aa0cd9c1
AC
11592002-12-05 Andrew Cagney <ac131313@redhat.com>
1160
1161 * gdbthread.h: Include "frame.h".
1162 (struct thread_info): Replace step_frame_address with
1163 step_frame_id.
1164 * inferior.h: Include "frame.h".
1165 (step_frame_id): Replace external variable step_frame_address.
1166 * gdbthread.h (save_infrun_state): Replace step_frame_address
1167 parameter with step_frame_id parameter.
1168 (load_infrun_state): Ditto.
1169 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1170 * infcmd.c (step_frame_id, step_1, step_once): Update.
1171 * thread.c (load_infrun_state, save_infrun_state): Update.
1172 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1173 (handle_inferior_event, step_over_function): Update.
1174 (normal_stop, context_switch, restore_inferior_status): Update.
1175 (struct inferior_status): Replace step_frame_address with
1176 step_frame_id.
1177
a9a9bd0f
DC
11782002-12-05 David Carlton <carlton@math.stanford.edu>
1179
1180 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1181 DW_TAG_member as well as a declaration as being a C++ static data
1182 member.
1183 (read_structure_scope): Combine tests for DW_TAG_member and
1184 DW_TAG_variable.
1185
614b3b14
DC
11862002-12-05 David Carlton <carlton@math.stanford.edu>
1187
1188 * linespec.c (decode_compound): New function.
1189 (decode_line_1): Move code into decode_compound.
1190
e4051eeb
DC
11912002-12-05 David Carlton <carlton@math.stanford.edu>
1192
1193 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1194 argument.
1195 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1196 the static block. See PR gdb/804.
1197
f61e8913
DC
11982002-12-05 David Carlton <carlton@math.stanford.edu>
1199
1200 * symtab.c (lookup_symbol_aux_block): New function.
1201 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1202
1e9f55d0
AC
12032002-12-05 Andrew Cagney <ac131313@redhat.com>
1204
1205 * gdbarch.sh: Dump the predicate function and macro values.
1206 (read): Print error on standard error.
1207 * gdbarch.c: Regenerate.
1208
d1973055
KB
12092002-12-04 Kevin Buettner <kevinb@redhat.com>
1210
1211 * Makefile.in (mips_tdep_h): Define.
1212 (mips-tdep.o): Add mips_tdep_h to dependency list.
1213 * mips-tdep.h: New file.
1214 * mips-tdep.c (mips-tdep.h): Include.
1215 (enum mips_abi): Move to mips-tdep.h.
1216 (mips_abi): New function.
1217
f1253c7b
DC
12182002-12-04 David Carlton <carlton@math.stanford.edu>
1219
1220 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1221
406bc4de
DC
12222002-12-04 David Carlton <carlton@math.stanford.edu>
1223
1224 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1225 function.
1226 (lookup_symbol_aux_minsyms): New function.
1227
2a3750c5
JB
12282002-12-04 J. Brobecker <brobecker@gnat.com>
1229
1230 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1231
961d8652
JB
12322002-12-04 J. Brobecker <brobecker@gnat.com>
1233
1234 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1235 which is an obsolete macro name.
1236
38c52d5a
DJ
12372002-12-04 Daniel Jacobowitz <drow@mvista.com>
1238
1239 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1240 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1241
d8ef46f5
DJ
12422002-12-03 H.J. Lu (hjl@gnu.org)
1243
1244 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1245 (create_breakpoints): Make sure the addr_string field is not
1246 NULL.
1247
02ae7771
AC
12482002-12-03 Andrew Cagney <ac131313@redhat.com>
1249
1250 * sparc-nat.c (fetch_inferior_registers)
1251 (store_inferior_registers): Add comment on problem of LWP vs
1252 threads.
1253
1254 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1255 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1256 (lin_lwp_store_registers): Remove.
1257 (init_lin_lwp_ops): Use fetch_inferior_registers
1258 and store_inferior_registers directly.
1259 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1260 (store_inferior_registers): Likewise.
1261 Fix PR gdb/725.
1262
7a424e99
AC
12632002-12-03 Andrew Cagney <ac131313@redhat.com>
1264
1265 * frame.h (get_frame_id): Convert to a function.
1266 (null_frame_id, frame_id_p): Declare.
1267 (frame_id_eq, frame_id_inner): Declare.
1268 (frame_id_build): New function.
1269 * frame.c (get_frame_id): Update. Use null_frame_id.
1270 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1271 frame_id_inner.
1272 (null_frame_id, frame_id_p): Define.
1273 (frame_id_eq, frame_id_inner): Define.
1274 (frame_id_build): New function.
1275 * varobj.c (varobj_create): Update.
1276 (varobj_update): Update.
1277 * valops.c (value_assign): Update.
1278 (new_root_variable): Update.
1279 * infrun.c (save_inferior_status): Update.
1280 * breakpoint.c (watch_command_1): Update.
1281
891c7f5f
JB
12822002-12-03 J. Brobecker <brobecker@gnat.com>
1283
1284 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1285 (SNAP2): Likewise.
1286
144da3c1
AC
12872002-12-03 Andrew Cagney <cagney@redhat.com>
1288
46248966
AC
1289 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1290 patch.
1291
144da3c1
AC
1292 * PROBLEMS: Mention PR gdb/725.
1293
03c6228e
AS
12942002-12-03 Andreas Schwab <schwab@suse.de>
1295
1296 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1297
36e53c63
AF
12982002-12-02 Adam Fedor <fedor@gnu.org>
1299 Klee Dienes <kdienes@apple.com>
1300
1301 * objc-lang.c (objc_printstr): Add width arg to match
1302 printstr prototype.
1303 (compare_selectors): Add 'const' to arg types.
1304 (compare_classes): Likewise.
1305 (find_imps): Cast msym pointer to avoid compiler warning.
1306 (print_object_command): Validate the address before
1307 passing it to the print routine.
1308 (find_objc_msgcall_submethod): Change function argument to
1309 return an int.
1310 * objc-lang.h: Add 'extern' to all function declarations.
1311 (value_nsstring): Add declaration.
1312
504d5c7e
JB
13132002-12-02 J. Brobecker <brobecker@gnat.com>
1314
1315 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1316 Fixes a build failure on HP/UX.
1317
1318 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1319 failure on HP/UX.
1320 (hpread_has_name): Advance declaration to avoid a compilation warning.
1321 (pst_syms_count): Add missing variable type. By change, the compiler
1322 was defaulting to int, which seems a good choice. Fixes a compilation
1323 warning.
1324 (pst_syms_size): Likewise.
1325
59623e27
JB
13262002-12-02 J. Brobecker <brobecker@gnat.com>
1327
1328 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1329 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1330 later to set the proper gdbarch methods depending on the osabi.
1331 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1332
a09a320d
JB
13332002-12-02 J. Brobecker <brobecker@gnat.com>
1334
1335 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1336 * osabi.c (gdb_osabi_name): Add strings images for the two new
1337 enum values.
1338 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1339
8a81a99e
AC
13402002-12-02 Andrew Cagney <ac131313@redhat.com>
1341
1342 * MAINTAINERS (Java): Global maintainers are responible for Java.
1343 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1344 part Java maintainers.
1345
7af35dad
JB
13462002-12-02 J. Brobecker <brobecker@gnat.com>
1347
1348 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1349 Fixes a compilation failure on AiX.
1350
f4ede9bc
JB
13512002-12-02 J. Brobecker <brobecker@gnat.com>
1352
1353 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1354 why aix-thread.o is not listed.
1355
ae45cd16
AC
13562002-12-01 Andrew Cagney <ac131313@redhat.com>
1357
1358 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1359 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1360 * gdbarch.h, gdbarch.c: Re-generate.
1361 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1362 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1363 * config/pa/tm-hppa.h, frame.h: Update.
1364 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1365 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1366 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1367 * cris-tdep.c, alpha-tdep.c: Update.
1368 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1369 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1370 (get_prev_frame): Ditto.
1371
020cc13c
AC
13722002-11-30 Andrew Cagney <cagney@redhat.com>
1373
1374 * exec.c (xfer_memory): Replace boolean with int.
1375 * p-exp.y: Use 0 instead of false.
1376 * corelow.c (gdb_check_format): Change return type to int from
1377 boolean.
1378 * utils.c: Don't include <curses.h> or <term.h> first.
1379
1d9b2aa8
SC
13802002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1381
1382 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1383 (m68hc11_register_byte): Remove.
1384 (m68hc11_gdbarch_init): Don't set the above.
1385
a193e397
AC
13862002-11-29 Andrew Cagney <cagney@redhat.com>
1387
1388 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1389 by calling get_selected_frame.
1390 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1391 set_current_frame, create_new_frame, select_frame and
1392 get_current_frame.
1393 * remote-e7000.c (e7000_start_remote): Ditto.
1394 * remote-mips.c (common_open): Ditto
1395 * remote-rdp.c (remote_rdp_open): Ditto.
1396
b5fc49aa
AS
13972002-11-29 Andreas Schwab <schwab@suse.de>
1398
1399 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1400 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1401 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1402 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1403 read_memory_unsigned_integer instead of read_memory_integer when
1404 dealing with addresses and instruction opcodes.
1405 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1406 (m68k_linux_frame_saved_pc): Likewise.
1407
6e7f8b9c
AC
14082002-11-29 Andrew Cagney <ac131313@redhat.com>
1409
1410 * stack.c (selected_frame, select_frame): Move from here ...
1411 * frame.c (selected_frame, select_frame): ... to here. Include
1412 "language.h".
1413 * Makefile.in (frame.o): Update dependencies.
1414 * frame.c (get_selected_frame): New function.
1415 * frame.h (get_selected_frame): Declare.
1416 (deprecated_selected_frame): Rename selected_frame.
1417 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1418 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1419 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1420 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1421 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1422 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1423 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1424 * z8k-tdep.c, cli/cli-cmds.c: Update.
1425
805e2818
AC
14262002-11-29 Andrew Cagney <ac131313@redhat.com>
1427
1428 * frame.h (get_selected_block): Add comments.
1429
1058bca7
AC
14302002-11-28 Andrew Cagney <ac131313@redhat.com>
1431
1432 * frame.c (pc_notcurrent): New function.
1433 (find_frame_sal): New function.
1434 * frame.h (find_frame_sal): Declare.
1435 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1436 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1437 find_pc_line.
1058bca7
AC
1438 (frame_info): Ditto.
1439 * ada-lang.c (find_printable_frame): Ditto.
1440
d92419e5
JB
14412002-11-28 J. Brobecker <brobecker@gnat.com>
1442
1443 * configure.in: Check that the pthdebug library is recent enough
1444 before enabling thread support on native AiX.
1445 * configure: Regenerate.
1446
1447 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1448 from the list of object files as it is now appended by configure
1449 if thread support is enabled.
1450 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1451 if thread support is enabled.
1452
8c69fc49
AC
14532002-11-28 Andrew Cagney <cagney@redhat.com>
1454
1455 * stack.c (get_selected_block): In-line get_current_block.
1456 * frame.h (get_current_block): Delete declaration.
1457 * blockframe.c (get_current_block): Delete function.
1458
07555a72
AC
14592002-11-28 Andrew Cagney <ac131313@redhat.com>
1460
1461 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1462 USE_GENERIC_DUMMY_FRAMES.
1463 * gdbarch.h, gdbarch.c: Regenerate.
1464 * valops.c, frame.c: Update.
1465 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1466 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1467 * config/pa/tm-hppa.h, blockframe.c: Update.
1468 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1469 * m68k-tdep.c, alpha-tdep.c: Ditto.
1470
1471 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1472 * mips-tdep.c: Ditto.
1473
b99fa2d2
AC
14742002-11-27 Andrew Cagney <ac131313@redhat.com>
1475
1476 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1477 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1478 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1479 * gdbarch.c, gdbarch.h: Re-generate.
1480 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1481 (CALL_DUMMY_LOCATION): Delete macro definition.
1482 (PC_IN_CALL_DUMMY): Delete macro definitions.
1483
1484 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1485 default is already generic_pc_in_call_dummy.
1486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1487 * v850-tdep.c (v850_gdbarch_init): Ditto.
1488 * sh-tdep.c (sh_gdbarch_init): Ditto.
1489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1490 * mips-tdep.c (mips_gdbarch_init): Ditto.
1491 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1493 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1494 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1495 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1496 * avr-tdep.c (avr_gdbarch_init): Ditto.
1497
1498 * arm-tdep.c (arm_gdbarch_init): Do not set
1499 use_generic_dummy_frames, default is already 1.
1500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1501 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1502 * v850-tdep.c (v850_gdbarch_init): Ditto.
1503 * sh-tdep.c (sh_gdbarch_init): Ditto.
1504 * s390-tdep.c (s390_gdbarch_init): Ditto.
1505 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1506 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1507 * mips-tdep.c (mips_gdbarch_init): Ditto.
1508 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1510 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1511 * i386-tdep.c (i386_gdbarch_init): Ditto.
1512 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1513 * frv-tdep.c (frv_gdbarch_init): Ditto.
1514 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1515 * cris-tdep.c (cris_gdbarch_init): Ditto.
1516 * avr-tdep.c (avr_gdbarch_init): Ditto.
1517
1518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1519 call_dummy_location, default is already AT_ENTRY_POINT.
1520 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1521 * v850-tdep.c (v850_gdbarch_init): Ditto.
1522 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1523 * sh-tdep.c (sh_gdbarch_init): Ditto.
1524 * s390-tdep.c (s390_gdbarch_init): Ditto.
1525 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1527 * mips-tdep.c (mips_gdbarch_init): Ditto.
1528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1530 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1531 * i386-tdep.c (i386_gdbarch_init): Ditto.
1532 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1533 * frv-tdep.c (frv_gdbarch_init): Ditto.
1534 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1535 * cris-tdep.c (cris_gdbarch_init): Ditto.
1536 * avr-tdep.c (avr_gdbarch_init): Ditto.
1537 * arm-tdep.c (arm_gdbarch_init): Ditto.
1538 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1539
abc0af47
AC
15402002-11-28 Andrew Cagney <cagney@redhat.com>
1541
1542 * frame.h: Update comments on set_current_frame, create_new_frame,
1543 flush_cached_frames, reinit_frame_cache, select_frame and
1544 selected_frame.
1545
ed5cedc5
AC
15462002-11-27 Andrew Cagney <cagney@redhat.com>
1547
1548 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1549 deprecated pc_in_call_dummy function.
1550 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1551 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1552 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1553 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1554 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1555
b2a1bd4f
MH
15562002-11-26 Martin M. Hunt <hunt@redhat.com>
1557
1558 * Makefile.in: Remove Tix dependencies.
1559 * acinclude.m4: Ditto.
1560 * aclocal.m4: Ditto.
1561 * configure.in: Ditto.
1562 * configure: Regenerated.
1563
f09cffaa
AC
15642002-11-26 Andrew Cagney <ac131313@redhat.com>
1565
1566 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1567 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1568 * gdbarch.c: Re-generate.
1569
e92b0cc9
AC
15702002-11-26 Andrew Cagney <ac131313@redhat.com>
1571
1572 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1573 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1574 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1575 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1576 pc_in_call_dummy_at_entry_point.
1577 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1578 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1579 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1580 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1581 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1582 pc_in_call_dummy_on_stack.
1583 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1584 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1585 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1586 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1587 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1588
b4b88177
AC
15892002-11-26 Andrew Cagney <ac131313@redhat.com>
1590
1591 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1592 pc_in_call_dummy_before_text_end
1593 (deprecated_pc_in_call_dummy_after_text_end): Rename
1594 pc_in_call_dummy_after_text_end.
1595 (deprecated_pc_in_call_dummy_on_stack): Rename
1596 pc_in_call_dummy_on_stack.
1597 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1598 pc_in_call_dummy_at_entry_point.
1599 * m68k-tdep.c (m68k_gdbarch_init): Update.
1600 * s390-tdep.c (s390_gdbarch_init): Update.
1601 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1602 * vax-tdep.c (vax_gdbarch_init): Update.
1603 * sparc-tdep.c (sparc_gdbarch_init): Update.
1604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1606 * i386-tdep.c (i386_gdbarch_init): Update.
1607 * frv-tdep.c (frv_gdbarch_init): Update.
1608 * cris-tdep.c (cris_gdbarch_init): Update.
1609 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1610 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1611 (deprecated_pc_in_call_dummy_after_text_end)
1612 (deprecated_pc_in_call_dummy_on_stack)
1613 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1614 * alpha-tdep.c (alpha_gdbarch_init): Update.
1615
eb784848
DJ
16162002-11-25 Daniel Jacobowitz <drow@mvista.com>
1617
1618 * acconfig.h (HAVE_PREAD64): Add.
1619 * configure.in: Check for pread64.
1620 * config.in: Regenerated.
1621 * configure: Regenerated.
1622 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1623 * linux-proc.c (linux_proc_xfer_memory): New function.
1624 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1625
933c6fe4
DC
16262002-11-25 David Carlton <carlton@math.stanford.edu>
1627
1628 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1629 pdi's with no name.
1630
158a8022
AC
16312002-11-25 Andrew Cagney <ac131313@redhat.com>
1632
1633 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1634 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1635
481d0f41
JB
16362002-11-25 Jim Blandy <jimb@redhat.com>
1637
e8289572
JB
1638 * symfile.c (init_objfile_sect_indices): New function.
1639 (default_symfile_offsets): Move the section-index-initializing
1640 stuff into init_objfile_sect_indices, and call that.
1641
b29c9944
JB
1642 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1643 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1644
13de58df
JB
1645 * symfile.c (syms_from_objfile): Adjust indentation.
1646
481d0f41
JB
1647 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1648 || info_verbose isn't true.
1649
7d6a26a7
AC
16502002-11-24 Andrew Cagney <ac131313@redhat.com>
1651
1652 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1653 default to get_frame_base.
1654 * gdbarch.h, gdbarch.c: Regenerate.
1655 * arch-utils.c (default_frame_address): Delete function.
1656 * arch-utils.h (default_frame_address): Delete declaration
1657
6abe1021
PM
16582002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1659
1660 * varobj.c (find_frame_addr_in_frame_chain):
1661 Use get_frame_base instead of FRAME_FP,
1662 obvious fix.
1663
c193f6ac
AC
16642002-11-19 Andrew Cagney <ac131313@redhat.com>
1665
1666 * frame.h (FRAME_FP): Delete macro.
1667 (get_frame_base): New function declaration.
1668 * frame.c (get_frame_base): New function.
1669 (get_frame_id): Use ->frame.
1670 (frame_find_by_id): Rewrite to use get_frame_id.
1671 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1672 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1673 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1674 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1675 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1676 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1677 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1678
e5d2af14
AC
16792002-11-24 Andrew Cagney <ac131313@redhat.com>
1680
1681 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1682
931d12c6
AC
16832002-11-24 Andrew Cagney <ac131313@redhat.com>
1684
1685 * frame.c (set_unwind_by_pc): Revert change below, use
1686 PC_IN_CALL_DUMMY.
1687 (get_prev_frame): Ditto.
1688
5e0f933e
AC
16892002-11-24 Andrew Cagney <ac131313@redhat.com>
1690
1691 * dummy-frame.c (pc_in_dummy_frame): New function.
1692 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1693 (find_dummy_frame): Update comment.
1694 (generic_pop_current_frame): Use get_frame_type.
1695 * dummy-frame.h (pc_in_dummy_frame): Declare.
1696 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1697 (create_new_frame): Use pc_in_dummy_frame.
1698 (get_prev_frame): Use pc_in_dummy_frame.
1699 (frame_saved_regs_register_unwind): Use get_prev_frame.
1700 (deprecated_generic_get_saved_register): Use get_prev_frame.
1701
7d8547c9
AC
17022002-11-23 Andrew Cagney <ac131313@redhat.com>
1703
1704 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1705 from here ...
1706 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1707 (varobj_create): Note that frame ID should be used.
1708 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1709
0225421b
AC
17102002-11-23 Andrew Cagney <ac131313@redhat.com>
1711
1712 * breakpoint.c: Include "gdb_assert.h".
1713 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1714 not being used.
1715 * Makefile.in (breakpoint.o): Update dependencies.
1716 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1717 deprecated_frame_in_dummy.
1718 * stack.c (print_frame_info_base): Ditto.
1719 (frame_info): Ditto.
1720 (print_frame_info_base): Ditto. Delete dead code.
1721
32eeb91a
AS
17222002-11-23 Andreas Schwab <schwab@suse.de>
1723
1724 * Makefile.in (m68k_tdep_h): Define.
1725 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1726 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1727 * m68k-tdep.c: Move register number enum ...
1728 * m68k-tdep.h: ... to this new file and rename the constants from
1729 E_* to M68K_*. All uses changed.
1730 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1731 * abug-rom.c: Include "m68k-tdep.h". Use
1732 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1733 * cpu32bug-rom.c: Likewise.
1734 * dbug-rom.c: Likewise.
1735 * m68k-tdep.c: Likewise.
1736 * m68klinux-nat.c: Likewise.
1737 * remote-est.c: Likewise.
1738 * rom68k-rom.c: Likewise.
1739 * config/m68k/tm-linux.h: Likewise.
1740
9648bac8
AC
17412002-11-23 Andrew Cagney <ac131313@redhat.com>
1742
1743 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1744 dummy frame initialization code.
1745 * mips-tdep.c (mips_gdbarch_init): Ditto.
1746
91a175b3
CF
17472002-11-22 Christopher Faylor <cgf@redhat.com>
1748
1749 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1750 attach will hang.
1751
f4ded5b1
AC
17522002-11-22 Andrew Cagney <ac131313@redhat.com>
1753
1754 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1755 to default_frame_address.
1756 * gdbarch.h, gdbarch.c: Re-generate.
1757
1758 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1759 or frame_locals_address to default_frame_address.
1760 * m68k-tdep.c (m68k_gdbarch_init): Update.
1761 * i386-tdep.c (i386_gdbarch_init): Update.
1762 * frv-tdep.c (frv_gdbarch_init): Update.
1763 * sh-tdep.c (sh_gdbarch_init): Update.
1764 * v850-tdep.c (v850_gdbarch_init): Update.
1765 * sparc-tdep.c (sparc_gdbarch_init): Update.
1766 * mips-tdep.c (mips_gdbarch_init): Update.
1767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1768 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1770
1771 * cris-tdep.c (cris_frame_args_address): Delete function.
1772 (cris_frame_locals_address): Delete function.
1773 (cris_gdbarch_init): Do not set frame_args_address or
1774 frame_locals_address.
1775
f7c1e0f3
MS
17762002-11-22 Michael Snyder <msnyder@redhat.com>
1777
1778 * thread-db.c (thread_db_load): Tell the user what's going on
1779 if dlopen fails on libthread_db.
1780
03dac896
AS
17812002-11-23 Andreas Schwab <schwab@suse.de>
1782
1783 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1784 invariant return values.
1785
7a67d0fe
AS
17862002-11-22 Andreas Schwab <schwab@suse.de>
1787
1788 * valops.c (value_slice): Move declaration of `offset' to avoid
1789 warning.
1790
5633f842
CF
17912002-11-22 Christopher Faylor <cgf@redhat.com>
1792
1793 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1794 (struct so_stuff): Add end_addr field.
1795 (register_loaded_dll): Calculate and store end address of loaded dll.
1796 (solib_address): New function.
1797 (child_solib_loaded_library_pathname): Pass carefully constructed
1798 section info to safe_symbol_file_add rather than ignoring it.
1799 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1800 DLL is loaded.
1801 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1802 (child_create_inferior): Fix a compiler warning.
1803 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1804 (solib_address): Declare new function.
1805
d85fe7f7
AS
18062002-11-22 Andreas Schwab <schwab@suse.de>
1807
1808 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1809 and FPS registers.
1810
8308e54c
DJ
18112002-11-21 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * maint.c (_initialize_maint_cmds): Fix typo. From
1814 Francesco Potorti` <pot@gnu.org>.
1815
8997bd5e
AC
18162002-11-21 Andrew Cagney <cagney@redhat.com>
1817
1818 * mips-tdep.c (mips_dump_tdep): Delete references to
1819 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1820 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1821 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1822 * printcmd.c (build_address_symbolic): Delete calls to
1823 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1824 (address_info): Ditto.
1825 Fix PR gdb/773.
1826
4e87b832
KD
18272002-11-19 Klee Dienes <kdienes@apple.com>
1828 Adam Fedor <fedor@gnu.org>
1829
1830 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1831 the ability to explicitly specify the quote characters and word
1832 break characters; if NULL is specified for either, use the old
1833 behavior of using the characters used by the completer.
1834 (skip_chars): New function. Convenience wrapper around
1835 skip_quoted_chars to provide the original skip_chars behavior.
1836 * completer.h (skip_quoted_chars): Add prototype.
1837
9ba8d803
AC
18382002-11-19 Andrew Cagney <ac131313@redhat.com>
1839
1840 Problems reported by Paul Eggert.
1841 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1842
0a595803
AS
18432002-11-19 Andreas Schwab <schwab@suse.de>
1844
1845 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1846 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1847 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1848 (m68k_linux_frame_saved_pc): Move to ...
1849 * m68klinux-tdep.c: ... here. New file.
1850 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1851 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1852
e8afa4d7
AF
18532002-11-19 Adam Fedor <fedor@gnu.org>
1854
1855 * objc-exp.y: Revert to old skip_quoted usage.
1856
a76c9d72
AF
18572002-11-19 Adam Fedor <fedor@gnu.org>
1858
1859 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1860 (objc_lang_h): Define.
1861 (YYFILES): Add objc-exp.tab.c.
1862 (local-maintainer-clean): Remove objc-exp.tab.c.
1863 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1864
fd0e9d45
PM
18652002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1866
1867 * p-exp.y (typecast rule): Add automatic dereference of
1868 pascal classes if needed.
1869 (THIS): Set current_type.
1870 Automatically dereference pascal classes.
1871 (typebase rule): Add ^typebase recognition.
1872
82eeeb94
AF
18732002-11-18 Adam Fedor <fedor@gnu.org>
1874
1875 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1876 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1877 (op_name): Handle OP_OBJC_SELF.
1878 * Makefile.in (expprint.o): Add additional depends.
1879
646df18d
AF
18802002-11-18 Adam Fedor <fedor@gnu.org>
1881
1882 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1883 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1884 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1885 * objc-exp.y: Likewise.
1886
379b85df
AF
18872002-11-18 Adam Fedor <fedor@gnu.org>
1888
1889 * gdb/parser-defs.h: (struct objc_class_str): New structure
1890 for parsing ObjC classes.
1891
85cf597a
AC
18922002-11-18 Andrew Cagney <ac131313@redhat.com>
1893
1894 * stack.c (frame_relative_level): Copy function from here ...
1895 * frame.c (frame_relative_level): ...to here.
1896
5a203e44
AC
18972002-11-18 Andrew Cagney <ac131313@redhat.com>
1898
1899 * frame.h (enum frame_type): Define.
1900 (get_frame_type): Declare.
1901 (struct frame_info): Add field `type'. Delete field
1902 signal_handler_caller.
1903 (deprecated_set_frame_signal_handler_caller): Declare.
1904 * frame.c (get_frame_type): New function.
1905 (deprecated_set_frame_type): New function.
1906 (create_new_frame): Set the frame's type.
1907 (get_prev_frame): Similar.
1908 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1909 * s390-tdep.c: Ditto.
1910 * m68klinux-nat.c: Ditto.
1911 * ns32k-tdep.c: Ditto.
1912 * x86-64-linux-tdep.c: Ditto.
1913 * vax-tdep.c: Ditto.
1914 * rs6000-tdep.c: Ditto.
1915 * ppc-linux-tdep.c: Ditto.
1916 * i386-interix-tdep.c: Ditto.
1917 * mips-tdep.c: Ditto.
1918 * m68k-tdep.c: Ditto.
1919 * hppa-tdep.c: Ditto.
1920 * ia64-tdep.c: Ditto.
1921 * cris-tdep.c: Ditto.
1922 * arm-tdep.c: Ditto.
1923 * alpha-tdep.c: Ditto.
1924 * i386-tdep.c: Ditto.
1925 * stack.c: Ditto.
1926 * ada-lang.c: Ditto.
1927 * blockframe.c: Update.
1928 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1929 deprecated_set_frame_type instead of signal_handler_caller.
1930 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1931 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1932 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1933
bf4ae8b2
KD
19342002-11-18 Klee Dienes <kdienes@apple.com>
1935
1936 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1937
a672ef13
KD
19382002-11-18 Klee Dienes <kdienes@apple.com>
1939
1940 * buildsym.c (pop_context): Add comment.
1941
0c5e171a
KD
19422002-11-18 Klee Dienes <kdienes@apple.com>
1943
1944 * buildsym.h (pop_context): Convert to function, defined in
1945 buildsym.c.
1946 * buildsym.c: Include gdb_assert.h.
1947 (pop_context): Implement as C function. Add check for stack
1948 underflow.
1949 * dbxread.c (process_one_symbol): Complain and stop processing
1950 that symbol if we are already at the top of the context stack for
1951 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1952 when processing N_RBRAC.
1953
8a1f4c4c
DJ
19542002-11-16 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1957 define.
1958 (struct target_waitstatus): Add opaque definition.
1959 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1960 * exec.c (init_exec_ops): Likewise.
1961 * fork-child.c (clone_and_follow_inferior): Remove.
1962 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1963 * inferior.h (clone_and_follow_inferior): Remove prototype.
1964 * infrun.c (follow_fork_mode_both): Remove.
1965 (follow_fork_mode_kind_names): Remove commented out "both".
1966 (follow_inferior_fork): Remove follow_fork_mode_both support.
1967 * inftarg.c (child_clone_and_follow_inferior): Remove.
1968 (child_post_follow_inferior_by_clone): Remove.
1969 (init_child_ops): Don't set to_clone_and_follow_inferior
1970 or to_post_follow_inferior_by_clone.
1971 * target.c (default_clone_and_follow_inferior): Remove.
1972 (cleanup_target): Don't set to_clone_and_follow_inferior
1973 or to_post_follow_inferior_by_clone.
1974 (find_default_clone_and_follow_inferior): Remove.
1975 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1976 (debug_to_clone_and_follow_inferior): Remove.
1977 (debug_to_post_follow_inferior_by_clone): Remove.
1978 (setup_target_debug): Don't set to_clone_and_follow_inferior
1979 or to_post_follow_inferior_by_clone.
1980 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1981 and to_post_follow_inferior_by_clone.
1982 (child_clone_and_follow_inferior): Remove prototype.
1983 (child_post_follow_inferior_by_clone): Remove prototype.
1984 (target_clone_and_follow_inferior): Remove macro.
1985 (target_post_follow_inferior_by_clone): Remove macro.
1986 (find_default_clone_and_follow_inferior): Remove prototype.
1987
47932f85
DJ
19882002-11-16 Daniel Jacobowitz <drow@mvista.com>
1989
1990 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1991 inferior_has_vforked, and inferior_has_execd instead of
1992 target_has_forked, target_has_vforked, and target_has_execd.
1993 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1994 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1995 (CHILD_WAIT): Define.
1996 (child_wait): Add prototype.
1997 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1998 Add prototype.
1999 (hpux_has_vforked): Likewise, from child_has_vforked.
2000 (hpux_has_execd): Likewise, from child_has_execd.
2001 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2002 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2003 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2004 and hpux_has_syscall_event instead of the target hooks.
2005 * infrun.c (inferior_has_forked, inferior_has_vforked)
2006 (inferior_has_execd): New functions.
2007 * inftarg.c (not_same_real_pid): Remove.
2008 (child_wait): Remove references to not_same_real_pid,
2009 target_has_forked, target_has_vforked, target_has_execd,
2010 and target_has_syscall_event.
2011 (child_has_forked, child_has_vforked, child_has_execd)
2012 (child_has_syscall_event): Remove.
2013 (init_child_ops): Remove references to child_has_forked,
2014 child_has_vforked, child_has_execd, and child_has_syscall_event.
2015 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2016 (hpux_has_vforked): Likewise, from child_has_vforked.
2017 (hpux_has_execd): Likewise, from child_has_execd.
2018 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2019 * target.c (cleanup_target): Remove references to
2020 to_has_forked, to_has_vforked, to_has_execd, and
2021 to_has_syscall_event.
2022 (update_current_target): Likewise.
2023 (setup_target_debug): Likewise.
2024 (debug_to_has_forked): Remove.
2025 (debug_to_has_vforked): Remove.
2026 (debug_to_has_execd): Remove.
2027 (debug_to_has_syscall_event): Remove.
2028 * target.h (struct target_ops): Remove to_has_forked.
2029 to_has_vforked, to_has_execd, and to_has_syscall_event.
2030 (child_has_forked, child_has_vforked, child_has_execd)
2031 (child_has_syscall_event): Remove prototypes.
2032 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2033 prototypes.
2034 (target_has_forked, target_has_vforked, target_has_execd)
2035 (target_has_syscall_event): Remove macros.
2036
4088142a
DJ
20372002-11-16 Daniel Jacobowitz <drow@mvista.com>
2038
2039 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2040 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2041 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2042 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2043 * target.c (cleanup_target): Remove reference to
2044 to_can_follow_vfork_prior_to_exec.
2045 (update_current_target): Likewise.
2046 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2047 (setup_target_debug): Remove reference to
2048 to_can_follow_vfork_prior_to_exec.
2049 * target.h (struct target_ops): Remove
2050 to_can_follow_vfork_prior_to_exec.
2051 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2052 (target_can_follow_vfork_prior_to_exec): Remove definition.
2053 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2054 define.
2055 * infrun.c (follow_vfork_when_exec): Remove.
2056 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2057 (follow_exec): Likewise.
2058 (handle_inferior_event): Likewise.
2059 (keep_going): Likewise.
2060
18cde8d5
AC
20612002-11-15 Andrew Cagney <cagney@redhat.com>
2062
2063 * frame.c (generic_unwind_get_saved_register): Make static.
2064 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2065 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2066 defaults to generic_unwind_get_saved_register.
2067 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2069 * frv-tdep.c (frv_gdbarch_init): Ditto.
2070 * i386-tdep.c (i386_gdbarch_init): Ditto.
2071 * s390-tdep.c (s390_gdbarch_init): Ditto.
2072 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2073 * v850-tdep.c (v850_gdbarch_init): Ditto.
2074 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2075 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2076 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2077
a6b063af
AC
20782002-11-15 Andrew Cagney <cagney@redhat.com>
2079
2080 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2081 i386-tdep.c.
2082
f407986f
AC
20832002-11-15 Andrew Cagney <cagney@redhat.com>
2084
2085 * frame.h (sigtramp_saved_pc): Delete declaration.
2086 * blockframe.c (sigtramp_saved_pc): Delete function.
2087 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2088 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2089 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2090 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2091
f18c5a73
AC
20922002-11-15 Andrew Cagney <ac131313@redhat.com>
2093
2094 * frame.c (frame_pc_unwind): New function.
2095 (frame_saved_regs_pc_unwind): New function.
2096 (frame_register_unwind): Pass unwind_cache instead of
2097 register_unwind_cache.
2098 (set_unwind_by_pc): Add unwind_pc parameter, set.
2099 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2100 (get_prev_frame): Ditto.
2101 * frame.h (frame_pc_unwind_ftype): Declare.
2102 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2103 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2104 (frame_pc_unwind): Declare.
2105 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2106 (struct dummy_frame): Add comment mentioning that values are for
2107 previous frame.
2108 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2109 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2110 (generic_file_frame_chain_valid): Ditto.
2111 * stack.c (frame_info): Ditto.
2112
d9285969 21132002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
2114
2115 * linespec.c (locate_first_half): New function.
2116 (decode_line_1): Move code into locate_first_half.
2117
d741b867
AC
21182002-11-15 Andrew Cagney <ac131313@redhat.com>
2119
2120 * complaints.h: Add comment explaining how to eliminate a
2121 deprecated_complain call.
24382c5c 2122 * complaints.h: Fix spelling errors.
d741b867 2123
82d03c99
DC
21242002-11-15 David Carlton <carlton@math.stanford.edu>
2125
2126 * printcmd.c: Remove #include "disasm.h".
2127
c97eb5d9
AC
21282002-11-14 Andrew Cagney <ac131313@redhat.com>
2129
2130 * frame.h: Move the most relevant interface functions to the start
2131 of the file.
2132
524d7c18
AC
21332002-11-14 Andrew Cagney <ac131313@redhat.com>
2134
2135 * regcache.h (deprecated_registers): Rename registers.
2136 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2137 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2138 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2139 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2140 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2141 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2142 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2143 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2144 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2145 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2146 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2147 * v850ice.c: Update.
2148
6411e720
AC
2149Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2150
2151 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2152 NULL buffer.
2153
73937e03
AC
21542002-11-13 Andrew Cagney <cagney@redhat.com>
2155
2156 * regcache.h (deprecated_read_register_bytes): Rename
2157 read_register_bytes.
2158 (deprecated_write_register_bytes): Rename write_register_bytes.
2159 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2160 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2161 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2162 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2163 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2164 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2165 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2166 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2167 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2168 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2169 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2170 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2171 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2172 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2173
fb0cd46e
JB
21742002-11-13 Jim Blandy <jimb@redhat.com>
2175
2176 * findvar.c (read_var_value): Doc fix.
2177
2d28509a
AC
21782002-11-13 Andrew Cagney <cagney@redhat.com>
2179
2180 * regcache.c (struct regcache): Replace passthough_p with
2181 readonly_p.
2182 (regcache_xmalloc): Initialize readonly_p.
2183 (build_regcache): Initialize readonly_p.
2184 (regcache_save): New function.
2185 (regcache_restore): New function.
2186 (regcache_cpy): Re-implement using regcache_save and
2187 regcache_restore.
2188 (regcache_raw_read): Update.
2189 (regcache_cooked_read): When a read-only cache, checked for cached
2190 pseudo register values.
2191 (regcache_raw_write): Assert that the cache is not read-only.
2192 Remove code handling a non-passthrough cache.
2193 * regcache.h (regcache_save): Declare.
2194 (regcache_restore): Declare.
2195
067df2e5
AC
21962002-11-13 Andrew Cagney <cagney@redhat.com>
2197
2198 * regcache.c (struct regcache_descr): Add fields
2199 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2200 (init_legacy_regcache_descr): Compute the size of a cooked
2201 register cache and then assign that to sizeof_raw_registers. Set
2202 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2203 (init_legacy_regcache_descr): Ditto.
2204
51b1fe4e
AC
22052002-11-13 Andrew Cagney <cagney@redhat.com>
2206
2207 * regcache.c (register_buffer): Move to near start of file, update
2208 description.
2209 (regcache_raw_read): Use.
2210 (regcache_raw_write): Use.
2211 (struct regcache): Rename raw_registers to registers and
2212 raw_register_valid_p to register_valid_p.
2213 (regcache_xmalloc): Update.
2214 (regcache_xfree): Update.
2215 (register_buffer): Update.
2216 (regcache_cpy): Update.
2217 (regcache_cpy_no_passthrough): Update.
2218 (regcache_valid_p): Update.
2219 (deprecated_grub_regcache_for_registers): Update.
2220 (deprecated_grub_regcache_for_register_valid): Update.
2221 (set_register_cached): Update.
2222 (regcache_raw_write): Update.
2223
80b4c677
PM
22242002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2225
2226 * p-exp.y (name_not_typename): Use copy_name to
2227 set current_type variable for fields of THIS.
2228
0f3fafde
DJ
22292002-11-12 Daniel Jacobowitz <drow@mvista.com>
2230
2231 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2232 * monitor.c (init_base_monitor_ops): Likewise.
2233 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2234 * remote-array.c (init_array_ops): Likewise.
2235 * remote-e7000.c (init_e7000_ops): Likewise.
2236 * remote-es.c (init_es1800_ops): Likewise.
2237 (init_es1800_child_ops): Likewise.
2238 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2239 * remote-sim.c (init_gdbsim_ops): Likewise.
2240 * remote-st.c (init_st2000_ops): Likewise.
2241 * sol-thread.c (init_sol_core_ops): Likewise.
2242 (init_sol_thread_ops): Likewise.
2243 * v850ice.c (init_850ice_ops): Likewise.
2244 * win32-nat.c (init_child_ops): Likewise.
2245 * wince.c (init_child_ops): Likewise.
2246
82c0260e
AC
22472002-11-12 Andrew Cagney <ac131313@redhat.com>
2248
2249 * utils.c (gdb_realpath): Make rp a constant pointer.
2250
70d35819
AC
22512002-11-12 Andrew Cagney <ac131313@redhat.com>
2252
2253 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2254 a constant buffer; cannonicalize_file_name(); realpath() with a
2255 pathconf() defined buffer, xstrdup().
2256
9835a8b0
AC
22572002-11-12 Andrew Cagney <ac131313@redhat.com>
2258
2259 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2260 to hang2.C; hang3.c to hang3.C.
2261
3f47be5c
EZ
22622002-11-11 Elena Zannoni <ezannoni@redhat.com>
2263
2264 * findvar.c (read_var_value): Reenable TLS code.
2265
22662002-11-11 Elena Zannoni <ezannoni@redhat.com>
2267 Jim Blandy <jimb@redhat.com>
2268
2269 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2270 * target.c (update_current_target): Add
2271 to_get_thread_local_address.
2272 * target.h (to_get_thread_local_address): Export.
2273 (target_get_thread_local_address): Define.
2274 (target_get_thread_local_address_p): Define.
2275 * thread-db.c: Include solib-svr4.h.
2276 (td_thr_tls_get_addr_p): Define.
2277 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2278 (thread_db_get_thread_local_address): New function.
2279 (init_thread_db_ops): Initialize to_get_thread_local_address.
2280 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2281 * configure: Regenerate.
2282 * config.in: Regenerate.
2283
636b1a6d
DC
22842002-11-11 David Carlton <carlton@math.stanford.edu>
2285
2286 * linespec.c (set_flags): New function.
2287 (decode_line_1): Move code into set_flags.
2288
44fe14ab
DC
22892002-11-11 David Carlton <carlton@math.stanford.edu>
2290
2291 * linespec.c (decode_line_1): Move chunks of code to separate
2292 functions.
2293 (initialize_defaults): New function.
2294 (decode_indirect): New function.
2295
e6f181f5
AC
22962002-11-11 Andrew Cagney <ac131313@redhat.com>
2297
8971b011
AC
2298 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2299 instead of void_code_ptr.
2300 (sigtramp_saved_pc): Ditto.
2301
e6f181f5
AC
2302 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2303 i386_fp_regnum_p.
2304
01ad7f36
DJ
23052002-11-10 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * gdbtypes.h (struct main_type): Move artificial flag out of
2308 loc. New member of ``struct field'' named static_kind. Reduce
2309 overloaded meaning of bitsize.
2310 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2311 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2312 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2313
2314 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2315 new fields.
2316 (template_to_fixed_record_type, template_to_static_fixed_type)
2317 (to_record_with_fixed_variant_part): Likewise.
2318 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2319 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2320 * dwarfread.c (struct_type, enum_type): Likewise.
2321 * hpread.c (hpread_read_enum_type)
2322 (hpread_read_function_type, hpread_read_doc_function_type)
2323 (hpread_read_struct_type): Likewise.
2324 * mdebugread.c (parse_symbol): Likewise.
2325
bf1e52be
AC
23262002-11-10 Andrew Cagney <ac131313@redhat.com>
2327
2328 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2329 * stack.c (print_frame_info_base): Update.
2330 (print_frame_info_base, frame_info): Update.
2331 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2332 (sparc_frame_saved_pc): Update.
2333 * ada-lang.c (find_printable_frame): Update.
2334 * breakpoint.c (deprecated_frame_in_dummy): Update.
2335
ce556f85
MK
23362002-11-09 Mark Kettenis <kettenis@gnu.org>
2337
2338 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2339 defined.
2340 (regmap): Extend to cover all registers.
2341 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2342 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2343 definitions.
2344 (fetch_register, sore_register): Simplify.
2345 (old_fetch_inferior_registers, old_store_inferior_registers):
2346 Remove functions.
2347 (cannot_fetch_register, cannot_store_register): Change
2348 implementation to use regmap array to decide which registers
2349 cannot be fetched/stored. This removes $orig_eax from the
2350 registers that cannot be fetched/stored.
2351 (fetch_inferior_registers): Call fetch_register directly instead
2352 of calling old_fetch_inferior_registers.
2353 (store_inferior_registers): Call store_register directly instead
2354 of calling old_store_inferior_registers.
2355 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2356 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2357 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2358
932bb524
KD
23592002-11-09 Klee Dienes <kdienes@apple.com>
2360
2361 * i387-tdep.c (i387_supply_register): When called with NULL as a
2362 buffer, mark the register as not provided (to mirror the behavior
2363 of supply_register).
2364 (i387_supply_fxsave): Ditto.
2365 (i387_supply_fsave): Ditto (inherits the behavior from
2366 i387_supply_register).
2367
ebe68b27
KD
23682002-11-09 Klee Dienes <kdienes@apple.com>
2369
2370 * blockframe.c (sigtramp_saved_pc): Use
2371 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2372 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2373 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2374
15220c65
AC
23752002-11-09 Andrew Cagney <ac131313@redhat.com>
2376
2377 * frame.c (get_prev_frame): Test prev_p to identify a previously
2378 unwound frame. Initialize prev_p.
2379 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2380 comment.
2381
95adb866
AC
23822002-11-09 Andrew Cagney <ac131313@redhat.com>
2383
2384 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2385 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2386 more comments. Zap dead code.
2387
e71ecd70
MK
23882002-11-09 Mark Kettenis <kettenis@gnu.org>
2389
2390 * infcmd.c (print_vector_info, print_float_info): Move code that
2391 checks whether the target has any registers and whether there is a
2392 selected frame up, such that it is also used if a target provides
2393 multi-arch definitions of these functions.
2394
c525330d
AC
23952002-11-08 Andrew Cagney <ac131313@redhat.com>
2396
72bdd927
AC
2397 * Makefile.in (DESTDIR): Define.
2398 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2399 prefix.
2400
c525330d
AC
2401 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2402 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2403
38c968cf
AC
24042002-11-08 Andrew Cagney <ac131313@redhat.com>
2405
2406 * i386-linux-tdep.c: Include "reggroups.h".
2407 (i386_linux_register_reggroup_p): New function.
2408 (i386_linux_init_abi): Set register_reggroup_p to
2409 i386_linux_register_reggroup_p.
2410 * i386-tdep.h (i386_register_reggroup_p): Declare.
2411 * i386-tdep.c: Include "reggroups.h".
2412 (i386_init_reggroups): New function.
2413 (i386_add_reggroups): New function.
2414 (i386_register_reggroup_p): New function.
2415 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2416 (_initialize_i386_tdep): Call i386_init_reggroups.
2417 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2418 specific reggroups.
2419
19e33363
MK
24202002-11-09 Mark Kettenis <kettenis@gnu.org>
2421
371a6e84
MK
2422 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2423 request that's available in *BSD.
2424
94ba925a
MK
2425 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2426
19e33363
MK
2427 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2428 FDOFF_REGNUM.
2429
8779790c
AC
24302002-11-08 Andrew Cagney <ac131313@redhat.com>
2431
2432 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2433 * dummy-frame.c (find_dummy_frame): Rename
2434 generic_find_dummy_frame, make static. Return the dummy frame
2435 instead of the regcache.
2436 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2437 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2438 (dummy_frame_register_unwind): Rename
2439 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2440 * dummy-frame.h (dummy_frame_register_unwind): Rename
2441 generic_call_dummy_register_unwind.
2442
8674b74f
MK
24432002-11-08 Mark Kettenis <kettenis@gnu.org>
2444
2445 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2446 except the inclusion of "i386/tm-i386.h", to...
2447 * config/i386/nm-i386v42mp.h: ...here.
2448 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2449
4c1e7e9d
AC
24502002-11-08 Andrew Cagney <ac131313@redhat.com>
2451
2452 * Makefile.in (frame.o): Update dependencies.
2453 * blockframe.c (current_frame, frame_obstack_alloc)
2454 (frame_saved_regs_zalloc, get_current_frame)
2455 (set_current_frame, create_new_frame)
2456 (set_unwind_by_pc, get_next_frame)
2457 (flush_cached_frames, reinit_frame_cache)
2458 (frame_saved_regs_register_unwind)
2459 (deprecated_generic_get_saved_register)
2460 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2461 (_initialize_blockframe): Move frame code from here...
2462 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2463 "annotate.h" and "dummy-frame.h".
2464 (_initialize_frame): New function.
2465
921e78cf
JB
24662002-11-08 Jim Blandy <jimb@redhat.com>
2467
2468 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2469 when we finish a function a context.
2470 * buildsym.h (outermost_context_p): New macro.
2471 (Bug analyzed by David Edelsohn.)
2472
9c1412c1
AC
24732002-11-08 Andrew Cagney <ac131313@redhat.com>
2474
2475 * blockframe.c: Include "dummy-frame.h".
2476 (struct dummy_frame, dummy_frame_stack)
2477 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2478 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2479 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2480 (generic_save_call_dummy_addr, generic_pop_current_frame)
2481 (generic_pop_dummy_frame, generic_fix_call_dummy)
2482 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2483 dummy frame code from here...
2484 * dummy-frame.c: ...to here. New file.
2485 * dummy-frame.h: New file.
2486 (generic_call_dummy_register_unwind): Declare.
2487 (generic_find_dummy_frame): Declare.
2488 * Makefile.in (SFILES): Add dummy-frame.c.
2489 (dummy-frame.o): Specify dependencies.
2490 (dummy_frame_h): Define.
2491 (COMMON_OBS): Add dummy-frame.o.
2492 (blockframe.o): Update dependencies.
2493
208d8187
JB
24942002-11-08 Jim Blandy <jimb@redhat.com>
2495
2496 * dwarf2read.c (read_func_scope): Restore local_symbols and
2497 param_symbols after we finish the function context. (Based on a
2498 patch from David Edelsohn.)
2499
413dad4d
DC
25002002-11-08 David Carlton <carlton@math.stanford.edu>
2501
2502 * linespec.c (symbol_found): New function.
2503 (minsym_found): New function.
2504 (decode_line_1): Separate out some code into separate functions.
2505
5512c44a
JB
25062002-11-08 Joel Brobecker <brobecker@gnat.com>
2507
2508 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2509 the benefit of the interix target.
2510 * i386-tdep.h (i386_frameless_signal_p): Declare.
2511
1b33ef47
AC
25122002-11-08 Andrew Cagney <ac131313@redhat.com>
2513
2514 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2515 declaration that snuck in from change below.
2516
23a34459
AC
25172002-11-06 Andrew Cagney <cagney@redhat.com>
2518
2519 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2520 all callers.
2521 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2522 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2523 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2524 (i386_mxcsr_regnum_p): new function. Use instead of
2525 MXCSR_REGNUM_P.
2526 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2527 (i386_sse_regnum_p): Declare.
2528 (i386_mxcsr_regnum_p): Declare.
2529 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2530 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2531 (IS_FP_REGNUM): Update definition.
2532 (IS_FPU_CTRL_REGNUM): Update definition..
2533 (IS_SSE_REGNUM): Update definition..
2534 * i386v-nat.c (register_u_addr): Update.
2535 * go32-nat.c (fetch_register): Update.
2536 (store_register): Update.
2537
d709c020
JB
25382002-11-07 Joel Brobecker <brobecker@gnat.com>
2539
2540 Preparation work to convert the hppa targets to multiarch partial.
2541
2542 * hppa-tdep.c: Add new functions replacing macro bodies from
2543 config/pa/tm-hppa.h. These function will be used to initialize
2544 the gdbarch structure. Import some comments from tm-hppa.h,
2545 and place them where appropriate, to avoid loosing them when
2546 we cleanup this file.
2547 (hppa_reg_struct_has_addr): New function.
2548 (hppa_inner_than): New function.
2549 (hppa_stack_align): New function.
2550 (hppa_pc_requires_run_before_use): New function.
2551 (hppa_instruction_nullified): New function.
2552 (hppa_register_byte): New function.
2553 (hppa_register_virtual_type): New function.
2554 (hppa_store_struct_return): New function.
2555 (hppa_cannot_store_register): New function.
2556 (hppa_frame_args_address): New function.
2557 (hppa_frame_locals_address): New function.
2558 (hppa_smash_text_address): New function.
2559 (hppa_coerce_float_to_double): New function. Requires the inclusion
2560 of "language.h".
2561
2562 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2563
2564 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2565 gdbarch-eligible macro to a call to the new associated function
2566 created in hppa-tdep.c.
2567 (INNER_THAN): Likewise.
2568 (STACK_ALIGN): Likewise.
2569 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2570 (INSTRUCTION_NULLIFIED): Likewise.
2571 (REGISTER_BYTE): Likewise.
2572 (REGISTER_VIRTUAL_TYPE): Likewise.
2573 (STORE_STRUCT_RETURN): Likewise.
2574 (CANNOT_STORE_REGISTER): Likewise.
2575 (FRAME_ARGS_ADDRESS): Likewise.
2576 (FRAME_LOCALS_ADDRESS): Likewise.
2577 (SMASH_TEXT_ADDRESS): Likewise.
2578 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2579 (ABOUT_TO_RETURN): Delete, as no longer used.
2580
83c31e7d
FN
25812002-11-07 Fernando Nasser <fnasser@redhat.com>
2582
2583 * printcmd.c (disassemble_command): Remove obsolete function.
2584 (_initialize_printcmd): Do not create disassemble command here.
2585 * cli/cli-cmds.c (disassemble_command): New function. Implements
2586 disassemble command.
2587 (init_cli_cmds): Create disassemble command here instead.
2588
0ec30a36
AC
25892002-11-07 Andrew Cagney <ac131313@redhat.com>
2590
2591 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2592
e600bd34
AC
25932002-11-07 Andrew Cagney <ac131313@redhat.com>
2594
2595 * regcache.h (regcache_cooked_read_using_offset_hack)
2596 (regcache_cooked_write_using_offset_hack): Delete declarations.
2597 (register_changed): Delete declaration.
2598 * regcache.c (regcache_cooked_read_using_offset_hack)
2599 (regcache_cooked_write_using_offset_hack): Delete functions.
2600 (cooked_xfer_using_offset_hack): Delete function.
2601 (register_changed): Delete function.
2602
568f8739
JB
26032002-11-07 Jim Blandy <jimb@redhat.com>
2604
2605 * macroscope.c: #include "complaints.h".
2606 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2607 but not in the macro table.
2608 * Makefile.in (macroscope.o): Record dependency.
2609
b0718b7b
JB
26102002-11-07 Joel Brobecker <brobecker@gnat.com>
2611
2612 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2613
2b9e5f3f
AC
26142002-11-07 Andrew Cagney <ac131313@redhat.com>
2615
2616 * regcache.c (deprecated_registers_fetched): Update.
2617 * regcache.h (deprecated_registers_fetched): Rename
2618 registers_fetched.
2619 * remote-vxsparc.c (vx_read_register): Update.
2620 * remote-vxmips.c (vx_read_register): Update.
2621 * remote-vx68.c (vx_read_register): Update.
2622 * irix5-nat.c (fetch_core_registers): Update.
2623 * mipsm3-nat.c (fetch_inferior_registers): Update.
2624 * sun3-nat.c (fetch_inferior_registers): Update.
2625 * symm-nat.c (fetch_inferior_registers): Update.
2626 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2627 (fetch_core_registers): Update.
2628 (fetch_kcore_registers): Update.
2629 * mips-nat.c (fetch_inferior_registers): Update.
2630 * corelow.c (get_core_registers): Update.
2631 * a68v-nat.c (fetch_inferior_registers): Update.
2632
e6e68f1f
JB
26332002-11-06 Joel Brobecker <brobecker@gnat.com>
2634
2635 Put in place the framework necessary for multiarching the hppa targets.
2636 * hppa-tdep.c (hppa_gdbarch_init): New function.
2637 (hppa_dump_tdep): New function.
2638 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2639 tdep structure dumper.
2640 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2641 until the multi-arching conversion has partially been completed.
2642
492254e9
AC
26432002-11-06 Andrew Cagney <ac131313@redhat.com>
2644
2645 * valops.c (value_assign): Merge lval_register case into
2646 lval_reg_frame_relative. Use frame_register and
2647 regcache_cooked_write instead of get_saved_register and
2648 write_register_bytes. After flushing the register cache, try to
2649 re-select the selected frame.
2650
8262ee23
AC
26512002-11-06 Andrew Cagney <ac131313@redhat.com>
2652
2653 * regcache.h (deprecated_register_valid): Rename register_valid.
2654 * regcache.c: Update.
2655 * ia64-aix-nat.c: Update.
2656 * i386gnu-nat.c: Update.
2657 * alpha-nat.c: Update.
2658 * sparc-nat.c: Update.
2659 * lynx-nat.c: Update.
2660 * remote-mips.c: Update.
2661
4facf7e8
JB
26622002-11-06 Joel Brobecker <brobecker@gnat.com>
2663
2664 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2665 to end of file, to be more consistent with the pratice followed
2666 by other targets.
2667
f9418c0f
AC
26682002-11-06 Andrew Cagney <ac131313@redhat.com>
2669
2670 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2671 (print_float_info): Print registers in float_reggroup.
2672 (print_vector_info): Print registers in vector_reggroup.
2673 (default_print_registers_info): When all, print registers in
2674 all_reggroup. Otherwize, print registers in general_reggroup.
2675 (registers_info): Rewrite. Add support for register groups.
2676 Eliminate a goto.
2677
3fe235a7
EZ
26782002-11-06 Elena Zannoni <ezannoni@redhat.com>
2679
2680 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2681 ages.
2682 (symtab_symbol_info): Remove eons old ifdeffed out code.
2683 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2684 command.
2685
ef944135
TR
26862002-11-06 Theodore A. Roth <troth@openavr.org>
2687
2688 * c-exp.y: Add missing semi-colons.
2689 * f-exp.y: Add missing semi-colons.
2690 * m2-exp.y: Add missing semi-colons.
2691 * p-exp.y: Add missing semi-colons.
2692 Add empty action to start rule to avoid a type clash error when
2693 building with bison >= 1.50.
2694
f8302a57
JB
26952002-11-06 Jim Blandy <jimb@redhat.com>
2696
2697 * macrotab.h (struct macro_source_file): Doc fix.
2698
6e382aa3
JJ
26992002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2700
2701 * varobj.c (child_exists, cplus_number_of_children): Change
2702 STREQ macro references to strcmp.
2703 (cplus_name_of_child): Change code to handle the fact that
2704 fields are not necessarily contiguous with regards to their
2705 access control. This is a fix for PR gdb/792.
2706
a216a322
AC
27072002-11-05 Andrew Cagney <ac131313@redhat.com>
2708
2709 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2710 * gdbarch.h, gdbarch.c: Regnerate.
2711 * frame.h (frame_register): Declare.
2712 * frame.c (frame_register): New function.
2713 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2714 GET_SAVED_REGISTER, otherwize call
2715 generic_unwind_get_saved_register.
2716 (frame_register_read): Use frame_register instead of
2717 get_saved_register.
2718
7d5b6fdd
EZ
27192002-11-05 Elena Zannoni <ezannoni@redhat.com>
2720
2721 From Jim Ingham <jingham@apple.com>:
2722 * event-top.c (gdb_disable_readline): New function.
2723 (_initialize_event_loop): Move comment.
2724
b7c64260
EZ
27252002-11-05 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * event-loop.c (start_event_loop): Add comment.
2728 Update copyright.
2729
c2e1b8f2
AC
27302002-11-05 Andrew Cagney <ac131313@redhat.com>
2731
2732 * infcmd.c (default_print_registers_info): Do not call
2733 PRINT_REGISTER_HOOK.
2734
87647bb0
AC
27352002-11-05 Andrew Cagney <ac131313@redhat.com>
2736
2737 * sparc-tdep.c (sparc_print_register_hook): Make static.
2738 (sparc_print_registers_info): New function.
2739 (sparc_do_registers_info): New function.
2740 (sparclet_print_registers_info): New function.
2741 (sparclet_do_registers_info): New function.
2742 (do_sparc_print_registers_info): New function.
2743 (sparc_print_registers): New static function, clone of infcmd.c's
2744 default_print_registers_info.
2745 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2746 (sparclet_do_registers_info): Declare.
2747 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2748 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2749 Re-define.
2750 (sparc_do_registers_info): Declare.
2751 (PRINT_REGISTER_HOOK): Delete macro.
2752 (sparc_print_register_hook): Delete declaration.
2753
8155455b
DC
27542002-11-05 David Carlton <carlton@math.stanford.edu>
2755
2756 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2757 functions.
2758 (lookup_symbol_aux_local): New function.
2759 (lookup_symbol_aux_symtabs): New function.
2760 (lookup_symbol_aux_psymtabs): New function.
2761
29924310
DC
27622002-11-05 David Carlton <carlton@math.stanford.edu>
2763
2764 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2765 previous values of 'objfile' and 'block'.
2766
cc303028
PM
27672002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2768
2769 * values.c (value_change_enclosing_type): Set
2770 enclosing_type field correctly also for the case where
2771 more memory needs to be allocated.
2772
1d70089a
MK
27732002-11-03 Mark Kettenis <kettenis@gnu.org>
2774
f16a25ae
MK
2775 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2776 of puts_filtered.
2777
1d70089a
MK
2778 * i387-tdep.c (i387_print_float_info): Replace calls to
2779 register_read and deprecated_read_register_gen with calls to
2780 frame_register_read, and make the necessary adjustments to the
2781 surrounding code.
2782
7e20f3fb
AC
27832002-11-02 Andrew Cagney <ac131313@redhat.com>
2784
2785 * gdbarch.sh (register_reggroup_p): Allow default value.
2786 * gdbarch.h, gdbarch.c: Regenerate.
2787
192dbe33
AC
27882002-11-02 Andrew Cagney <ac131313@redhat.com>
2789
2790 * regcache.h: Add coment indicating replacements for deprecated
2791 functions.
2792
b59ff9d5
AC
27932002-11-02 Andrew Cagney <cagney@redhat.com>
2794
2795 * reggroups.h, reggroups.c: New files.
2796 * regcache.c: Include "reggroups.h".
2797 (enum regcache_dump_what): Add `regcache_dump_groups'.
2798 (regcache_dump): Contract size of the "Type" column. When
2799 specified, dump the register's groups.
2800 (maintenance_print_register_groups): New function.
2801 (_initialize_regcache): Add command `maint print register-groups'.
2802 * Makefile.in (COMMON_OBS): Add reggroups.o
2803 (SFILES): Add reggroups.c.
2804 (reggroups_h): Define.
2805 (regcache.o, gdbarch.o): Update dependencies.
2806 (reggroups.o): Specify dependencies.
2807 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2808 Add opaque declaration for `struct reggroup' in generated .h file.
2809 Include "reggroups.h" in generated .c file.
2810 gdbarch.h, gdbarch.c: Re-generate.
2811
4caf0990
AC
28122002-11-02 Andrew Cagney <cagney@redhat.com>
2813
2814 * regcache.h (deprecated_read_register_gen): Rename
2815 read_register_gen.
2816 (deprecated_write_register_gen): Rename write_register_gen.
2817 * i387-tdep.c: Update.
2818 * x86-64-linux-nat.c: Update
2819 * wince.c: Update.
2820 * thread-db.c: Update.
2821 * win32-nat.c: Update.
2822 * mips-tdep.c: Update.
2823 * d10v-tdep.c: Update.
2824 * cris-tdep.c: Update.
2825 * remote-sim.c: Update.
2826 * remote-rdi.c: Update.
2827 * remote-rdp.c: Update.
2828 * frame.c: Update.
2829 * target.c: Update.
2830 * blockframe.c: Update.
2831 * x86-64-tdep.c: Update.
2832 * xstormy16-tdep.c: Update.
2833 * sh-tdep.c: Update.
2834 * s390-tdep.c: Update.
2835 * rs6000-tdep.c: Update.
2836 * sparc-tdep.c: Update.
2837 * i386-tdep.c: Update.
2838 * dwarf2cfi.c: Update.
2839 * regcache.c: Update.
2840
7a7adcdf
JB
28412002-11-01 Joel Brobecker <brobecker@gnat.com>
2842
2843 New interix-specific files:
2844 * config/i386/nm-interix.h: New file.
2845 * config/i386/interix.mh: New file.
2846 * config/i386/interix.mt: New file.
2847 * i386-interix-nat.c: New file.
2848 * i386-interix-tdep.c: New file.
2849
bdcdd535
AC
28502002-11-01 Andrew Cagney <cagney@redhat.com>
2851
2852 * frame.h (deprecated_generic_get_saved_register): Rename
2853 generic_get_saved_register.
2854 * blockframe.c (deprecated_generic_get_saved_register): Update.
2855 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2856 (xstormy16_frame_saved_register): Update.
2857 * sh-tdep.c (sh_gdbarch_init): Update.
2858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2859 * ia64-tdep.c (ia64_get_saved_register): Update.
2860 * cris-tdep.c (cris_gdbarch_init): Update.
2861 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2862 * arm-tdep.c (arm_gdbarch_init): Update.
2863
2a4b7c45
DJ
28642002-10-31 Daniel Jacobowitz <drow@mvista.com>
2865
2866 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2867
ef17e74b
DJ
28682002-10-31 Daniel Jacobowitz <drow@mvista.com>
2869
2870 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2871 trampolines in sigaction.
2872
4904ba5b
AC
28732002-10-31 Andrew Cagney <cagney@redhat.com>
2874
2875 * h8300-tdep.c: Include "gdb_assert.h".
2876 (h8300_print_register): Add gdbarch, file and frame parameters.
2877 Use frame_read_unsigned_register to read the register's value.
2878 Use fprintf_filtered to display output.
2879 (h8300_print_registers_info): Replace h8300_do_registers_info.
2880 (h8300_gdbarch_init): Set print_registers_info.
2881
f908a0eb
AC
28822002-10-31 Andrew Cagney <cagney@redhat.com>
2883
2884 * frame.c (frame_read_unsigned_register): New function.
2885 (frame_read_signed_register): New function.
2886 * frame.h (frame_read_unsigned_register): Declare.
2887 (frame_read_signed_register): Declare.
2888
c5646e11
AC
28892002-10-31 Andrew Cagney <cagney@redhat.com>
2890
2891 * h8500-tdep.c (h8500_print_registers_info): New static function,
2892 clone of infcmd.c's default_print_registers_info.
2893 (h8500_do_registers_info): New funtion.
2894 (h8500_print_register_hook): Rename print_register_hook, make
2895 static.
2896
2897 * config/h8500/tm-h8500.h: Update copyright.
2898 (DEPRECATED_DO_REGISTERS_INFO): Define.
2899 (h8500_do_registers_info: Declare.
2900 (PRINT_REGISTER_HOOK): Delete macro.
2901 (print_register_hook): Delete function.
2902
0bdd672b
AC
29032002-10-31 Andrew Cagney <cagney@redhat.com>
2904
2905 * z8k-tdep.c (z8k_print_register_hook): Make static.
2906 (z8k_print_registers_info): New static function, clone of
2907 infcmd.c's default_print_registers_info.
2908 (z8k_do_registers_info): New function. Wrap
2909 z8k_print_registers_info.
2910 * config/z8k/tm-z8k.h: Update copyright.
2911 (PRINT_REGISTER_HOOK): Delete macro.
2912 (z8k_print_register_hook): Delete declaration.
2913 (DEPRECATED_DO_REGISTERS_INFO): Define.
2914 (z8k_do_registers_info): Declare.
2915
bf9c25dc
JB
29162002-10-30 Joel Brobecker <brobecker@gnat.com>
2917
2918 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2919 as this is already provided by value.h, and was actually causing
2920 a compilation error because of a conflict in parameter type
2921 declaration due to a missing const keyword.
2922 (low_text_segment_addres): Fix a compilation warning.
2923
2c665b51
DJ
29242002-10-29 Daniel Jacobowitz <drow@mvista.com>
2925
2926 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2927 registers without a name.
2928 (mips_linux_cannot_store_register): Don't store registers without
2929 a name.
2930
e70ea697
DC
29312002-10-28 David Carlton <carlton@math.stanford.edu>
2932
2933 * symtab.c (find_addr_symbol): Delete. (It was already commented
2934 out.)
2935 * symtab.h: Delete prototype for find_addr_symbol.
2936
903ad3a6
AC
29372002-10-26 Andrew Cagney <cagney@redhat.com>
2938
2939 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2940 DO_REGISTERS_INFO.
2941 gdbarch.h, gdbarch.c: Re-generate.
2942 * infcmd.c (default_print_registers_info): Update reference.
2943 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2944 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2945 * sh-tdep.c (sh_gdbarch_init): Ditto.
2946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2948
ab91194c
MK
29492002-10-26 Mark Kettenis <kettenis@gnu.org>
2950
e3033f15
MK
2951 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2952 cfi_init_extra_frame_info.
2953 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2954 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2955
b83b026c
MK
2956 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2957 target where necessary. Add more comments and remove the ones
2958 that don't provide any useful information.
2959
267bf4bb
MK
2960 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2961 deprecated_read_register_dummy with
2962 frame_unwind_unsigned_register.
2963
751f1375
MK
2964 * i386-tdep.c (i386_extract_struct_value_address): Use
2965 regcache_raw_read_unsigned instead of
2966 regcache_cooked_read_unsigned since we know that the register
2967 we're reading isn't a pseudo register. Rename variable 'val' into
2968 the more descriptive 'addr'.
2969
26abbdc4
MK
2970 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2971 (x86_64_push_return_address): Add comment.
2972 (x86_64_pop_frame): Make static.
2973 (examine_argument): Clarify comment.
2974 (x86_64_skip_prologue): Make prolog_expact variable static.
2975
9f1549cc
MK
2976 * dwarf2cfi.c: Fix some formatting problems.
2977 (context_cpy, read_encoded_pointer): Clarify comments.
2978
ab91194c
MK
2979 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2980 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2981 i386 target back into x86_64_gdbarch_init. Add some comments and
2982 remove meaningless ones.
2983
72367fb4
AC
29842002-10-25 Andrew Cagney <cagney@redhat.com>
2985
2986 * complaints.h (struct deprecated_complaint): Rename `struct
2987 complaint'.
2988 * complaints.c (complain): Update.
2989 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2990 incorrect comment indicating that "symfile.h" was being included
2991 for the `struct complaint' definition.
2992 * remote-vx.c: Update.
2993 * objc-lang.c: Update.
2994 * xcoffread.c: Update.
2995 * hpread.c: Update.
2996 * mdebugread.c: Update.
2997 * stabsread.c: Update.
2998 * dwarf2read.c: Update.
2999 * dwarfread.c: Update.
3000 * elfread.c: Update.
3001 * coffread.c: Update.
3002 * stabsread.h: Update.
3003 * dbxread.c: Update.
3004 * buildsym.c: Update.
3005 * gdbtypes.c: Update.
3006 * macrotab.c: Update.
3007
1f2baacc
MK
30082002-10-25 Mark Kettenis <kettenis@gnu.org>
3009
0c1a73d6
MK
3010 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3011 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3012 (x86_64_init_abi): ...new function.
3013
6aee4d54 3014 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
3015 * i386v-nat.c: Include "i386-tdep.h".
3016
8f9cbe01
AC
30172002-10-25 Andrew Cagney <cagney@redhat.com>
3018
5f11f355
AC
3019 * gdbtypes.c (address_space_name_to_int): Update.
3020 (address_space_int_to_name): Update.
3021 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3022 multi-arch predicate.
3023 (address_class_name_to_type_flags): Ditto.
3024 * gdbarch.h, gdbarch.c: Re-generate.
3025
8f9cbe01
AC
3026 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3027
e8d96a5d
MH
30282002-10-24 Martin M. Hunt <hunt@redhat.com>
3029
3030 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3031
fe39c653
EZ
30322002-10-24 Elena Zannoni <ezannoni@redhat.com>
3033
3034 * symtab.h (INIT_SAL): Delete macro.
3035 (init_sal): Export.
3036 * symtab.c (init_sal): New function.
3037
3038 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3039 to init_sal function call.
3040 (find_sal_from_funcs_and_line): Ditto.
3041 (all_sals_for_line): Ditto.
3042 * breakpoint.c (create_internal_breakpoint): Ditto.
3043 (create_fork_vfork_event_catchpoint): Ditto.
3044 (create_exec_event_catchpoint): Ditto.
3045 (parse_breakpoint_sals): Ditto.
3046 (watch_command_1): Ditto.
3047 (handle_gnu_4_16_catch_command): Ditto.
3048 (clear_command): Ditto.
3049 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3050 * infcmd.c (run_stack_dummy): Ditto.
3051 * infrun.c (process_event_stop_test): Ditto.
3052 (check_sigtramp2): Ditto.
3053 (step_over_function): Ditto.
3054 * linespec.c (decode_line_2): Ditto.
3055 (decode_line_1): Ditto.
3056 * source.c (line_info): Ditto.
3057 * symtab.c (find_pc_sect_line): Ditto.
3058
baed091b
ML
30592002-10-24 Michal Ludvig <mludvig@suse.cz>
3060
3061 * dwarf2cfi.c (struct context)
3062 (struct context_reg): Moved to dwarf2cfi.h
3063 (context_alloc, frame_state_alloc, context_cpy):
3064 Made extern instead of static, removed prototypes.
3065 * dwarf2cfi.h (struct context)
3066 (struct context_reg): New, moved from dwarf2cfi.c
3067 (context_alloc, frame_state_alloc, context_cpy):
3068 New prototypes.
3069 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3070 Changed from static to extern.
3071 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3072 (LINUX_SIGCONTEXT_FP_OFFSET)
3073 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3074 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3075 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3076 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3077 set_gdbarch_*() calls now use x86-64 specific functions
3078 instead of DWARF2 CFI ones.
3079 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3080 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3081 (x86_64_init_extra_frame_info): New prototypes.
3082
c38da1af
DC
30832002-10-23 David Carlton <carlton@math.stanford.edu>
3084
3085 * linespec.c: #include "parser-defs.h".
3086 Delete prototype for find_template_name_end.
3087 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3088
fb9b6b35
JJ
30892002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3090
3091 * NEWS: add recent mi fixes.
3092 * varobj.c (struct varobj): Add new "updated" flag.
3093 (new_variable): Default "updated" flag to 0.
3094 (varobj_set_value): Set "updated" flag to 1 if value
3095 changes.
3096 (varobj_update): Check varobj "updated" flag before
3097 comparing old and refreshed values. Fix for
3098 PR gdb/702.
3099
8da065d5
DC
31002002-10-23 David Carlton <carlton@math.stanford.edu>
3101
3102 * parse.c (parse_exp_1): Use BLOCK_START.
3103 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3104 SYMBOL_BLOCK_VALUE.
3105 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3106
87f2f08c
DC
31072002-10-23 David Carlton <carlton@math.stanford.edu>
3108
3109 * symtab.c: Delete cplusplus_hint.
3110 Delete prototype for find_template_name_end.
3111
88cda038
EZ
31122002-10-23 Elena Zannoni <ezannoni@redhat.com>
3113
3114 * symtab.h: Update comment.
3115
2625d86c
MS
31162002-10-23 Michael Snyder <msnyder@redhat.com>
3117
3118 * printcmd.c (address_info): Restore quotes in output.
3119 * valops.c (value_of_local): Restore quotes in error message.
3120
9cc0d196
EZ
31212002-10-23 Elena Zannoni <ezannoni@redhat.com>
3122
3123 * symtab.c (symbol_demangled_name): New function.
3124 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3125 turning most of it into a function.
3126 (symbol_demangled_name): Export.
3127
19de93d0
MS
31282002-10-23 Michael Snyder <msnyder@redhat.com>
3129
3130 * valops.c (value_of_local): Restore quotes in error message.
3131
89aad1f9
EZ
31322002-10-23 Elena Zannoni <ezannoni@redhat.com>
3133
3134 * symtab.c (symbol_init_language_specific): New function.
3135 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3136 turning most of it into a function.
3137 (symbol_init_language_specific): Export.
3138
d9fa45fe
DC
31392002-10-23 David Carlton <carlton@math.stanford.edu>
3140
3141 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3142 (dwarf_attr_name): Ditto.
3143 (dwarf_type_encoding_name): Ditto.
3144 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3145 (process_die): Handle DW_TAG_namespace,
3146 DW_TAG_imported_declaration, DW_TAG_imported_module.
3147 (read_namespace): New function.
3148
1045b512
JB
31492002-10-22 Joel Brobecker <brobecker@gnat.com>
3150
3151 * configure.in: Define NEW_PROC_API on Interix too.
3152 * configure: Regenerate.
3153
31542002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
3155
3156 * configure: Regenerate using the proper version of autoconf.
3157
3987b9d4
EZ
31582002-10-21 Elena Zannoni <ezannoni@redhat.com>
3159
3160 * findvar.c (read_var_value): Temporarily disable TLS code, until
3161 complete TLS support is added.
3162
9d774e44
EZ
31632002-10-21 Jim Blandy <jimb@redhat.com>
3164 Elena Zannoni <ezannoni@redhat.com>
3165
3166 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3167 for thread local storage locations.
3168 (struct symbol): Add objfile field.
3169 (SYMBOL_OBJFILE): Define.
3170 * dwarf2read.c (is_thread_local): New static variable.
3171 (new_symbol): If variable is in thread local fill in address class
3172 and objfile appropriately.
3173 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3174 stack operation.
3175 * printcmd.c (address_info): Print the information for thread
3176 local storage variable.
3177 * findvar.c (read_var_value): In case of thread local variable,
3178 defer to the target vector code to compute address.
3179
bc4a16ae
EZ
31802002-10-21 Elena Zannoni <ezannoni@redhat.com>
3181
3182 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3183 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3184
407caf07
EZ
31852002-10-21 Elena Zannoni <ezannoni@redhat.com>
3186
3187 * symtab.h (address_class): Rename
3188 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3189 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3190 * printcmd.c (address_info): Ditto.
3191 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3192
005328e3
MK
31932002-10-20 Mark Kettenis <kettenis@gnu.org>
3194
afdb036a
MK
3195 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3196 DBREG_DRX macro to acces debug registers.
3197
ca02e098
MK
3198 * Makefile.in (i386obsd-tdep.o): New target.
3199
03cc47f7
MK
3200 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3201 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3202
005328e3
MK
3203 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3204 * config/i386/obsd.mt: New file.
3205 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3206 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3207 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3208 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3209 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3210 * i386obsd-tdep.c: New file.
3211
9c96f9f2
AF
32122002-10-19 Adam Fedor <fedor@gnu.org>
3213
3214 * objc-exp.y (name_not_typename): Fix invalid comment.
3215
ce1ed485
MK
32162002-10-20 Mark Kettenis <kettenis@gnu.org>
3217
3218 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3219 to allocate partial syms and macro byte caches.
3220
1efc7aaa
DC
32212002-10-18 David Carlton <carlton@math.stanford.edu>
3222
3223 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3224
7e1d63ec
AF
32252002-10-18 Adam Fedor <fedor@gnu.org>
3226
3227 * stabsread.c (find_name_end): New function.
3228 (define_symbol): Use it.
3229
6e8d29a9
DJ
32302002-10-18 Daniel Jacobowitz <drow@mvista.com>
3231
3232 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3233 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3234 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3235 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3236
1efc7aaa 32372002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
3238
3239 * symfile.h: Add opaque declaration for struct obstack.
3240 Declare obsavestring to take a const char *.
3241 * symfile.c (obsavestring): Make first argument a const char *.
3242
1aeae86e
AF
32432002-10-16 Adam Fedor <fedor@gnu.org>
3244
3245 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3246 names when matching breakpoints in current file.
3247
8b2dbe47
KB
32482002-10-16 Kevin Buettner <kevinb@redhat.com>
3249
3250 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3251 (read_tag_pointer_type): Add address class support.
3252 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3253 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3254 New methods.
3255 * gdbarch.h, gdbarch.c: Regenerate.
3256 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3257 (make_type_with_address_space, recursive_type_dump): Add address
3258 class support.
3259 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3260 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3261 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3262
74451869
KD
32632002-10-16 Klee Dienes <kdienes@apple.com>
3264
3265 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3266 to get the last character of a char[] buffer, not
3267 name[sizeof(vptr_name)-1].
3268
ff4cb3e8
AF
32692002-10-14 Adam Fedor <fedor@gnu.org>
3270
3271 * symtab.h: New objc_specific struct.
3272 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3273 (SYMBOL_DEMANGLED_NAME): Likewise.
3274
da2cf7e0
AF
32752002-10-14 Adam Fedor <fedor@gnu.org>
3276
3277 * symfile.c (init_filename_language_table): Add ObjC file extension.
3278
4a351cef
AF
32792002-10-14 Adam Fedor <fedor@gnu.org>
3280
3281 * utils.c (puts_filtered_tabular): New function.
3282 (fprintf_symbol_filtered): Get ObjC demangled name.
3283 * defs.h (puts_filtered_tabular): Declared.
3284
9750e763
KB
32852002-10-14 Kevin Buettner <kevinb@redhat.com>
3286
3287 * c-lang.h (c_type_print_varspec_prefix): Delete.
3288 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3289 ``need_post_space'' parameter. Adjust all callers.
3290
eee771c1
DJ
32912002-10-14 Daniel Jacobowitz <drow@mvista.com>
3292
3293 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3294 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3295 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3296 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3297
46c82446
AF
32982002-10-13 Adam Fedor <fedor@gnu.org>
3299
3300 * source.c (print_source_lines): Update comments.
3301
d069f99d
AF
33022002-10-13 Adam Fedor <fedor@gnu.org>
3303
3304 * valops.c (value_of_local): New function.
3305 (value_of_this): Use it.
3306 * value.h (value_of_local): Declared.
3307
53c551b7
AF
33082002-10-13 Adam Fedor <fedor@gnu.org>
3309
3310 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3311 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3312
eb392fbf
AF
33132002-10-12 Adam Fedor <fedor@gnu.org>
3314
3315 * language.c (binop_result_type): Add language_objc to case.
3316 (integral_type): Likewise.
3317 (character_type): Likewise.
3318 (string_type): Likewise.
3319 (boolean_type): Likewise.
3320 (structured_type): Likewise.
3321 (binop_type_check): Likewise.
3322
e2b23ee9
AF
33232002-10-11 Adam Fedor <fedor@gnu.org>
3324
3325 * printcmd.c (address_info): Print 'self' for ObjC.
3326
b01ab485
AF
33272002-10-11 Adam Fedor <fedor@gnu.org>
3328
3329 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3330 OP_SELF.
3331
806e6073
AF
33322002-10-11 Adam Fedor <fedor@gnu.org>
3333
3334 * language.h (CAST_IS_CONVERSION): Add language_objc.
3335
50f85cdf
AF
33362002-10-11 Adam Fedor <fedor@gnu.org>
3337
3338 * defs.h (enum language): Add language_objc.
3339
0d540cdf
KD
33402002-10-11 Klee Dienes <kdienes@apple.com>
3341
69266111 3342 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3343 * gdbcore.h (read_memory_typed_address): Add prototype.
3344 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3345 to read a value destined for a CORE_ADDR, not read_memory_integer.
3346 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3347 (f77_get_dynamic_lowerbound): Ditto.
3348
d5dc7960
MH
33492002-10-11 Martin M. Hunt <hunt@redhat.com>
3350
3351 * utils.c (string_to_core_addr): After turning string into
3352 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3353 which will do necessary sign-extension, etc.
3354
8343f86c
DJ
33552002-10-11 Daniel Jacobowitz <drow@mvista.com>
3356
3357 * c-exp.y (THIS): Delete token and grammar rule.
3358 (yylex): Don't return THIS.
3359 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3360 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3361 * demangle.c (cplus_markers): Update comment. Put '$'
3362 first. Remove CPLUS_MARKER.
3363 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3364 * jv-exp.y (THIS): Delete token and grammar rule.
3365 (yylex): Don't return THIS.
3366 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3367 * objc-exp.y (THIS): Delete token and grammar rule.
3368 (yylex): Don't return THIS.
3369 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3370 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3371 (read_member_functions): Likewise for opname.
3372 (read_tilde_fields): Use is_cplus_marker.
3373
3374 * defs.h (CPLUS_MARKER): Don't define.
3375 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3376 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3377 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3378 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3379 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3380
3381 * config/i386/tm-i386v4.h: Delete file.
3382 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3383 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3384 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3385 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3386 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3387 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3388 * config/i386/i386v4.mt (TM_FILE): Likewise.
3389 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3390
967c0d83
MM
33912002-10-10 Marko Mlinar <markom@opencores.org>
3392
3393 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3394 accidentially not commited 2002-10-09
3395 * gdbarch.h, gdbarch.c: Re-generate.
3396
f74fa174
MM
33972002-10-09 Marko Mlinar <markom@opencores.org>
3398
3399 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3400 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3401 * gdbarch.h, gdbarch.c: Re-generate.
3402
57349743
JB
34032002-10-08 Petr Sorfa <petrs@caldera.com>
3404
3405 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3406
3407 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3408 so we can work on more than one compilation unit at a time. This
3409 helps prepare GDB to handle inter-CU die references.
3410 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3411 the code to be defined before struct comp_unit_head.
3412 (comp_unit_head): Added new members - offset, cu_head,
3413 begin_die, next and dwarf2_abbrevs.
3414 (dwarf2_abbrevs): Removed single static var; now member of
3415 struct comp_unit_head.
3416 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3417 members.
3418 (psymtab_to_symtab_1): Changed to work with the new
3419 struct comp_unit_head.
3420 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3421 constructs the dwarf2_abbrevs[] inside the cu_header.
3422 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3423 dwarf2_abbrev table to clean up.
3424 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3425 handling of dwarf2_abbrevs inside the cu_header.
3426 (read_partial_die): Now supports the call to the new
3427 dwarf2_lookup_abbrev.
3428 (read_full_die): Now supports the call to the new
3429 dwarf2_lookup_abbrev.
3430
4092aadb
CF
34312002-10-06 Christopher Faylor <cgf@redhat.com>
3432
3433 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3434 insure that shell variables, such as "transformed_name" are propagated
3435 to later shell statements in rule.
3436
af0b2512
MK
34372002-10-06 Mark Kettenis <kettenis@gnu.org>
3438
3439 * config/i386/nm-i386sco.h: Add protection against
3440 multiple-inclusion. Include "i386/nm-i386v.h".
3441 (REGISTER_U_ADDR): Remove define.
3442 (i386_register_u_addr): Remove prototype.
3443
d6020d45
MS
34442002-10-04 Michael Snyder <msnyder@redhat.com>
3445
3446 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3447 before treating it as a single-step event.
3448
7248f48e
AF
34492002-10-03 Adam Fedor <fedor@gnu.org>
3450
3451 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3452 (objc_demangle): Remove assignment in if statements, Replace
3453 free with xfree.
3454 (add_msglist): Likewise.
3455 (end_msglist): Likewise.
3456 (complare_selectors): Likewise.
3457 (selectors_info): Likewise.
3458 (compare_classes): Likewise.
3459 (classes_info): Likewise.
3460 (print_object_command): Likewise.
3461 (find_objc_msgcall_submethod): Replace PTR with void *.
3462 * objc-lang.h: Remove check for __STDC__.
3463
52c6a6ac
JJ
34642002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3465
3466 * ui-out.h (ui_out_field_fmt_int): New prototype.
3467 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3468 of field width and alignment.
3469 * stack.c (print_frame_info_base): When printing frame level, use
3470 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3471 PR gdb/192
3472
7e3cec17
JJ
34732002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3474
3475 * MAINTAINERS: Add self to Write After Approval list.
3476
a58dd373
EZ
34772002-10-02 Elena Zannoni <ezannoni@redhat.com>
3478
3479 * infcmd.c (interrupt_target_command_wrapper): Delete.
3480 (interrupt_target_command): Make non static.
3481 (nofp_registers_info): Make static.
3482 * stack.c (return_command_wrapper): Delete.
3483 (return_command): Make non static.
3484
cee6ddeb
EZ
34852002-10-02 Elena Zannoni <ezannoni@redhat.com>
3486
3487 * event-top.c (gdb_setup_readline): New function. Code moved from
3488 _initialize_event_loop().
3489 (_initialize_event_loop): Call gdb_setup_readline().
3490
c4ed33b9
AC
34912002-10-02 Andrew Cagney <ac131313@redhat.com>
3492
3493 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3494 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3495 * gdbarch.h, gdbarch.c: Re-generate.
3496
cef4f5dd
DJ
34972002-10-02 Daniel Jacobowitz <drow@mvista.com>
3498
3499 Fix PR gdb/778
3500 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3501 before recursing.
3502 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3503 of fill_in_vptr_fieldno.
3504
36dc181b 35052002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3506
36dc181b
EZ
3507 * inferior.h (registers_info, stepi_command, nexti_command,
3508 continue_command, interrupt_target_command): Export from infcmd.c.
3509 * frame.h (args_info, selected_frame_level_changed_hook,
3510 return_command): Export from stack.c.
3511 * v850ice.c (stepi_command, nexti_command, continue_command): use
3512 prototypes from inferior.h.
3513 * tracepoint.c (registers_info, args_info, locals_info): Use
3514 prototypes from frame.h and inferior.h.
3515 * Makefile.in (mi-main.o): Add dependency on frame.h.
3516
6f99cb26
AC
35172002-10-02 Andrew Cagney <ac131313@redhat.com>
3518
da3eff49
AC
3519 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3520 value in register 3 adjusted by ppc_gp0_regnum.
3521
6f99cb26
AC
3522 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3523
da615bee
MM
35242002-10-02 Marko Mlinar <markom@opencores.org>
3525
3526 * MAINTAINERS: Add myself to the Write After Approval list.
3527
d154bee2
AO
35282002-10-01 Alexandre Oliva <aoliva@redhat.com>
3529
62a49b2c
AO
3530 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3531 of the section for the N64 ABI, fixed.
3532
d154bee2
AO
3533 * config/mips/tm-irix6.h: Include solib.h.
3534
ed348acc
EZ
35352002-10-01 Elena Zannoni <ezannoni@redhat.com>
3536
3537 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3538 GNU operators.
3539
da0f9dcd
AC
35402002-10-01 Andrew Cagney <ac131313@redhat.com>
3541
3542 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3543 and that "mi0" syntax has been removed.
3544
bdf64bac
DC
35452002-09-30 David Carlton <carlton@math.stanford.edu>
3546
3547 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3548 * ppc-sysv-tdep.c: #include "gdb_string.h".
3549 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3550 pacify GCC.
3551
54c2a1e6
AC
35522002-10-01 Andrew Cagney <ac131313@redhat.com>
3553
3554 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3555 "vrsave"'s register number.
3556
cedea778
AC
35572002-09-30 Andrew Cagney <ac131313@redhat.com>
3558
3559 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3560 use frame_unwind_signed_register to obtain the PC.
3561 (mips_frame_chain): Handle a generic dummy frame.
3562 (mips_init_extra_frame_info): When a generic dummy frame, don't
3563 re-compute the frame base.
3564 (mips_pop_frame): Handle generic dummy frames.
3565 (mips_gdbarch_init): When generic dummy frames, set
3566 use_generic_dummy_frames, push_dummy_frame to
3567 generic_push_dummy_frame, pc_in_call_dummy to
3568 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3569 generic_save_dummy_frame_tos.
3570
68315eb8
AC
35712002-09-30 Andrew Cagney <ac131313@redhat.com>
3572
3573 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3574 against TOP when TOP was explictly set.
3575 (generic_push_dummy_frame): Set TOP to zero.
3576
3b8630c3
EZ
35772002-09-30 Elena Zannoni <ezannoni@redhat.com>
3578
3579 * event-loop.c (start_event_loop): Rename variable 'result' to
3580 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3581
28ee05e9
KS
35822002-09-30 Keith Seitz <keiths@redhat.com>
3583
3584 * gdb-events.sh (selected_thread_changed): New event.
3585 * gdb-events.c: Regenerated.
3586 * gdb-events.h: Regenerated.
3587
6eecb1c8
HPN
35882002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3589
3590 * MAINTAINERS: Add self to Write After Approval list.
3591
92df71f0
FN
35922002-09-30 Fernando Nasser <fnasser@redhat.com>
3593
3b8630c3
EZ
3594 * disasm.c: New file.
3595 * disasm.h: New file.
92df71f0
FN
3596 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3597 (compare_lines): Ditto.
3598 (dump_insns): Ditto.
3b8630c3
EZ
3599 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3600 argument.
92df71f0 3601 (do_assembly_only): Ditto.
3b8630c3
EZ
3602 (do_disassembly): Renamed to gdb_disassembly and moved to
3603 disasm.c. Sdded uiout argument.
3604 * Makefile.in: Add new files. Reorder SFILES list. Update
3605 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3606
0c22854d
AC
36072002-09-29 Andrew Cagney <ac131313@redhat.com>
3608
3609 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3610 bfd/elf64-alpha-fbsd.c.
3611
e67f2023
AC
36122002-09-29 Andrew Cagney <ac131313@redhat.com>
3613
3614 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3615 i386gnu-tdep.c.
3616
89396210
AC
36172002-09-29 Andrew Cagney <ac131313@redhat.com>
3618
3619 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3620 __FUNCTION__.
3621 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3622 function name.
3623 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3624 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3625 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3626 (S_msg_sig_post_reply): Ditto.
3627
7079c36c
CV
36282002-09-28 Corinna Vinschen <vinschen@redhat.com>
3629
89396210
AC
3630 * sh-tdep.c (sh_use_struct_convention): Use definition according
3631 to ABI.
7079c36c
CV
3632 (sh_push_arguments): Store in register with correct endianess.
3633 (sh_default_store_return_value): Ditto.
3634 (sh_gdbarch_init): Set sizeof long double to 8.
3635
975ac915
MK
36362002-09-27 Mark Kettenis <kettenis@gnu.org>
3637
3638 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3639 Fix some whitespace problems.
3640
9bbe19fb
DC
36412002-09-27 David Carlton <carlton@math.stanford.edu>
3642
3643 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3644 (mcore-tdep.o): Ditto.
3645 (ns32k-tdep.o): Ditto.
3646 (ns32knbsd-tdep.o): Ditto.
3647 (sh3-rom.o): Ditto.
3648 (vax-tdep.o): Ditto.
3649 * cris-tdep.c: #include "gdb_string.h"
3650 * mcore-tdep.c: Ditto.
3651 * ns32k-tdep.c: Ditto.
3652 * ns32knbsd-tdep.c: Ditto.
3653 * sh3-rom.c: Ditto.
3654 * vax-tdep.c: Ditto.
3655
43b2fdc7
DC
36562002-09-27 David Carlton <carlton@math.stanford.edu>
3657
3658 * config/djgpp/fnchange.lst: Add entries for
3659 gdb/testsuite/gdb.c++/m-static files.
3660
e8cfbbd9
JW
36612002-09-27 Jim Wilson <wilson@redhat.com>
3662
3663 * MAINTAINERS: Add myself to the Write After Approval list.
3664
43b2fdc7 36652002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3666
3667 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3668
3669
9f3b7f07
AC
36702002-09-26 Andrew Cagney <ac131313@redhat.com>
3671
3672 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3673 frame.
3674
11269d7e
AC
36752002-09-26 Andrew Cagney <ac131313@redhat.com>
3676
3677 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3678 (rs6000_struct_return_address): Delete variable.
3679 (rs6000_store_struct_return): Update.
3680 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3681 deprecated_extract_struct_value_address.
3682 (rs6000_frame_align): New function.
3683 (rs6000_gdbarch_init): Set frame_align.
3684
f15ab4a7
AC
36852002-09-26 Andrew Cagney <ac131313@redhat.com>
3686
3687 From Grace Sainsbury <graces@redhat.com>:
3688 * Makefile.in (gdbtk-main.o): New target.
3689 (gdb.o): New target.
3690 (main_h): Define.
3691 (main.o): Update dependencies.
3692 (gdb$(EXEEXT)): Add gdb.o.
3693 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3694 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3695 (SUBDIR_GDBTK_CLEAN): Set.
3696 (install-gdbtk): Install the insight binary.
3697 (uninstall-gdbtk): New target.
3698 (all-gdbtk, clean-gdbtk): New rule.
3699 * top.c (use_windows): Default to zero.
3700 * main.c: Include "main.h".
3701 (main): Delete.
3702 (struct captured_main_args): Delete.
3703 (gdb_main): New function.
3704 * main.h: New file.
3705 * gdb.c: New File.
3706
e36180d7
AC
37072002-09-25 Andrew Cagney <cagney@redhat.com>
3708
3709 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3710 (frame_map_regnum_to_name): New function.
3711 (frame_map_name_to_regnum): New function.
3712 * frame.h (frame_map_name_to_regnum): Declare.
3713 (frame_map_regnum_to_name): Declare.
3714 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3715 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3716 * parse.c: Do not include "builtin-regs.h".
3717 (target_map_name_to_register): Delete function.
3718 (write_dollar_variable): Use frame_map_name_to_regnum.
3719 * parser-defs.h (target_map_name_to_register): Delete declaration.
3720 * expprint.c: Include "frame.h".
3721 (print_subexp): Use frame_map_regnum_to_name.
3722 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3723 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3724
8b69000d
AC
37252002-09-25 Andrew Cagney <ac131313@redhat.com>
3726
3727 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3728 wasn't saved, and the next innermost frame is a dummy, return the
3729 dummy frame's link register.
3730
046ca86a
JB
37312002-09-24 Jim Blandy <jimb@redhat.com>
3732
3733 Fix from Paul Breed:
3734 * main.c (captured_main): Add a `break' after the case for 'b'.
3735
94b66fa7
KS
37362002-09-24 Keith Seitz <keiths@redhat.com>
3737
3738 * varobj.c (c_type_of_child): Use get_target_type instead
3739 of TYPE_TARGET_TYPE.
3740
c214a6fd
FN
37412002-09-22 Fernando Nasser <fnasser@redhat.com>
3742
53cb0458
FN
3743 * source.c (get_current_or_default_source_symtab_and_line): Remove
3744 function.
3745 (set_default_source_symtab_and_line): New function. Attempts to
3746 determine a source file to list lines from if one is not currently
3747 defined.
3748 (get_current_source_symtab_and_line): Initialize sal.pc and
3749 sal.end fields.
3750 (set_current_source_symtab_and_line): Mark argument as const.
3751 * source.h: Update declarations and comments.
3752 * linespec.c (decode_line_1): Replace call to removed routine above.
3753 * stack.c (print_frame_info_base): Ditto.
3754 * cli/cli-cmds.c (edit_command): Ditto.
3755 (list_command): Ditto.
3756
37572002-09-22 Fernando Nasser <fnasser@redhat.com>
3758
d6020d45 3759 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3760 sal.pc and sal.end fields.
c214a6fd
FN
3761 (get_current_or_default_source_symtab_and_line): Ditto.
3762 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3763 so we do not cause a new source symtab to be searched for (reverting an
3764 unintentional change from the 2002-09-20 patch).
3765 * scm-lang.c (scm_unpac): Ditto.
3766
cc3b68a5
AC
37672002-09-21 Andrew Cagney <cagney@redhat.com>
3768
3769 * complaints.c (symfile_explanations): Remove new-line from
3770 ``isolated_message''.
3771 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3772 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3773
5835abe7
NC
37742002-09-20 Nick Clifton <nickc@redhat.com>
3775
3776 * NEWS: Announce that V850EA ISA is no longer supported.
3777 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3778
a15ef5f5
DC
37792002-09-20 David Carlton <carlton@math.stanford.edu>
3780
06ba1b39
DC
3781 * Makefile.in (c-lang.o): Correct dependencies.
3782 (utils.o): Gather dependencies.
3783 (charset.o): Move.
a15ef5f5
DC
3784 * c-lang.c: #include "gdb_string.h"
3785
87885426
FN
37862002-09-20 Fernando Nasser <fnasser@redhat.com>
3787
3788 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3789 * cli/cli-cmds.c (list_command): New function. Implements the new
3790 cli edit command.
3791 (_init_cli_cmds): Add new command definition.
3792 * gdb.1: Document edit command.
3793 * doc/gdb.texinfo: Document edit command.
3794
37952002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3796
3797 * source.c: Make global variables current_source_symtab and
3798 current_source_line static.
3799 (list_command): Moved to cli/cli-cmds.c.
3800 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3801 (get_first_line_listed): New accessor function.
3802 (get_lines_to_list): New accessor function.
3803 (get_current_source_symtab_and_line): New function. Retrieves the
3804 position in the source code that we consider current.
3805 (get_current_or_default_source_symtab_and_line): New function.
3806 Like the above but attempts to determine a default position if one
3807 is not currently defined.
3808 (set_current_source_symtab_and_line): New function. Sets the source
3809 code position considered current and returns the previously set one.
3810 (clear_current_source_symtab_and_line): Reset stored information about
3811 a current source line.
3812 (_initialize_source): Remove registration for the "list" command and
3813 its alias.
3814 * source.h: Add declarations for the new functions above.
3815 * symtab.h: Remove declarations for the global variables mentioned
3816 above.
3817 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3818 obtain current source line.
3819 * linespec.c (decode_line_1): Ditto.
3820 * macroscope.c (default_macro_scope): Ditto.
3821 * scm-lang.c (scm_unpac): Ditto.
3822 * stack.c (print_frame_info_base): Ditto.
3823 * symfile.c (clear_symtab_users): Ditto.
3824 * symtab.c (decode_line_spec): Ditto.
3825 * cli/cli-cmds.c (list_command): Moved here from source.c.
3826 (ambiguous_line_spec): Moved here from source.c.
3827 (_init_cli_cmds): Add definition for "list" and its alias.
3828 * Makefile.in: Update dependencies.
3829
ddd216ea
CV
38302002-09-20 Corinna Vinschen <vinschen@redhat.com>
3831
3832 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3833 with what gcc thinks is correct.
3834
6d305052
CV
38352002-09-20 Corinna Vinschen <vinschen@redhat.com>
3836
3837 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3838 multiple register push instruction.
3839
234b45d4
KB
38402002-09-19 Jim Blandy <jimb@redhat.com>
3841
3842 Add support for distinct host and target character sets.
3843 * charset.c, charset.h: New files.
3844 * c-exp.y: #include "charset.h".
3845 (yylex): Convert character and string literals to the target
3846 character set, before returning them as the semantic value of the
3847 token.
3848 * c-lang.c: #include "charset.h".
3849 (c_emit_char): Use charset-specific methods to recognize
3850 characters with backslash escape forms, to decide which characters
3851 to print literally and which to print using numeric escape
3852 sequences, and to convert target characters to host characters
3853 before printing.
3854 * utils.c: #include "charset.h".
3855 (no_control_char_error): New function.
3856 (parse_escape): Use charset-specific methods to recognize
3857 backslash escapes, parse `control character' notation, and convert
3858 characters from the host character set to the target character set.
3859 * configure.in: Set the default host character set.
3860 Check where to find iconv, and what its argument types might be.
3861 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3862 * Makefile.in (SFILES): List charset.c.
3863 (COMMON_OBS): List charset.o.
3864 (charset.o): New rule.
3865 (charset_h): New header dependency variable.
3866 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3867 (LIBICONV): New variable, set by configure.
3868 (CLIBS): Include $(LIBICONV) here.
3869 * aclocal.m4, config.in, configure: Regenerated.
3870
525d6a61
JB
38712002-09-19 Joel Brobecker <brobecker@gnat.com>
3872
3873 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3874 bison 1.35 warning.
3875
3ed93867
RE
38762002-09-19 Richard Earnshaw <rearnsha@arm.com>
3877
3878 * gdb_mbuild.sh: New file.
3879
437666f8
AC
38802002-09-19 Andrew Cagney <ac131313@redhat.com>
3881
3882 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3883
389e51db
AC
38842002-09-18 Andrew Cagney <ac131313@redhat.com>
3885
3886 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3887 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3888 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3889 valops.c, value.h: Revert previous change.
3890
3b4efeaa
MS
38912002-09-18 Michael Snyder <msnyder@redhat.com>
3892
3893 Preliminary support for Objective-C:
3894 * defs.h (language_objc): New enum value.
3895 (puts_filtered_tabular): Declaration only, exported from utils.c.
3896 (skip_quoted): Delete, declared in completer.h.
3897 * c-exp.y: Include completer.h.
3898 * p-exp.y: Ditto.
3899 * jv-exp.y: Ditto.
3900 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3901 New operator enum values.
3902 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3903 * language.c (binop_result_type): Handle language_objc case.
3904 (integral_type, character_type, string_type, boolean_type,
3905 structured_type, binop_type_check): Ditto.
3906 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3907 (struct objc_specific): Add to general_symbol_info.
3908 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3909 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3910 * parser-defs.h (struct objc_class_str): New struct type.
3911 (start_msglist, end_msglist, add_msglist): Declaration only,
3912 exported from objc-lang.c.
3913 * value.h (value_of_local, value_nsstring,
3914 call_function_by_hand_expecting_type): Exported from valops.c.
3915 * valops.c (find_function_addr): Export.
3916 (call_function_by_hand_expecting_type): New function.
3917 (value_of_local): New function.
3918 * symfile.c (init_filename_language_table): Add ".m" extension
3919 for Objective-C.
3920 * utils.c (puts_filtered_tabular): New function.
3921 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3922 (set/show demangle): Extend help-string to refer to ObjC.
3923 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3924 * stabsread.c (symbol_reference_defined): Objective-C symbols
3925 may contain colons: make allowances when scanning stabs strings
3926 for colons.
3927 (objc_find_colon): New function.
3928 * printcmd.c (address_info): If language == objc then print
3929 "self" instead of "this".
3930 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3931 OP_NSSTRING, and OP_SELF.
3932 (prefixify_subexp): Ditto.
3933 * source.c (print_source_lines): Mention objc in comment.
3934 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3935 method names.
3936
b9caf505
AC
39372002-09-18 Andrew Cagney <ac131313@redhat.com>
3938
3939 * complaints.h: Update copyright.
3940 (struct complaints): Declare.
3941 (struct complaint): Make `message' constant.
3942 (internal_complaint): Declare.
3943 (complaint): Declare.
3944 (complaint_root): Delete declaration.
3945 (symfile_complaints): Delete declaration.
3946 (struct complaints): Add opaque declaration.
3947 (clear_complaints): Add a complaints parameter.
3948 * complaints.c: Update copyright.
3949 (enum complaint_series): Define.
3950 (complaint_root): Delete.
3951 (struct complaints): Define.
3952 (complaint_sentinel, symfile_complaint_book): New variables.
3953 (symfile_explanations, symfile_complaints): New variables.
3954 New variables.
3955 (get_complaints): New function.
3956 (vcomplaint): New function.
3957 (complaint): New function.
3958 (internal_complaint): New function.
3959 (complain): Call vcomplain with symfile_complaint.
3960 (clear_complaints): Rewrite.
3961 (_initialize_complaints): Use add_setshow_command.
3962 * Makefile.in (complaints.o): Update dependencies.
3963 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3964 to call to clear_complaints.
3965 (new_symfile_objfile, reread_symbols): Ditto.
3966 (oldsyms_complaint): Delete.
3967 (empty_symtab_complaint, unknown_option_complaint): Delete.
3968 (free_named_symtabs): Use complaint instead of complain.
3969
d2e6263c
MS
39702002-09-18 Michael Snyder <msnyder@redhat.com>
3971
5fb2031a
AC
3972 Contributed by Apple Computer, Inc. Merged with current sources
3973 by Adam Fedor <fedor@doc.com> [cagney].
3974
d2e6263c
MS
3975 * objc-lang.c: First clean-up round: comments, indentation.
3976 * objc-lang.h: Ditto.
3977 * objc-lang.y: Ditto.
3978
dec43320
AC
39792002-09-18 Andrew Cagney <ac131313@redhat.com>
3980
3981 * maint.c (maintenance_internal_error): Print the parameter as the
3982 error message.
3983 (maintenance_internal_warning): New function.
3984 (_initialize_maint_cmds): Add command `maint internal-warning'.
3985
3986 * defs.h (internal_warning, internal_vwarning): Declare.
3987 * utils.c (struct internal_problem): Define.
3988 (internal_vproblem): New function.
3989 (internal_warning): New function.
3990 (internal_vwarning): New function.
3991 (internal_warning_problem, internal_error_problem): New variables.
3992 (internal_verror): Just call internal_vproblem.
3993
b81654f1
MS
39942002-09-18 Michael Snyder <msnyder@redhat.com>
3995
3996 * objc-lang.c: New file, support for Objective-C.
3997 Preliminary check-in, not yet integrated into gdb.
3998 * objc-lang.h: New file.
3999 * objc-exp.y: New file.
4000
0542c381
AC
40012002-09-18 Andrew Cagney <ac131313@redhat.com>
4002
7bda5e4a
AC
4003 * infrun.c (signal_stop_update): Convert definition to ISO C.
4004 (signal_print_update): Ditto.
4005 (signal_pass_update): Ditto.
4006 * inflow.c (terminal_save_ours): Ditto.
4007
5247b418
AC
4008 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4009 comments.
4010
fc60962c
AC
4011 * config/djgpp/fnchange.lst: Handle name clashes between
4012 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4013 bfd/coff-tic80.c.
4014
0542c381
AC
4015 * i386-linux-tdep.h: Fix tipo.
4016
5b924b9b
AF
40172002-09-18 Adam Fedor <fedor@gnu.org>
4018
4019 * MAINTAINERS: Add myself to the Write After Approval list.
4020
5afc051b
JB
40212002-09-18 Jim Blandy <jimb@redhat.com>
4022
4023 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4024 texthigh and textlow to reader-specific structs caused
4025 objfile_relocate to miss them. This is fixable, but the work that
4026 the change was supposed to prepare GDB for never got done anyway.
4027
eb944380
DC
40282002-09-18 David Carlton <carlton@math.stanford.edu>
4029
4030 * MAINTAINERS: Alphabetize Write After Approval list.
4031
948e66d9
DJ
40322002-09-18 Daniel Jacobowitz <drow@mvista.com>
4033
4034 Fix PR gdb/709
4035 * values.c (value_static_field): Call read_var_value.
4036
dc604539
AC
40372002-09-18 Andrew Cagney <ac131313@redhat.com>
4038
4039 * valops.c (hand_function_call): Align the initial stack pointer
4040 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4041 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4042 return value.
4043 * mips-tdep.c (mips_frame_align): New function.
4044 (mips_gdbarch_init): Set frame_align.
4045 * gdbarch.sh (FRAME_ALIGN): New method.
4046 * gdbarch.h, gdbarch.c: Re-generate.
4047
cb7e422f
ML
40482002-09-18 Michal Ludvig <mludvig@suse.cz>
4049
4050 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4051 registers.
4052
a094c6fb
AC
40532002-09-17 Andrew Cagney <ac131313@redhat.com>
4054
4055 * NEWS: Mention that MIPS $fp behavior changed.
4056 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4057 reference to FP_REGNUM.
4058 (mipsnbsd_cannot_store_register): Ditto.
4059 * mips-linux-nat.c: Update copyright.
4060 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4061 (mips_linux_cannot_store_register): Ditto.
4062 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4063 * config/mips/tm-mips.h: Update copyright.
4064 (FP_REGNUM): Delete macro.
4065 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4066 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4067 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4068 (mips_r3041_reg_names, mips_r3051_reg_names)
4069 (mips_r3081_reg_names): Replace "fp" with "".
4070 Fix PR gdb/480.
4071
45cf40d1
TR
40722002-09-17 Theodore A. Roth <troth@verinet.com>
4073
4074 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4075 generic_read_register_dummy() (PR gdb/703).
4076 (avr_push_return_address): #if 0 out unused vars.
4077 (avr_gdbarch_init): Enable use of avr_push_return_address().
4078
c7e701b5
MS
40792002-09-17 Michael Snyder <msnyder@redhat.com>
4080
d76ba2a5 4081 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
4082 RTE will take care of it.
4083
20bcf01c
AC
40842002-09-17 Andrew Cagney <ac131313@redhat.com>
4085
4086 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4087 invalid, return SP_REGNUM.
4088
009a9971 40892002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
4090
4091 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4092 point registers without sign extension.
4093
135c175f
AC
40942002-09-17 Andrew Cagney <cagney@redhat.com>
4095
4096 * blockframe.c (deprecated_read_register_dummy): Rename
4097 generic_read_register_dummy.
4098 * frame.c (frame_unwind_signed_register): New function.
4099 (frame_unwind_unsigned_register): New function.
4100 * frame.h (frame_unwind_signed_register): Declare.
4101 (frame_unwind_unsigned_register): Declare.
4102 (deprecated_read_register_dummy): Rename
4103 generic_read_register_dummy.
4104
4105 * h8300-tdep.c (h8300_frame_chain): Update.
4106 (h8300_frame_saved_pc): Update.
4107 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4108 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4109 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4110 (s390_frame_chain): Update.
4111 * v850-tdep.c (v850_find_callers_reg): Update.
4112 (v850_frame_saved_pc): Update.
4113 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4114 (m32r_find_callers_reg): Update.
4115 (m32r_frame_saved_pc): Update.
4116 * sh-tdep.c (sh_find_callers_reg): Update.
4117 (sh64_get_saved_pr): Update.
4118 (sh_init_extra_frame_info): Update.
4119 (sh_init_extra_frame_info): Update.
4120 (sh64_init_extra_frame_info): Update.
4121 (sh64_init_extra_frame_info): Update.
4122 * mcore-tdep.c (mcore_find_callers_reg): Update.
4123 (mcore_frame_saved_pc): Update.
4124 (mcore_init_extra_frame_info): Update.
4125 * i386-tdep.c (i386_frame_saved_pc): Update.
4126 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4127 (ia64_init_extra_frame_info): Update.
4128 (ia64_init_extra_frame_info): Update.
4129 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4130 * cris-tdep.c (cris_init_extra_frame_info): Update.
4131 * avr-tdep.c (avr_frame_chain): Update.
4132 (avr_init_extra_frame_info): Update.
4133 (avr_frame_saved_pc): Update.
4134 * arm-tdep.c (arm_find_callers_reg): Update.
4135 (arm_init_extra_frame_info): Update.
4136 (arm_frame_saved_pc): Update.
4137
a741e514
TT
41382002-09-17 Tom Tromey <tromey@redhat.com>
4139
4140 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4141 is "'".
4142
d1a8e808
CV
41432002-09-17 Corinna Vinschen <vinschen@redhat.com>
4144
4145 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4146 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4147 NEXT_PROLOGUE_INSN.
4148 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4149 NEXT_PROLOGUE_INSN.
4150
d9025a18
JB
41512002-09-16 Joel Brobecker <brobecker@gnat.com>
4152
4153 * osfsolib.c: Remove file, replaced by solib-osf.c.
4154 * Makefile.in: Remove compilation rules for osfsolib.c.
4155
1b2ef1b6
DC
41562002-09-16 David Carlton <carlton@math.stanford.edu>
4157
4158 * cp-valprint.c (cp_print_class_method): Correct args to
4159 check_stub_method_group.
4160
928e48af
CV
41612002-09-16 Corinna Vinschen <vinschen@redhat.com>
4162
4163 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4164 `set architecture'. Unify naming convention of functions.
4165 (h8300_skip_prologue): Improve prologue analysis.
4166 (h8300_push_arguments): Rewritten to more closely match GCC's
4167 bizarre argument-passing behavior, along with the comment describing
4168 said behavior.
4169 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4170 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4171 sim, remote-e7000.c, remote-hms.c and remote.c
4172
5e3397bb
MK
41732002-09-15 Mark Kettenis <kettenis@gnu.org>
4174
4175 * i386-tdep.c (gdb_print_insn_i386): Removed.
4176 (i386_print_insn): New function.
4177 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4178 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4179 tm_print_insn_info.
4180
f710f4fc
MK
41812002-09-14 Mark Kettenis <kettenis@gnu.org>
4182
4183 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4184 zero.
4185
db54fef4
CV
41862002-09-14 Corinna Vinschen <vinschen@redhat.com>
4187
4188 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4189 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4190 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4191
2becadee
CF
41922002-09-13 Christopher Faylor <cgf@redhat.com>
4193
4194 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4195
de17c821
DJ
41962002-09-13 Daniel Jacobowitz <drow@mvista.com>
4197
4198 * gdbtypes.c (check_stub_method): Make static.
4199 (check_stub_method_group): New function.
4200 * gdbtypes.h: Update prototypes.
4201 * cp-support.c: New file.
4202 * cp-support.h: New file.
4203
4204 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4205 (update_method_name_from_physname): New function.
4206 (read_member_functions): Correct method names for operators
4207 and v3 constructors/destructors. Separate v2 constructors and
4208 destructors.
4209 * Makefile.in (stabsread.o): Update dependencies.
4210 (SFILES): Add cp-support.c.
4211 (COMMON_OBS): Add cp-support.o.
4212 (cp_support_h, cp-support.o): Add.
4213
4214 * cp-valprint.c (cp_print_class_method): Call
4215 check_stub_method_group instead of check_stub_method. Remove
4216 extraneous QUITs.
4217 * p-valprint.c (pascal_object_print_class_method): Likewise.
4218 * valops.c (search_struct_method): Likewise.
4219 (find_method_list, value_struct_elt_for_reference): Likewise.
4220
e76cff22
AC
42212002-09-13 Andrew Cagney <cagney@redhat.com>
4222
4223 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4224 * gdbarch.h, gdbarch.c: Regenerate.
4225
905abb3f
AC
42262002-09-13 Andrew Cagney <ac131313@redhat.com>
4227
4228 * frame.c (find_saved_register): Delete function.
4229 * frame.h (find_saved_register): Delete declaration.
4230 Fix PR gdb/631.
4231
64159455
AC
4232Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4233
4234 * mips-tdep.c (read_next_frame_reg): Re-hack using
4235 frame_register_unwind.
4236
795e1e11
AC
4237Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4238
4239 * mips-tdep.c (mips_get_saved_register): Re-hack using
4240 frame_register_unwind.
4241
5720643c
JB
42422002-09-12 Joel Brobecker <brobecker@gnat.com>
4243
4244 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4245 vector. Will be useful for Interix.
4246 * gdbarch.h, gdbarch.c: Regenerate.
4247
4248 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4249 name of the malloc function by NAME_OF_MALLOC.
4250
3bada2a2
JB
42512002-09-12 Joel Brobecker <brobecker@gnat.com>
4252
4253 * value.h (find_function_in_inferior): Add const keyword to
4254 one of the parameters. Allows us to invoke this function with
4255 a const char *.
4256 * valops.c (find_function_in_inferior): Likewise.
4257
3db26b01
JB
42582002-09-12 Joel Brobecker <brobecker@gnat.com>
4259
4260 * exec.c (xfer_memory): Fix compilation warning with old versions
4261 of GCC.
4262 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4263
17c5ed2c
DC
42642002-09-12 David Carlton <carlton@math.stanford.edu>
4265
4266 * symtab.h: Run through gdb_indent.h.
4267 Add 2002 to Copyright year list.
4268
ecd1107e
AM
42692002-09-12 Alan Modra <amodra@bigpond.net.au>
4270
4271 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4272 mach constants.
4273 * MAINTAINERS: Add myself to write after approval list.
4274
e64f66d1
JB
42752002-09-11 J. Brobecker <brobecker@gnat.com>
4276
4277 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4278
f9395794
JB
42792002-09-11 J. Brobecker <brobecker@gnat.com>
4280
4281 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4282 Interix.
4283
1a303dec
MS
42842002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4285
4286 * procfs.c (do_detach): Clear current signal, not just fault.
4287 Corrects problem with breakpoint trap signal leaking to detached
4288 process on Tru64.
4289
c0219d42
MS
42902002-09-10 Michael Snyder <msnyder@redhat.com>
4291
4292 * buildsym.c (finish_block): Protect against null pointer.
4293
9d84ac84
AC
42942002-09-10 Andrew Cagney <cagney@redhat.com>
4295
4296 * infcmd.c (default_print_registers_info): Send all output to
4297 ``file'' instead of ``gdb_stdout''.
4298
77d8f2b4
MS
42992002-09-10 Michael Snyder <msnyder@redhat.com>
4300
4301 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4302 LONGEST, and use signed register read (addresses are sign-
4303 extended for mips).
4304
99656a61
SC
43052002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4306
4307 * event-loop.c (gdb_do_one_event): Make public.
4308 * event-loop.h (gdb_do_one_event): Declare.
4309
da12f4d8
JL
43102002-09-10 Jeff Law <law@redhat.com>
4311
4312 * infttrace.c (child_resume): Simplify and rework to avoid
4313 TT_PROC_CONTINUE.
4314
d0aee0c4
FF
43152002-09-09 Fred Fish <fnf@intrinsity.com>
4316
4317 * printcmd.c (print_scalar_formatted): "len" is the number of
4318 target bytes, NOT the number of target bits.
4319
7cb3ec5e
EZ
43202002-09-09 Elena Zannoni <ezannoni@redhat.com>
4321
4322 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4323 * top.c (init_main): Set rl_terminal_name.
4324
4dc81987
AS
43252002-09-08 Aidan Skinner <aidan@velvet.net>
4326
4327 * ada-lang.c (ada_array_bound, ada_type_match,
4328 _initialize_ada_language): Fix K&R definitions.
4329 * ada-tasks.c (get_current_task): Fix K&R definitions.
4330 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4331
842330b4
CF
43322002-09-07 Christopher Faylor <cgf@redhat.com>
4333
4334 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4335 Add XP.
4336
43156d82
MK
43372002-09-06 Mark Kettenis <kettenis@gnu.org>
4338
66da5fd8
MK
4339 * i386-tdep.c (i386_register_virtual_type,
4340 i386_register_convertible, i386_register_convert_to_virtual,
4341 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4342 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4343 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4344 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4345 Don't set push_arguments twice.
4346
4b218c18
MK
4347 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4348 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4349 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4350 sigtramp_end to NULL.
4351 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4352 defines.
4353 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4354
4cc314d5
MK
4355 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4356 whitespace.
4357
43156d82
MK
4358 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4359 * gdbarch.h, gdbarch.c: Re-generate.
4360 * blockframe.c (find_pc_sect_partial_function): Convert to use
4361 SIGTRAMP_START_P predicate.
4362
6672060b
MS
43632002-09-05 Michael Snyder <msnyder@redhat.com>
4364
a90c3637
MS
4365 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4366 generic_dummy_frame method and old method. Also distinguish
4367 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4368 (arm_extract_return_value): Use new regcache method.
a90c3637 4369
6672060b
MS
4370 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4371 adjustment that doesn't conform to the ABI.
4372 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4373 saved regcache, not from current regcache.
4374
299ffc64
AC
43752002-09-05 Andrew Cagney <ac131313@redhat.com>
4376
4377 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4378 * README: Update.
4379
a3a2ee65
JT
43802002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4381
4382 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4383 if arm_apcs_32 is false.
4384
2bc7eea9
AC
43852002-09-04 Andrew Cagney <ac131313@redhat.com>
4386
4387 GDB 5.3 branch created.
4388
8a55a7c5
TR
43892002-09-03 Theodore A. Roth <troth@verinet.com>
4390
4391 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4392 generic_unwind_get_saved_register.
4393
e26fb1d7
DC
43942002-09-03 David Carlton <carlton@math.stanford.edu>
4395
4396 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4397 argument (PR gdb/653). Update call to smash_to_method_type.
4398 (read_structure_scope): Update call to dwarf2_add_member_fn.
4399
30d52491
ML
44002002-09-03 Michal Ludvig <mludvig@suse.cz>
4401
4402 * x86-64-linux-tdep.c: Include gdb_string.h
4403 * x86-64-linux-nat.c: Ditto.
4404
06891d83
JT
44052002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4406
4407 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4408 when YYDEBUG is set to 1.
4409 * c-exp.y: Likewise.
4410 * f-exp.y: Likewise.
4411 * jv-exp.y: Likewise.
4412 * m2-exp.y: Likewise.
4413 * p-exp.y: Likewise.
4414
7d400e77
JT
44152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4416
4417 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4418 dependency list.
4419 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4420 solib_svr4_fetch_link_map_offsets to
4421 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4422 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4423 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4424 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4425 solib-svr4.o, and solib-legacy.o.
4426 * config/i386/tm-nbsd.h: Include solib.h.
4427
704a27c4
JT
44282002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4429
4430 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4431 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4432 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4433 comment noting that this needs its own target configuration.
4434 * config/i386/nbsd.mt: New file.
4435 * config/i386/nbsdaout.mt: Remove.
4436 * config/i386/nbsdelf.mt: Ditto.
4437 * config/i386/tm-nbsdaout.h: Ditto.
4438
d66198e1
JT
44392002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4440
4441 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4442 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4443 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4444 tdep->sigtramp_end.
4445 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4446 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4447 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4448
3cac699e
JT
44492002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4450
4451 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4452 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4453 * i386-tdep.h (i386bsd_init_abi): New prototype.
4454 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4455 function declaration.
4456 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4457 for NetBSD-a.out or NetBSD-ELF.
4458 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4459 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4460 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4461 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4462 and nbsd-tdep.h.
4463 (i386nbsd_pc_in_sigtramp): New function.
4464 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4465 i386nbsd_pc_in_sigtramp.
4466 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4467 and i386nbsdelf_init_abi OS ABI handlers.
4468 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4469 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4470
7010ca0a
MK
44712002-09-02 Mark Kettenis <kettenis@gnu.org>
4472
4473 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4474 registers if the target really has them.
4475
6dd93b72
JT
44762002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4477
4478 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4479 than nbsd-tdep.h.
4480
2ca8ae21
JT
44812002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4482
4483 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4484 list.
4485 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4486 (alphanbsd_skip_sigtramp_frame): New functions.
4487 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4488 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4489 to alphanbsd_sigcontext_addr.
4490
3d9b49b0
JT
44912002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4492
4493 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4494 list.
4495 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4496 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4497 nbsd_pc_in_sigtramp.
4498 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4499 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4500 * nbsd-tdep.c: Include gdb_string.h.
4501 (nbsd_pc_in_sigtramp): New function.
4502 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4503 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4504 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4505 ppcnbsd_pc_in_sigtramp.
4506 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4507 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4508 shnbsd_pc_in_sigtramp.
4509 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4510 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4511 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4512
c860120c
PM
45132002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4514
4515 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4516 watchpoints to NULL.
4517 (insert_breakpoints): set val field of watchpoints if NULL.
4518
4519
c7612d53
JB
45202002-08-29 Jim Blandy <jimb@redhat.com>
4521
4522 * symtab.c (lookup_symbol_aux): In the cases where we find a
4523 minimal symbol of an appropriate name and use its address to
4524 select a symtab to read and search, use `name' (as passed to us)
4525 as the demangled name when searching the symtab's global and
4526 static blocks, not the minsym's name.
4527
66609862
KS
45282002-08-29 Keith Seitz <keiths@redhat.com>
4529
4530 * stack.c (print_frame_info_base): Always set current_source_symtab
4531 and current_source_line.
4532
151fefe2
JB
45332002-08-29 Donn Terry <donnte@microsoft.com>
4534
4535 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4536
bfb3754e
KS
45372002-08-28 Keith Seitz <keiths@redhat.com>
4538
4539 * stack.c (select_frame): Add FIXME concerning selected-frame
4540 events.
4541 (select_frame_command): Send selected-frame-level-changed
4542 event notification, but only if the level actually changed.
4543 (up_silently_base): Add selected-frame-level-changed event
4544 notification.
4545 (down_silently_base): Likewise.
4546
e822a2a0
AC
45472002-08-28 Andrew Cagney <ac131313@redhat.com>
4548
4549 * Makefile.in: Update dependencies for all gdb/*.c files.
4550
309367d4
TT
45512002-08-27 Tom Tromey <tromey@redhat.com>
4552
4553 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4554 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4555 Update dependencies.
4556 * i387-tdep.c: Include gdb_string.h.
4557 * osabi.c: Likewise.
4558 * i386-linux-nat.c: Likewise.
4559 * lin-lwp.c: Likewise.
4560 * ax-gdb.c: Likewise.
4561 * signals/signals.c: Likewise.
4562 * jv-valprint.c: Likewise.
4563 * p-lang.c: Likewise.
4564 * c-valprint.c: Likewise.
4565 * cp-abi.c: Likewise.
4566
e1507482
EZ
45672002-08-27 Elena Zannoni <ezannoni@redhat.com>
4568
4569 * cli/cli-script.h (copy_command_lines): Export.
4570 * breakpoint.c: Include cli/cli-script.h.
4571 * Makefile.in (breakpoint.o): Update dependencies.
4572
c6510018
MS
45732002-08-26 Michael Snyder <msnyder@redhat.com>
4574
4575 * breakpoint.c (insert_breakpoints): Protect all references
4576 to 'process_warning'. Shorten long lines.
4577
c2b8ed2c
MS
45782002-08-26 Joel Brobecker <brobecker@gnat.com>
4579
4580 * cli/cli-script.c (copy_command_lines): New function.
4581 * defs.h (copy_command_lines): Export.
4582 * testsuite/gdb.base/commands.exp: New tests for commands
4583 attached to a temporary breakpoint, and for commands that
4584 delete the breakpoint they are attached to.
4585
45862002-08-26 Michael Snyder <msnyder@redhat.com>
4587
4588 * breakpoint.c (bpstat_stop_status): Instead of copying the
4589 pointer to the breakpoint commands struct, make a new copy
4590 of the struct and point to that.
4591 (bpstat_clear): Free the commands struct.
4592 (bpstat_clear_actions): Free the commands struct.
4593 (bpstat_do_actions): Free the command actions. Also execute
4594 the local cleanups, instead of deleting them.
4595 (delete_breakpoint): Leave the commands field of the bpstat
4596 chain alone -- it will be freed later.
4597
64b84175
KB
45982002-08-26 Kevin Buettner <kevinb@redhat.com>
4599
4600 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4601 deleted in 2002-08-20 commit. This function is still used by
4602 ppc-linux-nat.c.
4603
55970da6
KS
46042002-08-26 Keith Seitz <keiths@redhat.com>
4605
4606 * gdb-events.sh: Add selected-frame-level-changed event.
4607 * gdb-events.c: Regenerated.
4608 * gdb-events.h: Regenerated.
4609
a790ad35
SC
46102002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4611
4612 Fix PR gdb/393:
4613 * inflow.c (terminal_save_ours): New function to save terminal
4614 settings.
4615 * inferior.h (terminal_save_ours): Declare.
4616 * target.c (debug_to_terminal_save_ours): New function.
4617 (cleanup_target): Defaults to_terminal_save_ours.
4618 (update_current_target): Inherit to_terminal_save_ours.
4619 (setup_target_debug): Set to_terminal_save_ours.
4620 * target.h (target_terminal_save_ours): New to save terminal settings.
4621 (target_ops): New member to_terminal_save_ours.
4622 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4623 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4624 * inftarg.c (init_child_ops): Likewise.
4625 * m3-nat.c (init_m3_ops): Likewise.
4626 * procfs.c (init_procfs_ops): Likewise.
4627 * wince.c (init_child_ops): Likewise.
4628 * win32-nat.c (init_child_ops): Likewise.
4629 * sol-thread.c (init_sol_thread_ops): Likewise.
4630
c00dcbe9
MK
46312002-08-26 Mark Kettenis <kettenis@gnu.org>
4632
3d7f4f49
MK
4633 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4634 use regcache_* functions.
4635 (i386_gdbarch_init): Set store_return_value instead of
4636 deprecated_store_return_value.
4637
c00dcbe9
MK
4638 * regcache.c (regcache_raw_write_signed,
4639 regcache_raw_write_unsigned): New functions.
4640 * regcache.h (regcache_raw_write_signed,
4641 regcache_raw_write_unsigned): New prototypes.
4642
0e0d15ca
AC
46432002-08-25 Andrew Cagney <ac131313@redhat.com>
4644
4645 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4646 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4647 source file dependencies. Cleanup corresponding generator rules.
4648
d3b22ed5
AC
46492002-08-25 Andrew Cagney <ac131313@redhat.com>
4650
4651 * regcache.h (register_offset_hack): Declare.
4652 (regcache_cooked_read_using_offset_hack): Declare.
4653 (regcache_cooked_write_using_offset_hack): Declare.
4654
4655 * regcache.c (register_offset_hack): New function.
4656 (regcache_cooked_read_using_offset_hack): New function.
4657 (regcache_cooked_write_using_offset_hack): New function.
4658 (regcache_dump): Check that the registers, according to their
4659 offset, are packed hard against each other.
4660 (cooked_xfer_using_offset_hack): New function.
4661
bb425013
AC
46622002-08-25 Andrew Cagney <ac131313@redhat.com>
4663
4664 * regcache.c (struct regcache_descr): Add field register_type.
4665 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4666 in as a parameter
4667 (init_regcache_descr): Initialize register_type. Pass the descr
4668 to init_legacy_regcache_descr. Use register_type instead of
4669 REGISTER_VIRTUAL_TYPE.
4670 (register_type): New function.
4671 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4672 * regcache.h (register_type): Declare.
4673
d0403e00
AC
46742002-08-25 Andrew Cagney <ac131313@redhat.com>
4675
4676 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4677 instead of deprecated_store_return_value. Fix fallout from
4678 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4679
0ed04cce
AC
46802002-08-25 Andrew Cagney <ac131313@redhat.com>
4681
4682 * regcache.c (max_register_size): New function.
4683 (init_legacy_regcache_descr): Ensure that max_register_size is
4684 large enough for REGISTER_VIRTUAL_SIZE.
4685 * regcache.h (max_register_size): Declare.
4686
46d79c04
AC
46872002-08-24 Andrew Cagney <ac131313@redhat.com>
4688
4689 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4690 store_return_value.
4691 (e500_extract_return_value): Change type of valbuf pointer to
4692 void.
4693
853c7bd0
MK
46942002-08-24 Mark Kettenis <kettenis@gnu.org>
4695
cd87e769
MK
4696 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4697 workaround.
4698
853c7bd0
MK
4699 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4700 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4701 long long) to prevent compiler warning on 64-bit systems.
4702
ebba8386
AC
47032002-08-23 Andrew Cagney <cagney@redhat.com>
4704
4705 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4706 (DEPRECATED_STORE_RETURN_VALUE): New method.
4707 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4708 * gdbarch.h, gdbarch.c: Re-generate.
4709
4710 * values.c (set_return_value): Pass current_regcache to
4711 STORE_RETURN_VALUE.
4712 * arch-utils.h (legacy_store_return_value): Declare.
4713 * arch-utils.c (legacy_store_return_value): New function.
4714 (legacy_extract_return_value): Update parameters.
4715
4716 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4717 STORE_RETURN_VALUE.
4718 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4719 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4720 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4721 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4722 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4723 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4724 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4725 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4726 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4727 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4728
4729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4730 * i386-tdep.c (i386_extract_return_value): Update.
4731 * arch-utils.c (legacy_extract_return_value): Update.
4732 * frv-tdep.c (frv_gdbarch_init): Update.
4733 * cris-tdep.c (cris_gdbarch_init): Update.
4734 * d10v-tdep.c (d10v_gdbarch_init): Update.
4735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4736 * m68k-tdep.c (m68k_gdbarch_init): Update.
4737 * mcore-tdep.c (mcore_gdbarch_init): Update.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4739 * s390-tdep.c (s390_gdbarch_init): Update.
4740 * sparc-tdep.c (sparc_gdbarch_init): Update.
4741 * sh-tdep.c (sh_gdbarch_init): Update.
4742 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4743 * v850-tdep.c (v850_gdbarch_init): Update.
4744 * avr-tdep.c (avr_gdbarch_init): Update.
4745 * ia64-tdep.c (ia64_gdbarch_init): Update.
4746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4747 * vax-tdep.c (vax_gdbarch_init): Update.
4748 * alpha-tdep.c (alpha_gdbarch_init): Update.
4749 * arm-tdep.c (arm_gdbarch_init): Update.
4750 * mips-tdep.c (mips_gdbarch_init): Update.
4751 * i386-tdep.c (i386_gdbarch_init): Update.
4752
5bd8c6d0
AC
47532002-08-23 Andrew Cagney <ac131313@redhat.com>
4754
4755 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4756 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4757
e73e1724
MK
47582002-08-24 Mark Kettenis <kettenis@gnu.org>
4759
4760 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4761 problems.
4762
3e6564e1
JB
47632002-08-23 Joel Brobecker <brobecker@gnat.com>
4764
4765 * infrun.c (handle_inferior_event): Move a comment outside of a
4766 function call, in order to avoid indent reformatting this part
4767 of the code in an unreadable way.
4768
81d0cc19
GS
47692002-08-23 Grace Sainsbury <graces@redhat.com>
4770
4771 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4772 when breakpoints fail. Move general breakpoint error messages to
4773 insert_breakpoints.
4774 * breakpoint.c (insert_breakpoints): Change warnings when
4775 breakpoints are nto inserted to specify the type. Remove call to
4776 memory_error when hardware breakpoints can't be inserted. Remove
4777 multiple calls to warning so all messages are sent to the user at
4778 once.
4779 (delete_breakpoints): Make insert error messsages more explicit.
4780
17574093
DJ
47812002-08-23 Daniel Jacobowitz <drow@mvista.com>
4782
4783 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4784 gdbserver/ChangeLog.
4785
8acc2935
MK
47862002-08-23 Mark Kettenis <kettenis@gnu.org>
4787
dfe01d39
MK
4788 * i386-tdep.c: Include "objfiles.h".
4789 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4790 skip_trampoline_code.
4791 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4792 (CPLUS_MARKER): Define to '.'.
4793
8acc2935
MK
4794 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4795 member.
4796 (linux_corefile_thread_callback): Increase args->num_notes.
4797 (linux_make_note_section): Initialize thread_args.num_notes, and
4798 use it to determine whether notes for any threads were created.
4799
151fefe2 48002002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4801
4802 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4803 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4804 and PCUNKILL.
4805 (write_with_trace): Conditionalize out the switch branch handling
4806 PCSHOLD if the corresponding macro is not defined. Likewise for
4807 PRSABORT and PRSTOP.
4808 This change will be needed by the Interix port.
4809
e1507482
EZ
48102002-08-22 Elena Zannoni <ezannoni@redhat.com>
4811
4812 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4813 write_register wherever possible instead of manipulating the
4814 register bytes directly.
4815 Assign VALUE_CONTENTS to a variable and use that.
4816 The GPR numbers are now dependent on the architecture.
4817
96ff0de4
EZ
48182002-08-22 Elena Zannoni <ezannoni@redhat.com>
4819
4820 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4821 ev_offset fields.
4822 (skip_prologue): Add support for BookE/e500 instructions.
4823 (e500_extract_return_value): New function.
4824 (frame_get_saved_regs): Add support for saving ev registers and
4825 pseudo gpr's.
4826 (e500_store_return_value): New function.
4827 (rs6000_gdbarch_init): Move up default intializations of
4828 deprecated_extract_return_value and store_return_value. Overwrite
4829 init of store_return_value with e500 specific version.
4830 Set extract_return_value for e500.
4831
fbefca5b
EZ
48322002-08-22 Elena Zannoni <ezannoni@redhat.com>
4833
4834 * blockframe.c (generic_call_dummy_register_unwind): Use
4835 regcache_cooked_read to catch cases in which the variable is
4836 stored in a pseudo register.
4837
4d210288
AC
48382002-08-22 Andrew Cagney <cagney@redhat.com>
4839
4840 * NEWS: Mention that the i960 has been made obsolete.
4841 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4842 i960-tdep.c
4843 (remote-nrom.o): Obsolete target.
4844 (remote-nindy.o, i960-tdep.o): Ditto.
4845 * remote-nrom.c: Make file obsolete.
4846 * remote-nindy.c, remote-vx960.c: Ditto.
4847 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4848 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4849 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4850 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4851 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4852 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4853 i960-*-vxworks* obsolete.
4854 * MAINTAINERS: Note that the i960 is obsolete.
4855
6c0c456d
CV
48562002-08-21 Corinna Vinschen <vinschen@redhat.com
4857
4858 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4859 detach to allow reinitialization.
4860
9f9d12b3
AC
48612002-08-22 Andrew Cagney <ac131313@redhat.com>
4862
4863 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4864 attempt).
4865
ebeb39fe
JB
48662002-08-22 Jim Blandy <jimb@redhat.com>
4867
4868 * coffread.c (coff_symfile_read): Don't try to read the line
4869 number table from disk if the image file doesn't have a symbol
4870 table; we'll never actually look at the info anyway, and Windows
4871 ships DLL's with bogus file offsets for the line number data.
4872
5bf1c677
EZ
48732002-08-21 Elena Zannoni <ezannoni@redhat.com>
4874
4875 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4876 an e500 executable.
4877
71b8ef93
MS
48782002-08-21 Michael Snyder <msnyder@redhat.com>
4879
4880 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4881 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4882 (DEFAULT_MIPS_TYPE): Delete unused macro.
4883 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4884 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4885
d174216d
JB
48862002-08-21 Jim Blandy <jimb@redhat.com>
4887
4888 * valops.c (value_cast): Simplify and correct logic for doing a
4889 static cast from a pointer to a base class to a pointer to a
4890 derived class.
4891
0ab7a791
AC
48922002-08-21 Andrew Cagney <ac131313@redhat.com>
4893
4894 * infcmd.c (default_print_registers_info): Replace
4895 do_registers_info.
4896 (registers_info): Use gdbarch_print_registers_info instead of
4897 DO_REGISTERS_INFO.
4898 * inferior.h (default_print_registers_info): Replace
4899 do_registers_info.
4900 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4901 (DO_REGISTERS_INFO): Change to a predicate function.
4902 * gdbarch.h, gdbarch.c: Regenerate.
4903
e23792cc
KS
49042002-08-21 Keith Seitz <keiths@redhat.com>
4905
4906 * gdb-events.sh: Add target-changed event.
4907 * gdb-events.c: Regenerated.
4908 * gdb-events.c: Regenerated.
4909 * valops.c (value_assign): Add target-changed event notification
4910 to inlval_register, lval_memory, and lval_reg_frame_relative.
4911
9fb14e79
JB
49122002-08-21 Joel Brobecker <brobecker@gnat.com>
4913
4914 * NEWS: Add an entry regarding the improvement of the next/step
4915 operation on Alpha Tru64 multi-processor machines.
4916
6d39a69f
AC
49172002-08-21 Andrew Cagney <ac131313@redhat.com>
4918
72acd513
AC
4919 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4920 directores.
342af04b 4921 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4922 * Makefile.in (install-gdbtk): Move to install section.
4923 (rdi-share/libangsd.a): Move to end of file.
4924
fa5f27c7
AC
49252002-08-19 Andrew Cagney <ac131313@redhat.com>
4926
4927 * frame.c (frame_register_unwind): When a register, set addrp to
4928 the register's byte.
4929
5a89d8aa
MS
49302002-08-20 Michael Snyder <msnyder@redhat.com>
4931
4932 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4933 used locally, so move them from the target machine header to here.
4934 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4935 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4936 Make static.
4937 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4938
822e978b
AC
49392002-08-20 Andrew Cagney <cagney@redhat.com>
4940
4941 * NEWS: Mention that the Apollo line was made obsolete.
4942 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4943 m68*-hp-hpux* obsolete.
4944 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4945 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4946 * buildsym.c (make_blockvector): Make static.
4947 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4948 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4949 (ALLDEPFILES): Remove dstread.c.
4950 (dstread.o): Obsolete make rule.
4951 * dstread.c: Makefile obsolete.
4952 * dst.h: Ditto.
4953 * config/m68k/hp300hpux.mt: Ditto.
4954 * config/m68k/hp300hpux.mh: Ditto.
4955 * config/m68k/hp300bsd.mt: Ditto.
4956 * config/m68k/hp300bsd.mh: Ditto.
4957 * config/m68k/apollo68b.mt: Ditto.
4958 * config/m68k/apollo68v.mh: Ditto.
4959 * config/m68k/apollo68b.mh: Ditto.
4960
e41b17f0
MS
49612002-08-20 Michael Snyder <msnyder@redhat.com>
4962
4963 * mips-tdep.c (mips_in_return_stub): Make static.
4964 (mips_gdbarch_init): Set in_solib_return_trampoline.
4965 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4966
d50355b6
MS
49672002-08-20 Michael Snyder <msnyder@redhat.com>
4968
4969 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4970 * gdbarch.c, gdbarch.h: Regenerate.
4971 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4972 Add.
4973 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4974
757a7cc6
MS
49752002-08-20 Michael Snyder <msnyder@redhat.com>
4976
4977 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4978 (mips_gdbarch_init): Set skip_trampoline_code,
4979 in_solib_call_trampoline.
4980 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4981 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4982
c8001721
EZ
49832002-08-20 Elena Zannoni <ezannoni@redhat.com>
4984
4985 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4986
4987 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4988 vector type for ev registers.
4989 (e500_pseudo_register_read): New function.
4990 (e500_pseudo_register_write): New function.
4991 (e500_dwarf2_reg_to_regnum): New function.
4992 (PPC_UISA_NOFP_SPRS): New macro.
4993 (PPC_EV_REGS): New macro.
4994 (PPC_GPRS_PSEUDO_REGS): New macro.
4995 (registers_e500): New register set for e500.
4996 (variants): Add e500 variant.
4997 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4998 before setting architectural dependent variations. Initialize ev
4999 registers numbers. Add case for e500 architecture. Set the
5000 number of pseudo registers.
5001
64366f1c
EZ
50022002-08-20 Elena Zannoni <ezannoni@redhat.com>
5003
5004 * rs6000-tdep.c: Clean up comments.
5005
7e78f0ca
AC
50062002-08-20 Andrew Cagney <cagney@redhat.com>
5007
5008 * h8300-tdep.c: Re-indent file.
5009
697f7479
JB
50102002-08-20 Jim Blandy <jimb@redhat.com>
5011
5012 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5013 default for this.
697f7479 5014
e86ae29f
KS
50152002-08-20 Keith Seitz <keiths@redhat.com>
5016
5017 * breakpoints.c (watch_command_1): Use internal breakpoint
5018 when setting a watchpoint_scope breakpoint.
5019
216b504f
EZ
50202002-08-20 Elena Zannoni <ezannoni@redhat.com>
5021
5022 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5023 (build_builtin_type_vec64i): Ditto.
5024 (build_builtin_type_vec128): Ditto.
5025 (build_builtin_type_vec128i): Ditto.
5026
f7ab6ec6
MS
50272002-08-19 Michael Snyder <msnyder@redhat.com>
5028
5029 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5030 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5031 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5032 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5033 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5034 CALL_DUMMY_ADDRESS): Delete.
5035 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5036 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5037 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5038 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5039 push_return_address.
5040 (mips_register_raw_size, mips_eabi_use_struct_convention,
5041 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5042 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5043 mips_init_extra_frame_info, mips_eabi_push_arguments,
5044 mips_n32n64_push_arguments, mips_push_return_address,
5045 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5046 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5047
b5d1566e
MS
50482002-08-19 Michael Snyder <msnyder@redhat.com>
5049
5050 * mips-tdep.c (mips_frame_num_args): New function.
5051 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5052 frame_saved_pc, frame_args_address, frame_locals_address,
5053 frame_num_args, and frame_args_skip.
5054 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5055 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5056 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5057 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5058
2f1488ce
MS
50592002-08-20 Michael Snyder <msnyder@redhat.com>
5060
5061 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5062 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5063 * mips-tdep.c (mips_store_struct_return): New function.
5064 (mips_extract_struct_value_address): New function.
5065 (mips_gdbarch_init): Set store_struct_return and
5066 extract_struct_value_address.
5067
41ff2da1
DC
50682002-08-20 David Carlton <carlton@math.stanford.edu>
5069
5070 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5071 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5072 (read_file_scope): Check that line_header is nonzero before
5073 decoding macro information.
5074
e5451d58
MK
50752002-08-20 Mark Kettenis <kettenis@gnu.org>
5076
5077 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5078 flag the general-purpose registers as floating-point on targets
5079 that don't support the floating-point registers.
5080
4a6daafa
EZ
50812002-08-20 Elena Zannoni <ezannoni@redhat.com>
5082
5083 * rs6000-tdep.c (altivec_register_p): Delete.
5084 (rs6000_do_altivec_registers): Delete.
5085 (rs6000_altivec_registers_info): Delete.
5086 (rs6000_do_registers_info): Delete.
5087 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5088 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5089
ab4327e0
EZ
50902002-08-20 Elena Zannoni <ezannoni@redhat.com>
5091
5092 * infcmd.c (do_registers_info): Print vector registers in hex
5093 format only.
5094 (print_vector_info): Check that printing registers
5095 makes sense.
5096 (print_float_info): Ditto.
5097
cb1d2653
AC
50982002-08-20 Andrew Cagney <ac131313@redhat.com>
5099
5100 * mips-tdep.c (mips_gdbarch_init): Update.
5101 (mips_o32_extract_return_value): Rewrite.
5102 (mips_o32_store_return_value): Rewrite.
5103 (mips_o32_xfer_return_value): New function.
5104 (mips_xfer_register): Tweak debug print message. Allow for
5105 buf_offset when dumping the value transfered.
5106
dfc3d9b2
AC
51072002-08-20 Andrew Cagney <ac131313@redhat.com>
5108
5109 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5110 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5111 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5112 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5113 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5114
7807aa61
MS
51152002-08-14 Michael Snyder <msnyder@redhat.com>
5116
5117 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5118
489461e2
EZ
51192002-08-19 Elena Zannoni <ezannoni@redhat.com>
5120
5121 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5122 register.
5123 (P): New macro to define a register as a pseudo register.
5124 (R, R4, R8, R16, FR32, R64, R0): Updated.
5125 (struct variant): Add new fields for number of pseudo registers
5126 and number of total registers.
5127 (tot_num_registers): New macro replacing....
5128 (num_registers): ...deleted macro.
5129 (num_registers): New function.
5130 (num_pseudo_registers): New function.
5131 (variants): Update all variants to intialize new fields correctly.
5132 Postpone initialization of number of pseudo regs and real regs.
5133 (init_variants): New function.
5134 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5135 registers offsets.
5136
fcaffe4c
DC
51372002-08-19 David Carlton <carlton@math.stanford.edu>
5138
2c2738a0
DC
5139 * valops.c (search_struct_field): Change error message to treat
5140 return value of 0 from value_static_field as meaning that field is
5141 optimized out.
5142 (value_struct_elt_for_reference): Ditto.
5143 * values.c (value_static_field): Treat an unresolved location the
5144 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
5145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5146 enclosed. Fix PR gdb/574.
fcaffe4c
DC
5147 * MAINTAINERS: Add self to Write After Approval list.
5148
88658117
AC
51492002-08-19 Andrew Cagney <ac131313@redhat.com>
5150
5151 * mips-tdep.c (mips_xfer_register): New function.
5152 (mips_n32n64_extract_return_value): Rewrite.
5153 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5154 instead of deprecated_extract_return_value.
5155
21283beb
EZ
51562002-08-19 Elena Zannoni <ezannoni@redhat.com>
5157
5158 * rs6000-tdep.c (TDEP): Delete macro.
5159 (branch_dest): Replace use of TDEP macro with its body.
5160 (rs6000_pop_frame): Ditto.
5161 (rs6000_push_arguments): Ditto.
5162 (rs6000_skip_trampoline_code): Ditto.
5163 (rs6000_frame_saved_pc): Ditto.
5164 (rs6000_frame_chain): Ditto.
5165 (rs6000_register_name): Ditto.
5166 (rs6000_register_byte): Ditto.
5167 (rs6000_register_raw_size): Ditto.
5168 (rs6000_register_virtual_type): Ditto.
5169 (rs6000_register_convertible): Ditto.
5170 (rs6000_convert_from_func_ptr_addr): Ditto.
5171
bf072999
DJ
51722002-08-19 Daniel Jacobowitz <drow@mvista.com>
5173
5174 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5175 conditionally.
5176 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5177 MIPS_LINUX_JB_ELEMENT_SIZE.
5178 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5179 for MAX_REGISTER_RAW_SIZE arrays.
5180 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5181 MIPS_LINUX_JB_ELEMENT_SIZE.
5182
9b949a49
PM
51832002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5184
5185 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5186
6d3e79c6
AS
51872002-08-19 Aidan Skinner <aidan@velvet.net>
5188
5189 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5190 ada-valprint.c ada-tasks.c.
5191 (YYFILES): Add ada-exp.y.
5192 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5193 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5194 (ada-exp.tab.o): New target.
5195
06c0b04e
AC
51962002-08-18 Andrew Cagney <ac131313@redhat.com>
5197
5198 * regcache.c (regcache_xfer_part): New function.
5199 (regcache_raw_read_part): New function.
5200 (regcache_raw_write_part): New function.
5201 (regcache_cooked_read_part): New function.
5202 (regcache_cooked_write_part): New function.
5203 * regcache.h (regcache_raw_read_part): Declare.
5204 (regcache_raw_write_part): Declare.
5205 (regcache_cooked_read_part): Declare.
5206 (regcache_cooked_write_part): Declare.
5207
92d1e331
DJ
52082002-08-18 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * remote.c (remote_open_1): Add async_p.
5211 (remote_async_open_1): Delete.
5212 (open_remote_target): Delete.
5213 (remote_open, extended_remote_open): Update calls to remote_open_1.
5214 (remote_async_open, extended_remote_async_open): Call
5215 remote_open_1 instead of remote_async_open_1.
5216
247055de
MK
52172002-08-19 Mark Kettenis <kettenis@gnu.org>
5218
5219 * blockframe.c: Fix a few coding standard violations.
5220
641eda39
MK
52212002-08-19 Mark Kettenis <kettenis@gnu.org>
5222
0b717710
MK
5223 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5224 here from ...
5225 * config/i386/tm-i386sco5.h: ... here. File removed.
5226 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5227
26d28e12 5228 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
5229 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5230 (TM_FILE): Set to tm-i386.h.
5231 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5232 * config/i386/tm-i386v.h: Remove file.
5233 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5234 instead of "i386/tm-i386v.h".
5235 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5236 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5237 "i386/tm-i386v.h".
5238 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5239 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5240 "i386/tm-i386.h".
5241
d4e0bab4
MK
52422002-08-18 Mark Kettenis <kettenis@gnu.org>
5243
5244 * config/i386/nm-i386v.h: Add protection against
5245 multiple-inclusion.
5246 (i386_register_u_addr): Remove prototype.
5247 (register_u_addr): New prototype.
5248 (REGISTER_U_ADDR): Redefine accordingly.
5249 * i386v-nat.c: Improve several comments.
5250 (i386_register_u_addr): Change signature and rename to
5251 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5252 ubase variable.
5253
46cac009
AC
52542002-08-18 Andrew Cagney <ac131313@redhat.com>
5255
5256 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5257 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5258 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5259 deprecated_extract_return_value.
5260 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5261 rename mips_o32o64_push_arguments.
5262 (mips_gdbarch_init): Update.
5263 (mips_extract_return_value): Delete.
5264 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5265 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5266 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5267 (mips_n32n64_extract_return_value): Clone
5268 mips_extract_return_value.
5269 (mips_store_return_value): Delete.
5270 (mips_o32_store_return_value): Clone mips_store_return_value.
5271 (mips_o64_store_return_value): Clone mips_store_return_value.
5272 (mips_eabi_store_return_value): Clone mips_store_return_value.
5273 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5274
d2e4a39e
AS
52752002-08-18 Aidan Skinner <aidan@velvet.net>
5276
0c30c098
AS
5277 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5278 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5279
52802002-08-18 Aidan Skinner <aidan@velvet.net>
5281
5282 * ada-lang.c: Run through gdb_indent.sh.
5283 * ada-lang.h: Run through gdb_indent.sh.
5284 * ada-tasks.c: Run through gdb_indent.sh.
5285 * ada-typeprint.c: Run through gdb_indent.sh.
5286 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 5287
01fc4e33
AC
52882002-08-18 Andrew Cagney <ac131313@redhat.com>
5289
5290 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5291 ABI.
5292
d8ee244c
MK
52932002-08-18 Mark Kettenis <kettenis@gnu.org>
5294
c38d8261
MK
5295 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5296
222db64c
MK
5297 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5298 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5299
c2848c82
MK
5300 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5301 write_register_gen instead of write_register_bytes.
5302
d8ee244c
MK
5303 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5304 i[3456]-*-osf1mk* configurations have been made obsolete.
5305 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5306 i[3456]86-*-osf1mk* hosts obsolete.
5307 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5308 targets obsolete.
5309 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5310 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5311 config/i386/i386m3.mt, config/i386/nm-m3.h,
5312 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5313 config/i386/i386mk.mh, config/i386/i386mk.mt,
5314 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5315 obsolete.
5316 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5317 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5318 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5319
61d8d407
AC
53202002-08-18 Andrew Cagney <ac131313@redhat.com>
5321
5322 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5323 (hppa_value_returned_from_stack): Declare.
5324 (hppa_extract_return_value): Declare.
5325 * config/pa/hppa.mt: New file.
5326 * configure.tgt: Recognize hppa*-*-*.
5327 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5328
0c52bd59
MK
53292002-08-18 Mark Kettenis <kettenis@gnu.org>
5330
5331 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5332 comment.
5333
b5686e99
MK
53342002-08-17 Mark Kettenis <kettenis@gnu.org>
5335
5336 * top.c (gdb_rl_operate_and_get_next): Make sure
5337 operate-and-get-next functions correctly even when the history
5338 list is completely filled.
5339
c1bab85b
AC
53402002-08-18 Andrew Cagney <ac131313@redhat.com>
5341
5342 * MAINTAINERS (Target Instruction Set Architectures): Rename
5343 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5344 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5345 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5346 already listed under Host/Native.
5347
5348 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5349 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5350 mips*-*-*.
5351
32089c7c
AC
53522002-08-17 Andrew Cagney <ac131313@redhat.com>
5353
5354 * config/ia64/ia64.mt: New file.
5355 * config/alpha/alpha.mt: New file.
5356 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5357 ia64-linux-gnu. Mention that ia64-elf is broken.
5358 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5359
b4671f85
MK
53602002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5361
5362 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5363 generic_func_frame_valid instead of func_frame_valid.
5364
c8edd8b4
JB
53652002-08-16 Joel Brobecker <brobecker@gnat.com>
5366
5367 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5368 procfs appears to be broken when debugging on multi-processor
5369 machines. So enable software single stepping in order to avoid
5370 using the procfs interface to do next/step operations, using
5371 internal breakpoints instead.
5372
5373 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5374 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5375 make this pc address equal to the value it would have if the
5376 system stepping capability was used. Also set a new flag used
5377 to ensure that we don't readjust the PC one more time later.
5378
5379 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5380 address by DECR_PC_AFTER_BREAK when software single step is
5381 in use for this architecture, as this has already been taken
5382 care of in handle_inferior_event().
5383
238617f6
JB
53842002-08-16 Joel Brobecker <brobecker@gnat.com>
5385
5386 * infrun.c (handle_inferior_event): Minor reformatting, to make
5387 a rather long condition expression easier to read.
5388
541a7aac
AC
53892002-08-16 Andrew Cagney <ac131313@redhat.com>
5390
5391 * Makefile.in (gdbtk.o): Move to end of file.
5392 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5393 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5394 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5395 (gdbtk-wrapper.o, gdbres.o): Ditto.
5396
f92d4a7b
AC
53972002-08-16 Andrew Cagney <ac131313@redhat.com>
5398
5399 * Makefile.in (copying.o): Separate out compile rule.
5400 (hpux-thread.o, procfs.o, signals.o): Ditto.
5401 (v850ice.o, z8k-tdep.o): Ditto.
5402 (tui-file.o): Move to TUI section.
5403 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5404 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5405
1cce71eb
JB
54062002-08-16 Joel Brobecker <brobecker@gnat.com>
5407
5408 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5409 skip_trampoline_code, for better namespace-proofing.
5410
5411 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5412
0851f23d
JB
54132002-08-16 Joel Brobecker <brobecker@gnat.com>
5414
5415 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5416
f8d40ec8
JB
54172002-08-16 Joel Brobecker <brobecker@gnat.com>
5418
5419 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5420 signal, check whether we hit a breakpoint before checking for a
5421 single step breakpoint. Otherwise, GDB fails to notice that a
5422 breakpoint has been hit when stepping onto a breakpoint.
5423
63d022e0
KS
54242002-08-16 Keith Seitz <keiths@redhat.com>
5425
5426 * gdb-events.sh (clear_gdb_event_hooks): New function.
5427 * gdb-events.c: Regenerate.
5428 * gdb-events.h: Regenerate.
5429
6e31adb3
AC
54302002-08-16 Andrew Cagney <ac131313@redhat.com>
5431
5432 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5433 not_a_sw_breakpoint.
5434 * breakpoint.h (bpstat_stop_status): Add parameter names.
5435
c8189ed1
GS
54362002-08-16 Grace Sainsbury <graces@redhat.com>
5437
5438 * remote.c (remote_insert_hw_breakpoint)
5439 (remote_remove_hw_breakpoint): Fix calculation of length field
5440 for Z-packet.
5441
d05285fa
MS
54422002-08-15 Michael Snyder <msnyder@redhat.com>
5443
466d7106
MS
5444 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5445 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5446 (supply_fpregset): Ditto.
5447
d05285fa
MS
5448 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5449 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5450 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5451 (TARGET_READ_SP): Delete.
bf1f5b4c 5452 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5453 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5454 Delete.
5455 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5456 from macros to functions.
bf1f5b4c 5457
d05285fa
MS
5458 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5459 (mips_register_convertible, mips_register_convert_to_virtual,
5460 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5461 (mips_read_sp): New function.
5462 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5463 (mips_do_registers_info): Make static.
5464 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5465 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5466 (mips_register_convert_from_type, mips_register_convert_to_type):
5467 New functions.
5468 (mips_gdbarch_init): Set up function_start_offset,
5469 register_virtual_size, pc_in_sigtramp.
d05285fa 5470
e76f1f2e
AC
54712002-08-15 Andrew Cagney <ac131313@redhat.com>
5472
5473 * infcmd.c (vector_info): New function.
5474 (_initialize_infcmd): Add command "info vector".
5475 (print_vector_info): New function.
5476
5477 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5478 * gdbarch.h, gdbarch.c: Regenerate.
5479
4782dc19
AC
54802002-08-15 Andrew Cagney <ac131313@redhat.com>
5481
5482 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5483 ``print_all''. Only print vector registers when ``print_all''.
5484
23e3a7ac
AC
54852002-08-15 Andrew Cagney <ac131313@redhat.com>
5486
8e186fd6
AC
5487 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5488 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5489
23e3a7ac
AC
5490 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5491 Add `args' parameter.
5492 * gdbarch.h, gdbarch.c: Regenerate.
5493
5494 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5495
5496 * infcmd.c (float_info): Call print_float_info.
5497 (print_float_info): New function. By default, print the
5498 floating-point registers.
5499
5500 * arch-utils.h (default_print_float_info): Delete declaration.
5501 * arch-utils.c (default_print_float_info): Delete function.
5502
e0ca2bb9
MK
55032002-08-16 Mark Kettenis <kettenis@gnu.org>
5504
3f733acc
MK
5505 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5506 out define.
5507
7d8d2918
MK
5508 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5509 FRAME.
5510
1c7cc583
MK
5511 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5512 * configure.host: Make i[3456]86-*-aix host obsolete.
5513 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5514 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5515 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5516 config/i386/xm-i386aix.h: Make files obsolete.
5517 * i386aix-nat.c: Make file obsolete.
5518 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5519 (i386aix-nat.o): Make target obsolete.
5520
e0ca2bb9
MK
5521 * config/i386/nm-gnu.h: Removed.
5522 * config/i386/nm-i386gnu.h: New file.
5523 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5524 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5525 Moved here from ...
5526 * config/i386/tm-i386gnu.h: ... here. Removed.
5527 * config/i386/xm-i386gnu.h: Removed.
5528 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5529 (NAT_FILE): Set to nm-i386gnu.h.
5530 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5531 * i386-tdep.c: New file.
5532 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5533 (i386gnu-tdep.o): Specify dependencies.
5534
16057ec7 55352002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5536
6b99ee2e
MK
5537 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5538 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5539 Adjust a few comments to reflect reality a bit closer.
5540 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5541 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5542 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5543 target_insert_watchpoint, target_remove_watchpoint):
5544 Move defines to ...
5545 * config/i386/nm-i386sco5.h: ... here.
5546 (kernel_u_size): Add prototype. Improve a few comments and add
5547 protection against multiple inclusion.
5548
d9a6f65c
MK
5549 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5550 out define.
5551
047eff6a
MK
5552 * uw-thread.c (SP_ARG0): Define if not already defined.
5553 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5554
dcdb1290
MK
5555 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5556
5d2d0b2a
MK
5557 * config/i386/tm-i386.h: Don't include "regcache.h".
5558
61113f8b
MK
5559 * i387-tdep.h (i387_print_float_info): New prototype.
5560 * i387-tdep.c (print_i387_value, print_i387_ext,
5561 print_i387_status_word, print_i387_control_word): Add `struct
5562 ui_file *' argument and use it for output.
5563 (i387_print_float_info): Renamed from i387_float_info. Add
5564 `struct gdbarch *' and `struct ui_file *' arguments and use the
5565 latter for output.
5566 * i386-tdep.c: Include "i387-tdep.h".
5567 (i386_gdbarch_init): Set print_float_info.
5568 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5569 (FLOAT_INFO): Remove define.
5570
46e0f506
MS
55712002-08-13 Michael Snyder <msnyder@redhat.com>
5572
5573 * mips-tdep.c (mips_push_arguments): Rename to
5574 mips_eabi_push_arguments, and tune for EABI.
5575 (MIPS_REGS_HAVE_HOME_P): Delete.
5576 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5577 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5578 Delete references to mips_regs_have_home_p.
5579
409268de
KS
55802002-08-14 Keith Seitz <keiths@redhat.com>
5581
5582 * Makefile.in (install-gdbtk): Create insight plugin directory.
5583 Install plugins.tcl file.
5584
ffc6a242
KS
55852002-08-14 Keith Seitz <keiths@redhat.com>
5586
5587 * configure.in: Move SUBDIRS to near top of the file so that
5588 --enable options may add things to it.
5589 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5590 * configure: Regenerate.
5591
ebafbe83
MS
55922002-08-13 Michael Snyder <msnyder@redhat.com>
5593
5594 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5595 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5596 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5597
32f6f25d
AC
55982002-08-13 Andrew Cagney <ac131313@redhat.com>
5599
5600 * vax-tdep.c (vax_get_saved_register): Delete function.
5601 (vax_gdbarch_init): Update.
5602 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5603 (ns32k_gdbarch_init): Update.
5604 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5605 (alpha_gdbarch_init): Update.
5606
53826de9
AC
56072002-08-13 Andrew Cagney <cagney@redhat.com>
5608
5609 * regcache.c (init_regcache_descr): Overallocate the
5610 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5611 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5612 nr_raw_registers.
5613 (set_register_cached): Add range checking assertions. Use
5614 current_regcache.
5615
16057ec7 56162002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5617
5618 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5619 numbers for MMX registers.
5620
7b4c2dce
AC
56212002-08-13 Andrew Cagney <cagney@redhat.com>
5622
5623 * i386-tdep.c (i386_gdbarch_init): Use
5624 generic_unwind_get_saved_register.
5625
1e03ad20
KB
56262002-08-13 Kevin Buettner <kevinb@redhat.com>
5627
5628 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5629 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5630 target vector.
5631 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5632 Delete. Add comment regarding this now-deleted target method.
5633
548bcbec
SC
56342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5635
5636 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5637 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5638 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5639 real PC and the page number (if it's within the memory bank window).
5640 (m68hc11_pseudo_register_write): Likewise when saving.
5641 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5642 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5643 (m68hc11_register_raw_size): And use 32-bit for it.
5644 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5645 16K memory bank is used by the prog; also use the virtual pc.
5646
7df11f59
SC
56472002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5648
5649 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5650 (m68hc11_gdbarch_init): Install it in gdbarch.
5651 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5652 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5653 (MSYMBOL_SIZE): New for documentation.
5654 (insn_return_kind): Enum to specify how a function returns.
5655 (frame_extra_info): Cleanup and record the return mode.
5656 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5657 register in address computation.
5658 (m68hc11_get_return_insn): New to obtain the return instruction used
5659 by the function.
5660 (m68hc11_frame_init_saved_regs): Take into account the return
5661 instruction used by the function for far and interrupt functions.
5662 (m68hc11_init_extra_frame_info): Take into account page register.
5663 (m68hc11_frame_args_address): Adjust according to the return mode.
5664 (show_regs): Print page register only when it's used.
5665
5706502a
SC
56662002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5667
5668 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5669 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5670 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5671 registers.
5672 (m68hc11_register_raw_size): Likewise.
5673
28fc6740
AC
56742002-08-13 Andrew Cagney <cagney@redhat.com>
5675
5676 * i386-tdep.c (i386_register_name): Handle mmx registers.
5677 (mmx_regnum_p): New function.
5678 (i386_mmx_names): New array.
5679 (mmx_num_regs): New variable.
5680 (i386_pseudo_register_read): New function.
5681 (i386_pseudo_register_write): New function.
5682 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5683
5684 * regcache.c (regcache_raw_read_unsigned): New function.
5685 (regcache_raw_read_signed): New function.
5686 * regcache.h (regcache_raw_read_unsigned): Declare.
5687 (regcache_raw_read_signed): Declare.
5688
a378f419
AC
56892002-08-13 Andrew Cagney <cagney@redhat.com>
5690
5691 * regcache.c (regcache_raw_read_as_address): Delete function.
5692 (regcache_cooked_read_signed): New function.
5693 (regcache_cooked_read_unsigned): New function.
5694 * regcache.h (regcache_cooked_read_signed): Declare.
5695 (regcache_cooked_read_unsigned): Declare.
5696 (regcache_raw_read_as_address): Delete declaration.
5697
5698 * blockframe.c (generic_read_register_dummy): Use
5699 regcache_cooked_read_unsigned.
5700 * i386-tdep.c (i386_extract_struct_value_address): Use
5701 regcache_cooked_read_unsigned.
5702
81967506
SC
57032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5704
5705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5706 double sizes according to ELF ABI flags.
5707 (gdbarch_tdep): Record elf_flags.
5708
ffe1f3ee
SC
57092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5710
5711 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5712 (m6812_prolog): They can appear in 68HC12 function prologue.
5713 (m68hc11_frame_chain): Cleanup.
5714
98216c5d
AC
57152002-08-12 Andrew Cagney <cagney@redhat.com>
5716
5717 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5718 declarations.
5719 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5720 (i386_linux_register_raw_size): Delete function.
5721 (i386_linux_init_abi): Update.
5722 * i386-tdep.c (i386_register_raw_size): Delete function.
5723 (i386_register_byte): Delete function.
5724 (i386_gdbarch_init): Update.
5725 (i386_register_size): Delete array.
5726 (i386_register_offset): Delete array.
5727
5728 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5729 (REGISTER_RAW_SIZE): Delete macro.
5730 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5731 (REGISTER_BYTE): Delete macro.
5732
3b19021e
AS
57332002-08-11 Aidan Skinner <aidan@velvet.net>
5734
5735 * ada-lang.c (ada_lookup_partial_symbol)
5736 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5737 prototype names so that grep ^func works properly.
5738
5739 * ada-lang.c (ada_array_element_type)
5740 (ada_lookup_partial_symbol): Fix typos in parameter list.
5741
5742 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5743 Fix prototype names so that grep ^func works properly.
5744
b063e7a2
AC
57452002-08-10 Andrew Cagney <cagney@redhat.com>
5746 Elena Zannoni <ezannoni@redhat.com>
5747 Martin M. Hunt <hunt@redhat.com>
5748
5749 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5750 (build_builtin_type_vec128i): Set the vector bit.
5751 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5752 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5753 (build_builtin_type_vec64): New function.
5754 (build_builtin_type_vec64i): New function.
5755 (build_gdbtypes): Initialize builtin_type_vec64 and
5756 builtin_type_vec64i.
5757
a7e3c2ad
AC
57582002-08-09 Andrew Cagney <cagney@redhat.com>
5759
5760 * regcache.c (regcache_dump): Compare the register offset
5761 with REGISTER_BYTE.
5762 * arch-utils.c (generic_register_byte): New function.
5763 * arch-utils.h (generic_register_byte): Declare.
5764 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5765 * gdbarch.h, gdbarch.c: Regenerate.
5766
af030b9a
AC
57672002-08-09 Andrew Cagney <cagney@redhat.com>
5768
5769 * regcache.c: Include "gdbcmd.h"
5770 (_initialize_regcache): Add commands "maintenance print
5771 registers", "maintenance print raw-registers" and "maintenance
5772 print cooked-registers".
5773 (enum regcache_dump_what): Define.
5774 (dump_endian_bytes): New function.
5775 (regcache_dump): New function.
5776 (regcache_print): New function.
5777 (maintenance_print_registers): New function.
5778 (maintenance_print_raw_registers): New function.
5779 (maintenance_print_cooked_registers): New function.
5780 * Makefile.in (regcache.o): Update dependencies.
5781
cb3d25d1
MS
57822002-08-09 Michael Snyder <msnyder@redhat.com>
5783
5784 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5785 (mips_push_arguments): Correct some comments. Use paddr_nz
5786 for printing addresses in debug output. Replace static
5787 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5788 (mips_n32n64_push_arguments): New function, cloned from
5789 mips_push_arguments and tuned for the n32/n64 ABI.
5790 (mips_push_register): Buffer needs dynamic allocation.
5791 (mips_print_register): Ditto.
5792 (do_gp_register_row): Ditto.
5793 (mips_store_return_value): Ditto.
5794 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5795
2163ab9d
DH
57962002-08-09 Don Howard <dhoward@redhat.com>
5797
5798 * memattr.c (mem_info_command): Print special case of upper bound
5799 as max CORE_ADDR + 1.
5800
b78bcb18
MS
58012002-08-08 Michael Snyder <msnyder@redhat.com>
5802
5803 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5804 returns structs by ref if they're too big to fit in two registers.
5805
ffabd70d
KB
58062002-08-09 Kevin Buettner <kevinb@redhat.com>
5807
5808 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5809 saved regs value.
5810 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5811 mips_find_saved_regs().
5812 (mips_pop_frame): Likewise.
5813
fbcdb4a3
KB
58142002-08-09 Kevin Buettner <kevinb@redhat.com>
5815
5816 * blockframe.c (frame_saved_regs_register_unwind): Revise
5817 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5818 frames are in use.
5819
3c3bea1c
GS
58202002-08-09 Grace Sainsbury <graces@redhat.com>
5821
5822 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5823 T-packets; the 'a' is not taken as a register number.
5824 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5825 (remote_stopped_data_address): New functions; add to target
5826 vector.
5827 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5828 prototypes to match other implementations of this
5829 function. replace integer argument with pointer -- the length
5830 field in the Z-packet is the length of what is pointed to or 1 if
5831 pointer is null. Add to target vector.
5832 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5833 target vector.
5834
5835 From Mark Salter:
5836 * remote.c (remote_wait): Add support to extract optional
5837 watchpoint information from T-packet. Ignore unrecognized
5838 optional info in T-packet.
5839 (remote_async_wait): Ditto.
5840
5d1d95de
CV
58412002-08-09 Corinna Vinschen <vinschen@redhat.com>
5842
5843 * cli/cli-dump.c: Change fopen modes to use binary open modes
5844 as defined in include/fopen-bin.h throughout.
5845
c86b5b38
MS
58462002-08-08 Michael Snyder <msnyder@redhat.com>
5847
5848 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5849
b30590dc
KB
58502002-08-08 Kevin Buettner <kevinb@redhat.com>
5851
5852 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5853 assertion failure by returning early after a warning.
5854
498868ed
KB
58552002-08-08 Kevin Buettner <kevinb@redhat.com>
5856
5857 * mips-tdep.c (mips_find_saved_regs): Make static.
5858 (mips_frame_init_saved_regs): New function.
5859 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5860 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5861 (mips_find_saved_regs): Delete declaration.
5862
b2dd6311
GS
58632002-08-08 Grace Sainsbury <graces@redhat.com>
5864
3c3bea1c
GS
5865 * remote.c (remote_wait, remote_async_wait): Change
5866 thread_num from int to ULONGEST.
5867 (unpack_varlen_hex): Change result parameter from
5868 int * to ULONGEST *.
b2dd6311 5869
ea47855f
AC
58702002-08-08 Andrew Cagney <ac131313@redhat.com>
5871
5872 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5873 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5874 powerpc*-*-*.
5875 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5876
69db8bae
AC
58772002-08-08 Andrew Cagney <cagney@redhat.com>
5878
5879 * gcore.c (override_derive_stack_segment): Delete variable.
5880 (preempt_derive_stack_segment): Delete function.
5881 (derive_stack_segment): Delete function.
5882 (default_derive_stack_segment): Renamed to derive_stack_segment.
5883 (override_derive_heap_segment): Delete variable.
5884 (preempt_derive_heap_segment): Delete function.
5885 (derive_heap_segment): Delete function.
5886 (default_derive_heap_segment): Rename to derive_heap_segment.
5887
cb811fe7
MS
58882002-08-06 Michael Snyder <msnyder@redhat.com>
5889
5890 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5891 * mips-tdep.c (mips_EABI_use_struct_convention,
5892 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5893 New functions. (mips_use_struct_convention): Delete.
5894 (mips_gdbarch_init): set use_gdbarch_convention.
5895
8b389c40
MS
58962002-08-06 Michael Snyder <msnyder@redhat.com>
5897
5898 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5899 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5900 mips_o32_reg_struct_has_addr): New functions.
5901 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5902
5c27f28a
AC
59032002-08-07 Andrew Cagney <ac131313@redhat.com>
5904
5905 * regcache.c (pseudo_register): Delete function.
5906 (fetch_register): Delete function.
5907 (store_register): Delete function.
5908 (regcache_raw_read, legacy_read_register_gen): Use
5909 target_fetch_registers instead of fetch_register.
5910 (legacy_write_register_gen, regcache_raw_write): Use
5911 target_store_register instead of store_register.
5912 (write_register_bytes): Ditto.
5913
5914 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5915 (STORE_PSEUDO_REGISTER): Delete.
5916 * gdbarch.h, gdbarch.c: Regenerate.
5917
5b331675
CV
59182002-08-06 Corinna Vinschen <vinschen@redhat.com>
5919
5920 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5921 write dump file binary.
5922
6acdf5c7
MS
59232002-08-05 Michael Snyder <msnyder@redhat.com>
5924
5925 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5926 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5927 (mips_gdbarch_init): Set N32 target to be mips64.
5928
b2f01c35
KB
59292002-08-06 Kevin Buettner <kevinb@redhat.com>
5930
5931 * frame.c (find_saved_register): Break out of loop once saved
5932 register address is found. Don't mention sparc in loop comment
5933 anymore.
5934
63db5580
KB
59352002-08-06 Kevin Buettner <kevinb@redhat.com>
5936
5937 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5938 mips_default_saved_regsize to 8.
5939
5e34e75e
AC
59402002-08-06 Andrew Cagney <ac131313@redhat.com>
5941
5942 * gcore.c: Do not include <sys/procfs.h>.
5943 * Makefile.in (gcore.o): Update dependencies.
5944
eb4c54a2
AC
59452002-08-06 Andrew Cagney <cagney@redhat.com>
5946
5947 * configure.tgt: Make arc-*-* obsolete.
5948 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5949 * MAINTAINERS: Make arc-elf obsolete.
5950 * arc-tdep.c: Make file obsolete.
5951 * config/arc/arc.mt: Ditto.
5952 * config/arc/tm-arc.h: Ditto.
5953
ced15480
TR
59542002-08-05 Theodore A. Roth <troth@verinet.com>
5955
c1bab85b 5956 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5957
b4743822
AC
59582002-08-05 Andrew Cagney <ac131313@redhat.com>
5959
5960 * mcore-tdep.c (mcore_gdbarch_init): Use
5961 generic_unwind_get_saved_register instead of
5962 generic_get_saved_register.
5963 * v850-tdep.c (v850_gdbarch_init): Ditto.
5964 * frv-tdep.c (frv_gdbarch_init): Ditto.
5965 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5966 * s390-tdep.c (s390_gdbarch_init): Ditto.
5967 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5968 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5969 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5970
3956d554
JB
59712002-08-05 Joel Brobecker <brobecker@gnat.com>
5972
5973 * objfiles.h: Add missing #include "symfile.h"
5974
5975 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5976
8249c0d6
AC
59772002-08-04 Andrew Cagney <ac131313@redhat.com>
5978
5979 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5980 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5981 of FIELD_BITSIZE.
5982
b9d14705
DJ
59832002-08-04 Daniel Jacobowitz <drow@mvista.com>
5984
5985 * NEWS: Cleanup and nitpick.
5986
dd73b9bb
AC
59872002-08-03 Andrew Cagney <ac131313@redhat.com>
5988
5989 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5990
043a27f8
AC
59912002-08-03 Andrew Cagney <ac131313@redhat.com>
5992
5993 * Makefile.in (gdbtk-bp.o): Update dependencies.
5994 (gdbtk-register.o): Ditto.
5995 (gdbtk-varobj.o): Ditto.
5996
46ce284d
AC
59972002-08-03 Andrew Cagney <cagney@redhat.com>
5998
5999 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6000 m68hc11_fetch_pseudo_register.
6001 (m68hc11_pseudo_register_write): Replace
6002 m68hc11_store_pseudo_register.
6003 (m68hc11_gdbarch_init): Update.
6004
b66d6d2e
AC
6005Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6006
6007 * gdbarch.sh: Include "gdb_string.h".
6008 * gdbarch.c: Regenerate.
6009
6010 * regcache.c: Include "gdb_string.h".
6011 * ax-general.c: Ditto.
6012 * varobj.c: Ditto.
6013 * std-regs.c: Ditto.
6014 * fbsd-proc.c: Ditto.
6015 * thread.c: Ditto.
6016
6017 * Makefile.in (regcache.o): Update dependencies.
6018 (thread.o, gdbarch.o): Ditto.
6019 (ax-general.o, gdbarch.o): Ditto.
6020 (varobj.o, std-regs.o): Ditto.
6021 (fbsd-proc.o): Specify dependencies.
6022
29e1842b
AC
60232002-08-02 Andrew Cagney <cagney@redhat.com>
6024
6025 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6026 regnum.
6027 (regcache_cooked_write): Ditto.
6028
68365089
AC
60292002-08-02 Andrew Cagney <ac131313@redhat.com>
6030
6031 * regcache.c (regcache_cooked_read): New function.
6032 (regcache_cooked_write): New function.
6033 (read_register_gen): Rewrite using regcache_cooked_read.
6034 (write_register_gen): Rewrite using regcache_cooked_write.
6035
6036 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6037 Declare.
6038
d8124050
AC
60392002-08-02 Andrew Cagney <cagney@redhat.com>
6040
6041 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6042 Replace the architecture methods register_read and register_write.
6043 * gdbarch.h, gdbarch.c: Regenerate.
6044 * regcache.c (init_regcache_descr): Update.
6045 (read_register_gen): Update.
6046 (write_register_gen): Update.
6047 (supply_register): Update comment.
6048
6049 * sh-tdep.c (sh_gdbarch_init): Update.
6050 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6051 `regcache' and `gdbarch' parameters. Make `buffer' a void
6052 pointer. Update code.
6053 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6054 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6055 void pointer. Update code.
6056 (sh64_register_write): Delete.
6057 (sh4_register_read): Delete.
6058 (sh64_register_read): Delete.
6059 (sh4_register_write): Delete.
6060 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6061 void pointer, `to' parameter a void pointer.
6062 (sh_sh64_register_convert_to_raw): Ditto.
6063
a6425924
KB
60642002-08-01 Kevin Buettner <kevinb@redhat.com>
6065
6066 * mips-tdep.c (mips_register_virtual_type): Use architecture
6067 invariant return values.
6068
ff5922b5
AC
60692002-08-01 Andrew Cagney <cagney@redhat.com>
6070
6071 * linux-proc.c: Include "gdb_string.h".
6072 * Makefile.in (linux-proc.o): Update dependency list.
6073
32a6503c
KB
60742002-08-01 Kevin Buettner <kevinb@redhat.com>
6075
6076 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6077 comment.
6078
ccaa32c7
GS
60792002-08-01 Grace Sainsbury <graces@redhat.com>
6080
6081 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6082 to_insert_watchpoint, to_remove_watchpoint,
6083 to_stopped_by_watchpoint, to_stopped_data_address,
6084 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6085 target vecctor. Define their corresponding macros so they call
6086 them.
6087
6088 * target.c: Add default and debug versions of for
6089 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6090 to_insert_watchpoint, to_remove_watchpoint,
6091 to_stopped_by_watchpoint, to_stopped_data_address,
6092 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6093
78fde5f8
KB
60942002-08-01 Kevin Buettner <kevinb@redhat.com>
6095
6096 * mips-tdep.c (mips_register_virtual_type): New function.
6097 (mips_gdbarch_init): Register mips_register_virtual_type()
6098 with gdbarch machinery.
6099 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6100 this file instead of tm-bigmips.h.
6101 (MIPS_REGSIZE): Delete this macro.
6102 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6103 multiarch version in mips-tdep.c will be found.
6104
db034ac5
AC
61052002-08-01 Andrew Cagney <cagney@redhat.com>
6106
6107 * NEWS: Menion that CHILL has been made obsolete.
6108
6109 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
6110 * stabsread.c (read_range_type): Ditto.
6111 * gdbtypes.h: Ditto.
6112 * language.c (binop_type_check): Ditto.
6113 (binop_result_type): Ditto.
6114 (integral_type): Ditto.
6115 (character_type): Ditto.
6116 (string_type): Ditto.
6117 (boolean_type): Ditto.
6118 (structured_type): Ditto.
6119 (lang_bool_type): Ditto.
6120 (binop_type_check): Ditto.
6121 * language.h (_LANG_chill): Ditto.
6122 * dwarfread.c (set_cu_language): Ditto.
6123 * dwarfread.c (CHILL_PRODUCER): Ditto.
6124 * dwarfread.c (handle_producer): Ditto.
6125 * expression.h (enum exp_opcode): Ditto.
6126 * eval.c: Ditto for comments.
6127 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6128 * expprint.c (print_subexp): Ditto.
6129 (print_subexp): Ditto.
6130 * valops.c (value_cast): Ditto.
6131 (search_struct_field): Ditto.
6132 * value.h (COERCE_VARYING_ARRAY): Ditto.
6133 * symfile.c (init_filename_language_table): Ditto.
6134 (add_psymbol_with_dem_name_to_list): Ditto.
6135 * valarith.c (value_binop): Ditto.
6136 (value_neg): Ditto.
6137 * valops.c (value_slice): Ditto.
6138 * symtab.h (union language_specific): Ditto.
6139 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6140 (SYMBOL_DEMANGLED_NAME): Ditto.
6141 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6142 * defs.h (enum language): Ditto.
6143 * symtab.c (got_symtab): Ditto.
6144 * utils.c (fprintf_symbol_filtered): Ditto.
6145
6146 * ch-typeprint.c: Make file obsolete.
6147 * ch-valprint.c: Make file obsolete.
6148 * ch-lang.h: Make file obsolete.
6149 * ch-exp.c: Make file obsolete.
6150 * ch-lang.c: Make file obsolete.
6151
6152 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6153 CHILL_LIB.
6154 (TARGET_FLAGS_TO_PASS): Ditto.
6155 (CHILLFLAGS): Obsolete.
6156 (CHILL): Obsolete.
6157 (CHILL_FOR_TARGET): Obsolete.
6158 (CHILL_LIB): Obsolete.
6159 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6160 ch-valprint.c.
6161 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6162 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6163 ch-lang.o.
6164 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6165 targets.
6166
8aaf0b47
JB
61672002-07-31 Joel Brobecker <brobecker@gnat.com>
6168
6169 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6170 This does not change anything at the moment, but will be helpful
6171 later when full Ada support is integrated.
6172
f3a7b3a5
KB
61732002-07-31 Kevin Buettner <kevinb@redhat.com>
6174
6175 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6176 help message.
6177
fb850278
KB
61782002-07-31 Kevin Buettner <kevinb@redhat.com>
6179
6180 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6181 and save it in a local variable. Use variable in later test.
6182
e3bddbfa
KB
61832002-07-31 Kevin Buettner <kevinb@redhat.com>
6184
6185 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6186 test. (Thanks to Daniel Jacobowitz.)
6187
28d169de
KB
61882002-07-31 Kevin Buettner <kevinb@redhat.com>
6189
6190 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6191 (mips_abi_strings): Add "n64".
6192 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6193
7fe7e44e
KB
61942002-07-31 Kevin Buettner <kevinb@redhat.com>
6195
6196 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6197 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6198
c6caf090
KB
61992002-07-31 Kevin Buettner <kevinb@redhat.com>
6200
6201 * utils.c (host_pointer_to_address, address_to_host_pointer):
6202 Use gdb_assert() instead of explicit call to internal_error().
6203
c41669e0
KB
62042002-07-30 Kevin Buettner <kevinb@redhat.com>
6205
6206 * Makefile.in (rs6000-nat.o): Update dependencies.
6207
6208 From Nicholas Duffek:
6209 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6210 (aix-thread.o): New rule.
6211 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6212 * config/powerpc/aix432.mh: New file.
6213
2fda4977
DJ
62142002-07-30 Daniel Jacobowitz <drow@mvista.com>
6215
6216 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6217 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6218 (fetch_core_registers, ppc_linux_supply_gregset)
6219 (ppc_linux_supply_fpregset): New functions.
6220 (ppc_linux_regset_core_fns): New.
6221 (_initialize_ppc_linux_tdep): Call add_core_fns.
6222 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6223 and ppc_linux_supply_gregset.
6224 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6225 (supply_fpregset): Call ppc_linux_supply_fpregset.
6226 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6227 corelow.o.
6228 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6229
729051e6
DJ
62302002-07-30 Daniel Jacobowitz <drow@mvista.com>
6231
6232 * symtab.c (lookup_symbol): Demangle before lowercasing.
6233
5f8a3188
AC
62342002-07-30 Andrew Cagney <ac131313@redhat.com>
6235
6236 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6237 declaration.
6238 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6239 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6240 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6241 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6242 "gdb_string.h".
6243 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6244 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6245 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6246 (avr-tdep.o, mon960-rom.o): Ditto.
6247 (aout_stabs_gnu_h): Define.
6248 (symtab_h): Remove $(gdb_obstack_h).
6249
67f07146
JB
62502002-07-30 Jim Blandy <jimb@redhat.com>
6251
6252 Patch from David Carlton <carlton@math.stanford.edu>:
6253 * gdbinit.in: Move the `dir' commands that add GDB's own source
6254 directory to the search path to the end, so that the `gdb' source
6255 directory will be searched first.
6256
04ea0df1
AC
62572002-07-29 Andrew Cagney <ac131313@redhat.com>
6258
6259 * gdb_obstack.h: New file.
6260 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6261 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6262 * objfiles.h: Include "gdb_obstack.h".
6263 * Makefile.in (gdb_obstack_h): Define.
6264 (symtab_h): Add $(gdb_obstack_h).
6265 (objfiles_h): Add $(gdb_obstack_h).
6266
6267 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6268 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6269 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6270 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6271 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6272 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6273 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6274 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6275
6276 * Makefile.in (bcache.o): Update dependencies.
6277 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6278 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6279 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6280 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6281 (stabsread.o, symfile.o, symmisc.o): Ditto.
6282 (symtab.o, typeprint.o, macroexp.o): Ditto.
6283 (macrotab.o, mdebugread.o): Ditto.
6284 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6285 (coff_ecoff_h, aout_aout64_h): Define.
6286 (aout_stabs_gnu_h, libaout_h): Define.
6287
d138e37a
AC
62882002-07-29 Andrew Cagney <cagney@redhat.com>
6289
6290 * regcache.c (struct regcache_descr): Rename nr_registers to
6291 nr_cooked_registers. Revise comments describing the structure
6292 member fields.
6293 (init_regcache_descr): Update.
6294 (init_legacy_regcache_descr): Update.
6295 (read_register_gen, write_register_gen): When a cooked register in
6296 the raw register range, directly access the value from the raw
6297 register cache.
6298
460e6ec3
AC
62992002-07-29 Andrew Cagney <ac131313@redhat.com>
6300
6301 * z8k-tdep.c: Do not include "obstack.h".
6302 * h8300-tdep.c, h8500-tdep.c: Ditto.
6303 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6304 * valprint.c, v850-tdep.c: Ditto.
6305 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6306 * mn10200-tdep.c: Ditto.
6307
6308 * Makefile.in (z8k-tdep.o): Update dependencies.
6309 (m68hc11-tdep.o, valprint.o): Ditto.
6310 (v850-tdep.o, d10v-tdep.o): Ditto.
6311 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6312 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6313 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6314 (sh_opc_h, gdb_sim_sh_h): Define.
6315 (elf_sh_h, elf_bfd_h): Define.
6316 (opcode_m68hc11_h): Define.
6317 (OPCODES_SRC, OPCODES_DIR): define.
6318 (OPCODES): Use $(OPCODES_DIR).
6319 (gdb_sim_d10v_h): Rename sim_d10v_h.
6320 (gdb_sim_arm_h): Rename sim_arm_h.
6321
790c9cf0
KB
63222002-07-26 Kevin Buettner <kevinb@redhat.com>
6323
6324 * utils.c (host_pointer_to_address, address_to_host_pointer):
6325 Change internal_error() message to indicate function responsible
6326 for the error.
6327
9647fa49
KB
63282002-07-26 Kevin Buettner <kevinb@redhat.com>
6329
6330 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6331 calls to local_hex_string_custom().
6332
dabbe2c0
KB
63332002-07-26 Kevin Buettner <kevinb@redhat.com>
6334
6335 * irix5-nat.c: Move IRIX shared library support from here...
6336 * solib-irix.c: ...to here. Revised substantially to work with
6337 generic solib framework.
6338
b96d0a4e
KB
6339 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6340 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6341 * mips-irix-tdep.c: New file.
6342
313fb2f6
KB
6343 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6344 (mips-irix-tdep.o, solib-irix.o): New rules.
6345 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6346 solib-irix.o.
6347 * config/mips/irix6.mt (TDEPFILES): Likewise.
6348 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6349
ab2eaf26
KB
63502002-07-26 Kevin Buettner <kevinb@redhat.com>
6351
177e4768 6352 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6353 disabled (via ``#if 0'') includes.
6354
7244546a
KB
63552002-07-26 Kevin Buettner <kevinb@redhat.com>
6356
6357 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6358 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6359 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6360 Add support for the fpscr register.
6361 * rs6000-nat.c (regmap, fetch_inferior_registers)
6362 (store_inferior_registers, fetch_core_registers): Likewise.
6363
dd7be90a
KB
63642002-07-26 Kevin Buettner <kevinb@redhat.com>
6365
6366 * rs6000-nat.c (language.h): Include.
6367 (special_regs): Delete this array.
6368 (regmap): New function.
6369 (fetch_register, store_register): Use regmap() to map gdb
6370 register numbers to ptrace register numbers. Also, use
6371 outputs from regmap() to make decisions regarding type of
6372 ptrace() call to make. In particular, don't compare against
6373 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6374 (fetch_inferior_registers, store_inferior_registers): Where
6375 possible, obtain register numbers from tdep struct. Don't
6376 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6377 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6378 (LAST_UISA_SP_REGNUM): Delete.
6379
11bf77db
KB
63802002-07-25 Kevin Buettner <kevinb@redhat.com>
6381
6382 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6383 (fetch_registers, store_register, fetch_core_registers): Don't
6384 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6385 regcache_collect() as appropriate.
6386 (find_toc_address): Format hex address with local_hex_string().
6387
06afebeb
AC
63882002-07-25 Andrew Cagney <ac131313@redhat.com>
6389
6390 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6391 bfd/elf32-frv.c.
6392
8c554d79
TT
63932002-07-24 Tom Tromey <tromey@redhat.com>
6394
6395 * jv-exp.y: Marked all strings with _().
6396 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6397 internal_error.
6398 (MethodInvocation, CastExpression, parse_number, yyerror,
6399 java_type_from_name, push_expression_name, yylex): Typo fixes.
6400
e4c242d9
DJ
64012002-07-24 Daniel Jacobowitz <drow@mvista.com>
6402
6403 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6404 (tee_file_flush, tee_file_write, tee_file_fputs)
6405 (tee_file_isatty): New.
6406 * ui-file.h (tee_file_new): Add prototype.
6407
ebf56fd3
AS
64082002-07-24 Aidan Skinner <aidan@velvet.net>
6409
6410 * ada-lang.c: Change k&r style function definitions to prototyped
6411 form.
6412 * ada-typeprint.c: Change k&r style function definitions to prototyped
6413 form.
6414 * ada-valprint.c: Change k&r style function definitions to prototyped
6415 form.
6416
7fb623f7
AC
64172002-07-24 Andrew Cagney <cagney@redhat.com>
6418
6419 * README: Remove reference to remote-bug.
6420 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6421 remote-bug.c.
6422 (m88k-nat.o): Delete rule.
6423 (m88k-tdep.o): Delete rule.
6424 (remote-bug.o): Delete rule.
6425 * MAINTAINERS: Mark as obsolete.
6426 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6427 * m88k-tdep.c: Make file obsolete.
6428 * config/m88k/m88k.mh: Ditto.
6429 * config/m88k/delta88v4.mh: Ditto.
6430 * config/m88k/delta88v4.mt: Ditto.
6431 * config/m88k/delta88.mt: Ditto.
6432 * config/m88k/delta88.mh: Ditto.
6433 * remote-bug.c: Ditto.
6434 * config/m88k/tm-delta88.h: Ditto.
6435 * config/m88k/nm-delta88v4.h: Ditto.
6436 * config/m88k/xm-delta88.h: Ditto.
6437 * config/m88k/xm-dgux.h: Ditto.
6438 * config/m88k/tm-m88k.h: Ditto.
6439 * config/m88k/nm-m88k.h: Ditto.
6440 * config/m88k/tm-delta88v4.h: Ditto.
6441 * m88k-nat.c: Ditto.
6442 * cxux-nat.c: Ditto.
6443 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6444 and m88*-*-* obsolete.
6445 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6446 m88*-*-* obsolete.
6447
37611a2b
AC
64482002-07-24 Andrew Cagney <cagney@redhat.com>
6449
6450 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6451 constant. Same for local pointer variables.
6452 (extract_signed_integer): Ditto.
6453 * defs.h (extract_unsigned_integer): Update.
6454 (extract_signed_integer): Update.
6455
1aaa5f99
AC
64562002-07-24 Andrew Cagney <cagney@redhat.com>
6457
6458 * regcache.c (regcache_raw_write): Change buf parameter to a
6459 constant void pointer.
6460 (regcache_raw_read): Change buf parameter to a void pointer.
6461 (legacy_write_register_gen): Change myaddr parameter a constant
6462 void pointer.
6463 (supply_register): Change val parameter to a const void pointer.
6464 * regcache.h (regcache_raw_write): Update declaration.
6465 (regcache_raw_read): Update declaration.
6466 (supply_register): Update declaration.
6467
b4f5539f
TT
64682002-07-24 Tom Tromey <tromey@redhat.com>
6469
6470 * defs.h (gdb_readline_wrapper): Declare.
6471 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6472 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6473 * top.c (gdb_readline_wrapper): New function.
6474 (command_line_input): Use it.
6475
0818c12a
AC
64762002-07-24 Andrew Cagney <cagney@redhat.com>
6477
6478 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6479 regcache_read and regcache_write.
6480 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6481 * regcache.c: Update.
6482 * sh-tdep.c (sh64_push_arguments): Update comment.
6483 (sh_pseudo_register_read): Update.
6484 (sh_pseudo_register_write): Update.
6485 (sh4_register_read): Update.
6486 (sh4_register_write): Update.
6487 (sh64_pseudo_register_read): Update.
6488 (sh64_pseudo_register_write): Update.
6489 (sh64_register_read): Update.
6490 (sh64_register_write): Update.
6491 * i386-tdep.c (i386_extract_return_value): Update.
6492 (i386_extract_struct_value_address): Update.
6493 (i386_extract_return_value): Update.
6494 * blockframe.c (generic_read_register_dummy): Update.
6495 (generic_call_dummy_register_unwind): Update
6496 * infrun.c (write_inferior_status_register): Update.
6497
f7321c06
JB
64982002-07-23 Jim Blandy <jimb@redhat.com>
6499
6500 * parser-defs.h (expression_context_pc): Make this extern.
6501 (Thanks to Michael Snyder.)
6502
2037aebb
AC
65032002-07-23 Andrew Cagney <ac131313@redhat.com>
6504
6505 GDB 5.2.1 released from 5.2 branch.
6506 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6507 * README: Update to mention 5.2.1.
6508
66504d44
MS
65092002-07-23 Mark Salter <msalter@redhat.com>
6510
6511 * remote.c (remote_read_bytes): Fix check for error.
6512
27bae383
KB
65132002-07-22 Kevin Buettner <kevinb@redhat.com>
6514
6515 * aix-thread.c (language.h): Include.
6516 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6517 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6518 Print newlines at end of debug messages.
6519 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6520 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6521
65222002-07-22 Kevin Buettner <kevinb@redhat.com>
6523
6524 * aix-thread.c (ppc-tdep.h): Include.
6525 (special_register_p): New function.
6526 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6527 (store_regs_user_thread): Use register number information from
6528 gdbarch_tdep struct instead of hardcoded offsets relative to
6529 FIRST_UISA_SP_REGNUM.
6530 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6531 special_register_p() instead of using FPLAST_REGNUM and
6532 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6533 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6534 will be MQ's register number.
6535
65362002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6537
6538 * aix-thread.c (ops): Rename to aix_thread_ops.
6539 (base_ops): Rename to base_target.
6540 (ops_attach): Rename to aix_thread_attach.
6541 (ops_detach): Rename to aix_thread_detach.
6542 (ops_resume): Rename to aix_thread_detach.
6543 (ops_wait): Rename to aix_thread_wait.
6544 (ops_kill): Rename to aix_thread_kill.
6545 (init_ops): Rename to init_aix_thread_ops.
6546 (ops_fetch_register): Rename to aix_thread_fetch_register.
6547 (ops_store_register): Rename to aix_thread_store_register.
6548 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6549 (ops_thread_alive): Rename to aix_thread_thread_alive.
6550 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6551 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6552 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6553 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6554 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6555 (store_regs_lib): Rename to store_regs_user_thread.
6556 (store_regs_kern): Rename to store_regs_kernel_thread.
6557
27bae383 65582002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6559
6560 * aix-thread.c (ops_prepare_to_store): Eliminate.
6561 (init_ops): Don't initialize ops.prepare_to_store.
6562 (store_regs_kern): Pre-fetch register buffers from child,
6563 because some registers may not be in the cache. Copy
6564 regs from register cache only if they are cached.
6565 (store_regs_lib): Copy regs from register cache only
6566 if they are cached.
6567 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6568 fill_gprs64): Ditto.
6569
61c5da0b
KB
65702002-07-22 Kevin Buettner <kevinb@redhat.com>
6571
6572 * aix-thread.c (gdb_assert.h): Include.
6573 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6574 register sizes (from register cache) match size of buffer holding
6575 register data.
6576 (fill_sprs32): Change parameter types to match those in the ptrace()
6577 buffer.
6578 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6579 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6580
65812002-07-22 Michael Snyder <msnyder@redhat.com>
6582
6583 * aix-thread.c (supply_sprs64): Cosmetic change.
6584 (supply_sprs32): Cosmetic change.
6585 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6586 (fill_sprs64): Use regcache_collect instead of read_register.
6587 (store_regs_lib): Use regcache_collect instead of
6588 read_register. Use fill_sprs32 instead of fill_sprs64,
6589 if debugging a 32-bit architecture.
6590 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6591 out of the register cache, instead of passing a pointer into
6592 the register cache directly to ptrace. Use regcache_collect
6593 insteaad of read_register.
6594 (ops_prepare_to_store): Use target_read_registers instead
6595 of read_register_bytes.
6596
36479eb1
AS
65972002-07-20 Aidan Skinner <aidan@velvet.net>
6598
6599 * MAINTAINERS: Add self under write after approval.
6600
80ae6ee2
AS
66012002-07-20 Aidan Skinner <aidan@velvet.net>
6602
6603 * ada-tasks.c: Change k&r style function definitions to prototyped
6604 form.
6605
8a8ab2b9
AC
66062002-07-19 Andrew Cagney <ac131313@redhat.com>
6607
6608 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6609 * x86-64-tdep.c: Include "objfiles.h".
6610 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6611 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6612
fb16b900
ML
66132002-07-17 Michal Ludvig <michal@suse.cz>
6614
6615 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6616 (update_context): Initialise cfa variable.
6617
0fe7bf7b
MS
66182002-07-17 Michael Snyder <msnyder@redhat.com>
6619
6620 * aix-thread.c: Shorten some long lines.
6621 Bring comments into line with code spec.
6622
488f131b
JB
66232002-07-18 Joel Brobecker <brobecker@gnat.com>
6624
6625 * infrun.c: Re-indent using gdb_indent.sh.
6626
46c415d2
JB
66272002-07-18 Joel Brobecker <brobecker@gnat.com>
6628
6629 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6630 Leave the indentation temporarily untouched, to minimize the diffs.
6631
cdecafbe
EZ
66322002-07-18 Elena Zannoni <ezannoni@redhat.com>
6633
6634 * stabsread.c: Make os9k sections of the code obsolete,
6635 for real this time.
6636 * stabsread.h: Make os9k sections of the code obsolete.
6637
7b6aa020
ML
66382002-07-18 Michal Ludvig <mludvig@suse.cz>
6639
09ec9b38
ML
6640 * linux-low.c (regsets_store_inferior_registers): Add free()
6641 at the end of a loop to prevent memory leak.
6642 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6643 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6644 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6645 line a comment.
4894ac5d 6646 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6647
233282cd
JB
66482002-07-17 Jim Blandy <jimb@redhat.com>
6649
6650 * macrocmd.c (info_macro_command): Remove newline from error
6651 message.
6652
7b6aa020 66532002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6654
6655 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6656 (sh_gdbarch_init): Use it for sh-dsp.
6657
f7ef9339
KB
66582002-07-16 Kevin Buettner <kevinb@redhat.com>
6659
6660 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6661 64-bit DWARF2 format.
6662
8dd72958
JB
66632002-07-16 Joel Brobecker <brobecker@gnat.com>
6664
6665 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6666 <sys/proc.h> when not available.
6667
a99a9e1b
AC
66682002-07-16 Andrew Cagney <ac131313@redhat.com>
6669
6670 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6671 * stabsread.c: Make os9k sections of the code obsolete.
6672 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6673 * config/i386/i386os9k.mt: Make file obsolete.
6674 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6675 (COMMON_OBS): Remove os9kread.o
6676 (SFILES): Remove os9kread.c.
6677 (os9kread.o, remote-os9k.o): Make target obsolete.
6678 * remote-os9k.c: Make file obsolete.
6679 * os9kread.c: Make file obsolete.
6680 * Makefile.in
6681
7a3085c1
AC
66822002-07-16 Andrew Cagney <ac131313@redhat.com>
6683
6684 * NEWS: Mention that the FR30 has been made obsolete.
6685 * fr30-tdep.c: Make file obsolete.
6686 * config/fr30/tm-fr30.h: Ditto.
6687 * config/fr30/fr30.mt: Ditto.
6688 * configure.tgt: Make fr30-*-elf obsolete.
6689 * MAINTAINERS: Make fr30-elf obsolete.
6690
28a93f5a
PM
66912002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6692
6693 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6694 found is not inside a section.
6695
be006b8b
KB
66962002-07-15 Kevin Buettner <kevinb@redhat.com>
6697
6698 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6699 strerror().
6700 (pdc_realloc): Use xrealloc() instead of realloc().
6701
14fa3751
KB
67022002-07-15 Kevin Buettner <kevinb@redhat.com>
6703
6704 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6705 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6706 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6707 macros.
6708
42cc437f
KB
67092002-07-15 Kevin Buettner <kevinb@redhat.com>
6710
6711 * aix-thread.c (ptrace_check): Eliminate goto.
6712 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6713 problem.
6714
8e2c28d4
KB
67152002-07-15 Kevin Buettner <kevinb@redhat.com>
6716
6717 * aix-thread.c (gdbcmd.h): Include.
6718 (DEBUG, DBG, DBG2, dbg): Eliminate.
6719 (debug_aix_thread): New static global.
6720 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6721 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6722 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6723 invocations to DBG and DBG2 macros to test against
6724 ``debug_aix_thread'' and call fprintf_unfiltered().
6725 (_initialize_aix_thread): Add new command "set debug aix-thread".
6726
30413464
AC
67272002-07-15 Andrew Cagney <ac131313@redhat.com>
6728
6729 From Gerhard Tonn <TON@de.ibm.com>:
6730 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6731 instead of supply_register.
6732
7c43edc1
AC
67332002-07-15 Andrew Cagney <ac131313@redhat.com>
6734
6735 * dwarf2cfi.c: Include "gdb_assert.h".
6736 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6737 non-NULL.
6738 (update_context): Do not use __func__. Add missing ``break''.
6739 (update_context): Do not use __func__.
6740
9364a0ef
EZ
67412002-07-15 Elena Zannoni <ezannoni@redhat.com>
6742
6743 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6744 and its setting. Set gdbarch instruction printing functions
6745 directly. For non-rs6000 case use new function
6746 gdb_print_insn_powerpc.
6747 (gdb_print_insn_powerpc): New function.
6748
3fbeef0b
AC
67492002-07-13 Andrew Cagney <ac131313@redhat.com>
6750
92eb23c5 6751 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6752 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6753 * configure.tgt: Mark d30v-*-* as obsolete.
6754 * d30v-tdep.c: Mark file as obsolete.
6755 * config/d30v/d30v.mt: Ditto.
6756 * config/d30v/tm-d30v.h: Ditto.
6757
aacb1f0a
AS
67582002-07-13 Aidan Skinner <aidan@velvet.net>
6759
6760 * ada-tasks.c (add_task_entry): replace calls to
6761 malloc() with xmalloc
6762 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6763
6764 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6765 ada_finish_decode_line_1, all_sals_for_line
6766 ada_breakpoint_rewrite): replace calls to free() with xfree()
6767
c11d79f2
KB
67682002-07-12 Kevin Buettner <kevinb@redhat.com>
6769
6770 From Nicholas Duffek (with minor changes by Martin Hunt,
6771 Louis Hamilton, and Kevin Buettner):
6772 * aix-thread.c: New file.
6773
8e19ed76
PS
67742002-07-12 Petr Sorfa <petrs@caldera.com>
6775
6776 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6777 complaint for invalid attribute class or form.
6778 (read_func_scope): DW_AT_frame_base
6779 better handling of DW_AT_block*.
6780 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6781 better handling of DW_AT_block*.
6782 (read_common_block): DW_AT_location
6783 better handling of DW_AT_block*.
6784 (read_partial_die): DW_AT_location better handling
6785 of DW_AT_block*.
6786 (new_symbol): DW_AT_external better handling of
6787 DW_AT_block*. Proper initialization of variable
6788 "addr".
6789 (attr_form_is_block): New function that returns true
6790 if the attribute's form is of DW_FORM_block*.
6791
295401f7
DJ
67922002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6793
6794 * valops.c (find_method_list): Remove comment about
6795 removed STATIC_MEMFUNCP argument.
6796 (value_find_oload_method_list): Likewise.
6797
e42dc924
KB
67982002-07-12 Kevin Buettner <kevinb@redhat.com>
6799
6800 From Nicholas Duffek:
6801 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6802 target_new_objfile_hook.
6803
6904b546
KB
68042002-07-12 Kevin Buettner <kevinb@redhat.com>
6805
6806 From Nicholas Duffek:
6807 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6808 csect.
6809
53fe9346
AC
68102002-07-12 Andrew Cagney <cagney@redhat.com>
6811
6812 * MAINTAINERS: Mention --enable-sim-build-warnings.
6813 (m68hc11-elf): Disable sim build warnings.
6814 (m32r-elf): Mark as broken obsolete candidate.
6815 (x86_64-linux-gnu): Mark as buildable with -Werror.
6816 (arm-elf): Change -w to ``,'' which enables warnings but not
6817 -Werror.
6818
af5f3db6
AC
68192002-07-12 Andrew Cagney <ac131313@redhat.com>
6820
6821 * bcache.h: Update copyright.
6822 (struct bstring, struct bcache): Move definition to "bcache.c".
6823 Replaced by opaque declaration.
6824 (bcache_xfree): Replace free_bcache.
6825 (bcache_xmalloc, bcache_memory_used): Declare.
6826
6827 * bcache.c: Update copyright.
6828 (struct bstring, struct bcache): Moved to here from "bcache.h".
6829 Update comments.
6830 (bcache_xmalloc, bcache_memory_used): New functions.
6831 (bcache_xfree): Replace function free_bcache.
6832
6833 * Makefile.in (objfiles.o): Add $(bcache_h).
6834 (objfiles_h): Remove $(bcache_h).
6835 (symfile.o): Add $(bcache_h).
6836
6837 * symmisc.c: Update copyright.
6838 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6839 (print_objfile_statistics): Use bcache_memory_used.
6840
6841 * symfile.c: Include "bcache.h".
6842 (reread_symbols): Use bcache_xfree.
6843 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6844 (add_psymbol_to_list): Pass psymbol_cache by value.
6845 (add_psymbol_with_dem_name_to_list): Ditto.
6846
6847 * objfiles.h: Update copyright.
6848 (struct bcache): Declare opaque. Do not include "bcache.h".
6849 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6850 bcache'' pointers.
6851 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6852
6853 * objfiles.c: Include "bcache.h". Update copyright.
6854 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6855 macro_cache.
6856 (free_objfile): Use bcache_xfree.
6857
444199e7
GS
68582002-07-11 Grace Sainsbury <graces@redhat.com>
6859
6860 * monitor.c (monitor_fetch_register): Make name a constant.
6861 (monitor_store_register): Same.
6862
261397f8
DJ
68632002-07-11 Daniel Jacobowitz <drow@mvista.com>
6864
6865 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6866 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6867 (finish_block) For non-function blocks, hash the symbol table. For
6868 function blocks, mark the symbol table as unhashed.
6869 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6870 (msymbol_hash_iw): Likewise.
6871 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6872 value.
6873 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6874 (lookup_minimal_symbol): Likewise for both.
6875 * symtab.h (struct block): Add `hashtable' flag. Comment the
6876 hashtable.
6877 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6878 (ALL_BLOCK_SYMBOLS): Update.
6879 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6880 (struct symbol): Add `hash_next' pointer.
6881 * symtab.c (lookup_block_symbol): Search using the hash table when
6882 possible.
6883 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6884 (search_symbols, find_addr_symbol): Likewise.
6885
6886 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6887 (read_dst_symtab): Likewise.
6888 * jv-lang.c (get_java_class_symtab): Likewise.
6889 * mdebugread.c: Include "gdb_assert.h".
6890 (shrink_block): Assert that the block being modified is not hashed.
6891 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6892 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6893 symbols.
6894 (dump_symtab): Recognize hashed blocks.
6895 * printcmd.c (print_frame_args): Assert that function blocks do not
6896 have hashed symbol tables.
6897 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6898 (fill_in_ada_prototype, debug_print_block): Likewise.
6899 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6900
6f0eaa01
CV
69012002-07-11 Corinna Vinschen <vinschen@redhat.com>
6902
6903 * stack.c (print_frame): Use result of frame_address_in_block()
6904 instead of fi->pc when evaluating symbols.
6905 (backtrace_command_1): Ditto.
6906
a208b0cb
AC
69072002-07-11 Andrew Cagney <cagney@redhat.com>
6908
6909 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6910 Make static.
6911
6912 * arm-tdep.c (arm_register_name): Make return type constant.
6913
a6b6b089
AC
69142002-07-10 Andrew Cagney <ac131313@redhat.com>
6915
5ae5f592
AC
6916 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6917 prototype.
6918 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6919 * s390-tdep.c (s390_fp_regnum): Ditto.
6920 (s390_read_fp): Ditto.
6921 (s390_pop_frame): Ditto.
6922 (_initialize_s390_tdep): Ditto.
6923 * remote.c (get_remote_state): Ditto.
6924 * procfs.c (mappingflags): Ditto.
6925 * memattr.c (_initialize_mem): Ditto.
6926 * mcore-tdep.c (mcore_pop_frame): Ditto.
6927 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6928 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6929 * language.c (set_case_str): Ditto.
6930 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6931 * frv-tdep.c (new_variant): Ditto.
6932 (frv_stopped_data_address): Ditto.
6933 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6934 (context_alloc): Ditto.
6935 (frame_state_alloc): Ditto.
6936 (unwind_tmp_obstack_init): Ditto.
6937 (unwind_tmp_obstack_free): Ditto.
6938 (cfi_read_fp): Ditto.
6939 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6940 (cris_pop_frame): Ditto.
6941 * c-lang.c (scanning_macro_expansion): Ditto.
6942 (finished_macro_expansion): Ditto.
6943 (c_preprocess_and_parse): Ditto.
6944 * gdbarch.sh: Ditto.
6945 * gdbarch.h, gdbarch.c: Regenerate.
6946 * config/mn10200/tm-mn10200.h: Adjust indentation.
6947 * target.c: Adjust indentation.
6948 * symtab.h: Adjust indentation.
6949 * stabsread.h: Adjust indentation.
6950 * remote-es.c: Adjust indentation.
6951 * os9kread.c: Adjust indentation.
6952
69532002-07-10 Andrew Cagney <ac131313@redhat.com>
6954
a6b6b089
AC
6955 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6956 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6957
a1789893
GS
69582002-07-10 Grace Sainsbury <graces@redhat.com>
6959
6960 * NEWS: Mention m68k, mcore multi-arching.
6961 * MAINTAINERS: Change status of m68k, mcore to reflect
6962 multi-arching.
6963
02f0d45d
DJ
69642002-07-10 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * valops.c (find_overload_match): Free oload_syms.
6967
f15f768e
JB
69682002-07-09 Joel Brobecker <brobecker@gnat.com>
6969
6970 Define HAVE_SYS_PROC_H if sys/proc.h exists
6971 * configure.in: Add check for sys/proc.h
6972 * config.in: Regenerate.
6973 * configure: Regenerate.
6974
902a7139
GS
69752002-07-09 Grace Sainsbury <graces@redhat.com>
6976
6977 * config/m68k/tm-m68k.h: Remove macros wrapped in
6978 #if !GDB_MULTI_ARCH.
6979
a534e424
AC
69802002-07-08 Andrew Cagney <ac131313@redhat.com>
6981
6982 * config.in, configure: Regenerate.
6983
9b94f7bf
MK
69842002-07-08 Mark Kettenis <kettenis@gnu.org>
6985
6986 * dwarf2cfi.c: Include "gcore.h".
6987 (execute_stack_op): Fix implementation of the
6988 DW_OP_deref and DW_OP_deref_size operators by letting do their
6989 lookup in the target.
6990
1d34db41
MK
69912002-07-07 Mark Kettenis <kettenis@gnu.org>
6992
6993 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6994 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6995 tdep->sc_sp_offset.
6996
79d5b63a
DJ
69972002-07-05 Daniel Jacobowitz <drow@mvista.com>
6998
6999 Fix PR gdb/595, gdb/602
7000 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7001 Don't call value_cast, just read the vtable pointer; update comments
7002 to match.
7003
3bb912e8
GS
70042002-07-05 Grace Sainsbury <graces@redhat.com>
7005
7006 * config/mcore/tm-mcore.h: Remove file.
7007 * config/mcore/mcore.mt: Remove definition of TM_FILE
7008 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7009
ca39387d
MK
70102002-07-05 Mark Kettenis <kettenis@gnu.org>
7011
7012 * i386bsd-tdep.c: Include "gdb_string.h".
7013
efdc1108
GS
70142002-07-04 Grace Sainsbury <graces@redhat.com>
7015
7016 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7017 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7018 mcore-tdep.
7019 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7020 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7021 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7022 (RETVAL_REGNUM): Move macros from tm-mcore.h
7023 (mcore_reg_struct_has_addr): New function.
7024 (mcore_gdbarch_init): Added initializations for the macros removed
7025 from tm-mcore.h.
7026
bb21884d
MK
70272002-07-04 Mark Kettenis <kettenis@gnu.org>
7028
7029 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7030 traditonal string branding within the ELF header.
7031
228c6d41
DJ
70322002-07-04 Daniel Jacobowitz <drow@mvista.com>
7033
7034 * symtab.c (remove_params): New function.
7035 (make_symbol_overload_list): Use it instead of cplus_demangle.
7036 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7037
2404952e
MK
70382002-07-04 Mark Kettenis <kettenis@gnu.org>
7039
e5e4acad
MK
7040 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7041
baadce09
MK
7042 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7043 New variables.
7044 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7045 and tdep->sigtramp_end.
7046 * i386obsd-nat.c: New file.
7047 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7048
2404952e
MK
7049 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7050 Don't call get_current_frame().
7051
9b4f1ba7
PM
70522002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7053
7054 * i386-nat.c (child_post_startup_inferior): New function
7055 calling i386_cleanup_dregs if
7056 I386_USE_GENERIC_WATCHPOINTS is defined.
7057 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7058 conditional to acknowledge that i386-nat.c has its
7059 own child_post_startup_inferior function.
7060
c0d1d883
MK
70612002-07-04 Mark Kettenis <kettenis@gnu.org>
7062
00f8375e
MK
7063 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7064 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7065 instead of MAX_REGISTER_RAW_SIZE.
7066 (i386_extract_return_value, i386_extract_struct_value_address):
7067 Convert to use regcache.
7068 (i386_gdbarch_init): Set max_register_raw_size and
7069 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7070 Set extract_return_value and extract_struct_value_address instead
7071 of their deprecated variants.
7072
c0d1d883
MK
7073 Convert i386 target to generic dummy frames.
7074 * i386-tdep.c: Include "symfile.h".
7075 (i386_frameless_signal_p): Consider a function to be frameless if
7076 the pc points at the first instruction of the function.
7077 (i386_frame_chain): Handle (generic) call dummies.
7078 (i386_frame_saved_pc): Likewise.
7079 (i386_frame_init_saved_regs): Remove code dealing with call
7080 dummies on the stack.
7081 (i386_push_dummy_frame): Removed.
7082 (i386_call_dummy_words): Removed.
7083 (i386_fix_call_dummy): Removed.
7084 (i386_push_return_address): New function.
7085 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7086 parameter, and don't call get_current_frame.
7087 (i386_pop_frame): New function.
7088 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7089 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7090 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7091 call_dummy_length to 0, set call_dummy_words to NULL, set
7092 sizeof_call_dummy_words to 0, set fix_call_dummy to
7093 generic_fix_call_dummy, set pc_in_call_dummy to
7094 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7095 generic_push_dummy_frame, set push_return_address to
7096 i386_push_return_address and set frame_chain_valid to
7097 generic_file_frame_chain_valid.
7098
049ee0e4
AC
70992002-07-03 Andrew Cagney <ac131313@redhat.com>
7100
7101 * gdbarch.sh (struct regcache): Add opaque declaration.
7102 (EXTRACT_RETURN_VALUE): New architecture method.
7103 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7104 * gdbarch.h, gdbarch.c: Regenerate.
7105 * arch-utils.c (legacy_extract_return_value): New function.
7106 * arch-utils.h (legacy_extract_return_value): Declare.
7107 * values.c (value_being_returned): Re-enable code handling
7108 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7109 deprecated_grub_regcache_for_registers call to block handling
7110 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7111 (EXTRACT_RETURN_VALUE): Do not define.
7112
4e0d9804
GS
71132002-07-03 Grace Sainsbury <graces@redhat.com>
7114
7115 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7116 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7117 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7118 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7119 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7120 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7121 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7122 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7123 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7124 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7125 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7126 argument so the function fits the prototype in the architecture
7127 vector.
7128 (mcore_pop_frame): Remove argument so the function fits the
7129 prototype. Use get_current_frame instead of the argument.
7130 (mcore_push_arguments): Change type of struct_return so the
7131 function can be used in the architecture vector.
7132 (mcore_store_struct_return): Add.
7133 (mcore_frame_init_saved_regs): Add.
7134 (mcore_gdbarch_init): Add function calls to replace the macros
7135 removed from tm-mcore.h
7136
36160dc4
AC
71372002-07-03 Andrew Cagney <ac131313@redhat.com>
7138
7139 * infcmd.c (print_return_value): Remove compatibility code calling
7140 deprecated_grub_regcache_for_registers.
7141
7142 * values.c: Include "regcache.h".
7143 (value_being_returned): Update. Use
7144 deprecated_grub_regcache_for_registers to extract the register
7145 buffer address.
7146 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7147 ``struct regcache''.
7148 * Makefile.in (values.o): Add dependency on $(regcache_h).
7149
7150 * inferior.h (run_stack_dummy): Change type of second parameter to
7151 a ``struct regcache''.
7152 * valops.c (hand_function_call): Change type of retbuf to ``struct
7153 regcache''. Allocate using regcache_xmalloc, clean using
7154 make_cleanup_regcache_xfree.
7155 * infcmd.c (run_stack_dummy): Update. Use
7156 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7157
7158 * regcache.c (do_regcache_xfree): New function.
7159 (make_cleanup_regcache_xfree): New function.
7160 * regcache.h (make_cleanup_regcache_xfree): Declare.
7161
e64d9b3d
MH
71622002-07-03 Martin M. Hunt <hunt@redhat.com>
7163
4dd79c29
MH
7164 * event-top.c (command_line_handler): Don't read past
7165 beginning of buffer.
e64d9b3d 7166
4dd79c29
MH
71672002-07-03 Martin M. Hunt <hunt@redhat.com>
7168
e64d9b3d
MH
7169 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7170 struct frame_id.
7171 (varobj_create): Store frame_id for root.
7172 (varobj_gen_name): Use xasprintf.
7173 (varobj_update): Save and restore frame using get_frame_id() and
7174 frame_find_by_id().
7175 (create_child): Use xasprintf.
7176 (new_root_variable): Initialize frame_id.
7177 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7178 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7179 to prevent memory leak.
7180
26e6c56a
AC
71812002-07-03 Andrew Cagney <ac131313@redhat.com>
7182
7183 * valops.c (hand_function_call): Move declaration of retbuf to
7184 start of function, allocate using malloc, add a cleanup but before
7185 the inf_status cleanup, cleanup the buffer. Rename local variable
7186 old_chain to inf_status_cleanup.
7187
f436dd25
MH
71882002-07-03 Martin M. Hunt <hunt@redhat.com>
7189
7190 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7191
7192 * cli/cli-decode.c (cmd_func_p): New function.
7193 (cmd_func): New function.
7194
7195 * command.h: Add cmd_func() and cmd_func_p().
7196
4cfe2084
GS
71972002-07-03 Grace Sainsbury <graces@redhat.com>
7198
7199 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7200 (REGISTER_SIZE): Remove.
7201 (MAX_REGISTER_RAW_SIZE): Remove.
7202 (REGISTER_VIRTUAL_TYPE): Remove.
7203 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7204 (REGISTER_NAME): Remove.
7205 (USE_GENERIC_DUMMY_FRAMES): Remove.
7206 (CALL_DUMMY): Remove.
7207 (CALL_DUMMY_START_OFFSET): Remove.
7208 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7209 (CALL_DUMMY_LOCATION): Remove.
7210 (FIX_CALL_DUMMY): Remove.
7211 (CALL_DUMMY_ADDRESS): Remove.
7212 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7213 (SAVE_DUMMY_FRAME_TOS): Remove.
7214 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7215 (mcore_register_virtual_type): New function.
7216 (mcore_register_byte): New function.
7217 (mcore_register_size): New function.
7218 (mcore_register_name): New function.
7219 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7220 macros removed from tm-mcore.h.
7221 (mcore_dump_tdep): Add.
7222 (_initialize_mcore_tdep): Add gdbarch_register call.
7223
4fd667e9
MK
72242002-07-03 Mark Kettenis <kettenis@gnu.org>
7225
7226 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7227 frameless_look_for_prologue, such that we actually call this
7228 function.
7229
42f99ac2
JB
72302002-07-02 Joel Brobecker <brobecker@gnat.com>
7231
7232 * frame.h (frame_address_in_block): New function.
7233
7234 * blockframe.c (frame_address_in_block): New function extracted
7235 from get_frame_block().
7236 (get_frame_block): Use frame_address_in_block().
7237 (block_innermost_frame): Use frame_address_in_block() to match
7238 the frame pc address against the block boundaries rather than
7239 the frame pc directly. This prevents a failure when a frame pc
7240 is actually a return-address pointing immediately after the end
7241 of the given block.
7242
103a1597 72432002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
7244
7245 * MAINTAINERS: Add self under write after approval.
7246
72472002-07-02 Grace Sainsbury <graces@redhat.com>
7248
103a1597
GS
7249 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7250 used in architecture vector. The default is
7251 m68k_local_breakpoint_from_pc.
7252 (m68k_local_breakpoint_from_pc): Add.
7253 (enum): Add register numbers from tm-m68k.h.
7254 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7255 vector.
7256 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7257 GDB_MULTI_ARCH_PARTIAL.
7258 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7259 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7260 m68k-tdep.c.
7261 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7262 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7263 to enum in m68k-tdep.c
7264
7a5a0534
JB
72652002-07-02 Joel Brobecker <brobecker@gnat.com>
7266
7267 * solib-osf.c (open_map): Compute the list of shared libraries
7268 loaded by the inferior, rather than the list of libraries loaded
7269 by GDB itself. Otherwise, GDB ends up reading the symbols from
7270 the wrong shared libraries...
7271
6f558d74
MK
72722002-07-02 Mark Kettenis <kettenis@gnu.org>
7273
b7d15bf7
MK
7274 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7275 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7276 macros.
7277 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7278 Remove functions.
7279 (FRAMELESS_SIGNAL): Remove function.
7280 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7281 i386_linux_saved_pc_after_call): Removed.
7282 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7283 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7284 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7285
6bff26de
MK
7286 * i386-tdep.c (i386_frameless_signal_p): New function.
7287 (i386_frame_chain): Deal with frameless signals.
7288 (i386_sigtramp_saved_sp): New function.
7289 (i386_frame_saved_pc): Deal with frameless signals.
7290 (i386_saved_pc_after_call): Make sure the correct value is
7291 returned just after entry into a sigtramp.
7292 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7293 i386fbsd4_sc_sp_offset): New variables.
7294 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7295 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7296 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7297 similiar to what we already did for sc_pc_offset.
7298 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7299 tdep->sc_sp_offset.
7300
6f558d74
MK
7301 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7302
145564b7
ML
73032002-07-02 Michal Ludvig <mludvig@suse.cz>
7304
7305 * config/i386/tm-x86-64linux.h: New.
7306 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7307 definitions.
7308 * config/i386/nm-x86-64.h: Rename to ...
7309 * config/i386/nm-x86-64linux.h: ... this one.
7310 * config/i386/x86-64linux.mh: Reflect the above change.
7311
3a1e71e3
MK
73122002-07-01 Mark Kettenis <kettenis@gnu.org>
7313
21d0e8a4
MK
7314 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7315 with sigcontext_addr. Add sc_sp_offset.
7316 (i386bsd_sigtramp_saved_pc): Remove prototype.
7317 (i386bsd_sicontext_addr): Add prototype.
7318 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7319 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7320 (i386_svr4_sigtramp_saved_pc): Removed.
7321 (i386_svr4_sigcontext_addr): New function.
7322 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7323 Initialize tdep->sigcontext_addr instead. Initialize
7324 tdep->sc_pc_offset and tdep->sc_sp_offset.
7325 (i386_gdbarch_init): Likewise.
7326 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7327 any more.
7328 (i386bsd_sigtramp_saved_pc): Remove function.
7329 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7330 Initialize tdep->sigcontext_addr instead. Initialize
7331 tdep->sc_pc_offset.
7332 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7333 of tdep->sigtramp_saved_pc.
7334 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7335 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7336 instead.
7337
3a1e71e3
MK
7338 * i386-tdep.c (i386_frameless_function_invocation,
7339 i386_frame_num_args, i386_frame_init_saved_regs,
7340 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7341 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7342 i386_extract_return_value, i386_store_return_value,
7343 i386_extract_struct_value_address, i386_register_virtual_type,
7344 i386_register_convertible, i386_register_convert_to_virtual,
7345 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7346 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7347 static.
7348
52e9098c
MK
73492002-07-01 Mark Kettenis <kettenis@gnu.org>
7350
77b13a25
MK
7351 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7352
52e9098c
MK
7353 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7354 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7355 this macro. Include "value.h".
7356
1b372fff
AS
73572002-06-30 Aidan Skinner <aidan@velvet.net>
7358
7359 * ada-exp.tab.c: remove as it's a generated file
7360 * ada-lex.c: remove as it's a generated file
7361
9c5045b5
MK
73622002-06-30 Mark Kettenis <kettenis@gnu.org>
7363
4a93c5bb
MK
7364 * config/i386/tm-i386.h (struct frame_info, struct
7365 frame_saved_regs, struct value, struct type): Remove forward
7366 declarations.
7367
322d4fe0
MK
7368 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7369 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7370 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7371 (FILL_FPXREGSET): Define.
7372
fdd8263d
MK
7373 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7374
482e577b
MK
7375 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7376 i[3456]86-*-netbsd* case.
7377 * config/i386/tm-obsd.h: Removed.
7378 * config/i386/obsd.mt: Removed.
7379 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7380 core-aout.o.
7381 (MH_CFLAGS): Add -DYYDEBUG=0.
7382
6916549a
MK
7383 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7384 i386nbsd_sc_pc_offset on OpenBSD too.
7385
9c5045b5
MK
7386 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7387 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7388 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7389 define.
7390 * i386bsd-tdep.c: Include "arch-utils.h".
7391 (i386bsd_aout_in_solib_call_trampoline): New function.
7392 (i386bsd_init_abi): Set in_solib_call_trampoline to
7393 i386bsd_aout_in_solib_call_trampoline.
7394 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7395 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7396
aa84d1bb
AC
73972002-06-28 Andrew Cagney <ac131313@redhat.com>
7398
7399 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7400 (struct obstack, struct bcache): Add opaque declarations.
7401 * Makefile.in (macrotab_h): Update
7402
b4d83933
AC
74032002-06-28 Andrew Cagney <ac131313@redhat.com>
7404
7405 * blockframe.c (generic_find_dummy_frame): Change return type to
7406 ``struct regcache''.
7407 (struct dummy_frame): Replace field ``registers'' with regcache, a
7408 struct regcache object.
7409 (generic_find_dummy_frame): Update.
7410 (generic_push_dummy_frame): Update. Use regcache_xfree,
7411 regcache_xmalloc and regcache_cpy.
7412 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7413 regcache_xfree.
7414 (deprecated_generic_find_dummy_frame): Update.
7415 (generic_read_register_dummy): Update. Use
7416 regcache_read_as_address.
7417 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7418 (generic_get_saved_register): Update. Use regcache_read.
7419
08c0b5bc
AC
74202002-06-28 Andrew Cagney <ac131313@redhat.com>
7421
7422 * Makefile.in (objfiles_h): Add $(bcache_h).
7423 * objfiles.h: Include "bcache.h".
7424
7425 * Makefile.in (symtab_h): Remove $(bcache_h).
7426 * symtab.h: Do not include "bcache.h".
7427
1f89801a
AC
74282002-06-28 Andrew Cagney <ac131313@redhat.com>
7429
7430 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7431 generic_func_frame_chain_valid.
7432
b9644b58
DB
74332002-06-28 David O'Brien <obrien@FreeBSD.org>
7434
7435 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7436 * config/i386/tm-fbsd.h: Likewise.
7437
dd486634
AC
74382002-06-28 Andrew Cagney <ac131313@redhat.com>
7439
7440 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7441 generic_unwind_get_saved_register.
7442
0b434a00
AC
74432002-06-27 Andrew Cagney <ac131313@redhat.com>
7444
7445 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7446 * regcache.c (supply_register): Add missing argument to
7447 register_buffer call.
7448
f30e5a77
AC
74492002-06-27 Andrew Cagney <ac131313@redhat.com>
7450
7451 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7452 Solaris /bin/grep does not not like it. From Peter Schauer.
7453
9f064c95
TT
74542002-06-26 Tom Tromey <tromey@redhat.com>
7455
7456 * command.h (add_setshow_cmd): Declare.
7457 (add_setshow_cmd_full): Declare.
7458 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7459 returns void. Use add_setshow_cmd_full.
7460 (add_setshow_cmd_full): New function.
7461 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7462 (add_setshow_boolean_cmd): Likewise.
7463
099c7589
JT
74642002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * config/vax/tm-vax.h: Protect from multiple inclusion.
7467 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7468 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7469 * config/vax/tm-vaxbsd.h: ...here. New file.
7470 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7471
1d049c5e
JT
74722002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7473
7474 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7475 (BELIEVE_PCC_PROMOTION): Remove.
7476 (AP_REGNUM): Move to...
7477 * config/vax/nm-vax.h: ...here.
7478 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7479 (vax_breakpoint_from_pc): New function.
7480 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7481 and gdbarch_believe_pcc_promotion.
7482
4791e091
JT
74832002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7484
7485 * Makefile.in (vax_tdep_h): Define.
7486 (vax-tdep.o): Use $(vax_tdep_h).
7487 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7488 (vax_dump_tdep): New function.
7489 (_initialize_vax_tdep): Register vax_dump_tdep.
7490 * vax-tdep.h: Include osabi.h.
7491 (struct gdbarch_tdep): New.
7492
da130f98
AC
74932002-06-26 Andrew Cagney <cagney@redhat.com>
7494
7495 * frame.h (deprecated_generic_find_dummy_frame): Rename
7496 generic_find_dummy_frame.
7497 * blockframe.c (generic_find_dummy_frame): Make static.
7498 (deprecated_generic_find_dummy_frame): New function.
7499 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7500 generic_find_dummy_frame with deprecated_find_dummy_frame.
7501 (sh64_nofp_frame_init_saved_regs): Ditto.
7502 (sh_fp_frame_init_saved_regs): Ditto.
7503 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7504 (s390_frame_chain): Ditto.
7505 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7506
6300c360
GS
75072002-06-26 Grace Sainsbury <graces@redhat.com>
7508
7509 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7510 gdbarch vector are at the top.
7511 (NUM_REGS): Remove.
7512 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7513 (FRAME_ARGS_ADDRESS): Remove.
7514 (FRAME_LOCALS_ADDRESS): Remove.
7515 (FRAME_NUM_ARGS): Remove.
7516 (FRAME_ARGS_SKIP): Remove.
7517 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7518 (m68k_gdbarch_init): Add gdbarch initializations for macros
7519 undefined in tm-m68k.h
7520
1c617db8
GS
75212002-06-26 Grace Sainsbury <graces@redhat.com>
7522
7523 * monitor.h: Add the function regname to monitor_ops
7524 structure. This way NUM_REGS does not have to be a constant.
7525 * monitor.c (monitor_fetch_register): Added support for regname
7526 function. The function is called if the array regnames is NULL.
7527 (monitor_store_register): Same.
da130f98
AC
7528 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7529 regnames array.
1c617db8
GS
7530 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7531 cpu32bug_cmds.regname to point to new function.
7532 * abug-rom.c (abug_regname): Same as above.
7533 (init_abug_cmds): Same.
7534 * dbug-rom.c (dbug_regname): Same as above.
7535 (init_dbug_cmds): Same.
7536 * remote-est.c (est_regname): Same.
7537 (init_est_cmds): Same.
7538 * rom68k-rom.c (rom68k_regname): Same.
7539 (init_rom68k_cmds): Same.
7540
ea9365bb
TT
75412002-06-25 Tom Tromey <tromey@redhat.com>
7542
7543 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7544
72cec141
AC
75452002-06-25 Andrew Cagney <cagney@redhat.com>
7546
7547 * infrun.c (stop_registers): Change variable's type to ``struct
7548 regcache'''.
7549 (xmalloc_inferior_status): Delete function.
7550 (free_inferior_status): Delete function.
7551 (normal_stop): Use regcache_cpy.
7552 (struct inferior_status): Change type of fields ``stop_registers''
7553 and ``registers'' to ``struct regcache''.
7554 (write_inferior_status_register): Use regcache_write.
7555 (save_inferior_status): Instead of calling
7556 xmalloc_inferior_status, allocate the inf_status buffer directly.
7557 Use regcache_dup_no_passthrough and regcache_dup to save the
7558 buffers.
7559 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7560 Replace the stop_registers regcache instead of overriding it. Use
7561 regcache_xfree. Instead of calling free_inferior_status, xfree
7562 the buffer directly.
7563 (discard_inferior_status): Use regcache_xfree. Instead of calling
7564 free_inferior_status, xfree the buffer directly.
7565 (build_infrun): Use regcache_xmalloc.
7566 (_initialize_infrun): Delete redundant call to build_infrun.
7567
7568 * Makefile.in (infcmd.o): Add $(regcache_h).
7569
7570 * infcmd.c: Include "regcache.h".
7571 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7572 obtain the address of `stop_registers' register buffer.
7573 (print_return_value): Ditto.
7574
7575 * inferior.h (struct regcache): Add opaque declaration.
7576 (stop_registers): Change variable's declared type to ``struct
7577 regcache''.
7578
defc6f8c
TT
75792002-06-24 Tom Tromey <tromey@redhat.com>
7580
c0e624e7
TT
7581 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7582 * target.c (initialize_targets): Fixed typo in
7583 trust-readonly-sections `show' documentation.
7584
defc6f8c
TT
7585 * main.c: Marked all strings with _().
7586
2b236d82
DH
75872002-06-24 Don Howard <dhoward@redhat.com>
7588
7589 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7590 that means max CORE_ADDR+1.
7591 (lookup_mem_region): Ditto.
7592 (mem_info_command): Ditto.
7593
942dc0e9
GS
75942002-06-24 Grace Sainsbury <graces@redhat.com>
7595
7596 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7597 (REGISTER_BYTES_OK): Remove.
7598 (REGISTER_BYTES): Remove.
7599 (STORE_STRUCT_RETURN): Remove.
7600 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7601 (STORE_RETURN_VALUE): Remove.
7602 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7603 (FRAME_CHAIN): Remove.
7604 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7605 (FRAME_SAVED_PC): Remove.
7606 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7607 (m68k_store_struct_return): Add.
7608 (m68k_deprecated_extract_return_value): Add.
7609 (m68k_deprecated_extract_struct_value_address): Add.
7610 (m68k_store_return_value): Add.
7611 (m68k_frame_chain): Add.
7612 (m68k_frameless_function_invocation): Add.
7613 (m68k_frame_saved_pc): Add.
7614 (m68k_gdbarch_init): added set_gdbarch calls for new
7615 functions and deleted macros.
7616
03c30d4d
TT
76172002-06-23 Tom Tromey <tromey@redhat.com>
7618
7619 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7620 (ALLDEPFILES): Likewise.
7621 (udiheaders): Removed.
7622 (udip2soc.o): Likewise.
7623 (udi2go32.o): Likewise.
7624 (udr.o): Likewise.
7625 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7626
37e71372
AC
76272002-06-22 Andrew Cagney <ac131313@redhat.com>
7628
06a6ac57
AC
7629 * infrun.c (_initialize_infrun): Delete unnecessary call to
7630 build_infrun.
7631
37e71372
AC
7632 * regcache.h: Update comments describing the regcache_cpy family
7633 of functions.
7634 (regcache_save, regcache_restore): Delete declaration.
7635 (regcache_save_no_passthrough): Delete declaration.
7636 (regcache_restore_no_passthrough): Delete declaration.
7637 * regcache.c (regcache_save): Delete function.
7638 (regcache_save_no_passthrough): Delete function.
7639 (regcache_restore): Delete function.
7640 (regcache_restore_no_passthrough): Delete function.
7641
78f6d055
AC
76422002-06-21 Andrew Cagney <ac131313@redhat.com>
7643
7644 * config/m68k/tm-m68k.h: Fix typo.
7645 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7646 (m68k_frame_init_saved_regs): Declare.
7647
78b119cb
JB
76482002-06-21 Jim Blandy <jimb@redhat.com>
7649
7650 Remove some vestiges of Harris 88k support.
7651 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7652 register numbering quirk.
7653 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7654 odd symbols occurring in Harris 88k ELF targets.
7655
0fbb3da7
TT
76562002-06-21 Tom Tromey <tromey@redhat.com>
7657
7658 * gdb_locale.h: New file.
7659 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7660 (defs_h): Added gdb_locale.h.
7661 * configure, config.in: Rebuilt.
7662 * configure.in (PACKAGE): Define.
7663 * defs.h: Include gdb_locale.h.
7664 * main.c (captured_main): Call setlocale, bindtextdomain,
7665 textdomain.
7666
456f8b9d
DB
76672002-06-21 Dave Brolley <brolley@redhat.com>
7668
7669 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7670 * config/frv/frv.mt: New file.
7671 * config/frv/tm-frv.h: New file.
7672 * configure.tgt: Support frv-*-*.
7673 * Makefile.in (frv-tdep.o): New target.
7674 * frv-tdep.c: New file.
7675 * NEWS: Mention frv.
7676
cdd463f9
DB
76772002-06-21 Dave Brolley <brolley@redhat.com>
7678
7679 * MAINTAINERS: Add self to "Write After Approval" list.
7680
5d3ed2e3
GS
76812002-06-21 Grace Sainsbury <graces@redhat.com>
7682
7683 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7684 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7685 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7686 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7687 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7688
7689 * m68k-tdep.c: Include arch-utils.h
7690 (m68k_register_raw_size): Add.
7691 (m68k_register_virtual_size): Add.
7692 (m68k_register_virtual_type): Add.
7693 (m68k_register_name): Add.
7694 (m68k_stack_align): Add.
7695 (m68k_register_byte): Add.
7696 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7697 tm-m68k.h.
7698
7f8e7424
GS
76992002-06-21 Grace Sainsbury <graces@redhat.com>
7700
a2c6a6d5 7701 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7702 m68k_find_saved_regs.
7703 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7704 references to it with frame->saved_regs.
7f8e7424
GS
7705 (m68k_gdbarch_init): Added function calls to initialize the
7706 gdbarch structure.
a2c6a6d5
GS
7707 (m68k_fix_call_dummy): Add.
7708 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7709 (CALL_DUMMY): Remove.
7710 (CALL_DUMMY_LENGTH): Remove.
7711 (CALL_DUMMY_START_OFFSET): Remove.
7712 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7713 (FIX_CALL_DUMMY): Remove.
7714 (PUSH_DUMMY_FRAME): Remove.
7715 (POP_FRAME): Remove.
7f8e7424 7716
f461f5cf
PM
77172002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7718
7719 * parse.c (parse_fprintf): New function used to avoid calls to
7720 fprintf in bison parser generated debug code.
7721 * parser-defs.h: Declaration of new parse_fprintf function.
7722 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7723 Set YYDEBUG to 1 by default.
7724 Set YYFPRINTF as parse_fprintf.
7725
7f0c12ed
ML
77262002-06-21 Michal Ludvig <mludvig@suse.cz>
7727
7728 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7729 encoding anymore.
7730 (pointer_encoding, enum ptr_encoding): New.
7731 (execute_cfa_program): Take care about pointer encoding.
7732 (dwarf2_build_frame_info): Only call parse_frame_info for
7733 .debug_frame and .eh_frame.
7734 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7735 fixed augmentation handling, added relative addressing,
7736 ignore duplicate FDEs. Added comments.
19d833a2 7737 * dwarf2cfi.c: Reindented.
7f0c12ed 7738
87c4a039
EZ
77392002-06-20 Elena Zannoni <ezannoni@redhat.com>
7740
7741 * event-top.c (command_handler): Don't use space_at_cmd_start
7742 unless there is sbrk() on the host. Assign time and space data
7743 to union fields of the appropriate length.
7744
1cf877ad
ML
77452002-06-20 Michal Ludvig <mludvig@suse.cz>
7746
7747 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7748 x86_64_register_name. Return type changed to 'const char *'.
7749 (x86_64_register_name2nr): Rename to x86_64_register_number.
7750 (x86_64_gdbarch_init): Update to reflect the change.
7751 * x86-64-tdep.h: Ditto.
7752 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7753 (supply_fpregset): Ditto.
7754
3fadccb3
AC
77552002-06-19 Andrew Cagney <cagney@redhat.com>
7756
7757 * regcache.h: Update copyright.
7758 (struct regcache, struct gdbarch): Add opaque declarations.
7759 (current_regcache): Declare global variable.
7760 (regcache_read, regcache_write): Add gdbarch parameter.
7761 (regcache_save, regcache_save_no_passthrough)
7762 (regcache_restore, regcache_restore_no_passthrough)
7763 (regcache_dup, regcache_dup_no_passthrough)
7764 (regcache_cpy, regcache_cpy_no_passthrough)
7765 (deprecated_grub_regcache_for_registers)
7766 (deprecated_grub_regcache_for_register_valid)
7767 (regcache_valid_p): Add function declarations.
7768
7769 * regcache.c: Update copyright.
7770 (regcache_descr_handle): New global variable.
7771 (struct regcache_descr): Define.
7772 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7773 (regcache_descr, xfree_regcache_descr): New functions.
7774 (struct regcache): Define.
7775 (regcache_xmalloc, regcache_xfree): New functions.
7776 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7777 (regcache_dup, regcache_dup_no_passthrough): New functions.
7778 (regcache_valid_p, regcache_read_as_address): New functions.
7779 (deprecated_grub_regcache_for_registers): New function.
7780 (deprecated_grub_regcache_for_register_valid): New function.
7781 (current_regcache): New global variable.
7782 (register_buffer): Add regcache parameter. Update calls.
7783 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7784 (read_register_gen, write_register_gen): Update register_buffer
7785 call. Test for legacy_p instead of gdbarch_register_read_p or
7786 gdbarch_register_write_p.
7787 (regcache_collect): Update register_buffer call.
7788 (build_regcache): Rewrite. Use deprecated grub functions.
7789 (regcache_save, regcache_save_no_passthrough): New functions.
7790 (regcache_restore, regcache_restore_no_passthrough): New
7791 functions.
7792 (_initialize_regcache): Create the regcache_data_handle. Swap
7793 current_regcache global variable.
7794
7795 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7796 parameter to regcache_read and regcache_write calls.
7797 (sh4_register_read): Ditto.
7798 (sh64_pseudo_register_read): Ditto.
7799 (sh64_register_read): Ditto.
7800 (sh_pseudo_register_write): Ditto.
7801 (sh4_register_write): Ditto.
7802 (sh64_pseudo_register_write): Ditto.
7803 (sh64_register_write): Ditto.
7804
7805 * defs.h (XCALLOC): Define.
7806
152d9db6
GS
78072002-06-19 Grace Sainsbury <graces@redhat.com>
7808
7809 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7810 * m68k-tdep.c (m68k_gdbarch_init): Added.
7811 (m68k_dump_tdep): Added.
7812
170911c7
DJ
78132002-06-19 Daniel Jacobowitz <drow@mvista.com>
7814
7815 * ada-lang.c (fill_in_ada_prototype): Update comment.
7816
2e4ebe70
DJ
78172002-06-19 Daniel Jacobowitz <drow@mvista.com>
7818
7819 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7820 MIPS_ABI_LAST.
7821 (mips_abi_string, mips_abi_strings): New.
7822 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7823 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7824 tdep->mips_abi_string. Honor mips_abi_string. Default to
7825 O32 if no ABI is found.
7826 (mips_dump_tdep): Use mips_abi_strings.
7827 (mips_abi_update): New function.
7828 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7829 ``set mips abi'' and ``show mips abi''. Check the size of
7830 mips_abi_strings.
7831
16775908
AC
78322002-06-19 Andrew Cagney <cagney@redhat.com>
7833
7834 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7835 constant.
7836
5051bfa4 78372002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7838
5051bfa4
JB
7839 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7840 current frame using only the first stack size adjustment. All
7841 subsequent size adjustments are not considered to be part of
7842 the "static" part of the current frame.
7843 Compute the address of the saved registers relative to the
7844 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7845 in use in this frame.
7846
56468235
DH
78472002-06-18 Don Howard <dhoward@redhat.com>
7848
7849 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7850 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7851 suggesting this solution.
7852
0b624158
AC
78532002-06-18 Andrew Cagney <ac131313@redhat.com>
7854
7855 * config/romp/xm-rtbsd.h: Delete file.
7856 * config/romp/rtbsd.mh: Delete file.
7857
221ea385
KS
78582002-06-18 Keith Seitz <keiths@redhat.com>
7859
7860 * breakpoint.c (condition_command): Post breakpoint_modify
7861 when a condition is added to an existing breakpoint.
7862 (commands_command): Likewise for commands.
7863 (set_ignore_count): Likewise for ignore counts.
7864 If no tty, do not simply return, still need to send event
7865 notification.
7866 (ignore_command): Only print a newline if the command came
7867 from a tty.
7868 Don't call breakpoints_changed, since this is now properly
7869 handled by set_ignore_count.
7870
5402eed1
AC
78712002-06-18 Andrew Cagney <cagney@redhat.com>
7872
7873 * MAINTAINERS: Note that cris-elf target can be compiled with
7874 -Werror.
7875 * cris-tdep.c (cris_register_name): Make return type constant.
7876 (cris_breakpoint_from_pc): Ditto.
7877
cc22880b
ML
78782002-06-18 Michal Ludvig <mludvig@suse.cz>
7879
7880 * frame.h (struct frame_info): Change type of context to
7881 'struct context'.
7882
fa88f677
AC
78832002-06-17 Andrew Cagney <cagney@redhat.com>
7884
7885 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7886 pointer.
7887 * gdbarch.h, gdbarch.c: Regenerate.
7888 * config/mips/tm-mips.h (mips_register_name): Update.
7889 * i386-tdep.h (i386_register_name): Update.
7890 * mips-tdep.c (mips_register_name): Update
7891 * alpha-tdep.c (alpha_register_name): Update.
7892 * arch-utils.c (legacy_register_name): Update.
7893 * arch-utils.h (legacy_register_name): Update.
7894 * avr-tdep.c (avr_register_name): Update.
7895 * ia64-tdep.c (ia64_register_name): Update.
7896 * i386-tdep.c (i386_register_name): Update.
7897 * sparc-tdep.c (sparc32_register_name): Update.
7898 (sparc64_register_name): Update.
7899 (sparclite_register_name): Update.
7900 (sparclet_register_name): Update.
7901 * sh-tdep.c (sh_generic_register_name): Update.
7902 (sh_sh_register_name): Update.
7903 (sh_sh3_register_name): Update.
7904 (sh_sh3e_register_name): Update.
7905 (sh_sh_dsp_register_name): Update.
7906 (sh_sh3_dsp_register_name): Update.
7907 (sh_sh4_register_name): Update.
7908 (sh_sh64_register_name): Update.
7909 * s390-tdep.c (s390_register_name): Update.
7910 * rs6000-tdep.c (rs6000_register_name): Update.
7911 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7912 (ns32k_register_name_32382): Update.
7913 * d10v-tdep.c (d10v_ts2_register_name): Update.
7914 (d10v_ts3_register_name): Update.
7915 * xstormy16-tdep.c (xstormy16_register_name): Update.
7916 * vax-tdep.c (vax_register_name): Update.
7917 * v850-tdep.c (v850_register_name): Update.
7918 * m68hc11-tdep.c (m68hc11_register_name): Update.
7919 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7920 (am33_register_name): Update.
7921
ea1e7ef6
GS
79222002-06-17 Grace Sainsbury <graces@redhat.com>
7923
7924 * m68k-tdep.c: Reindented.
7925
9b02dd1b
AC
79262002-06-17 Andrew Cagney <ac131313@redhat.com>
7927
7928 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7929 list of predefined types.
7930
8758dec1
MK
79312002-06-16 Mark Kettenis <kettenis@gnu.org>
7932
b6197528
MK
7933 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7934 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7935 REGISTER_CONVERT_TO_RAW): Remove defines.
7936 (i386_register_virtual_type, i386_register_convertible,
7937 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7938 Remove prototypes.
7939 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7940 macros mentioned above.
7941
82b47e62
MK
7942 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7943 (i386lynx_saved_pc_after_call): Remove prototype.
7944 * i386ly-tdep.c: Include "i386-tdep.h".
7945 (i386lynx_saved_pc_after_call): Make static. Use
7946 read_memory_nobpt instead of read_memory. Use
7947 read_memory_unsigned_integer instead of read_memory_integer.
7948 (i386lynx_init_abi): New function.
7949 (i386lynx_coff_osabi_sniffer): New function.
7950 (_initialize_i386bsd_tdep): New function.
7951
8758dec1
MK
7952 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7953 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7954 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7955 (i386_fix_call_dummy): Remove prototype.
7956 * i386-tdep.c (i386_call_dummy_words): New variable.
7957 (i386_gdbarch_init): Adjust for removal of the
7958 macros mentioned above.
7959
e9e68a56
AC
79602002-06-15 Andrew Cagney <ac131313@redhat.com>
7961
7962 * command.h (add_setshow_auto_boolean_cmd): Replace
7963 add_set_auto_boolean_cmd.
7964 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7965 add_set_auto_boolean_cmd.
7966 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7967 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7968 mask-address'' command.
7969 (show_mask_address): Add cmd parameter.
7970 * remote.c (add_packet_config_cmd): Update. Change type of
7971 set_func and show_func to cmd_sfunc_ftype.
7972 (_initialize_remote): Update `set remote Z-packet'
7973 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7974 (show_remote_protocol_e_packet_cmd): Ditto.
7975 (show_remote_protocol_E_packet_cmd): Ditto.
7976 (show_remote_protocol_P_packet_cmd): Ditto.
7977 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7978 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7979 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7980 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7981 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7982 (show_remote_protocol_Z_packet_cmd): Ditto.
7983 (show_remote_protocol_binary_download_cmd): Ditto.
7984 (show_remote_cmd): Pass NULL to all of above.
7985
fc08ec52
MK
79862002-06-15 Mark Kettenis <kettenis@gnu.org>
7987
7988 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7989 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7990 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7991 POP_FRAME): Remove defines.
7992 (i386_push_arguments, i386_store_struct_return,
7993 i386_extract_return_value, i386_store_return_value,
7994 i386_extract_struct_value_address, i386_push_dummy_frame,
7995 i386_pop_frame): Renove prototypes.
7996 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7997 macros mentioned above.
7998
e707bbc2
AC
79992002-06-15 Andrew Cagney <ac131313@redhat.com>
8000
8001 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8002 add_set_boolean_cmd.
8003 (add_setshow_cmd): New function.
8004 * command.h (add_setshow_boolean_cmd): Replace
8005 add_set_boolean_cmd.
8006 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8007 and ``set rdiromatzero''.
8008 * maint.c (_initialize_maint_cmds): Update commented out code.
8009 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8010 * target.c (initialize_targets): Update `set
8011 trust-readonly-sections'.
8012 * remote.c (_initialize_remote): Update `set remotebreak'.
8013
42fdc8df
MK
80142002-06-15 Mark Kettenis <kettenis@gnu.org>
8015
93924b6b
MK
8016 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8017 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8018 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8019 fit into multi-arch framework.
8020 (i386_breakpoint_from_pc): New function.
8021 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8022 above.
8023
42fdc8df
MK
8024 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8025 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8026 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8027 (i386_frameless_function_invocation, i386_frame_num_args,
8028 i386_frame_init_saved_regs): Remove prototypes.
8029 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8030 macros mentioned above.
8031
9773a94b
AC
80322002-06-15 Andrew Cagney <ac131313@redhat.com>
8033
8034 * cli/cli-decode.c (set_cmd_cfunc): Update.
8035 (set_cmd_sfunc): Update.
8036 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8037 (set_cmd_sfunc, set_cmd_cfunc): Update.
8038 * cli/cli-decode.h: Update.
8039
6e157172
MK
80402002-06-15 Mark Kettenis <kettenis@gnu.org>
8041
8042 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8043 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8044
7f19b9a2
AC
80452002-06-15 Andrew Cagney <ac131313@redhat.com>
8046
8047 * defs.h (auto_boolean): Declare enum.
8048 * command.h (cmd_auto_boolean): Delete enum.
8049 * mips-tdep.c (mask_address_var): Update.
8050 (mips_mask_address_p): Update.
8051 (show_mask_address): Update.
8052 * remote.c (struct packet_config): Update.
8053 (update_packet_config): Update.
8054 (show_packet_config_cmd): Update.
8055 (packet_ok): Update.
8056 (add_packet_config_cmd): Update.
8057 (_initialize_remote):
8058 * command.h: Update.
8059 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8060 (do_setshow_command): Update.
8061 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8062 * cli/cli-decode.h: Update.
8063
1cf88de5
MK
80642002-06-15 Mark Kettenis <kettenis@gnu.org>
8065
22ba8cf2
MK
8066 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8067 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8068 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8069 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8070 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8071 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8072
762c5349
MK
8073 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8074 list of DJGPP COFF targets.
8075
091198bb
MK
8076 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8077 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8078 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8079 (FP0_REGNUM): Remove define.
8080 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8081 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8082 (i386_register_virtual_size): Remove protoype.
8083 * i386-tdep.c (i386_register_virtual_size): Removed.
8084 (i386_extract_return_value, i386_store_return_value): Use
8085 FP0_REGNUM instead of NUM_FREGS to determine whether the
8086 floating-point registers are available.
8087 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8088 Adjust for removal of macros mentioned above.
8089
80902002-06-15 Mark Kettenis <kettenis@gnu.org>
8091
fcc9bf01
MK
8092 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8093 comments.
8094 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8095 Remove prototypes.
8096 (supply_gregset, fill_gregset): Remove use of register keyword and
8097 remove declaration for regmap. Use I386_NUM_GREGS instead of
8098 NUM_REGS and NUM_FREGS.
8099 (FPREGSET_FSAVE_OFFSET): Remove.
8100 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8101 NUM_FREGS to determine whether the floating-point registers are
8102 available.
8103
65e78234
MK
8104 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8105 gnu_store_registers): Replace usage of NUM_GREGS with
8106 I386_NUM_GREGS.
8107
98df6387
MK
8108 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8109 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8110 usage of NUM_GREGS with I386_NUM_GREGS.
8111
099a9414
MK
8112 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8113
57976e88
MK
8114 * i386bsd-nat.c: Include "i386-tdep.h".
8115 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8116 I386_NUM_GREGS.
8117
b335f4a6
MK
8118 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8119 and associated comment. They no longer make any sense, since we
8120 don't use this file anymore on Linux.
8121
1cf88de5
MK
8122 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8123 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8124 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8125 elements in these arrays.
8126 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8127 MAX_NUM_REGS.
8128
daa66587
MK
81292002-06-15 Mark Kettenis <kettenis@gnu.org>
8130
8131 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8132 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8133
26e9b323
AC
81342002-06-14 Andrew Cagney <cagney@redhat.com>
8135
8136 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8137 EXTRACT_RETURN_VALUE.
8138 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8139 EXTRACT_STRUCT_VALUE_ADDRESS.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141
8142 * values.c (value_being_returned): Handle
8143 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8144 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8145
8146 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8147 * arm-tdep.c (arm_gdbarch_init): Update.
8148 * avr-tdep.c (avr_gdbarch_init): Update.
8149 * cris-tdep.c (cris_gdbarch_init): Update.
8150 * d10v-tdep.c (d10v_gdbarch_init): Update.
8151 * ia64-tdep.c (ia64_gdbarch_init): Update.
8152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8153 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8154 * s390-tdep.c (s390_gdbarch_init): Update.
8155 * sh-tdep.c (sh_gdbarch_init): Update.
8156 * s390-tdep.c (s390_gdbarch_init): Update.
8157 * sparc-tdep.c (sparc_gdbarch_init): Update.
8158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8159 * v850-tdep.c (v850_gdbarch_init): Update.
8160 * vax-tdep.c (vax_gdbarch_init): Update.
8161 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8163
8164 * config/arc/tm-arc.h: Update.
8165 * config/d30v/tm-d30v.h: Update.
8166 * config/fr30/tm-fr30.h: Update.
8167 * config/h8300/tm-h8300.h: Update.
8168 * config/h8500/tm-h8500.h: Update.
8169 * config/i386/tm-i386.h: Update.
8170 * config/i386/tm-ptx.h: Update.
8171 * config/i386/tm-symmetry.h: Update.
8172 * config/i960/tm-i960.h: Update.
8173 * config/m32r/tm-m32r.h: Update.
8174 * config/m68k/tm-delta68.h: Update.
8175 * config/m68k/tm-linux.h: Update.
8176 * config/m68k/tm-m68k.h: Update.
8177 * config/m88k/tm-m88k.h: Update.
8178 * config/mcore/tm-mcore.h: Update.
8179 * config/mips/tm-mips.h: Update.
8180 * config/mn10200/tm-mn10200.h: Update.
8181 * config/pa/tm-hppa.h: Update.
8182 * config/pa/tm-hppa64.h: Update.
8183 * config/sparc/tm-sp64.h: Update.
8184 * config/sparc/tm-sparc.h: Update.
8185 * config/sparc/tm-sparclet.h: Update.
8186 * config/z8k/tm-z8k.h: Update.
8187
5179e78f
AC
81882002-06-14 Andrew Cagney <cagney@redhat.com>
8189
8190 * Makefile.in (i386_linux_tdep_h): Define.
8191 (i386_tdep_h, i387_tdep_h): Define.
8192 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8193 $(i386_tdep_h) and $(i387_tdep_h).
8194 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8195
8201327c
MK
81962002-06-14 Mark Kettenis <kettenis@gnu.org>
8197
edf393ac
MK
8198 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8199 Already covered by the default.
8200
896fb97d
MK
8201 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8202 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8203 (i386_gdbarch_init): Initialize long_double_format and long_double
8204 bit.
8205
8201327c
MK
8206 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8207 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8208 Move these to ...
8209 * config/i386/i386sol2.mh: ... here.
8210 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8211 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8212 (SIGCONTEXT_PC_OFFSET): Remove define.
8213 (IN_SIGTRAMP): Remove define.
8214 * i386-sol2-tdep.c: New file.
8215
8216 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8217 * config/i386/tm-i386nw.h: Removed.
8218
8219 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8220 USE_STRUCT_CONVENTION): Remove defines.
8221 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8222 (get_longjmp_target): Remove prototype.
8223 (IN_SIGTRAMP): Remove define.
8224 (i386bsd_in_sigtramp): Remove prototype.
8225 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8226 function. Update comment accordingly
8227 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8228 (FRAME_SAVED_PC): Remove define.
8229 (i386bsd_frame_saved_pc): Remove prototype.
8230 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8231 GET_LONGJMP_TARGET): Remove defines.
8232 (get_longjmp_target): Remove prototype.
8233 (IN_SIGTRAMP): Remove define.
8234 (i386bsd_in_sigtramp): Remove prototype.
8235 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8236 function. Update comment accordingly
8237 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8238 (FRAME_SAVED_PC): Remove define.
8239 (i386bsd_frame_saved_pc): Remove prototype.
8240 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8241 Remove prototype.
8242 (USE_STRUCT_CONVENTION): Remove prototype.
8243 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8244 declaration.
8245 (_initialize_i386bsd_nat): Revise logic to determine some
8246 constants at compile time when compiling a native GDB. Warn if
8247 things don't match up with what we expect.
8248 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8249 Remove variables.
8250 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8251 to use date stored in `struct gdbarch_tdep'.
8252 (i386bsd_sigcontext_offset): Remove varaible.
8253 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8254 stored in `struct gdbarch_tdep'.
8255 (i386bsd_frame_saved_pc): Make static.
8256 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8257 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8258 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8259 i386fbsd4_sc_pc_offset): New variables.
8260 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8261 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8262 functions.
8263 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8264 functions.
8265 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8266 Modify the value of i386fbsd_sigtramp_start and
8267 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8268 i386fbsd_sigtramp_end.
8269 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8270 function.
8271
8272 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8273 define to i386-linux-tdep.h.
8274 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8275 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8276 defines.
8277 (i386_linux_register_name, i386_linux_register_byte,
8278 i386_linux_register_raw_size): Remove prototypes.
8279 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8280 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8281 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8282 TARGET_WRITE_PC): Remove defines.
8283 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8284 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8285 i386_linux_write_pc): Remove prototypes.
8286 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8287 (get_longjmp_target): Remove prototype.
8288 * i386-linux-tdep.h: New file.
8289 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8290 * i386-linux-tdep.c: Include "i386-tdep.h" and
8291 "i386-linux-tdep.h".
8292 (i386_linux_register_name, i386_linux_register_byte,
8293 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8294 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8295 Make static.
8296 (i386_linux_init_abi): New function.
8297 (_initialize_i386_linux_tdep): New function.
8298
8299 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8300 (i386_saved_pc_after_call): Remove prototype.
8301 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8302 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8303 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8304 (i386_register_name, i386_stab_reg_to_regnum,
8305 i386_dwarf_reg_to_regnum): Remove prototypes.
8306 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8307 SIZEOF_SSE_REGS): Remove defines.
8308 (REGISTER_BYTES): Remove define.
8309 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8310 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8311 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8312 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8313 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8314 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8315 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8316 (get_longjmp_target): Remove prototype.
8317 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8318 (sigtramp_saved_pc): Remove define.
8319 (i386v4_sigtramp_saved_pc): Remove prototype.
8320 * config/i386/tm-go32.h (FRAME_CHAIN,
8321 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8322 (i386go32_frame_saved_pc): Remove prototype.
8323 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8324 (get_longjmp_target): Remove prototype.
8325 * i386-tdep.h: Include "osabi.h".
8326 (enum i386_abi): Removed.
8327 (enum struct_return): New enum.
8328 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8329 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8330 sc_pc_offset members.
8331 (i386_gdbarch_register_os_abi): Remove prototype.
8332 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8333 I386_SSE_NUM_REGS): New defines.
8334 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8335 I386_SSE_SIZEOF_REGS): New defines.
8336 (i386_register_name, i386_register_byte, i386_register_raw_size):
8337 New prototypes.
8338 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8339 (i386bsd_sigtramp_saved_pc): New prototype.
8340 * i386-tdep.c: Don't include "elf-bfd.h".
8341 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8342 i386_frame_chain, i386_saved_pc_after_call): Make static.
8343 (i386_frame_saved_pc): Rewrite to call architecture dependent
8344 function to deal with signal handlers. Make static.
8345 (i386go32_frame_saved_pc): Removed.
8346 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8347 Removed.
8348 (i386_get_longjmp_target): New function.
8349 (default_struct_convention, pcc_struct_convention,
8350 reg_struct_convention, valid_conventions, struct_convention): New
8351 variables.
8352 (i386_use_struct_convention): New function.
8353 (i386v4_sigtramp_saved_pc): Renamed to
8354 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8355 (i386_pc_in_sigtramp): New function.
8356 (i386_abi_names): Removed.
8357 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8358 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8359 Removed.
8360 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8361 i386_gdbarch_register_os_abi): Removed.
8362 (struct i386_abi_handler): Removed.
8363 (i386_abi_handler_list): Removed.
8364 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8365 functions.
8366 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8367 i386_nw_init_abi): New functions.
8368 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8369 Use set_gdbarch_xxx() calls instead of relying on macros for a
8370 number of calls.
8371 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8372 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8373 Register the various architecture variants defined in this file.
8374
ad2f7632
DJ
83752002-06-14 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8378 (struct main_type): Remove arg_types member. Update comments for
8379 struct field.
8380 (TYPE_ARG_TYPES): Remove.
8381 (TYPE_FN_FIELD_ARGS): Update.
8382 (smash_to_method_type): Update prototype.
8383
8384 * c-typeprint.c (cp_type_print_method_args): Take method type
8385 instead of argument list. Use new argument layout. Simplify.
8386 (c_type_print_args): Use new argument layout. Simplify.
8387 (c_type_print_base): Update call to cp_type_print_method_args.
8388 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8389 argument; use die->type instead. Update call to
8390 smash_to_method_type.
8391 (read_structure_scope): Update call to dwarf2_add_member_fn.
8392 * gdbtypes.c (allocate_stub_method): Update comment.
8393 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8394 Use new argument layout.
8395 (check_stub_method): Use new argument layout. Don't count
8396 void as an argument.
8397 (print_arg_types): Update comments. Use new argument layout.
8398 (recursive_dump_type): Don't print arg_types member.
8399 * hpread.c (hpread_read_struct_type): Use new argument layout.
8400 (fixup_class_method_type): Likewise.
8401 (hpread_type_lookup): Likewise.
8402 * stabsread.c (read_type): Update calls to read_args and
8403 smash_to_method_type.
8404 (read_args): Use new argument layout. Simplify.
8405 * valops.c (typecmp): Use new argument layout. Update parameters
8406 and comments. Simplify.
8407 (hand_function_call): Use new argument layout.
8408 (search_struct_method): Update call to typecmp.
8409 (find_overload_match): Use new argument layout.
8410
6da02953
DJ
84112002-06-13 Daniel Jacobowitz <drow@mvista.com>
8412
8413 * NEWS: Mention multithreaded debug support for gdbserver.
8414
519b2366
DJ
84152002-06-13 Daniel Jacobowitz <drow@mvista.com>
8416
8417 * MAINTAINERS: Mention NEWS.
8418
6c0d6680
DJ
84192002-06-13 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8422 (struct mips_objfile_private, compare_pdr_entries): New.
8423 (non_heuristic_proc_desc): Read the ".pdr" section if it
8424 is present.
8425
6529d2dd
AC
84262002-06-12 Andrew Cagney <ac131313@redhat.com>
8427
8428 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8429 (arm_debug): New static variable.
8430 (_initialize_arm_tdep): Add ``set debug arm'' command.
8431
26216b98
AC
84322002-06-12 Andrew Cagney <ac131313@redhat.com>
8433
8434 * Makefile.in (sim_arm_h): Define.
8435 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8436 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8437 (arm_register_sim_regno): New function, map an internal REGNUM
8438 onto a simulator register number.
8439 (arm_gdbarch_init): Set register_sim_regno.
8440
814b3ba0
AH
84412002-06-09 Aldy Hernandez <aldyh@redhat.com>
8442
8443 * MAINTAINERS: Add self.
8444
475b0867
JB
84452002-06-11 Jim Blandy <jimb@redhat.com>
8446
919d772c
JB
8447 * source.c (source_info): Mention whether the symtab has
8448 information about preprocessor macros.
8449
475b0867
JB
8450 Call the command `info macro', not `show macro'.
8451 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8452 Fix error message.
8453 (_initialize_macrocmd): Register `info_macro_command' in
8454 `infolist', not `showlist'.
8455
9e364162
DJ
84562002-06-11 Daniel Jacobowitz <drow@mvista.com>
8457
8458 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8459 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8460 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8461 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8462 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8463 unconditionally.
8464 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8465 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8466 (_initialize_mips_tdep): Remove dead code.
8467 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8468 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8469 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8470 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8471 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8472 MIPS_LAST_FP_ARG_REGNUM): Remove.
8473
23aa4c72
ML
84742002-06-11 Michal Ludvig <mludvig@suse.cz>
8475
8476 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8477 (unwind_tmp_obstack_free, parse_frame_info)
8478 (update_context, cfi_read_fp, cfi_write_fp)
8479 (cfi_frame_chain, cfi_init_extra_frame_info)
8480 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8481 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8482
70eb15a4
CV
84832002-06-11 Corinna Vinschen <vinschen@redhat.com>
8484
8485 * v850-tdep.c (v850_type_is_scalar): New function.
8486 (v850_use_struct_convention): Match current gcc implementation
8487 as close as possible.
8488 (v850_push_arguments): Fix stack_offset handling. Don't write
8489 struct_addr into register. This is done by v850_store_struct_return.
8490 (v850_extract_return_value): Care for structs.
8491 (v850_store_return_value): Ditto.
8492 (v850_store_struct_return): Actually write address.
8493
482a4d06
ML
84942002-06-11 Michal Ludvig <mludvig@suse.cz>
8495
8496 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8497 without debug information too.
8498
d855c300
AC
84992002-06-10 Andrew Cagney <ac131313@redhat.com>
8500
8501 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8502 Make multi-arch pure.
8503 * gdbarch.h, gdbarch.c: Re-generate.
8504 * arm-tdep.c (arm_print_float_info): Update.
8505 * arch-utils.h (default_print_float_info): Update.
8506 * arch-utils.c (default_print_float_info): Update.
8507 * infcmd.c (float_info): Update call.
8508
dd12a101
AC
85092002-06-10 Andrew Cagney <ac131313@redhat.com>
8510
8511 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8512 the front of the initialize list.
8513
101dcfbe
AC
85142002-06-10 Andrew Cagney <ac131313@redhat.com>
8515
8516 * infrun.c (struct inferior_status): Replace fields
8517 selected_frame_address and selected_level with field
8518 selected_frame_id.
8519 (save_inferior_status): Update. Use get_frame_id.
8520 (struct restore_selected_frame_args): Delete.
8521 (restore_selected_frame): Update. Use frame_find_by_id.
8522 (restore_inferior_status): Update.
8523
8524 * breakpoint.h (struct breakpoint): Change type of
8525 watchpoint_frame to frame_id.
8526 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8527 call to get_current_frame.
8528 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8529 get_current_frame.
8530 (watchpoint_check): Use frame_find_by_id.
8531
8532 * frame.h (record_selected_frame): Delete declaration.
8533 * stack.c (record_selected_frame): Delete function.
8534
8535 * frame.h (struct frame_id): Define.
8536 (get_frame_id): Declare.
8537 (frame_find_by_id): Declare.
8538 * frame.c (frame_find_by_id): New function.
8539 (get_frame_id): New function.
8540
304270b6
AV
85412002-06-10 Andrey Volkov <avolkov@transas.com>
8542
8543 * ser-e7kpc.c: Fix duplicated define and call of
8544 _initialize_ser_e7000pc
8545
2f2cf184
DJ
85462002-06-09 Daniel Jacobowitz <drow@mvista.com>
8547
8548 * signals/signals.c (target_signal_from_host): Fix #ifdef
8549 SIGRTMIN case.
8550 (do_target_signal_to_host): Likewise.
8551
caaa3122
DJ
85522002-06-09 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * mips-tdep.c (mips_find_abi_section): New function.
8555 (mips_gdbarch_init): Call it.
8556
6ac5df3a
MK
85572002-06-09 Mark Kettenis <kettenis@gnu.org>
8558
8559 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8560 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8561 after Andrew's 2002-06-08 gdbarch change.
8562
82ea117a
MK
85632002-06-09 Mark Kettenis <kettenis@gnu.org>
8564
8565 * i386-linux-nat.c (suppy_gregset): Don't supply
8566 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8567 register cache.
8568 (fill_gregset): Don't fetch it under the same circumstances.
8569
3c25f8c7
AC
85702002-06-09 Andrew Cagney <cagney@redhat.com>
8571
8572 * Makefile.in (callback_h): Define.
8573 (remote_sim_h): Update path to remote-sim.h.
8574 (remote-rdp.o): Add $(callback_h).
8575 (remote-sim.o): Use $(callback_h).
8576 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8577 * remote-rdp.c: Include "gdb/callback.h".
8578
1029b7fa
MK
85792002-06-09 Mark Kettenis <kettenis@gnu.org>
8580
8581 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8582 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8583
616675d3
AC
85842002-06-08 Andrew Cagney <ac131313@redhat.com>
8585
a3efda28
AC
8586 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8587 * rdi-share/serpardr.c: Ditto.
8588 * rdi-share/unixcomm.c: Ditto.
8589 * rdi-share/serdrv.c: Ditto.
8590 * rdi-share/hostchan.h: Ditto.
8591 * rdi-share/hostchan.c: Ditto.
8592 * rdi-share/host.h: Ditto.
8593 * rdi-share/devsw.c: Ditto.
8594
c5f10366
AC
8595 * objfiles.h: Change type of obj_private to void pointer.
8596 * pa64solib.c: Update copyright. Don't include "assert.h", use
8597 strcmp instead of STREQ, use LONGEST, do not use PTR
8598 * somsolib.c: Ditto.
8599
616675d3
AC
8600 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8601 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8602 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8603
e4b415d9
AC
86042002-06-08 Andrew Cagney <ac131313@redhat.com>
8605
8606 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8607 (default_get_saved_register): Delete function.
8608 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8609 generic_unwind_get_saved_register.
8610 * gdbarch.h, gdbarch.c: Re-generate.
8611
ca0d0b52
AC
86122002-06-08 Andrew Cagney <ac131313@redhat.com>
8613
8614 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8615 generic_func_frame_chain_valid.
8616 * gdbarch.h, gdbarch.c: Re-generate.
8617 * blockframe.c (generic_func_frame_chain_valid): Only check
8618 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8619 passing FP to PC_IN_CALL_DUMMY.
8620 Fix PR gdb/360.
8621
76860b5f
AC
86222002-06-08 Andrew Cagney <ac131313@redhat.com>
8623
8624 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8625 (register_gdbarch_data): Initialize init_p.
8626 (gdbarch_data): Initialize data pointer using the init function.
8627 (init_gdbarch_data): Delete function.
8628 (gdbarch_update_p): Update.
8629 (initialize_non_multiarch): Update.
8630 (struct gdbarch): Add field initialized_p.
8631 * gdbarch.h, gdbarch.c: Re-generate.
8632
8dda9770
ML
86332002-06-07 Michal Ludvig <mludvig@suse.cz>
8634
8635 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8636 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8637 better do the things actually here.
8638 * x86-64-tdep.c (x86_64_register_name2nr): New.
8639 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8640 (x86_64_gdbarch_init): Respect the above change.
8641 * x86-64-tdep.h (x86_64_register_name2nr)
8642 (x86_64_register_nr2name): Add prototypes.
8643 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8644
3d79a47c
MS
86452002-06-06 Michael Snyder <msnyder@redhat.com>
8646
7bd91a28
MS
8647 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8648 Delete extra braces and re-indent.
8649 (d10v_store_return_value): Char return values
3d79a47c
MS
8650 must be shifted over by one byte in R0.
8651 (d10v_extract_return_value): Delete extra braces, re-indent.
8652
095a4c96
EZ
86532002-06-06 Elena Zannoni <ezannoni@redhat.com>
8654
8655 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8656 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8657 (d10v_integer_to_address): Rewrite.
8658 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8659 the d10v specific functions which take care of converting to the
8660 correct space.
8661
e8a77ca4
EZ
86622002-06-06 Elena Zannoni <ezannoni@redhat.com>
8663
8664 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8665 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8666
4f2e4a4f
AC
86672002-06-02 Andrew Cagney <ac131313@redhat.com>
8668
8669 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8670 includes.
8671 * config/tm-linux.h: Ditto.
8672 * config/alpha/tm-alphalinux.h: Ditto.
8673 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8674 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8675 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8676 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8677 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8678 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8679 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8680 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8681 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8682 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8683 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8684 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8685 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8686 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8687 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8688 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8689 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8690 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8691 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8692 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8693 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8694 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8695 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8696 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8697 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8698 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8699 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8700 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8701 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8702 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8703 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8704 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8705 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8706 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8707 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8708 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8709 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8710
ae2ab2ce
AS
87112002-05-04 Aidan Skinner <aidan@velvet.net>
8712
8713 * ada-exp.tab.c: New file
8714 * ada-exp.y: New file
8715 * ada-lang.c: New file
8716 * ada-lang.h: New file
8717 * ada-lex.c: New file
8718 * ada-lex.l: New file
8719 * ada-tasks.c: New file
8720 * ada-typeprint.c: New file
8721 * ada-valprint.c: New file
8722
0ddd0135
JT
87232002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8724
8725 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8726 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8727
750fbacc
JT
87282002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8729
8730 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8731 insetead of ppc-linux-tdep.o.
8732 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8733 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8734
df94e18a
AC
87352002-06-02 Andrew Cagney <ac131313@redhat.com>
8736
8737 2002-05-07 Christian Groessler <chris@groessler.org>
8738 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8739 bit register contents for little endian hosts.
8740
1a38ab75
AC
87412002-06-01 Andrew Cagney <ac131313@redhat.com>
8742
8743 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8744 any maintainer.
8745
8b1632ac
AC
87462002-06-01 Andrew Cagney <ac131313@redhat.com>
8747
8748 * gdbarch.h: Regenerate.
8749
627054c8
AC
87502002-06-01 Andrew Cagney <ac131313@redhat.com>
8751
8752 * MAINTAINERS: Add everyone to write-after-approval list.
8753
4f460812
AC
87542002-06-01 Andrew Cagney <ac131313@redhat.com>
8755
8756 * stack.c (frame_info): Use frame_register_unwind instead of
8757 saved_regs. Mention when the SP is on the stack or in a register.
8758
8759 * frame.h (frame_register_unwind_ftype): Define. Document.
8760 (struct frame_info): Add field register_unwind and
8761 register_unwind_cache.
8762 (frame_register_unwind): Declare.
8763 (generic_unwind_get_saved_register): Declare.
8764
8765 * frame.c (frame_register_unwind): New function.
8766 (generic_unwind_get_saved_register): New function.
8767
8768 * blockframe.c (generic_call_dummy_register_unwind): New function.
8769 (frame_saved_regs_register_unwind): New function.
8770 (set_unwind_by_pc): New function.
8771 (create_new_frame): New function.
8772 (get_prev_frame): New function.
8773
de888f76
AC
87742002-05-30 Andrew Cagney <ac131313@redhat.com>
8775
8776 * a29k-share/: Delete directory.
8777 * remote-vx29k.c: Delete file.
8778
2f2c3626
JT
87792002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8780
8781 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8782 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8783
9ce5c36a
JT
87842002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8785
8786 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8787 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8788 (sparc64nbsd-nat.o)
8789 (sparcnbsd-nat.o)
8790 (sparcnbsd-tdep.o): New dependency lists.
8791 * NEWS: Note new UltraSPARC NetBSD native configuration.
8792 * configure.host (sparc64-*-netbsd*): New host.
8793 * configure.tgt (sparc-*-netbsdelf*)
8794 (sparc-*-netbsd*): Set gdb_target to nbsd.
8795 (sparc64-*-netbsd*): New target.
8796 * sparc64nbsd-nat.c: New file.
8797 * sparcnbsd-nat.c: New file.
8798 * sparcnbsd-tdep.c: New file.
8799 * sparcnbsd-tdep.h: New file.
8800 * config/sparc/nbsd.mt: New file.
8801 * config/sparc/nbsd64.mh: New file.
8802 * config/sparc/nbsd64.mt: New file.
8803 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8804 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8805 (HOST_IPC): Remove.
8806 * config/sparc/nbsdaout.mt: Remove.
8807 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8808 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8809 (HOST_IPC): Remove.
8810 * config/sparc/nbsdelf.mt: Remove.
8811 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8812 sparc-nat.c compatiblity defines.
8813 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8814 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8815 * config/sparc/tm-nbsd64.h: New file.
8816 * config/sparc/tm-nbsdaout.h: Remove.
8817 * config/sparc/xm-nbsd.h: Remove.
8818
ef3cf062
JT
88192002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8822 * sparc-tdep.c: Include osabi.h.
8823 (gdbarch_tdep): Add osabi member.
8824 (_initialize_sparc_tdep): Use gdbarch_register.
8825 (sparc_gdbarch_init): Use generic OS ABI framework.
8826 (sparc_dump_tdep): New function.
8827
ee8ff470
KB
88282002-05-30 Kevin Buettner <kevinb@redhat.com>
8829
8830 * corefile.c (do_captured_read_memory_integer): Return non-zero
8831 result.
8832 (safe_read_memory_integer): Copy result of memory read when
8833 status is non-zero. Also, add comments.
8834
7b112f9c
JT
88352002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * Makefile.in (ppc_tdep_h): Define.
8838 (ppc-linux-nat.o)
8839 (ppc-linux-tdep.o)
8840 (rs6000-tdep.o): Use $(ppc_tdep_h).
8841 (ppc-sysv-tdep.o)
8842 (ppcnbsd-nat.o)
8843 (ppcnbsd-tdep.o): New dependency lists.
8844 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8845 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8846 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8847 (ppc_sysv_abi_broken_use_struct_convention)
8848 (ppc_sysv_abi_use_struct_convention)
8849 (ppc_sysv_abi_push_arguments): Move to...
8850 * ppc-sysv-tdep.c: ...here.
8851 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8852 * rs6000-tdep.c (process_note_abi_tag_sections)
8853 (get_elfosabi): Remove.
8854 (rs6000_gdbarch_init): Use generic OS ABI framework.
8855 (rs6000_dump_tdep): New function.
8856 (_initialize_rs6000_tdep): Use gdbarch_register.
8857 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8858 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8859 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8860 of ppc-linux-tdep.o.
8861 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8862 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8863 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8864 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8865 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8866 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8867
480dd42a
JB
88682002-05-29 Jim Blandy <jimb@redhat.com>
8869
8870 * macroscope.c (default_macro_scope): Put `void' in empty argument
8871 list.
8872
4182591f
AC
88732002-05-29 Andrew Cagney <ac131313@redhat.com>
8874
8875 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8876 * arch-utils.c: Include "sim-regno.h".
8877 * gdbarch.sh: Don't include "sim-regno.h".
8878 * gdbarch.h, gdbarch.c: Regenerate.
8879 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8880 here.
8881 * arch-utils.h (legacy_register_sim_regno): To here.
8882 * remote-sim.c (legacy_register_sim_regno): Move function from
8883 here.
8884 * arch-utils.c (legacy_register_sim_regno): To here.
8885
8238d0bf
AC
88862002-05-28 Andrew Cagney <ac131313@redhat.com>
8887
8888 * sim-regno.h: New file.
8889 * Makefile.in (sim_regno_h): Define.
8890 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8891 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8892 (legacy_register_sim_regno): New function.
8893 (one2one_register_sim_regno): New function.
8894 (gdbsim_fetch_register): Rewrite.
8895 (gdbsim_store_register): Only store a register when
8896 REGISTER_SIM_REGNO is valid.
8897 * d10v-tdep.c: Include "sim-regno.h".
8898 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8899 (d10v_ts3_register_sim_regno): Ditto.
8900 * gdbarch.sh: Include "sim-regno.h".
8901 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8902 * gdbarch.h, gdbarch.c: Regenerate.
8903 * arch-utils.h (default_register_sim_regno): Delete declaration.
8904 * arch-utils.c (default_register_sim_regno): Delete function.
8905
485721b1
JT
89062002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8907
8908 * ppcnbsd-nat.c: Rewrite.
8909 * ppcnbsd-tdep.c: New file.
8910 * ppcnbsd-tdep.h: New file.
8911 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8912 solib.o, and solib-svr4.o.
8913 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8914 nbsd-tdep.o, and corelow.o.
8915
697f244d
AC
89162002-05-28 Andrew Cagney <ac131313@redhat.com>
8917
8918 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8919 `tr' and `sed'. Mention that `broken' targets are not expected to
8920 build.
8921
f08caad1 89222002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8923
8924 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8925 Let PC point right after the prologue before looking up symbols.
8926
3139facc
MH
89272002-05-27 Martin M. Hunt <hunt@redhat.com>
8928
8929 * i386-tdep.c (i386_register_virtual_type): Return
8930 builtin_type_vec128i for SSE registers.
8931
8932 * gdbtypes.h (builtin_type_vec128i): Declare.
8933
8934 * gdbtypes.c (build_builtin_type_vec128i): New function.
8935 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8936 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8937 (build_gdbtypes): Initialize new builtin vector types.
8938 (_initialize_gdbtypes): Register new vector types with gdbarch.
8939
6e3ba3b8
JT
89402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8941
8942 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8943 since it has been multi-arch'd.
8944 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8945 Move Alpha and VAX multi-arch news entries to same section
8946 as other multi-arch news.
8947
93d5585d
JT
89482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8949
8950 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8951 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8952 static. Rename some register numbers to put them in ns32k-tdep
8953 private namespace.
8954 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8955 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8956 functions.
8957 (_initialize_ns32k_tdep): Use gdbarch_register.
8958 * ns32k-tdep.h: New file.
8959 * ns32knbsd-tdep.c: New file.
8960 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8961 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8962 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8963 REGISTER_BYTES, REGISTER_BYTE): Remove.
8964 * config/ns32k/tm-ns32k.h: New file.
8965 * config/ns32k/tm-umax.h: Remove.
8966
efb2c70e
JT
89672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8968
8969 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8970 ns32k_store_struct_return, ns32k_extract_return_value,
8971 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8972 functions.
8973 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8974 ns32k_saved_pc_after_call.
8975 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8976 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8977 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8978 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8979 ns32k_extract_struct_value_address.
8980
7bcc927b
JT
89812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8982
8983 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8984 ns32k_fix_call_dummy): New.
8985 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8986 ns32k_call_dummy_words.
8987 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8988 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8989 CALL_DUMMY_NARGS): Remove.
8990 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8991
78f9d765
JT
89922002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8993
8994 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8995 ns32k_frame_saved_pc, ns32k_frame_args_address,
8996 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8997 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8998 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8999 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9000 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9001 (BREAKPOINT): Remove..
9002 (FRAME_CHAIN): Define as ns32k_frame_chain.
9003 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9004 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9005 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9006 (FRAME_FIND_SAVED_REGS): Remove.
9007 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9008 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9009 (POP_FRAME): Define as ns32k_pop_frame.
9010
f2c762e0
JT
90112002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9012
9013 * ns32k-tdep.c (ns32k_register_byte_32082,
9014 ns32k_register_byte_32382, ns32k_register_raw_size,
9015 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9016 functions.
9017 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9018 ns32k_register_byte_32382.
9019 * config/ns32k/tm-umax.h: Update copyright years.
9020 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9021 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9022 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9023 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9024 (ns32k_get_enter_addr): Fix prototype.
9025
af137673
JT
90262002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9027
9028 * ns32k-tdep.c: Update copyright years.
9029 (ns32k_register_name_32082): New function.
9030 (ns32k_register_name_32382): Ditto.
9031 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9032 (REGISTER_NAME): Define as ns32k_register_name_32382.
9033 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9034 (REGISTER_NAME): Define as ns32k_register_name_32082.
9035
a8bc7b56
JB
90362002-05-24 Jim Blandy <jimb@redhat.com>
9037
9038 * dwarf2read.c (free_line_header): Use xfree, not free.
9039
83a45910
JT
90402002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9041
9042 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9043 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9044
0db71247
AC
90452002-05-23 Andrew Cagney <ac131313@redhat.com>
9046
9047 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9048
b9e5e4dd
AC
90492002-05-23 Andrew Cagney <ac131313@redhat.com>
9050
9051 From Ross Alexander at NEC Europe:
9052 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9053
de530e84
MS
90542002-05-23 Michael Snyder <msnyder@redhat.com>
9055
9056 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9057 for input, rather than parse_and_eval_address.
9058
b91b96f4
AC
90592002-05-23 Andrew Cagney <ac131313@redhat.com>
9060
9061 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9062 * Makefile.in (sim_d10v_h): Update definition.
9063
8b279e7a
AC
90642002-05-24 Andrew Cagney <cagney@redhat.com>
9065
9066 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9067 change `2002-05-22 Michael Snyder' below.
9068 (d10v_push_arguments): Ditto.
9069 (d10v_extract_return_value): Ditto.
9070
0a3d0425
JB
90712002-05-23 Jim Blandy <jimb@redhat.com>
9072
9073 * macrotab.c (check_for_redefinition): Don't complain if the new
9074 definition is the same as the previous one. Take more arguments
9075 to allow the comparison.
9076 (macro_define_object, macro_define_function): Pass more arguments
9077 to check_for_redefinition.
9078
78eac43e
MS
90792002-05-22 Michael Snyder <msnyder@redhat.com>
9080
9081 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9082 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9083 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9084 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9085 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9086 Add a temp variable to save a call (and a memory read).
9087 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9088 if possible (so that PC_IN_CALL_DUMMY will work).
9089
9bc1edb8
CV
90902002-05-22 Corinna Vinschen <vinschen@redhat.com>
9091
9092 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9093
005ef3d2
ML
90942002-05-22 Michal Ludvig <mludvig@suse.cz>
9095
9096 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9097 fde->cie_ptr.
9098 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9099 (dwarf2_build_frame_info): Add offset to fde->initial_location
9100 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
9101 (execute_stack_op): Change type of 'result' from ULONGEST to
9102 CORE_ADDR.
005ef3d2 9103
fcf4f891
JT
91042002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9105
9106 * config/alpha/tm-nbsd.h: Include solib.h.
9107
cfef91e4
JT
91082002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9109
9110 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9111 assumptions about the host's byte order.
9112
9964235a
JT
91132002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9114
9115 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9116 to dependency list.
9117 * alphanbsd-tdep.c: Include solib-svr4.h.
9118 * shnbsd-tdep.c: Ditto.
9119
9eeef8ef
JT
91202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9121
9122 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9123 nbsd-tdep.h to dependency list.
9124 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9125 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9126 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9127 nbsdaout.mh and nbsdelf.mh consistently.
9128 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9129 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9130 nbsdaout.mt and nbsdelf.mh consistently.
9131 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9132 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9133 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9134 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9135 a.out shared library stuff from here...
9136 * config/nm-nbsdaout.h: ...to here.
9137 * config/tm-nbsd.h: Remove.
9138 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9139 * config/arm/nbsd.mh: Remove.
9140 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9141 nbsd-tdep.o.
9142 * config/arm/nbsdaout.mh: New file.
9143 * config/arm/nbsdelf.mh: New file.
9144 * config/arm/nm-nbsdaout.h: New file.
9145 * config/i386/nbsd.mh: Remove.
9146 * config/i386/nbsd.mt: Remove.
9147 * config/i386/nbsdaout.mh: New file.
9148 * config/i386/nbsdaout.mt: New file.
9149 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9150 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9151 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9152 i386_register_u_addr): Remove.
9153 * config/i386/nm-nbsdaout.h: New file.
9154 * config/i386/nm-nbsdelf.h: Remove.
9155 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9156 (USE_STRUCT_CONVENTION): Remove.
9157 * config/i386/tm-nbsdaout.h: New file.
9158 * config/i386/tm-nbsdelf.h: Remove.
9159 * config/m68k/nbsd.mh: Remove.
9160 * config/m68k/nbsd.mt: Remove.
9161 * config/m68k/nbsdaout.mh: New file.
9162 * config/m68k/nbsdaout.mt: New file.
9163 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9164 * config/m68k/nm-nbsdaout.h: New file.
9165 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9166 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9167 * config/ns32k/nbsd.mh: Remove.
9168 * config/ns32k/nbsd.mt: Remove.
9169 * config/ns32k/nbsdaout.mh: New file.
9170 * config/ns32k/nbsdaout.mt: New file.
9171 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9172 * config/ns32k/nm-nbsdaout.h: New file.
9173 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9174 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9175 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9176 (SVR4_SHARED_LIBS): Remove.
9177 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9178 * config/sparc/nbsd.mh: Remove.
9179 * config/sparc/nbsd.mt: Remove.
9180 * config/sparc/nbsdaout.mh: New file.
9181 * config/sparc/nbsdaout.mt: New file.
9182 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9183 * config/sparc/nbsdelf.mt: New file.
9184 * config/sparc/nm-nbsdaout.h: New file.
9185 * config/sparc/nm-nbsdelf.h: Remove.
9186 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9187 * config/sparc/tm-nbsdaout.h: New file.
9188
257ce470
JT
91892002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9190
9191 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9192 mipsnbsd-tdep.c
9193 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9194
76a6d5fe
JT
91952002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9196
9197 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9198 shnbsd-nat.c.
9199 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9200
45888261
JT
92012002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9202
9203 * NEWS: Note new MIPS NetBSD native configuration.
9204 * configure.host (mips*-*-netbsd*): New host.
9205 * configure.tgt (mips*-*-netbsd*): New target.
9206 * mipsnbsd-nat.c: New file.
9207 * mipsnbsd-tdep.c: New file.
9208 * mipsnbsd-tdep.h: New file.
9209 * config/mips/nbsd.mh: New file.
9210 * config/mips/nbsd.mt: New file.
9211 * config/mips/nm-nbsd.h: New file.
9212 * config/mips/tm-nbsd.h: New file.
9213
70f80edf
JT
92142002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9215
9216 * Makefile.in (SFILES): Add osabi.c.
9217 (COMMON_OBS): Add osabi.o.
9218 (osabi.o): New dependency list.
9219 * osabi.c: New file.
9220 * osabi.h: New file.
9221 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9222
9223 * Makefile.in (alpha_tdep_h): Define and use instead of
9224 alpha-tdep.h.
9225 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9226 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9227 Remove.
9228 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9229 * alpha-tdep.h: Include osabi.h.
9230 (alpha_abi): Remove.
9231 (gdbarch_tdep): Use generic OS ABI framework.
9232 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9233 gdbarch_register_osabi.
9234 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9235 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9236 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9237
9238 * Makefile.in (sh_tdep_h): Add osabi.h.
9239 * sh-tdep.h (sh_osabi): Remove.
9240 (gdbarch_tdep): Use generic OS ABI framework.
9241 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9242 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9243 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9244 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9245
9246 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9247 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9248 gdbarch_register_osabi.
9249 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9250 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9251 (get_elfosabi): Rename to...
9252 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9253 ABI framework support routines.
9254 (arm_gdbarch_init): Use generic OS ABI framework.
9255 (arm_dump_tdep): Likewise.
9256 (_initialize_arm_tdep): Likewise.
9257 * arm-tdep.h: Include osabi.h.
9258 (arm_abi): Remove.
9259 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9260 osabi member.
9261 (arm_gdbarch_register_os_abi): Remove prototype.
9262 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9263 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9264
9265 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9266 * mips-tdep.c: Include osabi.h.
9267 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9268 OS ABI framework.
9269
d194345b
KH
92702002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9271
9272 * h8300-tdep.c: Fix formatting.
9273
70c6b0d1
EZ
92742002-05-20 Elena Zannoni <ezannoni@redhat.com>
9275
9276 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9277 printing vector registers.
9278
165b8e33
AC
92792002-05-19 Andrew Cagney <ac131313@redhat.com>
9280
9281 From Fernando Nasser:
9282 * remote.c (remote_async_open_1): Re-throw the exception when the
9283 connection fails.
9284 (remote_cisco_open): Ditto.
9285 (remote_open_1): Ditto.
9286
36918e70
AC
92872002-05-19 Andrew Cagney <ac131313@redhat.com>
9288
9289 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9290 (remote_start_remote): Add uiout parameter. Pass through to
9291 remote_start_remote_dummy.
9292 (remote_open_1): Use catch_exception instead of catch_errors.
9293 (remote_async_open_1): Ditto.
9294 (remote_cisco_open): Ditto.
9295
ae44c0c4
AC
92962002-05-19 Andrew Cagney <ac131313@redhat.com>
9297
9298 * remote.c (remote_start_remote): Replace PTR with void pointer.
9299 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9300 static.
9301
8efe637d
AC
93022002-05-18 Andrew Cagney <ac131313@redhat.com>
9303
9304 * gdb_indent.sh: Allow the script to be run in the sim directory.
9305
2f1b5984
MK
93062002-05-18 Mark Kettenis <kettenis@gnu.org>
9307
f0f625e2
MK
9308 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9309 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9310
2f1b5984
MK
9311 * corelow.c (core_open): Only call set_gdbarch_from_file if
9312 exec_bfd is NULL.
9313
fc974602
AV
93142002-05-17 Andrey Volkov <avolkov@transas.com>
9315
9316 * h8300-tdep.c: Add support of EXR register
9317 * config/h8300/tm-h8300.h: Ditto.
9318
906709f4
AV
93192002-05-17 Andrey Volkov <avolkov@transas.com>
9320
9321 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9322
6e591d68
AV
93232002-05-17 Andrey Volkov <avolkov@transas.com>
9324
9325 * h8300-tdep.c: Change literal regnums to REGNO.
9326
84f0252a
JB
93272002-05-17 Jim Blandy <jimb@redhat.com>
9328
e0e9281e
JB
9329 * NEWS: Note addition of macro support.
9330
84f0252a
JB
9331 Expand preprocessor macros in C expressions.
9332 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9333 (scan_macro_expansion, scanning_macro_expansion,
9334 finished_macro_expansion): New function declarations.
9335 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9336 variable declarations.
9337 * parser-defs.h (expression_context_pc): New declaration.
9338 * parse.c (expression_context_pc): New variable.
9339 (parse_exp_1): Set expression_context_pc, as well as
9340 expression_context_block.
9341 * c-exp.y (yylex): If we're not already reading the result of a
9342 macro expansion, try to macro-expand the next token. When we're
9343 done scanning a macro expansion, switch back to the mainline text.
9344 Commas and `if's in a macro's expansion don't terminate the input.
9345 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9346 (macro_original_text, macro_expanded_text,
9347 expression_macro_lookup_func, expression_macro_lookup_baton): New
9348 variables.
9349 (scan_macro_expansion, scanning_macro_expansion,
9350 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9351 c_preprocess_and_parse): New functions.
9352 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9353 c_preprocess_and_parse, instead of c_parse.
9354 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9355 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9356
1c509ca8
JR
9357Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9358
9359 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9360 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9361 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9362
2250ee0c
CV
93632002-05-17 Corinna Vinschen <vinschen@redhat.com>
9364
9365 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9366
ab3b8126
JT
93672002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9368
9369 * Makefile.in (sh_tdep_h): Define and use.
9370 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9371 register enum): Move to...
9372 * * sh-tdep.h: ...here.
9373 * sh-tdep.c: Include sh-tdep.h.
9374 * sh3-rom.c: Likewise.
9375 * shnbsd-tdep.c: Likewise.
9376
ed9d4749
MS
93772002-05-16 Michael Snyder <msnyder@redhat.com>
9378
9379 * arm-tdep.c: Spelling fix in comment.
9380
2e276125
JB
93812002-05-16 Jim Blandy <jimb@redhat.com>
9382
6821892e
JB
9383 Add commands for manually expanding macros and showing their
9384 definitions.
9385 * macrocmd.c, macroscope.c, macroscope.h: New files.
9386 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9387 (macroscope_h): New variable.
9388 (HFILES_NO_SRCDIR): Add macroscope.h.
9389 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9390 (macroscope.o, macrocmd.o): New rules.
9391
2e276125
JB
9392 Teach the Dwarf 2 reader to read macro information.
9393 * dwarf2read.c: #include "macrotab.h".
9394 (dwarf_macinfo_buffer): New variable.
9395 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9396 dwarf_macinfo_size.
9397 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9398 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9399 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9400 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9401 dwarf2_macro_spaces_in_definition): New complaints.
9402 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9403 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9404 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9405 the partial symbol table.
9406 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9407 from what's recorded in the partial symbol table.
9408 (read_file_scope): If the compilation unit has a
9409 `DW_AT_macro_info' attribute, read its macro information.
9410 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9411
2f53fe6c
DJ
94122002-05-16 Daniel Jacobowitz <drow@mvista.com>
9413
9414 Fix PR gdb/546
9415 * ser-tcp.c: Don't include <netinet/udp.h>.
9416
2be99286
SC
94172002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9418
9419 * MAINTAINERS: Update my email address.
9420
c9af212b 94212002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9422
9423 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9424 include file of the same name.
9425
bf5f1a52
CV
94262002-05-16 Corinna Vinschen <vinschen@redhat.com>
9427
9428 * configure.tgt: Mark v850 as multi-arched.
9429 * config/v850/tm-v850.h: Remove file.
9430 * config/v850/v850.mt: Eliminate TM_FILE.
9431
435e042a
CV
94322002-05-16 Corinna Vinschen <vinschen@redhat.com>
9433
9434 * v850-tdep.c: Full multi-arch.
9435 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9436 Define GDB_MULTI_ARCH to 2.
9437
9819c6c8
PM
94382002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9439
9440 * p-exp.y (current_type): New static variable.
9441 Carries the type of the expression at the position that is parsed.
9442 (push_current_type, pop_current_type): Two new functions. Used
9443 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9444 (search_field): New static variable. Set to one after parsing a point
9445 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9446 (FIELDNAME): New token. After a point only a token belonging to
9447 current_type type definition is allowed.
9448 (all over token rules): reset and change current_type according
9449 to rules.
9450 (exp '[' rule): insert implicit array index field if
9451 exp is a pascal string type.
9452
3a06899a
CV
94532002-05-16 Corinna Vinschen <vinschen@redhat.com>
9454
9455 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9456 frame info. Use frame_info's saved_regs instead of matching member
9457 in extra_frame_info throughout.
9458 (v850_frame_init_saved_regs): New function.
9459 (v850_init_extra_frame_info): Move most functionality into
9460 v850_frame_init_saved_regs().
9461 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9462 (v850_frame_find_saved_regs): Remove declaration.
9463 (FRAME_FIND_SAVED_REGS): Remove definition.
9464 (v850_frame_init_saved_regs): Add declaration.
9465 (FRAME_INIT_SAVED_REGS): Add definition.
9466
6ed14b0e
CV
94672002-05-16 Corinna Vinschen <vinschen@redhat.com>
9468
9469 * v850-tdep.c: Begin multi-arch'ing v850.
9470 (v850_target_architecture_hook): Remove function.
9471 (v850_gdbarch_init): New function. Add code previously in
9472 v850_target_architecture_hook().
9473 (_initialize_v850_tdep): Don't set target_architecture_hook.
9474 Call register_gdbarch_init() instead.
9475
42725910
DJ
94762002-05-16 Daniel Jacobowitz <drow@mvista.com>
9477
9478 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9479 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9480 (fixup_class_method_type): Likewise.
9481
99d9066e
JB
94822002-05-15 Jim Blandy <jimb@redhat.com>
9483
9484 Add macro structures to GDB's symbol tables. Nobody puts anything
9485 in them yet.
9486 * symtab.h (struct symtab): New member: `macro_table'.
9487 * buildsym.h (pending_macros): New global variable.
9488 * buildsym.c: #include "macrotab.h".
9489 (buildsym_init): Initialize `pending_macros'.
9490 (end_symtab): If we found macro information while reading a CU's
9491 debugging info, do build a symtab structure for it. Make the
9492 symtab point to the macro information, and clear the
9493 `pending_macros' pointer which held it while we were reading the
9494 debug info.
9495 (really_free_pendings): Free any pending macro table.
9496 * objfiles.h (struct objfile): New member: `macro_cache'.
9497 * objfiles.c (allocate_objfile): Set allocate and free functions
9498 for the macro cache's objstack.
9499 (free_objfile): Empty the macro cache's obstack.
9500 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9501 set new allocate and free functions for it.
9502 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9503 free functions for the macro cache's objstack. (Why is this
9504 function building its own objfile?)
9505 * symmisc.c (print_objfile_statistics): Print statistics on the
9506 macro bcache.
9507 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9508
c899585b
RE
95092002-05-15 Richard Earnshaw <rearnsha@arm.com>
9510
9511 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9512 (REGISTER_U_ADDR): Delete definition.
9513 (arm_register_u_addr): Delete declaration.
9514
a6cdd8c5
RE
95152002-05-15 Richard Earnshaw <rearnsha@arm.com>
9516
9517 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9518 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9519
c97dcfc7
AC
95202002-05-14 Andrew Cagney <ac131313@redhat.com>
9521
9522 * regcache.c (register_valid): Revise comments refering to "Not
9523 available" and "unavailable".
9524 * frame.c (frame_register_read): Ditto.
9525 * findvar.c (value_of_register): Ditto.
9526
93021b7d
AC
95272002-05-15 Andrew Cagney <cagney@redhat.com>
9528
9529 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9530 (remote-sim.o): Update dependencies.
9531 (d10v-tdep.o): Specify dependencies.
9532 (sim_d10v_h): Define.
9533
a86bc61c
JB
95342002-05-14 Jim Blandy <jimb@redhat.com>
9535
9536 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9537 * macrotab.c (macro_lookup_inclusion, find_definition,
9538 new_macro_table): Same.
9539
9540 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9541 not `! strcmp ()'. This is a dubious improvement.
9542 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9543
9544 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9545 although it's not necessary, to avoid a warning.
9546
2fdde8f8
DJ
95472002-05-14 Daniel Jacobowitz <drow@mvista.com>
9548
9549 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9550 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9551 TYPE_INSTANCE_FLAGS.
9552 (struct main_type): New.
9553 (struct type): Move most members to struct main_type. Change
9554 cv_type and as_type to new type_chain member. Add instance_flags.
9555 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9556 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9557 (finish_cv_type): Remove prototype.
9558 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9559 Set TYPE_CHAIN.
9560 (alloc_type_instance): New function.
9561 (smash_type): New function.
9562 (make_pointer_type, make_reference_type, make_function_type)
9563 (smash_to_member_type, smash_to_method_type): Call smash_type.
9564 (make_qualified_type): New function.
9565 (make_type_with_address_space): Call make_qualified_type.
9566 (make_cv_type): Likewise.
9567 (finish_cv_type): Remove unnecessary function.
9568 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9569 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9570 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9571 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9572 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9573 * hpread.c (hpread_read_struct_type): Likewise.
9574 * stabsread.c (read_struct_type): Likewise.
9575
843fedf4
EZ
95762002-05-14 Elena Zannoni <ezannoni@redhat.com>
9577
9578 * configure.tgt: Add a catch all sh* target, for cases like
9579 sh[2,3,4]-elf and sh-hms.
9580
05a6c72c
KS
95812002-05-14 Keith Seitz <keiths@redhat.com>
9582
9583 * event-loop.c (create_file_handler): Don't do anything but
9584 update data when we are given a fd which we are already
9585 monitoring.
9586
5d085aaf
ML
95872002-05-14 Michal Ludvig <mludvig@suse.cz>
9588
9589 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9590 (update_context): Use __func__ in warnings.
9591
9db8d71f
DJ
95922002-05-14 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9595 and tcp_close to net_open and net_close.
9596 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9597 using UDP if requested. Don't try to disable Nagle on UDP
9598 sockets.
9599 * remote.c (remote_serial_open): New function. Warn about UDP.
9600 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9601
5dbc6baa
EZ
96022002-05-13 Elena Zannoni <ezannoni@redhat.com>
9603
9604 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9605
cc3023f7
EZ
96062002-05-13 Elena Zannoni <ezannoni@redhat.com>
9607
9608 * configure.tgt: Remove sh-hms target.
9609 * MAINTAINERS: Don't list sh-hms as a separate target.
9610
ec2bcbe7
JB
96112002-05-13 Jim Blandy <jimb@redhat.com>
9612
9613 Add first preprocessor macro-expansion files.
9614 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9615 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9616 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9617 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9618 (COMMON_OBS): Add macrotab.o, macroexp.o.
9619 (macroexp.o, macrotab.o): New rules.
9620
6d531722
AC
96212002-05-13 Andrew Cagney <ac131313@redhat.com>
9622
9623 * config/m88k/tm-m88k.h: Update copyright.
9624 (m88k_target_write_pc): Declare
9625 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9626 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9627 (SHIFT_INST_REGS): Update definition.
9628 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9629 using old definition of TARGET_WRITE_PC.
9630 * regcache.c (generic_target_write_pc): Delete code handling
9631 NNPC_REGNUM.
9632 * gdbarch.sh (NNPC_REGNUM): Delete.
9633 * gdbarch.h, gdbarch.c: Regenerate.
9634
3e3f2739
RE
96352002-05-13 Richard Earnshaw <rearnsha@arm.com>
9636
9637 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9638 builtin reg number.
9639
0004e5a2
DJ
96402002-05-13 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9643 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9644 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9645 access macros.
9646 * c-typeprint.c (cp_type_print_method_args): Likewise.
9647 (c_type_print_args): Likewise.
9648 * d10v-tdep.c (d10v_push_arguments): Likewise.
9649 (d10v_extract_return_value): Likewise.
9650 * expprint.c (print_subexp): Likewise.
9651 * gdbtypes.c (lookup_primitive_typename): Likewise.
9652 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9653 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9654 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9655 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9656 (TYPE_VECTOR): Likewise.
9657 * hpread.c (hpread_read_struct_type)
9658 (fix_static_member_physnames, fixup_class_method_type)
9659 (hpread_type_lookup): Likewise.
9660 * mdebugread.c (parse_symbol, parse_type): Likewise.
9661 * p-lang.c (is_pascal_string_type): Likewise.
9662 * valops.c (hand_function_call): Likewise.
9663 * x86-64-tdep.c (classify_argument): Likewise.
9664
9665 * hpread.c (hpread_read_function_type)
9666 (hpread_read_doc_function_type): Call replace_type.
9667 * dstread.c (create_new_type): Delete.
9668 (decode_dst_structure, process_dst_function): Call alloc_type.
9669 Use type access macros.
9670
dff95cc7
MK
96712002-05-12 Mark Kettenis <kettenis@gnu.org>
9672
9673 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9674 the're not supported by the current architecture.
9675 (i387_fill_fxsave): Likewise.
9676
bbcd32ad
FF
96772002-05-12 Fred Fish <fnf@redhat.com>
9678
9679 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9680 sect_index_xxx members to index the first slot in section_offsets
9681 if all of the section_offsets are zero.
9682
89cf4787
MK
96832002-05-12 Mark Kettenis <kettenis@gnu.org>
9684
9685 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9686 checked in with last change.
9687
1f77ffc5
MK
96882002-05-12 Mark Kettenis <kettenis@gnu.org>
9689
9690 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9691 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9692 config.sub.
9693
89b8b4a9
DJ
96942002-05-12 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * Makefile.in: Update dependencies.
9697
14a5e767
AC
96982002-05-11 Andrew Cagney <ac131313@redhat.com>
9699
9700 * language.c (local_hex_string_custom): Simplify. Do not depend
9701 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9702
9703 * memattr.c (mem_info_command): Replace calls to
9704 longest_local_hex_string and longest_local_hex_string_custom.
9705 * buildsym.c (make_blockvector): Ditto.
9706 * solib.c (info_sharedlibrary_command): Ditto.
9707 * tracepoint.c (tracepoints_info): Ditto.
9708 * symtab.c (print_msymbol_info): Ditto.
9709
9710 * language.c (local_hex_string): Delete.
9711 (local_hex_string_custom): Delete.
9712 (longest_local_hex_string): Rename to local_hex_string.
9713 (longest_local_hex_string_custom): Rename to
9714 local_hex_string_custom.
9715 * language.h (local_hex_string): Change parameter type to LONGEST.
9716 (local_hex_string_custom): Ditto.
9717 (longest_local_hex_string): Delete declaration.
9718 (longest_local_hex_string_custom): Ditto.
9719
9720 * solib.c: Update copyright.
9721 * memattr.c: Update copyright.
9722
13d01224
AC
97232002-05-11 Andrew Cagney <ac131313@redhat.com>
9724
9725 * arch-utils.h (legacy_register_to_value): Declare.
9726 (legacy_value_to_register): Declare.
9727 (legacy_convert_register_p): Declare.
9728 * arch-utils.c (legacy_register_to_value): New function.
9729 (legacy_value_to_register): New function.
9730 (legacy_convert_register_p): New function.
9731
9732 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9733 (VALUE_TO_REGISTER): Define.
9734 (CONVERT_REGISTER_P): Define.
9735 * gdbarch.h, gdbarch.c: Regenerate.
9736
9737 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9738 VALUE_TO_REGISTER.
9739 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9740 CONVERT_REGISTER_P.
9741
4a1970e4
DJ
97422005-05-11 Daniel Jacobowitz <drow@mvista.com>
9743 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9744
9745 * Makefile.in: Update dependencies for valops.c.
9746 * valops.c: Include "gdb_assert.h".
9747 (typecmp): Skip THIS parameter to methods.
9748 (find_method_list): Remove static_memfuncp argument,
9749 update callers. Check for stub methods.
9750 (find_value_oload_method_list): Don't set *static_memfuncp.
9751 (find_overload_match): Don't check for stub methods. Assert
9752 that methods are not stubbed. Handle static methods.
9753 (value_find_oload_method_list): Remove static_memfuncp argument.
9754 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9755 to the argument list for static stub methods.
9756 * value.h (value_find_oload_method_list): Update prototype.
9757
b2e75d78
AC
97582002-05-11 Andrew Cagney <ac131313@redhat.com>
9759
9760 * arch-utils.h (generic_register_size): Declare.
9761 (generic_register_raw_size, generic_register_virtual_size): Delete
9762 declarations.
9763 * arch-utils.c (generic_register_raw_size): Delete.
9764 (generic_register_size): New function.
9765 (generic_register_virtual_size): Delete.
9766
9767 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9768 default generic_register_size.
9769 * gdbarch.h, gdbarch.c: Re-generate.
9770
9771 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9772 register_virtual_size.
9773 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9774 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9775
451fbdda
AC
97762002-05-11 Andrew Cagney <ac131313@redhat.com>
9777
9778 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9779 * gdbarch.h, gdbarch.c: Regenerate.
9780 * gnu-v3-abi.c: Update copyright.
9781 (vtable_address_point_offset): Update.
9782 (gnuv3_rtti_type): Update.
9783 (gnuv3_baseclass_offset): Update.
9784 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9785 (init_fetch_link_map_offsets): Update.
9786 * remote.c (get_remote_state): Update.
9787
6d2f5cea
DJ
97882002-05-11 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * TODO: Remove value_headof/value_from_vtable_info comment.
9791 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9792 * values.c (value_headof, value_from_vtable_info): Delete.
9793 * value.h (value_from_vtable_info): Delete prototype.
9794
d2324da4
AC
97952002-05-11 Andrew Cagney <ac131313@redhat.com>
9796
9797 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9798 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9799 $(gdb_regex_h).
9800 (gdb_assert_h): Define.
9801 (gdb_wait_h): Define.
9802 (gdb_regex_h): Define.
9803
5c717440
DJ
98042002-05-11 Daniel Jacobowitz <drow@mvista.com>
9805
9806 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9807 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9808
6c7861b3
JT
98092002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9810
9811 * nbsd-tdep.c: Fix comment.
9812
ea5bc2a6
JT
98132002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9814
9815 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9816 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9817 (nbsd-tdep.o): New dependency list.
9818 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9819 nbsd-tdep.h.
9820 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9821 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9822 * nbsd-tdep.c: New file.
9823 * nbsd-tdep.h: New file.
9824 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9825 nbsd-tdep.h.
9826 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9827 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9828 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9829 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9830
b28da865
JT
98312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9832
9833 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9834 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9835 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9836 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9837 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9838 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9839
4b8ff1fa
JT
98402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9841
9842 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9843 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9844 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9845 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9846 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9847 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9848 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9849
dfe6eb1f
JT
98502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9851
9852 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9853 fetch_elfcore_registers to...
9854 * i386nbsd-tdep.c: ...here.
9855 (i386nbsd_use_struct_convention): Rename to...
9856 (i386nbsd_aout_use_struct_convention): ...this.
9857 (i386nbsd_supply_reg): New function.
9858 (i386nbsd_fill_reg): New function.
9859 (fetch_core_registers): Use i386nbsd_supply_reg.
9860 (fetch_elfcore_registers): Likewise.
9861 (_initialize_i386nbsd_tdep): New function.
9862 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9863 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9864 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9865 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9866 (i386nbsd_aout_use_struct_convention): ...this.
9867
20cb8cda
JT
98682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9869
9870 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9871 (store_inferior_registers): Use shnbsd_fill_reg.
9872 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9873 sh_nbsd_supply_register): Collapse into...
9874 (shnbsd_supply_reg): ...this.
9875 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9876 (shnbsd_fill_reg): ...this.
9877 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9878 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9879 (fetch_core_registers): Use shnbsd_supply_reg.
9880 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9881 (sh_nbsd_core_fns): Rename to...
9882 (shnbsd_core_fns): ...this.
9883 (sh_nbsd_elfcore_fns): Rename to...
9884 (shnbsd_elfcore_fns): ...this.
9885 (sh_nbsd_init_abi): Rename to...
9886 (shnbsd_init_abi): ...this.
9887 (_initialize_sh_nbsd_tdep): Rename to...
9888 (_initialize_shnbsd_tdep): ...this.
9889 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9890 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9891 sh_nbsd_fill_register): Remove prototypes.
9892 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9893
e750d25e
JT
98942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9895
9896 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9897 (i387-nat.o): Delete dependency list.
9898 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9899 (x86-64-linux-nat.o): Likewise.
9900 * i387-nat.c: Delete file, moving contents to...
9901 * i387-tdep.c: ...here.
9902 * i387-nat.h: Rename...
9903 * i387-tdep.h: ...to this.
9904 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9905 * i386-linux-nat.c: Likewise.
9906 * i386bsd-nat.c: Likewise.
9907 * i386gnu-nat.c: Likewise.
9908 * i386nbsd-nat.c: Likewise.
9909 * i386v4-nat.c: Likewise.
9910 * x86-64-linux-nat.c: Likewise.
9911 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9912 * config/i386/go32.mh (NATDEPFILES): Likewise.
9913 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9914 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9915 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9916 * config/i386/linux.mh (NATDEPFILES): Likewise.
9917 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9918 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9919 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9920 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9921
1aee598a
JT
99222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9923
9924 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9925 (alphanbsd-nat.o): Remove dependency list.
9926 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9927 * alphanbsd-nat.c: Delete. Contents moved to...
9928 * alphanbsd-tdep.c: ...here.
9929 (_initialize_alphanbsd_tdep): Register core functions.
9930 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9931
12bcb0fe
JT
99322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9933
9934 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9935 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9936 (alphanbsd-nat.o): Likewise.
9937 (alphabsd-tdep.o): New dependency list.
9938 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9939 (fill_gregset): Use alphabsd_fill_reg.
9940 (supply_fpregset): Use alphabsd_supply_fpreg.
9941 (fill_fpregset): Use alphabsd_fill_fpreg.
9942 (fetch_inferior_registers): Use struct reg and struct fpreg
9943 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9944 and alphabsd_supply_fpreg.
9945 (store_inferior_registers): Use struct reg and struct fpreg
9946 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9947 and alphabsd_fill_fpreg.
9948 * alphabsd-tdep.c: New file.
9949 * alphabsd-tdep.h: New file.
9950 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9951 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9952 alphabsd_supply_fpreg.
9953 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9954 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9955
361d1df0
EC
99562002-05-11 Eric Christopher <echristo@redhat.com>
9957
9958 * mips-tdep.c (mips_double_register_type): Fix thinko.
9959 (mips_single_register_type): Ditto.
9960 * MAINTAINERS: Add self.
9961
92dd7cee
MK
99622002-05-11 Mark Kettenis <kettenis@gnu.org>
9963
9964 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9965 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9966 right thing on architectures with different endianness and/or
9967 integer sizes.
9968
e27da16d
JT
99692002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9970
9971 From Christian Limpach <chris@Pin.LU>
9972 * configure.in: Change sed expression which comments out
9973 NATDEPFILES to also comment out continuation lines.
9974 * configure: Regenerate.
9975
ddde02bd
EZ
99762002-05-10 Elena Zannoni <ezannoni@redhat.com>
9977
9978 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9979 big patch.
9980
1c922164
EZ
99812002-05-10 Elena Zannoni <ezannoni@redhat.com>
9982
9983 * sh-tdep.c: Include correct file.
9984
283150cd
EZ
99852002-05-10 Elena Zannoni <ezannoni@redhat.com>
9986
9987 New support for sh64-elf (sh5) target.
9988
9989 * configure.tgt: For sh64-elf target, default to sh-elf.
9990
9991 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9992 (struct gdbarch_tdep): Add new fields for new registers and ABI
9993 info.
361d1df0 9994
283150cd
EZ
9995 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9996 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9997 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9998 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9999 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10000 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10001 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10002 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10003 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10004 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10005 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10006 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10007 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10008 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10009 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10010 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10011 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10012 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10013 sign_extend, sh64_nofp_frame_init_saved_regs,
10014 sh64_init_extra_frame_info, sh64_get_saved_register,
10015 sh64_extract_struct_value_address, sh64_pop_frame,
10016 sh64_push_arguments, sh64_extract_return_value,
10017 sh64_store_return_value, sh64_show_media_regs,
10018 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10019 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10020 sh_sh64_register_virtual_type,
10021 sh_sh64_register_convert_to_virtual,
10022 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10023 sh64_register_read, sh64_pseudo_register_write,
10024 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10025 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10026 sh64_do_pseudo_register, sh_compact_do_registers_info,
10027 sh64_do_registers_info, sh_gdbarch_init): New functions.
10028
3117ed25
EZ
100292002-05-10 Elena Zannoni <ezannoni@redhat.com>
10030
10031 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10032
2654e6d4
DJ
100332002-05-10 Daniel Jacobowitz <drow@mvista.com>
10034
10035 * linespec.c (decode_line_1): Check for a double quote after
10036 a filename correctly.
10037
9ab3e532
JB
100382002-05-10 Jim Blandy <jimb@redhat.com>
10039
10040 Properly track the size of the current objfile's .debug_line section.
10041 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10042 (DWARF_LINE_SIZE): New macro.
10043 (dwarf2_build_psymtabs_hard): Record the line section's size in
10044 the partial symbol table.
10045 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10046 symbol table.
10047
126fa72d
PS
100482002-05-10 Petr Sorfa <petrs@caldera.com>
10049
10050 * ia64-tdep.c: Handle breakpoints on L instruction type
10051 in MLX instruction bundle by moving the breakpoint to
10052 the third slot (X instruction type) as L holds only data.
10053
1f077a3e
KB
100542002-05-10 Kevin Buettner <kevinb@redhat.com>
10055
10056 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10057 (process_one_symbol): Complain about discarding local symbols
10058 due to a misplaced N_LBRAC entry.
10059
8120c9d5 100602002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
10061
10062 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
10063 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10064 decrease the depth we are at, in the case of templates.
361d1df0 10065
67b2c998
DJ
100662002-05-09 Daniel Jacobowitz <drow@mvista.com>
10067
10068 * mips-tdep.c (mips_float_register_type): New function.
10069 (mips_double_register_type): New function.
10070 (mips_print_register): Use them.
10071 (do_fp_register_row): Likewise.
10072
fd326606
DJ
100732002-05-09 Daniel Jacobowitz <drow@mvista.com>
10074
6609d9af 10075 * signals/signals.c (signals): Remove conditional compilation around
fd326606 10076 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 10077 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 10078
bef35864
MS
100792002-05-09 Michael Snyder <msnyder@redhat.com>
10080
10081 * remote-rdp.c (remote_rdp_can_run): Remove.
10082
c55a3f73
TT
100832002-05-09 Tom Tromey <tromey@redhat.com>
10084
10085 * jv-valprint.c (java_val_print): Handle `char' as a special case
10086 of TYPE_CODE_INT.
10087
b8d5e71d
MS
100882002-05-09 Michael Snyder <msnyder@redhat.com>
10089
10090 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10091 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 10092 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 10093 str r(0123),[sp,#nn].
361d1df0 10094 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
10095 order-independent by placing it in a loop.
10096
e2cd42dd
MS
100972002-05-06 Michael Snyder <msnyder@redhat.com>
10098
10099 * stabsread.c (read_type): Add recognition for new attribute:
10100 "@V;" means that an array type is actually a vector.
10101 This is analogous to the vector flag that's been added to dwarf2.
10102
3ce1502b
MK
101032002-05-09 Mark Kettenis <kettenis@gnu.org>
10104
10105 * i386-tdep.h (i386_abi): New enum.
10106 (struct gdbarch_tdep): Replace os_ident member with abi.
10107 (i386_gdbarch_register_os_abi): New prototype.
10108 * i386-tdep.c (i386_abi_names): New array.
10109 (process_note_abi_tag_sections): Removed.
10110 (process_note_sections): New function.
10111 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10112 (struct i386_abi_handler): New struct.
10113 (i386_abi_handler_list): New variable.
10114 (i386_gdbarch_register_os_abi): New function.
10115 (i386_gdbarch_init): Adapt for the changes given above.
10116
084c156a
DJ
101172002-05-08 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * gregset.h: Say "GNU/Linux".
10120
6599f021
EZ
101212002-05-08 Elena Zannoni <ezannoni@redhat.com>
10122
10123 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10124 (build_gdbtypes): Build builtin_type_v2_float.
10125 (_initialize_gdbtypes): Register new builtin type.
10126
40af4b0c
AC
101272002-05-08 Andrew Cagney <ac131313@redhat.com>
10128
10129 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10130 (clear_gdbarch_swap): New function.
10131 (initialize_non_multiarch): Call.
10132 (gdbarch_update_p): Before calling init(), swap out and clear the
10133 existing architecture.
10134 * gdbarch.c: Regenerate.
10135
4fe84f46
JT
101362002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10137
10138 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10139 alphanbsd-tdep.c.
10140
4015edd1
JT
101412002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10142
10143 * sh-nbsd-nat.c: Rename to...
10144 * shnbsd-nat.c: ...this.
10145 * sh-nbsd-tdep.c: Rename to...
10146 * shnbsd-tdep.c: ...this.
10147 * sh-nbsd-tdep.h: Rename to...
10148 * shnbsd-tdep.h: ...this.
10149 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10150 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10151
0e2bd219
RE
101522002-05-08 Richard Earnshaw <rearnsha@arm.com>
10153
10154 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10155 concatenation for command help messages.
10156
13a38d45
JT
101572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10158
10159 * NEWS: Note new sh*-*-netbsdelf* configuration.
10160 * configure.host: Set gdb_host_cpu to sh for all sh*.
10161 (sh*-*-netbsdelf*): New host.
10162 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10163 (sh*-*-netbsdelf*): New target.
10164 * sh-nbsd-nat.c: New file.
10165 * sh-nbsd-tdep.c: New file.
10166 * sh-nbsd-tdep.h: New file.
10167 * config/sh/nbsd.mh: New file.
10168 * config/sh/nbsd.mt: New file.
10169 * config/sh/nm-nbsd.h: New file.
10170 * config/sh/tm-nbsd.h: New file.
10171
d658f924
JT
101722002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10173
10174 * sh-tdep.c (sh_osabi_names): Declare.
10175 (process_note_abi_tag_sections): New function.
10176 (get_elfosabi): Ditto.
10177 (sh_gdbarch_register_os_abi): Ditto.
10178 (sh_dump_tdep): Ditto.
10179 _initialize_sh_tdep): Use gdbarch_register to register
10180 sh_gdbarch_init and sh_dump_tdep.
10181 * config/sh/tm-sh.h (sh_osabi): Declare.
10182 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10183
848cfffb
AC
101842002-05-07 Andrew Cagney <ac131313@redhat.com>
10185
10186 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10187 (thumb_scan_prologue): Ditto.
10188 (arm_find_callers_reg): Ditto.
10189 (arm_frame_chain): Ditto.
10190 (arm_init_extra_frame_info): Ditto.
10191 (arm_frame_saved_pc): Ditto.
10192 (arm_pop_frame): Ditto.
10193 (arm_push_return_address): New function.
10194 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10195 call_dummy_location, call_dummy_breakpoint_offset_p,
10196 call_dummy_breakpoint_offset, call_dummy_p,
10197 call_dummy_stack_adjust_p, call_dummy_words,
10198 sizeof_call_dummy_words, call_dummy_start_offset,
10199 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10200 call_dummy_address, push_return_address and push_dummy_frame for
10201 generic dummy frames.
10202
e7d717c0
JT
102032002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10204
10205 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10206 size computation for alloca.
10207 (sh_fp_frame_init_saved_regs): Likewise.
10208
7bbcf283
RE
102092002-05-07 Richard Earnshaw <rearnsha@arm.com>
10210
10211 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10212 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 10213 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
10214 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10215 * remote-rdp.c (remote_rdp_fetch_register): Use
10216 ARM_MAX_REGISTER_RAW_SIZE.
10217 (remote_rdp_store_register): Likewise.
10218
4657573b
ML
102192002-05-07 Michal Ludvig <mludvig@suse.cz>
10220
361d1df0 10221 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
10222 added default labels to switch {} statements.
10223 * x86-64-tdep.c: Ditto.
10224 * x86-64-linux-nat.c: Ditto.
10225
010f3b2f
JT
102262002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10227
10228 * solib.h: Protect against multiple inclusion.
10229
debd256d
JB
102302002-05-06 Jim Blandy <jimb@redhat.com>
10231
9ab3e532
JB
10232 Add first preprocessor macro-expansion files.
10233 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10234 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10235 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10236 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10237 (COMMON_OBS): Add macrotab.o, macroexp.o.
10238 (macroexp.o, macrotab.o): New rules.
10239
debd256d
JB
10240 Separate the job of reading the line number info statement program
10241 header (...expialidocious) out into its own function.
10242 * dwarf2read.c (struct line_head, struct filenames, struct
10243 directories): Replace with...
10244 (struct line_header): New structure, containing the full
10245 contents of the statement program header, including the
10246 include directory and file name tables.
10247 (read_file_scope): If we have line number info, instead of just
10248 calling dwarf_decode_lines to do all the work, call
10249 dwarf_decode_line_header first to get a `struct line_header'
10250 containing the data in the statement program header, and then
10251 pass that to dwarf_decode_lines, which will pick up where that
10252 left off. Be sure to clean up the `struct line_header' object.
10253 (dwarf_decode_line_header, free_line_header, add_include_dir,
10254 add_file_name): New functions.
10255 (dwarf_decode_lines): Move all the code to read the statement
10256 program header into dwarf_decode_line_header. Take the line
10257 header it built as the first argument, instead of the offset to
10258 the compilation unit's line number info. Use the new `struct
10259 line_header' type instead of the old structures. No need to do
10260 cleanups here now, since we don't allocate anything.
10261 (dwarf2_statement_list_fits_in_line_number_section,
10262 dwarf2_line_header_too_long): New complaints.
10263
ac3aafc7
EZ
102642002-05-06 Elena Zannoni <ezannoni@redhat.com>
10265
10266 * gdbtypes.c (init_vector_type): New function.
10267 (build_builtin_type_vec128): Simplify the representation of SIMD
10268 registers.
10269 (build_gdbtypes): Initialize new builtin vector types.
10270 (_initialize_gdbtypes): Register new vector types with gdbarch.
10271 (builtin_type_v4_float, builtin_type_v4_int32,
10272 builtin_type_v8_int16, builtin_type_v16_int8,
10273 builtin_type_v2_int32, builtin_type_v4_int16,
10274 builtin_type_v8_int8): New (renamed) SIMD types.
10275
13e49980
MK
102762002-05-06 Mark Kettenis <kettenis@gnu.org>
10277
10278 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10279 (i387_fill_fxsave): Likewise.
10280
997b20b8
AO
102812002-05-05 Alexandre Oliva <aoliva@redhat.com>
10282
10283 * alpha-tdep.c (alpha_extract_return_value): Don't use
10284 non-constant array size in prototype.
10285
535c96ce
AC
102862002-05-04 Andrew Cagney <ac131313@redhat.com>
10287
10288 From Brian Taylor <briant at model dot com>:
10289 * ui-out.c (ui_out_field_core_addr): Use the function
10290 longest_local_hex_string_custom'to format addresses > 32 bits
10291 wide.
10292
10293 * ui-out.c (ui_out_field_core_addr): Update comment.
10294
bedfa57b
AC
102952002-05-04 Andrew Cagney <ac131313@redhat.com>
10296
10297 * stack.c (select_and_print_frame): Make static. Delete the
10298 parameter `level'.
10299 (func_command): Update call.
10300 (select_frame_command): Delete code computing the frame level.
10301 * frame.h (select_and_print_frame): Delete declaration.
10302
f621c63e
AC
103032002-05-04 Andrew Cagney <ac131313@redhat.com>
10304
10305 * sparc-tdep.c (sparc_get_saved_register): Comment why
10306 get_prev_frame call is safe.
10307
0f7d239c
AC
103082002-05-04 Andrew Cagney <ac131313@redhat.com>
10309
10310 * frame.h (select_frame): Delete level parameter.
10311 * stack.c (select_frame): Update. Use frame_relative_level to
10312 obtain the frame's level.
10313 (select_and_print_frame): Update call.
10314 (select_frame_command): Ditto.
10315 (up_silently_base): Ditto.
10316 (down_silently_base): Ditto.
10317 * ocd.c (ocd_start_remote): Ditto.
10318 * remote-rdp.c (remote_rdp_open): Ditto.
10319 * remote-mips.c (mips_initialize): Ditto.
10320 (common_open): Ditto.
10321 * remote-e7000.c (e7000_start_remote): Ditto.
10322 * m3-nat.c (select_thread): Ditto.
10323 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10324 (child_get_current_exception_event): Ditto.
10325 * varobj.c (varobj_create): Ditto.
10326 (varobj_update): Ditto.
10327 (c_value_of_root): Ditto.
10328 * tracepoint.c (finish_tfind_command): Ditto.
10329 * corelow.c (core_open): Ditto.
10330 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10331 * thread.c (info_threads_command): Ditto.
10332 (switch_to_thread): Ditto.
10333 * infrun.c (normal_stop): Ditto.
10334 (restore_selected_frame): Ditto.
10335 (restore_inferior_status): Ditto.
10336 * breakpoint.c (insert_breakpoints): Ditto.
10337 (watchpoint_check): Ditto.
10338 (bpstat_stop_status): Ditto.
10339 (do_enable_breakpoint): Ditto.
10340 * blockframe.c (flush_cached_frames): Ditto.
10341 (reinit_frame_cache): Ditto.
10342
71d6c7b1
AC
103432002-05-04 Andrew Cagney <ac131313@redhat.com>
10344
10345 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10346 maintainer.
10347
cda6c68a
JB
103482002-05-04 Jim Blandy <jimb@redhat.com>
10349
10350 * gdbtypes.c (replace_type): Doc fix.
10351
5c1c87f0
AC
103522002-05-04 Andrew Cagney <ac131313@redhat.com>
10353
10354 * valprint.c (strcat_longest): Delete commented out function.
10355 Update copyright.
10356
cd9bfe15
AC
103572002-05-04 Andrew Cagney <ac131313@redhat.com>
10358
10359 * MAINTAINERS: Mark a29k as deleted.
10360 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10361 Move new configurations to the top.
10362 * configure.tgt: Remove a29k.
10363 * config/a29k/tm-vx29k.h: Delete.
10364 * config/a29k/vx29k.mt: Delete.
10365 * config/a29k/tm-a29k.h: Delete.
10366 * config/a29k/a29k-udi.mt: Delete.
10367 * config/a29k/a29k.mt: Delete.
10368 * a29k-tdep.c: Delete.
10369 * remote-udi.c: Delete.
10370 * remote-mm.c: Delete.
10371 * remote-eb.c: Delete.
10372 * remote-adapt.c: Delete.
10373 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10374 * config/s390/s390x.mt: Ditto.
10375 * config/s390/s390.mt: Ditto.
10376 * config/sparc/sparclynx.mh: Ditto.
10377 * config/sparc/linux.mh: Ditto.
10378 * config/pa/hppaosf.mh: Ditto.
10379 * config/pa/hppabsd.mh: Ditto.
10380 * config/ns32k/nbsd.mt: Ditto.
10381 * config/mips/vr5000.mt: Ditto.
10382 * config/m68k/sun3os4.mh: Ditto.
10383 * config/m68k/nbsd.mt: Ditto.
10384 * config/m68k/m68klynx.mh: Ditto.
10385 * config/m32r/m32r.mt: Ditto.
10386 * config/i386/x86-64linux.mt: Ditto.
10387 * config/i386/nbsdelf.mt: Ditto.
10388 * config/i386/nbsd.mt: Ditto.
10389 * config/i386/i386lynx.mh: Ditto.
10390
bf0c5130
AC
103912002-05-04 Andrew Cagney <ac131313@redhat.com>
10392
10393 * target.c (debug_print_register): New function. Handle oversize
10394 registers.
10395 (debug_to_fetch_registers): Call.
10396 (debug_to_store_registers): Call.
10397
2ae1c2d2
JB
103982002-05-03 Jim Blandy <jimb@redhat.com>
10399
13a393b0
JB
10400 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10401 (read_type): Doc fix.
10402 * gdbtypes.c (replace_type): Doc fix.
10403
2ae1c2d2
JB
10404 * stabsread.c (multiply_defined_struct): New complaint.
10405 (read_struct_type): If the type we were passed isn't empty, or
10406 incomplete, don't read the new struct type into it; complain,
10407 and return the original type unchanged. Take a new `type_code'
10408 argument, which is the type code for the new type.
10409 (read_type): Rather than storing the type's type code here, pass
10410 it as an argument to read_struct_type, and let that take care of
10411 storing it. That way, we don't overwrite the original type code,
10412 so read_struct_type can use it to decide whether we're overwriting
10413 something we shouldn't.
10414 (complain_about_struct_wipeout): New function.
10415
8de9bdc4
AC
104162002-05-03 Andrew Cagney <ac131313@redhat.com>
10417
10418 * gdbarch.sh: Assert that gdbarch is non-NULL.
10419 * gdbarch.c: Regenerate.
10420
f773fdbb
JM
104212002-05-03 Jason Merrill <jason@redhat.com>
10422
10423 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10424 and return NULL.
10425
0e04a514
ML
104262002-05-03 Michal Ludvig <mludvig@suse.cz>
10427
10428 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10429 (x86_64_dwarf2gdb_regno_map_length),
10430 (x86_64_dwarf2_reg_to_regnum): Added.
10431 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10432 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10433 (_initialize_x86_64_tdep): Synced with the change above.
10434 (x86_64_skip_prologue): Reformulated message.
10435
065432a8
PM
104362002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10437
10438 * f-exp.y: Also use new prev_lexptr variable
10439 to improve error reporting. Based on Michael Snyder
10440 2002-04-24 dated patch to c-exp.y.
10441 * jv-exp.y: Likewise.
10442 * m2-exp.y: Likewise.
10443
a3162708
EZ
104442002-05-02 Elena Zannoni <ezannoni@redhat.com>
10445
10446 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10447 we are dealing with vectors.
10448
03620c38
PM
104492002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10450
10451 * config/m68k/tm-nbsd.h: Obvious fix,
10452 correct machine name.
10453
6604db2e
PM
104542002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10455
10456 * p-typeprint.c (pascal_type_print_base): Add support
10457 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10458
0906b739
PM
104592002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10460
10461 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10462 for fondamental pascal 'char' type.
10463
e2625b33
PM
104642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10465
10466 * p-lang.h (is_pascal_string_type): Declaration changed,
10467 new sixth argument of type char ** added.
361d1df0 10468 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10469 changed. Args length_pos, length_size, string_pos, char_size
10470 can now be NULL. New argument arrayname set to the field
10471 name of the char array. Return value set to char array
10472 field index plus one.
361d1df0 10473 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10474 is_pascal_string_type function.
10475
cf17c188
AC
104762002-05-02 Andrew Cagney <cagney@redhat.com>
10477
10478 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10479 <cagney@redhat.com> change.
10480 * gdbarch.c: Regenerate.
10481
52bca491
AC
104822002-05-02 Andrew Cagney <cagney@redhat.com>
10483
10484 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10485 before probing for a new one. Detect errorenous gdbarch_init
10486 functions.
10487 * gdbarch.c: Regenerate.
10488
d5e72505
AC
104892002-05-01 Andrew Cagney <cagney@redhat.com>
10490
10491 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10492 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10493 * config/v850/tm-v850.h: Ditto. Update copyright.
10494
af566d9f
AC
104952002-04-30 Andrew Cagney <ac131313@redhat.com>
10496
10497 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10498 current_gdbarch.
10499
880d85fa
MS
105002002-04-30 Michael Snyder <msnyder@redhat.com>
10501
94c30b78
MS
10502 * arm-tdep.c: Whitespace clean-ups.
10503 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10504 should have been removed as part of 4/24 change.
10505
6f5987a6
KB
105062002-04-30 Kevin Buettner <kevinb@redhat.com>
10507
10508 * rs6000-tdep.c: Added comment describing how fpscr register
10509 numbers were chosen.
10510
1a113c93
MS
105112002-04-30 Michael Snyder <msnyder@redhat.com>
10512
10513 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10514
9a6f53fe
EZ
105152002-04-29 Elena Zannoni <ezannoni@redhat.com>
10516
10517 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10518 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10519 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10520
11ed25ac
KB
105212002-04-29 Kevin Buettner <kevinb@redhat.com>
10522
10523 From Louis Hamilton <hamilton@redhat.com>:
10524 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10525 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10526 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10527 not bfd-private xcoff data, to determine wordsize.
10528 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10529
ae232405
AC
105302002-04-29 Andrew Cagney <ac131313@redhat.com>
10531
10532 GDB 5.2 released from 5.2 branch.
10533
91fd20f7
ML
105342002-04-29 Michal Ludvig <mludvig@suse.cz>
10535
10536 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10537 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10538 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10539
2dc5091b
EZ
105402002-04-29 Elena Zannoni <ezannoni@redhat.com>
10541
10542 * rs6000-tdep.c (rs6000_extract_return_value,
10543 rs6000_store_return_value): Handle returning vectors.
10544 (rs6000_gdbarch_init): Use
10545 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10546 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10547 New function.
10548 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10549 vectors.
10550 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10551 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10552
2b9848d8
PM
105532002-04-24 Pierre Muller <ics.u-strasbg.fr>
10554
10555 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10556 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10557 with fprintf_unfiltered (gdb_stderr,...).
10558
f8d17dc5
PM
105592002-04-24 Pierre Muller <ics.u-strasbg.fr>
10560
10561 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10562 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10563 Replace fprintf (stderr,...
10564 with fprintf_unfiltered (gdb_stderr,....
10565 * remote-es.c: Likewise.
10566 * remote-os9k.c: Likewise.
10567 * remote-st.c: Likewise.
10568
2f2f1ad1
AS
105692002-04-28 Andreas Schwab <schwab@suse.de>
10570
10571 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10572 linux-proc.o and gcore.o.
10573
b6779aa2
AC
105742002-04-26 Michal Ludvig <mludvig@suse.cz>
10575
10576 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10577 code without frame pointers.
10578
7e57f5f4
AC
105792002-04-26 Andrew Cagney <ac131313@redhat.com>
10580
10581 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10582 ON_STACK is needed.
10583
2ceb85d0
BE
105842002-04-26 Ben Elliston <bje@redhat.com>
10585
10586 * target.c (do_xfer_memory): Correct reference to the new option
10587 "trust-readonly-sections".
10588
f5f8a009
EZ
105892002-04-26 Elena Zannoni <ezannoni@redhat.com>
10590
10591 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10592 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10593 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10594 vectors.
10595 (read_array_type): Record the fact that this array type is really a
10596 vector (i.e. are passed in by value).
10597
5868c862
JT
105982002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10599
10600 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10601 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10602 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10603 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10604 * alpha-linux-tdep.c: Include frame.h.
10605 (alpha_linux_sigcontext_addr): New function.
10606 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10607 alpha_linux_sigcontext_addr.
10608 * alpha-osf1-tdep.c: Include gdbcore.h.
10609 (alpha_osf1_sigcontext_addr): New function.
10610 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10611 alpha_osf1_sigcontext_addr.
10612 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10613 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10614
bfb01f37
AC
106152002-04-26 Andrew Cagney <ac131313@redhat.com>
10616
361d1df0 10617 * stack.c (selected_frame_level):
bfb01f37
AC
10618 (select_frame): Do not set selected_frame_level.
10619 * frame.h (selected_frame_level): Delete declaration.
10620
15813d3f
AC
106212002-04-26 Andrew Cagney <ac131313@redhat.com>
10622
10623 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10624 convert_from_func_ptr-addr when AIX / PowerOpen.
10625
6096c27a
AC
106262002-04-25 Andrew Cagney <ac131313@redhat.com>
10627
10628 * valops.c (hand_function_call): Call
10629 generic_save_call_dummy_addr.
10630 * frame.h (generic_save_call_dummy_addr): Declare.
10631 * blockframe.c (struct dummy_frame): Add fields call_lo and
10632 call_hi.
10633 (generic_find_dummy_frame): Check for PC in range call_lo to
10634 call_hi instead of entry_point_address.
10635 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10636 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10637 (generic_save_call_dummy_addr): New function.
10638
f510d44e
DM
106392002-04-24 David S. Miller <davem@redhat.com>
10640
10641 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10642 sparc_skip_prologue.
10643 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10644 information to find prologue when possible.
10645 (sparc_prologue_frameless_p): Call examine_prologue directly.
10646 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10647 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10648 second argument.
10649 (SKIP_PROLOGUE): Likewise.
10650
15d72a92
JT
106512002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10652
10653 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10654 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10655 indicate that the condition it was testing is always true.
10656 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10657 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10658 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10659
accc6d1f
JT
106602002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10661
10662 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10663 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10664 tdep->jb_pc and tdep->jb_elt_size.
10665 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10666 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10667 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10668 * alpha-nat.c (get_longjmp_target): Remove.
10669 (JB_ELEMENT_SIZE): Ditto.
10670 (JB_PC): Ditto.
10671 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10672 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10673 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10674 to alpha_get_longjmp_target.
10675 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10676 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10677 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10678
1bfdc549
AC
106792002-04-25 Andrew Cagney <ac131313@redhat.com>
10680
10681 * README: Update to GDB 5.2.
10682
1bd316f0
AC
106832002-04-25 Andrew Cagney <ac131313@redhat.com>
10684
10685 * gdbarch.sh (LC_ALL): Set to `c'.
10686
2e5ff58c
TR
106872002-04-25 Theodore A. Roth <troth@verinet.com>
10688
10689 * avr-tdep.c: Ran through gdb_indent.sh.
10690
e33ce519
TR
106912002-04-25 Theodore A. Roth <troth@verinet.com>
10692
10693 * MAINTAINERS: Add myself as AVR maintainer.
10694 * NEWS: Note new target avr.
10695
8818c391
TR
106962002-04-25 Theodore A. Roth <troth@verinet.com>
10697
10698 * Makefile.in: Add support for AVR target.
10699 * configure.tgt: Add support for AVR target.
10700 * avr-tdep.c: New file
10701 * config/avr/avr.mt: New file.
10702
79509c2d
TR
107032002-04-25 Theodore A. Roth <troth@verinet.com>
10704
10705 * MAINTAINERS: Add myself to write-after-approval.
10706
dac8068e
PM
107072002-04-24 Pierre Muller <ics.u-strasbg.fr>
10708
10709 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10710 with fprintf_unfiltered (gdb_stderr,....
10711
25bf3106
PM
107122002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10713
10714 Fix PR gdb/508.
10715 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10716
24467a86
PM
107172002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10718
10719 * p-exp.y: Also use new prev_lexptr variable
10720 to improve error reporting. Based on Michael Snyder
10721 2002-04-24 dated patch to c-exp.y.
10722
95b80706
JT
107232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10724
10725 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10726 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10727 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10728 to 0.
10729 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10730 and struct value.
10731 (FUNCTION_START_OFFSET): Remove.
10732 (BREAKPOINT): Ditto.
10733
e90cc612
JT
107342002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10735
10736 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10737 * NEWS: Ditto.
10738
6c72f9f9
JT
107392002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10740
10741 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10742 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10743 alpha_linux_pc_in_sigtramp.
10744 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10745 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10746 alpha_osf1_pc_in_sigtramp.
10747 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10748 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10749 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10750 alphafbsd_pc_in_sigtramp.
10751 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10752 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10753 alphanbsd_pc_in_sigtramp.
10754 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10755 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10756
5e4f3379
JT
107572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10758
10759 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10760
da8ca43d
JT
107612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10762
10763 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10764 alphanbsd-tdep.c.
10765 (alphanbsd-nat.o): New dependency list.
10766 (alphanbsd-tdep.o): Ditto.
10767 * NEWS: Note new native NetBSD/alpha configuration.
10768 * alphanbsd-nat.c: New file.
10769 * alphanbsd-tdep.c: Ditto.
10770 * configure.host (alpha*-*-netbsd*): New host.
10771 * configure.tgt (alpha*-*-netbsd*): New target.
10772 * config/alpha/nbsd.mh: New file.
10773 * config/alpha/nbsd.mt: Ditto.
10774 * config/alpha/nm-nbsd.h: Ditto.
10775 * config/alpha/tm-nbsd.h: Ditto.
10776
36a6271d
JT
107772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10778
10779 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10780 (alpha-osf1-tdep.o): New dependency list.
10781 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10782 and skip_sigtramp_frame members.
10783 * alpha-linux-tdep.c: Include gdbcore.h.
10784 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10785 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10786 * alpha-osf1-tdep.c: New file.
10787 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10788 alpha-osf1-dep.c.
10789 (alpha_frame_past_sigtramp_frame): New function.
10790 (alpha_dynamic_sigtramp_offset): Ditto.
10791 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10792 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10793 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10794 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10795 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10796 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10797 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10798 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10799 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10800 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10801 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10802 to find_solib_trampoline_target.
10803 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10804 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10805 (SKIP_TRAMPOLINE_CODE): Remove.
10806 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10807 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10808 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10809 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10810 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10811 (PROC_SIGTRAMP_MAGIC): Ditto.
10812 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10813 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10814 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10815 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10816 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10817
2f4bc57b
JT
108182002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10819
10820 * NEWS: Note that Alpha targets are now multi-arch.
10821
665132f9
MS
108222002-04-24 Michael Snyder <msnyder@redhat.com>
10823
10824 * parser-defs.h (prev_lexptr): New external variable.
10825 * parse.c (parse_exp_1): Set prev_lexptr to null before
10826 calling the language-specific parser.
10827 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10828 (yyerror): Use prev_lexptr in error reporting.
10829
32872fa7
DJ
108302002-04-24 Daniel Jacobowitz <drow@mvista.com>
10831
10832 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10833 * gregset.h: If FILL_FPXREGSET is defined, provide
10834 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10835 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10836 is defined, call fill_fpxregset.
10837
57e76fac
MS
108382002-04-24 Roland McGrath <roland@frob.com>
10839
10840 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10841 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10842 (supply_gregset, supply_fpregset): New functions.
10843
10844 * gnu-nat.c (gnu_find_memory_regions): New function.
10845 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10846 (gnu_xfer_memory): Add a cast.
10847
f43845b3
MS
108482002-04-24 Michael Snyder <msnyder@redhat.com>
10849
361d1df0 10850 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10851 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10852 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10853 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10854 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10855 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10856
a0abec03
AC
10857Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10858
10859 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10860 NUM_PSEUDO_REGS can be used.
10861
d7bd68ca
AC
108622002-04-24 Andrew Cagney <ac131313@redhat.com>
10863
10864 * arch-utils.h: Update copyright.
10865
10866 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10867 * gdbarch.h, gdbarch.c: Re-generate.
10868
10869 * inferior.h (IN_SIGTRAMP): Delete definition.
10870 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10871 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10872
10873 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10874 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10875 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10876 (find_proc_framesize): Ditto.
10877 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10878 (alpha_init_extra_frame_info): Ditto.
10879 * infrun.c (handle_inferior_event): Ditto.
10880 (handle_inferior_event): Ditto.
10881 (check_sigtramp2): Ditto.
10882 * blockframe.c (create_new_frame): Ditto.
10883 (get_prev_frame): Ditto.
10884 * ppc-linux-tdep.c: Update comments.
10885 * i386-linux-tdep.c: Update comments.
10886 * breakpoint.c (bpstat_what): Update comment.
10887
4867e41e
DM
108882002-04-24 David S. Miller <davem@redhat.com>
10889
21d83aa5
DM
10890 * i960-tdep.c (register_in_window_p): New function.
10891 (i960_find_saved_register): Use it instead of
10892 REGISTER_IN_WINDOW_P.
10893 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10894
4867e41e
DM
10895 * symtab.h (find_stab_function_addr): Kill extern.
10896 * minsyms.c (find_stab_function_addr): Remove from here...
10897 * dbxread.c: ... to here, and mark it static.
10898
69cdf6a2
DM
108992002-04-20 David S. Miller <davem@redhat.com>
10900
10901 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10902 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10903
5a595886
DM
109042002-04-21 David S. Miller <davem@redhat.com>
10905
10906 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10907 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10908 (vx_write_register): Likewise.
10909
1da1a192
JB
109102002-04-23 J. Brobecker <brobecker@gnat.com>
10911
10912 * source.c (is_regular_file): New function.
10913 (openp): Check wether file to open is a regular file
10914 to avoid opening directories.
10915
baa6f10b
JT
109162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10917
10918 * findvar.c (extract_signed_integer): Cast printf argument
10919 to suppress format warning.
10920 (extract_unsigned_integer): Likewise.
10921 * infcmd.c (registers_info): Likewise.
10922 * top.c (get_prompt_1): Likewise.
10923 * valops.c (value_assign): Likewise.
10924 * valprint.c (print_decimal): Likewise.
10925
b2c4da81
L
109262002-04-22 H.J. Lu (hjl@gnu.org)
10927
10928 * c-exp.y (typebase): Support
361d1df0 10929
b2c4da81
L
10930 [long|long long|short] [signed|unsigned] [int|]
10931
10932 and
10933
10934 signed [long|long long|short] int
10935
f267bd6a
JT
109362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10937
10938 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10939 and vax-tdep.h.
10940 * vax-tdep.h: New file.
10941 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10942 Make several routines static.
10943 (vax_get_saved_register): New function.
10944 (vax_gdbarch_init): New function.
10945 (_initialize_vax_tdep): Register vax_gdbarch_init.
10946 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10947 Remove macros now under the control of gdbarch.
10948
da3c6d4a
MS
109492002-04-22 Michael Snyder <msnyder@redhat.com>
10950
11d3b27d
MS
10951 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10952 Some whitespace and coding standards tweaks.
da3c6d4a 10953
a33f7558
JT
109542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10955
10956 * vax-tdep.c: Include regcache.h.
10957 (vax_call_dummy_words): New.
10958 (sizeof_vax_call_dummy_words): New.
10959 (vax_fix_call_dummy): New function.
10960 (vax_saved_pc_after_call): Ditto.
10961 * config/vax/tm-vax.h: Don't include regcache.h.
10962 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10963 (CALL_DUMMY): Remove.
10964 (CALL_DUMMY_WORDS): Define.
10965 (SIZEOF_CALL_DUMMY_WORDS): Define.
10966 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10967
47a73475
MS
109682002-04-18 Michael Snyder <msnyder@redhat.com>
10969
10970 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10971
52efde73
JT
109722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10973
10974 * vax-tdep.c (vax_frame_chain): New function.
10975 (vax_push_dummy_frame): Ditto.
10976 (vax_pop_frame): Ditto.
10977 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10978 (FRAMELESS_FUNCTION_INVOCATION): Use
10979 generic_frameless_function_invocation_not.
10980 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10981 (POP_FRAME): Use vax_pop_frame.
10982
ea74468c
JT
109832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10984
10985 * vax-tdep.c (vax_store_struct_return): New function.
10986 (vax_extract_return_value): Ditto.
10987 (vax_store_return_value): Ditto.
10988 (vax_extract_struct_value_address): Ditto.
10989 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10990 vax_store_struct_return.
10991 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10992 (STORE_RETURN_VALUE): Use vax_store_return_value.
10993 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10994
5516aa92
JT
109952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10996
10997 * vax-tdep.c (vax_frame_saved_pc): New function.
10998 (vax_frame_args_address_correct): Ditto.
10999 (vax_frame_args_address): Ditto.
11000 (vax_frame_locals_address): Ditto.
11001 (vax_frame_num_args): Move code to be in proximity to
11002 other frame-related functions.
11003 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11004 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11005 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11006 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11007 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11008
36af0b35
L
110092002-04-22 H.J. Lu (hjl@gnu.org)
11010
11011 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11012 includedir.
11013
ab62c900
JT
110142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11015
11016 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11017 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11018 (FRAME_INIT_SAVED_REGS): New macro.
11019
7232b100
JT
110202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11021
11022 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11023
b70d2aee
JT
110242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11025
11026 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11027 where needed.
11028 (fetch_osf_core_registers): Likewise.
11029 (supply_gregset): Likewise.
11030
a0e8a2d1 110312002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 11032
a0e8a2d1
JB
11033 * symfile.h (get_section_index): Define.
11034 * symfile.c (get_section_index): New function.
11035 * mdebugread.c (SC_IS_SBSS): New macro.
11036 (SC_IS_BSS): Return true for the scBss storage class only, as
11037 the scSBss storage class refers to the .sbss section.
11038 (parse_partial_symbols): Discard the symbols which associated
11039 section does not exist.
11040 Make sure to use the .sbss section index for symbols which
11041 storage class is scBss, rather than using the .bss section index.
11042
51eb8b08
JT
110432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11044
11045 * vax-tdep.c: Update copyright years.
11046 (vax_register_name): New function.
11047 (vax_register_byte): Ditto.
11048 (vax_register_raw_size): Ditto.
11049 (vax_register_virtual_size): Ditto.
11050 (vax_register_virtual_type): Ditto.
11051 * config/vax/tm-vax.h: Update copyright years.
11052 (REGISTER_NAMES): Remove.
11053 (REGISTER_NAME): Define.
11054 (REGISTER_BYTE): Use vax_register_byte.
11055 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11056 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11057 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11058
6cc1c0a8
AC
110592002-04-21 Andrew Cagney <ac131313@redhat.com>
11060
11061 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11062 declaration
11063 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11064
9319a2fe
DM
110652002-04-21 David S. Miller <davem@redhat.com>
11066
11067 * arch-utils.c (generic_prologue_frameless_p): Kill
11068 SKIP_PROLOGUE_FRAMELESS_P code.
11069 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11070 references.
11071 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11072 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11073 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11074 references.
11075 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11076 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11077 (sparc_gdbarch_init): Pass it to
11078 set_gdbarch_prologue_frameless_p.
a0e8a2d1 11079
e9ed6d01
JT
110802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11081
11082 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11083 (alphabsd-nat.o): New dependency list.
11084
36012033
JT
110852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11086
11087 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11088 alphafbsd-tdep.c.
11089 (alpha-linux-tdep.o): New dependency list.
11090 (alphafbsd-tdep.o): Likewise.
11091
3379287a
JT
110922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11095 to here...
11096 * alpha-tdep.c: ...from here.
11097 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11098
4bcbd6cb
JT
110992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11100
11101 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11102 prototype from here...
11103 * alpha-tdep.h: ...to here.
11104
b31da25e
AC
111052002-04-21 Andrew Cagney <ac131313@redhat.com>
11106
11107 * frame.h (selected_frame_level): Document as deprecated.
11108 (frame_relative_level): Declare.
11109 * stack.c (frame_relative_level): New function.
11110 (selected_frame_level): Document as deprecated.
11111 (select_frame): Do not set the selected_frame_level.
11112
11113 * stack.c (frame_info, record_selected_frame): Update.
11114 (frame_command, current_frame_command): Update.
11115 (up_silently_base, up_command, down_silently_base): Update.
11116 (down_command): Update.
11117 * inflow.c (kill_command): Update.
11118 * tracepoint.c (finish_tfind_command): Update.
11119 * corelow.c (core_open): Update.
11120 * thread.c (info_threads_command): Update.
11121 (do_captured_thread_select): Update.
11122 * infcmd.c (finish_command): Update.
11123 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11124
9c1d6fe5
JT
111252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11126
11127 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11128
ab89facf
AC
111292002-04-21 Andrew Cagney <ac131313@redhat.com>
11130
11131 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11132 type const.
11133
82a4efa1
JT
111342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11135
11136 * alphafbsd-tdep.c: Update copyright years. Include
11137 alpha-tdep.h.
11138 (alphafbsd_use_struct_convention): Make static.
11139 (alphafbsd_init_abi): New function.
11140 (_initialize_alphafbsd_tdep): New function.
11141 * config/alpha/tm-fbsd.h: Update copyright years.
11142 (USE_STRUCT_CONVENTION): Remove.
11143
44dffaac
JT
111442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11145
11146 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11147 an Alpha ABI variant.
11148 (alpha_abi_handler_list): Declare.
11149 (alpha_gdbarch_register_os_abi): New function.
11150 (alpha_gdbarch_init): Give registered ABI variant handlers a
11151 chance to tweak the gdbarch once we have set up defaults.
11152 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11153
65585be4
JT
111542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11155
11156 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11157 to standard_coerce_float_to_double.
11158 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11159
d9b023cc
JT
111602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11161
11162 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11163 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11164 from gdbarch_tdep rather than a constant.
11165 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11166 the default text address for all Alpha Unix ABIs.
11167 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11168 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11169
dc129d82
JT
111702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11171
11172 * alpha-tdep.h: New file. Includes several Alpha target constants
11173 taken from...
11174 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11175 let gdbarch deal with.
11176 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11177 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11178 to dependency list.
11179 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11180 Alpha target register names.
11181 * alphabsd-nat.c: Likewise.
11182 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11183 Alpha target register names. Make serveral routines static.
11184 (alpha_get_saved_register): New function.
11185 (alpha_abi_names): New.
11186 (process_note_abi_tag_sections): New function.
11187 (get_elfosabi): New function.
11188 (alpha_gdbarch_init): New function.
11189 (alpha_dump_tdep): New function.
11190 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11191
d49d1e0a
AC
111922002-04-21 Andrew Cagney <ac131313@redhat.com>
11193
11194 * frame.c (find_saved_register): Delete #ifdef
11195 HAVE_REGISTER_WINDOWS code.
11196 * config/sparc/tm-sparc.h: Update comments.
11197 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11198
92e8c9ed
AC
111992002-04-21 Andrew Cagney <ac131313@redhat.com>
11200
11201 * i960-tdep.c (i960_find_saved_register): New function.
11202 (i960_get_saved_register): New function.
11203 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11204 (i960_get_saved_register): Declare.
11205 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11206
e1925118
DM
112072002-04-20 David S. Miller <davem@redhat.com>
11208
11209 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11210
29673b29
AC
112112002-04-20 Andrew Cagney <ac131313@redhat.com>
11212
11213 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11214 instead of NUM_PSEUDO_REGS.
11215
6c86dcd5
DM
112162002-04-20 David S. Miller <davem@redhat.com>
11217
11218 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11219 GDB_MULTI_ARCH_PARTIAL
11220 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11221 define, let tm-sp64.h do it.
11222
aa40ec90
JT
112232002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11224
11225 * frame.c (find_saved_register): Avoid a NULL pointer
11226 dereference and actually walk the frame list.
11227
0f79675b
AC
112282002-04-20 Andrew Cagney <ac131313@redhat.com>
11229
11230 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11231 sorted in most most-recent-used order. Document.
11232 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11233
f91305dd 112342002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
11235
11236 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11237 instead of ->prev.
11238 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11239 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11240 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11241 instead of ->prev.
11242
73d322b1
EZ
112432002-04-19 Elena Zannoni <ezannoni@redhat.com>
11244
11245 Fix PR gdb/471.
11246 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11247 (build_builtin_type_vec128): Ditto.
11248 (append_composite_type_field): Fix calculation of type length in
11249 union case.
11250
ccd9a834
EZ
112512002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11252
11253 * config/djgpp/README: Update.
11254
11255 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11256 compiler warnings.
11257
a57f9e49
JT
112582002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11259
11260 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11261 (alpha_setup_arbitrary_frame): ...to this.
11262 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11263 for alpha_setup_arbitrary_frame.
11264
f4f9705a
AC
112652002-04-18 Andrew Cagney <cagney@redhat.com>
11266
11267 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11268 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11269
f4f9705a
AC
11270 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11271 * target.h (memory_breakpoint_from_pc): Update declaration.
11272 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11273
11274 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11275 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11276 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11277 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11278 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11279 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11280 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11281 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11282 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11283 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11284 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11285 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11286
11287 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11288 const pointer.
11289 * monitor.c (monitor_insert_breakpoint): Ditto.
11290 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11291
11292 * config/mcore/tm-mcore.h: Update copyright.
11293 * mem-break.c: Ditto.
11294 * xstormy16-tdep.c: Ditto.
11295
29f319b8
PM
112962002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11297
11298 * p-exp.y: Add precedence rule for '^' token.
11299 This removes the shift/reduce conflicts.
11300 Remove the comment concerning these shift/reduce conflicts.
11301
ebeac11a
EZ
113022002-04-18 Elena Zannoni <ezannoni@redhat.com>
11303
11304 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11305 (registers_powerpc_nofp): New register set for processors
11306 without floating point unit.
11307
27c31547
DM
113082002-04-18 David S. Miller <davem@redhat.com>
11309
11310 * MAINTAINERS: Add myself to write-after-approval.
11311
47a73475
MS
113122002-04-17 Michael Snyder <msnyder@redhat.com>
11313
11314 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11315
953836b2
AC
113162002-04-17 Andrew Cagney <ac131313@redhat.com>
11317
11318 * rs6000-tdep.c (frame_initial_stack_address): Use
11319 frame_register_read to read the alloca_reg.
11320
8b0d4340
AC
113212002-04-17 Andrew Cagney <ac131313@redhat.com>
11322
11323 * frame.c (find_saved_register): Find saved registers in the next
11324 not prev frame.
11325 Fix PR gdb/365.
11326
d8864532
AC
113272002-04-17 Andrew Cagney <ac131313@redhat.com>
11328
11329 * gdbarch.sh (LANG): Set to ``c''.
11330
36cc83a3 113312002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11332
36cc83a3 11333 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11334
2f4150cc 113352002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11336
11337 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11338 Update copyright.
11339
628703c6 11340 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11341 Also fix PR gdb/391.
361d1df0 11342
56157b4a
AC
113432002-04-14 Andrew Cagney <ac131313@redhat.com>
11344
11345 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11346 * aclocal.m4, configure: Re-generate.
11347 Fix PR gdb/391.
361d1df0 11348
6d1e3329
EZ
113492002-04-14 Elena Zannoni <ezannoni@redhat.com>
11350
11351 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11352 instead of tm_print_insn.
11353
cb06fa07
EZ
113542002-04-14 Elena Zannoni <ezannoni@redhat.com>
11355
11356 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11357
f208ba17
AC
113582002-04-14 Andrew Cagney <ac131313@redhat.com>
11359
11360 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11361 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11362 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11363
20f01a46
DH
113642002-04-12 Don Howard <dhoward@redhat.com>
11365
11366 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11367 max_user_call_depth.
11368 (init_cmd_lists): Initialize the new value;
11369 * cli/cli-script.c (execute_user_command): Limit the call depth of
11370 user defined commands. This avoids a core-dump when user commands
11371 are infinitly recursive.
11372
a88376a3
KB
113732002-04-12 Kevin Buettner <kevinb@redhat.com>
11374
11375 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11376 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11377 from tdep struct instead of DEFAULT_LR_SAVE.
11378 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11379 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11380 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11381
f2172603
MS
113822002-04-12 Michael Snyder <msnyder@redhat.com>
11383
694f61fb 11384 * Remote.c: Spelling fix.
20fe79c8
MS
11385 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11386 If no symbol found for "sbrk", try "_sbrk".
11387 (make_output_phdrs): Use bfd_section_name.
11388 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11389 * eval.c: Indentation fix-ups.
169a7369
MS
11390 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11391 in case it gets applied to an address that is already
11392 in the instruction space.
de74f71f
MS
11393 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11394 * symfile.c: Fix indentation, long lines.
f2172603
MS
11395 * source.c: White space fix-up.
11396
cda5a58a
AC
113972002-04-12 Andrew Cagney <cagney@redhat.com>
11398
11399 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11400 * frame.c (frame_register_read): New function. Return non-zero on
11401 success.
11402 (read_relative_register_raw_bytes_for_frame): Delete.
11403 (read_relative_register_raw_bytes): Delete.
11404 * frame.h (frame_register_read): Declare.
11405 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11406 * sh-tdep.c: Ditto.
11407 * infcmd.c (do_registers_info): Ditto.
11408 * hppa-tdep.c: Ditto.
11409 * rs6000-tdep.c: Ditto.
11410 * h8500-tdep.c: Ditto.
11411 * mips-tdep.c: Ditto.
11412 * h8300-tdep.c: Ditto.
11413 * z8k-tdep.c: Ditto.
11414
2ea5f656
KB
114152002-04-12 Kevin Buettner <kevinb@redhat.com>
11416
11417 From Jimi X <jimix@watson.ibm.com>:
11418 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11419 64-bit SysV ABI.
11420
27b15785
KB
114212002-04-12 Kevin Buettner <kevinb@redhat.com>
11422
11423 From Jimi X <jimix@watson.ibm.com>:
11424 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11425 bfd info.
11426
5d57ee30
KB
114272002-04-12 Kevin Buettner <kevinb@redhat.com>
11428
11429 From Jimi X <jimix@watson.ibm.com>:
11430 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11431 register sets for these processor variants.
11432
bc1e36ca
DJ
114332002-04-11 Daniel Jacobowitz <drow@mvista.com>
11434
bc1e36ca
DJ
11435 * regformats/reg-ppc.dat: Support FPSCR.
11436
e3f36dbd
KB
114372002-04-11 Kevin Buettner <kevinb@redhat.com>
11438
11439 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11440 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11441 Add fpscr as an invalid/unfetchable register.
11442 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11443 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11444 (fill_fpregset): Add support for register fpscr.
11445 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11446 (fill_gregset): Account for the fact that register ``mq'' might
11447 not exist.
11448 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11449 (registers_power): Add fpscr to register set at slot 71.
11450 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11451 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11452
943c9c25
MS
114532002-04-11 Michael Snyder <msnyder@redhat.com>
11454
11455 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11456 * configure: Regenerate.
11457 * config.in: Regenerate.
11458 * acconfig.h: Add define for _SYSCALL32.
11459 * core-sol2.c: Remove #define _SYSCALL32.
11460 * solib-legacy.c: Remove #define _SYSCALL32.
11461
d8c0a2e7
AC
114622002-04-10 Andrew Cagney <ac131313@redhat.com>
11463
11464 * stack.c (select_frame): Cleanup internal error message, do not
11465 use %p.
11466
7cc19214
AC
114672002-04-10 Andrew Cagney <ac131313@redhat.com>
11468
11469 * stack.c (select_frame): Check that selected_frame and the
11470 specified level are as expected.
11471 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11472 Update copyright.
11473 * frame.h (struct frame_info): Add field `level'. Update
11474 copyright.
11475 Work-in-progress PR gdb/464.
11476
67a2b77e
AC
114772002-04-10 Andrew Cagney <ac131313@redhat.com>
11478
11479 * maint.c (maint_print_section_info): Rename print_section_info.
11480 (print_bfd_section_info, print_objfile_section_info): Update.
11481 * inferior.h (struct gdbarch): Add opaque declaration.
11482 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11483 * gdbarch.h: Regenerate.
11484
8cfda98c
ML
114852002-04-10 Michal Ludvig <mludvig@suse.cz>
11486
11487 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11488 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11489 (kernel_u_size): Added.
11490 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11491 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11492
ca439ad2 114932002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11494
ca439ad2
JI
11495 * valarith.c (find_size_for_pointer_math): New function, either returns
11496 the size for a pointer's target, returns 1 for void *, or errors for
11497 incomplete types.
11498 (value_add, value_sub): use find_size_for_pointer_math.
11499
2f2893d9
DJ
115002002-04-09 Daniel Jacobowitz <drow@mvista.com>
11501
11502 * linux-low.c (linux_look_up_symbols): New hook.
11503 (linux_target_ops): Add linux_look_up_symbols.
11504 * remote-utils.c (decode_address): New function.
11505 (look_up_one_symbol): New function.
11506 * server.c (handle_query): Call target look_up_symbols hook.
11507 * server.h (look_up_one_symbol): Add prototype.
11508 * target.h (struct target_ops): Add look_up_symbols hook.
11509
96cb11df
AC
115102002-04-09 Andrew Cagney <ac131313@redhat.com>
11511
11512 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11513 override FP_REGNUM with frame->fp. Update copyright.
11514 * parse.c (num_std_regs, std_regs): Delete.
11515 (target_map_name_to_register): Do not search std_regs. Update
11516 function description.
11517 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11518 declarations. Update copyright.
11519 Fix PR gdb/251.
361d1df0 11520
97658e92
DJ
115212002-04-09 Daniel Jacobowitz <drow@mvista.com>
11522
11523 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11524 after the last symbol in a block.
11525
6044e3eb
PM
115262002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11527
11528 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11529 is non zero as a found symbol.
11530
0406ec40
AC
115312002-04-08 Andrew Cagney <ac131313@redhat.com>
11532
11533 * findvar.c: Include "builtin-regs.h".
11534 (value_of_register): Call value_of_builtin_reg when applicable.
11535 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11536 (target_map_name_to_register): Call
11537 builtin_reg_map_name_to_regnum.
11538 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11539 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11540 (builtin_regs_h): Define.
11541 (builtin-regs.o): New target.
11542 (findvar.o): Add $(builtin_regs_h).
11543 * builtin-regs.c, builtin-regs.h: New files.
11544 * std-regs.c: New file.
11545 Partial fix for PR gdb/251.
11546
56a6dfb9
KB
115472002-04-08 Kevin Buettner <kevinb@redhat.com>
11548
11549 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11550 it's no longer required.
11551
3a808432
AC
115522002-04-08 Andrew Cagney <ac131313@redhat.com>
11553
11554 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11555
7c40d541
KB
115562002-04-08 Kevin Buettner <kevinb@redhat.com>
11557
11558 From Jimi X <jimix@watson.ibm.com>:
11559 * rs6000-tdep.c (rs6000_software_single_step): Use
11560 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11561 and size. Use target_insert_breakpoint() and
11562 target_remove_breakpoint() to insert and remove breakpoints
11563 instead of explicit memory reads and writes.
11564
cc9836a8
KB
115652002-04-08 Kevin Buettner <kevinb@redhat.com>
11566
11567 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11568 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11569 ELF_OBJECT_FORMAT ifdef.
11570
7495d1dc
KB
115712002-04-08 Kevin Buettner <kevinb@redhat.com>
11572
11573 From Jimi X <jimix@watson.ibm.com>:
11574 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11575
4288e836
KB
115762002-04-08 Kevin Buettner <kevinb@redhat.com>
11577
11578 From Jimi X <jimix@watson.ibm.com>:
11579 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11580 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11581
a4e4e501
MK
115822002-04-07 Mark Kettenis <kettenis@gnu.org>
11583
11584 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11585 s/asprintf/xasprintf/.
11586 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11587
006defba
AC
115882002-04-07 Andrew Cagney <ac131313@redhat.com>
11589
11590 I believe Jeff Law denies responsability for this one:
11591 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11592 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11593 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11594 Work-around for PR gdb/366.
11595
7aa83cac
EZ
115962002-04-07 Elena Zannoni <ezannoni@redhat.com>
11597
11598 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11599 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11600 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11601
cf1fcca1
EZ
116022002-04-07 Elena Zannoni <ezannoni@redhat.com>
11603
11604 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11605 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11606 information.
11607
3f289e6f
AC
116082002-04-07 Andrew Cagney <ac131313@redhat.com>
11609
11610 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11611 maintainer.
11612
129188f6
AC
116132002-04-07 Andrew Cagney <ac131313@redhat.com>
11614
11615 * README (Reporting Bugs in GDB): Document the bug web page as the
11616 prefered way of submitting bugs.
11617 Fix PR gdb/402.
11618
1200cd6e
AC
116192002-04-06 Andrew Cagney <ac131313@redhat.com>
11620
11621 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11622 -1. Update comment.
11623 * gdbarch.h, gdbarch.c: Re-generate.
11624
2853c33c
AS
116252002-04-07 Andreas Schwab <schwab@suse.de>
11626
11627 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11628 buffer to regcache_collect.
11629
c2169756
AC
116302002-04-06 Andrew Cagney <ac131313@redhat.com>
11631
11632 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11633 * gdbarch.c, gdbarch.h: Re-generate.
11634
25f1b008
AC
116352002-04-06 Andrew Cagney <ac131313@redhat.com>
11636
11637 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11638 declaration. Fix -Werror.
11639
59263426
DJ
116402002-04-05 Daniel Jacobowitz <drow@mvista.com>
11641
11642 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11643 * gdbarch.c: Regenerate.
11644
f5db4da3
MS
116452002-04-05 Michael Snyder <msnyder@redhat.com>
11646
80f8a6eb
MS
11647 * breakpoint.c (clear_command): Rewrite middle section to
11648 combine two loops with identical control conditions.
11649 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11650 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11651
ad3dcc5c
L
116522002-04-05 H.J. Lu (hjl@gnu.org)
11653
11654 * solib-svr4.c (bkpt_names): Add "__start".
11655
f32e7a74
AC
116562002-04-04 Andrew Cagney <ac131313@redhat.com>
11657
11658 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11659 as test for 64 bit target.
11660
8227c0ff
AC
116612002-04-05 Andrew Cagney <ac131313@redhat.com>
11662
11663 * h8500-tdep.c (h8500_write_fp): Delete function.
11664 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11665 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11666 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11668 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11669 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11670 (s390_write_fp):
11671 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11672 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11673 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11674 (d10v_write_fp): Delete function.
11675 * inferior.h (write_fp, generic_target_write_fp): Delete
11676 declarations.
11677 * regcache.c (generic_target_write_fp): Delete function.
11678 (write_fp): Delete function.
11679 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11680 * gdbarch.h, gdbarch.c: Regenerate.
11681 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11682 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11683 (sparc64_write_fp): Delete declaration.
11684 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11685 (h8500_write_fp): Delete declaration.
11686
2757dd86
AC
116872002-04-04 Andrew Cagney <ac131313@redhat.com>
11688
11689 * sparc-tdep.c (sparc64_write_fp): Delete.
11690 (sparc_push_dummy_frame): Replace write_fp call with code to store
11691 the FP directly.
11692 (sparc_gdbarch_init): Do not initialize write_fp.
11693
c69255e1
KB
116942002-04-05 Kevin Buettner <kevinb@redhat.com>
11695
11696 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11697 clause.
11698
ae767bfb
JB
116992002-03-29 Jim Blandy <jimb@redhat.com>
11700
11701 * stack.c (get_selected_block): Add new argument `addr_in_block',
11702 used to return the exact code address we used to select the block,
11703 not just the block.
11704 * blockframe.c (get_frame_block, get_current_block): Same.
11705 * frame.h (get_frame_block, get_current_block,
11706 get_selected_block): Update declarations.
11707 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11708 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11709
84d2ac95
MS
117102002-04-05 Michael Snyder <msnyder@redhat.com>
11711
11712 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11713 warning message.
11714
596aa3bf
JB
117152002-04-05 J. Brobecker <brobecker@gnat.com>
11716
11717 * utils.c (xfullpath): New function.
11718 * defs.h (xfullpath): Add declaration.
11719 * source.c (openp): Use xfullpath in place of gdb_realpath to
11720 avoid resolving the basename part of filenames when the
11721 associated file is a symbolic link. This fixes a potential
11722 inconsistency between the filenames known to GDB and the
11723 filenames it prints in the annotations.
11724 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11725 to be able to match a filename with either the real filename, or
11726 the name of any symbolic link to this file.
11727 (lookup_partial_symtab): Ditto.
11728
c02f5703
MS
117292002-04-04 Michael Snyder <msnyder@redhat.com>
11730
11731 * breakpoint.c: Add support for hardware breakpoints in overlays.
11732 (overlay_events_enabled): New state variable.
11733 (insert_breakpoints): Use overlay_events_enabled to decide
11734 whether to attempt to set a breakpoint at the overlay load addr.
11735 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11736 (remove_breakpoint): Use overlay_events_enabled to decide
11737 whether breakpoints need to be removed from overlay load addr.
11738 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11739 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11740 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11741 disable_overlay_breakpoints): Update overlay_events_enabled.
11742
5fb290d7
DJ
117432002-04-04 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * dwarf2read.c (struct function_range): New.
11746 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11747 (check_cu_functions): New.
11748 (read_file_scope): Initialize global function lists.
11749 Call dwarf_decode_line after processing children.
11750 (read_func_scope): Add to global function list.
11751 (dwarf_decode_lines): Call check_cu_functions everywhere
11752 record_line is called. Call record_line with a linenumber
11753 of 0 to mark sequence ends.
11754
7b3fabf0
ML
117552002-04-04 Michal Ludvig <mludvig@suse.cz>
11756
361d1df0 11757 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11758 change sync with glibc.
11759
bce58c09
JB
117602002-04-03 Jim Blandy <jimb@redhat.com>
11761
11762 * configure.in: Call AC_C_INLINE.
11763 * configure: Regenerated.
361d1df0 11764
2fccf04a
DJ
117652002-04-01 Daniel Jacobowitz <drow@mvista.com>
11766
11767 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11768 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11769
2d1bfe2e
MK
117702002-03-31 Mark Kettenis <kettenis@gnu.org>
11771
a5941fbf
MK
11772 * NEWS: Mention gcore support on FreeBSD/i386.
11773
a90cd31d
MK
11774 * fbsd-proc.c: New file.
11775 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11776 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11777
2d1bfe2e
MK
11778 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11779 while statement.
11780
9eb6e5a1
JB
117812002-03-29 Jim Blandy <jimb@redhat.com>
11782
11783 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11784 unescaped newlines in string literals, but newer ones don't. So
11785 escape them.
11786
f02df580
MS
117872002-03-26 Michael Snyder <msnyder@redhat.com>
11788 Andrew Cagney <cagney@redhat.com>
11789
361d1df0 11790 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11791 restore file to memory.
11792 * cli/cli-dump.h: New file.
11793 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11794 * NEWS: Mention new commands.
f02df580 11795
109f874e
MS
117962002-03-28 Michael Snyder <msnyder@redhat.com>
11797
11798 * symfile.c (symbol_file_add): Move test for null symbols to later.
11799
520f6ade
AC
118002002-03-27 Andrew Cagney <ac131313@redhat.com>
11801
11802 From veksler at il.ibm.com:
11803 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11804 the xstrduped original path.
11805 Fix PR gdb/417.
11806
d4654627
MS
118072002-03-27 Michael Snyder <msnyder@redhat.com>
11808
11809 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11810 * infcmd.c (_initialize_infcmd): Ditto.
11811 * language.c (_initialize_language): Ditto.
11812 * symfile.c (_initialize_symfile): Ditto.
11813 * top.c (_init_main): Ditto.
11814 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11815
6be8bc0c
EZ
118162002-03-27 Elena Zannoni <ezannoni@redhat.com>
11817
11818 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11819 vector registers handling.
11820 (skip_prologue): Handle new AltiVec instructions. Fill in new
11821 fields of frame data.
11822 (frame_get_saved_regs): Fill in information for AltiVec registers.
11823
12af6855
JB
118242002-03-27 Jim Blandy <jimb@redhat.com>
11825
11826 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11827 a function; leave this macro here to invoke that function.
11828 (symbol_init_mangled_name): Declaration for that function.
11829 * symtab.c (symbol_init_mangled_name): New function.
11830
dc672865
AC
118312002-03-27 Andrew Cagney <ac131313@redhat.com>
11832
11833 * valarith.c: Replace strerror with safe_strerror.
11834 * tracepoint.c: Ditto.
11835 * lin-lwp.c: Ditto.
11836 * go32-nat.c: Ditto.
11837 * inflow.c: Ditto.
11838 * gnu-nat.c: Ditto.
11839
d96429cd
AS
118402002-03-27 Andreas Schwab <schwab@suse.de>
11841
11842 * event-top.c (command_line_handler): Remove useless if.
11843
7e336ba1
AJ
118442002-03-27 Andreas Jaeger <aj@suse.de>
11845
11846 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11847 comment.
11848
de220d0f
ML
118492002-03-27 Michal Ludvig <mludvig@suse.cz>
11850
11851 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11852 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11853 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11854 (x86_64_linux_dr_get_status, supply_gregset),
11855 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11856 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11857 (x86_64_register_info_table): Add.
11858 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11859 (x86_64_register_raw_size, x86_64_register_virtual_type),
11860 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11861 general x86_64_register_info_table.
11862 (i386_gdbarch_init): gdbarch_register_bytes is now set
11863 dynamicaly during initialization.
11864 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11865 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11866
0e98d0a7
DJ
118672002-03-27 Daniel Jacobowitz <drow@mvista.com>
11868
11869 * gdbserver/server.c (main): Call target_signal_to_host_p
11870 and target_signal_to_host on signals received from the remote.
11871 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11872 target_signal_from_host on signals sent to the remote.
11873 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11874 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11875
3130066b
DJ
118762002-03-27 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * signals/signals.c: Include "server.h" in gdbserver build.
11879 (target_signal_from_name): Don't use STREQ.
11880 (_initialize_signals): Likewise. Don't include function in
11881 gdbserver build.
11882
9aedf4f4
DJ
118832002-03-27 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * signals.c: Moved to...
11886 * signals/signals.c: Here.
7e336ba1 11887 * Makefile (signals.o): Update.
9aedf4f4 11888
3fa41cdb
JL
118892002-03-26 Jeff Law (law@redhat.com)
11890
11891 * somread.c (som_symtab_read): Remove some commented out code and
11892 updated related comments. Do not set the minimal symbol table to
11893 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11894 in a dynamic executable.
11895 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11896 where we are unable to find the minimal symbol for the given
11897 PC value.
11898
ee677e8d
MS
118992002-03-25 Jeff Law (law@redhat.com)
11900
11901 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11902
e76e1718
ML
119032002-03-25 Michal Ludvig <mludvig@suse.cz>
11904
11905 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11906
18a642a1
AC
119072002-03-23 Andrew Cagney <ac131313@redhat.com>
11908
11909 * command.h: Update copyright.
11910 (struct cmd_list_element): Replace definition with opaque
11911 declaration.
11912 (enum cmd_types): Document that it will eventually be moved to
11913 cli/cli-decode.h
11914 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11915 (MALLOCED_REPLACEMENT): Delete macro.
11916 * Makefile.in (cli_decode_h): Add $(command_h).
11917 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11918 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11919 * completer.c: Include "cli/cli-decode.h".
11920 * maint.c: Include "cli/cli-decode.h".
11921 * cli/cli-decode.h: Include "command.h".
11922 (enum command_class): Delete.
11923 (enum cmd_types): Comment out.
11924 (enum cmd_auto_boolean): Delete.
11925 (enum var_types): Delete.
11926
b2875cc0
AC
119272002-03-23 Andrew Cagney <ac131313@redhat.com>
11928
11929 * cli/cli-decode.c: Include "gdb_assert.h".
11930 (add_set_or_show_cmd): New static function.
11931 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11932 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11933 all fields, such as func, from the set command.
11934
3b45974e
AC
119352002-03-23 Andrew Cagney <ac131313@redhat.com>
11936
11937 * MAINTAINERS (sh-elf): Change warning flag to -w.
11938
823ca731
AC
119392002-03-23 Andrew Cagney <cagney@redhat.com>
11940
11941 * defs.h (error): Add printf format attribute.
11942 * thread-db.c (thread_from_lwp): Fix error format string.
11943 * stack.c (parse_frame_specification): Ditto.
11944 * cli/cli-decode.c (undef_cmd_error): Ditto.
11945 * scm-lang.c (scm_lookup_name): Ditto.
11946 * tracepoint.c (trace_error): Ditto.
11947 * remote-utils.c (usage): Ditto.
11948 * remote.c (compare_sections_command): Ditto.
11949 Fix PR gdb/328.
11950
0e101458
AC
119512002-03-22 Andrew Cagney <ac131313@redhat.com>
11952
11953 * gdbtypes.c (append_composite_type_field): New function.
11954 (init_composite_type): New function.
11955 * gdbtypes.h (append_composite_type_field): Declare.
11956 (init_composite_type): Ditto.
11957
8e0662df
EZ
119582002-03-22 Elena Zannoni <ezannoni@redhat.com>
11959
11960 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11961 function.
8e0662df
EZ
11962 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11963 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11964 structure returning convention for SYSV ABI case, but not
11965 for GNU/Linux, FreeBSD, or NetBSD.
11966
3121eff0
DJ
119672002-03-22 Daniel Jacobowitz <drow@mvista.com>
11968
11969 * symtab.h (lookup_block_symbol): Add mangled_name argument
11970 to prototype.
11971
11972 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11973 with new mangled_name argument.
11974 * linespec.c (decode_line_1): Likewise.
11975 * valops (value_of_this): Likewise.
11976 * symtab.c (lookup_transparent_type): Likewise.
11977 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11978 (lookup_symbol): If we are given a mangled name, pass it down
11979 to lookup_symbol_aux.
11980 (lookup_block_symbol): If we are given a mangled name to check
11981 against, only return symbols which match it.
11982
349b409f
CF
119832002-03-22 Christopher Faylor <cgf@redhat.com>
11984
11985 * win32-nat.c (child_create_inferior): Check for proper shell to use
11986 here, in case the user changes it on the fly.
11987 (_initialize_inftarg): Remove shell path considerations.
11988
2a873819
EZ
119892002-03-21 Elena Zannoni <ezannoni@redhat.com>
11990
11991 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11992 for gdbarch_max_register_raw_size and max_register_virtual_size.
11993 Adjust copyright year.
11994
a1b9830c
DJ
119952002-03-21 Daniel Jacobowitz <drow@mvista.com>
11996
11997 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11998 in a function to cover the entire beginning of the function
11999 as well if it does not already.
12000
8b5790f2
TR
120012002-03-21 Tom Rix <trix@redhat.com>
12002
12003 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12004 (rs6000_ptrace64): Renamed from ptrace64.
12005
bdbe5747
MH
120062002-03-20 Martin M. Hunt <hunt@redhat.com>
12007
12008 * gdbserver/remote-utils.c (remote_open): Don't call
12009 getprotobyname, we're all using TCP here so just use
12010 IPPROTO_TCP.
7e336ba1 12011 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
12012
120132002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 12014
bdbe5747
MH
12015 * regcache.c (_initialize_regcache): No need to call
12016 build_regcache() at this time; it gets called whenever
12017 the gdbarch changes.
12018
7781cd62
DB
120192002-03-20 David O'Brien <obrien@FreeBSD.org>
12020
12021 * sparc-nat.c: Include sys/param.h where possible.
12022
f65ca430
DJ
120232002-03-20 Daniel Jacobowitz <drow@mvista.com>
12024
12025 Fix PR gdb/422.
12026 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12027 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12028 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12029 complex types.
12030 * stabsread.c (rs6000_builtin_type): Likewise.
12031 (read_sun_floating_type): Likewise.
12032
0c867556
PS
120332002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12034
12035 * stabsread.c (read_member_functions): Remove skip code for duplicate
12036 constructor/destructor methods. Use standard parsing for these
12037 methods and just do not chain them to the list of methods after
12038 parsing.
12039
12b9c64f
AO
120402002-03-19 Alexandre Oliva <aoliva@redhat.com>
12041
12042 * coffread.c: Remove redundant static declarations. Replace
12043 occurrences of `PTR' with `void *'.
12044 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12045 * top.h (quit_cover): Likewise.
12046 * defs.h (catch_errors): Likewise.
12047
349c5d5f
AC
120482002-03-18 Andrew Cagney <ac131313@redhat.com>
12049
12050 * defs.h (XMALLOC): Define.
12051 * gdb-events.sh (XMALLOC): Delete macro.
12052 * gdb-events.c, gdb-events.h: Regenerate.
12053 * gdbarch.sh (XMALLOC): Delete macro.
12054 * gdbarch.c: Regenerate.
12055 * serial.c (XMALLOC): Delete macro.
12056 * ui-file.c (XMALLOC): Ditto.
12057 * ser-unix.h (XMALLOC): Ditto.
12058 * sh-tdep.c (XMALLOC): Ditto.
12059 * ui-out.c (XMALLOC): Ditto.
12060 * utils.c (XMALLOC): Ditto.
12061 * i386-tdep.c (XMALLOC): Ditto.
12062 * gdb-events.c (XMALLOC): Ditto.
12063 * d10v-tdep.c (XMALLOC): Ditto.
12064 * cli-out.c (XMALLOC): Ditto.
12065
12066 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12067 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12068 * ui-file.c, ui-out.c: Ditto.
12069
7d0766f3
AC
120702002-03-18 Andrew Cagney <ac131313@redhat.com>
12071
12072 * command.h (struct cmd_list_element): Add field context.
12073 (set_cmd_context, get_cmd_context): Declare.
12074 * cli/cli-decode.h: Ditto.
12075 * cli/cli-decode.c (get_cmd_context): New function.
12076 (set_cmd_context): New function.
12077 (add_cmd): Initialize context.
12078 Part of fixing PR gdb/145 and PR gdb/146.
12079
5913bcb0
AC
120802002-03-17 Andrew Cagney <ac131313@redhat.com>
12081
1868c04e
AC
12082 * cli/cli-decode.c (cmd_type): New function.
12083 * command.h (cmd_type): Declare.
12084 * infrun.c (set_schedlock_func): Call function cmd_type.
12085 * kod.c (kod_set_os): Call cmd_type.
12086 * cris-tdep.c (cris_version_update): Use function cmd_type.
12087 (cris_mode_update, cris_abi_update): Ditto.
12088
5913bcb0
AC
12089 * command.h: (execute_cmd_post_hook): Declare.
12090 (execute_cmd_pre_hook): Declare.
12091 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12092 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12093 functions. Execute pre/post hook while ensuring that afterwords
12094 hook_in is cleared.
12095 * top.c (execute_command): Use execute_cmd_post_hook, and
12096 execute_cmd_pre_hook to execute pre/post commands.
12097 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12098 hook_stop_stub.
12099 (hook_stop_stub): Call execute_cmd_pre_hook.
12100
b51450c9
AC
121012002-03-17 Andrew Cagney <ac131313@redhat.com>
12102
12103 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12104 set'' and this leads to a core dump. Move xstrdup of
12105 operating_system to after check that it is not NULL.
12106
f66c9f11
AC
121072002-03-17 Andrew Cagney <ac131313@redhat.com>
12108
8e694ecf
AC
12109 * kod.c (kod_set_os): Remove unnecessary check that
12110 ``command->type'' is set_cmd.
12111
f66c9f11
AC
12112 * valprint.c (set_input_radix): Use input_radix.
12113 (set_output_radix): Use output_radix.
12114 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12115 isn't reverted.
12116
9d01611c
AC
121172002-03-16 Andrew Cagney <ac131313@redhat.com>
12118
12119 * value.h (struct value): Delete field ``substring_addr''. Change
12120 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
12121 force_core_addr_align and force_pointer_aligh.
12122
12123 * value.h (struct value): Fix typo in above change.
9d01611c 12124
4156bb53
PS
121252002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12126
12127 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12128 to fix internal_error from ``maintenance print architecture''.
12129
0e5e3ea6
PS
121302002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12131
12132 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12133 for gcc versions after gcc-2.8.1.
12134
9b013045
PS
121352002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12136
12137 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12138 for method resolution. Restore adjustment of ``this'' pointer after
12139 calling value_struct_elt, which was accidentally removed during the
12140 HP merge.
12141
376c9600
AC
121422002-03-15 Andrew Cagney <ac131313@redhat.com>
12143
12144 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12145 value_of_register.
12146 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12147 get_saved_register.
12148 * value.h (value_of_register): Update.
12149
a4db0f07
RH
121502002-03-14 Richard Henderson <rth@redhat.com>
12151
12152 * configure.in: Detect declaration for canonicalize_file_name.
12153 * utils.c (canonicalize_file_name): Declare, if needed.
12154 (gdb_realpath): Prefer realpath if available and usable.
12155 * config.in, configure: Rebuild.
12156
96383835
RH
121572002-03-14 Richard Henderson <rth@redhat.com>
12158
12159 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12160 a constant array bound.
12161
12162 * MAINTAINERS: Add myself to write-after-approval.
12163
75245b24
MS
121642002-03-14 Michael Snyder <msnyder@redhat.com>
12165
12166 * symfile.c (syms_from_objfile): Return immediately if no syms.
12167 (symbol_file_add): Return immediately if no syms.
12168 (find_sym_fns): Return immediately if no syms.
12169
e641a1ca
ML
121702002-03-13 Michal Ludvig <mludvig@suse.cz>
12171
12172 * gdbserver/remote-util.c (remote_open): Print remote-side's
12173 IP address when remote debugging over the network.
7e336ba1 12174
df08bfec
DB
121752002-03-12 David O'Brien <obrien@FreeBSD.org>
12176
12177 * config/sparc/fbsd.mh: Fix copyright.
12178 * config/sparc/fbsd.mt: Likewise.
12179
9a57864f
RE
121802002-03-11 Richard Earnshaw <rearnsha@arm.com>
12181
12182 * MAINTAINERS: Fix typo in name of gdb warnings option.
12183 (x86-64): Fix formating so that this can be parsed by awk.
12184
dd7bf85e
DJ
121852002-03-10 Daniel Jacobowitz <drow@mvista.com>
12186
12187 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12188 * defs.h: Include "gdb/signals.h".
12189 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12190
33a0a2ac
ML
121912002-03-10 Michal Ludvig <mludvig@suse.cz>
12192
12193 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 12194 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
12195 from x86-64-tdep.h
12196
dd824b04
DJ
121972002-03-10 Daniel Jacobowitz <drow@mvista.com>
12198 Don Howard <dhoward@redhat.com>
12199
12200 * mips-tdep.c (ST0_FR): Define.
12201 (mips2_fp_compat): New function, temporarily disabled.
12202 (mips_read_fp_register_single): New function.
12203 (mips_read_fp_register_double): New function.
12204 (mips_print_register): Use them.
12205 (do_fp_register_row): Likewise.
12206
6a41ff59
AC
122072002-03-09 Andrew Cagney <ac131313@redhat.com>
12208
12209 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12210 approval''.
12211
4ea09c10
PS
122122002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12213
12214 * stabsread.c (read_member_functions): Fix is_stub test for
12215 static member functions, improve comment.
12216
6ccc741d
RE
122172002-03-07 Richard Earnshaw <rearnsha@arm.com>
12218
12219 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12220 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12221 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12222 commands that set boolean values.
12223 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12224 (arm_rdi_resume): Always initialize PC.
12225 (arm_rdi_open): Don't use rslt as a boolean.
12226 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12227 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12228 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12229 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12230
438013df
AO
122312002-03-06 Alexandre Oliva <aoliva@redhat.com>
12232
12233 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12234 * configure: Rebuilt.
12235
70ed8774
SC
122362002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12237
12238 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12239 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12240
5ba2abeb
AC
122412002-03-06 Andrew Cagney <ac131313@redhat.com>
12242
12243 * cli/cli-decode.c (set_cmd_completer): New function.
12244 * command.h (set_cmd_completer): Declare.
12245 * cli/cli-decode.h (set_cmd_completer): Ditto.
12246
12247 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12248 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12249 * win32-nat.c (_initialize_inftarg): Ditto.
12250 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12251 * proc-api.c (_initialize_proc_api): Ditto.
12252 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12253 * source.c (_initialize_source): Ditto.
12254 * exec.c (_initialize_exec): Ditto.
12255 * solib.c (_initialize_solib): Ditto.
12256 * top.c (init_main): Ditto.
12257 * tracepoint.c (_initialize_tracepoint): Ditto.
12258 * symfile.c (_initialize_symfile): Ditto.
12259 * printcmd.c (_initialize_printcmd): Ditto.
12260 * infcmd.c (_initialize_infcmd): Ditto.
12261 * corefile.c (_initialize_core): Ditto.
12262
f779ca99
AC
122632002-03-05 Andrew Cagney <ac131313@redhat.com>
12264
12265 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12266
01a3934b
AC
122672002-03-05 Andrew Cagney <ac131313@redhat.com>
12268
12269 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12270
37057839
AC
122712002-03-05 Andrew Cagney <ac131313@redhat.com>
12272
12273 * NEWS: Update headings, 5.2 has branched.
12274
c6ecbae5
DJ
122752002-03-04 Daniel Jacobowitz <drow@mvista.com>
12276
12277 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12278 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12279 (register_addr, REGISTER_RAW_SIZE): Likewise.
12280 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12281 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12282
e9f30c21
ML
122832002-03-03 Michal Ludvig <mludvig@suse.cz>
12284
12285 * MAINTAINERS (x86-64): Add myself.
12286 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12287 changed value_ptr -> struct value *
12288
54394ac3
DB
122892002-03-01 David O'Brien <obrien@FreeBSD.org>
12290
12291 * configure.host (sparc64-*-freebsd): Add.
12292 * configure.tgt: Likewise.
12293 * config/sparc/fbsd.mh: New file.
12294 * config/sparc/fbsd.mt: Likewise.
12295 * config/sparc/nm-fbsd.h: Likewise.
12296 * config/sparc/tm-fbsd.h: Likewise.
12297
bfe95955
DJ
122982002-03-01 Daniel Jacobowitz <drow@mvista.com>
12299
12300 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12301 regformats/reg-s390x.dat.
12302
f33c6cbf
AC
123032002-03-01 Andrew Cagney <ac131313@redhat.com>
12304
12305 * utils.c: Add FIXME explaining true/false problem.
12306
5ecaa7dd
AC
123072002-02-28 Andrew Cagney <ac131313@redhat.com>
12308
12309 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12310
2a251cc2
MC
123112002-02-28 Michael Chastain <mec@shout.net>
12312
12313 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12314
6a8031a3 123152002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12316
12317 * gdbserver/linux-s390-low.c: New file.
12318 * regformats/reg-s390.dat: New file.
12319 * regformats/reg-s390x.dat: New file.
12320 * gdbserver/configure.srv: Add S/390.
12321 * gdbserver/Makefile.in: Add S/390.
12322 * configure.tgt: Enable gdbserver for S/390.
12323
ac469903
EZ
123242002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12325
12326 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12327 first line of the doc string for "info dos", except at the end of
12328 the sentence, since the short help stops at the first period.
12329
985cb1a3
JM
123302002-02-28 Jason Merrill <jason@redhat.com>
12331
12332 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12333
c570663e
FF
123342002-02-27 Fred Fish <fnf@redhat.com>
12335
12336 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12337 comment (dumy -> dummy).
12338
43630227
PS
123392002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12340
12341 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12342
b84911e8
RB
123432002-02-27 Rodney Brown <rbrown64@csc.com.au>
12344
12345 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12346
58caa3dc
DJ
123472002-02-27 Daniel Jacobowitz <drow@mvista.com>
12348
12349 * gdbserver/acconfig.h: New file.
12350 * gdbserver/i387-fp.c: New file.
12351 * gdbserver/i387-fp.h: New file.
12352 * gdbserver/linux-x86-64.c: New file.
12353 * regformats/reg-x86-64.dat: New file.
12354 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12355 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12356 * gdbserver/configure.in: Add support for regsets.
12357 * gdbserver/config.in: Regenerate.
12358 * gdbserver/configure: Regenerate.
12359 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12360 * gdbserver/linux-low.h: New file.
12361 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12362 for regsets.
12363 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12364 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12365 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12366 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12367 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12368 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12369 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12370 "i387-fp.h". Add PTRACE_GETREGS and friends.
12371 * gdbserver/regcache.c (supply_register): New function.
12372 (supply_register_by_name): New function.
12373 (collect_register): New function.
12374 (collect_register_by_name): New function.
12375
93652174
DJ
123762002-02-27 Daniel Jacobowitz <drow@mvista.com>
12377
12378 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12379 (config.status): Add configure.srv dependency.
12380 (server_h): Add config.h dependency.
12381
a02e4a61
DJ
123822002-02-27 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12385 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12386 * gdbserver/configure.srv: Change i386-*-linux* to use
12387 reg-i386-linux.o.
12388
ce0eebec
AC
123892002-02-26 Andrew Cagney <ac131313@redhat.com>
12390
12391 * x86-64-tdep.c: Re-indent. Update copyright date.
12392
82dbc5f7
AC
123932002-02-26 Andrew Cagney <ac131313@redhat.com>
12394
12395 From Michal Ludvig <mludvig@suse.cz>:
12396 * x86-64-tdep.c (value.h): Delete.
12397 (gdb_assert.h): Include.
12398 (x86_64_register_convert_to_virtual,
12399 x86_64_register_convert_to_raw ): Add check which lets only
12400 floating-point values to be converted.
12401 (value_push): Delete.
12402 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12403 (i386_gdbarch_init): Number of register_bytes fixed.
12404
e4621584
AC
124052002-02-26 Andrew Cagney <ac131313@redhat.com>
12406
12407 * MAINTAINERS: Add x86-64 target.
12408
81a9a963
AC
124092002-02-26 Andrew Cagney <ac131313@redhat.com>
12410
12411 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12412 * osfsolib.c (solib_map_sections): Ditto.
12413 * irix5-nat.c (solib_map_sections): Ditto.
12414 * corelow.c (gdb_check_format): Ditto.
12415 * symfile.c (symfile_bfd_open): Ditto.
12416 * solib.c (solib_map_sections): Ditto.
12417 Fix PR gdb/354.
7e336ba1 12418
0f017ab9
AC
124192002-02-26 Andrew Cagney <ac131313@redhat.com>
12420
12421 * remote.c (_initialize_remote): By default, disable ``e'' and
12422 ``E'' step out-of-range packets.
12423
75738c29
AS
124242002-02-26 Andreas Schwab <schwab@suse.de>
12425
12426 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12427 m68k_linux_frame_saved_pc.
12428 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12429 in_sigtramp.
12430 (SIGCONTEXT_PC_OFFSET): Remove.
12431 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12432 m68k_linux_sigtramp_saved_pc): New functions.
12433 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12434 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12435 (UCONTEXT_PC_OFFSET): Define.
12436 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12437 non-RT and RT signal trampolines.
12438
7e8ed687
RE
124392002-02-26 Richard Earnshaw <rearnsha@arm.com>
12440
12441 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12442 (TARGET_NBPG, STACK_END_ADDR): Delete
12443 (VARIABLES_INSIDE_BLOCK): Delete.
12444
6972bc8b
AC
124452002-02-25 Andrew Cagney <ac131313@redhat.com>
12446
12447 * utils.c (perror_with_name): Make string parameter constant.
12448 (print_sys_errmsg): Ditto.
12449 (query): Ditto.
12450 * defs.h (perror_with_name): Update.
12451 (print_sys_errmsg): Update.
12452 (query): Update.
12453
aa32f823
DJ
124542002-02-25 Daniel Jacobowitz <drow@mvista.com>
12455
12456 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12457 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12458
19caaa45
PS
124592002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12460
12461 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12462 if it already matches the current architecture from the exec file.
12463 Include arch-utils.h for gdbarch_info_init prototype.
12464 * Makefile.in (rs6000-nat.o): Update dependencies.
12465
d951901f
EZ
124662002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12467
12468 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12469 list of exported variables.
12470
7ea81414
DJ
124712002-02-24 Daniel Jacobowitz <drow@mvista.com>
12472
12473 * gdbserver/configure.srv: New file.
12474 * gdbserver/configure.in: Use configure.srv instead
12475 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12476 from it.
12477 * gdbserver/configure: Regenerated.
12478 * gdbserver/terminal.h: New file.
12479 * gdbserver/Makefile.in: Update for configure changes. Remove
12480 more unneeded include paths.
12481
080fe24b
AC
124822002-02-24 Andrew Cagney <ac131313@redhat.com>
12483
12484 From wiz at danbala:
12485 * config/sparc/tm-sp64.h: Fix grammar and typos.
12486 Fix PR gdb/287.
12487
8605d56e
AC
124882002-02-24 Andrew Cagney <ac131313@redhat.com>
12489
12490 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12491 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12492 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12493 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12494 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12495 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12496 * s390-tdep.c: Ditto.
92362027
AC
12497 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12498 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12499 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12500 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12501 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12502 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12503 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12504 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12505 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12506 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12507 Fix PR gdb/378.
7e336ba1 12508
8ed32cc0
AC
125092002-02-23 Andrew Cagney <ac131313@redhat.com>
12510
a3007b6f
AC
12511 * lin-thread.c: Delete file.
12512 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12513 to gdb_proc_service.h.
12514 * configure: Re-generate.
12515
50a9e2f1
AC
12516 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12517 * serial.c (serial_open): Delete check for "ocd".
12518 Fix PR gdb/349.
12519
8b6e7932
AC
12520 * Makefile.in (linux-thread.o): Delete target.
12521 * linux-thread.c: Delete file.
12522
d155c46b
AC
12523 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12524 renamed SH files to be consistent.
12525
8ed32cc0
AC
12526 * symtab.c (sort_search_symbols): Use xfree.
12527
0e18d038
RE
125282002-02-23 Richard Earnshaw <rearnsha@arm.com>
12529
12530 * arm-linux-tdep.c (arm_linux_init_abi): Register
12531 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12532 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12533 definition with undef, since we don't want the sysvr4 definition.
12534 (SKIP_TRAMPOLINE_CODE): Likewise.
12535
27aac7ff
AC
125362002-02-23 Andrew Cagney <ac131313@redhat.com>
12537
12538 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12539
12540 * configure.in: (AC_CHECK_FUNCS) Added test for
12541 canonicalize_file_name Regenerated.
12542 * config.in, configure: Regenerated.
12543 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12544 defined use canonicalize_file_name.
7e336ba1 12545
65a6e0ee
MC
125462002-02-23 Michael Chastain <mec@shout.net>
12547
12548 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12549
47b95330
AC
125502002-02-23 Andrew Cagney <ac131313@redhat.com>
12551
12552 * README: Remove references to cygnus.com.
12553 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12554 dot com'' form. Remove references to cygnus.com and sourceware.
12555
696f451b
AC
125562002-02-23 Andrew Cagney <ac131313@redhat.com>
12557
12558 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12559 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12560 1003.1-2001 no longer allows "head -1".
12561 * gdb/Makefile.in (version.c): Likewise.
12562 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12563 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12564 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12565
bbaca940
AC
125662002-02-23 Andrew Cagney <ac131313@redhat.com>
12567
12568 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12569 * command.h (cmd_cfunc_eq): Declare.
12570 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12571
12572 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12573 ``struct cmd_list_element *''.
12574 * cli/cli-cmds.c (is_complete_command): Update. Use
12575 cmd_cfunc_eq.
12576 * top.c (execute_command): Pass the command to
12577 is_complete_command.
12578 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12579
b8b8b047
AC
125802002-02-23 Andrew Cagney <ac131313@redhat.com>
12581
12582 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12583 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12584 architecture defines.
12585 * s390-tdep.c (s390_gdbarch_init): Likewise.
12586
19d3fc80
RE
125872002-02-23 Richard Earnshaw <rearnsha@arm.com>
12588
12589 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12590 (arm_linux_push_arguments): Likewise.
12591 (arm_linux_init_abi): Register them. Also register linux-specific
12592 call_dummy_words.
12593 (find_minsym_and_objfile): Use strcmp, not STREQ.
12594 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12595 (arm_linux_call_dummy_words): Delete declaration.
12596 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12597 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12598 declarations.
12599 (LOWEST_PC): Delete.
12600
3ab13650
PS
126012002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12602
12603 * maint.c (print_section_info): Do not prepend `0x' to filepos
12604 output, it will be handled by local_hex_string_custom.
12605
19d3fc80 126062002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12607
12608 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12609 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12610 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12611
d85a5daf
JB
126122002-02-22 Jim Blandy <jimb@redhat.com>
12613
12614 Indicate that the bcache functions don't change the strings
12615 they're passed.
12616 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12617 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12618
eeb25b8a
PM
126192002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12620
12621 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12622
6badb179
CF
126232002-02-21 Christopher Faylor <cgf@redhat.com>
12624
12625 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12626 find the complete path to a loaded DLL.
12627
e8717518
FF
126282002-02-21 Fred Fish <fnf@redhat.com>
12629
12630 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12631 that marks the end of the range of a function, enter a line number
12632 entry that has a line number of zero and a PC offset that matches
12633 the end of the function. This starts a range of PC's for which no
12634 line number information is known.
12635 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12636 PC's for which no line number info is found (line number is zero)
12637 then we didn't find any valid line information.
12638 * symtab.h: Document use of zero line number entry.
12639
9abe5450
EZ
126402002-02-21 Elena Zannoni <ezannoni@redhat.com>
12641
12642 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12643 (have_ptrace_getvrregs): Define for run time checks.
12644 (gdb_vrregset_t): New type for Altivec register handling.
12645 (fetch_register, store_register): Fetch/store altivec register
12646 when needed.
12647 (fetch_altivec_register, store_altivec_register): New functions.
12648 (supply_vrregset, fill_vrregset): New functions.
12649 (fetch_altivec_registers, store_altivec_registers): New functions.
12650 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12651 registers as well.
12652
aaa38bb5
AJ
126532002-02-21 Jiri Smid <smid@suse.cz>
12654
12655 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12656
b34db576
RE
126572002-02-21 Richard Earnshaw <rearnsha@arm.com>
12658
12659 * Makefile.in (armnbsd-nat.o): Update dependencies.
12660 * armnbsd-nat.c (supply_gregset): New function. Common code to
12661 supply the integer register set.
12662 (supply_fparegset): New function. Similar for FPA registers.
12663 (fetch_regs, fetch_fp_regs): Use them.
12664 (fetch_core_registers): Likewise.
12665 (fetch_elfcore_registers): New function.
12666 (arm_netbsd_elfcore_fns): New core-file type specification.
12667 (_initialize_arm_netbsd_nat): Register it.
12668
3e56fc4b
RE
126692002-02-21 Richard Earnshaw <rearnsha@arm.com>
12670
12671 * armnbsd-nat.c: Include gdbcore.h.
12672 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12673 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12674 'void' to declaration, to shut up ARI.
12675 (fetch_core_registers): Make static. Rewrite using supply_register.
12676 (arm_netbsd_core_fns): New core-file type specification.
12677 (_initialize_arm_netbsd_nat): New function.
12678
097f6b0b
CF
126792002-02-21 Christopher Faylor <cgf@redhat.com>
12680
12681 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12682 value.
12683
c914e0cc
CF
126842002-02-20 Christopher Faylor <cgf@redhat.com>
12685
12686 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12687 fails.
12688
385fa495
DJ
126892002-02-20 Daniel Jacobowitz <drow@mvista.com>
12690
12691 * jv-exp.y (parse_number): Change type of implicit longs
12692 to builtin_type_uint64.
12693
e5f1222d
DJ
126942002-02-20 Daniel Jacobowitz <drow@mvista.com>
12695
12696 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12697 to be an integer instead of a `union wait'.
12698
75c9abc6
DJ
126992002-02-20 Daniel Jacobowitz <drow@mvista.com>
12700
12701 * mips-linux-nat.c: Call the operating system GNU/Linux.
12702 * mips-linux-tdep.c: Likewise.
12703 * mips-tdep.c: Likewise.
12704
551792a5
DJ
127052002-02-20 Daniel Jacobowitz <drow@mvista.com>
12706
12707 Fix PR gdb/265.
12708 * jv-exp.y (parse_number): Handle 64-bit integers.
12709
ee6e2b82
DJ
127102002-02-20 Daniel Jacobowitz <drow@mvista.com>
12711
12712 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12713 AC_STDC_HEADERS to AC_HEADER_STDC.
12714 * gdbserver/configure: Regenerated.
12715
a48442a0
RE
127162002-02-20 Richard Earnshaw <rearnsha@arm.com>
12717
12718 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12719 is defined.
12720 * sparc-tdep.c (get_longjmp_target): Likewise.
12721
fe419ffc
RE
127222002-02-20 Richard Earnshaw <rearnsha@arm.com>
12723
12724 * News: Add news about ARM and Multi-arch. Mention the new target
12725 arm*-*-netbsd*.
12726
5832ed7e
JB
127272002-02-19 Jim Blandy <jimb@redhat.com>
12728
12729 * stabsread.c (error_type_complaint): Improve error message.
12730
84563040
DJ
127312002-02-19 Daniel Jacobowitz <drow@mvista.com>
12732
12733 * gdbserver/README: Update documentation.
12734 * gdbserver/configure.in: Update configury to match documentation.
12735 * gdbserver/Makefile.in: Likewise.
12736 * gdbserver/configure: Regenerated.
12737 * gdbserver/aclocal.m4: New file, generated by aclocal.
12738 * gdbserver/config.in: New file, generated by autoheader.
12739
375fd65b
RE
127402002-02-19 Richard Earnshaw <rearnsha@arm.com>
12741
12742 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12743 armnbsd-nat.c.
12744
08216dd7
RE
127452002-02-19 Richard Earnshaw <rearnsha@arm.com>
12746
12747 * arm-tdep.h (enum arm_float_model): New enum.
12748 (struct gdbarch_tdep): Add fp_model.
12749 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12750 up floating-point conversions until we know the floating-point model
12751 in use by the inferior. Don't complain about being unable to
12752 determine the ABI of the inferior when we don't have one.
12753 (arm_extract_return_value): Support different floating-point models.
12754 (arm_store_return_value): Likewise.
aaa38bb5 12755 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12756 ARM_FLOAT_SOFT.
12757 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12758
65d6d66a
PS
127592002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12760
12761 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12762 of ``current_gdbarch''.
12763
47221191
RE
127642002-02-19 Richard Earnshaw <rearnsha@arm.com>
12765
12766 * armnbsd-nat.c : ANSIfy all function declarations.
12767 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12768 (fetch_inferior_registers): Re-implement in terms of above.
12769 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12770 (store_inferior_registers): Re-implement in terms of above.
12771
fdf39c9a
RE
127722002-02-19 Richard Earnshaw <rearnsha@arm.com>
12773
aaa38bb5 12774 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12775 kernel.
12776 * arm-linux-tdep.c: Likewise.
12777 * config/arm/tm-linux.h: Likewise.
12778
93247f88
RE
127792002-02-19 Richard Earnshaw <rearnsha@arm.com>
12780
12781 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12782 * config/arm/nbsd.mt (TM_FILE): Delete.
12783 * config/arm/tm-nbsd.h: Delete.
12784
d7b486e7
RE
127852002-02-19 Richard Earnshaw <rearnsha@arm.com>
12786
12787 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12788 Initialize CALL_DUMMY_LENGTH.
12789
41d39a95
RE
127902002-02-19 Richard Earnshaw <rearnsha@arm.com>
12791
12792 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12793 function.
12794 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12795 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12796 defines one thing and that is incorrect for this port.
12797 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12798
e1195560
PM
127992002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12800
12801 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12802
c1748f97
PM
128032002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12804
12805 * win32-nat.c (display_selector): New function. Displays information
12806 about the information returned by GetThreadSelectorEntry API function.
12807 (display_selectors): New function. Displays the infomation of
12808 the selector given as argument, or of CS, DS ans FS selectors
12809 if no argument is given.
12810 ( _initialize_inftarg): Add "w32" as info prefix command.
12811 Add "info w32 selector" as command calling display_selectors.
12812
e41e6bbf
PM
128132002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12814
12815 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12816 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12817 if not defined.
12818
0d3a9f48
RE
128192002-02-18 Richard Earnshaw <rearnsha@arm.com>
12820
12821 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12822
3fb4b924
RE
128232002-02-18 Richard Earnshaw <rearnsha@arm.com>
12824
12825 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12826 (arm_fix_call_dummy): Call it.
12827 (arm_call_dummy_breakpoint_offset): Delete.
12828 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12829 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12830
7f55af32
AC
128312002-02-18 Andrew Cagney <ac131313@redhat.com>
12832
12833 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12834 Default to func_frame_chain_valid.
12835 * gdbarch.h, gdbarch.c: Re-generate.
12836 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12837
05f13b9c
EZ
128382002-02-18 Elena Zannoni <ezannoni@redhat.com>
12839
12840 * ppc-linux-nat.c: Update copyright.
12841 (fetch_register, store_register): Add tid parameter, don't compute
12842 tid here.
12843 (fetch_ppc_registers, store_ppc_registers): Add tid
12844 parameter. Pass it along to callees.
12845 (fetch_inferior_registers, store_inferior_registers): Compute tid
12846 here, and pass it to calleed functions.
12847 (fill_gregset, supply_fpregset): Clean up formatting.
12848
d7afb4c9
RE
128492002-02-18 Richard Earnshaw <rearnsha@arm.com>
12850
12851 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12852 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12853
9df628e0
RE
128542002-02-18 Richard Earnshaw <rearnsha@arm.com>
12855
12856 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12857 * gdbarch.c gdbarch.h: Regenerate.
12858 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12859 function.
12860 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12861 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12862 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12863
12864 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12865 * arm-tdep.c (arm_get_longjmp_target): New function.
12866 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12867 this to a positive value register arm_get_longjmp_target as the
12868 longjmp handler.
12869 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12870 (arm_linux_init_abi): Set up longjmp description in tdep.
12871 * armnbsd-nat.c (get_longjmp_target): Delete.
12872 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12873 description in tdep.
12874 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12875 (get_longjmp_target): Delete declaration.
12876 (GET_LONGJMP_TARGET): Delete.
12877 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12878 (GET_LONGJMP_TARGET): Delete.
12879
57bc8964
KB
128802002-02-17 Kevin Buettner <kevinb@redhat.com>
12881
12882 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12883 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12884 of ``current_gdbarch''.
12885
83d31a92
TT
128862002-02-17 Tom Tromey <tromey@redhat.com>
12887
12888 * cli/cli-cmds.c (compare_strings): New function.
12889 (complete_command): Only print each unique item once.
12890 * completer.h (complete_line): Declare.
12891 * completer.c (complete_line): New function.
12892 (line_completion_function): Use it.
12893
17ef5d92
AC
128942002-02-16 Andrew Cagney <ac131313@redhat.com>
12895
12896 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12897 * gdbarch.h, gdbarch.c: Re-generate.
12898
491b8946
DJ
128992002-02-16 Daniel Jacobowitz <drow@mvista.com>
12900
12901 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12902
129032002-02-16 Daniel Jacobowitz <drow@mvista.com>
12904
12905 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12906 * valops.c (value_arg_coerce): Don't take the address of a reference
12907 to convert an argument to a reference.
12908
dfe7f3ac
CF
129092002-02-15 Christopher Faylor <cgf@redhat.com>
12910
12911 * win32-nat.c (get_image_name): New function.
12912 (handle_load_dll): Use get_image_name function.
12913 (get_child_debug_event): Avoid registering debug events until possibly
12914 execed process is started.
12915 (child_create_inferior): Allow invocation via shell so that command
12916 line redirection, etc. works ok.
12917 (_initialize_inftarg): Add new command: "set shell" to control whether
12918 a shell is used to start a process.
12919
1d33e73a
DJ
129202002-02-15 Daniel Jacobowitz <drow@mvista.com>
12921
12922 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12923 instead of find_register_by_number.
12924 (cannot_store_register): Likewise.
12925
48cd0caa
PM
129262002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12927
aaa38bb5 12928 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12929 fprintf_unfiltered (gdb_stderr, ...).
12930
8656e7d8
DJ
129312002-02-15 Daniel Jacobowitz <drow@mvista.com>
12932
12933 * gdbserver/gdbserver.1: Document --attach.
12934
66e810cd
RE
129352002-02-15 Richard Earnshaw <rearnsha@arm.com>
12936
12937 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12938 descriptions.
12939 * arm-tdep.c (arm_default_arm_le_breakpoint)
12940 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12941 (arm_default_thumb_be_breakpoint): New. Initialize them from
12942 traditional breakpoint defines.
12943 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12944 (arm_gdbarch_init): Initialize new breakpoint variables.
12945 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12946 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12947 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12948 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12949 code out to ...
12950 (arm_netbsd_init_abi_common): ... here; new function.
12951 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12952 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12953 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12954 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12955
97e03143
RE
129562002-02-15 Richard Earnshaw <rearnsha@arm.com>
12957
12958 * arm-tdep.h (enum arm_abi): New enum.
12959 (struct gdbarch_tdep): New structure.
12960 (LOWEST_PC): Provide a default.
12961 (arm_gdbarch_register_os_abi): Declare new function.
12962 * arm-tdep.c (arm_abi_names): New array.
12963 (process_note_abi_tag_sections): New function.
12964 (get_elfosabi): New function.
12965 (arm_gdbarch_register_os_abi): New function.
12966 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12967 support for that ABI has been built in, then call the appropriate
12968 configuration routine. Use gdbarch_num_regs() to get the number
12969 of registers.
12970 (arm_dump_tdep): New function.
12971 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12972 place-holder functions.
12973 (_initialize_arm_tdep): Register them.
12974 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12975
12976 * armnbsd-tdep.c: New file.
12977 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12978 * config/arm/nbsd.mt (TDEPFILES): Add it.
12979 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12980
12981 * armnbsd-nat.c: Include regcache.h.
12982 * Makefile.in (armnbsd-nat.o): Update dependency list.
12983
12984 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12985
ad68be46
DJ
129862002-02-14 Daniel Jacobowitz <drow@mvista.com>
12987
12988 * gdbserver/Makefile.in: Fix typos in target rules.
12989
003d6d1d
DJ
129902002-02-14 Daniel Jacobowitz <drow@mvista.com>
12991
aaa38bb5 12992 Fix part of PR gdb/267.
003d6d1d
DJ
12993 * linespec.c (find_methods): Handle constructors specially for now.
12994
6b230f1b
CV
129952002-02-14 Corinna Vinschen <vinschen@redhat.com>
12996
12997 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12998 handling.
12999 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13000 standard_coerce_float_to_double().
13001
1ea98d12
CF
130022002-02-14 Christopher Faylor <cgf@redhat.com>
13003
13004 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13005 GDBINIT_FILENAME.
13006
dd47e6fd
EZ
130072002-02-14 Elena Zannoni <ezannoni@redhat.com>
13008
13009 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13010 find_variant_by_name, because it confuses the multiarch
13011 framework. Return NULL if there isn't an architecture with the
13012 user supplied name, instead of forcing a different one without
13013 recording the change with the multiarch machinery.
13014 (find_variant_by_name): Delete.
13015
d7e39b9e
PS
130162002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13017
13018 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13019 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13020
76e42a4f
MH
130212002-02-13 Martin M. Hunt <hunt@redhat.com>
13022
aaa38bb5 13023 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
13024 print_frame_info_listing_hook, set current_source_symtab.
13025
0a30fbc4
DJ
130262002-02-14 Daniel Jacobowitz <drow@mvista.com>
13027
13028 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13029 and remove unused $(INCLUDE_DIR).
13030 Add regcache.c to OBS.
13031 Add generated register protocol files to clean target.
13032 Update dependencies for new objects, obsolete old target code.
13033
13034 * gdbserver/linux-low.c: Remove all platform-specific code to
13035 new files. Remove various dead code. Update to use regcache
13036 functionality.
13037 * gdbserver/remote-utils.c (fromhex): Add return statement
13038 to quiet warning.
13039 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13040 constant.
13041 (input_interrupt): Add integer parameter to match prototype
13042 of a signal handler.
13043 (outreg): Use register_data ().
13044 (prepare_resume_reply): Use gdbserver_expedite_regs.
13045 * gdbserver/server.c (main): Dynamically allocate own_buf because
13046 PBUFSIZ is no longer constant. Use registers_to_string () and
13047 registers_from_string ().
13048 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13049 for error (), fatal (), and warning (). Update definition of
13050 PBUFSIZ to use regcache functionality. Add include guard.
13051 * gdbserver/utils.c (fatal): Add missing ``const''.
13052 (warning): New function.
13053
13054 * regformats/regdat.sh: Include "regcache.h" in generated files.
13055 Provide init_registers () function.
13056 * regformats/regdef.h: Add prototype for set_register_cache ().
13057 Add include guard.
13058
13059 * gdbserver/linux-arm-low.c: New file.
13060 * gdbserver/linux-i386-low.c: New file.
13061 * gdbserver/linux-ia64-low.c: New file.
13062 * gdbserver/linux-m68k-low.c: New file.
13063 * gdbserver/linux-mips-low.c: New file.
13064 * gdbserver/linux-ppc-low.c: New file.
13065 * gdbserver/linux-sh-low.c: New file.
13066
13067 * gdbserver/regcache.c: New file.
13068 * gdbserver/regcache.h: New file.
13069
13070 * gdbserver/low-linux.c: Removed obsolete file.
13071
4cc841d0
DJ
130722002-02-14 Daniel Jacobowitz <drow@mvista.com>
13073
13074 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13075 * config/i386/linux.mt: Likewise.
13076 * config/ia64/linux.mt: Likewise.
13077 * config/m68k/linux.mh: Likewise.
13078 * config/powerpc/linux.mh: Likewise.
13079 * config/mips/linux.mt: Likewise.
13080
13081 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13082
13083 * config/i386/i386lynx.mh: Mark gdbserver variables
13084 as (currently) obsolete for this target.
13085 * config/i386/nbsd.mt: Likewise.
13086 * config/i386/nbsdelf.mt: Likewise.
13087 * config/m32r/m32r.mt: Likewise.
13088 * config/m68k/m68klynx.mh: Likewise.
13089 * config/m68k/nbsd.mt: Likewise.
13090 * config/m68k/sun3os4.mh: Likewise.
13091 * config/mips/vr5000.mt: Likewise.
13092 * config/ns32k/nbsd.mt: Likewise.
13093 * config/pa/hppabsd.mh: Likewise.
13094 * config/pa/hppaosf.mh: Likewise.
13095 * config/powerpc/nbsd.mt: Likewise.
13096 * config/rs6000/rs6000lynx.mh: Likewise.
13097 * config/s390/s390.mt: Likewise.
13098 * config/s390/s390x.mt: Likewise.
13099 * config/sparc/sparclynx.mh: Likewise.
13100 * config/sparc/sun4os4.mh: Likewise.
13101 * config/i386/x86-64linux.mt: Likewise.
13102 * config/sparc/linux.mh: Likewise.
13103
a85f51e7
DJ
131042002-02-14 Daniel Jacobowitz <drow@mvista.com>
13105
13106 * configure.tgt: Configure gdbserver only for known working
13107 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13108 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13109 SUBDIRS if it is configured. Update comment for ${nativefile}.
13110 * configure: Regenerated.
13111
65554fef
MS
131122002-02-13 Michael Snyder <msnyder@redhat.com>
13113
670a52db
MS
13114 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13115
6dbdc4a3
MS
13116 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13117 (default_gcore_mach): Just return 0, work around a problem in bfd.
13118 (default_gcore_target): OK to return NULL if exec_bfd is null.
13119 (make_mem_sec): Use a cast, avoid a warning.
13120
13121 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 13122 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
13123 sizeof (host pointer) != sizeof (target pointer)).
13124 (procfs_make_note_section): Avoid overflow in psargs string.
13125
aaa38bb5 13126 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
13127 implementation return an error.
13128
131292002-02-13 Rodney Brown <rbrown64@csc.com.au>
13130
13131 * procfs.c (procfs_make_note_section): Provide a default definition
13132 (for alpha-dec-osf4.0f). Fix typos.
13133
1e4d76e7
EZ
131342002-02-13 Elena Zannoni <ezannoni@redhat.com>
13135
13136 * linux-proc.c: Add include of regcache.h.
13137 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13138
b6d1a1d5
AC
131392002-02-13 Andrew Cagney <ac131313@redhat.com>
13140
13141 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
13142 * memattr.c (create_mem_region): Disallow useless empty region.
13143 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 13144 non-overlapping.
b6d1a1d5 13145
6c6ea35e
MC
131462002-02-13 Michael Chastain <mec@shout.net>
13147
13148 * defs.h: Kill CONST_PTR.
13149 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13150 * c-lang.c (c_builtin_types): Likewise.
13151 * ch-lang.c (ch_builtin_types): Likewise.
13152 * f-lang.c (f_builtin_types): Likewise.
13153 * language.c (unknown_builtin_types): Likewise.
13154 * m2-lang.c (m2_builtin_types): Likewise.
13155 * p-lang.c (pascal_builtin_types): Likewise.
13156 * scm-lang.c (c_builtin_types): Likewise.
13157
3e0b0f48
KS
131582002-02-13 Keith Seitz <keiths@redhat.com>
13159
13160 * arm-tdep.h (arm_get_next_pc): Add declaration.
13161
67255d04
RE
131622002-02-13 Richard Earnshaw <rearnsha@arm.com>
13163
13164 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13165 with other related struct-returning functions.
13166 (arm_extract_struct_value_address): New function.
13167 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13168 initialize float_format, double_format and long_double_format as
13169 appropriate to the endianness of the target.
13170 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13171 (arm_use_struct_convention): Delete declaration.
13172 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13173
079777f6
KS
131742002-02-13 Keith Seitz <keiths@redhat.com>
13175
13176 * defs.h (core_addr_to_string_nz): New function.
13177
34588f23
MK
131782002-02-13 Mark Kettenis <kettenis@gnu.org>
13179
13180 Apply missing bits of 2002-01-15 patch.
13181 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13182 (fill_fpregset): Use i387_fill_fsave.
13183
49b563f9
KS
131842002-02-12 Keith Seitz <keiths@redhat.com>
13185
49b563f9
KS
13186 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13187 (core_addr_to_string_nz): New function.
13188
aeb98c60
RE
131892002-02-11 Richard Earnshaw <rearnsha@arm.com>
13190
13191 * arm-linux-nat.c: Really include arm-tdep.h.
13192 * config/arm/tm-linux.h (struct type, struct value): Declare.
13193
65554fef
MS
131942002-02-11 Michael Snyder <msnyder@redhat.com>
13195
13196 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13197 (gcore section): Ifdef for Solaris and Unixware only.
13198 (procfs_do_thread_registers): Unixware needs one lwpstatus
13199 per thread (not one prstatus or pstatus).
13200 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13201 not over all gdb threads. For unixware, call elfcore_write_pstatus
13202 once before iterating over threads.
13203
34e8f22d
RE
132042002-02-11 Richard Earnshaw <rearnsha@arm.com>
13205
13206 * arm-tdep.h: New file.
13207 * arm-tdep.c: Include arm-tdep.h.
13208 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13209 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13210 (arm_print_float_info, arm_register_type, convert_to_extended)
13211 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13212 (arm_extract_return_value, arm_register_name): Make static.
13213 (arm_software_single_step): Similarly. Fix types in declaration.
13214 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13215 (arm_store_return_value, arm_store_struct_return): New functions.
13216 (arm_gdbarch_init): Register the above functions. Also register
13217 call_dummy_start_offset, sizeof_call_dummy_words,
13218 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13219 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 13220 max_register_virtual_size, register_size. Set up
34e8f22d
RE
13221 prologue_cache.saved_regs here, rather than ...
13222 (_initialize_arm_tdep): ... here.
13223 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13224 declarations.
13225 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13226 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13227 (arm_print_float_info, arm_register_type, convert_to_extended)
13228 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13229 (arm_extract_return_value, arm_register_name): Delete declarations.
13230 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13231 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13232 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13233 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13234 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13235 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13236 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13237 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13238 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13239 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13240 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13241 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13242 interface.
13243 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13244 * remote-rdi.c remote-rdp.c: Likewise.
13245 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13246 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13247 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13248 definition.
13249
13250 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13251 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13252 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13253 from non-ARM_ prefixed definitions.
13254 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13255 all uses of above.
13256 * remote-rdi.c remote-rdp.c: Likewise.
13257 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13258
148754e5
RE
132592002-02-11 Richard Earnshaw <rearnsha@arm.com>
13260
13261 * arm-tdep.c (arm_frameless_function_invocation)
13262 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13263 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13264 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13265 (arm_pop_frame, arm_get_next_pc): Make static.
13266 (arm_gdbarch_init): Register above in gdbarch structure.
13267 (arm_read_fp): Renamed from arm_target_read_fp.
13268 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13269 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13270 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13271 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13272 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13273 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13274 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
13275 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13276 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13277 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13278 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 13279
434d2d4f
DJ
132802002-02-10 Daniel Jacobowitz <drow@mvista.com>
13281
13282 * symtab.c (compare_search_syms): New function.
13283 (sort_search_symbols): New function.
13284 (search_symbols): Sort symbols after searching rather than
13285 before.
13286
55241689
AC
132872002-02-10 Andrew Cagney <ac131313@redhat.com>
13288
13289 * NEWS: Linux -> GNU/Linux.
13290
028c194b
AC
132912002-02-10 Andrew Cagney <ac131313@redhat.com>
13292
13293 * gdbarch.sh: For for level one methods, disallow a definition
13294 when partially multi-arched. Add comments explaining rationale.
13295 * gdbarch.h: Re-generate.
13296
6acf50cd
AC
132972002-02-10 Andrew Cagney <ac131313@redhat.com>
13298
13299 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13300 multi-arch partial.
aaa38bb5 13301
50248794
AC
133022002-02-10 Andrew Cagney <ac131313@redhat.com>
13303
13304 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13305 field. Use diff -u.
13306 * gdbarch.c: Re-generate.
13307
c30e0066
AC
133082002-02-10 Andrew Cagney <ac131313@redhat.com>
13309
9b56c5f3 13310 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13311 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13312 partial.
13313
6e6d6484
AC
133142002-02-10 Andrew Cagney <ac131313@redhat.com>
13315
13316 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13317 multi-arch partial.
13318 (PUSH_ARGUMENTS): Switch to using predefault.
13319 * gdbarch.c: Regenerate.
13320
c203844d
AC
133212002-02-10 Andrew Cagney <ac131313@redhat.com>
13322
13323 * valops.c (PUSH_ARGUMENTS): Delete definition.
13324 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13325 partial. Default to default_push_arguments.
13326 * gdbarch.h, gdbarch.c: Regenerate.
13327
b5a2688f
AC
133282002-02-09 Andrew Cagney <ac131313@redhat.com>
13329
13330 * defs.h (throw_exception): Rename return_to_top_level. Update
13331 comments.
13332 * utils.c (error_stream, internal_verror, quit): Ditto.
13333 * top.c (throw_exception, catcher): Ditto.
13334 * sparclet-rom.c (sparclet_load): Ditto.
13335 * remote.c (interrupt_query, minitelnet): Ditto.
13336 * remote-sds.c (interrupt_query): Ditto.
13337 * remote-mips.c (mips_error, mips_kill): Ditto.
13338 * ocd.c (interrupt_query): Ditto.
13339 * monitor.c (monitor_interrupt_query): Ditto.
13340 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13341 * target.h: Update comment.
aaa38bb5 13342
b5a2688f 13343 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13344
2fa5c1e0
AC
133452002-02-09 Andrew Cagney <ac131313@redhat.com>
13346
13347 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13348 default_double_format.
13349 * gdbarch.h, gdbarch.c: Re-generate.
13350 * findvar.c (floatformat_unknown): Delete variable definition.
13351 * doublest.h (floatformat_unknown): Delete variable declaration.
13352
da966255
JB
133532002-02-09 Jim Blandy <jimb@redhat.com>
13354
13355 * stabsread.c (read_type): Add code to parse Sun's syntax for
13356 prototyped function types.
13357
123a4891
AC
133582002-02-09 Andrew Cagney <ac131313@redhat.com>
13359
13360 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13361 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13362
fb39c8f3
PS
133632002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13364
13365 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13366 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13367 now _initialize_xcoffsolib gets called again and overrides the
13368 commands from solib.c in a native configuration.
13369
0b87a11d
MK
133702002-02-09 Mark Kettenis <kettenis@gnu.org>
13371
13372 * doublest.c (store_typed_floating): Don't try to return a value.
13373 Fixes PR gdb/290.
13374
bdc2fc72
JB
133752002-02-08 Jim Blandy <jimb@redhat.com>
13376
13377 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13378 is prototyped and has no arguments, print its argument list as
13379 `(void)'.
13380
da69bbcf
CD
133812002-02-08 Chris Demetriou <cgd@broadcom.com>
13382
13383 * MAINTAINERS (write-after-approval): Add myself.
13384 (paper-trail): I've escaped!
aaa38bb5 13385
b69571f5
CF
133862002-02-08 Christopher Faylor <cgf@redhat.com>
13387
13388 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13389 changes.
13390 (_initialize_check_for_gdb_ini): Ditto.
13391
f6871398
MH
133922002-02-08 Martin M. Hunt <hunt@redhat.com>
13393
13394 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13395 xaprintf -> xasprintf.
13396
4e52d31c
PM
133972002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13398
13399 * win32-nat.c: Remove use of printf and sprintf functions.
13400
39bbf761
RE
134012002-02-08 Richard Earnshaw <rearnsha@arm.com>
13402
13403 * arm-tdep.c (arm_frame_chain_valid): Make static.
13404 (arm_push_arguments): Likewise.
13405 (arm_gdbarch_init): New function.
13406 (_initialize_arm_tdep): Call it.
13407 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13408 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13409 (FRAME_CHAIN_VALID): Delete.
13410 (arm_frame_chain_valid): Delete declaration.
13411 (PUSH_ARGUMENTS): Delete.
13412 (arm_push_arguments): Delete declaration.
13413 (CALL_DUMMY_P): Delete.
13414
9c9532c9
CV
134152002-02-08 Andrew Cagney <ac131313@redhat.com>
13416 Corinna Vinschen <vinschen@redhat.com>
13417
13418 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13419 on builtin float types.
13420
4e8f7a8b
DJ
134212002-02-08 Daniel Jacobowitz <drow@mvista.com>
13422
13423 * utils.c: Include <curses.h> before "bfd.h".
13424 * tui/tui-hooks.c: Likewise.
13425 * tui/tui.c: Likewise.
13426 * tui/tuiCommand.c: Likewise.
13427 * tui/tuiData.c: Likewise.
13428 * tui/tuiDataWin.c: Likewise.
13429 * tui/tuiDisassem.c: Likewise.
13430 * tui/tuiGeneralWin.c: Likewise.
13431 * tui/tuiIO.c: Likewise.
13432 * tui/tuiLayout.c: Likewise.
13433 * tui/tuiRegs.c: Likewise.
13434 * tui/tuiSource.c: Likewise.
13435 * tui/tuiSourceWin.c: Likewise.
13436 * tui/tuiStack.c: Likewise.
13437 * tui/tuiWin.c: Likewise.
13438
cd4bffcf
EZ
134392002-02-07 Elena Zannoni <ezannoni@redhat.com>
13440
13441 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13442 to include space for pseudoregs as well. Update loops accordingly.
13443 (sh_fp_frame_init_saved_regs): Ditto.
13444 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13445
26806ce2
AC
134462002-02-07 Andrew Cagney <ac131313@redhat.com>
13447
13448 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13449 Add Richard Earnshaw to Arm maintainers.
13450
97fdab62
AC
134512002-02-07 Andrew Cagney <ac131313@redhat.com>
13452
a6b98203
AC
13453 * defs.h (warning_begin): Delete declaration.
13454
97fdab62
AC
13455 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13456 Delete macro.
13457
78b29b40
MS
134582002-02-07 Michael Snyder <msnyder@redhat.com>
13459
aaa38bb5 13460 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13461 Logic bug, remove misplaced else.
13462
d8849953
KD
134632002-02-07 Klee Dienes <klee@apple.com>
13464
13465 * fork-inferior.c (fork_inferior): Add '!' to the list of
13466 characters that need to be quoted when building a string for the
13467 shell. Quote '!' specifically with a backslash, since CSH chokes
13468 when trying to evaluate "str!str".
aaa38bb5 13469
095778a0
NC
134702002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13471
13472 * rdi-share/host.h: Only provide a typedef for bool if it is not
13473 defined.
13474
1900040c
MS
134752002-02-04 Michael Snyder <msnyder@redhat.com>
13476
13477 * breakpoint.h (enum bptype): Add new overlay event bp type.
13478 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13479
1900040c
MS
13480 * breakpoint.c (create_internal_breakpoint): New function.
13481 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13482 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13483 (create_thread_event_breakpoint): Ditto.
13484 (create_solib_event_breakpoint): Ditto.
13485 (create_overlay_event_breakpoint): New function.
13486 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13487 (update_breakpoints_after_exec): Delete and re-initialize
13488 overlay event breakpoints after an exec. Add FIXME comment
13489 about longjmp breakpoint.
13490 (print_it_typical): Ignore overlay event breakpoints.
13491 (print_one_breakpoint): Ditto.
13492 (mention): Ditto.
13493 (bpstat_what): Do not stop for overlay event breakpoints.
13494 (delete_breakpoint): Don't delete overlay event breakpoints.
13495 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13496 (breakpoint_re_set): Re-create overlay event breakpoint.
13497
13498 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13499 (overlay_manual_command): Disable overlay breakpoints.
13500 (overlay_off_command): Disable overlay breakpoints.
13501
082fc60d
RE
135022002-02-06 Richard Earnshaw <rearnsha@arm.com>
13503
13504 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13505 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13506 to here from config/tm-arm.h.
13507 (coff_sym_is_thumb): Make static.
13508 (arm_elf_make_msymbol_special): New function.
13509 (arm_coff_make_msymbol_special): New function.
13510 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13511 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13512 (coff_sym_is_thumb): Delete declaration.
13513 (arm_elf_make_msymbol_special): Declare.
13514 (arm_coff_make_msymbol_special): Declare.
13515 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13516 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13517
039c5766
RE
135182002-02-06 Richard Earnshaw <rearnsha@arm.com>
13519
13520 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13521
135222002-02-06 Richard Earnshaw <rearnsha@arm.com>
13523
13524 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13525 * gdbarch.c gdbarch.h: Regenerate.
13526 * arch-utils.c (default_print_float_info): New function.
13527 * arch-utils.h (default_print_float_info): Prototype it.
13528 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13529 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13530 (PRINT_FLOAT_INFO): Document it.
13531
13532 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13533 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13534 (PRINT_FLOAT_INFO): Define.
13535
58fa08f0
PM
135362002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13537
aaa38bb5 13538 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13539 Add typecast to sprintf argument to suppress a warning.
13540
7393af7c
PM
135412002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13542
58fa08f0 13543 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13544 to allow easier handling of pass state.
13545 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13546 that gives exception name and address.
13547 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13548 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13549 exceptions added.
aaa38bb5
AJ
13550 (child_continue): Correctly report continue_status.
13551 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13552 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13553 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13554 the exception should be passed to debuggee or not.
13555
6af4589c
MS
135562002-02-05 Michael Snyder <msnyder@redhat.com>
13557
13558 * regcache.c (fetch_register): Call target_fetch_register
13559 only if we don't call FETCH_PSEUDO_REGISTER.
13560 (store_register): Call target_store_register only if we
13561 don't call STORE_PSEUDO_REGISTER.
13562
a2cf933a
EZ
135632002-02-05 Elena Zannoni <ezannoni@redhat.com>
13564
13565 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13566 ELF_MAKE_MSYMBOL_SPECIAL.
13567 * gdbarch.c, gdbarch.h: Regenerate.
13568 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13569 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13570 * elfread.c (elf_symtab_read): Compile use of
13571 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13572 multiarched.
13573 * coffread.c (coff_symtab_read): Ditto, for
13574 COFF_MAKE_MSYMBOL_SPECIAL.
13575
6bb7be43
JB
135762002-02-05 Jim Blandy <jimb@redhat.com>
13577
13578 * solib-svr4.c (svr4_truncate_ptr): New function.
13579 (svr4_relocate_section_addresses): Do the address arithmetic with
13580 the appropriate truncation for target addresses, even when
13581 CORE_ADDR is larger than a target address.
13582
e18651ec
DJ
135832002-02-05 Daniel Jacobowitz <drow@mvista.com>
13584
13585 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13586 to (int *).
13587
6b2725be
DJ
135882002-02-05 Daniel Jacobowitz <drow@mvista.com>
13589
13590 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13591 code.
13592
fca9e603
DJ
135932002-02-05 Daniel Jacobowitz <drow@mvista.com>
13594
13595 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13596
6c537a52
DJ
135972002-02-05 Daniel Jacobowitz <drow@mvista.com>
13598
13599 * gdbserver/linux-low.c: Remove unused include files.
13600
d844cde6
DJ
136012002-02-05 Daniel Jacobowitz <drow@mvista.com>
13602
13603 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13604 (read_inferior_memory): Use it.
13605 (write_inferior_memory): Likewise.
13606
d07c63e7
DJ
136072002-02-05 Daniel Jacobowitz <drow@mvista.com>
13608
13609 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13610 grubbing through sys_errlist.
13611
da6d8c04
DJ
136122002-02-05 Daniel Jacobowitz <drow@mvista.com>
13613
13614 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13615
5b421780
PM
136162002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13617 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13618
9f60d481
AC
136192002-02-04 Andrew Cagney <ac131313@redhat.com>
13620
13621 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13622 (do_sfunc, set_cmd_sfunc): New functions.
13623
13624 * command.h (struct cmd_list_element): Add field func.
13625 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13626 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13627 * cli/cli-decode.h: Ditto.
13628
13629 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13630 (help_all, help_cmd_list): Ditto.
13631 (find_cmd, complete_on_cmdlist): Ditto.
13632 * top.c (execute_command): Ditto.
13633
13634 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13635 function.sfunc.
13636
13637 * infcmd.c (notice_args_read): Fix function signature.
13638
13639 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13640 * cli/cli-decode.c (add_set_cmd): Ditto.
13641 * utils.c (initialize_utils): Ditto.
13642 * maint.c (_initialize_maint_cmds): Ditto.
13643 * infrun.c (_initialize_infrun): Ditto.
13644 * demangle.c (_initialize_demangler): Ditto.
13645 * remote.c (add_packet_config_cmd): Ditto.
13646 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13647 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13648 * proc-api.c (_initialize_proc_api): Ditto.
13649 * kod.c (_initialize_kod): Ditto.
13650 * valprint.c (_initialize_valprint): Ditto.
13651 * top.c (init_main): Ditto.
13652 * infcmd.c (_initialize_infcmd): Ditto.
13653 * corefile.c (_initialize_core): Ditto.
13654 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13655 * arch-utils.c (initialize_current_architecture): Ditto.
13656 (_initialize_gdbarch_utils): Ditto.
13657 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13658
13659 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13660 * wince.c (_initialize_inftarg): Ditto.
13661 * symfile.c (_initialize_symfile): Ditto.
13662 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13663 * language.c (_initialize_language): Ditto.
13664 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13665
f9ba0717
MS
136662002-02-04 Michael Snyder <msnyder@redhat.com>
13667
13668 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13669
0c74b2a7
DJ
136702002-02-04 Daniel Jacobowitz <drow@mvista.com>
13671
13672 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13673 Add rules for building the register data files.
13674
c638789f
DJ
136752002-02-04 Daniel Jacobowitz <drow@mvista.com>
13676
13677 * regformats/regdat.sh: Add braces to the definition of
13678 expedite_regs_${arch}.
13679
db253027
DJ
136802002-02-04 Daniel Jacobowitz <drow@mvista.com>
13681
13682 * regformats/regdef.h (struct reg): Add comment describing the
13683 requirements for offset and size fields.
13684
206be19c
AS
136852002-02-04 Andreas Schwab <schwab@suse.de>
13686
13687 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13688 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13689
181c1381
RE
136902002-02-04 Richard Earnshaw <rearnsha@arm.com>
13691
13692 * gdbarch.sh (copyright): Update years in generated header.
13693 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13694 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13695 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13696 * dbxread.c: Likewise.
13697 * dwarfread.c: Likewise.
13698 * elfread.c: Likewise.
13699 * somread.c: Likewise.
13700
13701 * arm-tdep.c (arm_smash_text_address): New function.
13702 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13703
fa4ba8da
PM
137042002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13705
13706 Add support for hardware watchpoints on win32 native.
aaa38bb5 13707 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13708 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13709 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13710 of debug registers.
13711 (debug_registers_changed): New variable. Reflects when debug registers
13712 are changed and need to be written to inferior.
aaa38bb5 13713 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13714 was set, used when new threads are created.
13715 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13716 i386-nat code.
13717 (thread_rec): Set dr array if id is the thread of current_event .
13718 (child_continue, child_resume): Change the debug registers for all
13719 threads if debug_registers_changed.
13720 (child_add_thread): Change the debug registers if debug_registers_used.
13721 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13722 Link nm.h to new nm-cygwin.h file.
13723 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13724 of hardware registers.
13725
a73c86fb
AC
137262002-02-03 Andrew Cagney <ac131313@redhat.com>
13727
13728 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13729 Restore behavour broken by 2002-01-20 Andrew Cagney
13730 <ac131313@redhat.com> IEEE_FLOAT removal.
13731
acf5ed49
DJ
137322002-02-03 Daniel Jacobowitz <drow@mvista.com>
13733
13734 * c-valprint.c (c_val_print): Pass a proper valaddr to
13735 cp_print_class_method.
13736 * valops.c (search_struct_method): If there is only one method
13737 and args is NULL, return that method.
13738
493d28d5
DJ
137392002-02-03 Daniel Jacobowitz <drow@mvista.com>
13740
13741 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13742 accessing tag_name directly.
13743
7495dfdb
DJ
137442002-02-03 Daniel Jacobowitz <drow@mvista.com>
13745
13746 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13747 of accessing tag_name directly.
13748
dd6bda65
DJ
137492002-02-03 Daniel Jacobowitz <drow@mvista.com>
13750
13751 PR gdb/280
13752 * gdbtypes.c (replace_type): New function.
13753 * gdbtypes.h (replace_type): Add prototype.
13754 * stabsread.c (read_type): Use replace_type.
13755
88fe217c
RE
137562002-02-03 Richard Earnshaw <rearnsha@arm.com>
13757
13758 * Makefile.in (memattr.o): Add missing dependencies rule.
13759
e5d66720
PS
137602002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13761
13762 * breakpoint.c (break_at_finish_command): Really export.
13763 (break_at_finish_at_depth_command): Ditto.
13764 (tbreak_at_finish_command): Ditto.
13765 * hppa-tdep.c: Include completer.h.
13766 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13767 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13768
fffee0be
AC
137692002-02-01 Andrew Cagney <ac131313@redhat.com>
13770
13771 * utils.c (do_write): New function.
13772 (error_stream): Rewrite combining the code from error_begin and
13773 verror.
13774 (verror): Rewrite using error_stream.
13775 (error_begin): Delete function.
13776
255e7dbf
AC
137772002-02-01 Andrew Cagney <ac131313@redhat.com>
13778
13779 * utils.c (error_begin): Make static.
13780 * defs.h (error_begin): Delete declaration.
13781
13782 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13783 (decode_line_1): Use cplusplus_error instead of error_begin,
13784 cplusplus_hint and return_to_top_level.
13785 * coffread.c (coff_symfile_read): Use error instead of error_begin
13786 and return_to_top_level.
13787 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13788
ddfe3c15
AC
137892002-02-01 Andrew Cagney <ac131313@redhat.com>
13790
13791 * language.h (type_error, range_error): Make string parameter
13792 constant.
13793 * language.c (warning_pre_print): Delete extern declaration.
13794 * dwarfread.c (warning_pre_print): Ditto.
13795 * language.c (type_error, range_error): Rewrite to use verror and
13796 vwarning instead of warning_begin.
13797
03ac34d5
MS
137982002-02-01 Michael Snyder <msnyder@redhat.com>
13799
261c4ca2
MS
13800 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13801 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13802
e00d1dc8
AC
138032002-02-01 Andrew Cagney <ac131313@redhat.com>
13804
13805 * command.h (NO_FUNCTION): Delete macro.
13806 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13807 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13808 * tracepoint.c (_initialize_tracepoint): Ditto.
13809 * cli/cli-decode.c (add_set_cmd): Ditto.
13810 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13811
76b79d6e
DJ
138122002-02-01 Daniel Jacobowitz <drow@mvista.com>
13813
13814 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13815 Update ``this'' pointer when calling virtual functions.
13816
799f9e91
MS
138172002-02-01 Michael Snyder <msnyder@redhat.com>
13818
c7bd442c 13819 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13820 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13821
3cf384d4
DJ
138222002-02-01 Daniel Jacobowitz <drow@mvista.com>
13823
13824 * regformats/reg-arm.dat: New file.
13825 * regformats/reg-i386.dat: New file.
13826 * regformats/reg-ia64.dat: New file.
13827 * regformats/reg-m68k.dat: New file.
13828 * regformats/reg-mips.dat: New file.
13829 * regformats/reg-ppc.dat: New file.
13830 * regformats/reg-sh.dat: New file.
13831 * regformats/regdef.h: New file.
13832 * regformats/regdat.sh: New file.
13833
0defa245
RE
138342002-02-01 Richard Earnshaw <reanrsha@arm.com>
13835
13836 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13837 (arm_frame_args_address, arm_frame_locals_address): New functions.
13838 (arm_frame_num_args): New function.
13839 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13840 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13841 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13842
405f26e6
MS
138432002-01-31 Michael Snyder <msnyder@redhat.com>
13844
502fd408
MS
13845 * breakpoint.c (break_at_finish_command): Export.
13846 (break_at_finish_at_depth_command): Export.
13847 (tbreak_at_finish_command): Export.
d6020d45 13848 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13849 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13850 "txbreak" commands, which are HPPA specific.
502fd408 13851
7d35e135
MS
13852 * printcmd.c (disassemble_command): Remove an ancient
13853 artifact of an old merge.
13854
aaa38bb5 13855 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13856 Define enum constant values for overlay mode.
13857 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13858 (overlay_is_mapped, overlay_auto_command,
13859 overlay_manual_command): Ditto.
d874f1e2 13860
aaa38bb5
AJ
13861 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13862 breakpoint_here_p, breakpoint_inserted_here_p,
13863 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13864 describe_other_breakpoints, check_duplicates, clear_command):
13865 Coding standard fixes.
13866
8add0441 13867 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13868 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13869 code: check bfd SEC_READONLY flag for section.
13870
e351066e
AC
138712002-01-31 Andrew Cagney <ac131313@redhat.com>
13872
7d35e135 13873 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13874
8a48e967
DJ
138752002-01-30 Daniel Jacobowitz <drow@mvista.com>
13876
13877 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13878 data symbols, since we search based on textlow and texthigh.
13879 (find_pc_sect_symtab): Likewise.
13880
f5a96129
AC
138812002-01-30 Andrew Cagney <ac131313@redhat.com>
13882
13883 * defs.h (vwarning): Declare.
f5a96129
AC
13884 * utils.c (vwarning): New function.
13885 (warning): Call vwarning.
13886 (warning_begin): Delete function.
13887
13888 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13889 the warning message.
13890 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13891 warning_begin.
13892
cefd4ef5
MS
138932002-01-30 Michael Snyder <msnyder@redhat.com>
13894
1a703748
MS
13895 * NEWS: Mention "set trust-readonly-sections" command.
13896 Mention generate-core-file command.
cefd4ef5 13897
3a11626d
MS
138982002-01-15 Michael Snyder <msnyder@redhat.com>
13899
13900 * target.c: New command, "set trust-readonly-sections on".
13901 (do_xfer_memory): Honor the suggestion to trust readonly sections
13902 by reading them from the object file instead of from the target.
13903 (initialize_targets): Register command "set trust-readonly-sections".
13904
d1c7e53b
AC
139052002-01-29 Andrew Cagney <ac131313@redhat.com>
13906
13907 * parse.c (target_map_name_to_register): Simplify, search regs and
13908 pseudo-regs using a single loop.
13909
e2c9a72c
AC
139102002-01-30 Andrew Cagney <ac131313@redhat.com>
13911
13912 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13913
69824b4e
MK
139142002-01-15 Rodney Brown <rbrown64@csc.com.au>
13915
13916 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13917 * config/i386/i386v42mp.mh: Add i387-nat.o .
13918 * i386v4-nat.c: Include i387-nat.h.
13919 (supply_fpregset): Use i387_supply_fsave.
13920 (fill_fpregset): Use i387_fill_fsave.
13921
6eb69eab
RE
139222002-01-30 Richard Earnshaw <rearnsha@arm.com>
13923
13924 * arm-tdep.c (arm_call_dummy_words): Define.
13925 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13926 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13927 (CALL_DUMMY_WORDS): Define.
13928 (arm_call_dummy_words): Declare.
13929 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13930 (arm_linux_call_dummy_words): Declare.
13931
9852326a
AS
139322002-01-30 Andreas Schwab <schwab@suse.de>
13933
13934 * m68klinux-nat.c: Fix last change to use regcache_collect
13935 instead of referencing registers[] directly.
13936
977a3030
AC
139372002-01-29 Andrew Cagney <ac131313@redhat.com>
13938
13939 * parse.c (target_map_name_to_register): Delete code wrapped in
13940 #ifdef REGISTER_NAME_ALIAS_HOOK.
13941
2076c72b
MS
139422002-01-28 Michael Snyder <msnyder@redhat.com>
13943
13944 * regcache.c (legacy_read_register_gen): Need to be able to
13945 read pseudo-register as well as real register.
13946 (legacy_write_register_gen): Ditto.
13947
8fcc723b
AC
139482002-01-28 Andrew Cagney <ac131313@redhat.com>
13949
13950 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13951 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13952 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13953 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13954 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13955 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13956 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13957 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13958 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13959 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13960 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13961 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13962 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13963 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13964 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13965 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13966 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13967 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13968 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13969 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13970
afe64c1a
AC
139712002-01-28 Andrew Cagney <ac131313@redhat.com>
13972
13973 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13974 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13975 (initialize_current_architecture): Update target_byte_order using
13976 information from BFD.
aaa38bb5 13977 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13978 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13979
75bc7ddf
AC
139802002-01-28 Andrew Cagney <ac131313@redhat.com>
13981
13982 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13983 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13984
13985 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13986 #ifdef INVALID_FLOAT.
13987 * infcmd.c (do_registers_info): Ditto.
13988 * values.c (unpack_double): Ditto. Add comment.
13989
13990 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13991 already commented out.
13992
0280a90a
AS
139932002-01-26 Andreas Schwab <schwab@suse.de>
13994
13995 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13996 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13997 registers and add support for PTRACE_GETREGS.
13998
7072a954
AC
139992002-01-24 Andrew Cagney <ac131313@redhat.com>
14000
14001 GDB 5.1.1 released from 5.1 branch.
14002 * NEWS: Add 5.1.1 news.
14003 * README: Sync with 5.1 branch.
14004
86f902e0
FF
140052002-01-23 Fred Fish <fnf@redhat.com>
14006
14007 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14008 stabstring on initial malloc. Reallocing will copy it for us,
14009 if necessary.
14010
8af51c36
EZ
140112002-01-23 Elena Zannoni <ezannoni@redhat.com>
14012
aaa38bb5 14013 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
14014 (HFILES_NO_SRCDIR): Remove hpread.h.
14015 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14016 (hpread.o): Update dependencies.
14017 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14018
14019 * hp-psymtab-read.c: Remove file.
14020 * hp-symtab-read.c: Remove file.
14021 * hpread.h: Remove file.
14022
14023 * hpread.c: Merge all contents of hp-psymtab-read.c,
14024 hp-symtab-read.c and hpread.h into this file, as it was prior to
14025 January 1999.
14026
14027 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 14028 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
14029 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14030 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14031
dc5cfeb6
EZ
140322002-01-23 Elena Zannoni <ezannoni@redhat.com>
14033
14034 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14035 fill_gregset): Call gdbarch_tdep() just once, assign result to
14036 variable and use that, instead of calling the function several
14037 times.
14038
ea87b71b
AO
140392002-01-24 Alexandre Oliva <aoliva@redhat.com>
14040
14041 * configure.host: Accept sparcv9 as alias for sparc64.
14042 * configure.tgt: Likewise.
14043
13fc0c2f
KB
140442002-01-22 Kevin Buettner <kevinb@redhat.com>
14045
14046 * solib-aix5.c (build_so_list_from_mapfile)
14047 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14048 arguments is not reversed.
14049 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14050 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 14051
7bd872fe
EZ
140522002-01-22 Elena Zannoni <ezannoni@redhat.com>
14053
14054 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14055 modified version of obsolete sh_fetch_pseudo_register.
14056 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14057 (sh4_register_read): New function.
14058 (sh_pseudo_register_write): New function. Renamed and modified
14059 version of obsolete sh_store_pseudo_register.
14060 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14061 (sh4_register_write): New function.
14062 (sh_gdbarch_init): Remove setting of gdbarch function
14063 fetch_pseudo_register and store_pseudo_register. Remove setting of
14064 register_convert_to_raw, register_convert_to_virtual,
14065 register_convertible.
14066 (sh_sh4_register_convertible): Delete. No longer needed. All is
14067 taken care by architecture specific functions
14068 register_read/register_write.
14069 (sh_sh4_register_convert_to_virtual): Make static.
14070 (sh_sh4_register_convert_to_raw): Ditto.
14071
069e84fd
AC
140722002-01-22 Andrew Cagney <ac131313@redhat.com>
14073
14074 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14075 (floatformat_is_nan, floatformat_mantissa): Ditto.
14076
14077 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14078 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14079 builtin_type_ieee_double_little,
14080 builtin_type_ieee_double_littlebyte_bigword,
14081 builtin_type_m68881_ext, builtin_type_i960_ext,
14082 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14083 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14084 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14085 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14086
211a4f69
CV
140872002-01-22 Corinna Vinschen <vinschen@redhat.com>
14088
14089 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14090 parameter. Set frameless flag if it exists and depended of
14091 whether the scanned function is frameless or not.
14092 (xstormy16_skip_prologue): If function is frameless, return
14093 result of xstormy16_scan_prologue().
14094 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14095 call.
14096
f81353e4
EZ
140972002-01-21 Elena Zannoni <ezannoni@redhat.com>
14098
14099 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14100 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14101 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14102 sh_sh4_register_byte, sh_sh4_register_raw_size,
14103 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14104 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14105 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14106 sh_store_pseudo_register, sh_do_pseudo_register): Call
14107 gdbarch_tdep() just once, assign result to variable and use that,
14108 instead of calling the function several times.
14109
63c73a17
MK
141102002-01-20 Mark Kettenis <kettenis@gnu.org>
14111
14112 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14113 macros instead of LAST_FPU_CTRL_REGNUM.
14114 (store_register): Likewise.
14115
39ad761d
JB
141162002-01-21 Jim Blandy <jimb@redhat.com>
14117
14118 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14119 is up-to-date before running the program, not just when a program
14120 exits.
14121
3d74b771
FF
141222002-01-21 Fred Fish <fnf@redhat.com>
14123
14124 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14125 when we have found all instructions we are looking for.
14126
966fbf70
RE
141272002-01-21 Richard Earnshaw <rearnsha@arm.com>
14128
14129 * arm-tdep.c (arm_register_name): New function.
14130 (arm_registers_names): Make static.
14131 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14132 (arm_register_name): Declare.
14133 (REGISTER_NAME): Use it.
14134
c3b4394c
RE
141352002-01-21 Richard Earnshaw <rearnsha@arm.com>
14136 Kevin Buettner <kevinb@redhat.com>
14137
14138 Convert arm targets to new FRAME interface.
14139 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14140 (arm_frame_find_save_regs): Delete.
14141 (arm_frame_init_saved_regs): New.
14142 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14143 Allocate extra_info as required. Convert all uses of fsr.regs
14144 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14145 to use extra_info.
14146 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14147 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14148 (check_prologue_cache, save_prologue_cache): Likewise.
14149 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14150 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14151 (FRAME_FIND_SAVED_REGS): Delete.
14152 (arm_frame_find_saved_regs): Delete prototype.
14153 (arm_frame_init_saved_regs): New prototype.
14154 (FRAME_INIT_SAVED_REGS): Define.
14155
61d99182
AC
141562002-01-20 Andrew Cagney <ac131313@redhat.com>
14157
14158 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14159
6aaea291
AC
141602002-01-20 Andrew Cagney <ac131313@redhat.com>
14161
14162 From Jeff Law <law@redhat.com>:
14163 * infttrace.c: Include <sys/pstat.h>.
14164 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14165 exec file if the ttrace equivalent fails.
14166
15f698d2
AC
141672002-01-20 Andrew Cagney <ac131313@redhat.com>
14168
14169 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14170 (closeLogFile): Ditto.
14171
f86ddd7c
MC
141722002-01-20 Michael Chastain <mec@shout.net>
14173
14174 * top.c (print_gdb_version): Bump copyright year to 2002.
14175
904507ce
AC
141762002-01-20 Andrew Cagney <ac131313@redhat.com>
14177
14178 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14179 Zannoni and Eli Zaretskii.
14180
d7f0b9ce
DJ
141812002-01-20 Daniel Jacobowitz <drow@mvista.com>
14182
14183 * buildsym.c: Update copyright years.
14184 * c-typeprint.c: Likewise.
14185 * dwarf2read.c: Likewise.
14186 * f-typeprint.c: Likewise.
14187 * gdbtypes.c: Likewise.
14188 * gdbtypes.h: Likewise.
14189 * hp-symtab-read.c: Likewise.
14190 * hpread.c: Likewise.
14191 * mdebugread.c: Likewise.
14192 * p-typeprint.c: Likewise.
14193
3fd3d7d2
AC
141942002-01-20 Andrew Cagney <ac131313@redhat.com>
14195
14196 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14197 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14198 byte-order selectable.
14199 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14200 * arch-utils.c: Ditto.
14201 (set_endian): Ditto.
14202 (set_endian_from_file): Ditto.
14203 * gdbserver/low-sim.c (create_inferior): Ditto.
14204 * gdbarch.sh: Ditto.
14205 * gdbarch.h: Re-generate.
aaa38bb5
AJ
14206 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14207 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14208 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14209 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14210 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14211 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14212 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
14213 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14214 macro definition.
14215 * config/mips/tm-wince.h: Remove #undef of macro
14216 TARGET_BYTE_ORDER_SELECTABLE.
14217 * config/sh/tm-wince.h: Ditto.
14218
b02dede2
DJ
142192002-01-20 Daniel Jacobowitz <drow@mvista.com>
14220
14221 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14222 member function fields. Add accessor macro
14223 TYPE_FN_FIELD_ARTIFICIAL.
14224 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14225 * c-typeprint.c (c_type_print_base): Skip artificial member
14226 functions.
14227
c3643761
DJ
142282002-01-20 Daniel Jacobowitz <drow@mvista.com>
14229
14230 * f-typeprint.c: Delete unused function f_type_print_args.
14231 * p-typeprint.c: Delete unused function pascal_type_print_args.
14232
8176bb6d
DJ
142332002-01-20 Daniel Jacobowitz <drow@mvista.com>
14234
14235 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14236 comment. Add ``artificial'' to ``union field_location''.
14237
14238 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14239
14240 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14241 * mdebugread.c (parse_symbol): Likewise.
14242 * stabsread.c (define_symbol): Likewise.
14243 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14244 initializing TYPE_FIELD_BITPOS to n (obsolete).
14245 (hpread_doc_function_type): Likewise.
14246 * hpread.c (hpread_function_type): Likewise.
14247
7fd60527
AC
142482002-01-20 Andrew Cagney <ac131313@redhat.com>
14249
14250 * configure.in (host_makefile_frag): Only require a host makefile
14251 fragment when a native build.
14252 * configure: Re-generate.
14253
c2f05ac9
AC
142542002-01-20 Andrew Cagney <ac131313@redhat.com>
14255
14256 * doublest.h (floatformat_from_type): Declare.
14257 * doublest.c (floatformat_from_type): New function.
14258 (convert_typed_floating): Use.
14259
14260 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14261 call to function floatformat_from_type.
14262
14263 * gdbarch.sh (IEEE_FLOAT): Delete.
14264 * gdbarch.h, gdbarch.c: Re-generate.
14265 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14266 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14267 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14268 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14269 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14270 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14271 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14272 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14273 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14274 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14275 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
14276 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14277
14278 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14279 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14280 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14281 * sh-tdep.c (sh_gdbarch_init): Ditto.
14282 * mips-tdep.c (mips_gdbarch_init): Ditto.
14283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14284 * cris-tdep.c (cris_gdbarch_init): Ditto.
14285
abf22e64
AJ
142862002-01-20 Jiri Smid <smid@suse.cz>
14287
14288 * configure.host, configure.tgt: Support x86-64.
14289 * NEWS: Note new target x86-64.
14290
b7c4cbf8
AJ
14291 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14292 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14293 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14294 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14295 x86-64-linux-nat.o): Fix dependencies.
14296
82600034
AC
142972002-01-19 Andrew Cagney <ac131313@redhat.com>
14298
14299 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14300 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14301 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14302 * config/sparc/xm-sun4os4.h: Delete file.
14303 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 14304
bbe5c628
AC
143052002-01-19 Andrew Cagney <ac131313@redhat.com>
14306
14307 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14308 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14309 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14310 * config/i386/i386lynx.mh (XM_FILE): Delete.
14311 * config/rs6000/xm-rs6000ly.h: Delete file.
14312 * config/sparc/xm-sparclynx.h: Delete file.
14313 * config/m68k/xm-m68klynx.h: Delete file.
14314 * config/i386/xm-i386lynx.h: Delete file.
14315 * config/xm-lynx.h: Delete file.
14316 * config/djgpp/fnchange.lst: Update.
14317
f8453e34
JT
143182002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14319
14320 * alpha-tdep.c (alpha_register_byte): New function.
14321 (alpha_register_raw_size): Ditto.
14322 (alpha_register_virtual_size): Ditto.
14323 (alpha_skip_prologue_internal): Renamed from
14324 alpha_skip_prologue.
14325 (alpha_skip_prologue): New version that calls
14326 alpha_skip_prologue_internal.
14327 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14328 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14329 second argument from alpha_skip_prologue.
14330 (REGISTER_BYTE): Use alpha_register_byte.
14331 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14332 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14333 (FRAMELESS_FUNCTION_INVOCATION): Use
14334 generic_frameless_function_invocation_not.
14335 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14336 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14337
52d9e613
AC
143382002-01-19 Andrew Cagney <ac131313@redhat.com>
14339
14340 * config/mips/xm-news-mips.h: Delete file.
14341 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14342
14343 * config/m88k/xm-m88k.h: Delete file.
14344 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14345 * config/m88k/xm-delta88v4.h: Ditto.
14346 * config/m88k/xm-delta88.h: Ditto.
14347
14348 * config/alpha/xm-fbsd.h: Delete file.
14349 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14350
14351 * config/sparc/xm-sparc.h: Delete file.
14352 * Makefile.in (xm-sun4os4.h): Delete dependency.
14353 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14354 * config/sparc/xm-sun4os4.h: Ditto.
14355 * config/sparc/xm-linux.h: Ditto.
14356
14357 * config/i386/xm-windows.h: Delete file.
14358
2d1b2124
AC
143592002-01-19 Andrew Cagney <ac131313@redhat.com>
14360
14361 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14362 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14363
ee1f65f0
JT
143642002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14365
14366 * alpha-tdep.c (alpha_call_dummy_words): New.
14367 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14368 (CALL_DUMMY_P): Define.
14369 (CALL_DUMMY_WORDS): Define.
14370 (SIZEOF_CALL_DUMMY_WORDS): Define.
14371
98081e55
PB
143722002-01-19 Per Bothner <per@bothner.com>
14373
14374 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14375 isn't NULL, which can happen with some gcj-3.x-produced code.
14376
0d056799
JT
143772002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14378
14379 * alpha-tdep.c (alpha_register_virtual_type): New function.
14380 (alpha_init_frame_pc_first): Ditto.
14381 (alpha_fix_call_dummy): Ditto.
14382 (alpha_store_struct_return): Ditto.
14383 (alpha_extract_struct_value_address): Ditto.
14384 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14385 alpha_register_virtual_type.
14386 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14387 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14388 alpha_extract_struct_value_address.
14389 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14390 (INIT_FRAME_PC): Use init_frame_pc_noop.
14391 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14392
4604bcad
MK
143932002-01-19 Mark Kettenis <kettenis@gnu.org>
14394
14395 * i386gnu-nat.c: Include "i386-tdep.h".
14396 (fetch_fpregs): Simplify code dealing with uninitialized floating
14397 point states such that it doesn't require FP7_REGNUM.
14398
140f9984
JT
143992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14400
abf22e64
AJ
14401 * alpha-tdep.c (frame_extra_info): New.
14402 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14403 frame->extra_info.
14404 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14405 (alpha_frame_saved_pc): Use frame->extra_info.
14406 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14407 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14408 (init_extra_frame_info): Rename to...
14409 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14410 (alpha_print_extra_frame_info): New function.
140f9984
JT
14411 (alpha_frame_locals_address): Ditto.
14412 (alpha_frame_args_address): Ditto.
abf22e64 14413 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14414 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14415 alpha_frame_args_address.
abf22e64 14416 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14417 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14418 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14419 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14420 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14421 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14422
d734c450
JT
144232002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14424
14425 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14426 (alpha_cannot_fetch_register): Ditto.
14427 (alpha_cannot_store_register): Ditto.
14428 (alpha_register_convertible): Ditto.
14429 (alpha_use_struct_convention): Ditto.
14430 * config/alpha/tm-alpha.h: Update copyright years.
14431 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14432 (INNER_THAN): Use core_addr_lessthan.
14433 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14434 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14435 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14436 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14437 (FRAME_CHAIN): Remove unnecessary cast.
14438
b4ceaee6
AC
144392002-01-18 Andrew Cagney <ac131313@redhat.com>
14440
14441 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14442 obsolete.
14443
0a65a603
AC
144442002-01-18 Andrew Cagney <ac131313@redhat.com>
14445
14446 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14447 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14448 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14449 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14450 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14451 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14452 * x86-64-linux-nat.c: Ditto.
14453
636a6dfc
JT
144542002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14455
abf22e64 14456 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14457 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14458 (REGISTER_NAME): Define.
14459
acceddb6
JT
144602002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14461
14462 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14463
ec32e4be
JT
144642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14465
14466 * alpha-tdep.c: Update copyright years.
14467 (alpha_next_pc): New function.
14468 (alpha_software_single_step): Ditto.
14469 * config/alpha/tm-alpha.h: Add prototype for
14470 alpha_software_single_step.
14471
e771a871
JT
144722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14473
14474 * alphabsd-nat.c: Update copyright years.
14475 (fill_gregset): Use regcache_collect.
14476 (fill_fpregset): Likewise.
14477 (fetch_inferior_registers): Only fetch integer registers
14478 if requested to do so.
14479 (store_inferior_registers): Only store integer registers
14480 if requested to do so.
14481
7708fa01
AC
144822002-01-17 Andrew Cagney <ac131313@redhat.com>
14483
14484 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14485 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14486 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14487 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14488 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14489 * config/arm/linux.mh (XDEPFILES): Delete.
14490 * config/arm/nbsd.mh (XDEPFILES): Delete.
14491 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14492 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14493 * config/i386/i386m3.mh (XDEPFILES): Delete.
14494 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14495 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14496 * config/i386/fbsd.mh (XDEPFILES): Delete.
14497 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14498 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14499 * config/i386/i386v4.mh (XDEPFILES): Delete.
14500 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14501 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14502 * config/i386/i386aix.mh (XDEPFILES): Delete.
14503 * config/i386/go32.mh (XDEPFILES): Delete.
14504 * config/i386/cygwin.mh (XDEPFILES): Delete.
14505 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14506 * config/i386/i386mach.mh (XDEPFILES): Delete.
14507 * config/i386/i386v32.mh (XDEPFILES): Delete.
14508 * config/i386/linux.mh (XDEPFILES): Delete.
14509 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14510 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14511 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14512 * config/i386/i386sco.mh (XDEPFILES): Delete.
14513 * config/i386/i386v.mh (XDEPFILES): Delete.
14514 * config/i386/nbsd.mh (XDEPFILES): Delete.
14515 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14516 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14517 * config/i386/symmetry.mh (XDEPFILES): Delete.
14518 * config/i386/obsd.mh (XDEPFILES): Delete.
14519 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14520 * config/ia64/linux.mh (XDEPFILES): Delete.
14521 * config/ia64/aix.mh (XDEPFILES): Delete.
14522 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14523 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14524 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14525 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14526 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14527 * config/m68k/linux.mh (XDEPFILES): Delete.
14528 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14529 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14530 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14531 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14532 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14533 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14534 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14535 * config/m88k/delta88.mh (XDEPFILES): Delete.
14536 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14537 * config/m88k/m88k.mh (XDEPFILES): Delete.
14538 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14539 * config/mips/linux.mh (XDEPFILES): Delete.
14540 * config/mips/irix6.mh (XDEPFILES): Delete.
14541 * config/mips/irix5.mh (XDEPFILES): Delete.
14542 * config/mips/irix4.mh (XDEPFILES): Delete.
14543 * config/mips/irix3.mh (XDEPFILES): Delete.
14544 * config/mips/decstation.mh (XDEPFILES): Delete.
14545 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14546 (NATDEPFILES): Move core-aout.o to here.
14547 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14548 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14549 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14550 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14551 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14552 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14553 * config/pa/hpux11.mh (XDEPFILES): Delete.
14554 * config/powerpc/aix.mh (XDEPFILES): Delete.
14555 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14556 * config/powerpc/linux.mh (XDEPFILES): Delete.
14557 * config/romp/rtbsd.mh: Rename XDEPFILES.
14558 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14559 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14560 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14561 * config/s390/s390.mh (XDEPFILES): Delete.
14562 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14563 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14564 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14565 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14566 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14567 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14568 * config/sparc/linux.mh (XDEPFILES): Delete.
14569 * config/vax/vaxult.mh (XDEPFILES): Delete.
14570 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14571 * Makefile.in (DEPFILES): Remove XDEPFILES.
14572
375fc983
AC
145732002-01-17 Andrew Cagney <ac131313@redhat.com>
14574
14575 * utils.c (internal_verror): Fix comments, default is yes not no.
14576 Update queries to match. Default to quit and dump core.
14577
8926118c
AC
145782002-01-17 Andrew Cagney <ac131313@redhat.com>
14579
14580 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14581 copyright.
14582 * defs.h, event-top.c, gdbcmd.h: Ditto.
14583 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14584 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14585 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14586 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14587 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14588 * mi/mi-main.c:Ditto.
14589
14590 * stack.c, symfile.c: Update copyright.
14591
45b7b345
DJ
145922002-01-17 Daniel Jacobowitz <drow@mvista.com>
14593
db728ff7
DJ
14594 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14595 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14596 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14597 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14598
db728ff7
DJ
145992002-01-17 Daniel Jacobowitz <drow@mvista.com>
14600
14601 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14602 * gdbserver/low-lynx.c (myattach): Likewise.
14603 * gdbserver/low-nbsd.c (myattach): Likewise.
14604 * gdbserver/low-sim.c (myattach): Likewise.
14605 * gdbserver/low-sparc.c (myattach): Likewise.
14606 * gdbserver/low-sun3.c (myattach): Likewise.
14607
14608 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14609
db728ff7 14610 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14611 (main): Handle "--attach".
14612
8de3c354
AC
146132002-01-16 Andrew Cagney <ac131313@redhat.com>
14614
14615 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14616 maintainer.
14617
b0129042
DJ
146182002-01-15 Daniel Jacobowitz <drow@mvista.com>
14619
14620 * c-typeprint.c (is_type_conversion_operator): Add additional
14621 check for non-conversion operators.
14622
ba8679fb 146232002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14624
14625 * linux-proc.c: Add "info proc" command, a la procfs.c.
14626 (read_mapping): New function, abstract and re-use code.
14627 (linux_find_memory_regions): Use new func read_mapping.
14628 (linux_info_proc_cmd): New function, implement "info proc".
14629 (_initialize_linux_proc): Add new command "info proc".
14630
e4f9b4d5
MS
146312002-01-15 Michael Snyder <msnyder@redhat.com>
14632
14633 * symfile.c (generic_load): Use bfd_map_over_sections method
14634 instead of manipulating bfd structure members directly.
14635 (add_section_size_callback): New function, bfd sections callback
14636 used by generic_load.
14637 (load_sections_callback): New function, bfd sections callback
14638 used by generic_load.
14639
08cf96df
EZ
146402002-01-15 Elena Zannoni <ezannoni@redhat.com>
14641
abf22e64 14642 [Based on work by Jim Blandy]
08cf96df
EZ
14643 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14644 (builtin_type_vec128): Export.
14645 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14646 types.
14647 (builtin_type_vec128): New builtin type for 128 bit vector
14648 registers.
14649 (build_gdbtypes): Initialize builtin_type_v16qi and
14650 builtin_type_v8hi. Create the vec128 register builtin type
14651 structure.
14652 (build_builtin_type_vec128): New function.
abf22e64 14653 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14654 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14655 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14656 AltiVec register to new builtin type.
14657
d7242108
DJ
146582001-01-15 Daniel Jacobowitz <drow@mvista.com>
14659
14660 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14661 to make_cv_type.
14662
4ee3352d
AC
146632002-01-14 Andrew Cagney <ac131313@redhat.com>
14664
14665 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14666 CLEAN_UP_REGISTER_VALUE.
14667 * regcache.c (supply_register): Update only call.
14668
f015b2e7
AC
146692002-01-14 Andrew Cagney <ac131313@redhat.com>
14670
14671 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14672 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14673 a29k-*-vxworks* targets as obsolete.
14674
356ae49d
MS
146752002-01-14 Michael Snyder <msnyder@redhat.com>
14676
14677 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14678 until we can resolve portability issues.
14679 * gregset.h: Remove references to fpxregs.
14680 * gcore.c (gcore_command): Initialize note_sec to NULL.
14681
ade8f45e
AC
146822002-01-13 Andrew Cagney <ac131313@redhat.com>
14683
14684 * signals.c (target_signal_to_name): Rewrite. Only use
14685 signals[].name when in bounds and non-NULL.
abf22e64 14686
89c49e7a
AC
146872002-01-13 Andrew Cagney <ac131313@redhat.com>
14688
14689 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14690 * signals.c (target_signal_to_name): Verify that SIG is within the
14691 bounds of the signals array.
14692
4daa9f9f
AC
146932002-01-13 Andrew Cagney <ac131313@redhat.com>
14694
14695 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14696
ba4bbdcb
KS
146972002-01-13 Keith Seitz <keiths@redhat.com>
14698
14699 * stack.c (print_frame_info_base): Print the frame's pc
14700 only if when print_frame_info_listing_hook is not defined.
14701
575bbeb6
KS
147022002-01-13 Keith Seitz <keiths@redhat.com>
14703
14704 * varobj.c (varobj_set_value): Make sure that there were no
14705 errors evaluating the object before attempting to set its
14706 value.
14707 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14708 so this offset adjustment is no longer necessary.
14709 (create_child): Don't set the error flag if the child is
14710 a CPLUS_FAKE_CHILD.
14711 (value_of_child): If value_fetch_lazy fails, return NULL
14712 so that callers will be notified that an error occurred.
14713 (c_value_of_variable): Delay check of variable's validity
14714 until later. We actually want all structs and unions to have
14715 the value "{...}".
14716 Do not return "???" for variables which could not be evaluated.
14717 This error condition must be returned to the caller so that it
14718 can get the error condition from gdb.
14719 (cplus_name_of_child): Adjust index for vptr before figuring
14720 out the name of the child.
14721 (cplus_value_of_child): If a child's (real) parent is not valid,
14722 don't even bother trying to give a value for it. Just return
14723 an error. Change all instances in this function.
14724 (cplus_type_of_child): If our parent is one of the "fake"
14725 parents, we need to get at the type of the real parent, and
14726 derive the child's true type using this information.
14727
b76898ab
AC
147282002-01-13 Andrew Cagney <ac131313@redhat.com>
14729
14730 From 2002-01-09 John Marshall <johnm@falch.net>:
14731 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14732 sources.redhat.com, and tweak some related URLs which had
14733 suffered from linkrot.
14734
b6649e88
AC
147352002-01-13 Andrew Cagney <ac131313@redhat.com>
14736
14737 From Jeff law:
14738 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14739 structures passed in registers.
14740
82cc5033
EZ
147412002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14742
14743 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14744 white space which prevented compilation. Reported by DSK
14745 <dsk@student.unsw.edu.au>.
14746
ba5f2f8a
MS
147472002-01-11 Michael Snyder <msnyder@redhat.com>
14748
fbd35540
MS
14749 * symfile.c (build_section_addr_info_from_section_tab):
14750 Use bfd access method instead of manipulating bfd directly.
14751 (syms_from_objfile): Ditto.
14752 (simple_overlay_update_1): Ditto.
14753 (simple_overlay_update): Ditto.
14754 (generic_load): Ditto.
14755 (overlay_unmapped_address): FIXME comment, bfd access methods.
14756 (sections_overlap): FIXME comment, bfd access methods.
14757 (pc_in_mapped_range): FIXME comment, bfd access methods.
14758 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14759 (section_is_mapped): FIXME comment, bfd access methods.
14760 (section_is_overlay): FIXME comment, bfd access methods.
14761
ba5f2f8a
MS
14762 * symfile.c (generic_load): Whitespace and long line cleanups.
14763 Remove duplicate variable, change several local variables to
14764 more appropriate data types.
14765 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14766
17df2af6
AC
147672002-01-12 Andrew Cagney <ac131313@redhat.com>
14768
14769 From Peter Schauer:
14770 * language.c (longest_local_hex_string_custom): Use phex_nz to
14771 convert NUM to a hex string.
14772
ec920329
EZ
147732002-01-12 Elena Zannoni <ezannoni@redhat.com>
14774
14775 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14776 the function.
538a76d6 14777 Update Copyright year.
ec920329 14778
3abd2e01
AC
147792002-01-12 Andrew Cagney <ac131313@redhat.com>
14780
14781 * language.c (longest_raw_hex_string): Delete unused function.
14782
b21b22e0
PS
147832002-01-11 Petr Sorfa <petrs@caldera.com>
14784
14785 * MAINTAINERS (write-after-approval): Add myself.
14786 * dwarf2read.c (read_tag_string_type): Handling of
14787 DW_AT_byte_size.
14788 (read_tag_string_type): FORTRAN fix to prevent propagation of
14789 first string size.
14790 (set_cu_language): Handling of DW_LANG_Fortran95
14791
747fe712
RE
147922002-01-11 Richard Earnshaw <rearnsha@arm.com>
14793
14794 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14795 GETPID(inferior_ptid).
14796 (store_inferior_registers): Likewise.
14797
f1bea926
JM
147982002-01-10 Jason Merrill <jason@redhat.com>
14799
14800 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14801 Fix DW_OP_minus.
14802
ae940673
AC
148032002-01-10 Andrew Cagney <ac131313@redhat.com>
14804
14805 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14806 and bfd/elf32-sh-nbsd.c.
14807
00546b04
MS
148082002-01-10 Michael Snyder <msnyder@redhat.com>
14809
352ed7b4
MS
14810 * NEWS: Mention --pid and corefile/proc-id behavior change.
14811
c18be923
MS
14812 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14813 * gcore.c: Include cli/cli-decode.h instead of command.h.
14814
00546b04
MS
14815 * main.c (captured_main): Add new command line option "--pid".
14816 If the second command line argument (following the symbol-file)
14817 begins with a digit, try to attach to it before trying to open
14818 it as a corefile.
14819 (print_gdb_help): Document the "--pid" argument.
14820
db60ec62
EZ
148212002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14822
14823 * completer.c (command_completer): New function.
14824
14825 * completer.h <command_completer>: Add prototype.
14826
14827 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14828 completer for the "help" command.
14829
39c22d1a
JM
148302002-01-09 Jason Merrill <jason@redhat.com>
14831
14832 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14833
c564377f
MS
148342002-01-09 Michael Snyder <msnyder@redhat.com>
14835
975aec09
MS
14836 * i386-linux-nat.c (fill_fpxregset): Make global.
14837 (store_fpxregset): Ditto.
14838
db4a10fa
MS
14839 * gregset.h (gdb_fpxregset_t): Define.
14840 (supply_fpxregset): Prototype.
14841 (fill_fpxregset): Prototype.
14842
c564377f
MS
14843 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14844
c3d45d70
RE
148452002-01-09 Richard Earnshaw <rearnsha@arm.com>
14846
14847 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14848 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14849 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14850
fcc87af1
AC
148512002-01-09 Andrew Cagney <ac131313@redhat.com>
14852
14853 * MAINTAINERS: Update target maintainer rules so that any
14854 Maintainer can approve a tested patch for a maintenance-only
14855 target.
14856
dd96c05b
RE
148572002-01-09 Richard Earnshaw <rearnsha@arm.com>
14858
d4297db9 14859 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14860
d4297db9 14861 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14862 IN_SIGTRAMP.
14863
145fdc6e
MS
148642002-01-08 Michael Snyder <msnyder@redhat.com>
14865
14866 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14867 real name of the executable, rather than the /proc name.
14868
be4d1333
MS
148692002-01-03 Michael Snyder <msnyder@redhat.com>
14870
14871 Implement a "generate-core-file" command in gdb, save target state.
14872 * gcore.c: New file. Implement new command 'generate-core-file'.
14873 Save a corefile image of the current state of the inferior.
14874 * linux-proc.c: Add linux-specific code for saving corefiles.
14875 * target.h (struct target_ops): Add new target vectors for saving
14876 corefiles; to_find_memory_regions and to_make_corefile_notes.
14877 (target_find_memory_regions): New macro.
14878 (target_make_corefile_notes): New macro.
14879 * target.c (update_current_target): Inherit new target methods.
14880 (dummy_find_memory_regions): New place-holder method.
14881 (dummy_make_corefile_notes): New place-holder method.
14882 (init_dummy_target): Initialize new dummy target vectors.
14883 * exec.c (exec_set_find_memory_regions): New function.
14884 Allow the exec_ops vector for memory regions to be taken over.
14885 (exec_make_note_section): New function, target vector method.
14886 * defs.h (exec_set_find_memory_regions): Export prototype.
14887 * procfs.c (proc_find_memory_regions): New function, corefile method.
14888 (procfs_make_note_section): New function, corefile method.
14889 (init_procfs_ops): Set new target vector pointers.
14890 (find_memory_regions_callback): New function.
14891 (procfs_do_thread_registers): New function.
14892 (procfs_corefile_thread_callback): New function.
14893 * sol-thread.c (sol_find_memory_regions): New function.
14894 (sol_make_note_section): New function.
14895 (init_sol_thread_ops): Initialize new target vectors.
14896 * inftarg.c (inftarg_set_find_memory_regions): New function.
14897 Allow to_find_memory_regions vector to be taken over.
14898 (inftarg_set_make_corefile_notes): New function.
14899 Allow to_make_corefile_notes vector to be taken over.
14900 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14901 interface layer if not target_has_execution (may be a corefile).
14902 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14903 * config/sparc/sun4sol2.mh: Ditto.
14904 * config/alpha/alpha-linux.mh: Ditto.
14905 * config/arm/linux.mh: Ditto.
14906 * config/i386/x86-64linux.mh: Ditto.
14907 * config/ia64/linux.mh: Ditto.
14908 * config/m68k/linux.mh: Ditto.
14909 * config/mips/linux.mh: Ditto.
14910 * config/powerpc/linux.mh: Ditto.
14911 * config/sparc/linux.mh: Ditto.
14912
c6b92abd
MS
149132002-01-07 Michael Snyder <msnyder@redhat.com>
14914
14915 * arm-linux-nat.c: Remove references to regcache.c internal data
14916 (registers[] and register_valid[]).
14917
4b09dc8c
MS
149182002-01-07 Michael Snyder <msnyder@redhat.com>
14919
abf22e64
AJ
14920 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14921 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14922 symbol file and shlibs.
14923 * Makefile.in: Add rule for linux-proc.o.
14924 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14925 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14926 * config/arm/linux.mh: Ditto.
14927 * config/i386/linux.mh: Ditto.
14928 * config/i386/x86-64linux.mh: Ditto.
14929 * config/ia64/linux.mh: Ditto.
14930 * config/m68k/linux.mh: Ditto.
14931 * config/mips/linux.mh: Ditto.
14932 * config/powerpc/linux.mh: Ditto.
14933 * config/sparc/linux.mh: Ditto.
14934
c25b74ac
PM
149352002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14936
14937 * win32-nat.c: Add i386-tdep.h dependency.
14938
94cd915f
MS
149392002-01-07 Michael Snyder <msnyder@redhat.com>
14940
c7cccb76
MS
14941 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14942 instead of bfd_get_arch_size. Don't bail out just because
14943 there's no exec_bfd.
abf22e64 14944
34c0bd93
MS
14945 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14946 * p-valprint.c (pascal_object_print_value): Ditto.
14947 * somread.c (som_symtab_read): Ditto.
14948 * symfile.c (simple_free_overlay_region_table): Ditto.
14949 * valops.c (value_assign): Ditto.
14950
21c1c920
MS
14951 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14952 use tilde_expand and strerror for opening save-tracepoints file.
14953
5bbd998e
MS
14954 * thread-db.c (thread_db_new_objfile): Indendation fix.
14955
94cd915f
MS
14956 * infptrace.c (GDB_MAX_ALLOCA): New define.
14957 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14958 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14959 can be overridden with whatever value is appropriate to the host).
14960 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14961 alloca to allocate potentially large buffer.
14962 * rs6000-nat.c (child_xfer_memory): Ditto.
14963 * symm-nat.c (child_xfer_memory): Ditto.
14964 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14965
494e8a93
JSC
149662002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14967
14968 From Nick Clifton <nickc@redhat.com>
14969 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14970
d0e1d48e
MS
149712002-01-07 Michael Snyder <msnyder@redhat.com>
14972
abf22e64 14973 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14974 Don't use exec_bfd if it's NULL.
14975
290b2c7a
MK
149762002-01-06 Mark Kettenis <kettenis@gnu.org>
14977
abf22e64 14978 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14979
aef21287
AC
149802002-01-06 Andrew Cagney <ac131313@redhat.com>
14981
14982 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14983 * gnu-nat.c: Ditto.
14984
30efa627
AC
149852002-01-06 Andrew Cagney <ac131313@redhat.com>
14986
14987 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14988 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14989 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14990 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14991 z8k-coff have not been multi-arched. Update z8k-coff build
14992 status.
14993
9b4ff276
AC
149942002-01-06 Andrew Cagney <ac131313@redhat.com>
14995
14996 * MAINTAINERS: Mark a29k target as obsolete.
14997 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14998 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14999 comments.
15000 * NEWS: Note that a29k targets are obsolete.
15001 * a29k-tdep.c: Mark as obsolete.
15002 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15003 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15004 a29k-*-vxworks* targets as obsolete.
15005 * remote-adapt.c: Obsolete.
15006 * remote-eb.c: Obsolete.
15007 * remote-mm.c: Obsolete.
15008 * remote-udi.c: Obsolete.
15009 * config/a29k/a29k-udi.mt: Obsolete.
15010 * config/a29k/a29k.mt: Obsolete.
15011 * config/a29k/tm-a29k.h: Obsolete.
15012 * config/a29k/tm-vx29k.h: Obsolete.
15013 * config/a29k/vx29k.mt: Obsolete.
15014
a9011d31
AC
150152002-01-05 Andrew Cagney <ac131313@redhat.com>
15016
15017 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15018 with BFD_ENDIAN_BIG.
15019
9299404e
AC
150202002-01-05 Andrew Cagney <ac131313@redhat.com>
15021
15022 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15023 * configure, config.in: Re-generate.
15024 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15025 * defs.h: Do not include <endian.h>.
15026
7e89e357
JT
150272002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15028
15029 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15030 * config.in: Regenerate.
15031 * configure.in: Update copyright years.
15032 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15033 * configure: Regenerate.
15034 * i386bsd-nat.c: Update copyright years.
15035 (fill_gregset): Use regcache_collect.
15036 (fetch_inferior_registers): Only fetch integer registers
15037 if requested to do so. Add support for XMM registers
15038 using PT_GETXMMREGS.
15039 (store_inferior_registers): Only store integer registers
15040 if requested to do so. Add support for XMM registers
15041 using PT_SETXMMREGS.
15042 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15043 (store_inferior_registers): Remove.
15044 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15045 (fetch_elfcore_registers): New function.
15046 (i386nbsd_elfcore_fns): New.
15047 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15048 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15049 i386bsd-nat.o.
15050 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15051 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15052 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15053 * config/i386/tm-nbsd.h: Update copyright years.
15054 (HAVE_SSE_REGS): Define.
15055 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15056 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15057 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15058 (SIGCONTEXT_PC_OFFSET): Remove.
15059 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15060
a752853e
AC
150612002-01-05 Andrew Cagney <ac131313@redhat.com>
15062
15063 * configure.tgt: Remove powerpc-*-macos* target.
15064 * config/m68k/xm-mpw.h: Delete file.
15065 * config/xm-mpw.h: Delete file.
15066 * ser-mac.c: Delete file.
15067 * mpw-make.sed: Delete file.
15068 * mpw-config.in: Delete file.
15069 * mac-xdep.c: Delete file.
15070 * mac-gdb.r: Delete file.
15071 * mac-defs.h: Delete file.
15072 * mac-nat.c: Delete file.
15073 * config/powerpc/macos.mh: Delete file.
15074 * config/powerpc/macos.mt: Delete file.
15075 * config/powerpc/nm-macos.h: Delete file.
15076 * config/powerpc/tm-macos.h: Delete file.
15077 * source.c (openp, open_source_file): Remove obsolete code.
15078 * top.c (gdb_readline): Ditto.
15079 * utils.c (query): Ditto.
15080 * event-top.c (display_gdb_prompt): Ditto.
15081 * Makefile.in (ser-mac.o): Delete obsolete target.
15082 * NEWS: Update.
15083
d7449b42
AC
150842002-01-04 Andrew Cagney <ac131313@redhat.com>
15085
15086 * defs.h (BIG_ENDIAN): Delete macro definition.
15087 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15088 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15089 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15090 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15091 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15092 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15093 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15094 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15095 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15096 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15097 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15098 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15099 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15100 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15101 * gdbarch.c: Re-generate.
15102
356374e8
DJ
151032002-01-04 Daniel Jacobowitz <drow@mvista.com>
15104
15105 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15106 for core files.
15107
a2b8f8f8
JT
151082002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15109
15110 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15111
12466af9
AC
151122002-01-04 Andrew Cagney <ac131313@redhat.com>
15113
15114 * value.h (value_ptr): Delete typedef.
15115
3549ab40
JT
151162002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15117
15118 * i386nbsd-nat.c: Update copyright years.
15119 Include i386-tdep.h.
15120
fedbd091
EZ
151212002-01-04 Elena Zannoni <ezannoni@redhat.com>
15122
15123 * stabsread.c: Update copyright years.
15124
15125 From Debashis Mahata <debashis.mahata@wipro.com>:
15126 (read_struct_fields): Deal with Sun C compiler erroneous stab
15127 output for structs and unions.
fec8b34f 15128 Fix PR gdb/269.
fedbd091 15129
eb43544b
DJ
151302002-01-04 Daniel Jacobowitz <drow@mvista.com>
15131
15132 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15133 prototype.
15134
1514d34e
DJ
151352002-01-04 Daniel Jacobowitz <drow@mvista.com>
15136
15137 * cp-abi.c: Fix whitespace.
15138 (baseclass_offset): New wrapper function.
15139 * cp-abi.h (baseclass_offset): Add prototype.
15140 (struct cp_abi_ops): Add baseclass_offset pointer.
15141
15142 * valops.c (vb_match): Move to...
15143 * gnu-v2-abi.c (vb_match): here.
15144 * valops.c (baseclass_offset): Move to...
15145 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15146
15147 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15148
15149 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15150 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15151 * hpacc-abi.c (init_hpacc_ops): Likewise.
15152
7f8c9282
DJ
151532002-01-04 Daniel Jacobowitz <drow@mvista.com>
15154
15155 * valops.c (find_overload_match): Accept obj as a
15156 reference parameter. Update it before returning.
15157 * value.h (find_overload_match): Update prototype.
15158 * eval.c (evaluate_subexp_standard): Pass object to
15159 find_overload_match by reference.
15160
f23631e4
AC
151612002-01-03 Andrew Cagney <ac131313@redhat.com>
15162
15163 * valarith.c: Replace value_ptr with struct value pointer. Remove
15164 register attribute from value declarations.
15165 * valops.c: Ditto.
15166 * value.h: Ditto.
15167 * scm-lang.c (scm_lookup_name): Ditto.
15168
79e10fab 151692002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 15170
79e10fab
AC
15171 Abstract the functionality of iterating over mapped memory
15172 regions into a general purpose iterator function.
abf22e64 15173 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
15174 iterator for memory sections.
15175 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15176 (solib_mappings_callback): New function, callback for above.
15177 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15178 (info_mappings_callback): New function, callback for above.
15179
15180 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15181
c5ad026a
MK
151822002-01-01 Mark Kettenis <kettenis@gnu.org>
15183
d2a7c97a
MK
15184 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15185 * i386-tdep.c: Include "elf-bfd.h".
15186 (process_note_abi_tag_sections): New function.
15187 (i386_gdbarch_init): Add code to recognize various OS/ABI
15188 combinations.
15189
c5ad026a
MK
15190 * maint.c (_initialize_maint_cmds): Add missing \ in
15191 string-literal.
15192
a1a5b71e 15193For older changes see ChangeLog-2001
c906108c
SS
15194\f
15195Local Variables:
15196mode: change-log
15197left-margin: 8
15198fill-column: 74
15199version-control: never
15200End:
This page took 1.136343 seconds and 4 git commands to generate.