]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
* gdb/objc-lang.c (objc_printstr): Add width arg to match
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-02 Adam Fedor <fedor@gnu.org>
2 Klee Dienes <kdienes@apple.com>
3
4 * objc-lang.c (objc_printstr): Add width arg to match
5 printstr prototype.
6 (compare_selectors): Add 'const' to arg types.
7 (compare_classes): Likewise.
8 (find_imps): Cast msym pointer to avoid compiler warning.
9 (print_object_command): Validate the address before
10 passing it to the print routine.
11 (find_objc_msgcall_submethod): Change function argument to
12 return an int.
13 * objc-lang.h: Add 'extern' to all function declarations.
14 (value_nsstring): Add declaration.
15
16 2002-12-02 J. Brobecker <brobecker@gnat.com>
17
18 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
19 Fixes a build failure on HP/UX.
20
21 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
22 failure on HP/UX.
23 (hpread_has_name): Advance declaration to avoid a compilation warning.
24 (pst_syms_count): Add missing variable type. By change, the compiler
25 was defaulting to int, which seems a good choice. Fixes a compilation
26 warning.
27 (pst_syms_size): Likewise.
28
29 2002-12-02 J. Brobecker <brobecker@gnat.com>
30
31 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
32 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
33 later to set the proper gdbarch methods depending on the osabi.
34 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
35
36 2002-12-02 J. Brobecker <brobecker@gnat.com>
37
38 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
39 * osabi.c (gdb_osabi_name): Add strings images for the two new
40 enum values.
41 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
42
43 2002-12-02 Andrew Cagney <ac131313@redhat.com>
44
45 * MAINTAINERS (Java): Global maintainers are responible for Java.
46 (Past Maintainers): Mention both Anthony Green and Per Bothner as
47 part Java maintainers.
48
49 2002-12-02 J. Brobecker <brobecker@gnat.com>
50
51 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
52 Fixes a compilation failure on AiX.
53
54 2002-12-02 J. Brobecker <brobecker@gnat.com>
55
56 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
57 why aix-thread.o is not listed.
58
59 2002-12-01 Andrew Cagney <ac131313@redhat.com>
60
61 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
62 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
63 * gdbarch.h, gdbarch.c: Re-generate.
64 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
65 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
66 * config/pa/tm-hppa.h, frame.h: Update.
67 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
68 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
69 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
70 * cris-tdep.c, alpha-tdep.c: Update.
71 * frame.c (set_unwind_by_pc, create_new_frame): Use either
72 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
73 (get_prev_frame): Ditto.
74
75 2002-11-30 Andrew Cagney <cagney@redhat.com>
76
77 * exec.c (xfer_memory): Replace boolean with int.
78 * p-exp.y: Use 0 instead of false.
79 * corelow.c (gdb_check_format): Change return type to int from
80 boolean.
81 * utils.c: Don't include <curses.h> or <term.h> first.
82
83 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
84
85 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
86 (m68hc11_register_byte): Remove.
87 (m68hc11_gdbarch_init): Don't set the above.
88
89 2002-11-29 Andrew Cagney <cagney@redhat.com>
90
91 * remote-mips.c (mips_initialize): Force a selected frame rebuild
92 by calling get_selected_frame.
93 * ocd.c (ocd_start_remote): Use get_selected frame instead of
94 set_current_frame, create_new_frame, select_frame and
95 get_current_frame.
96 * remote-e7000.c (e7000_start_remote): Ditto.
97 * remote-mips.c (common_open): Ditto
98 * remote-rdp.c (remote_rdp_open): Ditto.
99
100 2002-11-29 Andreas Schwab <schwab@suse.de>
101
102 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
103 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
104 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
105 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
106 read_memory_unsigned_integer instead of read_memory_integer when
107 dealing with addresses and instruction opcodes.
108 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
109 (m68k_linux_frame_saved_pc): Likewise.
110
111 2002-11-29 Andrew Cagney <ac131313@redhat.com>
112
113 * stack.c (selected_frame, select_frame): Move from here ...
114 * frame.c (selected_frame, select_frame): ... to here. Include
115 "language.h".
116 * Makefile.in (frame.o): Update dependencies.
117 * frame.c (get_selected_frame): New function.
118 * frame.h (get_selected_frame): Declare.
119 (deprecated_selected_frame): Rename selected_frame.
120 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
121 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
122 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
123 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
124 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
125 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
126 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
127 * z8k-tdep.c, cli/cli-cmds.c: Update.
128
129 2002-11-29 Andrew Cagney <ac131313@redhat.com>
130
131 * frame.h (get_selected_block): Add comments.
132
133 2002-11-28 Andrew Cagney <ac131313@redhat.com>
134
135 * frame.c (pc_notcurrent): New function.
136 (find_frame_sal): New function.
137 * frame.h (find_frame_sal): Declare.
138 (struct symtab_and_line): Add opaque declaration.
139 * stack.c (print_frame_info_base): Use find_frame_sal instead of
140 find_pc_line.
141 (frame_info): Ditto.
142 * ada-lang.c (find_printable_frame): Ditto.
143
144 2002-11-28 J. Brobecker <brobecker@gnat.com>
145
146 * configure.in: Check that the pthdebug library is recent enough
147 before enabling thread support on native AiX.
148 * configure: Regenerate.
149
150 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
151 from the list of object files as it is now appended by configure
152 if thread support is enabled.
153 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
154 if thread support is enabled.
155
156 2002-11-28 Andrew Cagney <cagney@redhat.com>
157
158 * stack.c (get_selected_block): In-line get_current_block.
159 * frame.h (get_current_block): Delete declaration.
160 * blockframe.c (get_current_block): Delete function.
161
162 2002-11-28 Andrew Cagney <ac131313@redhat.com>
163
164 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
165 USE_GENERIC_DUMMY_FRAMES.
166 * gdbarch.h, gdbarch.c: Regenerate.
167 * valops.c, frame.c: Update.
168 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
169 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
170 * config/pa/tm-hppa.h, blockframe.c: Update.
171 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
172 * m68k-tdep.c, alpha-tdep.c: Ditto.
173
174 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
175 * mips-tdep.c: Ditto.
176
177 2002-11-27 Andrew Cagney <ac131313@redhat.com>
178
179 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
180 (USE_GENERIC_DUMMY_FRAMES): Default to true.
181 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
182 * gdbarch.c, gdbarch.h: Re-generate.
183 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
184 (CALL_DUMMY_LOCATION): Delete macro definition.
185 (PC_IN_CALL_DUMMY): Delete macro definitions.
186
187 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
188 default is already generic_pc_in_call_dummy.
189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
190 * v850-tdep.c (v850_gdbarch_init): Ditto.
191 * sh-tdep.c (sh_gdbarch_init): Ditto.
192 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
193 * mips-tdep.c (mips_gdbarch_init): Ditto.
194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
197 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
198 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
199 * avr-tdep.c (avr_gdbarch_init): Ditto.
200
201 * arm-tdep.c (arm_gdbarch_init): Do not set
202 use_generic_dummy_frames, default is already 1.
203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
204 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
205 * v850-tdep.c (v850_gdbarch_init): Ditto.
206 * sh-tdep.c (sh_gdbarch_init): Ditto.
207 * s390-tdep.c (s390_gdbarch_init): Ditto.
208 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
209 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
210 * mips-tdep.c (mips_gdbarch_init): Ditto.
211 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
213 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
214 * i386-tdep.c (i386_gdbarch_init): Ditto.
215 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
216 * frv-tdep.c (frv_gdbarch_init): Ditto.
217 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
218 * cris-tdep.c (cris_gdbarch_init): Ditto.
219 * avr-tdep.c (avr_gdbarch_init): Ditto.
220
221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
222 call_dummy_location, default is already AT_ENTRY_POINT.
223 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
224 * v850-tdep.c (v850_gdbarch_init): Ditto.
225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
226 * sh-tdep.c (sh_gdbarch_init): Ditto.
227 * s390-tdep.c (s390_gdbarch_init): Ditto.
228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
230 * mips-tdep.c (mips_gdbarch_init): Ditto.
231 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
234 * i386-tdep.c (i386_gdbarch_init): Ditto.
235 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
236 * frv-tdep.c (frv_gdbarch_init): Ditto.
237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
238 * cris-tdep.c (cris_gdbarch_init): Ditto.
239 * avr-tdep.c (avr_gdbarch_init): Ditto.
240 * arm-tdep.c (arm_gdbarch_init): Ditto.
241 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
242
243 2002-11-28 Andrew Cagney <cagney@redhat.com>
244
245 * frame.h: Update comments on set_current_frame, create_new_frame,
246 flush_cached_frames, reinit_frame_cache, select_frame and
247 selected_frame.
248
249 2002-11-27 Andrew Cagney <cagney@redhat.com>
250
251 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
252 deprecated pc_in_call_dummy function.
253 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
254 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
255 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
256 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
257 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
258
259 2002-11-26 Martin M. Hunt <hunt@redhat.com>
260
261 * Makefile.in: Remove Tix dependencies.
262 * acinclude.m4: Ditto.
263 * aclocal.m4: Ditto.
264 * configure.in: Ditto.
265 * configure: Regenerated.
266
267 2002-11-26 Andrew Cagney <ac131313@redhat.com>
268
269 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
270 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
271 * gdbarch.c: Re-generate.
272
273 2002-11-26 Andrew Cagney <ac131313@redhat.com>
274
275 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
276 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
277 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
278 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
279 pc_in_call_dummy_at_entry_point.
280 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
281 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
282 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
283 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
284 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
285 pc_in_call_dummy_on_stack.
286 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
287 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
288 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
289 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
290 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
291
292 2002-11-26 Andrew Cagney <ac131313@redhat.com>
293
294 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
295 pc_in_call_dummy_before_text_end
296 (deprecated_pc_in_call_dummy_after_text_end): Rename
297 pc_in_call_dummy_after_text_end.
298 (deprecated_pc_in_call_dummy_on_stack): Rename
299 pc_in_call_dummy_on_stack.
300 (deprecated_pc_in_call_dummy_at_entry_point): Rename
301 pc_in_call_dummy_at_entry_point.
302 * m68k-tdep.c (m68k_gdbarch_init): Update.
303 * s390-tdep.c (s390_gdbarch_init): Update.
304 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
305 * vax-tdep.c (vax_gdbarch_init): Update.
306 * sparc-tdep.c (sparc_gdbarch_init): Update.
307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
309 * i386-tdep.c (i386_gdbarch_init): Update.
310 * frv-tdep.c (frv_gdbarch_init): Update.
311 * cris-tdep.c (cris_gdbarch_init): Update.
312 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
313 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
314 (deprecated_pc_in_call_dummy_after_text_end)
315 (deprecated_pc_in_call_dummy_on_stack)
316 (deprecated_pc_in_call_dummy_at_entry_point): Update.
317 * alpha-tdep.c (alpha_gdbarch_init): Update.
318
319 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
320
321 * acconfig.h (HAVE_PREAD64): Add.
322 * configure.in: Check for pread64.
323 * config.in: Regenerated.
324 * configure: Regenerated.
325 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
326 * linux-proc.c (linux_proc_xfer_memory): New function.
327 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
328
329 2002-11-25 David Carlton <carlton@math.stanford.edu>
330
331 * dwarf2read.c (scan_partial_symbols): Descend into namespace
332 pdi's with no name.
333
334 2002-11-25 Andrew Cagney <ac131313@redhat.com>
335
336 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
337 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
338
339 2002-11-25 Jim Blandy <jimb@redhat.com>
340
341 * symfile.c (init_objfile_sect_indices): New function.
342 (default_symfile_offsets): Move the section-index-initializing
343 stuff into init_objfile_sect_indices, and call that.
344
345 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
346 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
347
348 * symfile.c (syms_from_objfile): Adjust indentation.
349
350 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
351 || info_verbose isn't true.
352
353 2002-11-24 Andrew Cagney <ac131313@redhat.com>
354
355 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
356 default to get_frame_base.
357 * gdbarch.h, gdbarch.c: Regenerate.
358 * arch-utils.c (default_frame_address): Delete function.
359 * arch-utils.h (default_frame_address): Delete declaration
360
361 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
362
363 * varobj.c (find_frame_addr_in_frame_chain):
364 Use get_frame_base instead of FRAME_FP,
365 obvious fix.
366
367 2002-11-19 Andrew Cagney <ac131313@redhat.com>
368
369 * frame.h (FRAME_FP): Delete macro.
370 (get_frame_base): New function declaration.
371 * frame.c (get_frame_base): New function.
372 (get_frame_id): Use ->frame.
373 (frame_find_by_id): Rewrite to use get_frame_id.
374 * blockframe.c: Use get_frame_base instead of FRAME_FP.
375 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
376 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
377 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
378 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
379 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
380 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
381
382 2002-11-24 Andrew Cagney <ac131313@redhat.com>
383
384 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
385
386 2002-11-24 Andrew Cagney <ac131313@redhat.com>
387
388 * frame.c (set_unwind_by_pc): Revert change below, use
389 PC_IN_CALL_DUMMY.
390 (get_prev_frame): Ditto.
391
392 2002-11-24 Andrew Cagney <ac131313@redhat.com>
393
394 * dummy-frame.c (pc_in_dummy_frame): New function.
395 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
396 (find_dummy_frame): Update comment.
397 (generic_pop_current_frame): Use get_frame_type.
398 * dummy-frame.h (pc_in_dummy_frame): Declare.
399 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
400 (create_new_frame): Use pc_in_dummy_frame.
401 (get_prev_frame): Use pc_in_dummy_frame.
402 (frame_saved_regs_register_unwind): Use get_prev_frame.
403 (deprecated_generic_get_saved_register): Use get_prev_frame.
404
405 2002-11-23 Andrew Cagney <ac131313@redhat.com>
406
407 * blockframe.c (find_frame_addr_in_frame_chain): Move function
408 from here ...
409 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
410 (varobj_create): Note that frame ID should be used.
411 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
412
413 2002-11-23 Andrew Cagney <ac131313@redhat.com>
414
415 * breakpoint.c: Include "gdb_assert.h".
416 (deprecated_frame_in_dummy): Assert that generic dummy frames are
417 not being used.
418 * Makefile.in (breakpoint.o): Update dependencies.
419 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
420 deprecated_frame_in_dummy.
421 * stack.c (print_frame_info_base): Ditto.
422 (frame_info): Ditto.
423 (print_frame_info_base): Ditto. Delete dead code.
424
425 2002-11-23 Andreas Schwab <schwab@suse.de>
426
427 * Makefile.in (m68k_tdep_h): Define.
428 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
429 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
430 * m68k-tdep.c: Move register number enum ...
431 * m68k-tdep.h: ... to this new file and rename the constants from
432 E_* to M68K_*. All uses changed.
433 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
434 * abug-rom.c: Include "m68k-tdep.h". Use
435 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
436 * cpu32bug-rom.c: Likewise.
437 * dbug-rom.c: Likewise.
438 * m68k-tdep.c: Likewise.
439 * m68klinux-nat.c: Likewise.
440 * remote-est.c: Likewise.
441 * rom68k-rom.c: Likewise.
442 * config/m68k/tm-linux.h: Likewise.
443
444 2002-11-23 Andrew Cagney <ac131313@redhat.com>
445
446 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
447 dummy frame initialization code.
448 * mips-tdep.c (mips_gdbarch_init): Ditto.
449
450 2002-11-22 Christopher Faylor <cgf@redhat.com>
451
452 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
453 attach will hang.
454
455 2002-11-22 Andrew Cagney <ac131313@redhat.com>
456
457 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
458 to default_frame_address.
459 * gdbarch.h, gdbarch.c: Re-generate.
460
461 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
462 or frame_locals_address to default_frame_address.
463 * m68k-tdep.c (m68k_gdbarch_init): Update.
464 * i386-tdep.c (i386_gdbarch_init): Update.
465 * frv-tdep.c (frv_gdbarch_init): Update.
466 * sh-tdep.c (sh_gdbarch_init): Update.
467 * v850-tdep.c (v850_gdbarch_init): Update.
468 * sparc-tdep.c (sparc_gdbarch_init): Update.
469 * mips-tdep.c (mips_gdbarch_init): Update.
470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
471 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
473
474 * cris-tdep.c (cris_frame_args_address): Delete function.
475 (cris_frame_locals_address): Delete function.
476 (cris_gdbarch_init): Do not set frame_args_address or
477 frame_locals_address.
478
479 2002-11-22 Michael Snyder <msnyder@redhat.com>
480
481 * thread-db.c (thread_db_load): Tell the user what's going on
482 if dlopen fails on libthread_db.
483
484 2002-11-23 Andreas Schwab <schwab@suse.de>
485
486 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
487 invariant return values.
488
489 2002-11-22 Andreas Schwab <schwab@suse.de>
490
491 * valops.c (value_slice): Move declaration of `offset' to avoid
492 warning.
493
494 2002-11-22 Christopher Faylor <cgf@redhat.com>
495
496 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
497 (struct so_stuff): Add end_addr field.
498 (register_loaded_dll): Calculate and store end address of loaded dll.
499 (solib_address): New function.
500 (child_solib_loaded_library_pathname): Pass carefully constructed
501 section info to safe_symbol_file_add rather than ignoring it.
502 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
503 DLL is loaded.
504 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
505 (child_create_inferior): Fix a compiler warning.
506 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
507 (solib_address): Declare new function.
508
509 2002-11-22 Andreas Schwab <schwab@suse.de>
510
511 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
512 and FPS registers.
513
514 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
515
516 * maint.c (_initialize_maint_cmds): Fix typo. From
517 Francesco Potorti` <pot@gnu.org>.
518
519 2002-11-21 Andrew Cagney <cagney@redhat.com>
520
521 * mips-tdep.c (mips_dump_tdep): Delete references to
522 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
523 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
524 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
525 * printcmd.c (build_address_symbolic): Delete calls to
526 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
527 (address_info): Ditto.
528 Fix PR gdb/773.
529
530 2002-11-19 Klee Dienes <kdienes@apple.com>
531 Adam Fedor <fedor@gnu.org>
532
533 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
534 the ability to explicitly specify the quote characters and word
535 break characters; if NULL is specified for either, use the old
536 behavior of using the characters used by the completer.
537 (skip_chars): New function. Convenience wrapper around
538 skip_quoted_chars to provide the original skip_chars behavior.
539 * completer.h (skip_quoted_chars): Add prototype.
540
541 2002-11-19 Andrew Cagney <ac131313@redhat.com>
542
543 Problems reported by Paul Eggert.
544 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
545
546 2002-11-19 Andreas Schwab <schwab@suse.de>
547
548 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
549 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
550 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
551 (m68k_linux_frame_saved_pc): Move to ...
552 * m68klinux-tdep.c: ... here. New file.
553 * Makefile.in (m68klinux-tdep.o): Add dependencies.
554 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
555
556 2002-11-19 Adam Fedor <fedor@gnu.org>
557
558 * objc-exp.y: Revert to old skip_quoted usage.
559
560 2002-11-19 Adam Fedor <fedor@gnu.org>
561
562 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
563 (objc_lang_h): Define.
564 (YYFILES): Add objc-exp.tab.c.
565 (local-maintainer-clean): Remove objc-exp.tab.c.
566 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
567
568 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
569
570 * p-exp.y (typecast rule): Add automatic dereference of
571 pascal classes if needed.
572 (THIS): Set current_type.
573 Automatically dereference pascal classes.
574 (typebase rule): Add ^typebase recognition.
575
576 2002-11-18 Adam Fedor <fedor@gnu.org>
577
578 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
579 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
580 (op_name): Handle OP_OBJC_SELF.
581 * Makefile.in (expprint.o): Add additional depends.
582
583 2002-11-18 Adam Fedor <fedor@gnu.org>
584
585 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
586 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
587 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
588 * objc-exp.y: Likewise.
589
590 2002-11-18 Adam Fedor <fedor@gnu.org>
591
592 * gdb/parser-defs.h: (struct objc_class_str): New structure
593 for parsing ObjC classes.
594
595 2002-11-18 Andrew Cagney <ac131313@redhat.com>
596
597 * stack.c (frame_relative_level): Copy function from here ...
598 * frame.c (frame_relative_level): ...to here.
599
600 2002-11-18 Andrew Cagney <ac131313@redhat.com>
601
602 * frame.h (enum frame_type): Define.
603 (get_frame_type): Declare.
604 (struct frame_info): Add field `type'. Delete field
605 signal_handler_caller.
606 (deprecated_set_frame_signal_handler_caller): Declare.
607 * frame.c (get_frame_type): New function.
608 (deprecated_set_frame_type): New function.
609 (create_new_frame): Set the frame's type.
610 (get_prev_frame): Similar.
611 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
612 * s390-tdep.c: Ditto.
613 * m68klinux-nat.c: Ditto.
614 * ns32k-tdep.c: Ditto.
615 * x86-64-linux-tdep.c: Ditto.
616 * vax-tdep.c: Ditto.
617 * rs6000-tdep.c: Ditto.
618 * ppc-linux-tdep.c: Ditto.
619 * i386-interix-tdep.c: Ditto.
620 * mips-tdep.c: Ditto.
621 * m68k-tdep.c: Ditto.
622 * hppa-tdep.c: Ditto.
623 * ia64-tdep.c: Ditto.
624 * cris-tdep.c: Ditto.
625 * arm-tdep.c: Ditto.
626 * alpha-tdep.c: Ditto.
627 * i386-tdep.c: Ditto.
628 * stack.c: Ditto.
629 * ada-lang.c: Ditto.
630 * blockframe.c: Update.
631 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
632 deprecated_set_frame_type instead of signal_handler_caller.
633 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
634 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
635 * breakpoint.h: Delete FIXME suggesting get_frame_type.
636
637 2002-11-18 Klee Dienes <kdienes@apple.com>
638
639 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
640
641 2002-11-18 Klee Dienes <kdienes@apple.com>
642
643 * buildsym.c (pop_context): Add comment.
644
645 2002-11-18 Klee Dienes <kdienes@apple.com>
646
647 * buildsym.h (pop_context): Convert to function, defined in
648 buildsym.c.
649 * buildsym.c: Include gdb_assert.h.
650 (pop_context): Implement as C function. Add check for stack
651 underflow.
652 * dbxread.c (process_one_symbol): Complain and stop processing
653 that symbol if we are already at the top of the context stack for
654 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
655 when processing N_RBRAC.
656
657 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
658
659 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
660 define.
661 (struct target_waitstatus): Add opaque definition.
662 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
663 * exec.c (init_exec_ops): Likewise.
664 * fork-child.c (clone_and_follow_inferior): Remove.
665 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
666 * inferior.h (clone_and_follow_inferior): Remove prototype.
667 * infrun.c (follow_fork_mode_both): Remove.
668 (follow_fork_mode_kind_names): Remove commented out "both".
669 (follow_inferior_fork): Remove follow_fork_mode_both support.
670 * inftarg.c (child_clone_and_follow_inferior): Remove.
671 (child_post_follow_inferior_by_clone): Remove.
672 (init_child_ops): Don't set to_clone_and_follow_inferior
673 or to_post_follow_inferior_by_clone.
674 * target.c (default_clone_and_follow_inferior): Remove.
675 (cleanup_target): Don't set to_clone_and_follow_inferior
676 or to_post_follow_inferior_by_clone.
677 (find_default_clone_and_follow_inferior): Remove.
678 (init_dummy_target): Don't set to_clone_and_follow_inferior.
679 (debug_to_clone_and_follow_inferior): Remove.
680 (debug_to_post_follow_inferior_by_clone): Remove.
681 (setup_target_debug): Don't set to_clone_and_follow_inferior
682 or to_post_follow_inferior_by_clone.
683 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
684 and to_post_follow_inferior_by_clone.
685 (child_clone_and_follow_inferior): Remove prototype.
686 (child_post_follow_inferior_by_clone): Remove prototype.
687 (target_clone_and_follow_inferior): Remove macro.
688 (target_post_follow_inferior_by_clone): Remove macro.
689 (find_default_clone_and_follow_inferior): Remove prototype.
690
691 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
692
693 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
694 inferior_has_vforked, and inferior_has_execd instead of
695 target_has_forked, target_has_vforked, and target_has_execd.
696 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
697 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
698 (CHILD_WAIT): Define.
699 (child_wait): Add prototype.
700 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
701 Add prototype.
702 (hpux_has_vforked): Likewise, from child_has_vforked.
703 (hpux_has_execd): Likewise, from child_has_execd.
704 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
705 (not_same_real_pid, child_wait): New, copied from inftarg.c.
706 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
707 and hpux_has_syscall_event instead of the target hooks.
708 * infrun.c (inferior_has_forked, inferior_has_vforked)
709 (inferior_has_execd): New functions.
710 * inftarg.c (not_same_real_pid): Remove.
711 (child_wait): Remove references to not_same_real_pid,
712 target_has_forked, target_has_vforked, target_has_execd,
713 and target_has_syscall_event.
714 (child_has_forked, child_has_vforked, child_has_execd)
715 (child_has_syscall_event): Remove.
716 (init_child_ops): Remove references to child_has_forked,
717 child_has_vforked, child_has_execd, and child_has_syscall_event.
718 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
719 (hpux_has_vforked): Likewise, from child_has_vforked.
720 (hpux_has_execd): Likewise, from child_has_execd.
721 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
722 * target.c (cleanup_target): Remove references to
723 to_has_forked, to_has_vforked, to_has_execd, and
724 to_has_syscall_event.
725 (update_current_target): Likewise.
726 (setup_target_debug): Likewise.
727 (debug_to_has_forked): Remove.
728 (debug_to_has_vforked): Remove.
729 (debug_to_has_execd): Remove.
730 (debug_to_has_syscall_event): Remove.
731 * target.h (struct target_ops): Remove to_has_forked.
732 to_has_vforked, to_has_execd, and to_has_syscall_event.
733 (child_has_forked, child_has_vforked, child_has_execd)
734 (child_has_syscall_event): Remove prototypes.
735 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
736 prototypes.
737 (target_has_forked, target_has_vforked, target_has_execd)
738 (target_has_syscall_event): Remove macros.
739
740 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
741
742 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
743 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
744 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
745 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
746 * target.c (cleanup_target): Remove reference to
747 to_can_follow_vfork_prior_to_exec.
748 (update_current_target): Likewise.
749 (debug_to_can_follow_vfork_prior_to_exec): Remove.
750 (setup_target_debug): Remove reference to
751 to_can_follow_vfork_prior_to_exec.
752 * target.h (struct target_ops): Remove
753 to_can_follow_vfork_prior_to_exec.
754 (child_can_follow_vfork_prior_to_exec): Remove prototype.
755 (target_can_follow_vfork_prior_to_exec): Remove definition.
756 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
757 define.
758 * infrun.c (follow_vfork_when_exec): Remove.
759 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
760 (follow_exec): Likewise.
761 (handle_inferior_event): Likewise.
762 (keep_going): Likewise.
763
764 2002-11-15 Andrew Cagney <cagney@redhat.com>
765
766 * frame.c (generic_unwind_get_saved_register): Make static.
767 * frame.h (generic_unwind_get_saved_register): Delete declaration.
768 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
769 defaults to generic_unwind_get_saved_register.
770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
772 * frv-tdep.c (frv_gdbarch_init): Ditto.
773 * i386-tdep.c (i386_gdbarch_init): Ditto.
774 * s390-tdep.c (s390_gdbarch_init): Ditto.
775 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
776 * v850-tdep.c (v850_gdbarch_init): Ditto.
777 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
778 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
779 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
780
781 2002-11-15 Andrew Cagney <cagney@redhat.com>
782
783 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
784 i386-tdep.c.
785
786 2002-11-15 Andrew Cagney <cagney@redhat.com>
787
788 * frame.h (sigtramp_saved_pc): Delete declaration.
789 * blockframe.c (sigtramp_saved_pc): Delete function.
790 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
791 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
792 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
793 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
794
795 2002-11-15 Andrew Cagney <ac131313@redhat.com>
796
797 * frame.c (frame_pc_unwind): New function.
798 (frame_saved_regs_pc_unwind): New function.
799 (frame_register_unwind): Pass unwind_cache instead of
800 register_unwind_cache.
801 (set_unwind_by_pc): Add unwind_pc parameter, set.
802 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
803 (get_prev_frame): Ditto.
804 * frame.h (frame_pc_unwind_ftype): Declare.
805 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
806 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
807 (frame_pc_unwind): Declare.
808 * dummy-frame.c (dummy_frame_pc_unwind): New function.
809 (struct dummy_frame): Add comment mentioning that values are for
810 previous frame.
811 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
812 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
813 (generic_file_frame_chain_valid): Ditto.
814 * stack.c (frame_info): Ditto.
815
816 2002-11-15 David Carlton <carlton@math.stanford.edu>
817
818 * linespec.c (locate_first_half): New function.
819 (decode_line_1): Move code into locate_first_half.
820
821 2002-11-15 Andrew Cagney <ac131313@redhat.com>
822
823 * complaints.h: Add comment explaining how to eliminate a
824 deprecated_complain call.
825 * complaints.h: Fix spelling errors.
826
827 2002-11-15 David Carlton <carlton@math.stanford.edu>
828
829 * printcmd.c: Remove #include "disasm.h".
830
831 2002-11-14 Andrew Cagney <ac131313@redhat.com>
832
833 * frame.h: Move the most relevant interface functions to the start
834 of the file.
835
836 2002-11-14 Andrew Cagney <ac131313@redhat.com>
837
838 * regcache.h (deprecated_registers): Rename registers.
839 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
840 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
841 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
842 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
843 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
844 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
845 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
846 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
847 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
848 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
849 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
850 * v850ice.c: Update.
851
852 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
853
854 * utils.c (gdb_realpath): Add comment mentioning realpath with a
855 NULL buffer.
856
857 2002-11-13 Andrew Cagney <cagney@redhat.com>
858
859 * regcache.h (deprecated_read_register_bytes): Rename
860 read_register_bytes.
861 (deprecated_write_register_bytes): Rename write_register_bytes.
862 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
863 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
864 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
865 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
866 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
867 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
868 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
869 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
870 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
871 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
872 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
873 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
874 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
875 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
876
877 2002-11-13 Jim Blandy <jimb@redhat.com>
878
879 * findvar.c (read_var_value): Doc fix.
880
881 2002-11-13 Andrew Cagney <cagney@redhat.com>
882
883 * regcache.c (struct regcache): Replace passthough_p with
884 readonly_p.
885 (regcache_xmalloc): Initialize readonly_p.
886 (build_regcache): Initialize readonly_p.
887 (regcache_save): New function.
888 (regcache_restore): New function.
889 (regcache_cpy): Re-implement using regcache_save and
890 regcache_restore.
891 (regcache_raw_read): Update.
892 (regcache_cooked_read): When a read-only cache, checked for cached
893 pseudo register values.
894 (regcache_raw_write): Assert that the cache is not read-only.
895 Remove code handling a non-passthrough cache.
896 * regcache.h (regcache_save): Declare.
897 (regcache_restore): Declare.
898
899 2002-11-13 Andrew Cagney <cagney@redhat.com>
900
901 * regcache.c (struct regcache_descr): Add fields
902 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
903 (init_legacy_regcache_descr): Compute the size of a cooked
904 register cache and then assign that to sizeof_raw_registers. Set
905 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
906 (init_legacy_regcache_descr): Ditto.
907
908 2002-11-13 Andrew Cagney <cagney@redhat.com>
909
910 * regcache.c (register_buffer): Move to near start of file, update
911 description.
912 (regcache_raw_read): Use.
913 (regcache_raw_write): Use.
914 (struct regcache): Rename raw_registers to registers and
915 raw_register_valid_p to register_valid_p.
916 (regcache_xmalloc): Update.
917 (regcache_xfree): Update.
918 (register_buffer): Update.
919 (regcache_cpy): Update.
920 (regcache_cpy_no_passthrough): Update.
921 (regcache_valid_p): Update.
922 (deprecated_grub_regcache_for_registers): Update.
923 (deprecated_grub_regcache_for_register_valid): Update.
924 (set_register_cached): Update.
925 (regcache_raw_write): Update.
926
927 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
928
929 * p-exp.y (name_not_typename): Use copy_name to
930 set current_type variable for fields of THIS.
931
932 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
933
934 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
935 * monitor.c (init_base_monitor_ops): Likewise.
936 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
937 * remote-array.c (init_array_ops): Likewise.
938 * remote-e7000.c (init_e7000_ops): Likewise.
939 * remote-es.c (init_es1800_ops): Likewise.
940 (init_es1800_child_ops): Likewise.
941 * remote-rdp.c (init_remote_rdp_ops): Likewise.
942 * remote-sim.c (init_gdbsim_ops): Likewise.
943 * remote-st.c (init_st2000_ops): Likewise.
944 * sol-thread.c (init_sol_core_ops): Likewise.
945 (init_sol_thread_ops): Likewise.
946 * v850ice.c (init_850ice_ops): Likewise.
947 * win32-nat.c (init_child_ops): Likewise.
948 * wince.c (init_child_ops): Likewise.
949
950 2002-11-12 Andrew Cagney <ac131313@redhat.com>
951
952 * utils.c (gdb_realpath): Make rp a constant pointer.
953
954 2002-11-12 Andrew Cagney <ac131313@redhat.com>
955
956 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
957 a constant buffer; cannonicalize_file_name(); realpath() with a
958 pathconf() defined buffer, xstrdup().
959
960 2002-11-12 Andrew Cagney <ac131313@redhat.com>
961
962 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
963 to hang2.C; hang3.c to hang3.C.
964
965 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
966
967 * findvar.c (read_var_value): Reenable TLS code.
968
969 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
970 Jim Blandy <jimb@redhat.com>
971
972 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
973 * target.c (update_current_target): Add
974 to_get_thread_local_address.
975 * target.h (to_get_thread_local_address): Export.
976 (target_get_thread_local_address): Define.
977 (target_get_thread_local_address_p): Define.
978 * thread-db.c: Include solib-svr4.h.
979 (td_thr_tls_get_addr_p): Define.
980 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
981 (thread_db_get_thread_local_address): New function.
982 (init_thread_db_ops): Initialize to_get_thread_local_address.
983 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
984 * configure: Regenerate.
985 * config.in: Regenerate.
986
987 2002-11-11 David Carlton <carlton@math.stanford.edu>
988
989 * linespec.c (set_flags): New function.
990 (decode_line_1): Move code into set_flags.
991
992 2002-11-11 David Carlton <carlton@math.stanford.edu>
993
994 * linespec.c (decode_line_1): Move chunks of code to separate
995 functions.
996 (initialize_defaults): New function.
997 (decode_indirect): New function.
998
999 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1000
1001 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1002 instead of void_code_ptr.
1003 (sigtramp_saved_pc): Ditto.
1004
1005 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1006 i386_fp_regnum_p.
1007
1008 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * gdbtypes.h (struct main_type): Move artificial flag out of
1011 loc. New member of ``struct field'' named static_kind. Reduce
1012 overloaded meaning of bitsize.
1013 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1014 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1015 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1016
1017 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1018 new fields.
1019 (template_to_fixed_record_type, template_to_static_fixed_type)
1020 (to_record_with_fixed_variant_part): Likewise.
1021 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1022 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1023 * dwarfread.c (struct_type, enum_type): Likewise.
1024 * hpread.c (hpread_read_enum_type)
1025 (hpread_read_function_type, hpread_read_doc_function_type)
1026 (hpread_read_struct_type): Likewise.
1027 * mdebugread.c (parse_symbol): Likewise.
1028
1029 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1030
1031 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1032 * stack.c (print_frame_info_base): Update.
1033 (print_frame_info_base, frame_info): Update.
1034 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1035 (sparc_frame_saved_pc): Update.
1036 * ada-lang.c (find_printable_frame): Update.
1037 * breakpoint.c (deprecated_frame_in_dummy): Update.
1038
1039 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1040
1041 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1042 defined.
1043 (regmap): Extend to cover all registers.
1044 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1045 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1046 definitions.
1047 (fetch_register, sore_register): Simplify.
1048 (old_fetch_inferior_registers, old_store_inferior_registers):
1049 Remove functions.
1050 (cannot_fetch_register, cannot_store_register): Change
1051 implementation to use regmap array to decide which registers
1052 cannot be fetched/stored. This removes $orig_eax from the
1053 registers that cannot be fetched/stored.
1054 (fetch_inferior_registers): Call fetch_register directly instead
1055 of calling old_fetch_inferior_registers.
1056 (store_inferior_registers): Call store_register directly instead
1057 of calling old_store_inferior_registers.
1058 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1059 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1060 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1061
1062 2002-11-09 Klee Dienes <kdienes@apple.com>
1063
1064 * i387-tdep.c (i387_supply_register): When called with NULL as a
1065 buffer, mark the register as not provided (to mirror the behavior
1066 of supply_register).
1067 (i387_supply_fxsave): Ditto.
1068 (i387_supply_fsave): Ditto (inherits the behavior from
1069 i387_supply_register).
1070
1071 2002-11-09 Klee Dienes <kdienes@apple.com>
1072
1073 * blockframe.c (sigtramp_saved_pc): Use
1074 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1075 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1076 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1077
1078 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1079
1080 * frame.c (get_prev_frame): Test prev_p to identify a previously
1081 unwound frame. Initialize prev_p.
1082 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1083 comment.
1084
1085 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1086
1087 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1088 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1089 more comments. Zap dead code.
1090
1091 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1092
1093 * infcmd.c (print_vector_info, print_float_info): Move code that
1094 checks whether the target has any registers and whether there is a
1095 selected frame up, such that it is also used if a target provides
1096 multi-arch definitions of these functions.
1097
1098 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1099
1100 * Makefile.in (DESTDIR): Define.
1101 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1102 prefix.
1103
1104 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1105 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1106
1107 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1108
1109 * i386-linux-tdep.c: Include "reggroups.h".
1110 (i386_linux_register_reggroup_p): New function.
1111 (i386_linux_init_abi): Set register_reggroup_p to
1112 i386_linux_register_reggroup_p.
1113 * i386-tdep.h (i386_register_reggroup_p): Declare.
1114 * i386-tdep.c: Include "reggroups.h".
1115 (i386_init_reggroups): New function.
1116 (i386_add_reggroups): New function.
1117 (i386_register_reggroup_p): New function.
1118 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1119 (_initialize_i386_tdep): Call i386_init_reggroups.
1120 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1121 specific reggroups.
1122
1123 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1124
1125 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1126 request that's available in *BSD.
1127
1128 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1129
1130 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1131 FDOFF_REGNUM.
1132
1133 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1134
1135 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1136 * dummy-frame.c (find_dummy_frame): Rename
1137 generic_find_dummy_frame, make static. Return the dummy frame
1138 instead of the regcache.
1139 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1140 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1141 (dummy_frame_register_unwind): Rename
1142 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1143 * dummy-frame.h (dummy_frame_register_unwind): Rename
1144 generic_call_dummy_register_unwind.
1145
1146 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1147
1148 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1149 except the inclusion of "i386/tm-i386.h", to...
1150 * config/i386/nm-i386v42mp.h: ...here.
1151 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1152
1153 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1154
1155 * Makefile.in (frame.o): Update dependencies.
1156 * blockframe.c (current_frame, frame_obstack_alloc)
1157 (frame_saved_regs_zalloc, get_current_frame)
1158 (set_current_frame, create_new_frame)
1159 (set_unwind_by_pc, get_next_frame)
1160 (flush_cached_frames, reinit_frame_cache)
1161 (frame_saved_regs_register_unwind)
1162 (deprecated_generic_get_saved_register)
1163 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1164 (_initialize_blockframe): Move frame code from here...
1165 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1166 "annotate.h" and "dummy-frame.h".
1167 (_initialize_frame): New function.
1168
1169 2002-11-08 Jim Blandy <jimb@redhat.com>
1170
1171 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1172 when we finish a function a context.
1173 * buildsym.h (outermost_context_p): New macro.
1174 (Bug analyzed by David Edelsohn.)
1175
1176 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1177
1178 * blockframe.c: Include "dummy-frame.h".
1179 (struct dummy_frame, dummy_frame_stack)
1180 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1181 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1182 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1183 (generic_save_call_dummy_addr, generic_pop_current_frame)
1184 (generic_pop_dummy_frame, generic_fix_call_dummy)
1185 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1186 dummy frame code from here...
1187 * dummy-frame.c: ...to here. New file.
1188 * dummy-frame.h: New file.
1189 (generic_call_dummy_register_unwind): Declare.
1190 (generic_find_dummy_frame): Declare.
1191 * Makefile.in (SFILES): Add dummy-frame.c.
1192 (dummy-frame.o): Specify dependencies.
1193 (dummy_frame_h): Define.
1194 (COMMON_OBS): Add dummy-frame.o.
1195 (blockframe.o): Update dependencies.
1196
1197 2002-11-08 Jim Blandy <jimb@redhat.com>
1198
1199 * dwarf2read.c (read_func_scope): Restore local_symbols and
1200 param_symbols after we finish the function context. (Based on a
1201 patch from David Edelsohn.)
1202
1203 2002-11-08 David Carlton <carlton@math.stanford.edu>
1204
1205 * linespec.c (symbol_found): New function.
1206 (minsym_found): New function.
1207 (decode_line_1): Separate out some code into separate functions.
1208
1209 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1210
1211 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1212 the benefit of the interix target.
1213 * i386-tdep.h (i386_frameless_signal_p): Declare.
1214
1215 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1216
1217 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1218 declaration that snuck in from change below.
1219
1220 2002-11-06 Andrew Cagney <cagney@redhat.com>
1221
1222 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1223 all callers.
1224 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1225 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1226 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1227 (i386_mxcsr_regnum_p): new function. Use instead of
1228 MXCSR_REGNUM_P.
1229 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1230 (i386_sse_regnum_p): Declare.
1231 (i386_mxcsr_regnum_p): Declare.
1232 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1233 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1234 (IS_FP_REGNUM): Update definition.
1235 (IS_FPU_CTRL_REGNUM): Update definition..
1236 (IS_SSE_REGNUM): Update definition..
1237 * i386v-nat.c (register_u_addr): Update.
1238 * go32-nat.c (fetch_register): Update.
1239 (store_register): Update.
1240
1241 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1242
1243 Preparation work to convert the hppa targets to multiarch partial.
1244
1245 * hppa-tdep.c: Add new functions replacing macro bodies from
1246 config/pa/tm-hppa.h. These function will be used to initialize
1247 the gdbarch structure. Import some comments from tm-hppa.h,
1248 and place them where appropriate, to avoid loosing them when
1249 we cleanup this file.
1250 (hppa_reg_struct_has_addr): New function.
1251 (hppa_inner_than): New function.
1252 (hppa_stack_align): New function.
1253 (hppa_pc_requires_run_before_use): New function.
1254 (hppa_instruction_nullified): New function.
1255 (hppa_register_byte): New function.
1256 (hppa_register_virtual_type): New function.
1257 (hppa_store_struct_return): New function.
1258 (hppa_cannot_store_register): New function.
1259 (hppa_frame_args_address): New function.
1260 (hppa_frame_locals_address): New function.
1261 (hppa_smash_text_address): New function.
1262 (hppa_coerce_float_to_double): New function. Requires the inclusion
1263 of "language.h".
1264
1265 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1266
1267 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1268 gdbarch-eligible macro to a call to the new associated function
1269 created in hppa-tdep.c.
1270 (INNER_THAN): Likewise.
1271 (STACK_ALIGN): Likewise.
1272 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1273 (INSTRUCTION_NULLIFIED): Likewise.
1274 (REGISTER_BYTE): Likewise.
1275 (REGISTER_VIRTUAL_TYPE): Likewise.
1276 (STORE_STRUCT_RETURN): Likewise.
1277 (CANNOT_STORE_REGISTER): Likewise.
1278 (FRAME_ARGS_ADDRESS): Likewise.
1279 (FRAME_LOCALS_ADDRESS): Likewise.
1280 (SMASH_TEXT_ADDRESS): Likewise.
1281 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1282 (ABOUT_TO_RETURN): Delete, as no longer used.
1283
1284 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1285
1286 * printcmd.c (disassemble_command): Remove obsolete function.
1287 (_initialize_printcmd): Do not create disassemble command here.
1288 * cli/cli-cmds.c (disassemble_command): New function. Implements
1289 disassemble command.
1290 (init_cli_cmds): Create disassemble command here instead.
1291
1292 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1293
1294 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1295
1296 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1297
1298 * regcache.h (regcache_cooked_read_using_offset_hack)
1299 (regcache_cooked_write_using_offset_hack): Delete declarations.
1300 (register_changed): Delete declaration.
1301 * regcache.c (regcache_cooked_read_using_offset_hack)
1302 (regcache_cooked_write_using_offset_hack): Delete functions.
1303 (cooked_xfer_using_offset_hack): Delete function.
1304 (register_changed): Delete function.
1305
1306 2002-11-07 Jim Blandy <jimb@redhat.com>
1307
1308 * macroscope.c: #include "complaints.h".
1309 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1310 but not in the macro table.
1311 * Makefile.in (macroscope.o): Record dependency.
1312
1313 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1314
1315 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1316
1317 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1318
1319 * regcache.c (deprecated_registers_fetched): Update.
1320 * regcache.h (deprecated_registers_fetched): Rename
1321 registers_fetched.
1322 * remote-vxsparc.c (vx_read_register): Update.
1323 * remote-vxmips.c (vx_read_register): Update.
1324 * remote-vx68.c (vx_read_register): Update.
1325 * irix5-nat.c (fetch_core_registers): Update.
1326 * mipsm3-nat.c (fetch_inferior_registers): Update.
1327 * sun3-nat.c (fetch_inferior_registers): Update.
1328 * symm-nat.c (fetch_inferior_registers): Update.
1329 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1330 (fetch_core_registers): Update.
1331 (fetch_kcore_registers): Update.
1332 * mips-nat.c (fetch_inferior_registers): Update.
1333 * corelow.c (get_core_registers): Update.
1334 * a68v-nat.c (fetch_inferior_registers): Update.
1335
1336 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1337
1338 Put in place the framework necessary for multiarching the hppa targets.
1339 * hppa-tdep.c (hppa_gdbarch_init): New function.
1340 (hppa_dump_tdep): New function.
1341 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1342 tdep structure dumper.
1343 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1344 until the multi-arching conversion has partially been completed.
1345
1346 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1347
1348 * valops.c (value_assign): Merge lval_register case into
1349 lval_reg_frame_relative. Use frame_register and
1350 regcache_cooked_write instead of get_saved_register and
1351 write_register_bytes. After flushing the register cache, try to
1352 re-select the selected frame.
1353
1354 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1355
1356 * regcache.h (deprecated_register_valid): Rename register_valid.
1357 * regcache.c: Update.
1358 * ia64-aix-nat.c: Update.
1359 * i386gnu-nat.c: Update.
1360 * alpha-nat.c: Update.
1361 * sparc-nat.c: Update.
1362 * lynx-nat.c: Update.
1363 * remote-mips.c: Update.
1364
1365 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1366
1367 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1368 to end of file, to be more consistent with the pratice followed
1369 by other targets.
1370
1371 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1372
1373 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1374 (print_float_info): Print registers in float_reggroup.
1375 (print_vector_info): Print registers in vector_reggroup.
1376 (default_print_registers_info): When all, print registers in
1377 all_reggroup. Otherwize, print registers in general_reggroup.
1378 (registers_info): Rewrite. Add support for register groups.
1379 Eliminate a goto.
1380
1381 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1382
1383 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1384 ages.
1385 (symtab_symbol_info): Remove eons old ifdeffed out code.
1386 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1387 command.
1388
1389 2002-11-06 Theodore A. Roth <troth@openavr.org>
1390
1391 * c-exp.y: Add missing semi-colons.
1392 * f-exp.y: Add missing semi-colons.
1393 * m2-exp.y: Add missing semi-colons.
1394 * p-exp.y: Add missing semi-colons.
1395 Add empty action to start rule to avoid a type clash error when
1396 building with bison >= 1.50.
1397
1398 2002-11-06 Jim Blandy <jimb@redhat.com>
1399
1400 * macrotab.h (struct macro_source_file): Doc fix.
1401
1402 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1403
1404 * varobj.c (child_exists, cplus_number_of_children): Change
1405 STREQ macro references to strcmp.
1406 (cplus_name_of_child): Change code to handle the fact that
1407 fields are not necessarily contiguous with regards to their
1408 access control. This is a fix for PR gdb/792.
1409
1410 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1411
1412 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1413 * gdbarch.h, gdbarch.c: Regnerate.
1414 * frame.h (frame_register): Declare.
1415 * frame.c (frame_register): New function.
1416 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1417 GET_SAVED_REGISTER, otherwize call
1418 generic_unwind_get_saved_register.
1419 (frame_register_read): Use frame_register instead of
1420 get_saved_register.
1421
1422 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1423
1424 From Jim Ingham <jingham@apple.com>:
1425 * event-top.c (gdb_disable_readline): New function.
1426 (_initialize_event_loop): Move comment.
1427
1428 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1429
1430 * event-loop.c (start_event_loop): Add comment.
1431 Update copyright.
1432
1433 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1434
1435 * infcmd.c (default_print_registers_info): Do not call
1436 PRINT_REGISTER_HOOK.
1437
1438 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1439
1440 * sparc-tdep.c (sparc_print_register_hook): Make static.
1441 (sparc_print_registers_info): New function.
1442 (sparc_do_registers_info): New function.
1443 (sparclet_print_registers_info): New function.
1444 (sparclet_do_registers_info): New function.
1445 (do_sparc_print_registers_info): New function.
1446 (sparc_print_registers): New static function, clone of infcmd.c's
1447 default_print_registers_info.
1448 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1449 (sparclet_do_registers_info): Declare.
1450 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1451 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1452 Re-define.
1453 (sparc_do_registers_info): Declare.
1454 (PRINT_REGISTER_HOOK): Delete macro.
1455 (sparc_print_register_hook): Delete declaration.
1456
1457 2002-11-05 David Carlton <carlton@math.stanford.edu>
1458
1459 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1460 functions.
1461 (lookup_symbol_aux_local): New function.
1462 (lookup_symbol_aux_symtabs): New function.
1463 (lookup_symbol_aux_psymtabs): New function.
1464
1465 2002-11-05 David Carlton <carlton@math.stanford.edu>
1466
1467 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1468 previous values of 'objfile' and 'block'.
1469
1470 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1471
1472 * values.c (value_change_enclosing_type): Set
1473 enclosing_type field correctly also for the case where
1474 more memory needs to be allocated.
1475
1476 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1477
1478 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1479 of puts_filtered.
1480
1481 * i387-tdep.c (i387_print_float_info): Replace calls to
1482 register_read and deprecated_read_register_gen with calls to
1483 frame_register_read, and make the necessary adjustments to the
1484 surrounding code.
1485
1486 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1487
1488 * gdbarch.sh (register_reggroup_p): Allow default value.
1489 * gdbarch.h, gdbarch.c: Regenerate.
1490
1491 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1492
1493 * regcache.h: Add coment indicating replacements for deprecated
1494 functions.
1495
1496 2002-11-02 Andrew Cagney <cagney@redhat.com>
1497
1498 * reggroups.h, reggroups.c: New files.
1499 * regcache.c: Include "reggroups.h".
1500 (enum regcache_dump_what): Add `regcache_dump_groups'.
1501 (regcache_dump): Contract size of the "Type" column. When
1502 specified, dump the register's groups.
1503 (maintenance_print_register_groups): New function.
1504 (_initialize_regcache): Add command `maint print register-groups'.
1505 * Makefile.in (COMMON_OBS): Add reggroups.o
1506 (SFILES): Add reggroups.c.
1507 (reggroups_h): Define.
1508 (regcache.o, gdbarch.o): Update dependencies.
1509 (reggroups.o): Specify dependencies.
1510 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1511 Add opaque declaration for `struct reggroup' in generated .h file.
1512 Include "reggroups.h" in generated .c file.
1513 gdbarch.h, gdbarch.c: Re-generate.
1514
1515 2002-11-02 Andrew Cagney <cagney@redhat.com>
1516
1517 * regcache.h (deprecated_read_register_gen): Rename
1518 read_register_gen.
1519 (deprecated_write_register_gen): Rename write_register_gen.
1520 * i387-tdep.c: Update.
1521 * x86-64-linux-nat.c: Update
1522 * wince.c: Update.
1523 * thread-db.c: Update.
1524 * win32-nat.c: Update.
1525 * mips-tdep.c: Update.
1526 * d10v-tdep.c: Update.
1527 * cris-tdep.c: Update.
1528 * remote-sim.c: Update.
1529 * remote-rdi.c: Update.
1530 * remote-rdp.c: Update.
1531 * frame.c: Update.
1532 * target.c: Update.
1533 * blockframe.c: Update.
1534 * x86-64-tdep.c: Update.
1535 * xstormy16-tdep.c: Update.
1536 * sh-tdep.c: Update.
1537 * s390-tdep.c: Update.
1538 * rs6000-tdep.c: Update.
1539 * sparc-tdep.c: Update.
1540 * i386-tdep.c: Update.
1541 * dwarf2cfi.c: Update.
1542 * regcache.c: Update.
1543
1544 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1545
1546 New interix-specific files:
1547 * config/i386/nm-interix.h: New file.
1548 * config/i386/interix.mh: New file.
1549 * config/i386/interix.mt: New file.
1550 * i386-interix-nat.c: New file.
1551 * i386-interix-tdep.c: New file.
1552
1553 2002-11-01 Andrew Cagney <cagney@redhat.com>
1554
1555 * frame.h (deprecated_generic_get_saved_register): Rename
1556 generic_get_saved_register.
1557 * blockframe.c (deprecated_generic_get_saved_register): Update.
1558 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1559 (xstormy16_frame_saved_register): Update.
1560 * sh-tdep.c (sh_gdbarch_init): Update.
1561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1562 * ia64-tdep.c (ia64_get_saved_register): Update.
1563 * cris-tdep.c (cris_gdbarch_init): Update.
1564 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1565 * arm-tdep.c (arm_gdbarch_init): Update.
1566
1567 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1570
1571 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1574 trampolines in sigaction.
1575
1576 2002-10-31 Andrew Cagney <cagney@redhat.com>
1577
1578 * h8300-tdep.c: Include "gdb_assert.h".
1579 (h8300_print_register): Add gdbarch, file and frame parameters.
1580 Use frame_read_unsigned_register to read the register's value.
1581 Use fprintf_filtered to display output.
1582 (h8300_print_registers_info): Replace h8300_do_registers_info.
1583 (h8300_gdbarch_init): Set print_registers_info.
1584
1585 2002-10-31 Andrew Cagney <cagney@redhat.com>
1586
1587 * frame.c (frame_read_unsigned_register): New function.
1588 (frame_read_signed_register): New function.
1589 * frame.h (frame_read_unsigned_register): Declare.
1590 (frame_read_signed_register): Declare.
1591
1592 2002-10-31 Andrew Cagney <cagney@redhat.com>
1593
1594 * h8500-tdep.c (h8500_print_registers_info): New static function,
1595 clone of infcmd.c's default_print_registers_info.
1596 (h8500_do_registers_info): New funtion.
1597 (h8500_print_register_hook): Rename print_register_hook, make
1598 static.
1599
1600 * config/h8500/tm-h8500.h: Update copyright.
1601 (DEPRECATED_DO_REGISTERS_INFO): Define.
1602 (h8500_do_registers_info: Declare.
1603 (PRINT_REGISTER_HOOK): Delete macro.
1604 (print_register_hook): Delete function.
1605
1606 2002-10-31 Andrew Cagney <cagney@redhat.com>
1607
1608 * z8k-tdep.c (z8k_print_register_hook): Make static.
1609 (z8k_print_registers_info): New static function, clone of
1610 infcmd.c's default_print_registers_info.
1611 (z8k_do_registers_info): New function. Wrap
1612 z8k_print_registers_info.
1613 * config/z8k/tm-z8k.h: Update copyright.
1614 (PRINT_REGISTER_HOOK): Delete macro.
1615 (z8k_print_register_hook): Delete declaration.
1616 (DEPRECATED_DO_REGISTERS_INFO): Define.
1617 (z8k_do_registers_info): Declare.
1618
1619 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1620
1621 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1622 as this is already provided by value.h, and was actually causing
1623 a compilation error because of a conflict in parameter type
1624 declaration due to a missing const keyword.
1625 (low_text_segment_addres): Fix a compilation warning.
1626
1627 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1630 registers without a name.
1631 (mips_linux_cannot_store_register): Don't store registers without
1632 a name.
1633
1634 2002-10-28 David Carlton <carlton@math.stanford.edu>
1635
1636 * symtab.c (find_addr_symbol): Delete. (It was already commented
1637 out.)
1638 * symtab.h: Delete prototype for find_addr_symbol.
1639
1640 2002-10-26 Andrew Cagney <cagney@redhat.com>
1641
1642 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1643 DO_REGISTERS_INFO.
1644 gdbarch.h, gdbarch.c: Re-generate.
1645 * infcmd.c (default_print_registers_info): Update reference.
1646 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1647 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1648 * sh-tdep.c (sh_gdbarch_init): Ditto.
1649 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1651
1652 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1653
1654 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1655 cfi_init_extra_frame_info.
1656 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1657 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1658
1659 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1660 target where necessary. Add more comments and remove the ones
1661 that don't provide any useful information.
1662
1663 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1664 deprecated_read_register_dummy with
1665 frame_unwind_unsigned_register.
1666
1667 * i386-tdep.c (i386_extract_struct_value_address): Use
1668 regcache_raw_read_unsigned instead of
1669 regcache_cooked_read_unsigned since we know that the register
1670 we're reading isn't a pseudo register. Rename variable 'val' into
1671 the more descriptive 'addr'.
1672
1673 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1674 (x86_64_push_return_address): Add comment.
1675 (x86_64_pop_frame): Make static.
1676 (examine_argument): Clarify comment.
1677 (x86_64_skip_prologue): Make prolog_expact variable static.
1678
1679 * dwarf2cfi.c: Fix some formatting problems.
1680 (context_cpy, read_encoded_pointer): Clarify comments.
1681
1682 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1683 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1684 i386 target back into x86_64_gdbarch_init. Add some comments and
1685 remove meaningless ones.
1686
1687 2002-10-25 Andrew Cagney <cagney@redhat.com>
1688
1689 * complaints.h (struct deprecated_complaint): Rename `struct
1690 complaint'.
1691 * complaints.c (complain): Update.
1692 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1693 incorrect comment indicating that "symfile.h" was being included
1694 for the `struct complaint' definition.
1695 * remote-vx.c: Update.
1696 * objc-lang.c: Update.
1697 * xcoffread.c: Update.
1698 * hpread.c: Update.
1699 * mdebugread.c: Update.
1700 * stabsread.c: Update.
1701 * dwarf2read.c: Update.
1702 * dwarfread.c: Update.
1703 * elfread.c: Update.
1704 * coffread.c: Update.
1705 * stabsread.h: Update.
1706 * dbxread.c: Update.
1707 * buildsym.c: Update.
1708 * gdbtypes.c: Update.
1709 * macrotab.c: Update.
1710
1711 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1712
1713 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1714 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1715 (x86_64_init_abi): ...new function.
1716
1717 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1718 * i386v-nat.c: Include "i386-tdep.h".
1719
1720 2002-10-25 Andrew Cagney <cagney@redhat.com>
1721
1722 * gdbtypes.c (address_space_name_to_int): Update.
1723 (address_space_int_to_name): Update.
1724 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1725 multi-arch predicate.
1726 (address_class_name_to_type_flags): Ditto.
1727 * gdbarch.h, gdbarch.c: Re-generate.
1728
1729 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1730
1731 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1732
1733 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1734
1735 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1736
1737 * symtab.h (INIT_SAL): Delete macro.
1738 (init_sal): Export.
1739 * symtab.c (init_sal): New function.
1740
1741 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1742 to init_sal function call.
1743 (find_sal_from_funcs_and_line): Ditto.
1744 (all_sals_for_line): Ditto.
1745 * breakpoint.c (create_internal_breakpoint): Ditto.
1746 (create_fork_vfork_event_catchpoint): Ditto.
1747 (create_exec_event_catchpoint): Ditto.
1748 (parse_breakpoint_sals): Ditto.
1749 (watch_command_1): Ditto.
1750 (handle_gnu_4_16_catch_command): Ditto.
1751 (clear_command): Ditto.
1752 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1753 * infcmd.c (run_stack_dummy): Ditto.
1754 * infrun.c (process_event_stop_test): Ditto.
1755 (check_sigtramp2): Ditto.
1756 (step_over_function): Ditto.
1757 * linespec.c (decode_line_2): Ditto.
1758 (decode_line_1): Ditto.
1759 * source.c (line_info): Ditto.
1760 * symtab.c (find_pc_sect_line): Ditto.
1761
1762 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1763
1764 * dwarf2cfi.c (struct context)
1765 (struct context_reg): Moved to dwarf2cfi.h
1766 (context_alloc, frame_state_alloc, context_cpy):
1767 Made extern instead of static, removed prototypes.
1768 * dwarf2cfi.h (struct context)
1769 (struct context_reg): New, moved from dwarf2cfi.c
1770 (context_alloc, frame_state_alloc, context_cpy):
1771 New prototypes.
1772 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1773 Changed from static to extern.
1774 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1775 (LINUX_SIGCONTEXT_FP_OFFSET)
1776 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1777 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1778 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1779 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1780 set_gdbarch_*() calls now use x86-64 specific functions
1781 instead of DWARF2 CFI ones.
1782 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1783 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1784 (x86_64_init_extra_frame_info): New prototypes.
1785
1786 2002-10-23 David Carlton <carlton@math.stanford.edu>
1787
1788 * linespec.c: #include "parser-defs.h".
1789 Delete prototype for find_template_name_end.
1790 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1791
1792 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1793
1794 * NEWS: add recent mi fixes.
1795 * varobj.c (struct varobj): Add new "updated" flag.
1796 (new_variable): Default "updated" flag to 0.
1797 (varobj_set_value): Set "updated" flag to 1 if value
1798 changes.
1799 (varobj_update): Check varobj "updated" flag before
1800 comparing old and refreshed values. Fix for
1801 PR gdb/702.
1802
1803 2002-10-23 David Carlton <carlton@math.stanford.edu>
1804
1805 * parse.c (parse_exp_1): Use BLOCK_START.
1806 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1807 SYMBOL_BLOCK_VALUE.
1808 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1809
1810 2002-10-23 David Carlton <carlton@math.stanford.edu>
1811
1812 * symtab.c: Delete cplusplus_hint.
1813 Delete prototype for find_template_name_end.
1814
1815 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * symtab.h: Update comment.
1818
1819 2002-10-23 Michael Snyder <msnyder@redhat.com>
1820
1821 * printcmd.c (address_info): Restore quotes in output.
1822 * valops.c (value_of_local): Restore quotes in error message.
1823
1824 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1825
1826 * symtab.c (symbol_demangled_name): New function.
1827 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1828 turning most of it into a function.
1829 (symbol_demangled_name): Export.
1830
1831 2002-10-23 Michael Snyder <msnyder@redhat.com>
1832
1833 * valops.c (value_of_local): Restore quotes in error message.
1834
1835 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1836
1837 * symtab.c (symbol_init_language_specific): New function.
1838 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1839 turning most of it into a function.
1840 (symbol_init_language_specific): Export.
1841
1842 2002-10-23 David Carlton <carlton@math.stanford.edu>
1843
1844 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1845 (dwarf_attr_name): Ditto.
1846 (dwarf_type_encoding_name): Ditto.
1847 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1848 (process_die): Handle DW_TAG_namespace,
1849 DW_TAG_imported_declaration, DW_TAG_imported_module.
1850 (read_namespace): New function.
1851
1852 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1853
1854 * configure.in: Define NEW_PROC_API on Interix too.
1855 * configure: Regenerate.
1856
1857 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1858
1859 * configure: Regenerate using the proper version of autoconf.
1860
1861 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1862
1863 * findvar.c (read_var_value): Temporarily disable TLS code, until
1864 complete TLS support is added.
1865
1866 2002-10-21 Jim Blandy <jimb@redhat.com>
1867 Elena Zannoni <ezannoni@redhat.com>
1868
1869 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1870 for thread local storage locations.
1871 (struct symbol): Add objfile field.
1872 (SYMBOL_OBJFILE): Define.
1873 * dwarf2read.c (is_thread_local): New static variable.
1874 (new_symbol): If variable is in thread local fill in address class
1875 and objfile appropriately.
1876 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1877 stack operation.
1878 * printcmd.c (address_info): Print the information for thread
1879 local storage variable.
1880 * findvar.c (read_var_value): In case of thread local variable,
1881 defer to the target vector code to compute address.
1882
1883 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1884
1885 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1886 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1887
1888 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1889
1890 * symtab.h (address_class): Rename
1891 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1892 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1893 * printcmd.c (address_info): Ditto.
1894 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1895
1896 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1897
1898 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1899 DBREG_DRX macro to acces debug registers.
1900
1901 * Makefile.in (i386obsd-tdep.o): New target.
1902
1903 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1904 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1905
1906 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1907 * config/i386/obsd.mt: New file.
1908 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1909 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1910 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1911 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1912 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1913 * i386obsd-tdep.c: New file.
1914
1915 2002-10-19 Adam Fedor <fedor@gnu.org>
1916
1917 * objc-exp.y (name_not_typename): Fix invalid comment.
1918
1919 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1920
1921 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1922 to allocate partial syms and macro byte caches.
1923
1924 2002-10-18 David Carlton <carlton@math.stanford.edu>
1925
1926 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1927
1928 2002-10-18 Adam Fedor <fedor@gnu.org>
1929
1930 * stabsread.c (find_name_end): New function.
1931 (define_symbol): Use it.
1932
1933 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1936 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1937 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1938 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1939
1940 2002-10-17 David Carlton <carlton@math.stanford.edu>
1941
1942 * symfile.h: Add opaque declaration for struct obstack.
1943 Declare obsavestring to take a const char *.
1944 * symfile.c (obsavestring): Make first argument a const char *.
1945
1946 2002-10-16 Adam Fedor <fedor@gnu.org>
1947
1948 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1949 names when matching breakpoints in current file.
1950
1951 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1952
1953 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1954 (read_tag_pointer_type): Add address class support.
1955 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1956 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1957 New methods.
1958 * gdbarch.h, gdbarch.c: Regenerate.
1959 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1960 (make_type_with_address_space, recursive_type_dump): Add address
1961 class support.
1962 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1963 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1964 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1965
1966 2002-10-16 Klee Dienes <kdienes@apple.com>
1967
1968 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1969 to get the last character of a char[] buffer, not
1970 name[sizeof(vptr_name)-1].
1971
1972 2002-10-14 Adam Fedor <fedor@gnu.org>
1973
1974 * symtab.h: New objc_specific struct.
1975 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1976 (SYMBOL_DEMANGLED_NAME): Likewise.
1977
1978 2002-10-14 Adam Fedor <fedor@gnu.org>
1979
1980 * symfile.c (init_filename_language_table): Add ObjC file extension.
1981
1982 2002-10-14 Adam Fedor <fedor@gnu.org>
1983
1984 * utils.c (puts_filtered_tabular): New function.
1985 (fprintf_symbol_filtered): Get ObjC demangled name.
1986 * defs.h (puts_filtered_tabular): Declared.
1987
1988 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1989
1990 * c-lang.h (c_type_print_varspec_prefix): Delete.
1991 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1992 ``need_post_space'' parameter. Adjust all callers.
1993
1994 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1995
1996 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1997 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1998 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1999 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2000
2001 2002-10-13 Adam Fedor <fedor@gnu.org>
2002
2003 * source.c (print_source_lines): Update comments.
2004
2005 2002-10-13 Adam Fedor <fedor@gnu.org>
2006
2007 * valops.c (value_of_local): New function.
2008 (value_of_this): Use it.
2009 * value.h (value_of_local): Declared.
2010
2011 2002-10-13 Adam Fedor <fedor@gnu.org>
2012
2013 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2014 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2015
2016 2002-10-12 Adam Fedor <fedor@gnu.org>
2017
2018 * language.c (binop_result_type): Add language_objc to case.
2019 (integral_type): Likewise.
2020 (character_type): Likewise.
2021 (string_type): Likewise.
2022 (boolean_type): Likewise.
2023 (structured_type): Likewise.
2024 (binop_type_check): Likewise.
2025
2026 2002-10-11 Adam Fedor <fedor@gnu.org>
2027
2028 * printcmd.c (address_info): Print 'self' for ObjC.
2029
2030 2002-10-11 Adam Fedor <fedor@gnu.org>
2031
2032 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2033 OP_SELF.
2034
2035 2002-10-11 Adam Fedor <fedor@gnu.org>
2036
2037 * language.h (CAST_IS_CONVERSION): Add language_objc.
2038
2039 2002-10-11 Adam Fedor <fedor@gnu.org>
2040
2041 * defs.h (enum language): Add language_objc.
2042
2043 2002-10-11 Klee Dienes <kdienes@apple.com>
2044
2045 * corefile.c (read_memory_typed_address): New function.
2046 * gdbcore.h (read_memory_typed_address): Add prototype.
2047 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2048 to read a value destined for a CORE_ADDR, not read_memory_integer.
2049 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2050 (f77_get_dynamic_lowerbound): Ditto.
2051
2052 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2053
2054 * utils.c (string_to_core_addr): After turning string into
2055 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2056 which will do necessary sign-extension, etc.
2057
2058 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2059
2060 * c-exp.y (THIS): Delete token and grammar rule.
2061 (yylex): Don't return THIS.
2062 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2063 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2064 * demangle.c (cplus_markers): Update comment. Put '$'
2065 first. Remove CPLUS_MARKER.
2066 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2067 * jv-exp.y (THIS): Delete token and grammar rule.
2068 (yylex): Don't return THIS.
2069 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2070 * objc-exp.y (THIS): Delete token and grammar rule.
2071 (yylex): Don't return THIS.
2072 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2073 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2074 (read_member_functions): Likewise for opname.
2075 (read_tilde_fields): Use is_cplus_marker.
2076
2077 * defs.h (CPLUS_MARKER): Don't define.
2078 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2079 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2080 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2081 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2082 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2083
2084 * config/i386/tm-i386v4.h: Delete file.
2085 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2086 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2087 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2088 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2089 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2090 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2091 * config/i386/i386v4.mt (TM_FILE): Likewise.
2092 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2093
2094 2002-10-10 Marko Mlinar <markom@opencores.org>
2095
2096 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2097 accidentially not commited 2002-10-09
2098 * gdbarch.h, gdbarch.c: Re-generate.
2099
2100 2002-10-09 Marko Mlinar <markom@opencores.org>
2101
2102 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2103 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2104 * gdbarch.h, gdbarch.c: Re-generate.
2105
2106 2002-10-08 Petr Sorfa <petrs@caldera.com>
2107
2108 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2109
2110 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2111 so we can work on more than one compilation unit at a time. This
2112 helps prepare GDB to handle inter-CU die references.
2113 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2114 the code to be defined before struct comp_unit_head.
2115 (comp_unit_head): Added new members - offset, cu_head,
2116 begin_die, next and dwarf2_abbrevs.
2117 (dwarf2_abbrevs): Removed single static var; now member of
2118 struct comp_unit_head.
2119 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2120 members.
2121 (psymtab_to_symtab_1): Changed to work with the new
2122 struct comp_unit_head.
2123 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2124 constructs the dwarf2_abbrevs[] inside the cu_header.
2125 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2126 dwarf2_abbrev table to clean up.
2127 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2128 handling of dwarf2_abbrevs inside the cu_header.
2129 (read_partial_die): Now supports the call to the new
2130 dwarf2_lookup_abbrev.
2131 (read_full_die): Now supports the call to the new
2132 dwarf2_lookup_abbrev.
2133
2134 2002-10-06 Christopher Faylor <cgf@redhat.com>
2135
2136 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2137 insure that shell variables, such as "transformed_name" are propagated
2138 to later shell statements in rule.
2139
2140 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2141
2142 * config/i386/nm-i386sco.h: Add protection against
2143 multiple-inclusion. Include "i386/nm-i386v.h".
2144 (REGISTER_U_ADDR): Remove define.
2145 (i386_register_u_addr): Remove prototype.
2146
2147 2002-10-04 Michael Snyder <msnyder@redhat.com>
2148
2149 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2150 before treating it as a single-step event.
2151
2152 2002-10-03 Adam Fedor <fedor@gnu.org>
2153
2154 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2155 (objc_demangle): Remove assignment in if statements, Replace
2156 free with xfree.
2157 (add_msglist): Likewise.
2158 (end_msglist): Likewise.
2159 (complare_selectors): Likewise.
2160 (selectors_info): Likewise.
2161 (compare_classes): Likewise.
2162 (classes_info): Likewise.
2163 (print_object_command): Likewise.
2164 (find_objc_msgcall_submethod): Replace PTR with void *.
2165 * objc-lang.h: Remove check for __STDC__.
2166
2167 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2168
2169 * ui-out.h (ui_out_field_fmt_int): New prototype.
2170 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2171 of field width and alignment.
2172 * stack.c (print_frame_info_base): When printing frame level, use
2173 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2174 PR gdb/192
2175
2176 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2177
2178 * MAINTAINERS: Add self to Write After Approval list.
2179
2180 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2181
2182 * infcmd.c (interrupt_target_command_wrapper): Delete.
2183 (interrupt_target_command): Make non static.
2184 (nofp_registers_info): Make static.
2185 * stack.c (return_command_wrapper): Delete.
2186 (return_command): Make non static.
2187
2188 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2189
2190 * event-top.c (gdb_setup_readline): New function. Code moved from
2191 _initialize_event_loop().
2192 (_initialize_event_loop): Call gdb_setup_readline().
2193
2194 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2195
2196 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2197 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2198 * gdbarch.h, gdbarch.c: Re-generate.
2199
2200 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2201
2202 Fix PR gdb/778
2203 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2204 before recursing.
2205 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2206 of fill_in_vptr_fieldno.
2207
2208 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2209
2210 * inferior.h (registers_info, stepi_command, nexti_command,
2211 continue_command, interrupt_target_command): Export from infcmd.c.
2212 * frame.h (args_info, selected_frame_level_changed_hook,
2213 return_command): Export from stack.c.
2214 * v850ice.c (stepi_command, nexti_command, continue_command): use
2215 prototypes from inferior.h.
2216 * tracepoint.c (registers_info, args_info, locals_info): Use
2217 prototypes from frame.h and inferior.h.
2218 * Makefile.in (mi-main.o): Add dependency on frame.h.
2219
2220 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2221
2222 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2223 value in register 3 adjusted by ppc_gp0_regnum.
2224
2225 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2226
2227 2002-10-02 Marko Mlinar <markom@opencores.org>
2228
2229 * MAINTAINERS: Add myself to the Write After Approval list.
2230
2231 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2232
2233 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2234 of the section for the N64 ABI, fixed.
2235
2236 * config/mips/tm-irix6.h: Include solib.h.
2237
2238 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2239
2240 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2241 GNU operators.
2242
2243 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2244
2245 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2246 and that "mi0" syntax has been removed.
2247
2248 2002-09-30 David Carlton <carlton@math.stanford.edu>
2249
2250 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2251 * ppc-sysv-tdep.c: #include "gdb_string.h".
2252 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2253 pacify GCC.
2254
2255 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2256
2257 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2258 "vrsave"'s register number.
2259
2260 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2261
2262 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2263 use frame_unwind_signed_register to obtain the PC.
2264 (mips_frame_chain): Handle a generic dummy frame.
2265 (mips_init_extra_frame_info): When a generic dummy frame, don't
2266 re-compute the frame base.
2267 (mips_pop_frame): Handle generic dummy frames.
2268 (mips_gdbarch_init): When generic dummy frames, set
2269 use_generic_dummy_frames, push_dummy_frame to
2270 generic_push_dummy_frame, pc_in_call_dummy to
2271 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2272 generic_save_dummy_frame_tos.
2273
2274 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2275
2276 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2277 against TOP when TOP was explictly set.
2278 (generic_push_dummy_frame): Set TOP to zero.
2279
2280 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2281
2282 * event-loop.c (start_event_loop): Rename variable 'result' to
2283 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2284
2285 2002-09-30 Keith Seitz <keiths@redhat.com>
2286
2287 * gdb-events.sh (selected_thread_changed): New event.
2288 * gdb-events.c: Regenerated.
2289 * gdb-events.h: Regenerated.
2290
2291 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2292
2293 * MAINTAINERS: Add self to Write After Approval list.
2294
2295 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2296
2297 * disasm.c: New file.
2298 * disasm.h: New file.
2299 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2300 (compare_lines): Ditto.
2301 (dump_insns): Ditto.
2302 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2303 argument.
2304 (do_assembly_only): Ditto.
2305 (do_disassembly): Renamed to gdb_disassembly and moved to
2306 disasm.c. Sdded uiout argument.
2307 * Makefile.in: Add new files. Reorder SFILES list. Update
2308 dependencies. Include libgdb.a later in the insight executable.
2309
2310 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2311
2312 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2313 bfd/elf64-alpha-fbsd.c.
2314
2315 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2316
2317 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2318 i386gnu-tdep.c.
2319
2320 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2321
2322 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2323 __FUNCTION__.
2324 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2325 function name.
2326 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2327 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2328 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2329 (S_msg_sig_post_reply): Ditto.
2330
2331 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2332
2333 * sh-tdep.c (sh_use_struct_convention): Use definition according
2334 to ABI.
2335 (sh_push_arguments): Store in register with correct endianess.
2336 (sh_default_store_return_value): Ditto.
2337 (sh_gdbarch_init): Set sizeof long double to 8.
2338
2339 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2340
2341 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2342 Fix some whitespace problems.
2343
2344 2002-09-27 David Carlton <carlton@math.stanford.edu>
2345
2346 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2347 (mcore-tdep.o): Ditto.
2348 (ns32k-tdep.o): Ditto.
2349 (ns32knbsd-tdep.o): Ditto.
2350 (sh3-rom.o): Ditto.
2351 (vax-tdep.o): Ditto.
2352 * cris-tdep.c: #include "gdb_string.h"
2353 * mcore-tdep.c: Ditto.
2354 * ns32k-tdep.c: Ditto.
2355 * ns32knbsd-tdep.c: Ditto.
2356 * sh3-rom.c: Ditto.
2357 * vax-tdep.c: Ditto.
2358
2359 2002-09-27 David Carlton <carlton@math.stanford.edu>
2360
2361 * config/djgpp/fnchange.lst: Add entries for
2362 gdb/testsuite/gdb.c++/m-static files.
2363
2364 2002-09-27 Jim Wilson <wilson@redhat.com>
2365
2366 * MAINTAINERS: Add myself to the Write After Approval list.
2367
2368 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2369
2370 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2371
2372
2373 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2374
2375 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2376 frame.
2377
2378 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2379
2380 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2381 (rs6000_struct_return_address): Delete variable.
2382 (rs6000_store_struct_return): Update.
2383 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2384 deprecated_extract_struct_value_address.
2385 (rs6000_frame_align): New function.
2386 (rs6000_gdbarch_init): Set frame_align.
2387
2388 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2389
2390 From Grace Sainsbury <graces@redhat.com>:
2391 * Makefile.in (gdbtk-main.o): New target.
2392 (gdb.o): New target.
2393 (main_h): Define.
2394 (main.o): Update dependencies.
2395 (gdb$(EXEEXT)): Add gdb.o.
2396 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2397 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2398 (SUBDIR_GDBTK_CLEAN): Set.
2399 (install-gdbtk): Install the insight binary.
2400 (uninstall-gdbtk): New target.
2401 (all-gdbtk, clean-gdbtk): New rule.
2402 * top.c (use_windows): Default to zero.
2403 * main.c: Include "main.h".
2404 (main): Delete.
2405 (struct captured_main_args): Delete.
2406 (gdb_main): New function.
2407 * main.h: New file.
2408 * gdb.c: New File.
2409
2410 2002-09-25 Andrew Cagney <cagney@redhat.com>
2411
2412 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2413 (frame_map_regnum_to_name): New function.
2414 (frame_map_name_to_regnum): New function.
2415 * frame.h (frame_map_name_to_regnum): Declare.
2416 (frame_map_regnum_to_name): Declare.
2417 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2418 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2419 * parse.c: Do not include "builtin-regs.h".
2420 (target_map_name_to_register): Delete function.
2421 (write_dollar_variable): Use frame_map_name_to_regnum.
2422 * parser-defs.h (target_map_name_to_register): Delete declaration.
2423 * expprint.c: Include "frame.h".
2424 (print_subexp): Use frame_map_regnum_to_name.
2425 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2426 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2427
2428 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2429
2430 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2431 wasn't saved, and the next innermost frame is a dummy, return the
2432 dummy frame's link register.
2433
2434 2002-09-24 Jim Blandy <jimb@redhat.com>
2435
2436 Fix from Paul Breed:
2437 * main.c (captured_main): Add a `break' after the case for 'b'.
2438
2439 2002-09-24 Keith Seitz <keiths@redhat.com>
2440
2441 * varobj.c (c_type_of_child): Use get_target_type instead
2442 of TYPE_TARGET_TYPE.
2443
2444 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2445
2446 * source.c (get_current_or_default_source_symtab_and_line): Remove
2447 function.
2448 (set_default_source_symtab_and_line): New function. Attempts to
2449 determine a source file to list lines from if one is not currently
2450 defined.
2451 (get_current_source_symtab_and_line): Initialize sal.pc and
2452 sal.end fields.
2453 (set_current_source_symtab_and_line): Mark argument as const.
2454 * source.h: Update declarations and comments.
2455 * linespec.c (decode_line_1): Replace call to removed routine above.
2456 * stack.c (print_frame_info_base): Ditto.
2457 * cli/cli-cmds.c (edit_command): Ditto.
2458 (list_command): Ditto.
2459
2460 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2461
2462 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2463 sal.pc and sal.end fields.
2464 (get_current_or_default_source_symtab_and_line): Ditto.
2465 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2466 so we do not cause a new source symtab to be searched for (reverting an
2467 unintentional change from the 2002-09-20 patch).
2468 * scm-lang.c (scm_unpac): Ditto.
2469
2470 2002-09-21 Andrew Cagney <cagney@redhat.com>
2471
2472 * complaints.c (symfile_explanations): Remove new-line from
2473 ``isolated_message''.
2474 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2475 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2476
2477 2002-09-20 Nick Clifton <nickc@redhat.com>
2478
2479 * NEWS: Announce that V850EA ISA is no longer supported.
2480 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2481
2482 2002-09-20 David Carlton <carlton@math.stanford.edu>
2483
2484 * Makefile.in (c-lang.o): Correct dependencies.
2485 (utils.o): Gather dependencies.
2486 (charset.o): Move.
2487 * c-lang.c: #include "gdb_string.h"
2488
2489 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2490
2491 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2492 * cli/cli-cmds.c (list_command): New function. Implements the new
2493 cli edit command.
2494 (_init_cli_cmds): Add new command definition.
2495 * gdb.1: Document edit command.
2496 * doc/gdb.texinfo: Document edit command.
2497
2498 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2499
2500 * source.c: Make global variables current_source_symtab and
2501 current_source_line static.
2502 (list_command): Moved to cli/cli-cmds.c.
2503 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2504 (get_first_line_listed): New accessor function.
2505 (get_lines_to_list): New accessor function.
2506 (get_current_source_symtab_and_line): New function. Retrieves the
2507 position in the source code that we consider current.
2508 (get_current_or_default_source_symtab_and_line): New function.
2509 Like the above but attempts to determine a default position if one
2510 is not currently defined.
2511 (set_current_source_symtab_and_line): New function. Sets the source
2512 code position considered current and returns the previously set one.
2513 (clear_current_source_symtab_and_line): Reset stored information about
2514 a current source line.
2515 (_initialize_source): Remove registration for the "list" command and
2516 its alias.
2517 * source.h: Add declarations for the new functions above.
2518 * symtab.h: Remove declarations for the global variables mentioned
2519 above.
2520 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2521 obtain current source line.
2522 * linespec.c (decode_line_1): Ditto.
2523 * macroscope.c (default_macro_scope): Ditto.
2524 * scm-lang.c (scm_unpac): Ditto.
2525 * stack.c (print_frame_info_base): Ditto.
2526 * symfile.c (clear_symtab_users): Ditto.
2527 * symtab.c (decode_line_spec): Ditto.
2528 * cli/cli-cmds.c (list_command): Moved here from source.c.
2529 (ambiguous_line_spec): Moved here from source.c.
2530 (_init_cli_cmds): Add definition for "list" and its alias.
2531 * Makefile.in: Update dependencies.
2532
2533 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2534
2535 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2536 with what gcc thinks is correct.
2537
2538 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2539
2540 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2541 multiple register push instruction.
2542
2543 2002-09-19 Jim Blandy <jimb@redhat.com>
2544
2545 Add support for distinct host and target character sets.
2546 * charset.c, charset.h: New files.
2547 * c-exp.y: #include "charset.h".
2548 (yylex): Convert character and string literals to the target
2549 character set, before returning them as the semantic value of the
2550 token.
2551 * c-lang.c: #include "charset.h".
2552 (c_emit_char): Use charset-specific methods to recognize
2553 characters with backslash escape forms, to decide which characters
2554 to print literally and which to print using numeric escape
2555 sequences, and to convert target characters to host characters
2556 before printing.
2557 * utils.c: #include "charset.h".
2558 (no_control_char_error): New function.
2559 (parse_escape): Use charset-specific methods to recognize
2560 backslash escapes, parse `control character' notation, and convert
2561 characters from the host character set to the target character set.
2562 * configure.in: Set the default host character set.
2563 Check where to find iconv, and what its argument types might be.
2564 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2565 * Makefile.in (SFILES): List charset.c.
2566 (COMMON_OBS): List charset.o.
2567 (charset.o): New rule.
2568 (charset_h): New header dependency variable.
2569 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2570 (LIBICONV): New variable, set by configure.
2571 (CLIBS): Include $(LIBICONV) here.
2572 * aclocal.m4, config.in, configure: Regenerated.
2573
2574 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2575
2576 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2577 bison 1.35 warning.
2578
2579 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2580
2581 * gdb_mbuild.sh: New file.
2582
2583 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2584
2585 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2586
2587 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2588
2589 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2590 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2591 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2592 valops.c, value.h: Revert previous change.
2593
2594 2002-09-18 Michael Snyder <msnyder@redhat.com>
2595
2596 Preliminary support for Objective-C:
2597 * defs.h (language_objc): New enum value.
2598 (puts_filtered_tabular): Declaration only, exported from utils.c.
2599 (skip_quoted): Delete, declared in completer.h.
2600 * c-exp.y: Include completer.h.
2601 * p-exp.y: Ditto.
2602 * jv-exp.y: Ditto.
2603 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2604 New operator enum values.
2605 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2606 * language.c (binop_result_type): Handle language_objc case.
2607 (integral_type, character_type, string_type, boolean_type,
2608 structured_type, binop_type_check): Ditto.
2609 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2610 (struct objc_specific): Add to general_symbol_info.
2611 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2612 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2613 * parser-defs.h (struct objc_class_str): New struct type.
2614 (start_msglist, end_msglist, add_msglist): Declaration only,
2615 exported from objc-lang.c.
2616 * value.h (value_of_local, value_nsstring,
2617 call_function_by_hand_expecting_type): Exported from valops.c.
2618 * valops.c (find_function_addr): Export.
2619 (call_function_by_hand_expecting_type): New function.
2620 (value_of_local): New function.
2621 * symfile.c (init_filename_language_table): Add ".m" extension
2622 for Objective-C.
2623 * utils.c (puts_filtered_tabular): New function.
2624 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2625 (set/show demangle): Extend help-string to refer to ObjC.
2626 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2627 * stabsread.c (symbol_reference_defined): Objective-C symbols
2628 may contain colons: make allowances when scanning stabs strings
2629 for colons.
2630 (objc_find_colon): New function.
2631 * printcmd.c (address_info): If language == objc then print
2632 "self" instead of "this".
2633 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2634 OP_NSSTRING, and OP_SELF.
2635 (prefixify_subexp): Ditto.
2636 * source.c (print_source_lines): Mention objc in comment.
2637 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2638 method names.
2639
2640 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2641
2642 * complaints.h: Update copyright.
2643 (struct complaints): Declare.
2644 (struct complaint): Make `message' constant.
2645 (internal_complaint): Declare.
2646 (complaint): Declare.
2647 (complaint_root): Delete declaration.
2648 (symfile_complaints): Delete declaration.
2649 (struct complaints): Add opaque declaration.
2650 (clear_complaints): Add a complaints parameter.
2651 * complaints.c: Update copyright.
2652 (enum complaint_series): Define.
2653 (complaint_root): Delete.
2654 (struct complaints): Define.
2655 (complaint_sentinel, symfile_complaint_book): New variables.
2656 (symfile_explanations, symfile_complaints): New variables.
2657 New variables.
2658 (get_complaints): New function.
2659 (vcomplaint): New function.
2660 (complaint): New function.
2661 (internal_complaint): New function.
2662 (complain): Call vcomplain with symfile_complaint.
2663 (clear_complaints): Rewrite.
2664 (_initialize_complaints): Use add_setshow_command.
2665 * Makefile.in (complaints.o): Update dependencies.
2666 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2667 to call to clear_complaints.
2668 (new_symfile_objfile, reread_symbols): Ditto.
2669 (oldsyms_complaint): Delete.
2670 (empty_symtab_complaint, unknown_option_complaint): Delete.
2671 (free_named_symtabs): Use complaint instead of complain.
2672
2673 2002-09-18 Michael Snyder <msnyder@redhat.com>
2674
2675 Contributed by Apple Computer, Inc. Merged with current sources
2676 by Adam Fedor <fedor@doc.com> [cagney].
2677
2678 * objc-lang.c: First clean-up round: comments, indentation.
2679 * objc-lang.h: Ditto.
2680 * objc-lang.y: Ditto.
2681
2682 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2683
2684 * maint.c (maintenance_internal_error): Print the parameter as the
2685 error message.
2686 (maintenance_internal_warning): New function.
2687 (_initialize_maint_cmds): Add command `maint internal-warning'.
2688
2689 * defs.h (internal_warning, internal_vwarning): Declare.
2690 * utils.c (struct internal_problem): Define.
2691 (internal_vproblem): New function.
2692 (internal_warning): New function.
2693 (internal_vwarning): New function.
2694 (internal_warning_problem, internal_error_problem): New variables.
2695 (internal_verror): Just call internal_vproblem.
2696
2697 2002-09-18 Michael Snyder <msnyder@redhat.com>
2698
2699 * objc-lang.c: New file, support for Objective-C.
2700 Preliminary check-in, not yet integrated into gdb.
2701 * objc-lang.h: New file.
2702 * objc-exp.y: New file.
2703
2704 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2705
2706 * infrun.c (signal_stop_update): Convert definition to ISO C.
2707 (signal_print_update): Ditto.
2708 (signal_pass_update): Ditto.
2709 * inflow.c (terminal_save_ours): Ditto.
2710
2711 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2712 comments.
2713
2714 * config/djgpp/fnchange.lst: Handle name clashes between
2715 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2716 bfd/coff-tic80.c.
2717
2718 * i386-linux-tdep.h: Fix tipo.
2719
2720 2002-09-18 Adam Fedor <fedor@gnu.org>
2721
2722 * MAINTAINERS: Add myself to the Write After Approval list.
2723
2724 2002-09-18 Jim Blandy <jimb@redhat.com>
2725
2726 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2727 texthigh and textlow to reader-specific structs caused
2728 objfile_relocate to miss them. This is fixable, but the work that
2729 the change was supposed to prepare GDB for never got done anyway.
2730
2731 2002-09-18 David Carlton <carlton@math.stanford.edu>
2732
2733 * MAINTAINERS: Alphabetize Write After Approval list.
2734
2735 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2736
2737 Fix PR gdb/709
2738 * values.c (value_static_field): Call read_var_value.
2739
2740 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2741
2742 * valops.c (hand_function_call): Align the initial stack pointer
2743 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2744 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2745 return value.
2746 * mips-tdep.c (mips_frame_align): New function.
2747 (mips_gdbarch_init): Set frame_align.
2748 * gdbarch.sh (FRAME_ALIGN): New method.
2749 * gdbarch.h, gdbarch.c: Re-generate.
2750
2751 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2752
2753 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2754 registers.
2755
2756 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2757
2758 * NEWS: Mention that MIPS $fp behavior changed.
2759 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2760 reference to FP_REGNUM.
2761 (mipsnbsd_cannot_store_register): Ditto.
2762 * mips-linux-nat.c: Update copyright.
2763 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2764 (mips_linux_cannot_store_register): Ditto.
2765 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2766 * config/mips/tm-mips.h: Update copyright.
2767 (FP_REGNUM): Delete macro.
2768 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2769 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2770 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2771 (mips_r3041_reg_names, mips_r3051_reg_names)
2772 (mips_r3081_reg_names): Replace "fp" with "".
2773 Fix PR gdb/480.
2774
2775 2002-09-17 Theodore A. Roth <troth@verinet.com>
2776
2777 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2778 generic_read_register_dummy() (PR gdb/703).
2779 (avr_push_return_address): #if 0 out unused vars.
2780 (avr_gdbarch_init): Enable use of avr_push_return_address().
2781
2782 2002-09-17 Michael Snyder <msnyder@redhat.com>
2783
2784 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2785 RTE will take care of it.
2786
2787 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2788
2789 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2790 invalid, return SP_REGNUM.
2791
2792 2002-09-17 Michael Snyder <msnyder@redhat.com>
2793
2794 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2795 point registers without sign extension.
2796
2797 2002-09-17 Andrew Cagney <cagney@redhat.com>
2798
2799 * blockframe.c (deprecated_read_register_dummy): Rename
2800 generic_read_register_dummy.
2801 * frame.c (frame_unwind_signed_register): New function.
2802 (frame_unwind_unsigned_register): New function.
2803 * frame.h (frame_unwind_signed_register): Declare.
2804 (frame_unwind_unsigned_register): Declare.
2805 (deprecated_read_register_dummy): Rename
2806 generic_read_register_dummy.
2807
2808 * h8300-tdep.c (h8300_frame_chain): Update.
2809 (h8300_frame_saved_pc): Update.
2810 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2811 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2812 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2813 (s390_frame_chain): Update.
2814 * v850-tdep.c (v850_find_callers_reg): Update.
2815 (v850_frame_saved_pc): Update.
2816 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2817 (m32r_find_callers_reg): Update.
2818 (m32r_frame_saved_pc): Update.
2819 * sh-tdep.c (sh_find_callers_reg): Update.
2820 (sh64_get_saved_pr): Update.
2821 (sh_init_extra_frame_info): Update.
2822 (sh_init_extra_frame_info): Update.
2823 (sh64_init_extra_frame_info): Update.
2824 (sh64_init_extra_frame_info): Update.
2825 * mcore-tdep.c (mcore_find_callers_reg): Update.
2826 (mcore_frame_saved_pc): Update.
2827 (mcore_init_extra_frame_info): Update.
2828 * i386-tdep.c (i386_frame_saved_pc): Update.
2829 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2830 (ia64_init_extra_frame_info): Update.
2831 (ia64_init_extra_frame_info): Update.
2832 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2833 * cris-tdep.c (cris_init_extra_frame_info): Update.
2834 * avr-tdep.c (avr_frame_chain): Update.
2835 (avr_init_extra_frame_info): Update.
2836 (avr_frame_saved_pc): Update.
2837 * arm-tdep.c (arm_find_callers_reg): Update.
2838 (arm_init_extra_frame_info): Update.
2839 (arm_frame_saved_pc): Update.
2840
2841 2002-09-17 Tom Tromey <tromey@redhat.com>
2842
2843 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2844 is "'".
2845
2846 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2847
2848 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2849 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2850 NEXT_PROLOGUE_INSN.
2851 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2852 NEXT_PROLOGUE_INSN.
2853
2854 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2855
2856 * osfsolib.c: Remove file, replaced by solib-osf.c.
2857 * Makefile.in: Remove compilation rules for osfsolib.c.
2858
2859 2002-09-16 David Carlton <carlton@math.stanford.edu>
2860
2861 * cp-valprint.c (cp_print_class_method): Correct args to
2862 check_stub_method_group.
2863
2864 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2865
2866 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2867 `set architecture'. Unify naming convention of functions.
2868 (h8300_skip_prologue): Improve prologue analysis.
2869 (h8300_push_arguments): Rewritten to more closely match GCC's
2870 bizarre argument-passing behavior, along with the comment describing
2871 said behavior.
2872 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2873 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2874 sim, remote-e7000.c, remote-hms.c and remote.c
2875
2876 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2877
2878 * i386-tdep.c (gdb_print_insn_i386): Removed.
2879 (i386_print_insn): New function.
2880 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2881 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2882 tm_print_insn_info.
2883
2884 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2885
2886 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2887 zero.
2888
2889 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2890
2891 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2892 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2893 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2894
2895 2002-09-13 Christopher Faylor <cgf@redhat.com>
2896
2897 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2898
2899 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2900
2901 * gdbtypes.c (check_stub_method): Make static.
2902 (check_stub_method_group): New function.
2903 * gdbtypes.h: Update prototypes.
2904 * cp-support.c: New file.
2905 * cp-support.h: New file.
2906
2907 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2908 (update_method_name_from_physname): New function.
2909 (read_member_functions): Correct method names for operators
2910 and v3 constructors/destructors. Separate v2 constructors and
2911 destructors.
2912 * Makefile.in (stabsread.o): Update dependencies.
2913 (SFILES): Add cp-support.c.
2914 (COMMON_OBS): Add cp-support.o.
2915 (cp_support_h, cp-support.o): Add.
2916
2917 * cp-valprint.c (cp_print_class_method): Call
2918 check_stub_method_group instead of check_stub_method. Remove
2919 extraneous QUITs.
2920 * p-valprint.c (pascal_object_print_class_method): Likewise.
2921 * valops.c (search_struct_method): Likewise.
2922 (find_method_list, value_struct_elt_for_reference): Likewise.
2923
2924 2002-09-13 Andrew Cagney <cagney@redhat.com>
2925
2926 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2927 * gdbarch.h, gdbarch.c: Regenerate.
2928
2929 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2930
2931 * frame.c (find_saved_register): Delete function.
2932 * frame.h (find_saved_register): Delete declaration.
2933 Fix PR gdb/631.
2934
2935 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2936
2937 * mips-tdep.c (read_next_frame_reg): Re-hack using
2938 frame_register_unwind.
2939
2940 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2941
2942 * mips-tdep.c (mips_get_saved_register): Re-hack using
2943 frame_register_unwind.
2944
2945 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2946
2947 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2948 vector. Will be useful for Interix.
2949 * gdbarch.h, gdbarch.c: Regenerate.
2950
2951 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2952 name of the malloc function by NAME_OF_MALLOC.
2953
2954 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2955
2956 * value.h (find_function_in_inferior): Add const keyword to
2957 one of the parameters. Allows us to invoke this function with
2958 a const char *.
2959 * valops.c (find_function_in_inferior): Likewise.
2960
2961 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2962
2963 * exec.c (xfer_memory): Fix compilation warning with old versions
2964 of GCC.
2965 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2966
2967 2002-09-12 David Carlton <carlton@math.stanford.edu>
2968
2969 * symtab.h: Run through gdb_indent.h.
2970 Add 2002 to Copyright year list.
2971
2972 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2973
2974 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2975 mach constants.
2976 * MAINTAINERS: Add myself to write after approval list.
2977
2978 2002-09-11 J. Brobecker <brobecker@gnat.com>
2979
2980 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2981
2982 2002-09-11 J. Brobecker <brobecker@gnat.com>
2983
2984 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2985 Interix.
2986
2987 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2988
2989 * procfs.c (do_detach): Clear current signal, not just fault.
2990 Corrects problem with breakpoint trap signal leaking to detached
2991 process on Tru64.
2992
2993 2002-09-10 Michael Snyder <msnyder@redhat.com>
2994
2995 * buildsym.c (finish_block): Protect against null pointer.
2996
2997 2002-09-10 Andrew Cagney <cagney@redhat.com>
2998
2999 * infcmd.c (default_print_registers_info): Send all output to
3000 ``file'' instead of ``gdb_stdout''.
3001
3002 2002-09-10 Michael Snyder <msnyder@redhat.com>
3003
3004 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3005 LONGEST, and use signed register read (addresses are sign-
3006 extended for mips).
3007
3008 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3009
3010 * event-loop.c (gdb_do_one_event): Make public.
3011 * event-loop.h (gdb_do_one_event): Declare.
3012
3013 2002-09-10 Jeff Law <law@redhat.com>
3014
3015 * infttrace.c (child_resume): Simplify and rework to avoid
3016 TT_PROC_CONTINUE.
3017
3018 2002-09-09 Fred Fish <fnf@intrinsity.com>
3019
3020 * printcmd.c (print_scalar_formatted): "len" is the number of
3021 target bytes, NOT the number of target bits.
3022
3023 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3024
3025 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3026 * top.c (init_main): Set rl_terminal_name.
3027
3028 2002-09-08 Aidan Skinner <aidan@velvet.net>
3029
3030 * ada-lang.c (ada_array_bound, ada_type_match,
3031 _initialize_ada_language): Fix K&R definitions.
3032 * ada-tasks.c (get_current_task): Fix K&R definitions.
3033 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3034
3035 2002-09-07 Christopher Faylor <cgf@redhat.com>
3036
3037 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3038 Add XP.
3039
3040 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3041
3042 * i386-tdep.c (i386_register_virtual_type,
3043 i386_register_convertible, i386_register_convert_to_virtual,
3044 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3045 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3046 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3047 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3048 Don't set push_arguments twice.
3049
3050 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3051 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3052 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3053 sigtramp_end to NULL.
3054 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3055 defines.
3056 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3057
3058 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3059 whitespace.
3060
3061 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3062 * gdbarch.h, gdbarch.c: Re-generate.
3063 * blockframe.c (find_pc_sect_partial_function): Convert to use
3064 SIGTRAMP_START_P predicate.
3065
3066 2002-09-05 Michael Snyder <msnyder@redhat.com>
3067
3068 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3069 generic_dummy_frame method and old method. Also distinguish
3070 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3071 (arm_extract_return_value): Use new regcache method.
3072
3073 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3074 adjustment that doesn't conform to the ABI.
3075 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3076 saved regcache, not from current regcache.
3077
3078 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3079
3080 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3081 * README: Update.
3082
3083 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3084
3085 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3086 if arm_apcs_32 is false.
3087
3088 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3089
3090 GDB 5.3 branch created.
3091
3092 2002-09-03 Theodore A. Roth <troth@verinet.com>
3093
3094 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3095 generic_unwind_get_saved_register.
3096
3097 2002-09-03 David Carlton <carlton@math.stanford.edu>
3098
3099 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3100 argument (PR gdb/653). Update call to smash_to_method_type.
3101 (read_structure_scope): Update call to dwarf2_add_member_fn.
3102
3103 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3104
3105 * x86-64-linux-tdep.c: Include gdb_string.h
3106 * x86-64-linux-nat.c: Ditto.
3107
3108 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3109
3110 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3111 when YYDEBUG is set to 1.
3112 * c-exp.y: Likewise.
3113 * f-exp.y: Likewise.
3114 * jv-exp.y: Likewise.
3115 * m2-exp.y: Likewise.
3116 * p-exp.y: Likewise.
3117
3118 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3119
3120 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3121 dependency list.
3122 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3123 solib_svr4_fetch_link_map_offsets to
3124 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3125 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3126 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3127 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3128 solib-svr4.o, and solib-legacy.o.
3129 * config/i386/tm-nbsd.h: Include solib.h.
3130
3131 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3132
3133 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3134 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3135 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3136 comment noting that this needs its own target configuration.
3137 * config/i386/nbsd.mt: New file.
3138 * config/i386/nbsdaout.mt: Remove.
3139 * config/i386/nbsdelf.mt: Ditto.
3140 * config/i386/tm-nbsdaout.h: Ditto.
3141
3142 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3143
3144 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3145 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3146 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3147 tdep->sigtramp_end.
3148 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3149 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3150 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3151
3152 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3153
3154 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3155 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3156 * i386-tdep.h (i386bsd_init_abi): New prototype.
3157 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3158 function declaration.
3159 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3160 for NetBSD-a.out or NetBSD-ELF.
3161 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3162 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3163 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3164 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3165 and nbsd-tdep.h.
3166 (i386nbsd_pc_in_sigtramp): New function.
3167 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3168 i386nbsd_pc_in_sigtramp.
3169 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3170 and i386nbsdelf_init_abi OS ABI handlers.
3171 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3172 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3173
3174 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3175
3176 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3177 registers if the target really has them.
3178
3179 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3180
3181 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3182 than nbsd-tdep.h.
3183
3184 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3185
3186 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3187 list.
3188 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3189 (alphanbsd_skip_sigtramp_frame): New functions.
3190 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3191 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3192 to alphanbsd_sigcontext_addr.
3193
3194 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3195
3196 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3197 list.
3198 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3199 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3200 nbsd_pc_in_sigtramp.
3201 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3202 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3203 * nbsd-tdep.c: Include gdb_string.h.
3204 (nbsd_pc_in_sigtramp): New function.
3205 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3206 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3207 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3208 ppcnbsd_pc_in_sigtramp.
3209 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3210 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3211 shnbsd_pc_in_sigtramp.
3212 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3213 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3214 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3215
3216 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3217
3218 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3219 watchpoints to NULL.
3220 (insert_breakpoints): set val field of watchpoints if NULL.
3221
3222
3223 2002-08-29 Jim Blandy <jimb@redhat.com>
3224
3225 * symtab.c (lookup_symbol_aux): In the cases where we find a
3226 minimal symbol of an appropriate name and use its address to
3227 select a symtab to read and search, use `name' (as passed to us)
3228 as the demangled name when searching the symtab's global and
3229 static blocks, not the minsym's name.
3230
3231 2002-08-29 Keith Seitz <keiths@redhat.com>
3232
3233 * stack.c (print_frame_info_base): Always set current_source_symtab
3234 and current_source_line.
3235
3236 2002-08-29 Donn Terry <donnte@microsoft.com>
3237
3238 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3239
3240 2002-08-28 Keith Seitz <keiths@redhat.com>
3241
3242 * stack.c (select_frame): Add FIXME concerning selected-frame
3243 events.
3244 (select_frame_command): Send selected-frame-level-changed
3245 event notification, but only if the level actually changed.
3246 (up_silently_base): Add selected-frame-level-changed event
3247 notification.
3248 (down_silently_base): Likewise.
3249
3250 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3251
3252 * Makefile.in: Update dependencies for all gdb/*.c files.
3253
3254 2002-08-27 Tom Tromey <tromey@redhat.com>
3255
3256 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3257 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3258 Update dependencies.
3259 * i387-tdep.c: Include gdb_string.h.
3260 * osabi.c: Likewise.
3261 * i386-linux-nat.c: Likewise.
3262 * lin-lwp.c: Likewise.
3263 * ax-gdb.c: Likewise.
3264 * signals/signals.c: Likewise.
3265 * jv-valprint.c: Likewise.
3266 * p-lang.c: Likewise.
3267 * c-valprint.c: Likewise.
3268 * cp-abi.c: Likewise.
3269
3270 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3271
3272 * cli/cli-script.h (copy_command_lines): Export.
3273 * breakpoint.c: Include cli/cli-script.h.
3274 * Makefile.in (breakpoint.o): Update dependencies.
3275
3276 2002-08-26 Michael Snyder <msnyder@redhat.com>
3277
3278 * breakpoint.c (insert_breakpoints): Protect all references
3279 to 'process_warning'. Shorten long lines.
3280
3281 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3282
3283 * cli/cli-script.c (copy_command_lines): New function.
3284 * defs.h (copy_command_lines): Export.
3285 * testsuite/gdb.base/commands.exp: New tests for commands
3286 attached to a temporary breakpoint, and for commands that
3287 delete the breakpoint they are attached to.
3288
3289 2002-08-26 Michael Snyder <msnyder@redhat.com>
3290
3291 * breakpoint.c (bpstat_stop_status): Instead of copying the
3292 pointer to the breakpoint commands struct, make a new copy
3293 of the struct and point to that.
3294 (bpstat_clear): Free the commands struct.
3295 (bpstat_clear_actions): Free the commands struct.
3296 (bpstat_do_actions): Free the command actions. Also execute
3297 the local cleanups, instead of deleting them.
3298 (delete_breakpoint): Leave the commands field of the bpstat
3299 chain alone -- it will be freed later.
3300
3301 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3302
3303 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3304 deleted in 2002-08-20 commit. This function is still used by
3305 ppc-linux-nat.c.
3306
3307 2002-08-26 Keith Seitz <keiths@redhat.com>
3308
3309 * gdb-events.sh: Add selected-frame-level-changed event.
3310 * gdb-events.c: Regenerated.
3311 * gdb-events.h: Regenerated.
3312
3313 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3314
3315 Fix PR gdb/393:
3316 * inflow.c (terminal_save_ours): New function to save terminal
3317 settings.
3318 * inferior.h (terminal_save_ours): Declare.
3319 * target.c (debug_to_terminal_save_ours): New function.
3320 (cleanup_target): Defaults to_terminal_save_ours.
3321 (update_current_target): Inherit to_terminal_save_ours.
3322 (setup_target_debug): Set to_terminal_save_ours.
3323 * target.h (target_terminal_save_ours): New to save terminal settings.
3324 (target_ops): New member to_terminal_save_ours.
3325 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3326 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3327 * inftarg.c (init_child_ops): Likewise.
3328 * m3-nat.c (init_m3_ops): Likewise.
3329 * procfs.c (init_procfs_ops): Likewise.
3330 * wince.c (init_child_ops): Likewise.
3331 * win32-nat.c (init_child_ops): Likewise.
3332 * sol-thread.c (init_sol_thread_ops): Likewise.
3333
3334 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3335
3336 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3337 use regcache_* functions.
3338 (i386_gdbarch_init): Set store_return_value instead of
3339 deprecated_store_return_value.
3340
3341 * regcache.c (regcache_raw_write_signed,
3342 regcache_raw_write_unsigned): New functions.
3343 * regcache.h (regcache_raw_write_signed,
3344 regcache_raw_write_unsigned): New prototypes.
3345
3346 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3347
3348 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3349 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3350 source file dependencies. Cleanup corresponding generator rules.
3351
3352 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3353
3354 * regcache.h (register_offset_hack): Declare.
3355 (regcache_cooked_read_using_offset_hack): Declare.
3356 (regcache_cooked_write_using_offset_hack): Declare.
3357
3358 * regcache.c (register_offset_hack): New function.
3359 (regcache_cooked_read_using_offset_hack): New function.
3360 (regcache_cooked_write_using_offset_hack): New function.
3361 (regcache_dump): Check that the registers, according to their
3362 offset, are packed hard against each other.
3363 (cooked_xfer_using_offset_hack): New function.
3364
3365 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3366
3367 * regcache.c (struct regcache_descr): Add field register_type.
3368 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3369 in as a parameter
3370 (init_regcache_descr): Initialize register_type. Pass the descr
3371 to init_legacy_regcache_descr. Use register_type instead of
3372 REGISTER_VIRTUAL_TYPE.
3373 (register_type): New function.
3374 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3375 * regcache.h (register_type): Declare.
3376
3377 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3378
3379 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3380 instead of deprecated_store_return_value. Fix fallout from
3381 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3382
3383 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3384
3385 * regcache.c (max_register_size): New function.
3386 (init_legacy_regcache_descr): Ensure that max_register_size is
3387 large enough for REGISTER_VIRTUAL_SIZE.
3388 * regcache.h (max_register_size): Declare.
3389
3390 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3391
3392 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3393 store_return_value.
3394 (e500_extract_return_value): Change type of valbuf pointer to
3395 void.
3396
3397 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3398
3399 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3400 workaround.
3401
3402 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3403 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3404 long long) to prevent compiler warning on 64-bit systems.
3405
3406 2002-08-23 Andrew Cagney <cagney@redhat.com>
3407
3408 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3409 (DEPRECATED_STORE_RETURN_VALUE): New method.
3410 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3411 * gdbarch.h, gdbarch.c: Re-generate.
3412
3413 * values.c (set_return_value): Pass current_regcache to
3414 STORE_RETURN_VALUE.
3415 * arch-utils.h (legacy_store_return_value): Declare.
3416 * arch-utils.c (legacy_store_return_value): New function.
3417 (legacy_extract_return_value): Update parameters.
3418
3419 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3420 STORE_RETURN_VALUE.
3421 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3422 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3423 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3424 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3425 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3426 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3427 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3428 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3429 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3430 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3431
3432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3433 * i386-tdep.c (i386_extract_return_value): Update.
3434 * arch-utils.c (legacy_extract_return_value): Update.
3435 * frv-tdep.c (frv_gdbarch_init): Update.
3436 * cris-tdep.c (cris_gdbarch_init): Update.
3437 * d10v-tdep.c (d10v_gdbarch_init): Update.
3438 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3439 * m68k-tdep.c (m68k_gdbarch_init): Update.
3440 * mcore-tdep.c (mcore_gdbarch_init): Update.
3441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3442 * s390-tdep.c (s390_gdbarch_init): Update.
3443 * sparc-tdep.c (sparc_gdbarch_init): Update.
3444 * sh-tdep.c (sh_gdbarch_init): Update.
3445 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3446 * v850-tdep.c (v850_gdbarch_init): Update.
3447 * avr-tdep.c (avr_gdbarch_init): Update.
3448 * ia64-tdep.c (ia64_gdbarch_init): Update.
3449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3450 * vax-tdep.c (vax_gdbarch_init): Update.
3451 * alpha-tdep.c (alpha_gdbarch_init): Update.
3452 * arm-tdep.c (arm_gdbarch_init): Update.
3453 * mips-tdep.c (mips_gdbarch_init): Update.
3454 * i386-tdep.c (i386_gdbarch_init): Update.
3455
3456 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3457
3458 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3459 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3460
3461 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3462
3463 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3464 problems.
3465
3466 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3467
3468 * infrun.c (handle_inferior_event): Move a comment outside of a
3469 function call, in order to avoid indent reformatting this part
3470 of the code in an unreadable way.
3471
3472 2002-08-23 Grace Sainsbury <graces@redhat.com>
3473
3474 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3475 when breakpoints fail. Move general breakpoint error messages to
3476 insert_breakpoints.
3477 * breakpoint.c (insert_breakpoints): Change warnings when
3478 breakpoints are nto inserted to specify the type. Remove call to
3479 memory_error when hardware breakpoints can't be inserted. Remove
3480 multiple calls to warning so all messages are sent to the user at
3481 once.
3482 (delete_breakpoints): Make insert error messsages more explicit.
3483
3484 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3485
3486 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3487 gdbserver/ChangeLog.
3488
3489 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3490
3491 * i386-tdep.c: Include "objfiles.h".
3492 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3493 skip_trampoline_code.
3494 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3495 (CPLUS_MARKER): Define to '.'.
3496
3497 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3498 member.
3499 (linux_corefile_thread_callback): Increase args->num_notes.
3500 (linux_make_note_section): Initialize thread_args.num_notes, and
3501 use it to determine whether notes for any threads were created.
3502
3503 2002-08-23 Donn Terry <donnte@microsoft.com>
3504
3505 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3506 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3507 and PCUNKILL.
3508 (write_with_trace): Conditionalize out the switch branch handling
3509 PCSHOLD if the corresponding macro is not defined. Likewise for
3510 PRSABORT and PRSTOP.
3511 This change will be needed by the Interix port.
3512
3513 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3514
3515 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3516 write_register wherever possible instead of manipulating the
3517 register bytes directly.
3518 Assign VALUE_CONTENTS to a variable and use that.
3519 The GPR numbers are now dependent on the architecture.
3520
3521 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3522
3523 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3524 ev_offset fields.
3525 (skip_prologue): Add support for BookE/e500 instructions.
3526 (e500_extract_return_value): New function.
3527 (frame_get_saved_regs): Add support for saving ev registers and
3528 pseudo gpr's.
3529 (e500_store_return_value): New function.
3530 (rs6000_gdbarch_init): Move up default intializations of
3531 deprecated_extract_return_value and store_return_value. Overwrite
3532 init of store_return_value with e500 specific version.
3533 Set extract_return_value for e500.
3534
3535 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3536
3537 * blockframe.c (generic_call_dummy_register_unwind): Use
3538 regcache_cooked_read to catch cases in which the variable is
3539 stored in a pseudo register.
3540
3541 2002-08-22 Andrew Cagney <cagney@redhat.com>
3542
3543 * NEWS: Mention that the i960 has been made obsolete.
3544 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3545 i960-tdep.c
3546 (remote-nrom.o): Obsolete target.
3547 (remote-nindy.o, i960-tdep.o): Ditto.
3548 * remote-nrom.c: Make file obsolete.
3549 * remote-nindy.c, remote-vx960.c: Ditto.
3550 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3551 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3552 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3553 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3554 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3555 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3556 i960-*-vxworks* obsolete.
3557 * MAINTAINERS: Note that the i960 is obsolete.
3558
3559 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3560
3561 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3562 detach to allow reinitialization.
3563
3564 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3565
3566 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3567 attempt).
3568
3569 2002-08-22 Jim Blandy <jimb@redhat.com>
3570
3571 * coffread.c (coff_symfile_read): Don't try to read the line
3572 number table from disk if the image file doesn't have a symbol
3573 table; we'll never actually look at the info anyway, and Windows
3574 ships DLL's with bogus file offsets for the line number data.
3575
3576 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3577
3578 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3579 an e500 executable.
3580
3581 2002-08-21 Michael Snyder <msnyder@redhat.com>
3582
3583 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3584 (MSYMBOL_SIZE): Replace macro with function.
3585 (DEFAULT_MIPS_TYPE): Delete unused macro.
3586 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3587 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3588
3589 2002-08-21 Jim Blandy <jimb@redhat.com>
3590
3591 * valops.c (value_cast): Simplify and correct logic for doing a
3592 static cast from a pointer to a base class to a pointer to a
3593 derived class.
3594
3595 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3596
3597 * infcmd.c (default_print_registers_info): Replace
3598 do_registers_info.
3599 (registers_info): Use gdbarch_print_registers_info instead of
3600 DO_REGISTERS_INFO.
3601 * inferior.h (default_print_registers_info): Replace
3602 do_registers_info.
3603 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3604 (DO_REGISTERS_INFO): Change to a predicate function.
3605 * gdbarch.h, gdbarch.c: Regenerate.
3606
3607 2002-08-21 Keith Seitz <keiths@redhat.com>
3608
3609 * gdb-events.sh: Add target-changed event.
3610 * gdb-events.c: Regenerated.
3611 * gdb-events.c: Regenerated.
3612 * valops.c (value_assign): Add target-changed event notification
3613 to inlval_register, lval_memory, and lval_reg_frame_relative.
3614
3615 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3616
3617 * NEWS: Add an entry regarding the improvement of the next/step
3618 operation on Alpha Tru64 multi-processor machines.
3619
3620 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3621
3622 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3623 directores.
3624 * Makefile.in: Update all _h macro definitions.
3625 * Makefile.in (install-gdbtk): Move to install section.
3626 (rdi-share/libangsd.a): Move to end of file.
3627
3628 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3629
3630 * frame.c (frame_register_unwind): When a register, set addrp to
3631 the register's byte.
3632
3633 2002-08-20 Michael Snyder <msnyder@redhat.com>
3634
3635 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3636 used locally, so move them from the target machine header to here.
3637 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3638 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3639 Make static.
3640 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3641
3642 2002-08-20 Andrew Cagney <cagney@redhat.com>
3643
3644 * NEWS: Mention that the Apollo line was made obsolete.
3645 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3646 m68*-hp-hpux* obsolete.
3647 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3648 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3649 * buildsym.c (make_blockvector): Make static.
3650 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3651 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3652 (ALLDEPFILES): Remove dstread.c.
3653 (dstread.o): Obsolete make rule.
3654 * dstread.c: Makefile obsolete.
3655 * dst.h: Ditto.
3656 * config/m68k/hp300hpux.mt: Ditto.
3657 * config/m68k/hp300hpux.mh: Ditto.
3658 * config/m68k/hp300bsd.mt: Ditto.
3659 * config/m68k/hp300bsd.mh: Ditto.
3660 * config/m68k/apollo68b.mt: Ditto.
3661 * config/m68k/apollo68v.mh: Ditto.
3662 * config/m68k/apollo68b.mh: Ditto.
3663
3664 2002-08-20 Michael Snyder <msnyder@redhat.com>
3665
3666 * mips-tdep.c (mips_in_return_stub): Make static.
3667 (mips_gdbarch_init): Set in_solib_return_trampoline.
3668 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3669
3670 2002-08-20 Michael Snyder <msnyder@redhat.com>
3671
3672 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3673 * gdbarch.c, gdbarch.h: Regenerate.
3674 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3675 Add.
3676 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3677
3678 2002-08-20 Michael Snyder <msnyder@redhat.com>
3679
3680 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3681 (mips_gdbarch_init): Set skip_trampoline_code,
3682 in_solib_call_trampoline.
3683 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3684 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3685
3686 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3687
3688 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3689
3690 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3691 vector type for ev registers.
3692 (e500_pseudo_register_read): New function.
3693 (e500_pseudo_register_write): New function.
3694 (e500_dwarf2_reg_to_regnum): New function.
3695 (PPC_UISA_NOFP_SPRS): New macro.
3696 (PPC_EV_REGS): New macro.
3697 (PPC_GPRS_PSEUDO_REGS): New macro.
3698 (registers_e500): New register set for e500.
3699 (variants): Add e500 variant.
3700 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3701 before setting architectural dependent variations. Initialize ev
3702 registers numbers. Add case for e500 architecture. Set the
3703 number of pseudo registers.
3704
3705 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3706
3707 * rs6000-tdep.c: Clean up comments.
3708
3709 2002-08-20 Andrew Cagney <cagney@redhat.com>
3710
3711 * h8300-tdep.c: Re-indent file.
3712
3713 2002-08-20 Jim Blandy <jimb@redhat.com>
3714
3715 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3716 default for this.
3717
3718 2002-08-20 Keith Seitz <keiths@redhat.com>
3719
3720 * breakpoints.c (watch_command_1): Use internal breakpoint
3721 when setting a watchpoint_scope breakpoint.
3722
3723 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3724
3725 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3726 (build_builtin_type_vec64i): Ditto.
3727 (build_builtin_type_vec128): Ditto.
3728 (build_builtin_type_vec128i): Ditto.
3729
3730 2002-08-19 Michael Snyder <msnyder@redhat.com>
3731
3732 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3733 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3734 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3735 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3736 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3737 CALL_DUMMY_ADDRESS): Delete.
3738 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3739 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3740 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3741 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3742 push_return_address.
3743 (mips_register_raw_size, mips_eabi_use_struct_convention,
3744 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3745 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3746 mips_init_extra_frame_info, mips_eabi_push_arguments,
3747 mips_n32n64_push_arguments, mips_push_return_address,
3748 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3749 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3750
3751 2002-08-19 Michael Snyder <msnyder@redhat.com>
3752
3753 * mips-tdep.c (mips_frame_num_args): New function.
3754 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3755 frame_saved_pc, frame_args_address, frame_locals_address,
3756 frame_num_args, and frame_args_skip.
3757 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3758 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3759 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3760 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3761
3762 2002-08-20 Michael Snyder <msnyder@redhat.com>
3763
3764 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3765 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3766 * mips-tdep.c (mips_store_struct_return): New function.
3767 (mips_extract_struct_value_address): New function.
3768 (mips_gdbarch_init): Set store_struct_return and
3769 extract_struct_value_address.
3770
3771 2002-08-20 David Carlton <carlton@math.stanford.edu>
3772
3773 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3774 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3775 (read_file_scope): Check that line_header is nonzero before
3776 decoding macro information.
3777
3778 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3779
3780 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3781 flag the general-purpose registers as floating-point on targets
3782 that don't support the floating-point registers.
3783
3784 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3785
3786 * rs6000-tdep.c (altivec_register_p): Delete.
3787 (rs6000_do_altivec_registers): Delete.
3788 (rs6000_altivec_registers_info): Delete.
3789 (rs6000_do_registers_info): Delete.
3790 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3791 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3792
3793 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * infcmd.c (do_registers_info): Print vector registers in hex
3796 format only.
3797 (print_vector_info): Check that printing registers
3798 makes sense.
3799 (print_float_info): Ditto.
3800
3801 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3802
3803 * mips-tdep.c (mips_gdbarch_init): Update.
3804 (mips_o32_extract_return_value): Rewrite.
3805 (mips_o32_store_return_value): Rewrite.
3806 (mips_o32_xfer_return_value): New function.
3807 (mips_xfer_register): Tweak debug print message. Allow for
3808 buf_offset when dumping the value transfered.
3809
3810 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3811
3812 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3813 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3814 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3815 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3816 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3817
3818 2002-08-14 Michael Snyder <msnyder@redhat.com>
3819
3820 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3821
3822 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3823
3824 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3825 register.
3826 (P): New macro to define a register as a pseudo register.
3827 (R, R4, R8, R16, FR32, R64, R0): Updated.
3828 (struct variant): Add new fields for number of pseudo registers
3829 and number of total registers.
3830 (tot_num_registers): New macro replacing....
3831 (num_registers): ...deleted macro.
3832 (num_registers): New function.
3833 (num_pseudo_registers): New function.
3834 (variants): Update all variants to intialize new fields correctly.
3835 Postpone initialization of number of pseudo regs and real regs.
3836 (init_variants): New function.
3837 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3838 registers offsets.
3839
3840 2002-08-19 David Carlton <carlton@math.stanford.edu>
3841
3842 * valops.c (search_struct_field): Change error message to treat
3843 return value of 0 from value_static_field as meaning that field is
3844 optimized out.
3845 (value_struct_elt_for_reference): Ditto.
3846 * values.c (value_static_field): Treat an unresolved location the
3847 same as a nonexistent symbol. Fix PR gdb/635.
3848 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3849 enclosed. Fix PR gdb/574.
3850 * MAINTAINERS: Add self to Write After Approval list.
3851
3852 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3853
3854 * mips-tdep.c (mips_xfer_register): New function.
3855 (mips_n32n64_extract_return_value): Rewrite.
3856 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3857 instead of deprecated_extract_return_value.
3858
3859 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3860
3861 * rs6000-tdep.c (TDEP): Delete macro.
3862 (branch_dest): Replace use of TDEP macro with its body.
3863 (rs6000_pop_frame): Ditto.
3864 (rs6000_push_arguments): Ditto.
3865 (rs6000_skip_trampoline_code): Ditto.
3866 (rs6000_frame_saved_pc): Ditto.
3867 (rs6000_frame_chain): Ditto.
3868 (rs6000_register_name): Ditto.
3869 (rs6000_register_byte): Ditto.
3870 (rs6000_register_raw_size): Ditto.
3871 (rs6000_register_virtual_type): Ditto.
3872 (rs6000_register_convertible): Ditto.
3873 (rs6000_convert_from_func_ptr_addr): Ditto.
3874
3875 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3878 conditionally.
3879 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3880 MIPS_LINUX_JB_ELEMENT_SIZE.
3881 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3882 for MAX_REGISTER_RAW_SIZE arrays.
3883 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3884 MIPS_LINUX_JB_ELEMENT_SIZE.
3885
3886 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3887
3888 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3889
3890 2002-08-19 Aidan Skinner <aidan@velvet.net>
3891
3892 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3893 ada-valprint.c ada-tasks.c.
3894 (YYFILES): Add ada-exp.y.
3895 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3896 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3897 (ada-exp.tab.o): New target.
3898
3899 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3900
3901 * regcache.c (regcache_xfer_part): New function.
3902 (regcache_raw_read_part): New function.
3903 (regcache_raw_write_part): New function.
3904 (regcache_cooked_read_part): New function.
3905 (regcache_cooked_write_part): New function.
3906 * regcache.h (regcache_raw_read_part): Declare.
3907 (regcache_raw_write_part): Declare.
3908 (regcache_cooked_read_part): Declare.
3909 (regcache_cooked_write_part): Declare.
3910
3911 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * remote.c (remote_open_1): Add async_p.
3914 (remote_async_open_1): Delete.
3915 (open_remote_target): Delete.
3916 (remote_open, extended_remote_open): Update calls to remote_open_1.
3917 (remote_async_open, extended_remote_async_open): Call
3918 remote_open_1 instead of remote_async_open_1.
3919
3920 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3921
3922 * blockframe.c: Fix a few coding standard violations.
3923
3924 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3925
3926 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3927 here from ...
3928 * config/i386/tm-i386sco5.h: ... here. File removed.
3929 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3930
3931 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3932 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3933 (TM_FILE): Set to tm-i386.h.
3934 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3935 * config/i386/tm-i386v.h: Remove file.
3936 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3937 instead of "i386/tm-i386v.h".
3938 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3939 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3940 "i386/tm-i386v.h".
3941 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3942 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3943 "i386/tm-i386.h".
3944
3945 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3946
3947 * config/i386/nm-i386v.h: Add protection against
3948 multiple-inclusion.
3949 (i386_register_u_addr): Remove prototype.
3950 (register_u_addr): New prototype.
3951 (REGISTER_U_ADDR): Redefine accordingly.
3952 * i386v-nat.c: Improve several comments.
3953 (i386_register_u_addr): Change signature and rename to
3954 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3955 ubase variable.
3956
3957 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3958
3959 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3960 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3961 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3962 deprecated_extract_return_value.
3963 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3964 rename mips_o32o64_push_arguments.
3965 (mips_gdbarch_init): Update.
3966 (mips_extract_return_value): Delete.
3967 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3968 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3969 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3970 (mips_n32n64_extract_return_value): Clone
3971 mips_extract_return_value.
3972 (mips_store_return_value): Delete.
3973 (mips_o32_store_return_value): Clone mips_store_return_value.
3974 (mips_o64_store_return_value): Clone mips_store_return_value.
3975 (mips_eabi_store_return_value): Clone mips_store_return_value.
3976 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3977
3978 2002-08-18 Aidan Skinner <aidan@velvet.net>
3979
3980 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3981 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3982
3983 2002-08-18 Aidan Skinner <aidan@velvet.net>
3984
3985 * ada-lang.c: Run through gdb_indent.sh.
3986 * ada-lang.h: Run through gdb_indent.sh.
3987 * ada-tasks.c: Run through gdb_indent.sh.
3988 * ada-typeprint.c: Run through gdb_indent.sh.
3989 * ada-valprint.c: Run through gdb_indent.sh.
3990
3991 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3992
3993 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3994 ABI.
3995
3996 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3997
3998 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3999
4000 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4001 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4002
4003 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4004 write_register_gen instead of write_register_bytes.
4005
4006 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4007 i[3456]-*-osf1mk* configurations have been made obsolete.
4008 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4009 i[3456]86-*-osf1mk* hosts obsolete.
4010 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4011 targets obsolete.
4012 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4013 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4014 config/i386/i386m3.mt, config/i386/nm-m3.h,
4015 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4016 config/i386/i386mk.mh, config/i386/i386mk.mt,
4017 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4018 obsolete.
4019 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4020 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4021 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4022
4023 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4024
4025 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4026 (hppa_value_returned_from_stack): Declare.
4027 (hppa_extract_return_value): Declare.
4028 * config/pa/hppa.mt: New file.
4029 * configure.tgt: Recognize hppa*-*-*.
4030 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4031
4032 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4033
4034 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4035 comment.
4036
4037 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4038
4039 * top.c (gdb_rl_operate_and_get_next): Make sure
4040 operate-and-get-next functions correctly even when the history
4041 list is completely filled.
4042
4043 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4044
4045 * MAINTAINERS (Target Instruction Set Architectures): Rename
4046 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4047 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4048 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4049 already listed under Host/Native.
4050
4051 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4052 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4053 mips*-*-*.
4054
4055 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4056
4057 * config/ia64/ia64.mt: New file.
4058 * config/alpha/alpha.mt: New file.
4059 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4060 ia64-linux-gnu. Mention that ia64-elf is broken.
4061 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4062
4063 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4064
4065 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4066 generic_func_frame_valid instead of func_frame_valid.
4067
4068 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4069
4070 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4071 procfs appears to be broken when debugging on multi-processor
4072 machines. So enable software single stepping in order to avoid
4073 using the procfs interface to do next/step operations, using
4074 internal breakpoints instead.
4075
4076 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4077 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4078 make this pc address equal to the value it would have if the
4079 system stepping capability was used. Also set a new flag used
4080 to ensure that we don't readjust the PC one more time later.
4081
4082 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4083 address by DECR_PC_AFTER_BREAK when software single step is
4084 in use for this architecture, as this has already been taken
4085 care of in handle_inferior_event().
4086
4087 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4088
4089 * infrun.c (handle_inferior_event): Minor reformatting, to make
4090 a rather long condition expression easier to read.
4091
4092 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4093
4094 * Makefile.in (gdbtk.o): Move to end of file.
4095 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4096 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4097 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4098 (gdbtk-wrapper.o, gdbres.o): Ditto.
4099
4100 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4101
4102 * Makefile.in (copying.o): Separate out compile rule.
4103 (hpux-thread.o, procfs.o, signals.o): Ditto.
4104 (v850ice.o, z8k-tdep.o): Ditto.
4105 (tui-file.o): Move to TUI section.
4106 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4107 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4108
4109 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4110
4111 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4112 skip_trampoline_code, for better namespace-proofing.
4113
4114 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4115
4116 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4117
4118 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4119
4120 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4121
4122 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4123 signal, check whether we hit a breakpoint before checking for a
4124 single step breakpoint. Otherwise, GDB fails to notice that a
4125 breakpoint has been hit when stepping onto a breakpoint.
4126
4127 2002-08-16 Keith Seitz <keiths@redhat.com>
4128
4129 * gdb-events.sh (clear_gdb_event_hooks): New function.
4130 * gdb-events.c: Regenerate.
4131 * gdb-events.h: Regenerate.
4132
4133 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4134
4135 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4136 not_a_sw_breakpoint.
4137 * breakpoint.h (bpstat_stop_status): Add parameter names.
4138
4139 2002-08-16 Grace Sainsbury <graces@redhat.com>
4140
4141 * remote.c (remote_insert_hw_breakpoint)
4142 (remote_remove_hw_breakpoint): Fix calculation of length field
4143 for Z-packet.
4144
4145 2002-08-15 Michael Snyder <msnyder@redhat.com>
4146
4147 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4148 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4149 (supply_fpregset): Ditto.
4150
4151 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4152 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4153 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4154 (TARGET_READ_SP): Delete.
4155 (DO_REGISTERS_INFO): Delete.
4156 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4157 Delete.
4158 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4159 from macros to functions.
4160
4161 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4162 (mips_register_convertible, mips_register_convert_to_virtual,
4163 mips_register_convert_to_raw): Make static.
4164 (mips_read_sp): New function.
4165 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4166 (mips_do_registers_info): Make static.
4167 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4168 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4169 (mips_register_convert_from_type, mips_register_convert_to_type):
4170 New functions.
4171 (mips_gdbarch_init): Set up function_start_offset,
4172 register_virtual_size, pc_in_sigtramp.
4173
4174 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4175
4176 * infcmd.c (vector_info): New function.
4177 (_initialize_infcmd): Add command "info vector".
4178 (print_vector_info): New function.
4179
4180 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4181 * gdbarch.h, gdbarch.c: Regenerate.
4182
4183 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4184
4185 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4186 ``print_all''. Only print vector registers when ``print_all''.
4187
4188 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4189
4190 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4191 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4192
4193 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4194 Add `args' parameter.
4195 * gdbarch.h, gdbarch.c: Regenerate.
4196
4197 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4198
4199 * infcmd.c (float_info): Call print_float_info.
4200 (print_float_info): New function. By default, print the
4201 floating-point registers.
4202
4203 * arch-utils.h (default_print_float_info): Delete declaration.
4204 * arch-utils.c (default_print_float_info): Delete function.
4205
4206 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4207
4208 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4209 out define.
4210
4211 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4212 FRAME.
4213
4214 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4215 * configure.host: Make i[3456]86-*-aix host obsolete.
4216 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4217 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4218 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4219 config/i386/xm-i386aix.h: Make files obsolete.
4220 * i386aix-nat.c: Make file obsolete.
4221 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4222 (i386aix-nat.o): Make target obsolete.
4223
4224 * config/i386/nm-gnu.h: Removed.
4225 * config/i386/nm-i386gnu.h: New file.
4226 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4227 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4228 Moved here from ...
4229 * config/i386/tm-i386gnu.h: ... here. Removed.
4230 * config/i386/xm-i386gnu.h: Removed.
4231 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4232 (NAT_FILE): Set to nm-i386gnu.h.
4233 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4234 * i386-tdep.c: New file.
4235 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4236 (i386gnu-tdep.o): Specify dependencies.
4237
4238 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4239
4240 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4241 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4242 Adjust a few comments to reflect reality a bit closer.
4243 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4244 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4245 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4246 target_insert_watchpoint, target_remove_watchpoint):
4247 Move defines to ...
4248 * config/i386/nm-i386sco5.h: ... here.
4249 (kernel_u_size): Add prototype. Improve a few comments and add
4250 protection against multiple inclusion.
4251
4252 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4253 out define.
4254
4255 * uw-thread.c (SP_ARG0): Define if not already defined.
4256 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4257
4258 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4259
4260 * config/i386/tm-i386.h: Don't include "regcache.h".
4261
4262 * i387-tdep.h (i387_print_float_info): New prototype.
4263 * i387-tdep.c (print_i387_value, print_i387_ext,
4264 print_i387_status_word, print_i387_control_word): Add `struct
4265 ui_file *' argument and use it for output.
4266 (i387_print_float_info): Renamed from i387_float_info. Add
4267 `struct gdbarch *' and `struct ui_file *' arguments and use the
4268 latter for output.
4269 * i386-tdep.c: Include "i387-tdep.h".
4270 (i386_gdbarch_init): Set print_float_info.
4271 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4272 (FLOAT_INFO): Remove define.
4273
4274 2002-08-13 Michael Snyder <msnyder@redhat.com>
4275
4276 * mips-tdep.c (mips_push_arguments): Rename to
4277 mips_eabi_push_arguments, and tune for EABI.
4278 (MIPS_REGS_HAVE_HOME_P): Delete.
4279 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4280 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4281 Delete references to mips_regs_have_home_p.
4282
4283 2002-08-14 Keith Seitz <keiths@redhat.com>
4284
4285 * Makefile.in (install-gdbtk): Create insight plugin directory.
4286 Install plugins.tcl file.
4287
4288 2002-08-14 Keith Seitz <keiths@redhat.com>
4289
4290 * configure.in: Move SUBDIRS to near top of the file so that
4291 --enable options may add things to it.
4292 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4293 * configure: Regenerate.
4294
4295 2002-08-13 Michael Snyder <msnyder@redhat.com>
4296
4297 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4298 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4299 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4300
4301 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4302
4303 * vax-tdep.c (vax_get_saved_register): Delete function.
4304 (vax_gdbarch_init): Update.
4305 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4306 (ns32k_gdbarch_init): Update.
4307 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4308 (alpha_gdbarch_init): Update.
4309
4310 2002-08-13 Andrew Cagney <cagney@redhat.com>
4311
4312 * regcache.c (init_regcache_descr): Overallocate the
4313 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4314 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4315 nr_raw_registers.
4316 (set_register_cached): Add range checking assertions. Use
4317 current_regcache.
4318
4319 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4320
4321 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4322 numbers for MMX registers.
4323
4324 2002-08-13 Andrew Cagney <cagney@redhat.com>
4325
4326 * i386-tdep.c (i386_gdbarch_init): Use
4327 generic_unwind_get_saved_register.
4328
4329 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4330
4331 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4332 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4333 target vector.
4334 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4335 Delete. Add comment regarding this now-deleted target method.
4336
4337 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4338
4339 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4340 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4341 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4342 real PC and the page number (if it's within the memory bank window).
4343 (m68hc11_pseudo_register_write): Likewise when saving.
4344 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4345 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4346 (m68hc11_register_raw_size): And use 32-bit for it.
4347 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4348 16K memory bank is used by the prog; also use the virtual pc.
4349
4350 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4351
4352 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4353 (m68hc11_gdbarch_init): Install it in gdbarch.
4354 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4355 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4356 (MSYMBOL_SIZE): New for documentation.
4357 (insn_return_kind): Enum to specify how a function returns.
4358 (frame_extra_info): Cleanup and record the return mode.
4359 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4360 register in address computation.
4361 (m68hc11_get_return_insn): New to obtain the return instruction used
4362 by the function.
4363 (m68hc11_frame_init_saved_regs): Take into account the return
4364 instruction used by the function for far and interrupt functions.
4365 (m68hc11_init_extra_frame_info): Take into account page register.
4366 (m68hc11_frame_args_address): Adjust according to the return mode.
4367 (show_regs): Print page register only when it's used.
4368
4369 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4370
4371 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4372 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4373 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4374 registers.
4375 (m68hc11_register_raw_size): Likewise.
4376
4377 2002-08-13 Andrew Cagney <cagney@redhat.com>
4378
4379 * i386-tdep.c (i386_register_name): Handle mmx registers.
4380 (mmx_regnum_p): New function.
4381 (i386_mmx_names): New array.
4382 (mmx_num_regs): New variable.
4383 (i386_pseudo_register_read): New function.
4384 (i386_pseudo_register_write): New function.
4385 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4386
4387 * regcache.c (regcache_raw_read_unsigned): New function.
4388 (regcache_raw_read_signed): New function.
4389 * regcache.h (regcache_raw_read_unsigned): Declare.
4390 (regcache_raw_read_signed): Declare.
4391
4392 2002-08-13 Andrew Cagney <cagney@redhat.com>
4393
4394 * regcache.c (regcache_raw_read_as_address): Delete function.
4395 (regcache_cooked_read_signed): New function.
4396 (regcache_cooked_read_unsigned): New function.
4397 * regcache.h (regcache_cooked_read_signed): Declare.
4398 (regcache_cooked_read_unsigned): Declare.
4399 (regcache_raw_read_as_address): Delete declaration.
4400
4401 * blockframe.c (generic_read_register_dummy): Use
4402 regcache_cooked_read_unsigned.
4403 * i386-tdep.c (i386_extract_struct_value_address): Use
4404 regcache_cooked_read_unsigned.
4405
4406 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4407
4408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4409 double sizes according to ELF ABI flags.
4410 (gdbarch_tdep): Record elf_flags.
4411
4412 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4413
4414 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4415 (m6812_prolog): They can appear in 68HC12 function prologue.
4416 (m68hc11_frame_chain): Cleanup.
4417
4418 2002-08-12 Andrew Cagney <cagney@redhat.com>
4419
4420 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4421 declarations.
4422 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4423 (i386_linux_register_raw_size): Delete function.
4424 (i386_linux_init_abi): Update.
4425 * i386-tdep.c (i386_register_raw_size): Delete function.
4426 (i386_register_byte): Delete function.
4427 (i386_gdbarch_init): Update.
4428 (i386_register_size): Delete array.
4429 (i386_register_offset): Delete array.
4430
4431 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4432 (REGISTER_RAW_SIZE): Delete macro.
4433 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4434 (REGISTER_BYTE): Delete macro.
4435
4436 2002-08-11 Aidan Skinner <aidan@velvet.net>
4437
4438 * ada-lang.c (ada_lookup_partial_symbol)
4439 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4440 prototype names so that grep ^func works properly.
4441
4442 * ada-lang.c (ada_array_element_type)
4443 (ada_lookup_partial_symbol): Fix typos in parameter list.
4444
4445 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4446 Fix prototype names so that grep ^func works properly.
4447
4448 2002-08-10 Andrew Cagney <cagney@redhat.com>
4449 Elena Zannoni <ezannoni@redhat.com>
4450 Martin M. Hunt <hunt@redhat.com>
4451
4452 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4453 (build_builtin_type_vec128i): Set the vector bit.
4454 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4455 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4456 (build_builtin_type_vec64): New function.
4457 (build_builtin_type_vec64i): New function.
4458 (build_gdbtypes): Initialize builtin_type_vec64 and
4459 builtin_type_vec64i.
4460
4461 2002-08-09 Andrew Cagney <cagney@redhat.com>
4462
4463 * regcache.c (regcache_dump): Compare the register offset
4464 with REGISTER_BYTE.
4465 * arch-utils.c (generic_register_byte): New function.
4466 * arch-utils.h (generic_register_byte): Declare.
4467 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4468 * gdbarch.h, gdbarch.c: Regenerate.
4469
4470 2002-08-09 Andrew Cagney <cagney@redhat.com>
4471
4472 * regcache.c: Include "gdbcmd.h"
4473 (_initialize_regcache): Add commands "maintenance print
4474 registers", "maintenance print raw-registers" and "maintenance
4475 print cooked-registers".
4476 (enum regcache_dump_what): Define.
4477 (dump_endian_bytes): New function.
4478 (regcache_dump): New function.
4479 (regcache_print): New function.
4480 (maintenance_print_registers): New function.
4481 (maintenance_print_raw_registers): New function.
4482 (maintenance_print_cooked_registers): New function.
4483 * Makefile.in (regcache.o): Update dependencies.
4484
4485 2002-08-09 Michael Snyder <msnyder@redhat.com>
4486
4487 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4488 (mips_push_arguments): Correct some comments. Use paddr_nz
4489 for printing addresses in debug output. Replace static
4490 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4491 (mips_n32n64_push_arguments): New function, cloned from
4492 mips_push_arguments and tuned for the n32/n64 ABI.
4493 (mips_push_register): Buffer needs dynamic allocation.
4494 (mips_print_register): Ditto.
4495 (do_gp_register_row): Ditto.
4496 (mips_store_return_value): Ditto.
4497 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4498
4499 2002-08-09 Don Howard <dhoward@redhat.com>
4500
4501 * memattr.c (mem_info_command): Print special case of upper bound
4502 as max CORE_ADDR + 1.
4503
4504 2002-08-08 Michael Snyder <msnyder@redhat.com>
4505
4506 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4507 returns structs by ref if they're too big to fit in two registers.
4508
4509 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4510
4511 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4512 saved regs value.
4513 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4514 mips_find_saved_regs().
4515 (mips_pop_frame): Likewise.
4516
4517 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4518
4519 * blockframe.c (frame_saved_regs_register_unwind): Revise
4520 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4521 frames are in use.
4522
4523 2002-08-09 Grace Sainsbury <graces@redhat.com>
4524
4525 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4526 T-packets; the 'a' is not taken as a register number.
4527 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4528 (remote_stopped_data_address): New functions; add to target
4529 vector.
4530 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4531 prototypes to match other implementations of this
4532 function. replace integer argument with pointer -- the length
4533 field in the Z-packet is the length of what is pointed to or 1 if
4534 pointer is null. Add to target vector.
4535 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4536 target vector.
4537
4538 From Mark Salter:
4539 * remote.c (remote_wait): Add support to extract optional
4540 watchpoint information from T-packet. Ignore unrecognized
4541 optional info in T-packet.
4542 (remote_async_wait): Ditto.
4543
4544 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4545
4546 * cli/cli-dump.c: Change fopen modes to use binary open modes
4547 as defined in include/fopen-bin.h throughout.
4548
4549 2002-08-08 Michael Snyder <msnyder@redhat.com>
4550
4551 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4552
4553 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4554
4555 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4556 assertion failure by returning early after a warning.
4557
4558 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4559
4560 * mips-tdep.c (mips_find_saved_regs): Make static.
4561 (mips_frame_init_saved_regs): New function.
4562 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4563 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4564 (mips_find_saved_regs): Delete declaration.
4565
4566 2002-08-08 Grace Sainsbury <graces@redhat.com>
4567
4568 * remote.c (remote_wait, remote_async_wait): Change
4569 thread_num from int to ULONGEST.
4570 (unpack_varlen_hex): Change result parameter from
4571 int * to ULONGEST *.
4572
4573 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4574
4575 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4576 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4577 powerpc*-*-*.
4578 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4579
4580 2002-08-08 Andrew Cagney <cagney@redhat.com>
4581
4582 * gcore.c (override_derive_stack_segment): Delete variable.
4583 (preempt_derive_stack_segment): Delete function.
4584 (derive_stack_segment): Delete function.
4585 (default_derive_stack_segment): Renamed to derive_stack_segment.
4586 (override_derive_heap_segment): Delete variable.
4587 (preempt_derive_heap_segment): Delete function.
4588 (derive_heap_segment): Delete function.
4589 (default_derive_heap_segment): Rename to derive_heap_segment.
4590
4591 2002-08-06 Michael Snyder <msnyder@redhat.com>
4592
4593 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4594 * mips-tdep.c (mips_EABI_use_struct_convention,
4595 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4596 New functions. (mips_use_struct_convention): Delete.
4597 (mips_gdbarch_init): set use_gdbarch_convention.
4598
4599 2002-08-06 Michael Snyder <msnyder@redhat.com>
4600
4601 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4602 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4603 mips_o32_reg_struct_has_addr): New functions.
4604 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4605
4606 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4607
4608 * regcache.c (pseudo_register): Delete function.
4609 (fetch_register): Delete function.
4610 (store_register): Delete function.
4611 (regcache_raw_read, legacy_read_register_gen): Use
4612 target_fetch_registers instead of fetch_register.
4613 (legacy_write_register_gen, regcache_raw_write): Use
4614 target_store_register instead of store_register.
4615 (write_register_bytes): Ditto.
4616
4617 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4618 (STORE_PSEUDO_REGISTER): Delete.
4619 * gdbarch.h, gdbarch.c: Regenerate.
4620
4621 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4622
4623 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4624 write dump file binary.
4625
4626 2002-08-05 Michael Snyder <msnyder@redhat.com>
4627
4628 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4629 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4630 (mips_gdbarch_init): Set N32 target to be mips64.
4631
4632 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4633
4634 * frame.c (find_saved_register): Break out of loop once saved
4635 register address is found. Don't mention sparc in loop comment
4636 anymore.
4637
4638 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4639
4640 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4641 mips_default_saved_regsize to 8.
4642
4643 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4644
4645 * gcore.c: Do not include <sys/procfs.h>.
4646 * Makefile.in (gcore.o): Update dependencies.
4647
4648 2002-08-06 Andrew Cagney <cagney@redhat.com>
4649
4650 * configure.tgt: Make arc-*-* obsolete.
4651 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4652 * MAINTAINERS: Make arc-elf obsolete.
4653 * arc-tdep.c: Make file obsolete.
4654 * config/arc/arc.mt: Ditto.
4655 * config/arc/tm-arc.h: Ditto.
4656
4657 2002-08-05 Theodore A. Roth <troth@verinet.com>
4658
4659 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4660
4661 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4662
4663 * mcore-tdep.c (mcore_gdbarch_init): Use
4664 generic_unwind_get_saved_register instead of
4665 generic_get_saved_register.
4666 * v850-tdep.c (v850_gdbarch_init): Ditto.
4667 * frv-tdep.c (frv_gdbarch_init): Ditto.
4668 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4669 * s390-tdep.c (s390_gdbarch_init): Ditto.
4670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4671 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4672 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4673
4674 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4675
4676 * objfiles.h: Add missing #include "symfile.h"
4677
4678 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4679
4680 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4681
4682 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4683 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4684 of FIELD_BITSIZE.
4685
4686 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4687
4688 * NEWS: Cleanup and nitpick.
4689
4690 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4691
4692 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4693
4694 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4695
4696 * Makefile.in (gdbtk-bp.o): Update dependencies.
4697 (gdbtk-register.o): Ditto.
4698 (gdbtk-varobj.o): Ditto.
4699
4700 2002-08-03 Andrew Cagney <cagney@redhat.com>
4701
4702 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4703 m68hc11_fetch_pseudo_register.
4704 (m68hc11_pseudo_register_write): Replace
4705 m68hc11_store_pseudo_register.
4706 (m68hc11_gdbarch_init): Update.
4707
4708 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4709
4710 * gdbarch.sh: Include "gdb_string.h".
4711 * gdbarch.c: Regenerate.
4712
4713 * regcache.c: Include "gdb_string.h".
4714 * ax-general.c: Ditto.
4715 * varobj.c: Ditto.
4716 * std-regs.c: Ditto.
4717 * fbsd-proc.c: Ditto.
4718 * thread.c: Ditto.
4719
4720 * Makefile.in (regcache.o): Update dependencies.
4721 (thread.o, gdbarch.o): Ditto.
4722 (ax-general.o, gdbarch.o): Ditto.
4723 (varobj.o, std-regs.o): Ditto.
4724 (fbsd-proc.o): Specify dependencies.
4725
4726 2002-08-02 Andrew Cagney <cagney@redhat.com>
4727
4728 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4729 regnum.
4730 (regcache_cooked_write): Ditto.
4731
4732 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4733
4734 * regcache.c (regcache_cooked_read): New function.
4735 (regcache_cooked_write): New function.
4736 (read_register_gen): Rewrite using regcache_cooked_read.
4737 (write_register_gen): Rewrite using regcache_cooked_write.
4738
4739 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4740 Declare.
4741
4742 2002-08-02 Andrew Cagney <cagney@redhat.com>
4743
4744 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4745 Replace the architecture methods register_read and register_write.
4746 * gdbarch.h, gdbarch.c: Regenerate.
4747 * regcache.c (init_regcache_descr): Update.
4748 (read_register_gen): Update.
4749 (write_register_gen): Update.
4750 (supply_register): Update comment.
4751
4752 * sh-tdep.c (sh_gdbarch_init): Update.
4753 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4754 `regcache' and `gdbarch' parameters. Make `buffer' a void
4755 pointer. Update code.
4756 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4757 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4758 void pointer. Update code.
4759 (sh64_register_write): Delete.
4760 (sh4_register_read): Delete.
4761 (sh64_register_read): Delete.
4762 (sh4_register_write): Delete.
4763 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4764 void pointer, `to' parameter a void pointer.
4765 (sh_sh64_register_convert_to_raw): Ditto.
4766
4767 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4768
4769 * mips-tdep.c (mips_register_virtual_type): Use architecture
4770 invariant return values.
4771
4772 2002-08-01 Andrew Cagney <cagney@redhat.com>
4773
4774 * linux-proc.c: Include "gdb_string.h".
4775 * Makefile.in (linux-proc.o): Update dependency list.
4776
4777 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4778
4779 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4780 comment.
4781
4782 2002-08-01 Grace Sainsbury <graces@redhat.com>
4783
4784 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4785 to_insert_watchpoint, to_remove_watchpoint,
4786 to_stopped_by_watchpoint, to_stopped_data_address,
4787 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4788 target vecctor. Define their corresponding macros so they call
4789 them.
4790
4791 * target.c: Add default and debug versions of for
4792 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.
4796
4797 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4798
4799 * mips-tdep.c (mips_register_virtual_type): New function.
4800 (mips_gdbarch_init): Register mips_register_virtual_type()
4801 with gdbarch machinery.
4802 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4803 this file instead of tm-bigmips.h.
4804 (MIPS_REGSIZE): Delete this macro.
4805 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4806 multiarch version in mips-tdep.c will be found.
4807
4808 2002-08-01 Andrew Cagney <cagney@redhat.com>
4809
4810 * NEWS: Menion that CHILL has been made obsolete.
4811
4812 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4813 * stabsread.c (read_range_type): Ditto.
4814 * gdbtypes.h: Ditto.
4815 * language.c (binop_type_check): Ditto.
4816 (binop_result_type): Ditto.
4817 (integral_type): Ditto.
4818 (character_type): Ditto.
4819 (string_type): Ditto.
4820 (boolean_type): Ditto.
4821 (structured_type): Ditto.
4822 (lang_bool_type): Ditto.
4823 (binop_type_check): Ditto.
4824 * language.h (_LANG_chill): Ditto.
4825 * dwarfread.c (set_cu_language): Ditto.
4826 * dwarfread.c (CHILL_PRODUCER): Ditto.
4827 * dwarfread.c (handle_producer): Ditto.
4828 * expression.h (enum exp_opcode): Ditto.
4829 * eval.c: Ditto for comments.
4830 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4831 * expprint.c (print_subexp): Ditto.
4832 (print_subexp): Ditto.
4833 * valops.c (value_cast): Ditto.
4834 (search_struct_field): Ditto.
4835 * value.h (COERCE_VARYING_ARRAY): Ditto.
4836 * symfile.c (init_filename_language_table): Ditto.
4837 (add_psymbol_with_dem_name_to_list): Ditto.
4838 * valarith.c (value_binop): Ditto.
4839 (value_neg): Ditto.
4840 * valops.c (value_slice): Ditto.
4841 * symtab.h (union language_specific): Ditto.
4842 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4843 (SYMBOL_DEMANGLED_NAME): Ditto.
4844 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4845 * defs.h (enum language): Ditto.
4846 * symtab.c (got_symtab): Ditto.
4847 * utils.c (fprintf_symbol_filtered): Ditto.
4848
4849 * ch-typeprint.c: Make file obsolete.
4850 * ch-valprint.c: Make file obsolete.
4851 * ch-lang.h: Make file obsolete.
4852 * ch-exp.c: Make file obsolete.
4853 * ch-lang.c: Make file obsolete.
4854
4855 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4856 CHILL_LIB.
4857 (TARGET_FLAGS_TO_PASS): Ditto.
4858 (CHILLFLAGS): Obsolete.
4859 (CHILL): Obsolete.
4860 (CHILL_FOR_TARGET): Obsolete.
4861 (CHILL_LIB): Obsolete.
4862 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4863 ch-valprint.c.
4864 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4865 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4866 ch-lang.o.
4867 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4868 targets.
4869
4870 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4871
4872 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4873 This does not change anything at the moment, but will be helpful
4874 later when full Ada support is integrated.
4875
4876 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4877
4878 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4879 help message.
4880
4881 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4882
4883 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4884 and save it in a local variable. Use variable in later test.
4885
4886 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4887
4888 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4889 test. (Thanks to Daniel Jacobowitz.)
4890
4891 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4892
4893 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4894 (mips_abi_strings): Add "n64".
4895 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4896
4897 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4898
4899 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4900 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4901
4902 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4903
4904 * utils.c (host_pointer_to_address, address_to_host_pointer):
4905 Use gdb_assert() instead of explicit call to internal_error().
4906
4907 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4908
4909 * Makefile.in (rs6000-nat.o): Update dependencies.
4910
4911 From Nicholas Duffek:
4912 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4913 (aix-thread.o): New rule.
4914 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4915 * config/powerpc/aix432.mh: New file.
4916
4917 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4918
4919 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4920 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4921 (fetch_core_registers, ppc_linux_supply_gregset)
4922 (ppc_linux_supply_fpregset): New functions.
4923 (ppc_linux_regset_core_fns): New.
4924 (_initialize_ppc_linux_tdep): Call add_core_fns.
4925 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4926 and ppc_linux_supply_gregset.
4927 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4928 (supply_fpregset): Call ppc_linux_supply_fpregset.
4929 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4930 corelow.o.
4931 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4932
4933 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4934
4935 * symtab.c (lookup_symbol): Demangle before lowercasing.
4936
4937 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4938
4939 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4940 declaration.
4941 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4942 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4943 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4944 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4945 "gdb_string.h".
4946 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4947 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4948 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4949 (avr-tdep.o, mon960-rom.o): Ditto.
4950 (aout_stabs_gnu_h): Define.
4951 (symtab_h): Remove $(gdb_obstack_h).
4952
4953 2002-07-30 Jim Blandy <jimb@redhat.com>
4954
4955 Patch from David Carlton <carlton@math.stanford.edu>:
4956 * gdbinit.in: Move the `dir' commands that add GDB's own source
4957 directory to the search path to the end, so that the `gdb' source
4958 directory will be searched first.
4959
4960 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4961
4962 * gdb_obstack.h: New file.
4963 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4964 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4965 * objfiles.h: Include "gdb_obstack.h".
4966 * Makefile.in (gdb_obstack_h): Define.
4967 (symtab_h): Add $(gdb_obstack_h).
4968 (objfiles_h): Add $(gdb_obstack_h).
4969
4970 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4971 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4972 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4973 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4974 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4975 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4976 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4977 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4978
4979 * Makefile.in (bcache.o): Update dependencies.
4980 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4981 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4982 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4983 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4984 (stabsread.o, symfile.o, symmisc.o): Ditto.
4985 (symtab.o, typeprint.o, macroexp.o): Ditto.
4986 (macrotab.o, mdebugread.o): Ditto.
4987 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4988 (coff_ecoff_h, aout_aout64_h): Define.
4989 (aout_stabs_gnu_h, libaout_h): Define.
4990
4991 2002-07-29 Andrew Cagney <cagney@redhat.com>
4992
4993 * regcache.c (struct regcache_descr): Rename nr_registers to
4994 nr_cooked_registers. Revise comments describing the structure
4995 member fields.
4996 (init_regcache_descr): Update.
4997 (init_legacy_regcache_descr): Update.
4998 (read_register_gen, write_register_gen): When a cooked register in
4999 the raw register range, directly access the value from the raw
5000 register cache.
5001
5002 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5003
5004 * z8k-tdep.c: Do not include "obstack.h".
5005 * h8300-tdep.c, h8500-tdep.c: Ditto.
5006 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5007 * valprint.c, v850-tdep.c: Ditto.
5008 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5009 * mn10200-tdep.c: Ditto.
5010
5011 * Makefile.in (z8k-tdep.o): Update dependencies.
5012 (m68hc11-tdep.o, valprint.o): Ditto.
5013 (v850-tdep.o, d10v-tdep.o): Ditto.
5014 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5015 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5016 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5017 (sh_opc_h, gdb_sim_sh_h): Define.
5018 (elf_sh_h, elf_bfd_h): Define.
5019 (opcode_m68hc11_h): Define.
5020 (OPCODES_SRC, OPCODES_DIR): define.
5021 (OPCODES): Use $(OPCODES_DIR).
5022 (gdb_sim_d10v_h): Rename sim_d10v_h.
5023 (gdb_sim_arm_h): Rename sim_arm_h.
5024
5025 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5026
5027 * utils.c (host_pointer_to_address, address_to_host_pointer):
5028 Change internal_error() message to indicate function responsible
5029 for the error.
5030
5031 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5032
5033 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5034 calls to local_hex_string_custom().
5035
5036 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5037
5038 * irix5-nat.c: Move IRIX shared library support from here...
5039 * solib-irix.c: ...to here. Revised substantially to work with
5040 generic solib framework.
5041
5042 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5043 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5044 * mips-irix-tdep.c: New file.
5045
5046 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5047 (mips-irix-tdep.o, solib-irix.o): New rules.
5048 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5049 solib-irix.o.
5050 * config/mips/irix6.mt (TDEPFILES): Likewise.
5051 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5052
5053 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5054
5055 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5056 disabled (via ``#if 0'') includes.
5057
5058 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5059
5060 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5061 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5062 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5063 Add support for the fpscr register.
5064 * rs6000-nat.c (regmap, fetch_inferior_registers)
5065 (store_inferior_registers, fetch_core_registers): Likewise.
5066
5067 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5068
5069 * rs6000-nat.c (language.h): Include.
5070 (special_regs): Delete this array.
5071 (regmap): New function.
5072 (fetch_register, store_register): Use regmap() to map gdb
5073 register numbers to ptrace register numbers. Also, use
5074 outputs from regmap() to make decisions regarding type of
5075 ptrace() call to make. In particular, don't compare against
5076 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5077 (fetch_inferior_registers, store_inferior_registers): Where
5078 possible, obtain register numbers from tdep struct. Don't
5079 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5080 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5081 (LAST_UISA_SP_REGNUM): Delete.
5082
5083 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5084
5085 * rs6000-nat.c (ppc-tdep.h): Include.
5086 (fetch_registers, store_register, fetch_core_registers): Don't
5087 access registers[] directly. Instead, use supply_register() or
5088 regcache_collect() as appropriate.
5089 (find_toc_address): Format hex address with local_hex_string().
5090
5091 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5092
5093 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5094 bfd/elf32-frv.c.
5095
5096 2002-07-24 Tom Tromey <tromey@redhat.com>
5097
5098 * jv-exp.y: Marked all strings with _().
5099 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5100 internal_error.
5101 (MethodInvocation, CastExpression, parse_number, yyerror,
5102 java_type_from_name, push_expression_name, yylex): Typo fixes.
5103
5104 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5105
5106 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5107 (tee_file_flush, tee_file_write, tee_file_fputs)
5108 (tee_file_isatty): New.
5109 * ui-file.h (tee_file_new): Add prototype.
5110
5111 2002-07-24 Aidan Skinner <aidan@velvet.net>
5112
5113 * ada-lang.c: Change k&r style function definitions to prototyped
5114 form.
5115 * ada-typeprint.c: Change k&r style function definitions to prototyped
5116 form.
5117 * ada-valprint.c: Change k&r style function definitions to prototyped
5118 form.
5119
5120 2002-07-24 Andrew Cagney <cagney@redhat.com>
5121
5122 * README: Remove reference to remote-bug.
5123 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5124 remote-bug.c.
5125 (m88k-nat.o): Delete rule.
5126 (m88k-tdep.o): Delete rule.
5127 (remote-bug.o): Delete rule.
5128 * MAINTAINERS: Mark as obsolete.
5129 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5130 * m88k-tdep.c: Make file obsolete.
5131 * config/m88k/m88k.mh: Ditto.
5132 * config/m88k/delta88v4.mh: Ditto.
5133 * config/m88k/delta88v4.mt: Ditto.
5134 * config/m88k/delta88.mt: Ditto.
5135 * config/m88k/delta88.mh: Ditto.
5136 * remote-bug.c: Ditto.
5137 * config/m88k/tm-delta88.h: Ditto.
5138 * config/m88k/nm-delta88v4.h: Ditto.
5139 * config/m88k/xm-delta88.h: Ditto.
5140 * config/m88k/xm-dgux.h: Ditto.
5141 * config/m88k/tm-m88k.h: Ditto.
5142 * config/m88k/nm-m88k.h: Ditto.
5143 * config/m88k/tm-delta88v4.h: Ditto.
5144 * m88k-nat.c: Ditto.
5145 * cxux-nat.c: Ditto.
5146 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5147 and m88*-*-* obsolete.
5148 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5149 m88*-*-* obsolete.
5150
5151 2002-07-24 Andrew Cagney <cagney@redhat.com>
5152
5153 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5154 constant. Same for local pointer variables.
5155 (extract_signed_integer): Ditto.
5156 * defs.h (extract_unsigned_integer): Update.
5157 (extract_signed_integer): Update.
5158
5159 2002-07-24 Andrew Cagney <cagney@redhat.com>
5160
5161 * regcache.c (regcache_raw_write): Change buf parameter to a
5162 constant void pointer.
5163 (regcache_raw_read): Change buf parameter to a void pointer.
5164 (legacy_write_register_gen): Change myaddr parameter a constant
5165 void pointer.
5166 (supply_register): Change val parameter to a const void pointer.
5167 * regcache.h (regcache_raw_write): Update declaration.
5168 (regcache_raw_read): Update declaration.
5169 (supply_register): Update declaration.
5170
5171 2002-07-24 Tom Tromey <tromey@redhat.com>
5172
5173 * defs.h (gdb_readline_wrapper): Declare.
5174 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5175 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5176 * top.c (gdb_readline_wrapper): New function.
5177 (command_line_input): Use it.
5178
5179 2002-07-24 Andrew Cagney <cagney@redhat.com>
5180
5181 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5182 regcache_read and regcache_write.
5183 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5184 * regcache.c: Update.
5185 * sh-tdep.c (sh64_push_arguments): Update comment.
5186 (sh_pseudo_register_read): Update.
5187 (sh_pseudo_register_write): Update.
5188 (sh4_register_read): Update.
5189 (sh4_register_write): Update.
5190 (sh64_pseudo_register_read): Update.
5191 (sh64_pseudo_register_write): Update.
5192 (sh64_register_read): Update.
5193 (sh64_register_write): Update.
5194 * i386-tdep.c (i386_extract_return_value): Update.
5195 (i386_extract_struct_value_address): Update.
5196 (i386_extract_return_value): Update.
5197 * blockframe.c (generic_read_register_dummy): Update.
5198 (generic_call_dummy_register_unwind): Update
5199 * infrun.c (write_inferior_status_register): Update.
5200
5201 2002-07-23 Jim Blandy <jimb@redhat.com>
5202
5203 * parser-defs.h (expression_context_pc): Make this extern.
5204 (Thanks to Michael Snyder.)
5205
5206 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5207
5208 GDB 5.2.1 released from 5.2 branch.
5209 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5210 * README: Update to mention 5.2.1.
5211
5212 2002-07-23 Mark Salter <msalter@redhat.com>
5213
5214 * remote.c (remote_read_bytes): Fix check for error.
5215
5216 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5217
5218 * aix-thread.c (language.h): Include.
5219 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5220 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5221 Print newlines at end of debug messages.
5222 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5223 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5224
5225 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5226
5227 * aix-thread.c (ppc-tdep.h): Include.
5228 (special_register_p): New function.
5229 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5230 (store_regs_user_thread): Use register number information from
5231 gdbarch_tdep struct instead of hardcoded offsets relative to
5232 FIRST_UISA_SP_REGNUM.
5233 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5234 special_register_p() instead of using FPLAST_REGNUM and
5235 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5236 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5237 will be MQ's register number.
5238
5239 2002-07-22 Michael Snyder <msnyder@redhat.com>
5240
5241 * aix-thread.c (ops): Rename to aix_thread_ops.
5242 (base_ops): Rename to base_target.
5243 (ops_attach): Rename to aix_thread_attach.
5244 (ops_detach): Rename to aix_thread_detach.
5245 (ops_resume): Rename to aix_thread_detach.
5246 (ops_wait): Rename to aix_thread_wait.
5247 (ops_kill): Rename to aix_thread_kill.
5248 (init_ops): Rename to init_aix_thread_ops.
5249 (ops_fetch_register): Rename to aix_thread_fetch_register.
5250 (ops_store_register): Rename to aix_thread_store_register.
5251 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5252 (ops_thread_alive): Rename to aix_thread_thread_alive.
5253 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5254 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5255 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5256 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5257 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5258 (store_regs_lib): Rename to store_regs_user_thread.
5259 (store_regs_kern): Rename to store_regs_kernel_thread.
5260
5261 2002-07-22 Michael Snyder <msnyder@redhat.com>
5262
5263 * aix-thread.c (ops_prepare_to_store): Eliminate.
5264 (init_ops): Don't initialize ops.prepare_to_store.
5265 (store_regs_kern): Pre-fetch register buffers from child,
5266 because some registers may not be in the cache. Copy
5267 regs from register cache only if they are cached.
5268 (store_regs_lib): Copy regs from register cache only
5269 if they are cached.
5270 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5271 fill_gprs64): Ditto.
5272
5273 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5274
5275 * aix-thread.c (gdb_assert.h): Include.
5276 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5277 register sizes (from register cache) match size of buffer holding
5278 register data.
5279 (fill_sprs32): Change parameter types to match those in the ptrace()
5280 buffer.
5281 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5282 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5283
5284 2002-07-22 Michael Snyder <msnyder@redhat.com>
5285
5286 * aix-thread.c (supply_sprs64): Cosmetic change.
5287 (supply_sprs32): Cosmetic change.
5288 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5289 (fill_sprs64): Use regcache_collect instead of read_register.
5290 (store_regs_lib): Use regcache_collect instead of
5291 read_register. Use fill_sprs32 instead of fill_sprs64,
5292 if debugging a 32-bit architecture.
5293 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5294 out of the register cache, instead of passing a pointer into
5295 the register cache directly to ptrace. Use regcache_collect
5296 insteaad of read_register.
5297 (ops_prepare_to_store): Use target_read_registers instead
5298 of read_register_bytes.
5299
5300 2002-07-20 Aidan Skinner <aidan@velvet.net>
5301
5302 * MAINTAINERS: Add self under write after approval.
5303
5304 2002-07-20 Aidan Skinner <aidan@velvet.net>
5305
5306 * ada-tasks.c: Change k&r style function definitions to prototyped
5307 form.
5308
5309 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5310
5311 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5312 * x86-64-tdep.c: Include "objfiles.h".
5313 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5314 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5315
5316 2002-07-17 Michal Ludvig <michal@suse.cz>
5317
5318 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5319 (update_context): Initialise cfa variable.
5320
5321 2002-07-17 Michael Snyder <msnyder@redhat.com>
5322
5323 * aix-thread.c: Shorten some long lines.
5324 Bring comments into line with code spec.
5325
5326 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5327
5328 * infrun.c: Re-indent using gdb_indent.sh.
5329
5330 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5331
5332 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5333 Leave the indentation temporarily untouched, to minimize the diffs.
5334
5335 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5336
5337 * stabsread.c: Make os9k sections of the code obsolete,
5338 for real this time.
5339 * stabsread.h: Make os9k sections of the code obsolete.
5340
5341 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5342
5343 * linux-low.c (regsets_store_inferior_registers): Add free()
5344 at the end of a loop to prevent memory leak.
5345 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5346 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5347 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5348 line a comment.
5349 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5350
5351 2002-07-17 Jim Blandy <jimb@redhat.com>
5352
5353 * macrocmd.c (info_macro_command): Remove newline from error
5354 message.
5355
5356 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5357
5358 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5359 (sh_gdbarch_init): Use it for sh-dsp.
5360
5361 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5362
5363 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5364 64-bit DWARF2 format.
5365
5366 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5367
5368 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5369 <sys/proc.h> when not available.
5370
5371 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5372
5373 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5374 * stabsread.c: Make os9k sections of the code obsolete.
5375 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5376 * config/i386/i386os9k.mt: Make file obsolete.
5377 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5378 (COMMON_OBS): Remove os9kread.o
5379 (SFILES): Remove os9kread.c.
5380 (os9kread.o, remote-os9k.o): Make target obsolete.
5381 * remote-os9k.c: Make file obsolete.
5382 * os9kread.c: Make file obsolete.
5383 * Makefile.in
5384
5385 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5386
5387 * NEWS: Mention that the FR30 has been made obsolete.
5388 * fr30-tdep.c: Make file obsolete.
5389 * config/fr30/tm-fr30.h: Ditto.
5390 * config/fr30/fr30.mt: Ditto.
5391 * configure.tgt: Make fr30-*-elf obsolete.
5392 * MAINTAINERS: Make fr30-elf obsolete.
5393
5394 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5395
5396 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5397 found is not inside a section.
5398
5399 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5400
5401 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5402 strerror().
5403 (pdc_realloc): Use xrealloc() instead of realloc().
5404
5405 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5406
5407 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5408 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5409 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5410 macros.
5411
5412 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5413
5414 * aix-thread.c (ptrace_check): Eliminate goto.
5415 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5416 problem.
5417
5418 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5419
5420 * aix-thread.c (gdbcmd.h): Include.
5421 (DEBUG, DBG, DBG2, dbg): Eliminate.
5422 (debug_aix_thread): New static global.
5423 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5424 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5425 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5426 invocations to DBG and DBG2 macros to test against
5427 ``debug_aix_thread'' and call fprintf_unfiltered().
5428 (_initialize_aix_thread): Add new command "set debug aix-thread".
5429
5430 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5431
5432 From Gerhard Tonn <TON@de.ibm.com>:
5433 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5434 instead of supply_register.
5435
5436 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5437
5438 * dwarf2cfi.c: Include "gdb_assert.h".
5439 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5440 non-NULL.
5441 (update_context): Do not use __func__. Add missing ``break''.
5442 (update_context): Do not use __func__.
5443
5444 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5445
5446 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5447 and its setting. Set gdbarch instruction printing functions
5448 directly. For non-rs6000 case use new function
5449 gdb_print_insn_powerpc.
5450 (gdb_print_insn_powerpc): New function.
5451
5452 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5453
5454 * NEWS: Mention that the d30v has been marked obsolete.
5455 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5456 * configure.tgt: Mark d30v-*-* as obsolete.
5457 * d30v-tdep.c: Mark file as obsolete.
5458 * config/d30v/d30v.mt: Ditto.
5459 * config/d30v/tm-d30v.h: Ditto.
5460
5461 2002-07-13 Aidan Skinner <aidan@velvet.net>
5462
5463 * ada-tasks.c (add_task_entry): replace calls to
5464 malloc() with xmalloc
5465 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5466
5467 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5468 ada_finish_decode_line_1, all_sals_for_line
5469 ada_breakpoint_rewrite): replace calls to free() with xfree()
5470
5471 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5472
5473 From Nicholas Duffek (with minor changes by Martin Hunt,
5474 Louis Hamilton, and Kevin Buettner):
5475 * aix-thread.c: New file.
5476
5477 2002-07-12 Petr Sorfa <petrs@caldera.com>
5478
5479 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5480 complaint for invalid attribute class or form.
5481 (read_func_scope): DW_AT_frame_base
5482 better handling of DW_AT_block*.
5483 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5484 better handling of DW_AT_block*.
5485 (read_common_block): DW_AT_location
5486 better handling of DW_AT_block*.
5487 (read_partial_die): DW_AT_location better handling
5488 of DW_AT_block*.
5489 (new_symbol): DW_AT_external better handling of
5490 DW_AT_block*. Proper initialization of variable
5491 "addr".
5492 (attr_form_is_block): New function that returns true
5493 if the attribute's form is of DW_FORM_block*.
5494
5495 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5496
5497 * valops.c (find_method_list): Remove comment about
5498 removed STATIC_MEMFUNCP argument.
5499 (value_find_oload_method_list): Likewise.
5500
5501 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5502
5503 From Nicholas Duffek:
5504 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5505 target_new_objfile_hook.
5506
5507 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5508
5509 From Nicholas Duffek:
5510 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5511 csect.
5512
5513 2002-07-12 Andrew Cagney <cagney@redhat.com>
5514
5515 * MAINTAINERS: Mention --enable-sim-build-warnings.
5516 (m68hc11-elf): Disable sim build warnings.
5517 (m32r-elf): Mark as broken obsolete candidate.
5518 (x86_64-linux-gnu): Mark as buildable with -Werror.
5519 (arm-elf): Change -w to ``,'' which enables warnings but not
5520 -Werror.
5521
5522 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5523
5524 * bcache.h: Update copyright.
5525 (struct bstring, struct bcache): Move definition to "bcache.c".
5526 Replaced by opaque declaration.
5527 (bcache_xfree): Replace free_bcache.
5528 (bcache_xmalloc, bcache_memory_used): Declare.
5529
5530 * bcache.c: Update copyright.
5531 (struct bstring, struct bcache): Moved to here from "bcache.h".
5532 Update comments.
5533 (bcache_xmalloc, bcache_memory_used): New functions.
5534 (bcache_xfree): Replace function free_bcache.
5535
5536 * Makefile.in (objfiles.o): Add $(bcache_h).
5537 (objfiles_h): Remove $(bcache_h).
5538 (symfile.o): Add $(bcache_h).
5539
5540 * symmisc.c: Update copyright.
5541 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5542 (print_objfile_statistics): Use bcache_memory_used.
5543
5544 * symfile.c: Include "bcache.h".
5545 (reread_symbols): Use bcache_xfree.
5546 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5547 (add_psymbol_to_list): Pass psymbol_cache by value.
5548 (add_psymbol_with_dem_name_to_list): Ditto.
5549
5550 * objfiles.h: Update copyright.
5551 (struct bcache): Declare opaque. Do not include "bcache.h".
5552 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5553 bcache'' pointers.
5554 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5555
5556 * objfiles.c: Include "bcache.h". Update copyright.
5557 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5558 macro_cache.
5559 (free_objfile): Use bcache_xfree.
5560
5561 2002-07-11 Grace Sainsbury <graces@redhat.com>
5562
5563 * monitor.c (monitor_fetch_register): Make name a constant.
5564 (monitor_store_register): Same.
5565
5566 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5567
5568 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5569 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5570 (finish_block) For non-function blocks, hash the symbol table. For
5571 function blocks, mark the symbol table as unhashed.
5572 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5573 (msymbol_hash_iw): Likewise.
5574 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5575 value.
5576 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5577 (lookup_minimal_symbol): Likewise for both.
5578 * symtab.h (struct block): Add `hashtable' flag. Comment the
5579 hashtable.
5580 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5581 (ALL_BLOCK_SYMBOLS): Update.
5582 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5583 (struct symbol): Add `hash_next' pointer.
5584 * symtab.c (lookup_block_symbol): Search using the hash table when
5585 possible.
5586 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5587 (search_symbols, find_addr_symbol): Likewise.
5588
5589 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5590 (read_dst_symtab): Likewise.
5591 * jv-lang.c (get_java_class_symtab): Likewise.
5592 * mdebugread.c: Include "gdb_assert.h".
5593 (shrink_block): Assert that the block being modified is not hashed.
5594 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5595 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5596 symbols.
5597 (dump_symtab): Recognize hashed blocks.
5598 * printcmd.c (print_frame_args): Assert that function blocks do not
5599 have hashed symbol tables.
5600 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5601 (fill_in_ada_prototype, debug_print_block): Likewise.
5602 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5603
5604 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5605
5606 * stack.c (print_frame): Use result of frame_address_in_block()
5607 instead of fi->pc when evaluating symbols.
5608 (backtrace_command_1): Ditto.
5609
5610 2002-07-11 Andrew Cagney <cagney@redhat.com>
5611
5612 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5613 Make static.
5614
5615 * arm-tdep.c (arm_register_name): Make return type constant.
5616
5617 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5618
5619 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5620 prototype.
5621 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5622 * s390-tdep.c (s390_fp_regnum): Ditto.
5623 (s390_read_fp): Ditto.
5624 (s390_pop_frame): Ditto.
5625 (_initialize_s390_tdep): Ditto.
5626 * remote.c (get_remote_state): Ditto.
5627 * procfs.c (mappingflags): Ditto.
5628 * memattr.c (_initialize_mem): Ditto.
5629 * mcore-tdep.c (mcore_pop_frame): Ditto.
5630 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5631 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5632 * language.c (set_case_str): Ditto.
5633 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5634 * frv-tdep.c (new_variant): Ditto.
5635 (frv_stopped_data_address): Ditto.
5636 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5637 (context_alloc): Ditto.
5638 (frame_state_alloc): Ditto.
5639 (unwind_tmp_obstack_init): Ditto.
5640 (unwind_tmp_obstack_free): Ditto.
5641 (cfi_read_fp): Ditto.
5642 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5643 (cris_pop_frame): Ditto.
5644 * c-lang.c (scanning_macro_expansion): Ditto.
5645 (finished_macro_expansion): Ditto.
5646 (c_preprocess_and_parse): Ditto.
5647 * gdbarch.sh: Ditto.
5648 * gdbarch.h, gdbarch.c: Regenerate.
5649 * config/mn10200/tm-mn10200.h: Adjust indentation.
5650 * target.c: Adjust indentation.
5651 * symtab.h: Adjust indentation.
5652 * stabsread.h: Adjust indentation.
5653 * remote-es.c: Adjust indentation.
5654 * os9kread.c: Adjust indentation.
5655
5656 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5657
5658 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5659 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5660
5661 2002-07-10 Grace Sainsbury <graces@redhat.com>
5662
5663 * NEWS: Mention m68k, mcore multi-arching.
5664 * MAINTAINERS: Change status of m68k, mcore to reflect
5665 multi-arching.
5666
5667 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5668
5669 * valops.c (find_overload_match): Free oload_syms.
5670
5671 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5672
5673 Define HAVE_SYS_PROC_H if sys/proc.h exists
5674 * configure.in: Add check for sys/proc.h
5675 * config.in: Regenerate.
5676 * configure: Regenerate.
5677
5678 2002-07-09 Grace Sainsbury <graces@redhat.com>
5679
5680 * config/m68k/tm-m68k.h: Remove macros wrapped in
5681 #if !GDB_MULTI_ARCH.
5682
5683 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5684
5685 * config.in, configure: Regenerate.
5686
5687 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5688
5689 * dwarf2cfi.c: Include "gcore.h".
5690 (execute_stack_op): Fix implementation of the
5691 DW_OP_deref and DW_OP_deref_size operators by letting do their
5692 lookup in the target.
5693
5694 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5695
5696 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5697 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5698 tdep->sc_sp_offset.
5699
5700 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5701
5702 Fix PR gdb/595, gdb/602
5703 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5704 Don't call value_cast, just read the vtable pointer; update comments
5705 to match.
5706
5707 2002-07-05 Grace Sainsbury <graces@redhat.com>
5708
5709 * config/mcore/tm-mcore.h: Remove file.
5710 * config/mcore/mcore.mt: Remove definition of TM_FILE
5711 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5712
5713 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5714
5715 * i386bsd-tdep.c: Include "gdb_string.h".
5716
5717 2002-07-04 Grace Sainsbury <graces@redhat.com>
5718
5719 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5720 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5721 mcore-tdep.
5722 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5723 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5724 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5725 (RETVAL_REGNUM): Move macros from tm-mcore.h
5726 (mcore_reg_struct_has_addr): New function.
5727 (mcore_gdbarch_init): Added initializations for the macros removed
5728 from tm-mcore.h.
5729
5730 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5731
5732 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5733 traditonal string branding within the ELF header.
5734
5735 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5736
5737 * symtab.c (remove_params): New function.
5738 (make_symbol_overload_list): Use it instead of cplus_demangle.
5739 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5740
5741 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5742
5743 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5744
5745 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5746 New variables.
5747 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5748 and tdep->sigtramp_end.
5749 * i386obsd-nat.c: New file.
5750 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5751
5752 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5753 Don't call get_current_frame().
5754
5755 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5756
5757 * i386-nat.c (child_post_startup_inferior): New function
5758 calling i386_cleanup_dregs if
5759 I386_USE_GENERIC_WATCHPOINTS is defined.
5760 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5761 conditional to acknowledge that i386-nat.c has its
5762 own child_post_startup_inferior function.
5763
5764 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5765
5766 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5767 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5768 instead of MAX_REGISTER_RAW_SIZE.
5769 (i386_extract_return_value, i386_extract_struct_value_address):
5770 Convert to use regcache.
5771 (i386_gdbarch_init): Set max_register_raw_size and
5772 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5773 Set extract_return_value and extract_struct_value_address instead
5774 of their deprecated variants.
5775
5776 Convert i386 target to generic dummy frames.
5777 * i386-tdep.c: Include "symfile.h".
5778 (i386_frameless_signal_p): Consider a function to be frameless if
5779 the pc points at the first instruction of the function.
5780 (i386_frame_chain): Handle (generic) call dummies.
5781 (i386_frame_saved_pc): Likewise.
5782 (i386_frame_init_saved_regs): Remove code dealing with call
5783 dummies on the stack.
5784 (i386_push_dummy_frame): Removed.
5785 (i386_call_dummy_words): Removed.
5786 (i386_fix_call_dummy): Removed.
5787 (i386_push_return_address): New function.
5788 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5789 parameter, and don't call get_current_frame.
5790 (i386_pop_frame): New function.
5791 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5792 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5793 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5794 call_dummy_length to 0, set call_dummy_words to NULL, set
5795 sizeof_call_dummy_words to 0, set fix_call_dummy to
5796 generic_fix_call_dummy, set pc_in_call_dummy to
5797 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5798 generic_push_dummy_frame, set push_return_address to
5799 i386_push_return_address and set frame_chain_valid to
5800 generic_file_frame_chain_valid.
5801
5802 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5803
5804 * gdbarch.sh (struct regcache): Add opaque declaration.
5805 (EXTRACT_RETURN_VALUE): New architecture method.
5806 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5807 * gdbarch.h, gdbarch.c: Regenerate.
5808 * arch-utils.c (legacy_extract_return_value): New function.
5809 * arch-utils.h (legacy_extract_return_value): Declare.
5810 * values.c (value_being_returned): Re-enable code handling
5811 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5812 deprecated_grub_regcache_for_registers call to block handling
5813 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5814 (EXTRACT_RETURN_VALUE): Do not define.
5815
5816 2002-07-03 Grace Sainsbury <graces@redhat.com>
5817
5818 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5819 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5820 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5821 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5822 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5823 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5824 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5825 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5826 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5827 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5828 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5829 argument so the function fits the prototype in the architecture
5830 vector.
5831 (mcore_pop_frame): Remove argument so the function fits the
5832 prototype. Use get_current_frame instead of the argument.
5833 (mcore_push_arguments): Change type of struct_return so the
5834 function can be used in the architecture vector.
5835 (mcore_store_struct_return): Add.
5836 (mcore_frame_init_saved_regs): Add.
5837 (mcore_gdbarch_init): Add function calls to replace the macros
5838 removed from tm-mcore.h
5839
5840 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5841
5842 * infcmd.c (print_return_value): Remove compatibility code calling
5843 deprecated_grub_regcache_for_registers.
5844
5845 * values.c: Include "regcache.h".
5846 (value_being_returned): Update. Use
5847 deprecated_grub_regcache_for_registers to extract the register
5848 buffer address.
5849 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5850 ``struct regcache''.
5851 * Makefile.in (values.o): Add dependency on $(regcache_h).
5852
5853 * inferior.h (run_stack_dummy): Change type of second parameter to
5854 a ``struct regcache''.
5855 * valops.c (hand_function_call): Change type of retbuf to ``struct
5856 regcache''. Allocate using regcache_xmalloc, clean using
5857 make_cleanup_regcache_xfree.
5858 * infcmd.c (run_stack_dummy): Update. Use
5859 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5860
5861 * regcache.c (do_regcache_xfree): New function.
5862 (make_cleanup_regcache_xfree): New function.
5863 * regcache.h (make_cleanup_regcache_xfree): Declare.
5864
5865 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5866
5867 * event-top.c (command_line_handler): Don't read past
5868 beginning of buffer.
5869
5870 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5871
5872 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5873 struct frame_id.
5874 (varobj_create): Store frame_id for root.
5875 (varobj_gen_name): Use xasprintf.
5876 (varobj_update): Save and restore frame using get_frame_id() and
5877 frame_find_by_id().
5878 (create_child): Use xasprintf.
5879 (new_root_variable): Initialize frame_id.
5880 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5881 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5882 to prevent memory leak.
5883
5884 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5885
5886 * valops.c (hand_function_call): Move declaration of retbuf to
5887 start of function, allocate using malloc, add a cleanup but before
5888 the inf_status cleanup, cleanup the buffer. Rename local variable
5889 old_chain to inf_status_cleanup.
5890
5891 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5892
5893 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5894
5895 * cli/cli-decode.c (cmd_func_p): New function.
5896 (cmd_func): New function.
5897
5898 * command.h: Add cmd_func() and cmd_func_p().
5899
5900 2002-07-03 Grace Sainsbury <graces@redhat.com>
5901
5902 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5903 (REGISTER_SIZE): Remove.
5904 (MAX_REGISTER_RAW_SIZE): Remove.
5905 (REGISTER_VIRTUAL_TYPE): Remove.
5906 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5907 (REGISTER_NAME): Remove.
5908 (USE_GENERIC_DUMMY_FRAMES): Remove.
5909 (CALL_DUMMY): Remove.
5910 (CALL_DUMMY_START_OFFSET): Remove.
5911 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5912 (CALL_DUMMY_LOCATION): Remove.
5913 (FIX_CALL_DUMMY): Remove.
5914 (CALL_DUMMY_ADDRESS): Remove.
5915 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5916 (SAVE_DUMMY_FRAME_TOS): Remove.
5917 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5918 (mcore_register_virtual_type): New function.
5919 (mcore_register_byte): New function.
5920 (mcore_register_size): New function.
5921 (mcore_register_name): New function.
5922 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5923 macros removed from tm-mcore.h.
5924 (mcore_dump_tdep): Add.
5925 (_initialize_mcore_tdep): Add gdbarch_register call.
5926
5927 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5928
5929 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5930 frameless_look_for_prologue, such that we actually call this
5931 function.
5932
5933 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5934
5935 * frame.h (frame_address_in_block): New function.
5936
5937 * blockframe.c (frame_address_in_block): New function extracted
5938 from get_frame_block().
5939 (get_frame_block): Use frame_address_in_block().
5940 (block_innermost_frame): Use frame_address_in_block() to match
5941 the frame pc address against the block boundaries rather than
5942 the frame pc directly. This prevents a failure when a frame pc
5943 is actually a return-address pointing immediately after the end
5944 of the given block.
5945
5946 2002-07-02 Grace Sainsbury <graces@redhat.com>
5947
5948 * MAINTAINERS: Add self under write after approval.
5949
5950 2002-07-02 Grace Sainsbury <graces@redhat.com>
5951
5952 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5953 used in architecture vector. The default is
5954 m68k_local_breakpoint_from_pc.
5955 (m68k_local_breakpoint_from_pc): Add.
5956 (enum): Add register numbers from tm-m68k.h.
5957 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5958 vector.
5959 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5960 GDB_MULTI_ARCH_PARTIAL.
5961 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5962 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5963 m68k-tdep.c.
5964 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5965 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5966 to enum in m68k-tdep.c
5967
5968 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5969
5970 * solib-osf.c (open_map): Compute the list of shared libraries
5971 loaded by the inferior, rather than the list of libraries loaded
5972 by GDB itself. Otherwise, GDB ends up reading the symbols from
5973 the wrong shared libraries...
5974
5975 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5976
5977 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5978 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5979 macros.
5980 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5981 Remove functions.
5982 (FRAMELESS_SIGNAL): Remove function.
5983 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5984 i386_linux_saved_pc_after_call): Removed.
5985 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5986 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5987 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5988
5989 * i386-tdep.c (i386_frameless_signal_p): New function.
5990 (i386_frame_chain): Deal with frameless signals.
5991 (i386_sigtramp_saved_sp): New function.
5992 (i386_frame_saved_pc): Deal with frameless signals.
5993 (i386_saved_pc_after_call): Make sure the correct value is
5994 returned just after entry into a sigtramp.
5995 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5996 i386fbsd4_sc_sp_offset): New variables.
5997 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5998 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5999 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6000 similiar to what we already did for sc_pc_offset.
6001 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6002 tdep->sc_sp_offset.
6003
6004 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6005
6006 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6007
6008 * config/i386/tm-x86-64linux.h: New.
6009 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6010 definitions.
6011 * config/i386/nm-x86-64.h: Rename to ...
6012 * config/i386/nm-x86-64linux.h: ... this one.
6013 * config/i386/x86-64linux.mh: Reflect the above change.
6014
6015 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6016
6017 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6018 with sigcontext_addr. Add sc_sp_offset.
6019 (i386bsd_sigtramp_saved_pc): Remove prototype.
6020 (i386bsd_sicontext_addr): Add prototype.
6021 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6022 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6023 (i386_svr4_sigtramp_saved_pc): Removed.
6024 (i386_svr4_sigcontext_addr): New function.
6025 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6026 Initialize tdep->sigcontext_addr instead. Initialize
6027 tdep->sc_pc_offset and tdep->sc_sp_offset.
6028 (i386_gdbarch_init): Likewise.
6029 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6030 any more.
6031 (i386bsd_sigtramp_saved_pc): Remove function.
6032 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6033 Initialize tdep->sigcontext_addr instead. Initialize
6034 tdep->sc_pc_offset.
6035 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6036 of tdep->sigtramp_saved_pc.
6037 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6038 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6039 instead.
6040
6041 * i386-tdep.c (i386_frameless_function_invocation,
6042 i386_frame_num_args, i386_frame_init_saved_regs,
6043 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6044 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6045 i386_extract_return_value, i386_store_return_value,
6046 i386_extract_struct_value_address, i386_register_virtual_type,
6047 i386_register_convertible, i386_register_convert_to_virtual,
6048 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6049 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6050 static.
6051
6052 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6053
6054 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6055
6056 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6057 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6058 this macro. Include "value.h".
6059
6060 2002-06-30 Aidan Skinner <aidan@velvet.net>
6061
6062 * ada-exp.tab.c: remove as it's a generated file
6063 * ada-lex.c: remove as it's a generated file
6064
6065 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6066
6067 * config/i386/tm-i386.h (struct frame_info, struct
6068 frame_saved_regs, struct value, struct type): Remove forward
6069 declarations.
6070
6071 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6072 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6073 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6074 (FILL_FPXREGSET): Define.
6075
6076 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6077
6078 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6079 i[3456]86-*-netbsd* case.
6080 * config/i386/tm-obsd.h: Removed.
6081 * config/i386/obsd.mt: Removed.
6082 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6083 core-aout.o.
6084 (MH_CFLAGS): Add -DYYDEBUG=0.
6085
6086 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6087 i386nbsd_sc_pc_offset on OpenBSD too.
6088
6089 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6090 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6091 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6092 define.
6093 * i386bsd-tdep.c: Include "arch-utils.h".
6094 (i386bsd_aout_in_solib_call_trampoline): New function.
6095 (i386bsd_init_abi): Set in_solib_call_trampoline to
6096 i386bsd_aout_in_solib_call_trampoline.
6097 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6098 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6099
6100 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6101
6102 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6103 (struct obstack, struct bcache): Add opaque declarations.
6104 * Makefile.in (macrotab_h): Update
6105
6106 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6107
6108 * blockframe.c (generic_find_dummy_frame): Change return type to
6109 ``struct regcache''.
6110 (struct dummy_frame): Replace field ``registers'' with regcache, a
6111 struct regcache object.
6112 (generic_find_dummy_frame): Update.
6113 (generic_push_dummy_frame): Update. Use regcache_xfree,
6114 regcache_xmalloc and regcache_cpy.
6115 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6116 regcache_xfree.
6117 (deprecated_generic_find_dummy_frame): Update.
6118 (generic_read_register_dummy): Update. Use
6119 regcache_read_as_address.
6120 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6121 (generic_get_saved_register): Update. Use regcache_read.
6122
6123 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6124
6125 * Makefile.in (objfiles_h): Add $(bcache_h).
6126 * objfiles.h: Include "bcache.h".
6127
6128 * Makefile.in (symtab_h): Remove $(bcache_h).
6129 * symtab.h: Do not include "bcache.h".
6130
6131 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6132
6133 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6134 generic_func_frame_chain_valid.
6135
6136 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6137
6138 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6139 * config/i386/tm-fbsd.h: Likewise.
6140
6141 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6142
6143 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6144 generic_unwind_get_saved_register.
6145
6146 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6147
6148 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6149 * regcache.c (supply_register): Add missing argument to
6150 register_buffer call.
6151
6152 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6153
6154 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6155 Solaris /bin/grep does not not like it. From Peter Schauer.
6156
6157 2002-06-26 Tom Tromey <tromey@redhat.com>
6158
6159 * command.h (add_setshow_cmd): Declare.
6160 (add_setshow_cmd_full): Declare.
6161 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6162 returns void. Use add_setshow_cmd_full.
6163 (add_setshow_cmd_full): New function.
6164 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6165 (add_setshow_boolean_cmd): Likewise.
6166
6167 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6168
6169 * config/vax/tm-vax.h: Protect from multiple inclusion.
6170 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6171 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6172 * config/vax/tm-vaxbsd.h: ...here. New file.
6173 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6174
6175 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6176
6177 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6178 (BELIEVE_PCC_PROMOTION): Remove.
6179 (AP_REGNUM): Move to...
6180 * config/vax/nm-vax.h: ...here.
6181 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6182 (vax_breakpoint_from_pc): New function.
6183 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6184 and gdbarch_believe_pcc_promotion.
6185
6186 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6187
6188 * Makefile.in (vax_tdep_h): Define.
6189 (vax-tdep.o): Use $(vax_tdep_h).
6190 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6191 (vax_dump_tdep): New function.
6192 (_initialize_vax_tdep): Register vax_dump_tdep.
6193 * vax-tdep.h: Include osabi.h.
6194 (struct gdbarch_tdep): New.
6195
6196 2002-06-26 Andrew Cagney <cagney@redhat.com>
6197
6198 * frame.h (deprecated_generic_find_dummy_frame): Rename
6199 generic_find_dummy_frame.
6200 * blockframe.c (generic_find_dummy_frame): Make static.
6201 (deprecated_generic_find_dummy_frame): New function.
6202 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6203 generic_find_dummy_frame with deprecated_find_dummy_frame.
6204 (sh64_nofp_frame_init_saved_regs): Ditto.
6205 (sh_fp_frame_init_saved_regs): Ditto.
6206 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6207 (s390_frame_chain): Ditto.
6208 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6209
6210 2002-06-26 Grace Sainsbury <graces@redhat.com>
6211
6212 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6213 gdbarch vector are at the top.
6214 (NUM_REGS): Remove.
6215 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6216 (FRAME_ARGS_ADDRESS): Remove.
6217 (FRAME_LOCALS_ADDRESS): Remove.
6218 (FRAME_NUM_ARGS): Remove.
6219 (FRAME_ARGS_SKIP): Remove.
6220 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6221 (m68k_gdbarch_init): Add gdbarch initializations for macros
6222 undefined in tm-m68k.h
6223
6224 2002-06-26 Grace Sainsbury <graces@redhat.com>
6225
6226 * monitor.h: Add the function regname to monitor_ops
6227 structure. This way NUM_REGS does not have to be a constant.
6228 * monitor.c (monitor_fetch_register): Added support for regname
6229 function. The function is called if the array regnames is NULL.
6230 (monitor_store_register): Same.
6231 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6232 regnames array.
6233 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6234 cpu32bug_cmds.regname to point to new function.
6235 * abug-rom.c (abug_regname): Same as above.
6236 (init_abug_cmds): Same.
6237 * dbug-rom.c (dbug_regname): Same as above.
6238 (init_dbug_cmds): Same.
6239 * remote-est.c (est_regname): Same.
6240 (init_est_cmds): Same.
6241 * rom68k-rom.c (rom68k_regname): Same.
6242 (init_rom68k_cmds): Same.
6243
6244 2002-06-25 Tom Tromey <tromey@redhat.com>
6245
6246 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6247
6248 2002-06-25 Andrew Cagney <cagney@redhat.com>
6249
6250 * infrun.c (stop_registers): Change variable's type to ``struct
6251 regcache'''.
6252 (xmalloc_inferior_status): Delete function.
6253 (free_inferior_status): Delete function.
6254 (normal_stop): Use regcache_cpy.
6255 (struct inferior_status): Change type of fields ``stop_registers''
6256 and ``registers'' to ``struct regcache''.
6257 (write_inferior_status_register): Use regcache_write.
6258 (save_inferior_status): Instead of calling
6259 xmalloc_inferior_status, allocate the inf_status buffer directly.
6260 Use regcache_dup_no_passthrough and regcache_dup to save the
6261 buffers.
6262 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6263 Replace the stop_registers regcache instead of overriding it. Use
6264 regcache_xfree. Instead of calling free_inferior_status, xfree
6265 the buffer directly.
6266 (discard_inferior_status): Use regcache_xfree. Instead of calling
6267 free_inferior_status, xfree the buffer directly.
6268 (build_infrun): Use regcache_xmalloc.
6269 (_initialize_infrun): Delete redundant call to build_infrun.
6270
6271 * Makefile.in (infcmd.o): Add $(regcache_h).
6272
6273 * infcmd.c: Include "regcache.h".
6274 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6275 obtain the address of `stop_registers' register buffer.
6276 (print_return_value): Ditto.
6277
6278 * inferior.h (struct regcache): Add opaque declaration.
6279 (stop_registers): Change variable's declared type to ``struct
6280 regcache''.
6281
6282 2002-06-24 Tom Tromey <tromey@redhat.com>
6283
6284 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6285 * target.c (initialize_targets): Fixed typo in
6286 trust-readonly-sections `show' documentation.
6287
6288 * main.c: Marked all strings with _().
6289
6290 2002-06-24 Don Howard <dhoward@redhat.com>
6291
6292 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6293 that means max CORE_ADDR+1.
6294 (lookup_mem_region): Ditto.
6295 (mem_info_command): Ditto.
6296
6297 2002-06-24 Grace Sainsbury <graces@redhat.com>
6298
6299 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6300 (REGISTER_BYTES_OK): Remove.
6301 (REGISTER_BYTES): Remove.
6302 (STORE_STRUCT_RETURN): Remove.
6303 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6304 (STORE_RETURN_VALUE): Remove.
6305 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6306 (FRAME_CHAIN): Remove.
6307 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6308 (FRAME_SAVED_PC): Remove.
6309 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6310 (m68k_store_struct_return): Add.
6311 (m68k_deprecated_extract_return_value): Add.
6312 (m68k_deprecated_extract_struct_value_address): Add.
6313 (m68k_store_return_value): Add.
6314 (m68k_frame_chain): Add.
6315 (m68k_frameless_function_invocation): Add.
6316 (m68k_frame_saved_pc): Add.
6317 (m68k_gdbarch_init): added set_gdbarch calls for new
6318 functions and deleted macros.
6319
6320 2002-06-23 Tom Tromey <tromey@redhat.com>
6321
6322 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6323 (ALLDEPFILES): Likewise.
6324 (udiheaders): Removed.
6325 (udip2soc.o): Likewise.
6326 (udi2go32.o): Likewise.
6327 (udr.o): Likewise.
6328 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6329
6330 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6331
6332 * infrun.c (_initialize_infrun): Delete unnecessary call to
6333 build_infrun.
6334
6335 * regcache.h: Update comments describing the regcache_cpy family
6336 of functions.
6337 (regcache_save, regcache_restore): Delete declaration.
6338 (regcache_save_no_passthrough): Delete declaration.
6339 (regcache_restore_no_passthrough): Delete declaration.
6340 * regcache.c (regcache_save): Delete function.
6341 (regcache_save_no_passthrough): Delete function.
6342 (regcache_restore): Delete function.
6343 (regcache_restore_no_passthrough): Delete function.
6344
6345 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6346
6347 * config/m68k/tm-m68k.h: Fix typo.
6348 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6349 (m68k_frame_init_saved_regs): Declare.
6350
6351 2002-06-21 Jim Blandy <jimb@redhat.com>
6352
6353 Remove some vestiges of Harris 88k support.
6354 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6355 register numbering quirk.
6356 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6357 odd symbols occurring in Harris 88k ELF targets.
6358
6359 2002-06-21 Tom Tromey <tromey@redhat.com>
6360
6361 * gdb_locale.h: New file.
6362 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6363 (defs_h): Added gdb_locale.h.
6364 * configure, config.in: Rebuilt.
6365 * configure.in (PACKAGE): Define.
6366 * defs.h: Include gdb_locale.h.
6367 * main.c (captured_main): Call setlocale, bindtextdomain,
6368 textdomain.
6369
6370 2002-06-21 Dave Brolley <brolley@redhat.com>
6371
6372 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6373 * config/frv/frv.mt: New file.
6374 * config/frv/tm-frv.h: New file.
6375 * configure.tgt: Support frv-*-*.
6376 * Makefile.in (frv-tdep.o): New target.
6377 * frv-tdep.c: New file.
6378 * NEWS: Mention frv.
6379
6380 2002-06-21 Dave Brolley <brolley@redhat.com>
6381
6382 * MAINTAINERS: Add self to "Write After Approval" list.
6383
6384 2002-06-21 Grace Sainsbury <graces@redhat.com>
6385
6386 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6387 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6388 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6389 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6390 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6391
6392 * m68k-tdep.c: Include arch-utils.h
6393 (m68k_register_raw_size): Add.
6394 (m68k_register_virtual_size): Add.
6395 (m68k_register_virtual_type): Add.
6396 (m68k_register_name): Add.
6397 (m68k_stack_align): Add.
6398 (m68k_register_byte): Add.
6399 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6400 tm-m68k.h.
6401
6402 2002-06-21 Grace Sainsbury <graces@redhat.com>
6403
6404 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6405 m68k_find_saved_regs.
6406 (m68k_pop_frame): Removed saved_regs structure, and replaced
6407 references to it with frame->saved_regs.
6408 (m68k_gdbarch_init): Added function calls to initialize the
6409 gdbarch structure.
6410 (m68k_fix_call_dummy): Add.
6411 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6412 (CALL_DUMMY): Remove.
6413 (CALL_DUMMY_LENGTH): Remove.
6414 (CALL_DUMMY_START_OFFSET): Remove.
6415 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6416 (FIX_CALL_DUMMY): Remove.
6417 (PUSH_DUMMY_FRAME): Remove.
6418 (POP_FRAME): Remove.
6419
6420 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6421
6422 * parse.c (parse_fprintf): New function used to avoid calls to
6423 fprintf in bison parser generated debug code.
6424 * parser-defs.h: Declaration of new parse_fprintf function.
6425 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6426 Set YYDEBUG to 1 by default.
6427 Set YYFPRINTF as parse_fprintf.
6428
6429 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6430
6431 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6432 encoding anymore.
6433 (pointer_encoding, enum ptr_encoding): New.
6434 (execute_cfa_program): Take care about pointer encoding.
6435 (dwarf2_build_frame_info): Only call parse_frame_info for
6436 .debug_frame and .eh_frame.
6437 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6438 fixed augmentation handling, added relative addressing,
6439 ignore duplicate FDEs. Added comments.
6440 * dwarf2cfi.c: Reindented.
6441
6442 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6443
6444 * event-top.c (command_handler): Don't use space_at_cmd_start
6445 unless there is sbrk() on the host. Assign time and space data
6446 to union fields of the appropriate length.
6447
6448 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6449
6450 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6451 x86_64_register_name. Return type changed to 'const char *'.
6452 (x86_64_register_name2nr): Rename to x86_64_register_number.
6453 (x86_64_gdbarch_init): Update to reflect the change.
6454 * x86-64-tdep.h: Ditto.
6455 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6456 (supply_fpregset): Ditto.
6457
6458 2002-06-19 Andrew Cagney <cagney@redhat.com>
6459
6460 * regcache.h: Update copyright.
6461 (struct regcache, struct gdbarch): Add opaque declarations.
6462 (current_regcache): Declare global variable.
6463 (regcache_read, regcache_write): Add gdbarch parameter.
6464 (regcache_save, regcache_save_no_passthrough)
6465 (regcache_restore, regcache_restore_no_passthrough)
6466 (regcache_dup, regcache_dup_no_passthrough)
6467 (regcache_cpy, regcache_cpy_no_passthrough)
6468 (deprecated_grub_regcache_for_registers)
6469 (deprecated_grub_regcache_for_register_valid)
6470 (regcache_valid_p): Add function declarations.
6471
6472 * regcache.c: Update copyright.
6473 (regcache_descr_handle): New global variable.
6474 (struct regcache_descr): Define.
6475 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6476 (regcache_descr, xfree_regcache_descr): New functions.
6477 (struct regcache): Define.
6478 (regcache_xmalloc, regcache_xfree): New functions.
6479 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6480 (regcache_dup, regcache_dup_no_passthrough): New functions.
6481 (regcache_valid_p, regcache_read_as_address): New functions.
6482 (deprecated_grub_regcache_for_registers): New function.
6483 (deprecated_grub_regcache_for_register_valid): New function.
6484 (current_regcache): New global variable.
6485 (register_buffer): Add regcache parameter. Update calls.
6486 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6487 (read_register_gen, write_register_gen): Update register_buffer
6488 call. Test for legacy_p instead of gdbarch_register_read_p or
6489 gdbarch_register_write_p.
6490 (regcache_collect): Update register_buffer call.
6491 (build_regcache): Rewrite. Use deprecated grub functions.
6492 (regcache_save, regcache_save_no_passthrough): New functions.
6493 (regcache_restore, regcache_restore_no_passthrough): New
6494 functions.
6495 (_initialize_regcache): Create the regcache_data_handle. Swap
6496 current_regcache global variable.
6497
6498 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6499 parameter to regcache_read and regcache_write calls.
6500 (sh4_register_read): Ditto.
6501 (sh64_pseudo_register_read): Ditto.
6502 (sh64_register_read): Ditto.
6503 (sh_pseudo_register_write): Ditto.
6504 (sh4_register_write): Ditto.
6505 (sh64_pseudo_register_write): Ditto.
6506 (sh64_register_write): Ditto.
6507
6508 * defs.h (XCALLOC): Define.
6509
6510 2002-06-19 Grace Sainsbury <graces@redhat.com>
6511
6512 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6513 * m68k-tdep.c (m68k_gdbarch_init): Added.
6514 (m68k_dump_tdep): Added.
6515
6516 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6517
6518 * ada-lang.c (fill_in_ada_prototype): Update comment.
6519
6520 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6521
6522 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6523 MIPS_ABI_LAST.
6524 (mips_abi_string, mips_abi_strings): New.
6525 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6526 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6527 tdep->mips_abi_string. Honor mips_abi_string. Default to
6528 O32 if no ABI is found.
6529 (mips_dump_tdep): Use mips_abi_strings.
6530 (mips_abi_update): New function.
6531 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6532 ``set mips abi'' and ``show mips abi''. Check the size of
6533 mips_abi_strings.
6534
6535 2002-06-19 Andrew Cagney <cagney@redhat.com>
6536
6537 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6538 constant.
6539
6540 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6541
6542 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6543 current frame using only the first stack size adjustment. All
6544 subsequent size adjustments are not considered to be part of
6545 the "static" part of the current frame.
6546 Compute the address of the saved registers relative to the
6547 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6548 in use in this frame.
6549
6550 2002-06-18 Don Howard <dhoward@redhat.com>
6551
6552 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6553 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6554 suggesting this solution.
6555
6556 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6557
6558 * config/romp/xm-rtbsd.h: Delete file.
6559 * config/romp/rtbsd.mh: Delete file.
6560
6561 2002-06-18 Keith Seitz <keiths@redhat.com>
6562
6563 * breakpoint.c (condition_command): Post breakpoint_modify
6564 when a condition is added to an existing breakpoint.
6565 (commands_command): Likewise for commands.
6566 (set_ignore_count): Likewise for ignore counts.
6567 If no tty, do not simply return, still need to send event
6568 notification.
6569 (ignore_command): Only print a newline if the command came
6570 from a tty.
6571 Don't call breakpoints_changed, since this is now properly
6572 handled by set_ignore_count.
6573
6574 2002-06-18 Andrew Cagney <cagney@redhat.com>
6575
6576 * MAINTAINERS: Note that cris-elf target can be compiled with
6577 -Werror.
6578 * cris-tdep.c (cris_register_name): Make return type constant.
6579 (cris_breakpoint_from_pc): Ditto.
6580
6581 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6582
6583 * frame.h (struct frame_info): Change type of context to
6584 'struct context'.
6585
6586 2002-06-17 Andrew Cagney <cagney@redhat.com>
6587
6588 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6589 pointer.
6590 * gdbarch.h, gdbarch.c: Regenerate.
6591 * config/mips/tm-mips.h (mips_register_name): Update.
6592 * i386-tdep.h (i386_register_name): Update.
6593 * mips-tdep.c (mips_register_name): Update
6594 * alpha-tdep.c (alpha_register_name): Update.
6595 * arch-utils.c (legacy_register_name): Update.
6596 * arch-utils.h (legacy_register_name): Update.
6597 * avr-tdep.c (avr_register_name): Update.
6598 * ia64-tdep.c (ia64_register_name): Update.
6599 * i386-tdep.c (i386_register_name): Update.
6600 * sparc-tdep.c (sparc32_register_name): Update.
6601 (sparc64_register_name): Update.
6602 (sparclite_register_name): Update.
6603 (sparclet_register_name): Update.
6604 * sh-tdep.c (sh_generic_register_name): Update.
6605 (sh_sh_register_name): Update.
6606 (sh_sh3_register_name): Update.
6607 (sh_sh3e_register_name): Update.
6608 (sh_sh_dsp_register_name): Update.
6609 (sh_sh3_dsp_register_name): Update.
6610 (sh_sh4_register_name): Update.
6611 (sh_sh64_register_name): Update.
6612 * s390-tdep.c (s390_register_name): Update.
6613 * rs6000-tdep.c (rs6000_register_name): Update.
6614 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6615 (ns32k_register_name_32382): Update.
6616 * d10v-tdep.c (d10v_ts2_register_name): Update.
6617 (d10v_ts3_register_name): Update.
6618 * xstormy16-tdep.c (xstormy16_register_name): Update.
6619 * vax-tdep.c (vax_register_name): Update.
6620 * v850-tdep.c (v850_register_name): Update.
6621 * m68hc11-tdep.c (m68hc11_register_name): Update.
6622 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6623 (am33_register_name): Update.
6624
6625 2002-06-17 Grace Sainsbury <graces@redhat.com>
6626
6627 * m68k-tdep.c: Reindented.
6628
6629 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6630
6631 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6632 list of predefined types.
6633
6634 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6635
6636 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6637 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6638 REGISTER_CONVERT_TO_RAW): Remove defines.
6639 (i386_register_virtual_type, i386_register_convertible,
6640 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6641 Remove prototypes.
6642 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6643 macros mentioned above.
6644
6645 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6646 (i386lynx_saved_pc_after_call): Remove prototype.
6647 * i386ly-tdep.c: Include "i386-tdep.h".
6648 (i386lynx_saved_pc_after_call): Make static. Use
6649 read_memory_nobpt instead of read_memory. Use
6650 read_memory_unsigned_integer instead of read_memory_integer.
6651 (i386lynx_init_abi): New function.
6652 (i386lynx_coff_osabi_sniffer): New function.
6653 (_initialize_i386bsd_tdep): New function.
6654
6655 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6656 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6657 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6658 (i386_fix_call_dummy): Remove prototype.
6659 * i386-tdep.c (i386_call_dummy_words): New variable.
6660 (i386_gdbarch_init): Adjust for removal of the
6661 macros mentioned above.
6662
6663 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6664
6665 * command.h (add_setshow_auto_boolean_cmd): Replace
6666 add_set_auto_boolean_cmd.
6667 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6668 add_set_auto_boolean_cmd.
6669 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6670 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6671 mask-address'' command.
6672 (show_mask_address): Add cmd parameter.
6673 * remote.c (add_packet_config_cmd): Update. Change type of
6674 set_func and show_func to cmd_sfunc_ftype.
6675 (_initialize_remote): Update `set remote Z-packet'
6676 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6677 (show_remote_protocol_e_packet_cmd): Ditto.
6678 (show_remote_protocol_E_packet_cmd): Ditto.
6679 (show_remote_protocol_P_packet_cmd): Ditto.
6680 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6681 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6682 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6683 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6684 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6685 (show_remote_protocol_Z_packet_cmd): Ditto.
6686 (show_remote_protocol_binary_download_cmd): Ditto.
6687 (show_remote_cmd): Pass NULL to all of above.
6688
6689 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6690
6691 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6692 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6693 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6694 POP_FRAME): Remove defines.
6695 (i386_push_arguments, i386_store_struct_return,
6696 i386_extract_return_value, i386_store_return_value,
6697 i386_extract_struct_value_address, i386_push_dummy_frame,
6698 i386_pop_frame): Renove prototypes.
6699 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6700 macros mentioned above.
6701
6702 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6703
6704 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6705 add_set_boolean_cmd.
6706 (add_setshow_cmd): New function.
6707 * command.h (add_setshow_boolean_cmd): Replace
6708 add_set_boolean_cmd.
6709 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6710 and ``set rdiromatzero''.
6711 * maint.c (_initialize_maint_cmds): Update commented out code.
6712 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6713 * target.c (initialize_targets): Update `set
6714 trust-readonly-sections'.
6715 * remote.c (_initialize_remote): Update `set remotebreak'.
6716
6717 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6718
6719 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6720 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6721 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6722 fit into multi-arch framework.
6723 (i386_breakpoint_from_pc): New function.
6724 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6725 above.
6726
6727 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6728 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6729 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6730 (i386_frameless_function_invocation, i386_frame_num_args,
6731 i386_frame_init_saved_regs): Remove prototypes.
6732 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6733 macros mentioned above.
6734
6735 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6736
6737 * cli/cli-decode.c (set_cmd_cfunc): Update.
6738 (set_cmd_sfunc): Update.
6739 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6740 (set_cmd_sfunc, set_cmd_cfunc): Update.
6741 * cli/cli-decode.h: Update.
6742
6743 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6744
6745 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6746 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6747
6748 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6749
6750 * defs.h (auto_boolean): Declare enum.
6751 * command.h (cmd_auto_boolean): Delete enum.
6752 * mips-tdep.c (mask_address_var): Update.
6753 (mips_mask_address_p): Update.
6754 (show_mask_address): Update.
6755 * remote.c (struct packet_config): Update.
6756 (update_packet_config): Update.
6757 (show_packet_config_cmd): Update.
6758 (packet_ok): Update.
6759 (add_packet_config_cmd): Update.
6760 (_initialize_remote):
6761 * command.h: Update.
6762 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6763 (do_setshow_command): Update.
6764 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6765 * cli/cli-decode.h: Update.
6766
6767 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6768
6769 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6770 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6771 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6772 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6773 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6774 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6775
6776 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6777 list of DJGPP COFF targets.
6778
6779 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6780 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6781 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6782 (FP0_REGNUM): Remove define.
6783 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6784 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6785 (i386_register_virtual_size): Remove protoype.
6786 * i386-tdep.c (i386_register_virtual_size): Removed.
6787 (i386_extract_return_value, i386_store_return_value): Use
6788 FP0_REGNUM instead of NUM_FREGS to determine whether the
6789 floating-point registers are available.
6790 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6791 Adjust for removal of macros mentioned above.
6792
6793 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6794
6795 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6796 comments.
6797 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6798 Remove prototypes.
6799 (supply_gregset, fill_gregset): Remove use of register keyword and
6800 remove declaration for regmap. Use I386_NUM_GREGS instead of
6801 NUM_REGS and NUM_FREGS.
6802 (FPREGSET_FSAVE_OFFSET): Remove.
6803 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6804 NUM_FREGS to determine whether the floating-point registers are
6805 available.
6806
6807 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6808 gnu_store_registers): Replace usage of NUM_GREGS with
6809 I386_NUM_GREGS.
6810
6811 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6812 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6813 usage of NUM_GREGS with I386_NUM_GREGS.
6814
6815 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6816
6817 * i386bsd-nat.c: Include "i386-tdep.h".
6818 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6819 I386_NUM_GREGS.
6820
6821 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6822 and associated comment. They no longer make any sense, since we
6823 don't use this file anymore on Linux.
6824
6825 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6826 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6827 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6828 elements in these arrays.
6829 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6830 MAX_NUM_REGS.
6831
6832 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6833
6834 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6835 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6836
6837 2002-06-14 Andrew Cagney <cagney@redhat.com>
6838
6839 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6840 EXTRACT_RETURN_VALUE.
6841 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6842 EXTRACT_STRUCT_VALUE_ADDRESS.
6843 * gdbarch.h, gdbarch.c: Regenerate.
6844
6845 * values.c (value_being_returned): Handle
6846 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6847 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6848
6849 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6850 * arm-tdep.c (arm_gdbarch_init): Update.
6851 * avr-tdep.c (avr_gdbarch_init): Update.
6852 * cris-tdep.c (cris_gdbarch_init): Update.
6853 * d10v-tdep.c (d10v_gdbarch_init): Update.
6854 * ia64-tdep.c (ia64_gdbarch_init): Update.
6855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6857 * s390-tdep.c (s390_gdbarch_init): Update.
6858 * sh-tdep.c (sh_gdbarch_init): Update.
6859 * s390-tdep.c (s390_gdbarch_init): Update.
6860 * sparc-tdep.c (sparc_gdbarch_init): Update.
6861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6862 * v850-tdep.c (v850_gdbarch_init): Update.
6863 * vax-tdep.c (vax_gdbarch_init): Update.
6864 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6866
6867 * config/arc/tm-arc.h: Update.
6868 * config/d30v/tm-d30v.h: Update.
6869 * config/fr30/tm-fr30.h: Update.
6870 * config/h8300/tm-h8300.h: Update.
6871 * config/h8500/tm-h8500.h: Update.
6872 * config/i386/tm-i386.h: Update.
6873 * config/i386/tm-ptx.h: Update.
6874 * config/i386/tm-symmetry.h: Update.
6875 * config/i960/tm-i960.h: Update.
6876 * config/m32r/tm-m32r.h: Update.
6877 * config/m68k/tm-delta68.h: Update.
6878 * config/m68k/tm-linux.h: Update.
6879 * config/m68k/tm-m68k.h: Update.
6880 * config/m88k/tm-m88k.h: Update.
6881 * config/mcore/tm-mcore.h: Update.
6882 * config/mips/tm-mips.h: Update.
6883 * config/mn10200/tm-mn10200.h: Update.
6884 * config/pa/tm-hppa.h: Update.
6885 * config/pa/tm-hppa64.h: Update.
6886 * config/sparc/tm-sp64.h: Update.
6887 * config/sparc/tm-sparc.h: Update.
6888 * config/sparc/tm-sparclet.h: Update.
6889 * config/z8k/tm-z8k.h: Update.
6890
6891 2002-06-14 Andrew Cagney <cagney@redhat.com>
6892
6893 * Makefile.in (i386_linux_tdep_h): Define.
6894 (i386_tdep_h, i387_tdep_h): Define.
6895 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6896 $(i386_tdep_h) and $(i387_tdep_h).
6897 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6898
6899 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6900
6901 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6902 Already covered by the default.
6903
6904 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6905 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6906 (i386_gdbarch_init): Initialize long_double_format and long_double
6907 bit.
6908
6909 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6910 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6911 Move these to ...
6912 * config/i386/i386sol2.mh: ... here.
6913 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6914 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6915 (SIGCONTEXT_PC_OFFSET): Remove define.
6916 (IN_SIGTRAMP): Remove define.
6917 * i386-sol2-tdep.c: New file.
6918
6919 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6920 * config/i386/tm-i386nw.h: Removed.
6921
6922 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6923 USE_STRUCT_CONVENTION): Remove defines.
6924 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6925 (get_longjmp_target): Remove prototype.
6926 (IN_SIGTRAMP): Remove define.
6927 (i386bsd_in_sigtramp): Remove prototype.
6928 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6929 function. Update comment accordingly
6930 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6931 (FRAME_SAVED_PC): Remove define.
6932 (i386bsd_frame_saved_pc): Remove prototype.
6933 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6934 GET_LONGJMP_TARGET): Remove defines.
6935 (get_longjmp_target): Remove prototype.
6936 (IN_SIGTRAMP): Remove define.
6937 (i386bsd_in_sigtramp): Remove prototype.
6938 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6939 function. Update comment accordingly
6940 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6941 (FRAME_SAVED_PC): Remove define.
6942 (i386bsd_frame_saved_pc): Remove prototype.
6943 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6944 Remove prototype.
6945 (USE_STRUCT_CONVENTION): Remove prototype.
6946 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6947 declaration.
6948 (_initialize_i386bsd_nat): Revise logic to determine some
6949 constants at compile time when compiling a native GDB. Warn if
6950 things don't match up with what we expect.
6951 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6952 Remove variables.
6953 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6954 to use date stored in `struct gdbarch_tdep'.
6955 (i386bsd_sigcontext_offset): Remove varaible.
6956 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6957 stored in `struct gdbarch_tdep'.
6958 (i386bsd_frame_saved_pc): Make static.
6959 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6960 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6961 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6962 i386fbsd4_sc_pc_offset): New variables.
6963 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6964 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6965 functions.
6966 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6967 functions.
6968 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6969 Modify the value of i386fbsd_sigtramp_start and
6970 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6971 i386fbsd_sigtramp_end.
6972 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6973 function.
6974
6975 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6976 define to i386-linux-tdep.h.
6977 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6978 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6979 defines.
6980 (i386_linux_register_name, i386_linux_register_byte,
6981 i386_linux_register_raw_size): Remove prototypes.
6982 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6983 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6984 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6985 TARGET_WRITE_PC): Remove defines.
6986 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6987 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6988 i386_linux_write_pc): Remove prototypes.
6989 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6990 (get_longjmp_target): Remove prototype.
6991 * i386-linux-tdep.h: New file.
6992 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6993 * i386-linux-tdep.c: Include "i386-tdep.h" and
6994 "i386-linux-tdep.h".
6995 (i386_linux_register_name, i386_linux_register_byte,
6996 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6997 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6998 Make static.
6999 (i386_linux_init_abi): New function.
7000 (_initialize_i386_linux_tdep): New function.
7001
7002 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7003 (i386_saved_pc_after_call): Remove prototype.
7004 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7005 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7006 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7007 (i386_register_name, i386_stab_reg_to_regnum,
7008 i386_dwarf_reg_to_regnum): Remove prototypes.
7009 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7010 SIZEOF_SSE_REGS): Remove defines.
7011 (REGISTER_BYTES): Remove define.
7012 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7013 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7014 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7015 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7016 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7017 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7018 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7019 (get_longjmp_target): Remove prototype.
7020 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7021 (sigtramp_saved_pc): Remove define.
7022 (i386v4_sigtramp_saved_pc): Remove prototype.
7023 * config/i386/tm-go32.h (FRAME_CHAIN,
7024 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7025 (i386go32_frame_saved_pc): Remove prototype.
7026 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7027 (get_longjmp_target): Remove prototype.
7028 * i386-tdep.h: Include "osabi.h".
7029 (enum i386_abi): Removed.
7030 (enum struct_return): New enum.
7031 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7032 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7033 sc_pc_offset members.
7034 (i386_gdbarch_register_os_abi): Remove prototype.
7035 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7036 I386_SSE_NUM_REGS): New defines.
7037 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7038 I386_SSE_SIZEOF_REGS): New defines.
7039 (i386_register_name, i386_register_byte, i386_register_raw_size):
7040 New prototypes.
7041 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7042 (i386bsd_sigtramp_saved_pc): New prototype.
7043 * i386-tdep.c: Don't include "elf-bfd.h".
7044 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7045 i386_frame_chain, i386_saved_pc_after_call): Make static.
7046 (i386_frame_saved_pc): Rewrite to call architecture dependent
7047 function to deal with signal handlers. Make static.
7048 (i386go32_frame_saved_pc): Removed.
7049 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7050 Removed.
7051 (i386_get_longjmp_target): New function.
7052 (default_struct_convention, pcc_struct_convention,
7053 reg_struct_convention, valid_conventions, struct_convention): New
7054 variables.
7055 (i386_use_struct_convention): New function.
7056 (i386v4_sigtramp_saved_pc): Renamed to
7057 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7058 (i386_pc_in_sigtramp): New function.
7059 (i386_abi_names): Removed.
7060 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7061 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7062 Removed.
7063 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7064 i386_gdbarch_register_os_abi): Removed.
7065 (struct i386_abi_handler): Removed.
7066 (i386_abi_handler_list): Removed.
7067 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7068 functions.
7069 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7070 i386_nw_init_abi): New functions.
7071 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7072 Use set_gdbarch_xxx() calls instead of relying on macros for a
7073 number of calls.
7074 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7075 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7076 Register the various architecture variants defined in this file.
7077
7078 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7079
7080 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7081 (struct main_type): Remove arg_types member. Update comments for
7082 struct field.
7083 (TYPE_ARG_TYPES): Remove.
7084 (TYPE_FN_FIELD_ARGS): Update.
7085 (smash_to_method_type): Update prototype.
7086
7087 * c-typeprint.c (cp_type_print_method_args): Take method type
7088 instead of argument list. Use new argument layout. Simplify.
7089 (c_type_print_args): Use new argument layout. Simplify.
7090 (c_type_print_base): Update call to cp_type_print_method_args.
7091 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7092 argument; use die->type instead. Update call to
7093 smash_to_method_type.
7094 (read_structure_scope): Update call to dwarf2_add_member_fn.
7095 * gdbtypes.c (allocate_stub_method): Update comment.
7096 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7097 Use new argument layout.
7098 (check_stub_method): Use new argument layout. Don't count
7099 void as an argument.
7100 (print_arg_types): Update comments. Use new argument layout.
7101 (recursive_dump_type): Don't print arg_types member.
7102 * hpread.c (hpread_read_struct_type): Use new argument layout.
7103 (fixup_class_method_type): Likewise.
7104 (hpread_type_lookup): Likewise.
7105 * stabsread.c (read_type): Update calls to read_args and
7106 smash_to_method_type.
7107 (read_args): Use new argument layout. Simplify.
7108 * valops.c (typecmp): Use new argument layout. Update parameters
7109 and comments. Simplify.
7110 (hand_function_call): Use new argument layout.
7111 (search_struct_method): Update call to typecmp.
7112 (find_overload_match): Use new argument layout.
7113
7114 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7115
7116 * NEWS: Mention multithreaded debug support for gdbserver.
7117
7118 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * MAINTAINERS: Mention NEWS.
7121
7122 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7123
7124 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7125 (struct mips_objfile_private, compare_pdr_entries): New.
7126 (non_heuristic_proc_desc): Read the ".pdr" section if it
7127 is present.
7128
7129 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7130
7131 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7132 (arm_debug): New static variable.
7133 (_initialize_arm_tdep): Add ``set debug arm'' command.
7134
7135 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7136
7137 * Makefile.in (sim_arm_h): Define.
7138 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7139 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7140 (arm_register_sim_regno): New function, map an internal REGNUM
7141 onto a simulator register number.
7142 (arm_gdbarch_init): Set register_sim_regno.
7143
7144 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7145
7146 * MAINTAINERS: Add self.
7147
7148 2002-06-11 Jim Blandy <jimb@redhat.com>
7149
7150 * source.c (source_info): Mention whether the symtab has
7151 information about preprocessor macros.
7152
7153 Call the command `info macro', not `show macro'.
7154 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7155 Fix error message.
7156 (_initialize_macrocmd): Register `info_macro_command' in
7157 `infolist', not `showlist'.
7158
7159 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7160
7161 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7162 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7163 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7164 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7165 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7166 unconditionally.
7167 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7168 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7169 (_initialize_mips_tdep): Remove dead code.
7170 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7171 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7172 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7173 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7174 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7175 MIPS_LAST_FP_ARG_REGNUM): Remove.
7176
7177 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7178
7179 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7180 (unwind_tmp_obstack_free, parse_frame_info)
7181 (update_context, cfi_read_fp, cfi_write_fp)
7182 (cfi_frame_chain, cfi_init_extra_frame_info)
7183 (cfi_virtual_frame_pointer): Use the above function.
7184 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7185
7186 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7187
7188 * v850-tdep.c (v850_type_is_scalar): New function.
7189 (v850_use_struct_convention): Match current gcc implementation
7190 as close as possible.
7191 (v850_push_arguments): Fix stack_offset handling. Don't write
7192 struct_addr into register. This is done by v850_store_struct_return.
7193 (v850_extract_return_value): Care for structs.
7194 (v850_store_return_value): Ditto.
7195 (v850_store_struct_return): Actually write address.
7196
7197 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7198
7199 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7200 without debug information too.
7201
7202 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7203
7204 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7205 Make multi-arch pure.
7206 * gdbarch.h, gdbarch.c: Re-generate.
7207 * arm-tdep.c (arm_print_float_info): Update.
7208 * arch-utils.h (default_print_float_info): Update.
7209 * arch-utils.c (default_print_float_info): Update.
7210 * infcmd.c (float_info): Update call.
7211
7212 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7213
7214 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7215 the front of the initialize list.
7216
7217 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7218
7219 * infrun.c (struct inferior_status): Replace fields
7220 selected_frame_address and selected_level with field
7221 selected_frame_id.
7222 (save_inferior_status): Update. Use get_frame_id.
7223 (struct restore_selected_frame_args): Delete.
7224 (restore_selected_frame): Update. Use frame_find_by_id.
7225 (restore_inferior_status): Update.
7226
7227 * breakpoint.h (struct breakpoint): Change type of
7228 watchpoint_frame to frame_id.
7229 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7230 call to get_current_frame.
7231 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7232 get_current_frame.
7233 (watchpoint_check): Use frame_find_by_id.
7234
7235 * frame.h (record_selected_frame): Delete declaration.
7236 * stack.c (record_selected_frame): Delete function.
7237
7238 * frame.h (struct frame_id): Define.
7239 (get_frame_id): Declare.
7240 (frame_find_by_id): Declare.
7241 * frame.c (frame_find_by_id): New function.
7242 (get_frame_id): New function.
7243
7244 2002-06-10 Andrey Volkov <avolkov@transas.com>
7245
7246 * ser-e7kpc.c: Fix duplicated define and call of
7247 _initialize_ser_e7000pc
7248
7249 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7250
7251 * signals/signals.c (target_signal_from_host): Fix #ifdef
7252 SIGRTMIN case.
7253 (do_target_signal_to_host): Likewise.
7254
7255 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7256
7257 * mips-tdep.c (mips_find_abi_section): New function.
7258 (mips_gdbarch_init): Call it.
7259
7260 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7261
7262 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7263 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7264 after Andrew's 2002-06-08 gdbarch change.
7265
7266 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7267
7268 * i386-linux-nat.c (suppy_gregset): Don't supply
7269 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7270 register cache.
7271 (fill_gregset): Don't fetch it under the same circumstances.
7272
7273 2002-06-09 Andrew Cagney <cagney@redhat.com>
7274
7275 * Makefile.in (callback_h): Define.
7276 (remote_sim_h): Update path to remote-sim.h.
7277 (remote-rdp.o): Add $(callback_h).
7278 (remote-sim.o): Use $(callback_h).
7279 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7280 * remote-rdp.c: Include "gdb/callback.h".
7281
7282 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7283
7284 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7285 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7286
7287 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7288
7289 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7290 * rdi-share/serpardr.c: Ditto.
7291 * rdi-share/unixcomm.c: Ditto.
7292 * rdi-share/serdrv.c: Ditto.
7293 * rdi-share/hostchan.h: Ditto.
7294 * rdi-share/hostchan.c: Ditto.
7295 * rdi-share/host.h: Ditto.
7296 * rdi-share/devsw.c: Ditto.
7297
7298 * objfiles.h: Change type of obj_private to void pointer.
7299 * pa64solib.c: Update copyright. Don't include "assert.h", use
7300 strcmp instead of STREQ, use LONGEST, do not use PTR
7301 * somsolib.c: Ditto.
7302
7303 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7304 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7305 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7306
7307 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7308
7309 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7310 (default_get_saved_register): Delete function.
7311 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7312 generic_unwind_get_saved_register.
7313 * gdbarch.h, gdbarch.c: Re-generate.
7314
7315 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7316
7317 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7318 generic_func_frame_chain_valid.
7319 * gdbarch.h, gdbarch.c: Re-generate.
7320 * blockframe.c (generic_func_frame_chain_valid): Only check
7321 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7322 passing FP to PC_IN_CALL_DUMMY.
7323 Fix PR gdb/360.
7324
7325 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7326
7327 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7328 (register_gdbarch_data): Initialize init_p.
7329 (gdbarch_data): Initialize data pointer using the init function.
7330 (init_gdbarch_data): Delete function.
7331 (gdbarch_update_p): Update.
7332 (initialize_non_multiarch): Update.
7333 (struct gdbarch): Add field initialized_p.
7334 * gdbarch.h, gdbarch.c: Re-generate.
7335
7336 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7337
7338 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7339 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7340 better do the things actually here.
7341 * x86-64-tdep.c (x86_64_register_name2nr): New.
7342 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7343 (x86_64_gdbarch_init): Respect the above change.
7344 * x86-64-tdep.h (x86_64_register_name2nr)
7345 (x86_64_register_nr2name): Add prototypes.
7346 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7347
7348 2002-06-06 Michael Snyder <msnyder@redhat.com>
7349
7350 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7351 Delete extra braces and re-indent.
7352 (d10v_store_return_value): Char return values
7353 must be shifted over by one byte in R0.
7354 (d10v_extract_return_value): Delete extra braces, re-indent.
7355
7356 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7357
7358 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7359 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7360 (d10v_integer_to_address): Rewrite.
7361 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7362 the d10v specific functions which take care of converting to the
7363 correct space.
7364
7365 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7366
7367 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7368 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7369
7370 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7371
7372 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7373 includes.
7374 * config/tm-linux.h: Ditto.
7375 * config/alpha/tm-alphalinux.h: Ditto.
7376 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7377 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7378 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7379 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7380 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7381 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7382 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7383 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7384 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7385 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7386 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7387 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7388 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7389 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7390 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7391 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7392 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7393 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7394 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7395 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7396 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7397 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7398 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7399 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7400 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7401 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7402 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7403 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7404 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7405 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7406 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7407 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7408 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7409 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7410 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7411 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7412 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7413
7414 2002-05-04 Aidan Skinner <aidan@velvet.net>
7415
7416 * ada-exp.tab.c: New file
7417 * ada-exp.y: New file
7418 * ada-lang.c: New file
7419 * ada-lang.h: New file
7420 * ada-lex.c: New file
7421 * ada-lex.l: New file
7422 * ada-tasks.c: New file
7423 * ada-typeprint.c: New file
7424 * ada-valprint.c: New file
7425
7426 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7427
7428 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7429 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7430
7431 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7432
7433 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7434 insetead of ppc-linux-tdep.o.
7435 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7436 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7437
7438 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7439
7440 2002-05-07 Christian Groessler <chris@groessler.org>
7441 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7442 bit register contents for little endian hosts.
7443
7444 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7445
7446 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7447 any maintainer.
7448
7449 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7450
7451 * gdbarch.h: Regenerate.
7452
7453 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7454
7455 * MAINTAINERS: Add everyone to write-after-approval list.
7456
7457 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7458
7459 * stack.c (frame_info): Use frame_register_unwind instead of
7460 saved_regs. Mention when the SP is on the stack or in a register.
7461
7462 * frame.h (frame_register_unwind_ftype): Define. Document.
7463 (struct frame_info): Add field register_unwind and
7464 register_unwind_cache.
7465 (frame_register_unwind): Declare.
7466 (generic_unwind_get_saved_register): Declare.
7467
7468 * frame.c (frame_register_unwind): New function.
7469 (generic_unwind_get_saved_register): New function.
7470
7471 * blockframe.c (generic_call_dummy_register_unwind): New function.
7472 (frame_saved_regs_register_unwind): New function.
7473 (set_unwind_by_pc): New function.
7474 (create_new_frame): New function.
7475 (get_prev_frame): New function.
7476
7477 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7478
7479 * a29k-share/: Delete directory.
7480 * remote-vx29k.c: Delete file.
7481
7482 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7483
7484 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7485 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7486
7487 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7490 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7491 (sparc64nbsd-nat.o)
7492 (sparcnbsd-nat.o)
7493 (sparcnbsd-tdep.o): New dependency lists.
7494 * NEWS: Note new UltraSPARC NetBSD native configuration.
7495 * configure.host (sparc64-*-netbsd*): New host.
7496 * configure.tgt (sparc-*-netbsdelf*)
7497 (sparc-*-netbsd*): Set gdb_target to nbsd.
7498 (sparc64-*-netbsd*): New target.
7499 * sparc64nbsd-nat.c: New file.
7500 * sparcnbsd-nat.c: New file.
7501 * sparcnbsd-tdep.c: New file.
7502 * sparcnbsd-tdep.h: New file.
7503 * config/sparc/nbsd.mt: New file.
7504 * config/sparc/nbsd64.mh: New file.
7505 * config/sparc/nbsd64.mt: New file.
7506 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7507 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7508 (HOST_IPC): Remove.
7509 * config/sparc/nbsdaout.mt: Remove.
7510 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7511 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7512 (HOST_IPC): Remove.
7513 * config/sparc/nbsdelf.mt: Remove.
7514 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7515 sparc-nat.c compatiblity defines.
7516 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7517 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7518 * config/sparc/tm-nbsd64.h: New file.
7519 * config/sparc/tm-nbsdaout.h: Remove.
7520 * config/sparc/xm-nbsd.h: Remove.
7521
7522 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7523
7524 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7525 * sparc-tdep.c: Include osabi.h.
7526 (gdbarch_tdep): Add osabi member.
7527 (_initialize_sparc_tdep): Use gdbarch_register.
7528 (sparc_gdbarch_init): Use generic OS ABI framework.
7529 (sparc_dump_tdep): New function.
7530
7531 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7532
7533 * corefile.c (do_captured_read_memory_integer): Return non-zero
7534 result.
7535 (safe_read_memory_integer): Copy result of memory read when
7536 status is non-zero. Also, add comments.
7537
7538 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7539
7540 * Makefile.in (ppc_tdep_h): Define.
7541 (ppc-linux-nat.o)
7542 (ppc-linux-tdep.o)
7543 (rs6000-tdep.o): Use $(ppc_tdep_h).
7544 (ppc-sysv-tdep.o)
7545 (ppcnbsd-nat.o)
7546 (ppcnbsd-tdep.o): New dependency lists.
7547 * ppc-tdep.h: Use generic OS ABI framework.
7548 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7549 (ppc_linux_init_abi): New functions.
7550 (ppc_sysv_abi_broken_use_struct_convention)
7551 (ppc_sysv_abi_use_struct_convention)
7552 (ppc_sysv_abi_push_arguments): Move to...
7553 * ppc-sysv-tdep.c: ...here.
7554 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7555 * rs6000-tdep.c (process_note_abi_tag_sections)
7556 (get_elfosabi): Remove.
7557 (rs6000_gdbarch_init): Use generic OS ABI framework.
7558 (rs6000_dump_tdep): New function.
7559 (_initialize_rs6000_tdep): Use gdbarch_register.
7560 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7561 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7562 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7563 of ppc-linux-tdep.o.
7564 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7565 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7566 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7567 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7568 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7569 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7570
7571 2002-05-29 Jim Blandy <jimb@redhat.com>
7572
7573 * macroscope.c (default_macro_scope): Put `void' in empty argument
7574 list.
7575
7576 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7577
7578 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7579 * arch-utils.c: Include "sim-regno.h".
7580 * gdbarch.sh: Don't include "sim-regno.h".
7581 * gdbarch.h, gdbarch.c: Regenerate.
7582 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7583 here.
7584 * arch-utils.h (legacy_register_sim_regno): To here.
7585 * remote-sim.c (legacy_register_sim_regno): Move function from
7586 here.
7587 * arch-utils.c (legacy_register_sim_regno): To here.
7588
7589 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7590
7591 * sim-regno.h: New file.
7592 * Makefile.in (sim_regno_h): Define.
7593 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7594 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7595 (legacy_register_sim_regno): New function.
7596 (one2one_register_sim_regno): New function.
7597 (gdbsim_fetch_register): Rewrite.
7598 (gdbsim_store_register): Only store a register when
7599 REGISTER_SIM_REGNO is valid.
7600 * d10v-tdep.c: Include "sim-regno.h".
7601 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7602 (d10v_ts3_register_sim_regno): Ditto.
7603 * gdbarch.sh: Include "sim-regno.h".
7604 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7605 * gdbarch.h, gdbarch.c: Regenerate.
7606 * arch-utils.h (default_register_sim_regno): Delete declaration.
7607 * arch-utils.c (default_register_sim_regno): Delete function.
7608
7609 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7610
7611 * ppcnbsd-nat.c: Rewrite.
7612 * ppcnbsd-tdep.c: New file.
7613 * ppcnbsd-tdep.h: New file.
7614 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7615 solib.o, and solib-svr4.o.
7616 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7617 nbsd-tdep.o, and corelow.o.
7618
7619 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7620
7621 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7622 `tr' and `sed'. Mention that `broken' targets are not expected to
7623 build.
7624
7625 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7626
7627 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7628 Let PC point right after the prologue before looking up symbols.
7629
7630 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7631
7632 * i386-tdep.c (i386_register_virtual_type): Return
7633 builtin_type_vec128i for SSE registers.
7634
7635 * gdbtypes.h (builtin_type_vec128i): Declare.
7636
7637 * gdbtypes.c (build_builtin_type_vec128i): New function.
7638 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7639 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7640 (build_gdbtypes): Initialize new builtin vector types.
7641 (_initialize_gdbtypes): Register new vector types with gdbarch.
7642
7643 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7644
7645 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7646 since it has been multi-arch'd.
7647 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7648 Move Alpha and VAX multi-arch news entries to same section
7649 as other multi-arch news.
7650
7651 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7654 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7655 static. Rename some register numbers to put them in ns32k-tdep
7656 private namespace.
7657 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7658 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7659 functions.
7660 (_initialize_ns32k_tdep): Use gdbarch_register.
7661 * ns32k-tdep.h: New file.
7662 * ns32knbsd-tdep.c: New file.
7663 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7664 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7665 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7666 REGISTER_BYTES, REGISTER_BYTE): Remove.
7667 * config/ns32k/tm-ns32k.h: New file.
7668 * config/ns32k/tm-umax.h: Remove.
7669
7670 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7673 ns32k_store_struct_return, ns32k_extract_return_value,
7674 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7675 functions.
7676 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7677 ns32k_saved_pc_after_call.
7678 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7679 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7680 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7681 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7682 ns32k_extract_struct_value_address.
7683
7684 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7685
7686 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7687 ns32k_fix_call_dummy): New.
7688 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7689 ns32k_call_dummy_words.
7690 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7691 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7692 CALL_DUMMY_NARGS): Remove.
7693 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7694
7695 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7698 ns32k_frame_saved_pc, ns32k_frame_args_address,
7699 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7700 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7701 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7702 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7703 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7704 (BREAKPOINT): Remove..
7705 (FRAME_CHAIN): Define as ns32k_frame_chain.
7706 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7707 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7708 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7709 (FRAME_FIND_SAVED_REGS): Remove.
7710 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7711 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7712 (POP_FRAME): Define as ns32k_pop_frame.
7713
7714 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7715
7716 * ns32k-tdep.c (ns32k_register_byte_32082,
7717 ns32k_register_byte_32382, ns32k_register_raw_size,
7718 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7719 functions.
7720 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7721 ns32k_register_byte_32382.
7722 * config/ns32k/tm-umax.h: Update copyright years.
7723 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7724 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7725 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7726 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7727 (ns32k_get_enter_addr): Fix prototype.
7728
7729 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7730
7731 * ns32k-tdep.c: Update copyright years.
7732 (ns32k_register_name_32082): New function.
7733 (ns32k_register_name_32382): Ditto.
7734 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7735 (REGISTER_NAME): Define as ns32k_register_name_32382.
7736 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7737 (REGISTER_NAME): Define as ns32k_register_name_32082.
7738
7739 2002-05-24 Jim Blandy <jimb@redhat.com>
7740
7741 * dwarf2read.c (free_line_header): Use xfree, not free.
7742
7743 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7744
7745 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7746 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7747
7748 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7749
7750 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7751
7752 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7753
7754 From Ross Alexander at NEC Europe:
7755 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7756
7757 2002-05-23 Michael Snyder <msnyder@redhat.com>
7758
7759 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7760 for input, rather than parse_and_eval_address.
7761
7762 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7763
7764 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7765 * Makefile.in (sim_d10v_h): Update definition.
7766
7767 2002-05-24 Andrew Cagney <cagney@redhat.com>
7768
7769 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7770 change `2002-05-22 Michael Snyder' below.
7771 (d10v_push_arguments): Ditto.
7772 (d10v_extract_return_value): Ditto.
7773
7774 2002-05-23 Jim Blandy <jimb@redhat.com>
7775
7776 * macrotab.c (check_for_redefinition): Don't complain if the new
7777 definition is the same as the previous one. Take more arguments
7778 to allow the comparison.
7779 (macro_define_object, macro_define_function): Pass more arguments
7780 to check_for_redefinition.
7781
7782 2002-05-22 Michael Snyder <msnyder@redhat.com>
7783
7784 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7785 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7786 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7787 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7788 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7789 Add a temp variable to save a call (and a memory read).
7790 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7791 if possible (so that PC_IN_CALL_DUMMY will work).
7792
7793 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7794
7795 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7796
7797 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7798
7799 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7800 fde->cie_ptr.
7801 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7802 (dwarf2_build_frame_info): Add offset to fde->initial_location
7803 so that frames of shared libraries are mapped correctly.
7804 (execute_stack_op): Change type of 'result' from ULONGEST to
7805 CORE_ADDR.
7806
7807 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * config/alpha/tm-nbsd.h: Include solib.h.
7810
7811 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7814 assumptions about the host's byte order.
7815
7816 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7819 to dependency list.
7820 * alphanbsd-tdep.c: Include solib-svr4.h.
7821 * shnbsd-tdep.c: Ditto.
7822
7823 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7826 nbsd-tdep.h to dependency list.
7827 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7828 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7829 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7830 nbsdaout.mh and nbsdelf.mh consistently.
7831 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7832 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7833 nbsdaout.mt and nbsdelf.mh consistently.
7834 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7835 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7836 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7837 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7838 a.out shared library stuff from here...
7839 * config/nm-nbsdaout.h: ...to here.
7840 * config/tm-nbsd.h: Remove.
7841 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7842 * config/arm/nbsd.mh: Remove.
7843 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7844 nbsd-tdep.o.
7845 * config/arm/nbsdaout.mh: New file.
7846 * config/arm/nbsdelf.mh: New file.
7847 * config/arm/nm-nbsdaout.h: New file.
7848 * config/i386/nbsd.mh: Remove.
7849 * config/i386/nbsd.mt: Remove.
7850 * config/i386/nbsdaout.mh: New file.
7851 * config/i386/nbsdaout.mt: New file.
7852 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7853 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7854 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7855 i386_register_u_addr): Remove.
7856 * config/i386/nm-nbsdaout.h: New file.
7857 * config/i386/nm-nbsdelf.h: Remove.
7858 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7859 (USE_STRUCT_CONVENTION): Remove.
7860 * config/i386/tm-nbsdaout.h: New file.
7861 * config/i386/tm-nbsdelf.h: Remove.
7862 * config/m68k/nbsd.mh: Remove.
7863 * config/m68k/nbsd.mt: Remove.
7864 * config/m68k/nbsdaout.mh: New file.
7865 * config/m68k/nbsdaout.mt: New file.
7866 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7867 * config/m68k/nm-nbsdaout.h: New file.
7868 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7869 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7870 * config/ns32k/nbsd.mh: Remove.
7871 * config/ns32k/nbsd.mt: Remove.
7872 * config/ns32k/nbsdaout.mh: New file.
7873 * config/ns32k/nbsdaout.mt: New file.
7874 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7875 * config/ns32k/nm-nbsdaout.h: New file.
7876 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7877 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7878 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7879 (SVR4_SHARED_LIBS): Remove.
7880 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7881 * config/sparc/nbsd.mh: Remove.
7882 * config/sparc/nbsd.mt: Remove.
7883 * config/sparc/nbsdaout.mh: New file.
7884 * config/sparc/nbsdaout.mt: New file.
7885 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7886 * config/sparc/nbsdelf.mt: New file.
7887 * config/sparc/nm-nbsdaout.h: New file.
7888 * config/sparc/nm-nbsdelf.h: Remove.
7889 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7890 * config/sparc/tm-nbsdaout.h: New file.
7891
7892 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7895 mipsnbsd-tdep.c
7896 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7897
7898 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7899
7900 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7901 shnbsd-nat.c.
7902 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7903
7904 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7905
7906 * NEWS: Note new MIPS NetBSD native configuration.
7907 * configure.host (mips*-*-netbsd*): New host.
7908 * configure.tgt (mips*-*-netbsd*): New target.
7909 * mipsnbsd-nat.c: New file.
7910 * mipsnbsd-tdep.c: New file.
7911 * mipsnbsd-tdep.h: New file.
7912 * config/mips/nbsd.mh: New file.
7913 * config/mips/nbsd.mt: New file.
7914 * config/mips/nm-nbsd.h: New file.
7915 * config/mips/tm-nbsd.h: New file.
7916
7917 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7918
7919 * Makefile.in (SFILES): Add osabi.c.
7920 (COMMON_OBS): Add osabi.o.
7921 (osabi.o): New dependency list.
7922 * osabi.c: New file.
7923 * osabi.h: New file.
7924 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7925
7926 * Makefile.in (alpha_tdep_h): Define and use instead of
7927 alpha-tdep.h.
7928 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7929 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7930 Remove.
7931 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7932 * alpha-tdep.h: Include osabi.h.
7933 (alpha_abi): Remove.
7934 (gdbarch_tdep): Use generic OS ABI framework.
7935 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7936 gdbarch_register_osabi.
7937 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7938 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7939 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7940
7941 * Makefile.in (sh_tdep_h): Add osabi.h.
7942 * sh-tdep.h (sh_osabi): Remove.
7943 (gdbarch_tdep): Use generic OS ABI framework.
7944 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7945 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7946 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7947 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7948
7949 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7950 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7951 gdbarch_register_osabi.
7952 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7953 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7954 (get_elfosabi): Rename to...
7955 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7956 ABI framework support routines.
7957 (arm_gdbarch_init): Use generic OS ABI framework.
7958 (arm_dump_tdep): Likewise.
7959 (_initialize_arm_tdep): Likewise.
7960 * arm-tdep.h: Include osabi.h.
7961 (arm_abi): Remove.
7962 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7963 osabi member.
7964 (arm_gdbarch_register_os_abi): Remove prototype.
7965 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7966 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7967
7968 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7969 * mips-tdep.c: Include osabi.h.
7970 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7971 OS ABI framework.
7972
7973 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7974
7975 * h8300-tdep.c: Fix formatting.
7976
7977 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7978
7979 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7980 printing vector registers.
7981
7982 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7983
7984 From Fernando Nasser:
7985 * remote.c (remote_async_open_1): Re-throw the exception when the
7986 connection fails.
7987 (remote_cisco_open): Ditto.
7988 (remote_open_1): Ditto.
7989
7990 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7991
7992 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7993 (remote_start_remote): Add uiout parameter. Pass through to
7994 remote_start_remote_dummy.
7995 (remote_open_1): Use catch_exception instead of catch_errors.
7996 (remote_async_open_1): Ditto.
7997 (remote_cisco_open): Ditto.
7998
7999 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8000
8001 * remote.c (remote_start_remote): Replace PTR with void pointer.
8002 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8003 static.
8004
8005 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8006
8007 * gdb_indent.sh: Allow the script to be run in the sim directory.
8008
8009 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8010
8011 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8012 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8013
8014 * corelow.c (core_open): Only call set_gdbarch_from_file if
8015 exec_bfd is NULL.
8016
8017 2002-05-17 Andrey Volkov <avolkov@transas.com>
8018
8019 * h8300-tdep.c: Add support of EXR register
8020 * config/h8300/tm-h8300.h: Ditto.
8021
8022 2002-05-17 Andrey Volkov <avolkov@transas.com>
8023
8024 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8025
8026 2002-05-17 Andrey Volkov <avolkov@transas.com>
8027
8028 * h8300-tdep.c: Change literal regnums to REGNO.
8029
8030 2002-05-17 Jim Blandy <jimb@redhat.com>
8031
8032 * NEWS: Note addition of macro support.
8033
8034 Expand preprocessor macros in C expressions.
8035 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8036 (scan_macro_expansion, scanning_macro_expansion,
8037 finished_macro_expansion): New function declarations.
8038 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8039 variable declarations.
8040 * parser-defs.h (expression_context_pc): New declaration.
8041 * parse.c (expression_context_pc): New variable.
8042 (parse_exp_1): Set expression_context_pc, as well as
8043 expression_context_block.
8044 * c-exp.y (yylex): If we're not already reading the result of a
8045 macro expansion, try to macro-expand the next token. When we're
8046 done scanning a macro expansion, switch back to the mainline text.
8047 Commas and `if's in a macro's expansion don't terminate the input.
8048 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8049 (macro_original_text, macro_expanded_text,
8050 expression_macro_lookup_func, expression_macro_lookup_baton): New
8051 variables.
8052 (scan_macro_expansion, scanning_macro_expansion,
8053 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8054 c_preprocess_and_parse): New functions.
8055 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8056 c_preprocess_and_parse, instead of c_parse.
8057 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8058 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8059
8060 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8061
8062 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8063 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8064 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8065
8066 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8067
8068 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8069
8070 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8071
8072 * Makefile.in (sh_tdep_h): Define and use.
8073 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8074 register enum): Move to...
8075 * * sh-tdep.h: ...here.
8076 * sh-tdep.c: Include sh-tdep.h.
8077 * sh3-rom.c: Likewise.
8078 * shnbsd-tdep.c: Likewise.
8079
8080 2002-05-16 Michael Snyder <msnyder@redhat.com>
8081
8082 * arm-tdep.c: Spelling fix in comment.
8083
8084 2002-05-16 Jim Blandy <jimb@redhat.com>
8085
8086 Add commands for manually expanding macros and showing their
8087 definitions.
8088 * macrocmd.c, macroscope.c, macroscope.h: New files.
8089 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8090 (macroscope_h): New variable.
8091 (HFILES_NO_SRCDIR): Add macroscope.h.
8092 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8093 (macroscope.o, macrocmd.o): New rules.
8094
8095 Teach the Dwarf 2 reader to read macro information.
8096 * dwarf2read.c: #include "macrotab.h".
8097 (dwarf_macinfo_buffer): New variable.
8098 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8099 dwarf_macinfo_size.
8100 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8101 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8102 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8103 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8104 dwarf2_macro_spaces_in_definition): New complaints.
8105 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8106 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8107 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8108 the partial symbol table.
8109 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8110 from what's recorded in the partial symbol table.
8111 (read_file_scope): If the compilation unit has a
8112 `DW_AT_macro_info' attribute, read its macro information.
8113 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8114
8115 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8116
8117 Fix PR gdb/546
8118 * ser-tcp.c: Don't include <netinet/udp.h>.
8119
8120 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8121
8122 * MAINTAINERS: Update my email address.
8123
8124 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8125
8126 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8127 include file of the same name.
8128
8129 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8130
8131 * configure.tgt: Mark v850 as multi-arched.
8132 * config/v850/tm-v850.h: Remove file.
8133 * config/v850/v850.mt: Eliminate TM_FILE.
8134
8135 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8136
8137 * v850-tdep.c: Full multi-arch.
8138 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8139 Define GDB_MULTI_ARCH to 2.
8140
8141 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8142
8143 * p-exp.y (current_type): New static variable.
8144 Carries the type of the expression at the position that is parsed.
8145 (push_current_type, pop_current_type): Two new functions. Used
8146 to store/restore current_type in expression on specific tokens.
8147 (search_field): New static variable. Set to one after parsing a point
8148 as at that point only a FIELDNAME token should be searched.
8149 (FIELDNAME): New token. After a point only a token belonging to
8150 current_type type definition is allowed.
8151 (all over token rules): reset and change current_type according
8152 to rules.
8153 (exp '[' rule): insert implicit array index field if
8154 exp is a pascal string type.
8155
8156 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8157
8158 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8159 frame info. Use frame_info's saved_regs instead of matching member
8160 in extra_frame_info throughout.
8161 (v850_frame_init_saved_regs): New function.
8162 (v850_init_extra_frame_info): Move most functionality into
8163 v850_frame_init_saved_regs().
8164 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8165 (v850_frame_find_saved_regs): Remove declaration.
8166 (FRAME_FIND_SAVED_REGS): Remove definition.
8167 (v850_frame_init_saved_regs): Add declaration.
8168 (FRAME_INIT_SAVED_REGS): Add definition.
8169
8170 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8171
8172 * v850-tdep.c: Begin multi-arch'ing v850.
8173 (v850_target_architecture_hook): Remove function.
8174 (v850_gdbarch_init): New function. Add code previously in
8175 v850_target_architecture_hook().
8176 (_initialize_v850_tdep): Don't set target_architecture_hook.
8177 Call register_gdbarch_init() instead.
8178
8179 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8180
8181 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8182 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8183 (fixup_class_method_type): Likewise.
8184
8185 2002-05-15 Jim Blandy <jimb@redhat.com>
8186
8187 Add macro structures to GDB's symbol tables. Nobody puts anything
8188 in them yet.
8189 * symtab.h (struct symtab): New member: `macro_table'.
8190 * buildsym.h (pending_macros): New global variable.
8191 * buildsym.c: #include "macrotab.h".
8192 (buildsym_init): Initialize `pending_macros'.
8193 (end_symtab): If we found macro information while reading a CU's
8194 debugging info, do build a symtab structure for it. Make the
8195 symtab point to the macro information, and clear the
8196 `pending_macros' pointer which held it while we were reading the
8197 debug info.
8198 (really_free_pendings): Free any pending macro table.
8199 * objfiles.h (struct objfile): New member: `macro_cache'.
8200 * objfiles.c (allocate_objfile): Set allocate and free functions
8201 for the macro cache's objstack.
8202 (free_objfile): Empty the macro cache's obstack.
8203 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8204 set new allocate and free functions for it.
8205 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8206 free functions for the macro cache's objstack. (Why is this
8207 function building its own objfile?)
8208 * symmisc.c (print_objfile_statistics): Print statistics on the
8209 macro bcache.
8210 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8211
8212 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8213
8214 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8215 (REGISTER_U_ADDR): Delete definition.
8216 (arm_register_u_addr): Delete declaration.
8217
8218 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8219
8220 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8221 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8222
8223 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8224
8225 * regcache.c (register_valid): Revise comments refering to "Not
8226 available" and "unavailable".
8227 * frame.c (frame_register_read): Ditto.
8228 * findvar.c (value_of_register): Ditto.
8229
8230 2002-05-15 Andrew Cagney <cagney@redhat.com>
8231
8232 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8233 (remote-sim.o): Update dependencies.
8234 (d10v-tdep.o): Specify dependencies.
8235 (sim_d10v_h): Define.
8236
8237 2002-05-14 Jim Blandy <jimb@redhat.com>
8238
8239 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8240 * macrotab.c (macro_lookup_inclusion, find_definition,
8241 new_macro_table): Same.
8242
8243 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8244 not `! strcmp ()'. This is a dubious improvement.
8245 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8246
8247 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8248 although it's not necessary, to avoid a warning.
8249
8250 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8251
8252 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8253 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8254 TYPE_INSTANCE_FLAGS.
8255 (struct main_type): New.
8256 (struct type): Move most members to struct main_type. Change
8257 cv_type and as_type to new type_chain member. Add instance_flags.
8258 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8259 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8260 (finish_cv_type): Remove prototype.
8261 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8262 Set TYPE_CHAIN.
8263 (alloc_type_instance): New function.
8264 (smash_type): New function.
8265 (make_pointer_type, make_reference_type, make_function_type)
8266 (smash_to_member_type, smash_to_method_type): Call smash_type.
8267 (make_qualified_type): New function.
8268 (make_type_with_address_space): Call make_qualified_type.
8269 (make_cv_type): Likewise.
8270 (finish_cv_type): Remove unnecessary function.
8271 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8272 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8273 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8274 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8275 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8276 * hpread.c (hpread_read_struct_type): Likewise.
8277 * stabsread.c (read_struct_type): Likewise.
8278
8279 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8280
8281 * configure.tgt: Add a catch all sh* target, for cases like
8282 sh[2,3,4]-elf and sh-hms.
8283
8284 2002-05-14 Keith Seitz <keiths@redhat.com>
8285
8286 * event-loop.c (create_file_handler): Don't do anything but
8287 update data when we are given a fd which we are already
8288 monitoring.
8289
8290 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8291
8292 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8293 (update_context): Use __func__ in warnings.
8294
8295 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8298 and tcp_close to net_open and net_close.
8299 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8300 using UDP if requested. Don't try to disable Nagle on UDP
8301 sockets.
8302 * remote.c (remote_serial_open): New function. Warn about UDP.
8303 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8304
8305 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8306
8307 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8308
8309 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8310
8311 * configure.tgt: Remove sh-hms target.
8312 * MAINTAINERS: Don't list sh-hms as a separate target.
8313
8314 2002-05-13 Jim Blandy <jimb@redhat.com>
8315
8316 Add first preprocessor macro-expansion files.
8317 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8318 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8319 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8320 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8321 (COMMON_OBS): Add macrotab.o, macroexp.o.
8322 (macroexp.o, macrotab.o): New rules.
8323
8324 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8325
8326 * config/m88k/tm-m88k.h: Update copyright.
8327 (m88k_target_write_pc): Declare
8328 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8329 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8330 (SHIFT_INST_REGS): Update definition.
8331 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8332 using old definition of TARGET_WRITE_PC.
8333 * regcache.c (generic_target_write_pc): Delete code handling
8334 NNPC_REGNUM.
8335 * gdbarch.sh (NNPC_REGNUM): Delete.
8336 * gdbarch.h, gdbarch.c: Regenerate.
8337
8338 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8339
8340 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8341 builtin reg number.
8342
8343 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8344
8345 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8346 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8347 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8348 access macros.
8349 * c-typeprint.c (cp_type_print_method_args): Likewise.
8350 (c_type_print_args): Likewise.
8351 * d10v-tdep.c (d10v_push_arguments): Likewise.
8352 (d10v_extract_return_value): Likewise.
8353 * expprint.c (print_subexp): Likewise.
8354 * gdbtypes.c (lookup_primitive_typename): Likewise.
8355 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8356 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8357 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8358 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8359 (TYPE_VECTOR): Likewise.
8360 * hpread.c (hpread_read_struct_type)
8361 (fix_static_member_physnames, fixup_class_method_type)
8362 (hpread_type_lookup): Likewise.
8363 * mdebugread.c (parse_symbol, parse_type): Likewise.
8364 * p-lang.c (is_pascal_string_type): Likewise.
8365 * valops.c (hand_function_call): Likewise.
8366 * x86-64-tdep.c (classify_argument): Likewise.
8367
8368 * hpread.c (hpread_read_function_type)
8369 (hpread_read_doc_function_type): Call replace_type.
8370 * dstread.c (create_new_type): Delete.
8371 (decode_dst_structure, process_dst_function): Call alloc_type.
8372 Use type access macros.
8373
8374 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8375
8376 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8377 the're not supported by the current architecture.
8378 (i387_fill_fxsave): Likewise.
8379
8380 2002-05-12 Fred Fish <fnf@redhat.com>
8381
8382 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8383 sect_index_xxx members to index the first slot in section_offsets
8384 if all of the section_offsets are zero.
8385
8386 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8387
8388 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8389 checked in with last change.
8390
8391 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8392
8393 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8394 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8395 config.sub.
8396
8397 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8398
8399 * Makefile.in: Update dependencies.
8400
8401 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8402
8403 * language.c (local_hex_string_custom): Simplify. Do not depend
8404 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8405
8406 * memattr.c (mem_info_command): Replace calls to
8407 longest_local_hex_string and longest_local_hex_string_custom.
8408 * buildsym.c (make_blockvector): Ditto.
8409 * solib.c (info_sharedlibrary_command): Ditto.
8410 * tracepoint.c (tracepoints_info): Ditto.
8411 * symtab.c (print_msymbol_info): Ditto.
8412
8413 * language.c (local_hex_string): Delete.
8414 (local_hex_string_custom): Delete.
8415 (longest_local_hex_string): Rename to local_hex_string.
8416 (longest_local_hex_string_custom): Rename to
8417 local_hex_string_custom.
8418 * language.h (local_hex_string): Change parameter type to LONGEST.
8419 (local_hex_string_custom): Ditto.
8420 (longest_local_hex_string): Delete declaration.
8421 (longest_local_hex_string_custom): Ditto.
8422
8423 * solib.c: Update copyright.
8424 * memattr.c: Update copyright.
8425
8426 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8427
8428 * arch-utils.h (legacy_register_to_value): Declare.
8429 (legacy_value_to_register): Declare.
8430 (legacy_convert_register_p): Declare.
8431 * arch-utils.c (legacy_register_to_value): New function.
8432 (legacy_value_to_register): New function.
8433 (legacy_convert_register_p): New function.
8434
8435 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8436 (VALUE_TO_REGISTER): Define.
8437 (CONVERT_REGISTER_P): Define.
8438 * gdbarch.h, gdbarch.c: Regenerate.
8439
8440 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8441 VALUE_TO_REGISTER.
8442 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8443 CONVERT_REGISTER_P.
8444
8445 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8446 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8447
8448 * Makefile.in: Update dependencies for valops.c.
8449 * valops.c: Include "gdb_assert.h".
8450 (typecmp): Skip THIS parameter to methods.
8451 (find_method_list): Remove static_memfuncp argument,
8452 update callers. Check for stub methods.
8453 (find_value_oload_method_list): Don't set *static_memfuncp.
8454 (find_overload_match): Don't check for stub methods. Assert
8455 that methods are not stubbed. Handle static methods.
8456 (value_find_oload_method_list): Remove static_memfuncp argument.
8457 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8458 to the argument list for static stub methods.
8459 * value.h (value_find_oload_method_list): Update prototype.
8460
8461 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8462
8463 * arch-utils.h (generic_register_size): Declare.
8464 (generic_register_raw_size, generic_register_virtual_size): Delete
8465 declarations.
8466 * arch-utils.c (generic_register_raw_size): Delete.
8467 (generic_register_size): New function.
8468 (generic_register_virtual_size): Delete.
8469
8470 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8471 default generic_register_size.
8472 * gdbarch.h, gdbarch.c: Re-generate.
8473
8474 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8475 register_virtual_size.
8476 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8478
8479 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8480
8481 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8482 * gdbarch.h, gdbarch.c: Regenerate.
8483 * gnu-v3-abi.c: Update copyright.
8484 (vtable_address_point_offset): Update.
8485 (gnuv3_rtti_type): Update.
8486 (gnuv3_baseclass_offset): Update.
8487 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8488 (init_fetch_link_map_offsets): Update.
8489 * remote.c (get_remote_state): Update.
8490
8491 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8492
8493 * TODO: Remove value_headof/value_from_vtable_info comment.
8494 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8495 * values.c (value_headof, value_from_vtable_info): Delete.
8496 * value.h (value_from_vtable_info): Delete prototype.
8497
8498 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8499
8500 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8501 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8502 $(gdb_regex_h).
8503 (gdb_assert_h): Define.
8504 (gdb_wait_h): Define.
8505 (gdb_regex_h): Define.
8506
8507 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8508
8509 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8510 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8511
8512 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8513
8514 * nbsd-tdep.c: Fix comment.
8515
8516 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8517
8518 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8519 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8520 (nbsd-tdep.o): New dependency list.
8521 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8522 nbsd-tdep.h.
8523 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8524 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8525 * nbsd-tdep.c: New file.
8526 * nbsd-tdep.h: New file.
8527 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8528 nbsd-tdep.h.
8529 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8530 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8531 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8532 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8533
8534 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8535
8536 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8537 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8538 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8539 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8540 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8541 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8542
8543 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8544
8545 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8546 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8547 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8548 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8549 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8550 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8551 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8552
8553 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8554
8555 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8556 fetch_elfcore_registers to...
8557 * i386nbsd-tdep.c: ...here.
8558 (i386nbsd_use_struct_convention): Rename to...
8559 (i386nbsd_aout_use_struct_convention): ...this.
8560 (i386nbsd_supply_reg): New function.
8561 (i386nbsd_fill_reg): New function.
8562 (fetch_core_registers): Use i386nbsd_supply_reg.
8563 (fetch_elfcore_registers): Likewise.
8564 (_initialize_i386nbsd_tdep): New function.
8565 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8566 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8567 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8568 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8569 (i386nbsd_aout_use_struct_convention): ...this.
8570
8571 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8572
8573 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8574 (store_inferior_registers): Use shnbsd_fill_reg.
8575 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8576 sh_nbsd_supply_register): Collapse into...
8577 (shnbsd_supply_reg): ...this.
8578 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8579 (shnbsd_fill_reg): ...this.
8580 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8581 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8582 (fetch_core_registers): Use shnbsd_supply_reg.
8583 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8584 (sh_nbsd_core_fns): Rename to...
8585 (shnbsd_core_fns): ...this.
8586 (sh_nbsd_elfcore_fns): Rename to...
8587 (shnbsd_elfcore_fns): ...this.
8588 (sh_nbsd_init_abi): Rename to...
8589 (shnbsd_init_abi): ...this.
8590 (_initialize_sh_nbsd_tdep): Rename to...
8591 (_initialize_shnbsd_tdep): ...this.
8592 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8593 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8594 sh_nbsd_fill_register): Remove prototypes.
8595 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8596
8597 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8598
8599 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8600 (i387-nat.o): Delete dependency list.
8601 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8602 (x86-64-linux-nat.o): Likewise.
8603 * i387-nat.c: Delete file, moving contents to...
8604 * i387-tdep.c: ...here.
8605 * i387-nat.h: Rename...
8606 * i387-tdep.h: ...to this.
8607 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8608 * i386-linux-nat.c: Likewise.
8609 * i386bsd-nat.c: Likewise.
8610 * i386gnu-nat.c: Likewise.
8611 * i386nbsd-nat.c: Likewise.
8612 * i386v4-nat.c: Likewise.
8613 * x86-64-linux-nat.c: Likewise.
8614 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8615 * config/i386/go32.mh (NATDEPFILES): Likewise.
8616 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8617 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8618 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8619 * config/i386/linux.mh (NATDEPFILES): Likewise.
8620 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8621 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8622 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8623 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8624
8625 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8626
8627 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8628 (alphanbsd-nat.o): Remove dependency list.
8629 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8630 * alphanbsd-nat.c: Delete. Contents moved to...
8631 * alphanbsd-tdep.c: ...here.
8632 (_initialize_alphanbsd_tdep): Register core functions.
8633 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8634
8635 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8636
8637 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8638 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8639 (alphanbsd-nat.o): Likewise.
8640 (alphabsd-tdep.o): New dependency list.
8641 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8642 (fill_gregset): Use alphabsd_fill_reg.
8643 (supply_fpregset): Use alphabsd_supply_fpreg.
8644 (fill_fpregset): Use alphabsd_fill_fpreg.
8645 (fetch_inferior_registers): Use struct reg and struct fpreg
8646 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8647 and alphabsd_supply_fpreg.
8648 (store_inferior_registers): Use struct reg and struct fpreg
8649 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8650 and alphabsd_fill_fpreg.
8651 * alphabsd-tdep.c: New file.
8652 * alphabsd-tdep.h: New file.
8653 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8654 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8655 alphabsd_supply_fpreg.
8656 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8657 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8658
8659 2002-05-11 Eric Christopher <echristo@redhat.com>
8660
8661 * mips-tdep.c (mips_double_register_type): Fix thinko.
8662 (mips_single_register_type): Ditto.
8663 * MAINTAINERS: Add self.
8664
8665 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8666
8667 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8668 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8669 right thing on architectures with different endianness and/or
8670 integer sizes.
8671
8672 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8673
8674 From Christian Limpach <chris@Pin.LU>
8675 * configure.in: Change sed expression which comments out
8676 NATDEPFILES to also comment out continuation lines.
8677 * configure: Regenerate.
8678
8679 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8680
8681 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8682 big patch.
8683
8684 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8685
8686 * sh-tdep.c: Include correct file.
8687
8688 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8689
8690 New support for sh64-elf (sh5) target.
8691
8692 * configure.tgt: For sh64-elf target, default to sh-elf.
8693
8694 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8695 (struct gdbarch_tdep): Add new fields for new registers and ABI
8696 info.
8697
8698 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8699 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8700 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8701 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8702 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8703 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8704 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8705 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8706 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8707 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8708 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8709 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8710 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8711 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8712 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8713 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8714 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8715 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8716 sign_extend, sh64_nofp_frame_init_saved_regs,
8717 sh64_init_extra_frame_info, sh64_get_saved_register,
8718 sh64_extract_struct_value_address, sh64_pop_frame,
8719 sh64_push_arguments, sh64_extract_return_value,
8720 sh64_store_return_value, sh64_show_media_regs,
8721 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8722 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8723 sh_sh64_register_virtual_type,
8724 sh_sh64_register_convert_to_virtual,
8725 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8726 sh64_register_read, sh64_pseudo_register_write,
8727 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8728 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8729 sh64_do_pseudo_register, sh_compact_do_registers_info,
8730 sh64_do_registers_info, sh_gdbarch_init): New functions.
8731
8732 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8733
8734 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8735
8736 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8737
8738 * linespec.c (decode_line_1): Check for a double quote after
8739 a filename correctly.
8740
8741 2002-05-10 Jim Blandy <jimb@redhat.com>
8742
8743 Properly track the size of the current objfile's .debug_line section.
8744 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8745 (DWARF_LINE_SIZE): New macro.
8746 (dwarf2_build_psymtabs_hard): Record the line section's size in
8747 the partial symbol table.
8748 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8749 symbol table.
8750
8751 2002-05-10 Petr Sorfa <petrs@caldera.com>
8752
8753 * ia64-tdep.c: Handle breakpoints on L instruction type
8754 in MLX instruction bundle by moving the breakpoint to
8755 the third slot (X instruction type) as L holds only data.
8756
8757 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8758
8759 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8760 (process_one_symbol): Complain about discarding local symbols
8761 due to a misplaced N_LBRAC entry.
8762
8763 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8764
8765 From Daniel Berlin <dan@cgsoftware.com>
8766 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8767 decrease the depth we are at, in the case of templates.
8768
8769 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8770
8771 * mips-tdep.c (mips_float_register_type): New function.
8772 (mips_double_register_type): New function.
8773 (mips_print_register): Use them.
8774 (do_fp_register_row): Likewise.
8775
8776 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8777
8778 * signals/signals.c (signals): Remove conditional compilation around
8779 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8780 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8781
8782 2002-05-09 Michael Snyder <msnyder@redhat.com>
8783
8784 * remote-rdp.c (remote_rdp_can_run): Remove.
8785
8786 2002-05-09 Tom Tromey <tromey@redhat.com>
8787
8788 * jv-valprint.c (java_val_print): Handle `char' as a special case
8789 of TYPE_CODE_INT.
8790
8791 2002-05-09 Michael Snyder <msnyder@redhat.com>
8792
8793 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8794 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8795 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8796 str r(0123),[sp,#nn].
8797 (arm_skip_prologue): Ditto. Also make disassembly
8798 order-independent by placing it in a loop.
8799
8800 2002-05-06 Michael Snyder <msnyder@redhat.com>
8801
8802 * stabsread.c (read_type): Add recognition for new attribute:
8803 "@V;" means that an array type is actually a vector.
8804 This is analogous to the vector flag that's been added to dwarf2.
8805
8806 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8807
8808 * i386-tdep.h (i386_abi): New enum.
8809 (struct gdbarch_tdep): Replace os_ident member with abi.
8810 (i386_gdbarch_register_os_abi): New prototype.
8811 * i386-tdep.c (i386_abi_names): New array.
8812 (process_note_abi_tag_sections): Removed.
8813 (process_note_sections): New function.
8814 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8815 (struct i386_abi_handler): New struct.
8816 (i386_abi_handler_list): New variable.
8817 (i386_gdbarch_register_os_abi): New function.
8818 (i386_gdbarch_init): Adapt for the changes given above.
8819
8820 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8821
8822 * gregset.h: Say "GNU/Linux".
8823
8824 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8825
8826 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8827 (build_gdbtypes): Build builtin_type_v2_float.
8828 (_initialize_gdbtypes): Register new builtin type.
8829
8830 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8831
8832 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8833 (clear_gdbarch_swap): New function.
8834 (initialize_non_multiarch): Call.
8835 (gdbarch_update_p): Before calling init(), swap out and clear the
8836 existing architecture.
8837 * gdbarch.c: Regenerate.
8838
8839 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8840
8841 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8842 alphanbsd-tdep.c.
8843
8844 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8845
8846 * sh-nbsd-nat.c: Rename to...
8847 * shnbsd-nat.c: ...this.
8848 * sh-nbsd-tdep.c: Rename to...
8849 * shnbsd-tdep.c: ...this.
8850 * sh-nbsd-tdep.h: Rename to...
8851 * shnbsd-tdep.h: ...this.
8852 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8853 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8854
8855 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8856
8857 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8858 concatenation for command help messages.
8859
8860 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8861
8862 * NEWS: Note new sh*-*-netbsdelf* configuration.
8863 * configure.host: Set gdb_host_cpu to sh for all sh*.
8864 (sh*-*-netbsdelf*): New host.
8865 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8866 (sh*-*-netbsdelf*): New target.
8867 * sh-nbsd-nat.c: New file.
8868 * sh-nbsd-tdep.c: New file.
8869 * sh-nbsd-tdep.h: New file.
8870 * config/sh/nbsd.mh: New file.
8871 * config/sh/nbsd.mt: New file.
8872 * config/sh/nm-nbsd.h: New file.
8873 * config/sh/tm-nbsd.h: New file.
8874
8875 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8876
8877 * sh-tdep.c (sh_osabi_names): Declare.
8878 (process_note_abi_tag_sections): New function.
8879 (get_elfosabi): Ditto.
8880 (sh_gdbarch_register_os_abi): Ditto.
8881 (sh_dump_tdep): Ditto.
8882 _initialize_sh_tdep): Use gdbarch_register to register
8883 sh_gdbarch_init and sh_dump_tdep.
8884 * config/sh/tm-sh.h (sh_osabi): Declare.
8885 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8886
8887 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8888
8889 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8890 (thumb_scan_prologue): Ditto.
8891 (arm_find_callers_reg): Ditto.
8892 (arm_frame_chain): Ditto.
8893 (arm_init_extra_frame_info): Ditto.
8894 (arm_frame_saved_pc): Ditto.
8895 (arm_pop_frame): Ditto.
8896 (arm_push_return_address): New function.
8897 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8898 call_dummy_location, call_dummy_breakpoint_offset_p,
8899 call_dummy_breakpoint_offset, call_dummy_p,
8900 call_dummy_stack_adjust_p, call_dummy_words,
8901 sizeof_call_dummy_words, call_dummy_start_offset,
8902 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8903 call_dummy_address, push_return_address and push_dummy_frame for
8904 generic dummy frames.
8905
8906 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8907
8908 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8909 size computation for alloca.
8910 (sh_fp_frame_init_saved_regs): Likewise.
8911
8912 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8913
8914 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8915 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8916 * arm-tdep.c (arm_store_return_value): Use them.
8917 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8918 * remote-rdp.c (remote_rdp_fetch_register): Use
8919 ARM_MAX_REGISTER_RAW_SIZE.
8920 (remote_rdp_store_register): Likewise.
8921
8922 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8923
8924 * dwarf2cfi.c: Code cleanup, removed unused variables,
8925 added default labels to switch {} statements.
8926 * x86-64-tdep.c: Ditto.
8927 * x86-64-linux-nat.c: Ditto.
8928
8929 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8930
8931 * solib.h: Protect against multiple inclusion.
8932
8933 2002-05-06 Jim Blandy <jimb@redhat.com>
8934
8935 Add first preprocessor macro-expansion files.
8936 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8937 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8938 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8939 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8940 (COMMON_OBS): Add macrotab.o, macroexp.o.
8941 (macroexp.o, macrotab.o): New rules.
8942
8943 Separate the job of reading the line number info statement program
8944 header (...expialidocious) out into its own function.
8945 * dwarf2read.c (struct line_head, struct filenames, struct
8946 directories): Replace with...
8947 (struct line_header): New structure, containing the full
8948 contents of the statement program header, including the
8949 include directory and file name tables.
8950 (read_file_scope): If we have line number info, instead of just
8951 calling dwarf_decode_lines to do all the work, call
8952 dwarf_decode_line_header first to get a `struct line_header'
8953 containing the data in the statement program header, and then
8954 pass that to dwarf_decode_lines, which will pick up where that
8955 left off. Be sure to clean up the `struct line_header' object.
8956 (dwarf_decode_line_header, free_line_header, add_include_dir,
8957 add_file_name): New functions.
8958 (dwarf_decode_lines): Move all the code to read the statement
8959 program header into dwarf_decode_line_header. Take the line
8960 header it built as the first argument, instead of the offset to
8961 the compilation unit's line number info. Use the new `struct
8962 line_header' type instead of the old structures. No need to do
8963 cleanups here now, since we don't allocate anything.
8964 (dwarf2_statement_list_fits_in_line_number_section,
8965 dwarf2_line_header_too_long): New complaints.
8966
8967 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8968
8969 * gdbtypes.c (init_vector_type): New function.
8970 (build_builtin_type_vec128): Simplify the representation of SIMD
8971 registers.
8972 (build_gdbtypes): Initialize new builtin vector types.
8973 (_initialize_gdbtypes): Register new vector types with gdbarch.
8974 (builtin_type_v4_float, builtin_type_v4_int32,
8975 builtin_type_v8_int16, builtin_type_v16_int8,
8976 builtin_type_v2_int32, builtin_type_v4_int16,
8977 builtin_type_v8_int8): New (renamed) SIMD types.
8978
8979 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8980
8981 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8982 (i387_fill_fxsave): Likewise.
8983
8984 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8985
8986 * alpha-tdep.c (alpha_extract_return_value): Don't use
8987 non-constant array size in prototype.
8988
8989 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8990
8991 From Brian Taylor <briant at model dot com>:
8992 * ui-out.c (ui_out_field_core_addr): Use the function
8993 longest_local_hex_string_custom'to format addresses > 32 bits
8994 wide.
8995
8996 * ui-out.c (ui_out_field_core_addr): Update comment.
8997
8998 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8999
9000 * stack.c (select_and_print_frame): Make static. Delete the
9001 parameter `level'.
9002 (func_command): Update call.
9003 (select_frame_command): Delete code computing the frame level.
9004 * frame.h (select_and_print_frame): Delete declaration.
9005
9006 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9007
9008 * sparc-tdep.c (sparc_get_saved_register): Comment why
9009 get_prev_frame call is safe.
9010
9011 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9012
9013 * frame.h (select_frame): Delete level parameter.
9014 * stack.c (select_frame): Update. Use frame_relative_level to
9015 obtain the frame's level.
9016 (select_and_print_frame): Update call.
9017 (select_frame_command): Ditto.
9018 (up_silently_base): Ditto.
9019 (down_silently_base): Ditto.
9020 * ocd.c (ocd_start_remote): Ditto.
9021 * remote-rdp.c (remote_rdp_open): Ditto.
9022 * remote-mips.c (mips_initialize): Ditto.
9023 (common_open): Ditto.
9024 * remote-e7000.c (e7000_start_remote): Ditto.
9025 * m3-nat.c (select_thread): Ditto.
9026 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9027 (child_get_current_exception_event): Ditto.
9028 * varobj.c (varobj_create): Ditto.
9029 (varobj_update): Ditto.
9030 (c_value_of_root): Ditto.
9031 * tracepoint.c (finish_tfind_command): Ditto.
9032 * corelow.c (core_open): Ditto.
9033 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9034 * thread.c (info_threads_command): Ditto.
9035 (switch_to_thread): Ditto.
9036 * infrun.c (normal_stop): Ditto.
9037 (restore_selected_frame): Ditto.
9038 (restore_inferior_status): Ditto.
9039 * breakpoint.c (insert_breakpoints): Ditto.
9040 (watchpoint_check): Ditto.
9041 (bpstat_stop_status): Ditto.
9042 (do_enable_breakpoint): Ditto.
9043 * blockframe.c (flush_cached_frames): Ditto.
9044 (reinit_frame_cache): Ditto.
9045
9046 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9047
9048 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9049 maintainer.
9050
9051 2002-05-04 Jim Blandy <jimb@redhat.com>
9052
9053 * gdbtypes.c (replace_type): Doc fix.
9054
9055 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9056
9057 * valprint.c (strcat_longest): Delete commented out function.
9058 Update copyright.
9059
9060 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9061
9062 * MAINTAINERS: Mark a29k as deleted.
9063 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9064 Move new configurations to the top.
9065 * configure.tgt: Remove a29k.
9066 * config/a29k/tm-vx29k.h: Delete.
9067 * config/a29k/vx29k.mt: Delete.
9068 * config/a29k/tm-a29k.h: Delete.
9069 * config/a29k/a29k-udi.mt: Delete.
9070 * config/a29k/a29k.mt: Delete.
9071 * a29k-tdep.c: Delete.
9072 * remote-udi.c: Delete.
9073 * remote-mm.c: Delete.
9074 * remote-eb.c: Delete.
9075 * remote-adapt.c: Delete.
9076 * Makefile.in: Remove obsolete code.
9077 * config/s390/s390x.mt: Ditto.
9078 * config/s390/s390.mt: Ditto.
9079 * config/sparc/sparclynx.mh: Ditto.
9080 * config/sparc/linux.mh: Ditto.
9081 * config/pa/hppaosf.mh: Ditto.
9082 * config/pa/hppabsd.mh: Ditto.
9083 * config/ns32k/nbsd.mt: Ditto.
9084 * config/mips/vr5000.mt: Ditto.
9085 * config/m68k/sun3os4.mh: Ditto.
9086 * config/m68k/nbsd.mt: Ditto.
9087 * config/m68k/m68klynx.mh: Ditto.
9088 * config/m32r/m32r.mt: Ditto.
9089 * config/i386/x86-64linux.mt: Ditto.
9090 * config/i386/nbsdelf.mt: Ditto.
9091 * config/i386/nbsd.mt: Ditto.
9092 * config/i386/i386lynx.mh: Ditto.
9093
9094 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9095
9096 * target.c (debug_print_register): New function. Handle oversize
9097 registers.
9098 (debug_to_fetch_registers): Call.
9099 (debug_to_store_registers): Call.
9100
9101 2002-05-03 Jim Blandy <jimb@redhat.com>
9102
9103 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9104 (read_type): Doc fix.
9105 * gdbtypes.c (replace_type): Doc fix.
9106
9107 * stabsread.c (multiply_defined_struct): New complaint.
9108 (read_struct_type): If the type we were passed isn't empty, or
9109 incomplete, don't read the new struct type into it; complain,
9110 and return the original type unchanged. Take a new `type_code'
9111 argument, which is the type code for the new type.
9112 (read_type): Rather than storing the type's type code here, pass
9113 it as an argument to read_struct_type, and let that take care of
9114 storing it. That way, we don't overwrite the original type code,
9115 so read_struct_type can use it to decide whether we're overwriting
9116 something we shouldn't.
9117 (complain_about_struct_wipeout): New function.
9118
9119 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9120
9121 * gdbarch.sh: Assert that gdbarch is non-NULL.
9122 * gdbarch.c: Regenerate.
9123
9124 2002-05-03 Jason Merrill <jason@redhat.com>
9125
9126 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9127 and return NULL.
9128
9129 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9130
9131 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9132 (x86_64_dwarf2gdb_regno_map_length),
9133 (x86_64_dwarf2_reg_to_regnum): Added.
9134 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9135 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9136 (_initialize_x86_64_tdep): Synced with the change above.
9137 (x86_64_skip_prologue): Reformulated message.
9138
9139 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9140
9141 * f-exp.y: Also use new prev_lexptr variable
9142 to improve error reporting. Based on Michael Snyder
9143 2002-04-24 dated patch to c-exp.y.
9144 * jv-exp.y: Likewise.
9145 * m2-exp.y: Likewise.
9146
9147 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9148
9149 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9150 we are dealing with vectors.
9151
9152 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9153
9154 * config/m68k/tm-nbsd.h: Obvious fix,
9155 correct machine name.
9156
9157 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9158
9159 * p-typeprint.c (pascal_type_print_base): Add support
9160 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9161
9162 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9163
9164 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9165 for fondamental pascal 'char' type.
9166
9167 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9168
9169 * p-lang.h (is_pascal_string_type): Declaration changed,
9170 new sixth argument of type char ** added.
9171 * p-lang.c (is_pascal_string_type): Implementation
9172 changed. Args length_pos, length_size, string_pos, char_size
9173 can now be NULL. New argument arrayname set to the field
9174 name of the char array. Return value set to char array
9175 field index plus one.
9176 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9177 is_pascal_string_type function.
9178
9179 2002-05-02 Andrew Cagney <cagney@redhat.com>
9180
9181 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9182 <cagney@redhat.com> change.
9183 * gdbarch.c: Regenerate.
9184
9185 2002-05-02 Andrew Cagney <cagney@redhat.com>
9186
9187 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9188 before probing for a new one. Detect errorenous gdbarch_init
9189 functions.
9190 * gdbarch.c: Regenerate.
9191
9192 2002-05-01 Andrew Cagney <cagney@redhat.com>
9193
9194 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9195 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9196 * config/v850/tm-v850.h: Ditto. Update copyright.
9197
9198 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9199
9200 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9201 current_gdbarch.
9202
9203 2002-04-30 Michael Snyder <msnyder@redhat.com>
9204
9205 * arm-tdep.c: Whitespace clean-ups.
9206 (arm_skip_prologue): Fix thinko; two lines
9207 should have been removed as part of 4/24 change.
9208
9209 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9210
9211 * rs6000-tdep.c: Added comment describing how fpscr register
9212 numbers were chosen.
9213
9214 2002-04-30 Michael Snyder <msnyder@redhat.com>
9215
9216 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9217
9218 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9219
9220 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9221 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9222 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9223
9224 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9225
9226 From Louis Hamilton <hamilton@redhat.com>:
9227 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9228 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9229 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9230 not bfd-private xcoff data, to determine wordsize.
9231 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9232
9233 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9234
9235 GDB 5.2 released from 5.2 branch.
9236
9237 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9238
9239 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9240 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9241 (x86_64_register_info_table): Added comments with register numbers.
9242
9243 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9244
9245 * rs6000-tdep.c (rs6000_extract_return_value,
9246 rs6000_store_return_value): Handle returning vectors.
9247 (rs6000_gdbarch_init): Use
9248 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9249 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9250 New function.
9251 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9252 vectors.
9253 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9254 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9255
9256 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9257
9258 * hpread.c (hpread_psymtab_to_symtab_1,
9259 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9260 with fprintf_unfiltered (gdb_stderr,...).
9261
9262 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9263
9264 * remote-array.c (printf_monitor, write_monitor,
9265 array_insert_breakpoint, array_remove_breakpoint ):
9266 Replace fprintf (stderr,...
9267 with fprintf_unfiltered (gdb_stderr,....
9268 * remote-es.c: Likewise.
9269 * remote-os9k.c: Likewise.
9270 * remote-st.c: Likewise.
9271
9272 2002-04-28 Andreas Schwab <schwab@suse.de>
9273
9274 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9275 linux-proc.o and gcore.o.
9276
9277 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9278
9279 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9280 code without frame pointers.
9281
9282 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9283
9284 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9285 ON_STACK is needed.
9286
9287 2002-04-26 Ben Elliston <bje@redhat.com>
9288
9289 * target.c (do_xfer_memory): Correct reference to the new option
9290 "trust-readonly-sections".
9291
9292 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9293
9294 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9295 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9296 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9297 vectors.
9298 (read_array_type): Record the fact that this array type is really a
9299 vector (i.e. are passed in by value).
9300
9301 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9302
9303 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9304 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9305 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9306 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9307 * alpha-linux-tdep.c: Include frame.h.
9308 (alpha_linux_sigcontext_addr): New function.
9309 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9310 alpha_linux_sigcontext_addr.
9311 * alpha-osf1-tdep.c: Include gdbcore.h.
9312 (alpha_osf1_sigcontext_addr): New function.
9313 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9314 alpha_osf1_sigcontext_addr.
9315 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9316 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9317
9318 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9319
9320 * stack.c (selected_frame_level):
9321 (select_frame): Do not set selected_frame_level.
9322 * frame.h (selected_frame_level): Delete declaration.
9323
9324 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9325
9326 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9327 convert_from_func_ptr-addr when AIX / PowerOpen.
9328
9329 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9330
9331 * valops.c (hand_function_call): Call
9332 generic_save_call_dummy_addr.
9333 * frame.h (generic_save_call_dummy_addr): Declare.
9334 * blockframe.c (struct dummy_frame): Add fields call_lo and
9335 call_hi.
9336 (generic_find_dummy_frame): Check for PC in range call_lo to
9337 call_hi instead of entry_point_address.
9338 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9339 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9340 (generic_save_call_dummy_addr): New function.
9341
9342 2002-04-24 David S. Miller <davem@redhat.com>
9343
9344 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9345 sparc_skip_prologue.
9346 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9347 information to find prologue when possible.
9348 (sparc_prologue_frameless_p): Call examine_prologue directly.
9349 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9350 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9351 second argument.
9352 (SKIP_PROLOGUE): Likewise.
9353
9354 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9355
9356 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9357 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9358 indicate that the condition it was testing is always true.
9359 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9360 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9361 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9362
9363 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9364
9365 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9366 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9367 tdep->jb_pc and tdep->jb_elt_size.
9368 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9369 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9370 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9371 * alpha-nat.c (get_longjmp_target): Remove.
9372 (JB_ELEMENT_SIZE): Ditto.
9373 (JB_PC): Ditto.
9374 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9375 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9376 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9377 to alpha_get_longjmp_target.
9378 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9379 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9380 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9381
9382 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9383
9384 * README: Update to GDB 5.2.
9385
9386 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9387
9388 * gdbarch.sh (LC_ALL): Set to `c'.
9389
9390 2002-04-25 Theodore A. Roth <troth@verinet.com>
9391
9392 * avr-tdep.c: Ran through gdb_indent.sh.
9393
9394 2002-04-25 Theodore A. Roth <troth@verinet.com>
9395
9396 * MAINTAINERS: Add myself as AVR maintainer.
9397 * NEWS: Note new target avr.
9398
9399 2002-04-25 Theodore A. Roth <troth@verinet.com>
9400
9401 * Makefile.in: Add support for AVR target.
9402 * configure.tgt: Add support for AVR target.
9403 * avr-tdep.c: New file
9404 * config/avr/avr.mt: New file.
9405
9406 2002-04-25 Theodore A. Roth <troth@verinet.com>
9407
9408 * MAINTAINERS: Add myself to write-after-approval.
9409
9410 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9411
9412 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9413 with fprintf_unfiltered (gdb_stderr,....
9414
9415 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9416
9417 Fix PR gdb/508.
9418 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9419
9420 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9421
9422 * p-exp.y: Also use new prev_lexptr variable
9423 to improve error reporting. Based on Michael Snyder
9424 2002-04-24 dated patch to c-exp.y.
9425
9426 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9427
9428 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9429 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9430 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9431 to 0.
9432 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9433 and struct value.
9434 (FUNCTION_START_OFFSET): Remove.
9435 (BREAKPOINT): Ditto.
9436
9437 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9438
9439 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9440 * NEWS: Ditto.
9441
9442 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9443
9444 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9445 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9446 alpha_linux_pc_in_sigtramp.
9447 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9448 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9449 alpha_osf1_pc_in_sigtramp.
9450 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9451 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9452 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9453 alphafbsd_pc_in_sigtramp.
9454 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9455 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9456 alphanbsd_pc_in_sigtramp.
9457 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9458 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9459
9460 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9461
9462 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9463
9464 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9465
9466 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9467 alphanbsd-tdep.c.
9468 (alphanbsd-nat.o): New dependency list.
9469 (alphanbsd-tdep.o): Ditto.
9470 * NEWS: Note new native NetBSD/alpha configuration.
9471 * alphanbsd-nat.c: New file.
9472 * alphanbsd-tdep.c: Ditto.
9473 * configure.host (alpha*-*-netbsd*): New host.
9474 * configure.tgt (alpha*-*-netbsd*): New target.
9475 * config/alpha/nbsd.mh: New file.
9476 * config/alpha/nbsd.mt: Ditto.
9477 * config/alpha/nm-nbsd.h: Ditto.
9478 * config/alpha/tm-nbsd.h: Ditto.
9479
9480 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9481
9482 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9483 (alpha-osf1-tdep.o): New dependency list.
9484 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9485 and skip_sigtramp_frame members.
9486 * alpha-linux-tdep.c: Include gdbcore.h.
9487 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9488 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9489 * alpha-osf1-tdep.c: New file.
9490 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9491 alpha-osf1-dep.c.
9492 (alpha_frame_past_sigtramp_frame): New function.
9493 (alpha_dynamic_sigtramp_offset): Ditto.
9494 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9495 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9496 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9497 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9498 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9499 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9500 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9501 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9502 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9503 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9504 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9505 to find_solib_trampoline_target.
9506 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9507 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9508 (SKIP_TRAMPOLINE_CODE): Remove.
9509 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9510 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9511 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9512 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9513 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9514 (PROC_SIGTRAMP_MAGIC): Ditto.
9515 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9516 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9517 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9518 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9519 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9520
9521 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9522
9523 * NEWS: Note that Alpha targets are now multi-arch.
9524
9525 2002-04-24 Michael Snyder <msnyder@redhat.com>
9526
9527 * parser-defs.h (prev_lexptr): New external variable.
9528 * parse.c (parse_exp_1): Set prev_lexptr to null before
9529 calling the language-specific parser.
9530 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9531 (yyerror): Use prev_lexptr in error reporting.
9532
9533 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9534
9535 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9536 * gregset.h: If FILL_FPXREGSET is defined, provide
9537 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9538 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9539 is defined, call fill_fpxregset.
9540
9541 2002-04-24 Roland McGrath <roland@frob.com>
9542
9543 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9544 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9545 (supply_gregset, supply_fpregset): New functions.
9546
9547 * gnu-nat.c (gnu_find_memory_regions): New function.
9548 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9549 (gnu_xfer_memory): Add a cast.
9550
9551 2002-04-24 Michael Snyder <msnyder@redhat.com>
9552
9553 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9554 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9555 of argument regs ("str r(0123), [r11, #-nn"]).
9556 (arm_skip_prologue): Better handling for frameless functions.
9557 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9558 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9559
9560 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9561
9562 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9563 NUM_PSEUDO_REGS can be used.
9564
9565 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9566
9567 * arch-utils.h: Update copyright.
9568
9569 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9570 * gdbarch.h, gdbarch.c: Re-generate.
9571
9572 * inferior.h (IN_SIGTRAMP): Delete definition.
9573 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9574 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9575
9576 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9577 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9578 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9579 (find_proc_framesize): Ditto.
9580 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9581 (alpha_init_extra_frame_info): Ditto.
9582 * infrun.c (handle_inferior_event): Ditto.
9583 (handle_inferior_event): Ditto.
9584 (check_sigtramp2): Ditto.
9585 * blockframe.c (create_new_frame): Ditto.
9586 (get_prev_frame): Ditto.
9587 * ppc-linux-tdep.c: Update comments.
9588 * i386-linux-tdep.c: Update comments.
9589 * breakpoint.c (bpstat_what): Update comment.
9590
9591 2002-04-24 David S. Miller <davem@redhat.com>
9592
9593 * i960-tdep.c (register_in_window_p): New function.
9594 (i960_find_saved_register): Use it instead of
9595 REGISTER_IN_WINDOW_P.
9596 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9597
9598 * symtab.h (find_stab_function_addr): Kill extern.
9599 * minsyms.c (find_stab_function_addr): Remove from here...
9600 * dbxread.c: ... to here, and mark it static.
9601
9602 2002-04-20 David S. Miller <davem@redhat.com>
9603
9604 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9605 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9606
9607 2002-04-21 David S. Miller <davem@redhat.com>
9608
9609 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9610 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9611 (vx_write_register): Likewise.
9612
9613 2002-04-23 J. Brobecker <brobecker@gnat.com>
9614
9615 * source.c (is_regular_file): New function.
9616 (openp): Check wether file to open is a regular file
9617 to avoid opening directories.
9618
9619 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9620
9621 * findvar.c (extract_signed_integer): Cast printf argument
9622 to suppress format warning.
9623 (extract_unsigned_integer): Likewise.
9624 * infcmd.c (registers_info): Likewise.
9625 * top.c (get_prompt_1): Likewise.
9626 * valops.c (value_assign): Likewise.
9627 * valprint.c (print_decimal): Likewise.
9628
9629 2002-04-22 H.J. Lu (hjl@gnu.org)
9630
9631 * c-exp.y (typebase): Support
9632
9633 [long|long long|short] [signed|unsigned] [int|]
9634
9635 and
9636
9637 signed [long|long long|short] int
9638
9639 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9640
9641 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9642 and vax-tdep.h.
9643 * vax-tdep.h: New file.
9644 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9645 Make several routines static.
9646 (vax_get_saved_register): New function.
9647 (vax_gdbarch_init): New function.
9648 (_initialize_vax_tdep): Register vax_gdbarch_init.
9649 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9650 Remove macros now under the control of gdbarch.
9651
9652 2002-04-22 Michael Snyder <msnyder@redhat.com>
9653
9654 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9655 Some whitespace and coding standards tweaks.
9656
9657 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9658
9659 * vax-tdep.c: Include regcache.h.
9660 (vax_call_dummy_words): New.
9661 (sizeof_vax_call_dummy_words): New.
9662 (vax_fix_call_dummy): New function.
9663 (vax_saved_pc_after_call): Ditto.
9664 * config/vax/tm-vax.h: Don't include regcache.h.
9665 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9666 (CALL_DUMMY): Remove.
9667 (CALL_DUMMY_WORDS): Define.
9668 (SIZEOF_CALL_DUMMY_WORDS): Define.
9669 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9670
9671 2002-04-18 Michael Snyder <msnyder@redhat.com>
9672
9673 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9674
9675 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9676
9677 * vax-tdep.c (vax_frame_chain): New function.
9678 (vax_push_dummy_frame): Ditto.
9679 (vax_pop_frame): Ditto.
9680 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9681 (FRAMELESS_FUNCTION_INVOCATION): Use
9682 generic_frameless_function_invocation_not.
9683 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9684 (POP_FRAME): Use vax_pop_frame.
9685
9686 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9687
9688 * vax-tdep.c (vax_store_struct_return): New function.
9689 (vax_extract_return_value): Ditto.
9690 (vax_store_return_value): Ditto.
9691 (vax_extract_struct_value_address): Ditto.
9692 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9693 vax_store_struct_return.
9694 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9695 (STORE_RETURN_VALUE): Use vax_store_return_value.
9696 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9697
9698 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9699
9700 * vax-tdep.c (vax_frame_saved_pc): New function.
9701 (vax_frame_args_address_correct): Ditto.
9702 (vax_frame_args_address): Ditto.
9703 (vax_frame_locals_address): Ditto.
9704 (vax_frame_num_args): Move code to be in proximity to
9705 other frame-related functions.
9706 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9707 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9708 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9709 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9710 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9711
9712 2002-04-22 H.J. Lu (hjl@gnu.org)
9713
9714 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9715 includedir.
9716
9717 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9718
9719 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9720 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9721 (FRAME_INIT_SAVED_REGS): New macro.
9722
9723 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9724
9725 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9726
9727 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9728
9729 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9730 where needed.
9731 (fetch_osf_core_registers): Likewise.
9732 (supply_gregset): Likewise.
9733
9734 2002-04-22 J. Brobecker <brobecker@gnat.com>
9735
9736 * symfile.h (get_section_index): Define.
9737 * symfile.c (get_section_index): New function.
9738 * mdebugread.c (SC_IS_SBSS): New macro.
9739 (SC_IS_BSS): Return true for the scBss storage class only, as
9740 the scSBss storage class refers to the .sbss section.
9741 (parse_partial_symbols): Discard the symbols which associated
9742 section does not exist.
9743 Make sure to use the .sbss section index for symbols which
9744 storage class is scBss, rather than using the .bss section index.
9745
9746 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9747
9748 * vax-tdep.c: Update copyright years.
9749 (vax_register_name): New function.
9750 (vax_register_byte): Ditto.
9751 (vax_register_raw_size): Ditto.
9752 (vax_register_virtual_size): Ditto.
9753 (vax_register_virtual_type): Ditto.
9754 * config/vax/tm-vax.h: Update copyright years.
9755 (REGISTER_NAMES): Remove.
9756 (REGISTER_NAME): Define.
9757 (REGISTER_BYTE): Use vax_register_byte.
9758 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9759 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9760 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9761
9762 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9763
9764 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9765 declaration
9766 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9767
9768 2002-04-21 David S. Miller <davem@redhat.com>
9769
9770 * arch-utils.c (generic_prologue_frameless_p): Kill
9771 SKIP_PROLOGUE_FRAMELESS_P code.
9772 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9773 references.
9774 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9775 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9776 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9777 references.
9778 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9779 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9780 (sparc_gdbarch_init): Pass it to
9781 set_gdbarch_prologue_frameless_p.
9782
9783 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9784
9785 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9786 (alphabsd-nat.o): New dependency list.
9787
9788 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9789
9790 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9791 alphafbsd-tdep.c.
9792 (alpha-linux-tdep.o): New dependency list.
9793 (alphafbsd-tdep.o): Likewise.
9794
9795 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9796
9797 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9798 to here...
9799 * alpha-tdep.c: ...from here.
9800 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9801
9802 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9803
9804 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9805 prototype from here...
9806 * alpha-tdep.h: ...to here.
9807
9808 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9809
9810 * frame.h (selected_frame_level): Document as deprecated.
9811 (frame_relative_level): Declare.
9812 * stack.c (frame_relative_level): New function.
9813 (selected_frame_level): Document as deprecated.
9814 (select_frame): Do not set the selected_frame_level.
9815
9816 * stack.c (frame_info, record_selected_frame): Update.
9817 (frame_command, current_frame_command): Update.
9818 (up_silently_base, up_command, down_silently_base): Update.
9819 (down_command): Update.
9820 * inflow.c (kill_command): Update.
9821 * tracepoint.c (finish_tfind_command): Update.
9822 * corelow.c (core_open): Update.
9823 * thread.c (info_threads_command): Update.
9824 (do_captured_thread_select): Update.
9825 * infcmd.c (finish_command): Update.
9826 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9827
9828 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9829
9830 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9831
9832 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9833
9834 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9835 type const.
9836
9837 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * alphafbsd-tdep.c: Update copyright years. Include
9840 alpha-tdep.h.
9841 (alphafbsd_use_struct_convention): Make static.
9842 (alphafbsd_init_abi): New function.
9843 (_initialize_alphafbsd_tdep): New function.
9844 * config/alpha/tm-fbsd.h: Update copyright years.
9845 (USE_STRUCT_CONVENTION): Remove.
9846
9847 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9848
9849 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9850 an Alpha ABI variant.
9851 (alpha_abi_handler_list): Declare.
9852 (alpha_gdbarch_register_os_abi): New function.
9853 (alpha_gdbarch_init): Give registered ABI variant handlers a
9854 chance to tweak the gdbarch once we have set up defaults.
9855 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9856
9857 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9858
9859 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9860 to standard_coerce_float_to_double.
9861 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9862
9863 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9864
9865 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9866 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9867 from gdbarch_tdep rather than a constant.
9868 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9869 the default text address for all Alpha Unix ABIs.
9870 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9871 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9872
9873 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9874
9875 * alpha-tdep.h: New file. Includes several Alpha target constants
9876 taken from...
9877 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9878 let gdbarch deal with.
9879 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9880 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9881 to dependency list.
9882 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9883 Alpha target register names.
9884 * alphabsd-nat.c: Likewise.
9885 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9886 Alpha target register names. Make serveral routines static.
9887 (alpha_get_saved_register): New function.
9888 (alpha_abi_names): New.
9889 (process_note_abi_tag_sections): New function.
9890 (get_elfosabi): New function.
9891 (alpha_gdbarch_init): New function.
9892 (alpha_dump_tdep): New function.
9893 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9894
9895 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9896
9897 * frame.c (find_saved_register): Delete #ifdef
9898 HAVE_REGISTER_WINDOWS code.
9899 * config/sparc/tm-sparc.h: Update comments.
9900 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9901
9902 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9903
9904 * i960-tdep.c (i960_find_saved_register): New function.
9905 (i960_get_saved_register): New function.
9906 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9907 (i960_get_saved_register): Declare.
9908 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9909
9910 2002-04-20 David S. Miller <davem@redhat.com>
9911
9912 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9913
9914 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9915
9916 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9917 instead of NUM_PSEUDO_REGS.
9918
9919 2002-04-20 David S. Miller <davem@redhat.com>
9920
9921 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9922 GDB_MULTI_ARCH_PARTIAL
9923 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9924 define, let tm-sp64.h do it.
9925
9926 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9927
9928 * frame.c (find_saved_register): Avoid a NULL pointer
9929 dereference and actually walk the frame list.
9930
9931 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9932
9933 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9934 sorted in most most-recent-used order. Document.
9935 * gdbarch.h, gdbarch.c: Regenerate.
9936
9937 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9938
9939 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9940 instead of ->prev.
9941 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9942 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9943 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9944 instead of ->prev.
9945
9946 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9947
9948 Fix PR gdb/471.
9949 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9950 (build_builtin_type_vec128): Ditto.
9951 (append_composite_type_field): Fix calculation of type length in
9952 union case.
9953
9954 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9955
9956 * config/djgpp/README: Update.
9957
9958 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9959 compiler warnings.
9960
9961 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9962
9963 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9964 (alpha_setup_arbitrary_frame): ...to this.
9965 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9966 for alpha_setup_arbitrary_frame.
9967
9968 2002-04-18 Andrew Cagney <cagney@redhat.com>
9969
9970 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9971 * gdbarch.h, gdbarch.c: Regenerate.
9972
9973 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9974 * target.h (memory_breakpoint_from_pc): Update declaration.
9975 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9976
9977 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9978 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9979 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9980 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9981 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9982 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9983 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9984 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9985 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9986 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9987 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9988 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9989
9990 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9991 const pointer.
9992 * monitor.c (monitor_insert_breakpoint): Ditto.
9993 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9994
9995 * config/mcore/tm-mcore.h: Update copyright.
9996 * mem-break.c: Ditto.
9997 * xstormy16-tdep.c: Ditto.
9998
9999 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10000
10001 * p-exp.y: Add precedence rule for '^' token.
10002 This removes the shift/reduce conflicts.
10003 Remove the comment concerning these shift/reduce conflicts.
10004
10005 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10006
10007 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10008 (registers_powerpc_nofp): New register set for processors
10009 without floating point unit.
10010
10011 2002-04-18 David S. Miller <davem@redhat.com>
10012
10013 * MAINTAINERS: Add myself to write-after-approval.
10014
10015 2002-04-17 Michael Snyder <msnyder@redhat.com>
10016
10017 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10018
10019 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10020
10021 * rs6000-tdep.c (frame_initial_stack_address): Use
10022 frame_register_read to read the alloca_reg.
10023
10024 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10025
10026 * frame.c (find_saved_register): Find saved registers in the next
10027 not prev frame.
10028 Fix PR gdb/365.
10029
10030 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10031
10032 * gdbarch.sh (LANG): Set to ``c''.
10033
10034 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10035
10036 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10037
10038 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10039
10040 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10041 Update copyright.
10042
10043 * hpread.c (hpread_get_lntt): Add declaration.
10044 Also fix PR gdb/391.
10045
10046 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10047
10048 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10049 * aclocal.m4, configure: Re-generate.
10050 Fix PR gdb/391.
10051
10052 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10053
10054 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10055 instead of tm_print_insn.
10056
10057 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10058
10059 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10060
10061 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10062
10063 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10064 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10065 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10066
10067 2002-04-12 Don Howard <dhoward@redhat.com>
10068
10069 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10070 max_user_call_depth.
10071 (init_cmd_lists): Initialize the new value;
10072 * cli/cli-script.c (execute_user_command): Limit the call depth of
10073 user defined commands. This avoids a core-dump when user commands
10074 are infinitly recursive.
10075
10076 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10077
10078 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10079 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10080 from tdep struct instead of DEFAULT_LR_SAVE.
10081 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10082 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10083 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10084
10085 2002-04-12 Michael Snyder <msnyder@redhat.com>
10086
10087 * Remote.c: Spelling fix.
10088 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10089 If no symbol found for "sbrk", try "_sbrk".
10090 (make_output_phdrs): Use bfd_section_name.
10091 (gcore_copy_callback): Use bfd_section_name.
10092 * eval.c: Indentation fix-ups.
10093 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10094 in case it gets applied to an address that is already
10095 in the instruction space.
10096 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10097 * symfile.c: Fix indentation, long lines.
10098 * source.c: White space fix-up.
10099
10100 2002-04-12 Andrew Cagney <cagney@redhat.com>
10101
10102 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10103 * frame.c (frame_register_read): New function. Return non-zero on
10104 success.
10105 (read_relative_register_raw_bytes_for_frame): Delete.
10106 (read_relative_register_raw_bytes): Delete.
10107 * frame.h (frame_register_read): Declare.
10108 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10109 * sh-tdep.c: Ditto.
10110 * infcmd.c (do_registers_info): Ditto.
10111 * hppa-tdep.c: Ditto.
10112 * rs6000-tdep.c: Ditto.
10113 * h8500-tdep.c: Ditto.
10114 * mips-tdep.c: Ditto.
10115 * h8300-tdep.c: Ditto.
10116 * z8k-tdep.c: Ditto.
10117
10118 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10119
10120 From Jimi X <jimix@watson.ibm.com>:
10121 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10122 64-bit SysV ABI.
10123
10124 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10125
10126 From Jimi X <jimix@watson.ibm.com>:
10127 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10128 bfd info.
10129
10130 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10131
10132 From Jimi X <jimix@watson.ibm.com>:
10133 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10134 register sets for these processor variants.
10135
10136 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * regformats/reg-ppc.dat: Support FPSCR.
10139
10140 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10141
10142 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10143 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10144 Add fpscr as an invalid/unfetchable register.
10145 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10146 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10147 (fill_fpregset): Add support for register fpscr.
10148 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10149 (fill_gregset): Account for the fact that register ``mq'' might
10150 not exist.
10151 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10152 (registers_power): Add fpscr to register set at slot 71.
10153 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10154 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10155
10156 2002-04-11 Michael Snyder <msnyder@redhat.com>
10157
10158 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10159 * configure: Regenerate.
10160 * config.in: Regenerate.
10161 * acconfig.h: Add define for _SYSCALL32.
10162 * core-sol2.c: Remove #define _SYSCALL32.
10163 * solib-legacy.c: Remove #define _SYSCALL32.
10164
10165 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10166
10167 * stack.c (select_frame): Cleanup internal error message, do not
10168 use %p.
10169
10170 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10171
10172 * stack.c (select_frame): Check that selected_frame and the
10173 specified level are as expected.
10174 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10175 Update copyright.
10176 * frame.h (struct frame_info): Add field `level'. Update
10177 copyright.
10178 Work-in-progress PR gdb/464.
10179
10180 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10181
10182 * maint.c (maint_print_section_info): Rename print_section_info.
10183 (print_bfd_section_info, print_objfile_section_info): Update.
10184 * inferior.h (struct gdbarch): Add opaque declaration.
10185 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10186 * gdbarch.h: Regenerate.
10187
10188 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10189
10190 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10191 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10192 (kernel_u_size): Added.
10193 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10194 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10195
10196 2002-04-04 Jim Ingham <jingham@apple.com>
10197
10198 * valarith.c (find_size_for_pointer_math): New function, either returns
10199 the size for a pointer's target, returns 1 for void *, or errors for
10200 incomplete types.
10201 (value_add, value_sub): use find_size_for_pointer_math.
10202
10203 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10204
10205 * linux-low.c (linux_look_up_symbols): New hook.
10206 (linux_target_ops): Add linux_look_up_symbols.
10207 * remote-utils.c (decode_address): New function.
10208 (look_up_one_symbol): New function.
10209 * server.c (handle_query): Call target look_up_symbols hook.
10210 * server.h (look_up_one_symbol): Add prototype.
10211 * target.h (struct target_ops): Add look_up_symbols hook.
10212
10213 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10214
10215 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10216 override FP_REGNUM with frame->fp. Update copyright.
10217 * parse.c (num_std_regs, std_regs): Delete.
10218 (target_map_name_to_register): Do not search std_regs. Update
10219 function description.
10220 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10221 declarations. Update copyright.
10222 Fix PR gdb/251.
10223
10224 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10225
10226 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10227 after the last symbol in a block.
10228
10229 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10230
10231 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10232 is non zero as a found symbol.
10233
10234 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10235
10236 * findvar.c: Include "builtin-regs.h".
10237 (value_of_register): Call value_of_builtin_reg when applicable.
10238 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10239 (target_map_name_to_register): Call
10240 builtin_reg_map_name_to_regnum.
10241 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10242 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10243 (builtin_regs_h): Define.
10244 (builtin-regs.o): New target.
10245 (findvar.o): Add $(builtin_regs_h).
10246 * builtin-regs.c, builtin-regs.h: New files.
10247 * std-regs.c: New file.
10248 Partial fix for PR gdb/251.
10249
10250 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10251
10252 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10253 it's no longer required.
10254
10255 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10256
10257 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10258
10259 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10260
10261 From Jimi X <jimix@watson.ibm.com>:
10262 * rs6000-tdep.c (rs6000_software_single_step): Use
10263 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10264 and size. Use target_insert_breakpoint() and
10265 target_remove_breakpoint() to insert and remove breakpoints
10266 instead of explicit memory reads and writes.
10267
10268 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10269
10270 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10271 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10272 ELF_OBJECT_FORMAT ifdef.
10273
10274 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10275
10276 From Jimi X <jimix@watson.ibm.com>:
10277 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10278
10279 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10280
10281 From Jimi X <jimix@watson.ibm.com>:
10282 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10283 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10284
10285 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10286
10287 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10288 s/asprintf/xasprintf/.
10289 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10290
10291 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10292
10293 I believe Jeff Law denies responsability for this one:
10294 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10295 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10296 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10297 Work-around for PR gdb/366.
10298
10299 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10300
10301 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10302 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10303 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10304
10305 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10306
10307 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10308 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10309 information.
10310
10311 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10312
10313 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10314 maintainer.
10315
10316 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10317
10318 * README (Reporting Bugs in GDB): Document the bug web page as the
10319 prefered way of submitting bugs.
10320 Fix PR gdb/402.
10321
10322 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10323
10324 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10325 -1. Update comment.
10326 * gdbarch.h, gdbarch.c: Re-generate.
10327
10328 2002-04-07 Andreas Schwab <schwab@suse.de>
10329
10330 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10331 buffer to regcache_collect.
10332
10333 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10334
10335 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10336 * gdbarch.c, gdbarch.h: Re-generate.
10337
10338 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10339
10340 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10341 declaration. Fix -Werror.
10342
10343 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10344
10345 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10346 * gdbarch.c: Regenerate.
10347
10348 2002-04-05 Michael Snyder <msnyder@redhat.com>
10349
10350 * breakpoint.c (clear_command): Rewrite middle section to
10351 combine two loops with identical control conditions.
10352 Add a cleanup to eliminate a memory leak.
10353 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10354
10355 2002-04-05 H.J. Lu (hjl@gnu.org)
10356
10357 * solib-svr4.c (bkpt_names): Add "__start".
10358
10359 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10360
10361 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10362 as test for 64 bit target.
10363
10364 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10365
10366 * h8500-tdep.c (h8500_write_fp): Delete function.
10367 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10368 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10369 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10371 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10372 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10373 (s390_write_fp):
10374 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10375 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10376 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10377 (d10v_write_fp): Delete function.
10378 * inferior.h (write_fp, generic_target_write_fp): Delete
10379 declarations.
10380 * regcache.c (generic_target_write_fp): Delete function.
10381 (write_fp): Delete function.
10382 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10383 * gdbarch.h, gdbarch.c: Regenerate.
10384 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10385 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10386 (sparc64_write_fp): Delete declaration.
10387 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10388 (h8500_write_fp): Delete declaration.
10389
10390 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10391
10392 * sparc-tdep.c (sparc64_write_fp): Delete.
10393 (sparc_push_dummy_frame): Replace write_fp call with code to store
10394 the FP directly.
10395 (sparc_gdbarch_init): Do not initialize write_fp.
10396
10397 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10398
10399 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10400 clause.
10401
10402 2002-03-29 Jim Blandy <jimb@redhat.com>
10403
10404 * stack.c (get_selected_block): Add new argument `addr_in_block',
10405 used to return the exact code address we used to select the block,
10406 not just the block.
10407 * blockframe.c (get_frame_block, get_current_block): Same.
10408 * frame.h (get_frame_block, get_current_block,
10409 get_selected_block): Update declarations.
10410 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10411 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10412
10413 2002-04-05 Michael Snyder <msnyder@redhat.com>
10414
10415 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10416 warning message.
10417
10418 2002-04-05 J. Brobecker <brobecker@gnat.com>
10419
10420 * utils.c (xfullpath): New function.
10421 * defs.h (xfullpath): Add declaration.
10422 * source.c (openp): Use xfullpath in place of gdb_realpath to
10423 avoid resolving the basename part of filenames when the
10424 associated file is a symbolic link. This fixes a potential
10425 inconsistency between the filenames known to GDB and the
10426 filenames it prints in the annotations.
10427 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10428 to be able to match a filename with either the real filename, or
10429 the name of any symbolic link to this file.
10430 (lookup_partial_symtab): Ditto.
10431
10432 2002-04-04 Michael Snyder <msnyder@redhat.com>
10433
10434 * breakpoint.c: Add support for hardware breakpoints in overlays.
10435 (overlay_events_enabled): New state variable.
10436 (insert_breakpoints): Use overlay_events_enabled to decide
10437 whether to attempt to set a breakpoint at the overlay load addr.
10438 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10439 (remove_breakpoint): Use overlay_events_enabled to decide
10440 whether breakpoints need to be removed from overlay load addr.
10441 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10442 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10443 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10444 disable_overlay_breakpoints): Update overlay_events_enabled.
10445
10446 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * dwarf2read.c (struct function_range): New.
10449 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10450 (check_cu_functions): New.
10451 (read_file_scope): Initialize global function lists.
10452 Call dwarf_decode_line after processing children.
10453 (read_func_scope): Add to global function list.
10454 (dwarf_decode_lines): Call check_cu_functions everywhere
10455 record_line is called. Call record_line with a linenumber
10456 of 0 to mark sequence ends.
10457
10458 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10459
10460 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10461 change sync with glibc.
10462
10463 2002-04-03 Jim Blandy <jimb@redhat.com>
10464
10465 * configure.in: Call AC_C_INLINE.
10466 * configure: Regenerated.
10467
10468 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10471 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10472
10473 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10474
10475 * NEWS: Mention gcore support on FreeBSD/i386.
10476
10477 * fbsd-proc.c: New file.
10478 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10479 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10480
10481 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10482 while statement.
10483
10484 2002-03-29 Jim Blandy <jimb@redhat.com>
10485
10486 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10487 unescaped newlines in string literals, but newer ones don't. So
10488 escape them.
10489
10490 2002-03-26 Michael Snyder <msnyder@redhat.com>
10491 Andrew Cagney <cagney@redhat.com>
10492
10493 * cli/cli-dump.c: New file. Dump memory to file,
10494 restore file to memory.
10495 * cli/cli-dump.h: New file.
10496 * Makefile.in: Add rules, dependencies for cli-dump.o.
10497 * NEWS: Mention new commands.
10498
10499 2002-03-28 Michael Snyder <msnyder@redhat.com>
10500
10501 * symfile.c (symbol_file_add): Move test for null symbols to later.
10502
10503 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10504
10505 From veksler at il.ibm.com:
10506 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10507 the xstrduped original path.
10508 Fix PR gdb/417.
10509
10510 2002-03-27 Michael Snyder <msnyder@redhat.com>
10511
10512 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10513 * infcmd.c (_initialize_infcmd): Ditto.
10514 * language.c (_initialize_language): Ditto.
10515 * symfile.c (_initialize_symfile): Ditto.
10516 * top.c (_init_main): Ditto.
10517 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10518
10519 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10520
10521 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10522 vector registers handling.
10523 (skip_prologue): Handle new AltiVec instructions. Fill in new
10524 fields of frame data.
10525 (frame_get_saved_regs): Fill in information for AltiVec registers.
10526
10527 2002-03-27 Jim Blandy <jimb@redhat.com>
10528
10529 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10530 a function; leave this macro here to invoke that function.
10531 (symbol_init_mangled_name): Declaration for that function.
10532 * symtab.c (symbol_init_mangled_name): New function.
10533
10534 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10535
10536 * valarith.c: Replace strerror with safe_strerror.
10537 * tracepoint.c: Ditto.
10538 * lin-lwp.c: Ditto.
10539 * go32-nat.c: Ditto.
10540 * inflow.c: Ditto.
10541 * gnu-nat.c: Ditto.
10542
10543 2002-03-27 Andreas Schwab <schwab@suse.de>
10544
10545 * event-top.c (command_line_handler): Remove useless if.
10546
10547 2002-03-27 Andreas Jaeger <aj@suse.de>
10548
10549 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10550 comment.
10551
10552 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10553
10554 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10555 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10556 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10557 (x86_64_linux_dr_get_status, supply_gregset),
10558 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10559 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10560 (x86_64_register_info_table): Add.
10561 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10562 (x86_64_register_raw_size, x86_64_register_virtual_type),
10563 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10564 general x86_64_register_info_table.
10565 (i386_gdbarch_init): gdbarch_register_bytes is now set
10566 dynamicaly during initialization.
10567 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10568 * gdbserver/linux-x86-64-low.c: Ditto.
10569
10570 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * gdbserver/server.c (main): Call target_signal_to_host_p
10573 and target_signal_to_host on signals received from the remote.
10574 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10575 target_signal_from_host on signals sent to the remote.
10576 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10577 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10578
10579 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * signals/signals.c: Include "server.h" in gdbserver build.
10582 (target_signal_from_name): Don't use STREQ.
10583 (_initialize_signals): Likewise. Don't include function in
10584 gdbserver build.
10585
10586 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * signals.c: Moved to...
10589 * signals/signals.c: Here.
10590 * Makefile (signals.o): Update.
10591
10592 2002-03-26 Jeff Law (law@redhat.com)
10593
10594 * somread.c (som_symtab_read): Remove some commented out code and
10595 updated related comments. Do not set the minimal symbol table to
10596 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10597 in a dynamic executable.
10598 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10599 where we are unable to find the minimal symbol for the given
10600 PC value.
10601
10602 2002-03-25 Jeff Law (law@redhat.com)
10603
10604 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10605
10606 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10607
10608 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10609
10610 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10611
10612 * command.h: Update copyright.
10613 (struct cmd_list_element): Replace definition with opaque
10614 declaration.
10615 (enum cmd_types): Document that it will eventually be moved to
10616 cli/cli-decode.h
10617 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10618 (MALLOCED_REPLACEMENT): Delete macro.
10619 * Makefile.in (cli_decode_h): Add $(command_h).
10620 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10621 * top.c: Include "cli/cli-decode.h".
10622 * completer.c: Include "cli/cli-decode.h".
10623 * maint.c: Include "cli/cli-decode.h".
10624 * cli/cli-decode.h: Include "command.h".
10625 (enum command_class): Delete.
10626 (enum cmd_types): Comment out.
10627 (enum cmd_auto_boolean): Delete.
10628 (enum var_types): Delete.
10629
10630 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10631
10632 * cli/cli-decode.c: Include "gdb_assert.h".
10633 (add_set_or_show_cmd): New static function.
10634 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10635 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10636 all fields, such as func, from the set command.
10637
10638 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10639
10640 * MAINTAINERS (sh-elf): Change warning flag to -w.
10641
10642 2002-03-23 Andrew Cagney <cagney@redhat.com>
10643
10644 * defs.h (error): Add printf format attribute.
10645 * thread-db.c (thread_from_lwp): Fix error format string.
10646 * stack.c (parse_frame_specification): Ditto.
10647 * cli/cli-decode.c (undef_cmd_error): Ditto.
10648 * scm-lang.c (scm_lookup_name): Ditto.
10649 * tracepoint.c (trace_error): Ditto.
10650 * remote-utils.c (usage): Ditto.
10651 * remote.c (compare_sections_command): Ditto.
10652 Fix PR gdb/328.
10653
10654 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10655
10656 * gdbtypes.c (append_composite_type_field): New function.
10657 (init_composite_type): New function.
10658 * gdbtypes.h (append_composite_type_field): Declare.
10659 (init_composite_type): Ditto.
10660
10661 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10662
10663 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10664 function.
10665 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10666 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10667 structure returning convention for SYSV ABI case, but not
10668 for GNU/Linux, FreeBSD, or NetBSD.
10669
10670 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10671
10672 * symtab.h (lookup_block_symbol): Add mangled_name argument
10673 to prototype.
10674
10675 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10676 with new mangled_name argument.
10677 * linespec.c (decode_line_1): Likewise.
10678 * valops (value_of_this): Likewise.
10679 * symtab.c (lookup_transparent_type): Likewise.
10680 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10681 (lookup_symbol): If we are given a mangled name, pass it down
10682 to lookup_symbol_aux.
10683 (lookup_block_symbol): If we are given a mangled name to check
10684 against, only return symbols which match it.
10685
10686 2002-03-22 Christopher Faylor <cgf@redhat.com>
10687
10688 * win32-nat.c (child_create_inferior): Check for proper shell to use
10689 here, in case the user changes it on the fly.
10690 (_initialize_inftarg): Remove shell path considerations.
10691
10692 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10693
10694 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10695 for gdbarch_max_register_raw_size and max_register_virtual_size.
10696 Adjust copyright year.
10697
10698 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10699
10700 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10701 in a function to cover the entire beginning of the function
10702 as well if it does not already.
10703
10704 2002-03-21 Tom Rix <trix@redhat.com>
10705
10706 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10707 (rs6000_ptrace64): Renamed from ptrace64.
10708
10709 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10710
10711 * gdbserver/remote-utils.c (remote_open): Don't call
10712 getprotobyname, we're all using TCP here so just use
10713 IPPROTO_TCP.
10714 * gdbserver/gdbreplay.c (remote_open): Ditto.
10715
10716 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10717
10718 * regcache.c (_initialize_regcache): No need to call
10719 build_regcache() at this time; it gets called whenever
10720 the gdbarch changes.
10721
10722 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10723
10724 * sparc-nat.c: Include sys/param.h where possible.
10725
10726 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10727
10728 Fix PR gdb/422.
10729 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10730 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10731 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10732 complex types.
10733 * stabsread.c (rs6000_builtin_type): Likewise.
10734 (read_sun_floating_type): Likewise.
10735
10736 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10737
10738 * stabsread.c (read_member_functions): Remove skip code for duplicate
10739 constructor/destructor methods. Use standard parsing for these
10740 methods and just do not chain them to the list of methods after
10741 parsing.
10742
10743 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10744
10745 * coffread.c: Remove redundant static declarations. Replace
10746 occurrences of `PTR' with `void *'.
10747 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10748 * top.h (quit_cover): Likewise.
10749 * defs.h (catch_errors): Likewise.
10750
10751 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10752
10753 * defs.h (XMALLOC): Define.
10754 * gdb-events.sh (XMALLOC): Delete macro.
10755 * gdb-events.c, gdb-events.h: Regenerate.
10756 * gdbarch.sh (XMALLOC): Delete macro.
10757 * gdbarch.c: Regenerate.
10758 * serial.c (XMALLOC): Delete macro.
10759 * ui-file.c (XMALLOC): Ditto.
10760 * ser-unix.h (XMALLOC): Ditto.
10761 * sh-tdep.c (XMALLOC): Ditto.
10762 * ui-out.c (XMALLOC): Ditto.
10763 * utils.c (XMALLOC): Ditto.
10764 * i386-tdep.c (XMALLOC): Ditto.
10765 * gdb-events.c (XMALLOC): Ditto.
10766 * d10v-tdep.c (XMALLOC): Ditto.
10767 * cli-out.c (XMALLOC): Ditto.
10768
10769 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10770 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10771 * ui-file.c, ui-out.c: Ditto.
10772
10773 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10774
10775 * command.h (struct cmd_list_element): Add field context.
10776 (set_cmd_context, get_cmd_context): Declare.
10777 * cli/cli-decode.h: Ditto.
10778 * cli/cli-decode.c (get_cmd_context): New function.
10779 (set_cmd_context): New function.
10780 (add_cmd): Initialize context.
10781 Part of fixing PR gdb/145 and PR gdb/146.
10782
10783 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10784
10785 * cli/cli-decode.c (cmd_type): New function.
10786 * command.h (cmd_type): Declare.
10787 * infrun.c (set_schedlock_func): Call function cmd_type.
10788 * kod.c (kod_set_os): Call cmd_type.
10789 * cris-tdep.c (cris_version_update): Use function cmd_type.
10790 (cris_mode_update, cris_abi_update): Ditto.
10791
10792 * command.h: (execute_cmd_post_hook): Declare.
10793 (execute_cmd_pre_hook): Declare.
10794 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10795 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10796 functions. Execute pre/post hook while ensuring that afterwords
10797 hook_in is cleared.
10798 * top.c (execute_command): Use execute_cmd_post_hook, and
10799 execute_cmd_pre_hook to execute pre/post commands.
10800 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10801 hook_stop_stub.
10802 (hook_stop_stub): Call execute_cmd_pre_hook.
10803
10804 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10805
10806 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10807 set'' and this leads to a core dump. Move xstrdup of
10808 operating_system to after check that it is not NULL.
10809
10810 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10811
10812 * kod.c (kod_set_os): Remove unnecessary check that
10813 ``command->type'' is set_cmd.
10814
10815 * valprint.c (set_input_radix): Use input_radix.
10816 (set_output_radix): Use output_radix.
10817 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10818 isn't reverted.
10819
10820 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10821
10822 * value.h (struct value): Delete field ``substring_addr''. Change
10823 aligner fields to force_doublest_align, force_longest_align,
10824 force_core_addr_align and force_pointer_aligh.
10825
10826 * value.h (struct value): Fix typo in above change.
10827
10828 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10829
10830 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10831 to fix internal_error from ``maintenance print architecture''.
10832
10833 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10834
10835 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10836 for gcc versions after gcc-2.8.1.
10837
10838 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10839
10840 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10841 for method resolution. Restore adjustment of ``this'' pointer after
10842 calling value_struct_elt, which was accidentally removed during the
10843 HP merge.
10844
10845 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10846
10847 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10848 value_of_register.
10849 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10850 get_saved_register.
10851 * value.h (value_of_register): Update.
10852
10853 2002-03-14 Richard Henderson <rth@redhat.com>
10854
10855 * configure.in: Detect declaration for canonicalize_file_name.
10856 * utils.c (canonicalize_file_name): Declare, if needed.
10857 (gdb_realpath): Prefer realpath if available and usable.
10858 * config.in, configure: Rebuild.
10859
10860 2002-03-14 Richard Henderson <rth@redhat.com>
10861
10862 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10863 a constant array bound.
10864
10865 * MAINTAINERS: Add myself to write-after-approval.
10866
10867 2002-03-14 Michael Snyder <msnyder@redhat.com>
10868
10869 * symfile.c (syms_from_objfile): Return immediately if no syms.
10870 (symbol_file_add): Return immediately if no syms.
10871 (find_sym_fns): Return immediately if no syms.
10872
10873 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10874
10875 * gdbserver/remote-util.c (remote_open): Print remote-side's
10876 IP address when remote debugging over the network.
10877
10878 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10879
10880 * config/sparc/fbsd.mh: Fix copyright.
10881 * config/sparc/fbsd.mt: Likewise.
10882
10883 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10884
10885 * MAINTAINERS: Fix typo in name of gdb warnings option.
10886 (x86-64): Fix formating so that this can be parsed by awk.
10887
10888 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10891 * defs.h: Include "gdb/signals.h".
10892 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10893
10894 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10895
10896 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10897 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10898 from x86-64-tdep.h
10899
10900 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10901 Don Howard <dhoward@redhat.com>
10902
10903 * mips-tdep.c (ST0_FR): Define.
10904 (mips2_fp_compat): New function, temporarily disabled.
10905 (mips_read_fp_register_single): New function.
10906 (mips_read_fp_register_double): New function.
10907 (mips_print_register): Use them.
10908 (do_fp_register_row): Likewise.
10909
10910 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10911
10912 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10913 approval''.
10914
10915 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10916
10917 * stabsread.c (read_member_functions): Fix is_stub test for
10918 static member functions, improve comment.
10919
10920 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10921
10922 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10923 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10924 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10925 commands that set boolean values.
10926 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10927 (arm_rdi_resume): Always initialize PC.
10928 (arm_rdi_open): Don't use rslt as a boolean.
10929 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10930 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10931 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10932 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10933
10934 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10935
10936 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10937 * configure: Rebuilt.
10938
10939 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10940
10941 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10942 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10943
10944 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10945
10946 * cli/cli-decode.c (set_cmd_completer): New function.
10947 * command.h (set_cmd_completer): Declare.
10948 * cli/cli-decode.h (set_cmd_completer): Ditto.
10949
10950 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10951 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10952 * win32-nat.c (_initialize_inftarg): Ditto.
10953 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10954 * proc-api.c (_initialize_proc_api): Ditto.
10955 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10956 * source.c (_initialize_source): Ditto.
10957 * exec.c (_initialize_exec): Ditto.
10958 * solib.c (_initialize_solib): Ditto.
10959 * top.c (init_main): Ditto.
10960 * tracepoint.c (_initialize_tracepoint): Ditto.
10961 * symfile.c (_initialize_symfile): Ditto.
10962 * printcmd.c (_initialize_printcmd): Ditto.
10963 * infcmd.c (_initialize_infcmd): Ditto.
10964 * corefile.c (_initialize_core): Ditto.
10965
10966 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10967
10968 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10969
10970 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10971
10972 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10973
10974 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10975
10976 * NEWS: Update headings, 5.2 has branched.
10977
10978 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10979
10980 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10981 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10982 (register_addr, REGISTER_RAW_SIZE): Likewise.
10983 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10984 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10985
10986 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10987
10988 * MAINTAINERS (x86-64): Add myself.
10989 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10990 changed value_ptr -> struct value *
10991
10992 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10993
10994 * configure.host (sparc64-*-freebsd): Add.
10995 * configure.tgt: Likewise.
10996 * config/sparc/fbsd.mh: New file.
10997 * config/sparc/fbsd.mt: Likewise.
10998 * config/sparc/nm-fbsd.h: Likewise.
10999 * config/sparc/tm-fbsd.h: Likewise.
11000
11001 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11002
11003 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11004 regformats/reg-s390x.dat.
11005
11006 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11007
11008 * utils.c: Add FIXME explaining true/false problem.
11009
11010 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11011
11012 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11013
11014 2002-02-28 Michael Chastain <mec@shout.net>
11015
11016 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11017
11018 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11019
11020 * gdbserver/linux-s390-low.c: New file.
11021 * regformats/reg-s390.dat: New file.
11022 * regformats/reg-s390x.dat: New file.
11023 * gdbserver/configure.srv: Add S/390.
11024 * gdbserver/Makefile.in: Add S/390.
11025 * configure.tgt: Enable gdbserver for S/390.
11026
11027 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11028
11029 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11030 first line of the doc string for "info dos", except at the end of
11031 the sentence, since the short help stops at the first period.
11032
11033 2002-02-28 Jason Merrill <jason@redhat.com>
11034
11035 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11036
11037 2002-02-27 Fred Fish <fnf@redhat.com>
11038
11039 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11040 comment (dumy -> dummy).
11041
11042 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11043
11044 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11045
11046 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11047
11048 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11049
11050 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * gdbserver/acconfig.h: New file.
11053 * gdbserver/i387-fp.c: New file.
11054 * gdbserver/i387-fp.h: New file.
11055 * gdbserver/linux-x86-64.c: New file.
11056 * regformats/reg-x86-64.dat: New file.
11057 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11058 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11059 * gdbserver/configure.in: Add support for regsets.
11060 * gdbserver/config.in: Regenerate.
11061 * gdbserver/configure: Regenerate.
11062 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11063 * gdbserver/linux-low.h: New file.
11064 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11065 for regsets.
11066 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11067 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11068 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11069 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11070 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11071 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11072 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11073 "i387-fp.h". Add PTRACE_GETREGS and friends.
11074 * gdbserver/regcache.c (supply_register): New function.
11075 (supply_register_by_name): New function.
11076 (collect_register): New function.
11077 (collect_register_by_name): New function.
11078
11079 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11080
11081 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11082 (config.status): Add configure.srv dependency.
11083 (server_h): Add config.h dependency.
11084
11085 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11088 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11089 * gdbserver/configure.srv: Change i386-*-linux* to use
11090 reg-i386-linux.o.
11091
11092 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11093
11094 * x86-64-tdep.c: Re-indent. Update copyright date.
11095
11096 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11097
11098 From Michal Ludvig <mludvig@suse.cz>:
11099 * x86-64-tdep.c (value.h): Delete.
11100 (gdb_assert.h): Include.
11101 (x86_64_register_convert_to_virtual,
11102 x86_64_register_convert_to_raw ): Add check which lets only
11103 floating-point values to be converted.
11104 (value_push): Delete.
11105 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11106 (i386_gdbarch_init): Number of register_bytes fixed.
11107
11108 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11109
11110 * MAINTAINERS: Add x86-64 target.
11111
11112 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11113
11114 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11115 * osfsolib.c (solib_map_sections): Ditto.
11116 * irix5-nat.c (solib_map_sections): Ditto.
11117 * corelow.c (gdb_check_format): Ditto.
11118 * symfile.c (symfile_bfd_open): Ditto.
11119 * solib.c (solib_map_sections): Ditto.
11120 Fix PR gdb/354.
11121
11122 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11123
11124 * remote.c (_initialize_remote): By default, disable ``e'' and
11125 ``E'' step out-of-range packets.
11126
11127 2002-02-26 Andreas Schwab <schwab@suse.de>
11128
11129 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11130 m68k_linux_frame_saved_pc.
11131 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11132 in_sigtramp.
11133 (SIGCONTEXT_PC_OFFSET): Remove.
11134 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11135 m68k_linux_sigtramp_saved_pc): New functions.
11136 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11137 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11138 (UCONTEXT_PC_OFFSET): Define.
11139 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11140 non-RT and RT signal trampolines.
11141
11142 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11143
11144 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11145 (TARGET_NBPG, STACK_END_ADDR): Delete
11146 (VARIABLES_INSIDE_BLOCK): Delete.
11147
11148 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11149
11150 * utils.c (perror_with_name): Make string parameter constant.
11151 (print_sys_errmsg): Ditto.
11152 (query): Ditto.
11153 * defs.h (perror_with_name): Update.
11154 (print_sys_errmsg): Update.
11155 (query): Update.
11156
11157 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11158
11159 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11160 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11161
11162 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11163
11164 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11165 if it already matches the current architecture from the exec file.
11166 Include arch-utils.h for gdbarch_info_init prototype.
11167 * Makefile.in (rs6000-nat.o): Update dependencies.
11168
11169 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11170
11171 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11172 list of exported variables.
11173
11174 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * gdbserver/configure.srv: New file.
11177 * gdbserver/configure.in: Use configure.srv instead
11178 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11179 from it.
11180 * gdbserver/configure: Regenerated.
11181 * gdbserver/terminal.h: New file.
11182 * gdbserver/Makefile.in: Update for configure changes. Remove
11183 more unneeded include paths.
11184
11185 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11186
11187 From wiz at danbala:
11188 * config/sparc/tm-sp64.h: Fix grammar and typos.
11189 Fix PR gdb/287.
11190
11191 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11192
11193 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11194 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11195 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11196 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11197 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11198 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11199 * s390-tdep.c: Ditto.
11200 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11201 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11202 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11203 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11204 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11205 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11206 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11207 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11208 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11209 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11210 Fix PR gdb/378.
11211
11212 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11213
11214 * lin-thread.c: Delete file.
11215 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11216 to gdb_proc_service.h.
11217 * configure: Re-generate.
11218
11219 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11220 * serial.c (serial_open): Delete check for "ocd".
11221 Fix PR gdb/349.
11222
11223 * Makefile.in (linux-thread.o): Delete target.
11224 * linux-thread.c: Delete file.
11225
11226 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11227 renamed SH files to be consistent.
11228
11229 * symtab.c (sort_search_symbols): Use xfree.
11230
11231 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11232
11233 * arm-linux-tdep.c (arm_linux_init_abi): Register
11234 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11235 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11236 definition with undef, since we don't want the sysvr4 definition.
11237 (SKIP_TRAMPOLINE_CODE): Likewise.
11238
11239 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11240
11241 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11242
11243 * configure.in: (AC_CHECK_FUNCS) Added test for
11244 canonicalize_file_name Regenerated.
11245 * config.in, configure: Regenerated.
11246 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11247 defined use canonicalize_file_name.
11248
11249 2002-02-23 Michael Chastain <mec@shout.net>
11250
11251 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11252
11253 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11254
11255 * README: Remove references to cygnus.com.
11256 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11257 dot com'' form. Remove references to cygnus.com and sourceware.
11258
11259 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11260
11261 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11262 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11263 1003.1-2001 no longer allows "head -1".
11264 * gdb/Makefile.in (version.c): Likewise.
11265 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11266 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11267 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11268
11269 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11270
11271 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11272 * command.h (cmd_cfunc_eq): Declare.
11273 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11274
11275 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11276 ``struct cmd_list_element *''.
11277 * cli/cli-cmds.c (is_complete_command): Update. Use
11278 cmd_cfunc_eq.
11279 * top.c (execute_command): Pass the command to
11280 is_complete_command.
11281 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11282
11283 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11284
11285 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11286 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11287 architecture defines.
11288 * s390-tdep.c (s390_gdbarch_init): Likewise.
11289
11290 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11291
11292 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11293 (arm_linux_push_arguments): Likewise.
11294 (arm_linux_init_abi): Register them. Also register linux-specific
11295 call_dummy_words.
11296 (find_minsym_and_objfile): Use strcmp, not STREQ.
11297 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11298 (arm_linux_call_dummy_words): Delete declaration.
11299 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11300 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11301 declarations.
11302 (LOWEST_PC): Delete.
11303
11304 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11305
11306 * maint.c (print_section_info): Do not prepend `0x' to filepos
11307 output, it will be handled by local_hex_string_custom.
11308
11309 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11310
11311 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11312 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11313 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11314
11315 2002-02-22 Jim Blandy <jimb@redhat.com>
11316
11317 Indicate that the bcache functions don't change the strings
11318 they're passed.
11319 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11320 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11321
11322 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11323
11324 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11325
11326 2002-02-21 Christopher Faylor <cgf@redhat.com>
11327
11328 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11329 find the complete path to a loaded DLL.
11330
11331 2002-02-21 Fred Fish <fnf@redhat.com>
11332
11333 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11334 that marks the end of the range of a function, enter a line number
11335 entry that has a line number of zero and a PC offset that matches
11336 the end of the function. This starts a range of PC's for which no
11337 line number information is known.
11338 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11339 PC's for which no line number info is found (line number is zero)
11340 then we didn't find any valid line information.
11341 * symtab.h: Document use of zero line number entry.
11342
11343 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11344
11345 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11346 (have_ptrace_getvrregs): Define for run time checks.
11347 (gdb_vrregset_t): New type for Altivec register handling.
11348 (fetch_register, store_register): Fetch/store altivec register
11349 when needed.
11350 (fetch_altivec_register, store_altivec_register): New functions.
11351 (supply_vrregset, fill_vrregset): New functions.
11352 (fetch_altivec_registers, store_altivec_registers): New functions.
11353 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11354 registers as well.
11355
11356 2002-02-21 Jiri Smid <smid@suse.cz>
11357
11358 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11359
11360 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11361
11362 * Makefile.in (armnbsd-nat.o): Update dependencies.
11363 * armnbsd-nat.c (supply_gregset): New function. Common code to
11364 supply the integer register set.
11365 (supply_fparegset): New function. Similar for FPA registers.
11366 (fetch_regs, fetch_fp_regs): Use them.
11367 (fetch_core_registers): Likewise.
11368 (fetch_elfcore_registers): New function.
11369 (arm_netbsd_elfcore_fns): New core-file type specification.
11370 (_initialize_arm_netbsd_nat): Register it.
11371
11372 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11373
11374 * armnbsd-nat.c: Include gdbcore.h.
11375 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11376 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11377 'void' to declaration, to shut up ARI.
11378 (fetch_core_registers): Make static. Rewrite using supply_register.
11379 (arm_netbsd_core_fns): New core-file type specification.
11380 (_initialize_arm_netbsd_nat): New function.
11381
11382 2002-02-21 Christopher Faylor <cgf@redhat.com>
11383
11384 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11385 value.
11386
11387 2002-02-20 Christopher Faylor <cgf@redhat.com>
11388
11389 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11390 fails.
11391
11392 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11393
11394 * jv-exp.y (parse_number): Change type of implicit longs
11395 to builtin_type_uint64.
11396
11397 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11398
11399 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11400 to be an integer instead of a `union wait'.
11401
11402 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * mips-linux-nat.c: Call the operating system GNU/Linux.
11405 * mips-linux-tdep.c: Likewise.
11406 * mips-tdep.c: Likewise.
11407
11408 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11409
11410 Fix PR gdb/265.
11411 * jv-exp.y (parse_number): Handle 64-bit integers.
11412
11413 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11416 AC_STDC_HEADERS to AC_HEADER_STDC.
11417 * gdbserver/configure: Regenerated.
11418
11419 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11420
11421 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11422 is defined.
11423 * sparc-tdep.c (get_longjmp_target): Likewise.
11424
11425 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11426
11427 * News: Add news about ARM and Multi-arch. Mention the new target
11428 arm*-*-netbsd*.
11429
11430 2002-02-19 Jim Blandy <jimb@redhat.com>
11431
11432 * stabsread.c (error_type_complaint): Improve error message.
11433
11434 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11435
11436 * gdbserver/README: Update documentation.
11437 * gdbserver/configure.in: Update configury to match documentation.
11438 * gdbserver/Makefile.in: Likewise.
11439 * gdbserver/configure: Regenerated.
11440 * gdbserver/aclocal.m4: New file, generated by aclocal.
11441 * gdbserver/config.in: New file, generated by autoheader.
11442
11443 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11444
11445 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11446 armnbsd-nat.c.
11447
11448 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11449
11450 * arm-tdep.h (enum arm_float_model): New enum.
11451 (struct gdbarch_tdep): Add fp_model.
11452 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11453 up floating-point conversions until we know the floating-point model
11454 in use by the inferior. Don't complain about being unable to
11455 determine the ABI of the inferior when we don't have one.
11456 (arm_extract_return_value): Support different floating-point models.
11457 (arm_store_return_value): Likewise.
11458 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11459 ARM_FLOAT_SOFT.
11460 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11461
11462 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11463
11464 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11465 of ``current_gdbarch''.
11466
11467 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11468
11469 * armnbsd-nat.c : ANSIfy all function declarations.
11470 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11471 (fetch_inferior_registers): Re-implement in terms of above.
11472 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11473 (store_inferior_registers): Re-implement in terms of above.
11474
11475 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11476
11477 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11478 kernel.
11479 * arm-linux-tdep.c: Likewise.
11480 * config/arm/tm-linux.h: Likewise.
11481
11482 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11483
11484 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11485 * config/arm/nbsd.mt (TM_FILE): Delete.
11486 * config/arm/tm-nbsd.h: Delete.
11487
11488 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11489
11490 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11491 Initialize CALL_DUMMY_LENGTH.
11492
11493 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11494
11495 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11496 function.
11497 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11498 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11499 defines one thing and that is incorrect for this port.
11500 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11501
11502 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11503
11504 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11505
11506 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11507
11508 * win32-nat.c (display_selector): New function. Displays information
11509 about the information returned by GetThreadSelectorEntry API function.
11510 (display_selectors): New function. Displays the infomation of
11511 the selector given as argument, or of CS, DS ans FS selectors
11512 if no argument is given.
11513 ( _initialize_inftarg): Add "w32" as info prefix command.
11514 Add "info w32 selector" as command calling display_selectors.
11515
11516 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11517
11518 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11519 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11520 if not defined.
11521
11522 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11523
11524 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11525
11526 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11527
11528 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11529 (arm_fix_call_dummy): Call it.
11530 (arm_call_dummy_breakpoint_offset): Delete.
11531 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11532 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11533
11534 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11535
11536 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11537 Default to func_frame_chain_valid.
11538 * gdbarch.h, gdbarch.c: Re-generate.
11539 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11540
11541 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11542
11543 * ppc-linux-nat.c: Update copyright.
11544 (fetch_register, store_register): Add tid parameter, don't compute
11545 tid here.
11546 (fetch_ppc_registers, store_ppc_registers): Add tid
11547 parameter. Pass it along to callees.
11548 (fetch_inferior_registers, store_inferior_registers): Compute tid
11549 here, and pass it to calleed functions.
11550 (fill_gregset, supply_fpregset): Clean up formatting.
11551
11552 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11553
11554 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11555 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11556
11557 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11558
11559 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11560 * gdbarch.c gdbarch.h: Regenerate.
11561 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11562 function.
11563 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11564 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11565 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11566
11567 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11568 * arm-tdep.c (arm_get_longjmp_target): New function.
11569 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11570 this to a positive value register arm_get_longjmp_target as the
11571 longjmp handler.
11572 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11573 (arm_linux_init_abi): Set up longjmp description in tdep.
11574 * armnbsd-nat.c (get_longjmp_target): Delete.
11575 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11576 description in tdep.
11577 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11578 (get_longjmp_target): Delete declaration.
11579 (GET_LONGJMP_TARGET): Delete.
11580 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11581 (GET_LONGJMP_TARGET): Delete.
11582
11583 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11584
11585 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11586 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11587 of ``current_gdbarch''.
11588
11589 2002-02-17 Tom Tromey <tromey@redhat.com>
11590
11591 * cli/cli-cmds.c (compare_strings): New function.
11592 (complete_command): Only print each unique item once.
11593 * completer.h (complete_line): Declare.
11594 * completer.c (complete_line): New function.
11595 (line_completion_function): Use it.
11596
11597 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11598
11599 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11600 * gdbarch.h, gdbarch.c: Re-generate.
11601
11602 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11603
11604 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11605
11606 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11607
11608 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11609 * valops.c (value_arg_coerce): Don't take the address of a reference
11610 to convert an argument to a reference.
11611
11612 2002-02-15 Christopher Faylor <cgf@redhat.com>
11613
11614 * win32-nat.c (get_image_name): New function.
11615 (handle_load_dll): Use get_image_name function.
11616 (get_child_debug_event): Avoid registering debug events until possibly
11617 execed process is started.
11618 (child_create_inferior): Allow invocation via shell so that command
11619 line redirection, etc. works ok.
11620 (_initialize_inftarg): Add new command: "set shell" to control whether
11621 a shell is used to start a process.
11622
11623 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11626 instead of find_register_by_number.
11627 (cannot_store_register): Likewise.
11628
11629 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11630
11631 * dwarf2read.c: Replace fprintf (stderr, ...) by
11632 fprintf_unfiltered (gdb_stderr, ...).
11633
11634 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11635
11636 * gdbserver/gdbserver.1: Document --attach.
11637
11638 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11639
11640 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11641 descriptions.
11642 * arm-tdep.c (arm_default_arm_le_breakpoint)
11643 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11644 (arm_default_thumb_be_breakpoint): New. Initialize them from
11645 traditional breakpoint defines.
11646 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11647 (arm_gdbarch_init): Initialize new breakpoint variables.
11648 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11649 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11650 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11651 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11652 code out to ...
11653 (arm_netbsd_init_abi_common): ... here; new function.
11654 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11655 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11656 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11657 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11658
11659 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11660
11661 * arm-tdep.h (enum arm_abi): New enum.
11662 (struct gdbarch_tdep): New structure.
11663 (LOWEST_PC): Provide a default.
11664 (arm_gdbarch_register_os_abi): Declare new function.
11665 * arm-tdep.c (arm_abi_names): New array.
11666 (process_note_abi_tag_sections): New function.
11667 (get_elfosabi): New function.
11668 (arm_gdbarch_register_os_abi): New function.
11669 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11670 support for that ABI has been built in, then call the appropriate
11671 configuration routine. Use gdbarch_num_regs() to get the number
11672 of registers.
11673 (arm_dump_tdep): New function.
11674 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11675 place-holder functions.
11676 (_initialize_arm_tdep): Register them.
11677 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11678
11679 * armnbsd-tdep.c: New file.
11680 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11681 * config/arm/nbsd.mt (TDEPFILES): Add it.
11682 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11683
11684 * armnbsd-nat.c: Include regcache.h.
11685 * Makefile.in (armnbsd-nat.o): Update dependency list.
11686
11687 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11688
11689 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11690
11691 * gdbserver/Makefile.in: Fix typos in target rules.
11692
11693 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11694
11695 Fix part of PR gdb/267.
11696 * linespec.c (find_methods): Handle constructors specially for now.
11697
11698 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11699
11700 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11701 handling.
11702 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11703 standard_coerce_float_to_double().
11704
11705 2002-02-14 Christopher Faylor <cgf@redhat.com>
11706
11707 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11708 GDBINIT_FILENAME.
11709
11710 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11711
11712 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11713 find_variant_by_name, because it confuses the multiarch
11714 framework. Return NULL if there isn't an architecture with the
11715 user supplied name, instead of forcing a different one without
11716 recording the change with the multiarch machinery.
11717 (find_variant_by_name): Delete.
11718
11719 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11720
11721 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11722 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11723
11724 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11725
11726 * stack.c (print_frame_info_base): When calling
11727 print_frame_info_listing_hook, set current_source_symtab.
11728
11729 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11730
11731 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11732 and remove unused $(INCLUDE_DIR).
11733 Add regcache.c to OBS.
11734 Add generated register protocol files to clean target.
11735 Update dependencies for new objects, obsolete old target code.
11736
11737 * gdbserver/linux-low.c: Remove all platform-specific code to
11738 new files. Remove various dead code. Update to use regcache
11739 functionality.
11740 * gdbserver/remote-utils.c (fromhex): Add return statement
11741 to quiet warning.
11742 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11743 constant.
11744 (input_interrupt): Add integer parameter to match prototype
11745 of a signal handler.
11746 (outreg): Use register_data ().
11747 (prepare_resume_reply): Use gdbserver_expedite_regs.
11748 * gdbserver/server.c (main): Dynamically allocate own_buf because
11749 PBUFSIZ is no longer constant. Use registers_to_string () and
11750 registers_from_string ().
11751 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11752 for error (), fatal (), and warning (). Update definition of
11753 PBUFSIZ to use regcache functionality. Add include guard.
11754 * gdbserver/utils.c (fatal): Add missing ``const''.
11755 (warning): New function.
11756
11757 * regformats/regdat.sh: Include "regcache.h" in generated files.
11758 Provide init_registers () function.
11759 * regformats/regdef.h: Add prototype for set_register_cache ().
11760 Add include guard.
11761
11762 * gdbserver/linux-arm-low.c: New file.
11763 * gdbserver/linux-i386-low.c: New file.
11764 * gdbserver/linux-ia64-low.c: New file.
11765 * gdbserver/linux-m68k-low.c: New file.
11766 * gdbserver/linux-mips-low.c: New file.
11767 * gdbserver/linux-ppc-low.c: New file.
11768 * gdbserver/linux-sh-low.c: New file.
11769
11770 * gdbserver/regcache.c: New file.
11771 * gdbserver/regcache.h: New file.
11772
11773 * gdbserver/low-linux.c: Removed obsolete file.
11774
11775 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11776
11777 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11778 * config/i386/linux.mt: Likewise.
11779 * config/ia64/linux.mt: Likewise.
11780 * config/m68k/linux.mh: Likewise.
11781 * config/powerpc/linux.mh: Likewise.
11782 * config/mips/linux.mt: Likewise.
11783
11784 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11785
11786 * config/i386/i386lynx.mh: Mark gdbserver variables
11787 as (currently) obsolete for this target.
11788 * config/i386/nbsd.mt: Likewise.
11789 * config/i386/nbsdelf.mt: Likewise.
11790 * config/m32r/m32r.mt: Likewise.
11791 * config/m68k/m68klynx.mh: Likewise.
11792 * config/m68k/nbsd.mt: Likewise.
11793 * config/m68k/sun3os4.mh: Likewise.
11794 * config/mips/vr5000.mt: Likewise.
11795 * config/ns32k/nbsd.mt: Likewise.
11796 * config/pa/hppabsd.mh: Likewise.
11797 * config/pa/hppaosf.mh: Likewise.
11798 * config/powerpc/nbsd.mt: Likewise.
11799 * config/rs6000/rs6000lynx.mh: Likewise.
11800 * config/s390/s390.mt: Likewise.
11801 * config/s390/s390x.mt: Likewise.
11802 * config/sparc/sparclynx.mh: Likewise.
11803 * config/sparc/sun4os4.mh: Likewise.
11804 * config/i386/x86-64linux.mt: Likewise.
11805 * config/sparc/linux.mh: Likewise.
11806
11807 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * configure.tgt: Configure gdbserver only for known working
11810 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11811 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11812 SUBDIRS if it is configured. Update comment for ${nativefile}.
11813 * configure: Regenerated.
11814
11815 2002-02-13 Michael Snyder <msnyder@redhat.com>
11816
11817 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11818
11819 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11820 (default_gcore_mach): Just return 0, work around a problem in bfd.
11821 (default_gcore_target): OK to return NULL if exec_bfd is null.
11822 (make_mem_sec): Use a cast, avoid a warning.
11823
11824 * procfs.c (find_memory_regions_callback): Use a cast instead of
11825 calling host_pointer_to_address (which complains if
11826 sizeof (host pointer) != sizeof (target pointer)).
11827 (procfs_make_note_section): Avoid overflow in psargs string.
11828
11829 * procfs.c (procfs_make_note_section): Make the default
11830 implementation return an error.
11831
11832 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11833
11834 * procfs.c (procfs_make_note_section): Provide a default definition
11835 (for alpha-dec-osf4.0f). Fix typos.
11836
11837 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11838
11839 * linux-proc.c: Add include of regcache.h.
11840 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11841
11842 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11843
11844 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11845 * memattr.c (create_mem_region): Disallow useless empty region.
11846 Regions are half-open intervals, so allow [A..B) [B..C) as
11847 non-overlapping.
11848
11849 2002-02-13 Michael Chastain <mec@shout.net>
11850
11851 * defs.h: Kill CONST_PTR.
11852 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11853 * c-lang.c (c_builtin_types): Likewise.
11854 * ch-lang.c (ch_builtin_types): Likewise.
11855 * f-lang.c (f_builtin_types): Likewise.
11856 * language.c (unknown_builtin_types): Likewise.
11857 * m2-lang.c (m2_builtin_types): Likewise.
11858 * p-lang.c (pascal_builtin_types): Likewise.
11859 * scm-lang.c (c_builtin_types): Likewise.
11860
11861 2002-02-13 Keith Seitz <keiths@redhat.com>
11862
11863 * arm-tdep.h (arm_get_next_pc): Add declaration.
11864
11865 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11866
11867 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11868 with other related struct-returning functions.
11869 (arm_extract_struct_value_address): New function.
11870 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11871 initialize float_format, double_format and long_double_format as
11872 appropriate to the endianness of the target.
11873 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11874 (arm_use_struct_convention): Delete declaration.
11875 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11876
11877 2002-02-13 Keith Seitz <keiths@redhat.com>
11878
11879 * defs.h (core_addr_to_string_nz): New function.
11880
11881 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11882
11883 Apply missing bits of 2002-01-15 patch.
11884 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11885 (fill_fpregset): Use i387_fill_fsave.
11886
11887 2002-02-12 Keith Seitz <keiths@redhat.com>
11888
11889 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11890 (core_addr_to_string_nz): New function.
11891
11892 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11893
11894 * arm-linux-nat.c: Really include arm-tdep.h.
11895 * config/arm/tm-linux.h (struct type, struct value): Declare.
11896
11897 2002-02-11 Michael Snyder <msnyder@redhat.com>
11898
11899 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11900 (gcore section): Ifdef for Solaris and Unixware only.
11901 (procfs_do_thread_registers): Unixware needs one lwpstatus
11902 per thread (not one prstatus or pstatus).
11903 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11904 not over all gdb threads. For unixware, call elfcore_write_pstatus
11905 once before iterating over threads.
11906
11907 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11908
11909 * arm-tdep.h: New file.
11910 * arm-tdep.c: Include arm-tdep.h.
11911 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11912 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11913 (arm_print_float_info, arm_register_type, convert_to_extended)
11914 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11915 (arm_extract_return_value, arm_register_name): Make static.
11916 (arm_software_single_step): Similarly. Fix types in declaration.
11917 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11918 (arm_store_return_value, arm_store_struct_return): New functions.
11919 (arm_gdbarch_init): Register the above functions. Also register
11920 call_dummy_start_offset, sizeof_call_dummy_words,
11921 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11922 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11923 max_register_virtual_size, register_size. Set up
11924 prologue_cache.saved_regs here, rather than ...
11925 (_initialize_arm_tdep): ... here.
11926 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11927 declarations.
11928 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11929 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11930 (arm_print_float_info, arm_register_type, convert_to_extended)
11931 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11932 (arm_extract_return_value, arm_register_name): Delete declarations.
11933 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11934 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11935 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11936 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11937 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11938 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11939 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11940 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11941 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11942 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11943 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11944 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11945 interface.
11946 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11947 * remote-rdi.c remote-rdp.c: Likewise.
11948 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11949 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11950 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11951 definition.
11952
11953 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11954 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11955 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11956 from non-ARM_ prefixed definitions.
11957 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11958 all uses of above.
11959 * remote-rdi.c remote-rdp.c: Likewise.
11960 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11961
11962 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11963
11964 * arm-tdep.c (arm_frameless_function_invocation)
11965 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11966 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11967 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11968 (arm_pop_frame, arm_get_next_pc): Make static.
11969 (arm_gdbarch_init): Register above in gdbarch structure.
11970 (arm_read_fp): Renamed from arm_target_read_fp.
11971 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11972 * config/arm/tm-arm.h (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_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11976 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11977 (arm_pc_is_thumb_dummy): Delete declarations.
11978 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11979 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11980 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11981 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11982
11983 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * symtab.c (compare_search_syms): New function.
11986 (sort_search_symbols): New function.
11987 (search_symbols): Sort symbols after searching rather than
11988 before.
11989
11990 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11991
11992 * NEWS: Linux -> GNU/Linux.
11993
11994 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11995
11996 * gdbarch.sh: For for level one methods, disallow a definition
11997 when partially multi-arched. Add comments explaining rationale.
11998 * gdbarch.h: Re-generate.
11999
12000 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12001
12002 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12003 multi-arch partial.
12004
12005 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12006
12007 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12008 field. Use diff -u.
12009 * gdbarch.c: Re-generate.
12010
12011 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12012
12013 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12014 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12015 partial.
12016
12017 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12018
12019 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12020 multi-arch partial.
12021 (PUSH_ARGUMENTS): Switch to using predefault.
12022 * gdbarch.c: Regenerate.
12023
12024 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12025
12026 * valops.c (PUSH_ARGUMENTS): Delete definition.
12027 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12028 partial. Default to default_push_arguments.
12029 * gdbarch.h, gdbarch.c: Regenerate.
12030
12031 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12032
12033 * defs.h (throw_exception): Rename return_to_top_level. Update
12034 comments.
12035 * utils.c (error_stream, internal_verror, quit): Ditto.
12036 * top.c (throw_exception, catcher): Ditto.
12037 * sparclet-rom.c (sparclet_load): Ditto.
12038 * remote.c (interrupt_query, minitelnet): Ditto.
12039 * remote-sds.c (interrupt_query): Ditto.
12040 * remote-mips.c (mips_error, mips_kill): Ditto.
12041 * ocd.c (interrupt_query): Ditto.
12042 * monitor.c (monitor_interrupt_query): Ditto.
12043 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12044 * target.h: Update comment.
12045
12046 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12047
12048 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12049
12050 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12051 default_double_format.
12052 * gdbarch.h, gdbarch.c: Re-generate.
12053 * findvar.c (floatformat_unknown): Delete variable definition.
12054 * doublest.h (floatformat_unknown): Delete variable declaration.
12055
12056 2002-02-09 Jim Blandy <jimb@redhat.com>
12057
12058 * stabsread.c (read_type): Add code to parse Sun's syntax for
12059 prototyped function types.
12060
12061 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12062
12063 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12064 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12065
12066 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12067
12068 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12069 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12070 now _initialize_xcoffsolib gets called again and overrides the
12071 commands from solib.c in a native configuration.
12072
12073 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12074
12075 * doublest.c (store_typed_floating): Don't try to return a value.
12076 Fixes PR gdb/290.
12077
12078 2002-02-08 Jim Blandy <jimb@redhat.com>
12079
12080 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12081 is prototyped and has no arguments, print its argument list as
12082 `(void)'.
12083
12084 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12085
12086 * MAINTAINERS (write-after-approval): Add myself.
12087 (paper-trail): I've escaped!
12088
12089 2002-02-08 Christopher Faylor <cgf@redhat.com>
12090
12091 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12092 changes.
12093 (_initialize_check_for_gdb_ini): Ditto.
12094
12095 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12096
12097 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12098 xaprintf -> xasprintf.
12099
12100 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12101
12102 * win32-nat.c: Remove use of printf and sprintf functions.
12103
12104 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12105
12106 * arm-tdep.c (arm_frame_chain_valid): Make static.
12107 (arm_push_arguments): Likewise.
12108 (arm_gdbarch_init): New function.
12109 (_initialize_arm_tdep): Call it.
12110 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12111 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12112 (FRAME_CHAIN_VALID): Delete.
12113 (arm_frame_chain_valid): Delete declaration.
12114 (PUSH_ARGUMENTS): Delete.
12115 (arm_push_arguments): Delete declaration.
12116 (CALL_DUMMY_P): Delete.
12117
12118 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12119 Corinna Vinschen <vinschen@redhat.com>
12120
12121 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12122 on builtin float types.
12123
12124 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * utils.c: Include <curses.h> before "bfd.h".
12127 * tui/tui-hooks.c: Likewise.
12128 * tui/tui.c: Likewise.
12129 * tui/tuiCommand.c: Likewise.
12130 * tui/tuiData.c: Likewise.
12131 * tui/tuiDataWin.c: Likewise.
12132 * tui/tuiDisassem.c: Likewise.
12133 * tui/tuiGeneralWin.c: Likewise.
12134 * tui/tuiIO.c: Likewise.
12135 * tui/tuiLayout.c: Likewise.
12136 * tui/tuiRegs.c: Likewise.
12137 * tui/tuiSource.c: Likewise.
12138 * tui/tuiSourceWin.c: Likewise.
12139 * tui/tuiStack.c: Likewise.
12140 * tui/tuiWin.c: Likewise.
12141
12142 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12143
12144 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12145 to include space for pseudoregs as well. Update loops accordingly.
12146 (sh_fp_frame_init_saved_regs): Ditto.
12147 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12148
12149 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12150
12151 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12152 Add Richard Earnshaw to Arm maintainers.
12153
12154 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12155
12156 * defs.h (warning_begin): Delete declaration.
12157
12158 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12159 Delete macro.
12160
12161 2002-02-07 Michael Snyder <msnyder@redhat.com>
12162
12163 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12164 Logic bug, remove misplaced else.
12165
12166 2002-02-07 Klee Dienes <klee@apple.com>
12167
12168 * fork-inferior.c (fork_inferior): Add '!' to the list of
12169 characters that need to be quoted when building a string for the
12170 shell. Quote '!' specifically with a backslash, since CSH chokes
12171 when trying to evaluate "str!str".
12172
12173 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12174
12175 * rdi-share/host.h: Only provide a typedef for bool if it is not
12176 defined.
12177
12178 2002-02-04 Michael Snyder <msnyder@redhat.com>
12179
12180 * breakpoint.h (enum bptype): Add new overlay event bp type.
12181 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12182
12183 * breakpoint.c (create_internal_breakpoint): New function.
12184 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12185 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12186 (create_thread_event_breakpoint): Ditto.
12187 (create_solib_event_breakpoint): Ditto.
12188 (create_overlay_event_breakpoint): New function.
12189 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12190 (update_breakpoints_after_exec): Delete and re-initialize
12191 overlay event breakpoints after an exec. Add FIXME comment
12192 about longjmp breakpoint.
12193 (print_it_typical): Ignore overlay event breakpoints.
12194 (print_one_breakpoint): Ditto.
12195 (mention): Ditto.
12196 (bpstat_what): Do not stop for overlay event breakpoints.
12197 (delete_breakpoint): Don't delete overlay event breakpoints.
12198 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12199 (breakpoint_re_set): Re-create overlay event breakpoint.
12200
12201 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12202 (overlay_manual_command): Disable overlay breakpoints.
12203 (overlay_off_command): Disable overlay breakpoints.
12204
12205 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12206
12207 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12208 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12209 to here from config/tm-arm.h.
12210 (coff_sym_is_thumb): Make static.
12211 (arm_elf_make_msymbol_special): New function.
12212 (arm_coff_make_msymbol_special): New function.
12213 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12214 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12215 (coff_sym_is_thumb): Delete declaration.
12216 (arm_elf_make_msymbol_special): Declare.
12217 (arm_coff_make_msymbol_special): Declare.
12218 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12219 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12220
12221 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12222
12223 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12224
12225 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12226
12227 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12228 * gdbarch.c gdbarch.h: Regenerate.
12229 * arch-utils.c (default_print_float_info): New function.
12230 * arch-utils.h (default_print_float_info): Prototype it.
12231 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12232 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12233 (PRINT_FLOAT_INFO): Document it.
12234
12235 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12236 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12237 (PRINT_FLOAT_INFO): Define.
12238
12239 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12240
12241 * win32-nat.c (_initialize_check_for_gdb_ini):
12242 Add typecast to sprintf argument to suppress a warning.
12243
12244 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12245
12246 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12247 to allow easier handling of pass state.
12248 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12249 that gives exception name and address.
12250 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12251 and set last_sig value to ourstatus->value.sig. Some missing
12252 exceptions added.
12253 (child_continue): Correctly report continue_status.
12254 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12255 TARGET_SIGNAL_0 (new default value).
12256 (child_resume): consider sig argument passed to decide if
12257 the exception should be passed to debuggee or not.
12258
12259 2002-02-05 Michael Snyder <msnyder@redhat.com>
12260
12261 * regcache.c (fetch_register): Call target_fetch_register
12262 only if we don't call FETCH_PSEUDO_REGISTER.
12263 (store_register): Call target_store_register only if we
12264 don't call STORE_PSEUDO_REGISTER.
12265
12266 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12267
12268 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12269 ELF_MAKE_MSYMBOL_SPECIAL.
12270 * gdbarch.c, gdbarch.h: Regenerate.
12271 * arch-utils.c (default_make_msymbol_special): New function.
12272 * arch-utils.h (default_make_msymbol_special): Export.
12273 * elfread.c (elf_symtab_read): Compile use of
12274 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12275 multiarched.
12276 * coffread.c (coff_symtab_read): Ditto, for
12277 COFF_MAKE_MSYMBOL_SPECIAL.
12278
12279 2002-02-05 Jim Blandy <jimb@redhat.com>
12280
12281 * solib-svr4.c (svr4_truncate_ptr): New function.
12282 (svr4_relocate_section_addresses): Do the address arithmetic with
12283 the appropriate truncation for target addresses, even when
12284 CORE_ADDR is larger than a target address.
12285
12286 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12287
12288 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12289 to (int *).
12290
12291 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12292
12293 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12294 code.
12295
12296 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12297
12298 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12299
12300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * gdbserver/linux-low.c: Remove unused include files.
12303
12304 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12305
12306 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12307 (read_inferior_memory): Use it.
12308 (write_inferior_memory): Likewise.
12309
12310 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12311
12312 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12313 grubbing through sys_errlist.
12314
12315 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12318
12319 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12320 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12321
12322 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12323
12324 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12325 (do_sfunc, set_cmd_sfunc): New functions.
12326
12327 * command.h (struct cmd_list_element): Add field func.
12328 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12329 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12330 * cli/cli-decode.h: Ditto.
12331
12332 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12333 (help_all, help_cmd_list): Ditto.
12334 (find_cmd, complete_on_cmdlist): Ditto.
12335 * top.c (execute_command): Ditto.
12336
12337 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12338 function.sfunc.
12339
12340 * infcmd.c (notice_args_read): Fix function signature.
12341
12342 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12343 * cli/cli-decode.c (add_set_cmd): Ditto.
12344 * utils.c (initialize_utils): Ditto.
12345 * maint.c (_initialize_maint_cmds): Ditto.
12346 * infrun.c (_initialize_infrun): Ditto.
12347 * demangle.c (_initialize_demangler): Ditto.
12348 * remote.c (add_packet_config_cmd): Ditto.
12349 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12350 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12351 * proc-api.c (_initialize_proc_api): Ditto.
12352 * kod.c (_initialize_kod): Ditto.
12353 * valprint.c (_initialize_valprint): Ditto.
12354 * top.c (init_main): Ditto.
12355 * infcmd.c (_initialize_infcmd): Ditto.
12356 * corefile.c (_initialize_core): Ditto.
12357 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12358 * arch-utils.c (initialize_current_architecture): Ditto.
12359 (_initialize_gdbarch_utils): Ditto.
12360 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12361
12362 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12363 * wince.c (_initialize_inftarg): Ditto.
12364 * symfile.c (_initialize_symfile): Ditto.
12365 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12366 * language.c (_initialize_language): Ditto.
12367 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12368
12369 2002-02-04 Michael Snyder <msnyder@redhat.com>
12370
12371 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12372
12373 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12374
12375 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12376 Add rules for building the register data files.
12377
12378 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12379
12380 * regformats/regdat.sh: Add braces to the definition of
12381 expedite_regs_${arch}.
12382
12383 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12384
12385 * regformats/regdef.h (struct reg): Add comment describing the
12386 requirements for offset and size fields.
12387
12388 2002-02-04 Andreas Schwab <schwab@suse.de>
12389
12390 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12391 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12392
12393 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12394
12395 * gdbarch.sh (copyright): Update years in generated header.
12396 (SMASH_TEXT_ADDRESS): Add rule.
12397 * gdbarch.h, gdbarch.c: Re-generate.
12398 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12399 * dbxread.c: Likewise.
12400 * dwarfread.c: Likewise.
12401 * elfread.c: Likewise.
12402 * somread.c: Likewise.
12403
12404 * arm-tdep.c (arm_smash_text_address): New function.
12405 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12406
12407 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12408
12409 Add support for hardware watchpoints on win32 native.
12410 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12411 CONTEXT_DEBUG_REGISTERS.
12412 (dr variable): New variable. Static array containing a local copy
12413 of debug registers.
12414 (debug_registers_changed): New variable. Reflects when debug registers
12415 are changed and need to be written to inferior.
12416 (debug_registers_used): New variable. Reflects when any debug register
12417 was set, used when new threads are created.
12418 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12419 i386-nat code.
12420 (thread_rec): Set dr array if id is the thread of current_event .
12421 (child_continue, child_resume): Change the debug registers for all
12422 threads if debug_registers_changed.
12423 (child_add_thread): Change the debug registers if debug_registers_used.
12424 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12425 Link nm.h to new nm-cygwin.h file.
12426 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12427 of hardware registers.
12428
12429 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12430
12431 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12432 Restore behavour broken by 2002-01-20 Andrew Cagney
12433 <ac131313@redhat.com> IEEE_FLOAT removal.
12434
12435 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * c-valprint.c (c_val_print): Pass a proper valaddr to
12438 cp_print_class_method.
12439 * valops.c (search_struct_method): If there is only one method
12440 and args is NULL, return that method.
12441
12442 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12443
12444 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12445 accessing tag_name directly.
12446
12447 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12448
12449 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12450 of accessing tag_name directly.
12451
12452 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12453
12454 PR gdb/280
12455 * gdbtypes.c (replace_type): New function.
12456 * gdbtypes.h (replace_type): Add prototype.
12457 * stabsread.c (read_type): Use replace_type.
12458
12459 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12460
12461 * Makefile.in (memattr.o): Add missing dependencies rule.
12462
12463 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12464
12465 * breakpoint.c (break_at_finish_command): Really export.
12466 (break_at_finish_at_depth_command): Ditto.
12467 (tbreak_at_finish_command): Ditto.
12468 * hppa-tdep.c: Include completer.h.
12469 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12470 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12471
12472 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12473
12474 * utils.c (do_write): New function.
12475 (error_stream): Rewrite combining the code from error_begin and
12476 verror.
12477 (verror): Rewrite using error_stream.
12478 (error_begin): Delete function.
12479
12480 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12481
12482 * utils.c (error_begin): Make static.
12483 * defs.h (error_begin): Delete declaration.
12484
12485 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12486 (decode_line_1): Use cplusplus_error instead of error_begin,
12487 cplusplus_hint and return_to_top_level.
12488 * coffread.c (coff_symfile_read): Use error instead of error_begin
12489 and return_to_top_level.
12490 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12491
12492 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12493
12494 * language.h (type_error, range_error): Make string parameter
12495 constant.
12496 * language.c (warning_pre_print): Delete extern declaration.
12497 * dwarfread.c (warning_pre_print): Ditto.
12498 * language.c (type_error, range_error): Rewrite to use verror and
12499 vwarning instead of warning_begin.
12500
12501 2002-02-01 Michael Snyder <msnyder@redhat.com>
12502
12503 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12504 (set_ignore_count): Move misplaced comment back where it belongs.
12505
12506 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12507
12508 * command.h (NO_FUNCTION): Delete macro.
12509 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12510 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12511 * tracepoint.c (_initialize_tracepoint): Ditto.
12512 * cli/cli-decode.c (add_set_cmd): Ditto.
12513 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12514
12515 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12516
12517 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12518 Update ``this'' pointer when calling virtual functions.
12519
12520 2002-02-01 Michael Snyder <msnyder@redhat.com>
12521
12522 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12523 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12524
12525 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * regformats/reg-arm.dat: New file.
12528 * regformats/reg-i386.dat: New file.
12529 * regformats/reg-ia64.dat: New file.
12530 * regformats/reg-m68k.dat: New file.
12531 * regformats/reg-mips.dat: New file.
12532 * regformats/reg-ppc.dat: New file.
12533 * regformats/reg-sh.dat: New file.
12534 * regformats/regdef.h: New file.
12535 * regformats/regdat.sh: New file.
12536
12537 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12538
12539 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12540 (arm_frame_args_address, arm_frame_locals_address): New functions.
12541 (arm_frame_num_args): New function.
12542 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12543 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12544 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12545
12546 2002-01-31 Michael Snyder <msnyder@redhat.com>
12547
12548 * breakpoint.c (break_at_finish_command): Export.
12549 (break_at_finish_at_depth_command): Export.
12550 (tbreak_at_finish_command): Export.
12551 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12552 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12553 "txbreak" commands, which are HPPA specific.
12554
12555 * printcmd.c (disassemble_command): Remove an ancient
12556 artifact of an old merge.
12557
12558 * symfile.h (enum overlay_debugging_state):
12559 Define enum constant values for overlay mode.
12560 * symfile.c (overlay_debugging): Use enums instead of literals.
12561 (overlay_is_mapped, overlay_auto_command,
12562 overlay_manual_command): Ditto.
12563
12564 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12565 breakpoint_here_p, breakpoint_inserted_here_p,
12566 breakpoint_thread_match, bpstat_stop_status,
12567 describe_other_breakpoints, check_duplicates, clear_command):
12568 Coding standard fixes.
12569
12570 * target.c (target_xfer_memory): Add spaces, coding standard.
12571 (do_xfer_memory): Add missing line to trust-readonly
12572 code: check bfd SEC_READONLY flag for section.
12573
12574 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12575
12576 * PROBLEMS: Fix typo, 5.1->5.1.1.
12577
12578 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12579
12580 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12581 data symbols, since we search based on textlow and texthigh.
12582 (find_pc_sect_symtab): Likewise.
12583
12584 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12585
12586 * defs.h (vwarning): Declare.
12587 * utils.c (vwarning): New function.
12588 (warning): Call vwarning.
12589 (warning_begin): Delete function.
12590
12591 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12592 the warning message.
12593 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12594 warning_begin.
12595
12596 2002-01-30 Michael Snyder <msnyder@redhat.com>
12597
12598 * NEWS: Mention "set trust-readonly-sections" command.
12599 Mention generate-core-file command.
12600
12601 2002-01-15 Michael Snyder <msnyder@redhat.com>
12602
12603 * target.c: New command, "set trust-readonly-sections on".
12604 (do_xfer_memory): Honor the suggestion to trust readonly sections
12605 by reading them from the object file instead of from the target.
12606 (initialize_targets): Register command "set trust-readonly-sections".
12607
12608 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12609
12610 * parse.c (target_map_name_to_register): Simplify, search regs and
12611 pseudo-regs using a single loop.
12612
12613 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12614
12615 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12616
12617 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12618
12619 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12620 * config/i386/i386v42mp.mh: Add i387-nat.o .
12621 * i386v4-nat.c: Include i387-nat.h.
12622 (supply_fpregset): Use i387_supply_fsave.
12623 (fill_fpregset): Use i387_fill_fsave.
12624
12625 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12626
12627 * arm-tdep.c (arm_call_dummy_words): Define.
12628 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12629 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12630 (CALL_DUMMY_WORDS): Define.
12631 (arm_call_dummy_words): Declare.
12632 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12633 (arm_linux_call_dummy_words): Declare.
12634
12635 2002-01-30 Andreas Schwab <schwab@suse.de>
12636
12637 * m68klinux-nat.c: Fix last change to use regcache_collect
12638 instead of referencing registers[] directly.
12639
12640 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12641
12642 * parse.c (target_map_name_to_register): Delete code wrapped in
12643 #ifdef REGISTER_NAME_ALIAS_HOOK.
12644
12645 2002-01-28 Michael Snyder <msnyder@redhat.com>
12646
12647 * regcache.c (legacy_read_register_gen): Need to be able to
12648 read pseudo-register as well as real register.
12649 (legacy_write_register_gen): Ditto.
12650
12651 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12652
12653 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12654 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12655 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12656 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12657 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12658 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12659 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12660 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12661 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12662 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12663 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12664 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12665 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12666 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12667 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12668 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12669 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12670 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12671 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12672 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12673
12674 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12675
12676 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12677 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12678 (initialize_current_architecture): Update target_byte_order using
12679 information from BFD.
12680 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12681 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12682
12683 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12684
12685 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12686 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12687
12688 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12689 #ifdef INVALID_FLOAT.
12690 * infcmd.c (do_registers_info): Ditto.
12691 * values.c (unpack_double): Ditto. Add comment.
12692
12693 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12694 already commented out.
12695
12696 2002-01-26 Andreas Schwab <schwab@suse.de>
12697
12698 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12699 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12700 registers and add support for PTRACE_GETREGS.
12701
12702 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12703
12704 GDB 5.1.1 released from 5.1 branch.
12705 * NEWS: Add 5.1.1 news.
12706 * README: Sync with 5.1 branch.
12707
12708 2002-01-23 Fred Fish <fnf@redhat.com>
12709
12710 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12711 stabstring on initial malloc. Reallocing will copy it for us,
12712 if necessary.
12713
12714 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12715
12716 * Makefile.in (hpread_h): Delete.
12717 (HFILES_NO_SRCDIR): Remove hpread.h.
12718 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12719 (hpread.o): Update dependencies.
12720 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12721
12722 * hp-psymtab-read.c: Remove file.
12723 * hp-symtab-read.c: Remove file.
12724 * hpread.h: Remove file.
12725
12726 * hpread.c: Merge all contents of hp-psymtab-read.c,
12727 hp-symtab-read.c and hpread.h into this file, as it was prior to
12728 January 1999.
12729
12730 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12731 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12732 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12733 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12734
12735 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12736
12737 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12738 fill_gregset): Call gdbarch_tdep() just once, assign result to
12739 variable and use that, instead of calling the function several
12740 times.
12741
12742 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12743
12744 * configure.host: Accept sparcv9 as alias for sparc64.
12745 * configure.tgt: Likewise.
12746
12747 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12748
12749 * solib-aix5.c (build_so_list_from_mapfile)
12750 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12751 arguments is not reversed.
12752 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12753 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12754
12755 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12756
12757 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12758 modified version of obsolete sh_fetch_pseudo_register.
12759 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12760 (sh4_register_read): New function.
12761 (sh_pseudo_register_write): New function. Renamed and modified
12762 version of obsolete sh_store_pseudo_register.
12763 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12764 (sh4_register_write): New function.
12765 (sh_gdbarch_init): Remove setting of gdbarch function
12766 fetch_pseudo_register and store_pseudo_register. Remove setting of
12767 register_convert_to_raw, register_convert_to_virtual,
12768 register_convertible.
12769 (sh_sh4_register_convertible): Delete. No longer needed. All is
12770 taken care by architecture specific functions
12771 register_read/register_write.
12772 (sh_sh4_register_convert_to_virtual): Make static.
12773 (sh_sh4_register_convert_to_raw): Ditto.
12774
12775 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12776
12777 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12778 (floatformat_is_nan, floatformat_mantissa): Ditto.
12779
12780 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12781 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12782 builtin_type_ieee_double_little,
12783 builtin_type_ieee_double_littlebyte_bigword,
12784 builtin_type_m68881_ext, builtin_type_i960_ext,
12785 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12786 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12787 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12788 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12789
12790 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12791
12792 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12793 parameter. Set frameless flag if it exists and depended of
12794 whether the scanned function is frameless or not.
12795 (xstormy16_skip_prologue): If function is frameless, return
12796 result of xstormy16_scan_prologue().
12797 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12798 call.
12799
12800 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12801
12802 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12803 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12804 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12805 sh_sh4_register_byte, sh_sh4_register_raw_size,
12806 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12807 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12808 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12809 sh_store_pseudo_register, sh_do_pseudo_register): Call
12810 gdbarch_tdep() just once, assign result to variable and use that,
12811 instead of calling the function several times.
12812
12813 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12814
12815 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12816 macros instead of LAST_FPU_CTRL_REGNUM.
12817 (store_register): Likewise.
12818
12819 2002-01-21 Jim Blandy <jimb@redhat.com>
12820
12821 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12822 is up-to-date before running the program, not just when a program
12823 exits.
12824
12825 2002-01-21 Fred Fish <fnf@redhat.com>
12826
12827 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12828 when we have found all instructions we are looking for.
12829
12830 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12831
12832 * arm-tdep.c (arm_register_name): New function.
12833 (arm_registers_names): Make static.
12834 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12835 (arm_register_name): Declare.
12836 (REGISTER_NAME): Use it.
12837
12838 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12839 Kevin Buettner <kevinb@redhat.com>
12840
12841 Convert arm targets to new FRAME interface.
12842 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12843 (arm_frame_find_save_regs): Delete.
12844 (arm_frame_init_saved_regs): New.
12845 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12846 Allocate extra_info as required. Convert all uses of fsr.regs
12847 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12848 to use extra_info.
12849 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12850 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12851 (check_prologue_cache, save_prologue_cache): Likewise.
12852 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12853 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12854 (FRAME_FIND_SAVED_REGS): Delete.
12855 (arm_frame_find_saved_regs): Delete prototype.
12856 (arm_frame_init_saved_regs): New prototype.
12857 (FRAME_INIT_SAVED_REGS): Define.
12858
12859 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12860
12861 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12862
12863 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12864
12865 From Jeff Law <law@redhat.com>:
12866 * infttrace.c: Include <sys/pstat.h>.
12867 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12868 exec file if the ttrace equivalent fails.
12869
12870 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12871
12872 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12873 (closeLogFile): Ditto.
12874
12875 2002-01-20 Michael Chastain <mec@shout.net>
12876
12877 * top.c (print_gdb_version): Bump copyright year to 2002.
12878
12879 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12880
12881 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12882 Zannoni and Eli Zaretskii.
12883
12884 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12885
12886 * buildsym.c: Update copyright years.
12887 * c-typeprint.c: Likewise.
12888 * dwarf2read.c: Likewise.
12889 * f-typeprint.c: Likewise.
12890 * gdbtypes.c: Likewise.
12891 * gdbtypes.h: Likewise.
12892 * hp-symtab-read.c: Likewise.
12893 * hpread.c: Likewise.
12894 * mdebugread.c: Likewise.
12895 * p-typeprint.c: Likewise.
12896
12897 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12898
12899 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12900 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12901 byte-order selectable.
12902 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12903 * arch-utils.c: Ditto.
12904 (set_endian): Ditto.
12905 (set_endian_from_file): Ditto.
12906 * gdbserver/low-sim.c (create_inferior): Ditto.
12907 * gdbarch.sh: Ditto.
12908 * gdbarch.h: Re-generate.
12909 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12910 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12911 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12912 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12913 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12914 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12915 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12916 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12917 macro definition.
12918 * config/mips/tm-wince.h: Remove #undef of macro
12919 TARGET_BYTE_ORDER_SELECTABLE.
12920 * config/sh/tm-wince.h: Ditto.
12921
12922 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12923
12924 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12925 member function fields. Add accessor macro
12926 TYPE_FN_FIELD_ARTIFICIAL.
12927 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12928 * c-typeprint.c (c_type_print_base): Skip artificial member
12929 functions.
12930
12931 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12932
12933 * f-typeprint.c: Delete unused function f_type_print_args.
12934 * p-typeprint.c: Delete unused function pascal_type_print_args.
12935
12936 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12937
12938 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12939 comment. Add ``artificial'' to ``union field_location''.
12940
12941 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12942
12943 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12944 * mdebugread.c (parse_symbol): Likewise.
12945 * stabsread.c (define_symbol): Likewise.
12946 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12947 initializing TYPE_FIELD_BITPOS to n (obsolete).
12948 (hpread_doc_function_type): Likewise.
12949 * hpread.c (hpread_function_type): Likewise.
12950
12951 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12952
12953 * configure.in (host_makefile_frag): Only require a host makefile
12954 fragment when a native build.
12955 * configure: Re-generate.
12956
12957 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12958
12959 * doublest.h (floatformat_from_type): Declare.
12960 * doublest.c (floatformat_from_type): New function.
12961 (convert_typed_floating): Use.
12962
12963 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12964 call to function floatformat_from_type.
12965
12966 * gdbarch.sh (IEEE_FLOAT): Delete.
12967 * gdbarch.h, gdbarch.c: Re-generate.
12968 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12969 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12970 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12971 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12972 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12973 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12974 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12975 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12976 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12977 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12978 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12979 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12980
12981 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12982 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12983 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12984 * sh-tdep.c (sh_gdbarch_init): Ditto.
12985 * mips-tdep.c (mips_gdbarch_init): Ditto.
12986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12987 * cris-tdep.c (cris_gdbarch_init): Ditto.
12988
12989 2002-01-20 Jiri Smid <smid@suse.cz>
12990
12991 * configure.host, configure.tgt: Support x86-64.
12992 * NEWS: Note new target x86-64.
12993
12994 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12995 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12996 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12997 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12998 x86-64-linux-nat.o): Fix dependencies.
12999
13000 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13001
13002 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13003 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13004 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13005 * config/sparc/xm-sun4os4.h: Delete file.
13006 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13007
13008 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13009
13010 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13011 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13012 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13013 * config/i386/i386lynx.mh (XM_FILE): Delete.
13014 * config/rs6000/xm-rs6000ly.h: Delete file.
13015 * config/sparc/xm-sparclynx.h: Delete file.
13016 * config/m68k/xm-m68klynx.h: Delete file.
13017 * config/i386/xm-i386lynx.h: Delete file.
13018 * config/xm-lynx.h: Delete file.
13019 * config/djgpp/fnchange.lst: Update.
13020
13021 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13022
13023 * alpha-tdep.c (alpha_register_byte): New function.
13024 (alpha_register_raw_size): Ditto.
13025 (alpha_register_virtual_size): Ditto.
13026 (alpha_skip_prologue_internal): Renamed from
13027 alpha_skip_prologue.
13028 (alpha_skip_prologue): New version that calls
13029 alpha_skip_prologue_internal.
13030 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13031 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13032 second argument from alpha_skip_prologue.
13033 (REGISTER_BYTE): Use alpha_register_byte.
13034 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13035 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13036 (FRAMELESS_FUNCTION_INVOCATION): Use
13037 generic_frameless_function_invocation_not.
13038 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13039 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13040
13041 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13042
13043 * config/mips/xm-news-mips.h: Delete file.
13044 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13045
13046 * config/m88k/xm-m88k.h: Delete file.
13047 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13048 * config/m88k/xm-delta88v4.h: Ditto.
13049 * config/m88k/xm-delta88.h: Ditto.
13050
13051 * config/alpha/xm-fbsd.h: Delete file.
13052 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13053
13054 * config/sparc/xm-sparc.h: Delete file.
13055 * Makefile.in (xm-sun4os4.h): Delete dependency.
13056 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13057 * config/sparc/xm-sun4os4.h: Ditto.
13058 * config/sparc/xm-linux.h: Ditto.
13059
13060 * config/i386/xm-windows.h: Delete file.
13061
13062 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13063
13064 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13065 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13066
13067 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13068
13069 * alpha-tdep.c (alpha_call_dummy_words): New.
13070 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13071 (CALL_DUMMY_P): Define.
13072 (CALL_DUMMY_WORDS): Define.
13073 (SIZEOF_CALL_DUMMY_WORDS): Define.
13074
13075 2002-01-19 Per Bothner <per@bothner.com>
13076
13077 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13078 isn't NULL, which can happen with some gcj-3.x-produced code.
13079
13080 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13081
13082 * alpha-tdep.c (alpha_register_virtual_type): New function.
13083 (alpha_init_frame_pc_first): Ditto.
13084 (alpha_fix_call_dummy): Ditto.
13085 (alpha_store_struct_return): Ditto.
13086 (alpha_extract_struct_value_address): Ditto.
13087 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13088 alpha_register_virtual_type.
13089 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13090 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13091 alpha_extract_struct_value_address.
13092 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13093 (INIT_FRAME_PC): Use init_frame_pc_noop.
13094 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13095
13096 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13097
13098 * i386gnu-nat.c: Include "i386-tdep.h".
13099 (fetch_fpregs): Simplify code dealing with uninitialized floating
13100 point states such that it doesn't require FP7_REGNUM.
13101
13102 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13103
13104 * alpha-tdep.c (frame_extra_info): New.
13105 (alpha_find_saved_regs): Make static. Use
13106 frame->extra_info.
13107 (alpha_frame_init_saved_regs): New function.
13108 (alpha_frame_saved_pc): Use frame->extra_info.
13109 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13110 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13111 (init_extra_frame_info): Rename to...
13112 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13113 (alpha_print_extra_frame_info): New function.
13114 (alpha_frame_locals_address): Ditto.
13115 (alpha_frame_args_address): Ditto.
13116 (alpha_pop_frame): Use frame->extra_info.
13117 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13118 alpha_frame_args_address.
13119 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13120 (alpha_find_saved_regs): Remove prototype.
13121 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13122 (EXTRA_FRAME_INFO): Remove.
13123 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13124 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13125
13126 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13127
13128 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13129 (alpha_cannot_fetch_register): Ditto.
13130 (alpha_cannot_store_register): Ditto.
13131 (alpha_register_convertible): Ditto.
13132 (alpha_use_struct_convention): Ditto.
13133 * config/alpha/tm-alpha.h: Update copyright years.
13134 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13135 (INNER_THAN): Use core_addr_lessthan.
13136 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13137 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13138 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13139 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13140 (FRAME_CHAIN): Remove unnecessary cast.
13141
13142 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13143
13144 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13145 obsolete.
13146
13147 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13148
13149 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13150 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13151 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13152 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13153 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13154 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13155 * x86-64-linux-nat.c: Ditto.
13156
13157 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13158
13159 * alpha-tdep.c (alpha_register_name): New function.
13160 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13161 (REGISTER_NAME): Define.
13162
13163 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13164
13165 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13166
13167 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13168
13169 * alpha-tdep.c: Update copyright years.
13170 (alpha_next_pc): New function.
13171 (alpha_software_single_step): Ditto.
13172 * config/alpha/tm-alpha.h: Add prototype for
13173 alpha_software_single_step.
13174
13175 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13176
13177 * alphabsd-nat.c: Update copyright years.
13178 (fill_gregset): Use regcache_collect.
13179 (fill_fpregset): Likewise.
13180 (fetch_inferior_registers): Only fetch integer registers
13181 if requested to do so.
13182 (store_inferior_registers): Only store integer registers
13183 if requested to do so.
13184
13185 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13186
13187 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13188 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13189 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13190 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13191 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13192 * config/arm/linux.mh (XDEPFILES): Delete.
13193 * config/arm/nbsd.mh (XDEPFILES): Delete.
13194 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13195 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13196 * config/i386/i386m3.mh (XDEPFILES): Delete.
13197 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13198 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13199 * config/i386/fbsd.mh (XDEPFILES): Delete.
13200 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13201 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13202 * config/i386/i386v4.mh (XDEPFILES): Delete.
13203 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13204 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13205 * config/i386/i386aix.mh (XDEPFILES): Delete.
13206 * config/i386/go32.mh (XDEPFILES): Delete.
13207 * config/i386/cygwin.mh (XDEPFILES): Delete.
13208 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13209 * config/i386/i386mach.mh (XDEPFILES): Delete.
13210 * config/i386/i386v32.mh (XDEPFILES): Delete.
13211 * config/i386/linux.mh (XDEPFILES): Delete.
13212 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13213 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13214 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13215 * config/i386/i386sco.mh (XDEPFILES): Delete.
13216 * config/i386/i386v.mh (XDEPFILES): Delete.
13217 * config/i386/nbsd.mh (XDEPFILES): Delete.
13218 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13219 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13220 * config/i386/symmetry.mh (XDEPFILES): Delete.
13221 * config/i386/obsd.mh (XDEPFILES): Delete.
13222 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13223 * config/ia64/linux.mh (XDEPFILES): Delete.
13224 * config/ia64/aix.mh (XDEPFILES): Delete.
13225 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13226 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13227 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13228 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13229 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13230 * config/m68k/linux.mh (XDEPFILES): Delete.
13231 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13232 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13233 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13234 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13235 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13236 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13237 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13238 * config/m88k/delta88.mh (XDEPFILES): Delete.
13239 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13240 * config/m88k/m88k.mh (XDEPFILES): Delete.
13241 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13242 * config/mips/linux.mh (XDEPFILES): Delete.
13243 * config/mips/irix6.mh (XDEPFILES): Delete.
13244 * config/mips/irix5.mh (XDEPFILES): Delete.
13245 * config/mips/irix4.mh (XDEPFILES): Delete.
13246 * config/mips/irix3.mh (XDEPFILES): Delete.
13247 * config/mips/decstation.mh (XDEPFILES): Delete.
13248 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13249 (NATDEPFILES): Move core-aout.o to here.
13250 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13251 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13252 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13253 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13254 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13255 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13256 * config/pa/hpux11.mh (XDEPFILES): Delete.
13257 * config/powerpc/aix.mh (XDEPFILES): Delete.
13258 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13259 * config/powerpc/linux.mh (XDEPFILES): Delete.
13260 * config/romp/rtbsd.mh: Rename XDEPFILES.
13261 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13262 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13263 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13264 * config/s390/s390.mh (XDEPFILES): Delete.
13265 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13266 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13267 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13268 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13269 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13270 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13271 * config/sparc/linux.mh (XDEPFILES): Delete.
13272 * config/vax/vaxult.mh (XDEPFILES): Delete.
13273 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13274 * Makefile.in (DEPFILES): Remove XDEPFILES.
13275
13276 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13277
13278 * utils.c (internal_verror): Fix comments, default is yes not no.
13279 Update queries to match. Default to quit and dump core.
13280
13281 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13282
13283 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13284 copyright.
13285 * defs.h, event-top.c, gdbcmd.h: Ditto.
13286 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13287 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13288 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13289 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13290 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13291 * mi/mi-main.c:Ditto.
13292
13293 * stack.c, symfile.c: Update copyright.
13294
13295 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13296
13297 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13298 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13299 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13300 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13301
13302 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13303
13304 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13305 * gdbserver/low-lynx.c (myattach): Likewise.
13306 * gdbserver/low-nbsd.c (myattach): Likewise.
13307 * gdbserver/low-sim.c (myattach): Likewise.
13308 * gdbserver/low-sparc.c (myattach): Likewise.
13309 * gdbserver/low-sun3.c (myattach): Likewise.
13310
13311 * gdbserver/low-linux.c (myattach): New function.
13312
13313 * gdbserver/server.c (attach_inferior): New function.
13314 (main): Handle "--attach".
13315
13316 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13317
13318 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13319 maintainer.
13320
13321 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13322
13323 * c-typeprint.c (is_type_conversion_operator): Add additional
13324 check for non-conversion operators.
13325
13326 2002-01-15 Michael Snyder <msnyder@redhat.com>
13327
13328 * linux-proc.c: Add "info proc" command, a la procfs.c.
13329 (read_mapping): New function, abstract and re-use code.
13330 (linux_find_memory_regions): Use new func read_mapping.
13331 (linux_info_proc_cmd): New function, implement "info proc".
13332 (_initialize_linux_proc): Add new command "info proc".
13333
13334 2002-01-15 Michael Snyder <msnyder@redhat.com>
13335
13336 * symfile.c (generic_load): Use bfd_map_over_sections method
13337 instead of manipulating bfd structure members directly.
13338 (add_section_size_callback): New function, bfd sections callback
13339 used by generic_load.
13340 (load_sections_callback): New function, bfd sections callback
13341 used by generic_load.
13342
13343 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13344
13345 [Based on work by Jim Blandy]
13346 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13347 (builtin_type_vec128): Export.
13348 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13349 types.
13350 (builtin_type_vec128): New builtin type for 128 bit vector
13351 registers.
13352 (build_gdbtypes): Initialize builtin_type_v16qi and
13353 builtin_type_v8hi. Create the vec128 register builtin type
13354 structure.
13355 (build_builtin_type_vec128): New function.
13356 (_initialize_gdbtypes): Register builtin_type_v16qi and
13357 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13358 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13359 AltiVec register to new builtin type.
13360
13361 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13362
13363 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13364 to make_cv_type.
13365
13366 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13367
13368 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13369 CLEAN_UP_REGISTER_VALUE.
13370 * regcache.c (supply_register): Update only call.
13371
13372 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13373
13374 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13375 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13376 a29k-*-vxworks* targets as obsolete.
13377
13378 2002-01-14 Michael Snyder <msnyder@redhat.com>
13379
13380 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13381 until we can resolve portability issues.
13382 * gregset.h: Remove references to fpxregs.
13383 * gcore.c (gcore_command): Initialize note_sec to NULL.
13384
13385 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13386
13387 * signals.c (target_signal_to_name): Rewrite. Only use
13388 signals[].name when in bounds and non-NULL.
13389
13390 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13391
13392 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13393 * signals.c (target_signal_to_name): Verify that SIG is within the
13394 bounds of the signals array.
13395
13396 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13397
13398 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13399
13400 2002-01-13 Keith Seitz <keiths@redhat.com>
13401
13402 * stack.c (print_frame_info_base): Print the frame's pc
13403 only if when print_frame_info_listing_hook is not defined.
13404
13405 2002-01-13 Keith Seitz <keiths@redhat.com>
13406
13407 * varobj.c (varobj_set_value): Make sure that there were no
13408 errors evaluating the object before attempting to set its
13409 value.
13410 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13411 so this offset adjustment is no longer necessary.
13412 (create_child): Don't set the error flag if the child is
13413 a CPLUS_FAKE_CHILD.
13414 (value_of_child): If value_fetch_lazy fails, return NULL
13415 so that callers will be notified that an error occurred.
13416 (c_value_of_variable): Delay check of variable's validity
13417 until later. We actually want all structs and unions to have
13418 the value "{...}".
13419 Do not return "???" for variables which could not be evaluated.
13420 This error condition must be returned to the caller so that it
13421 can get the error condition from gdb.
13422 (cplus_name_of_child): Adjust index for vptr before figuring
13423 out the name of the child.
13424 (cplus_value_of_child): If a child's (real) parent is not valid,
13425 don't even bother trying to give a value for it. Just return
13426 an error. Change all instances in this function.
13427 (cplus_type_of_child): If our parent is one of the "fake"
13428 parents, we need to get at the type of the real parent, and
13429 derive the child's true type using this information.
13430
13431 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13432
13433 From 2002-01-09 John Marshall <johnm@falch.net>:
13434 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13435 sources.redhat.com, and tweak some related URLs which had
13436 suffered from linkrot.
13437
13438 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13439
13440 From Jeff law:
13441 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13442 structures passed in registers.
13443
13444 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13445
13446 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13447 white space which prevented compilation. Reported by DSK
13448 <dsk@student.unsw.edu.au>.
13449
13450 2002-01-11 Michael Snyder <msnyder@redhat.com>
13451
13452 * symfile.c (build_section_addr_info_from_section_tab):
13453 Use bfd access method instead of manipulating bfd directly.
13454 (syms_from_objfile): Ditto.
13455 (simple_overlay_update_1): Ditto.
13456 (simple_overlay_update): Ditto.
13457 (generic_load): Ditto.
13458 (overlay_unmapped_address): FIXME comment, bfd access methods.
13459 (sections_overlap): FIXME comment, bfd access methods.
13460 (pc_in_mapped_range): FIXME comment, bfd access methods.
13461 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13462 (section_is_mapped): FIXME comment, bfd access methods.
13463 (section_is_overlay): FIXME comment, bfd access methods.
13464
13465 * symfile.c (generic_load): Whitespace and long line cleanups.
13466 Remove duplicate variable, change several local variables to
13467 more appropriate data types.
13468 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13469
13470 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13471
13472 From Peter Schauer:
13473 * language.c (longest_local_hex_string_custom): Use phex_nz to
13474 convert NUM to a hex string.
13475
13476 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13477
13478 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13479 the function.
13480 Update Copyright year.
13481
13482 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13483
13484 * language.c (longest_raw_hex_string): Delete unused function.
13485
13486 2002-01-11 Petr Sorfa <petrs@caldera.com>
13487
13488 * MAINTAINERS (write-after-approval): Add myself.
13489 * dwarf2read.c (read_tag_string_type): Handling of
13490 DW_AT_byte_size.
13491 (read_tag_string_type): FORTRAN fix to prevent propagation of
13492 first string size.
13493 (set_cu_language): Handling of DW_LANG_Fortran95
13494
13495 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13496
13497 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13498 GETPID(inferior_ptid).
13499 (store_inferior_registers): Likewise.
13500
13501 2002-01-10 Jason Merrill <jason@redhat.com>
13502
13503 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13504 Fix DW_OP_minus.
13505
13506 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13507
13508 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13509 and bfd/elf32-sh-nbsd.c.
13510
13511 2002-01-10 Michael Snyder <msnyder@redhat.com>
13512
13513 * NEWS: Mention --pid and corefile/proc-id behavior change.
13514
13515 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13516 * gcore.c: Include cli/cli-decode.h instead of command.h.
13517
13518 * main.c (captured_main): Add new command line option "--pid".
13519 If the second command line argument (following the symbol-file)
13520 begins with a digit, try to attach to it before trying to open
13521 it as a corefile.
13522 (print_gdb_help): Document the "--pid" argument.
13523
13524 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13525
13526 * completer.c (command_completer): New function.
13527
13528 * completer.h <command_completer>: Add prototype.
13529
13530 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13531 completer for the "help" command.
13532
13533 2002-01-09 Jason Merrill <jason@redhat.com>
13534
13535 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13536
13537 2002-01-09 Michael Snyder <msnyder@redhat.com>
13538
13539 * i386-linux-nat.c (fill_fpxregset): Make global.
13540 (store_fpxregset): Ditto.
13541
13542 * gregset.h (gdb_fpxregset_t): Define.
13543 (supply_fpxregset): Prototype.
13544 (fill_fpxregset): Prototype.
13545
13546 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13547
13548 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13549
13550 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13551 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13552 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13553
13554 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13555
13556 * MAINTAINERS: Update target maintainer rules so that any
13557 Maintainer can approve a tested patch for a maintenance-only
13558 target.
13559
13560 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13561
13562 * MAINTAINERS (write-after-approval): Add myself.
13563
13564 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13565 IN_SIGTRAMP.
13566
13567 2002-01-08 Michael Snyder <msnyder@redhat.com>
13568
13569 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13570 real name of the executable, rather than the /proc name.
13571
13572 2002-01-03 Michael Snyder <msnyder@redhat.com>
13573
13574 Implement a "generate-core-file" command in gdb, save target state.
13575 * gcore.c: New file. Implement new command 'generate-core-file'.
13576 Save a corefile image of the current state of the inferior.
13577 * linux-proc.c: Add linux-specific code for saving corefiles.
13578 * target.h (struct target_ops): Add new target vectors for saving
13579 corefiles; to_find_memory_regions and to_make_corefile_notes.
13580 (target_find_memory_regions): New macro.
13581 (target_make_corefile_notes): New macro.
13582 * target.c (update_current_target): Inherit new target methods.
13583 (dummy_find_memory_regions): New place-holder method.
13584 (dummy_make_corefile_notes): New place-holder method.
13585 (init_dummy_target): Initialize new dummy target vectors.
13586 * exec.c (exec_set_find_memory_regions): New function.
13587 Allow the exec_ops vector for memory regions to be taken over.
13588 (exec_make_note_section): New function, target vector method.
13589 * defs.h (exec_set_find_memory_regions): Export prototype.
13590 * procfs.c (proc_find_memory_regions): New function, corefile method.
13591 (procfs_make_note_section): New function, corefile method.
13592 (init_procfs_ops): Set new target vector pointers.
13593 (find_memory_regions_callback): New function.
13594 (procfs_do_thread_registers): New function.
13595 (procfs_corefile_thread_callback): New function.
13596 * sol-thread.c (sol_find_memory_regions): New function.
13597 (sol_make_note_section): New function.
13598 (init_sol_thread_ops): Initialize new target vectors.
13599 * inftarg.c (inftarg_set_find_memory_regions): New function.
13600 Allow to_find_memory_regions vector to be taken over.
13601 (inftarg_set_make_corefile_notes): New function.
13602 Allow to_make_corefile_notes vector to be taken over.
13603 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13604 interface layer if not target_has_execution (may be a corefile).
13605 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13606 * config/sparc/sun4sol2.mh: Ditto.
13607 * config/alpha/alpha-linux.mh: Ditto.
13608 * config/arm/linux.mh: Ditto.
13609 * config/i386/x86-64linux.mh: Ditto.
13610 * config/ia64/linux.mh: Ditto.
13611 * config/m68k/linux.mh: Ditto.
13612 * config/mips/linux.mh: Ditto.
13613 * config/powerpc/linux.mh: Ditto.
13614 * config/sparc/linux.mh: Ditto.
13615
13616 2002-01-07 Michael Snyder <msnyder@redhat.com>
13617
13618 * arm-linux-nat.c: Remove references to regcache.c internal data
13619 (registers[] and register_valid[]).
13620
13621 2002-01-07 Michael Snyder <msnyder@redhat.com>
13622
13623 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13624 so that attaching to a pid will automatically read the process's
13625 symbol file and shlibs.
13626 * Makefile.in: Add rule for linux-proc.o.
13627 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13628 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13629 * config/arm/linux.mh: Ditto.
13630 * config/i386/linux.mh: Ditto.
13631 * config/i386/x86-64linux.mh: Ditto.
13632 * config/ia64/linux.mh: Ditto.
13633 * config/m68k/linux.mh: Ditto.
13634 * config/mips/linux.mh: Ditto.
13635 * config/powerpc/linux.mh: Ditto.
13636 * config/sparc/linux.mh: Ditto.
13637
13638 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13639
13640 * win32-nat.c: Add i386-tdep.h dependency.
13641
13642 2002-01-07 Michael Snyder <msnyder@redhat.com>
13643
13644 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13645 instead of bfd_get_arch_size. Don't bail out just because
13646 there's no exec_bfd.
13647
13648 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13649 * p-valprint.c (pascal_object_print_value): Ditto.
13650 * somread.c (som_symtab_read): Ditto.
13651 * symfile.c (simple_free_overlay_region_table): Ditto.
13652 * valops.c (value_assign): Ditto.
13653
13654 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13655 use tilde_expand and strerror for opening save-tracepoints file.
13656
13657 * thread-db.c (thread_db_new_objfile): Indendation fix.
13658
13659 * infptrace.c (GDB_MAX_ALLOCA): New define.
13660 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13661 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13662 can be overridden with whatever value is appropriate to the host).
13663 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13664 alloca to allocate potentially large buffer.
13665 * rs6000-nat.c (child_xfer_memory): Ditto.
13666 * symm-nat.c (child_xfer_memory): Ditto.
13667 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13668
13669 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13670
13671 From Nick Clifton <nickc@redhat.com>
13672 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13673
13674 2002-01-07 Michael Snyder <msnyder@redhat.com>
13675
13676 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13677 Don't use exec_bfd if it's NULL.
13678
13679 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13680
13681 * valops.c (value_arg_coerce): Fix formatting.
13682
13683 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13684
13685 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13686 * gnu-nat.c: Ditto.
13687
13688 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13689
13690 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13691 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13692 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13693 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13694 z8k-coff have not been multi-arched. Update z8k-coff build
13695 status.
13696
13697 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13698
13699 * MAINTAINERS: Mark a29k target as obsolete.
13700 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13701 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13702 comments.
13703 * NEWS: Note that a29k targets are obsolete.
13704 * a29k-tdep.c: Mark as obsolete.
13705 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13706 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13707 a29k-*-vxworks* targets as obsolete.
13708 * remote-adapt.c: Obsolete.
13709 * remote-eb.c: Obsolete.
13710 * remote-mm.c: Obsolete.
13711 * remote-udi.c: Obsolete.
13712 * config/a29k/a29k-udi.mt: Obsolete.
13713 * config/a29k/a29k.mt: Obsolete.
13714 * config/a29k/tm-a29k.h: Obsolete.
13715 * config/a29k/tm-vx29k.h: Obsolete.
13716 * config/a29k/vx29k.mt: Obsolete.
13717
13718 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13719
13720 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13721 with BFD_ENDIAN_BIG.
13722
13723 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13724
13725 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13726 * configure, config.in: Re-generate.
13727 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13728 * defs.h: Do not include <endian.h>.
13729
13730 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13731
13732 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13733 * config.in: Regenerate.
13734 * configure.in: Update copyright years.
13735 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13736 * configure: Regenerate.
13737 * i386bsd-nat.c: Update copyright years.
13738 (fill_gregset): Use regcache_collect.
13739 (fetch_inferior_registers): Only fetch integer registers
13740 if requested to do so. Add support for XMM registers
13741 using PT_GETXMMREGS.
13742 (store_inferior_registers): Only store integer registers
13743 if requested to do so. Add support for XMM registers
13744 using PT_SETXMMREGS.
13745 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13746 (store_inferior_registers): Remove.
13747 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13748 (fetch_elfcore_registers): New function.
13749 (i386nbsd_elfcore_fns): New.
13750 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13751 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13752 i386bsd-nat.o.
13753 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13754 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13755 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13756 * config/i386/tm-nbsd.h: Update copyright years.
13757 (HAVE_SSE_REGS): Define.
13758 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13759 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13760 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13761 (SIGCONTEXT_PC_OFFSET): Remove.
13762 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13763
13764 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13765
13766 * configure.tgt: Remove powerpc-*-macos* target.
13767 * config/m68k/xm-mpw.h: Delete file.
13768 * config/xm-mpw.h: Delete file.
13769 * ser-mac.c: Delete file.
13770 * mpw-make.sed: Delete file.
13771 * mpw-config.in: Delete file.
13772 * mac-xdep.c: Delete file.
13773 * mac-gdb.r: Delete file.
13774 * mac-defs.h: Delete file.
13775 * mac-nat.c: Delete file.
13776 * config/powerpc/macos.mh: Delete file.
13777 * config/powerpc/macos.mt: Delete file.
13778 * config/powerpc/nm-macos.h: Delete file.
13779 * config/powerpc/tm-macos.h: Delete file.
13780 * source.c (openp, open_source_file): Remove obsolete code.
13781 * top.c (gdb_readline): Ditto.
13782 * utils.c (query): Ditto.
13783 * event-top.c (display_gdb_prompt): Ditto.
13784 * Makefile.in (ser-mac.o): Delete obsolete target.
13785 * NEWS: Update.
13786
13787 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13788
13789 * defs.h (BIG_ENDIAN): Delete macro definition.
13790 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13791 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13792 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13793 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13794 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13795 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13796 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13797 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13798 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13799 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13800 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13801 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13802 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13803 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13804 * gdbarch.c: Re-generate.
13805
13806 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13807
13808 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13809 for core files.
13810
13811 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13812
13813 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13814
13815 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13816
13817 * value.h (value_ptr): Delete typedef.
13818
13819 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13820
13821 * i386nbsd-nat.c: Update copyright years.
13822 Include i386-tdep.h.
13823
13824 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13825
13826 * stabsread.c: Update copyright years.
13827
13828 From Debashis Mahata <debashis.mahata@wipro.com>:
13829 (read_struct_fields): Deal with Sun C compiler erroneous stab
13830 output for structs and unions.
13831 Fix PR gdb/269.
13832
13833 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13834
13835 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13836 prototype.
13837
13838 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13839
13840 * cp-abi.c: Fix whitespace.
13841 (baseclass_offset): New wrapper function.
13842 * cp-abi.h (baseclass_offset): Add prototype.
13843 (struct cp_abi_ops): Add baseclass_offset pointer.
13844
13845 * valops.c (vb_match): Move to...
13846 * gnu-v2-abi.c (vb_match): here.
13847 * valops.c (baseclass_offset): Move to...
13848 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13849
13850 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13851
13852 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13853 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13854 * hpacc-abi.c (init_hpacc_ops): Likewise.
13855
13856 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13857
13858 * valops.c (find_overload_match): Accept obj as a
13859 reference parameter. Update it before returning.
13860 * value.h (find_overload_match): Update prototype.
13861 * eval.c (evaluate_subexp_standard): Pass object to
13862 find_overload_match by reference.
13863
13864 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13865
13866 * valarith.c: Replace value_ptr with struct value pointer. Remove
13867 register attribute from value declarations.
13868 * valops.c: Ditto.
13869 * value.h: Ditto.
13870 * scm-lang.c (scm_lookup_name): Ditto.
13871
13872 2002-01-03 Michael Snyder <msnyder@redhat.com>
13873
13874 Abstract the functionality of iterating over mapped memory
13875 regions into a general purpose iterator function.
13876 * procfs.c (iterate_over_mappings): New function, general purpose
13877 iterator for memory sections.
13878 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13879 (solib_mappings_callback): New function, callback for above.
13880 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13881 (info_mappings_callback): New function, callback for above.
13882
13883 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13884
13885 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13886
13887 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13888 * i386-tdep.c: Include "elf-bfd.h".
13889 (process_note_abi_tag_sections): New function.
13890 (i386_gdbarch_init): Add code to recognize various OS/ABI
13891 combinations.
13892
13893 * maint.c (_initialize_maint_cmds): Add missing \ in
13894 string-literal.
13895
13896 For older changes see ChangeLog-2001
13897 \f
13898 Local Variables:
13899 mode: change-log
13900 left-margin: 8
13901 fill-column: 74
13902 version-control: never
13903 End: