Fix typo in ChangeLog entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
144da3c1
AC
12002-12-03 Andrew Cagney <cagney@redhat.com>
2
3 * PROBLEMS: Mention PR gdb/725.
4
03c6228e
AS
52002-12-03 Andreas Schwab <schwab@suse.de>
6
7 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
8
36e53c63
AF
92002-12-02 Adam Fedor <fedor@gnu.org>
10 Klee Dienes <kdienes@apple.com>
11
12 * objc-lang.c (objc_printstr): Add width arg to match
13 printstr prototype.
14 (compare_selectors): Add 'const' to arg types.
15 (compare_classes): Likewise.
16 (find_imps): Cast msym pointer to avoid compiler warning.
17 (print_object_command): Validate the address before
18 passing it to the print routine.
19 (find_objc_msgcall_submethod): Change function argument to
20 return an int.
21 * objc-lang.h: Add 'extern' to all function declarations.
22 (value_nsstring): Add declaration.
23
504d5c7e
JB
242002-12-02 J. Brobecker <brobecker@gnat.com>
25
26 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
27 Fixes a build failure on HP/UX.
28
29 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
30 failure on HP/UX.
31 (hpread_has_name): Advance declaration to avoid a compilation warning.
32 (pst_syms_count): Add missing variable type. By change, the compiler
33 was defaulting to int, which seems a good choice. Fixes a compilation
34 warning.
35 (pst_syms_size): Likewise.
36
59623e27
JB
372002-12-02 J. Brobecker <brobecker@gnat.com>
38
39 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
40 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
41 later to set the proper gdbarch methods depending on the osabi.
42 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
43
a09a320d
JB
442002-12-02 J. Brobecker <brobecker@gnat.com>
45
46 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
47 * osabi.c (gdb_osabi_name): Add strings images for the two new
48 enum values.
49 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
50
8a81a99e
AC
512002-12-02 Andrew Cagney <ac131313@redhat.com>
52
53 * MAINTAINERS (Java): Global maintainers are responible for Java.
54 (Past Maintainers): Mention both Anthony Green and Per Bothner as
55 part Java maintainers.
56
7af35dad
JB
572002-12-02 J. Brobecker <brobecker@gnat.com>
58
59 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
60 Fixes a compilation failure on AiX.
61
f4ede9bc
JB
622002-12-02 J. Brobecker <brobecker@gnat.com>
63
64 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
65 why aix-thread.o is not listed.
66
ae45cd16
AC
672002-12-01 Andrew Cagney <ac131313@redhat.com>
68
69 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
70 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
71 * gdbarch.h, gdbarch.c: Re-generate.
72 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
73 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
74 * config/pa/tm-hppa.h, frame.h: Update.
75 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
76 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
77 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
78 * cris-tdep.c, alpha-tdep.c: Update.
79 * frame.c (set_unwind_by_pc, create_new_frame): Use either
80 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
81 (get_prev_frame): Ditto.
82
020cc13c
AC
832002-11-30 Andrew Cagney <cagney@redhat.com>
84
85 * exec.c (xfer_memory): Replace boolean with int.
86 * p-exp.y: Use 0 instead of false.
87 * corelow.c (gdb_check_format): Change return type to int from
88 boolean.
89 * utils.c: Don't include <curses.h> or <term.h> first.
90
1d9b2aa8
SC
912002-11-29 Stephane Carrez <stcarrez@nerim.fr>
92
93 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
94 (m68hc11_register_byte): Remove.
95 (m68hc11_gdbarch_init): Don't set the above.
96
a193e397
AC
972002-11-29 Andrew Cagney <cagney@redhat.com>
98
99 * remote-mips.c (mips_initialize): Force a selected frame rebuild
100 by calling get_selected_frame.
101 * ocd.c (ocd_start_remote): Use get_selected frame instead of
102 set_current_frame, create_new_frame, select_frame and
103 get_current_frame.
104 * remote-e7000.c (e7000_start_remote): Ditto.
105 * remote-mips.c (common_open): Ditto
106 * remote-rdp.c (remote_rdp_open): Ditto.
107
b5fc49aa
AS
1082002-11-29 Andreas Schwab <schwab@suse.de>
109
110 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
111 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
112 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
113 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
114 read_memory_unsigned_integer instead of read_memory_integer when
115 dealing with addresses and instruction opcodes.
116 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
117 (m68k_linux_frame_saved_pc): Likewise.
118
6e7f8b9c
AC
1192002-11-29 Andrew Cagney <ac131313@redhat.com>
120
121 * stack.c (selected_frame, select_frame): Move from here ...
122 * frame.c (selected_frame, select_frame): ... to here. Include
123 "language.h".
124 * Makefile.in (frame.o): Update dependencies.
125 * frame.c (get_selected_frame): New function.
126 * frame.h (get_selected_frame): Declare.
127 (deprecated_selected_frame): Rename selected_frame.
128 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
129 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
130 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
131 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
132 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
133 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
134 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
135 * z8k-tdep.c, cli/cli-cmds.c: Update.
136
805e2818
AC
1372002-11-29 Andrew Cagney <ac131313@redhat.com>
138
139 * frame.h (get_selected_block): Add comments.
140
1058bca7
AC
1412002-11-28 Andrew Cagney <ac131313@redhat.com>
142
143 * frame.c (pc_notcurrent): New function.
144 (find_frame_sal): New function.
145 * frame.h (find_frame_sal): Declare.
146 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
147 * stack.c (print_frame_info_base): Use find_frame_sal instead of
148 find_pc_line.
1058bca7
AC
149 (frame_info): Ditto.
150 * ada-lang.c (find_printable_frame): Ditto.
151
d92419e5
JB
1522002-11-28 J. Brobecker <brobecker@gnat.com>
153
154 * configure.in: Check that the pthdebug library is recent enough
155 before enabling thread support on native AiX.
156 * configure: Regenerate.
157
158 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
159 from the list of object files as it is now appended by configure
160 if thread support is enabled.
161 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
162 if thread support is enabled.
163
8c69fc49
AC
1642002-11-28 Andrew Cagney <cagney@redhat.com>
165
166 * stack.c (get_selected_block): In-line get_current_block.
167 * frame.h (get_current_block): Delete declaration.
168 * blockframe.c (get_current_block): Delete function.
169
07555a72
AC
1702002-11-28 Andrew Cagney <ac131313@redhat.com>
171
172 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
173 USE_GENERIC_DUMMY_FRAMES.
174 * gdbarch.h, gdbarch.c: Regenerate.
175 * valops.c, frame.c: Update.
176 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
177 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
178 * config/pa/tm-hppa.h, blockframe.c: Update.
179 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
180 * m68k-tdep.c, alpha-tdep.c: Ditto.
181
182 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
183 * mips-tdep.c: Ditto.
184
b99fa2d2
AC
1852002-11-27 Andrew Cagney <ac131313@redhat.com>
186
187 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
188 (USE_GENERIC_DUMMY_FRAMES): Default to true.
189 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
190 * gdbarch.c, gdbarch.h: Re-generate.
191 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
192 (CALL_DUMMY_LOCATION): Delete macro definition.
193 (PC_IN_CALL_DUMMY): Delete macro definitions.
194
195 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
196 default is already generic_pc_in_call_dummy.
197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
198 * v850-tdep.c (v850_gdbarch_init): Ditto.
199 * sh-tdep.c (sh_gdbarch_init): Ditto.
200 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
201 * mips-tdep.c (mips_gdbarch_init): Ditto.
202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
204 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
206 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
207 * avr-tdep.c (avr_gdbarch_init): Ditto.
208
209 * arm-tdep.c (arm_gdbarch_init): Do not set
210 use_generic_dummy_frames, default is already 1.
211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
212 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
213 * v850-tdep.c (v850_gdbarch_init): Ditto.
214 * sh-tdep.c (sh_gdbarch_init): Ditto.
215 * s390-tdep.c (s390_gdbarch_init): Ditto.
216 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
217 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
218 * mips-tdep.c (mips_gdbarch_init): Ditto.
219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
222 * i386-tdep.c (i386_gdbarch_init): Ditto.
223 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
224 * frv-tdep.c (frv_gdbarch_init): Ditto.
225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
226 * cris-tdep.c (cris_gdbarch_init): Ditto.
227 * avr-tdep.c (avr_gdbarch_init): Ditto.
228
229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
230 call_dummy_location, default is already AT_ENTRY_POINT.
231 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
232 * v850-tdep.c (v850_gdbarch_init): Ditto.
233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
234 * sh-tdep.c (sh_gdbarch_init): Ditto.
235 * s390-tdep.c (s390_gdbarch_init): Ditto.
236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
238 * mips-tdep.c (mips_gdbarch_init): Ditto.
239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
241 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
242 * i386-tdep.c (i386_gdbarch_init): Ditto.
243 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
244 * frv-tdep.c (frv_gdbarch_init): Ditto.
245 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
246 * cris-tdep.c (cris_gdbarch_init): Ditto.
247 * avr-tdep.c (avr_gdbarch_init): Ditto.
248 * arm-tdep.c (arm_gdbarch_init): Ditto.
249 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
250
abc0af47
AC
2512002-11-28 Andrew Cagney <cagney@redhat.com>
252
253 * frame.h: Update comments on set_current_frame, create_new_frame,
254 flush_cached_frames, reinit_frame_cache, select_frame and
255 selected_frame.
256
ed5cedc5
AC
2572002-11-27 Andrew Cagney <cagney@redhat.com>
258
259 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
260 deprecated pc_in_call_dummy function.
261 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
262 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
263 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
264 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
265 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
266
b2a1bd4f
MH
2672002-11-26 Martin M. Hunt <hunt@redhat.com>
268
269 * Makefile.in: Remove Tix dependencies.
270 * acinclude.m4: Ditto.
271 * aclocal.m4: Ditto.
272 * configure.in: Ditto.
273 * configure: Regenerated.
274
f09cffaa
AC
2752002-11-26 Andrew Cagney <ac131313@redhat.com>
276
277 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
278 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
279 * gdbarch.c: Re-generate.
280
e92b0cc9
AC
2812002-11-26 Andrew Cagney <ac131313@redhat.com>
282
283 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
284 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
285 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
286 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
287 pc_in_call_dummy_at_entry_point.
288 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
289 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
290 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
291 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
292 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
293 pc_in_call_dummy_on_stack.
294 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
295 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
296 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
297 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
298 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
299
b4b88177
AC
3002002-11-26 Andrew Cagney <ac131313@redhat.com>
301
302 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
303 pc_in_call_dummy_before_text_end
304 (deprecated_pc_in_call_dummy_after_text_end): Rename
305 pc_in_call_dummy_after_text_end.
306 (deprecated_pc_in_call_dummy_on_stack): Rename
307 pc_in_call_dummy_on_stack.
308 (deprecated_pc_in_call_dummy_at_entry_point): Rename
309 pc_in_call_dummy_at_entry_point.
310 * m68k-tdep.c (m68k_gdbarch_init): Update.
311 * s390-tdep.c (s390_gdbarch_init): Update.
312 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
313 * vax-tdep.c (vax_gdbarch_init): Update.
314 * sparc-tdep.c (sparc_gdbarch_init): Update.
315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
317 * i386-tdep.c (i386_gdbarch_init): Update.
318 * frv-tdep.c (frv_gdbarch_init): Update.
319 * cris-tdep.c (cris_gdbarch_init): Update.
320 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
321 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
322 (deprecated_pc_in_call_dummy_after_text_end)
323 (deprecated_pc_in_call_dummy_on_stack)
324 (deprecated_pc_in_call_dummy_at_entry_point): Update.
325 * alpha-tdep.c (alpha_gdbarch_init): Update.
326
eb784848
DJ
3272002-11-25 Daniel Jacobowitz <drow@mvista.com>
328
329 * acconfig.h (HAVE_PREAD64): Add.
330 * configure.in: Check for pread64.
331 * config.in: Regenerated.
332 * configure: Regenerated.
333 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
334 * linux-proc.c (linux_proc_xfer_memory): New function.
335 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
336
933c6fe4
DC
3372002-11-25 David Carlton <carlton@math.stanford.edu>
338
339 * dwarf2read.c (scan_partial_symbols): Descend into namespace
340 pdi's with no name.
341
158a8022
AC
3422002-11-25 Andrew Cagney <ac131313@redhat.com>
343
344 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
345 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
346
481d0f41
JB
3472002-11-25 Jim Blandy <jimb@redhat.com>
348
e8289572
JB
349 * symfile.c (init_objfile_sect_indices): New function.
350 (default_symfile_offsets): Move the section-index-initializing
351 stuff into init_objfile_sect_indices, and call that.
352
b29c9944
JB
353 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
354 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
355
13de58df
JB
356 * symfile.c (syms_from_objfile): Adjust indentation.
357
481d0f41
JB
358 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
359 || info_verbose isn't true.
360
7d6a26a7
AC
3612002-11-24 Andrew Cagney <ac131313@redhat.com>
362
363 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
364 default to get_frame_base.
365 * gdbarch.h, gdbarch.c: Regenerate.
366 * arch-utils.c (default_frame_address): Delete function.
367 * arch-utils.h (default_frame_address): Delete declaration
368
6abe1021
PM
3692002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
370
371 * varobj.c (find_frame_addr_in_frame_chain):
372 Use get_frame_base instead of FRAME_FP,
373 obvious fix.
374
c193f6ac
AC
3752002-11-19 Andrew Cagney <ac131313@redhat.com>
376
377 * frame.h (FRAME_FP): Delete macro.
378 (get_frame_base): New function declaration.
379 * frame.c (get_frame_base): New function.
380 (get_frame_id): Use ->frame.
381 (frame_find_by_id): Rewrite to use get_frame_id.
382 * blockframe.c: Use get_frame_base instead of FRAME_FP.
383 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
384 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
385 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
386 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
387 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
388 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
389
e5d2af14
AC
3902002-11-24 Andrew Cagney <ac131313@redhat.com>
391
392 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
393
931d12c6
AC
3942002-11-24 Andrew Cagney <ac131313@redhat.com>
395
396 * frame.c (set_unwind_by_pc): Revert change below, use
397 PC_IN_CALL_DUMMY.
398 (get_prev_frame): Ditto.
399
5e0f933e
AC
4002002-11-24 Andrew Cagney <ac131313@redhat.com>
401
402 * dummy-frame.c (pc_in_dummy_frame): New function.
403 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
404 (find_dummy_frame): Update comment.
405 (generic_pop_current_frame): Use get_frame_type.
406 * dummy-frame.h (pc_in_dummy_frame): Declare.
407 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
408 (create_new_frame): Use pc_in_dummy_frame.
409 (get_prev_frame): Use pc_in_dummy_frame.
410 (frame_saved_regs_register_unwind): Use get_prev_frame.
411 (deprecated_generic_get_saved_register): Use get_prev_frame.
412
7d8547c9
AC
4132002-11-23 Andrew Cagney <ac131313@redhat.com>
414
415 * blockframe.c (find_frame_addr_in_frame_chain): Move function
416 from here ...
417 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
418 (varobj_create): Note that frame ID should be used.
419 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
420
0225421b
AC
4212002-11-23 Andrew Cagney <ac131313@redhat.com>
422
423 * breakpoint.c: Include "gdb_assert.h".
424 (deprecated_frame_in_dummy): Assert that generic dummy frames are
425 not being used.
426 * Makefile.in (breakpoint.o): Update dependencies.
427 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
428 deprecated_frame_in_dummy.
429 * stack.c (print_frame_info_base): Ditto.
430 (frame_info): Ditto.
431 (print_frame_info_base): Ditto. Delete dead code.
432
32eeb91a
AS
4332002-11-23 Andreas Schwab <schwab@suse.de>
434
435 * Makefile.in (m68k_tdep_h): Define.
436 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
437 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
438 * m68k-tdep.c: Move register number enum ...
439 * m68k-tdep.h: ... to this new file and rename the constants from
440 E_* to M68K_*. All uses changed.
441 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
442 * abug-rom.c: Include "m68k-tdep.h". Use
443 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
444 * cpu32bug-rom.c: Likewise.
445 * dbug-rom.c: Likewise.
446 * m68k-tdep.c: Likewise.
447 * m68klinux-nat.c: Likewise.
448 * remote-est.c: Likewise.
449 * rom68k-rom.c: Likewise.
450 * config/m68k/tm-linux.h: Likewise.
451
9648bac8
AC
4522002-11-23 Andrew Cagney <ac131313@redhat.com>
453
454 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
455 dummy frame initialization code.
456 * mips-tdep.c (mips_gdbarch_init): Ditto.
457
91a175b3
CF
4582002-11-22 Christopher Faylor <cgf@redhat.com>
459
460 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
461 attach will hang.
462
f4ded5b1
AC
4632002-11-22 Andrew Cagney <ac131313@redhat.com>
464
465 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
466 to default_frame_address.
467 * gdbarch.h, gdbarch.c: Re-generate.
468
469 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
470 or frame_locals_address to default_frame_address.
471 * m68k-tdep.c (m68k_gdbarch_init): Update.
472 * i386-tdep.c (i386_gdbarch_init): Update.
473 * frv-tdep.c (frv_gdbarch_init): Update.
474 * sh-tdep.c (sh_gdbarch_init): Update.
475 * v850-tdep.c (v850_gdbarch_init): Update.
476 * sparc-tdep.c (sparc_gdbarch_init): Update.
477 * mips-tdep.c (mips_gdbarch_init): Update.
478 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
479 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
481
482 * cris-tdep.c (cris_frame_args_address): Delete function.
483 (cris_frame_locals_address): Delete function.
484 (cris_gdbarch_init): Do not set frame_args_address or
485 frame_locals_address.
486
f7c1e0f3
MS
4872002-11-22 Michael Snyder <msnyder@redhat.com>
488
489 * thread-db.c (thread_db_load): Tell the user what's going on
490 if dlopen fails on libthread_db.
491
03dac896
AS
4922002-11-23 Andreas Schwab <schwab@suse.de>
493
494 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
495 invariant return values.
496
7a67d0fe
AS
4972002-11-22 Andreas Schwab <schwab@suse.de>
498
499 * valops.c (value_slice): Move declaration of `offset' to avoid
500 warning.
501
5633f842
CF
5022002-11-22 Christopher Faylor <cgf@redhat.com>
503
504 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
505 (struct so_stuff): Add end_addr field.
506 (register_loaded_dll): Calculate and store end address of loaded dll.
507 (solib_address): New function.
508 (child_solib_loaded_library_pathname): Pass carefully constructed
509 section info to safe_symbol_file_add rather than ignoring it.
510 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
511 DLL is loaded.
512 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
513 (child_create_inferior): Fix a compiler warning.
514 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
515 (solib_address): Declare new function.
516
d85fe7f7
AS
5172002-11-22 Andreas Schwab <schwab@suse.de>
518
519 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
520 and FPS registers.
521
8308e54c
DJ
5222002-11-21 Daniel Jacobowitz <drow@mvista.com>
523
524 * maint.c (_initialize_maint_cmds): Fix typo. From
525 Francesco Potorti` <pot@gnu.org>.
526
8997bd5e
AC
5272002-11-21 Andrew Cagney <cagney@redhat.com>
528
529 * mips-tdep.c (mips_dump_tdep): Delete references to
530 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
531 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
532 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
533 * printcmd.c (build_address_symbolic): Delete calls to
534 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
535 (address_info): Ditto.
536 Fix PR gdb/773.
537
4e87b832
KD
5382002-11-19 Klee Dienes <kdienes@apple.com>
539 Adam Fedor <fedor@gnu.org>
540
541 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
542 the ability to explicitly specify the quote characters and word
543 break characters; if NULL is specified for either, use the old
544 behavior of using the characters used by the completer.
545 (skip_chars): New function. Convenience wrapper around
546 skip_quoted_chars to provide the original skip_chars behavior.
547 * completer.h (skip_quoted_chars): Add prototype.
548
9ba8d803
AC
5492002-11-19 Andrew Cagney <ac131313@redhat.com>
550
551 Problems reported by Paul Eggert.
552 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
553
0a595803
AS
5542002-11-19 Andreas Schwab <schwab@suse.de>
555
556 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
557 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
558 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
559 (m68k_linux_frame_saved_pc): Move to ...
560 * m68klinux-tdep.c: ... here. New file.
561 * Makefile.in (m68klinux-tdep.o): Add dependencies.
562 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
563
e8afa4d7
AF
5642002-11-19 Adam Fedor <fedor@gnu.org>
565
566 * objc-exp.y: Revert to old skip_quoted usage.
567
a76c9d72
AF
5682002-11-19 Adam Fedor <fedor@gnu.org>
569
570 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
571 (objc_lang_h): Define.
572 (YYFILES): Add objc-exp.tab.c.
573 (local-maintainer-clean): Remove objc-exp.tab.c.
574 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
575
fd0e9d45
PM
5762002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
577
578 * p-exp.y (typecast rule): Add automatic dereference of
579 pascal classes if needed.
580 (THIS): Set current_type.
581 Automatically dereference pascal classes.
582 (typebase rule): Add ^typebase recognition.
583
82eeeb94
AF
5842002-11-18 Adam Fedor <fedor@gnu.org>
585
586 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
587 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
588 (op_name): Handle OP_OBJC_SELF.
589 * Makefile.in (expprint.o): Add additional depends.
590
646df18d
AF
5912002-11-18 Adam Fedor <fedor@gnu.org>
592
593 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
594 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
595 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
596 * objc-exp.y: Likewise.
597
379b85df
AF
5982002-11-18 Adam Fedor <fedor@gnu.org>
599
600 * gdb/parser-defs.h: (struct objc_class_str): New structure
601 for parsing ObjC classes.
602
85cf597a
AC
6032002-11-18 Andrew Cagney <ac131313@redhat.com>
604
605 * stack.c (frame_relative_level): Copy function from here ...
606 * frame.c (frame_relative_level): ...to here.
607
5a203e44
AC
6082002-11-18 Andrew Cagney <ac131313@redhat.com>
609
610 * frame.h (enum frame_type): Define.
611 (get_frame_type): Declare.
612 (struct frame_info): Add field `type'. Delete field
613 signal_handler_caller.
614 (deprecated_set_frame_signal_handler_caller): Declare.
615 * frame.c (get_frame_type): New function.
616 (deprecated_set_frame_type): New function.
617 (create_new_frame): Set the frame's type.
618 (get_prev_frame): Similar.
619 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
620 * s390-tdep.c: Ditto.
621 * m68klinux-nat.c: Ditto.
622 * ns32k-tdep.c: Ditto.
623 * x86-64-linux-tdep.c: Ditto.
624 * vax-tdep.c: Ditto.
625 * rs6000-tdep.c: Ditto.
626 * ppc-linux-tdep.c: Ditto.
627 * i386-interix-tdep.c: Ditto.
628 * mips-tdep.c: Ditto.
629 * m68k-tdep.c: Ditto.
630 * hppa-tdep.c: Ditto.
631 * ia64-tdep.c: Ditto.
632 * cris-tdep.c: Ditto.
633 * arm-tdep.c: Ditto.
634 * alpha-tdep.c: Ditto.
635 * i386-tdep.c: Ditto.
636 * stack.c: Ditto.
637 * ada-lang.c: Ditto.
638 * blockframe.c: Update.
639 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
640 deprecated_set_frame_type instead of signal_handler_caller.
641 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
642 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
643 * breakpoint.h: Delete FIXME suggesting get_frame_type.
644
bf4ae8b2
KD
6452002-11-18 Klee Dienes <kdienes@apple.com>
646
647 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
648
a672ef13
KD
6492002-11-18 Klee Dienes <kdienes@apple.com>
650
651 * buildsym.c (pop_context): Add comment.
652
0c5e171a
KD
6532002-11-18 Klee Dienes <kdienes@apple.com>
654
655 * buildsym.h (pop_context): Convert to function, defined in
656 buildsym.c.
657 * buildsym.c: Include gdb_assert.h.
658 (pop_context): Implement as C function. Add check for stack
659 underflow.
660 * dbxread.c (process_one_symbol): Complain and stop processing
661 that symbol if we are already at the top of the context stack for
662 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
663 when processing N_RBRAC.
664
8a1f4c4c
DJ
6652002-11-16 Daniel Jacobowitz <drow@mvista.com>
666
667 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
668 define.
669 (struct target_waitstatus): Add opaque definition.
670 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
671 * exec.c (init_exec_ops): Likewise.
672 * fork-child.c (clone_and_follow_inferior): Remove.
673 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
674 * inferior.h (clone_and_follow_inferior): Remove prototype.
675 * infrun.c (follow_fork_mode_both): Remove.
676 (follow_fork_mode_kind_names): Remove commented out "both".
677 (follow_inferior_fork): Remove follow_fork_mode_both support.
678 * inftarg.c (child_clone_and_follow_inferior): Remove.
679 (child_post_follow_inferior_by_clone): Remove.
680 (init_child_ops): Don't set to_clone_and_follow_inferior
681 or to_post_follow_inferior_by_clone.
682 * target.c (default_clone_and_follow_inferior): Remove.
683 (cleanup_target): Don't set to_clone_and_follow_inferior
684 or to_post_follow_inferior_by_clone.
685 (find_default_clone_and_follow_inferior): Remove.
686 (init_dummy_target): Don't set to_clone_and_follow_inferior.
687 (debug_to_clone_and_follow_inferior): Remove.
688 (debug_to_post_follow_inferior_by_clone): Remove.
689 (setup_target_debug): Don't set to_clone_and_follow_inferior
690 or to_post_follow_inferior_by_clone.
691 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
692 and to_post_follow_inferior_by_clone.
693 (child_clone_and_follow_inferior): Remove prototype.
694 (child_post_follow_inferior_by_clone): Remove prototype.
695 (target_clone_and_follow_inferior): Remove macro.
696 (target_post_follow_inferior_by_clone): Remove macro.
697 (find_default_clone_and_follow_inferior): Remove prototype.
698
47932f85
DJ
6992002-11-16 Daniel Jacobowitz <drow@mvista.com>
700
701 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
702 inferior_has_vforked, and inferior_has_execd instead of
703 target_has_forked, target_has_vforked, and target_has_execd.
704 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
705 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
706 (CHILD_WAIT): Define.
707 (child_wait): Add prototype.
708 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
709 Add prototype.
710 (hpux_has_vforked): Likewise, from child_has_vforked.
711 (hpux_has_execd): Likewise, from child_has_execd.
712 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
713 (not_same_real_pid, child_wait): New, copied from inftarg.c.
714 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
715 and hpux_has_syscall_event instead of the target hooks.
716 * infrun.c (inferior_has_forked, inferior_has_vforked)
717 (inferior_has_execd): New functions.
718 * inftarg.c (not_same_real_pid): Remove.
719 (child_wait): Remove references to not_same_real_pid,
720 target_has_forked, target_has_vforked, target_has_execd,
721 and target_has_syscall_event.
722 (child_has_forked, child_has_vforked, child_has_execd)
723 (child_has_syscall_event): Remove.
724 (init_child_ops): Remove references to child_has_forked,
725 child_has_vforked, child_has_execd, and child_has_syscall_event.
726 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
727 (hpux_has_vforked): Likewise, from child_has_vforked.
728 (hpux_has_execd): Likewise, from child_has_execd.
729 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
730 * target.c (cleanup_target): Remove references to
731 to_has_forked, to_has_vforked, to_has_execd, and
732 to_has_syscall_event.
733 (update_current_target): Likewise.
734 (setup_target_debug): Likewise.
735 (debug_to_has_forked): Remove.
736 (debug_to_has_vforked): Remove.
737 (debug_to_has_execd): Remove.
738 (debug_to_has_syscall_event): Remove.
739 * target.h (struct target_ops): Remove to_has_forked.
740 to_has_vforked, to_has_execd, and to_has_syscall_event.
741 (child_has_forked, child_has_vforked, child_has_execd)
742 (child_has_syscall_event): Remove prototypes.
743 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
744 prototypes.
745 (target_has_forked, target_has_vforked, target_has_execd)
746 (target_has_syscall_event): Remove macros.
747
4088142a
DJ
7482002-11-16 Daniel Jacobowitz <drow@mvista.com>
749
750 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
751 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
752 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
753 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
754 * target.c (cleanup_target): Remove reference to
755 to_can_follow_vfork_prior_to_exec.
756 (update_current_target): Likewise.
757 (debug_to_can_follow_vfork_prior_to_exec): Remove.
758 (setup_target_debug): Remove reference to
759 to_can_follow_vfork_prior_to_exec.
760 * target.h (struct target_ops): Remove
761 to_can_follow_vfork_prior_to_exec.
762 (child_can_follow_vfork_prior_to_exec): Remove prototype.
763 (target_can_follow_vfork_prior_to_exec): Remove definition.
764 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
765 define.
766 * infrun.c (follow_vfork_when_exec): Remove.
767 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
768 (follow_exec): Likewise.
769 (handle_inferior_event): Likewise.
770 (keep_going): Likewise.
771
18cde8d5
AC
7722002-11-15 Andrew Cagney <cagney@redhat.com>
773
774 * frame.c (generic_unwind_get_saved_register): Make static.
775 * frame.h (generic_unwind_get_saved_register): Delete declaration.
776 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
777 defaults to generic_unwind_get_saved_register.
778 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
779 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
780 * frv-tdep.c (frv_gdbarch_init): Ditto.
781 * i386-tdep.c (i386_gdbarch_init): Ditto.
782 * s390-tdep.c (s390_gdbarch_init): Ditto.
783 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
784 * v850-tdep.c (v850_gdbarch_init): Ditto.
785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
787 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
788
a6b063af
AC
7892002-11-15 Andrew Cagney <cagney@redhat.com>
790
791 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
792 i386-tdep.c.
793
f407986f
AC
7942002-11-15 Andrew Cagney <cagney@redhat.com>
795
796 * frame.h (sigtramp_saved_pc): Delete declaration.
797 * blockframe.c (sigtramp_saved_pc): Delete function.
798 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
799 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
800 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
801 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
802
f18c5a73
AC
8032002-11-15 Andrew Cagney <ac131313@redhat.com>
804
805 * frame.c (frame_pc_unwind): New function.
806 (frame_saved_regs_pc_unwind): New function.
807 (frame_register_unwind): Pass unwind_cache instead of
808 register_unwind_cache.
809 (set_unwind_by_pc): Add unwind_pc parameter, set.
810 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
811 (get_prev_frame): Ditto.
812 * frame.h (frame_pc_unwind_ftype): Declare.
813 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
814 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
815 (frame_pc_unwind): Declare.
816 * dummy-frame.c (dummy_frame_pc_unwind): New function.
817 (struct dummy_frame): Add comment mentioning that values are for
818 previous frame.
819 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
820 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
821 (generic_file_frame_chain_valid): Ditto.
822 * stack.c (frame_info): Ditto.
823
d9285969 8242002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
825
826 * linespec.c (locate_first_half): New function.
827 (decode_line_1): Move code into locate_first_half.
828
d741b867
AC
8292002-11-15 Andrew Cagney <ac131313@redhat.com>
830
831 * complaints.h: Add comment explaining how to eliminate a
832 deprecated_complain call.
24382c5c 833 * complaints.h: Fix spelling errors.
d741b867 834
82d03c99
DC
8352002-11-15 David Carlton <carlton@math.stanford.edu>
836
837 * printcmd.c: Remove #include "disasm.h".
838
c97eb5d9
AC
8392002-11-14 Andrew Cagney <ac131313@redhat.com>
840
841 * frame.h: Move the most relevant interface functions to the start
842 of the file.
843
524d7c18
AC
8442002-11-14 Andrew Cagney <ac131313@redhat.com>
845
846 * regcache.h (deprecated_registers): Rename registers.
847 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
848 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
849 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
850 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
851 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
852 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
853 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
854 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
855 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
856 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
857 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
858 * v850ice.c: Update.
859
6411e720
AC
860Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
861
862 * utils.c (gdb_realpath): Add comment mentioning realpath with a
863 NULL buffer.
864
73937e03
AC
8652002-11-13 Andrew Cagney <cagney@redhat.com>
866
867 * regcache.h (deprecated_read_register_bytes): Rename
868 read_register_bytes.
869 (deprecated_write_register_bytes): Rename write_register_bytes.
870 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
871 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
872 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
873 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
874 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
875 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
876 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
877 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
878 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
879 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
880 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
881 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
882 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
883 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
884
fb0cd46e
JB
8852002-11-13 Jim Blandy <jimb@redhat.com>
886
887 * findvar.c (read_var_value): Doc fix.
888
2d28509a
AC
8892002-11-13 Andrew Cagney <cagney@redhat.com>
890
891 * regcache.c (struct regcache): Replace passthough_p with
892 readonly_p.
893 (regcache_xmalloc): Initialize readonly_p.
894 (build_regcache): Initialize readonly_p.
895 (regcache_save): New function.
896 (regcache_restore): New function.
897 (regcache_cpy): Re-implement using regcache_save and
898 regcache_restore.
899 (regcache_raw_read): Update.
900 (regcache_cooked_read): When a read-only cache, checked for cached
901 pseudo register values.
902 (regcache_raw_write): Assert that the cache is not read-only.
903 Remove code handling a non-passthrough cache.
904 * regcache.h (regcache_save): Declare.
905 (regcache_restore): Declare.
906
067df2e5
AC
9072002-11-13 Andrew Cagney <cagney@redhat.com>
908
909 * regcache.c (struct regcache_descr): Add fields
910 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
911 (init_legacy_regcache_descr): Compute the size of a cooked
912 register cache and then assign that to sizeof_raw_registers. Set
913 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
914 (init_legacy_regcache_descr): Ditto.
915
51b1fe4e
AC
9162002-11-13 Andrew Cagney <cagney@redhat.com>
917
918 * regcache.c (register_buffer): Move to near start of file, update
919 description.
920 (regcache_raw_read): Use.
921 (regcache_raw_write): Use.
922 (struct regcache): Rename raw_registers to registers and
923 raw_register_valid_p to register_valid_p.
924 (regcache_xmalloc): Update.
925 (regcache_xfree): Update.
926 (register_buffer): Update.
927 (regcache_cpy): Update.
928 (regcache_cpy_no_passthrough): Update.
929 (regcache_valid_p): Update.
930 (deprecated_grub_regcache_for_registers): Update.
931 (deprecated_grub_regcache_for_register_valid): Update.
932 (set_register_cached): Update.
933 (regcache_raw_write): Update.
934
80b4c677
PM
9352002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
936
937 * p-exp.y (name_not_typename): Use copy_name to
938 set current_type variable for fields of THIS.
939
0f3fafde
DJ
9402002-11-12 Daniel Jacobowitz <drow@mvista.com>
941
942 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
943 * monitor.c (init_base_monitor_ops): Likewise.
944 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
945 * remote-array.c (init_array_ops): Likewise.
946 * remote-e7000.c (init_e7000_ops): Likewise.
947 * remote-es.c (init_es1800_ops): Likewise.
948 (init_es1800_child_ops): Likewise.
949 * remote-rdp.c (init_remote_rdp_ops): Likewise.
950 * remote-sim.c (init_gdbsim_ops): Likewise.
951 * remote-st.c (init_st2000_ops): Likewise.
952 * sol-thread.c (init_sol_core_ops): Likewise.
953 (init_sol_thread_ops): Likewise.
954 * v850ice.c (init_850ice_ops): Likewise.
955 * win32-nat.c (init_child_ops): Likewise.
956 * wince.c (init_child_ops): Likewise.
957
82c0260e
AC
9582002-11-12 Andrew Cagney <ac131313@redhat.com>
959
960 * utils.c (gdb_realpath): Make rp a constant pointer.
961
70d35819
AC
9622002-11-12 Andrew Cagney <ac131313@redhat.com>
963
964 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
965 a constant buffer; cannonicalize_file_name(); realpath() with a
966 pathconf() defined buffer, xstrdup().
967
9835a8b0
AC
9682002-11-12 Andrew Cagney <ac131313@redhat.com>
969
970 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
971 to hang2.C; hang3.c to hang3.C.
972
3f47be5c
EZ
9732002-11-11 Elena Zannoni <ezannoni@redhat.com>
974
975 * findvar.c (read_var_value): Reenable TLS code.
976
9772002-11-11 Elena Zannoni <ezannoni@redhat.com>
978 Jim Blandy <jimb@redhat.com>
979
980 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
981 * target.c (update_current_target): Add
982 to_get_thread_local_address.
983 * target.h (to_get_thread_local_address): Export.
984 (target_get_thread_local_address): Define.
985 (target_get_thread_local_address_p): Define.
986 * thread-db.c: Include solib-svr4.h.
987 (td_thr_tls_get_addr_p): Define.
988 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
989 (thread_db_get_thread_local_address): New function.
990 (init_thread_db_ops): Initialize to_get_thread_local_address.
991 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
992 * configure: Regenerate.
993 * config.in: Regenerate.
994
636b1a6d
DC
9952002-11-11 David Carlton <carlton@math.stanford.edu>
996
997 * linespec.c (set_flags): New function.
998 (decode_line_1): Move code into set_flags.
999
44fe14ab
DC
10002002-11-11 David Carlton <carlton@math.stanford.edu>
1001
1002 * linespec.c (decode_line_1): Move chunks of code to separate
1003 functions.
1004 (initialize_defaults): New function.
1005 (decode_indirect): New function.
1006
e6f181f5
AC
10072002-11-11 Andrew Cagney <ac131313@redhat.com>
1008
8971b011
AC
1009 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1010 instead of void_code_ptr.
1011 (sigtramp_saved_pc): Ditto.
1012
e6f181f5
AC
1013 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1014 i386_fp_regnum_p.
1015
01ad7f36
DJ
10162002-11-10 Daniel Jacobowitz <drow@mvista.com>
1017
1018 * gdbtypes.h (struct main_type): Move artificial flag out of
1019 loc. New member of ``struct field'' named static_kind. Reduce
1020 overloaded meaning of bitsize.
1021 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1022 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1023 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1024
1025 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1026 new fields.
1027 (template_to_fixed_record_type, template_to_static_fixed_type)
1028 (to_record_with_fixed_variant_part): Likewise.
1029 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1030 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1031 * dwarfread.c (struct_type, enum_type): Likewise.
1032 * hpread.c (hpread_read_enum_type)
1033 (hpread_read_function_type, hpread_read_doc_function_type)
1034 (hpread_read_struct_type): Likewise.
1035 * mdebugread.c (parse_symbol): Likewise.
1036
bf1e52be
AC
10372002-11-10 Andrew Cagney <ac131313@redhat.com>
1038
1039 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1040 * stack.c (print_frame_info_base): Update.
1041 (print_frame_info_base, frame_info): Update.
1042 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1043 (sparc_frame_saved_pc): Update.
1044 * ada-lang.c (find_printable_frame): Update.
1045 * breakpoint.c (deprecated_frame_in_dummy): Update.
1046
ce556f85
MK
10472002-11-09 Mark Kettenis <kettenis@gnu.org>
1048
1049 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1050 defined.
1051 (regmap): Extend to cover all registers.
1052 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1053 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1054 definitions.
1055 (fetch_register, sore_register): Simplify.
1056 (old_fetch_inferior_registers, old_store_inferior_registers):
1057 Remove functions.
1058 (cannot_fetch_register, cannot_store_register): Change
1059 implementation to use regmap array to decide which registers
1060 cannot be fetched/stored. This removes $orig_eax from the
1061 registers that cannot be fetched/stored.
1062 (fetch_inferior_registers): Call fetch_register directly instead
1063 of calling old_fetch_inferior_registers.
1064 (store_inferior_registers): Call store_register directly instead
1065 of calling old_store_inferior_registers.
1066 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1067 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1068 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1069
932bb524
KD
10702002-11-09 Klee Dienes <kdienes@apple.com>
1071
1072 * i387-tdep.c (i387_supply_register): When called with NULL as a
1073 buffer, mark the register as not provided (to mirror the behavior
1074 of supply_register).
1075 (i387_supply_fxsave): Ditto.
1076 (i387_supply_fsave): Ditto (inherits the behavior from
1077 i387_supply_register).
1078
ebe68b27
KD
10792002-11-09 Klee Dienes <kdienes@apple.com>
1080
1081 * blockframe.c (sigtramp_saved_pc): Use
1082 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1083 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1084 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1085
15220c65
AC
10862002-11-09 Andrew Cagney <ac131313@redhat.com>
1087
1088 * frame.c (get_prev_frame): Test prev_p to identify a previously
1089 unwound frame. Initialize prev_p.
1090 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1091 comment.
1092
95adb866
AC
10932002-11-09 Andrew Cagney <ac131313@redhat.com>
1094
1095 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1096 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1097 more comments. Zap dead code.
1098
e71ecd70
MK
10992002-11-09 Mark Kettenis <kettenis@gnu.org>
1100
1101 * infcmd.c (print_vector_info, print_float_info): Move code that
1102 checks whether the target has any registers and whether there is a
1103 selected frame up, such that it is also used if a target provides
1104 multi-arch definitions of these functions.
1105
c525330d
AC
11062002-11-08 Andrew Cagney <ac131313@redhat.com>
1107
72bdd927
AC
1108 * Makefile.in (DESTDIR): Define.
1109 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1110 prefix.
1111
c525330d
AC
1112 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1113 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1114
38c968cf
AC
11152002-11-08 Andrew Cagney <ac131313@redhat.com>
1116
1117 * i386-linux-tdep.c: Include "reggroups.h".
1118 (i386_linux_register_reggroup_p): New function.
1119 (i386_linux_init_abi): Set register_reggroup_p to
1120 i386_linux_register_reggroup_p.
1121 * i386-tdep.h (i386_register_reggroup_p): Declare.
1122 * i386-tdep.c: Include "reggroups.h".
1123 (i386_init_reggroups): New function.
1124 (i386_add_reggroups): New function.
1125 (i386_register_reggroup_p): New function.
1126 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1127 (_initialize_i386_tdep): Call i386_init_reggroups.
1128 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1129 specific reggroups.
1130
19e33363
MK
11312002-11-09 Mark Kettenis <kettenis@gnu.org>
1132
371a6e84
MK
1133 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1134 request that's available in *BSD.
1135
94ba925a
MK
1136 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1137
19e33363
MK
1138 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1139 FDOFF_REGNUM.
1140
8779790c
AC
11412002-11-08 Andrew Cagney <ac131313@redhat.com>
1142
1143 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1144 * dummy-frame.c (find_dummy_frame): Rename
1145 generic_find_dummy_frame, make static. Return the dummy frame
1146 instead of the regcache.
1147 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1148 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1149 (dummy_frame_register_unwind): Rename
1150 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1151 * dummy-frame.h (dummy_frame_register_unwind): Rename
1152 generic_call_dummy_register_unwind.
1153
8674b74f
MK
11542002-11-08 Mark Kettenis <kettenis@gnu.org>
1155
1156 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1157 except the inclusion of "i386/tm-i386.h", to...
1158 * config/i386/nm-i386v42mp.h: ...here.
1159 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1160
4c1e7e9d
AC
11612002-11-08 Andrew Cagney <ac131313@redhat.com>
1162
1163 * Makefile.in (frame.o): Update dependencies.
1164 * blockframe.c (current_frame, frame_obstack_alloc)
1165 (frame_saved_regs_zalloc, get_current_frame)
1166 (set_current_frame, create_new_frame)
1167 (set_unwind_by_pc, get_next_frame)
1168 (flush_cached_frames, reinit_frame_cache)
1169 (frame_saved_regs_register_unwind)
1170 (deprecated_generic_get_saved_register)
1171 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1172 (_initialize_blockframe): Move frame code from here...
1173 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1174 "annotate.h" and "dummy-frame.h".
1175 (_initialize_frame): New function.
1176
921e78cf
JB
11772002-11-08 Jim Blandy <jimb@redhat.com>
1178
1179 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1180 when we finish a function a context.
1181 * buildsym.h (outermost_context_p): New macro.
1182 (Bug analyzed by David Edelsohn.)
1183
9c1412c1
AC
11842002-11-08 Andrew Cagney <ac131313@redhat.com>
1185
1186 * blockframe.c: Include "dummy-frame.h".
1187 (struct dummy_frame, dummy_frame_stack)
1188 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1189 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1190 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1191 (generic_save_call_dummy_addr, generic_pop_current_frame)
1192 (generic_pop_dummy_frame, generic_fix_call_dummy)
1193 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1194 dummy frame code from here...
1195 * dummy-frame.c: ...to here. New file.
1196 * dummy-frame.h: New file.
1197 (generic_call_dummy_register_unwind): Declare.
1198 (generic_find_dummy_frame): Declare.
1199 * Makefile.in (SFILES): Add dummy-frame.c.
1200 (dummy-frame.o): Specify dependencies.
1201 (dummy_frame_h): Define.
1202 (COMMON_OBS): Add dummy-frame.o.
1203 (blockframe.o): Update dependencies.
1204
208d8187
JB
12052002-11-08 Jim Blandy <jimb@redhat.com>
1206
1207 * dwarf2read.c (read_func_scope): Restore local_symbols and
1208 param_symbols after we finish the function context. (Based on a
1209 patch from David Edelsohn.)
1210
413dad4d
DC
12112002-11-08 David Carlton <carlton@math.stanford.edu>
1212
1213 * linespec.c (symbol_found): New function.
1214 (minsym_found): New function.
1215 (decode_line_1): Separate out some code into separate functions.
1216
5512c44a
JB
12172002-11-08 Joel Brobecker <brobecker@gnat.com>
1218
1219 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1220 the benefit of the interix target.
1221 * i386-tdep.h (i386_frameless_signal_p): Declare.
1222
1b33ef47
AC
12232002-11-08 Andrew Cagney <ac131313@redhat.com>
1224
1225 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1226 declaration that snuck in from change below.
1227
23a34459
AC
12282002-11-06 Andrew Cagney <cagney@redhat.com>
1229
1230 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1231 all callers.
1232 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1233 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1234 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1235 (i386_mxcsr_regnum_p): new function. Use instead of
1236 MXCSR_REGNUM_P.
1237 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1238 (i386_sse_regnum_p): Declare.
1239 (i386_mxcsr_regnum_p): Declare.
1240 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1241 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1242 (IS_FP_REGNUM): Update definition.
1243 (IS_FPU_CTRL_REGNUM): Update definition..
1244 (IS_SSE_REGNUM): Update definition..
1245 * i386v-nat.c (register_u_addr): Update.
1246 * go32-nat.c (fetch_register): Update.
1247 (store_register): Update.
1248
d709c020
JB
12492002-11-07 Joel Brobecker <brobecker@gnat.com>
1250
1251 Preparation work to convert the hppa targets to multiarch partial.
1252
1253 * hppa-tdep.c: Add new functions replacing macro bodies from
1254 config/pa/tm-hppa.h. These function will be used to initialize
1255 the gdbarch structure. Import some comments from tm-hppa.h,
1256 and place them where appropriate, to avoid loosing them when
1257 we cleanup this file.
1258 (hppa_reg_struct_has_addr): New function.
1259 (hppa_inner_than): New function.
1260 (hppa_stack_align): New function.
1261 (hppa_pc_requires_run_before_use): New function.
1262 (hppa_instruction_nullified): New function.
1263 (hppa_register_byte): New function.
1264 (hppa_register_virtual_type): New function.
1265 (hppa_store_struct_return): New function.
1266 (hppa_cannot_store_register): New function.
1267 (hppa_frame_args_address): New function.
1268 (hppa_frame_locals_address): New function.
1269 (hppa_smash_text_address): New function.
1270 (hppa_coerce_float_to_double): New function. Requires the inclusion
1271 of "language.h".
1272
1273 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1274
1275 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1276 gdbarch-eligible macro to a call to the new associated function
1277 created in hppa-tdep.c.
1278 (INNER_THAN): Likewise.
1279 (STACK_ALIGN): Likewise.
1280 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1281 (INSTRUCTION_NULLIFIED): Likewise.
1282 (REGISTER_BYTE): Likewise.
1283 (REGISTER_VIRTUAL_TYPE): Likewise.
1284 (STORE_STRUCT_RETURN): Likewise.
1285 (CANNOT_STORE_REGISTER): Likewise.
1286 (FRAME_ARGS_ADDRESS): Likewise.
1287 (FRAME_LOCALS_ADDRESS): Likewise.
1288 (SMASH_TEXT_ADDRESS): Likewise.
1289 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1290 (ABOUT_TO_RETURN): Delete, as no longer used.
1291
83c31e7d
FN
12922002-11-07 Fernando Nasser <fnasser@redhat.com>
1293
1294 * printcmd.c (disassemble_command): Remove obsolete function.
1295 (_initialize_printcmd): Do not create disassemble command here.
1296 * cli/cli-cmds.c (disassemble_command): New function. Implements
1297 disassemble command.
1298 (init_cli_cmds): Create disassemble command here instead.
1299
0ec30a36
AC
13002002-11-07 Andrew Cagney <ac131313@redhat.com>
1301
1302 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1303
e600bd34
AC
13042002-11-07 Andrew Cagney <ac131313@redhat.com>
1305
1306 * regcache.h (regcache_cooked_read_using_offset_hack)
1307 (regcache_cooked_write_using_offset_hack): Delete declarations.
1308 (register_changed): Delete declaration.
1309 * regcache.c (regcache_cooked_read_using_offset_hack)
1310 (regcache_cooked_write_using_offset_hack): Delete functions.
1311 (cooked_xfer_using_offset_hack): Delete function.
1312 (register_changed): Delete function.
1313
568f8739
JB
13142002-11-07 Jim Blandy <jimb@redhat.com>
1315
1316 * macroscope.c: #include "complaints.h".
1317 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1318 but not in the macro table.
1319 * Makefile.in (macroscope.o): Record dependency.
1320
b0718b7b
JB
13212002-11-07 Joel Brobecker <brobecker@gnat.com>
1322
1323 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1324
2b9e5f3f
AC
13252002-11-07 Andrew Cagney <ac131313@redhat.com>
1326
1327 * regcache.c (deprecated_registers_fetched): Update.
1328 * regcache.h (deprecated_registers_fetched): Rename
1329 registers_fetched.
1330 * remote-vxsparc.c (vx_read_register): Update.
1331 * remote-vxmips.c (vx_read_register): Update.
1332 * remote-vx68.c (vx_read_register): Update.
1333 * irix5-nat.c (fetch_core_registers): Update.
1334 * mipsm3-nat.c (fetch_inferior_registers): Update.
1335 * sun3-nat.c (fetch_inferior_registers): Update.
1336 * symm-nat.c (fetch_inferior_registers): Update.
1337 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1338 (fetch_core_registers): Update.
1339 (fetch_kcore_registers): Update.
1340 * mips-nat.c (fetch_inferior_registers): Update.
1341 * corelow.c (get_core_registers): Update.
1342 * a68v-nat.c (fetch_inferior_registers): Update.
1343
e6e68f1f
JB
13442002-11-06 Joel Brobecker <brobecker@gnat.com>
1345
1346 Put in place the framework necessary for multiarching the hppa targets.
1347 * hppa-tdep.c (hppa_gdbarch_init): New function.
1348 (hppa_dump_tdep): New function.
1349 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1350 tdep structure dumper.
1351 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1352 until the multi-arching conversion has partially been completed.
1353
492254e9
AC
13542002-11-06 Andrew Cagney <ac131313@redhat.com>
1355
1356 * valops.c (value_assign): Merge lval_register case into
1357 lval_reg_frame_relative. Use frame_register and
1358 regcache_cooked_write instead of get_saved_register and
1359 write_register_bytes. After flushing the register cache, try to
1360 re-select the selected frame.
1361
8262ee23
AC
13622002-11-06 Andrew Cagney <ac131313@redhat.com>
1363
1364 * regcache.h (deprecated_register_valid): Rename register_valid.
1365 * regcache.c: Update.
1366 * ia64-aix-nat.c: Update.
1367 * i386gnu-nat.c: Update.
1368 * alpha-nat.c: Update.
1369 * sparc-nat.c: Update.
1370 * lynx-nat.c: Update.
1371 * remote-mips.c: Update.
1372
4facf7e8
JB
13732002-11-06 Joel Brobecker <brobecker@gnat.com>
1374
1375 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1376 to end of file, to be more consistent with the pratice followed
1377 by other targets.
1378
f9418c0f
AC
13792002-11-06 Andrew Cagney <ac131313@redhat.com>
1380
1381 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1382 (print_float_info): Print registers in float_reggroup.
1383 (print_vector_info): Print registers in vector_reggroup.
1384 (default_print_registers_info): When all, print registers in
1385 all_reggroup. Otherwize, print registers in general_reggroup.
1386 (registers_info): Rewrite. Add support for register groups.
1387 Eliminate a goto.
1388
3fe235a7
EZ
13892002-11-06 Elena Zannoni <ezannoni@redhat.com>
1390
1391 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1392 ages.
1393 (symtab_symbol_info): Remove eons old ifdeffed out code.
1394 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1395 command.
1396
ef944135
TR
13972002-11-06 Theodore A. Roth <troth@openavr.org>
1398
1399 * c-exp.y: Add missing semi-colons.
1400 * f-exp.y: Add missing semi-colons.
1401 * m2-exp.y: Add missing semi-colons.
1402 * p-exp.y: Add missing semi-colons.
1403 Add empty action to start rule to avoid a type clash error when
1404 building with bison >= 1.50.
1405
f8302a57
JB
14062002-11-06 Jim Blandy <jimb@redhat.com>
1407
1408 * macrotab.h (struct macro_source_file): Doc fix.
1409
6e382aa3
JJ
14102002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1411
1412 * varobj.c (child_exists, cplus_number_of_children): Change
1413 STREQ macro references to strcmp.
1414 (cplus_name_of_child): Change code to handle the fact that
1415 fields are not necessarily contiguous with regards to their
1416 access control. This is a fix for PR gdb/792.
1417
a216a322
AC
14182002-11-05 Andrew Cagney <ac131313@redhat.com>
1419
1420 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1421 * gdbarch.h, gdbarch.c: Regnerate.
1422 * frame.h (frame_register): Declare.
1423 * frame.c (frame_register): New function.
1424 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1425 GET_SAVED_REGISTER, otherwize call
1426 generic_unwind_get_saved_register.
1427 (frame_register_read): Use frame_register instead of
1428 get_saved_register.
1429
7d5b6fdd
EZ
14302002-11-05 Elena Zannoni <ezannoni@redhat.com>
1431
1432 From Jim Ingham <jingham@apple.com>:
1433 * event-top.c (gdb_disable_readline): New function.
1434 (_initialize_event_loop): Move comment.
1435
b7c64260
EZ
14362002-11-05 Elena Zannoni <ezannoni@redhat.com>
1437
1438 * event-loop.c (start_event_loop): Add comment.
1439 Update copyright.
1440
c2e1b8f2
AC
14412002-11-05 Andrew Cagney <ac131313@redhat.com>
1442
1443 * infcmd.c (default_print_registers_info): Do not call
1444 PRINT_REGISTER_HOOK.
1445
87647bb0
AC
14462002-11-05 Andrew Cagney <ac131313@redhat.com>
1447
1448 * sparc-tdep.c (sparc_print_register_hook): Make static.
1449 (sparc_print_registers_info): New function.
1450 (sparc_do_registers_info): New function.
1451 (sparclet_print_registers_info): New function.
1452 (sparclet_do_registers_info): New function.
1453 (do_sparc_print_registers_info): New function.
1454 (sparc_print_registers): New static function, clone of infcmd.c's
1455 default_print_registers_info.
1456 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1457 (sparclet_do_registers_info): Declare.
1458 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1459 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1460 Re-define.
1461 (sparc_do_registers_info): Declare.
1462 (PRINT_REGISTER_HOOK): Delete macro.
1463 (sparc_print_register_hook): Delete declaration.
1464
8155455b
DC
14652002-11-05 David Carlton <carlton@math.stanford.edu>
1466
1467 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1468 functions.
1469 (lookup_symbol_aux_local): New function.
1470 (lookup_symbol_aux_symtabs): New function.
1471 (lookup_symbol_aux_psymtabs): New function.
1472
29924310
DC
14732002-11-05 David Carlton <carlton@math.stanford.edu>
1474
1475 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1476 previous values of 'objfile' and 'block'.
1477
cc303028
PM
14782002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1479
1480 * values.c (value_change_enclosing_type): Set
1481 enclosing_type field correctly also for the case where
1482 more memory needs to be allocated.
1483
1d70089a
MK
14842002-11-03 Mark Kettenis <kettenis@gnu.org>
1485
f16a25ae
MK
1486 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1487 of puts_filtered.
1488
1d70089a
MK
1489 * i387-tdep.c (i387_print_float_info): Replace calls to
1490 register_read and deprecated_read_register_gen with calls to
1491 frame_register_read, and make the necessary adjustments to the
1492 surrounding code.
1493
7e20f3fb
AC
14942002-11-02 Andrew Cagney <ac131313@redhat.com>
1495
1496 * gdbarch.sh (register_reggroup_p): Allow default value.
1497 * gdbarch.h, gdbarch.c: Regenerate.
1498
192dbe33
AC
14992002-11-02 Andrew Cagney <ac131313@redhat.com>
1500
1501 * regcache.h: Add coment indicating replacements for deprecated
1502 functions.
1503
b59ff9d5
AC
15042002-11-02 Andrew Cagney <cagney@redhat.com>
1505
1506 * reggroups.h, reggroups.c: New files.
1507 * regcache.c: Include "reggroups.h".
1508 (enum regcache_dump_what): Add `regcache_dump_groups'.
1509 (regcache_dump): Contract size of the "Type" column. When
1510 specified, dump the register's groups.
1511 (maintenance_print_register_groups): New function.
1512 (_initialize_regcache): Add command `maint print register-groups'.
1513 * Makefile.in (COMMON_OBS): Add reggroups.o
1514 (SFILES): Add reggroups.c.
1515 (reggroups_h): Define.
1516 (regcache.o, gdbarch.o): Update dependencies.
1517 (reggroups.o): Specify dependencies.
1518 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1519 Add opaque declaration for `struct reggroup' in generated .h file.
1520 Include "reggroups.h" in generated .c file.
1521 gdbarch.h, gdbarch.c: Re-generate.
1522
4caf0990
AC
15232002-11-02 Andrew Cagney <cagney@redhat.com>
1524
1525 * regcache.h (deprecated_read_register_gen): Rename
1526 read_register_gen.
1527 (deprecated_write_register_gen): Rename write_register_gen.
1528 * i387-tdep.c: Update.
1529 * x86-64-linux-nat.c: Update
1530 * wince.c: Update.
1531 * thread-db.c: Update.
1532 * win32-nat.c: Update.
1533 * mips-tdep.c: Update.
1534 * d10v-tdep.c: Update.
1535 * cris-tdep.c: Update.
1536 * remote-sim.c: Update.
1537 * remote-rdi.c: Update.
1538 * remote-rdp.c: Update.
1539 * frame.c: Update.
1540 * target.c: Update.
1541 * blockframe.c: Update.
1542 * x86-64-tdep.c: Update.
1543 * xstormy16-tdep.c: Update.
1544 * sh-tdep.c: Update.
1545 * s390-tdep.c: Update.
1546 * rs6000-tdep.c: Update.
1547 * sparc-tdep.c: Update.
1548 * i386-tdep.c: Update.
1549 * dwarf2cfi.c: Update.
1550 * regcache.c: Update.
1551
7a7adcdf
JB
15522002-11-01 Joel Brobecker <brobecker@gnat.com>
1553
1554 New interix-specific files:
1555 * config/i386/nm-interix.h: New file.
1556 * config/i386/interix.mh: New file.
1557 * config/i386/interix.mt: New file.
1558 * i386-interix-nat.c: New file.
1559 * i386-interix-tdep.c: New file.
1560
bdcdd535
AC
15612002-11-01 Andrew Cagney <cagney@redhat.com>
1562
1563 * frame.h (deprecated_generic_get_saved_register): Rename
1564 generic_get_saved_register.
1565 * blockframe.c (deprecated_generic_get_saved_register): Update.
1566 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1567 (xstormy16_frame_saved_register): Update.
1568 * sh-tdep.c (sh_gdbarch_init): Update.
1569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1570 * ia64-tdep.c (ia64_get_saved_register): Update.
1571 * cris-tdep.c (cris_gdbarch_init): Update.
1572 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1573 * arm-tdep.c (arm_gdbarch_init): Update.
1574
2a4b7c45
DJ
15752002-10-31 Daniel Jacobowitz <drow@mvista.com>
1576
1577 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1578
ef17e74b
DJ
15792002-10-31 Daniel Jacobowitz <drow@mvista.com>
1580
1581 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1582 trampolines in sigaction.
1583
4904ba5b
AC
15842002-10-31 Andrew Cagney <cagney@redhat.com>
1585
1586 * h8300-tdep.c: Include "gdb_assert.h".
1587 (h8300_print_register): Add gdbarch, file and frame parameters.
1588 Use frame_read_unsigned_register to read the register's value.
1589 Use fprintf_filtered to display output.
1590 (h8300_print_registers_info): Replace h8300_do_registers_info.
1591 (h8300_gdbarch_init): Set print_registers_info.
1592
f908a0eb
AC
15932002-10-31 Andrew Cagney <cagney@redhat.com>
1594
1595 * frame.c (frame_read_unsigned_register): New function.
1596 (frame_read_signed_register): New function.
1597 * frame.h (frame_read_unsigned_register): Declare.
1598 (frame_read_signed_register): Declare.
1599
c5646e11
AC
16002002-10-31 Andrew Cagney <cagney@redhat.com>
1601
1602 * h8500-tdep.c (h8500_print_registers_info): New static function,
1603 clone of infcmd.c's default_print_registers_info.
1604 (h8500_do_registers_info): New funtion.
1605 (h8500_print_register_hook): Rename print_register_hook, make
1606 static.
1607
1608 * config/h8500/tm-h8500.h: Update copyright.
1609 (DEPRECATED_DO_REGISTERS_INFO): Define.
1610 (h8500_do_registers_info: Declare.
1611 (PRINT_REGISTER_HOOK): Delete macro.
1612 (print_register_hook): Delete function.
1613
0bdd672b
AC
16142002-10-31 Andrew Cagney <cagney@redhat.com>
1615
1616 * z8k-tdep.c (z8k_print_register_hook): Make static.
1617 (z8k_print_registers_info): New static function, clone of
1618 infcmd.c's default_print_registers_info.
1619 (z8k_do_registers_info): New function. Wrap
1620 z8k_print_registers_info.
1621 * config/z8k/tm-z8k.h: Update copyright.
1622 (PRINT_REGISTER_HOOK): Delete macro.
1623 (z8k_print_register_hook): Delete declaration.
1624 (DEPRECATED_DO_REGISTERS_INFO): Define.
1625 (z8k_do_registers_info): Declare.
1626
bf9c25dc
JB
16272002-10-30 Joel Brobecker <brobecker@gnat.com>
1628
1629 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1630 as this is already provided by value.h, and was actually causing
1631 a compilation error because of a conflict in parameter type
1632 declaration due to a missing const keyword.
1633 (low_text_segment_addres): Fix a compilation warning.
1634
2c665b51
DJ
16352002-10-29 Daniel Jacobowitz <drow@mvista.com>
1636
1637 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1638 registers without a name.
1639 (mips_linux_cannot_store_register): Don't store registers without
1640 a name.
1641
e70ea697
DC
16422002-10-28 David Carlton <carlton@math.stanford.edu>
1643
1644 * symtab.c (find_addr_symbol): Delete. (It was already commented
1645 out.)
1646 * symtab.h: Delete prototype for find_addr_symbol.
1647
903ad3a6
AC
16482002-10-26 Andrew Cagney <cagney@redhat.com>
1649
1650 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1651 DO_REGISTERS_INFO.
1652 gdbarch.h, gdbarch.c: Re-generate.
1653 * infcmd.c (default_print_registers_info): Update reference.
1654 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1655 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1656 * sh-tdep.c (sh_gdbarch_init): Ditto.
1657 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1658 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1659
ab91194c
MK
16602002-10-26 Mark Kettenis <kettenis@gnu.org>
1661
e3033f15
MK
1662 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1663 cfi_init_extra_frame_info.
1664 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1665 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1666
b83b026c
MK
1667 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1668 target where necessary. Add more comments and remove the ones
1669 that don't provide any useful information.
1670
267bf4bb
MK
1671 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1672 deprecated_read_register_dummy with
1673 frame_unwind_unsigned_register.
1674
751f1375
MK
1675 * i386-tdep.c (i386_extract_struct_value_address): Use
1676 regcache_raw_read_unsigned instead of
1677 regcache_cooked_read_unsigned since we know that the register
1678 we're reading isn't a pseudo register. Rename variable 'val' into
1679 the more descriptive 'addr'.
1680
26abbdc4
MK
1681 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1682 (x86_64_push_return_address): Add comment.
1683 (x86_64_pop_frame): Make static.
1684 (examine_argument): Clarify comment.
1685 (x86_64_skip_prologue): Make prolog_expact variable static.
1686
9f1549cc
MK
1687 * dwarf2cfi.c: Fix some formatting problems.
1688 (context_cpy, read_encoded_pointer): Clarify comments.
1689
ab91194c
MK
1690 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1691 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1692 i386 target back into x86_64_gdbarch_init. Add some comments and
1693 remove meaningless ones.
1694
72367fb4
AC
16952002-10-25 Andrew Cagney <cagney@redhat.com>
1696
1697 * complaints.h (struct deprecated_complaint): Rename `struct
1698 complaint'.
1699 * complaints.c (complain): Update.
1700 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1701 incorrect comment indicating that "symfile.h" was being included
1702 for the `struct complaint' definition.
1703 * remote-vx.c: Update.
1704 * objc-lang.c: Update.
1705 * xcoffread.c: Update.
1706 * hpread.c: Update.
1707 * mdebugread.c: Update.
1708 * stabsread.c: Update.
1709 * dwarf2read.c: Update.
1710 * dwarfread.c: Update.
1711 * elfread.c: Update.
1712 * coffread.c: Update.
1713 * stabsread.h: Update.
1714 * dbxread.c: Update.
1715 * buildsym.c: Update.
1716 * gdbtypes.c: Update.
1717 * macrotab.c: Update.
1718
1f2baacc
MK
17192002-10-25 Mark Kettenis <kettenis@gnu.org>
1720
0c1a73d6
MK
1721 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1722 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1723 (x86_64_init_abi): ...new function.
1724
6aee4d54 1725 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1726 * i386v-nat.c: Include "i386-tdep.h".
1727
8f9cbe01
AC
17282002-10-25 Andrew Cagney <cagney@redhat.com>
1729
5f11f355
AC
1730 * gdbtypes.c (address_space_name_to_int): Update.
1731 (address_space_int_to_name): Update.
1732 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1733 multi-arch predicate.
1734 (address_class_name_to_type_flags): Ditto.
1735 * gdbarch.h, gdbarch.c: Re-generate.
1736
8f9cbe01
AC
1737 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1738
e8d96a5d
MH
17392002-10-24 Martin M. Hunt <hunt@redhat.com>
1740
1741 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1742
fe39c653
EZ
17432002-10-24 Elena Zannoni <ezannoni@redhat.com>
1744
1745 * symtab.h (INIT_SAL): Delete macro.
1746 (init_sal): Export.
1747 * symtab.c (init_sal): New function.
1748
1749 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1750 to init_sal function call.
1751 (find_sal_from_funcs_and_line): Ditto.
1752 (all_sals_for_line): Ditto.
1753 * breakpoint.c (create_internal_breakpoint): Ditto.
1754 (create_fork_vfork_event_catchpoint): Ditto.
1755 (create_exec_event_catchpoint): Ditto.
1756 (parse_breakpoint_sals): Ditto.
1757 (watch_command_1): Ditto.
1758 (handle_gnu_4_16_catch_command): Ditto.
1759 (clear_command): Ditto.
1760 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1761 * infcmd.c (run_stack_dummy): Ditto.
1762 * infrun.c (process_event_stop_test): Ditto.
1763 (check_sigtramp2): Ditto.
1764 (step_over_function): Ditto.
1765 * linespec.c (decode_line_2): Ditto.
1766 (decode_line_1): Ditto.
1767 * source.c (line_info): Ditto.
1768 * symtab.c (find_pc_sect_line): Ditto.
1769
baed091b
ML
17702002-10-24 Michal Ludvig <mludvig@suse.cz>
1771
1772 * dwarf2cfi.c (struct context)
1773 (struct context_reg): Moved to dwarf2cfi.h
1774 (context_alloc, frame_state_alloc, context_cpy):
1775 Made extern instead of static, removed prototypes.
1776 * dwarf2cfi.h (struct context)
1777 (struct context_reg): New, moved from dwarf2cfi.c
1778 (context_alloc, frame_state_alloc, context_cpy):
1779 New prototypes.
1780 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1781 Changed from static to extern.
1782 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1783 (LINUX_SIGCONTEXT_FP_OFFSET)
1784 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1785 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1786 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1787 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1788 set_gdbarch_*() calls now use x86-64 specific functions
1789 instead of DWARF2 CFI ones.
1790 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1791 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1792 (x86_64_init_extra_frame_info): New prototypes.
1793
c38da1af
DC
17942002-10-23 David Carlton <carlton@math.stanford.edu>
1795
1796 * linespec.c: #include "parser-defs.h".
1797 Delete prototype for find_template_name_end.
1798 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1799
fb9b6b35
JJ
18002002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1801
1802 * NEWS: add recent mi fixes.
1803 * varobj.c (struct varobj): Add new "updated" flag.
1804 (new_variable): Default "updated" flag to 0.
1805 (varobj_set_value): Set "updated" flag to 1 if value
1806 changes.
1807 (varobj_update): Check varobj "updated" flag before
1808 comparing old and refreshed values. Fix for
1809 PR gdb/702.
1810
8da065d5
DC
18112002-10-23 David Carlton <carlton@math.stanford.edu>
1812
1813 * parse.c (parse_exp_1): Use BLOCK_START.
1814 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1815 SYMBOL_BLOCK_VALUE.
1816 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1817
87f2f08c
DC
18182002-10-23 David Carlton <carlton@math.stanford.edu>
1819
1820 * symtab.c: Delete cplusplus_hint.
1821 Delete prototype for find_template_name_end.
1822
88cda038
EZ
18232002-10-23 Elena Zannoni <ezannoni@redhat.com>
1824
1825 * symtab.h: Update comment.
1826
2625d86c
MS
18272002-10-23 Michael Snyder <msnyder@redhat.com>
1828
1829 * printcmd.c (address_info): Restore quotes in output.
1830 * valops.c (value_of_local): Restore quotes in error message.
1831
9cc0d196
EZ
18322002-10-23 Elena Zannoni <ezannoni@redhat.com>
1833
1834 * symtab.c (symbol_demangled_name): New function.
1835 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1836 turning most of it into a function.
1837 (symbol_demangled_name): Export.
1838
19de93d0
MS
18392002-10-23 Michael Snyder <msnyder@redhat.com>
1840
1841 * valops.c (value_of_local): Restore quotes in error message.
1842
89aad1f9
EZ
18432002-10-23 Elena Zannoni <ezannoni@redhat.com>
1844
1845 * symtab.c (symbol_init_language_specific): New function.
1846 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1847 turning most of it into a function.
1848 (symbol_init_language_specific): Export.
1849
d9fa45fe
DC
18502002-10-23 David Carlton <carlton@math.stanford.edu>
1851
1852 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1853 (dwarf_attr_name): Ditto.
1854 (dwarf_type_encoding_name): Ditto.
1855 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1856 (process_die): Handle DW_TAG_namespace,
1857 DW_TAG_imported_declaration, DW_TAG_imported_module.
1858 (read_namespace): New function.
1859
1045b512
JB
18602002-10-22 Joel Brobecker <brobecker@gnat.com>
1861
1862 * configure.in: Define NEW_PROC_API on Interix too.
1863 * configure: Regenerate.
1864
18652002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1866
1867 * configure: Regenerate using the proper version of autoconf.
1868
3987b9d4
EZ
18692002-10-21 Elena Zannoni <ezannoni@redhat.com>
1870
1871 * findvar.c (read_var_value): Temporarily disable TLS code, until
1872 complete TLS support is added.
1873
9d774e44
EZ
18742002-10-21 Jim Blandy <jimb@redhat.com>
1875 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1878 for thread local storage locations.
1879 (struct symbol): Add objfile field.
1880 (SYMBOL_OBJFILE): Define.
1881 * dwarf2read.c (is_thread_local): New static variable.
1882 (new_symbol): If variable is in thread local fill in address class
1883 and objfile appropriately.
1884 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1885 stack operation.
1886 * printcmd.c (address_info): Print the information for thread
1887 local storage variable.
1888 * findvar.c (read_var_value): In case of thread local variable,
1889 defer to the target vector code to compute address.
1890
bc4a16ae
EZ
18912002-10-21 Elena Zannoni <ezannoni@redhat.com>
1892
1893 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1894 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1895
407caf07
EZ
18962002-10-21 Elena Zannoni <ezannoni@redhat.com>
1897
1898 * symtab.h (address_class): Rename
1899 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1900 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1901 * printcmd.c (address_info): Ditto.
1902 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1903
005328e3
MK
19042002-10-20 Mark Kettenis <kettenis@gnu.org>
1905
afdb036a
MK
1906 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1907 DBREG_DRX macro to acces debug registers.
1908
ca02e098
MK
1909 * Makefile.in (i386obsd-tdep.o): New target.
1910
03cc47f7
MK
1911 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1912 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1913
005328e3
MK
1914 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1915 * config/i386/obsd.mt: New file.
1916 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1917 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1918 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1919 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1920 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1921 * i386obsd-tdep.c: New file.
1922
9c96f9f2
AF
19232002-10-19 Adam Fedor <fedor@gnu.org>
1924
1925 * objc-exp.y (name_not_typename): Fix invalid comment.
1926
ce1ed485
MK
19272002-10-20 Mark Kettenis <kettenis@gnu.org>
1928
1929 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1930 to allocate partial syms and macro byte caches.
1931
1efc7aaa
DC
19322002-10-18 David Carlton <carlton@math.stanford.edu>
1933
1934 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1935
7e1d63ec
AF
19362002-10-18 Adam Fedor <fedor@gnu.org>
1937
1938 * stabsread.c (find_name_end): New function.
1939 (define_symbol): Use it.
1940
6e8d29a9
DJ
19412002-10-18 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1944 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1945 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1946 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1947
1efc7aaa 19482002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1949
1950 * symfile.h: Add opaque declaration for struct obstack.
1951 Declare obsavestring to take a const char *.
1952 * symfile.c (obsavestring): Make first argument a const char *.
1953
1aeae86e
AF
19542002-10-16 Adam Fedor <fedor@gnu.org>
1955
1956 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1957 names when matching breakpoints in current file.
1958
8b2dbe47
KB
19592002-10-16 Kevin Buettner <kevinb@redhat.com>
1960
1961 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1962 (read_tag_pointer_type): Add address class support.
1963 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1964 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1965 New methods.
1966 * gdbarch.h, gdbarch.c: Regenerate.
1967 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1968 (make_type_with_address_space, recursive_type_dump): Add address
1969 class support.
1970 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1971 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1972 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1973
74451869
KD
19742002-10-16 Klee Dienes <kdienes@apple.com>
1975
1976 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1977 to get the last character of a char[] buffer, not
1978 name[sizeof(vptr_name)-1].
1979
ff4cb3e8
AF
19802002-10-14 Adam Fedor <fedor@gnu.org>
1981
1982 * symtab.h: New objc_specific struct.
1983 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1984 (SYMBOL_DEMANGLED_NAME): Likewise.
1985
da2cf7e0
AF
19862002-10-14 Adam Fedor <fedor@gnu.org>
1987
1988 * symfile.c (init_filename_language_table): Add ObjC file extension.
1989
4a351cef
AF
19902002-10-14 Adam Fedor <fedor@gnu.org>
1991
1992 * utils.c (puts_filtered_tabular): New function.
1993 (fprintf_symbol_filtered): Get ObjC demangled name.
1994 * defs.h (puts_filtered_tabular): Declared.
1995
9750e763
KB
19962002-10-14 Kevin Buettner <kevinb@redhat.com>
1997
1998 * c-lang.h (c_type_print_varspec_prefix): Delete.
1999 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2000 ``need_post_space'' parameter. Adjust all callers.
2001
eee771c1
DJ
20022002-10-14 Daniel Jacobowitz <drow@mvista.com>
2003
2004 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2005 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2006 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2007 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2008
46c82446
AF
20092002-10-13 Adam Fedor <fedor@gnu.org>
2010
2011 * source.c (print_source_lines): Update comments.
2012
d069f99d
AF
20132002-10-13 Adam Fedor <fedor@gnu.org>
2014
2015 * valops.c (value_of_local): New function.
2016 (value_of_this): Use it.
2017 * value.h (value_of_local): Declared.
2018
53c551b7
AF
20192002-10-13 Adam Fedor <fedor@gnu.org>
2020
2021 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2022 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2023
eb392fbf
AF
20242002-10-12 Adam Fedor <fedor@gnu.org>
2025
2026 * language.c (binop_result_type): Add language_objc to case.
2027 (integral_type): Likewise.
2028 (character_type): Likewise.
2029 (string_type): Likewise.
2030 (boolean_type): Likewise.
2031 (structured_type): Likewise.
2032 (binop_type_check): Likewise.
2033
e2b23ee9
AF
20342002-10-11 Adam Fedor <fedor@gnu.org>
2035
2036 * printcmd.c (address_info): Print 'self' for ObjC.
2037
b01ab485
AF
20382002-10-11 Adam Fedor <fedor@gnu.org>
2039
2040 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2041 OP_SELF.
2042
806e6073
AF
20432002-10-11 Adam Fedor <fedor@gnu.org>
2044
2045 * language.h (CAST_IS_CONVERSION): Add language_objc.
2046
50f85cdf
AF
20472002-10-11 Adam Fedor <fedor@gnu.org>
2048
2049 * defs.h (enum language): Add language_objc.
2050
0d540cdf
KD
20512002-10-11 Klee Dienes <kdienes@apple.com>
2052
69266111 2053 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2054 * gdbcore.h (read_memory_typed_address): Add prototype.
2055 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2056 to read a value destined for a CORE_ADDR, not read_memory_integer.
2057 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2058 (f77_get_dynamic_lowerbound): Ditto.
2059
d5dc7960
MH
20602002-10-11 Martin M. Hunt <hunt@redhat.com>
2061
2062 * utils.c (string_to_core_addr): After turning string into
2063 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2064 which will do necessary sign-extension, etc.
2065
8343f86c
DJ
20662002-10-11 Daniel Jacobowitz <drow@mvista.com>
2067
2068 * c-exp.y (THIS): Delete token and grammar rule.
2069 (yylex): Don't return THIS.
2070 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2071 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2072 * demangle.c (cplus_markers): Update comment. Put '$'
2073 first. Remove CPLUS_MARKER.
2074 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2075 * jv-exp.y (THIS): Delete token and grammar rule.
2076 (yylex): Don't return THIS.
2077 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2078 * objc-exp.y (THIS): Delete token and grammar rule.
2079 (yylex): Don't return THIS.
2080 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2081 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2082 (read_member_functions): Likewise for opname.
2083 (read_tilde_fields): Use is_cplus_marker.
2084
2085 * defs.h (CPLUS_MARKER): Don't define.
2086 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2087 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2088 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2089 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2090 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2091
2092 * config/i386/tm-i386v4.h: Delete file.
2093 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2094 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2095 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2096 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2097 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2098 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2099 * config/i386/i386v4.mt (TM_FILE): Likewise.
2100 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2101
967c0d83
MM
21022002-10-10 Marko Mlinar <markom@opencores.org>
2103
2104 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2105 accidentially not commited 2002-10-09
2106 * gdbarch.h, gdbarch.c: Re-generate.
2107
f74fa174
MM
21082002-10-09 Marko Mlinar <markom@opencores.org>
2109
2110 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2111 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2112 * gdbarch.h, gdbarch.c: Re-generate.
2113
57349743
JB
21142002-10-08 Petr Sorfa <petrs@caldera.com>
2115
2116 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2117
2118 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2119 so we can work on more than one compilation unit at a time. This
2120 helps prepare GDB to handle inter-CU die references.
2121 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2122 the code to be defined before struct comp_unit_head.
2123 (comp_unit_head): Added new members - offset, cu_head,
2124 begin_die, next and dwarf2_abbrevs.
2125 (dwarf2_abbrevs): Removed single static var; now member of
2126 struct comp_unit_head.
2127 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2128 members.
2129 (psymtab_to_symtab_1): Changed to work with the new
2130 struct comp_unit_head.
2131 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2132 constructs the dwarf2_abbrevs[] inside the cu_header.
2133 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2134 dwarf2_abbrev table to clean up.
2135 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2136 handling of dwarf2_abbrevs inside the cu_header.
2137 (read_partial_die): Now supports the call to the new
2138 dwarf2_lookup_abbrev.
2139 (read_full_die): Now supports the call to the new
2140 dwarf2_lookup_abbrev.
2141
4092aadb
CF
21422002-10-06 Christopher Faylor <cgf@redhat.com>
2143
2144 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2145 insure that shell variables, such as "transformed_name" are propagated
2146 to later shell statements in rule.
2147
af0b2512
MK
21482002-10-06 Mark Kettenis <kettenis@gnu.org>
2149
2150 * config/i386/nm-i386sco.h: Add protection against
2151 multiple-inclusion. Include "i386/nm-i386v.h".
2152 (REGISTER_U_ADDR): Remove define.
2153 (i386_register_u_addr): Remove prototype.
2154
d6020d45
MS
21552002-10-04 Michael Snyder <msnyder@redhat.com>
2156
2157 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2158 before treating it as a single-step event.
2159
7248f48e
AF
21602002-10-03 Adam Fedor <fedor@gnu.org>
2161
2162 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2163 (objc_demangle): Remove assignment in if statements, Replace
2164 free with xfree.
2165 (add_msglist): Likewise.
2166 (end_msglist): Likewise.
2167 (complare_selectors): Likewise.
2168 (selectors_info): Likewise.
2169 (compare_classes): Likewise.
2170 (classes_info): Likewise.
2171 (print_object_command): Likewise.
2172 (find_objc_msgcall_submethod): Replace PTR with void *.
2173 * objc-lang.h: Remove check for __STDC__.
2174
52c6a6ac
JJ
21752002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2176
2177 * ui-out.h (ui_out_field_fmt_int): New prototype.
2178 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2179 of field width and alignment.
2180 * stack.c (print_frame_info_base): When printing frame level, use
2181 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2182 PR gdb/192
2183
7e3cec17
JJ
21842002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2185
2186 * MAINTAINERS: Add self to Write After Approval list.
2187
a58dd373
EZ
21882002-10-02 Elena Zannoni <ezannoni@redhat.com>
2189
2190 * infcmd.c (interrupt_target_command_wrapper): Delete.
2191 (interrupt_target_command): Make non static.
2192 (nofp_registers_info): Make static.
2193 * stack.c (return_command_wrapper): Delete.
2194 (return_command): Make non static.
2195
cee6ddeb
EZ
21962002-10-02 Elena Zannoni <ezannoni@redhat.com>
2197
2198 * event-top.c (gdb_setup_readline): New function. Code moved from
2199 _initialize_event_loop().
2200 (_initialize_event_loop): Call gdb_setup_readline().
2201
c4ed33b9
AC
22022002-10-02 Andrew Cagney <ac131313@redhat.com>
2203
2204 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2205 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2206 * gdbarch.h, gdbarch.c: Re-generate.
2207
cef4f5dd
DJ
22082002-10-02 Daniel Jacobowitz <drow@mvista.com>
2209
2210 Fix PR gdb/778
2211 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2212 before recursing.
2213 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2214 of fill_in_vptr_fieldno.
2215
36dc181b 22162002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2217
36dc181b
EZ
2218 * inferior.h (registers_info, stepi_command, nexti_command,
2219 continue_command, interrupt_target_command): Export from infcmd.c.
2220 * frame.h (args_info, selected_frame_level_changed_hook,
2221 return_command): Export from stack.c.
2222 * v850ice.c (stepi_command, nexti_command, continue_command): use
2223 prototypes from inferior.h.
2224 * tracepoint.c (registers_info, args_info, locals_info): Use
2225 prototypes from frame.h and inferior.h.
2226 * Makefile.in (mi-main.o): Add dependency on frame.h.
2227
6f99cb26
AC
22282002-10-02 Andrew Cagney <ac131313@redhat.com>
2229
da3eff49
AC
2230 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2231 value in register 3 adjusted by ppc_gp0_regnum.
2232
6f99cb26
AC
2233 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2234
da615bee
MM
22352002-10-02 Marko Mlinar <markom@opencores.org>
2236
2237 * MAINTAINERS: Add myself to the Write After Approval list.
2238
d154bee2
AO
22392002-10-01 Alexandre Oliva <aoliva@redhat.com>
2240
62a49b2c
AO
2241 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2242 of the section for the N64 ABI, fixed.
2243
d154bee2
AO
2244 * config/mips/tm-irix6.h: Include solib.h.
2245
ed348acc
EZ
22462002-10-01 Elena Zannoni <ezannoni@redhat.com>
2247
2248 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2249 GNU operators.
2250
da0f9dcd
AC
22512002-10-01 Andrew Cagney <ac131313@redhat.com>
2252
2253 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2254 and that "mi0" syntax has been removed.
2255
bdf64bac
DC
22562002-09-30 David Carlton <carlton@math.stanford.edu>
2257
2258 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2259 * ppc-sysv-tdep.c: #include "gdb_string.h".
2260 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2261 pacify GCC.
2262
54c2a1e6
AC
22632002-10-01 Andrew Cagney <ac131313@redhat.com>
2264
2265 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2266 "vrsave"'s register number.
2267
cedea778
AC
22682002-09-30 Andrew Cagney <ac131313@redhat.com>
2269
2270 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2271 use frame_unwind_signed_register to obtain the PC.
2272 (mips_frame_chain): Handle a generic dummy frame.
2273 (mips_init_extra_frame_info): When a generic dummy frame, don't
2274 re-compute the frame base.
2275 (mips_pop_frame): Handle generic dummy frames.
2276 (mips_gdbarch_init): When generic dummy frames, set
2277 use_generic_dummy_frames, push_dummy_frame to
2278 generic_push_dummy_frame, pc_in_call_dummy to
2279 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2280 generic_save_dummy_frame_tos.
2281
68315eb8
AC
22822002-09-30 Andrew Cagney <ac131313@redhat.com>
2283
2284 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2285 against TOP when TOP was explictly set.
2286 (generic_push_dummy_frame): Set TOP to zero.
2287
3b8630c3
EZ
22882002-09-30 Elena Zannoni <ezannoni@redhat.com>
2289
2290 * event-loop.c (start_event_loop): Rename variable 'result' to
2291 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2292
28ee05e9
KS
22932002-09-30 Keith Seitz <keiths@redhat.com>
2294
2295 * gdb-events.sh (selected_thread_changed): New event.
2296 * gdb-events.c: Regenerated.
2297 * gdb-events.h: Regenerated.
2298
6eecb1c8
HPN
22992002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2300
2301 * MAINTAINERS: Add self to Write After Approval list.
2302
92df71f0
FN
23032002-09-30 Fernando Nasser <fnasser@redhat.com>
2304
3b8630c3
EZ
2305 * disasm.c: New file.
2306 * disasm.h: New file.
92df71f0
FN
2307 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2308 (compare_lines): Ditto.
2309 (dump_insns): Ditto.
3b8630c3
EZ
2310 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2311 argument.
92df71f0 2312 (do_assembly_only): Ditto.
3b8630c3
EZ
2313 (do_disassembly): Renamed to gdb_disassembly and moved to
2314 disasm.c. Sdded uiout argument.
2315 * Makefile.in: Add new files. Reorder SFILES list. Update
2316 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2317
0c22854d
AC
23182002-09-29 Andrew Cagney <ac131313@redhat.com>
2319
2320 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2321 bfd/elf64-alpha-fbsd.c.
2322
e67f2023
AC
23232002-09-29 Andrew Cagney <ac131313@redhat.com>
2324
2325 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2326 i386gnu-tdep.c.
2327
89396210
AC
23282002-09-29 Andrew Cagney <ac131313@redhat.com>
2329
2330 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2331 __FUNCTION__.
2332 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2333 function name.
2334 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2335 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2336 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2337 (S_msg_sig_post_reply): Ditto.
2338
7079c36c
CV
23392002-09-28 Corinna Vinschen <vinschen@redhat.com>
2340
89396210
AC
2341 * sh-tdep.c (sh_use_struct_convention): Use definition according
2342 to ABI.
7079c36c
CV
2343 (sh_push_arguments): Store in register with correct endianess.
2344 (sh_default_store_return_value): Ditto.
2345 (sh_gdbarch_init): Set sizeof long double to 8.
2346
975ac915
MK
23472002-09-27 Mark Kettenis <kettenis@gnu.org>
2348
2349 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2350 Fix some whitespace problems.
2351
9bbe19fb
DC
23522002-09-27 David Carlton <carlton@math.stanford.edu>
2353
2354 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2355 (mcore-tdep.o): Ditto.
2356 (ns32k-tdep.o): Ditto.
2357 (ns32knbsd-tdep.o): Ditto.
2358 (sh3-rom.o): Ditto.
2359 (vax-tdep.o): Ditto.
2360 * cris-tdep.c: #include "gdb_string.h"
2361 * mcore-tdep.c: Ditto.
2362 * ns32k-tdep.c: Ditto.
2363 * ns32knbsd-tdep.c: Ditto.
2364 * sh3-rom.c: Ditto.
2365 * vax-tdep.c: Ditto.
2366
43b2fdc7
DC
23672002-09-27 David Carlton <carlton@math.stanford.edu>
2368
2369 * config/djgpp/fnchange.lst: Add entries for
2370 gdb/testsuite/gdb.c++/m-static files.
2371
e8cfbbd9
JW
23722002-09-27 Jim Wilson <wilson@redhat.com>
2373
2374 * MAINTAINERS: Add myself to the Write After Approval list.
2375
43b2fdc7 23762002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2377
2378 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2379
2380
9f3b7f07
AC
23812002-09-26 Andrew Cagney <ac131313@redhat.com>
2382
2383 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2384 frame.
2385
11269d7e
AC
23862002-09-26 Andrew Cagney <ac131313@redhat.com>
2387
2388 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2389 (rs6000_struct_return_address): Delete variable.
2390 (rs6000_store_struct_return): Update.
2391 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2392 deprecated_extract_struct_value_address.
2393 (rs6000_frame_align): New function.
2394 (rs6000_gdbarch_init): Set frame_align.
2395
f15ab4a7
AC
23962002-09-26 Andrew Cagney <ac131313@redhat.com>
2397
2398 From Grace Sainsbury <graces@redhat.com>:
2399 * Makefile.in (gdbtk-main.o): New target.
2400 (gdb.o): New target.
2401 (main_h): Define.
2402 (main.o): Update dependencies.
2403 (gdb$(EXEEXT)): Add gdb.o.
2404 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2405 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2406 (SUBDIR_GDBTK_CLEAN): Set.
2407 (install-gdbtk): Install the insight binary.
2408 (uninstall-gdbtk): New target.
2409 (all-gdbtk, clean-gdbtk): New rule.
2410 * top.c (use_windows): Default to zero.
2411 * main.c: Include "main.h".
2412 (main): Delete.
2413 (struct captured_main_args): Delete.
2414 (gdb_main): New function.
2415 * main.h: New file.
2416 * gdb.c: New File.
2417
e36180d7
AC
24182002-09-25 Andrew Cagney <cagney@redhat.com>
2419
2420 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2421 (frame_map_regnum_to_name): New function.
2422 (frame_map_name_to_regnum): New function.
2423 * frame.h (frame_map_name_to_regnum): Declare.
2424 (frame_map_regnum_to_name): Declare.
2425 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2426 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2427 * parse.c: Do not include "builtin-regs.h".
2428 (target_map_name_to_register): Delete function.
2429 (write_dollar_variable): Use frame_map_name_to_regnum.
2430 * parser-defs.h (target_map_name_to_register): Delete declaration.
2431 * expprint.c: Include "frame.h".
2432 (print_subexp): Use frame_map_regnum_to_name.
2433 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2434 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2435
8b69000d
AC
24362002-09-25 Andrew Cagney <ac131313@redhat.com>
2437
2438 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2439 wasn't saved, and the next innermost frame is a dummy, return the
2440 dummy frame's link register.
2441
046ca86a
JB
24422002-09-24 Jim Blandy <jimb@redhat.com>
2443
2444 Fix from Paul Breed:
2445 * main.c (captured_main): Add a `break' after the case for 'b'.
2446
94b66fa7
KS
24472002-09-24 Keith Seitz <keiths@redhat.com>
2448
2449 * varobj.c (c_type_of_child): Use get_target_type instead
2450 of TYPE_TARGET_TYPE.
2451
c214a6fd
FN
24522002-09-22 Fernando Nasser <fnasser@redhat.com>
2453
53cb0458
FN
2454 * source.c (get_current_or_default_source_symtab_and_line): Remove
2455 function.
2456 (set_default_source_symtab_and_line): New function. Attempts to
2457 determine a source file to list lines from if one is not currently
2458 defined.
2459 (get_current_source_symtab_and_line): Initialize sal.pc and
2460 sal.end fields.
2461 (set_current_source_symtab_and_line): Mark argument as const.
2462 * source.h: Update declarations and comments.
2463 * linespec.c (decode_line_1): Replace call to removed routine above.
2464 * stack.c (print_frame_info_base): Ditto.
2465 * cli/cli-cmds.c (edit_command): Ditto.
2466 (list_command): Ditto.
2467
24682002-09-22 Fernando Nasser <fnasser@redhat.com>
2469
d6020d45 2470 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2471 sal.pc and sal.end fields.
c214a6fd
FN
2472 (get_current_or_default_source_symtab_and_line): Ditto.
2473 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2474 so we do not cause a new source symtab to be searched for (reverting an
2475 unintentional change from the 2002-09-20 patch).
2476 * scm-lang.c (scm_unpac): Ditto.
2477
cc3b68a5
AC
24782002-09-21 Andrew Cagney <cagney@redhat.com>
2479
2480 * complaints.c (symfile_explanations): Remove new-line from
2481 ``isolated_message''.
2482 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2483 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2484
5835abe7
NC
24852002-09-20 Nick Clifton <nickc@redhat.com>
2486
2487 * NEWS: Announce that V850EA ISA is no longer supported.
2488 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2489
a15ef5f5
DC
24902002-09-20 David Carlton <carlton@math.stanford.edu>
2491
06ba1b39
DC
2492 * Makefile.in (c-lang.o): Correct dependencies.
2493 (utils.o): Gather dependencies.
2494 (charset.o): Move.
a15ef5f5
DC
2495 * c-lang.c: #include "gdb_string.h"
2496
87885426
FN
24972002-09-20 Fernando Nasser <fnasser@redhat.com>
2498
2499 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2500 * cli/cli-cmds.c (list_command): New function. Implements the new
2501 cli edit command.
2502 (_init_cli_cmds): Add new command definition.
2503 * gdb.1: Document edit command.
2504 * doc/gdb.texinfo: Document edit command.
2505
25062002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2507
2508 * source.c: Make global variables current_source_symtab and
2509 current_source_line static.
2510 (list_command): Moved to cli/cli-cmds.c.
2511 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2512 (get_first_line_listed): New accessor function.
2513 (get_lines_to_list): New accessor function.
2514 (get_current_source_symtab_and_line): New function. Retrieves the
2515 position in the source code that we consider current.
2516 (get_current_or_default_source_symtab_and_line): New function.
2517 Like the above but attempts to determine a default position if one
2518 is not currently defined.
2519 (set_current_source_symtab_and_line): New function. Sets the source
2520 code position considered current and returns the previously set one.
2521 (clear_current_source_symtab_and_line): Reset stored information about
2522 a current source line.
2523 (_initialize_source): Remove registration for the "list" command and
2524 its alias.
2525 * source.h: Add declarations for the new functions above.
2526 * symtab.h: Remove declarations for the global variables mentioned
2527 above.
2528 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2529 obtain current source line.
2530 * linespec.c (decode_line_1): Ditto.
2531 * macroscope.c (default_macro_scope): Ditto.
2532 * scm-lang.c (scm_unpac): Ditto.
2533 * stack.c (print_frame_info_base): Ditto.
2534 * symfile.c (clear_symtab_users): Ditto.
2535 * symtab.c (decode_line_spec): Ditto.
2536 * cli/cli-cmds.c (list_command): Moved here from source.c.
2537 (ambiguous_line_spec): Moved here from source.c.
2538 (_init_cli_cmds): Add definition for "list" and its alias.
2539 * Makefile.in: Update dependencies.
2540
ddd216ea
CV
25412002-09-20 Corinna Vinschen <vinschen@redhat.com>
2542
2543 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2544 with what gcc thinks is correct.
2545
6d305052
CV
25462002-09-20 Corinna Vinschen <vinschen@redhat.com>
2547
2548 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2549 multiple register push instruction.
2550
234b45d4
KB
25512002-09-19 Jim Blandy <jimb@redhat.com>
2552
2553 Add support for distinct host and target character sets.
2554 * charset.c, charset.h: New files.
2555 * c-exp.y: #include "charset.h".
2556 (yylex): Convert character and string literals to the target
2557 character set, before returning them as the semantic value of the
2558 token.
2559 * c-lang.c: #include "charset.h".
2560 (c_emit_char): Use charset-specific methods to recognize
2561 characters with backslash escape forms, to decide which characters
2562 to print literally and which to print using numeric escape
2563 sequences, and to convert target characters to host characters
2564 before printing.
2565 * utils.c: #include "charset.h".
2566 (no_control_char_error): New function.
2567 (parse_escape): Use charset-specific methods to recognize
2568 backslash escapes, parse `control character' notation, and convert
2569 characters from the host character set to the target character set.
2570 * configure.in: Set the default host character set.
2571 Check where to find iconv, and what its argument types might be.
2572 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2573 * Makefile.in (SFILES): List charset.c.
2574 (COMMON_OBS): List charset.o.
2575 (charset.o): New rule.
2576 (charset_h): New header dependency variable.
2577 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2578 (LIBICONV): New variable, set by configure.
2579 (CLIBS): Include $(LIBICONV) here.
2580 * aclocal.m4, config.in, configure: Regenerated.
2581
525d6a61
JB
25822002-09-19 Joel Brobecker <brobecker@gnat.com>
2583
2584 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2585 bison 1.35 warning.
2586
3ed93867
RE
25872002-09-19 Richard Earnshaw <rearnsha@arm.com>
2588
2589 * gdb_mbuild.sh: New file.
2590
437666f8
AC
25912002-09-19 Andrew Cagney <ac131313@redhat.com>
2592
2593 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2594
389e51db
AC
25952002-09-18 Andrew Cagney <ac131313@redhat.com>
2596
2597 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2598 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2599 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2600 valops.c, value.h: Revert previous change.
2601
3b4efeaa
MS
26022002-09-18 Michael Snyder <msnyder@redhat.com>
2603
2604 Preliminary support for Objective-C:
2605 * defs.h (language_objc): New enum value.
2606 (puts_filtered_tabular): Declaration only, exported from utils.c.
2607 (skip_quoted): Delete, declared in completer.h.
2608 * c-exp.y: Include completer.h.
2609 * p-exp.y: Ditto.
2610 * jv-exp.y: Ditto.
2611 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2612 New operator enum values.
2613 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2614 * language.c (binop_result_type): Handle language_objc case.
2615 (integral_type, character_type, string_type, boolean_type,
2616 structured_type, binop_type_check): Ditto.
2617 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2618 (struct objc_specific): Add to general_symbol_info.
2619 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2620 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2621 * parser-defs.h (struct objc_class_str): New struct type.
2622 (start_msglist, end_msglist, add_msglist): Declaration only,
2623 exported from objc-lang.c.
2624 * value.h (value_of_local, value_nsstring,
2625 call_function_by_hand_expecting_type): Exported from valops.c.
2626 * valops.c (find_function_addr): Export.
2627 (call_function_by_hand_expecting_type): New function.
2628 (value_of_local): New function.
2629 * symfile.c (init_filename_language_table): Add ".m" extension
2630 for Objective-C.
2631 * utils.c (puts_filtered_tabular): New function.
2632 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2633 (set/show demangle): Extend help-string to refer to ObjC.
2634 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2635 * stabsread.c (symbol_reference_defined): Objective-C symbols
2636 may contain colons: make allowances when scanning stabs strings
2637 for colons.
2638 (objc_find_colon): New function.
2639 * printcmd.c (address_info): If language == objc then print
2640 "self" instead of "this".
2641 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2642 OP_NSSTRING, and OP_SELF.
2643 (prefixify_subexp): Ditto.
2644 * source.c (print_source_lines): Mention objc in comment.
2645 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2646 method names.
2647
b9caf505
AC
26482002-09-18 Andrew Cagney <ac131313@redhat.com>
2649
2650 * complaints.h: Update copyright.
2651 (struct complaints): Declare.
2652 (struct complaint): Make `message' constant.
2653 (internal_complaint): Declare.
2654 (complaint): Declare.
2655 (complaint_root): Delete declaration.
2656 (symfile_complaints): Delete declaration.
2657 (struct complaints): Add opaque declaration.
2658 (clear_complaints): Add a complaints parameter.
2659 * complaints.c: Update copyright.
2660 (enum complaint_series): Define.
2661 (complaint_root): Delete.
2662 (struct complaints): Define.
2663 (complaint_sentinel, symfile_complaint_book): New variables.
2664 (symfile_explanations, symfile_complaints): New variables.
2665 New variables.
2666 (get_complaints): New function.
2667 (vcomplaint): New function.
2668 (complaint): New function.
2669 (internal_complaint): New function.
2670 (complain): Call vcomplain with symfile_complaint.
2671 (clear_complaints): Rewrite.
2672 (_initialize_complaints): Use add_setshow_command.
2673 * Makefile.in (complaints.o): Update dependencies.
2674 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2675 to call to clear_complaints.
2676 (new_symfile_objfile, reread_symbols): Ditto.
2677 (oldsyms_complaint): Delete.
2678 (empty_symtab_complaint, unknown_option_complaint): Delete.
2679 (free_named_symtabs): Use complaint instead of complain.
2680
d2e6263c
MS
26812002-09-18 Michael Snyder <msnyder@redhat.com>
2682
5fb2031a
AC
2683 Contributed by Apple Computer, Inc. Merged with current sources
2684 by Adam Fedor <fedor@doc.com> [cagney].
2685
d2e6263c
MS
2686 * objc-lang.c: First clean-up round: comments, indentation.
2687 * objc-lang.h: Ditto.
2688 * objc-lang.y: Ditto.
2689
dec43320
AC
26902002-09-18 Andrew Cagney <ac131313@redhat.com>
2691
2692 * maint.c (maintenance_internal_error): Print the parameter as the
2693 error message.
2694 (maintenance_internal_warning): New function.
2695 (_initialize_maint_cmds): Add command `maint internal-warning'.
2696
2697 * defs.h (internal_warning, internal_vwarning): Declare.
2698 * utils.c (struct internal_problem): Define.
2699 (internal_vproblem): New function.
2700 (internal_warning): New function.
2701 (internal_vwarning): New function.
2702 (internal_warning_problem, internal_error_problem): New variables.
2703 (internal_verror): Just call internal_vproblem.
2704
b81654f1
MS
27052002-09-18 Michael Snyder <msnyder@redhat.com>
2706
2707 * objc-lang.c: New file, support for Objective-C.
2708 Preliminary check-in, not yet integrated into gdb.
2709 * objc-lang.h: New file.
2710 * objc-exp.y: New file.
2711
0542c381
AC
27122002-09-18 Andrew Cagney <ac131313@redhat.com>
2713
7bda5e4a
AC
2714 * infrun.c (signal_stop_update): Convert definition to ISO C.
2715 (signal_print_update): Ditto.
2716 (signal_pass_update): Ditto.
2717 * inflow.c (terminal_save_ours): Ditto.
2718
5247b418
AC
2719 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2720 comments.
2721
fc60962c
AC
2722 * config/djgpp/fnchange.lst: Handle name clashes between
2723 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2724 bfd/coff-tic80.c.
2725
0542c381
AC
2726 * i386-linux-tdep.h: Fix tipo.
2727
5b924b9b
AF
27282002-09-18 Adam Fedor <fedor@gnu.org>
2729
2730 * MAINTAINERS: Add myself to the Write After Approval list.
2731
5afc051b
JB
27322002-09-18 Jim Blandy <jimb@redhat.com>
2733
2734 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2735 texthigh and textlow to reader-specific structs caused
2736 objfile_relocate to miss them. This is fixable, but the work that
2737 the change was supposed to prepare GDB for never got done anyway.
2738
eb944380
DC
27392002-09-18 David Carlton <carlton@math.stanford.edu>
2740
2741 * MAINTAINERS: Alphabetize Write After Approval list.
2742
948e66d9
DJ
27432002-09-18 Daniel Jacobowitz <drow@mvista.com>
2744
2745 Fix PR gdb/709
2746 * values.c (value_static_field): Call read_var_value.
2747
dc604539
AC
27482002-09-18 Andrew Cagney <ac131313@redhat.com>
2749
2750 * valops.c (hand_function_call): Align the initial stack pointer
2751 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2752 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2753 return value.
2754 * mips-tdep.c (mips_frame_align): New function.
2755 (mips_gdbarch_init): Set frame_align.
2756 * gdbarch.sh (FRAME_ALIGN): New method.
2757 * gdbarch.h, gdbarch.c: Re-generate.
2758
cb7e422f
ML
27592002-09-18 Michal Ludvig <mludvig@suse.cz>
2760
2761 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2762 registers.
2763
a094c6fb
AC
27642002-09-17 Andrew Cagney <ac131313@redhat.com>
2765
2766 * NEWS: Mention that MIPS $fp behavior changed.
2767 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2768 reference to FP_REGNUM.
2769 (mipsnbsd_cannot_store_register): Ditto.
2770 * mips-linux-nat.c: Update copyright.
2771 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2772 (mips_linux_cannot_store_register): Ditto.
2773 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2774 * config/mips/tm-mips.h: Update copyright.
2775 (FP_REGNUM): Delete macro.
2776 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2777 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2778 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2779 (mips_r3041_reg_names, mips_r3051_reg_names)
2780 (mips_r3081_reg_names): Replace "fp" with "".
2781 Fix PR gdb/480.
2782
45cf40d1
TR
27832002-09-17 Theodore A. Roth <troth@verinet.com>
2784
2785 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2786 generic_read_register_dummy() (PR gdb/703).
2787 (avr_push_return_address): #if 0 out unused vars.
2788 (avr_gdbarch_init): Enable use of avr_push_return_address().
2789
c7e701b5
MS
27902002-09-17 Michael Snyder <msnyder@redhat.com>
2791
d76ba2a5 2792 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2793 RTE will take care of it.
2794
20bcf01c
AC
27952002-09-17 Andrew Cagney <ac131313@redhat.com>
2796
2797 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2798 invalid, return SP_REGNUM.
2799
009a9971 28002002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2801
2802 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2803 point registers without sign extension.
2804
135c175f
AC
28052002-09-17 Andrew Cagney <cagney@redhat.com>
2806
2807 * blockframe.c (deprecated_read_register_dummy): Rename
2808 generic_read_register_dummy.
2809 * frame.c (frame_unwind_signed_register): New function.
2810 (frame_unwind_unsigned_register): New function.
2811 * frame.h (frame_unwind_signed_register): Declare.
2812 (frame_unwind_unsigned_register): Declare.
2813 (deprecated_read_register_dummy): Rename
2814 generic_read_register_dummy.
2815
2816 * h8300-tdep.c (h8300_frame_chain): Update.
2817 (h8300_frame_saved_pc): Update.
2818 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2819 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2820 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2821 (s390_frame_chain): Update.
2822 * v850-tdep.c (v850_find_callers_reg): Update.
2823 (v850_frame_saved_pc): Update.
2824 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2825 (m32r_find_callers_reg): Update.
2826 (m32r_frame_saved_pc): Update.
2827 * sh-tdep.c (sh_find_callers_reg): Update.
2828 (sh64_get_saved_pr): Update.
2829 (sh_init_extra_frame_info): Update.
2830 (sh_init_extra_frame_info): Update.
2831 (sh64_init_extra_frame_info): Update.
2832 (sh64_init_extra_frame_info): Update.
2833 * mcore-tdep.c (mcore_find_callers_reg): Update.
2834 (mcore_frame_saved_pc): Update.
2835 (mcore_init_extra_frame_info): Update.
2836 * i386-tdep.c (i386_frame_saved_pc): Update.
2837 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2838 (ia64_init_extra_frame_info): Update.
2839 (ia64_init_extra_frame_info): Update.
2840 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2841 * cris-tdep.c (cris_init_extra_frame_info): Update.
2842 * avr-tdep.c (avr_frame_chain): Update.
2843 (avr_init_extra_frame_info): Update.
2844 (avr_frame_saved_pc): Update.
2845 * arm-tdep.c (arm_find_callers_reg): Update.
2846 (arm_init_extra_frame_info): Update.
2847 (arm_frame_saved_pc): Update.
2848
a741e514
TT
28492002-09-17 Tom Tromey <tromey@redhat.com>
2850
2851 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2852 is "'".
2853
d1a8e808
CV
28542002-09-17 Corinna Vinschen <vinschen@redhat.com>
2855
2856 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2857 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2858 NEXT_PROLOGUE_INSN.
2859 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2860 NEXT_PROLOGUE_INSN.
2861
d9025a18
JB
28622002-09-16 Joel Brobecker <brobecker@gnat.com>
2863
2864 * osfsolib.c: Remove file, replaced by solib-osf.c.
2865 * Makefile.in: Remove compilation rules for osfsolib.c.
2866
1b2ef1b6
DC
28672002-09-16 David Carlton <carlton@math.stanford.edu>
2868
2869 * cp-valprint.c (cp_print_class_method): Correct args to
2870 check_stub_method_group.
2871
928e48af
CV
28722002-09-16 Corinna Vinschen <vinschen@redhat.com>
2873
2874 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2875 `set architecture'. Unify naming convention of functions.
2876 (h8300_skip_prologue): Improve prologue analysis.
2877 (h8300_push_arguments): Rewritten to more closely match GCC's
2878 bizarre argument-passing behavior, along with the comment describing
2879 said behavior.
2880 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2881 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2882 sim, remote-e7000.c, remote-hms.c and remote.c
2883
5e3397bb
MK
28842002-09-15 Mark Kettenis <kettenis@gnu.org>
2885
2886 * i386-tdep.c (gdb_print_insn_i386): Removed.
2887 (i386_print_insn): New function.
2888 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2889 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2890 tm_print_insn_info.
2891
f710f4fc
MK
28922002-09-14 Mark Kettenis <kettenis@gnu.org>
2893
2894 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2895 zero.
2896
db54fef4
CV
28972002-09-14 Corinna Vinschen <vinschen@redhat.com>
2898
2899 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2900 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2901 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2902
2becadee
CF
29032002-09-13 Christopher Faylor <cgf@redhat.com>
2904
2905 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2906
de17c821
DJ
29072002-09-13 Daniel Jacobowitz <drow@mvista.com>
2908
2909 * gdbtypes.c (check_stub_method): Make static.
2910 (check_stub_method_group): New function.
2911 * gdbtypes.h: Update prototypes.
2912 * cp-support.c: New file.
2913 * cp-support.h: New file.
2914
2915 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2916 (update_method_name_from_physname): New function.
2917 (read_member_functions): Correct method names for operators
2918 and v3 constructors/destructors. Separate v2 constructors and
2919 destructors.
2920 * Makefile.in (stabsread.o): Update dependencies.
2921 (SFILES): Add cp-support.c.
2922 (COMMON_OBS): Add cp-support.o.
2923 (cp_support_h, cp-support.o): Add.
2924
2925 * cp-valprint.c (cp_print_class_method): Call
2926 check_stub_method_group instead of check_stub_method. Remove
2927 extraneous QUITs.
2928 * p-valprint.c (pascal_object_print_class_method): Likewise.
2929 * valops.c (search_struct_method): Likewise.
2930 (find_method_list, value_struct_elt_for_reference): Likewise.
2931
e76cff22
AC
29322002-09-13 Andrew Cagney <cagney@redhat.com>
2933
2934 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2935 * gdbarch.h, gdbarch.c: Regenerate.
2936
905abb3f
AC
29372002-09-13 Andrew Cagney <ac131313@redhat.com>
2938
2939 * frame.c (find_saved_register): Delete function.
2940 * frame.h (find_saved_register): Delete declaration.
2941 Fix PR gdb/631.
2942
64159455
AC
2943Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2944
2945 * mips-tdep.c (read_next_frame_reg): Re-hack using
2946 frame_register_unwind.
2947
795e1e11
AC
2948Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2949
2950 * mips-tdep.c (mips_get_saved_register): Re-hack using
2951 frame_register_unwind.
2952
5720643c
JB
29532002-09-12 Joel Brobecker <brobecker@gnat.com>
2954
2955 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2956 vector. Will be useful for Interix.
2957 * gdbarch.h, gdbarch.c: Regenerate.
2958
2959 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2960 name of the malloc function by NAME_OF_MALLOC.
2961
3bada2a2
JB
29622002-09-12 Joel Brobecker <brobecker@gnat.com>
2963
2964 * value.h (find_function_in_inferior): Add const keyword to
2965 one of the parameters. Allows us to invoke this function with
2966 a const char *.
2967 * valops.c (find_function_in_inferior): Likewise.
2968
3db26b01
JB
29692002-09-12 Joel Brobecker <brobecker@gnat.com>
2970
2971 * exec.c (xfer_memory): Fix compilation warning with old versions
2972 of GCC.
2973 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2974
17c5ed2c
DC
29752002-09-12 David Carlton <carlton@math.stanford.edu>
2976
2977 * symtab.h: Run through gdb_indent.h.
2978 Add 2002 to Copyright year list.
2979
ecd1107e
AM
29802002-09-12 Alan Modra <amodra@bigpond.net.au>
2981
2982 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2983 mach constants.
2984 * MAINTAINERS: Add myself to write after approval list.
2985
e64f66d1
JB
29862002-09-11 J. Brobecker <brobecker@gnat.com>
2987
2988 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2989
f9395794
JB
29902002-09-11 J. Brobecker <brobecker@gnat.com>
2991
2992 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2993 Interix.
2994
1a303dec
MS
29952002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2996
2997 * procfs.c (do_detach): Clear current signal, not just fault.
2998 Corrects problem with breakpoint trap signal leaking to detached
2999 process on Tru64.
3000
c0219d42
MS
30012002-09-10 Michael Snyder <msnyder@redhat.com>
3002
3003 * buildsym.c (finish_block): Protect against null pointer.
3004
9d84ac84
AC
30052002-09-10 Andrew Cagney <cagney@redhat.com>
3006
3007 * infcmd.c (default_print_registers_info): Send all output to
3008 ``file'' instead of ``gdb_stdout''.
3009
77d8f2b4
MS
30102002-09-10 Michael Snyder <msnyder@redhat.com>
3011
3012 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3013 LONGEST, and use signed register read (addresses are sign-
3014 extended for mips).
3015
99656a61
SC
30162002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3017
3018 * event-loop.c (gdb_do_one_event): Make public.
3019 * event-loop.h (gdb_do_one_event): Declare.
3020
da12f4d8
JL
30212002-09-10 Jeff Law <law@redhat.com>
3022
3023 * infttrace.c (child_resume): Simplify and rework to avoid
3024 TT_PROC_CONTINUE.
3025
d0aee0c4
FF
30262002-09-09 Fred Fish <fnf@intrinsity.com>
3027
3028 * printcmd.c (print_scalar_formatted): "len" is the number of
3029 target bytes, NOT the number of target bits.
3030
7cb3ec5e
EZ
30312002-09-09 Elena Zannoni <ezannoni@redhat.com>
3032
3033 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3034 * top.c (init_main): Set rl_terminal_name.
3035
4dc81987
AS
30362002-09-08 Aidan Skinner <aidan@velvet.net>
3037
3038 * ada-lang.c (ada_array_bound, ada_type_match,
3039 _initialize_ada_language): Fix K&R definitions.
3040 * ada-tasks.c (get_current_task): Fix K&R definitions.
3041 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3042
842330b4
CF
30432002-09-07 Christopher Faylor <cgf@redhat.com>
3044
3045 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3046 Add XP.
3047
43156d82
MK
30482002-09-06 Mark Kettenis <kettenis@gnu.org>
3049
66da5fd8
MK
3050 * i386-tdep.c (i386_register_virtual_type,
3051 i386_register_convertible, i386_register_convert_to_virtual,
3052 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3053 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3054 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3055 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3056 Don't set push_arguments twice.
3057
4b218c18
MK
3058 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3059 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3060 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3061 sigtramp_end to NULL.
3062 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3063 defines.
3064 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3065
4cc314d5
MK
3066 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3067 whitespace.
3068
43156d82
MK
3069 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3070 * gdbarch.h, gdbarch.c: Re-generate.
3071 * blockframe.c (find_pc_sect_partial_function): Convert to use
3072 SIGTRAMP_START_P predicate.
3073
6672060b
MS
30742002-09-05 Michael Snyder <msnyder@redhat.com>
3075
a90c3637
MS
3076 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3077 generic_dummy_frame method and old method. Also distinguish
3078 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3079 (arm_extract_return_value): Use new regcache method.
a90c3637 3080
6672060b
MS
3081 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3082 adjustment that doesn't conform to the ABI.
3083 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3084 saved regcache, not from current regcache.
3085
299ffc64
AC
30862002-09-05 Andrew Cagney <ac131313@redhat.com>
3087
3088 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3089 * README: Update.
3090
a3a2ee65
JT
30912002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3092
3093 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3094 if arm_apcs_32 is false.
3095
2bc7eea9
AC
30962002-09-04 Andrew Cagney <ac131313@redhat.com>
3097
3098 GDB 5.3 branch created.
3099
8a55a7c5
TR
31002002-09-03 Theodore A. Roth <troth@verinet.com>
3101
3102 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3103 generic_unwind_get_saved_register.
3104
e26fb1d7
DC
31052002-09-03 David Carlton <carlton@math.stanford.edu>
3106
3107 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3108 argument (PR gdb/653). Update call to smash_to_method_type.
3109 (read_structure_scope): Update call to dwarf2_add_member_fn.
3110
30d52491
ML
31112002-09-03 Michal Ludvig <mludvig@suse.cz>
3112
3113 * x86-64-linux-tdep.c: Include gdb_string.h
3114 * x86-64-linux-nat.c: Ditto.
3115
06891d83
JT
31162002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3117
3118 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3119 when YYDEBUG is set to 1.
3120 * c-exp.y: Likewise.
3121 * f-exp.y: Likewise.
3122 * jv-exp.y: Likewise.
3123 * m2-exp.y: Likewise.
3124 * p-exp.y: Likewise.
3125
7d400e77
JT
31262002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3127
3128 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3129 dependency list.
3130 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3131 solib_svr4_fetch_link_map_offsets to
3132 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3133 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3134 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3135 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3136 solib-svr4.o, and solib-legacy.o.
3137 * config/i386/tm-nbsd.h: Include solib.h.
3138
704a27c4
JT
31392002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3140
3141 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3142 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3143 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3144 comment noting that this needs its own target configuration.
3145 * config/i386/nbsd.mt: New file.
3146 * config/i386/nbsdaout.mt: Remove.
3147 * config/i386/nbsdelf.mt: Ditto.
3148 * config/i386/tm-nbsdaout.h: Ditto.
3149
d66198e1
JT
31502002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3151
3152 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3153 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3154 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3155 tdep->sigtramp_end.
3156 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3157 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3158 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3159
3cac699e
JT
31602002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3161
3162 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3163 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3164 * i386-tdep.h (i386bsd_init_abi): New prototype.
3165 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3166 function declaration.
3167 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3168 for NetBSD-a.out or NetBSD-ELF.
3169 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3170 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3171 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3172 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3173 and nbsd-tdep.h.
3174 (i386nbsd_pc_in_sigtramp): New function.
3175 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3176 i386nbsd_pc_in_sigtramp.
3177 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3178 and i386nbsdelf_init_abi OS ABI handlers.
3179 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3180 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3181
7010ca0a
MK
31822002-09-02 Mark Kettenis <kettenis@gnu.org>
3183
3184 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3185 registers if the target really has them.
3186
6dd93b72
JT
31872002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3188
3189 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3190 than nbsd-tdep.h.
3191
2ca8ae21
JT
31922002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3193
3194 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3195 list.
3196 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3197 (alphanbsd_skip_sigtramp_frame): New functions.
3198 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3199 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3200 to alphanbsd_sigcontext_addr.
3201
3d9b49b0
JT
32022002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3203
3204 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3205 list.
3206 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3207 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3208 nbsd_pc_in_sigtramp.
3209 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3210 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3211 * nbsd-tdep.c: Include gdb_string.h.
3212 (nbsd_pc_in_sigtramp): New function.
3213 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3214 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3215 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3216 ppcnbsd_pc_in_sigtramp.
3217 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3218 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3219 shnbsd_pc_in_sigtramp.
3220 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3221 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3222 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3223
c860120c
PM
32242002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3225
3226 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3227 watchpoints to NULL.
3228 (insert_breakpoints): set val field of watchpoints if NULL.
3229
3230
c7612d53
JB
32312002-08-29 Jim Blandy <jimb@redhat.com>
3232
3233 * symtab.c (lookup_symbol_aux): In the cases where we find a
3234 minimal symbol of an appropriate name and use its address to
3235 select a symtab to read and search, use `name' (as passed to us)
3236 as the demangled name when searching the symtab's global and
3237 static blocks, not the minsym's name.
3238
66609862
KS
32392002-08-29 Keith Seitz <keiths@redhat.com>
3240
3241 * stack.c (print_frame_info_base): Always set current_source_symtab
3242 and current_source_line.
3243
151fefe2
JB
32442002-08-29 Donn Terry <donnte@microsoft.com>
3245
3246 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3247
bfb3754e
KS
32482002-08-28 Keith Seitz <keiths@redhat.com>
3249
3250 * stack.c (select_frame): Add FIXME concerning selected-frame
3251 events.
3252 (select_frame_command): Send selected-frame-level-changed
3253 event notification, but only if the level actually changed.
3254 (up_silently_base): Add selected-frame-level-changed event
3255 notification.
3256 (down_silently_base): Likewise.
3257
e822a2a0
AC
32582002-08-28 Andrew Cagney <ac131313@redhat.com>
3259
3260 * Makefile.in: Update dependencies for all gdb/*.c files.
3261
309367d4
TT
32622002-08-27 Tom Tromey <tromey@redhat.com>
3263
3264 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3265 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3266 Update dependencies.
3267 * i387-tdep.c: Include gdb_string.h.
3268 * osabi.c: Likewise.
3269 * i386-linux-nat.c: Likewise.
3270 * lin-lwp.c: Likewise.
3271 * ax-gdb.c: Likewise.
3272 * signals/signals.c: Likewise.
3273 * jv-valprint.c: Likewise.
3274 * p-lang.c: Likewise.
3275 * c-valprint.c: Likewise.
3276 * cp-abi.c: Likewise.
3277
e1507482
EZ
32782002-08-27 Elena Zannoni <ezannoni@redhat.com>
3279
3280 * cli/cli-script.h (copy_command_lines): Export.
3281 * breakpoint.c: Include cli/cli-script.h.
3282 * Makefile.in (breakpoint.o): Update dependencies.
3283
c6510018
MS
32842002-08-26 Michael Snyder <msnyder@redhat.com>
3285
3286 * breakpoint.c (insert_breakpoints): Protect all references
3287 to 'process_warning'. Shorten long lines.
3288
c2b8ed2c
MS
32892002-08-26 Joel Brobecker <brobecker@gnat.com>
3290
3291 * cli/cli-script.c (copy_command_lines): New function.
3292 * defs.h (copy_command_lines): Export.
3293 * testsuite/gdb.base/commands.exp: New tests for commands
3294 attached to a temporary breakpoint, and for commands that
3295 delete the breakpoint they are attached to.
3296
32972002-08-26 Michael Snyder <msnyder@redhat.com>
3298
3299 * breakpoint.c (bpstat_stop_status): Instead of copying the
3300 pointer to the breakpoint commands struct, make a new copy
3301 of the struct and point to that.
3302 (bpstat_clear): Free the commands struct.
3303 (bpstat_clear_actions): Free the commands struct.
3304 (bpstat_do_actions): Free the command actions. Also execute
3305 the local cleanups, instead of deleting them.
3306 (delete_breakpoint): Leave the commands field of the bpstat
3307 chain alone -- it will be freed later.
3308
64b84175
KB
33092002-08-26 Kevin Buettner <kevinb@redhat.com>
3310
3311 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3312 deleted in 2002-08-20 commit. This function is still used by
3313 ppc-linux-nat.c.
3314
55970da6
KS
33152002-08-26 Keith Seitz <keiths@redhat.com>
3316
3317 * gdb-events.sh: Add selected-frame-level-changed event.
3318 * gdb-events.c: Regenerated.
3319 * gdb-events.h: Regenerated.
3320
a790ad35
SC
33212002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3322
3323 Fix PR gdb/393:
3324 * inflow.c (terminal_save_ours): New function to save terminal
3325 settings.
3326 * inferior.h (terminal_save_ours): Declare.
3327 * target.c (debug_to_terminal_save_ours): New function.
3328 (cleanup_target): Defaults to_terminal_save_ours.
3329 (update_current_target): Inherit to_terminal_save_ours.
3330 (setup_target_debug): Set to_terminal_save_ours.
3331 * target.h (target_terminal_save_ours): New to save terminal settings.
3332 (target_ops): New member to_terminal_save_ours.
3333 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3334 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3335 * inftarg.c (init_child_ops): Likewise.
3336 * m3-nat.c (init_m3_ops): Likewise.
3337 * procfs.c (init_procfs_ops): Likewise.
3338 * wince.c (init_child_ops): Likewise.
3339 * win32-nat.c (init_child_ops): Likewise.
3340 * sol-thread.c (init_sol_thread_ops): Likewise.
3341
c00dcbe9
MK
33422002-08-26 Mark Kettenis <kettenis@gnu.org>
3343
3d7f4f49
MK
3344 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3345 use regcache_* functions.
3346 (i386_gdbarch_init): Set store_return_value instead of
3347 deprecated_store_return_value.
3348
c00dcbe9
MK
3349 * regcache.c (regcache_raw_write_signed,
3350 regcache_raw_write_unsigned): New functions.
3351 * regcache.h (regcache_raw_write_signed,
3352 regcache_raw_write_unsigned): New prototypes.
3353
0e0d15ca
AC
33542002-08-25 Andrew Cagney <ac131313@redhat.com>
3355
3356 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3357 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3358 source file dependencies. Cleanup corresponding generator rules.
3359
d3b22ed5
AC
33602002-08-25 Andrew Cagney <ac131313@redhat.com>
3361
3362 * regcache.h (register_offset_hack): Declare.
3363 (regcache_cooked_read_using_offset_hack): Declare.
3364 (regcache_cooked_write_using_offset_hack): Declare.
3365
3366 * regcache.c (register_offset_hack): New function.
3367 (regcache_cooked_read_using_offset_hack): New function.
3368 (regcache_cooked_write_using_offset_hack): New function.
3369 (regcache_dump): Check that the registers, according to their
3370 offset, are packed hard against each other.
3371 (cooked_xfer_using_offset_hack): New function.
3372
bb425013
AC
33732002-08-25 Andrew Cagney <ac131313@redhat.com>
3374
3375 * regcache.c (struct regcache_descr): Add field register_type.
3376 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3377 in as a parameter
3378 (init_regcache_descr): Initialize register_type. Pass the descr
3379 to init_legacy_regcache_descr. Use register_type instead of
3380 REGISTER_VIRTUAL_TYPE.
3381 (register_type): New function.
3382 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3383 * regcache.h (register_type): Declare.
3384
d0403e00
AC
33852002-08-25 Andrew Cagney <ac131313@redhat.com>
3386
3387 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3388 instead of deprecated_store_return_value. Fix fallout from
3389 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3390
0ed04cce
AC
33912002-08-25 Andrew Cagney <ac131313@redhat.com>
3392
3393 * regcache.c (max_register_size): New function.
3394 (init_legacy_regcache_descr): Ensure that max_register_size is
3395 large enough for REGISTER_VIRTUAL_SIZE.
3396 * regcache.h (max_register_size): Declare.
3397
46d79c04
AC
33982002-08-24 Andrew Cagney <ac131313@redhat.com>
3399
3400 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3401 store_return_value.
3402 (e500_extract_return_value): Change type of valbuf pointer to
3403 void.
3404
853c7bd0
MK
34052002-08-24 Mark Kettenis <kettenis@gnu.org>
3406
cd87e769
MK
3407 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3408 workaround.
3409
853c7bd0
MK
3410 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3411 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3412 long long) to prevent compiler warning on 64-bit systems.
3413
ebba8386
AC
34142002-08-23 Andrew Cagney <cagney@redhat.com>
3415
3416 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3417 (DEPRECATED_STORE_RETURN_VALUE): New method.
3418 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3419 * gdbarch.h, gdbarch.c: Re-generate.
3420
3421 * values.c (set_return_value): Pass current_regcache to
3422 STORE_RETURN_VALUE.
3423 * arch-utils.h (legacy_store_return_value): Declare.
3424 * arch-utils.c (legacy_store_return_value): New function.
3425 (legacy_extract_return_value): Update parameters.
3426
3427 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3428 STORE_RETURN_VALUE.
3429 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3430 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3431 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3432 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3433 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3434 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3435 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3436 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3437 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3438 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3439
3440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3441 * i386-tdep.c (i386_extract_return_value): Update.
3442 * arch-utils.c (legacy_extract_return_value): Update.
3443 * frv-tdep.c (frv_gdbarch_init): Update.
3444 * cris-tdep.c (cris_gdbarch_init): Update.
3445 * d10v-tdep.c (d10v_gdbarch_init): Update.
3446 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3447 * m68k-tdep.c (m68k_gdbarch_init): Update.
3448 * mcore-tdep.c (mcore_gdbarch_init): Update.
3449 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3450 * s390-tdep.c (s390_gdbarch_init): Update.
3451 * sparc-tdep.c (sparc_gdbarch_init): Update.
3452 * sh-tdep.c (sh_gdbarch_init): Update.
3453 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3454 * v850-tdep.c (v850_gdbarch_init): Update.
3455 * avr-tdep.c (avr_gdbarch_init): Update.
3456 * ia64-tdep.c (ia64_gdbarch_init): Update.
3457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3458 * vax-tdep.c (vax_gdbarch_init): Update.
3459 * alpha-tdep.c (alpha_gdbarch_init): Update.
3460 * arm-tdep.c (arm_gdbarch_init): Update.
3461 * mips-tdep.c (mips_gdbarch_init): Update.
3462 * i386-tdep.c (i386_gdbarch_init): Update.
3463
5bd8c6d0
AC
34642002-08-23 Andrew Cagney <ac131313@redhat.com>
3465
3466 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3467 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3468
e73e1724
MK
34692002-08-24 Mark Kettenis <kettenis@gnu.org>
3470
3471 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3472 problems.
3473
3e6564e1
JB
34742002-08-23 Joel Brobecker <brobecker@gnat.com>
3475
3476 * infrun.c (handle_inferior_event): Move a comment outside of a
3477 function call, in order to avoid indent reformatting this part
3478 of the code in an unreadable way.
3479
81d0cc19
GS
34802002-08-23 Grace Sainsbury <graces@redhat.com>
3481
3482 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3483 when breakpoints fail. Move general breakpoint error messages to
3484 insert_breakpoints.
3485 * breakpoint.c (insert_breakpoints): Change warnings when
3486 breakpoints are nto inserted to specify the type. Remove call to
3487 memory_error when hardware breakpoints can't be inserted. Remove
3488 multiple calls to warning so all messages are sent to the user at
3489 once.
3490 (delete_breakpoints): Make insert error messsages more explicit.
3491
17574093
DJ
34922002-08-23 Daniel Jacobowitz <drow@mvista.com>
3493
3494 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3495 gdbserver/ChangeLog.
3496
8acc2935
MK
34972002-08-23 Mark Kettenis <kettenis@gnu.org>
3498
dfe01d39
MK
3499 * i386-tdep.c: Include "objfiles.h".
3500 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3501 skip_trampoline_code.
3502 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3503 (CPLUS_MARKER): Define to '.'.
3504
8acc2935
MK
3505 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3506 member.
3507 (linux_corefile_thread_callback): Increase args->num_notes.
3508 (linux_make_note_section): Initialize thread_args.num_notes, and
3509 use it to determine whether notes for any threads were created.
3510
151fefe2 35112002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3512
3513 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3514 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3515 and PCUNKILL.
3516 (write_with_trace): Conditionalize out the switch branch handling
3517 PCSHOLD if the corresponding macro is not defined. Likewise for
3518 PRSABORT and PRSTOP.
3519 This change will be needed by the Interix port.
3520
e1507482
EZ
35212002-08-22 Elena Zannoni <ezannoni@redhat.com>
3522
3523 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3524 write_register wherever possible instead of manipulating the
3525 register bytes directly.
3526 Assign VALUE_CONTENTS to a variable and use that.
3527 The GPR numbers are now dependent on the architecture.
3528
96ff0de4
EZ
35292002-08-22 Elena Zannoni <ezannoni@redhat.com>
3530
3531 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3532 ev_offset fields.
3533 (skip_prologue): Add support for BookE/e500 instructions.
3534 (e500_extract_return_value): New function.
3535 (frame_get_saved_regs): Add support for saving ev registers and
3536 pseudo gpr's.
3537 (e500_store_return_value): New function.
3538 (rs6000_gdbarch_init): Move up default intializations of
3539 deprecated_extract_return_value and store_return_value. Overwrite
3540 init of store_return_value with e500 specific version.
3541 Set extract_return_value for e500.
3542
fbefca5b
EZ
35432002-08-22 Elena Zannoni <ezannoni@redhat.com>
3544
3545 * blockframe.c (generic_call_dummy_register_unwind): Use
3546 regcache_cooked_read to catch cases in which the variable is
3547 stored in a pseudo register.
3548
4d210288
AC
35492002-08-22 Andrew Cagney <cagney@redhat.com>
3550
3551 * NEWS: Mention that the i960 has been made obsolete.
3552 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3553 i960-tdep.c
3554 (remote-nrom.o): Obsolete target.
3555 (remote-nindy.o, i960-tdep.o): Ditto.
3556 * remote-nrom.c: Make file obsolete.
3557 * remote-nindy.c, remote-vx960.c: Ditto.
3558 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3559 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3560 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3561 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3562 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3563 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3564 i960-*-vxworks* obsolete.
3565 * MAINTAINERS: Note that the i960 is obsolete.
3566
6c0c456d
CV
35672002-08-21 Corinna Vinschen <vinschen@redhat.com
3568
3569 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3570 detach to allow reinitialization.
3571
9f9d12b3
AC
35722002-08-22 Andrew Cagney <ac131313@redhat.com>
3573
3574 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3575 attempt).
3576
ebeb39fe
JB
35772002-08-22 Jim Blandy <jimb@redhat.com>
3578
3579 * coffread.c (coff_symfile_read): Don't try to read the line
3580 number table from disk if the image file doesn't have a symbol
3581 table; we'll never actually look at the info anyway, and Windows
3582 ships DLL's with bogus file offsets for the line number data.
3583
5bf1c677
EZ
35842002-08-21 Elena Zannoni <ezannoni@redhat.com>
3585
3586 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3587 an e500 executable.
3588
71b8ef93
MS
35892002-08-21 Michael Snyder <msnyder@redhat.com>
3590
3591 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3592 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3593 (DEFAULT_MIPS_TYPE): Delete unused macro.
3594 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3595 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3596
d174216d
JB
35972002-08-21 Jim Blandy <jimb@redhat.com>
3598
3599 * valops.c (value_cast): Simplify and correct logic for doing a
3600 static cast from a pointer to a base class to a pointer to a
3601 derived class.
3602
0ab7a791
AC
36032002-08-21 Andrew Cagney <ac131313@redhat.com>
3604
3605 * infcmd.c (default_print_registers_info): Replace
3606 do_registers_info.
3607 (registers_info): Use gdbarch_print_registers_info instead of
3608 DO_REGISTERS_INFO.
3609 * inferior.h (default_print_registers_info): Replace
3610 do_registers_info.
3611 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3612 (DO_REGISTERS_INFO): Change to a predicate function.
3613 * gdbarch.h, gdbarch.c: Regenerate.
3614
e23792cc
KS
36152002-08-21 Keith Seitz <keiths@redhat.com>
3616
3617 * gdb-events.sh: Add target-changed event.
3618 * gdb-events.c: Regenerated.
3619 * gdb-events.c: Regenerated.
3620 * valops.c (value_assign): Add target-changed event notification
3621 to inlval_register, lval_memory, and lval_reg_frame_relative.
3622
9fb14e79
JB
36232002-08-21 Joel Brobecker <brobecker@gnat.com>
3624
3625 * NEWS: Add an entry regarding the improvement of the next/step
3626 operation on Alpha Tru64 multi-processor machines.
3627
6d39a69f
AC
36282002-08-21 Andrew Cagney <ac131313@redhat.com>
3629
72acd513
AC
3630 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3631 directores.
342af04b 3632 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3633 * Makefile.in (install-gdbtk): Move to install section.
3634 (rdi-share/libangsd.a): Move to end of file.
3635
fa5f27c7
AC
36362002-08-19 Andrew Cagney <ac131313@redhat.com>
3637
3638 * frame.c (frame_register_unwind): When a register, set addrp to
3639 the register's byte.
3640
5a89d8aa
MS
36412002-08-20 Michael Snyder <msnyder@redhat.com>
3642
3643 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3644 used locally, so move them from the target machine header to here.
3645 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3646 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3647 Make static.
3648 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3649
822e978b
AC
36502002-08-20 Andrew Cagney <cagney@redhat.com>
3651
3652 * NEWS: Mention that the Apollo line was made obsolete.
3653 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3654 m68*-hp-hpux* obsolete.
3655 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3656 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3657 * buildsym.c (make_blockvector): Make static.
3658 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3659 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3660 (ALLDEPFILES): Remove dstread.c.
3661 (dstread.o): Obsolete make rule.
3662 * dstread.c: Makefile obsolete.
3663 * dst.h: Ditto.
3664 * config/m68k/hp300hpux.mt: Ditto.
3665 * config/m68k/hp300hpux.mh: Ditto.
3666 * config/m68k/hp300bsd.mt: Ditto.
3667 * config/m68k/hp300bsd.mh: Ditto.
3668 * config/m68k/apollo68b.mt: Ditto.
3669 * config/m68k/apollo68v.mh: Ditto.
3670 * config/m68k/apollo68b.mh: Ditto.
3671
e41b17f0
MS
36722002-08-20 Michael Snyder <msnyder@redhat.com>
3673
3674 * mips-tdep.c (mips_in_return_stub): Make static.
3675 (mips_gdbarch_init): Set in_solib_return_trampoline.
3676 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3677
d50355b6
MS
36782002-08-20 Michael Snyder <msnyder@redhat.com>
3679
3680 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3681 * gdbarch.c, gdbarch.h: Regenerate.
3682 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3683 Add.
3684 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3685
757a7cc6
MS
36862002-08-20 Michael Snyder <msnyder@redhat.com>
3687
3688 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3689 (mips_gdbarch_init): Set skip_trampoline_code,
3690 in_solib_call_trampoline.
3691 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3692 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3693
c8001721
EZ
36942002-08-20 Elena Zannoni <ezannoni@redhat.com>
3695
3696 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3697
3698 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3699 vector type for ev registers.
3700 (e500_pseudo_register_read): New function.
3701 (e500_pseudo_register_write): New function.
3702 (e500_dwarf2_reg_to_regnum): New function.
3703 (PPC_UISA_NOFP_SPRS): New macro.
3704 (PPC_EV_REGS): New macro.
3705 (PPC_GPRS_PSEUDO_REGS): New macro.
3706 (registers_e500): New register set for e500.
3707 (variants): Add e500 variant.
3708 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3709 before setting architectural dependent variations. Initialize ev
3710 registers numbers. Add case for e500 architecture. Set the
3711 number of pseudo registers.
3712
64366f1c
EZ
37132002-08-20 Elena Zannoni <ezannoni@redhat.com>
3714
3715 * rs6000-tdep.c: Clean up comments.
3716
7e78f0ca
AC
37172002-08-20 Andrew Cagney <cagney@redhat.com>
3718
3719 * h8300-tdep.c: Re-indent file.
3720
697f7479
JB
37212002-08-20 Jim Blandy <jimb@redhat.com>
3722
3723 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3724 default for this.
697f7479 3725
e86ae29f
KS
37262002-08-20 Keith Seitz <keiths@redhat.com>
3727
3728 * breakpoints.c (watch_command_1): Use internal breakpoint
3729 when setting a watchpoint_scope breakpoint.
3730
216b504f
EZ
37312002-08-20 Elena Zannoni <ezannoni@redhat.com>
3732
3733 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3734 (build_builtin_type_vec64i): Ditto.
3735 (build_builtin_type_vec128): Ditto.
3736 (build_builtin_type_vec128i): Ditto.
3737
f7ab6ec6
MS
37382002-08-19 Michael Snyder <msnyder@redhat.com>
3739
3740 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3741 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3742 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3743 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3744 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3745 CALL_DUMMY_ADDRESS): Delete.
3746 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3747 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3748 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3749 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3750 push_return_address.
3751 (mips_register_raw_size, mips_eabi_use_struct_convention,
3752 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3753 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3754 mips_init_extra_frame_info, mips_eabi_push_arguments,
3755 mips_n32n64_push_arguments, mips_push_return_address,
3756 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3757 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3758
b5d1566e
MS
37592002-08-19 Michael Snyder <msnyder@redhat.com>
3760
3761 * mips-tdep.c (mips_frame_num_args): New function.
3762 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3763 frame_saved_pc, frame_args_address, frame_locals_address,
3764 frame_num_args, and frame_args_skip.
3765 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3766 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3767 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3768 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3769
2f1488ce
MS
37702002-08-20 Michael Snyder <msnyder@redhat.com>
3771
3772 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3773 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3774 * mips-tdep.c (mips_store_struct_return): New function.
3775 (mips_extract_struct_value_address): New function.
3776 (mips_gdbarch_init): Set store_struct_return and
3777 extract_struct_value_address.
3778
41ff2da1
DC
37792002-08-20 David Carlton <carlton@math.stanford.edu>
3780
3781 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3782 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3783 (read_file_scope): Check that line_header is nonzero before
3784 decoding macro information.
3785
e5451d58
MK
37862002-08-20 Mark Kettenis <kettenis@gnu.org>
3787
3788 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3789 flag the general-purpose registers as floating-point on targets
3790 that don't support the floating-point registers.
3791
4a6daafa
EZ
37922002-08-20 Elena Zannoni <ezannoni@redhat.com>
3793
3794 * rs6000-tdep.c (altivec_register_p): Delete.
3795 (rs6000_do_altivec_registers): Delete.
3796 (rs6000_altivec_registers_info): Delete.
3797 (rs6000_do_registers_info): Delete.
3798 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3799 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3800
ab4327e0
EZ
38012002-08-20 Elena Zannoni <ezannoni@redhat.com>
3802
3803 * infcmd.c (do_registers_info): Print vector registers in hex
3804 format only.
3805 (print_vector_info): Check that printing registers
3806 makes sense.
3807 (print_float_info): Ditto.
3808
cb1d2653
AC
38092002-08-20 Andrew Cagney <ac131313@redhat.com>
3810
3811 * mips-tdep.c (mips_gdbarch_init): Update.
3812 (mips_o32_extract_return_value): Rewrite.
3813 (mips_o32_store_return_value): Rewrite.
3814 (mips_o32_xfer_return_value): New function.
3815 (mips_xfer_register): Tweak debug print message. Allow for
3816 buf_offset when dumping the value transfered.
3817
dfc3d9b2
AC
38182002-08-20 Andrew Cagney <ac131313@redhat.com>
3819
3820 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3821 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3822 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3823 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3824 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3825
7807aa61
MS
38262002-08-14 Michael Snyder <msnyder@redhat.com>
3827
3828 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3829
489461e2
EZ
38302002-08-19 Elena Zannoni <ezannoni@redhat.com>
3831
3832 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3833 register.
3834 (P): New macro to define a register as a pseudo register.
3835 (R, R4, R8, R16, FR32, R64, R0): Updated.
3836 (struct variant): Add new fields for number of pseudo registers
3837 and number of total registers.
3838 (tot_num_registers): New macro replacing....
3839 (num_registers): ...deleted macro.
3840 (num_registers): New function.
3841 (num_pseudo_registers): New function.
3842 (variants): Update all variants to intialize new fields correctly.
3843 Postpone initialization of number of pseudo regs and real regs.
3844 (init_variants): New function.
3845 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3846 registers offsets.
3847
fcaffe4c
DC
38482002-08-19 David Carlton <carlton@math.stanford.edu>
3849
2c2738a0
DC
3850 * valops.c (search_struct_field): Change error message to treat
3851 return value of 0 from value_static_field as meaning that field is
3852 optimized out.
3853 (value_struct_elt_for_reference): Ditto.
3854 * values.c (value_static_field): Treat an unresolved location the
3855 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3856 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3857 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3858 * MAINTAINERS: Add self to Write After Approval list.
3859
88658117
AC
38602002-08-19 Andrew Cagney <ac131313@redhat.com>
3861
3862 * mips-tdep.c (mips_xfer_register): New function.
3863 (mips_n32n64_extract_return_value): Rewrite.
3864 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3865 instead of deprecated_extract_return_value.
3866
21283beb
EZ
38672002-08-19 Elena Zannoni <ezannoni@redhat.com>
3868
3869 * rs6000-tdep.c (TDEP): Delete macro.
3870 (branch_dest): Replace use of TDEP macro with its body.
3871 (rs6000_pop_frame): Ditto.
3872 (rs6000_push_arguments): Ditto.
3873 (rs6000_skip_trampoline_code): Ditto.
3874 (rs6000_frame_saved_pc): Ditto.
3875 (rs6000_frame_chain): Ditto.
3876 (rs6000_register_name): Ditto.
3877 (rs6000_register_byte): Ditto.
3878 (rs6000_register_raw_size): Ditto.
3879 (rs6000_register_virtual_type): Ditto.
3880 (rs6000_register_convertible): Ditto.
3881 (rs6000_convert_from_func_ptr_addr): Ditto.
3882
bf072999
DJ
38832002-08-19 Daniel Jacobowitz <drow@mvista.com>
3884
3885 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3886 conditionally.
3887 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3888 MIPS_LINUX_JB_ELEMENT_SIZE.
3889 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3890 for MAX_REGISTER_RAW_SIZE arrays.
3891 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3892 MIPS_LINUX_JB_ELEMENT_SIZE.
3893
9b949a49
PM
38942002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3895
3896 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3897
6d3e79c6
AS
38982002-08-19 Aidan Skinner <aidan@velvet.net>
3899
3900 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3901 ada-valprint.c ada-tasks.c.
3902 (YYFILES): Add ada-exp.y.
3903 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3904 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3905 (ada-exp.tab.o): New target.
3906
06c0b04e
AC
39072002-08-18 Andrew Cagney <ac131313@redhat.com>
3908
3909 * regcache.c (regcache_xfer_part): New function.
3910 (regcache_raw_read_part): New function.
3911 (regcache_raw_write_part): New function.
3912 (regcache_cooked_read_part): New function.
3913 (regcache_cooked_write_part): New function.
3914 * regcache.h (regcache_raw_read_part): Declare.
3915 (regcache_raw_write_part): Declare.
3916 (regcache_cooked_read_part): Declare.
3917 (regcache_cooked_write_part): Declare.
3918
92d1e331
DJ
39192002-08-18 Daniel Jacobowitz <drow@mvista.com>
3920
3921 * remote.c (remote_open_1): Add async_p.
3922 (remote_async_open_1): Delete.
3923 (open_remote_target): Delete.
3924 (remote_open, extended_remote_open): Update calls to remote_open_1.
3925 (remote_async_open, extended_remote_async_open): Call
3926 remote_open_1 instead of remote_async_open_1.
3927
247055de
MK
39282002-08-19 Mark Kettenis <kettenis@gnu.org>
3929
3930 * blockframe.c: Fix a few coding standard violations.
3931
641eda39
MK
39322002-08-19 Mark Kettenis <kettenis@gnu.org>
3933
0b717710
MK
3934 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3935 here from ...
3936 * config/i386/tm-i386sco5.h: ... here. File removed.
3937 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3938
26d28e12 3939 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3940 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3941 (TM_FILE): Set to tm-i386.h.
3942 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3943 * config/i386/tm-i386v.h: Remove file.
3944 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3945 instead of "i386/tm-i386v.h".
3946 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3947 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3948 "i386/tm-i386v.h".
3949 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3950 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3951 "i386/tm-i386.h".
3952
d4e0bab4
MK
39532002-08-18 Mark Kettenis <kettenis@gnu.org>
3954
3955 * config/i386/nm-i386v.h: Add protection against
3956 multiple-inclusion.
3957 (i386_register_u_addr): Remove prototype.
3958 (register_u_addr): New prototype.
3959 (REGISTER_U_ADDR): Redefine accordingly.
3960 * i386v-nat.c: Improve several comments.
3961 (i386_register_u_addr): Change signature and rename to
3962 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3963 ubase variable.
3964
46cac009
AC
39652002-08-18 Andrew Cagney <ac131313@redhat.com>
3966
3967 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3968 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3969 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3970 deprecated_extract_return_value.
3971 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3972 rename mips_o32o64_push_arguments.
3973 (mips_gdbarch_init): Update.
3974 (mips_extract_return_value): Delete.
3975 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3976 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3977 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3978 (mips_n32n64_extract_return_value): Clone
3979 mips_extract_return_value.
3980 (mips_store_return_value): Delete.
3981 (mips_o32_store_return_value): Clone mips_store_return_value.
3982 (mips_o64_store_return_value): Clone mips_store_return_value.
3983 (mips_eabi_store_return_value): Clone mips_store_return_value.
3984 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3985
d2e4a39e
AS
39862002-08-18 Aidan Skinner <aidan@velvet.net>
3987
0c30c098
AS
3988 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3989 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3990
39912002-08-18 Aidan Skinner <aidan@velvet.net>
3992
3993 * ada-lang.c: Run through gdb_indent.sh.
3994 * ada-lang.h: Run through gdb_indent.sh.
3995 * ada-tasks.c: Run through gdb_indent.sh.
3996 * ada-typeprint.c: Run through gdb_indent.sh.
3997 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3998
01fc4e33
AC
39992002-08-18 Andrew Cagney <ac131313@redhat.com>
4000
4001 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4002 ABI.
4003
d8ee244c
MK
40042002-08-18 Mark Kettenis <kettenis@gnu.org>
4005
c38d8261
MK
4006 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4007
222db64c
MK
4008 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4009 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4010
c2848c82
MK
4011 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4012 write_register_gen instead of write_register_bytes.
4013
d8ee244c
MK
4014 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4015 i[3456]-*-osf1mk* configurations have been made obsolete.
4016 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4017 i[3456]86-*-osf1mk* hosts obsolete.
4018 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4019 targets obsolete.
4020 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4021 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4022 config/i386/i386m3.mt, config/i386/nm-m3.h,
4023 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4024 config/i386/i386mk.mh, config/i386/i386mk.mt,
4025 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4026 obsolete.
4027 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4028 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4029 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4030
61d8d407
AC
40312002-08-18 Andrew Cagney <ac131313@redhat.com>
4032
4033 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4034 (hppa_value_returned_from_stack): Declare.
4035 (hppa_extract_return_value): Declare.
4036 * config/pa/hppa.mt: New file.
4037 * configure.tgt: Recognize hppa*-*-*.
4038 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4039
0c52bd59
MK
40402002-08-18 Mark Kettenis <kettenis@gnu.org>
4041
4042 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4043 comment.
4044
b5686e99
MK
40452002-08-17 Mark Kettenis <kettenis@gnu.org>
4046
4047 * top.c (gdb_rl_operate_and_get_next): Make sure
4048 operate-and-get-next functions correctly even when the history
4049 list is completely filled.
4050
c1bab85b
AC
40512002-08-18 Andrew Cagney <ac131313@redhat.com>
4052
4053 * MAINTAINERS (Target Instruction Set Architectures): Rename
4054 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4055 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4056 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4057 already listed under Host/Native.
4058
4059 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4060 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4061 mips*-*-*.
4062
32089c7c
AC
40632002-08-17 Andrew Cagney <ac131313@redhat.com>
4064
4065 * config/ia64/ia64.mt: New file.
4066 * config/alpha/alpha.mt: New file.
4067 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4068 ia64-linux-gnu. Mention that ia64-elf is broken.
4069 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4070
b4671f85
MK
40712002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4072
4073 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4074 generic_func_frame_valid instead of func_frame_valid.
4075
c8edd8b4
JB
40762002-08-16 Joel Brobecker <brobecker@gnat.com>
4077
4078 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4079 procfs appears to be broken when debugging on multi-processor
4080 machines. So enable software single stepping in order to avoid
4081 using the procfs interface to do next/step operations, using
4082 internal breakpoints instead.
4083
4084 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4085 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4086 make this pc address equal to the value it would have if the
4087 system stepping capability was used. Also set a new flag used
4088 to ensure that we don't readjust the PC one more time later.
4089
4090 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4091 address by DECR_PC_AFTER_BREAK when software single step is
4092 in use for this architecture, as this has already been taken
4093 care of in handle_inferior_event().
4094
238617f6
JB
40952002-08-16 Joel Brobecker <brobecker@gnat.com>
4096
4097 * infrun.c (handle_inferior_event): Minor reformatting, to make
4098 a rather long condition expression easier to read.
4099
541a7aac
AC
41002002-08-16 Andrew Cagney <ac131313@redhat.com>
4101
4102 * Makefile.in (gdbtk.o): Move to end of file.
4103 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4104 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4105 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4106 (gdbtk-wrapper.o, gdbres.o): Ditto.
4107
f92d4a7b
AC
41082002-08-16 Andrew Cagney <ac131313@redhat.com>
4109
4110 * Makefile.in (copying.o): Separate out compile rule.
4111 (hpux-thread.o, procfs.o, signals.o): Ditto.
4112 (v850ice.o, z8k-tdep.o): Ditto.
4113 (tui-file.o): Move to TUI section.
4114 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4115 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4116
1cce71eb
JB
41172002-08-16 Joel Brobecker <brobecker@gnat.com>
4118
4119 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4120 skip_trampoline_code, for better namespace-proofing.
4121
4122 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4123
0851f23d
JB
41242002-08-16 Joel Brobecker <brobecker@gnat.com>
4125
4126 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4127
f8d40ec8
JB
41282002-08-16 Joel Brobecker <brobecker@gnat.com>
4129
4130 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4131 signal, check whether we hit a breakpoint before checking for a
4132 single step breakpoint. Otherwise, GDB fails to notice that a
4133 breakpoint has been hit when stepping onto a breakpoint.
4134
63d022e0
KS
41352002-08-16 Keith Seitz <keiths@redhat.com>
4136
4137 * gdb-events.sh (clear_gdb_event_hooks): New function.
4138 * gdb-events.c: Regenerate.
4139 * gdb-events.h: Regenerate.
4140
6e31adb3
AC
41412002-08-16 Andrew Cagney <ac131313@redhat.com>
4142
4143 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4144 not_a_sw_breakpoint.
4145 * breakpoint.h (bpstat_stop_status): Add parameter names.
4146
c8189ed1
GS
41472002-08-16 Grace Sainsbury <graces@redhat.com>
4148
4149 * remote.c (remote_insert_hw_breakpoint)
4150 (remote_remove_hw_breakpoint): Fix calculation of length field
4151 for Z-packet.
4152
d05285fa
MS
41532002-08-15 Michael Snyder <msnyder@redhat.com>
4154
466d7106
MS
4155 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4156 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4157 (supply_fpregset): Ditto.
4158
d05285fa
MS
4159 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4160 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4161 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4162 (TARGET_READ_SP): Delete.
bf1f5b4c 4163 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4164 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4165 Delete.
4166 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4167 from macros to functions.
bf1f5b4c 4168
d05285fa
MS
4169 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4170 (mips_register_convertible, mips_register_convert_to_virtual,
4171 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4172 (mips_read_sp): New function.
4173 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4174 (mips_do_registers_info): Make static.
4175 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4176 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4177 (mips_register_convert_from_type, mips_register_convert_to_type):
4178 New functions.
4179 (mips_gdbarch_init): Set up function_start_offset,
4180 register_virtual_size, pc_in_sigtramp.
d05285fa 4181
e76f1f2e
AC
41822002-08-15 Andrew Cagney <ac131313@redhat.com>
4183
4184 * infcmd.c (vector_info): New function.
4185 (_initialize_infcmd): Add command "info vector".
4186 (print_vector_info): New function.
4187
4188 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4189 * gdbarch.h, gdbarch.c: Regenerate.
4190
4782dc19
AC
41912002-08-15 Andrew Cagney <ac131313@redhat.com>
4192
4193 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4194 ``print_all''. Only print vector registers when ``print_all''.
4195
23e3a7ac
AC
41962002-08-15 Andrew Cagney <ac131313@redhat.com>
4197
8e186fd6
AC
4198 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4199 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4200
23e3a7ac
AC
4201 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4202 Add `args' parameter.
4203 * gdbarch.h, gdbarch.c: Regenerate.
4204
4205 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4206
4207 * infcmd.c (float_info): Call print_float_info.
4208 (print_float_info): New function. By default, print the
4209 floating-point registers.
4210
4211 * arch-utils.h (default_print_float_info): Delete declaration.
4212 * arch-utils.c (default_print_float_info): Delete function.
4213
e0ca2bb9
MK
42142002-08-16 Mark Kettenis <kettenis@gnu.org>
4215
3f733acc
MK
4216 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4217 out define.
4218
7d8d2918
MK
4219 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4220 FRAME.
4221
1c7cc583
MK
4222 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4223 * configure.host: Make i[3456]86-*-aix host obsolete.
4224 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4225 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4226 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4227 config/i386/xm-i386aix.h: Make files obsolete.
4228 * i386aix-nat.c: Make file obsolete.
4229 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4230 (i386aix-nat.o): Make target obsolete.
4231
e0ca2bb9
MK
4232 * config/i386/nm-gnu.h: Removed.
4233 * config/i386/nm-i386gnu.h: New file.
4234 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4235 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4236 Moved here from ...
4237 * config/i386/tm-i386gnu.h: ... here. Removed.
4238 * config/i386/xm-i386gnu.h: Removed.
4239 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4240 (NAT_FILE): Set to nm-i386gnu.h.
4241 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4242 * i386-tdep.c: New file.
4243 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4244 (i386gnu-tdep.o): Specify dependencies.
4245
16057ec7 42462002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4247
6b99ee2e
MK
4248 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4249 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4250 Adjust a few comments to reflect reality a bit closer.
4251 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4252 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4253 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4254 target_insert_watchpoint, target_remove_watchpoint):
4255 Move defines to ...
4256 * config/i386/nm-i386sco5.h: ... here.
4257 (kernel_u_size): Add prototype. Improve a few comments and add
4258 protection against multiple inclusion.
4259
d9a6f65c
MK
4260 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4261 out define.
4262
047eff6a
MK
4263 * uw-thread.c (SP_ARG0): Define if not already defined.
4264 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4265
dcdb1290
MK
4266 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4267
5d2d0b2a
MK
4268 * config/i386/tm-i386.h: Don't include "regcache.h".
4269
61113f8b
MK
4270 * i387-tdep.h (i387_print_float_info): New prototype.
4271 * i387-tdep.c (print_i387_value, print_i387_ext,
4272 print_i387_status_word, print_i387_control_word): Add `struct
4273 ui_file *' argument and use it for output.
4274 (i387_print_float_info): Renamed from i387_float_info. Add
4275 `struct gdbarch *' and `struct ui_file *' arguments and use the
4276 latter for output.
4277 * i386-tdep.c: Include "i387-tdep.h".
4278 (i386_gdbarch_init): Set print_float_info.
4279 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4280 (FLOAT_INFO): Remove define.
4281
46e0f506
MS
42822002-08-13 Michael Snyder <msnyder@redhat.com>
4283
4284 * mips-tdep.c (mips_push_arguments): Rename to
4285 mips_eabi_push_arguments, and tune for EABI.
4286 (MIPS_REGS_HAVE_HOME_P): Delete.
4287 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4288 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4289 Delete references to mips_regs_have_home_p.
4290
409268de
KS
42912002-08-14 Keith Seitz <keiths@redhat.com>
4292
4293 * Makefile.in (install-gdbtk): Create insight plugin directory.
4294 Install plugins.tcl file.
4295
ffc6a242
KS
42962002-08-14 Keith Seitz <keiths@redhat.com>
4297
4298 * configure.in: Move SUBDIRS to near top of the file so that
4299 --enable options may add things to it.
4300 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4301 * configure: Regenerate.
4302
ebafbe83
MS
43032002-08-13 Michael Snyder <msnyder@redhat.com>
4304
4305 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4306 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4307 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4308
32f6f25d
AC
43092002-08-13 Andrew Cagney <ac131313@redhat.com>
4310
4311 * vax-tdep.c (vax_get_saved_register): Delete function.
4312 (vax_gdbarch_init): Update.
4313 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4314 (ns32k_gdbarch_init): Update.
4315 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4316 (alpha_gdbarch_init): Update.
4317
53826de9
AC
43182002-08-13 Andrew Cagney <cagney@redhat.com>
4319
4320 * regcache.c (init_regcache_descr): Overallocate the
4321 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4322 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4323 nr_raw_registers.
4324 (set_register_cached): Add range checking assertions. Use
4325 current_regcache.
4326
16057ec7 43272002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4328
4329 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4330 numbers for MMX registers.
4331
7b4c2dce
AC
43322002-08-13 Andrew Cagney <cagney@redhat.com>
4333
4334 * i386-tdep.c (i386_gdbarch_init): Use
4335 generic_unwind_get_saved_register.
4336
1e03ad20
KB
43372002-08-13 Kevin Buettner <kevinb@redhat.com>
4338
4339 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4340 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4341 target vector.
4342 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4343 Delete. Add comment regarding this now-deleted target method.
4344
548bcbec
SC
43452002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4346
4347 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4348 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4349 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4350 real PC and the page number (if it's within the memory bank window).
4351 (m68hc11_pseudo_register_write): Likewise when saving.
4352 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4353 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4354 (m68hc11_register_raw_size): And use 32-bit for it.
4355 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4356 16K memory bank is used by the prog; also use the virtual pc.
4357
7df11f59
SC
43582002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4359
4360 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4361 (m68hc11_gdbarch_init): Install it in gdbarch.
4362 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4363 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4364 (MSYMBOL_SIZE): New for documentation.
4365 (insn_return_kind): Enum to specify how a function returns.
4366 (frame_extra_info): Cleanup and record the return mode.
4367 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4368 register in address computation.
4369 (m68hc11_get_return_insn): New to obtain the return instruction used
4370 by the function.
4371 (m68hc11_frame_init_saved_regs): Take into account the return
4372 instruction used by the function for far and interrupt functions.
4373 (m68hc11_init_extra_frame_info): Take into account page register.
4374 (m68hc11_frame_args_address): Adjust according to the return mode.
4375 (show_regs): Print page register only when it's used.
4376
5706502a
SC
43772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4378
4379 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4380 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4381 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4382 registers.
4383 (m68hc11_register_raw_size): Likewise.
4384
28fc6740
AC
43852002-08-13 Andrew Cagney <cagney@redhat.com>
4386
4387 * i386-tdep.c (i386_register_name): Handle mmx registers.
4388 (mmx_regnum_p): New function.
4389 (i386_mmx_names): New array.
4390 (mmx_num_regs): New variable.
4391 (i386_pseudo_register_read): New function.
4392 (i386_pseudo_register_write): New function.
4393 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4394
4395 * regcache.c (regcache_raw_read_unsigned): New function.
4396 (regcache_raw_read_signed): New function.
4397 * regcache.h (regcache_raw_read_unsigned): Declare.
4398 (regcache_raw_read_signed): Declare.
4399
a378f419
AC
44002002-08-13 Andrew Cagney <cagney@redhat.com>
4401
4402 * regcache.c (regcache_raw_read_as_address): Delete function.
4403 (regcache_cooked_read_signed): New function.
4404 (regcache_cooked_read_unsigned): New function.
4405 * regcache.h (regcache_cooked_read_signed): Declare.
4406 (regcache_cooked_read_unsigned): Declare.
4407 (regcache_raw_read_as_address): Delete declaration.
4408
4409 * blockframe.c (generic_read_register_dummy): Use
4410 regcache_cooked_read_unsigned.
4411 * i386-tdep.c (i386_extract_struct_value_address): Use
4412 regcache_cooked_read_unsigned.
4413
81967506
SC
44142002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4415
4416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4417 double sizes according to ELF ABI flags.
4418 (gdbarch_tdep): Record elf_flags.
4419
ffe1f3ee
SC
44202002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4421
4422 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4423 (m6812_prolog): They can appear in 68HC12 function prologue.
4424 (m68hc11_frame_chain): Cleanup.
4425
98216c5d
AC
44262002-08-12 Andrew Cagney <cagney@redhat.com>
4427
4428 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4429 declarations.
4430 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4431 (i386_linux_register_raw_size): Delete function.
4432 (i386_linux_init_abi): Update.
4433 * i386-tdep.c (i386_register_raw_size): Delete function.
4434 (i386_register_byte): Delete function.
4435 (i386_gdbarch_init): Update.
4436 (i386_register_size): Delete array.
4437 (i386_register_offset): Delete array.
4438
4439 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4440 (REGISTER_RAW_SIZE): Delete macro.
4441 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4442 (REGISTER_BYTE): Delete macro.
4443
3b19021e
AS
44442002-08-11 Aidan Skinner <aidan@velvet.net>
4445
4446 * ada-lang.c (ada_lookup_partial_symbol)
4447 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4448 prototype names so that grep ^func works properly.
4449
4450 * ada-lang.c (ada_array_element_type)
4451 (ada_lookup_partial_symbol): Fix typos in parameter list.
4452
4453 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4454 Fix prototype names so that grep ^func works properly.
4455
b063e7a2
AC
44562002-08-10 Andrew Cagney <cagney@redhat.com>
4457 Elena Zannoni <ezannoni@redhat.com>
4458 Martin M. Hunt <hunt@redhat.com>
4459
4460 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4461 (build_builtin_type_vec128i): Set the vector bit.
4462 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4463 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4464 (build_builtin_type_vec64): New function.
4465 (build_builtin_type_vec64i): New function.
4466 (build_gdbtypes): Initialize builtin_type_vec64 and
4467 builtin_type_vec64i.
4468
a7e3c2ad
AC
44692002-08-09 Andrew Cagney <cagney@redhat.com>
4470
4471 * regcache.c (regcache_dump): Compare the register offset
4472 with REGISTER_BYTE.
4473 * arch-utils.c (generic_register_byte): New function.
4474 * arch-utils.h (generic_register_byte): Declare.
4475 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4476 * gdbarch.h, gdbarch.c: Regenerate.
4477
af030b9a
AC
44782002-08-09 Andrew Cagney <cagney@redhat.com>
4479
4480 * regcache.c: Include "gdbcmd.h"
4481 (_initialize_regcache): Add commands "maintenance print
4482 registers", "maintenance print raw-registers" and "maintenance
4483 print cooked-registers".
4484 (enum regcache_dump_what): Define.
4485 (dump_endian_bytes): New function.
4486 (regcache_dump): New function.
4487 (regcache_print): New function.
4488 (maintenance_print_registers): New function.
4489 (maintenance_print_raw_registers): New function.
4490 (maintenance_print_cooked_registers): New function.
4491 * Makefile.in (regcache.o): Update dependencies.
4492
cb3d25d1
MS
44932002-08-09 Michael Snyder <msnyder@redhat.com>
4494
4495 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4496 (mips_push_arguments): Correct some comments. Use paddr_nz
4497 for printing addresses in debug output. Replace static
4498 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4499 (mips_n32n64_push_arguments): New function, cloned from
4500 mips_push_arguments and tuned for the n32/n64 ABI.
4501 (mips_push_register): Buffer needs dynamic allocation.
4502 (mips_print_register): Ditto.
4503 (do_gp_register_row): Ditto.
4504 (mips_store_return_value): Ditto.
4505 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4506
2163ab9d
DH
45072002-08-09 Don Howard <dhoward@redhat.com>
4508
4509 * memattr.c (mem_info_command): Print special case of upper bound
4510 as max CORE_ADDR + 1.
4511
b78bcb18
MS
45122002-08-08 Michael Snyder <msnyder@redhat.com>
4513
4514 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4515 returns structs by ref if they're too big to fit in two registers.
4516
ffabd70d
KB
45172002-08-09 Kevin Buettner <kevinb@redhat.com>
4518
4519 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4520 saved regs value.
4521 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4522 mips_find_saved_regs().
4523 (mips_pop_frame): Likewise.
4524
fbcdb4a3
KB
45252002-08-09 Kevin Buettner <kevinb@redhat.com>
4526
4527 * blockframe.c (frame_saved_regs_register_unwind): Revise
4528 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4529 frames are in use.
4530
3c3bea1c
GS
45312002-08-09 Grace Sainsbury <graces@redhat.com>
4532
4533 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4534 T-packets; the 'a' is not taken as a register number.
4535 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4536 (remote_stopped_data_address): New functions; add to target
4537 vector.
4538 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4539 prototypes to match other implementations of this
4540 function. replace integer argument with pointer -- the length
4541 field in the Z-packet is the length of what is pointed to or 1 if
4542 pointer is null. Add to target vector.
4543 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4544 target vector.
4545
4546 From Mark Salter:
4547 * remote.c (remote_wait): Add support to extract optional
4548 watchpoint information from T-packet. Ignore unrecognized
4549 optional info in T-packet.
4550 (remote_async_wait): Ditto.
4551
5d1d95de
CV
45522002-08-09 Corinna Vinschen <vinschen@redhat.com>
4553
4554 * cli/cli-dump.c: Change fopen modes to use binary open modes
4555 as defined in include/fopen-bin.h throughout.
4556
c86b5b38
MS
45572002-08-08 Michael Snyder <msnyder@redhat.com>
4558
4559 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4560
b30590dc
KB
45612002-08-08 Kevin Buettner <kevinb@redhat.com>
4562
4563 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4564 assertion failure by returning early after a warning.
4565
498868ed
KB
45662002-08-08 Kevin Buettner <kevinb@redhat.com>
4567
4568 * mips-tdep.c (mips_find_saved_regs): Make static.
4569 (mips_frame_init_saved_regs): New function.
4570 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4571 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4572 (mips_find_saved_regs): Delete declaration.
4573
b2dd6311
GS
45742002-08-08 Grace Sainsbury <graces@redhat.com>
4575
3c3bea1c
GS
4576 * remote.c (remote_wait, remote_async_wait): Change
4577 thread_num from int to ULONGEST.
4578 (unpack_varlen_hex): Change result parameter from
4579 int * to ULONGEST *.
b2dd6311 4580
ea47855f
AC
45812002-08-08 Andrew Cagney <ac131313@redhat.com>
4582
4583 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4584 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4585 powerpc*-*-*.
4586 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4587
69db8bae
AC
45882002-08-08 Andrew Cagney <cagney@redhat.com>
4589
4590 * gcore.c (override_derive_stack_segment): Delete variable.
4591 (preempt_derive_stack_segment): Delete function.
4592 (derive_stack_segment): Delete function.
4593 (default_derive_stack_segment): Renamed to derive_stack_segment.
4594 (override_derive_heap_segment): Delete variable.
4595 (preempt_derive_heap_segment): Delete function.
4596 (derive_heap_segment): Delete function.
4597 (default_derive_heap_segment): Rename to derive_heap_segment.
4598
cb811fe7
MS
45992002-08-06 Michael Snyder <msnyder@redhat.com>
4600
4601 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4602 * mips-tdep.c (mips_EABI_use_struct_convention,
4603 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4604 New functions. (mips_use_struct_convention): Delete.
4605 (mips_gdbarch_init): set use_gdbarch_convention.
4606
8b389c40
MS
46072002-08-06 Michael Snyder <msnyder@redhat.com>
4608
4609 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4610 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4611 mips_o32_reg_struct_has_addr): New functions.
4612 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4613
5c27f28a
AC
46142002-08-07 Andrew Cagney <ac131313@redhat.com>
4615
4616 * regcache.c (pseudo_register): Delete function.
4617 (fetch_register): Delete function.
4618 (store_register): Delete function.
4619 (regcache_raw_read, legacy_read_register_gen): Use
4620 target_fetch_registers instead of fetch_register.
4621 (legacy_write_register_gen, regcache_raw_write): Use
4622 target_store_register instead of store_register.
4623 (write_register_bytes): Ditto.
4624
4625 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4626 (STORE_PSEUDO_REGISTER): Delete.
4627 * gdbarch.h, gdbarch.c: Regenerate.
4628
5b331675
CV
46292002-08-06 Corinna Vinschen <vinschen@redhat.com>
4630
4631 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4632 write dump file binary.
4633
6acdf5c7
MS
46342002-08-05 Michael Snyder <msnyder@redhat.com>
4635
4636 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4637 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4638 (mips_gdbarch_init): Set N32 target to be mips64.
4639
b2f01c35
KB
46402002-08-06 Kevin Buettner <kevinb@redhat.com>
4641
4642 * frame.c (find_saved_register): Break out of loop once saved
4643 register address is found. Don't mention sparc in loop comment
4644 anymore.
4645
63db5580
KB
46462002-08-06 Kevin Buettner <kevinb@redhat.com>
4647
4648 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4649 mips_default_saved_regsize to 8.
4650
5e34e75e
AC
46512002-08-06 Andrew Cagney <ac131313@redhat.com>
4652
4653 * gcore.c: Do not include <sys/procfs.h>.
4654 * Makefile.in (gcore.o): Update dependencies.
4655
eb4c54a2
AC
46562002-08-06 Andrew Cagney <cagney@redhat.com>
4657
4658 * configure.tgt: Make arc-*-* obsolete.
4659 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4660 * MAINTAINERS: Make arc-elf obsolete.
4661 * arc-tdep.c: Make file obsolete.
4662 * config/arc/arc.mt: Ditto.
4663 * config/arc/tm-arc.h: Ditto.
4664
ced15480
TR
46652002-08-05 Theodore A. Roth <troth@verinet.com>
4666
c1bab85b 4667 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4668
b4743822
AC
46692002-08-05 Andrew Cagney <ac131313@redhat.com>
4670
4671 * mcore-tdep.c (mcore_gdbarch_init): Use
4672 generic_unwind_get_saved_register instead of
4673 generic_get_saved_register.
4674 * v850-tdep.c (v850_gdbarch_init): Ditto.
4675 * frv-tdep.c (frv_gdbarch_init): Ditto.
4676 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4677 * s390-tdep.c (s390_gdbarch_init): Ditto.
4678 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4679 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4680 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4681
3956d554
JB
46822002-08-05 Joel Brobecker <brobecker@gnat.com>
4683
4684 * objfiles.h: Add missing #include "symfile.h"
4685
4686 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4687
8249c0d6
AC
46882002-08-04 Andrew Cagney <ac131313@redhat.com>
4689
4690 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4691 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4692 of FIELD_BITSIZE.
4693
b9d14705
DJ
46942002-08-04 Daniel Jacobowitz <drow@mvista.com>
4695
4696 * NEWS: Cleanup and nitpick.
4697
dd73b9bb
AC
46982002-08-03 Andrew Cagney <ac131313@redhat.com>
4699
4700 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4701
043a27f8
AC
47022002-08-03 Andrew Cagney <ac131313@redhat.com>
4703
4704 * Makefile.in (gdbtk-bp.o): Update dependencies.
4705 (gdbtk-register.o): Ditto.
4706 (gdbtk-varobj.o): Ditto.
4707
46ce284d
AC
47082002-08-03 Andrew Cagney <cagney@redhat.com>
4709
4710 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4711 m68hc11_fetch_pseudo_register.
4712 (m68hc11_pseudo_register_write): Replace
4713 m68hc11_store_pseudo_register.
4714 (m68hc11_gdbarch_init): Update.
4715
b66d6d2e
AC
4716Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4717
4718 * gdbarch.sh: Include "gdb_string.h".
4719 * gdbarch.c: Regenerate.
4720
4721 * regcache.c: Include "gdb_string.h".
4722 * ax-general.c: Ditto.
4723 * varobj.c: Ditto.
4724 * std-regs.c: Ditto.
4725 * fbsd-proc.c: Ditto.
4726 * thread.c: Ditto.
4727
4728 * Makefile.in (regcache.o): Update dependencies.
4729 (thread.o, gdbarch.o): Ditto.
4730 (ax-general.o, gdbarch.o): Ditto.
4731 (varobj.o, std-regs.o): Ditto.
4732 (fbsd-proc.o): Specify dependencies.
4733
29e1842b
AC
47342002-08-02 Andrew Cagney <cagney@redhat.com>
4735
4736 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4737 regnum.
4738 (regcache_cooked_write): Ditto.
4739
68365089
AC
47402002-08-02 Andrew Cagney <ac131313@redhat.com>
4741
4742 * regcache.c (regcache_cooked_read): New function.
4743 (regcache_cooked_write): New function.
4744 (read_register_gen): Rewrite using regcache_cooked_read.
4745 (write_register_gen): Rewrite using regcache_cooked_write.
4746
4747 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4748 Declare.
4749
d8124050
AC
47502002-08-02 Andrew Cagney <cagney@redhat.com>
4751
4752 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4753 Replace the architecture methods register_read and register_write.
4754 * gdbarch.h, gdbarch.c: Regenerate.
4755 * regcache.c (init_regcache_descr): Update.
4756 (read_register_gen): Update.
4757 (write_register_gen): Update.
4758 (supply_register): Update comment.
4759
4760 * sh-tdep.c (sh_gdbarch_init): Update.
4761 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4762 `regcache' and `gdbarch' parameters. Make `buffer' a void
4763 pointer. Update code.
4764 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4765 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4766 void pointer. Update code.
4767 (sh64_register_write): Delete.
4768 (sh4_register_read): Delete.
4769 (sh64_register_read): Delete.
4770 (sh4_register_write): Delete.
4771 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4772 void pointer, `to' parameter a void pointer.
4773 (sh_sh64_register_convert_to_raw): Ditto.
4774
a6425924
KB
47752002-08-01 Kevin Buettner <kevinb@redhat.com>
4776
4777 * mips-tdep.c (mips_register_virtual_type): Use architecture
4778 invariant return values.
4779
ff5922b5
AC
47802002-08-01 Andrew Cagney <cagney@redhat.com>
4781
4782 * linux-proc.c: Include "gdb_string.h".
4783 * Makefile.in (linux-proc.o): Update dependency list.
4784
32a6503c
KB
47852002-08-01 Kevin Buettner <kevinb@redhat.com>
4786
4787 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4788 comment.
4789
ccaa32c7
GS
47902002-08-01 Grace Sainsbury <graces@redhat.com>
4791
4792 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4793 to_insert_watchpoint, to_remove_watchpoint,
4794 to_stopped_by_watchpoint, to_stopped_data_address,
4795 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4796 target vecctor. Define their corresponding macros so they call
4797 them.
4798
4799 * target.c: Add default and debug versions of for
4800 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4801 to_insert_watchpoint, to_remove_watchpoint,
4802 to_stopped_by_watchpoint, to_stopped_data_address,
4803 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4804
78fde5f8
KB
48052002-08-01 Kevin Buettner <kevinb@redhat.com>
4806
4807 * mips-tdep.c (mips_register_virtual_type): New function.
4808 (mips_gdbarch_init): Register mips_register_virtual_type()
4809 with gdbarch machinery.
4810 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4811 this file instead of tm-bigmips.h.
4812 (MIPS_REGSIZE): Delete this macro.
4813 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4814 multiarch version in mips-tdep.c will be found.
4815
db034ac5
AC
48162002-08-01 Andrew Cagney <cagney@redhat.com>
4817
4818 * NEWS: Menion that CHILL has been made obsolete.
4819
4820 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4821 * stabsread.c (read_range_type): Ditto.
4822 * gdbtypes.h: Ditto.
4823 * language.c (binop_type_check): Ditto.
4824 (binop_result_type): Ditto.
4825 (integral_type): Ditto.
4826 (character_type): Ditto.
4827 (string_type): Ditto.
4828 (boolean_type): Ditto.
4829 (structured_type): Ditto.
4830 (lang_bool_type): Ditto.
4831 (binop_type_check): Ditto.
4832 * language.h (_LANG_chill): Ditto.
4833 * dwarfread.c (set_cu_language): Ditto.
4834 * dwarfread.c (CHILL_PRODUCER): Ditto.
4835 * dwarfread.c (handle_producer): Ditto.
4836 * expression.h (enum exp_opcode): Ditto.
4837 * eval.c: Ditto for comments.
4838 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4839 * expprint.c (print_subexp): Ditto.
4840 (print_subexp): Ditto.
4841 * valops.c (value_cast): Ditto.
4842 (search_struct_field): Ditto.
4843 * value.h (COERCE_VARYING_ARRAY): Ditto.
4844 * symfile.c (init_filename_language_table): Ditto.
4845 (add_psymbol_with_dem_name_to_list): Ditto.
4846 * valarith.c (value_binop): Ditto.
4847 (value_neg): Ditto.
4848 * valops.c (value_slice): Ditto.
4849 * symtab.h (union language_specific): Ditto.
4850 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4851 (SYMBOL_DEMANGLED_NAME): Ditto.
4852 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4853 * defs.h (enum language): Ditto.
4854 * symtab.c (got_symtab): Ditto.
4855 * utils.c (fprintf_symbol_filtered): Ditto.
4856
4857 * ch-typeprint.c: Make file obsolete.
4858 * ch-valprint.c: Make file obsolete.
4859 * ch-lang.h: Make file obsolete.
4860 * ch-exp.c: Make file obsolete.
4861 * ch-lang.c: Make file obsolete.
4862
4863 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4864 CHILL_LIB.
4865 (TARGET_FLAGS_TO_PASS): Ditto.
4866 (CHILLFLAGS): Obsolete.
4867 (CHILL): Obsolete.
4868 (CHILL_FOR_TARGET): Obsolete.
4869 (CHILL_LIB): Obsolete.
4870 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4871 ch-valprint.c.
4872 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4873 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4874 ch-lang.o.
4875 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4876 targets.
4877
8aaf0b47
JB
48782002-07-31 Joel Brobecker <brobecker@gnat.com>
4879
4880 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4881 This does not change anything at the moment, but will be helpful
4882 later when full Ada support is integrated.
4883
f3a7b3a5
KB
48842002-07-31 Kevin Buettner <kevinb@redhat.com>
4885
4886 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4887 help message.
4888
fb850278
KB
48892002-07-31 Kevin Buettner <kevinb@redhat.com>
4890
4891 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4892 and save it in a local variable. Use variable in later test.
4893
e3bddbfa
KB
48942002-07-31 Kevin Buettner <kevinb@redhat.com>
4895
4896 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4897 test. (Thanks to Daniel Jacobowitz.)
4898
28d169de
KB
48992002-07-31 Kevin Buettner <kevinb@redhat.com>
4900
4901 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4902 (mips_abi_strings): Add "n64".
4903 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4904
7fe7e44e
KB
49052002-07-31 Kevin Buettner <kevinb@redhat.com>
4906
4907 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4908 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4909
c6caf090
KB
49102002-07-31 Kevin Buettner <kevinb@redhat.com>
4911
4912 * utils.c (host_pointer_to_address, address_to_host_pointer):
4913 Use gdb_assert() instead of explicit call to internal_error().
4914
c41669e0
KB
49152002-07-30 Kevin Buettner <kevinb@redhat.com>
4916
4917 * Makefile.in (rs6000-nat.o): Update dependencies.
4918
4919 From Nicholas Duffek:
4920 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4921 (aix-thread.o): New rule.
4922 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4923 * config/powerpc/aix432.mh: New file.
4924
2fda4977
DJ
49252002-07-30 Daniel Jacobowitz <drow@mvista.com>
4926
4927 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4928 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4929 (fetch_core_registers, ppc_linux_supply_gregset)
4930 (ppc_linux_supply_fpregset): New functions.
4931 (ppc_linux_regset_core_fns): New.
4932 (_initialize_ppc_linux_tdep): Call add_core_fns.
4933 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4934 and ppc_linux_supply_gregset.
4935 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4936 (supply_fpregset): Call ppc_linux_supply_fpregset.
4937 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4938 corelow.o.
4939 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4940
729051e6
DJ
49412002-07-30 Daniel Jacobowitz <drow@mvista.com>
4942
4943 * symtab.c (lookup_symbol): Demangle before lowercasing.
4944
5f8a3188
AC
49452002-07-30 Andrew Cagney <ac131313@redhat.com>
4946
4947 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4948 declaration.
4949 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4950 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4951 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4952 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4953 "gdb_string.h".
4954 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4955 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4956 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4957 (avr-tdep.o, mon960-rom.o): Ditto.
4958 (aout_stabs_gnu_h): Define.
4959 (symtab_h): Remove $(gdb_obstack_h).
4960
67f07146
JB
49612002-07-30 Jim Blandy <jimb@redhat.com>
4962
4963 Patch from David Carlton <carlton@math.stanford.edu>:
4964 * gdbinit.in: Move the `dir' commands that add GDB's own source
4965 directory to the search path to the end, so that the `gdb' source
4966 directory will be searched first.
4967
04ea0df1
AC
49682002-07-29 Andrew Cagney <ac131313@redhat.com>
4969
4970 * gdb_obstack.h: New file.
4971 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4972 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4973 * objfiles.h: Include "gdb_obstack.h".
4974 * Makefile.in (gdb_obstack_h): Define.
4975 (symtab_h): Add $(gdb_obstack_h).
4976 (objfiles_h): Add $(gdb_obstack_h).
4977
4978 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4979 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4980 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4981 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4982 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4983 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4984 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4985 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4986
4987 * Makefile.in (bcache.o): Update dependencies.
4988 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4989 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4990 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4991 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4992 (stabsread.o, symfile.o, symmisc.o): Ditto.
4993 (symtab.o, typeprint.o, macroexp.o): Ditto.
4994 (macrotab.o, mdebugread.o): Ditto.
4995 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4996 (coff_ecoff_h, aout_aout64_h): Define.
4997 (aout_stabs_gnu_h, libaout_h): Define.
4998
d138e37a
AC
49992002-07-29 Andrew Cagney <cagney@redhat.com>
5000
5001 * regcache.c (struct regcache_descr): Rename nr_registers to
5002 nr_cooked_registers. Revise comments describing the structure
5003 member fields.
5004 (init_regcache_descr): Update.
5005 (init_legacy_regcache_descr): Update.
5006 (read_register_gen, write_register_gen): When a cooked register in
5007 the raw register range, directly access the value from the raw
5008 register cache.
5009
460e6ec3
AC
50102002-07-29 Andrew Cagney <ac131313@redhat.com>
5011
5012 * z8k-tdep.c: Do not include "obstack.h".
5013 * h8300-tdep.c, h8500-tdep.c: Ditto.
5014 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5015 * valprint.c, v850-tdep.c: Ditto.
5016 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5017 * mn10200-tdep.c: Ditto.
5018
5019 * Makefile.in (z8k-tdep.o): Update dependencies.
5020 (m68hc11-tdep.o, valprint.o): Ditto.
5021 (v850-tdep.o, d10v-tdep.o): Ditto.
5022 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5023 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5024 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5025 (sh_opc_h, gdb_sim_sh_h): Define.
5026 (elf_sh_h, elf_bfd_h): Define.
5027 (opcode_m68hc11_h): Define.
5028 (OPCODES_SRC, OPCODES_DIR): define.
5029 (OPCODES): Use $(OPCODES_DIR).
5030 (gdb_sim_d10v_h): Rename sim_d10v_h.
5031 (gdb_sim_arm_h): Rename sim_arm_h.
5032
790c9cf0
KB
50332002-07-26 Kevin Buettner <kevinb@redhat.com>
5034
5035 * utils.c (host_pointer_to_address, address_to_host_pointer):
5036 Change internal_error() message to indicate function responsible
5037 for the error.
5038
9647fa49
KB
50392002-07-26 Kevin Buettner <kevinb@redhat.com>
5040
5041 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5042 calls to local_hex_string_custom().
5043
dabbe2c0
KB
50442002-07-26 Kevin Buettner <kevinb@redhat.com>
5045
5046 * irix5-nat.c: Move IRIX shared library support from here...
5047 * solib-irix.c: ...to here. Revised substantially to work with
5048 generic solib framework.
5049
b96d0a4e
KB
5050 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5051 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5052 * mips-irix-tdep.c: New file.
5053
313fb2f6
KB
5054 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5055 (mips-irix-tdep.o, solib-irix.o): New rules.
5056 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5057 solib-irix.o.
5058 * config/mips/irix6.mt (TDEPFILES): Likewise.
5059 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5060
ab2eaf26
KB
50612002-07-26 Kevin Buettner <kevinb@redhat.com>
5062
177e4768 5063 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5064 disabled (via ``#if 0'') includes.
5065
7244546a
KB
50662002-07-26 Kevin Buettner <kevinb@redhat.com>
5067
5068 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5069 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5070 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5071 Add support for the fpscr register.
5072 * rs6000-nat.c (regmap, fetch_inferior_registers)
5073 (store_inferior_registers, fetch_core_registers): Likewise.
5074
dd7be90a
KB
50752002-07-26 Kevin Buettner <kevinb@redhat.com>
5076
5077 * rs6000-nat.c (language.h): Include.
5078 (special_regs): Delete this array.
5079 (regmap): New function.
5080 (fetch_register, store_register): Use regmap() to map gdb
5081 register numbers to ptrace register numbers. Also, use
5082 outputs from regmap() to make decisions regarding type of
5083 ptrace() call to make. In particular, don't compare against
5084 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5085 (fetch_inferior_registers, store_inferior_registers): Where
5086 possible, obtain register numbers from tdep struct. Don't
5087 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5088 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5089 (LAST_UISA_SP_REGNUM): Delete.
5090
11bf77db
KB
50912002-07-25 Kevin Buettner <kevinb@redhat.com>
5092
5093 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5094 (fetch_registers, store_register, fetch_core_registers): Don't
5095 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5096 regcache_collect() as appropriate.
5097 (find_toc_address): Format hex address with local_hex_string().
5098
06afebeb
AC
50992002-07-25 Andrew Cagney <ac131313@redhat.com>
5100
5101 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5102 bfd/elf32-frv.c.
5103
8c554d79
TT
51042002-07-24 Tom Tromey <tromey@redhat.com>
5105
5106 * jv-exp.y: Marked all strings with _().
5107 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5108 internal_error.
5109 (MethodInvocation, CastExpression, parse_number, yyerror,
5110 java_type_from_name, push_expression_name, yylex): Typo fixes.
5111
e4c242d9
DJ
51122002-07-24 Daniel Jacobowitz <drow@mvista.com>
5113
5114 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5115 (tee_file_flush, tee_file_write, tee_file_fputs)
5116 (tee_file_isatty): New.
5117 * ui-file.h (tee_file_new): Add prototype.
5118
ebf56fd3
AS
51192002-07-24 Aidan Skinner <aidan@velvet.net>
5120
5121 * ada-lang.c: Change k&r style function definitions to prototyped
5122 form.
5123 * ada-typeprint.c: Change k&r style function definitions to prototyped
5124 form.
5125 * ada-valprint.c: Change k&r style function definitions to prototyped
5126 form.
5127
7fb623f7
AC
51282002-07-24 Andrew Cagney <cagney@redhat.com>
5129
5130 * README: Remove reference to remote-bug.
5131 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5132 remote-bug.c.
5133 (m88k-nat.o): Delete rule.
5134 (m88k-tdep.o): Delete rule.
5135 (remote-bug.o): Delete rule.
5136 * MAINTAINERS: Mark as obsolete.
5137 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5138 * m88k-tdep.c: Make file obsolete.
5139 * config/m88k/m88k.mh: Ditto.
5140 * config/m88k/delta88v4.mh: Ditto.
5141 * config/m88k/delta88v4.mt: Ditto.
5142 * config/m88k/delta88.mt: Ditto.
5143 * config/m88k/delta88.mh: Ditto.
5144 * remote-bug.c: Ditto.
5145 * config/m88k/tm-delta88.h: Ditto.
5146 * config/m88k/nm-delta88v4.h: Ditto.
5147 * config/m88k/xm-delta88.h: Ditto.
5148 * config/m88k/xm-dgux.h: Ditto.
5149 * config/m88k/tm-m88k.h: Ditto.
5150 * config/m88k/nm-m88k.h: Ditto.
5151 * config/m88k/tm-delta88v4.h: Ditto.
5152 * m88k-nat.c: Ditto.
5153 * cxux-nat.c: Ditto.
5154 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5155 and m88*-*-* obsolete.
5156 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5157 m88*-*-* obsolete.
5158
37611a2b
AC
51592002-07-24 Andrew Cagney <cagney@redhat.com>
5160
5161 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5162 constant. Same for local pointer variables.
5163 (extract_signed_integer): Ditto.
5164 * defs.h (extract_unsigned_integer): Update.
5165 (extract_signed_integer): Update.
5166
1aaa5f99
AC
51672002-07-24 Andrew Cagney <cagney@redhat.com>
5168
5169 * regcache.c (regcache_raw_write): Change buf parameter to a
5170 constant void pointer.
5171 (regcache_raw_read): Change buf parameter to a void pointer.
5172 (legacy_write_register_gen): Change myaddr parameter a constant
5173 void pointer.
5174 (supply_register): Change val parameter to a const void pointer.
5175 * regcache.h (regcache_raw_write): Update declaration.
5176 (regcache_raw_read): Update declaration.
5177 (supply_register): Update declaration.
5178
b4f5539f
TT
51792002-07-24 Tom Tromey <tromey@redhat.com>
5180
5181 * defs.h (gdb_readline_wrapper): Declare.
5182 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5183 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5184 * top.c (gdb_readline_wrapper): New function.
5185 (command_line_input): Use it.
5186
0818c12a
AC
51872002-07-24 Andrew Cagney <cagney@redhat.com>
5188
5189 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5190 regcache_read and regcache_write.
5191 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5192 * regcache.c: Update.
5193 * sh-tdep.c (sh64_push_arguments): Update comment.
5194 (sh_pseudo_register_read): Update.
5195 (sh_pseudo_register_write): Update.
5196 (sh4_register_read): Update.
5197 (sh4_register_write): Update.
5198 (sh64_pseudo_register_read): Update.
5199 (sh64_pseudo_register_write): Update.
5200 (sh64_register_read): Update.
5201 (sh64_register_write): Update.
5202 * i386-tdep.c (i386_extract_return_value): Update.
5203 (i386_extract_struct_value_address): Update.
5204 (i386_extract_return_value): Update.
5205 * blockframe.c (generic_read_register_dummy): Update.
5206 (generic_call_dummy_register_unwind): Update
5207 * infrun.c (write_inferior_status_register): Update.
5208
f7321c06
JB
52092002-07-23 Jim Blandy <jimb@redhat.com>
5210
5211 * parser-defs.h (expression_context_pc): Make this extern.
5212 (Thanks to Michael Snyder.)
5213
2037aebb
AC
52142002-07-23 Andrew Cagney <ac131313@redhat.com>
5215
5216 GDB 5.2.1 released from 5.2 branch.
5217 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5218 * README: Update to mention 5.2.1.
5219
66504d44
MS
52202002-07-23 Mark Salter <msalter@redhat.com>
5221
5222 * remote.c (remote_read_bytes): Fix check for error.
5223
27bae383
KB
52242002-07-22 Kevin Buettner <kevinb@redhat.com>
5225
5226 * aix-thread.c (language.h): Include.
5227 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5228 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5229 Print newlines at end of debug messages.
5230 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5231 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5232
52332002-07-22 Kevin Buettner <kevinb@redhat.com>
5234
5235 * aix-thread.c (ppc-tdep.h): Include.
5236 (special_register_p): New function.
5237 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5238 (store_regs_user_thread): Use register number information from
5239 gdbarch_tdep struct instead of hardcoded offsets relative to
5240 FIRST_UISA_SP_REGNUM.
5241 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5242 special_register_p() instead of using FPLAST_REGNUM and
5243 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5244 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5245 will be MQ's register number.
5246
52472002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5248
5249 * aix-thread.c (ops): Rename to aix_thread_ops.
5250 (base_ops): Rename to base_target.
5251 (ops_attach): Rename to aix_thread_attach.
5252 (ops_detach): Rename to aix_thread_detach.
5253 (ops_resume): Rename to aix_thread_detach.
5254 (ops_wait): Rename to aix_thread_wait.
5255 (ops_kill): Rename to aix_thread_kill.
5256 (init_ops): Rename to init_aix_thread_ops.
5257 (ops_fetch_register): Rename to aix_thread_fetch_register.
5258 (ops_store_register): Rename to aix_thread_store_register.
5259 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5260 (ops_thread_alive): Rename to aix_thread_thread_alive.
5261 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5262 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5263 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5264 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5265 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5266 (store_regs_lib): Rename to store_regs_user_thread.
5267 (store_regs_kern): Rename to store_regs_kernel_thread.
5268
27bae383 52692002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5270
5271 * aix-thread.c (ops_prepare_to_store): Eliminate.
5272 (init_ops): Don't initialize ops.prepare_to_store.
5273 (store_regs_kern): Pre-fetch register buffers from child,
5274 because some registers may not be in the cache. Copy
5275 regs from register cache only if they are cached.
5276 (store_regs_lib): Copy regs from register cache only
5277 if they are cached.
5278 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5279 fill_gprs64): Ditto.
5280
61c5da0b
KB
52812002-07-22 Kevin Buettner <kevinb@redhat.com>
5282
5283 * aix-thread.c (gdb_assert.h): Include.
5284 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5285 register sizes (from register cache) match size of buffer holding
5286 register data.
5287 (fill_sprs32): Change parameter types to match those in the ptrace()
5288 buffer.
5289 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5290 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5291
52922002-07-22 Michael Snyder <msnyder@redhat.com>
5293
5294 * aix-thread.c (supply_sprs64): Cosmetic change.
5295 (supply_sprs32): Cosmetic change.
5296 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5297 (fill_sprs64): Use regcache_collect instead of read_register.
5298 (store_regs_lib): Use regcache_collect instead of
5299 read_register. Use fill_sprs32 instead of fill_sprs64,
5300 if debugging a 32-bit architecture.
5301 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5302 out of the register cache, instead of passing a pointer into
5303 the register cache directly to ptrace. Use regcache_collect
5304 insteaad of read_register.
5305 (ops_prepare_to_store): Use target_read_registers instead
5306 of read_register_bytes.
5307
36479eb1
AS
53082002-07-20 Aidan Skinner <aidan@velvet.net>
5309
5310 * MAINTAINERS: Add self under write after approval.
5311
80ae6ee2
AS
53122002-07-20 Aidan Skinner <aidan@velvet.net>
5313
5314 * ada-tasks.c: Change k&r style function definitions to prototyped
5315 form.
5316
8a8ab2b9
AC
53172002-07-19 Andrew Cagney <ac131313@redhat.com>
5318
5319 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5320 * x86-64-tdep.c: Include "objfiles.h".
5321 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5322 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5323
fb16b900
ML
53242002-07-17 Michal Ludvig <michal@suse.cz>
5325
5326 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5327 (update_context): Initialise cfa variable.
5328
0fe7bf7b
MS
53292002-07-17 Michael Snyder <msnyder@redhat.com>
5330
5331 * aix-thread.c: Shorten some long lines.
5332 Bring comments into line with code spec.
5333
488f131b
JB
53342002-07-18 Joel Brobecker <brobecker@gnat.com>
5335
5336 * infrun.c: Re-indent using gdb_indent.sh.
5337
46c415d2
JB
53382002-07-18 Joel Brobecker <brobecker@gnat.com>
5339
5340 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5341 Leave the indentation temporarily untouched, to minimize the diffs.
5342
cdecafbe
EZ
53432002-07-18 Elena Zannoni <ezannoni@redhat.com>
5344
5345 * stabsread.c: Make os9k sections of the code obsolete,
5346 for real this time.
5347 * stabsread.h: Make os9k sections of the code obsolete.
5348
7b6aa020
ML
53492002-07-18 Michal Ludvig <mludvig@suse.cz>
5350
09ec9b38
ML
5351 * linux-low.c (regsets_store_inferior_registers): Add free()
5352 at the end of a loop to prevent memory leak.
5353 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5354 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5355 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5356 line a comment.
4894ac5d 5357 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5358
233282cd
JB
53592002-07-17 Jim Blandy <jimb@redhat.com>
5360
5361 * macrocmd.c (info_macro_command): Remove newline from error
5362 message.
5363
7b6aa020 53642002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5365
5366 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5367 (sh_gdbarch_init): Use it for sh-dsp.
5368
f7ef9339
KB
53692002-07-16 Kevin Buettner <kevinb@redhat.com>
5370
5371 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5372 64-bit DWARF2 format.
5373
8dd72958
JB
53742002-07-16 Joel Brobecker <brobecker@gnat.com>
5375
5376 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5377 <sys/proc.h> when not available.
5378
a99a9e1b
AC
53792002-07-16 Andrew Cagney <ac131313@redhat.com>
5380
5381 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5382 * stabsread.c: Make os9k sections of the code obsolete.
5383 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5384 * config/i386/i386os9k.mt: Make file obsolete.
5385 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5386 (COMMON_OBS): Remove os9kread.o
5387 (SFILES): Remove os9kread.c.
5388 (os9kread.o, remote-os9k.o): Make target obsolete.
5389 * remote-os9k.c: Make file obsolete.
5390 * os9kread.c: Make file obsolete.
5391 * Makefile.in
5392
7a3085c1
AC
53932002-07-16 Andrew Cagney <ac131313@redhat.com>
5394
5395 * NEWS: Mention that the FR30 has been made obsolete.
5396 * fr30-tdep.c: Make file obsolete.
5397 * config/fr30/tm-fr30.h: Ditto.
5398 * config/fr30/fr30.mt: Ditto.
5399 * configure.tgt: Make fr30-*-elf obsolete.
5400 * MAINTAINERS: Make fr30-elf obsolete.
5401
28a93f5a
PM
54022002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5403
5404 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5405 found is not inside a section.
5406
be006b8b
KB
54072002-07-15 Kevin Buettner <kevinb@redhat.com>
5408
5409 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5410 strerror().
5411 (pdc_realloc): Use xrealloc() instead of realloc().
5412
14fa3751
KB
54132002-07-15 Kevin Buettner <kevinb@redhat.com>
5414
5415 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5416 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5417 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5418 macros.
5419
42cc437f
KB
54202002-07-15 Kevin Buettner <kevinb@redhat.com>
5421
5422 * aix-thread.c (ptrace_check): Eliminate goto.
5423 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5424 problem.
5425
8e2c28d4
KB
54262002-07-15 Kevin Buettner <kevinb@redhat.com>
5427
5428 * aix-thread.c (gdbcmd.h): Include.
5429 (DEBUG, DBG, DBG2, dbg): Eliminate.
5430 (debug_aix_thread): New static global.
5431 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5432 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5433 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5434 invocations to DBG and DBG2 macros to test against
5435 ``debug_aix_thread'' and call fprintf_unfiltered().
5436 (_initialize_aix_thread): Add new command "set debug aix-thread".
5437
30413464
AC
54382002-07-15 Andrew Cagney <ac131313@redhat.com>
5439
5440 From Gerhard Tonn <TON@de.ibm.com>:
5441 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5442 instead of supply_register.
5443
7c43edc1
AC
54442002-07-15 Andrew Cagney <ac131313@redhat.com>
5445
5446 * dwarf2cfi.c: Include "gdb_assert.h".
5447 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5448 non-NULL.
5449 (update_context): Do not use __func__. Add missing ``break''.
5450 (update_context): Do not use __func__.
5451
9364a0ef
EZ
54522002-07-15 Elena Zannoni <ezannoni@redhat.com>
5453
5454 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5455 and its setting. Set gdbarch instruction printing functions
5456 directly. For non-rs6000 case use new function
5457 gdb_print_insn_powerpc.
5458 (gdb_print_insn_powerpc): New function.
5459
3fbeef0b
AC
54602002-07-13 Andrew Cagney <ac131313@redhat.com>
5461
92eb23c5 5462 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5463 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5464 * configure.tgt: Mark d30v-*-* as obsolete.
5465 * d30v-tdep.c: Mark file as obsolete.
5466 * config/d30v/d30v.mt: Ditto.
5467 * config/d30v/tm-d30v.h: Ditto.
5468
aacb1f0a
AS
54692002-07-13 Aidan Skinner <aidan@velvet.net>
5470
5471 * ada-tasks.c (add_task_entry): replace calls to
5472 malloc() with xmalloc
5473 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5474
5475 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5476 ada_finish_decode_line_1, all_sals_for_line
5477 ada_breakpoint_rewrite): replace calls to free() with xfree()
5478
c11d79f2
KB
54792002-07-12 Kevin Buettner <kevinb@redhat.com>
5480
5481 From Nicholas Duffek (with minor changes by Martin Hunt,
5482 Louis Hamilton, and Kevin Buettner):
5483 * aix-thread.c: New file.
5484
8e19ed76
PS
54852002-07-12 Petr Sorfa <petrs@caldera.com>
5486
5487 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5488 complaint for invalid attribute class or form.
5489 (read_func_scope): DW_AT_frame_base
5490 better handling of DW_AT_block*.
5491 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5492 better handling of DW_AT_block*.
5493 (read_common_block): DW_AT_location
5494 better handling of DW_AT_block*.
5495 (read_partial_die): DW_AT_location better handling
5496 of DW_AT_block*.
5497 (new_symbol): DW_AT_external better handling of
5498 DW_AT_block*. Proper initialization of variable
5499 "addr".
5500 (attr_form_is_block): New function that returns true
5501 if the attribute's form is of DW_FORM_block*.
5502
295401f7
DJ
55032002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5504
5505 * valops.c (find_method_list): Remove comment about
5506 removed STATIC_MEMFUNCP argument.
5507 (value_find_oload_method_list): Likewise.
5508
e42dc924
KB
55092002-07-12 Kevin Buettner <kevinb@redhat.com>
5510
5511 From Nicholas Duffek:
5512 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5513 target_new_objfile_hook.
5514
6904b546
KB
55152002-07-12 Kevin Buettner <kevinb@redhat.com>
5516
5517 From Nicholas Duffek:
5518 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5519 csect.
5520
53fe9346
AC
55212002-07-12 Andrew Cagney <cagney@redhat.com>
5522
5523 * MAINTAINERS: Mention --enable-sim-build-warnings.
5524 (m68hc11-elf): Disable sim build warnings.
5525 (m32r-elf): Mark as broken obsolete candidate.
5526 (x86_64-linux-gnu): Mark as buildable with -Werror.
5527 (arm-elf): Change -w to ``,'' which enables warnings but not
5528 -Werror.
5529
af5f3db6
AC
55302002-07-12 Andrew Cagney <ac131313@redhat.com>
5531
5532 * bcache.h: Update copyright.
5533 (struct bstring, struct bcache): Move definition to "bcache.c".
5534 Replaced by opaque declaration.
5535 (bcache_xfree): Replace free_bcache.
5536 (bcache_xmalloc, bcache_memory_used): Declare.
5537
5538 * bcache.c: Update copyright.
5539 (struct bstring, struct bcache): Moved to here from "bcache.h".
5540 Update comments.
5541 (bcache_xmalloc, bcache_memory_used): New functions.
5542 (bcache_xfree): Replace function free_bcache.
5543
5544 * Makefile.in (objfiles.o): Add $(bcache_h).
5545 (objfiles_h): Remove $(bcache_h).
5546 (symfile.o): Add $(bcache_h).
5547
5548 * symmisc.c: Update copyright.
5549 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5550 (print_objfile_statistics): Use bcache_memory_used.
5551
5552 * symfile.c: Include "bcache.h".
5553 (reread_symbols): Use bcache_xfree.
5554 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5555 (add_psymbol_to_list): Pass psymbol_cache by value.
5556 (add_psymbol_with_dem_name_to_list): Ditto.
5557
5558 * objfiles.h: Update copyright.
5559 (struct bcache): Declare opaque. Do not include "bcache.h".
5560 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5561 bcache'' pointers.
5562 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5563
5564 * objfiles.c: Include "bcache.h". Update copyright.
5565 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5566 macro_cache.
5567 (free_objfile): Use bcache_xfree.
5568
444199e7
GS
55692002-07-11 Grace Sainsbury <graces@redhat.com>
5570
5571 * monitor.c (monitor_fetch_register): Make name a constant.
5572 (monitor_store_register): Same.
5573
261397f8
DJ
55742002-07-11 Daniel Jacobowitz <drow@mvista.com>
5575
5576 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5577 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5578 (finish_block) For non-function blocks, hash the symbol table. For
5579 function blocks, mark the symbol table as unhashed.
5580 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5581 (msymbol_hash_iw): Likewise.
5582 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5583 value.
5584 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5585 (lookup_minimal_symbol): Likewise for both.
5586 * symtab.h (struct block): Add `hashtable' flag. Comment the
5587 hashtable.
5588 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5589 (ALL_BLOCK_SYMBOLS): Update.
5590 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5591 (struct symbol): Add `hash_next' pointer.
5592 * symtab.c (lookup_block_symbol): Search using the hash table when
5593 possible.
5594 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5595 (search_symbols, find_addr_symbol): Likewise.
5596
5597 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5598 (read_dst_symtab): Likewise.
5599 * jv-lang.c (get_java_class_symtab): Likewise.
5600 * mdebugread.c: Include "gdb_assert.h".
5601 (shrink_block): Assert that the block being modified is not hashed.
5602 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5603 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5604 symbols.
5605 (dump_symtab): Recognize hashed blocks.
5606 * printcmd.c (print_frame_args): Assert that function blocks do not
5607 have hashed symbol tables.
5608 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5609 (fill_in_ada_prototype, debug_print_block): Likewise.
5610 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5611
6f0eaa01
CV
56122002-07-11 Corinna Vinschen <vinschen@redhat.com>
5613
5614 * stack.c (print_frame): Use result of frame_address_in_block()
5615 instead of fi->pc when evaluating symbols.
5616 (backtrace_command_1): Ditto.
5617
a208b0cb
AC
56182002-07-11 Andrew Cagney <cagney@redhat.com>
5619
5620 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5621 Make static.
5622
5623 * arm-tdep.c (arm_register_name): Make return type constant.
5624
a6b6b089
AC
56252002-07-10 Andrew Cagney <ac131313@redhat.com>
5626
5ae5f592
AC
5627 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5628 prototype.
5629 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5630 * s390-tdep.c (s390_fp_regnum): Ditto.
5631 (s390_read_fp): Ditto.
5632 (s390_pop_frame): Ditto.
5633 (_initialize_s390_tdep): Ditto.
5634 * remote.c (get_remote_state): Ditto.
5635 * procfs.c (mappingflags): Ditto.
5636 * memattr.c (_initialize_mem): Ditto.
5637 * mcore-tdep.c (mcore_pop_frame): Ditto.
5638 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5639 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5640 * language.c (set_case_str): Ditto.
5641 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5642 * frv-tdep.c (new_variant): Ditto.
5643 (frv_stopped_data_address): Ditto.
5644 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5645 (context_alloc): Ditto.
5646 (frame_state_alloc): Ditto.
5647 (unwind_tmp_obstack_init): Ditto.
5648 (unwind_tmp_obstack_free): Ditto.
5649 (cfi_read_fp): Ditto.
5650 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5651 (cris_pop_frame): Ditto.
5652 * c-lang.c (scanning_macro_expansion): Ditto.
5653 (finished_macro_expansion): Ditto.
5654 (c_preprocess_and_parse): Ditto.
5655 * gdbarch.sh: Ditto.
5656 * gdbarch.h, gdbarch.c: Regenerate.
5657 * config/mn10200/tm-mn10200.h: Adjust indentation.
5658 * target.c: Adjust indentation.
5659 * symtab.h: Adjust indentation.
5660 * stabsread.h: Adjust indentation.
5661 * remote-es.c: Adjust indentation.
5662 * os9kread.c: Adjust indentation.
5663
56642002-07-10 Andrew Cagney <ac131313@redhat.com>
5665
a6b6b089
AC
5666 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5667 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5668
a1789893
GS
56692002-07-10 Grace Sainsbury <graces@redhat.com>
5670
5671 * NEWS: Mention m68k, mcore multi-arching.
5672 * MAINTAINERS: Change status of m68k, mcore to reflect
5673 multi-arching.
5674
02f0d45d
DJ
56752002-07-10 Daniel Jacobowitz <drow@mvista.com>
5676
5677 * valops.c (find_overload_match): Free oload_syms.
5678
f15f768e
JB
56792002-07-09 Joel Brobecker <brobecker@gnat.com>
5680
5681 Define HAVE_SYS_PROC_H if sys/proc.h exists
5682 * configure.in: Add check for sys/proc.h
5683 * config.in: Regenerate.
5684 * configure: Regenerate.
5685
902a7139
GS
56862002-07-09 Grace Sainsbury <graces@redhat.com>
5687
5688 * config/m68k/tm-m68k.h: Remove macros wrapped in
5689 #if !GDB_MULTI_ARCH.
5690
a534e424
AC
56912002-07-08 Andrew Cagney <ac131313@redhat.com>
5692
5693 * config.in, configure: Regenerate.
5694
9b94f7bf
MK
56952002-07-08 Mark Kettenis <kettenis@gnu.org>
5696
5697 * dwarf2cfi.c: Include "gcore.h".
5698 (execute_stack_op): Fix implementation of the
5699 DW_OP_deref and DW_OP_deref_size operators by letting do their
5700 lookup in the target.
5701
1d34db41
MK
57022002-07-07 Mark Kettenis <kettenis@gnu.org>
5703
5704 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5705 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5706 tdep->sc_sp_offset.
5707
79d5b63a
DJ
57082002-07-05 Daniel Jacobowitz <drow@mvista.com>
5709
5710 Fix PR gdb/595, gdb/602
5711 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5712 Don't call value_cast, just read the vtable pointer; update comments
5713 to match.
5714
3bb912e8
GS
57152002-07-05 Grace Sainsbury <graces@redhat.com>
5716
5717 * config/mcore/tm-mcore.h: Remove file.
5718 * config/mcore/mcore.mt: Remove definition of TM_FILE
5719 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5720
ca39387d
MK
57212002-07-05 Mark Kettenis <kettenis@gnu.org>
5722
5723 * i386bsd-tdep.c: Include "gdb_string.h".
5724
efdc1108
GS
57252002-07-04 Grace Sainsbury <graces@redhat.com>
5726
5727 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5728 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5729 mcore-tdep.
5730 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5731 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5732 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5733 (RETVAL_REGNUM): Move macros from tm-mcore.h
5734 (mcore_reg_struct_has_addr): New function.
5735 (mcore_gdbarch_init): Added initializations for the macros removed
5736 from tm-mcore.h.
5737
bb21884d
MK
57382002-07-04 Mark Kettenis <kettenis@gnu.org>
5739
5740 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5741 traditonal string branding within the ELF header.
5742
228c6d41
DJ
57432002-07-04 Daniel Jacobowitz <drow@mvista.com>
5744
5745 * symtab.c (remove_params): New function.
5746 (make_symbol_overload_list): Use it instead of cplus_demangle.
5747 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5748
2404952e
MK
57492002-07-04 Mark Kettenis <kettenis@gnu.org>
5750
e5e4acad
MK
5751 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5752
baadce09
MK
5753 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5754 New variables.
5755 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5756 and tdep->sigtramp_end.
5757 * i386obsd-nat.c: New file.
5758 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5759
2404952e
MK
5760 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5761 Don't call get_current_frame().
5762
9b4f1ba7
PM
57632002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5764
5765 * i386-nat.c (child_post_startup_inferior): New function
5766 calling i386_cleanup_dregs if
5767 I386_USE_GENERIC_WATCHPOINTS is defined.
5768 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5769 conditional to acknowledge that i386-nat.c has its
5770 own child_post_startup_inferior function.
5771
c0d1d883
MK
57722002-07-04 Mark Kettenis <kettenis@gnu.org>
5773
00f8375e
MK
5774 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5775 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5776 instead of MAX_REGISTER_RAW_SIZE.
5777 (i386_extract_return_value, i386_extract_struct_value_address):
5778 Convert to use regcache.
5779 (i386_gdbarch_init): Set max_register_raw_size and
5780 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5781 Set extract_return_value and extract_struct_value_address instead
5782 of their deprecated variants.
5783
c0d1d883
MK
5784 Convert i386 target to generic dummy frames.
5785 * i386-tdep.c: Include "symfile.h".
5786 (i386_frameless_signal_p): Consider a function to be frameless if
5787 the pc points at the first instruction of the function.
5788 (i386_frame_chain): Handle (generic) call dummies.
5789 (i386_frame_saved_pc): Likewise.
5790 (i386_frame_init_saved_regs): Remove code dealing with call
5791 dummies on the stack.
5792 (i386_push_dummy_frame): Removed.
5793 (i386_call_dummy_words): Removed.
5794 (i386_fix_call_dummy): Removed.
5795 (i386_push_return_address): New function.
5796 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5797 parameter, and don't call get_current_frame.
5798 (i386_pop_frame): New function.
5799 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5800 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5801 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5802 call_dummy_length to 0, set call_dummy_words to NULL, set
5803 sizeof_call_dummy_words to 0, set fix_call_dummy to
5804 generic_fix_call_dummy, set pc_in_call_dummy to
5805 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5806 generic_push_dummy_frame, set push_return_address to
5807 i386_push_return_address and set frame_chain_valid to
5808 generic_file_frame_chain_valid.
5809
049ee0e4
AC
58102002-07-03 Andrew Cagney <ac131313@redhat.com>
5811
5812 * gdbarch.sh (struct regcache): Add opaque declaration.
5813 (EXTRACT_RETURN_VALUE): New architecture method.
5814 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5815 * gdbarch.h, gdbarch.c: Regenerate.
5816 * arch-utils.c (legacy_extract_return_value): New function.
5817 * arch-utils.h (legacy_extract_return_value): Declare.
5818 * values.c (value_being_returned): Re-enable code handling
5819 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5820 deprecated_grub_regcache_for_registers call to block handling
5821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5822 (EXTRACT_RETURN_VALUE): Do not define.
5823
4e0d9804
GS
58242002-07-03 Grace Sainsbury <graces@redhat.com>
5825
5826 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5827 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5828 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5829 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5830 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5831 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5832 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5833 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5834 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5835 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5836 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5837 argument so the function fits the prototype in the architecture
5838 vector.
5839 (mcore_pop_frame): Remove argument so the function fits the
5840 prototype. Use get_current_frame instead of the argument.
5841 (mcore_push_arguments): Change type of struct_return so the
5842 function can be used in the architecture vector.
5843 (mcore_store_struct_return): Add.
5844 (mcore_frame_init_saved_regs): Add.
5845 (mcore_gdbarch_init): Add function calls to replace the macros
5846 removed from tm-mcore.h
5847
36160dc4
AC
58482002-07-03 Andrew Cagney <ac131313@redhat.com>
5849
5850 * infcmd.c (print_return_value): Remove compatibility code calling
5851 deprecated_grub_regcache_for_registers.
5852
5853 * values.c: Include "regcache.h".
5854 (value_being_returned): Update. Use
5855 deprecated_grub_regcache_for_registers to extract the register
5856 buffer address.
5857 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5858 ``struct regcache''.
5859 * Makefile.in (values.o): Add dependency on $(regcache_h).
5860
5861 * inferior.h (run_stack_dummy): Change type of second parameter to
5862 a ``struct regcache''.
5863 * valops.c (hand_function_call): Change type of retbuf to ``struct
5864 regcache''. Allocate using regcache_xmalloc, clean using
5865 make_cleanup_regcache_xfree.
5866 * infcmd.c (run_stack_dummy): Update. Use
5867 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5868
5869 * regcache.c (do_regcache_xfree): New function.
5870 (make_cleanup_regcache_xfree): New function.
5871 * regcache.h (make_cleanup_regcache_xfree): Declare.
5872
e64d9b3d
MH
58732002-07-03 Martin M. Hunt <hunt@redhat.com>
5874
4dd79c29
MH
5875 * event-top.c (command_line_handler): Don't read past
5876 beginning of buffer.
e64d9b3d 5877
4dd79c29
MH
58782002-07-03 Martin M. Hunt <hunt@redhat.com>
5879
e64d9b3d
MH
5880 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5881 struct frame_id.
5882 (varobj_create): Store frame_id for root.
5883 (varobj_gen_name): Use xasprintf.
5884 (varobj_update): Save and restore frame using get_frame_id() and
5885 frame_find_by_id().
5886 (create_child): Use xasprintf.
5887 (new_root_variable): Initialize frame_id.
5888 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5889 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5890 to prevent memory leak.
5891
26e6c56a
AC
58922002-07-03 Andrew Cagney <ac131313@redhat.com>
5893
5894 * valops.c (hand_function_call): Move declaration of retbuf to
5895 start of function, allocate using malloc, add a cleanup but before
5896 the inf_status cleanup, cleanup the buffer. Rename local variable
5897 old_chain to inf_status_cleanup.
5898
f436dd25
MH
58992002-07-03 Martin M. Hunt <hunt@redhat.com>
5900
5901 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5902
5903 * cli/cli-decode.c (cmd_func_p): New function.
5904 (cmd_func): New function.
5905
5906 * command.h: Add cmd_func() and cmd_func_p().
5907
4cfe2084
GS
59082002-07-03 Grace Sainsbury <graces@redhat.com>
5909
5910 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5911 (REGISTER_SIZE): Remove.
5912 (MAX_REGISTER_RAW_SIZE): Remove.
5913 (REGISTER_VIRTUAL_TYPE): Remove.
5914 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5915 (REGISTER_NAME): Remove.
5916 (USE_GENERIC_DUMMY_FRAMES): Remove.
5917 (CALL_DUMMY): Remove.
5918 (CALL_DUMMY_START_OFFSET): Remove.
5919 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5920 (CALL_DUMMY_LOCATION): Remove.
5921 (FIX_CALL_DUMMY): Remove.
5922 (CALL_DUMMY_ADDRESS): Remove.
5923 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5924 (SAVE_DUMMY_FRAME_TOS): Remove.
5925 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5926 (mcore_register_virtual_type): New function.
5927 (mcore_register_byte): New function.
5928 (mcore_register_size): New function.
5929 (mcore_register_name): New function.
5930 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5931 macros removed from tm-mcore.h.
5932 (mcore_dump_tdep): Add.
5933 (_initialize_mcore_tdep): Add gdbarch_register call.
5934
4fd667e9
MK
59352002-07-03 Mark Kettenis <kettenis@gnu.org>
5936
5937 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5938 frameless_look_for_prologue, such that we actually call this
5939 function.
5940
42f99ac2
JB
59412002-07-02 Joel Brobecker <brobecker@gnat.com>
5942
5943 * frame.h (frame_address_in_block): New function.
5944
5945 * blockframe.c (frame_address_in_block): New function extracted
5946 from get_frame_block().
5947 (get_frame_block): Use frame_address_in_block().
5948 (block_innermost_frame): Use frame_address_in_block() to match
5949 the frame pc address against the block boundaries rather than
5950 the frame pc directly. This prevents a failure when a frame pc
5951 is actually a return-address pointing immediately after the end
5952 of the given block.
5953
103a1597 59542002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5955
5956 * MAINTAINERS: Add self under write after approval.
5957
59582002-07-02 Grace Sainsbury <graces@redhat.com>
5959
103a1597
GS
5960 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5961 used in architecture vector. The default is
5962 m68k_local_breakpoint_from_pc.
5963 (m68k_local_breakpoint_from_pc): Add.
5964 (enum): Add register numbers from tm-m68k.h.
5965 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5966 vector.
5967 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5968 GDB_MULTI_ARCH_PARTIAL.
5969 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5970 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5971 m68k-tdep.c.
5972 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5973 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5974 to enum in m68k-tdep.c
5975
7a5a0534
JB
59762002-07-02 Joel Brobecker <brobecker@gnat.com>
5977
5978 * solib-osf.c (open_map): Compute the list of shared libraries
5979 loaded by the inferior, rather than the list of libraries loaded
5980 by GDB itself. Otherwise, GDB ends up reading the symbols from
5981 the wrong shared libraries...
5982
6f558d74
MK
59832002-07-02 Mark Kettenis <kettenis@gnu.org>
5984
b7d15bf7
MK
5985 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5986 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5987 macros.
5988 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5989 Remove functions.
5990 (FRAMELESS_SIGNAL): Remove function.
5991 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5992 i386_linux_saved_pc_after_call): Removed.
5993 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5994 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5995 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5996
6bff26de
MK
5997 * i386-tdep.c (i386_frameless_signal_p): New function.
5998 (i386_frame_chain): Deal with frameless signals.
5999 (i386_sigtramp_saved_sp): New function.
6000 (i386_frame_saved_pc): Deal with frameless signals.
6001 (i386_saved_pc_after_call): Make sure the correct value is
6002 returned just after entry into a sigtramp.
6003 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6004 i386fbsd4_sc_sp_offset): New variables.
6005 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6006 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6007 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6008 similiar to what we already did for sc_pc_offset.
6009 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6010 tdep->sc_sp_offset.
6011
6f558d74
MK
6012 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6013
145564b7
ML
60142002-07-02 Michal Ludvig <mludvig@suse.cz>
6015
6016 * config/i386/tm-x86-64linux.h: New.
6017 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6018 definitions.
6019 * config/i386/nm-x86-64.h: Rename to ...
6020 * config/i386/nm-x86-64linux.h: ... this one.
6021 * config/i386/x86-64linux.mh: Reflect the above change.
6022
3a1e71e3
MK
60232002-07-01 Mark Kettenis <kettenis@gnu.org>
6024
21d0e8a4
MK
6025 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6026 with sigcontext_addr. Add sc_sp_offset.
6027 (i386bsd_sigtramp_saved_pc): Remove prototype.
6028 (i386bsd_sicontext_addr): Add prototype.
6029 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6030 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6031 (i386_svr4_sigtramp_saved_pc): Removed.
6032 (i386_svr4_sigcontext_addr): New function.
6033 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6034 Initialize tdep->sigcontext_addr instead. Initialize
6035 tdep->sc_pc_offset and tdep->sc_sp_offset.
6036 (i386_gdbarch_init): Likewise.
6037 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6038 any more.
6039 (i386bsd_sigtramp_saved_pc): Remove function.
6040 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6041 Initialize tdep->sigcontext_addr instead. Initialize
6042 tdep->sc_pc_offset.
6043 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6044 of tdep->sigtramp_saved_pc.
6045 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6046 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6047 instead.
6048
3a1e71e3
MK
6049 * i386-tdep.c (i386_frameless_function_invocation,
6050 i386_frame_num_args, i386_frame_init_saved_regs,
6051 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6052 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6053 i386_extract_return_value, i386_store_return_value,
6054 i386_extract_struct_value_address, i386_register_virtual_type,
6055 i386_register_convertible, i386_register_convert_to_virtual,
6056 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6057 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6058 static.
6059
52e9098c
MK
60602002-07-01 Mark Kettenis <kettenis@gnu.org>
6061
77b13a25
MK
6062 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6063
52e9098c
MK
6064 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6065 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6066 this macro. Include "value.h".
6067
1b372fff
AS
60682002-06-30 Aidan Skinner <aidan@velvet.net>
6069
6070 * ada-exp.tab.c: remove as it's a generated file
6071 * ada-lex.c: remove as it's a generated file
6072
9c5045b5
MK
60732002-06-30 Mark Kettenis <kettenis@gnu.org>
6074
4a93c5bb
MK
6075 * config/i386/tm-i386.h (struct frame_info, struct
6076 frame_saved_regs, struct value, struct type): Remove forward
6077 declarations.
6078
322d4fe0
MK
6079 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6080 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6081 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6082 (FILL_FPXREGSET): Define.
6083
fdd8263d
MK
6084 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6085
482e577b
MK
6086 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6087 i[3456]86-*-netbsd* case.
6088 * config/i386/tm-obsd.h: Removed.
6089 * config/i386/obsd.mt: Removed.
6090 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6091 core-aout.o.
6092 (MH_CFLAGS): Add -DYYDEBUG=0.
6093
6916549a
MK
6094 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6095 i386nbsd_sc_pc_offset on OpenBSD too.
6096
9c5045b5
MK
6097 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6098 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6099 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6100 define.
6101 * i386bsd-tdep.c: Include "arch-utils.h".
6102 (i386bsd_aout_in_solib_call_trampoline): New function.
6103 (i386bsd_init_abi): Set in_solib_call_trampoline to
6104 i386bsd_aout_in_solib_call_trampoline.
6105 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6106 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6107
aa84d1bb
AC
61082002-06-28 Andrew Cagney <ac131313@redhat.com>
6109
6110 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6111 (struct obstack, struct bcache): Add opaque declarations.
6112 * Makefile.in (macrotab_h): Update
6113
b4d83933
AC
61142002-06-28 Andrew Cagney <ac131313@redhat.com>
6115
6116 * blockframe.c (generic_find_dummy_frame): Change return type to
6117 ``struct regcache''.
6118 (struct dummy_frame): Replace field ``registers'' with regcache, a
6119 struct regcache object.
6120 (generic_find_dummy_frame): Update.
6121 (generic_push_dummy_frame): Update. Use regcache_xfree,
6122 regcache_xmalloc and regcache_cpy.
6123 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6124 regcache_xfree.
6125 (deprecated_generic_find_dummy_frame): Update.
6126 (generic_read_register_dummy): Update. Use
6127 regcache_read_as_address.
6128 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6129 (generic_get_saved_register): Update. Use regcache_read.
6130
08c0b5bc
AC
61312002-06-28 Andrew Cagney <ac131313@redhat.com>
6132
6133 * Makefile.in (objfiles_h): Add $(bcache_h).
6134 * objfiles.h: Include "bcache.h".
6135
6136 * Makefile.in (symtab_h): Remove $(bcache_h).
6137 * symtab.h: Do not include "bcache.h".
6138
1f89801a
AC
61392002-06-28 Andrew Cagney <ac131313@redhat.com>
6140
6141 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6142 generic_func_frame_chain_valid.
6143
b9644b58
DB
61442002-06-28 David O'Brien <obrien@FreeBSD.org>
6145
6146 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6147 * config/i386/tm-fbsd.h: Likewise.
6148
dd486634
AC
61492002-06-28 Andrew Cagney <ac131313@redhat.com>
6150
6151 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6152 generic_unwind_get_saved_register.
6153
0b434a00
AC
61542002-06-27 Andrew Cagney <ac131313@redhat.com>
6155
6156 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6157 * regcache.c (supply_register): Add missing argument to
6158 register_buffer call.
6159
f30e5a77
AC
61602002-06-27 Andrew Cagney <ac131313@redhat.com>
6161
6162 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6163 Solaris /bin/grep does not not like it. From Peter Schauer.
6164
9f064c95
TT
61652002-06-26 Tom Tromey <tromey@redhat.com>
6166
6167 * command.h (add_setshow_cmd): Declare.
6168 (add_setshow_cmd_full): Declare.
6169 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6170 returns void. Use add_setshow_cmd_full.
6171 (add_setshow_cmd_full): New function.
6172 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6173 (add_setshow_boolean_cmd): Likewise.
6174
099c7589
JT
61752002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6176
6177 * config/vax/tm-vax.h: Protect from multiple inclusion.
6178 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6179 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6180 * config/vax/tm-vaxbsd.h: ...here. New file.
6181 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6182
1d049c5e
JT
61832002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6184
6185 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6186 (BELIEVE_PCC_PROMOTION): Remove.
6187 (AP_REGNUM): Move to...
6188 * config/vax/nm-vax.h: ...here.
6189 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6190 (vax_breakpoint_from_pc): New function.
6191 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6192 and gdbarch_believe_pcc_promotion.
6193
4791e091
JT
61942002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6195
6196 * Makefile.in (vax_tdep_h): Define.
6197 (vax-tdep.o): Use $(vax_tdep_h).
6198 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6199 (vax_dump_tdep): New function.
6200 (_initialize_vax_tdep): Register vax_dump_tdep.
6201 * vax-tdep.h: Include osabi.h.
6202 (struct gdbarch_tdep): New.
6203
da130f98
AC
62042002-06-26 Andrew Cagney <cagney@redhat.com>
6205
6206 * frame.h (deprecated_generic_find_dummy_frame): Rename
6207 generic_find_dummy_frame.
6208 * blockframe.c (generic_find_dummy_frame): Make static.
6209 (deprecated_generic_find_dummy_frame): New function.
6210 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6211 generic_find_dummy_frame with deprecated_find_dummy_frame.
6212 (sh64_nofp_frame_init_saved_regs): Ditto.
6213 (sh_fp_frame_init_saved_regs): Ditto.
6214 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6215 (s390_frame_chain): Ditto.
6216 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6217
6300c360
GS
62182002-06-26 Grace Sainsbury <graces@redhat.com>
6219
6220 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6221 gdbarch vector are at the top.
6222 (NUM_REGS): Remove.
6223 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6224 (FRAME_ARGS_ADDRESS): Remove.
6225 (FRAME_LOCALS_ADDRESS): Remove.
6226 (FRAME_NUM_ARGS): Remove.
6227 (FRAME_ARGS_SKIP): Remove.
6228 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6229 (m68k_gdbarch_init): Add gdbarch initializations for macros
6230 undefined in tm-m68k.h
6231
1c617db8
GS
62322002-06-26 Grace Sainsbury <graces@redhat.com>
6233
6234 * monitor.h: Add the function regname to monitor_ops
6235 structure. This way NUM_REGS does not have to be a constant.
6236 * monitor.c (monitor_fetch_register): Added support for regname
6237 function. The function is called if the array regnames is NULL.
6238 (monitor_store_register): Same.
da130f98
AC
6239 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6240 regnames array.
1c617db8
GS
6241 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6242 cpu32bug_cmds.regname to point to new function.
6243 * abug-rom.c (abug_regname): Same as above.
6244 (init_abug_cmds): Same.
6245 * dbug-rom.c (dbug_regname): Same as above.
6246 (init_dbug_cmds): Same.
6247 * remote-est.c (est_regname): Same.
6248 (init_est_cmds): Same.
6249 * rom68k-rom.c (rom68k_regname): Same.
6250 (init_rom68k_cmds): Same.
6251
ea9365bb
TT
62522002-06-25 Tom Tromey <tromey@redhat.com>
6253
6254 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6255
72cec141
AC
62562002-06-25 Andrew Cagney <cagney@redhat.com>
6257
6258 * infrun.c (stop_registers): Change variable's type to ``struct
6259 regcache'''.
6260 (xmalloc_inferior_status): Delete function.
6261 (free_inferior_status): Delete function.
6262 (normal_stop): Use regcache_cpy.
6263 (struct inferior_status): Change type of fields ``stop_registers''
6264 and ``registers'' to ``struct regcache''.
6265 (write_inferior_status_register): Use regcache_write.
6266 (save_inferior_status): Instead of calling
6267 xmalloc_inferior_status, allocate the inf_status buffer directly.
6268 Use regcache_dup_no_passthrough and regcache_dup to save the
6269 buffers.
6270 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6271 Replace the stop_registers regcache instead of overriding it. Use
6272 regcache_xfree. Instead of calling free_inferior_status, xfree
6273 the buffer directly.
6274 (discard_inferior_status): Use regcache_xfree. Instead of calling
6275 free_inferior_status, xfree the buffer directly.
6276 (build_infrun): Use regcache_xmalloc.
6277 (_initialize_infrun): Delete redundant call to build_infrun.
6278
6279 * Makefile.in (infcmd.o): Add $(regcache_h).
6280
6281 * infcmd.c: Include "regcache.h".
6282 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6283 obtain the address of `stop_registers' register buffer.
6284 (print_return_value): Ditto.
6285
6286 * inferior.h (struct regcache): Add opaque declaration.
6287 (stop_registers): Change variable's declared type to ``struct
6288 regcache''.
6289
defc6f8c
TT
62902002-06-24 Tom Tromey <tromey@redhat.com>
6291
c0e624e7
TT
6292 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6293 * target.c (initialize_targets): Fixed typo in
6294 trust-readonly-sections `show' documentation.
6295
defc6f8c
TT
6296 * main.c: Marked all strings with _().
6297
2b236d82
DH
62982002-06-24 Don Howard <dhoward@redhat.com>
6299
6300 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6301 that means max CORE_ADDR+1.
6302 (lookup_mem_region): Ditto.
6303 (mem_info_command): Ditto.
6304
942dc0e9
GS
63052002-06-24 Grace Sainsbury <graces@redhat.com>
6306
6307 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6308 (REGISTER_BYTES_OK): Remove.
6309 (REGISTER_BYTES): Remove.
6310 (STORE_STRUCT_RETURN): Remove.
6311 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6312 (STORE_RETURN_VALUE): Remove.
6313 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6314 (FRAME_CHAIN): Remove.
6315 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6316 (FRAME_SAVED_PC): Remove.
6317 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6318 (m68k_store_struct_return): Add.
6319 (m68k_deprecated_extract_return_value): Add.
6320 (m68k_deprecated_extract_struct_value_address): Add.
6321 (m68k_store_return_value): Add.
6322 (m68k_frame_chain): Add.
6323 (m68k_frameless_function_invocation): Add.
6324 (m68k_frame_saved_pc): Add.
6325 (m68k_gdbarch_init): added set_gdbarch calls for new
6326 functions and deleted macros.
6327
03c30d4d
TT
63282002-06-23 Tom Tromey <tromey@redhat.com>
6329
6330 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6331 (ALLDEPFILES): Likewise.
6332 (udiheaders): Removed.
6333 (udip2soc.o): Likewise.
6334 (udi2go32.o): Likewise.
6335 (udr.o): Likewise.
6336 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6337
37e71372
AC
63382002-06-22 Andrew Cagney <ac131313@redhat.com>
6339
06a6ac57
AC
6340 * infrun.c (_initialize_infrun): Delete unnecessary call to
6341 build_infrun.
6342
37e71372
AC
6343 * regcache.h: Update comments describing the regcache_cpy family
6344 of functions.
6345 (regcache_save, regcache_restore): Delete declaration.
6346 (regcache_save_no_passthrough): Delete declaration.
6347 (regcache_restore_no_passthrough): Delete declaration.
6348 * regcache.c (regcache_save): Delete function.
6349 (regcache_save_no_passthrough): Delete function.
6350 (regcache_restore): Delete function.
6351 (regcache_restore_no_passthrough): Delete function.
6352
78f6d055
AC
63532002-06-21 Andrew Cagney <ac131313@redhat.com>
6354
6355 * config/m68k/tm-m68k.h: Fix typo.
6356 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6357 (m68k_frame_init_saved_regs): Declare.
6358
78b119cb
JB
63592002-06-21 Jim Blandy <jimb@redhat.com>
6360
6361 Remove some vestiges of Harris 88k support.
6362 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6363 register numbering quirk.
6364 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6365 odd symbols occurring in Harris 88k ELF targets.
6366
0fbb3da7
TT
63672002-06-21 Tom Tromey <tromey@redhat.com>
6368
6369 * gdb_locale.h: New file.
6370 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6371 (defs_h): Added gdb_locale.h.
6372 * configure, config.in: Rebuilt.
6373 * configure.in (PACKAGE): Define.
6374 * defs.h: Include gdb_locale.h.
6375 * main.c (captured_main): Call setlocale, bindtextdomain,
6376 textdomain.
6377
456f8b9d
DB
63782002-06-21 Dave Brolley <brolley@redhat.com>
6379
6380 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6381 * config/frv/frv.mt: New file.
6382 * config/frv/tm-frv.h: New file.
6383 * configure.tgt: Support frv-*-*.
6384 * Makefile.in (frv-tdep.o): New target.
6385 * frv-tdep.c: New file.
6386 * NEWS: Mention frv.
6387
cdd463f9
DB
63882002-06-21 Dave Brolley <brolley@redhat.com>
6389
6390 * MAINTAINERS: Add self to "Write After Approval" list.
6391
5d3ed2e3
GS
63922002-06-21 Grace Sainsbury <graces@redhat.com>
6393
6394 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6395 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6396 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6397 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6398 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6399
6400 * m68k-tdep.c: Include arch-utils.h
6401 (m68k_register_raw_size): Add.
6402 (m68k_register_virtual_size): Add.
6403 (m68k_register_virtual_type): Add.
6404 (m68k_register_name): Add.
6405 (m68k_stack_align): Add.
6406 (m68k_register_byte): Add.
6407 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6408 tm-m68k.h.
6409
7f8e7424
GS
64102002-06-21 Grace Sainsbury <graces@redhat.com>
6411
a2c6a6d5 6412 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6413 m68k_find_saved_regs.
6414 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6415 references to it with frame->saved_regs.
7f8e7424
GS
6416 (m68k_gdbarch_init): Added function calls to initialize the
6417 gdbarch structure.
a2c6a6d5
GS
6418 (m68k_fix_call_dummy): Add.
6419 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6420 (CALL_DUMMY): Remove.
6421 (CALL_DUMMY_LENGTH): Remove.
6422 (CALL_DUMMY_START_OFFSET): Remove.
6423 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6424 (FIX_CALL_DUMMY): Remove.
6425 (PUSH_DUMMY_FRAME): Remove.
6426 (POP_FRAME): Remove.
7f8e7424 6427
f461f5cf
PM
64282002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6429
6430 * parse.c (parse_fprintf): New function used to avoid calls to
6431 fprintf in bison parser generated debug code.
6432 * parser-defs.h: Declaration of new parse_fprintf function.
6433 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6434 Set YYDEBUG to 1 by default.
6435 Set YYFPRINTF as parse_fprintf.
6436
7f0c12ed
ML
64372002-06-21 Michal Ludvig <mludvig@suse.cz>
6438
6439 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6440 encoding anymore.
6441 (pointer_encoding, enum ptr_encoding): New.
6442 (execute_cfa_program): Take care about pointer encoding.
6443 (dwarf2_build_frame_info): Only call parse_frame_info for
6444 .debug_frame and .eh_frame.
6445 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6446 fixed augmentation handling, added relative addressing,
6447 ignore duplicate FDEs. Added comments.
19d833a2 6448 * dwarf2cfi.c: Reindented.
7f0c12ed 6449
87c4a039
EZ
64502002-06-20 Elena Zannoni <ezannoni@redhat.com>
6451
6452 * event-top.c (command_handler): Don't use space_at_cmd_start
6453 unless there is sbrk() on the host. Assign time and space data
6454 to union fields of the appropriate length.
6455
1cf877ad
ML
64562002-06-20 Michal Ludvig <mludvig@suse.cz>
6457
6458 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6459 x86_64_register_name. Return type changed to 'const char *'.
6460 (x86_64_register_name2nr): Rename to x86_64_register_number.
6461 (x86_64_gdbarch_init): Update to reflect the change.
6462 * x86-64-tdep.h: Ditto.
6463 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6464 (supply_fpregset): Ditto.
6465
3fadccb3
AC
64662002-06-19 Andrew Cagney <cagney@redhat.com>
6467
6468 * regcache.h: Update copyright.
6469 (struct regcache, struct gdbarch): Add opaque declarations.
6470 (current_regcache): Declare global variable.
6471 (regcache_read, regcache_write): Add gdbarch parameter.
6472 (regcache_save, regcache_save_no_passthrough)
6473 (regcache_restore, regcache_restore_no_passthrough)
6474 (regcache_dup, regcache_dup_no_passthrough)
6475 (regcache_cpy, regcache_cpy_no_passthrough)
6476 (deprecated_grub_regcache_for_registers)
6477 (deprecated_grub_regcache_for_register_valid)
6478 (regcache_valid_p): Add function declarations.
6479
6480 * regcache.c: Update copyright.
6481 (regcache_descr_handle): New global variable.
6482 (struct regcache_descr): Define.
6483 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6484 (regcache_descr, xfree_regcache_descr): New functions.
6485 (struct regcache): Define.
6486 (regcache_xmalloc, regcache_xfree): New functions.
6487 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6488 (regcache_dup, regcache_dup_no_passthrough): New functions.
6489 (regcache_valid_p, regcache_read_as_address): New functions.
6490 (deprecated_grub_regcache_for_registers): New function.
6491 (deprecated_grub_regcache_for_register_valid): New function.
6492 (current_regcache): New global variable.
6493 (register_buffer): Add regcache parameter. Update calls.
6494 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6495 (read_register_gen, write_register_gen): Update register_buffer
6496 call. Test for legacy_p instead of gdbarch_register_read_p or
6497 gdbarch_register_write_p.
6498 (regcache_collect): Update register_buffer call.
6499 (build_regcache): Rewrite. Use deprecated grub functions.
6500 (regcache_save, regcache_save_no_passthrough): New functions.
6501 (regcache_restore, regcache_restore_no_passthrough): New
6502 functions.
6503 (_initialize_regcache): Create the regcache_data_handle. Swap
6504 current_regcache global variable.
6505
6506 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6507 parameter to regcache_read and regcache_write calls.
6508 (sh4_register_read): Ditto.
6509 (sh64_pseudo_register_read): Ditto.
6510 (sh64_register_read): Ditto.
6511 (sh_pseudo_register_write): Ditto.
6512 (sh4_register_write): Ditto.
6513 (sh64_pseudo_register_write): Ditto.
6514 (sh64_register_write): Ditto.
6515
6516 * defs.h (XCALLOC): Define.
6517
152d9db6
GS
65182002-06-19 Grace Sainsbury <graces@redhat.com>
6519
6520 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6521 * m68k-tdep.c (m68k_gdbarch_init): Added.
6522 (m68k_dump_tdep): Added.
6523
170911c7
DJ
65242002-06-19 Daniel Jacobowitz <drow@mvista.com>
6525
6526 * ada-lang.c (fill_in_ada_prototype): Update comment.
6527
2e4ebe70
DJ
65282002-06-19 Daniel Jacobowitz <drow@mvista.com>
6529
6530 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6531 MIPS_ABI_LAST.
6532 (mips_abi_string, mips_abi_strings): New.
6533 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6534 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6535 tdep->mips_abi_string. Honor mips_abi_string. Default to
6536 O32 if no ABI is found.
6537 (mips_dump_tdep): Use mips_abi_strings.
6538 (mips_abi_update): New function.
6539 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6540 ``set mips abi'' and ``show mips abi''. Check the size of
6541 mips_abi_strings.
6542
16775908
AC
65432002-06-19 Andrew Cagney <cagney@redhat.com>
6544
6545 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6546 constant.
6547
5051bfa4 65482002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6549
5051bfa4
JB
6550 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6551 current frame using only the first stack size adjustment. All
6552 subsequent size adjustments are not considered to be part of
6553 the "static" part of the current frame.
6554 Compute the address of the saved registers relative to the
6555 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6556 in use in this frame.
6557
56468235
DH
65582002-06-18 Don Howard <dhoward@redhat.com>
6559
6560 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6561 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6562 suggesting this solution.
6563
0b624158
AC
65642002-06-18 Andrew Cagney <ac131313@redhat.com>
6565
6566 * config/romp/xm-rtbsd.h: Delete file.
6567 * config/romp/rtbsd.mh: Delete file.
6568
221ea385
KS
65692002-06-18 Keith Seitz <keiths@redhat.com>
6570
6571 * breakpoint.c (condition_command): Post breakpoint_modify
6572 when a condition is added to an existing breakpoint.
6573 (commands_command): Likewise for commands.
6574 (set_ignore_count): Likewise for ignore counts.
6575 If no tty, do not simply return, still need to send event
6576 notification.
6577 (ignore_command): Only print a newline if the command came
6578 from a tty.
6579 Don't call breakpoints_changed, since this is now properly
6580 handled by set_ignore_count.
6581
5402eed1
AC
65822002-06-18 Andrew Cagney <cagney@redhat.com>
6583
6584 * MAINTAINERS: Note that cris-elf target can be compiled with
6585 -Werror.
6586 * cris-tdep.c (cris_register_name): Make return type constant.
6587 (cris_breakpoint_from_pc): Ditto.
6588
cc22880b
ML
65892002-06-18 Michal Ludvig <mludvig@suse.cz>
6590
6591 * frame.h (struct frame_info): Change type of context to
6592 'struct context'.
6593
fa88f677
AC
65942002-06-17 Andrew Cagney <cagney@redhat.com>
6595
6596 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6597 pointer.
6598 * gdbarch.h, gdbarch.c: Regenerate.
6599 * config/mips/tm-mips.h (mips_register_name): Update.
6600 * i386-tdep.h (i386_register_name): Update.
6601 * mips-tdep.c (mips_register_name): Update
6602 * alpha-tdep.c (alpha_register_name): Update.
6603 * arch-utils.c (legacy_register_name): Update.
6604 * arch-utils.h (legacy_register_name): Update.
6605 * avr-tdep.c (avr_register_name): Update.
6606 * ia64-tdep.c (ia64_register_name): Update.
6607 * i386-tdep.c (i386_register_name): Update.
6608 * sparc-tdep.c (sparc32_register_name): Update.
6609 (sparc64_register_name): Update.
6610 (sparclite_register_name): Update.
6611 (sparclet_register_name): Update.
6612 * sh-tdep.c (sh_generic_register_name): Update.
6613 (sh_sh_register_name): Update.
6614 (sh_sh3_register_name): Update.
6615 (sh_sh3e_register_name): Update.
6616 (sh_sh_dsp_register_name): Update.
6617 (sh_sh3_dsp_register_name): Update.
6618 (sh_sh4_register_name): Update.
6619 (sh_sh64_register_name): Update.
6620 * s390-tdep.c (s390_register_name): Update.
6621 * rs6000-tdep.c (rs6000_register_name): Update.
6622 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6623 (ns32k_register_name_32382): Update.
6624 * d10v-tdep.c (d10v_ts2_register_name): Update.
6625 (d10v_ts3_register_name): Update.
6626 * xstormy16-tdep.c (xstormy16_register_name): Update.
6627 * vax-tdep.c (vax_register_name): Update.
6628 * v850-tdep.c (v850_register_name): Update.
6629 * m68hc11-tdep.c (m68hc11_register_name): Update.
6630 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6631 (am33_register_name): Update.
6632
ea1e7ef6
GS
66332002-06-17 Grace Sainsbury <graces@redhat.com>
6634
6635 * m68k-tdep.c: Reindented.
6636
9b02dd1b
AC
66372002-06-17 Andrew Cagney <ac131313@redhat.com>
6638
6639 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6640 list of predefined types.
6641
8758dec1
MK
66422002-06-16 Mark Kettenis <kettenis@gnu.org>
6643
b6197528
MK
6644 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6645 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6646 REGISTER_CONVERT_TO_RAW): Remove defines.
6647 (i386_register_virtual_type, i386_register_convertible,
6648 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6649 Remove prototypes.
6650 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6651 macros mentioned above.
6652
82b47e62
MK
6653 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6654 (i386lynx_saved_pc_after_call): Remove prototype.
6655 * i386ly-tdep.c: Include "i386-tdep.h".
6656 (i386lynx_saved_pc_after_call): Make static. Use
6657 read_memory_nobpt instead of read_memory. Use
6658 read_memory_unsigned_integer instead of read_memory_integer.
6659 (i386lynx_init_abi): New function.
6660 (i386lynx_coff_osabi_sniffer): New function.
6661 (_initialize_i386bsd_tdep): New function.
6662
8758dec1
MK
6663 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6664 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6665 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6666 (i386_fix_call_dummy): Remove prototype.
6667 * i386-tdep.c (i386_call_dummy_words): New variable.
6668 (i386_gdbarch_init): Adjust for removal of the
6669 macros mentioned above.
6670
e9e68a56
AC
66712002-06-15 Andrew Cagney <ac131313@redhat.com>
6672
6673 * command.h (add_setshow_auto_boolean_cmd): Replace
6674 add_set_auto_boolean_cmd.
6675 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6676 add_set_auto_boolean_cmd.
6677 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6678 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6679 mask-address'' command.
6680 (show_mask_address): Add cmd parameter.
6681 * remote.c (add_packet_config_cmd): Update. Change type of
6682 set_func and show_func to cmd_sfunc_ftype.
6683 (_initialize_remote): Update `set remote Z-packet'
6684 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6685 (show_remote_protocol_e_packet_cmd): Ditto.
6686 (show_remote_protocol_E_packet_cmd): Ditto.
6687 (show_remote_protocol_P_packet_cmd): Ditto.
6688 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6689 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6690 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6691 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6692 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6693 (show_remote_protocol_Z_packet_cmd): Ditto.
6694 (show_remote_protocol_binary_download_cmd): Ditto.
6695 (show_remote_cmd): Pass NULL to all of above.
6696
fc08ec52
MK
66972002-06-15 Mark Kettenis <kettenis@gnu.org>
6698
6699 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6700 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6701 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6702 POP_FRAME): Remove defines.
6703 (i386_push_arguments, i386_store_struct_return,
6704 i386_extract_return_value, i386_store_return_value,
6705 i386_extract_struct_value_address, i386_push_dummy_frame,
6706 i386_pop_frame): Renove prototypes.
6707 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6708 macros mentioned above.
6709
e707bbc2
AC
67102002-06-15 Andrew Cagney <ac131313@redhat.com>
6711
6712 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6713 add_set_boolean_cmd.
6714 (add_setshow_cmd): New function.
6715 * command.h (add_setshow_boolean_cmd): Replace
6716 add_set_boolean_cmd.
6717 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6718 and ``set rdiromatzero''.
6719 * maint.c (_initialize_maint_cmds): Update commented out code.
6720 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6721 * target.c (initialize_targets): Update `set
6722 trust-readonly-sections'.
6723 * remote.c (_initialize_remote): Update `set remotebreak'.
6724
42fdc8df
MK
67252002-06-15 Mark Kettenis <kettenis@gnu.org>
6726
93924b6b
MK
6727 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6728 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6729 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6730 fit into multi-arch framework.
6731 (i386_breakpoint_from_pc): New function.
6732 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6733 above.
6734
42fdc8df
MK
6735 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6736 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6737 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6738 (i386_frameless_function_invocation, i386_frame_num_args,
6739 i386_frame_init_saved_regs): Remove prototypes.
6740 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6741 macros mentioned above.
6742
9773a94b
AC
67432002-06-15 Andrew Cagney <ac131313@redhat.com>
6744
6745 * cli/cli-decode.c (set_cmd_cfunc): Update.
6746 (set_cmd_sfunc): Update.
6747 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6748 (set_cmd_sfunc, set_cmd_cfunc): Update.
6749 * cli/cli-decode.h: Update.
6750
6e157172
MK
67512002-06-15 Mark Kettenis <kettenis@gnu.org>
6752
6753 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6754 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6755
7f19b9a2
AC
67562002-06-15 Andrew Cagney <ac131313@redhat.com>
6757
6758 * defs.h (auto_boolean): Declare enum.
6759 * command.h (cmd_auto_boolean): Delete enum.
6760 * mips-tdep.c (mask_address_var): Update.
6761 (mips_mask_address_p): Update.
6762 (show_mask_address): Update.
6763 * remote.c (struct packet_config): Update.
6764 (update_packet_config): Update.
6765 (show_packet_config_cmd): Update.
6766 (packet_ok): Update.
6767 (add_packet_config_cmd): Update.
6768 (_initialize_remote):
6769 * command.h: Update.
6770 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6771 (do_setshow_command): Update.
6772 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6773 * cli/cli-decode.h: Update.
6774
1cf88de5
MK
67752002-06-15 Mark Kettenis <kettenis@gnu.org>
6776
22ba8cf2
MK
6777 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6778 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6779 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6780 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6781 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6782 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6783
762c5349
MK
6784 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6785 list of DJGPP COFF targets.
6786
091198bb
MK
6787 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6788 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6789 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6790 (FP0_REGNUM): Remove define.
6791 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6792 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6793 (i386_register_virtual_size): Remove protoype.
6794 * i386-tdep.c (i386_register_virtual_size): Removed.
6795 (i386_extract_return_value, i386_store_return_value): Use
6796 FP0_REGNUM instead of NUM_FREGS to determine whether the
6797 floating-point registers are available.
6798 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6799 Adjust for removal of macros mentioned above.
6800
68012002-06-15 Mark Kettenis <kettenis@gnu.org>
6802
fcc9bf01
MK
6803 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6804 comments.
6805 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6806 Remove prototypes.
6807 (supply_gregset, fill_gregset): Remove use of register keyword and
6808 remove declaration for regmap. Use I386_NUM_GREGS instead of
6809 NUM_REGS and NUM_FREGS.
6810 (FPREGSET_FSAVE_OFFSET): Remove.
6811 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6812 NUM_FREGS to determine whether the floating-point registers are
6813 available.
6814
65e78234
MK
6815 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6816 gnu_store_registers): Replace usage of NUM_GREGS with
6817 I386_NUM_GREGS.
6818
98df6387
MK
6819 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6820 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6821 usage of NUM_GREGS with I386_NUM_GREGS.
6822
099a9414
MK
6823 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6824
57976e88
MK
6825 * i386bsd-nat.c: Include "i386-tdep.h".
6826 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6827 I386_NUM_GREGS.
6828
b335f4a6
MK
6829 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6830 and associated comment. They no longer make any sense, since we
6831 don't use this file anymore on Linux.
6832
1cf88de5
MK
6833 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6834 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6835 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6836 elements in these arrays.
6837 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6838 MAX_NUM_REGS.
6839
daa66587
MK
68402002-06-15 Mark Kettenis <kettenis@gnu.org>
6841
6842 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6843 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6844
26e9b323
AC
68452002-06-14 Andrew Cagney <cagney@redhat.com>
6846
6847 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6848 EXTRACT_RETURN_VALUE.
6849 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6850 EXTRACT_STRUCT_VALUE_ADDRESS.
6851 * gdbarch.h, gdbarch.c: Regenerate.
6852
6853 * values.c (value_being_returned): Handle
6854 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6855 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6856
6857 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6858 * arm-tdep.c (arm_gdbarch_init): Update.
6859 * avr-tdep.c (avr_gdbarch_init): Update.
6860 * cris-tdep.c (cris_gdbarch_init): Update.
6861 * d10v-tdep.c (d10v_gdbarch_init): Update.
6862 * ia64-tdep.c (ia64_gdbarch_init): Update.
6863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6865 * s390-tdep.c (s390_gdbarch_init): Update.
6866 * sh-tdep.c (sh_gdbarch_init): Update.
6867 * s390-tdep.c (s390_gdbarch_init): Update.
6868 * sparc-tdep.c (sparc_gdbarch_init): Update.
6869 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6870 * v850-tdep.c (v850_gdbarch_init): Update.
6871 * vax-tdep.c (vax_gdbarch_init): Update.
6872 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6874
6875 * config/arc/tm-arc.h: Update.
6876 * config/d30v/tm-d30v.h: Update.
6877 * config/fr30/tm-fr30.h: Update.
6878 * config/h8300/tm-h8300.h: Update.
6879 * config/h8500/tm-h8500.h: Update.
6880 * config/i386/tm-i386.h: Update.
6881 * config/i386/tm-ptx.h: Update.
6882 * config/i386/tm-symmetry.h: Update.
6883 * config/i960/tm-i960.h: Update.
6884 * config/m32r/tm-m32r.h: Update.
6885 * config/m68k/tm-delta68.h: Update.
6886 * config/m68k/tm-linux.h: Update.
6887 * config/m68k/tm-m68k.h: Update.
6888 * config/m88k/tm-m88k.h: Update.
6889 * config/mcore/tm-mcore.h: Update.
6890 * config/mips/tm-mips.h: Update.
6891 * config/mn10200/tm-mn10200.h: Update.
6892 * config/pa/tm-hppa.h: Update.
6893 * config/pa/tm-hppa64.h: Update.
6894 * config/sparc/tm-sp64.h: Update.
6895 * config/sparc/tm-sparc.h: Update.
6896 * config/sparc/tm-sparclet.h: Update.
6897 * config/z8k/tm-z8k.h: Update.
6898
5179e78f
AC
68992002-06-14 Andrew Cagney <cagney@redhat.com>
6900
6901 * Makefile.in (i386_linux_tdep_h): Define.
6902 (i386_tdep_h, i387_tdep_h): Define.
6903 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6904 $(i386_tdep_h) and $(i387_tdep_h).
6905 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6906
8201327c
MK
69072002-06-14 Mark Kettenis <kettenis@gnu.org>
6908
edf393ac
MK
6909 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6910 Already covered by the default.
6911
896fb97d
MK
6912 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6913 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6914 (i386_gdbarch_init): Initialize long_double_format and long_double
6915 bit.
6916
8201327c
MK
6917 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6918 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6919 Move these to ...
6920 * config/i386/i386sol2.mh: ... here.
6921 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6922 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6923 (SIGCONTEXT_PC_OFFSET): Remove define.
6924 (IN_SIGTRAMP): Remove define.
6925 * i386-sol2-tdep.c: New file.
6926
6927 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6928 * config/i386/tm-i386nw.h: Removed.
6929
6930 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6931 USE_STRUCT_CONVENTION): Remove defines.
6932 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6933 (get_longjmp_target): Remove prototype.
6934 (IN_SIGTRAMP): Remove define.
6935 (i386bsd_in_sigtramp): Remove prototype.
6936 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6937 function. Update comment accordingly
6938 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6939 (FRAME_SAVED_PC): Remove define.
6940 (i386bsd_frame_saved_pc): Remove prototype.
6941 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6942 GET_LONGJMP_TARGET): Remove defines.
6943 (get_longjmp_target): Remove prototype.
6944 (IN_SIGTRAMP): Remove define.
6945 (i386bsd_in_sigtramp): Remove prototype.
6946 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6947 function. Update comment accordingly
6948 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6949 (FRAME_SAVED_PC): Remove define.
6950 (i386bsd_frame_saved_pc): Remove prototype.
6951 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6952 Remove prototype.
6953 (USE_STRUCT_CONVENTION): Remove prototype.
6954 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6955 declaration.
6956 (_initialize_i386bsd_nat): Revise logic to determine some
6957 constants at compile time when compiling a native GDB. Warn if
6958 things don't match up with what we expect.
6959 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6960 Remove variables.
6961 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6962 to use date stored in `struct gdbarch_tdep'.
6963 (i386bsd_sigcontext_offset): Remove varaible.
6964 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6965 stored in `struct gdbarch_tdep'.
6966 (i386bsd_frame_saved_pc): Make static.
6967 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6968 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6969 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6970 i386fbsd4_sc_pc_offset): New variables.
6971 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6972 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6973 functions.
6974 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6975 functions.
6976 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6977 Modify the value of i386fbsd_sigtramp_start and
6978 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6979 i386fbsd_sigtramp_end.
6980 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6981 function.
6982
6983 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6984 define to i386-linux-tdep.h.
6985 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6986 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6987 defines.
6988 (i386_linux_register_name, i386_linux_register_byte,
6989 i386_linux_register_raw_size): Remove prototypes.
6990 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6991 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6992 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6993 TARGET_WRITE_PC): Remove defines.
6994 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6995 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6996 i386_linux_write_pc): Remove prototypes.
6997 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6998 (get_longjmp_target): Remove prototype.
6999 * i386-linux-tdep.h: New file.
7000 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7001 * i386-linux-tdep.c: Include "i386-tdep.h" and
7002 "i386-linux-tdep.h".
7003 (i386_linux_register_name, i386_linux_register_byte,
7004 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7005 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7006 Make static.
7007 (i386_linux_init_abi): New function.
7008 (_initialize_i386_linux_tdep): New function.
7009
7010 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7011 (i386_saved_pc_after_call): Remove prototype.
7012 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7013 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7014 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7015 (i386_register_name, i386_stab_reg_to_regnum,
7016 i386_dwarf_reg_to_regnum): Remove prototypes.
7017 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7018 SIZEOF_SSE_REGS): Remove defines.
7019 (REGISTER_BYTES): Remove define.
7020 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7021 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7022 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7023 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7024 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7025 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7026 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7027 (get_longjmp_target): Remove prototype.
7028 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7029 (sigtramp_saved_pc): Remove define.
7030 (i386v4_sigtramp_saved_pc): Remove prototype.
7031 * config/i386/tm-go32.h (FRAME_CHAIN,
7032 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7033 (i386go32_frame_saved_pc): Remove prototype.
7034 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7035 (get_longjmp_target): Remove prototype.
7036 * i386-tdep.h: Include "osabi.h".
7037 (enum i386_abi): Removed.
7038 (enum struct_return): New enum.
7039 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7040 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7041 sc_pc_offset members.
7042 (i386_gdbarch_register_os_abi): Remove prototype.
7043 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7044 I386_SSE_NUM_REGS): New defines.
7045 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7046 I386_SSE_SIZEOF_REGS): New defines.
7047 (i386_register_name, i386_register_byte, i386_register_raw_size):
7048 New prototypes.
7049 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7050 (i386bsd_sigtramp_saved_pc): New prototype.
7051 * i386-tdep.c: Don't include "elf-bfd.h".
7052 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7053 i386_frame_chain, i386_saved_pc_after_call): Make static.
7054 (i386_frame_saved_pc): Rewrite to call architecture dependent
7055 function to deal with signal handlers. Make static.
7056 (i386go32_frame_saved_pc): Removed.
7057 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7058 Removed.
7059 (i386_get_longjmp_target): New function.
7060 (default_struct_convention, pcc_struct_convention,
7061 reg_struct_convention, valid_conventions, struct_convention): New
7062 variables.
7063 (i386_use_struct_convention): New function.
7064 (i386v4_sigtramp_saved_pc): Renamed to
7065 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7066 (i386_pc_in_sigtramp): New function.
7067 (i386_abi_names): Removed.
7068 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7069 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7070 Removed.
7071 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7072 i386_gdbarch_register_os_abi): Removed.
7073 (struct i386_abi_handler): Removed.
7074 (i386_abi_handler_list): Removed.
7075 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7076 functions.
7077 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7078 i386_nw_init_abi): New functions.
7079 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7080 Use set_gdbarch_xxx() calls instead of relying on macros for a
7081 number of calls.
7082 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7083 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7084 Register the various architecture variants defined in this file.
7085
ad2f7632
DJ
70862002-06-14 Daniel Jacobowitz <drow@mvista.com>
7087
7088 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7089 (struct main_type): Remove arg_types member. Update comments for
7090 struct field.
7091 (TYPE_ARG_TYPES): Remove.
7092 (TYPE_FN_FIELD_ARGS): Update.
7093 (smash_to_method_type): Update prototype.
7094
7095 * c-typeprint.c (cp_type_print_method_args): Take method type
7096 instead of argument list. Use new argument layout. Simplify.
7097 (c_type_print_args): Use new argument layout. Simplify.
7098 (c_type_print_base): Update call to cp_type_print_method_args.
7099 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7100 argument; use die->type instead. Update call to
7101 smash_to_method_type.
7102 (read_structure_scope): Update call to dwarf2_add_member_fn.
7103 * gdbtypes.c (allocate_stub_method): Update comment.
7104 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7105 Use new argument layout.
7106 (check_stub_method): Use new argument layout. Don't count
7107 void as an argument.
7108 (print_arg_types): Update comments. Use new argument layout.
7109 (recursive_dump_type): Don't print arg_types member.
7110 * hpread.c (hpread_read_struct_type): Use new argument layout.
7111 (fixup_class_method_type): Likewise.
7112 (hpread_type_lookup): Likewise.
7113 * stabsread.c (read_type): Update calls to read_args and
7114 smash_to_method_type.
7115 (read_args): Use new argument layout. Simplify.
7116 * valops.c (typecmp): Use new argument layout. Update parameters
7117 and comments. Simplify.
7118 (hand_function_call): Use new argument layout.
7119 (search_struct_method): Update call to typecmp.
7120 (find_overload_match): Use new argument layout.
7121
6da02953
DJ
71222002-06-13 Daniel Jacobowitz <drow@mvista.com>
7123
7124 * NEWS: Mention multithreaded debug support for gdbserver.
7125
519b2366
DJ
71262002-06-13 Daniel Jacobowitz <drow@mvista.com>
7127
7128 * MAINTAINERS: Mention NEWS.
7129
6c0d6680
DJ
71302002-06-13 Daniel Jacobowitz <drow@mvista.com>
7131
7132 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7133 (struct mips_objfile_private, compare_pdr_entries): New.
7134 (non_heuristic_proc_desc): Read the ".pdr" section if it
7135 is present.
7136
6529d2dd
AC
71372002-06-12 Andrew Cagney <ac131313@redhat.com>
7138
7139 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7140 (arm_debug): New static variable.
7141 (_initialize_arm_tdep): Add ``set debug arm'' command.
7142
26216b98
AC
71432002-06-12 Andrew Cagney <ac131313@redhat.com>
7144
7145 * Makefile.in (sim_arm_h): Define.
7146 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7147 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7148 (arm_register_sim_regno): New function, map an internal REGNUM
7149 onto a simulator register number.
7150 (arm_gdbarch_init): Set register_sim_regno.
7151
814b3ba0
AH
71522002-06-09 Aldy Hernandez <aldyh@redhat.com>
7153
7154 * MAINTAINERS: Add self.
7155
475b0867
JB
71562002-06-11 Jim Blandy <jimb@redhat.com>
7157
919d772c
JB
7158 * source.c (source_info): Mention whether the symtab has
7159 information about preprocessor macros.
7160
475b0867
JB
7161 Call the command `info macro', not `show macro'.
7162 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7163 Fix error message.
7164 (_initialize_macrocmd): Register `info_macro_command' in
7165 `infolist', not `showlist'.
7166
9e364162
DJ
71672002-06-11 Daniel Jacobowitz <drow@mvista.com>
7168
7169 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7170 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7171 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7172 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7173 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7174 unconditionally.
7175 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7176 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7177 (_initialize_mips_tdep): Remove dead code.
7178 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7179 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7180 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7181 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7182 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7183 MIPS_LAST_FP_ARG_REGNUM): Remove.
7184
23aa4c72
ML
71852002-06-11 Michal Ludvig <mludvig@suse.cz>
7186
7187 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7188 (unwind_tmp_obstack_free, parse_frame_info)
7189 (update_context, cfi_read_fp, cfi_write_fp)
7190 (cfi_frame_chain, cfi_init_extra_frame_info)
7191 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7192 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7193
70eb15a4
CV
71942002-06-11 Corinna Vinschen <vinschen@redhat.com>
7195
7196 * v850-tdep.c (v850_type_is_scalar): New function.
7197 (v850_use_struct_convention): Match current gcc implementation
7198 as close as possible.
7199 (v850_push_arguments): Fix stack_offset handling. Don't write
7200 struct_addr into register. This is done by v850_store_struct_return.
7201 (v850_extract_return_value): Care for structs.
7202 (v850_store_return_value): Ditto.
7203 (v850_store_struct_return): Actually write address.
7204
482a4d06
ML
72052002-06-11 Michal Ludvig <mludvig@suse.cz>
7206
7207 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7208 without debug information too.
7209
d855c300
AC
72102002-06-10 Andrew Cagney <ac131313@redhat.com>
7211
7212 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7213 Make multi-arch pure.
7214 * gdbarch.h, gdbarch.c: Re-generate.
7215 * arm-tdep.c (arm_print_float_info): Update.
7216 * arch-utils.h (default_print_float_info): Update.
7217 * arch-utils.c (default_print_float_info): Update.
7218 * infcmd.c (float_info): Update call.
7219
dd12a101
AC
72202002-06-10 Andrew Cagney <ac131313@redhat.com>
7221
7222 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7223 the front of the initialize list.
7224
101dcfbe
AC
72252002-06-10 Andrew Cagney <ac131313@redhat.com>
7226
7227 * infrun.c (struct inferior_status): Replace fields
7228 selected_frame_address and selected_level with field
7229 selected_frame_id.
7230 (save_inferior_status): Update. Use get_frame_id.
7231 (struct restore_selected_frame_args): Delete.
7232 (restore_selected_frame): Update. Use frame_find_by_id.
7233 (restore_inferior_status): Update.
7234
7235 * breakpoint.h (struct breakpoint): Change type of
7236 watchpoint_frame to frame_id.
7237 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7238 call to get_current_frame.
7239 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7240 get_current_frame.
7241 (watchpoint_check): Use frame_find_by_id.
7242
7243 * frame.h (record_selected_frame): Delete declaration.
7244 * stack.c (record_selected_frame): Delete function.
7245
7246 * frame.h (struct frame_id): Define.
7247 (get_frame_id): Declare.
7248 (frame_find_by_id): Declare.
7249 * frame.c (frame_find_by_id): New function.
7250 (get_frame_id): New function.
7251
304270b6
AV
72522002-06-10 Andrey Volkov <avolkov@transas.com>
7253
7254 * ser-e7kpc.c: Fix duplicated define and call of
7255 _initialize_ser_e7000pc
7256
2f2cf184
DJ
72572002-06-09 Daniel Jacobowitz <drow@mvista.com>
7258
7259 * signals/signals.c (target_signal_from_host): Fix #ifdef
7260 SIGRTMIN case.
7261 (do_target_signal_to_host): Likewise.
7262
caaa3122
DJ
72632002-06-09 Daniel Jacobowitz <drow@mvista.com>
7264
7265 * mips-tdep.c (mips_find_abi_section): New function.
7266 (mips_gdbarch_init): Call it.
7267
6ac5df3a
MK
72682002-06-09 Mark Kettenis <kettenis@gnu.org>
7269
7270 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7271 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7272 after Andrew's 2002-06-08 gdbarch change.
7273
82ea117a
MK
72742002-06-09 Mark Kettenis <kettenis@gnu.org>
7275
7276 * i386-linux-nat.c (suppy_gregset): Don't supply
7277 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7278 register cache.
7279 (fill_gregset): Don't fetch it under the same circumstances.
7280
3c25f8c7
AC
72812002-06-09 Andrew Cagney <cagney@redhat.com>
7282
7283 * Makefile.in (callback_h): Define.
7284 (remote_sim_h): Update path to remote-sim.h.
7285 (remote-rdp.o): Add $(callback_h).
7286 (remote-sim.o): Use $(callback_h).
7287 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7288 * remote-rdp.c: Include "gdb/callback.h".
7289
1029b7fa
MK
72902002-06-09 Mark Kettenis <kettenis@gnu.org>
7291
7292 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7293 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7294
616675d3
AC
72952002-06-08 Andrew Cagney <ac131313@redhat.com>
7296
a3efda28
AC
7297 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7298 * rdi-share/serpardr.c: Ditto.
7299 * rdi-share/unixcomm.c: Ditto.
7300 * rdi-share/serdrv.c: Ditto.
7301 * rdi-share/hostchan.h: Ditto.
7302 * rdi-share/hostchan.c: Ditto.
7303 * rdi-share/host.h: Ditto.
7304 * rdi-share/devsw.c: Ditto.
7305
c5f10366
AC
7306 * objfiles.h: Change type of obj_private to void pointer.
7307 * pa64solib.c: Update copyright. Don't include "assert.h", use
7308 strcmp instead of STREQ, use LONGEST, do not use PTR
7309 * somsolib.c: Ditto.
7310
616675d3
AC
7311 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7312 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7313 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7314
e4b415d9
AC
73152002-06-08 Andrew Cagney <ac131313@redhat.com>
7316
7317 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7318 (default_get_saved_register): Delete function.
7319 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7320 generic_unwind_get_saved_register.
7321 * gdbarch.h, gdbarch.c: Re-generate.
7322
ca0d0b52
AC
73232002-06-08 Andrew Cagney <ac131313@redhat.com>
7324
7325 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7326 generic_func_frame_chain_valid.
7327 * gdbarch.h, gdbarch.c: Re-generate.
7328 * blockframe.c (generic_func_frame_chain_valid): Only check
7329 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7330 passing FP to PC_IN_CALL_DUMMY.
7331 Fix PR gdb/360.
7332
76860b5f
AC
73332002-06-08 Andrew Cagney <ac131313@redhat.com>
7334
7335 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7336 (register_gdbarch_data): Initialize init_p.
7337 (gdbarch_data): Initialize data pointer using the init function.
7338 (init_gdbarch_data): Delete function.
7339 (gdbarch_update_p): Update.
7340 (initialize_non_multiarch): Update.
7341 (struct gdbarch): Add field initialized_p.
7342 * gdbarch.h, gdbarch.c: Re-generate.
7343
8dda9770
ML
73442002-06-07 Michal Ludvig <mludvig@suse.cz>
7345
7346 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7347 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7348 better do the things actually here.
7349 * x86-64-tdep.c (x86_64_register_name2nr): New.
7350 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7351 (x86_64_gdbarch_init): Respect the above change.
7352 * x86-64-tdep.h (x86_64_register_name2nr)
7353 (x86_64_register_nr2name): Add prototypes.
7354 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7355
3d79a47c
MS
73562002-06-06 Michael Snyder <msnyder@redhat.com>
7357
7bd91a28
MS
7358 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7359 Delete extra braces and re-indent.
7360 (d10v_store_return_value): Char return values
3d79a47c
MS
7361 must be shifted over by one byte in R0.
7362 (d10v_extract_return_value): Delete extra braces, re-indent.
7363
095a4c96
EZ
73642002-06-06 Elena Zannoni <ezannoni@redhat.com>
7365
7366 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7367 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7368 (d10v_integer_to_address): Rewrite.
7369 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7370 the d10v specific functions which take care of converting to the
7371 correct space.
7372
e8a77ca4
EZ
73732002-06-06 Elena Zannoni <ezannoni@redhat.com>
7374
7375 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7376 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7377
4f2e4a4f
AC
73782002-06-02 Andrew Cagney <ac131313@redhat.com>
7379
7380 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7381 includes.
7382 * config/tm-linux.h: Ditto.
7383 * config/alpha/tm-alphalinux.h: Ditto.
7384 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7385 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7386 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7387 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7388 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7389 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7390 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7391 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7392 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7393 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7394 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7395 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7396 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7397 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7398 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7399 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7400 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7401 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7402 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7403 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7404 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7405 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7406 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7407 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7408 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7409 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7410 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7411 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7412 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7413 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7414 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7415 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7416 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7417 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7418 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7419 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7420 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7421
ae2ab2ce
AS
74222002-05-04 Aidan Skinner <aidan@velvet.net>
7423
7424 * ada-exp.tab.c: New file
7425 * ada-exp.y: New file
7426 * ada-lang.c: New file
7427 * ada-lang.h: New file
7428 * ada-lex.c: New file
7429 * ada-lex.l: New file
7430 * ada-tasks.c: New file
7431 * ada-typeprint.c: New file
7432 * ada-valprint.c: New file
7433
0ddd0135
JT
74342002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7435
7436 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7437 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7438
750fbacc
JT
74392002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7442 insetead of ppc-linux-tdep.o.
7443 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7444 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7445
df94e18a
AC
74462002-06-02 Andrew Cagney <ac131313@redhat.com>
7447
7448 2002-05-07 Christian Groessler <chris@groessler.org>
7449 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7450 bit register contents for little endian hosts.
7451
1a38ab75
AC
74522002-06-01 Andrew Cagney <ac131313@redhat.com>
7453
7454 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7455 any maintainer.
7456
8b1632ac
AC
74572002-06-01 Andrew Cagney <ac131313@redhat.com>
7458
7459 * gdbarch.h: Regenerate.
7460
627054c8
AC
74612002-06-01 Andrew Cagney <ac131313@redhat.com>
7462
7463 * MAINTAINERS: Add everyone to write-after-approval list.
7464
4f460812
AC
74652002-06-01 Andrew Cagney <ac131313@redhat.com>
7466
7467 * stack.c (frame_info): Use frame_register_unwind instead of
7468 saved_regs. Mention when the SP is on the stack or in a register.
7469
7470 * frame.h (frame_register_unwind_ftype): Define. Document.
7471 (struct frame_info): Add field register_unwind and
7472 register_unwind_cache.
7473 (frame_register_unwind): Declare.
7474 (generic_unwind_get_saved_register): Declare.
7475
7476 * frame.c (frame_register_unwind): New function.
7477 (generic_unwind_get_saved_register): New function.
7478
7479 * blockframe.c (generic_call_dummy_register_unwind): New function.
7480 (frame_saved_regs_register_unwind): New function.
7481 (set_unwind_by_pc): New function.
7482 (create_new_frame): New function.
7483 (get_prev_frame): New function.
7484
de888f76
AC
74852002-05-30 Andrew Cagney <ac131313@redhat.com>
7486
7487 * a29k-share/: Delete directory.
7488 * remote-vx29k.c: Delete file.
7489
2f2c3626
JT
74902002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7491
7492 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7493 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7494
9ce5c36a
JT
74952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7496
7497 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7498 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7499 (sparc64nbsd-nat.o)
7500 (sparcnbsd-nat.o)
7501 (sparcnbsd-tdep.o): New dependency lists.
7502 * NEWS: Note new UltraSPARC NetBSD native configuration.
7503 * configure.host (sparc64-*-netbsd*): New host.
7504 * configure.tgt (sparc-*-netbsdelf*)
7505 (sparc-*-netbsd*): Set gdb_target to nbsd.
7506 (sparc64-*-netbsd*): New target.
7507 * sparc64nbsd-nat.c: New file.
7508 * sparcnbsd-nat.c: New file.
7509 * sparcnbsd-tdep.c: New file.
7510 * sparcnbsd-tdep.h: New file.
7511 * config/sparc/nbsd.mt: New file.
7512 * config/sparc/nbsd64.mh: New file.
7513 * config/sparc/nbsd64.mt: New file.
7514 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7515 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7516 (HOST_IPC): Remove.
7517 * config/sparc/nbsdaout.mt: Remove.
7518 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7519 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7520 (HOST_IPC): Remove.
7521 * config/sparc/nbsdelf.mt: Remove.
7522 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7523 sparc-nat.c compatiblity defines.
7524 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7525 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7526 * config/sparc/tm-nbsd64.h: New file.
7527 * config/sparc/tm-nbsdaout.h: Remove.
7528 * config/sparc/xm-nbsd.h: Remove.
7529
ef3cf062
JT
75302002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7531
7532 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7533 * sparc-tdep.c: Include osabi.h.
7534 (gdbarch_tdep): Add osabi member.
7535 (_initialize_sparc_tdep): Use gdbarch_register.
7536 (sparc_gdbarch_init): Use generic OS ABI framework.
7537 (sparc_dump_tdep): New function.
7538
ee8ff470
KB
75392002-05-30 Kevin Buettner <kevinb@redhat.com>
7540
7541 * corefile.c (do_captured_read_memory_integer): Return non-zero
7542 result.
7543 (safe_read_memory_integer): Copy result of memory read when
7544 status is non-zero. Also, add comments.
7545
7b112f9c
JT
75462002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * Makefile.in (ppc_tdep_h): Define.
7549 (ppc-linux-nat.o)
7550 (ppc-linux-tdep.o)
7551 (rs6000-tdep.o): Use $(ppc_tdep_h).
7552 (ppc-sysv-tdep.o)
7553 (ppcnbsd-nat.o)
7554 (ppcnbsd-tdep.o): New dependency lists.
7555 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7556 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7557 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7558 (ppc_sysv_abi_broken_use_struct_convention)
7559 (ppc_sysv_abi_use_struct_convention)
7560 (ppc_sysv_abi_push_arguments): Move to...
7561 * ppc-sysv-tdep.c: ...here.
7562 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7563 * rs6000-tdep.c (process_note_abi_tag_sections)
7564 (get_elfosabi): Remove.
7565 (rs6000_gdbarch_init): Use generic OS ABI framework.
7566 (rs6000_dump_tdep): New function.
7567 (_initialize_rs6000_tdep): Use gdbarch_register.
7568 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7569 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7570 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7571 of ppc-linux-tdep.o.
7572 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7573 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7574 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7575 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7576 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7577 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7578
480dd42a
JB
75792002-05-29 Jim Blandy <jimb@redhat.com>
7580
7581 * macroscope.c (default_macro_scope): Put `void' in empty argument
7582 list.
7583
4182591f
AC
75842002-05-29 Andrew Cagney <ac131313@redhat.com>
7585
7586 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7587 * arch-utils.c: Include "sim-regno.h".
7588 * gdbarch.sh: Don't include "sim-regno.h".
7589 * gdbarch.h, gdbarch.c: Regenerate.
7590 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7591 here.
7592 * arch-utils.h (legacy_register_sim_regno): To here.
7593 * remote-sim.c (legacy_register_sim_regno): Move function from
7594 here.
7595 * arch-utils.c (legacy_register_sim_regno): To here.
7596
8238d0bf
AC
75972002-05-28 Andrew Cagney <ac131313@redhat.com>
7598
7599 * sim-regno.h: New file.
7600 * Makefile.in (sim_regno_h): Define.
7601 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7602 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7603 (legacy_register_sim_regno): New function.
7604 (one2one_register_sim_regno): New function.
7605 (gdbsim_fetch_register): Rewrite.
7606 (gdbsim_store_register): Only store a register when
7607 REGISTER_SIM_REGNO is valid.
7608 * d10v-tdep.c: Include "sim-regno.h".
7609 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7610 (d10v_ts3_register_sim_regno): Ditto.
7611 * gdbarch.sh: Include "sim-regno.h".
7612 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7613 * gdbarch.h, gdbarch.c: Regenerate.
7614 * arch-utils.h (default_register_sim_regno): Delete declaration.
7615 * arch-utils.c (default_register_sim_regno): Delete function.
7616
485721b1
JT
76172002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7618
7619 * ppcnbsd-nat.c: Rewrite.
7620 * ppcnbsd-tdep.c: New file.
7621 * ppcnbsd-tdep.h: New file.
7622 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7623 solib.o, and solib-svr4.o.
7624 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7625 nbsd-tdep.o, and corelow.o.
7626
697f244d
AC
76272002-05-28 Andrew Cagney <ac131313@redhat.com>
7628
7629 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7630 `tr' and `sed'. Mention that `broken' targets are not expected to
7631 build.
7632
f08caad1 76332002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7634
7635 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7636 Let PC point right after the prologue before looking up symbols.
7637
3139facc
MH
76382002-05-27 Martin M. Hunt <hunt@redhat.com>
7639
7640 * i386-tdep.c (i386_register_virtual_type): Return
7641 builtin_type_vec128i for SSE registers.
7642
7643 * gdbtypes.h (builtin_type_vec128i): Declare.
7644
7645 * gdbtypes.c (build_builtin_type_vec128i): New function.
7646 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7647 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7648 (build_gdbtypes): Initialize new builtin vector types.
7649 (_initialize_gdbtypes): Register new vector types with gdbarch.
7650
6e3ba3b8
JT
76512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7654 since it has been multi-arch'd.
7655 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7656 Move Alpha and VAX multi-arch news entries to same section
7657 as other multi-arch news.
7658
93d5585d
JT
76592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7660
7661 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7662 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7663 static. Rename some register numbers to put them in ns32k-tdep
7664 private namespace.
7665 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7666 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7667 functions.
7668 (_initialize_ns32k_tdep): Use gdbarch_register.
7669 * ns32k-tdep.h: New file.
7670 * ns32knbsd-tdep.c: New file.
7671 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7672 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7673 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7674 REGISTER_BYTES, REGISTER_BYTE): Remove.
7675 * config/ns32k/tm-ns32k.h: New file.
7676 * config/ns32k/tm-umax.h: Remove.
7677
efb2c70e
JT
76782002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7679
7680 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7681 ns32k_store_struct_return, ns32k_extract_return_value,
7682 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7683 functions.
7684 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7685 ns32k_saved_pc_after_call.
7686 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7687 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7688 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7689 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7690 ns32k_extract_struct_value_address.
7691
7bcc927b
JT
76922002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7693
7694 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7695 ns32k_fix_call_dummy): New.
7696 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7697 ns32k_call_dummy_words.
7698 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7699 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7700 CALL_DUMMY_NARGS): Remove.
7701 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7702
78f9d765
JT
77032002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7704
7705 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7706 ns32k_frame_saved_pc, ns32k_frame_args_address,
7707 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7708 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7709 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7710 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7711 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7712 (BREAKPOINT): Remove..
7713 (FRAME_CHAIN): Define as ns32k_frame_chain.
7714 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7715 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7716 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7717 (FRAME_FIND_SAVED_REGS): Remove.
7718 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7719 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7720 (POP_FRAME): Define as ns32k_pop_frame.
7721
f2c762e0
JT
77222002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7723
7724 * ns32k-tdep.c (ns32k_register_byte_32082,
7725 ns32k_register_byte_32382, ns32k_register_raw_size,
7726 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7727 functions.
7728 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7729 ns32k_register_byte_32382.
7730 * config/ns32k/tm-umax.h: Update copyright years.
7731 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7732 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7733 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7734 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7735 (ns32k_get_enter_addr): Fix prototype.
7736
af137673
JT
77372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7738
7739 * ns32k-tdep.c: Update copyright years.
7740 (ns32k_register_name_32082): New function.
7741 (ns32k_register_name_32382): Ditto.
7742 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7743 (REGISTER_NAME): Define as ns32k_register_name_32382.
7744 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7745 (REGISTER_NAME): Define as ns32k_register_name_32082.
7746
a8bc7b56
JB
77472002-05-24 Jim Blandy <jimb@redhat.com>
7748
7749 * dwarf2read.c (free_line_header): Use xfree, not free.
7750
83a45910
JT
77512002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7752
7753 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7754 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7755
0db71247
AC
77562002-05-23 Andrew Cagney <ac131313@redhat.com>
7757
7758 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7759
b9e5e4dd
AC
77602002-05-23 Andrew Cagney <ac131313@redhat.com>
7761
7762 From Ross Alexander at NEC Europe:
7763 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7764
de530e84
MS
77652002-05-23 Michael Snyder <msnyder@redhat.com>
7766
7767 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7768 for input, rather than parse_and_eval_address.
7769
b91b96f4
AC
77702002-05-23 Andrew Cagney <ac131313@redhat.com>
7771
7772 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7773 * Makefile.in (sim_d10v_h): Update definition.
7774
8b279e7a
AC
77752002-05-24 Andrew Cagney <cagney@redhat.com>
7776
7777 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7778 change `2002-05-22 Michael Snyder' below.
7779 (d10v_push_arguments): Ditto.
7780 (d10v_extract_return_value): Ditto.
7781
0a3d0425
JB
77822002-05-23 Jim Blandy <jimb@redhat.com>
7783
7784 * macrotab.c (check_for_redefinition): Don't complain if the new
7785 definition is the same as the previous one. Take more arguments
7786 to allow the comparison.
7787 (macro_define_object, macro_define_function): Pass more arguments
7788 to check_for_redefinition.
7789
78eac43e
MS
77902002-05-22 Michael Snyder <msnyder@redhat.com>
7791
7792 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7793 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7794 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7795 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7796 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7797 Add a temp variable to save a call (and a memory read).
7798 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7799 if possible (so that PC_IN_CALL_DUMMY will work).
7800
9bc1edb8
CV
78012002-05-22 Corinna Vinschen <vinschen@redhat.com>
7802
7803 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7804
005ef3d2
ML
78052002-05-22 Michal Ludvig <mludvig@suse.cz>
7806
7807 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7808 fde->cie_ptr.
7809 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7810 (dwarf2_build_frame_info): Add offset to fde->initial_location
7811 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7812 (execute_stack_op): Change type of 'result' from ULONGEST to
7813 CORE_ADDR.
005ef3d2 7814
fcf4f891
JT
78152002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7816
7817 * config/alpha/tm-nbsd.h: Include solib.h.
7818
cfef91e4
JT
78192002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7820
7821 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7822 assumptions about the host's byte order.
7823
9964235a
JT
78242002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7827 to dependency list.
7828 * alphanbsd-tdep.c: Include solib-svr4.h.
7829 * shnbsd-tdep.c: Ditto.
7830
9eeef8ef
JT
78312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7832
7833 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7834 nbsd-tdep.h to dependency list.
7835 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7836 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7837 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7838 nbsdaout.mh and nbsdelf.mh consistently.
7839 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7840 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7841 nbsdaout.mt and nbsdelf.mh consistently.
7842 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7843 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7844 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7845 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7846 a.out shared library stuff from here...
7847 * config/nm-nbsdaout.h: ...to here.
7848 * config/tm-nbsd.h: Remove.
7849 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7850 * config/arm/nbsd.mh: Remove.
7851 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7852 nbsd-tdep.o.
7853 * config/arm/nbsdaout.mh: New file.
7854 * config/arm/nbsdelf.mh: New file.
7855 * config/arm/nm-nbsdaout.h: New file.
7856 * config/i386/nbsd.mh: Remove.
7857 * config/i386/nbsd.mt: Remove.
7858 * config/i386/nbsdaout.mh: New file.
7859 * config/i386/nbsdaout.mt: New file.
7860 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7861 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7862 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7863 i386_register_u_addr): Remove.
7864 * config/i386/nm-nbsdaout.h: New file.
7865 * config/i386/nm-nbsdelf.h: Remove.
7866 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7867 (USE_STRUCT_CONVENTION): Remove.
7868 * config/i386/tm-nbsdaout.h: New file.
7869 * config/i386/tm-nbsdelf.h: Remove.
7870 * config/m68k/nbsd.mh: Remove.
7871 * config/m68k/nbsd.mt: Remove.
7872 * config/m68k/nbsdaout.mh: New file.
7873 * config/m68k/nbsdaout.mt: New file.
7874 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7875 * config/m68k/nm-nbsdaout.h: New file.
7876 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7877 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7878 * config/ns32k/nbsd.mh: Remove.
7879 * config/ns32k/nbsd.mt: Remove.
7880 * config/ns32k/nbsdaout.mh: New file.
7881 * config/ns32k/nbsdaout.mt: New file.
7882 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7883 * config/ns32k/nm-nbsdaout.h: New file.
7884 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7885 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7886 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7887 (SVR4_SHARED_LIBS): Remove.
7888 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7889 * config/sparc/nbsd.mh: Remove.
7890 * config/sparc/nbsd.mt: Remove.
7891 * config/sparc/nbsdaout.mh: New file.
7892 * config/sparc/nbsdaout.mt: New file.
7893 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7894 * config/sparc/nbsdelf.mt: New file.
7895 * config/sparc/nm-nbsdaout.h: New file.
7896 * config/sparc/nm-nbsdelf.h: Remove.
7897 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7898 * config/sparc/tm-nbsdaout.h: New file.
7899
257ce470
JT
79002002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7901
7902 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7903 mipsnbsd-tdep.c
7904 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7905
76a6d5fe
JT
79062002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7907
7908 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7909 shnbsd-nat.c.
7910 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7911
45888261
JT
79122002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7913
7914 * NEWS: Note new MIPS NetBSD native configuration.
7915 * configure.host (mips*-*-netbsd*): New host.
7916 * configure.tgt (mips*-*-netbsd*): New target.
7917 * mipsnbsd-nat.c: New file.
7918 * mipsnbsd-tdep.c: New file.
7919 * mipsnbsd-tdep.h: New file.
7920 * config/mips/nbsd.mh: New file.
7921 * config/mips/nbsd.mt: New file.
7922 * config/mips/nm-nbsd.h: New file.
7923 * config/mips/tm-nbsd.h: New file.
7924
70f80edf
JT
79252002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7926
7927 * Makefile.in (SFILES): Add osabi.c.
7928 (COMMON_OBS): Add osabi.o.
7929 (osabi.o): New dependency list.
7930 * osabi.c: New file.
7931 * osabi.h: New file.
7932 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7933
7934 * Makefile.in (alpha_tdep_h): Define and use instead of
7935 alpha-tdep.h.
7936 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7937 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7938 Remove.
7939 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7940 * alpha-tdep.h: Include osabi.h.
7941 (alpha_abi): Remove.
7942 (gdbarch_tdep): Use generic OS ABI framework.
7943 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7944 gdbarch_register_osabi.
7945 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7946 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7947 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7948
7949 * Makefile.in (sh_tdep_h): Add osabi.h.
7950 * sh-tdep.h (sh_osabi): Remove.
7951 (gdbarch_tdep): Use generic OS ABI framework.
7952 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7953 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7954 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7955 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7956
7957 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7958 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7959 gdbarch_register_osabi.
7960 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7961 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7962 (get_elfosabi): Rename to...
7963 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7964 ABI framework support routines.
7965 (arm_gdbarch_init): Use generic OS ABI framework.
7966 (arm_dump_tdep): Likewise.
7967 (_initialize_arm_tdep): Likewise.
7968 * arm-tdep.h: Include osabi.h.
7969 (arm_abi): Remove.
7970 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7971 osabi member.
7972 (arm_gdbarch_register_os_abi): Remove prototype.
7973 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7974 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7975
7976 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7977 * mips-tdep.c: Include osabi.h.
7978 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7979 OS ABI framework.
7980
d194345b
KH
79812002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7982
7983 * h8300-tdep.c: Fix formatting.
7984
70c6b0d1
EZ
79852002-05-20 Elena Zannoni <ezannoni@redhat.com>
7986
7987 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7988 printing vector registers.
7989
165b8e33
AC
79902002-05-19 Andrew Cagney <ac131313@redhat.com>
7991
7992 From Fernando Nasser:
7993 * remote.c (remote_async_open_1): Re-throw the exception when the
7994 connection fails.
7995 (remote_cisco_open): Ditto.
7996 (remote_open_1): Ditto.
7997
36918e70
AC
79982002-05-19 Andrew Cagney <ac131313@redhat.com>
7999
8000 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8001 (remote_start_remote): Add uiout parameter. Pass through to
8002 remote_start_remote_dummy.
8003 (remote_open_1): Use catch_exception instead of catch_errors.
8004 (remote_async_open_1): Ditto.
8005 (remote_cisco_open): Ditto.
8006
ae44c0c4
AC
80072002-05-19 Andrew Cagney <ac131313@redhat.com>
8008
8009 * remote.c (remote_start_remote): Replace PTR with void pointer.
8010 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8011 static.
8012
8efe637d
AC
80132002-05-18 Andrew Cagney <ac131313@redhat.com>
8014
8015 * gdb_indent.sh: Allow the script to be run in the sim directory.
8016
2f1b5984
MK
80172002-05-18 Mark Kettenis <kettenis@gnu.org>
8018
f0f625e2
MK
8019 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8020 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8021
2f1b5984
MK
8022 * corelow.c (core_open): Only call set_gdbarch_from_file if
8023 exec_bfd is NULL.
8024
fc974602
AV
80252002-05-17 Andrey Volkov <avolkov@transas.com>
8026
8027 * h8300-tdep.c: Add support of EXR register
8028 * config/h8300/tm-h8300.h: Ditto.
8029
906709f4
AV
80302002-05-17 Andrey Volkov <avolkov@transas.com>
8031
8032 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8033
6e591d68
AV
80342002-05-17 Andrey Volkov <avolkov@transas.com>
8035
8036 * h8300-tdep.c: Change literal regnums to REGNO.
8037
84f0252a
JB
80382002-05-17 Jim Blandy <jimb@redhat.com>
8039
e0e9281e
JB
8040 * NEWS: Note addition of macro support.
8041
84f0252a
JB
8042 Expand preprocessor macros in C expressions.
8043 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8044 (scan_macro_expansion, scanning_macro_expansion,
8045 finished_macro_expansion): New function declarations.
8046 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8047 variable declarations.
8048 * parser-defs.h (expression_context_pc): New declaration.
8049 * parse.c (expression_context_pc): New variable.
8050 (parse_exp_1): Set expression_context_pc, as well as
8051 expression_context_block.
8052 * c-exp.y (yylex): If we're not already reading the result of a
8053 macro expansion, try to macro-expand the next token. When we're
8054 done scanning a macro expansion, switch back to the mainline text.
8055 Commas and `if's in a macro's expansion don't terminate the input.
8056 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8057 (macro_original_text, macro_expanded_text,
8058 expression_macro_lookup_func, expression_macro_lookup_baton): New
8059 variables.
8060 (scan_macro_expansion, scanning_macro_expansion,
8061 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8062 c_preprocess_and_parse): New functions.
8063 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8064 c_preprocess_and_parse, instead of c_parse.
8065 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8066 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8067
1c509ca8
JR
8068Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8069
8070 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8071 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8072 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8073
2250ee0c
CV
80742002-05-17 Corinna Vinschen <vinschen@redhat.com>
8075
8076 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8077
ab3b8126
JT
80782002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 * Makefile.in (sh_tdep_h): Define and use.
8081 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8082 register enum): Move to...
8083 * * sh-tdep.h: ...here.
8084 * sh-tdep.c: Include sh-tdep.h.
8085 * sh3-rom.c: Likewise.
8086 * shnbsd-tdep.c: Likewise.
8087
ed9d4749
MS
80882002-05-16 Michael Snyder <msnyder@redhat.com>
8089
8090 * arm-tdep.c: Spelling fix in comment.
8091
2e276125
JB
80922002-05-16 Jim Blandy <jimb@redhat.com>
8093
6821892e
JB
8094 Add commands for manually expanding macros and showing their
8095 definitions.
8096 * macrocmd.c, macroscope.c, macroscope.h: New files.
8097 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8098 (macroscope_h): New variable.
8099 (HFILES_NO_SRCDIR): Add macroscope.h.
8100 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8101 (macroscope.o, macrocmd.o): New rules.
8102
2e276125
JB
8103 Teach the Dwarf 2 reader to read macro information.
8104 * dwarf2read.c: #include "macrotab.h".
8105 (dwarf_macinfo_buffer): New variable.
8106 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8107 dwarf_macinfo_size.
8108 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8109 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8110 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8111 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8112 dwarf2_macro_spaces_in_definition): New complaints.
8113 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8114 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8115 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8116 the partial symbol table.
8117 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8118 from what's recorded in the partial symbol table.
8119 (read_file_scope): If the compilation unit has a
8120 `DW_AT_macro_info' attribute, read its macro information.
8121 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8122
2f53fe6c
DJ
81232002-05-16 Daniel Jacobowitz <drow@mvista.com>
8124
8125 Fix PR gdb/546
8126 * ser-tcp.c: Don't include <netinet/udp.h>.
8127
2be99286
SC
81282002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8129
8130 * MAINTAINERS: Update my email address.
8131
c9af212b 81322002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8133
8134 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8135 include file of the same name.
8136
bf5f1a52
CV
81372002-05-16 Corinna Vinschen <vinschen@redhat.com>
8138
8139 * configure.tgt: Mark v850 as multi-arched.
8140 * config/v850/tm-v850.h: Remove file.
8141 * config/v850/v850.mt: Eliminate TM_FILE.
8142
435e042a
CV
81432002-05-16 Corinna Vinschen <vinschen@redhat.com>
8144
8145 * v850-tdep.c: Full multi-arch.
8146 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8147 Define GDB_MULTI_ARCH to 2.
8148
9819c6c8
PM
81492002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8150
8151 * p-exp.y (current_type): New static variable.
8152 Carries the type of the expression at the position that is parsed.
8153 (push_current_type, pop_current_type): Two new functions. Used
8154 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8155 (search_field): New static variable. Set to one after parsing a point
8156 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8157 (FIELDNAME): New token. After a point only a token belonging to
8158 current_type type definition is allowed.
8159 (all over token rules): reset and change current_type according
8160 to rules.
8161 (exp '[' rule): insert implicit array index field if
8162 exp is a pascal string type.
8163
3a06899a
CV
81642002-05-16 Corinna Vinschen <vinschen@redhat.com>
8165
8166 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8167 frame info. Use frame_info's saved_regs instead of matching member
8168 in extra_frame_info throughout.
8169 (v850_frame_init_saved_regs): New function.
8170 (v850_init_extra_frame_info): Move most functionality into
8171 v850_frame_init_saved_regs().
8172 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8173 (v850_frame_find_saved_regs): Remove declaration.
8174 (FRAME_FIND_SAVED_REGS): Remove definition.
8175 (v850_frame_init_saved_regs): Add declaration.
8176 (FRAME_INIT_SAVED_REGS): Add definition.
8177
6ed14b0e
CV
81782002-05-16 Corinna Vinschen <vinschen@redhat.com>
8179
8180 * v850-tdep.c: Begin multi-arch'ing v850.
8181 (v850_target_architecture_hook): Remove function.
8182 (v850_gdbarch_init): New function. Add code previously in
8183 v850_target_architecture_hook().
8184 (_initialize_v850_tdep): Don't set target_architecture_hook.
8185 Call register_gdbarch_init() instead.
8186
42725910
DJ
81872002-05-16 Daniel Jacobowitz <drow@mvista.com>
8188
8189 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8190 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8191 (fixup_class_method_type): Likewise.
8192
99d9066e
JB
81932002-05-15 Jim Blandy <jimb@redhat.com>
8194
8195 Add macro structures to GDB's symbol tables. Nobody puts anything
8196 in them yet.
8197 * symtab.h (struct symtab): New member: `macro_table'.
8198 * buildsym.h (pending_macros): New global variable.
8199 * buildsym.c: #include "macrotab.h".
8200 (buildsym_init): Initialize `pending_macros'.
8201 (end_symtab): If we found macro information while reading a CU's
8202 debugging info, do build a symtab structure for it. Make the
8203 symtab point to the macro information, and clear the
8204 `pending_macros' pointer which held it while we were reading the
8205 debug info.
8206 (really_free_pendings): Free any pending macro table.
8207 * objfiles.h (struct objfile): New member: `macro_cache'.
8208 * objfiles.c (allocate_objfile): Set allocate and free functions
8209 for the macro cache's objstack.
8210 (free_objfile): Empty the macro cache's obstack.
8211 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8212 set new allocate and free functions for it.
8213 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8214 free functions for the macro cache's objstack. (Why is this
8215 function building its own objfile?)
8216 * symmisc.c (print_objfile_statistics): Print statistics on the
8217 macro bcache.
8218 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8219
c899585b
RE
82202002-05-15 Richard Earnshaw <rearnsha@arm.com>
8221
8222 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8223 (REGISTER_U_ADDR): Delete definition.
8224 (arm_register_u_addr): Delete declaration.
8225
a6cdd8c5
RE
82262002-05-15 Richard Earnshaw <rearnsha@arm.com>
8227
8228 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8229 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8230
c97dcfc7
AC
82312002-05-14 Andrew Cagney <ac131313@redhat.com>
8232
8233 * regcache.c (register_valid): Revise comments refering to "Not
8234 available" and "unavailable".
8235 * frame.c (frame_register_read): Ditto.
8236 * findvar.c (value_of_register): Ditto.
8237
93021b7d
AC
82382002-05-15 Andrew Cagney <cagney@redhat.com>
8239
8240 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8241 (remote-sim.o): Update dependencies.
8242 (d10v-tdep.o): Specify dependencies.
8243 (sim_d10v_h): Define.
8244
a86bc61c
JB
82452002-05-14 Jim Blandy <jimb@redhat.com>
8246
8247 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8248 * macrotab.c (macro_lookup_inclusion, find_definition,
8249 new_macro_table): Same.
8250
8251 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8252 not `! strcmp ()'. This is a dubious improvement.
8253 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8254
8255 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8256 although it's not necessary, to avoid a warning.
8257
2fdde8f8
DJ
82582002-05-14 Daniel Jacobowitz <drow@mvista.com>
8259
8260 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8261 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8262 TYPE_INSTANCE_FLAGS.
8263 (struct main_type): New.
8264 (struct type): Move most members to struct main_type. Change
8265 cv_type and as_type to new type_chain member. Add instance_flags.
8266 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8267 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8268 (finish_cv_type): Remove prototype.
8269 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8270 Set TYPE_CHAIN.
8271 (alloc_type_instance): New function.
8272 (smash_type): New function.
8273 (make_pointer_type, make_reference_type, make_function_type)
8274 (smash_to_member_type, smash_to_method_type): Call smash_type.
8275 (make_qualified_type): New function.
8276 (make_type_with_address_space): Call make_qualified_type.
8277 (make_cv_type): Likewise.
8278 (finish_cv_type): Remove unnecessary function.
8279 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8280 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8281 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8282 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8283 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8284 * hpread.c (hpread_read_struct_type): Likewise.
8285 * stabsread.c (read_struct_type): Likewise.
8286
843fedf4
EZ
82872002-05-14 Elena Zannoni <ezannoni@redhat.com>
8288
8289 * configure.tgt: Add a catch all sh* target, for cases like
8290 sh[2,3,4]-elf and sh-hms.
8291
05a6c72c
KS
82922002-05-14 Keith Seitz <keiths@redhat.com>
8293
8294 * event-loop.c (create_file_handler): Don't do anything but
8295 update data when we are given a fd which we are already
8296 monitoring.
8297
5d085aaf
ML
82982002-05-14 Michal Ludvig <mludvig@suse.cz>
8299
8300 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8301 (update_context): Use __func__ in warnings.
8302
9db8d71f
DJ
83032002-05-14 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8306 and tcp_close to net_open and net_close.
8307 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8308 using UDP if requested. Don't try to disable Nagle on UDP
8309 sockets.
8310 * remote.c (remote_serial_open): New function. Warn about UDP.
8311 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8312
5dbc6baa
EZ
83132002-05-13 Elena Zannoni <ezannoni@redhat.com>
8314
8315 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8316
cc3023f7
EZ
83172002-05-13 Elena Zannoni <ezannoni@redhat.com>
8318
8319 * configure.tgt: Remove sh-hms target.
8320 * MAINTAINERS: Don't list sh-hms as a separate target.
8321
ec2bcbe7
JB
83222002-05-13 Jim Blandy <jimb@redhat.com>
8323
8324 Add first preprocessor macro-expansion files.
8325 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8326 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8327 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8328 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8329 (COMMON_OBS): Add macrotab.o, macroexp.o.
8330 (macroexp.o, macrotab.o): New rules.
8331
6d531722
AC
83322002-05-13 Andrew Cagney <ac131313@redhat.com>
8333
8334 * config/m88k/tm-m88k.h: Update copyright.
8335 (m88k_target_write_pc): Declare
8336 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8337 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8338 (SHIFT_INST_REGS): Update definition.
8339 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8340 using old definition of TARGET_WRITE_PC.
8341 * regcache.c (generic_target_write_pc): Delete code handling
8342 NNPC_REGNUM.
8343 * gdbarch.sh (NNPC_REGNUM): Delete.
8344 * gdbarch.h, gdbarch.c: Regenerate.
8345
3e3f2739
RE
83462002-05-13 Richard Earnshaw <rearnsha@arm.com>
8347
8348 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8349 builtin reg number.
8350
0004e5a2
DJ
83512002-05-13 Daniel Jacobowitz <drow@mvista.com>
8352
8353 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8354 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8355 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8356 access macros.
8357 * c-typeprint.c (cp_type_print_method_args): Likewise.
8358 (c_type_print_args): Likewise.
8359 * d10v-tdep.c (d10v_push_arguments): Likewise.
8360 (d10v_extract_return_value): Likewise.
8361 * expprint.c (print_subexp): Likewise.
8362 * gdbtypes.c (lookup_primitive_typename): Likewise.
8363 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8364 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8365 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8366 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8367 (TYPE_VECTOR): Likewise.
8368 * hpread.c (hpread_read_struct_type)
8369 (fix_static_member_physnames, fixup_class_method_type)
8370 (hpread_type_lookup): Likewise.
8371 * mdebugread.c (parse_symbol, parse_type): Likewise.
8372 * p-lang.c (is_pascal_string_type): Likewise.
8373 * valops.c (hand_function_call): Likewise.
8374 * x86-64-tdep.c (classify_argument): Likewise.
8375
8376 * hpread.c (hpread_read_function_type)
8377 (hpread_read_doc_function_type): Call replace_type.
8378 * dstread.c (create_new_type): Delete.
8379 (decode_dst_structure, process_dst_function): Call alloc_type.
8380 Use type access macros.
8381
dff95cc7
MK
83822002-05-12 Mark Kettenis <kettenis@gnu.org>
8383
8384 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8385 the're not supported by the current architecture.
8386 (i387_fill_fxsave): Likewise.
8387
bbcd32ad
FF
83882002-05-12 Fred Fish <fnf@redhat.com>
8389
8390 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8391 sect_index_xxx members to index the first slot in section_offsets
8392 if all of the section_offsets are zero.
8393
89cf4787
MK
83942002-05-12 Mark Kettenis <kettenis@gnu.org>
8395
8396 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8397 checked in with last change.
8398
1f77ffc5
MK
83992002-05-12 Mark Kettenis <kettenis@gnu.org>
8400
8401 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8402 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8403 config.sub.
8404
89b8b4a9
DJ
84052002-05-12 Daniel Jacobowitz <drow@mvista.com>
8406
8407 * Makefile.in: Update dependencies.
8408
14a5e767
AC
84092002-05-11 Andrew Cagney <ac131313@redhat.com>
8410
8411 * language.c (local_hex_string_custom): Simplify. Do not depend
8412 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8413
8414 * memattr.c (mem_info_command): Replace calls to
8415 longest_local_hex_string and longest_local_hex_string_custom.
8416 * buildsym.c (make_blockvector): Ditto.
8417 * solib.c (info_sharedlibrary_command): Ditto.
8418 * tracepoint.c (tracepoints_info): Ditto.
8419 * symtab.c (print_msymbol_info): Ditto.
8420
8421 * language.c (local_hex_string): Delete.
8422 (local_hex_string_custom): Delete.
8423 (longest_local_hex_string): Rename to local_hex_string.
8424 (longest_local_hex_string_custom): Rename to
8425 local_hex_string_custom.
8426 * language.h (local_hex_string): Change parameter type to LONGEST.
8427 (local_hex_string_custom): Ditto.
8428 (longest_local_hex_string): Delete declaration.
8429 (longest_local_hex_string_custom): Ditto.
8430
8431 * solib.c: Update copyright.
8432 * memattr.c: Update copyright.
8433
13d01224
AC
84342002-05-11 Andrew Cagney <ac131313@redhat.com>
8435
8436 * arch-utils.h (legacy_register_to_value): Declare.
8437 (legacy_value_to_register): Declare.
8438 (legacy_convert_register_p): Declare.
8439 * arch-utils.c (legacy_register_to_value): New function.
8440 (legacy_value_to_register): New function.
8441 (legacy_convert_register_p): New function.
8442
8443 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8444 (VALUE_TO_REGISTER): Define.
8445 (CONVERT_REGISTER_P): Define.
8446 * gdbarch.h, gdbarch.c: Regenerate.
8447
8448 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8449 VALUE_TO_REGISTER.
8450 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8451 CONVERT_REGISTER_P.
8452
4a1970e4
DJ
84532005-05-11 Daniel Jacobowitz <drow@mvista.com>
8454 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8455
8456 * Makefile.in: Update dependencies for valops.c.
8457 * valops.c: Include "gdb_assert.h".
8458 (typecmp): Skip THIS parameter to methods.
8459 (find_method_list): Remove static_memfuncp argument,
8460 update callers. Check for stub methods.
8461 (find_value_oload_method_list): Don't set *static_memfuncp.
8462 (find_overload_match): Don't check for stub methods. Assert
8463 that methods are not stubbed. Handle static methods.
8464 (value_find_oload_method_list): Remove static_memfuncp argument.
8465 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8466 to the argument list for static stub methods.
8467 * value.h (value_find_oload_method_list): Update prototype.
8468
b2e75d78
AC
84692002-05-11 Andrew Cagney <ac131313@redhat.com>
8470
8471 * arch-utils.h (generic_register_size): Declare.
8472 (generic_register_raw_size, generic_register_virtual_size): Delete
8473 declarations.
8474 * arch-utils.c (generic_register_raw_size): Delete.
8475 (generic_register_size): New function.
8476 (generic_register_virtual_size): Delete.
8477
8478 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8479 default generic_register_size.
8480 * gdbarch.h, gdbarch.c: Re-generate.
8481
8482 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8483 register_virtual_size.
8484 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8486
451fbdda
AC
84872002-05-11 Andrew Cagney <ac131313@redhat.com>
8488
8489 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8490 * gdbarch.h, gdbarch.c: Regenerate.
8491 * gnu-v3-abi.c: Update copyright.
8492 (vtable_address_point_offset): Update.
8493 (gnuv3_rtti_type): Update.
8494 (gnuv3_baseclass_offset): Update.
8495 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8496 (init_fetch_link_map_offsets): Update.
8497 * remote.c (get_remote_state): Update.
8498
6d2f5cea
DJ
84992002-05-11 Daniel Jacobowitz <drow@mvista.com>
8500
8501 * TODO: Remove value_headof/value_from_vtable_info comment.
8502 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8503 * values.c (value_headof, value_from_vtable_info): Delete.
8504 * value.h (value_from_vtable_info): Delete prototype.
8505
d2324da4
AC
85062002-05-11 Andrew Cagney <ac131313@redhat.com>
8507
8508 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8509 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8510 $(gdb_regex_h).
8511 (gdb_assert_h): Define.
8512 (gdb_wait_h): Define.
8513 (gdb_regex_h): Define.
8514
5c717440
DJ
85152002-05-11 Daniel Jacobowitz <drow@mvista.com>
8516
8517 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8518 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8519
6c7861b3
JT
85202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8521
8522 * nbsd-tdep.c: Fix comment.
8523
ea5bc2a6
JT
85242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8525
8526 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8527 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8528 (nbsd-tdep.o): New dependency list.
8529 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8530 nbsd-tdep.h.
8531 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8532 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8533 * nbsd-tdep.c: New file.
8534 * nbsd-tdep.h: New file.
8535 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8536 nbsd-tdep.h.
8537 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8538 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8539 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8540 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8541
b28da865
JT
85422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8543
8544 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8545 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8546 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8547 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8548 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8549 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8550
4b8ff1fa
JT
85512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8552
8553 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8554 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8555 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8556 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8557 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8558 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8559 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8560
dfe6eb1f
JT
85612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8562
8563 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8564 fetch_elfcore_registers to...
8565 * i386nbsd-tdep.c: ...here.
8566 (i386nbsd_use_struct_convention): Rename to...
8567 (i386nbsd_aout_use_struct_convention): ...this.
8568 (i386nbsd_supply_reg): New function.
8569 (i386nbsd_fill_reg): New function.
8570 (fetch_core_registers): Use i386nbsd_supply_reg.
8571 (fetch_elfcore_registers): Likewise.
8572 (_initialize_i386nbsd_tdep): New function.
8573 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8574 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8575 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8576 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8577 (i386nbsd_aout_use_struct_convention): ...this.
8578
20cb8cda
JT
85792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8580
8581 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8582 (store_inferior_registers): Use shnbsd_fill_reg.
8583 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8584 sh_nbsd_supply_register): Collapse into...
8585 (shnbsd_supply_reg): ...this.
8586 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8587 (shnbsd_fill_reg): ...this.
8588 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8589 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8590 (fetch_core_registers): Use shnbsd_supply_reg.
8591 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8592 (sh_nbsd_core_fns): Rename to...
8593 (shnbsd_core_fns): ...this.
8594 (sh_nbsd_elfcore_fns): Rename to...
8595 (shnbsd_elfcore_fns): ...this.
8596 (sh_nbsd_init_abi): Rename to...
8597 (shnbsd_init_abi): ...this.
8598 (_initialize_sh_nbsd_tdep): Rename to...
8599 (_initialize_shnbsd_tdep): ...this.
8600 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8601 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8602 sh_nbsd_fill_register): Remove prototypes.
8603 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8604
e750d25e
JT
86052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8606
8607 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8608 (i387-nat.o): Delete dependency list.
8609 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8610 (x86-64-linux-nat.o): Likewise.
8611 * i387-nat.c: Delete file, moving contents to...
8612 * i387-tdep.c: ...here.
8613 * i387-nat.h: Rename...
8614 * i387-tdep.h: ...to this.
8615 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8616 * i386-linux-nat.c: Likewise.
8617 * i386bsd-nat.c: Likewise.
8618 * i386gnu-nat.c: Likewise.
8619 * i386nbsd-nat.c: Likewise.
8620 * i386v4-nat.c: Likewise.
8621 * x86-64-linux-nat.c: Likewise.
8622 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8623 * config/i386/go32.mh (NATDEPFILES): Likewise.
8624 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8625 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8626 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8627 * config/i386/linux.mh (NATDEPFILES): Likewise.
8628 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8629 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8630 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8631 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8632
1aee598a
JT
86332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8634
8635 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8636 (alphanbsd-nat.o): Remove dependency list.
8637 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8638 * alphanbsd-nat.c: Delete. Contents moved to...
8639 * alphanbsd-tdep.c: ...here.
8640 (_initialize_alphanbsd_tdep): Register core functions.
8641 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8642
12bcb0fe
JT
86432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8644
8645 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8646 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8647 (alphanbsd-nat.o): Likewise.
8648 (alphabsd-tdep.o): New dependency list.
8649 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8650 (fill_gregset): Use alphabsd_fill_reg.
8651 (supply_fpregset): Use alphabsd_supply_fpreg.
8652 (fill_fpregset): Use alphabsd_fill_fpreg.
8653 (fetch_inferior_registers): Use struct reg and struct fpreg
8654 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8655 and alphabsd_supply_fpreg.
8656 (store_inferior_registers): Use struct reg and struct fpreg
8657 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8658 and alphabsd_fill_fpreg.
8659 * alphabsd-tdep.c: New file.
8660 * alphabsd-tdep.h: New file.
8661 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8662 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8663 alphabsd_supply_fpreg.
8664 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8665 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8666
361d1df0
EC
86672002-05-11 Eric Christopher <echristo@redhat.com>
8668
8669 * mips-tdep.c (mips_double_register_type): Fix thinko.
8670 (mips_single_register_type): Ditto.
8671 * MAINTAINERS: Add self.
8672
92dd7cee
MK
86732002-05-11 Mark Kettenis <kettenis@gnu.org>
8674
8675 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8676 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8677 right thing on architectures with different endianness and/or
8678 integer sizes.
8679
e27da16d
JT
86802002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8681
8682 From Christian Limpach <chris@Pin.LU>
8683 * configure.in: Change sed expression which comments out
8684 NATDEPFILES to also comment out continuation lines.
8685 * configure: Regenerate.
8686
ddde02bd
EZ
86872002-05-10 Elena Zannoni <ezannoni@redhat.com>
8688
8689 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8690 big patch.
8691
1c922164
EZ
86922002-05-10 Elena Zannoni <ezannoni@redhat.com>
8693
8694 * sh-tdep.c: Include correct file.
8695
283150cd
EZ
86962002-05-10 Elena Zannoni <ezannoni@redhat.com>
8697
8698 New support for sh64-elf (sh5) target.
8699
8700 * configure.tgt: For sh64-elf target, default to sh-elf.
8701
8702 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8703 (struct gdbarch_tdep): Add new fields for new registers and ABI
8704 info.
361d1df0 8705
283150cd
EZ
8706 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8707 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8708 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8709 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8710 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8711 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8712 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8713 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8714 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8715 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8716 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8717 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8718 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8719 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8720 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8721 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8722 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8723 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8724 sign_extend, sh64_nofp_frame_init_saved_regs,
8725 sh64_init_extra_frame_info, sh64_get_saved_register,
8726 sh64_extract_struct_value_address, sh64_pop_frame,
8727 sh64_push_arguments, sh64_extract_return_value,
8728 sh64_store_return_value, sh64_show_media_regs,
8729 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8730 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8731 sh_sh64_register_virtual_type,
8732 sh_sh64_register_convert_to_virtual,
8733 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8734 sh64_register_read, sh64_pseudo_register_write,
8735 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8736 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8737 sh64_do_pseudo_register, sh_compact_do_registers_info,
8738 sh64_do_registers_info, sh_gdbarch_init): New functions.
8739
3117ed25
EZ
87402002-05-10 Elena Zannoni <ezannoni@redhat.com>
8741
8742 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8743
2654e6d4
DJ
87442002-05-10 Daniel Jacobowitz <drow@mvista.com>
8745
8746 * linespec.c (decode_line_1): Check for a double quote after
8747 a filename correctly.
8748
9ab3e532
JB
87492002-05-10 Jim Blandy <jimb@redhat.com>
8750
8751 Properly track the size of the current objfile's .debug_line section.
8752 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8753 (DWARF_LINE_SIZE): New macro.
8754 (dwarf2_build_psymtabs_hard): Record the line section's size in
8755 the partial symbol table.
8756 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8757 symbol table.
8758
126fa72d
PS
87592002-05-10 Petr Sorfa <petrs@caldera.com>
8760
8761 * ia64-tdep.c: Handle breakpoints on L instruction type
8762 in MLX instruction bundle by moving the breakpoint to
8763 the third slot (X instruction type) as L holds only data.
8764
1f077a3e
KB
87652002-05-10 Kevin Buettner <kevinb@redhat.com>
8766
8767 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8768 (process_one_symbol): Complain about discarding local symbols
8769 due to a misplaced N_LBRAC entry.
8770
8120c9d5 87712002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8772
8773 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8774 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8775 decrease the depth we are at, in the case of templates.
361d1df0 8776
67b2c998
DJ
87772002-05-09 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * mips-tdep.c (mips_float_register_type): New function.
8780 (mips_double_register_type): New function.
8781 (mips_print_register): Use them.
8782 (do_fp_register_row): Likewise.
8783
fd326606
DJ
87842002-05-09 Daniel Jacobowitz <drow@mvista.com>
8785
6609d9af 8786 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8787 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8788 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8789
bef35864
MS
87902002-05-09 Michael Snyder <msnyder@redhat.com>
8791
8792 * remote-rdp.c (remote_rdp_can_run): Remove.
8793
c55a3f73
TT
87942002-05-09 Tom Tromey <tromey@redhat.com>
8795
8796 * jv-valprint.c (java_val_print): Handle `char' as a special case
8797 of TYPE_CODE_INT.
8798
b8d5e71d
MS
87992002-05-09 Michael Snyder <msnyder@redhat.com>
8800
8801 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8802 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8803 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8804 str r(0123),[sp,#nn].
361d1df0 8805 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8806 order-independent by placing it in a loop.
8807
e2cd42dd
MS
88082002-05-06 Michael Snyder <msnyder@redhat.com>
8809
8810 * stabsread.c (read_type): Add recognition for new attribute:
8811 "@V;" means that an array type is actually a vector.
8812 This is analogous to the vector flag that's been added to dwarf2.
8813
3ce1502b
MK
88142002-05-09 Mark Kettenis <kettenis@gnu.org>
8815
8816 * i386-tdep.h (i386_abi): New enum.
8817 (struct gdbarch_tdep): Replace os_ident member with abi.
8818 (i386_gdbarch_register_os_abi): New prototype.
8819 * i386-tdep.c (i386_abi_names): New array.
8820 (process_note_abi_tag_sections): Removed.
8821 (process_note_sections): New function.
8822 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8823 (struct i386_abi_handler): New struct.
8824 (i386_abi_handler_list): New variable.
8825 (i386_gdbarch_register_os_abi): New function.
8826 (i386_gdbarch_init): Adapt for the changes given above.
8827
084c156a
DJ
88282002-05-08 Daniel Jacobowitz <drow@mvista.com>
8829
8830 * gregset.h: Say "GNU/Linux".
8831
6599f021
EZ
88322002-05-08 Elena Zannoni <ezannoni@redhat.com>
8833
8834 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8835 (build_gdbtypes): Build builtin_type_v2_float.
8836 (_initialize_gdbtypes): Register new builtin type.
8837
40af4b0c
AC
88382002-05-08 Andrew Cagney <ac131313@redhat.com>
8839
8840 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8841 (clear_gdbarch_swap): New function.
8842 (initialize_non_multiarch): Call.
8843 (gdbarch_update_p): Before calling init(), swap out and clear the
8844 existing architecture.
8845 * gdbarch.c: Regenerate.
8846
4fe84f46
JT
88472002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8848
8849 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8850 alphanbsd-tdep.c.
8851
4015edd1
JT
88522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8853
8854 * sh-nbsd-nat.c: Rename to...
8855 * shnbsd-nat.c: ...this.
8856 * sh-nbsd-tdep.c: Rename to...
8857 * shnbsd-tdep.c: ...this.
8858 * sh-nbsd-tdep.h: Rename to...
8859 * shnbsd-tdep.h: ...this.
8860 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8861 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8862
0e2bd219
RE
88632002-05-08 Richard Earnshaw <rearnsha@arm.com>
8864
8865 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8866 concatenation for command help messages.
8867
13a38d45
JT
88682002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8869
8870 * NEWS: Note new sh*-*-netbsdelf* configuration.
8871 * configure.host: Set gdb_host_cpu to sh for all sh*.
8872 (sh*-*-netbsdelf*): New host.
8873 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8874 (sh*-*-netbsdelf*): New target.
8875 * sh-nbsd-nat.c: New file.
8876 * sh-nbsd-tdep.c: New file.
8877 * sh-nbsd-tdep.h: New file.
8878 * config/sh/nbsd.mh: New file.
8879 * config/sh/nbsd.mt: New file.
8880 * config/sh/nm-nbsd.h: New file.
8881 * config/sh/tm-nbsd.h: New file.
8882
d658f924
JT
88832002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8884
8885 * sh-tdep.c (sh_osabi_names): Declare.
8886 (process_note_abi_tag_sections): New function.
8887 (get_elfosabi): Ditto.
8888 (sh_gdbarch_register_os_abi): Ditto.
8889 (sh_dump_tdep): Ditto.
8890 _initialize_sh_tdep): Use gdbarch_register to register
8891 sh_gdbarch_init and sh_dump_tdep.
8892 * config/sh/tm-sh.h (sh_osabi): Declare.
8893 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8894
848cfffb
AC
88952002-05-07 Andrew Cagney <ac131313@redhat.com>
8896
8897 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8898 (thumb_scan_prologue): Ditto.
8899 (arm_find_callers_reg): Ditto.
8900 (arm_frame_chain): Ditto.
8901 (arm_init_extra_frame_info): Ditto.
8902 (arm_frame_saved_pc): Ditto.
8903 (arm_pop_frame): Ditto.
8904 (arm_push_return_address): New function.
8905 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8906 call_dummy_location, call_dummy_breakpoint_offset_p,
8907 call_dummy_breakpoint_offset, call_dummy_p,
8908 call_dummy_stack_adjust_p, call_dummy_words,
8909 sizeof_call_dummy_words, call_dummy_start_offset,
8910 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8911 call_dummy_address, push_return_address and push_dummy_frame for
8912 generic dummy frames.
8913
e7d717c0
JT
89142002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8915
8916 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8917 size computation for alloca.
8918 (sh_fp_frame_init_saved_regs): Likewise.
8919
7bbcf283
RE
89202002-05-07 Richard Earnshaw <rearnsha@arm.com>
8921
8922 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8923 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8924 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8925 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8926 * remote-rdp.c (remote_rdp_fetch_register): Use
8927 ARM_MAX_REGISTER_RAW_SIZE.
8928 (remote_rdp_store_register): Likewise.
8929
4657573b
ML
89302002-05-07 Michal Ludvig <mludvig@suse.cz>
8931
361d1df0 8932 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8933 added default labels to switch {} statements.
8934 * x86-64-tdep.c: Ditto.
8935 * x86-64-linux-nat.c: Ditto.
8936
010f3b2f
JT
89372002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8938
8939 * solib.h: Protect against multiple inclusion.
8940
debd256d
JB
89412002-05-06 Jim Blandy <jimb@redhat.com>
8942
9ab3e532
JB
8943 Add first preprocessor macro-expansion files.
8944 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8945 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8946 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8947 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8948 (COMMON_OBS): Add macrotab.o, macroexp.o.
8949 (macroexp.o, macrotab.o): New rules.
8950
debd256d
JB
8951 Separate the job of reading the line number info statement program
8952 header (...expialidocious) out into its own function.
8953 * dwarf2read.c (struct line_head, struct filenames, struct
8954 directories): Replace with...
8955 (struct line_header): New structure, containing the full
8956 contents of the statement program header, including the
8957 include directory and file name tables.
8958 (read_file_scope): If we have line number info, instead of just
8959 calling dwarf_decode_lines to do all the work, call
8960 dwarf_decode_line_header first to get a `struct line_header'
8961 containing the data in the statement program header, and then
8962 pass that to dwarf_decode_lines, which will pick up where that
8963 left off. Be sure to clean up the `struct line_header' object.
8964 (dwarf_decode_line_header, free_line_header, add_include_dir,
8965 add_file_name): New functions.
8966 (dwarf_decode_lines): Move all the code to read the statement
8967 program header into dwarf_decode_line_header. Take the line
8968 header it built as the first argument, instead of the offset to
8969 the compilation unit's line number info. Use the new `struct
8970 line_header' type instead of the old structures. No need to do
8971 cleanups here now, since we don't allocate anything.
8972 (dwarf2_statement_list_fits_in_line_number_section,
8973 dwarf2_line_header_too_long): New complaints.
8974
ac3aafc7
EZ
89752002-05-06 Elena Zannoni <ezannoni@redhat.com>
8976
8977 * gdbtypes.c (init_vector_type): New function.
8978 (build_builtin_type_vec128): Simplify the representation of SIMD
8979 registers.
8980 (build_gdbtypes): Initialize new builtin vector types.
8981 (_initialize_gdbtypes): Register new vector types with gdbarch.
8982 (builtin_type_v4_float, builtin_type_v4_int32,
8983 builtin_type_v8_int16, builtin_type_v16_int8,
8984 builtin_type_v2_int32, builtin_type_v4_int16,
8985 builtin_type_v8_int8): New (renamed) SIMD types.
8986
13e49980
MK
89872002-05-06 Mark Kettenis <kettenis@gnu.org>
8988
8989 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8990 (i387_fill_fxsave): Likewise.
8991
997b20b8
AO
89922002-05-05 Alexandre Oliva <aoliva@redhat.com>
8993
8994 * alpha-tdep.c (alpha_extract_return_value): Don't use
8995 non-constant array size in prototype.
8996
535c96ce
AC
89972002-05-04 Andrew Cagney <ac131313@redhat.com>
8998
8999 From Brian Taylor <briant at model dot com>:
9000 * ui-out.c (ui_out_field_core_addr): Use the function
9001 longest_local_hex_string_custom'to format addresses > 32 bits
9002 wide.
9003
9004 * ui-out.c (ui_out_field_core_addr): Update comment.
9005
bedfa57b
AC
90062002-05-04 Andrew Cagney <ac131313@redhat.com>
9007
9008 * stack.c (select_and_print_frame): Make static. Delete the
9009 parameter `level'.
9010 (func_command): Update call.
9011 (select_frame_command): Delete code computing the frame level.
9012 * frame.h (select_and_print_frame): Delete declaration.
9013
f621c63e
AC
90142002-05-04 Andrew Cagney <ac131313@redhat.com>
9015
9016 * sparc-tdep.c (sparc_get_saved_register): Comment why
9017 get_prev_frame call is safe.
9018
0f7d239c
AC
90192002-05-04 Andrew Cagney <ac131313@redhat.com>
9020
9021 * frame.h (select_frame): Delete level parameter.
9022 * stack.c (select_frame): Update. Use frame_relative_level to
9023 obtain the frame's level.
9024 (select_and_print_frame): Update call.
9025 (select_frame_command): Ditto.
9026 (up_silently_base): Ditto.
9027 (down_silently_base): Ditto.
9028 * ocd.c (ocd_start_remote): Ditto.
9029 * remote-rdp.c (remote_rdp_open): Ditto.
9030 * remote-mips.c (mips_initialize): Ditto.
9031 (common_open): Ditto.
9032 * remote-e7000.c (e7000_start_remote): Ditto.
9033 * m3-nat.c (select_thread): Ditto.
9034 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9035 (child_get_current_exception_event): Ditto.
9036 * varobj.c (varobj_create): Ditto.
9037 (varobj_update): Ditto.
9038 (c_value_of_root): Ditto.
9039 * tracepoint.c (finish_tfind_command): Ditto.
9040 * corelow.c (core_open): Ditto.
9041 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9042 * thread.c (info_threads_command): Ditto.
9043 (switch_to_thread): Ditto.
9044 * infrun.c (normal_stop): Ditto.
9045 (restore_selected_frame): Ditto.
9046 (restore_inferior_status): Ditto.
9047 * breakpoint.c (insert_breakpoints): Ditto.
9048 (watchpoint_check): Ditto.
9049 (bpstat_stop_status): Ditto.
9050 (do_enable_breakpoint): Ditto.
9051 * blockframe.c (flush_cached_frames): Ditto.
9052 (reinit_frame_cache): Ditto.
9053
71d6c7b1
AC
90542002-05-04 Andrew Cagney <ac131313@redhat.com>
9055
9056 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9057 maintainer.
9058
cda6c68a
JB
90592002-05-04 Jim Blandy <jimb@redhat.com>
9060
9061 * gdbtypes.c (replace_type): Doc fix.
9062
5c1c87f0
AC
90632002-05-04 Andrew Cagney <ac131313@redhat.com>
9064
9065 * valprint.c (strcat_longest): Delete commented out function.
9066 Update copyright.
9067
cd9bfe15
AC
90682002-05-04 Andrew Cagney <ac131313@redhat.com>
9069
9070 * MAINTAINERS: Mark a29k as deleted.
9071 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9072 Move new configurations to the top.
9073 * configure.tgt: Remove a29k.
9074 * config/a29k/tm-vx29k.h: Delete.
9075 * config/a29k/vx29k.mt: Delete.
9076 * config/a29k/tm-a29k.h: Delete.
9077 * config/a29k/a29k-udi.mt: Delete.
9078 * config/a29k/a29k.mt: Delete.
9079 * a29k-tdep.c: Delete.
9080 * remote-udi.c: Delete.
9081 * remote-mm.c: Delete.
9082 * remote-eb.c: Delete.
9083 * remote-adapt.c: Delete.
9084 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9085 * config/s390/s390x.mt: Ditto.
9086 * config/s390/s390.mt: Ditto.
9087 * config/sparc/sparclynx.mh: Ditto.
9088 * config/sparc/linux.mh: Ditto.
9089 * config/pa/hppaosf.mh: Ditto.
9090 * config/pa/hppabsd.mh: Ditto.
9091 * config/ns32k/nbsd.mt: Ditto.
9092 * config/mips/vr5000.mt: Ditto.
9093 * config/m68k/sun3os4.mh: Ditto.
9094 * config/m68k/nbsd.mt: Ditto.
9095 * config/m68k/m68klynx.mh: Ditto.
9096 * config/m32r/m32r.mt: Ditto.
9097 * config/i386/x86-64linux.mt: Ditto.
9098 * config/i386/nbsdelf.mt: Ditto.
9099 * config/i386/nbsd.mt: Ditto.
9100 * config/i386/i386lynx.mh: Ditto.
9101
bf0c5130
AC
91022002-05-04 Andrew Cagney <ac131313@redhat.com>
9103
9104 * target.c (debug_print_register): New function. Handle oversize
9105 registers.
9106 (debug_to_fetch_registers): Call.
9107 (debug_to_store_registers): Call.
9108
2ae1c2d2
JB
91092002-05-03 Jim Blandy <jimb@redhat.com>
9110
13a393b0
JB
9111 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9112 (read_type): Doc fix.
9113 * gdbtypes.c (replace_type): Doc fix.
9114
2ae1c2d2
JB
9115 * stabsread.c (multiply_defined_struct): New complaint.
9116 (read_struct_type): If the type we were passed isn't empty, or
9117 incomplete, don't read the new struct type into it; complain,
9118 and return the original type unchanged. Take a new `type_code'
9119 argument, which is the type code for the new type.
9120 (read_type): Rather than storing the type's type code here, pass
9121 it as an argument to read_struct_type, and let that take care of
9122 storing it. That way, we don't overwrite the original type code,
9123 so read_struct_type can use it to decide whether we're overwriting
9124 something we shouldn't.
9125 (complain_about_struct_wipeout): New function.
9126
8de9bdc4
AC
91272002-05-03 Andrew Cagney <ac131313@redhat.com>
9128
9129 * gdbarch.sh: Assert that gdbarch is non-NULL.
9130 * gdbarch.c: Regenerate.
9131
f773fdbb
JM
91322002-05-03 Jason Merrill <jason@redhat.com>
9133
9134 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9135 and return NULL.
9136
0e04a514
ML
91372002-05-03 Michal Ludvig <mludvig@suse.cz>
9138
9139 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9140 (x86_64_dwarf2gdb_regno_map_length),
9141 (x86_64_dwarf2_reg_to_regnum): Added.
9142 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9143 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9144 (_initialize_x86_64_tdep): Synced with the change above.
9145 (x86_64_skip_prologue): Reformulated message.
9146
065432a8
PM
91472002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9148
9149 * f-exp.y: Also use new prev_lexptr variable
9150 to improve error reporting. Based on Michael Snyder
9151 2002-04-24 dated patch to c-exp.y.
9152 * jv-exp.y: Likewise.
9153 * m2-exp.y: Likewise.
9154
a3162708
EZ
91552002-05-02 Elena Zannoni <ezannoni@redhat.com>
9156
9157 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9158 we are dealing with vectors.
9159
03620c38
PM
91602002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9161
9162 * config/m68k/tm-nbsd.h: Obvious fix,
9163 correct machine name.
9164
6604db2e
PM
91652002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9166
9167 * p-typeprint.c (pascal_type_print_base): Add support
9168 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9169
0906b739
PM
91702002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9171
9172 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9173 for fondamental pascal 'char' type.
9174
e2625b33
PM
91752002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9176
9177 * p-lang.h (is_pascal_string_type): Declaration changed,
9178 new sixth argument of type char ** added.
361d1df0 9179 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9180 changed. Args length_pos, length_size, string_pos, char_size
9181 can now be NULL. New argument arrayname set to the field
9182 name of the char array. Return value set to char array
9183 field index plus one.
361d1df0 9184 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9185 is_pascal_string_type function.
9186
cf17c188
AC
91872002-05-02 Andrew Cagney <cagney@redhat.com>
9188
9189 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9190 <cagney@redhat.com> change.
9191 * gdbarch.c: Regenerate.
9192
52bca491
AC
91932002-05-02 Andrew Cagney <cagney@redhat.com>
9194
9195 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9196 before probing for a new one. Detect errorenous gdbarch_init
9197 functions.
9198 * gdbarch.c: Regenerate.
9199
d5e72505
AC
92002002-05-01 Andrew Cagney <cagney@redhat.com>
9201
9202 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9203 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9204 * config/v850/tm-v850.h: Ditto. Update copyright.
9205
af566d9f
AC
92062002-04-30 Andrew Cagney <ac131313@redhat.com>
9207
9208 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9209 current_gdbarch.
9210
880d85fa
MS
92112002-04-30 Michael Snyder <msnyder@redhat.com>
9212
94c30b78
MS
9213 * arm-tdep.c: Whitespace clean-ups.
9214 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9215 should have been removed as part of 4/24 change.
9216
6f5987a6
KB
92172002-04-30 Kevin Buettner <kevinb@redhat.com>
9218
9219 * rs6000-tdep.c: Added comment describing how fpscr register
9220 numbers were chosen.
9221
1a113c93
MS
92222002-04-30 Michael Snyder <msnyder@redhat.com>
9223
9224 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9225
9a6f53fe
EZ
92262002-04-29 Elena Zannoni <ezannoni@redhat.com>
9227
9228 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9229 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9230 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9231
11ed25ac
KB
92322002-04-29 Kevin Buettner <kevinb@redhat.com>
9233
9234 From Louis Hamilton <hamilton@redhat.com>:
9235 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9236 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9237 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9238 not bfd-private xcoff data, to determine wordsize.
9239 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9240
ae232405
AC
92412002-04-29 Andrew Cagney <ac131313@redhat.com>
9242
9243 GDB 5.2 released from 5.2 branch.
9244
91fd20f7
ML
92452002-04-29 Michal Ludvig <mludvig@suse.cz>
9246
9247 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9248 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9249 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9250
2dc5091b
EZ
92512002-04-29 Elena Zannoni <ezannoni@redhat.com>
9252
9253 * rs6000-tdep.c (rs6000_extract_return_value,
9254 rs6000_store_return_value): Handle returning vectors.
9255 (rs6000_gdbarch_init): Use
9256 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9257 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9258 New function.
9259 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9260 vectors.
9261 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9262 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9263
2b9848d8
PM
92642002-04-24 Pierre Muller <ics.u-strasbg.fr>
9265
9266 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9267 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9268 with fprintf_unfiltered (gdb_stderr,...).
9269
f8d17dc5
PM
92702002-04-24 Pierre Muller <ics.u-strasbg.fr>
9271
9272 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9273 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9274 Replace fprintf (stderr,...
9275 with fprintf_unfiltered (gdb_stderr,....
9276 * remote-es.c: Likewise.
9277 * remote-os9k.c: Likewise.
9278 * remote-st.c: Likewise.
9279
2f2f1ad1
AS
92802002-04-28 Andreas Schwab <schwab@suse.de>
9281
9282 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9283 linux-proc.o and gcore.o.
9284
b6779aa2
AC
92852002-04-26 Michal Ludvig <mludvig@suse.cz>
9286
9287 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9288 code without frame pointers.
9289
7e57f5f4
AC
92902002-04-26 Andrew Cagney <ac131313@redhat.com>
9291
9292 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9293 ON_STACK is needed.
9294
2ceb85d0
BE
92952002-04-26 Ben Elliston <bje@redhat.com>
9296
9297 * target.c (do_xfer_memory): Correct reference to the new option
9298 "trust-readonly-sections".
9299
f5f8a009
EZ
93002002-04-26 Elena Zannoni <ezannoni@redhat.com>
9301
9302 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9303 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9304 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9305 vectors.
9306 (read_array_type): Record the fact that this array type is really a
9307 vector (i.e. are passed in by value).
9308
5868c862
JT
93092002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9312 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9313 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9314 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9315 * alpha-linux-tdep.c: Include frame.h.
9316 (alpha_linux_sigcontext_addr): New function.
9317 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9318 alpha_linux_sigcontext_addr.
9319 * alpha-osf1-tdep.c: Include gdbcore.h.
9320 (alpha_osf1_sigcontext_addr): New function.
9321 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9322 alpha_osf1_sigcontext_addr.
9323 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9324 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9325
bfb01f37
AC
93262002-04-26 Andrew Cagney <ac131313@redhat.com>
9327
361d1df0 9328 * stack.c (selected_frame_level):
bfb01f37
AC
9329 (select_frame): Do not set selected_frame_level.
9330 * frame.h (selected_frame_level): Delete declaration.
9331
15813d3f
AC
93322002-04-26 Andrew Cagney <ac131313@redhat.com>
9333
9334 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9335 convert_from_func_ptr-addr when AIX / PowerOpen.
9336
6096c27a
AC
93372002-04-25 Andrew Cagney <ac131313@redhat.com>
9338
9339 * valops.c (hand_function_call): Call
9340 generic_save_call_dummy_addr.
9341 * frame.h (generic_save_call_dummy_addr): Declare.
9342 * blockframe.c (struct dummy_frame): Add fields call_lo and
9343 call_hi.
9344 (generic_find_dummy_frame): Check for PC in range call_lo to
9345 call_hi instead of entry_point_address.
9346 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9347 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9348 (generic_save_call_dummy_addr): New function.
9349
f510d44e
DM
93502002-04-24 David S. Miller <davem@redhat.com>
9351
9352 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9353 sparc_skip_prologue.
9354 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9355 information to find prologue when possible.
9356 (sparc_prologue_frameless_p): Call examine_prologue directly.
9357 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9358 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9359 second argument.
9360 (SKIP_PROLOGUE): Likewise.
9361
15d72a92
JT
93622002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9363
9364 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9365 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9366 indicate that the condition it was testing is always true.
9367 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9368 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9369 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9370
accc6d1f
JT
93712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9372
9373 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9374 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9375 tdep->jb_pc and tdep->jb_elt_size.
9376 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9377 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9378 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9379 * alpha-nat.c (get_longjmp_target): Remove.
9380 (JB_ELEMENT_SIZE): Ditto.
9381 (JB_PC): Ditto.
9382 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9383 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9384 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9385 to alpha_get_longjmp_target.
9386 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9387 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9388 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9389
1bfdc549
AC
93902002-04-25 Andrew Cagney <ac131313@redhat.com>
9391
9392 * README: Update to GDB 5.2.
9393
1bd316f0
AC
93942002-04-25 Andrew Cagney <ac131313@redhat.com>
9395
9396 * gdbarch.sh (LC_ALL): Set to `c'.
9397
2e5ff58c
TR
93982002-04-25 Theodore A. Roth <troth@verinet.com>
9399
9400 * avr-tdep.c: Ran through gdb_indent.sh.
9401
e33ce519
TR
94022002-04-25 Theodore A. Roth <troth@verinet.com>
9403
9404 * MAINTAINERS: Add myself as AVR maintainer.
9405 * NEWS: Note new target avr.
9406
8818c391
TR
94072002-04-25 Theodore A. Roth <troth@verinet.com>
9408
9409 * Makefile.in: Add support for AVR target.
9410 * configure.tgt: Add support for AVR target.
9411 * avr-tdep.c: New file
9412 * config/avr/avr.mt: New file.
9413
79509c2d
TR
94142002-04-25 Theodore A. Roth <troth@verinet.com>
9415
9416 * MAINTAINERS: Add myself to write-after-approval.
9417
dac8068e
PM
94182002-04-24 Pierre Muller <ics.u-strasbg.fr>
9419
9420 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9421 with fprintf_unfiltered (gdb_stderr,....
9422
25bf3106
PM
94232002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9424
9425 Fix PR gdb/508.
9426 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9427
24467a86
PM
94282002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9429
9430 * p-exp.y: Also use new prev_lexptr variable
9431 to improve error reporting. Based on Michael Snyder
9432 2002-04-24 dated patch to c-exp.y.
9433
95b80706
JT
94342002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9435
9436 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9437 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9438 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9439 to 0.
9440 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9441 and struct value.
9442 (FUNCTION_START_OFFSET): Remove.
9443 (BREAKPOINT): Ditto.
9444
e90cc612
JT
94452002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9446
9447 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9448 * NEWS: Ditto.
9449
6c72f9f9
JT
94502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9451
9452 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9453 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9454 alpha_linux_pc_in_sigtramp.
9455 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9456 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9457 alpha_osf1_pc_in_sigtramp.
9458 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9459 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9460 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9461 alphafbsd_pc_in_sigtramp.
9462 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9463 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9464 alphanbsd_pc_in_sigtramp.
9465 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9466 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9467
5e4f3379
JT
94682002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9469
9470 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9471
da8ca43d
JT
94722002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9473
9474 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9475 alphanbsd-tdep.c.
9476 (alphanbsd-nat.o): New dependency list.
9477 (alphanbsd-tdep.o): Ditto.
9478 * NEWS: Note new native NetBSD/alpha configuration.
9479 * alphanbsd-nat.c: New file.
9480 * alphanbsd-tdep.c: Ditto.
9481 * configure.host (alpha*-*-netbsd*): New host.
9482 * configure.tgt (alpha*-*-netbsd*): New target.
9483 * config/alpha/nbsd.mh: New file.
9484 * config/alpha/nbsd.mt: Ditto.
9485 * config/alpha/nm-nbsd.h: Ditto.
9486 * config/alpha/tm-nbsd.h: Ditto.
9487
36a6271d
JT
94882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9489
9490 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9491 (alpha-osf1-tdep.o): New dependency list.
9492 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9493 and skip_sigtramp_frame members.
9494 * alpha-linux-tdep.c: Include gdbcore.h.
9495 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9496 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9497 * alpha-osf1-tdep.c: New file.
9498 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9499 alpha-osf1-dep.c.
9500 (alpha_frame_past_sigtramp_frame): New function.
9501 (alpha_dynamic_sigtramp_offset): Ditto.
9502 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9503 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9504 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9505 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9506 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9507 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9508 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9509 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9510 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9511 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9512 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9513 to find_solib_trampoline_target.
9514 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9515 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9516 (SKIP_TRAMPOLINE_CODE): Remove.
9517 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9518 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9519 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9520 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9521 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9522 (PROC_SIGTRAMP_MAGIC): Ditto.
9523 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9524 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9525 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9526 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9527 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9528
2f4bc57b
JT
95292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9530
9531 * NEWS: Note that Alpha targets are now multi-arch.
9532
665132f9
MS
95332002-04-24 Michael Snyder <msnyder@redhat.com>
9534
9535 * parser-defs.h (prev_lexptr): New external variable.
9536 * parse.c (parse_exp_1): Set prev_lexptr to null before
9537 calling the language-specific parser.
9538 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9539 (yyerror): Use prev_lexptr in error reporting.
9540
32872fa7
DJ
95412002-04-24 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9544 * gregset.h: If FILL_FPXREGSET is defined, provide
9545 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9546 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9547 is defined, call fill_fpxregset.
9548
57e76fac
MS
95492002-04-24 Roland McGrath <roland@frob.com>
9550
9551 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9552 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9553 (supply_gregset, supply_fpregset): New functions.
9554
9555 * gnu-nat.c (gnu_find_memory_regions): New function.
9556 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9557 (gnu_xfer_memory): Add a cast.
9558
f43845b3
MS
95592002-04-24 Michael Snyder <msnyder@redhat.com>
9560
361d1df0 9561 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9562 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9563 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9564 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9565 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9566 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9567
a0abec03
AC
9568Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9569
9570 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9571 NUM_PSEUDO_REGS can be used.
9572
d7bd68ca
AC
95732002-04-24 Andrew Cagney <ac131313@redhat.com>
9574
9575 * arch-utils.h: Update copyright.
9576
9577 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9578 * gdbarch.h, gdbarch.c: Re-generate.
9579
9580 * inferior.h (IN_SIGTRAMP): Delete definition.
9581 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9582 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9583
9584 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9585 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9586 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9587 (find_proc_framesize): Ditto.
9588 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9589 (alpha_init_extra_frame_info): Ditto.
9590 * infrun.c (handle_inferior_event): Ditto.
9591 (handle_inferior_event): Ditto.
9592 (check_sigtramp2): Ditto.
9593 * blockframe.c (create_new_frame): Ditto.
9594 (get_prev_frame): Ditto.
9595 * ppc-linux-tdep.c: Update comments.
9596 * i386-linux-tdep.c: Update comments.
9597 * breakpoint.c (bpstat_what): Update comment.
9598
4867e41e
DM
95992002-04-24 David S. Miller <davem@redhat.com>
9600
21d83aa5
DM
9601 * i960-tdep.c (register_in_window_p): New function.
9602 (i960_find_saved_register): Use it instead of
9603 REGISTER_IN_WINDOW_P.
9604 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9605
4867e41e
DM
9606 * symtab.h (find_stab_function_addr): Kill extern.
9607 * minsyms.c (find_stab_function_addr): Remove from here...
9608 * dbxread.c: ... to here, and mark it static.
9609
69cdf6a2
DM
96102002-04-20 David S. Miller <davem@redhat.com>
9611
9612 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9613 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9614
5a595886
DM
96152002-04-21 David S. Miller <davem@redhat.com>
9616
9617 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9618 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9619 (vx_write_register): Likewise.
9620
1da1a192
JB
96212002-04-23 J. Brobecker <brobecker@gnat.com>
9622
9623 * source.c (is_regular_file): New function.
9624 (openp): Check wether file to open is a regular file
9625 to avoid opening directories.
9626
baa6f10b
JT
96272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9628
9629 * findvar.c (extract_signed_integer): Cast printf argument
9630 to suppress format warning.
9631 (extract_unsigned_integer): Likewise.
9632 * infcmd.c (registers_info): Likewise.
9633 * top.c (get_prompt_1): Likewise.
9634 * valops.c (value_assign): Likewise.
9635 * valprint.c (print_decimal): Likewise.
9636
b2c4da81
L
96372002-04-22 H.J. Lu (hjl@gnu.org)
9638
9639 * c-exp.y (typebase): Support
361d1df0 9640
b2c4da81
L
9641 [long|long long|short] [signed|unsigned] [int|]
9642
9643 and
9644
9645 signed [long|long long|short] int
9646
f267bd6a
JT
96472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9648
9649 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9650 and vax-tdep.h.
9651 * vax-tdep.h: New file.
9652 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9653 Make several routines static.
9654 (vax_get_saved_register): New function.
9655 (vax_gdbarch_init): New function.
9656 (_initialize_vax_tdep): Register vax_gdbarch_init.
9657 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9658 Remove macros now under the control of gdbarch.
9659
da3c6d4a
MS
96602002-04-22 Michael Snyder <msnyder@redhat.com>
9661
11d3b27d
MS
9662 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9663 Some whitespace and coding standards tweaks.
da3c6d4a 9664
a33f7558
JT
96652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9666
9667 * vax-tdep.c: Include regcache.h.
9668 (vax_call_dummy_words): New.
9669 (sizeof_vax_call_dummy_words): New.
9670 (vax_fix_call_dummy): New function.
9671 (vax_saved_pc_after_call): Ditto.
9672 * config/vax/tm-vax.h: Don't include regcache.h.
9673 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9674 (CALL_DUMMY): Remove.
9675 (CALL_DUMMY_WORDS): Define.
9676 (SIZEOF_CALL_DUMMY_WORDS): Define.
9677 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9678
47a73475
MS
96792002-04-18 Michael Snyder <msnyder@redhat.com>
9680
9681 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9682
52efde73
JT
96832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9684
9685 * vax-tdep.c (vax_frame_chain): New function.
9686 (vax_push_dummy_frame): Ditto.
9687 (vax_pop_frame): Ditto.
9688 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9689 (FRAMELESS_FUNCTION_INVOCATION): Use
9690 generic_frameless_function_invocation_not.
9691 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9692 (POP_FRAME): Use vax_pop_frame.
9693
ea74468c
JT
96942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9695
9696 * vax-tdep.c (vax_store_struct_return): New function.
9697 (vax_extract_return_value): Ditto.
9698 (vax_store_return_value): Ditto.
9699 (vax_extract_struct_value_address): Ditto.
9700 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9701 vax_store_struct_return.
9702 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9703 (STORE_RETURN_VALUE): Use vax_store_return_value.
9704 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9705
5516aa92
JT
97062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9707
9708 * vax-tdep.c (vax_frame_saved_pc): New function.
9709 (vax_frame_args_address_correct): Ditto.
9710 (vax_frame_args_address): Ditto.
9711 (vax_frame_locals_address): Ditto.
9712 (vax_frame_num_args): Move code to be in proximity to
9713 other frame-related functions.
9714 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9715 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9716 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9717 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9718 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9719
36af0b35
L
97202002-04-22 H.J. Lu (hjl@gnu.org)
9721
9722 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9723 includedir.
9724
ab62c900
JT
97252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9726
9727 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9728 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9729 (FRAME_INIT_SAVED_REGS): New macro.
9730
7232b100
JT
97312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9732
9733 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9734
b70d2aee
JT
97352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9736
9737 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9738 where needed.
9739 (fetch_osf_core_registers): Likewise.
9740 (supply_gregset): Likewise.
9741
a0e8a2d1 97422002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9743
a0e8a2d1
JB
9744 * symfile.h (get_section_index): Define.
9745 * symfile.c (get_section_index): New function.
9746 * mdebugread.c (SC_IS_SBSS): New macro.
9747 (SC_IS_BSS): Return true for the scBss storage class only, as
9748 the scSBss storage class refers to the .sbss section.
9749 (parse_partial_symbols): Discard the symbols which associated
9750 section does not exist.
9751 Make sure to use the .sbss section index for symbols which
9752 storage class is scBss, rather than using the .bss section index.
9753
51eb8b08
JT
97542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9755
9756 * vax-tdep.c: Update copyright years.
9757 (vax_register_name): New function.
9758 (vax_register_byte): Ditto.
9759 (vax_register_raw_size): Ditto.
9760 (vax_register_virtual_size): Ditto.
9761 (vax_register_virtual_type): Ditto.
9762 * config/vax/tm-vax.h: Update copyright years.
9763 (REGISTER_NAMES): Remove.
9764 (REGISTER_NAME): Define.
9765 (REGISTER_BYTE): Use vax_register_byte.
9766 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9767 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9768 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9769
6cc1c0a8
AC
97702002-04-21 Andrew Cagney <ac131313@redhat.com>
9771
9772 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9773 declaration
9774 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9775
9319a2fe
DM
97762002-04-21 David S. Miller <davem@redhat.com>
9777
9778 * arch-utils.c (generic_prologue_frameless_p): Kill
9779 SKIP_PROLOGUE_FRAMELESS_P code.
9780 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9781 references.
9782 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9783 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9784 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9785 references.
9786 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9787 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9788 (sparc_gdbarch_init): Pass it to
9789 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9790
e9ed6d01
JT
97912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9792
9793 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9794 (alphabsd-nat.o): New dependency list.
9795
36012033
JT
97962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9797
9798 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9799 alphafbsd-tdep.c.
9800 (alpha-linux-tdep.o): New dependency list.
9801 (alphafbsd-tdep.o): Likewise.
9802
3379287a
JT
98032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9804
9805 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9806 to here...
9807 * alpha-tdep.c: ...from here.
9808 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9809
4bcbd6cb
JT
98102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9811
9812 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9813 prototype from here...
9814 * alpha-tdep.h: ...to here.
9815
b31da25e
AC
98162002-04-21 Andrew Cagney <ac131313@redhat.com>
9817
9818 * frame.h (selected_frame_level): Document as deprecated.
9819 (frame_relative_level): Declare.
9820 * stack.c (frame_relative_level): New function.
9821 (selected_frame_level): Document as deprecated.
9822 (select_frame): Do not set the selected_frame_level.
9823
9824 * stack.c (frame_info, record_selected_frame): Update.
9825 (frame_command, current_frame_command): Update.
9826 (up_silently_base, up_command, down_silently_base): Update.
9827 (down_command): Update.
9828 * inflow.c (kill_command): Update.
9829 * tracepoint.c (finish_tfind_command): Update.
9830 * corelow.c (core_open): Update.
9831 * thread.c (info_threads_command): Update.
9832 (do_captured_thread_select): Update.
9833 * infcmd.c (finish_command): Update.
9834 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9835
9c1d6fe5
JT
98362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9837
9838 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9839
ab89facf
AC
98402002-04-21 Andrew Cagney <ac131313@redhat.com>
9841
9842 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9843 type const.
9844
82a4efa1
JT
98452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9846
9847 * alphafbsd-tdep.c: Update copyright years. Include
9848 alpha-tdep.h.
9849 (alphafbsd_use_struct_convention): Make static.
9850 (alphafbsd_init_abi): New function.
9851 (_initialize_alphafbsd_tdep): New function.
9852 * config/alpha/tm-fbsd.h: Update copyright years.
9853 (USE_STRUCT_CONVENTION): Remove.
9854
44dffaac
JT
98552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9856
9857 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9858 an Alpha ABI variant.
9859 (alpha_abi_handler_list): Declare.
9860 (alpha_gdbarch_register_os_abi): New function.
9861 (alpha_gdbarch_init): Give registered ABI variant handlers a
9862 chance to tweak the gdbarch once we have set up defaults.
9863 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9864
65585be4
JT
98652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9866
9867 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9868 to standard_coerce_float_to_double.
9869 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9870
d9b023cc
JT
98712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9872
9873 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9874 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9875 from gdbarch_tdep rather than a constant.
9876 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9877 the default text address for all Alpha Unix ABIs.
9878 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9879 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9880
dc129d82
JT
98812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9882
9883 * alpha-tdep.h: New file. Includes several Alpha target constants
9884 taken from...
9885 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9886 let gdbarch deal with.
9887 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9888 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9889 to dependency list.
9890 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9891 Alpha target register names.
9892 * alphabsd-nat.c: Likewise.
9893 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9894 Alpha target register names. Make serveral routines static.
9895 (alpha_get_saved_register): New function.
9896 (alpha_abi_names): New.
9897 (process_note_abi_tag_sections): New function.
9898 (get_elfosabi): New function.
9899 (alpha_gdbarch_init): New function.
9900 (alpha_dump_tdep): New function.
9901 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9902
d49d1e0a
AC
99032002-04-21 Andrew Cagney <ac131313@redhat.com>
9904
9905 * frame.c (find_saved_register): Delete #ifdef
9906 HAVE_REGISTER_WINDOWS code.
9907 * config/sparc/tm-sparc.h: Update comments.
9908 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9909
92e8c9ed
AC
99102002-04-21 Andrew Cagney <ac131313@redhat.com>
9911
9912 * i960-tdep.c (i960_find_saved_register): New function.
9913 (i960_get_saved_register): New function.
9914 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9915 (i960_get_saved_register): Declare.
9916 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9917
e1925118
DM
99182002-04-20 David S. Miller <davem@redhat.com>
9919
9920 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9921
29673b29
AC
99222002-04-20 Andrew Cagney <ac131313@redhat.com>
9923
9924 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9925 instead of NUM_PSEUDO_REGS.
9926
6c86dcd5
DM
99272002-04-20 David S. Miller <davem@redhat.com>
9928
9929 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9930 GDB_MULTI_ARCH_PARTIAL
9931 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9932 define, let tm-sp64.h do it.
9933
aa40ec90
JT
99342002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9935
9936 * frame.c (find_saved_register): Avoid a NULL pointer
9937 dereference and actually walk the frame list.
9938
0f79675b
AC
99392002-04-20 Andrew Cagney <ac131313@redhat.com>
9940
9941 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9942 sorted in most most-recent-used order. Document.
9943 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9944
f91305dd 99452002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9946
9947 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9948 instead of ->prev.
9949 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9950 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9951 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9952 instead of ->prev.
9953
73d322b1
EZ
99542002-04-19 Elena Zannoni <ezannoni@redhat.com>
9955
9956 Fix PR gdb/471.
9957 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9958 (build_builtin_type_vec128): Ditto.
9959 (append_composite_type_field): Fix calculation of type length in
9960 union case.
9961
ccd9a834
EZ
99622002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9963
9964 * config/djgpp/README: Update.
9965
9966 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9967 compiler warnings.
9968
a57f9e49
JT
99692002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9970
9971 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9972 (alpha_setup_arbitrary_frame): ...to this.
9973 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9974 for alpha_setup_arbitrary_frame.
9975
f4f9705a
AC
99762002-04-18 Andrew Cagney <cagney@redhat.com>
9977
9978 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9979 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9980
f4f9705a
AC
9981 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9982 * target.h (memory_breakpoint_from_pc): Update declaration.
9983 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9984
9985 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9986 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9987 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9988 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9989 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9990 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9991 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9992 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9993 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9994 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9995 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9996 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9997
9998 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9999 const pointer.
10000 * monitor.c (monitor_insert_breakpoint): Ditto.
10001 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10002
10003 * config/mcore/tm-mcore.h: Update copyright.
10004 * mem-break.c: Ditto.
10005 * xstormy16-tdep.c: Ditto.
10006
29f319b8
PM
100072002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10008
10009 * p-exp.y: Add precedence rule for '^' token.
10010 This removes the shift/reduce conflicts.
10011 Remove the comment concerning these shift/reduce conflicts.
10012
ebeac11a
EZ
100132002-04-18 Elena Zannoni <ezannoni@redhat.com>
10014
10015 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10016 (registers_powerpc_nofp): New register set for processors
10017 without floating point unit.
10018
27c31547
DM
100192002-04-18 David S. Miller <davem@redhat.com>
10020
10021 * MAINTAINERS: Add myself to write-after-approval.
10022
47a73475
MS
100232002-04-17 Michael Snyder <msnyder@redhat.com>
10024
10025 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10026
953836b2
AC
100272002-04-17 Andrew Cagney <ac131313@redhat.com>
10028
10029 * rs6000-tdep.c (frame_initial_stack_address): Use
10030 frame_register_read to read the alloca_reg.
10031
8b0d4340
AC
100322002-04-17 Andrew Cagney <ac131313@redhat.com>
10033
10034 * frame.c (find_saved_register): Find saved registers in the next
10035 not prev frame.
10036 Fix PR gdb/365.
10037
d8864532
AC
100382002-04-17 Andrew Cagney <ac131313@redhat.com>
10039
10040 * gdbarch.sh (LANG): Set to ``c''.
10041
36cc83a3 100422002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10043
36cc83a3 10044 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10045
2f4150cc 100462002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10047
10048 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10049 Update copyright.
10050
628703c6 10051 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10052 Also fix PR gdb/391.
361d1df0 10053
56157b4a
AC
100542002-04-14 Andrew Cagney <ac131313@redhat.com>
10055
10056 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10057 * aclocal.m4, configure: Re-generate.
10058 Fix PR gdb/391.
361d1df0 10059
6d1e3329
EZ
100602002-04-14 Elena Zannoni <ezannoni@redhat.com>
10061
10062 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10063 instead of tm_print_insn.
10064
cb06fa07
EZ
100652002-04-14 Elena Zannoni <ezannoni@redhat.com>
10066
10067 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10068
f208ba17
AC
100692002-04-14 Andrew Cagney <ac131313@redhat.com>
10070
10071 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10072 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10073 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10074
20f01a46
DH
100752002-04-12 Don Howard <dhoward@redhat.com>
10076
10077 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10078 max_user_call_depth.
10079 (init_cmd_lists): Initialize the new value;
10080 * cli/cli-script.c (execute_user_command): Limit the call depth of
10081 user defined commands. This avoids a core-dump when user commands
10082 are infinitly recursive.
10083
a88376a3
KB
100842002-04-12 Kevin Buettner <kevinb@redhat.com>
10085
10086 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10087 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10088 from tdep struct instead of DEFAULT_LR_SAVE.
10089 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10090 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10091 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10092
f2172603
MS
100932002-04-12 Michael Snyder <msnyder@redhat.com>
10094
694f61fb 10095 * Remote.c: Spelling fix.
20fe79c8
MS
10096 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10097 If no symbol found for "sbrk", try "_sbrk".
10098 (make_output_phdrs): Use bfd_section_name.
10099 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10100 * eval.c: Indentation fix-ups.
169a7369
MS
10101 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10102 in case it gets applied to an address that is already
10103 in the instruction space.
de74f71f
MS
10104 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10105 * symfile.c: Fix indentation, long lines.
f2172603
MS
10106 * source.c: White space fix-up.
10107
cda5a58a
AC
101082002-04-12 Andrew Cagney <cagney@redhat.com>
10109
10110 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10111 * frame.c (frame_register_read): New function. Return non-zero on
10112 success.
10113 (read_relative_register_raw_bytes_for_frame): Delete.
10114 (read_relative_register_raw_bytes): Delete.
10115 * frame.h (frame_register_read): Declare.
10116 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10117 * sh-tdep.c: Ditto.
10118 * infcmd.c (do_registers_info): Ditto.
10119 * hppa-tdep.c: Ditto.
10120 * rs6000-tdep.c: Ditto.
10121 * h8500-tdep.c: Ditto.
10122 * mips-tdep.c: Ditto.
10123 * h8300-tdep.c: Ditto.
10124 * z8k-tdep.c: Ditto.
10125
2ea5f656
KB
101262002-04-12 Kevin Buettner <kevinb@redhat.com>
10127
10128 From Jimi X <jimix@watson.ibm.com>:
10129 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10130 64-bit SysV ABI.
10131
27b15785
KB
101322002-04-12 Kevin Buettner <kevinb@redhat.com>
10133
10134 From Jimi X <jimix@watson.ibm.com>:
10135 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10136 bfd info.
10137
5d57ee30
KB
101382002-04-12 Kevin Buettner <kevinb@redhat.com>
10139
10140 From Jimi X <jimix@watson.ibm.com>:
10141 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10142 register sets for these processor variants.
10143
bc1e36ca
DJ
101442002-04-11 Daniel Jacobowitz <drow@mvista.com>
10145
bc1e36ca
DJ
10146 * regformats/reg-ppc.dat: Support FPSCR.
10147
e3f36dbd
KB
101482002-04-11 Kevin Buettner <kevinb@redhat.com>
10149
10150 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10151 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10152 Add fpscr as an invalid/unfetchable register.
10153 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10154 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10155 (fill_fpregset): Add support for register fpscr.
10156 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10157 (fill_gregset): Account for the fact that register ``mq'' might
10158 not exist.
10159 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10160 (registers_power): Add fpscr to register set at slot 71.
10161 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10162 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10163
943c9c25
MS
101642002-04-11 Michael Snyder <msnyder@redhat.com>
10165
10166 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10167 * configure: Regenerate.
10168 * config.in: Regenerate.
10169 * acconfig.h: Add define for _SYSCALL32.
10170 * core-sol2.c: Remove #define _SYSCALL32.
10171 * solib-legacy.c: Remove #define _SYSCALL32.
10172
d8c0a2e7
AC
101732002-04-10 Andrew Cagney <ac131313@redhat.com>
10174
10175 * stack.c (select_frame): Cleanup internal error message, do not
10176 use %p.
10177
7cc19214
AC
101782002-04-10 Andrew Cagney <ac131313@redhat.com>
10179
10180 * stack.c (select_frame): Check that selected_frame and the
10181 specified level are as expected.
10182 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10183 Update copyright.
10184 * frame.h (struct frame_info): Add field `level'. Update
10185 copyright.
10186 Work-in-progress PR gdb/464.
10187
67a2b77e
AC
101882002-04-10 Andrew Cagney <ac131313@redhat.com>
10189
10190 * maint.c (maint_print_section_info): Rename print_section_info.
10191 (print_bfd_section_info, print_objfile_section_info): Update.
10192 * inferior.h (struct gdbarch): Add opaque declaration.
10193 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10194 * gdbarch.h: Regenerate.
10195
8cfda98c
ML
101962002-04-10 Michal Ludvig <mludvig@suse.cz>
10197
10198 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10199 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10200 (kernel_u_size): Added.
10201 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10202 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10203
ca439ad2 102042002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10205
ca439ad2
JI
10206 * valarith.c (find_size_for_pointer_math): New function, either returns
10207 the size for a pointer's target, returns 1 for void *, or errors for
10208 incomplete types.
10209 (value_add, value_sub): use find_size_for_pointer_math.
10210
2f2893d9
DJ
102112002-04-09 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * linux-low.c (linux_look_up_symbols): New hook.
10214 (linux_target_ops): Add linux_look_up_symbols.
10215 * remote-utils.c (decode_address): New function.
10216 (look_up_one_symbol): New function.
10217 * server.c (handle_query): Call target look_up_symbols hook.
10218 * server.h (look_up_one_symbol): Add prototype.
10219 * target.h (struct target_ops): Add look_up_symbols hook.
10220
96cb11df
AC
102212002-04-09 Andrew Cagney <ac131313@redhat.com>
10222
10223 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10224 override FP_REGNUM with frame->fp. Update copyright.
10225 * parse.c (num_std_regs, std_regs): Delete.
10226 (target_map_name_to_register): Do not search std_regs. Update
10227 function description.
10228 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10229 declarations. Update copyright.
10230 Fix PR gdb/251.
361d1df0 10231
97658e92
DJ
102322002-04-09 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10235 after the last symbol in a block.
10236
6044e3eb
PM
102372002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10238
10239 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10240 is non zero as a found symbol.
10241
0406ec40
AC
102422002-04-08 Andrew Cagney <ac131313@redhat.com>
10243
10244 * findvar.c: Include "builtin-regs.h".
10245 (value_of_register): Call value_of_builtin_reg when applicable.
10246 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10247 (target_map_name_to_register): Call
10248 builtin_reg_map_name_to_regnum.
10249 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10250 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10251 (builtin_regs_h): Define.
10252 (builtin-regs.o): New target.
10253 (findvar.o): Add $(builtin_regs_h).
10254 * builtin-regs.c, builtin-regs.h: New files.
10255 * std-regs.c: New file.
10256 Partial fix for PR gdb/251.
10257
56a6dfb9
KB
102582002-04-08 Kevin Buettner <kevinb@redhat.com>
10259
10260 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10261 it's no longer required.
10262
3a808432
AC
102632002-04-08 Andrew Cagney <ac131313@redhat.com>
10264
10265 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10266
7c40d541
KB
102672002-04-08 Kevin Buettner <kevinb@redhat.com>
10268
10269 From Jimi X <jimix@watson.ibm.com>:
10270 * rs6000-tdep.c (rs6000_software_single_step): Use
10271 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10272 and size. Use target_insert_breakpoint() and
10273 target_remove_breakpoint() to insert and remove breakpoints
10274 instead of explicit memory reads and writes.
10275
cc9836a8
KB
102762002-04-08 Kevin Buettner <kevinb@redhat.com>
10277
10278 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10279 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10280 ELF_OBJECT_FORMAT ifdef.
10281
7495d1dc
KB
102822002-04-08 Kevin Buettner <kevinb@redhat.com>
10283
10284 From Jimi X <jimix@watson.ibm.com>:
10285 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10286
4288e836
KB
102872002-04-08 Kevin Buettner <kevinb@redhat.com>
10288
10289 From Jimi X <jimix@watson.ibm.com>:
10290 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10291 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10292
a4e4e501
MK
102932002-04-07 Mark Kettenis <kettenis@gnu.org>
10294
10295 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10296 s/asprintf/xasprintf/.
10297 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10298
006defba
AC
102992002-04-07 Andrew Cagney <ac131313@redhat.com>
10300
10301 I believe Jeff Law denies responsability for this one:
10302 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10303 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10304 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10305 Work-around for PR gdb/366.
10306
7aa83cac
EZ
103072002-04-07 Elena Zannoni <ezannoni@redhat.com>
10308
10309 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10310 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10311 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10312
cf1fcca1
EZ
103132002-04-07 Elena Zannoni <ezannoni@redhat.com>
10314
10315 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10316 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10317 information.
10318
3f289e6f
AC
103192002-04-07 Andrew Cagney <ac131313@redhat.com>
10320
10321 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10322 maintainer.
10323
129188f6
AC
103242002-04-07 Andrew Cagney <ac131313@redhat.com>
10325
10326 * README (Reporting Bugs in GDB): Document the bug web page as the
10327 prefered way of submitting bugs.
10328 Fix PR gdb/402.
10329
1200cd6e
AC
103302002-04-06 Andrew Cagney <ac131313@redhat.com>
10331
10332 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10333 -1. Update comment.
10334 * gdbarch.h, gdbarch.c: Re-generate.
10335
2853c33c
AS
103362002-04-07 Andreas Schwab <schwab@suse.de>
10337
10338 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10339 buffer to regcache_collect.
10340
c2169756
AC
103412002-04-06 Andrew Cagney <ac131313@redhat.com>
10342
10343 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10344 * gdbarch.c, gdbarch.h: Re-generate.
10345
25f1b008
AC
103462002-04-06 Andrew Cagney <ac131313@redhat.com>
10347
10348 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10349 declaration. Fix -Werror.
10350
59263426
DJ
103512002-04-05 Daniel Jacobowitz <drow@mvista.com>
10352
10353 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10354 * gdbarch.c: Regenerate.
10355
f5db4da3
MS
103562002-04-05 Michael Snyder <msnyder@redhat.com>
10357
80f8a6eb
MS
10358 * breakpoint.c (clear_command): Rewrite middle section to
10359 combine two loops with identical control conditions.
10360 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10361 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10362
ad3dcc5c
L
103632002-04-05 H.J. Lu (hjl@gnu.org)
10364
10365 * solib-svr4.c (bkpt_names): Add "__start".
10366
f32e7a74
AC
103672002-04-04 Andrew Cagney <ac131313@redhat.com>
10368
10369 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10370 as test for 64 bit target.
10371
8227c0ff
AC
103722002-04-05 Andrew Cagney <ac131313@redhat.com>
10373
10374 * h8500-tdep.c (h8500_write_fp): Delete function.
10375 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10376 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10377 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10379 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10380 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10381 (s390_write_fp):
10382 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10383 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10384 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10385 (d10v_write_fp): Delete function.
10386 * inferior.h (write_fp, generic_target_write_fp): Delete
10387 declarations.
10388 * regcache.c (generic_target_write_fp): Delete function.
10389 (write_fp): Delete function.
10390 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10391 * gdbarch.h, gdbarch.c: Regenerate.
10392 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10393 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10394 (sparc64_write_fp): Delete declaration.
10395 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10396 (h8500_write_fp): Delete declaration.
10397
2757dd86
AC
103982002-04-04 Andrew Cagney <ac131313@redhat.com>
10399
10400 * sparc-tdep.c (sparc64_write_fp): Delete.
10401 (sparc_push_dummy_frame): Replace write_fp call with code to store
10402 the FP directly.
10403 (sparc_gdbarch_init): Do not initialize write_fp.
10404
c69255e1
KB
104052002-04-05 Kevin Buettner <kevinb@redhat.com>
10406
10407 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10408 clause.
10409
ae767bfb
JB
104102002-03-29 Jim Blandy <jimb@redhat.com>
10411
10412 * stack.c (get_selected_block): Add new argument `addr_in_block',
10413 used to return the exact code address we used to select the block,
10414 not just the block.
10415 * blockframe.c (get_frame_block, get_current_block): Same.
10416 * frame.h (get_frame_block, get_current_block,
10417 get_selected_block): Update declarations.
10418 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10419 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10420
84d2ac95
MS
104212002-04-05 Michael Snyder <msnyder@redhat.com>
10422
10423 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10424 warning message.
10425
596aa3bf
JB
104262002-04-05 J. Brobecker <brobecker@gnat.com>
10427
10428 * utils.c (xfullpath): New function.
10429 * defs.h (xfullpath): Add declaration.
10430 * source.c (openp): Use xfullpath in place of gdb_realpath to
10431 avoid resolving the basename part of filenames when the
10432 associated file is a symbolic link. This fixes a potential
10433 inconsistency between the filenames known to GDB and the
10434 filenames it prints in the annotations.
10435 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10436 to be able to match a filename with either the real filename, or
10437 the name of any symbolic link to this file.
10438 (lookup_partial_symtab): Ditto.
10439
c02f5703
MS
104402002-04-04 Michael Snyder <msnyder@redhat.com>
10441
10442 * breakpoint.c: Add support for hardware breakpoints in overlays.
10443 (overlay_events_enabled): New state variable.
10444 (insert_breakpoints): Use overlay_events_enabled to decide
10445 whether to attempt to set a breakpoint at the overlay load addr.
10446 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10447 (remove_breakpoint): Use overlay_events_enabled to decide
10448 whether breakpoints need to be removed from overlay load addr.
10449 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10450 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10451 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10452 disable_overlay_breakpoints): Update overlay_events_enabled.
10453
5fb290d7
DJ
104542002-04-04 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * dwarf2read.c (struct function_range): New.
10457 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10458 (check_cu_functions): New.
10459 (read_file_scope): Initialize global function lists.
10460 Call dwarf_decode_line after processing children.
10461 (read_func_scope): Add to global function list.
10462 (dwarf_decode_lines): Call check_cu_functions everywhere
10463 record_line is called. Call record_line with a linenumber
10464 of 0 to mark sequence ends.
10465
7b3fabf0
ML
104662002-04-04 Michal Ludvig <mludvig@suse.cz>
10467
361d1df0 10468 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10469 change sync with glibc.
10470
bce58c09
JB
104712002-04-03 Jim Blandy <jimb@redhat.com>
10472
10473 * configure.in: Call AC_C_INLINE.
10474 * configure: Regenerated.
361d1df0 10475
2fccf04a
DJ
104762002-04-01 Daniel Jacobowitz <drow@mvista.com>
10477
10478 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10479 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10480
2d1bfe2e
MK
104812002-03-31 Mark Kettenis <kettenis@gnu.org>
10482
a5941fbf
MK
10483 * NEWS: Mention gcore support on FreeBSD/i386.
10484
a90cd31d
MK
10485 * fbsd-proc.c: New file.
10486 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10487 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10488
2d1bfe2e
MK
10489 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10490 while statement.
10491
9eb6e5a1
JB
104922002-03-29 Jim Blandy <jimb@redhat.com>
10493
10494 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10495 unescaped newlines in string literals, but newer ones don't. So
10496 escape them.
10497
f02df580
MS
104982002-03-26 Michael Snyder <msnyder@redhat.com>
10499 Andrew Cagney <cagney@redhat.com>
10500
361d1df0 10501 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10502 restore file to memory.
10503 * cli/cli-dump.h: New file.
10504 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10505 * NEWS: Mention new commands.
f02df580 10506
109f874e
MS
105072002-03-28 Michael Snyder <msnyder@redhat.com>
10508
10509 * symfile.c (symbol_file_add): Move test for null symbols to later.
10510
520f6ade
AC
105112002-03-27 Andrew Cagney <ac131313@redhat.com>
10512
10513 From veksler at il.ibm.com:
10514 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10515 the xstrduped original path.
10516 Fix PR gdb/417.
10517
d4654627
MS
105182002-03-27 Michael Snyder <msnyder@redhat.com>
10519
10520 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10521 * infcmd.c (_initialize_infcmd): Ditto.
10522 * language.c (_initialize_language): Ditto.
10523 * symfile.c (_initialize_symfile): Ditto.
10524 * top.c (_init_main): Ditto.
10525 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10526
6be8bc0c
EZ
105272002-03-27 Elena Zannoni <ezannoni@redhat.com>
10528
10529 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10530 vector registers handling.
10531 (skip_prologue): Handle new AltiVec instructions. Fill in new
10532 fields of frame data.
10533 (frame_get_saved_regs): Fill in information for AltiVec registers.
10534
12af6855
JB
105352002-03-27 Jim Blandy <jimb@redhat.com>
10536
10537 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10538 a function; leave this macro here to invoke that function.
10539 (symbol_init_mangled_name): Declaration for that function.
10540 * symtab.c (symbol_init_mangled_name): New function.
10541
dc672865
AC
105422002-03-27 Andrew Cagney <ac131313@redhat.com>
10543
10544 * valarith.c: Replace strerror with safe_strerror.
10545 * tracepoint.c: Ditto.
10546 * lin-lwp.c: Ditto.
10547 * go32-nat.c: Ditto.
10548 * inflow.c: Ditto.
10549 * gnu-nat.c: Ditto.
10550
d96429cd
AS
105512002-03-27 Andreas Schwab <schwab@suse.de>
10552
10553 * event-top.c (command_line_handler): Remove useless if.
10554
7e336ba1
AJ
105552002-03-27 Andreas Jaeger <aj@suse.de>
10556
10557 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10558 comment.
10559
de220d0f
ML
105602002-03-27 Michal Ludvig <mludvig@suse.cz>
10561
10562 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10563 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10564 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10565 (x86_64_linux_dr_get_status, supply_gregset),
10566 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10567 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10568 (x86_64_register_info_table): Add.
10569 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10570 (x86_64_register_raw_size, x86_64_register_virtual_type),
10571 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10572 general x86_64_register_info_table.
10573 (i386_gdbarch_init): gdbarch_register_bytes is now set
10574 dynamicaly during initialization.
10575 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10576 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10577
0e98d0a7
DJ
105782002-03-27 Daniel Jacobowitz <drow@mvista.com>
10579
10580 * gdbserver/server.c (main): Call target_signal_to_host_p
10581 and target_signal_to_host on signals received from the remote.
10582 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10583 target_signal_from_host on signals sent to the remote.
10584 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10585 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10586
3130066b
DJ
105872002-03-27 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * signals/signals.c: Include "server.h" in gdbserver build.
10590 (target_signal_from_name): Don't use STREQ.
10591 (_initialize_signals): Likewise. Don't include function in
10592 gdbserver build.
10593
9aedf4f4
DJ
105942002-03-27 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * signals.c: Moved to...
10597 * signals/signals.c: Here.
7e336ba1 10598 * Makefile (signals.o): Update.
9aedf4f4 10599
3fa41cdb
JL
106002002-03-26 Jeff Law (law@redhat.com)
10601
10602 * somread.c (som_symtab_read): Remove some commented out code and
10603 updated related comments. Do not set the minimal symbol table to
10604 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10605 in a dynamic executable.
10606 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10607 where we are unable to find the minimal symbol for the given
10608 PC value.
10609
ee677e8d
MS
106102002-03-25 Jeff Law (law@redhat.com)
10611
10612 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10613
e76e1718
ML
106142002-03-25 Michal Ludvig <mludvig@suse.cz>
10615
10616 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10617
18a642a1
AC
106182002-03-23 Andrew Cagney <ac131313@redhat.com>
10619
10620 * command.h: Update copyright.
10621 (struct cmd_list_element): Replace definition with opaque
10622 declaration.
10623 (enum cmd_types): Document that it will eventually be moved to
10624 cli/cli-decode.h
10625 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10626 (MALLOCED_REPLACEMENT): Delete macro.
10627 * Makefile.in (cli_decode_h): Add $(command_h).
10628 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10629 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10630 * completer.c: Include "cli/cli-decode.h".
10631 * maint.c: Include "cli/cli-decode.h".
10632 * cli/cli-decode.h: Include "command.h".
10633 (enum command_class): Delete.
10634 (enum cmd_types): Comment out.
10635 (enum cmd_auto_boolean): Delete.
10636 (enum var_types): Delete.
10637
b2875cc0
AC
106382002-03-23 Andrew Cagney <ac131313@redhat.com>
10639
10640 * cli/cli-decode.c: Include "gdb_assert.h".
10641 (add_set_or_show_cmd): New static function.
10642 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10643 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10644 all fields, such as func, from the set command.
10645
3b45974e
AC
106462002-03-23 Andrew Cagney <ac131313@redhat.com>
10647
10648 * MAINTAINERS (sh-elf): Change warning flag to -w.
10649
823ca731
AC
106502002-03-23 Andrew Cagney <cagney@redhat.com>
10651
10652 * defs.h (error): Add printf format attribute.
10653 * thread-db.c (thread_from_lwp): Fix error format string.
10654 * stack.c (parse_frame_specification): Ditto.
10655 * cli/cli-decode.c (undef_cmd_error): Ditto.
10656 * scm-lang.c (scm_lookup_name): Ditto.
10657 * tracepoint.c (trace_error): Ditto.
10658 * remote-utils.c (usage): Ditto.
10659 * remote.c (compare_sections_command): Ditto.
10660 Fix PR gdb/328.
10661
0e101458
AC
106622002-03-22 Andrew Cagney <ac131313@redhat.com>
10663
10664 * gdbtypes.c (append_composite_type_field): New function.
10665 (init_composite_type): New function.
10666 * gdbtypes.h (append_composite_type_field): Declare.
10667 (init_composite_type): Ditto.
10668
8e0662df
EZ
106692002-03-22 Elena Zannoni <ezannoni@redhat.com>
10670
10671 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10672 function.
8e0662df
EZ
10673 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10674 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10675 structure returning convention for SYSV ABI case, but not
10676 for GNU/Linux, FreeBSD, or NetBSD.
10677
3121eff0
DJ
106782002-03-22 Daniel Jacobowitz <drow@mvista.com>
10679
10680 * symtab.h (lookup_block_symbol): Add mangled_name argument
10681 to prototype.
10682
10683 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10684 with new mangled_name argument.
10685 * linespec.c (decode_line_1): Likewise.
10686 * valops (value_of_this): Likewise.
10687 * symtab.c (lookup_transparent_type): Likewise.
10688 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10689 (lookup_symbol): If we are given a mangled name, pass it down
10690 to lookup_symbol_aux.
10691 (lookup_block_symbol): If we are given a mangled name to check
10692 against, only return symbols which match it.
10693
349b409f
CF
106942002-03-22 Christopher Faylor <cgf@redhat.com>
10695
10696 * win32-nat.c (child_create_inferior): Check for proper shell to use
10697 here, in case the user changes it on the fly.
10698 (_initialize_inftarg): Remove shell path considerations.
10699
2a873819
EZ
107002002-03-21 Elena Zannoni <ezannoni@redhat.com>
10701
10702 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10703 for gdbarch_max_register_raw_size and max_register_virtual_size.
10704 Adjust copyright year.
10705
a1b9830c
DJ
107062002-03-21 Daniel Jacobowitz <drow@mvista.com>
10707
10708 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10709 in a function to cover the entire beginning of the function
10710 as well if it does not already.
10711
8b5790f2
TR
107122002-03-21 Tom Rix <trix@redhat.com>
10713
10714 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10715 (rs6000_ptrace64): Renamed from ptrace64.
10716
bdbe5747
MH
107172002-03-20 Martin M. Hunt <hunt@redhat.com>
10718
10719 * gdbserver/remote-utils.c (remote_open): Don't call
10720 getprotobyname, we're all using TCP here so just use
10721 IPPROTO_TCP.
7e336ba1 10722 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10723
107242002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10725
bdbe5747
MH
10726 * regcache.c (_initialize_regcache): No need to call
10727 build_regcache() at this time; it gets called whenever
10728 the gdbarch changes.
10729
7781cd62
DB
107302002-03-20 David O'Brien <obrien@FreeBSD.org>
10731
10732 * sparc-nat.c: Include sys/param.h where possible.
10733
f65ca430
DJ
107342002-03-20 Daniel Jacobowitz <drow@mvista.com>
10735
10736 Fix PR gdb/422.
10737 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10738 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10739 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10740 complex types.
10741 * stabsread.c (rs6000_builtin_type): Likewise.
10742 (read_sun_floating_type): Likewise.
10743
0c867556
PS
107442002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10745
10746 * stabsread.c (read_member_functions): Remove skip code for duplicate
10747 constructor/destructor methods. Use standard parsing for these
10748 methods and just do not chain them to the list of methods after
10749 parsing.
10750
12b9c64f
AO
107512002-03-19 Alexandre Oliva <aoliva@redhat.com>
10752
10753 * coffread.c: Remove redundant static declarations. Replace
10754 occurrences of `PTR' with `void *'.
10755 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10756 * top.h (quit_cover): Likewise.
10757 * defs.h (catch_errors): Likewise.
10758
349c5d5f
AC
107592002-03-18 Andrew Cagney <ac131313@redhat.com>
10760
10761 * defs.h (XMALLOC): Define.
10762 * gdb-events.sh (XMALLOC): Delete macro.
10763 * gdb-events.c, gdb-events.h: Regenerate.
10764 * gdbarch.sh (XMALLOC): Delete macro.
10765 * gdbarch.c: Regenerate.
10766 * serial.c (XMALLOC): Delete macro.
10767 * ui-file.c (XMALLOC): Ditto.
10768 * ser-unix.h (XMALLOC): Ditto.
10769 * sh-tdep.c (XMALLOC): Ditto.
10770 * ui-out.c (XMALLOC): Ditto.
10771 * utils.c (XMALLOC): Ditto.
10772 * i386-tdep.c (XMALLOC): Ditto.
10773 * gdb-events.c (XMALLOC): Ditto.
10774 * d10v-tdep.c (XMALLOC): Ditto.
10775 * cli-out.c (XMALLOC): Ditto.
10776
10777 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10778 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10779 * ui-file.c, ui-out.c: Ditto.
10780
7d0766f3
AC
107812002-03-18 Andrew Cagney <ac131313@redhat.com>
10782
10783 * command.h (struct cmd_list_element): Add field context.
10784 (set_cmd_context, get_cmd_context): Declare.
10785 * cli/cli-decode.h: Ditto.
10786 * cli/cli-decode.c (get_cmd_context): New function.
10787 (set_cmd_context): New function.
10788 (add_cmd): Initialize context.
10789 Part of fixing PR gdb/145 and PR gdb/146.
10790
5913bcb0
AC
107912002-03-17 Andrew Cagney <ac131313@redhat.com>
10792
1868c04e
AC
10793 * cli/cli-decode.c (cmd_type): New function.
10794 * command.h (cmd_type): Declare.
10795 * infrun.c (set_schedlock_func): Call function cmd_type.
10796 * kod.c (kod_set_os): Call cmd_type.
10797 * cris-tdep.c (cris_version_update): Use function cmd_type.
10798 (cris_mode_update, cris_abi_update): Ditto.
10799
5913bcb0
AC
10800 * command.h: (execute_cmd_post_hook): Declare.
10801 (execute_cmd_pre_hook): Declare.
10802 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10803 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10804 functions. Execute pre/post hook while ensuring that afterwords
10805 hook_in is cleared.
10806 * top.c (execute_command): Use execute_cmd_post_hook, and
10807 execute_cmd_pre_hook to execute pre/post commands.
10808 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10809 hook_stop_stub.
10810 (hook_stop_stub): Call execute_cmd_pre_hook.
10811
b51450c9
AC
108122002-03-17 Andrew Cagney <ac131313@redhat.com>
10813
10814 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10815 set'' and this leads to a core dump. Move xstrdup of
10816 operating_system to after check that it is not NULL.
10817
f66c9f11
AC
108182002-03-17 Andrew Cagney <ac131313@redhat.com>
10819
8e694ecf
AC
10820 * kod.c (kod_set_os): Remove unnecessary check that
10821 ``command->type'' is set_cmd.
10822
f66c9f11
AC
10823 * valprint.c (set_input_radix): Use input_radix.
10824 (set_output_radix): Use output_radix.
10825 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10826 isn't reverted.
10827
9d01611c
AC
108282002-03-16 Andrew Cagney <ac131313@redhat.com>
10829
10830 * value.h (struct value): Delete field ``substring_addr''. Change
10831 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10832 force_core_addr_align and force_pointer_aligh.
10833
10834 * value.h (struct value): Fix typo in above change.
9d01611c 10835
4156bb53
PS
108362002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10837
10838 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10839 to fix internal_error from ``maintenance print architecture''.
10840
0e5e3ea6
PS
108412002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10842
10843 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10844 for gcc versions after gcc-2.8.1.
10845
9b013045
PS
108462002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10847
10848 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10849 for method resolution. Restore adjustment of ``this'' pointer after
10850 calling value_struct_elt, which was accidentally removed during the
10851 HP merge.
10852
376c9600
AC
108532002-03-15 Andrew Cagney <ac131313@redhat.com>
10854
10855 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10856 value_of_register.
10857 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10858 get_saved_register.
10859 * value.h (value_of_register): Update.
10860
a4db0f07
RH
108612002-03-14 Richard Henderson <rth@redhat.com>
10862
10863 * configure.in: Detect declaration for canonicalize_file_name.
10864 * utils.c (canonicalize_file_name): Declare, if needed.
10865 (gdb_realpath): Prefer realpath if available and usable.
10866 * config.in, configure: Rebuild.
10867
96383835
RH
108682002-03-14 Richard Henderson <rth@redhat.com>
10869
10870 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10871 a constant array bound.
10872
10873 * MAINTAINERS: Add myself to write-after-approval.
10874
75245b24
MS
108752002-03-14 Michael Snyder <msnyder@redhat.com>
10876
10877 * symfile.c (syms_from_objfile): Return immediately if no syms.
10878 (symbol_file_add): Return immediately if no syms.
10879 (find_sym_fns): Return immediately if no syms.
10880
e641a1ca
ML
108812002-03-13 Michal Ludvig <mludvig@suse.cz>
10882
10883 * gdbserver/remote-util.c (remote_open): Print remote-side's
10884 IP address when remote debugging over the network.
7e336ba1 10885
df08bfec
DB
108862002-03-12 David O'Brien <obrien@FreeBSD.org>
10887
10888 * config/sparc/fbsd.mh: Fix copyright.
10889 * config/sparc/fbsd.mt: Likewise.
10890
9a57864f
RE
108912002-03-11 Richard Earnshaw <rearnsha@arm.com>
10892
10893 * MAINTAINERS: Fix typo in name of gdb warnings option.
10894 (x86-64): Fix formating so that this can be parsed by awk.
10895
dd7bf85e
DJ
108962002-03-10 Daniel Jacobowitz <drow@mvista.com>
10897
10898 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10899 * defs.h: Include "gdb/signals.h".
10900 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10901
33a0a2ac
ML
109022002-03-10 Michal Ludvig <mludvig@suse.cz>
10903
10904 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10905 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10906 from x86-64-tdep.h
10907
dd824b04
DJ
109082002-03-10 Daniel Jacobowitz <drow@mvista.com>
10909 Don Howard <dhoward@redhat.com>
10910
10911 * mips-tdep.c (ST0_FR): Define.
10912 (mips2_fp_compat): New function, temporarily disabled.
10913 (mips_read_fp_register_single): New function.
10914 (mips_read_fp_register_double): New function.
10915 (mips_print_register): Use them.
10916 (do_fp_register_row): Likewise.
10917
6a41ff59
AC
109182002-03-09 Andrew Cagney <ac131313@redhat.com>
10919
10920 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10921 approval''.
10922
4ea09c10
PS
109232002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10924
10925 * stabsread.c (read_member_functions): Fix is_stub test for
10926 static member functions, improve comment.
10927
6ccc741d
RE
109282002-03-07 Richard Earnshaw <rearnsha@arm.com>
10929
10930 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10931 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10932 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10933 commands that set boolean values.
10934 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10935 (arm_rdi_resume): Always initialize PC.
10936 (arm_rdi_open): Don't use rslt as a boolean.
10937 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10938 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10939 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10940 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10941
438013df
AO
109422002-03-06 Alexandre Oliva <aoliva@redhat.com>
10943
10944 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10945 * configure: Rebuilt.
10946
70ed8774
SC
109472002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10948
10949 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10950 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10951
5ba2abeb
AC
109522002-03-06 Andrew Cagney <ac131313@redhat.com>
10953
10954 * cli/cli-decode.c (set_cmd_completer): New function.
10955 * command.h (set_cmd_completer): Declare.
10956 * cli/cli-decode.h (set_cmd_completer): Ditto.
10957
10958 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10959 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10960 * win32-nat.c (_initialize_inftarg): Ditto.
10961 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10962 * proc-api.c (_initialize_proc_api): Ditto.
10963 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10964 * source.c (_initialize_source): Ditto.
10965 * exec.c (_initialize_exec): Ditto.
10966 * solib.c (_initialize_solib): Ditto.
10967 * top.c (init_main): Ditto.
10968 * tracepoint.c (_initialize_tracepoint): Ditto.
10969 * symfile.c (_initialize_symfile): Ditto.
10970 * printcmd.c (_initialize_printcmd): Ditto.
10971 * infcmd.c (_initialize_infcmd): Ditto.
10972 * corefile.c (_initialize_core): Ditto.
10973
f779ca99
AC
109742002-03-05 Andrew Cagney <ac131313@redhat.com>
10975
10976 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10977
01a3934b
AC
109782002-03-05 Andrew Cagney <ac131313@redhat.com>
10979
10980 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10981
37057839
AC
109822002-03-05 Andrew Cagney <ac131313@redhat.com>
10983
10984 * NEWS: Update headings, 5.2 has branched.
10985
c6ecbae5
DJ
109862002-03-04 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10989 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10990 (register_addr, REGISTER_RAW_SIZE): Likewise.
10991 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10992 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10993
e9f30c21
ML
109942002-03-03 Michal Ludvig <mludvig@suse.cz>
10995
10996 * MAINTAINERS (x86-64): Add myself.
10997 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10998 changed value_ptr -> struct value *
10999
54394ac3
DB
110002002-03-01 David O'Brien <obrien@FreeBSD.org>
11001
11002 * configure.host (sparc64-*-freebsd): Add.
11003 * configure.tgt: Likewise.
11004 * config/sparc/fbsd.mh: New file.
11005 * config/sparc/fbsd.mt: Likewise.
11006 * config/sparc/nm-fbsd.h: Likewise.
11007 * config/sparc/tm-fbsd.h: Likewise.
11008
bfe95955
DJ
110092002-03-01 Daniel Jacobowitz <drow@mvista.com>
11010
11011 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11012 regformats/reg-s390x.dat.
11013
f33c6cbf
AC
110142002-03-01 Andrew Cagney <ac131313@redhat.com>
11015
11016 * utils.c: Add FIXME explaining true/false problem.
11017
5ecaa7dd
AC
110182002-02-28 Andrew Cagney <ac131313@redhat.com>
11019
11020 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11021
2a251cc2
MC
110222002-02-28 Michael Chastain <mec@shout.net>
11023
11024 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11025
6a8031a3 110262002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11027
11028 * gdbserver/linux-s390-low.c: New file.
11029 * regformats/reg-s390.dat: New file.
11030 * regformats/reg-s390x.dat: New file.
11031 * gdbserver/configure.srv: Add S/390.
11032 * gdbserver/Makefile.in: Add S/390.
11033 * configure.tgt: Enable gdbserver for S/390.
11034
ac469903
EZ
110352002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11036
11037 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11038 first line of the doc string for "info dos", except at the end of
11039 the sentence, since the short help stops at the first period.
11040
985cb1a3
JM
110412002-02-28 Jason Merrill <jason@redhat.com>
11042
11043 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11044
c570663e
FF
110452002-02-27 Fred Fish <fnf@redhat.com>
11046
11047 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11048 comment (dumy -> dummy).
11049
43630227
PS
110502002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11051
11052 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11053
b84911e8
RB
110542002-02-27 Rodney Brown <rbrown64@csc.com.au>
11055
11056 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11057
58caa3dc
DJ
110582002-02-27 Daniel Jacobowitz <drow@mvista.com>
11059
11060 * gdbserver/acconfig.h: New file.
11061 * gdbserver/i387-fp.c: New file.
11062 * gdbserver/i387-fp.h: New file.
11063 * gdbserver/linux-x86-64.c: New file.
11064 * regformats/reg-x86-64.dat: New file.
11065 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11066 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11067 * gdbserver/configure.in: Add support for regsets.
11068 * gdbserver/config.in: Regenerate.
11069 * gdbserver/configure: Regenerate.
11070 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11071 * gdbserver/linux-low.h: New file.
11072 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11073 for regsets.
11074 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11075 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11076 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11077 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11078 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11079 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11080 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11081 "i387-fp.h". Add PTRACE_GETREGS and friends.
11082 * gdbserver/regcache.c (supply_register): New function.
11083 (supply_register_by_name): New function.
11084 (collect_register): New function.
11085 (collect_register_by_name): New function.
11086
93652174
DJ
110872002-02-27 Daniel Jacobowitz <drow@mvista.com>
11088
11089 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11090 (config.status): Add configure.srv dependency.
11091 (server_h): Add config.h dependency.
11092
a02e4a61
DJ
110932002-02-27 Daniel Jacobowitz <drow@mvista.com>
11094
11095 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11096 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11097 * gdbserver/configure.srv: Change i386-*-linux* to use
11098 reg-i386-linux.o.
11099
ce0eebec
AC
111002002-02-26 Andrew Cagney <ac131313@redhat.com>
11101
11102 * x86-64-tdep.c: Re-indent. Update copyright date.
11103
82dbc5f7
AC
111042002-02-26 Andrew Cagney <ac131313@redhat.com>
11105
11106 From Michal Ludvig <mludvig@suse.cz>:
11107 * x86-64-tdep.c (value.h): Delete.
11108 (gdb_assert.h): Include.
11109 (x86_64_register_convert_to_virtual,
11110 x86_64_register_convert_to_raw ): Add check which lets only
11111 floating-point values to be converted.
11112 (value_push): Delete.
11113 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11114 (i386_gdbarch_init): Number of register_bytes fixed.
11115
e4621584
AC
111162002-02-26 Andrew Cagney <ac131313@redhat.com>
11117
11118 * MAINTAINERS: Add x86-64 target.
11119
81a9a963
AC
111202002-02-26 Andrew Cagney <ac131313@redhat.com>
11121
11122 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11123 * osfsolib.c (solib_map_sections): Ditto.
11124 * irix5-nat.c (solib_map_sections): Ditto.
11125 * corelow.c (gdb_check_format): Ditto.
11126 * symfile.c (symfile_bfd_open): Ditto.
11127 * solib.c (solib_map_sections): Ditto.
11128 Fix PR gdb/354.
7e336ba1 11129
0f017ab9
AC
111302002-02-26 Andrew Cagney <ac131313@redhat.com>
11131
11132 * remote.c (_initialize_remote): By default, disable ``e'' and
11133 ``E'' step out-of-range packets.
11134
75738c29
AS
111352002-02-26 Andreas Schwab <schwab@suse.de>
11136
11137 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11138 m68k_linux_frame_saved_pc.
11139 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11140 in_sigtramp.
11141 (SIGCONTEXT_PC_OFFSET): Remove.
11142 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11143 m68k_linux_sigtramp_saved_pc): New functions.
11144 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11145 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11146 (UCONTEXT_PC_OFFSET): Define.
11147 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11148 non-RT and RT signal trampolines.
11149
7e8ed687
RE
111502002-02-26 Richard Earnshaw <rearnsha@arm.com>
11151
11152 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11153 (TARGET_NBPG, STACK_END_ADDR): Delete
11154 (VARIABLES_INSIDE_BLOCK): Delete.
11155
6972bc8b
AC
111562002-02-25 Andrew Cagney <ac131313@redhat.com>
11157
11158 * utils.c (perror_with_name): Make string parameter constant.
11159 (print_sys_errmsg): Ditto.
11160 (query): Ditto.
11161 * defs.h (perror_with_name): Update.
11162 (print_sys_errmsg): Update.
11163 (query): Update.
11164
aa32f823
DJ
111652002-02-25 Daniel Jacobowitz <drow@mvista.com>
11166
11167 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11168 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11169
19caaa45
PS
111702002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11171
11172 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11173 if it already matches the current architecture from the exec file.
11174 Include arch-utils.h for gdbarch_info_init prototype.
11175 * Makefile.in (rs6000-nat.o): Update dependencies.
11176
d951901f
EZ
111772002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11178
11179 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11180 list of exported variables.
11181
7ea81414
DJ
111822002-02-24 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * gdbserver/configure.srv: New file.
11185 * gdbserver/configure.in: Use configure.srv instead
11186 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11187 from it.
11188 * gdbserver/configure: Regenerated.
11189 * gdbserver/terminal.h: New file.
11190 * gdbserver/Makefile.in: Update for configure changes. Remove
11191 more unneeded include paths.
11192
080fe24b
AC
111932002-02-24 Andrew Cagney <ac131313@redhat.com>
11194
11195 From wiz at danbala:
11196 * config/sparc/tm-sp64.h: Fix grammar and typos.
11197 Fix PR gdb/287.
11198
8605d56e
AC
111992002-02-24 Andrew Cagney <ac131313@redhat.com>
11200
11201 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11202 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11203 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11204 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11205 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11206 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11207 * s390-tdep.c: Ditto.
92362027
AC
11208 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11209 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11210 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11211 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11212 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11213 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11214 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11215 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11216 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11217 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11218 Fix PR gdb/378.
7e336ba1 11219
8ed32cc0
AC
112202002-02-23 Andrew Cagney <ac131313@redhat.com>
11221
a3007b6f
AC
11222 * lin-thread.c: Delete file.
11223 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11224 to gdb_proc_service.h.
11225 * configure: Re-generate.
11226
50a9e2f1
AC
11227 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11228 * serial.c (serial_open): Delete check for "ocd".
11229 Fix PR gdb/349.
11230
8b6e7932
AC
11231 * Makefile.in (linux-thread.o): Delete target.
11232 * linux-thread.c: Delete file.
11233
d155c46b
AC
11234 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11235 renamed SH files to be consistent.
11236
8ed32cc0
AC
11237 * symtab.c (sort_search_symbols): Use xfree.
11238
0e18d038
RE
112392002-02-23 Richard Earnshaw <rearnsha@arm.com>
11240
11241 * arm-linux-tdep.c (arm_linux_init_abi): Register
11242 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11243 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11244 definition with undef, since we don't want the sysvr4 definition.
11245 (SKIP_TRAMPOLINE_CODE): Likewise.
11246
27aac7ff
AC
112472002-02-23 Andrew Cagney <ac131313@redhat.com>
11248
11249 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11250
11251 * configure.in: (AC_CHECK_FUNCS) Added test for
11252 canonicalize_file_name Regenerated.
11253 * config.in, configure: Regenerated.
11254 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11255 defined use canonicalize_file_name.
7e336ba1 11256
65a6e0ee
MC
112572002-02-23 Michael Chastain <mec@shout.net>
11258
11259 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11260
47b95330
AC
112612002-02-23 Andrew Cagney <ac131313@redhat.com>
11262
11263 * README: Remove references to cygnus.com.
11264 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11265 dot com'' form. Remove references to cygnus.com and sourceware.
11266
696f451b
AC
112672002-02-23 Andrew Cagney <ac131313@redhat.com>
11268
11269 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11270 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11271 1003.1-2001 no longer allows "head -1".
11272 * gdb/Makefile.in (version.c): Likewise.
11273 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11274 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11275 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11276
bbaca940
AC
112772002-02-23 Andrew Cagney <ac131313@redhat.com>
11278
11279 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11280 * command.h (cmd_cfunc_eq): Declare.
11281 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11282
11283 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11284 ``struct cmd_list_element *''.
11285 * cli/cli-cmds.c (is_complete_command): Update. Use
11286 cmd_cfunc_eq.
11287 * top.c (execute_command): Pass the command to
11288 is_complete_command.
11289 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11290
b8b8b047
AC
112912002-02-23 Andrew Cagney <ac131313@redhat.com>
11292
11293 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11294 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11295 architecture defines.
11296 * s390-tdep.c (s390_gdbarch_init): Likewise.
11297
19d3fc80
RE
112982002-02-23 Richard Earnshaw <rearnsha@arm.com>
11299
11300 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11301 (arm_linux_push_arguments): Likewise.
11302 (arm_linux_init_abi): Register them. Also register linux-specific
11303 call_dummy_words.
11304 (find_minsym_and_objfile): Use strcmp, not STREQ.
11305 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11306 (arm_linux_call_dummy_words): Delete declaration.
11307 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11308 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11309 declarations.
11310 (LOWEST_PC): Delete.
11311
3ab13650
PS
113122002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11313
11314 * maint.c (print_section_info): Do not prepend `0x' to filepos
11315 output, it will be handled by local_hex_string_custom.
11316
19d3fc80 113172002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11318
11319 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11320 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11321 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11322
d85a5daf
JB
113232002-02-22 Jim Blandy <jimb@redhat.com>
11324
11325 Indicate that the bcache functions don't change the strings
11326 they're passed.
11327 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11328 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11329
eeb25b8a
PM
113302002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11331
11332 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11333
6badb179
CF
113342002-02-21 Christopher Faylor <cgf@redhat.com>
11335
11336 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11337 find the complete path to a loaded DLL.
11338
e8717518
FF
113392002-02-21 Fred Fish <fnf@redhat.com>
11340
11341 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11342 that marks the end of the range of a function, enter a line number
11343 entry that has a line number of zero and a PC offset that matches
11344 the end of the function. This starts a range of PC's for which no
11345 line number information is known.
11346 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11347 PC's for which no line number info is found (line number is zero)
11348 then we didn't find any valid line information.
11349 * symtab.h: Document use of zero line number entry.
11350
9abe5450
EZ
113512002-02-21 Elena Zannoni <ezannoni@redhat.com>
11352
11353 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11354 (have_ptrace_getvrregs): Define for run time checks.
11355 (gdb_vrregset_t): New type for Altivec register handling.
11356 (fetch_register, store_register): Fetch/store altivec register
11357 when needed.
11358 (fetch_altivec_register, store_altivec_register): New functions.
11359 (supply_vrregset, fill_vrregset): New functions.
11360 (fetch_altivec_registers, store_altivec_registers): New functions.
11361 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11362 registers as well.
11363
aaa38bb5
AJ
113642002-02-21 Jiri Smid <smid@suse.cz>
11365
11366 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11367
b34db576
RE
113682002-02-21 Richard Earnshaw <rearnsha@arm.com>
11369
11370 * Makefile.in (armnbsd-nat.o): Update dependencies.
11371 * armnbsd-nat.c (supply_gregset): New function. Common code to
11372 supply the integer register set.
11373 (supply_fparegset): New function. Similar for FPA registers.
11374 (fetch_regs, fetch_fp_regs): Use them.
11375 (fetch_core_registers): Likewise.
11376 (fetch_elfcore_registers): New function.
11377 (arm_netbsd_elfcore_fns): New core-file type specification.
11378 (_initialize_arm_netbsd_nat): Register it.
11379
3e56fc4b
RE
113802002-02-21 Richard Earnshaw <rearnsha@arm.com>
11381
11382 * armnbsd-nat.c: Include gdbcore.h.
11383 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11384 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11385 'void' to declaration, to shut up ARI.
11386 (fetch_core_registers): Make static. Rewrite using supply_register.
11387 (arm_netbsd_core_fns): New core-file type specification.
11388 (_initialize_arm_netbsd_nat): New function.
11389
097f6b0b
CF
113902002-02-21 Christopher Faylor <cgf@redhat.com>
11391
11392 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11393 value.
11394
c914e0cc
CF
113952002-02-20 Christopher Faylor <cgf@redhat.com>
11396
11397 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11398 fails.
11399
385fa495
DJ
114002002-02-20 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * jv-exp.y (parse_number): Change type of implicit longs
11403 to builtin_type_uint64.
11404
e5f1222d
DJ
114052002-02-20 Daniel Jacobowitz <drow@mvista.com>
11406
11407 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11408 to be an integer instead of a `union wait'.
11409
75c9abc6
DJ
114102002-02-20 Daniel Jacobowitz <drow@mvista.com>
11411
11412 * mips-linux-nat.c: Call the operating system GNU/Linux.
11413 * mips-linux-tdep.c: Likewise.
11414 * mips-tdep.c: Likewise.
11415
551792a5
DJ
114162002-02-20 Daniel Jacobowitz <drow@mvista.com>
11417
11418 Fix PR gdb/265.
11419 * jv-exp.y (parse_number): Handle 64-bit integers.
11420
ee6e2b82
DJ
114212002-02-20 Daniel Jacobowitz <drow@mvista.com>
11422
11423 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11424 AC_STDC_HEADERS to AC_HEADER_STDC.
11425 * gdbserver/configure: Regenerated.
11426
a48442a0
RE
114272002-02-20 Richard Earnshaw <rearnsha@arm.com>
11428
11429 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11430 is defined.
11431 * sparc-tdep.c (get_longjmp_target): Likewise.
11432
fe419ffc
RE
114332002-02-20 Richard Earnshaw <rearnsha@arm.com>
11434
11435 * News: Add news about ARM and Multi-arch. Mention the new target
11436 arm*-*-netbsd*.
11437
5832ed7e
JB
114382002-02-19 Jim Blandy <jimb@redhat.com>
11439
11440 * stabsread.c (error_type_complaint): Improve error message.
11441
84563040
DJ
114422002-02-19 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * gdbserver/README: Update documentation.
11445 * gdbserver/configure.in: Update configury to match documentation.
11446 * gdbserver/Makefile.in: Likewise.
11447 * gdbserver/configure: Regenerated.
11448 * gdbserver/aclocal.m4: New file, generated by aclocal.
11449 * gdbserver/config.in: New file, generated by autoheader.
11450
375fd65b
RE
114512002-02-19 Richard Earnshaw <rearnsha@arm.com>
11452
11453 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11454 armnbsd-nat.c.
11455
08216dd7
RE
114562002-02-19 Richard Earnshaw <rearnsha@arm.com>
11457
11458 * arm-tdep.h (enum arm_float_model): New enum.
11459 (struct gdbarch_tdep): Add fp_model.
11460 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11461 up floating-point conversions until we know the floating-point model
11462 in use by the inferior. Don't complain about being unable to
11463 determine the ABI of the inferior when we don't have one.
11464 (arm_extract_return_value): Support different floating-point models.
11465 (arm_store_return_value): Likewise.
aaa38bb5 11466 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11467 ARM_FLOAT_SOFT.
11468 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11469
65d6d66a
PS
114702002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11471
11472 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11473 of ``current_gdbarch''.
11474
47221191
RE
114752002-02-19 Richard Earnshaw <rearnsha@arm.com>
11476
11477 * armnbsd-nat.c : ANSIfy all function declarations.
11478 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11479 (fetch_inferior_registers): Re-implement in terms of above.
11480 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11481 (store_inferior_registers): Re-implement in terms of above.
11482
fdf39c9a
RE
114832002-02-19 Richard Earnshaw <rearnsha@arm.com>
11484
aaa38bb5 11485 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11486 kernel.
11487 * arm-linux-tdep.c: Likewise.
11488 * config/arm/tm-linux.h: Likewise.
11489
93247f88
RE
114902002-02-19 Richard Earnshaw <rearnsha@arm.com>
11491
11492 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11493 * config/arm/nbsd.mt (TM_FILE): Delete.
11494 * config/arm/tm-nbsd.h: Delete.
11495
d7b486e7
RE
114962002-02-19 Richard Earnshaw <rearnsha@arm.com>
11497
11498 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11499 Initialize CALL_DUMMY_LENGTH.
11500
41d39a95
RE
115012002-02-19 Richard Earnshaw <rearnsha@arm.com>
11502
11503 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11504 function.
11505 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11506 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11507 defines one thing and that is incorrect for this port.
11508 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11509
e1195560
PM
115102002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11511
11512 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11513
c1748f97
PM
115142002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11515
11516 * win32-nat.c (display_selector): New function. Displays information
11517 about the information returned by GetThreadSelectorEntry API function.
11518 (display_selectors): New function. Displays the infomation of
11519 the selector given as argument, or of CS, DS ans FS selectors
11520 if no argument is given.
11521 ( _initialize_inftarg): Add "w32" as info prefix command.
11522 Add "info w32 selector" as command calling display_selectors.
11523
e41e6bbf
PM
115242002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11525
11526 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11527 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11528 if not defined.
11529
0d3a9f48
RE
115302002-02-18 Richard Earnshaw <rearnsha@arm.com>
11531
11532 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11533
3fb4b924
RE
115342002-02-18 Richard Earnshaw <rearnsha@arm.com>
11535
11536 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11537 (arm_fix_call_dummy): Call it.
11538 (arm_call_dummy_breakpoint_offset): Delete.
11539 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11540 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11541
7f55af32
AC
115422002-02-18 Andrew Cagney <ac131313@redhat.com>
11543
11544 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11545 Default to func_frame_chain_valid.
11546 * gdbarch.h, gdbarch.c: Re-generate.
11547 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11548
05f13b9c
EZ
115492002-02-18 Elena Zannoni <ezannoni@redhat.com>
11550
11551 * ppc-linux-nat.c: Update copyright.
11552 (fetch_register, store_register): Add tid parameter, don't compute
11553 tid here.
11554 (fetch_ppc_registers, store_ppc_registers): Add tid
11555 parameter. Pass it along to callees.
11556 (fetch_inferior_registers, store_inferior_registers): Compute tid
11557 here, and pass it to calleed functions.
11558 (fill_gregset, supply_fpregset): Clean up formatting.
11559
d7afb4c9
RE
115602002-02-18 Richard Earnshaw <rearnsha@arm.com>
11561
11562 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11563 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11564
9df628e0
RE
115652002-02-18 Richard Earnshaw <rearnsha@arm.com>
11566
11567 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11568 * gdbarch.c gdbarch.h: Regenerate.
11569 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11570 function.
11571 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11572 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11573 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11574
11575 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11576 * arm-tdep.c (arm_get_longjmp_target): New function.
11577 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11578 this to a positive value register arm_get_longjmp_target as the
11579 longjmp handler.
11580 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11581 (arm_linux_init_abi): Set up longjmp description in tdep.
11582 * armnbsd-nat.c (get_longjmp_target): Delete.
11583 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11584 description in tdep.
11585 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11586 (get_longjmp_target): Delete declaration.
11587 (GET_LONGJMP_TARGET): Delete.
11588 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11589 (GET_LONGJMP_TARGET): Delete.
11590
57bc8964
KB
115912002-02-17 Kevin Buettner <kevinb@redhat.com>
11592
11593 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11594 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11595 of ``current_gdbarch''.
11596
83d31a92
TT
115972002-02-17 Tom Tromey <tromey@redhat.com>
11598
11599 * cli/cli-cmds.c (compare_strings): New function.
11600 (complete_command): Only print each unique item once.
11601 * completer.h (complete_line): Declare.
11602 * completer.c (complete_line): New function.
11603 (line_completion_function): Use it.
11604
17ef5d92
AC
116052002-02-16 Andrew Cagney <ac131313@redhat.com>
11606
11607 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11608 * gdbarch.h, gdbarch.c: Re-generate.
11609
491b8946
DJ
116102002-02-16 Daniel Jacobowitz <drow@mvista.com>
11611
11612 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11613
116142002-02-16 Daniel Jacobowitz <drow@mvista.com>
11615
11616 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11617 * valops.c (value_arg_coerce): Don't take the address of a reference
11618 to convert an argument to a reference.
11619
dfe7f3ac
CF
116202002-02-15 Christopher Faylor <cgf@redhat.com>
11621
11622 * win32-nat.c (get_image_name): New function.
11623 (handle_load_dll): Use get_image_name function.
11624 (get_child_debug_event): Avoid registering debug events until possibly
11625 execed process is started.
11626 (child_create_inferior): Allow invocation via shell so that command
11627 line redirection, etc. works ok.
11628 (_initialize_inftarg): Add new command: "set shell" to control whether
11629 a shell is used to start a process.
11630
1d33e73a
DJ
116312002-02-15 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11634 instead of find_register_by_number.
11635 (cannot_store_register): Likewise.
11636
48cd0caa
PM
116372002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11638
aaa38bb5 11639 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11640 fprintf_unfiltered (gdb_stderr, ...).
11641
8656e7d8
DJ
116422002-02-15 Daniel Jacobowitz <drow@mvista.com>
11643
11644 * gdbserver/gdbserver.1: Document --attach.
11645
66e810cd
RE
116462002-02-15 Richard Earnshaw <rearnsha@arm.com>
11647
11648 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11649 descriptions.
11650 * arm-tdep.c (arm_default_arm_le_breakpoint)
11651 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11652 (arm_default_thumb_be_breakpoint): New. Initialize them from
11653 traditional breakpoint defines.
11654 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11655 (arm_gdbarch_init): Initialize new breakpoint variables.
11656 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11657 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11658 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11659 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11660 code out to ...
11661 (arm_netbsd_init_abi_common): ... here; new function.
11662 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11663 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11664 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11665 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11666
97e03143
RE
116672002-02-15 Richard Earnshaw <rearnsha@arm.com>
11668
11669 * arm-tdep.h (enum arm_abi): New enum.
11670 (struct gdbarch_tdep): New structure.
11671 (LOWEST_PC): Provide a default.
11672 (arm_gdbarch_register_os_abi): Declare new function.
11673 * arm-tdep.c (arm_abi_names): New array.
11674 (process_note_abi_tag_sections): New function.
11675 (get_elfosabi): New function.
11676 (arm_gdbarch_register_os_abi): New function.
11677 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11678 support for that ABI has been built in, then call the appropriate
11679 configuration routine. Use gdbarch_num_regs() to get the number
11680 of registers.
11681 (arm_dump_tdep): New function.
11682 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11683 place-holder functions.
11684 (_initialize_arm_tdep): Register them.
11685 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11686
11687 * armnbsd-tdep.c: New file.
11688 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11689 * config/arm/nbsd.mt (TDEPFILES): Add it.
11690 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11691
11692 * armnbsd-nat.c: Include regcache.h.
11693 * Makefile.in (armnbsd-nat.o): Update dependency list.
11694
11695 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11696
ad68be46
DJ
116972002-02-14 Daniel Jacobowitz <drow@mvista.com>
11698
11699 * gdbserver/Makefile.in: Fix typos in target rules.
11700
003d6d1d
DJ
117012002-02-14 Daniel Jacobowitz <drow@mvista.com>
11702
aaa38bb5 11703 Fix part of PR gdb/267.
003d6d1d
DJ
11704 * linespec.c (find_methods): Handle constructors specially for now.
11705
6b230f1b
CV
117062002-02-14 Corinna Vinschen <vinschen@redhat.com>
11707
11708 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11709 handling.
11710 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11711 standard_coerce_float_to_double().
11712
1ea98d12
CF
117132002-02-14 Christopher Faylor <cgf@redhat.com>
11714
11715 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11716 GDBINIT_FILENAME.
11717
dd47e6fd
EZ
117182002-02-14 Elena Zannoni <ezannoni@redhat.com>
11719
11720 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11721 find_variant_by_name, because it confuses the multiarch
11722 framework. Return NULL if there isn't an architecture with the
11723 user supplied name, instead of forcing a different one without
11724 recording the change with the multiarch machinery.
11725 (find_variant_by_name): Delete.
11726
d7e39b9e
PS
117272002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11728
11729 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11730 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11731
76e42a4f
MH
117322002-02-13 Martin M. Hunt <hunt@redhat.com>
11733
aaa38bb5 11734 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11735 print_frame_info_listing_hook, set current_source_symtab.
11736
0a30fbc4
DJ
117372002-02-14 Daniel Jacobowitz <drow@mvista.com>
11738
11739 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11740 and remove unused $(INCLUDE_DIR).
11741 Add regcache.c to OBS.
11742 Add generated register protocol files to clean target.
11743 Update dependencies for new objects, obsolete old target code.
11744
11745 * gdbserver/linux-low.c: Remove all platform-specific code to
11746 new files. Remove various dead code. Update to use regcache
11747 functionality.
11748 * gdbserver/remote-utils.c (fromhex): Add return statement
11749 to quiet warning.
11750 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11751 constant.
11752 (input_interrupt): Add integer parameter to match prototype
11753 of a signal handler.
11754 (outreg): Use register_data ().
11755 (prepare_resume_reply): Use gdbserver_expedite_regs.
11756 * gdbserver/server.c (main): Dynamically allocate own_buf because
11757 PBUFSIZ is no longer constant. Use registers_to_string () and
11758 registers_from_string ().
11759 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11760 for error (), fatal (), and warning (). Update definition of
11761 PBUFSIZ to use regcache functionality. Add include guard.
11762 * gdbserver/utils.c (fatal): Add missing ``const''.
11763 (warning): New function.
11764
11765 * regformats/regdat.sh: Include "regcache.h" in generated files.
11766 Provide init_registers () function.
11767 * regformats/regdef.h: Add prototype for set_register_cache ().
11768 Add include guard.
11769
11770 * gdbserver/linux-arm-low.c: New file.
11771 * gdbserver/linux-i386-low.c: New file.
11772 * gdbserver/linux-ia64-low.c: New file.
11773 * gdbserver/linux-m68k-low.c: New file.
11774 * gdbserver/linux-mips-low.c: New file.
11775 * gdbserver/linux-ppc-low.c: New file.
11776 * gdbserver/linux-sh-low.c: New file.
11777
11778 * gdbserver/regcache.c: New file.
11779 * gdbserver/regcache.h: New file.
11780
11781 * gdbserver/low-linux.c: Removed obsolete file.
11782
4cc841d0
DJ
117832002-02-14 Daniel Jacobowitz <drow@mvista.com>
11784
11785 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11786 * config/i386/linux.mt: Likewise.
11787 * config/ia64/linux.mt: Likewise.
11788 * config/m68k/linux.mh: Likewise.
11789 * config/powerpc/linux.mh: Likewise.
11790 * config/mips/linux.mt: Likewise.
11791
11792 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11793
11794 * config/i386/i386lynx.mh: Mark gdbserver variables
11795 as (currently) obsolete for this target.
11796 * config/i386/nbsd.mt: Likewise.
11797 * config/i386/nbsdelf.mt: Likewise.
11798 * config/m32r/m32r.mt: Likewise.
11799 * config/m68k/m68klynx.mh: Likewise.
11800 * config/m68k/nbsd.mt: Likewise.
11801 * config/m68k/sun3os4.mh: Likewise.
11802 * config/mips/vr5000.mt: Likewise.
11803 * config/ns32k/nbsd.mt: Likewise.
11804 * config/pa/hppabsd.mh: Likewise.
11805 * config/pa/hppaosf.mh: Likewise.
11806 * config/powerpc/nbsd.mt: Likewise.
11807 * config/rs6000/rs6000lynx.mh: Likewise.
11808 * config/s390/s390.mt: Likewise.
11809 * config/s390/s390x.mt: Likewise.
11810 * config/sparc/sparclynx.mh: Likewise.
11811 * config/sparc/sun4os4.mh: Likewise.
11812 * config/i386/x86-64linux.mt: Likewise.
11813 * config/sparc/linux.mh: Likewise.
11814
a85f51e7
DJ
118152002-02-14 Daniel Jacobowitz <drow@mvista.com>
11816
11817 * configure.tgt: Configure gdbserver only for known working
11818 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11819 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11820 SUBDIRS if it is configured. Update comment for ${nativefile}.
11821 * configure: Regenerated.
11822
65554fef
MS
118232002-02-13 Michael Snyder <msnyder@redhat.com>
11824
670a52db
MS
11825 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11826
6dbdc4a3
MS
11827 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11828 (default_gcore_mach): Just return 0, work around a problem in bfd.
11829 (default_gcore_target): OK to return NULL if exec_bfd is null.
11830 (make_mem_sec): Use a cast, avoid a warning.
11831
11832 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11833 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11834 sizeof (host pointer) != sizeof (target pointer)).
11835 (procfs_make_note_section): Avoid overflow in psargs string.
11836
aaa38bb5 11837 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11838 implementation return an error.
11839
118402002-02-13 Rodney Brown <rbrown64@csc.com.au>
11841
11842 * procfs.c (procfs_make_note_section): Provide a default definition
11843 (for alpha-dec-osf4.0f). Fix typos.
11844
1e4d76e7
EZ
118452002-02-13 Elena Zannoni <ezannoni@redhat.com>
11846
11847 * linux-proc.c: Add include of regcache.h.
11848 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11849
b6d1a1d5
AC
118502002-02-13 Andrew Cagney <ac131313@redhat.com>
11851
11852 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11853 * memattr.c (create_mem_region): Disallow useless empty region.
11854 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11855 non-overlapping.
b6d1a1d5 11856
6c6ea35e
MC
118572002-02-13 Michael Chastain <mec@shout.net>
11858
11859 * defs.h: Kill CONST_PTR.
11860 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11861 * c-lang.c (c_builtin_types): Likewise.
11862 * ch-lang.c (ch_builtin_types): Likewise.
11863 * f-lang.c (f_builtin_types): Likewise.
11864 * language.c (unknown_builtin_types): Likewise.
11865 * m2-lang.c (m2_builtin_types): Likewise.
11866 * p-lang.c (pascal_builtin_types): Likewise.
11867 * scm-lang.c (c_builtin_types): Likewise.
11868
3e0b0f48
KS
118692002-02-13 Keith Seitz <keiths@redhat.com>
11870
11871 * arm-tdep.h (arm_get_next_pc): Add declaration.
11872
67255d04
RE
118732002-02-13 Richard Earnshaw <rearnsha@arm.com>
11874
11875 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11876 with other related struct-returning functions.
11877 (arm_extract_struct_value_address): New function.
11878 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11879 initialize float_format, double_format and long_double_format as
11880 appropriate to the endianness of the target.
11881 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11882 (arm_use_struct_convention): Delete declaration.
11883 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11884
079777f6
KS
118852002-02-13 Keith Seitz <keiths@redhat.com>
11886
11887 * defs.h (core_addr_to_string_nz): New function.
11888
34588f23
MK
118892002-02-13 Mark Kettenis <kettenis@gnu.org>
11890
11891 Apply missing bits of 2002-01-15 patch.
11892 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11893 (fill_fpregset): Use i387_fill_fsave.
11894
49b563f9
KS
118952002-02-12 Keith Seitz <keiths@redhat.com>
11896
49b563f9
KS
11897 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11898 (core_addr_to_string_nz): New function.
11899
aeb98c60
RE
119002002-02-11 Richard Earnshaw <rearnsha@arm.com>
11901
11902 * arm-linux-nat.c: Really include arm-tdep.h.
11903 * config/arm/tm-linux.h (struct type, struct value): Declare.
11904
65554fef
MS
119052002-02-11 Michael Snyder <msnyder@redhat.com>
11906
11907 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11908 (gcore section): Ifdef for Solaris and Unixware only.
11909 (procfs_do_thread_registers): Unixware needs one lwpstatus
11910 per thread (not one prstatus or pstatus).
11911 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11912 not over all gdb threads. For unixware, call elfcore_write_pstatus
11913 once before iterating over threads.
11914
34e8f22d
RE
119152002-02-11 Richard Earnshaw <rearnsha@arm.com>
11916
11917 * arm-tdep.h: New file.
11918 * arm-tdep.c: Include arm-tdep.h.
11919 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11920 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11921 (arm_print_float_info, arm_register_type, convert_to_extended)
11922 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11923 (arm_extract_return_value, arm_register_name): Make static.
11924 (arm_software_single_step): Similarly. Fix types in declaration.
11925 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11926 (arm_store_return_value, arm_store_struct_return): New functions.
11927 (arm_gdbarch_init): Register the above functions. Also register
11928 call_dummy_start_offset, sizeof_call_dummy_words,
11929 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11930 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11931 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11932 prologue_cache.saved_regs here, rather than ...
11933 (_initialize_arm_tdep): ... here.
11934 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11935 declarations.
11936 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11937 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11938 (arm_print_float_info, arm_register_type, convert_to_extended)
11939 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11940 (arm_extract_return_value, arm_register_name): Delete declarations.
11941 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11942 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11943 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11944 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11945 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11946 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11947 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11948 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11949 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11950 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11951 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11952 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11953 interface.
11954 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11955 * remote-rdi.c remote-rdp.c: Likewise.
11956 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11957 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11958 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11959 definition.
11960
11961 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11962 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11963 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11964 from non-ARM_ prefixed definitions.
11965 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11966 all uses of above.
11967 * remote-rdi.c remote-rdp.c: Likewise.
11968 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11969
148754e5
RE
119702002-02-11 Richard Earnshaw <rearnsha@arm.com>
11971
11972 * arm-tdep.c (arm_frameless_function_invocation)
11973 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11974 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11975 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11976 (arm_pop_frame, arm_get_next_pc): Make static.
11977 (arm_gdbarch_init): Register above in gdbarch structure.
11978 (arm_read_fp): Renamed from arm_target_read_fp.
11979 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11980 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11981 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11982 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11983 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11984 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11985 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11986 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11987 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11988 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11989 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11990
434d2d4f
DJ
119912002-02-10 Daniel Jacobowitz <drow@mvista.com>
11992
11993 * symtab.c (compare_search_syms): New function.
11994 (sort_search_symbols): New function.
11995 (search_symbols): Sort symbols after searching rather than
11996 before.
11997
55241689
AC
119982002-02-10 Andrew Cagney <ac131313@redhat.com>
11999
12000 * NEWS: Linux -> GNU/Linux.
12001
028c194b
AC
120022002-02-10 Andrew Cagney <ac131313@redhat.com>
12003
12004 * gdbarch.sh: For for level one methods, disallow a definition
12005 when partially multi-arched. Add comments explaining rationale.
12006 * gdbarch.h: Re-generate.
12007
6acf50cd
AC
120082002-02-10 Andrew Cagney <ac131313@redhat.com>
12009
12010 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12011 multi-arch partial.
aaa38bb5 12012
50248794
AC
120132002-02-10 Andrew Cagney <ac131313@redhat.com>
12014
12015 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12016 field. Use diff -u.
12017 * gdbarch.c: Re-generate.
12018
c30e0066
AC
120192002-02-10 Andrew Cagney <ac131313@redhat.com>
12020
9b56c5f3 12021 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12022 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12023 partial.
12024
6e6d6484
AC
120252002-02-10 Andrew Cagney <ac131313@redhat.com>
12026
12027 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12028 multi-arch partial.
12029 (PUSH_ARGUMENTS): Switch to using predefault.
12030 * gdbarch.c: Regenerate.
12031
c203844d
AC
120322002-02-10 Andrew Cagney <ac131313@redhat.com>
12033
12034 * valops.c (PUSH_ARGUMENTS): Delete definition.
12035 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12036 partial. Default to default_push_arguments.
12037 * gdbarch.h, gdbarch.c: Regenerate.
12038
b5a2688f
AC
120392002-02-09 Andrew Cagney <ac131313@redhat.com>
12040
12041 * defs.h (throw_exception): Rename return_to_top_level. Update
12042 comments.
12043 * utils.c (error_stream, internal_verror, quit): Ditto.
12044 * top.c (throw_exception, catcher): Ditto.
12045 * sparclet-rom.c (sparclet_load): Ditto.
12046 * remote.c (interrupt_query, minitelnet): Ditto.
12047 * remote-sds.c (interrupt_query): Ditto.
12048 * remote-mips.c (mips_error, mips_kill): Ditto.
12049 * ocd.c (interrupt_query): Ditto.
12050 * monitor.c (monitor_interrupt_query): Ditto.
12051 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12052 * target.h: Update comment.
aaa38bb5 12053
b5a2688f 12054 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12055
2fa5c1e0
AC
120562002-02-09 Andrew Cagney <ac131313@redhat.com>
12057
12058 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12059 default_double_format.
12060 * gdbarch.h, gdbarch.c: Re-generate.
12061 * findvar.c (floatformat_unknown): Delete variable definition.
12062 * doublest.h (floatformat_unknown): Delete variable declaration.
12063
da966255
JB
120642002-02-09 Jim Blandy <jimb@redhat.com>
12065
12066 * stabsread.c (read_type): Add code to parse Sun's syntax for
12067 prototyped function types.
12068
123a4891
AC
120692002-02-09 Andrew Cagney <ac131313@redhat.com>
12070
12071 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12072 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12073
fb39c8f3
PS
120742002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12075
12076 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12077 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12078 now _initialize_xcoffsolib gets called again and overrides the
12079 commands from solib.c in a native configuration.
12080
0b87a11d
MK
120812002-02-09 Mark Kettenis <kettenis@gnu.org>
12082
12083 * doublest.c (store_typed_floating): Don't try to return a value.
12084 Fixes PR gdb/290.
12085
bdc2fc72
JB
120862002-02-08 Jim Blandy <jimb@redhat.com>
12087
12088 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12089 is prototyped and has no arguments, print its argument list as
12090 `(void)'.
12091
da69bbcf
CD
120922002-02-08 Chris Demetriou <cgd@broadcom.com>
12093
12094 * MAINTAINERS (write-after-approval): Add myself.
12095 (paper-trail): I've escaped!
aaa38bb5 12096
b69571f5
CF
120972002-02-08 Christopher Faylor <cgf@redhat.com>
12098
12099 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12100 changes.
12101 (_initialize_check_for_gdb_ini): Ditto.
12102
f6871398
MH
121032002-02-08 Martin M. Hunt <hunt@redhat.com>
12104
12105 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12106 xaprintf -> xasprintf.
12107
4e52d31c
PM
121082002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12109
12110 * win32-nat.c: Remove use of printf and sprintf functions.
12111
39bbf761
RE
121122002-02-08 Richard Earnshaw <rearnsha@arm.com>
12113
12114 * arm-tdep.c (arm_frame_chain_valid): Make static.
12115 (arm_push_arguments): Likewise.
12116 (arm_gdbarch_init): New function.
12117 (_initialize_arm_tdep): Call it.
12118 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12119 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12120 (FRAME_CHAIN_VALID): Delete.
12121 (arm_frame_chain_valid): Delete declaration.
12122 (PUSH_ARGUMENTS): Delete.
12123 (arm_push_arguments): Delete declaration.
12124 (CALL_DUMMY_P): Delete.
12125
9c9532c9
CV
121262002-02-08 Andrew Cagney <ac131313@redhat.com>
12127 Corinna Vinschen <vinschen@redhat.com>
12128
12129 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12130 on builtin float types.
12131
4e8f7a8b
DJ
121322002-02-08 Daniel Jacobowitz <drow@mvista.com>
12133
12134 * utils.c: Include <curses.h> before "bfd.h".
12135 * tui/tui-hooks.c: Likewise.
12136 * tui/tui.c: Likewise.
12137 * tui/tuiCommand.c: Likewise.
12138 * tui/tuiData.c: Likewise.
12139 * tui/tuiDataWin.c: Likewise.
12140 * tui/tuiDisassem.c: Likewise.
12141 * tui/tuiGeneralWin.c: Likewise.
12142 * tui/tuiIO.c: Likewise.
12143 * tui/tuiLayout.c: Likewise.
12144 * tui/tuiRegs.c: Likewise.
12145 * tui/tuiSource.c: Likewise.
12146 * tui/tuiSourceWin.c: Likewise.
12147 * tui/tuiStack.c: Likewise.
12148 * tui/tuiWin.c: Likewise.
12149
cd4bffcf
EZ
121502002-02-07 Elena Zannoni <ezannoni@redhat.com>
12151
12152 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12153 to include space for pseudoregs as well. Update loops accordingly.
12154 (sh_fp_frame_init_saved_regs): Ditto.
12155 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12156
26806ce2
AC
121572002-02-07 Andrew Cagney <ac131313@redhat.com>
12158
12159 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12160 Add Richard Earnshaw to Arm maintainers.
12161
97fdab62
AC
121622002-02-07 Andrew Cagney <ac131313@redhat.com>
12163
a6b98203
AC
12164 * defs.h (warning_begin): Delete declaration.
12165
97fdab62
AC
12166 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12167 Delete macro.
12168
78b29b40
MS
121692002-02-07 Michael Snyder <msnyder@redhat.com>
12170
aaa38bb5 12171 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12172 Logic bug, remove misplaced else.
12173
d8849953
KD
121742002-02-07 Klee Dienes <klee@apple.com>
12175
12176 * fork-inferior.c (fork_inferior): Add '!' to the list of
12177 characters that need to be quoted when building a string for the
12178 shell. Quote '!' specifically with a backslash, since CSH chokes
12179 when trying to evaluate "str!str".
aaa38bb5 12180
095778a0
NC
121812002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12182
12183 * rdi-share/host.h: Only provide a typedef for bool if it is not
12184 defined.
12185
1900040c
MS
121862002-02-04 Michael Snyder <msnyder@redhat.com>
12187
12188 * breakpoint.h (enum bptype): Add new overlay event bp type.
12189 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12190
1900040c
MS
12191 * breakpoint.c (create_internal_breakpoint): New function.
12192 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12193 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12194 (create_thread_event_breakpoint): Ditto.
12195 (create_solib_event_breakpoint): Ditto.
12196 (create_overlay_event_breakpoint): New function.
12197 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12198 (update_breakpoints_after_exec): Delete and re-initialize
12199 overlay event breakpoints after an exec. Add FIXME comment
12200 about longjmp breakpoint.
12201 (print_it_typical): Ignore overlay event breakpoints.
12202 (print_one_breakpoint): Ditto.
12203 (mention): Ditto.
12204 (bpstat_what): Do not stop for overlay event breakpoints.
12205 (delete_breakpoint): Don't delete overlay event breakpoints.
12206 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12207 (breakpoint_re_set): Re-create overlay event breakpoint.
12208
12209 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12210 (overlay_manual_command): Disable overlay breakpoints.
12211 (overlay_off_command): Disable overlay breakpoints.
12212
082fc60d
RE
122132002-02-06 Richard Earnshaw <rearnsha@arm.com>
12214
12215 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12216 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12217 to here from config/tm-arm.h.
12218 (coff_sym_is_thumb): Make static.
12219 (arm_elf_make_msymbol_special): New function.
12220 (arm_coff_make_msymbol_special): New function.
12221 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12222 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12223 (coff_sym_is_thumb): Delete declaration.
12224 (arm_elf_make_msymbol_special): Declare.
12225 (arm_coff_make_msymbol_special): Declare.
12226 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12227 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12228
039c5766
RE
122292002-02-06 Richard Earnshaw <rearnsha@arm.com>
12230
12231 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12232
122332002-02-06 Richard Earnshaw <rearnsha@arm.com>
12234
12235 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12236 * gdbarch.c gdbarch.h: Regenerate.
12237 * arch-utils.c (default_print_float_info): New function.
12238 * arch-utils.h (default_print_float_info): Prototype it.
12239 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12240 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12241 (PRINT_FLOAT_INFO): Document it.
12242
12243 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12244 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12245 (PRINT_FLOAT_INFO): Define.
12246
58fa08f0
PM
122472002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12248
aaa38bb5 12249 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12250 Add typecast to sprintf argument to suppress a warning.
12251
7393af7c
PM
122522002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12253
58fa08f0 12254 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12255 to allow easier handling of pass state.
12256 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12257 that gives exception name and address.
12258 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12259 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12260 exceptions added.
aaa38bb5
AJ
12261 (child_continue): Correctly report continue_status.
12262 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12263 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12264 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12265 the exception should be passed to debuggee or not.
12266
6af4589c
MS
122672002-02-05 Michael Snyder <msnyder@redhat.com>
12268
12269 * regcache.c (fetch_register): Call target_fetch_register
12270 only if we don't call FETCH_PSEUDO_REGISTER.
12271 (store_register): Call target_store_register only if we
12272 don't call STORE_PSEUDO_REGISTER.
12273
a2cf933a
EZ
122742002-02-05 Elena Zannoni <ezannoni@redhat.com>
12275
12276 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12277 ELF_MAKE_MSYMBOL_SPECIAL.
12278 * gdbarch.c, gdbarch.h: Regenerate.
12279 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12280 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12281 * elfread.c (elf_symtab_read): Compile use of
12282 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12283 multiarched.
12284 * coffread.c (coff_symtab_read): Ditto, for
12285 COFF_MAKE_MSYMBOL_SPECIAL.
12286
6bb7be43
JB
122872002-02-05 Jim Blandy <jimb@redhat.com>
12288
12289 * solib-svr4.c (svr4_truncate_ptr): New function.
12290 (svr4_relocate_section_addresses): Do the address arithmetic with
12291 the appropriate truncation for target addresses, even when
12292 CORE_ADDR is larger than a target address.
12293
e18651ec
DJ
122942002-02-05 Daniel Jacobowitz <drow@mvista.com>
12295
12296 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12297 to (int *).
12298
6b2725be
DJ
122992002-02-05 Daniel Jacobowitz <drow@mvista.com>
12300
12301 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12302 code.
12303
fca9e603
DJ
123042002-02-05 Daniel Jacobowitz <drow@mvista.com>
12305
12306 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12307
6c537a52
DJ
123082002-02-05 Daniel Jacobowitz <drow@mvista.com>
12309
12310 * gdbserver/linux-low.c: Remove unused include files.
12311
d844cde6
DJ
123122002-02-05 Daniel Jacobowitz <drow@mvista.com>
12313
12314 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12315 (read_inferior_memory): Use it.
12316 (write_inferior_memory): Likewise.
12317
d07c63e7
DJ
123182002-02-05 Daniel Jacobowitz <drow@mvista.com>
12319
12320 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12321 grubbing through sys_errlist.
12322
da6d8c04
DJ
123232002-02-05 Daniel Jacobowitz <drow@mvista.com>
12324
12325 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12326
5b421780
PM
123272002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12328 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12329
9f60d481
AC
123302002-02-04 Andrew Cagney <ac131313@redhat.com>
12331
12332 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12333 (do_sfunc, set_cmd_sfunc): New functions.
12334
12335 * command.h (struct cmd_list_element): Add field func.
12336 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12337 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12338 * cli/cli-decode.h: Ditto.
12339
12340 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12341 (help_all, help_cmd_list): Ditto.
12342 (find_cmd, complete_on_cmdlist): Ditto.
12343 * top.c (execute_command): Ditto.
12344
12345 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12346 function.sfunc.
12347
12348 * infcmd.c (notice_args_read): Fix function signature.
12349
12350 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12351 * cli/cli-decode.c (add_set_cmd): Ditto.
12352 * utils.c (initialize_utils): Ditto.
12353 * maint.c (_initialize_maint_cmds): Ditto.
12354 * infrun.c (_initialize_infrun): Ditto.
12355 * demangle.c (_initialize_demangler): Ditto.
12356 * remote.c (add_packet_config_cmd): Ditto.
12357 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12358 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12359 * proc-api.c (_initialize_proc_api): Ditto.
12360 * kod.c (_initialize_kod): Ditto.
12361 * valprint.c (_initialize_valprint): Ditto.
12362 * top.c (init_main): Ditto.
12363 * infcmd.c (_initialize_infcmd): Ditto.
12364 * corefile.c (_initialize_core): Ditto.
12365 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12366 * arch-utils.c (initialize_current_architecture): Ditto.
12367 (_initialize_gdbarch_utils): Ditto.
12368 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12369
12370 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12371 * wince.c (_initialize_inftarg): Ditto.
12372 * symfile.c (_initialize_symfile): Ditto.
12373 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12374 * language.c (_initialize_language): Ditto.
12375 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12376
f9ba0717
MS
123772002-02-04 Michael Snyder <msnyder@redhat.com>
12378
12379 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12380
0c74b2a7
DJ
123812002-02-04 Daniel Jacobowitz <drow@mvista.com>
12382
12383 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12384 Add rules for building the register data files.
12385
c638789f
DJ
123862002-02-04 Daniel Jacobowitz <drow@mvista.com>
12387
12388 * regformats/regdat.sh: Add braces to the definition of
12389 expedite_regs_${arch}.
12390
db253027
DJ
123912002-02-04 Daniel Jacobowitz <drow@mvista.com>
12392
12393 * regformats/regdef.h (struct reg): Add comment describing the
12394 requirements for offset and size fields.
12395
206be19c
AS
123962002-02-04 Andreas Schwab <schwab@suse.de>
12397
12398 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12399 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12400
181c1381
RE
124012002-02-04 Richard Earnshaw <rearnsha@arm.com>
12402
12403 * gdbarch.sh (copyright): Update years in generated header.
12404 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12405 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12406 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12407 * dbxread.c: Likewise.
12408 * dwarfread.c: Likewise.
12409 * elfread.c: Likewise.
12410 * somread.c: Likewise.
12411
12412 * arm-tdep.c (arm_smash_text_address): New function.
12413 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12414
fa4ba8da
PM
124152002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12416
12417 Add support for hardware watchpoints on win32 native.
aaa38bb5 12418 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12419 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12420 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12421 of debug registers.
12422 (debug_registers_changed): New variable. Reflects when debug registers
12423 are changed and need to be written to inferior.
aaa38bb5 12424 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12425 was set, used when new threads are created.
12426 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12427 i386-nat code.
12428 (thread_rec): Set dr array if id is the thread of current_event .
12429 (child_continue, child_resume): Change the debug registers for all
12430 threads if debug_registers_changed.
12431 (child_add_thread): Change the debug registers if debug_registers_used.
12432 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12433 Link nm.h to new nm-cygwin.h file.
12434 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12435 of hardware registers.
12436
a73c86fb
AC
124372002-02-03 Andrew Cagney <ac131313@redhat.com>
12438
12439 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12440 Restore behavour broken by 2002-01-20 Andrew Cagney
12441 <ac131313@redhat.com> IEEE_FLOAT removal.
12442
acf5ed49
DJ
124432002-02-03 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * c-valprint.c (c_val_print): Pass a proper valaddr to
12446 cp_print_class_method.
12447 * valops.c (search_struct_method): If there is only one method
12448 and args is NULL, return that method.
12449
493d28d5
DJ
124502002-02-03 Daniel Jacobowitz <drow@mvista.com>
12451
12452 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12453 accessing tag_name directly.
12454
7495dfdb
DJ
124552002-02-03 Daniel Jacobowitz <drow@mvista.com>
12456
12457 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12458 of accessing tag_name directly.
12459
dd6bda65
DJ
124602002-02-03 Daniel Jacobowitz <drow@mvista.com>
12461
12462 PR gdb/280
12463 * gdbtypes.c (replace_type): New function.
12464 * gdbtypes.h (replace_type): Add prototype.
12465 * stabsread.c (read_type): Use replace_type.
12466
88fe217c
RE
124672002-02-03 Richard Earnshaw <rearnsha@arm.com>
12468
12469 * Makefile.in (memattr.o): Add missing dependencies rule.
12470
e5d66720
PS
124712002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12472
12473 * breakpoint.c (break_at_finish_command): Really export.
12474 (break_at_finish_at_depth_command): Ditto.
12475 (tbreak_at_finish_command): Ditto.
12476 * hppa-tdep.c: Include completer.h.
12477 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12478 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12479
fffee0be
AC
124802002-02-01 Andrew Cagney <ac131313@redhat.com>
12481
12482 * utils.c (do_write): New function.
12483 (error_stream): Rewrite combining the code from error_begin and
12484 verror.
12485 (verror): Rewrite using error_stream.
12486 (error_begin): Delete function.
12487
255e7dbf
AC
124882002-02-01 Andrew Cagney <ac131313@redhat.com>
12489
12490 * utils.c (error_begin): Make static.
12491 * defs.h (error_begin): Delete declaration.
12492
12493 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12494 (decode_line_1): Use cplusplus_error instead of error_begin,
12495 cplusplus_hint and return_to_top_level.
12496 * coffread.c (coff_symfile_read): Use error instead of error_begin
12497 and return_to_top_level.
12498 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12499
ddfe3c15
AC
125002002-02-01 Andrew Cagney <ac131313@redhat.com>
12501
12502 * language.h (type_error, range_error): Make string parameter
12503 constant.
12504 * language.c (warning_pre_print): Delete extern declaration.
12505 * dwarfread.c (warning_pre_print): Ditto.
12506 * language.c (type_error, range_error): Rewrite to use verror and
12507 vwarning instead of warning_begin.
12508
03ac34d5
MS
125092002-02-01 Michael Snyder <msnyder@redhat.com>
12510
261c4ca2
MS
12511 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12512 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12513
e00d1dc8
AC
125142002-02-01 Andrew Cagney <ac131313@redhat.com>
12515
12516 * command.h (NO_FUNCTION): Delete macro.
12517 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12518 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12519 * tracepoint.c (_initialize_tracepoint): Ditto.
12520 * cli/cli-decode.c (add_set_cmd): Ditto.
12521 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12522
76b79d6e
DJ
125232002-02-01 Daniel Jacobowitz <drow@mvista.com>
12524
12525 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12526 Update ``this'' pointer when calling virtual functions.
12527
799f9e91
MS
125282002-02-01 Michael Snyder <msnyder@redhat.com>
12529
c7bd442c 12530 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12531 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12532
3cf384d4
DJ
125332002-02-01 Daniel Jacobowitz <drow@mvista.com>
12534
12535 * regformats/reg-arm.dat: New file.
12536 * regformats/reg-i386.dat: New file.
12537 * regformats/reg-ia64.dat: New file.
12538 * regformats/reg-m68k.dat: New file.
12539 * regformats/reg-mips.dat: New file.
12540 * regformats/reg-ppc.dat: New file.
12541 * regformats/reg-sh.dat: New file.
12542 * regformats/regdef.h: New file.
12543 * regformats/regdat.sh: New file.
12544
0defa245
RE
125452002-02-01 Richard Earnshaw <reanrsha@arm.com>
12546
12547 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12548 (arm_frame_args_address, arm_frame_locals_address): New functions.
12549 (arm_frame_num_args): New function.
12550 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12551 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12552 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12553
405f26e6
MS
125542002-01-31 Michael Snyder <msnyder@redhat.com>
12555
502fd408
MS
12556 * breakpoint.c (break_at_finish_command): Export.
12557 (break_at_finish_at_depth_command): Export.
12558 (tbreak_at_finish_command): Export.
d6020d45 12559 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12560 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12561 "txbreak" commands, which are HPPA specific.
502fd408 12562
7d35e135
MS
12563 * printcmd.c (disassemble_command): Remove an ancient
12564 artifact of an old merge.
12565
aaa38bb5 12566 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12567 Define enum constant values for overlay mode.
12568 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12569 (overlay_is_mapped, overlay_auto_command,
12570 overlay_manual_command): Ditto.
d874f1e2 12571
aaa38bb5
AJ
12572 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12573 breakpoint_here_p, breakpoint_inserted_here_p,
12574 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12575 describe_other_breakpoints, check_duplicates, clear_command):
12576 Coding standard fixes.
12577
8add0441 12578 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12579 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12580 code: check bfd SEC_READONLY flag for section.
12581
e351066e
AC
125822002-01-31 Andrew Cagney <ac131313@redhat.com>
12583
7d35e135 12584 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12585
8a48e967
DJ
125862002-01-30 Daniel Jacobowitz <drow@mvista.com>
12587
12588 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12589 data symbols, since we search based on textlow and texthigh.
12590 (find_pc_sect_symtab): Likewise.
12591
f5a96129
AC
125922002-01-30 Andrew Cagney <ac131313@redhat.com>
12593
12594 * defs.h (vwarning): Declare.
f5a96129
AC
12595 * utils.c (vwarning): New function.
12596 (warning): Call vwarning.
12597 (warning_begin): Delete function.
12598
12599 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12600 the warning message.
12601 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12602 warning_begin.
12603
cefd4ef5
MS
126042002-01-30 Michael Snyder <msnyder@redhat.com>
12605
1a703748
MS
12606 * NEWS: Mention "set trust-readonly-sections" command.
12607 Mention generate-core-file command.
cefd4ef5 12608
3a11626d
MS
126092002-01-15 Michael Snyder <msnyder@redhat.com>
12610
12611 * target.c: New command, "set trust-readonly-sections on".
12612 (do_xfer_memory): Honor the suggestion to trust readonly sections
12613 by reading them from the object file instead of from the target.
12614 (initialize_targets): Register command "set trust-readonly-sections".
12615
d1c7e53b
AC
126162002-01-29 Andrew Cagney <ac131313@redhat.com>
12617
12618 * parse.c (target_map_name_to_register): Simplify, search regs and
12619 pseudo-regs using a single loop.
12620
e2c9a72c
AC
126212002-01-30 Andrew Cagney <ac131313@redhat.com>
12622
12623 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12624
69824b4e
MK
126252002-01-15 Rodney Brown <rbrown64@csc.com.au>
12626
12627 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12628 * config/i386/i386v42mp.mh: Add i387-nat.o .
12629 * i386v4-nat.c: Include i387-nat.h.
12630 (supply_fpregset): Use i387_supply_fsave.
12631 (fill_fpregset): Use i387_fill_fsave.
12632
6eb69eab
RE
126332002-01-30 Richard Earnshaw <rearnsha@arm.com>
12634
12635 * arm-tdep.c (arm_call_dummy_words): Define.
12636 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12637 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12638 (CALL_DUMMY_WORDS): Define.
12639 (arm_call_dummy_words): Declare.
12640 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12641 (arm_linux_call_dummy_words): Declare.
12642
9852326a
AS
126432002-01-30 Andreas Schwab <schwab@suse.de>
12644
12645 * m68klinux-nat.c: Fix last change to use regcache_collect
12646 instead of referencing registers[] directly.
12647
977a3030
AC
126482002-01-29 Andrew Cagney <ac131313@redhat.com>
12649
12650 * parse.c (target_map_name_to_register): Delete code wrapped in
12651 #ifdef REGISTER_NAME_ALIAS_HOOK.
12652
2076c72b
MS
126532002-01-28 Michael Snyder <msnyder@redhat.com>
12654
12655 * regcache.c (legacy_read_register_gen): Need to be able to
12656 read pseudo-register as well as real register.
12657 (legacy_write_register_gen): Ditto.
12658
8fcc723b
AC
126592002-01-28 Andrew Cagney <ac131313@redhat.com>
12660
12661 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12662 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12663 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12664 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12665 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12666 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12667 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12668 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12669 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12670 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12671 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12672 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12673 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12674 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12675 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12676 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12677 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12678 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12679 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12680 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12681
afe64c1a
AC
126822002-01-28 Andrew Cagney <ac131313@redhat.com>
12683
12684 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12685 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12686 (initialize_current_architecture): Update target_byte_order using
12687 information from BFD.
aaa38bb5 12688 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12689 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12690
75bc7ddf
AC
126912002-01-28 Andrew Cagney <ac131313@redhat.com>
12692
12693 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12694 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12695
12696 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12697 #ifdef INVALID_FLOAT.
12698 * infcmd.c (do_registers_info): Ditto.
12699 * values.c (unpack_double): Ditto. Add comment.
12700
12701 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12702 already commented out.
12703
0280a90a
AS
127042002-01-26 Andreas Schwab <schwab@suse.de>
12705
12706 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12707 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12708 registers and add support for PTRACE_GETREGS.
12709
7072a954
AC
127102002-01-24 Andrew Cagney <ac131313@redhat.com>
12711
12712 GDB 5.1.1 released from 5.1 branch.
12713 * NEWS: Add 5.1.1 news.
12714 * README: Sync with 5.1 branch.
12715
86f902e0
FF
127162002-01-23 Fred Fish <fnf@redhat.com>
12717
12718 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12719 stabstring on initial malloc. Reallocing will copy it for us,
12720 if necessary.
12721
8af51c36
EZ
127222002-01-23 Elena Zannoni <ezannoni@redhat.com>
12723
aaa38bb5 12724 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12725 (HFILES_NO_SRCDIR): Remove hpread.h.
12726 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12727 (hpread.o): Update dependencies.
12728 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12729
12730 * hp-psymtab-read.c: Remove file.
12731 * hp-symtab-read.c: Remove file.
12732 * hpread.h: Remove file.
12733
12734 * hpread.c: Merge all contents of hp-psymtab-read.c,
12735 hp-symtab-read.c and hpread.h into this file, as it was prior to
12736 January 1999.
12737
12738 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12739 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12740 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12741 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12742
dc5cfeb6
EZ
127432002-01-23 Elena Zannoni <ezannoni@redhat.com>
12744
12745 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12746 fill_gregset): Call gdbarch_tdep() just once, assign result to
12747 variable and use that, instead of calling the function several
12748 times.
12749
ea87b71b
AO
127502002-01-24 Alexandre Oliva <aoliva@redhat.com>
12751
12752 * configure.host: Accept sparcv9 as alias for sparc64.
12753 * configure.tgt: Likewise.
12754
13fc0c2f
KB
127552002-01-22 Kevin Buettner <kevinb@redhat.com>
12756
12757 * solib-aix5.c (build_so_list_from_mapfile)
12758 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12759 arguments is not reversed.
12760 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12761 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12762
7bd872fe
EZ
127632002-01-22 Elena Zannoni <ezannoni@redhat.com>
12764
12765 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12766 modified version of obsolete sh_fetch_pseudo_register.
12767 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12768 (sh4_register_read): New function.
12769 (sh_pseudo_register_write): New function. Renamed and modified
12770 version of obsolete sh_store_pseudo_register.
12771 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12772 (sh4_register_write): New function.
12773 (sh_gdbarch_init): Remove setting of gdbarch function
12774 fetch_pseudo_register and store_pseudo_register. Remove setting of
12775 register_convert_to_raw, register_convert_to_virtual,
12776 register_convertible.
12777 (sh_sh4_register_convertible): Delete. No longer needed. All is
12778 taken care by architecture specific functions
12779 register_read/register_write.
12780 (sh_sh4_register_convert_to_virtual): Make static.
12781 (sh_sh4_register_convert_to_raw): Ditto.
12782
069e84fd
AC
127832002-01-22 Andrew Cagney <ac131313@redhat.com>
12784
12785 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12786 (floatformat_is_nan, floatformat_mantissa): Ditto.
12787
12788 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12789 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12790 builtin_type_ieee_double_little,
12791 builtin_type_ieee_double_littlebyte_bigword,
12792 builtin_type_m68881_ext, builtin_type_i960_ext,
12793 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12794 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12795 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12796 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12797
211a4f69
CV
127982002-01-22 Corinna Vinschen <vinschen@redhat.com>
12799
12800 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12801 parameter. Set frameless flag if it exists and depended of
12802 whether the scanned function is frameless or not.
12803 (xstormy16_skip_prologue): If function is frameless, return
12804 result of xstormy16_scan_prologue().
12805 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12806 call.
12807
f81353e4
EZ
128082002-01-21 Elena Zannoni <ezannoni@redhat.com>
12809
12810 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12811 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12812 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12813 sh_sh4_register_byte, sh_sh4_register_raw_size,
12814 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12815 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12816 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12817 sh_store_pseudo_register, sh_do_pseudo_register): Call
12818 gdbarch_tdep() just once, assign result to variable and use that,
12819 instead of calling the function several times.
12820
63c73a17
MK
128212002-01-20 Mark Kettenis <kettenis@gnu.org>
12822
12823 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12824 macros instead of LAST_FPU_CTRL_REGNUM.
12825 (store_register): Likewise.
12826
39ad761d
JB
128272002-01-21 Jim Blandy <jimb@redhat.com>
12828
12829 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12830 is up-to-date before running the program, not just when a program
12831 exits.
12832
3d74b771
FF
128332002-01-21 Fred Fish <fnf@redhat.com>
12834
12835 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12836 when we have found all instructions we are looking for.
12837
966fbf70
RE
128382002-01-21 Richard Earnshaw <rearnsha@arm.com>
12839
12840 * arm-tdep.c (arm_register_name): New function.
12841 (arm_registers_names): Make static.
12842 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12843 (arm_register_name): Declare.
12844 (REGISTER_NAME): Use it.
12845
c3b4394c
RE
128462002-01-21 Richard Earnshaw <rearnsha@arm.com>
12847 Kevin Buettner <kevinb@redhat.com>
12848
12849 Convert arm targets to new FRAME interface.
12850 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12851 (arm_frame_find_save_regs): Delete.
12852 (arm_frame_init_saved_regs): New.
12853 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12854 Allocate extra_info as required. Convert all uses of fsr.regs
12855 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12856 to use extra_info.
12857 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12858 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12859 (check_prologue_cache, save_prologue_cache): Likewise.
12860 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12861 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12862 (FRAME_FIND_SAVED_REGS): Delete.
12863 (arm_frame_find_saved_regs): Delete prototype.
12864 (arm_frame_init_saved_regs): New prototype.
12865 (FRAME_INIT_SAVED_REGS): Define.
12866
61d99182
AC
128672002-01-20 Andrew Cagney <ac131313@redhat.com>
12868
12869 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12870
6aaea291
AC
128712002-01-20 Andrew Cagney <ac131313@redhat.com>
12872
12873 From Jeff Law <law@redhat.com>:
12874 * infttrace.c: Include <sys/pstat.h>.
12875 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12876 exec file if the ttrace equivalent fails.
12877
15f698d2
AC
128782002-01-20 Andrew Cagney <ac131313@redhat.com>
12879
12880 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12881 (closeLogFile): Ditto.
12882
f86ddd7c
MC
128832002-01-20 Michael Chastain <mec@shout.net>
12884
12885 * top.c (print_gdb_version): Bump copyright year to 2002.
12886
904507ce
AC
128872002-01-20 Andrew Cagney <ac131313@redhat.com>
12888
12889 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12890 Zannoni and Eli Zaretskii.
12891
d7f0b9ce
DJ
128922002-01-20 Daniel Jacobowitz <drow@mvista.com>
12893
12894 * buildsym.c: Update copyright years.
12895 * c-typeprint.c: Likewise.
12896 * dwarf2read.c: Likewise.
12897 * f-typeprint.c: Likewise.
12898 * gdbtypes.c: Likewise.
12899 * gdbtypes.h: Likewise.
12900 * hp-symtab-read.c: Likewise.
12901 * hpread.c: Likewise.
12902 * mdebugread.c: Likewise.
12903 * p-typeprint.c: Likewise.
12904
3fd3d7d2
AC
129052002-01-20 Andrew Cagney <ac131313@redhat.com>
12906
12907 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12908 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12909 byte-order selectable.
12910 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12911 * arch-utils.c: Ditto.
12912 (set_endian): Ditto.
12913 (set_endian_from_file): Ditto.
12914 * gdbserver/low-sim.c (create_inferior): Ditto.
12915 * gdbarch.sh: Ditto.
12916 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12917 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12918 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12919 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12920 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12921 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12922 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12923 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12924 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12925 macro definition.
12926 * config/mips/tm-wince.h: Remove #undef of macro
12927 TARGET_BYTE_ORDER_SELECTABLE.
12928 * config/sh/tm-wince.h: Ditto.
12929
b02dede2
DJ
129302002-01-20 Daniel Jacobowitz <drow@mvista.com>
12931
12932 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12933 member function fields. Add accessor macro
12934 TYPE_FN_FIELD_ARTIFICIAL.
12935 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12936 * c-typeprint.c (c_type_print_base): Skip artificial member
12937 functions.
12938
c3643761
DJ
129392002-01-20 Daniel Jacobowitz <drow@mvista.com>
12940
12941 * f-typeprint.c: Delete unused function f_type_print_args.
12942 * p-typeprint.c: Delete unused function pascal_type_print_args.
12943
8176bb6d
DJ
129442002-01-20 Daniel Jacobowitz <drow@mvista.com>
12945
12946 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12947 comment. Add ``artificial'' to ``union field_location''.
12948
12949 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12950
12951 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12952 * mdebugread.c (parse_symbol): Likewise.
12953 * stabsread.c (define_symbol): Likewise.
12954 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12955 initializing TYPE_FIELD_BITPOS to n (obsolete).
12956 (hpread_doc_function_type): Likewise.
12957 * hpread.c (hpread_function_type): Likewise.
12958
7fd60527
AC
129592002-01-20 Andrew Cagney <ac131313@redhat.com>
12960
12961 * configure.in (host_makefile_frag): Only require a host makefile
12962 fragment when a native build.
12963 * configure: Re-generate.
12964
c2f05ac9
AC
129652002-01-20 Andrew Cagney <ac131313@redhat.com>
12966
12967 * doublest.h (floatformat_from_type): Declare.
12968 * doublest.c (floatformat_from_type): New function.
12969 (convert_typed_floating): Use.
12970
12971 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12972 call to function floatformat_from_type.
12973
12974 * gdbarch.sh (IEEE_FLOAT): Delete.
12975 * gdbarch.h, gdbarch.c: Re-generate.
12976 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12977 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12978 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12979 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12980 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12981 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12982 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12983 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12984 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12985 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12986 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12987 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12988
12989 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12990 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12991 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12992 * sh-tdep.c (sh_gdbarch_init): Ditto.
12993 * mips-tdep.c (mips_gdbarch_init): Ditto.
12994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12995 * cris-tdep.c (cris_gdbarch_init): Ditto.
12996
abf22e64
AJ
129972002-01-20 Jiri Smid <smid@suse.cz>
12998
12999 * configure.host, configure.tgt: Support x86-64.
13000 * NEWS: Note new target x86-64.
13001
b7c4cbf8
AJ
13002 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13003 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13004 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13005 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13006 x86-64-linux-nat.o): Fix dependencies.
13007
82600034
AC
130082002-01-19 Andrew Cagney <ac131313@redhat.com>
13009
13010 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13011 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13012 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13013 * config/sparc/xm-sun4os4.h: Delete file.
13014 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13015
bbe5c628
AC
130162002-01-19 Andrew Cagney <ac131313@redhat.com>
13017
13018 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13019 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13020 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13021 * config/i386/i386lynx.mh (XM_FILE): Delete.
13022 * config/rs6000/xm-rs6000ly.h: Delete file.
13023 * config/sparc/xm-sparclynx.h: Delete file.
13024 * config/m68k/xm-m68klynx.h: Delete file.
13025 * config/i386/xm-i386lynx.h: Delete file.
13026 * config/xm-lynx.h: Delete file.
13027 * config/djgpp/fnchange.lst: Update.
13028
f8453e34
JT
130292002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13030
13031 * alpha-tdep.c (alpha_register_byte): New function.
13032 (alpha_register_raw_size): Ditto.
13033 (alpha_register_virtual_size): Ditto.
13034 (alpha_skip_prologue_internal): Renamed from
13035 alpha_skip_prologue.
13036 (alpha_skip_prologue): New version that calls
13037 alpha_skip_prologue_internal.
13038 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13039 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13040 second argument from alpha_skip_prologue.
13041 (REGISTER_BYTE): Use alpha_register_byte.
13042 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13043 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13044 (FRAMELESS_FUNCTION_INVOCATION): Use
13045 generic_frameless_function_invocation_not.
13046 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13047 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13048
52d9e613
AC
130492002-01-19 Andrew Cagney <ac131313@redhat.com>
13050
13051 * config/mips/xm-news-mips.h: Delete file.
13052 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13053
13054 * config/m88k/xm-m88k.h: Delete file.
13055 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13056 * config/m88k/xm-delta88v4.h: Ditto.
13057 * config/m88k/xm-delta88.h: Ditto.
13058
13059 * config/alpha/xm-fbsd.h: Delete file.
13060 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13061
13062 * config/sparc/xm-sparc.h: Delete file.
13063 * Makefile.in (xm-sun4os4.h): Delete dependency.
13064 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13065 * config/sparc/xm-sun4os4.h: Ditto.
13066 * config/sparc/xm-linux.h: Ditto.
13067
13068 * config/i386/xm-windows.h: Delete file.
13069
2d1b2124
AC
130702002-01-19 Andrew Cagney <ac131313@redhat.com>
13071
13072 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13073 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13074
ee1f65f0
JT
130752002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13076
13077 * alpha-tdep.c (alpha_call_dummy_words): New.
13078 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13079 (CALL_DUMMY_P): Define.
13080 (CALL_DUMMY_WORDS): Define.
13081 (SIZEOF_CALL_DUMMY_WORDS): Define.
13082
98081e55
PB
130832002-01-19 Per Bothner <per@bothner.com>
13084
13085 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13086 isn't NULL, which can happen with some gcj-3.x-produced code.
13087
0d056799
JT
130882002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13089
13090 * alpha-tdep.c (alpha_register_virtual_type): New function.
13091 (alpha_init_frame_pc_first): Ditto.
13092 (alpha_fix_call_dummy): Ditto.
13093 (alpha_store_struct_return): Ditto.
13094 (alpha_extract_struct_value_address): Ditto.
13095 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13096 alpha_register_virtual_type.
13097 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13098 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13099 alpha_extract_struct_value_address.
13100 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13101 (INIT_FRAME_PC): Use init_frame_pc_noop.
13102 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13103
4604bcad
MK
131042002-01-19 Mark Kettenis <kettenis@gnu.org>
13105
13106 * i386gnu-nat.c: Include "i386-tdep.h".
13107 (fetch_fpregs): Simplify code dealing with uninitialized floating
13108 point states such that it doesn't require FP7_REGNUM.
13109
140f9984
JT
131102002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13111
abf22e64
AJ
13112 * alpha-tdep.c (frame_extra_info): New.
13113 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13114 frame->extra_info.
13115 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13116 (alpha_frame_saved_pc): Use frame->extra_info.
13117 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13118 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13119 (init_extra_frame_info): Rename to...
13120 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13121 (alpha_print_extra_frame_info): New function.
140f9984
JT
13122 (alpha_frame_locals_address): Ditto.
13123 (alpha_frame_args_address): Ditto.
abf22e64 13124 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13125 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13126 alpha_frame_args_address.
abf22e64 13127 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13128 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13129 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13130 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13131 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13132 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13133
d734c450
JT
131342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13135
13136 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13137 (alpha_cannot_fetch_register): Ditto.
13138 (alpha_cannot_store_register): Ditto.
13139 (alpha_register_convertible): Ditto.
13140 (alpha_use_struct_convention): Ditto.
13141 * config/alpha/tm-alpha.h: Update copyright years.
13142 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13143 (INNER_THAN): Use core_addr_lessthan.
13144 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13145 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13146 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13147 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13148 (FRAME_CHAIN): Remove unnecessary cast.
13149
b4ceaee6
AC
131502002-01-18 Andrew Cagney <ac131313@redhat.com>
13151
13152 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13153 obsolete.
13154
0a65a603
AC
131552002-01-18 Andrew Cagney <ac131313@redhat.com>
13156
13157 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13158 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13159 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13160 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13161 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13162 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13163 * x86-64-linux-nat.c: Ditto.
13164
636a6dfc
JT
131652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13166
abf22e64 13167 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13168 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13169 (REGISTER_NAME): Define.
13170
acceddb6
JT
131712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13172
13173 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13174
ec32e4be
JT
131752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13176
13177 * alpha-tdep.c: Update copyright years.
13178 (alpha_next_pc): New function.
13179 (alpha_software_single_step): Ditto.
13180 * config/alpha/tm-alpha.h: Add prototype for
13181 alpha_software_single_step.
13182
e771a871
JT
131832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13184
13185 * alphabsd-nat.c: Update copyright years.
13186 (fill_gregset): Use regcache_collect.
13187 (fill_fpregset): Likewise.
13188 (fetch_inferior_registers): Only fetch integer registers
13189 if requested to do so.
13190 (store_inferior_registers): Only store integer registers
13191 if requested to do so.
13192
7708fa01
AC
131932002-01-17 Andrew Cagney <ac131313@redhat.com>
13194
13195 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13196 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13197 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13198 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13199 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13200 * config/arm/linux.mh (XDEPFILES): Delete.
13201 * config/arm/nbsd.mh (XDEPFILES): Delete.
13202 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13203 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13204 * config/i386/i386m3.mh (XDEPFILES): Delete.
13205 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13206 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13207 * config/i386/fbsd.mh (XDEPFILES): Delete.
13208 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13209 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13210 * config/i386/i386v4.mh (XDEPFILES): Delete.
13211 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13212 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13213 * config/i386/i386aix.mh (XDEPFILES): Delete.
13214 * config/i386/go32.mh (XDEPFILES): Delete.
13215 * config/i386/cygwin.mh (XDEPFILES): Delete.
13216 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13217 * config/i386/i386mach.mh (XDEPFILES): Delete.
13218 * config/i386/i386v32.mh (XDEPFILES): Delete.
13219 * config/i386/linux.mh (XDEPFILES): Delete.
13220 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13221 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13222 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13223 * config/i386/i386sco.mh (XDEPFILES): Delete.
13224 * config/i386/i386v.mh (XDEPFILES): Delete.
13225 * config/i386/nbsd.mh (XDEPFILES): Delete.
13226 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13227 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13228 * config/i386/symmetry.mh (XDEPFILES): Delete.
13229 * config/i386/obsd.mh (XDEPFILES): Delete.
13230 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13231 * config/ia64/linux.mh (XDEPFILES): Delete.
13232 * config/ia64/aix.mh (XDEPFILES): Delete.
13233 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13234 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13235 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13236 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13237 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13238 * config/m68k/linux.mh (XDEPFILES): Delete.
13239 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13240 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13241 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13242 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13243 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13244 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13245 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13246 * config/m88k/delta88.mh (XDEPFILES): Delete.
13247 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13248 * config/m88k/m88k.mh (XDEPFILES): Delete.
13249 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13250 * config/mips/linux.mh (XDEPFILES): Delete.
13251 * config/mips/irix6.mh (XDEPFILES): Delete.
13252 * config/mips/irix5.mh (XDEPFILES): Delete.
13253 * config/mips/irix4.mh (XDEPFILES): Delete.
13254 * config/mips/irix3.mh (XDEPFILES): Delete.
13255 * config/mips/decstation.mh (XDEPFILES): Delete.
13256 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13257 (NATDEPFILES): Move core-aout.o to here.
13258 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13259 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13260 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13261 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13262 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13263 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13264 * config/pa/hpux11.mh (XDEPFILES): Delete.
13265 * config/powerpc/aix.mh (XDEPFILES): Delete.
13266 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13267 * config/powerpc/linux.mh (XDEPFILES): Delete.
13268 * config/romp/rtbsd.mh: Rename XDEPFILES.
13269 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13270 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13271 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13272 * config/s390/s390.mh (XDEPFILES): Delete.
13273 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13274 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13275 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13276 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13277 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13278 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13279 * config/sparc/linux.mh (XDEPFILES): Delete.
13280 * config/vax/vaxult.mh (XDEPFILES): Delete.
13281 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13282 * Makefile.in (DEPFILES): Remove XDEPFILES.
13283
375fc983
AC
132842002-01-17 Andrew Cagney <ac131313@redhat.com>
13285
13286 * utils.c (internal_verror): Fix comments, default is yes not no.
13287 Update queries to match. Default to quit and dump core.
13288
8926118c
AC
132892002-01-17 Andrew Cagney <ac131313@redhat.com>
13290
13291 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13292 copyright.
13293 * defs.h, event-top.c, gdbcmd.h: Ditto.
13294 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13295 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13296 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13297 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13298 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13299 * mi/mi-main.c:Ditto.
13300
13301 * stack.c, symfile.c: Update copyright.
13302
45b7b345
DJ
133032002-01-17 Daniel Jacobowitz <drow@mvista.com>
13304
db728ff7
DJ
13305 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13306 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13307 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13308 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13309
db728ff7
DJ
133102002-01-17 Daniel Jacobowitz <drow@mvista.com>
13311
13312 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13313 * gdbserver/low-lynx.c (myattach): Likewise.
13314 * gdbserver/low-nbsd.c (myattach): Likewise.
13315 * gdbserver/low-sim.c (myattach): Likewise.
13316 * gdbserver/low-sparc.c (myattach): Likewise.
13317 * gdbserver/low-sun3.c (myattach): Likewise.
13318
13319 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13320
db728ff7 13321 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13322 (main): Handle "--attach".
13323
8de3c354
AC
133242002-01-16 Andrew Cagney <ac131313@redhat.com>
13325
13326 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13327 maintainer.
13328
b0129042
DJ
133292002-01-15 Daniel Jacobowitz <drow@mvista.com>
13330
13331 * c-typeprint.c (is_type_conversion_operator): Add additional
13332 check for non-conversion operators.
13333
ba8679fb 133342002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13335
13336 * linux-proc.c: Add "info proc" command, a la procfs.c.
13337 (read_mapping): New function, abstract and re-use code.
13338 (linux_find_memory_regions): Use new func read_mapping.
13339 (linux_info_proc_cmd): New function, implement "info proc".
13340 (_initialize_linux_proc): Add new command "info proc".
13341
e4f9b4d5
MS
133422002-01-15 Michael Snyder <msnyder@redhat.com>
13343
13344 * symfile.c (generic_load): Use bfd_map_over_sections method
13345 instead of manipulating bfd structure members directly.
13346 (add_section_size_callback): New function, bfd sections callback
13347 used by generic_load.
13348 (load_sections_callback): New function, bfd sections callback
13349 used by generic_load.
13350
08cf96df
EZ
133512002-01-15 Elena Zannoni <ezannoni@redhat.com>
13352
abf22e64 13353 [Based on work by Jim Blandy]
08cf96df
EZ
13354 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13355 (builtin_type_vec128): Export.
13356 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13357 types.
13358 (builtin_type_vec128): New builtin type for 128 bit vector
13359 registers.
13360 (build_gdbtypes): Initialize builtin_type_v16qi and
13361 builtin_type_v8hi. Create the vec128 register builtin type
13362 structure.
13363 (build_builtin_type_vec128): New function.
abf22e64 13364 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13365 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13366 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13367 AltiVec register to new builtin type.
13368
d7242108
DJ
133692001-01-15 Daniel Jacobowitz <drow@mvista.com>
13370
13371 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13372 to make_cv_type.
13373
4ee3352d
AC
133742002-01-14 Andrew Cagney <ac131313@redhat.com>
13375
13376 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13377 CLEAN_UP_REGISTER_VALUE.
13378 * regcache.c (supply_register): Update only call.
13379
f015b2e7
AC
133802002-01-14 Andrew Cagney <ac131313@redhat.com>
13381
13382 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13383 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13384 a29k-*-vxworks* targets as obsolete.
13385
356ae49d
MS
133862002-01-14 Michael Snyder <msnyder@redhat.com>
13387
13388 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13389 until we can resolve portability issues.
13390 * gregset.h: Remove references to fpxregs.
13391 * gcore.c (gcore_command): Initialize note_sec to NULL.
13392
ade8f45e
AC
133932002-01-13 Andrew Cagney <ac131313@redhat.com>
13394
13395 * signals.c (target_signal_to_name): Rewrite. Only use
13396 signals[].name when in bounds and non-NULL.
abf22e64 13397
89c49e7a
AC
133982002-01-13 Andrew Cagney <ac131313@redhat.com>
13399
13400 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13401 * signals.c (target_signal_to_name): Verify that SIG is within the
13402 bounds of the signals array.
13403
4daa9f9f
AC
134042002-01-13 Andrew Cagney <ac131313@redhat.com>
13405
13406 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13407
ba4bbdcb
KS
134082002-01-13 Keith Seitz <keiths@redhat.com>
13409
13410 * stack.c (print_frame_info_base): Print the frame's pc
13411 only if when print_frame_info_listing_hook is not defined.
13412
575bbeb6
KS
134132002-01-13 Keith Seitz <keiths@redhat.com>
13414
13415 * varobj.c (varobj_set_value): Make sure that there were no
13416 errors evaluating the object before attempting to set its
13417 value.
13418 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13419 so this offset adjustment is no longer necessary.
13420 (create_child): Don't set the error flag if the child is
13421 a CPLUS_FAKE_CHILD.
13422 (value_of_child): If value_fetch_lazy fails, return NULL
13423 so that callers will be notified that an error occurred.
13424 (c_value_of_variable): Delay check of variable's validity
13425 until later. We actually want all structs and unions to have
13426 the value "{...}".
13427 Do not return "???" for variables which could not be evaluated.
13428 This error condition must be returned to the caller so that it
13429 can get the error condition from gdb.
13430 (cplus_name_of_child): Adjust index for vptr before figuring
13431 out the name of the child.
13432 (cplus_value_of_child): If a child's (real) parent is not valid,
13433 don't even bother trying to give a value for it. Just return
13434 an error. Change all instances in this function.
13435 (cplus_type_of_child): If our parent is one of the "fake"
13436 parents, we need to get at the type of the real parent, and
13437 derive the child's true type using this information.
13438
b76898ab
AC
134392002-01-13 Andrew Cagney <ac131313@redhat.com>
13440
13441 From 2002-01-09 John Marshall <johnm@falch.net>:
13442 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13443 sources.redhat.com, and tweak some related URLs which had
13444 suffered from linkrot.
13445
b6649e88
AC
134462002-01-13 Andrew Cagney <ac131313@redhat.com>
13447
13448 From Jeff law:
13449 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13450 structures passed in registers.
13451
82cc5033
EZ
134522002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13453
13454 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13455 white space which prevented compilation. Reported by DSK
13456 <dsk@student.unsw.edu.au>.
13457
ba5f2f8a
MS
134582002-01-11 Michael Snyder <msnyder@redhat.com>
13459
fbd35540
MS
13460 * symfile.c (build_section_addr_info_from_section_tab):
13461 Use bfd access method instead of manipulating bfd directly.
13462 (syms_from_objfile): Ditto.
13463 (simple_overlay_update_1): Ditto.
13464 (simple_overlay_update): Ditto.
13465 (generic_load): Ditto.
13466 (overlay_unmapped_address): FIXME comment, bfd access methods.
13467 (sections_overlap): FIXME comment, bfd access methods.
13468 (pc_in_mapped_range): FIXME comment, bfd access methods.
13469 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13470 (section_is_mapped): FIXME comment, bfd access methods.
13471 (section_is_overlay): FIXME comment, bfd access methods.
13472
ba5f2f8a
MS
13473 * symfile.c (generic_load): Whitespace and long line cleanups.
13474 Remove duplicate variable, change several local variables to
13475 more appropriate data types.
13476 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13477
17df2af6
AC
134782002-01-12 Andrew Cagney <ac131313@redhat.com>
13479
13480 From Peter Schauer:
13481 * language.c (longest_local_hex_string_custom): Use phex_nz to
13482 convert NUM to a hex string.
13483
ec920329
EZ
134842002-01-12 Elena Zannoni <ezannoni@redhat.com>
13485
13486 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13487 the function.
538a76d6 13488 Update Copyright year.
ec920329 13489
3abd2e01
AC
134902002-01-12 Andrew Cagney <ac131313@redhat.com>
13491
13492 * language.c (longest_raw_hex_string): Delete unused function.
13493
b21b22e0
PS
134942002-01-11 Petr Sorfa <petrs@caldera.com>
13495
13496 * MAINTAINERS (write-after-approval): Add myself.
13497 * dwarf2read.c (read_tag_string_type): Handling of
13498 DW_AT_byte_size.
13499 (read_tag_string_type): FORTRAN fix to prevent propagation of
13500 first string size.
13501 (set_cu_language): Handling of DW_LANG_Fortran95
13502
747fe712
RE
135032002-01-11 Richard Earnshaw <rearnsha@arm.com>
13504
13505 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13506 GETPID(inferior_ptid).
13507 (store_inferior_registers): Likewise.
13508
f1bea926
JM
135092002-01-10 Jason Merrill <jason@redhat.com>
13510
13511 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13512 Fix DW_OP_minus.
13513
ae940673
AC
135142002-01-10 Andrew Cagney <ac131313@redhat.com>
13515
13516 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13517 and bfd/elf32-sh-nbsd.c.
13518
00546b04
MS
135192002-01-10 Michael Snyder <msnyder@redhat.com>
13520
352ed7b4
MS
13521 * NEWS: Mention --pid and corefile/proc-id behavior change.
13522
c18be923
MS
13523 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13524 * gcore.c: Include cli/cli-decode.h instead of command.h.
13525
00546b04
MS
13526 * main.c (captured_main): Add new command line option "--pid".
13527 If the second command line argument (following the symbol-file)
13528 begins with a digit, try to attach to it before trying to open
13529 it as a corefile.
13530 (print_gdb_help): Document the "--pid" argument.
13531
db60ec62
EZ
135322002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13533
13534 * completer.c (command_completer): New function.
13535
13536 * completer.h <command_completer>: Add prototype.
13537
13538 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13539 completer for the "help" command.
13540
39c22d1a
JM
135412002-01-09 Jason Merrill <jason@redhat.com>
13542
13543 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13544
c564377f
MS
135452002-01-09 Michael Snyder <msnyder@redhat.com>
13546
975aec09
MS
13547 * i386-linux-nat.c (fill_fpxregset): Make global.
13548 (store_fpxregset): Ditto.
13549
db4a10fa
MS
13550 * gregset.h (gdb_fpxregset_t): Define.
13551 (supply_fpxregset): Prototype.
13552 (fill_fpxregset): Prototype.
13553
c564377f
MS
13554 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13555
c3d45d70
RE
135562002-01-09 Richard Earnshaw <rearnsha@arm.com>
13557
13558 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13559 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13560 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13561
fcc87af1
AC
135622002-01-09 Andrew Cagney <ac131313@redhat.com>
13563
13564 * MAINTAINERS: Update target maintainer rules so that any
13565 Maintainer can approve a tested patch for a maintenance-only
13566 target.
13567
dd96c05b
RE
135682002-01-09 Richard Earnshaw <rearnsha@arm.com>
13569
d4297db9 13570 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13571
d4297db9 13572 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13573 IN_SIGTRAMP.
13574
145fdc6e
MS
135752002-01-08 Michael Snyder <msnyder@redhat.com>
13576
13577 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13578 real name of the executable, rather than the /proc name.
13579
be4d1333
MS
135802002-01-03 Michael Snyder <msnyder@redhat.com>
13581
13582 Implement a "generate-core-file" command in gdb, save target state.
13583 * gcore.c: New file. Implement new command 'generate-core-file'.
13584 Save a corefile image of the current state of the inferior.
13585 * linux-proc.c: Add linux-specific code for saving corefiles.
13586 * target.h (struct target_ops): Add new target vectors for saving
13587 corefiles; to_find_memory_regions and to_make_corefile_notes.
13588 (target_find_memory_regions): New macro.
13589 (target_make_corefile_notes): New macro.
13590 * target.c (update_current_target): Inherit new target methods.
13591 (dummy_find_memory_regions): New place-holder method.
13592 (dummy_make_corefile_notes): New place-holder method.
13593 (init_dummy_target): Initialize new dummy target vectors.
13594 * exec.c (exec_set_find_memory_regions): New function.
13595 Allow the exec_ops vector for memory regions to be taken over.
13596 (exec_make_note_section): New function, target vector method.
13597 * defs.h (exec_set_find_memory_regions): Export prototype.
13598 * procfs.c (proc_find_memory_regions): New function, corefile method.
13599 (procfs_make_note_section): New function, corefile method.
13600 (init_procfs_ops): Set new target vector pointers.
13601 (find_memory_regions_callback): New function.
13602 (procfs_do_thread_registers): New function.
13603 (procfs_corefile_thread_callback): New function.
13604 * sol-thread.c (sol_find_memory_regions): New function.
13605 (sol_make_note_section): New function.
13606 (init_sol_thread_ops): Initialize new target vectors.
13607 * inftarg.c (inftarg_set_find_memory_regions): New function.
13608 Allow to_find_memory_regions vector to be taken over.
13609 (inftarg_set_make_corefile_notes): New function.
13610 Allow to_make_corefile_notes vector to be taken over.
13611 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13612 interface layer if not target_has_execution (may be a corefile).
13613 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13614 * config/sparc/sun4sol2.mh: Ditto.
13615 * config/alpha/alpha-linux.mh: Ditto.
13616 * config/arm/linux.mh: Ditto.
13617 * config/i386/x86-64linux.mh: Ditto.
13618 * config/ia64/linux.mh: Ditto.
13619 * config/m68k/linux.mh: Ditto.
13620 * config/mips/linux.mh: Ditto.
13621 * config/powerpc/linux.mh: Ditto.
13622 * config/sparc/linux.mh: Ditto.
13623
c6b92abd
MS
136242002-01-07 Michael Snyder <msnyder@redhat.com>
13625
13626 * arm-linux-nat.c: Remove references to regcache.c internal data
13627 (registers[] and register_valid[]).
13628
4b09dc8c
MS
136292002-01-07 Michael Snyder <msnyder@redhat.com>
13630
abf22e64
AJ
13631 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13632 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13633 symbol file and shlibs.
13634 * Makefile.in: Add rule for linux-proc.o.
13635 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13636 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13637 * config/arm/linux.mh: Ditto.
13638 * config/i386/linux.mh: Ditto.
13639 * config/i386/x86-64linux.mh: Ditto.
13640 * config/ia64/linux.mh: Ditto.
13641 * config/m68k/linux.mh: Ditto.
13642 * config/mips/linux.mh: Ditto.
13643 * config/powerpc/linux.mh: Ditto.
13644 * config/sparc/linux.mh: Ditto.
13645
c25b74ac
PM
136462002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13647
13648 * win32-nat.c: Add i386-tdep.h dependency.
13649
94cd915f
MS
136502002-01-07 Michael Snyder <msnyder@redhat.com>
13651
c7cccb76
MS
13652 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13653 instead of bfd_get_arch_size. Don't bail out just because
13654 there's no exec_bfd.
abf22e64 13655
34c0bd93
MS
13656 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13657 * p-valprint.c (pascal_object_print_value): Ditto.
13658 * somread.c (som_symtab_read): Ditto.
13659 * symfile.c (simple_free_overlay_region_table): Ditto.
13660 * valops.c (value_assign): Ditto.
13661
21c1c920
MS
13662 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13663 use tilde_expand and strerror for opening save-tracepoints file.
13664
5bbd998e
MS
13665 * thread-db.c (thread_db_new_objfile): Indendation fix.
13666
94cd915f
MS
13667 * infptrace.c (GDB_MAX_ALLOCA): New define.
13668 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13669 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13670 can be overridden with whatever value is appropriate to the host).
13671 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13672 alloca to allocate potentially large buffer.
13673 * rs6000-nat.c (child_xfer_memory): Ditto.
13674 * symm-nat.c (child_xfer_memory): Ditto.
13675 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13676
494e8a93
JSC
136772002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13678
13679 From Nick Clifton <nickc@redhat.com>
13680 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13681
d0e1d48e
MS
136822002-01-07 Michael Snyder <msnyder@redhat.com>
13683
abf22e64 13684 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13685 Don't use exec_bfd if it's NULL.
13686
290b2c7a
MK
136872002-01-06 Mark Kettenis <kettenis@gnu.org>
13688
abf22e64 13689 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13690
aef21287
AC
136912002-01-06 Andrew Cagney <ac131313@redhat.com>
13692
13693 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13694 * gnu-nat.c: Ditto.
13695
30efa627
AC
136962002-01-06 Andrew Cagney <ac131313@redhat.com>
13697
13698 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13699 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13700 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13701 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13702 z8k-coff have not been multi-arched. Update z8k-coff build
13703 status.
13704
9b4ff276
AC
137052002-01-06 Andrew Cagney <ac131313@redhat.com>
13706
13707 * MAINTAINERS: Mark a29k target as obsolete.
13708 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13709 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13710 comments.
13711 * NEWS: Note that a29k targets are obsolete.
13712 * a29k-tdep.c: Mark as obsolete.
13713 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13714 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13715 a29k-*-vxworks* targets as obsolete.
13716 * remote-adapt.c: Obsolete.
13717 * remote-eb.c: Obsolete.
13718 * remote-mm.c: Obsolete.
13719 * remote-udi.c: Obsolete.
13720 * config/a29k/a29k-udi.mt: Obsolete.
13721 * config/a29k/a29k.mt: Obsolete.
13722 * config/a29k/tm-a29k.h: Obsolete.
13723 * config/a29k/tm-vx29k.h: Obsolete.
13724 * config/a29k/vx29k.mt: Obsolete.
13725
a9011d31
AC
137262002-01-05 Andrew Cagney <ac131313@redhat.com>
13727
13728 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13729 with BFD_ENDIAN_BIG.
13730
9299404e
AC
137312002-01-05 Andrew Cagney <ac131313@redhat.com>
13732
13733 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13734 * configure, config.in: Re-generate.
13735 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13736 * defs.h: Do not include <endian.h>.
13737
7e89e357
JT
137382002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13739
13740 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13741 * config.in: Regenerate.
13742 * configure.in: Update copyright years.
13743 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13744 * configure: Regenerate.
13745 * i386bsd-nat.c: Update copyright years.
13746 (fill_gregset): Use regcache_collect.
13747 (fetch_inferior_registers): Only fetch integer registers
13748 if requested to do so. Add support for XMM registers
13749 using PT_GETXMMREGS.
13750 (store_inferior_registers): Only store integer registers
13751 if requested to do so. Add support for XMM registers
13752 using PT_SETXMMREGS.
13753 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13754 (store_inferior_registers): Remove.
13755 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13756 (fetch_elfcore_registers): New function.
13757 (i386nbsd_elfcore_fns): New.
13758 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13759 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13760 i386bsd-nat.o.
13761 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13762 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13763 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13764 * config/i386/tm-nbsd.h: Update copyright years.
13765 (HAVE_SSE_REGS): Define.
13766 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13767 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13768 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13769 (SIGCONTEXT_PC_OFFSET): Remove.
13770 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13771
a752853e
AC
137722002-01-05 Andrew Cagney <ac131313@redhat.com>
13773
13774 * configure.tgt: Remove powerpc-*-macos* target.
13775 * config/m68k/xm-mpw.h: Delete file.
13776 * config/xm-mpw.h: Delete file.
13777 * ser-mac.c: Delete file.
13778 * mpw-make.sed: Delete file.
13779 * mpw-config.in: Delete file.
13780 * mac-xdep.c: Delete file.
13781 * mac-gdb.r: Delete file.
13782 * mac-defs.h: Delete file.
13783 * mac-nat.c: Delete file.
13784 * config/powerpc/macos.mh: Delete file.
13785 * config/powerpc/macos.mt: Delete file.
13786 * config/powerpc/nm-macos.h: Delete file.
13787 * config/powerpc/tm-macos.h: Delete file.
13788 * source.c (openp, open_source_file): Remove obsolete code.
13789 * top.c (gdb_readline): Ditto.
13790 * utils.c (query): Ditto.
13791 * event-top.c (display_gdb_prompt): Ditto.
13792 * Makefile.in (ser-mac.o): Delete obsolete target.
13793 * NEWS: Update.
13794
d7449b42
AC
137952002-01-04 Andrew Cagney <ac131313@redhat.com>
13796
13797 * defs.h (BIG_ENDIAN): Delete macro definition.
13798 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13799 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13800 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13801 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13802 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13803 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13804 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13805 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13806 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13807 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13808 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13809 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13810 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13811 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13812 * gdbarch.c: Re-generate.
13813
356374e8
DJ
138142002-01-04 Daniel Jacobowitz <drow@mvista.com>
13815
13816 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13817 for core files.
13818
a2b8f8f8
JT
138192002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13820
13821 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13822
12466af9
AC
138232002-01-04 Andrew Cagney <ac131313@redhat.com>
13824
13825 * value.h (value_ptr): Delete typedef.
13826
3549ab40
JT
138272002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13828
13829 * i386nbsd-nat.c: Update copyright years.
13830 Include i386-tdep.h.
13831
fedbd091
EZ
138322002-01-04 Elena Zannoni <ezannoni@redhat.com>
13833
13834 * stabsread.c: Update copyright years.
13835
13836 From Debashis Mahata <debashis.mahata@wipro.com>:
13837 (read_struct_fields): Deal with Sun C compiler erroneous stab
13838 output for structs and unions.
fec8b34f 13839 Fix PR gdb/269.
fedbd091 13840
eb43544b
DJ
138412002-01-04 Daniel Jacobowitz <drow@mvista.com>
13842
13843 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13844 prototype.
13845
1514d34e
DJ
138462002-01-04 Daniel Jacobowitz <drow@mvista.com>
13847
13848 * cp-abi.c: Fix whitespace.
13849 (baseclass_offset): New wrapper function.
13850 * cp-abi.h (baseclass_offset): Add prototype.
13851 (struct cp_abi_ops): Add baseclass_offset pointer.
13852
13853 * valops.c (vb_match): Move to...
13854 * gnu-v2-abi.c (vb_match): here.
13855 * valops.c (baseclass_offset): Move to...
13856 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13857
13858 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13859
13860 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13861 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13862 * hpacc-abi.c (init_hpacc_ops): Likewise.
13863
7f8c9282
DJ
138642002-01-04 Daniel Jacobowitz <drow@mvista.com>
13865
13866 * valops.c (find_overload_match): Accept obj as a
13867 reference parameter. Update it before returning.
13868 * value.h (find_overload_match): Update prototype.
13869 * eval.c (evaluate_subexp_standard): Pass object to
13870 find_overload_match by reference.
13871
f23631e4
AC
138722002-01-03 Andrew Cagney <ac131313@redhat.com>
13873
13874 * valarith.c: Replace value_ptr with struct value pointer. Remove
13875 register attribute from value declarations.
13876 * valops.c: Ditto.
13877 * value.h: Ditto.
13878 * scm-lang.c (scm_lookup_name): Ditto.
13879
79e10fab 138802002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13881
79e10fab
AC
13882 Abstract the functionality of iterating over mapped memory
13883 regions into a general purpose iterator function.
abf22e64 13884 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13885 iterator for memory sections.
13886 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13887 (solib_mappings_callback): New function, callback for above.
13888 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13889 (info_mappings_callback): New function, callback for above.
13890
13891 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13892
c5ad026a
MK
138932002-01-01 Mark Kettenis <kettenis@gnu.org>
13894
d2a7c97a
MK
13895 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13896 * i386-tdep.c: Include "elf-bfd.h".
13897 (process_note_abi_tag_sections): New function.
13898 (i386_gdbarch_init): Add code to recognize various OS/ABI
13899 combinations.
13900
c5ad026a
MK
13901 * maint.c (_initialize_maint_cmds): Add missing \ in
13902 string-literal.
13903
a1a5b71e 13904For older changes see ChangeLog-2001
c906108c
SS
13905\f
13906Local Variables:
13907mode: change-log
13908left-margin: 8
13909fill-column: 74
13910version-control: never
13911End:
This page took 0.947859 seconds and 4 git commands to generate.