2002-12-04 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-04 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
4 function.
5 (lookup_symbol_aux_minsyms): New function.
6
7 2002-12-04 J. Brobecker <brobecker@gnat.com>
8
9 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
10
11 2002-12-04 J. Brobecker <brobecker@gnat.com>
12
13 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
14 which is an obsolete macro name.
15
16 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
17
18 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
19 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
20
21 2002-12-03 H.J. Lu (hjl@gnu.org)
22
23 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
24 (create_breakpoints): Make sure the addr_string field is not
25 NULL.
26
27 2002-12-03 Andrew Cagney <ac131313@redhat.com>
28
29 * sparc-nat.c (fetch_inferior_registers)
30 (store_inferior_registers): Add comment on problem of LWP vs
31 threads.
32
33 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
34 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
35 (lin_lwp_store_registers): Remove.
36 (init_lin_lwp_ops): Use fetch_inferior_registers
37 and store_inferior_registers directly.
38 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
39 (store_inferior_registers): Likewise.
40 Fix PR gdb/725.
41
42 2002-12-03 Andrew Cagney <ac131313@redhat.com>
43
44 * frame.h (get_frame_id): Convert to a function.
45 (null_frame_id, frame_id_p): Declare.
46 (frame_id_eq, frame_id_inner): Declare.
47 (frame_id_build): New function.
48 * frame.c (get_frame_id): Update. Use null_frame_id.
49 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
50 frame_id_inner.
51 (null_frame_id, frame_id_p): Define.
52 (frame_id_eq, frame_id_inner): Define.
53 (frame_id_build): New function.
54 * varobj.c (varobj_create): Update.
55 (varobj_update): Update.
56 * valops.c (value_assign): Update.
57 (new_root_variable): Update.
58 * infrun.c (save_inferior_status): Update.
59 * breakpoint.c (watch_command_1): Update.
60
61 2002-12-03 J. Brobecker <brobecker@gnat.com>
62
63 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
64 (SNAP2): Likewise.
65
66 2002-12-03 Andrew Cagney <cagney@redhat.com>
67
68 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
69 patch.
70
71 * PROBLEMS: Mention PR gdb/725.
72
73 2002-12-03 Andreas Schwab <schwab@suse.de>
74
75 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
76
77 2002-12-02 Adam Fedor <fedor@gnu.org>
78 Klee Dienes <kdienes@apple.com>
79
80 * objc-lang.c (objc_printstr): Add width arg to match
81 printstr prototype.
82 (compare_selectors): Add 'const' to arg types.
83 (compare_classes): Likewise.
84 (find_imps): Cast msym pointer to avoid compiler warning.
85 (print_object_command): Validate the address before
86 passing it to the print routine.
87 (find_objc_msgcall_submethod): Change function argument to
88 return an int.
89 * objc-lang.h: Add 'extern' to all function declarations.
90 (value_nsstring): Add declaration.
91
92 2002-12-02 J. Brobecker <brobecker@gnat.com>
93
94 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
95 Fixes a build failure on HP/UX.
96
97 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
98 failure on HP/UX.
99 (hpread_has_name): Advance declaration to avoid a compilation warning.
100 (pst_syms_count): Add missing variable type. By change, the compiler
101 was defaulting to int, which seems a good choice. Fixes a compilation
102 warning.
103 (pst_syms_size): Likewise.
104
105 2002-12-02 J. Brobecker <brobecker@gnat.com>
106
107 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
108 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
109 later to set the proper gdbarch methods depending on the osabi.
110 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
111
112 2002-12-02 J. Brobecker <brobecker@gnat.com>
113
114 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
115 * osabi.c (gdb_osabi_name): Add strings images for the two new
116 enum values.
117 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
118
119 2002-12-02 Andrew Cagney <ac131313@redhat.com>
120
121 * MAINTAINERS (Java): Global maintainers are responible for Java.
122 (Past Maintainers): Mention both Anthony Green and Per Bothner as
123 part Java maintainers.
124
125 2002-12-02 J. Brobecker <brobecker@gnat.com>
126
127 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
128 Fixes a compilation failure on AiX.
129
130 2002-12-02 J. Brobecker <brobecker@gnat.com>
131
132 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
133 why aix-thread.o is not listed.
134
135 2002-12-01 Andrew Cagney <ac131313@redhat.com>
136
137 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
138 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
139 * gdbarch.h, gdbarch.c: Re-generate.
140 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
141 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
142 * config/pa/tm-hppa.h, frame.h: Update.
143 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
144 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
145 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
146 * cris-tdep.c, alpha-tdep.c: Update.
147 * frame.c (set_unwind_by_pc, create_new_frame): Use either
148 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
149 (get_prev_frame): Ditto.
150
151 2002-11-30 Andrew Cagney <cagney@redhat.com>
152
153 * exec.c (xfer_memory): Replace boolean with int.
154 * p-exp.y: Use 0 instead of false.
155 * corelow.c (gdb_check_format): Change return type to int from
156 boolean.
157 * utils.c: Don't include <curses.h> or <term.h> first.
158
159 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
160
161 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
162 (m68hc11_register_byte): Remove.
163 (m68hc11_gdbarch_init): Don't set the above.
164
165 2002-11-29 Andrew Cagney <cagney@redhat.com>
166
167 * remote-mips.c (mips_initialize): Force a selected frame rebuild
168 by calling get_selected_frame.
169 * ocd.c (ocd_start_remote): Use get_selected frame instead of
170 set_current_frame, create_new_frame, select_frame and
171 get_current_frame.
172 * remote-e7000.c (e7000_start_remote): Ditto.
173 * remote-mips.c (common_open): Ditto
174 * remote-rdp.c (remote_rdp_open): Ditto.
175
176 2002-11-29 Andreas Schwab <schwab@suse.de>
177
178 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
179 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
180 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
181 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
182 read_memory_unsigned_integer instead of read_memory_integer when
183 dealing with addresses and instruction opcodes.
184 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
185 (m68k_linux_frame_saved_pc): Likewise.
186
187 2002-11-29 Andrew Cagney <ac131313@redhat.com>
188
189 * stack.c (selected_frame, select_frame): Move from here ...
190 * frame.c (selected_frame, select_frame): ... to here. Include
191 "language.h".
192 * Makefile.in (frame.o): Update dependencies.
193 * frame.c (get_selected_frame): New function.
194 * frame.h (get_selected_frame): Declare.
195 (deprecated_selected_frame): Rename selected_frame.
196 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
197 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
198 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
199 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
200 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
201 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
202 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
203 * z8k-tdep.c, cli/cli-cmds.c: Update.
204
205 2002-11-29 Andrew Cagney <ac131313@redhat.com>
206
207 * frame.h (get_selected_block): Add comments.
208
209 2002-11-28 Andrew Cagney <ac131313@redhat.com>
210
211 * frame.c (pc_notcurrent): New function.
212 (find_frame_sal): New function.
213 * frame.h (find_frame_sal): Declare.
214 (struct symtab_and_line): Add opaque declaration.
215 * stack.c (print_frame_info_base): Use find_frame_sal instead of
216 find_pc_line.
217 (frame_info): Ditto.
218 * ada-lang.c (find_printable_frame): Ditto.
219
220 2002-11-28 J. Brobecker <brobecker@gnat.com>
221
222 * configure.in: Check that the pthdebug library is recent enough
223 before enabling thread support on native AiX.
224 * configure: Regenerate.
225
226 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
227 from the list of object files as it is now appended by configure
228 if thread support is enabled.
229 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
230 if thread support is enabled.
231
232 2002-11-28 Andrew Cagney <cagney@redhat.com>
233
234 * stack.c (get_selected_block): In-line get_current_block.
235 * frame.h (get_current_block): Delete declaration.
236 * blockframe.c (get_current_block): Delete function.
237
238 2002-11-28 Andrew Cagney <ac131313@redhat.com>
239
240 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
241 USE_GENERIC_DUMMY_FRAMES.
242 * gdbarch.h, gdbarch.c: Regenerate.
243 * valops.c, frame.c: Update.
244 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
245 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
246 * config/pa/tm-hppa.h, blockframe.c: Update.
247 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
248 * m68k-tdep.c, alpha-tdep.c: Ditto.
249
250 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
251 * mips-tdep.c: Ditto.
252
253 2002-11-27 Andrew Cagney <ac131313@redhat.com>
254
255 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
256 (USE_GENERIC_DUMMY_FRAMES): Default to true.
257 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
258 * gdbarch.c, gdbarch.h: Re-generate.
259 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
260 (CALL_DUMMY_LOCATION): Delete macro definition.
261 (PC_IN_CALL_DUMMY): Delete macro definitions.
262
263 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
264 default is already generic_pc_in_call_dummy.
265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
266 * v850-tdep.c (v850_gdbarch_init): Ditto.
267 * sh-tdep.c (sh_gdbarch_init): Ditto.
268 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
269 * mips-tdep.c (mips_gdbarch_init): Ditto.
270 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
272 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
274 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
275 * avr-tdep.c (avr_gdbarch_init): Ditto.
276
277 * arm-tdep.c (arm_gdbarch_init): Do not set
278 use_generic_dummy_frames, default is already 1.
279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
280 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
281 * v850-tdep.c (v850_gdbarch_init): Ditto.
282 * sh-tdep.c (sh_gdbarch_init): Ditto.
283 * s390-tdep.c (s390_gdbarch_init): Ditto.
284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
286 * mips-tdep.c (mips_gdbarch_init): Ditto.
287 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
289 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
290 * i386-tdep.c (i386_gdbarch_init): Ditto.
291 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
292 * frv-tdep.c (frv_gdbarch_init): Ditto.
293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
294 * cris-tdep.c (cris_gdbarch_init): Ditto.
295 * avr-tdep.c (avr_gdbarch_init): Ditto.
296
297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
298 call_dummy_location, default is already AT_ENTRY_POINT.
299 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
300 * v850-tdep.c (v850_gdbarch_init): Ditto.
301 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
302 * sh-tdep.c (sh_gdbarch_init): Ditto.
303 * s390-tdep.c (s390_gdbarch_init): Ditto.
304 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
305 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
306 * mips-tdep.c (mips_gdbarch_init): Ditto.
307 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
310 * i386-tdep.c (i386_gdbarch_init): Ditto.
311 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
312 * frv-tdep.c (frv_gdbarch_init): Ditto.
313 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
314 * cris-tdep.c (cris_gdbarch_init): Ditto.
315 * avr-tdep.c (avr_gdbarch_init): Ditto.
316 * arm-tdep.c (arm_gdbarch_init): Ditto.
317 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
318
319 2002-11-28 Andrew Cagney <cagney@redhat.com>
320
321 * frame.h: Update comments on set_current_frame, create_new_frame,
322 flush_cached_frames, reinit_frame_cache, select_frame and
323 selected_frame.
324
325 2002-11-27 Andrew Cagney <cagney@redhat.com>
326
327 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
328 deprecated pc_in_call_dummy function.
329 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
330 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
331 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
332 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
333 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
334
335 2002-11-26 Martin M. Hunt <hunt@redhat.com>
336
337 * Makefile.in: Remove Tix dependencies.
338 * acinclude.m4: Ditto.
339 * aclocal.m4: Ditto.
340 * configure.in: Ditto.
341 * configure: Regenerated.
342
343 2002-11-26 Andrew Cagney <ac131313@redhat.com>
344
345 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
346 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
347 * gdbarch.c: Re-generate.
348
349 2002-11-26 Andrew Cagney <ac131313@redhat.com>
350
351 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
352 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
353 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
354 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
355 pc_in_call_dummy_at_entry_point.
356 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
357 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
358 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
359 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
360 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
361 pc_in_call_dummy_on_stack.
362 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
363 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
364 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
365 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
366 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
367
368 2002-11-26 Andrew Cagney <ac131313@redhat.com>
369
370 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
371 pc_in_call_dummy_before_text_end
372 (deprecated_pc_in_call_dummy_after_text_end): Rename
373 pc_in_call_dummy_after_text_end.
374 (deprecated_pc_in_call_dummy_on_stack): Rename
375 pc_in_call_dummy_on_stack.
376 (deprecated_pc_in_call_dummy_at_entry_point): Rename
377 pc_in_call_dummy_at_entry_point.
378 * m68k-tdep.c (m68k_gdbarch_init): Update.
379 * s390-tdep.c (s390_gdbarch_init): Update.
380 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
381 * vax-tdep.c (vax_gdbarch_init): Update.
382 * sparc-tdep.c (sparc_gdbarch_init): Update.
383 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
384 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
385 * i386-tdep.c (i386_gdbarch_init): Update.
386 * frv-tdep.c (frv_gdbarch_init): Update.
387 * cris-tdep.c (cris_gdbarch_init): Update.
388 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
389 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
390 (deprecated_pc_in_call_dummy_after_text_end)
391 (deprecated_pc_in_call_dummy_on_stack)
392 (deprecated_pc_in_call_dummy_at_entry_point): Update.
393 * alpha-tdep.c (alpha_gdbarch_init): Update.
394
395 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
396
397 * acconfig.h (HAVE_PREAD64): Add.
398 * configure.in: Check for pread64.
399 * config.in: Regenerated.
400 * configure: Regenerated.
401 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
402 * linux-proc.c (linux_proc_xfer_memory): New function.
403 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
404
405 2002-11-25 David Carlton <carlton@math.stanford.edu>
406
407 * dwarf2read.c (scan_partial_symbols): Descend into namespace
408 pdi's with no name.
409
410 2002-11-25 Andrew Cagney <ac131313@redhat.com>
411
412 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
413 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
414
415 2002-11-25 Jim Blandy <jimb@redhat.com>
416
417 * symfile.c (init_objfile_sect_indices): New function.
418 (default_symfile_offsets): Move the section-index-initializing
419 stuff into init_objfile_sect_indices, and call that.
420
421 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
422 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
423
424 * symfile.c (syms_from_objfile): Adjust indentation.
425
426 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
427 || info_verbose isn't true.
428
429 2002-11-24 Andrew Cagney <ac131313@redhat.com>
430
431 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
432 default to get_frame_base.
433 * gdbarch.h, gdbarch.c: Regenerate.
434 * arch-utils.c (default_frame_address): Delete function.
435 * arch-utils.h (default_frame_address): Delete declaration
436
437 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
438
439 * varobj.c (find_frame_addr_in_frame_chain):
440 Use get_frame_base instead of FRAME_FP,
441 obvious fix.
442
443 2002-11-19 Andrew Cagney <ac131313@redhat.com>
444
445 * frame.h (FRAME_FP): Delete macro.
446 (get_frame_base): New function declaration.
447 * frame.c (get_frame_base): New function.
448 (get_frame_id): Use ->frame.
449 (frame_find_by_id): Rewrite to use get_frame_id.
450 * blockframe.c: Use get_frame_base instead of FRAME_FP.
451 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
452 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
453 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
454 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
455 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
456 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
457
458 2002-11-24 Andrew Cagney <ac131313@redhat.com>
459
460 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
461
462 2002-11-24 Andrew Cagney <ac131313@redhat.com>
463
464 * frame.c (set_unwind_by_pc): Revert change below, use
465 PC_IN_CALL_DUMMY.
466 (get_prev_frame): Ditto.
467
468 2002-11-24 Andrew Cagney <ac131313@redhat.com>
469
470 * dummy-frame.c (pc_in_dummy_frame): New function.
471 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
472 (find_dummy_frame): Update comment.
473 (generic_pop_current_frame): Use get_frame_type.
474 * dummy-frame.h (pc_in_dummy_frame): Declare.
475 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
476 (create_new_frame): Use pc_in_dummy_frame.
477 (get_prev_frame): Use pc_in_dummy_frame.
478 (frame_saved_regs_register_unwind): Use get_prev_frame.
479 (deprecated_generic_get_saved_register): Use get_prev_frame.
480
481 2002-11-23 Andrew Cagney <ac131313@redhat.com>
482
483 * blockframe.c (find_frame_addr_in_frame_chain): Move function
484 from here ...
485 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
486 (varobj_create): Note that frame ID should be used.
487 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
488
489 2002-11-23 Andrew Cagney <ac131313@redhat.com>
490
491 * breakpoint.c: Include "gdb_assert.h".
492 (deprecated_frame_in_dummy): Assert that generic dummy frames are
493 not being used.
494 * Makefile.in (breakpoint.o): Update dependencies.
495 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
496 deprecated_frame_in_dummy.
497 * stack.c (print_frame_info_base): Ditto.
498 (frame_info): Ditto.
499 (print_frame_info_base): Ditto. Delete dead code.
500
501 2002-11-23 Andreas Schwab <schwab@suse.de>
502
503 * Makefile.in (m68k_tdep_h): Define.
504 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
505 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
506 * m68k-tdep.c: Move register number enum ...
507 * m68k-tdep.h: ... to this new file and rename the constants from
508 E_* to M68K_*. All uses changed.
509 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
510 * abug-rom.c: Include "m68k-tdep.h". Use
511 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
512 * cpu32bug-rom.c: Likewise.
513 * dbug-rom.c: Likewise.
514 * m68k-tdep.c: Likewise.
515 * m68klinux-nat.c: Likewise.
516 * remote-est.c: Likewise.
517 * rom68k-rom.c: Likewise.
518 * config/m68k/tm-linux.h: Likewise.
519
520 2002-11-23 Andrew Cagney <ac131313@redhat.com>
521
522 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
523 dummy frame initialization code.
524 * mips-tdep.c (mips_gdbarch_init): Ditto.
525
526 2002-11-22 Christopher Faylor <cgf@redhat.com>
527
528 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
529 attach will hang.
530
531 2002-11-22 Andrew Cagney <ac131313@redhat.com>
532
533 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
534 to default_frame_address.
535 * gdbarch.h, gdbarch.c: Re-generate.
536
537 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
538 or frame_locals_address to default_frame_address.
539 * m68k-tdep.c (m68k_gdbarch_init): Update.
540 * i386-tdep.c (i386_gdbarch_init): Update.
541 * frv-tdep.c (frv_gdbarch_init): Update.
542 * sh-tdep.c (sh_gdbarch_init): Update.
543 * v850-tdep.c (v850_gdbarch_init): Update.
544 * sparc-tdep.c (sparc_gdbarch_init): Update.
545 * mips-tdep.c (mips_gdbarch_init): Update.
546 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
547 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
549
550 * cris-tdep.c (cris_frame_args_address): Delete function.
551 (cris_frame_locals_address): Delete function.
552 (cris_gdbarch_init): Do not set frame_args_address or
553 frame_locals_address.
554
555 2002-11-22 Michael Snyder <msnyder@redhat.com>
556
557 * thread-db.c (thread_db_load): Tell the user what's going on
558 if dlopen fails on libthread_db.
559
560 2002-11-23 Andreas Schwab <schwab@suse.de>
561
562 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
563 invariant return values.
564
565 2002-11-22 Andreas Schwab <schwab@suse.de>
566
567 * valops.c (value_slice): Move declaration of `offset' to avoid
568 warning.
569
570 2002-11-22 Christopher Faylor <cgf@redhat.com>
571
572 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
573 (struct so_stuff): Add end_addr field.
574 (register_loaded_dll): Calculate and store end address of loaded dll.
575 (solib_address): New function.
576 (child_solib_loaded_library_pathname): Pass carefully constructed
577 section info to safe_symbol_file_add rather than ignoring it.
578 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
579 DLL is loaded.
580 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
581 (child_create_inferior): Fix a compiler warning.
582 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
583 (solib_address): Declare new function.
584
585 2002-11-22 Andreas Schwab <schwab@suse.de>
586
587 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
588 and FPS registers.
589
590 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
591
592 * maint.c (_initialize_maint_cmds): Fix typo. From
593 Francesco Potorti` <pot@gnu.org>.
594
595 2002-11-21 Andrew Cagney <cagney@redhat.com>
596
597 * mips-tdep.c (mips_dump_tdep): Delete references to
598 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
599 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
600 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
601 * printcmd.c (build_address_symbolic): Delete calls to
602 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
603 (address_info): Ditto.
604 Fix PR gdb/773.
605
606 2002-11-19 Klee Dienes <kdienes@apple.com>
607 Adam Fedor <fedor@gnu.org>
608
609 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
610 the ability to explicitly specify the quote characters and word
611 break characters; if NULL is specified for either, use the old
612 behavior of using the characters used by the completer.
613 (skip_chars): New function. Convenience wrapper around
614 skip_quoted_chars to provide the original skip_chars behavior.
615 * completer.h (skip_quoted_chars): Add prototype.
616
617 2002-11-19 Andrew Cagney <ac131313@redhat.com>
618
619 Problems reported by Paul Eggert.
620 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
621
622 2002-11-19 Andreas Schwab <schwab@suse.de>
623
624 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
625 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
626 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
627 (m68k_linux_frame_saved_pc): Move to ...
628 * m68klinux-tdep.c: ... here. New file.
629 * Makefile.in (m68klinux-tdep.o): Add dependencies.
630 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
631
632 2002-11-19 Adam Fedor <fedor@gnu.org>
633
634 * objc-exp.y: Revert to old skip_quoted usage.
635
636 2002-11-19 Adam Fedor <fedor@gnu.org>
637
638 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
639 (objc_lang_h): Define.
640 (YYFILES): Add objc-exp.tab.c.
641 (local-maintainer-clean): Remove objc-exp.tab.c.
642 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
643
644 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
645
646 * p-exp.y (typecast rule): Add automatic dereference of
647 pascal classes if needed.
648 (THIS): Set current_type.
649 Automatically dereference pascal classes.
650 (typebase rule): Add ^typebase recognition.
651
652 2002-11-18 Adam Fedor <fedor@gnu.org>
653
654 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
655 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
656 (op_name): Handle OP_OBJC_SELF.
657 * Makefile.in (expprint.o): Add additional depends.
658
659 2002-11-18 Adam Fedor <fedor@gnu.org>
660
661 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
662 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
663 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
664 * objc-exp.y: Likewise.
665
666 2002-11-18 Adam Fedor <fedor@gnu.org>
667
668 * gdb/parser-defs.h: (struct objc_class_str): New structure
669 for parsing ObjC classes.
670
671 2002-11-18 Andrew Cagney <ac131313@redhat.com>
672
673 * stack.c (frame_relative_level): Copy function from here ...
674 * frame.c (frame_relative_level): ...to here.
675
676 2002-11-18 Andrew Cagney <ac131313@redhat.com>
677
678 * frame.h (enum frame_type): Define.
679 (get_frame_type): Declare.
680 (struct frame_info): Add field `type'. Delete field
681 signal_handler_caller.
682 (deprecated_set_frame_signal_handler_caller): Declare.
683 * frame.c (get_frame_type): New function.
684 (deprecated_set_frame_type): New function.
685 (create_new_frame): Set the frame's type.
686 (get_prev_frame): Similar.
687 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
688 * s390-tdep.c: Ditto.
689 * m68klinux-nat.c: Ditto.
690 * ns32k-tdep.c: Ditto.
691 * x86-64-linux-tdep.c: Ditto.
692 * vax-tdep.c: Ditto.
693 * rs6000-tdep.c: Ditto.
694 * ppc-linux-tdep.c: Ditto.
695 * i386-interix-tdep.c: Ditto.
696 * mips-tdep.c: Ditto.
697 * m68k-tdep.c: Ditto.
698 * hppa-tdep.c: Ditto.
699 * ia64-tdep.c: Ditto.
700 * cris-tdep.c: Ditto.
701 * arm-tdep.c: Ditto.
702 * alpha-tdep.c: Ditto.
703 * i386-tdep.c: Ditto.
704 * stack.c: Ditto.
705 * ada-lang.c: Ditto.
706 * blockframe.c: Update.
707 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
708 deprecated_set_frame_type instead of signal_handler_caller.
709 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
710 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
711 * breakpoint.h: Delete FIXME suggesting get_frame_type.
712
713 2002-11-18 Klee Dienes <kdienes@apple.com>
714
715 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
716
717 2002-11-18 Klee Dienes <kdienes@apple.com>
718
719 * buildsym.c (pop_context): Add comment.
720
721 2002-11-18 Klee Dienes <kdienes@apple.com>
722
723 * buildsym.h (pop_context): Convert to function, defined in
724 buildsym.c.
725 * buildsym.c: Include gdb_assert.h.
726 (pop_context): Implement as C function. Add check for stack
727 underflow.
728 * dbxread.c (process_one_symbol): Complain and stop processing
729 that symbol if we are already at the top of the context stack for
730 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
731 when processing N_RBRAC.
732
733 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
734
735 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
736 define.
737 (struct target_waitstatus): Add opaque definition.
738 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
739 * exec.c (init_exec_ops): Likewise.
740 * fork-child.c (clone_and_follow_inferior): Remove.
741 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
742 * inferior.h (clone_and_follow_inferior): Remove prototype.
743 * infrun.c (follow_fork_mode_both): Remove.
744 (follow_fork_mode_kind_names): Remove commented out "both".
745 (follow_inferior_fork): Remove follow_fork_mode_both support.
746 * inftarg.c (child_clone_and_follow_inferior): Remove.
747 (child_post_follow_inferior_by_clone): Remove.
748 (init_child_ops): Don't set to_clone_and_follow_inferior
749 or to_post_follow_inferior_by_clone.
750 * target.c (default_clone_and_follow_inferior): Remove.
751 (cleanup_target): Don't set to_clone_and_follow_inferior
752 or to_post_follow_inferior_by_clone.
753 (find_default_clone_and_follow_inferior): Remove.
754 (init_dummy_target): Don't set to_clone_and_follow_inferior.
755 (debug_to_clone_and_follow_inferior): Remove.
756 (debug_to_post_follow_inferior_by_clone): Remove.
757 (setup_target_debug): Don't set to_clone_and_follow_inferior
758 or to_post_follow_inferior_by_clone.
759 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
760 and to_post_follow_inferior_by_clone.
761 (child_clone_and_follow_inferior): Remove prototype.
762 (child_post_follow_inferior_by_clone): Remove prototype.
763 (target_clone_and_follow_inferior): Remove macro.
764 (target_post_follow_inferior_by_clone): Remove macro.
765 (find_default_clone_and_follow_inferior): Remove prototype.
766
767 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
768
769 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
770 inferior_has_vforked, and inferior_has_execd instead of
771 target_has_forked, target_has_vforked, and target_has_execd.
772 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
773 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
774 (CHILD_WAIT): Define.
775 (child_wait): Add prototype.
776 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
777 Add prototype.
778 (hpux_has_vforked): Likewise, from child_has_vforked.
779 (hpux_has_execd): Likewise, from child_has_execd.
780 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
781 (not_same_real_pid, child_wait): New, copied from inftarg.c.
782 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
783 and hpux_has_syscall_event instead of the target hooks.
784 * infrun.c (inferior_has_forked, inferior_has_vforked)
785 (inferior_has_execd): New functions.
786 * inftarg.c (not_same_real_pid): Remove.
787 (child_wait): Remove references to not_same_real_pid,
788 target_has_forked, target_has_vforked, target_has_execd,
789 and target_has_syscall_event.
790 (child_has_forked, child_has_vforked, child_has_execd)
791 (child_has_syscall_event): Remove.
792 (init_child_ops): Remove references to child_has_forked,
793 child_has_vforked, child_has_execd, and child_has_syscall_event.
794 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
795 (hpux_has_vforked): Likewise, from child_has_vforked.
796 (hpux_has_execd): Likewise, from child_has_execd.
797 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
798 * target.c (cleanup_target): Remove references to
799 to_has_forked, to_has_vforked, to_has_execd, and
800 to_has_syscall_event.
801 (update_current_target): Likewise.
802 (setup_target_debug): Likewise.
803 (debug_to_has_forked): Remove.
804 (debug_to_has_vforked): Remove.
805 (debug_to_has_execd): Remove.
806 (debug_to_has_syscall_event): Remove.
807 * target.h (struct target_ops): Remove to_has_forked.
808 to_has_vforked, to_has_execd, and to_has_syscall_event.
809 (child_has_forked, child_has_vforked, child_has_execd)
810 (child_has_syscall_event): Remove prototypes.
811 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
812 prototypes.
813 (target_has_forked, target_has_vforked, target_has_execd)
814 (target_has_syscall_event): Remove macros.
815
816 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
817
818 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
819 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
820 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
821 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
822 * target.c (cleanup_target): Remove reference to
823 to_can_follow_vfork_prior_to_exec.
824 (update_current_target): Likewise.
825 (debug_to_can_follow_vfork_prior_to_exec): Remove.
826 (setup_target_debug): Remove reference to
827 to_can_follow_vfork_prior_to_exec.
828 * target.h (struct target_ops): Remove
829 to_can_follow_vfork_prior_to_exec.
830 (child_can_follow_vfork_prior_to_exec): Remove prototype.
831 (target_can_follow_vfork_prior_to_exec): Remove definition.
832 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
833 define.
834 * infrun.c (follow_vfork_when_exec): Remove.
835 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
836 (follow_exec): Likewise.
837 (handle_inferior_event): Likewise.
838 (keep_going): Likewise.
839
840 2002-11-15 Andrew Cagney <cagney@redhat.com>
841
842 * frame.c (generic_unwind_get_saved_register): Make static.
843 * frame.h (generic_unwind_get_saved_register): Delete declaration.
844 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
845 defaults to generic_unwind_get_saved_register.
846 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
847 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
848 * frv-tdep.c (frv_gdbarch_init): Ditto.
849 * i386-tdep.c (i386_gdbarch_init): Ditto.
850 * s390-tdep.c (s390_gdbarch_init): Ditto.
851 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
852 * v850-tdep.c (v850_gdbarch_init): Ditto.
853 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
854 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
855 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
856
857 2002-11-15 Andrew Cagney <cagney@redhat.com>
858
859 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
860 i386-tdep.c.
861
862 2002-11-15 Andrew Cagney <cagney@redhat.com>
863
864 * frame.h (sigtramp_saved_pc): Delete declaration.
865 * blockframe.c (sigtramp_saved_pc): Delete function.
866 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
867 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
868 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
869 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
870
871 2002-11-15 Andrew Cagney <ac131313@redhat.com>
872
873 * frame.c (frame_pc_unwind): New function.
874 (frame_saved_regs_pc_unwind): New function.
875 (frame_register_unwind): Pass unwind_cache instead of
876 register_unwind_cache.
877 (set_unwind_by_pc): Add unwind_pc parameter, set.
878 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
879 (get_prev_frame): Ditto.
880 * frame.h (frame_pc_unwind_ftype): Declare.
881 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
882 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
883 (frame_pc_unwind): Declare.
884 * dummy-frame.c (dummy_frame_pc_unwind): New function.
885 (struct dummy_frame): Add comment mentioning that values are for
886 previous frame.
887 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
888 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
889 (generic_file_frame_chain_valid): Ditto.
890 * stack.c (frame_info): Ditto.
891
892 2002-11-15 David Carlton <carlton@math.stanford.edu>
893
894 * linespec.c (locate_first_half): New function.
895 (decode_line_1): Move code into locate_first_half.
896
897 2002-11-15 Andrew Cagney <ac131313@redhat.com>
898
899 * complaints.h: Add comment explaining how to eliminate a
900 deprecated_complain call.
901 * complaints.h: Fix spelling errors.
902
903 2002-11-15 David Carlton <carlton@math.stanford.edu>
904
905 * printcmd.c: Remove #include "disasm.h".
906
907 2002-11-14 Andrew Cagney <ac131313@redhat.com>
908
909 * frame.h: Move the most relevant interface functions to the start
910 of the file.
911
912 2002-11-14 Andrew Cagney <ac131313@redhat.com>
913
914 * regcache.h (deprecated_registers): Rename registers.
915 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
916 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
917 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
918 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
919 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
920 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
921 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
922 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
923 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
924 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
925 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
926 * v850ice.c: Update.
927
928 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
929
930 * utils.c (gdb_realpath): Add comment mentioning realpath with a
931 NULL buffer.
932
933 2002-11-13 Andrew Cagney <cagney@redhat.com>
934
935 * regcache.h (deprecated_read_register_bytes): Rename
936 read_register_bytes.
937 (deprecated_write_register_bytes): Rename write_register_bytes.
938 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
939 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
940 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
941 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
942 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
943 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
944 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
945 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
946 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
947 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
948 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
949 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
950 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
951 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
952
953 2002-11-13 Jim Blandy <jimb@redhat.com>
954
955 * findvar.c (read_var_value): Doc fix.
956
957 2002-11-13 Andrew Cagney <cagney@redhat.com>
958
959 * regcache.c (struct regcache): Replace passthough_p with
960 readonly_p.
961 (regcache_xmalloc): Initialize readonly_p.
962 (build_regcache): Initialize readonly_p.
963 (regcache_save): New function.
964 (regcache_restore): New function.
965 (regcache_cpy): Re-implement using regcache_save and
966 regcache_restore.
967 (regcache_raw_read): Update.
968 (regcache_cooked_read): When a read-only cache, checked for cached
969 pseudo register values.
970 (regcache_raw_write): Assert that the cache is not read-only.
971 Remove code handling a non-passthrough cache.
972 * regcache.h (regcache_save): Declare.
973 (regcache_restore): Declare.
974
975 2002-11-13 Andrew Cagney <cagney@redhat.com>
976
977 * regcache.c (struct regcache_descr): Add fields
978 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
979 (init_legacy_regcache_descr): Compute the size of a cooked
980 register cache and then assign that to sizeof_raw_registers. Set
981 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
982 (init_legacy_regcache_descr): Ditto.
983
984 2002-11-13 Andrew Cagney <cagney@redhat.com>
985
986 * regcache.c (register_buffer): Move to near start of file, update
987 description.
988 (regcache_raw_read): Use.
989 (regcache_raw_write): Use.
990 (struct regcache): Rename raw_registers to registers and
991 raw_register_valid_p to register_valid_p.
992 (regcache_xmalloc): Update.
993 (regcache_xfree): Update.
994 (register_buffer): Update.
995 (regcache_cpy): Update.
996 (regcache_cpy_no_passthrough): Update.
997 (regcache_valid_p): Update.
998 (deprecated_grub_regcache_for_registers): Update.
999 (deprecated_grub_regcache_for_register_valid): Update.
1000 (set_register_cached): Update.
1001 (regcache_raw_write): Update.
1002
1003 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1004
1005 * p-exp.y (name_not_typename): Use copy_name to
1006 set current_type variable for fields of THIS.
1007
1008 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1011 * monitor.c (init_base_monitor_ops): Likewise.
1012 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1013 * remote-array.c (init_array_ops): Likewise.
1014 * remote-e7000.c (init_e7000_ops): Likewise.
1015 * remote-es.c (init_es1800_ops): Likewise.
1016 (init_es1800_child_ops): Likewise.
1017 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1018 * remote-sim.c (init_gdbsim_ops): Likewise.
1019 * remote-st.c (init_st2000_ops): Likewise.
1020 * sol-thread.c (init_sol_core_ops): Likewise.
1021 (init_sol_thread_ops): Likewise.
1022 * v850ice.c (init_850ice_ops): Likewise.
1023 * win32-nat.c (init_child_ops): Likewise.
1024 * wince.c (init_child_ops): Likewise.
1025
1026 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1027
1028 * utils.c (gdb_realpath): Make rp a constant pointer.
1029
1030 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1031
1032 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1033 a constant buffer; cannonicalize_file_name(); realpath() with a
1034 pathconf() defined buffer, xstrdup().
1035
1036 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1037
1038 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1039 to hang2.C; hang3.c to hang3.C.
1040
1041 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1042
1043 * findvar.c (read_var_value): Reenable TLS code.
1044
1045 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1046 Jim Blandy <jimb@redhat.com>
1047
1048 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1049 * target.c (update_current_target): Add
1050 to_get_thread_local_address.
1051 * target.h (to_get_thread_local_address): Export.
1052 (target_get_thread_local_address): Define.
1053 (target_get_thread_local_address_p): Define.
1054 * thread-db.c: Include solib-svr4.h.
1055 (td_thr_tls_get_addr_p): Define.
1056 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1057 (thread_db_get_thread_local_address): New function.
1058 (init_thread_db_ops): Initialize to_get_thread_local_address.
1059 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1060 * configure: Regenerate.
1061 * config.in: Regenerate.
1062
1063 2002-11-11 David Carlton <carlton@math.stanford.edu>
1064
1065 * linespec.c (set_flags): New function.
1066 (decode_line_1): Move code into set_flags.
1067
1068 2002-11-11 David Carlton <carlton@math.stanford.edu>
1069
1070 * linespec.c (decode_line_1): Move chunks of code to separate
1071 functions.
1072 (initialize_defaults): New function.
1073 (decode_indirect): New function.
1074
1075 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1076
1077 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1078 instead of void_code_ptr.
1079 (sigtramp_saved_pc): Ditto.
1080
1081 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1082 i386_fp_regnum_p.
1083
1084 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1085
1086 * gdbtypes.h (struct main_type): Move artificial flag out of
1087 loc. New member of ``struct field'' named static_kind. Reduce
1088 overloaded meaning of bitsize.
1089 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1090 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1091 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1092
1093 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1094 new fields.
1095 (template_to_fixed_record_type, template_to_static_fixed_type)
1096 (to_record_with_fixed_variant_part): Likewise.
1097 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1098 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1099 * dwarfread.c (struct_type, enum_type): Likewise.
1100 * hpread.c (hpread_read_enum_type)
1101 (hpread_read_function_type, hpread_read_doc_function_type)
1102 (hpread_read_struct_type): Likewise.
1103 * mdebugread.c (parse_symbol): Likewise.
1104
1105 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1106
1107 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1108 * stack.c (print_frame_info_base): Update.
1109 (print_frame_info_base, frame_info): Update.
1110 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1111 (sparc_frame_saved_pc): Update.
1112 * ada-lang.c (find_printable_frame): Update.
1113 * breakpoint.c (deprecated_frame_in_dummy): Update.
1114
1115 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1116
1117 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1118 defined.
1119 (regmap): Extend to cover all registers.
1120 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1121 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1122 definitions.
1123 (fetch_register, sore_register): Simplify.
1124 (old_fetch_inferior_registers, old_store_inferior_registers):
1125 Remove functions.
1126 (cannot_fetch_register, cannot_store_register): Change
1127 implementation to use regmap array to decide which registers
1128 cannot be fetched/stored. This removes $orig_eax from the
1129 registers that cannot be fetched/stored.
1130 (fetch_inferior_registers): Call fetch_register directly instead
1131 of calling old_fetch_inferior_registers.
1132 (store_inferior_registers): Call store_register directly instead
1133 of calling old_store_inferior_registers.
1134 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1135 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1136 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1137
1138 2002-11-09 Klee Dienes <kdienes@apple.com>
1139
1140 * i387-tdep.c (i387_supply_register): When called with NULL as a
1141 buffer, mark the register as not provided (to mirror the behavior
1142 of supply_register).
1143 (i387_supply_fxsave): Ditto.
1144 (i387_supply_fsave): Ditto (inherits the behavior from
1145 i387_supply_register).
1146
1147 2002-11-09 Klee Dienes <kdienes@apple.com>
1148
1149 * blockframe.c (sigtramp_saved_pc): Use
1150 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1151 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1152 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1153
1154 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1155
1156 * frame.c (get_prev_frame): Test prev_p to identify a previously
1157 unwound frame. Initialize prev_p.
1158 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1159 comment.
1160
1161 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1162
1163 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1164 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1165 more comments. Zap dead code.
1166
1167 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1168
1169 * infcmd.c (print_vector_info, print_float_info): Move code that
1170 checks whether the target has any registers and whether there is a
1171 selected frame up, such that it is also used if a target provides
1172 multi-arch definitions of these functions.
1173
1174 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1175
1176 * Makefile.in (DESTDIR): Define.
1177 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1178 prefix.
1179
1180 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1181 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1182
1183 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1184
1185 * i386-linux-tdep.c: Include "reggroups.h".
1186 (i386_linux_register_reggroup_p): New function.
1187 (i386_linux_init_abi): Set register_reggroup_p to
1188 i386_linux_register_reggroup_p.
1189 * i386-tdep.h (i386_register_reggroup_p): Declare.
1190 * i386-tdep.c: Include "reggroups.h".
1191 (i386_init_reggroups): New function.
1192 (i386_add_reggroups): New function.
1193 (i386_register_reggroup_p): New function.
1194 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1195 (_initialize_i386_tdep): Call i386_init_reggroups.
1196 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1197 specific reggroups.
1198
1199 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1200
1201 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1202 request that's available in *BSD.
1203
1204 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1205
1206 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1207 FDOFF_REGNUM.
1208
1209 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1210
1211 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1212 * dummy-frame.c (find_dummy_frame): Rename
1213 generic_find_dummy_frame, make static. Return the dummy frame
1214 instead of the regcache.
1215 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1216 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1217 (dummy_frame_register_unwind): Rename
1218 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1219 * dummy-frame.h (dummy_frame_register_unwind): Rename
1220 generic_call_dummy_register_unwind.
1221
1222 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1223
1224 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1225 except the inclusion of "i386/tm-i386.h", to...
1226 * config/i386/nm-i386v42mp.h: ...here.
1227 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1228
1229 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1230
1231 * Makefile.in (frame.o): Update dependencies.
1232 * blockframe.c (current_frame, frame_obstack_alloc)
1233 (frame_saved_regs_zalloc, get_current_frame)
1234 (set_current_frame, create_new_frame)
1235 (set_unwind_by_pc, get_next_frame)
1236 (flush_cached_frames, reinit_frame_cache)
1237 (frame_saved_regs_register_unwind)
1238 (deprecated_generic_get_saved_register)
1239 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1240 (_initialize_blockframe): Move frame code from here...
1241 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1242 "annotate.h" and "dummy-frame.h".
1243 (_initialize_frame): New function.
1244
1245 2002-11-08 Jim Blandy <jimb@redhat.com>
1246
1247 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1248 when we finish a function a context.
1249 * buildsym.h (outermost_context_p): New macro.
1250 (Bug analyzed by David Edelsohn.)
1251
1252 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1253
1254 * blockframe.c: Include "dummy-frame.h".
1255 (struct dummy_frame, dummy_frame_stack)
1256 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1257 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1258 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1259 (generic_save_call_dummy_addr, generic_pop_current_frame)
1260 (generic_pop_dummy_frame, generic_fix_call_dummy)
1261 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1262 dummy frame code from here...
1263 * dummy-frame.c: ...to here. New file.
1264 * dummy-frame.h: New file.
1265 (generic_call_dummy_register_unwind): Declare.
1266 (generic_find_dummy_frame): Declare.
1267 * Makefile.in (SFILES): Add dummy-frame.c.
1268 (dummy-frame.o): Specify dependencies.
1269 (dummy_frame_h): Define.
1270 (COMMON_OBS): Add dummy-frame.o.
1271 (blockframe.o): Update dependencies.
1272
1273 2002-11-08 Jim Blandy <jimb@redhat.com>
1274
1275 * dwarf2read.c (read_func_scope): Restore local_symbols and
1276 param_symbols after we finish the function context. (Based on a
1277 patch from David Edelsohn.)
1278
1279 2002-11-08 David Carlton <carlton@math.stanford.edu>
1280
1281 * linespec.c (symbol_found): New function.
1282 (minsym_found): New function.
1283 (decode_line_1): Separate out some code into separate functions.
1284
1285 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1286
1287 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1288 the benefit of the interix target.
1289 * i386-tdep.h (i386_frameless_signal_p): Declare.
1290
1291 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1292
1293 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1294 declaration that snuck in from change below.
1295
1296 2002-11-06 Andrew Cagney <cagney@redhat.com>
1297
1298 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1299 all callers.
1300 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1301 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1302 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1303 (i386_mxcsr_regnum_p): new function. Use instead of
1304 MXCSR_REGNUM_P.
1305 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1306 (i386_sse_regnum_p): Declare.
1307 (i386_mxcsr_regnum_p): Declare.
1308 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1309 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1310 (IS_FP_REGNUM): Update definition.
1311 (IS_FPU_CTRL_REGNUM): Update definition..
1312 (IS_SSE_REGNUM): Update definition..
1313 * i386v-nat.c (register_u_addr): Update.
1314 * go32-nat.c (fetch_register): Update.
1315 (store_register): Update.
1316
1317 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1318
1319 Preparation work to convert the hppa targets to multiarch partial.
1320
1321 * hppa-tdep.c: Add new functions replacing macro bodies from
1322 config/pa/tm-hppa.h. These function will be used to initialize
1323 the gdbarch structure. Import some comments from tm-hppa.h,
1324 and place them where appropriate, to avoid loosing them when
1325 we cleanup this file.
1326 (hppa_reg_struct_has_addr): New function.
1327 (hppa_inner_than): New function.
1328 (hppa_stack_align): New function.
1329 (hppa_pc_requires_run_before_use): New function.
1330 (hppa_instruction_nullified): New function.
1331 (hppa_register_byte): New function.
1332 (hppa_register_virtual_type): New function.
1333 (hppa_store_struct_return): New function.
1334 (hppa_cannot_store_register): New function.
1335 (hppa_frame_args_address): New function.
1336 (hppa_frame_locals_address): New function.
1337 (hppa_smash_text_address): New function.
1338 (hppa_coerce_float_to_double): New function. Requires the inclusion
1339 of "language.h".
1340
1341 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1342
1343 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1344 gdbarch-eligible macro to a call to the new associated function
1345 created in hppa-tdep.c.
1346 (INNER_THAN): Likewise.
1347 (STACK_ALIGN): Likewise.
1348 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1349 (INSTRUCTION_NULLIFIED): Likewise.
1350 (REGISTER_BYTE): Likewise.
1351 (REGISTER_VIRTUAL_TYPE): Likewise.
1352 (STORE_STRUCT_RETURN): Likewise.
1353 (CANNOT_STORE_REGISTER): Likewise.
1354 (FRAME_ARGS_ADDRESS): Likewise.
1355 (FRAME_LOCALS_ADDRESS): Likewise.
1356 (SMASH_TEXT_ADDRESS): Likewise.
1357 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1358 (ABOUT_TO_RETURN): Delete, as no longer used.
1359
1360 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1361
1362 * printcmd.c (disassemble_command): Remove obsolete function.
1363 (_initialize_printcmd): Do not create disassemble command here.
1364 * cli/cli-cmds.c (disassemble_command): New function. Implements
1365 disassemble command.
1366 (init_cli_cmds): Create disassemble command here instead.
1367
1368 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1369
1370 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1371
1372 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1373
1374 * regcache.h (regcache_cooked_read_using_offset_hack)
1375 (regcache_cooked_write_using_offset_hack): Delete declarations.
1376 (register_changed): Delete declaration.
1377 * regcache.c (regcache_cooked_read_using_offset_hack)
1378 (regcache_cooked_write_using_offset_hack): Delete functions.
1379 (cooked_xfer_using_offset_hack): Delete function.
1380 (register_changed): Delete function.
1381
1382 2002-11-07 Jim Blandy <jimb@redhat.com>
1383
1384 * macroscope.c: #include "complaints.h".
1385 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1386 but not in the macro table.
1387 * Makefile.in (macroscope.o): Record dependency.
1388
1389 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1390
1391 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1392
1393 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1394
1395 * regcache.c (deprecated_registers_fetched): Update.
1396 * regcache.h (deprecated_registers_fetched): Rename
1397 registers_fetched.
1398 * remote-vxsparc.c (vx_read_register): Update.
1399 * remote-vxmips.c (vx_read_register): Update.
1400 * remote-vx68.c (vx_read_register): Update.
1401 * irix5-nat.c (fetch_core_registers): Update.
1402 * mipsm3-nat.c (fetch_inferior_registers): Update.
1403 * sun3-nat.c (fetch_inferior_registers): Update.
1404 * symm-nat.c (fetch_inferior_registers): Update.
1405 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1406 (fetch_core_registers): Update.
1407 (fetch_kcore_registers): Update.
1408 * mips-nat.c (fetch_inferior_registers): Update.
1409 * corelow.c (get_core_registers): Update.
1410 * a68v-nat.c (fetch_inferior_registers): Update.
1411
1412 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1413
1414 Put in place the framework necessary for multiarching the hppa targets.
1415 * hppa-tdep.c (hppa_gdbarch_init): New function.
1416 (hppa_dump_tdep): New function.
1417 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1418 tdep structure dumper.
1419 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1420 until the multi-arching conversion has partially been completed.
1421
1422 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1423
1424 * valops.c (value_assign): Merge lval_register case into
1425 lval_reg_frame_relative. Use frame_register and
1426 regcache_cooked_write instead of get_saved_register and
1427 write_register_bytes. After flushing the register cache, try to
1428 re-select the selected frame.
1429
1430 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1431
1432 * regcache.h (deprecated_register_valid): Rename register_valid.
1433 * regcache.c: Update.
1434 * ia64-aix-nat.c: Update.
1435 * i386gnu-nat.c: Update.
1436 * alpha-nat.c: Update.
1437 * sparc-nat.c: Update.
1438 * lynx-nat.c: Update.
1439 * remote-mips.c: Update.
1440
1441 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1442
1443 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1444 to end of file, to be more consistent with the pratice followed
1445 by other targets.
1446
1447 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1448
1449 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1450 (print_float_info): Print registers in float_reggroup.
1451 (print_vector_info): Print registers in vector_reggroup.
1452 (default_print_registers_info): When all, print registers in
1453 all_reggroup. Otherwize, print registers in general_reggroup.
1454 (registers_info): Rewrite. Add support for register groups.
1455 Eliminate a goto.
1456
1457 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1458
1459 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1460 ages.
1461 (symtab_symbol_info): Remove eons old ifdeffed out code.
1462 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1463 command.
1464
1465 2002-11-06 Theodore A. Roth <troth@openavr.org>
1466
1467 * c-exp.y: Add missing semi-colons.
1468 * f-exp.y: Add missing semi-colons.
1469 * m2-exp.y: Add missing semi-colons.
1470 * p-exp.y: Add missing semi-colons.
1471 Add empty action to start rule to avoid a type clash error when
1472 building with bison >= 1.50.
1473
1474 2002-11-06 Jim Blandy <jimb@redhat.com>
1475
1476 * macrotab.h (struct macro_source_file): Doc fix.
1477
1478 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1479
1480 * varobj.c (child_exists, cplus_number_of_children): Change
1481 STREQ macro references to strcmp.
1482 (cplus_name_of_child): Change code to handle the fact that
1483 fields are not necessarily contiguous with regards to their
1484 access control. This is a fix for PR gdb/792.
1485
1486 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1487
1488 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1489 * gdbarch.h, gdbarch.c: Regnerate.
1490 * frame.h (frame_register): Declare.
1491 * frame.c (frame_register): New function.
1492 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1493 GET_SAVED_REGISTER, otherwize call
1494 generic_unwind_get_saved_register.
1495 (frame_register_read): Use frame_register instead of
1496 get_saved_register.
1497
1498 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1499
1500 From Jim Ingham <jingham@apple.com>:
1501 * event-top.c (gdb_disable_readline): New function.
1502 (_initialize_event_loop): Move comment.
1503
1504 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1505
1506 * event-loop.c (start_event_loop): Add comment.
1507 Update copyright.
1508
1509 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1510
1511 * infcmd.c (default_print_registers_info): Do not call
1512 PRINT_REGISTER_HOOK.
1513
1514 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1515
1516 * sparc-tdep.c (sparc_print_register_hook): Make static.
1517 (sparc_print_registers_info): New function.
1518 (sparc_do_registers_info): New function.
1519 (sparclet_print_registers_info): New function.
1520 (sparclet_do_registers_info): New function.
1521 (do_sparc_print_registers_info): New function.
1522 (sparc_print_registers): New static function, clone of infcmd.c's
1523 default_print_registers_info.
1524 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1525 (sparclet_do_registers_info): Declare.
1526 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1527 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1528 Re-define.
1529 (sparc_do_registers_info): Declare.
1530 (PRINT_REGISTER_HOOK): Delete macro.
1531 (sparc_print_register_hook): Delete declaration.
1532
1533 2002-11-05 David Carlton <carlton@math.stanford.edu>
1534
1535 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1536 functions.
1537 (lookup_symbol_aux_local): New function.
1538 (lookup_symbol_aux_symtabs): New function.
1539 (lookup_symbol_aux_psymtabs): New function.
1540
1541 2002-11-05 David Carlton <carlton@math.stanford.edu>
1542
1543 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1544 previous values of 'objfile' and 'block'.
1545
1546 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1547
1548 * values.c (value_change_enclosing_type): Set
1549 enclosing_type field correctly also for the case where
1550 more memory needs to be allocated.
1551
1552 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1553
1554 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1555 of puts_filtered.
1556
1557 * i387-tdep.c (i387_print_float_info): Replace calls to
1558 register_read and deprecated_read_register_gen with calls to
1559 frame_register_read, and make the necessary adjustments to the
1560 surrounding code.
1561
1562 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1563
1564 * gdbarch.sh (register_reggroup_p): Allow default value.
1565 * gdbarch.h, gdbarch.c: Regenerate.
1566
1567 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1568
1569 * regcache.h: Add coment indicating replacements for deprecated
1570 functions.
1571
1572 2002-11-02 Andrew Cagney <cagney@redhat.com>
1573
1574 * reggroups.h, reggroups.c: New files.
1575 * regcache.c: Include "reggroups.h".
1576 (enum regcache_dump_what): Add `regcache_dump_groups'.
1577 (regcache_dump): Contract size of the "Type" column. When
1578 specified, dump the register's groups.
1579 (maintenance_print_register_groups): New function.
1580 (_initialize_regcache): Add command `maint print register-groups'.
1581 * Makefile.in (COMMON_OBS): Add reggroups.o
1582 (SFILES): Add reggroups.c.
1583 (reggroups_h): Define.
1584 (regcache.o, gdbarch.o): Update dependencies.
1585 (reggroups.o): Specify dependencies.
1586 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1587 Add opaque declaration for `struct reggroup' in generated .h file.
1588 Include "reggroups.h" in generated .c file.
1589 gdbarch.h, gdbarch.c: Re-generate.
1590
1591 2002-11-02 Andrew Cagney <cagney@redhat.com>
1592
1593 * regcache.h (deprecated_read_register_gen): Rename
1594 read_register_gen.
1595 (deprecated_write_register_gen): Rename write_register_gen.
1596 * i387-tdep.c: Update.
1597 * x86-64-linux-nat.c: Update
1598 * wince.c: Update.
1599 * thread-db.c: Update.
1600 * win32-nat.c: Update.
1601 * mips-tdep.c: Update.
1602 * d10v-tdep.c: Update.
1603 * cris-tdep.c: Update.
1604 * remote-sim.c: Update.
1605 * remote-rdi.c: Update.
1606 * remote-rdp.c: Update.
1607 * frame.c: Update.
1608 * target.c: Update.
1609 * blockframe.c: Update.
1610 * x86-64-tdep.c: Update.
1611 * xstormy16-tdep.c: Update.
1612 * sh-tdep.c: Update.
1613 * s390-tdep.c: Update.
1614 * rs6000-tdep.c: Update.
1615 * sparc-tdep.c: Update.
1616 * i386-tdep.c: Update.
1617 * dwarf2cfi.c: Update.
1618 * regcache.c: Update.
1619
1620 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1621
1622 New interix-specific files:
1623 * config/i386/nm-interix.h: New file.
1624 * config/i386/interix.mh: New file.
1625 * config/i386/interix.mt: New file.
1626 * i386-interix-nat.c: New file.
1627 * i386-interix-tdep.c: New file.
1628
1629 2002-11-01 Andrew Cagney <cagney@redhat.com>
1630
1631 * frame.h (deprecated_generic_get_saved_register): Rename
1632 generic_get_saved_register.
1633 * blockframe.c (deprecated_generic_get_saved_register): Update.
1634 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1635 (xstormy16_frame_saved_register): Update.
1636 * sh-tdep.c (sh_gdbarch_init): Update.
1637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1638 * ia64-tdep.c (ia64_get_saved_register): Update.
1639 * cris-tdep.c (cris_gdbarch_init): Update.
1640 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1641 * arm-tdep.c (arm_gdbarch_init): Update.
1642
1643 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1644
1645 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1646
1647 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1650 trampolines in sigaction.
1651
1652 2002-10-31 Andrew Cagney <cagney@redhat.com>
1653
1654 * h8300-tdep.c: Include "gdb_assert.h".
1655 (h8300_print_register): Add gdbarch, file and frame parameters.
1656 Use frame_read_unsigned_register to read the register's value.
1657 Use fprintf_filtered to display output.
1658 (h8300_print_registers_info): Replace h8300_do_registers_info.
1659 (h8300_gdbarch_init): Set print_registers_info.
1660
1661 2002-10-31 Andrew Cagney <cagney@redhat.com>
1662
1663 * frame.c (frame_read_unsigned_register): New function.
1664 (frame_read_signed_register): New function.
1665 * frame.h (frame_read_unsigned_register): Declare.
1666 (frame_read_signed_register): Declare.
1667
1668 2002-10-31 Andrew Cagney <cagney@redhat.com>
1669
1670 * h8500-tdep.c (h8500_print_registers_info): New static function,
1671 clone of infcmd.c's default_print_registers_info.
1672 (h8500_do_registers_info): New funtion.
1673 (h8500_print_register_hook): Rename print_register_hook, make
1674 static.
1675
1676 * config/h8500/tm-h8500.h: Update copyright.
1677 (DEPRECATED_DO_REGISTERS_INFO): Define.
1678 (h8500_do_registers_info: Declare.
1679 (PRINT_REGISTER_HOOK): Delete macro.
1680 (print_register_hook): Delete function.
1681
1682 2002-10-31 Andrew Cagney <cagney@redhat.com>
1683
1684 * z8k-tdep.c (z8k_print_register_hook): Make static.
1685 (z8k_print_registers_info): New static function, clone of
1686 infcmd.c's default_print_registers_info.
1687 (z8k_do_registers_info): New function. Wrap
1688 z8k_print_registers_info.
1689 * config/z8k/tm-z8k.h: Update copyright.
1690 (PRINT_REGISTER_HOOK): Delete macro.
1691 (z8k_print_register_hook): Delete declaration.
1692 (DEPRECATED_DO_REGISTERS_INFO): Define.
1693 (z8k_do_registers_info): Declare.
1694
1695 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1696
1697 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1698 as this is already provided by value.h, and was actually causing
1699 a compilation error because of a conflict in parameter type
1700 declaration due to a missing const keyword.
1701 (low_text_segment_addres): Fix a compilation warning.
1702
1703 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1704
1705 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1706 registers without a name.
1707 (mips_linux_cannot_store_register): Don't store registers without
1708 a name.
1709
1710 2002-10-28 David Carlton <carlton@math.stanford.edu>
1711
1712 * symtab.c (find_addr_symbol): Delete. (It was already commented
1713 out.)
1714 * symtab.h: Delete prototype for find_addr_symbol.
1715
1716 2002-10-26 Andrew Cagney <cagney@redhat.com>
1717
1718 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1719 DO_REGISTERS_INFO.
1720 gdbarch.h, gdbarch.c: Re-generate.
1721 * infcmd.c (default_print_registers_info): Update reference.
1722 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1723 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1724 * sh-tdep.c (sh_gdbarch_init): Ditto.
1725 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1726 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1727
1728 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1729
1730 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1731 cfi_init_extra_frame_info.
1732 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1733 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1734
1735 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1736 target where necessary. Add more comments and remove the ones
1737 that don't provide any useful information.
1738
1739 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1740 deprecated_read_register_dummy with
1741 frame_unwind_unsigned_register.
1742
1743 * i386-tdep.c (i386_extract_struct_value_address): Use
1744 regcache_raw_read_unsigned instead of
1745 regcache_cooked_read_unsigned since we know that the register
1746 we're reading isn't a pseudo register. Rename variable 'val' into
1747 the more descriptive 'addr'.
1748
1749 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1750 (x86_64_push_return_address): Add comment.
1751 (x86_64_pop_frame): Make static.
1752 (examine_argument): Clarify comment.
1753 (x86_64_skip_prologue): Make prolog_expact variable static.
1754
1755 * dwarf2cfi.c: Fix some formatting problems.
1756 (context_cpy, read_encoded_pointer): Clarify comments.
1757
1758 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1759 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1760 i386 target back into x86_64_gdbarch_init. Add some comments and
1761 remove meaningless ones.
1762
1763 2002-10-25 Andrew Cagney <cagney@redhat.com>
1764
1765 * complaints.h (struct deprecated_complaint): Rename `struct
1766 complaint'.
1767 * complaints.c (complain): Update.
1768 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1769 incorrect comment indicating that "symfile.h" was being included
1770 for the `struct complaint' definition.
1771 * remote-vx.c: Update.
1772 * objc-lang.c: Update.
1773 * xcoffread.c: Update.
1774 * hpread.c: Update.
1775 * mdebugread.c: Update.
1776 * stabsread.c: Update.
1777 * dwarf2read.c: Update.
1778 * dwarfread.c: Update.
1779 * elfread.c: Update.
1780 * coffread.c: Update.
1781 * stabsread.h: Update.
1782 * dbxread.c: Update.
1783 * buildsym.c: Update.
1784 * gdbtypes.c: Update.
1785 * macrotab.c: Update.
1786
1787 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1788
1789 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1790 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1791 (x86_64_init_abi): ...new function.
1792
1793 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1794 * i386v-nat.c: Include "i386-tdep.h".
1795
1796 2002-10-25 Andrew Cagney <cagney@redhat.com>
1797
1798 * gdbtypes.c (address_space_name_to_int): Update.
1799 (address_space_int_to_name): Update.
1800 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1801 multi-arch predicate.
1802 (address_class_name_to_type_flags): Ditto.
1803 * gdbarch.h, gdbarch.c: Re-generate.
1804
1805 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1806
1807 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1808
1809 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1810
1811 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1812
1813 * symtab.h (INIT_SAL): Delete macro.
1814 (init_sal): Export.
1815 * symtab.c (init_sal): New function.
1816
1817 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1818 to init_sal function call.
1819 (find_sal_from_funcs_and_line): Ditto.
1820 (all_sals_for_line): Ditto.
1821 * breakpoint.c (create_internal_breakpoint): Ditto.
1822 (create_fork_vfork_event_catchpoint): Ditto.
1823 (create_exec_event_catchpoint): Ditto.
1824 (parse_breakpoint_sals): Ditto.
1825 (watch_command_1): Ditto.
1826 (handle_gnu_4_16_catch_command): Ditto.
1827 (clear_command): Ditto.
1828 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1829 * infcmd.c (run_stack_dummy): Ditto.
1830 * infrun.c (process_event_stop_test): Ditto.
1831 (check_sigtramp2): Ditto.
1832 (step_over_function): Ditto.
1833 * linespec.c (decode_line_2): Ditto.
1834 (decode_line_1): Ditto.
1835 * source.c (line_info): Ditto.
1836 * symtab.c (find_pc_sect_line): Ditto.
1837
1838 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1839
1840 * dwarf2cfi.c (struct context)
1841 (struct context_reg): Moved to dwarf2cfi.h
1842 (context_alloc, frame_state_alloc, context_cpy):
1843 Made extern instead of static, removed prototypes.
1844 * dwarf2cfi.h (struct context)
1845 (struct context_reg): New, moved from dwarf2cfi.c
1846 (context_alloc, frame_state_alloc, context_cpy):
1847 New prototypes.
1848 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1849 Changed from static to extern.
1850 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1851 (LINUX_SIGCONTEXT_FP_OFFSET)
1852 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1853 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1854 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1855 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1856 set_gdbarch_*() calls now use x86-64 specific functions
1857 instead of DWARF2 CFI ones.
1858 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1859 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1860 (x86_64_init_extra_frame_info): New prototypes.
1861
1862 2002-10-23 David Carlton <carlton@math.stanford.edu>
1863
1864 * linespec.c: #include "parser-defs.h".
1865 Delete prototype for find_template_name_end.
1866 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1867
1868 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1869
1870 * NEWS: add recent mi fixes.
1871 * varobj.c (struct varobj): Add new "updated" flag.
1872 (new_variable): Default "updated" flag to 0.
1873 (varobj_set_value): Set "updated" flag to 1 if value
1874 changes.
1875 (varobj_update): Check varobj "updated" flag before
1876 comparing old and refreshed values. Fix for
1877 PR gdb/702.
1878
1879 2002-10-23 David Carlton <carlton@math.stanford.edu>
1880
1881 * parse.c (parse_exp_1): Use BLOCK_START.
1882 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1883 SYMBOL_BLOCK_VALUE.
1884 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1885
1886 2002-10-23 David Carlton <carlton@math.stanford.edu>
1887
1888 * symtab.c: Delete cplusplus_hint.
1889 Delete prototype for find_template_name_end.
1890
1891 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1892
1893 * symtab.h: Update comment.
1894
1895 2002-10-23 Michael Snyder <msnyder@redhat.com>
1896
1897 * printcmd.c (address_info): Restore quotes in output.
1898 * valops.c (value_of_local): Restore quotes in error message.
1899
1900 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1901
1902 * symtab.c (symbol_demangled_name): New function.
1903 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1904 turning most of it into a function.
1905 (symbol_demangled_name): Export.
1906
1907 2002-10-23 Michael Snyder <msnyder@redhat.com>
1908
1909 * valops.c (value_of_local): Restore quotes in error message.
1910
1911 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1912
1913 * symtab.c (symbol_init_language_specific): New function.
1914 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1915 turning most of it into a function.
1916 (symbol_init_language_specific): Export.
1917
1918 2002-10-23 David Carlton <carlton@math.stanford.edu>
1919
1920 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1921 (dwarf_attr_name): Ditto.
1922 (dwarf_type_encoding_name): Ditto.
1923 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1924 (process_die): Handle DW_TAG_namespace,
1925 DW_TAG_imported_declaration, DW_TAG_imported_module.
1926 (read_namespace): New function.
1927
1928 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1929
1930 * configure.in: Define NEW_PROC_API on Interix too.
1931 * configure: Regenerate.
1932
1933 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1934
1935 * configure: Regenerate using the proper version of autoconf.
1936
1937 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1938
1939 * findvar.c (read_var_value): Temporarily disable TLS code, until
1940 complete TLS support is added.
1941
1942 2002-10-21 Jim Blandy <jimb@redhat.com>
1943 Elena Zannoni <ezannoni@redhat.com>
1944
1945 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1946 for thread local storage locations.
1947 (struct symbol): Add objfile field.
1948 (SYMBOL_OBJFILE): Define.
1949 * dwarf2read.c (is_thread_local): New static variable.
1950 (new_symbol): If variable is in thread local fill in address class
1951 and objfile appropriately.
1952 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1953 stack operation.
1954 * printcmd.c (address_info): Print the information for thread
1955 local storage variable.
1956 * findvar.c (read_var_value): In case of thread local variable,
1957 defer to the target vector code to compute address.
1958
1959 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1960
1961 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1962 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1963
1964 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1965
1966 * symtab.h (address_class): Rename
1967 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1968 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1969 * printcmd.c (address_info): Ditto.
1970 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1971
1972 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1973
1974 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1975 DBREG_DRX macro to acces debug registers.
1976
1977 * Makefile.in (i386obsd-tdep.o): New target.
1978
1979 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1980 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1981
1982 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1983 * config/i386/obsd.mt: New file.
1984 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1985 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1986 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1987 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1988 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1989 * i386obsd-tdep.c: New file.
1990
1991 2002-10-19 Adam Fedor <fedor@gnu.org>
1992
1993 * objc-exp.y (name_not_typename): Fix invalid comment.
1994
1995 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1996
1997 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1998 to allocate partial syms and macro byte caches.
1999
2000 2002-10-18 David Carlton <carlton@math.stanford.edu>
2001
2002 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2003
2004 2002-10-18 Adam Fedor <fedor@gnu.org>
2005
2006 * stabsread.c (find_name_end): New function.
2007 (define_symbol): Use it.
2008
2009 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2010
2011 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2012 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2013 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2014 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2015
2016 2002-10-17 David Carlton <carlton@math.stanford.edu>
2017
2018 * symfile.h: Add opaque declaration for struct obstack.
2019 Declare obsavestring to take a const char *.
2020 * symfile.c (obsavestring): Make first argument a const char *.
2021
2022 2002-10-16 Adam Fedor <fedor@gnu.org>
2023
2024 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2025 names when matching breakpoints in current file.
2026
2027 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2028
2029 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2030 (read_tag_pointer_type): Add address class support.
2031 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2032 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2033 New methods.
2034 * gdbarch.h, gdbarch.c: Regenerate.
2035 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2036 (make_type_with_address_space, recursive_type_dump): Add address
2037 class support.
2038 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2039 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2040 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2041
2042 2002-10-16 Klee Dienes <kdienes@apple.com>
2043
2044 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2045 to get the last character of a char[] buffer, not
2046 name[sizeof(vptr_name)-1].
2047
2048 2002-10-14 Adam Fedor <fedor@gnu.org>
2049
2050 * symtab.h: New objc_specific struct.
2051 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2052 (SYMBOL_DEMANGLED_NAME): Likewise.
2053
2054 2002-10-14 Adam Fedor <fedor@gnu.org>
2055
2056 * symfile.c (init_filename_language_table): Add ObjC file extension.
2057
2058 2002-10-14 Adam Fedor <fedor@gnu.org>
2059
2060 * utils.c (puts_filtered_tabular): New function.
2061 (fprintf_symbol_filtered): Get ObjC demangled name.
2062 * defs.h (puts_filtered_tabular): Declared.
2063
2064 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2065
2066 * c-lang.h (c_type_print_varspec_prefix): Delete.
2067 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2068 ``need_post_space'' parameter. Adjust all callers.
2069
2070 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2071
2072 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2073 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2074 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2075 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2076
2077 2002-10-13 Adam Fedor <fedor@gnu.org>
2078
2079 * source.c (print_source_lines): Update comments.
2080
2081 2002-10-13 Adam Fedor <fedor@gnu.org>
2082
2083 * valops.c (value_of_local): New function.
2084 (value_of_this): Use it.
2085 * value.h (value_of_local): Declared.
2086
2087 2002-10-13 Adam Fedor <fedor@gnu.org>
2088
2089 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2090 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2091
2092 2002-10-12 Adam Fedor <fedor@gnu.org>
2093
2094 * language.c (binop_result_type): Add language_objc to case.
2095 (integral_type): Likewise.
2096 (character_type): Likewise.
2097 (string_type): Likewise.
2098 (boolean_type): Likewise.
2099 (structured_type): Likewise.
2100 (binop_type_check): Likewise.
2101
2102 2002-10-11 Adam Fedor <fedor@gnu.org>
2103
2104 * printcmd.c (address_info): Print 'self' for ObjC.
2105
2106 2002-10-11 Adam Fedor <fedor@gnu.org>
2107
2108 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2109 OP_SELF.
2110
2111 2002-10-11 Adam Fedor <fedor@gnu.org>
2112
2113 * language.h (CAST_IS_CONVERSION): Add language_objc.
2114
2115 2002-10-11 Adam Fedor <fedor@gnu.org>
2116
2117 * defs.h (enum language): Add language_objc.
2118
2119 2002-10-11 Klee Dienes <kdienes@apple.com>
2120
2121 * corefile.c (read_memory_typed_address): New function.
2122 * gdbcore.h (read_memory_typed_address): Add prototype.
2123 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2124 to read a value destined for a CORE_ADDR, not read_memory_integer.
2125 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2126 (f77_get_dynamic_lowerbound): Ditto.
2127
2128 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2129
2130 * utils.c (string_to_core_addr): After turning string into
2131 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2132 which will do necessary sign-extension, etc.
2133
2134 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2135
2136 * c-exp.y (THIS): Delete token and grammar rule.
2137 (yylex): Don't return THIS.
2138 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2139 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2140 * demangle.c (cplus_markers): Update comment. Put '$'
2141 first. Remove CPLUS_MARKER.
2142 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2143 * jv-exp.y (THIS): Delete token and grammar rule.
2144 (yylex): Don't return THIS.
2145 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2146 * objc-exp.y (THIS): Delete token and grammar rule.
2147 (yylex): Don't return THIS.
2148 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2149 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2150 (read_member_functions): Likewise for opname.
2151 (read_tilde_fields): Use is_cplus_marker.
2152
2153 * defs.h (CPLUS_MARKER): Don't define.
2154 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2155 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2156 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2157 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2158 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2159
2160 * config/i386/tm-i386v4.h: Delete file.
2161 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2162 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2163 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2164 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2165 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2166 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2167 * config/i386/i386v4.mt (TM_FILE): Likewise.
2168 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2169
2170 2002-10-10 Marko Mlinar <markom@opencores.org>
2171
2172 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2173 accidentially not commited 2002-10-09
2174 * gdbarch.h, gdbarch.c: Re-generate.
2175
2176 2002-10-09 Marko Mlinar <markom@opencores.org>
2177
2178 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2179 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2180 * gdbarch.h, gdbarch.c: Re-generate.
2181
2182 2002-10-08 Petr Sorfa <petrs@caldera.com>
2183
2184 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2185
2186 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2187 so we can work on more than one compilation unit at a time. This
2188 helps prepare GDB to handle inter-CU die references.
2189 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2190 the code to be defined before struct comp_unit_head.
2191 (comp_unit_head): Added new members - offset, cu_head,
2192 begin_die, next and dwarf2_abbrevs.
2193 (dwarf2_abbrevs): Removed single static var; now member of
2194 struct comp_unit_head.
2195 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2196 members.
2197 (psymtab_to_symtab_1): Changed to work with the new
2198 struct comp_unit_head.
2199 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2200 constructs the dwarf2_abbrevs[] inside the cu_header.
2201 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2202 dwarf2_abbrev table to clean up.
2203 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2204 handling of dwarf2_abbrevs inside the cu_header.
2205 (read_partial_die): Now supports the call to the new
2206 dwarf2_lookup_abbrev.
2207 (read_full_die): Now supports the call to the new
2208 dwarf2_lookup_abbrev.
2209
2210 2002-10-06 Christopher Faylor <cgf@redhat.com>
2211
2212 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2213 insure that shell variables, such as "transformed_name" are propagated
2214 to later shell statements in rule.
2215
2216 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2217
2218 * config/i386/nm-i386sco.h: Add protection against
2219 multiple-inclusion. Include "i386/nm-i386v.h".
2220 (REGISTER_U_ADDR): Remove define.
2221 (i386_register_u_addr): Remove prototype.
2222
2223 2002-10-04 Michael Snyder <msnyder@redhat.com>
2224
2225 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2226 before treating it as a single-step event.
2227
2228 2002-10-03 Adam Fedor <fedor@gnu.org>
2229
2230 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2231 (objc_demangle): Remove assignment in if statements, Replace
2232 free with xfree.
2233 (add_msglist): Likewise.
2234 (end_msglist): Likewise.
2235 (complare_selectors): Likewise.
2236 (selectors_info): Likewise.
2237 (compare_classes): Likewise.
2238 (classes_info): Likewise.
2239 (print_object_command): Likewise.
2240 (find_objc_msgcall_submethod): Replace PTR with void *.
2241 * objc-lang.h: Remove check for __STDC__.
2242
2243 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2244
2245 * ui-out.h (ui_out_field_fmt_int): New prototype.
2246 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2247 of field width and alignment.
2248 * stack.c (print_frame_info_base): When printing frame level, use
2249 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2250 PR gdb/192
2251
2252 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2253
2254 * MAINTAINERS: Add self to Write After Approval list.
2255
2256 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2257
2258 * infcmd.c (interrupt_target_command_wrapper): Delete.
2259 (interrupt_target_command): Make non static.
2260 (nofp_registers_info): Make static.
2261 * stack.c (return_command_wrapper): Delete.
2262 (return_command): Make non static.
2263
2264 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2265
2266 * event-top.c (gdb_setup_readline): New function. Code moved from
2267 _initialize_event_loop().
2268 (_initialize_event_loop): Call gdb_setup_readline().
2269
2270 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2271
2272 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2273 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2274 * gdbarch.h, gdbarch.c: Re-generate.
2275
2276 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2277
2278 Fix PR gdb/778
2279 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2280 before recursing.
2281 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2282 of fill_in_vptr_fieldno.
2283
2284 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2285
2286 * inferior.h (registers_info, stepi_command, nexti_command,
2287 continue_command, interrupt_target_command): Export from infcmd.c.
2288 * frame.h (args_info, selected_frame_level_changed_hook,
2289 return_command): Export from stack.c.
2290 * v850ice.c (stepi_command, nexti_command, continue_command): use
2291 prototypes from inferior.h.
2292 * tracepoint.c (registers_info, args_info, locals_info): Use
2293 prototypes from frame.h and inferior.h.
2294 * Makefile.in (mi-main.o): Add dependency on frame.h.
2295
2296 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2297
2298 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2299 value in register 3 adjusted by ppc_gp0_regnum.
2300
2301 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2302
2303 2002-10-02 Marko Mlinar <markom@opencores.org>
2304
2305 * MAINTAINERS: Add myself to the Write After Approval list.
2306
2307 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2308
2309 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2310 of the section for the N64 ABI, fixed.
2311
2312 * config/mips/tm-irix6.h: Include solib.h.
2313
2314 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2315
2316 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2317 GNU operators.
2318
2319 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2320
2321 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2322 and that "mi0" syntax has been removed.
2323
2324 2002-09-30 David Carlton <carlton@math.stanford.edu>
2325
2326 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2327 * ppc-sysv-tdep.c: #include "gdb_string.h".
2328 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2329 pacify GCC.
2330
2331 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2332
2333 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2334 "vrsave"'s register number.
2335
2336 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2337
2338 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2339 use frame_unwind_signed_register to obtain the PC.
2340 (mips_frame_chain): Handle a generic dummy frame.
2341 (mips_init_extra_frame_info): When a generic dummy frame, don't
2342 re-compute the frame base.
2343 (mips_pop_frame): Handle generic dummy frames.
2344 (mips_gdbarch_init): When generic dummy frames, set
2345 use_generic_dummy_frames, push_dummy_frame to
2346 generic_push_dummy_frame, pc_in_call_dummy to
2347 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2348 generic_save_dummy_frame_tos.
2349
2350 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2351
2352 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2353 against TOP when TOP was explictly set.
2354 (generic_push_dummy_frame): Set TOP to zero.
2355
2356 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2357
2358 * event-loop.c (start_event_loop): Rename variable 'result' to
2359 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2360
2361 2002-09-30 Keith Seitz <keiths@redhat.com>
2362
2363 * gdb-events.sh (selected_thread_changed): New event.
2364 * gdb-events.c: Regenerated.
2365 * gdb-events.h: Regenerated.
2366
2367 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2368
2369 * MAINTAINERS: Add self to Write After Approval list.
2370
2371 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2372
2373 * disasm.c: New file.
2374 * disasm.h: New file.
2375 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2376 (compare_lines): Ditto.
2377 (dump_insns): Ditto.
2378 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2379 argument.
2380 (do_assembly_only): Ditto.
2381 (do_disassembly): Renamed to gdb_disassembly and moved to
2382 disasm.c. Sdded uiout argument.
2383 * Makefile.in: Add new files. Reorder SFILES list. Update
2384 dependencies. Include libgdb.a later in the insight executable.
2385
2386 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2387
2388 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2389 bfd/elf64-alpha-fbsd.c.
2390
2391 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2392
2393 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2394 i386gnu-tdep.c.
2395
2396 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2397
2398 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2399 __FUNCTION__.
2400 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2401 function name.
2402 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2403 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2404 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2405 (S_msg_sig_post_reply): Ditto.
2406
2407 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2408
2409 * sh-tdep.c (sh_use_struct_convention): Use definition according
2410 to ABI.
2411 (sh_push_arguments): Store in register with correct endianess.
2412 (sh_default_store_return_value): Ditto.
2413 (sh_gdbarch_init): Set sizeof long double to 8.
2414
2415 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2416
2417 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2418 Fix some whitespace problems.
2419
2420 2002-09-27 David Carlton <carlton@math.stanford.edu>
2421
2422 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2423 (mcore-tdep.o): Ditto.
2424 (ns32k-tdep.o): Ditto.
2425 (ns32knbsd-tdep.o): Ditto.
2426 (sh3-rom.o): Ditto.
2427 (vax-tdep.o): Ditto.
2428 * cris-tdep.c: #include "gdb_string.h"
2429 * mcore-tdep.c: Ditto.
2430 * ns32k-tdep.c: Ditto.
2431 * ns32knbsd-tdep.c: Ditto.
2432 * sh3-rom.c: Ditto.
2433 * vax-tdep.c: Ditto.
2434
2435 2002-09-27 David Carlton <carlton@math.stanford.edu>
2436
2437 * config/djgpp/fnchange.lst: Add entries for
2438 gdb/testsuite/gdb.c++/m-static files.
2439
2440 2002-09-27 Jim Wilson <wilson@redhat.com>
2441
2442 * MAINTAINERS: Add myself to the Write After Approval list.
2443
2444 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2445
2446 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2447
2448
2449 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2450
2451 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2452 frame.
2453
2454 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2455
2456 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2457 (rs6000_struct_return_address): Delete variable.
2458 (rs6000_store_struct_return): Update.
2459 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2460 deprecated_extract_struct_value_address.
2461 (rs6000_frame_align): New function.
2462 (rs6000_gdbarch_init): Set frame_align.
2463
2464 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2465
2466 From Grace Sainsbury <graces@redhat.com>:
2467 * Makefile.in (gdbtk-main.o): New target.
2468 (gdb.o): New target.
2469 (main_h): Define.
2470 (main.o): Update dependencies.
2471 (gdb$(EXEEXT)): Add gdb.o.
2472 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2473 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2474 (SUBDIR_GDBTK_CLEAN): Set.
2475 (install-gdbtk): Install the insight binary.
2476 (uninstall-gdbtk): New target.
2477 (all-gdbtk, clean-gdbtk): New rule.
2478 * top.c (use_windows): Default to zero.
2479 * main.c: Include "main.h".
2480 (main): Delete.
2481 (struct captured_main_args): Delete.
2482 (gdb_main): New function.
2483 * main.h: New file.
2484 * gdb.c: New File.
2485
2486 2002-09-25 Andrew Cagney <cagney@redhat.com>
2487
2488 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2489 (frame_map_regnum_to_name): New function.
2490 (frame_map_name_to_regnum): New function.
2491 * frame.h (frame_map_name_to_regnum): Declare.
2492 (frame_map_regnum_to_name): Declare.
2493 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2494 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2495 * parse.c: Do not include "builtin-regs.h".
2496 (target_map_name_to_register): Delete function.
2497 (write_dollar_variable): Use frame_map_name_to_regnum.
2498 * parser-defs.h (target_map_name_to_register): Delete declaration.
2499 * expprint.c: Include "frame.h".
2500 (print_subexp): Use frame_map_regnum_to_name.
2501 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2502 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2503
2504 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2505
2506 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2507 wasn't saved, and the next innermost frame is a dummy, return the
2508 dummy frame's link register.
2509
2510 2002-09-24 Jim Blandy <jimb@redhat.com>
2511
2512 Fix from Paul Breed:
2513 * main.c (captured_main): Add a `break' after the case for 'b'.
2514
2515 2002-09-24 Keith Seitz <keiths@redhat.com>
2516
2517 * varobj.c (c_type_of_child): Use get_target_type instead
2518 of TYPE_TARGET_TYPE.
2519
2520 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2521
2522 * source.c (get_current_or_default_source_symtab_and_line): Remove
2523 function.
2524 (set_default_source_symtab_and_line): New function. Attempts to
2525 determine a source file to list lines from if one is not currently
2526 defined.
2527 (get_current_source_symtab_and_line): Initialize sal.pc and
2528 sal.end fields.
2529 (set_current_source_symtab_and_line): Mark argument as const.
2530 * source.h: Update declarations and comments.
2531 * linespec.c (decode_line_1): Replace call to removed routine above.
2532 * stack.c (print_frame_info_base): Ditto.
2533 * cli/cli-cmds.c (edit_command): Ditto.
2534 (list_command): Ditto.
2535
2536 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2537
2538 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2539 sal.pc and sal.end fields.
2540 (get_current_or_default_source_symtab_and_line): Ditto.
2541 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2542 so we do not cause a new source symtab to be searched for (reverting an
2543 unintentional change from the 2002-09-20 patch).
2544 * scm-lang.c (scm_unpac): Ditto.
2545
2546 2002-09-21 Andrew Cagney <cagney@redhat.com>
2547
2548 * complaints.c (symfile_explanations): Remove new-line from
2549 ``isolated_message''.
2550 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2551 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2552
2553 2002-09-20 Nick Clifton <nickc@redhat.com>
2554
2555 * NEWS: Announce that V850EA ISA is no longer supported.
2556 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2557
2558 2002-09-20 David Carlton <carlton@math.stanford.edu>
2559
2560 * Makefile.in (c-lang.o): Correct dependencies.
2561 (utils.o): Gather dependencies.
2562 (charset.o): Move.
2563 * c-lang.c: #include "gdb_string.h"
2564
2565 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2566
2567 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2568 * cli/cli-cmds.c (list_command): New function. Implements the new
2569 cli edit command.
2570 (_init_cli_cmds): Add new command definition.
2571 * gdb.1: Document edit command.
2572 * doc/gdb.texinfo: Document edit command.
2573
2574 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2575
2576 * source.c: Make global variables current_source_symtab and
2577 current_source_line static.
2578 (list_command): Moved to cli/cli-cmds.c.
2579 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2580 (get_first_line_listed): New accessor function.
2581 (get_lines_to_list): New accessor function.
2582 (get_current_source_symtab_and_line): New function. Retrieves the
2583 position in the source code that we consider current.
2584 (get_current_or_default_source_symtab_and_line): New function.
2585 Like the above but attempts to determine a default position if one
2586 is not currently defined.
2587 (set_current_source_symtab_and_line): New function. Sets the source
2588 code position considered current and returns the previously set one.
2589 (clear_current_source_symtab_and_line): Reset stored information about
2590 a current source line.
2591 (_initialize_source): Remove registration for the "list" command and
2592 its alias.
2593 * source.h: Add declarations for the new functions above.
2594 * symtab.h: Remove declarations for the global variables mentioned
2595 above.
2596 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2597 obtain current source line.
2598 * linespec.c (decode_line_1): Ditto.
2599 * macroscope.c (default_macro_scope): Ditto.
2600 * scm-lang.c (scm_unpac): Ditto.
2601 * stack.c (print_frame_info_base): Ditto.
2602 * symfile.c (clear_symtab_users): Ditto.
2603 * symtab.c (decode_line_spec): Ditto.
2604 * cli/cli-cmds.c (list_command): Moved here from source.c.
2605 (ambiguous_line_spec): Moved here from source.c.
2606 (_init_cli_cmds): Add definition for "list" and its alias.
2607 * Makefile.in: Update dependencies.
2608
2609 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2610
2611 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2612 with what gcc thinks is correct.
2613
2614 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2615
2616 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2617 multiple register push instruction.
2618
2619 2002-09-19 Jim Blandy <jimb@redhat.com>
2620
2621 Add support for distinct host and target character sets.
2622 * charset.c, charset.h: New files.
2623 * c-exp.y: #include "charset.h".
2624 (yylex): Convert character and string literals to the target
2625 character set, before returning them as the semantic value of the
2626 token.
2627 * c-lang.c: #include "charset.h".
2628 (c_emit_char): Use charset-specific methods to recognize
2629 characters with backslash escape forms, to decide which characters
2630 to print literally and which to print using numeric escape
2631 sequences, and to convert target characters to host characters
2632 before printing.
2633 * utils.c: #include "charset.h".
2634 (no_control_char_error): New function.
2635 (parse_escape): Use charset-specific methods to recognize
2636 backslash escapes, parse `control character' notation, and convert
2637 characters from the host character set to the target character set.
2638 * configure.in: Set the default host character set.
2639 Check where to find iconv, and what its argument types might be.
2640 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2641 * Makefile.in (SFILES): List charset.c.
2642 (COMMON_OBS): List charset.o.
2643 (charset.o): New rule.
2644 (charset_h): New header dependency variable.
2645 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2646 (LIBICONV): New variable, set by configure.
2647 (CLIBS): Include $(LIBICONV) here.
2648 * aclocal.m4, config.in, configure: Regenerated.
2649
2650 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2651
2652 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2653 bison 1.35 warning.
2654
2655 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2656
2657 * gdb_mbuild.sh: New file.
2658
2659 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2660
2661 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2662
2663 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2664
2665 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2666 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2667 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2668 valops.c, value.h: Revert previous change.
2669
2670 2002-09-18 Michael Snyder <msnyder@redhat.com>
2671
2672 Preliminary support for Objective-C:
2673 * defs.h (language_objc): New enum value.
2674 (puts_filtered_tabular): Declaration only, exported from utils.c.
2675 (skip_quoted): Delete, declared in completer.h.
2676 * c-exp.y: Include completer.h.
2677 * p-exp.y: Ditto.
2678 * jv-exp.y: Ditto.
2679 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2680 New operator enum values.
2681 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2682 * language.c (binop_result_type): Handle language_objc case.
2683 (integral_type, character_type, string_type, boolean_type,
2684 structured_type, binop_type_check): Ditto.
2685 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2686 (struct objc_specific): Add to general_symbol_info.
2687 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2688 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2689 * parser-defs.h (struct objc_class_str): New struct type.
2690 (start_msglist, end_msglist, add_msglist): Declaration only,
2691 exported from objc-lang.c.
2692 * value.h (value_of_local, value_nsstring,
2693 call_function_by_hand_expecting_type): Exported from valops.c.
2694 * valops.c (find_function_addr): Export.
2695 (call_function_by_hand_expecting_type): New function.
2696 (value_of_local): New function.
2697 * symfile.c (init_filename_language_table): Add ".m" extension
2698 for Objective-C.
2699 * utils.c (puts_filtered_tabular): New function.
2700 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2701 (set/show demangle): Extend help-string to refer to ObjC.
2702 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2703 * stabsread.c (symbol_reference_defined): Objective-C symbols
2704 may contain colons: make allowances when scanning stabs strings
2705 for colons.
2706 (objc_find_colon): New function.
2707 * printcmd.c (address_info): If language == objc then print
2708 "self" instead of "this".
2709 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2710 OP_NSSTRING, and OP_SELF.
2711 (prefixify_subexp): Ditto.
2712 * source.c (print_source_lines): Mention objc in comment.
2713 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2714 method names.
2715
2716 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2717
2718 * complaints.h: Update copyright.
2719 (struct complaints): Declare.
2720 (struct complaint): Make `message' constant.
2721 (internal_complaint): Declare.
2722 (complaint): Declare.
2723 (complaint_root): Delete declaration.
2724 (symfile_complaints): Delete declaration.
2725 (struct complaints): Add opaque declaration.
2726 (clear_complaints): Add a complaints parameter.
2727 * complaints.c: Update copyright.
2728 (enum complaint_series): Define.
2729 (complaint_root): Delete.
2730 (struct complaints): Define.
2731 (complaint_sentinel, symfile_complaint_book): New variables.
2732 (symfile_explanations, symfile_complaints): New variables.
2733 New variables.
2734 (get_complaints): New function.
2735 (vcomplaint): New function.
2736 (complaint): New function.
2737 (internal_complaint): New function.
2738 (complain): Call vcomplain with symfile_complaint.
2739 (clear_complaints): Rewrite.
2740 (_initialize_complaints): Use add_setshow_command.
2741 * Makefile.in (complaints.o): Update dependencies.
2742 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2743 to call to clear_complaints.
2744 (new_symfile_objfile, reread_symbols): Ditto.
2745 (oldsyms_complaint): Delete.
2746 (empty_symtab_complaint, unknown_option_complaint): Delete.
2747 (free_named_symtabs): Use complaint instead of complain.
2748
2749 2002-09-18 Michael Snyder <msnyder@redhat.com>
2750
2751 Contributed by Apple Computer, Inc. Merged with current sources
2752 by Adam Fedor <fedor@doc.com> [cagney].
2753
2754 * objc-lang.c: First clean-up round: comments, indentation.
2755 * objc-lang.h: Ditto.
2756 * objc-lang.y: Ditto.
2757
2758 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2759
2760 * maint.c (maintenance_internal_error): Print the parameter as the
2761 error message.
2762 (maintenance_internal_warning): New function.
2763 (_initialize_maint_cmds): Add command `maint internal-warning'.
2764
2765 * defs.h (internal_warning, internal_vwarning): Declare.
2766 * utils.c (struct internal_problem): Define.
2767 (internal_vproblem): New function.
2768 (internal_warning): New function.
2769 (internal_vwarning): New function.
2770 (internal_warning_problem, internal_error_problem): New variables.
2771 (internal_verror): Just call internal_vproblem.
2772
2773 2002-09-18 Michael Snyder <msnyder@redhat.com>
2774
2775 * objc-lang.c: New file, support for Objective-C.
2776 Preliminary check-in, not yet integrated into gdb.
2777 * objc-lang.h: New file.
2778 * objc-exp.y: New file.
2779
2780 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2781
2782 * infrun.c (signal_stop_update): Convert definition to ISO C.
2783 (signal_print_update): Ditto.
2784 (signal_pass_update): Ditto.
2785 * inflow.c (terminal_save_ours): Ditto.
2786
2787 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2788 comments.
2789
2790 * config/djgpp/fnchange.lst: Handle name clashes between
2791 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2792 bfd/coff-tic80.c.
2793
2794 * i386-linux-tdep.h: Fix tipo.
2795
2796 2002-09-18 Adam Fedor <fedor@gnu.org>
2797
2798 * MAINTAINERS: Add myself to the Write After Approval list.
2799
2800 2002-09-18 Jim Blandy <jimb@redhat.com>
2801
2802 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2803 texthigh and textlow to reader-specific structs caused
2804 objfile_relocate to miss them. This is fixable, but the work that
2805 the change was supposed to prepare GDB for never got done anyway.
2806
2807 2002-09-18 David Carlton <carlton@math.stanford.edu>
2808
2809 * MAINTAINERS: Alphabetize Write After Approval list.
2810
2811 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2812
2813 Fix PR gdb/709
2814 * values.c (value_static_field): Call read_var_value.
2815
2816 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2817
2818 * valops.c (hand_function_call): Align the initial stack pointer
2819 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2820 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2821 return value.
2822 * mips-tdep.c (mips_frame_align): New function.
2823 (mips_gdbarch_init): Set frame_align.
2824 * gdbarch.sh (FRAME_ALIGN): New method.
2825 * gdbarch.h, gdbarch.c: Re-generate.
2826
2827 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2828
2829 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2830 registers.
2831
2832 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2833
2834 * NEWS: Mention that MIPS $fp behavior changed.
2835 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2836 reference to FP_REGNUM.
2837 (mipsnbsd_cannot_store_register): Ditto.
2838 * mips-linux-nat.c: Update copyright.
2839 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2840 (mips_linux_cannot_store_register): Ditto.
2841 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2842 * config/mips/tm-mips.h: Update copyright.
2843 (FP_REGNUM): Delete macro.
2844 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2845 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2846 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2847 (mips_r3041_reg_names, mips_r3051_reg_names)
2848 (mips_r3081_reg_names): Replace "fp" with "".
2849 Fix PR gdb/480.
2850
2851 2002-09-17 Theodore A. Roth <troth@verinet.com>
2852
2853 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2854 generic_read_register_dummy() (PR gdb/703).
2855 (avr_push_return_address): #if 0 out unused vars.
2856 (avr_gdbarch_init): Enable use of avr_push_return_address().
2857
2858 2002-09-17 Michael Snyder <msnyder@redhat.com>
2859
2860 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2861 RTE will take care of it.
2862
2863 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2864
2865 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2866 invalid, return SP_REGNUM.
2867
2868 2002-09-17 Michael Snyder <msnyder@redhat.com>
2869
2870 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2871 point registers without sign extension.
2872
2873 2002-09-17 Andrew Cagney <cagney@redhat.com>
2874
2875 * blockframe.c (deprecated_read_register_dummy): Rename
2876 generic_read_register_dummy.
2877 * frame.c (frame_unwind_signed_register): New function.
2878 (frame_unwind_unsigned_register): New function.
2879 * frame.h (frame_unwind_signed_register): Declare.
2880 (frame_unwind_unsigned_register): Declare.
2881 (deprecated_read_register_dummy): Rename
2882 generic_read_register_dummy.
2883
2884 * h8300-tdep.c (h8300_frame_chain): Update.
2885 (h8300_frame_saved_pc): Update.
2886 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2887 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2888 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2889 (s390_frame_chain): Update.
2890 * v850-tdep.c (v850_find_callers_reg): Update.
2891 (v850_frame_saved_pc): Update.
2892 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2893 (m32r_find_callers_reg): Update.
2894 (m32r_frame_saved_pc): Update.
2895 * sh-tdep.c (sh_find_callers_reg): Update.
2896 (sh64_get_saved_pr): Update.
2897 (sh_init_extra_frame_info): Update.
2898 (sh_init_extra_frame_info): Update.
2899 (sh64_init_extra_frame_info): Update.
2900 (sh64_init_extra_frame_info): Update.
2901 * mcore-tdep.c (mcore_find_callers_reg): Update.
2902 (mcore_frame_saved_pc): Update.
2903 (mcore_init_extra_frame_info): Update.
2904 * i386-tdep.c (i386_frame_saved_pc): Update.
2905 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2906 (ia64_init_extra_frame_info): Update.
2907 (ia64_init_extra_frame_info): Update.
2908 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2909 * cris-tdep.c (cris_init_extra_frame_info): Update.
2910 * avr-tdep.c (avr_frame_chain): Update.
2911 (avr_init_extra_frame_info): Update.
2912 (avr_frame_saved_pc): Update.
2913 * arm-tdep.c (arm_find_callers_reg): Update.
2914 (arm_init_extra_frame_info): Update.
2915 (arm_frame_saved_pc): Update.
2916
2917 2002-09-17 Tom Tromey <tromey@redhat.com>
2918
2919 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2920 is "'".
2921
2922 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2923
2924 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2925 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2926 NEXT_PROLOGUE_INSN.
2927 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2928 NEXT_PROLOGUE_INSN.
2929
2930 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2931
2932 * osfsolib.c: Remove file, replaced by solib-osf.c.
2933 * Makefile.in: Remove compilation rules for osfsolib.c.
2934
2935 2002-09-16 David Carlton <carlton@math.stanford.edu>
2936
2937 * cp-valprint.c (cp_print_class_method): Correct args to
2938 check_stub_method_group.
2939
2940 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2941
2942 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2943 `set architecture'. Unify naming convention of functions.
2944 (h8300_skip_prologue): Improve prologue analysis.
2945 (h8300_push_arguments): Rewritten to more closely match GCC's
2946 bizarre argument-passing behavior, along with the comment describing
2947 said behavior.
2948 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2949 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2950 sim, remote-e7000.c, remote-hms.c and remote.c
2951
2952 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2953
2954 * i386-tdep.c (gdb_print_insn_i386): Removed.
2955 (i386_print_insn): New function.
2956 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2957 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2958 tm_print_insn_info.
2959
2960 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2961
2962 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2963 zero.
2964
2965 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2966
2967 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2968 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2969 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2970
2971 2002-09-13 Christopher Faylor <cgf@redhat.com>
2972
2973 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2974
2975 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2976
2977 * gdbtypes.c (check_stub_method): Make static.
2978 (check_stub_method_group): New function.
2979 * gdbtypes.h: Update prototypes.
2980 * cp-support.c: New file.
2981 * cp-support.h: New file.
2982
2983 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2984 (update_method_name_from_physname): New function.
2985 (read_member_functions): Correct method names for operators
2986 and v3 constructors/destructors. Separate v2 constructors and
2987 destructors.
2988 * Makefile.in (stabsread.o): Update dependencies.
2989 (SFILES): Add cp-support.c.
2990 (COMMON_OBS): Add cp-support.o.
2991 (cp_support_h, cp-support.o): Add.
2992
2993 * cp-valprint.c (cp_print_class_method): Call
2994 check_stub_method_group instead of check_stub_method. Remove
2995 extraneous QUITs.
2996 * p-valprint.c (pascal_object_print_class_method): Likewise.
2997 * valops.c (search_struct_method): Likewise.
2998 (find_method_list, value_struct_elt_for_reference): Likewise.
2999
3000 2002-09-13 Andrew Cagney <cagney@redhat.com>
3001
3002 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3003 * gdbarch.h, gdbarch.c: Regenerate.
3004
3005 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3006
3007 * frame.c (find_saved_register): Delete function.
3008 * frame.h (find_saved_register): Delete declaration.
3009 Fix PR gdb/631.
3010
3011 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3012
3013 * mips-tdep.c (read_next_frame_reg): Re-hack using
3014 frame_register_unwind.
3015
3016 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3017
3018 * mips-tdep.c (mips_get_saved_register): Re-hack using
3019 frame_register_unwind.
3020
3021 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3022
3023 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3024 vector. Will be useful for Interix.
3025 * gdbarch.h, gdbarch.c: Regenerate.
3026
3027 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3028 name of the malloc function by NAME_OF_MALLOC.
3029
3030 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3031
3032 * value.h (find_function_in_inferior): Add const keyword to
3033 one of the parameters. Allows us to invoke this function with
3034 a const char *.
3035 * valops.c (find_function_in_inferior): Likewise.
3036
3037 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3038
3039 * exec.c (xfer_memory): Fix compilation warning with old versions
3040 of GCC.
3041 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3042
3043 2002-09-12 David Carlton <carlton@math.stanford.edu>
3044
3045 * symtab.h: Run through gdb_indent.h.
3046 Add 2002 to Copyright year list.
3047
3048 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3049
3050 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3051 mach constants.
3052 * MAINTAINERS: Add myself to write after approval list.
3053
3054 2002-09-11 J. Brobecker <brobecker@gnat.com>
3055
3056 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3057
3058 2002-09-11 J. Brobecker <brobecker@gnat.com>
3059
3060 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3061 Interix.
3062
3063 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3064
3065 * procfs.c (do_detach): Clear current signal, not just fault.
3066 Corrects problem with breakpoint trap signal leaking to detached
3067 process on Tru64.
3068
3069 2002-09-10 Michael Snyder <msnyder@redhat.com>
3070
3071 * buildsym.c (finish_block): Protect against null pointer.
3072
3073 2002-09-10 Andrew Cagney <cagney@redhat.com>
3074
3075 * infcmd.c (default_print_registers_info): Send all output to
3076 ``file'' instead of ``gdb_stdout''.
3077
3078 2002-09-10 Michael Snyder <msnyder@redhat.com>
3079
3080 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3081 LONGEST, and use signed register read (addresses are sign-
3082 extended for mips).
3083
3084 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3085
3086 * event-loop.c (gdb_do_one_event): Make public.
3087 * event-loop.h (gdb_do_one_event): Declare.
3088
3089 2002-09-10 Jeff Law <law@redhat.com>
3090
3091 * infttrace.c (child_resume): Simplify and rework to avoid
3092 TT_PROC_CONTINUE.
3093
3094 2002-09-09 Fred Fish <fnf@intrinsity.com>
3095
3096 * printcmd.c (print_scalar_formatted): "len" is the number of
3097 target bytes, NOT the number of target bits.
3098
3099 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3100
3101 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3102 * top.c (init_main): Set rl_terminal_name.
3103
3104 2002-09-08 Aidan Skinner <aidan@velvet.net>
3105
3106 * ada-lang.c (ada_array_bound, ada_type_match,
3107 _initialize_ada_language): Fix K&R definitions.
3108 * ada-tasks.c (get_current_task): Fix K&R definitions.
3109 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3110
3111 2002-09-07 Christopher Faylor <cgf@redhat.com>
3112
3113 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3114 Add XP.
3115
3116 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3117
3118 * i386-tdep.c (i386_register_virtual_type,
3119 i386_register_convertible, i386_register_convert_to_virtual,
3120 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3121 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3122 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3123 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3124 Don't set push_arguments twice.
3125
3126 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3127 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3128 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3129 sigtramp_end to NULL.
3130 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3131 defines.
3132 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3133
3134 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3135 whitespace.
3136
3137 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3138 * gdbarch.h, gdbarch.c: Re-generate.
3139 * blockframe.c (find_pc_sect_partial_function): Convert to use
3140 SIGTRAMP_START_P predicate.
3141
3142 2002-09-05 Michael Snyder <msnyder@redhat.com>
3143
3144 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3145 generic_dummy_frame method and old method. Also distinguish
3146 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3147 (arm_extract_return_value): Use new regcache method.
3148
3149 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3150 adjustment that doesn't conform to the ABI.
3151 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3152 saved regcache, not from current regcache.
3153
3154 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3155
3156 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3157 * README: Update.
3158
3159 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3160
3161 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3162 if arm_apcs_32 is false.
3163
3164 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3165
3166 GDB 5.3 branch created.
3167
3168 2002-09-03 Theodore A. Roth <troth@verinet.com>
3169
3170 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3171 generic_unwind_get_saved_register.
3172
3173 2002-09-03 David Carlton <carlton@math.stanford.edu>
3174
3175 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3176 argument (PR gdb/653). Update call to smash_to_method_type.
3177 (read_structure_scope): Update call to dwarf2_add_member_fn.
3178
3179 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3180
3181 * x86-64-linux-tdep.c: Include gdb_string.h
3182 * x86-64-linux-nat.c: Ditto.
3183
3184 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3185
3186 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3187 when YYDEBUG is set to 1.
3188 * c-exp.y: Likewise.
3189 * f-exp.y: Likewise.
3190 * jv-exp.y: Likewise.
3191 * m2-exp.y: Likewise.
3192 * p-exp.y: Likewise.
3193
3194 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3195
3196 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3197 dependency list.
3198 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3199 solib_svr4_fetch_link_map_offsets to
3200 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3201 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3202 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3203 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3204 solib-svr4.o, and solib-legacy.o.
3205 * config/i386/tm-nbsd.h: Include solib.h.
3206
3207 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3208
3209 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3210 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3211 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3212 comment noting that this needs its own target configuration.
3213 * config/i386/nbsd.mt: New file.
3214 * config/i386/nbsdaout.mt: Remove.
3215 * config/i386/nbsdelf.mt: Ditto.
3216 * config/i386/tm-nbsdaout.h: Ditto.
3217
3218 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3219
3220 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3221 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3222 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3223 tdep->sigtramp_end.
3224 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3225 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3226 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3227
3228 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3229
3230 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3231 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3232 * i386-tdep.h (i386bsd_init_abi): New prototype.
3233 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3234 function declaration.
3235 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3236 for NetBSD-a.out or NetBSD-ELF.
3237 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3238 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3239 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3240 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3241 and nbsd-tdep.h.
3242 (i386nbsd_pc_in_sigtramp): New function.
3243 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3244 i386nbsd_pc_in_sigtramp.
3245 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3246 and i386nbsdelf_init_abi OS ABI handlers.
3247 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3248 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3249
3250 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3251
3252 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3253 registers if the target really has them.
3254
3255 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3256
3257 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3258 than nbsd-tdep.h.
3259
3260 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3261
3262 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3263 list.
3264 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3265 (alphanbsd_skip_sigtramp_frame): New functions.
3266 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3267 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3268 to alphanbsd_sigcontext_addr.
3269
3270 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3271
3272 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3273 list.
3274 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3275 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3276 nbsd_pc_in_sigtramp.
3277 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3278 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3279 * nbsd-tdep.c: Include gdb_string.h.
3280 (nbsd_pc_in_sigtramp): New function.
3281 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3282 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3283 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3284 ppcnbsd_pc_in_sigtramp.
3285 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3286 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3287 shnbsd_pc_in_sigtramp.
3288 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3289 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3290 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3291
3292 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3293
3294 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3295 watchpoints to NULL.
3296 (insert_breakpoints): set val field of watchpoints if NULL.
3297
3298
3299 2002-08-29 Jim Blandy <jimb@redhat.com>
3300
3301 * symtab.c (lookup_symbol_aux): In the cases where we find a
3302 minimal symbol of an appropriate name and use its address to
3303 select a symtab to read and search, use `name' (as passed to us)
3304 as the demangled name when searching the symtab's global and
3305 static blocks, not the minsym's name.
3306
3307 2002-08-29 Keith Seitz <keiths@redhat.com>
3308
3309 * stack.c (print_frame_info_base): Always set current_source_symtab
3310 and current_source_line.
3311
3312 2002-08-29 Donn Terry <donnte@microsoft.com>
3313
3314 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3315
3316 2002-08-28 Keith Seitz <keiths@redhat.com>
3317
3318 * stack.c (select_frame): Add FIXME concerning selected-frame
3319 events.
3320 (select_frame_command): Send selected-frame-level-changed
3321 event notification, but only if the level actually changed.
3322 (up_silently_base): Add selected-frame-level-changed event
3323 notification.
3324 (down_silently_base): Likewise.
3325
3326 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3327
3328 * Makefile.in: Update dependencies for all gdb/*.c files.
3329
3330 2002-08-27 Tom Tromey <tromey@redhat.com>
3331
3332 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3333 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3334 Update dependencies.
3335 * i387-tdep.c: Include gdb_string.h.
3336 * osabi.c: Likewise.
3337 * i386-linux-nat.c: Likewise.
3338 * lin-lwp.c: Likewise.
3339 * ax-gdb.c: Likewise.
3340 * signals/signals.c: Likewise.
3341 * jv-valprint.c: Likewise.
3342 * p-lang.c: Likewise.
3343 * c-valprint.c: Likewise.
3344 * cp-abi.c: Likewise.
3345
3346 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3347
3348 * cli/cli-script.h (copy_command_lines): Export.
3349 * breakpoint.c: Include cli/cli-script.h.
3350 * Makefile.in (breakpoint.o): Update dependencies.
3351
3352 2002-08-26 Michael Snyder <msnyder@redhat.com>
3353
3354 * breakpoint.c (insert_breakpoints): Protect all references
3355 to 'process_warning'. Shorten long lines.
3356
3357 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3358
3359 * cli/cli-script.c (copy_command_lines): New function.
3360 * defs.h (copy_command_lines): Export.
3361 * testsuite/gdb.base/commands.exp: New tests for commands
3362 attached to a temporary breakpoint, and for commands that
3363 delete the breakpoint they are attached to.
3364
3365 2002-08-26 Michael Snyder <msnyder@redhat.com>
3366
3367 * breakpoint.c (bpstat_stop_status): Instead of copying the
3368 pointer to the breakpoint commands struct, make a new copy
3369 of the struct and point to that.
3370 (bpstat_clear): Free the commands struct.
3371 (bpstat_clear_actions): Free the commands struct.
3372 (bpstat_do_actions): Free the command actions. Also execute
3373 the local cleanups, instead of deleting them.
3374 (delete_breakpoint): Leave the commands field of the bpstat
3375 chain alone -- it will be freed later.
3376
3377 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3378
3379 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3380 deleted in 2002-08-20 commit. This function is still used by
3381 ppc-linux-nat.c.
3382
3383 2002-08-26 Keith Seitz <keiths@redhat.com>
3384
3385 * gdb-events.sh: Add selected-frame-level-changed event.
3386 * gdb-events.c: Regenerated.
3387 * gdb-events.h: Regenerated.
3388
3389 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3390
3391 Fix PR gdb/393:
3392 * inflow.c (terminal_save_ours): New function to save terminal
3393 settings.
3394 * inferior.h (terminal_save_ours): Declare.
3395 * target.c (debug_to_terminal_save_ours): New function.
3396 (cleanup_target): Defaults to_terminal_save_ours.
3397 (update_current_target): Inherit to_terminal_save_ours.
3398 (setup_target_debug): Set to_terminal_save_ours.
3399 * target.h (target_terminal_save_ours): New to save terminal settings.
3400 (target_ops): New member to_terminal_save_ours.
3401 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3402 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3403 * inftarg.c (init_child_ops): Likewise.
3404 * m3-nat.c (init_m3_ops): Likewise.
3405 * procfs.c (init_procfs_ops): Likewise.
3406 * wince.c (init_child_ops): Likewise.
3407 * win32-nat.c (init_child_ops): Likewise.
3408 * sol-thread.c (init_sol_thread_ops): Likewise.
3409
3410 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3411
3412 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3413 use regcache_* functions.
3414 (i386_gdbarch_init): Set store_return_value instead of
3415 deprecated_store_return_value.
3416
3417 * regcache.c (regcache_raw_write_signed,
3418 regcache_raw_write_unsigned): New functions.
3419 * regcache.h (regcache_raw_write_signed,
3420 regcache_raw_write_unsigned): New prototypes.
3421
3422 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3423
3424 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3425 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3426 source file dependencies. Cleanup corresponding generator rules.
3427
3428 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3429
3430 * regcache.h (register_offset_hack): Declare.
3431 (regcache_cooked_read_using_offset_hack): Declare.
3432 (regcache_cooked_write_using_offset_hack): Declare.
3433
3434 * regcache.c (register_offset_hack): New function.
3435 (regcache_cooked_read_using_offset_hack): New function.
3436 (regcache_cooked_write_using_offset_hack): New function.
3437 (regcache_dump): Check that the registers, according to their
3438 offset, are packed hard against each other.
3439 (cooked_xfer_using_offset_hack): New function.
3440
3441 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3442
3443 * regcache.c (struct regcache_descr): Add field register_type.
3444 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3445 in as a parameter
3446 (init_regcache_descr): Initialize register_type. Pass the descr
3447 to init_legacy_regcache_descr. Use register_type instead of
3448 REGISTER_VIRTUAL_TYPE.
3449 (register_type): New function.
3450 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3451 * regcache.h (register_type): Declare.
3452
3453 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3454
3455 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3456 instead of deprecated_store_return_value. Fix fallout from
3457 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3458
3459 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3460
3461 * regcache.c (max_register_size): New function.
3462 (init_legacy_regcache_descr): Ensure that max_register_size is
3463 large enough for REGISTER_VIRTUAL_SIZE.
3464 * regcache.h (max_register_size): Declare.
3465
3466 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3467
3468 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3469 store_return_value.
3470 (e500_extract_return_value): Change type of valbuf pointer to
3471 void.
3472
3473 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3474
3475 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3476 workaround.
3477
3478 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3479 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3480 long long) to prevent compiler warning on 64-bit systems.
3481
3482 2002-08-23 Andrew Cagney <cagney@redhat.com>
3483
3484 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3485 (DEPRECATED_STORE_RETURN_VALUE): New method.
3486 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3487 * gdbarch.h, gdbarch.c: Re-generate.
3488
3489 * values.c (set_return_value): Pass current_regcache to
3490 STORE_RETURN_VALUE.
3491 * arch-utils.h (legacy_store_return_value): Declare.
3492 * arch-utils.c (legacy_store_return_value): New function.
3493 (legacy_extract_return_value): Update parameters.
3494
3495 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3496 STORE_RETURN_VALUE.
3497 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3498 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3499 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3500 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3501 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3502 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3503 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3504 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3505 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3506 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3507
3508 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3509 * i386-tdep.c (i386_extract_return_value): Update.
3510 * arch-utils.c (legacy_extract_return_value): Update.
3511 * frv-tdep.c (frv_gdbarch_init): Update.
3512 * cris-tdep.c (cris_gdbarch_init): Update.
3513 * d10v-tdep.c (d10v_gdbarch_init): Update.
3514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3515 * m68k-tdep.c (m68k_gdbarch_init): Update.
3516 * mcore-tdep.c (mcore_gdbarch_init): Update.
3517 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3518 * s390-tdep.c (s390_gdbarch_init): Update.
3519 * sparc-tdep.c (sparc_gdbarch_init): Update.
3520 * sh-tdep.c (sh_gdbarch_init): Update.
3521 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3522 * v850-tdep.c (v850_gdbarch_init): Update.
3523 * avr-tdep.c (avr_gdbarch_init): Update.
3524 * ia64-tdep.c (ia64_gdbarch_init): Update.
3525 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3526 * vax-tdep.c (vax_gdbarch_init): Update.
3527 * alpha-tdep.c (alpha_gdbarch_init): Update.
3528 * arm-tdep.c (arm_gdbarch_init): Update.
3529 * mips-tdep.c (mips_gdbarch_init): Update.
3530 * i386-tdep.c (i386_gdbarch_init): Update.
3531
3532 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3533
3534 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3535 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3536
3537 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3538
3539 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3540 problems.
3541
3542 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3543
3544 * infrun.c (handle_inferior_event): Move a comment outside of a
3545 function call, in order to avoid indent reformatting this part
3546 of the code in an unreadable way.
3547
3548 2002-08-23 Grace Sainsbury <graces@redhat.com>
3549
3550 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3551 when breakpoints fail. Move general breakpoint error messages to
3552 insert_breakpoints.
3553 * breakpoint.c (insert_breakpoints): Change warnings when
3554 breakpoints are nto inserted to specify the type. Remove call to
3555 memory_error when hardware breakpoints can't be inserted. Remove
3556 multiple calls to warning so all messages are sent to the user at
3557 once.
3558 (delete_breakpoints): Make insert error messsages more explicit.
3559
3560 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3561
3562 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3563 gdbserver/ChangeLog.
3564
3565 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3566
3567 * i386-tdep.c: Include "objfiles.h".
3568 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3569 skip_trampoline_code.
3570 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3571 (CPLUS_MARKER): Define to '.'.
3572
3573 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3574 member.
3575 (linux_corefile_thread_callback): Increase args->num_notes.
3576 (linux_make_note_section): Initialize thread_args.num_notes, and
3577 use it to determine whether notes for any threads were created.
3578
3579 2002-08-23 Donn Terry <donnte@microsoft.com>
3580
3581 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3582 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3583 and PCUNKILL.
3584 (write_with_trace): Conditionalize out the switch branch handling
3585 PCSHOLD if the corresponding macro is not defined. Likewise for
3586 PRSABORT and PRSTOP.
3587 This change will be needed by the Interix port.
3588
3589 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3590
3591 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3592 write_register wherever possible instead of manipulating the
3593 register bytes directly.
3594 Assign VALUE_CONTENTS to a variable and use that.
3595 The GPR numbers are now dependent on the architecture.
3596
3597 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3598
3599 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3600 ev_offset fields.
3601 (skip_prologue): Add support for BookE/e500 instructions.
3602 (e500_extract_return_value): New function.
3603 (frame_get_saved_regs): Add support for saving ev registers and
3604 pseudo gpr's.
3605 (e500_store_return_value): New function.
3606 (rs6000_gdbarch_init): Move up default intializations of
3607 deprecated_extract_return_value and store_return_value. Overwrite
3608 init of store_return_value with e500 specific version.
3609 Set extract_return_value for e500.
3610
3611 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3612
3613 * blockframe.c (generic_call_dummy_register_unwind): Use
3614 regcache_cooked_read to catch cases in which the variable is
3615 stored in a pseudo register.
3616
3617 2002-08-22 Andrew Cagney <cagney@redhat.com>
3618
3619 * NEWS: Mention that the i960 has been made obsolete.
3620 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3621 i960-tdep.c
3622 (remote-nrom.o): Obsolete target.
3623 (remote-nindy.o, i960-tdep.o): Ditto.
3624 * remote-nrom.c: Make file obsolete.
3625 * remote-nindy.c, remote-vx960.c: Ditto.
3626 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3627 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3628 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3629 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3630 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3631 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3632 i960-*-vxworks* obsolete.
3633 * MAINTAINERS: Note that the i960 is obsolete.
3634
3635 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3636
3637 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3638 detach to allow reinitialization.
3639
3640 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3641
3642 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3643 attempt).
3644
3645 2002-08-22 Jim Blandy <jimb@redhat.com>
3646
3647 * coffread.c (coff_symfile_read): Don't try to read the line
3648 number table from disk if the image file doesn't have a symbol
3649 table; we'll never actually look at the info anyway, and Windows
3650 ships DLL's with bogus file offsets for the line number data.
3651
3652 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3653
3654 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3655 an e500 executable.
3656
3657 2002-08-21 Michael Snyder <msnyder@redhat.com>
3658
3659 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3660 (MSYMBOL_SIZE): Replace macro with function.
3661 (DEFAULT_MIPS_TYPE): Delete unused macro.
3662 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3663 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3664
3665 2002-08-21 Jim Blandy <jimb@redhat.com>
3666
3667 * valops.c (value_cast): Simplify and correct logic for doing a
3668 static cast from a pointer to a base class to a pointer to a
3669 derived class.
3670
3671 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3672
3673 * infcmd.c (default_print_registers_info): Replace
3674 do_registers_info.
3675 (registers_info): Use gdbarch_print_registers_info instead of
3676 DO_REGISTERS_INFO.
3677 * inferior.h (default_print_registers_info): Replace
3678 do_registers_info.
3679 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3680 (DO_REGISTERS_INFO): Change to a predicate function.
3681 * gdbarch.h, gdbarch.c: Regenerate.
3682
3683 2002-08-21 Keith Seitz <keiths@redhat.com>
3684
3685 * gdb-events.sh: Add target-changed event.
3686 * gdb-events.c: Regenerated.
3687 * gdb-events.c: Regenerated.
3688 * valops.c (value_assign): Add target-changed event notification
3689 to inlval_register, lval_memory, and lval_reg_frame_relative.
3690
3691 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3692
3693 * NEWS: Add an entry regarding the improvement of the next/step
3694 operation on Alpha Tru64 multi-processor machines.
3695
3696 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3697
3698 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3699 directores.
3700 * Makefile.in: Update all _h macro definitions.
3701 * Makefile.in (install-gdbtk): Move to install section.
3702 (rdi-share/libangsd.a): Move to end of file.
3703
3704 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3705
3706 * frame.c (frame_register_unwind): When a register, set addrp to
3707 the register's byte.
3708
3709 2002-08-20 Michael Snyder <msnyder@redhat.com>
3710
3711 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3712 used locally, so move them from the target machine header to here.
3713 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3714 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3715 Make static.
3716 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3717
3718 2002-08-20 Andrew Cagney <cagney@redhat.com>
3719
3720 * NEWS: Mention that the Apollo line was made obsolete.
3721 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3722 m68*-hp-hpux* obsolete.
3723 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3724 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3725 * buildsym.c (make_blockvector): Make static.
3726 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3727 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3728 (ALLDEPFILES): Remove dstread.c.
3729 (dstread.o): Obsolete make rule.
3730 * dstread.c: Makefile obsolete.
3731 * dst.h: Ditto.
3732 * config/m68k/hp300hpux.mt: Ditto.
3733 * config/m68k/hp300hpux.mh: Ditto.
3734 * config/m68k/hp300bsd.mt: Ditto.
3735 * config/m68k/hp300bsd.mh: Ditto.
3736 * config/m68k/apollo68b.mt: Ditto.
3737 * config/m68k/apollo68v.mh: Ditto.
3738 * config/m68k/apollo68b.mh: Ditto.
3739
3740 2002-08-20 Michael Snyder <msnyder@redhat.com>
3741
3742 * mips-tdep.c (mips_in_return_stub): Make static.
3743 (mips_gdbarch_init): Set in_solib_return_trampoline.
3744 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3745
3746 2002-08-20 Michael Snyder <msnyder@redhat.com>
3747
3748 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3749 * gdbarch.c, gdbarch.h: Regenerate.
3750 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3751 Add.
3752 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3753
3754 2002-08-20 Michael Snyder <msnyder@redhat.com>
3755
3756 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3757 (mips_gdbarch_init): Set skip_trampoline_code,
3758 in_solib_call_trampoline.
3759 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3760 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3761
3762 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3763
3764 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3765
3766 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3767 vector type for ev registers.
3768 (e500_pseudo_register_read): New function.
3769 (e500_pseudo_register_write): New function.
3770 (e500_dwarf2_reg_to_regnum): New function.
3771 (PPC_UISA_NOFP_SPRS): New macro.
3772 (PPC_EV_REGS): New macro.
3773 (PPC_GPRS_PSEUDO_REGS): New macro.
3774 (registers_e500): New register set for e500.
3775 (variants): Add e500 variant.
3776 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3777 before setting architectural dependent variations. Initialize ev
3778 registers numbers. Add case for e500 architecture. Set the
3779 number of pseudo registers.
3780
3781 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3782
3783 * rs6000-tdep.c: Clean up comments.
3784
3785 2002-08-20 Andrew Cagney <cagney@redhat.com>
3786
3787 * h8300-tdep.c: Re-indent file.
3788
3789 2002-08-20 Jim Blandy <jimb@redhat.com>
3790
3791 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3792 default for this.
3793
3794 2002-08-20 Keith Seitz <keiths@redhat.com>
3795
3796 * breakpoints.c (watch_command_1): Use internal breakpoint
3797 when setting a watchpoint_scope breakpoint.
3798
3799 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3800
3801 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3802 (build_builtin_type_vec64i): Ditto.
3803 (build_builtin_type_vec128): Ditto.
3804 (build_builtin_type_vec128i): Ditto.
3805
3806 2002-08-19 Michael Snyder <msnyder@redhat.com>
3807
3808 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3809 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3810 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3811 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3812 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3813 CALL_DUMMY_ADDRESS): Delete.
3814 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3815 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3816 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3817 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3818 push_return_address.
3819 (mips_register_raw_size, mips_eabi_use_struct_convention,
3820 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3821 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3822 mips_init_extra_frame_info, mips_eabi_push_arguments,
3823 mips_n32n64_push_arguments, mips_push_return_address,
3824 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3825 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3826
3827 2002-08-19 Michael Snyder <msnyder@redhat.com>
3828
3829 * mips-tdep.c (mips_frame_num_args): New function.
3830 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3831 frame_saved_pc, frame_args_address, frame_locals_address,
3832 frame_num_args, and frame_args_skip.
3833 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3834 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3835 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3836 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3837
3838 2002-08-20 Michael Snyder <msnyder@redhat.com>
3839
3840 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3841 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3842 * mips-tdep.c (mips_store_struct_return): New function.
3843 (mips_extract_struct_value_address): New function.
3844 (mips_gdbarch_init): Set store_struct_return and
3845 extract_struct_value_address.
3846
3847 2002-08-20 David Carlton <carlton@math.stanford.edu>
3848
3849 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3850 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3851 (read_file_scope): Check that line_header is nonzero before
3852 decoding macro information.
3853
3854 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3855
3856 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3857 flag the general-purpose registers as floating-point on targets
3858 that don't support the floating-point registers.
3859
3860 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3861
3862 * rs6000-tdep.c (altivec_register_p): Delete.
3863 (rs6000_do_altivec_registers): Delete.
3864 (rs6000_altivec_registers_info): Delete.
3865 (rs6000_do_registers_info): Delete.
3866 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3867 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3868
3869 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3870
3871 * infcmd.c (do_registers_info): Print vector registers in hex
3872 format only.
3873 (print_vector_info): Check that printing registers
3874 makes sense.
3875 (print_float_info): Ditto.
3876
3877 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3878
3879 * mips-tdep.c (mips_gdbarch_init): Update.
3880 (mips_o32_extract_return_value): Rewrite.
3881 (mips_o32_store_return_value): Rewrite.
3882 (mips_o32_xfer_return_value): New function.
3883 (mips_xfer_register): Tweak debug print message. Allow for
3884 buf_offset when dumping the value transfered.
3885
3886 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3887
3888 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3889 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3890 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3891 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3892 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3893
3894 2002-08-14 Michael Snyder <msnyder@redhat.com>
3895
3896 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3897
3898 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3899
3900 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3901 register.
3902 (P): New macro to define a register as a pseudo register.
3903 (R, R4, R8, R16, FR32, R64, R0): Updated.
3904 (struct variant): Add new fields for number of pseudo registers
3905 and number of total registers.
3906 (tot_num_registers): New macro replacing....
3907 (num_registers): ...deleted macro.
3908 (num_registers): New function.
3909 (num_pseudo_registers): New function.
3910 (variants): Update all variants to intialize new fields correctly.
3911 Postpone initialization of number of pseudo regs and real regs.
3912 (init_variants): New function.
3913 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3914 registers offsets.
3915
3916 2002-08-19 David Carlton <carlton@math.stanford.edu>
3917
3918 * valops.c (search_struct_field): Change error message to treat
3919 return value of 0 from value_static_field as meaning that field is
3920 optimized out.
3921 (value_struct_elt_for_reference): Ditto.
3922 * values.c (value_static_field): Treat an unresolved location the
3923 same as a nonexistent symbol. Fix PR gdb/635.
3924 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3925 enclosed. Fix PR gdb/574.
3926 * MAINTAINERS: Add self to Write After Approval list.
3927
3928 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3929
3930 * mips-tdep.c (mips_xfer_register): New function.
3931 (mips_n32n64_extract_return_value): Rewrite.
3932 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3933 instead of deprecated_extract_return_value.
3934
3935 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3936
3937 * rs6000-tdep.c (TDEP): Delete macro.
3938 (branch_dest): Replace use of TDEP macro with its body.
3939 (rs6000_pop_frame): Ditto.
3940 (rs6000_push_arguments): Ditto.
3941 (rs6000_skip_trampoline_code): Ditto.
3942 (rs6000_frame_saved_pc): Ditto.
3943 (rs6000_frame_chain): Ditto.
3944 (rs6000_register_name): Ditto.
3945 (rs6000_register_byte): Ditto.
3946 (rs6000_register_raw_size): Ditto.
3947 (rs6000_register_virtual_type): Ditto.
3948 (rs6000_register_convertible): Ditto.
3949 (rs6000_convert_from_func_ptr_addr): Ditto.
3950
3951 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3952
3953 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3954 conditionally.
3955 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3956 MIPS_LINUX_JB_ELEMENT_SIZE.
3957 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3958 for MAX_REGISTER_RAW_SIZE arrays.
3959 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3960 MIPS_LINUX_JB_ELEMENT_SIZE.
3961
3962 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3963
3964 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3965
3966 2002-08-19 Aidan Skinner <aidan@velvet.net>
3967
3968 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3969 ada-valprint.c ada-tasks.c.
3970 (YYFILES): Add ada-exp.y.
3971 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3972 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3973 (ada-exp.tab.o): New target.
3974
3975 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3976
3977 * regcache.c (regcache_xfer_part): New function.
3978 (regcache_raw_read_part): New function.
3979 (regcache_raw_write_part): New function.
3980 (regcache_cooked_read_part): New function.
3981 (regcache_cooked_write_part): New function.
3982 * regcache.h (regcache_raw_read_part): Declare.
3983 (regcache_raw_write_part): Declare.
3984 (regcache_cooked_read_part): Declare.
3985 (regcache_cooked_write_part): Declare.
3986
3987 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3988
3989 * remote.c (remote_open_1): Add async_p.
3990 (remote_async_open_1): Delete.
3991 (open_remote_target): Delete.
3992 (remote_open, extended_remote_open): Update calls to remote_open_1.
3993 (remote_async_open, extended_remote_async_open): Call
3994 remote_open_1 instead of remote_async_open_1.
3995
3996 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3997
3998 * blockframe.c: Fix a few coding standard violations.
3999
4000 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4001
4002 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4003 here from ...
4004 * config/i386/tm-i386sco5.h: ... here. File removed.
4005 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4006
4007 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4008 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4009 (TM_FILE): Set to tm-i386.h.
4010 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4011 * config/i386/tm-i386v.h: Remove file.
4012 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4013 instead of "i386/tm-i386v.h".
4014 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4015 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4016 "i386/tm-i386v.h".
4017 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4018 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4019 "i386/tm-i386.h".
4020
4021 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4022
4023 * config/i386/nm-i386v.h: Add protection against
4024 multiple-inclusion.
4025 (i386_register_u_addr): Remove prototype.
4026 (register_u_addr): New prototype.
4027 (REGISTER_U_ADDR): Redefine accordingly.
4028 * i386v-nat.c: Improve several comments.
4029 (i386_register_u_addr): Change signature and rename to
4030 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4031 ubase variable.
4032
4033 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4034
4035 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4036 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4037 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4038 deprecated_extract_return_value.
4039 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4040 rename mips_o32o64_push_arguments.
4041 (mips_gdbarch_init): Update.
4042 (mips_extract_return_value): Delete.
4043 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4044 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4045 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4046 (mips_n32n64_extract_return_value): Clone
4047 mips_extract_return_value.
4048 (mips_store_return_value): Delete.
4049 (mips_o32_store_return_value): Clone mips_store_return_value.
4050 (mips_o64_store_return_value): Clone mips_store_return_value.
4051 (mips_eabi_store_return_value): Clone mips_store_return_value.
4052 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4053
4054 2002-08-18 Aidan Skinner <aidan@velvet.net>
4055
4056 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4057 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4058
4059 2002-08-18 Aidan Skinner <aidan@velvet.net>
4060
4061 * ada-lang.c: Run through gdb_indent.sh.
4062 * ada-lang.h: Run through gdb_indent.sh.
4063 * ada-tasks.c: Run through gdb_indent.sh.
4064 * ada-typeprint.c: Run through gdb_indent.sh.
4065 * ada-valprint.c: Run through gdb_indent.sh.
4066
4067 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4068
4069 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4070 ABI.
4071
4072 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4073
4074 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4075
4076 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4077 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4078
4079 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4080 write_register_gen instead of write_register_bytes.
4081
4082 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4083 i[3456]-*-osf1mk* configurations have been made obsolete.
4084 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4085 i[3456]86-*-osf1mk* hosts obsolete.
4086 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4087 targets obsolete.
4088 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4089 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4090 config/i386/i386m3.mt, config/i386/nm-m3.h,
4091 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4092 config/i386/i386mk.mh, config/i386/i386mk.mt,
4093 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4094 obsolete.
4095 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4096 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4097 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4098
4099 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4100
4101 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4102 (hppa_value_returned_from_stack): Declare.
4103 (hppa_extract_return_value): Declare.
4104 * config/pa/hppa.mt: New file.
4105 * configure.tgt: Recognize hppa*-*-*.
4106 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4107
4108 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4109
4110 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4111 comment.
4112
4113 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4114
4115 * top.c (gdb_rl_operate_and_get_next): Make sure
4116 operate-and-get-next functions correctly even when the history
4117 list is completely filled.
4118
4119 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4120
4121 * MAINTAINERS (Target Instruction Set Architectures): Rename
4122 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4123 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4124 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4125 already listed under Host/Native.
4126
4127 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4128 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4129 mips*-*-*.
4130
4131 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4132
4133 * config/ia64/ia64.mt: New file.
4134 * config/alpha/alpha.mt: New file.
4135 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4136 ia64-linux-gnu. Mention that ia64-elf is broken.
4137 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4138
4139 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4140
4141 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4142 generic_func_frame_valid instead of func_frame_valid.
4143
4144 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4145
4146 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4147 procfs appears to be broken when debugging on multi-processor
4148 machines. So enable software single stepping in order to avoid
4149 using the procfs interface to do next/step operations, using
4150 internal breakpoints instead.
4151
4152 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4153 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4154 make this pc address equal to the value it would have if the
4155 system stepping capability was used. Also set a new flag used
4156 to ensure that we don't readjust the PC one more time later.
4157
4158 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4159 address by DECR_PC_AFTER_BREAK when software single step is
4160 in use for this architecture, as this has already been taken
4161 care of in handle_inferior_event().
4162
4163 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4164
4165 * infrun.c (handle_inferior_event): Minor reformatting, to make
4166 a rather long condition expression easier to read.
4167
4168 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4169
4170 * Makefile.in (gdbtk.o): Move to end of file.
4171 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4172 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4173 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4174 (gdbtk-wrapper.o, gdbres.o): Ditto.
4175
4176 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4177
4178 * Makefile.in (copying.o): Separate out compile rule.
4179 (hpux-thread.o, procfs.o, signals.o): Ditto.
4180 (v850ice.o, z8k-tdep.o): Ditto.
4181 (tui-file.o): Move to TUI section.
4182 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4183 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4184
4185 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4186
4187 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4188 skip_trampoline_code, for better namespace-proofing.
4189
4190 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4191
4192 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4193
4194 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4195
4196 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4197
4198 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4199 signal, check whether we hit a breakpoint before checking for a
4200 single step breakpoint. Otherwise, GDB fails to notice that a
4201 breakpoint has been hit when stepping onto a breakpoint.
4202
4203 2002-08-16 Keith Seitz <keiths@redhat.com>
4204
4205 * gdb-events.sh (clear_gdb_event_hooks): New function.
4206 * gdb-events.c: Regenerate.
4207 * gdb-events.h: Regenerate.
4208
4209 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4210
4211 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4212 not_a_sw_breakpoint.
4213 * breakpoint.h (bpstat_stop_status): Add parameter names.
4214
4215 2002-08-16 Grace Sainsbury <graces@redhat.com>
4216
4217 * remote.c (remote_insert_hw_breakpoint)
4218 (remote_remove_hw_breakpoint): Fix calculation of length field
4219 for Z-packet.
4220
4221 2002-08-15 Michael Snyder <msnyder@redhat.com>
4222
4223 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4224 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4225 (supply_fpregset): Ditto.
4226
4227 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4228 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4229 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4230 (TARGET_READ_SP): Delete.
4231 (DO_REGISTERS_INFO): Delete.
4232 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4233 Delete.
4234 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4235 from macros to functions.
4236
4237 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4238 (mips_register_convertible, mips_register_convert_to_virtual,
4239 mips_register_convert_to_raw): Make static.
4240 (mips_read_sp): New function.
4241 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4242 (mips_do_registers_info): Make static.
4243 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4244 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4245 (mips_register_convert_from_type, mips_register_convert_to_type):
4246 New functions.
4247 (mips_gdbarch_init): Set up function_start_offset,
4248 register_virtual_size, pc_in_sigtramp.
4249
4250 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4251
4252 * infcmd.c (vector_info): New function.
4253 (_initialize_infcmd): Add command "info vector".
4254 (print_vector_info): New function.
4255
4256 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4257 * gdbarch.h, gdbarch.c: Regenerate.
4258
4259 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4260
4261 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4262 ``print_all''. Only print vector registers when ``print_all''.
4263
4264 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4265
4266 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4267 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4268
4269 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4270 Add `args' parameter.
4271 * gdbarch.h, gdbarch.c: Regenerate.
4272
4273 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4274
4275 * infcmd.c (float_info): Call print_float_info.
4276 (print_float_info): New function. By default, print the
4277 floating-point registers.
4278
4279 * arch-utils.h (default_print_float_info): Delete declaration.
4280 * arch-utils.c (default_print_float_info): Delete function.
4281
4282 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4283
4284 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4285 out define.
4286
4287 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4288 FRAME.
4289
4290 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4291 * configure.host: Make i[3456]86-*-aix host obsolete.
4292 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4293 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4294 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4295 config/i386/xm-i386aix.h: Make files obsolete.
4296 * i386aix-nat.c: Make file obsolete.
4297 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4298 (i386aix-nat.o): Make target obsolete.
4299
4300 * config/i386/nm-gnu.h: Removed.
4301 * config/i386/nm-i386gnu.h: New file.
4302 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4303 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4304 Moved here from ...
4305 * config/i386/tm-i386gnu.h: ... here. Removed.
4306 * config/i386/xm-i386gnu.h: Removed.
4307 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4308 (NAT_FILE): Set to nm-i386gnu.h.
4309 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4310 * i386-tdep.c: New file.
4311 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4312 (i386gnu-tdep.o): Specify dependencies.
4313
4314 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4315
4316 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4317 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4318 Adjust a few comments to reflect reality a bit closer.
4319 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4320 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4321 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4322 target_insert_watchpoint, target_remove_watchpoint):
4323 Move defines to ...
4324 * config/i386/nm-i386sco5.h: ... here.
4325 (kernel_u_size): Add prototype. Improve a few comments and add
4326 protection against multiple inclusion.
4327
4328 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4329 out define.
4330
4331 * uw-thread.c (SP_ARG0): Define if not already defined.
4332 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4333
4334 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4335
4336 * config/i386/tm-i386.h: Don't include "regcache.h".
4337
4338 * i387-tdep.h (i387_print_float_info): New prototype.
4339 * i387-tdep.c (print_i387_value, print_i387_ext,
4340 print_i387_status_word, print_i387_control_word): Add `struct
4341 ui_file *' argument and use it for output.
4342 (i387_print_float_info): Renamed from i387_float_info. Add
4343 `struct gdbarch *' and `struct ui_file *' arguments and use the
4344 latter for output.
4345 * i386-tdep.c: Include "i387-tdep.h".
4346 (i386_gdbarch_init): Set print_float_info.
4347 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4348 (FLOAT_INFO): Remove define.
4349
4350 2002-08-13 Michael Snyder <msnyder@redhat.com>
4351
4352 * mips-tdep.c (mips_push_arguments): Rename to
4353 mips_eabi_push_arguments, and tune for EABI.
4354 (MIPS_REGS_HAVE_HOME_P): Delete.
4355 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4356 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4357 Delete references to mips_regs_have_home_p.
4358
4359 2002-08-14 Keith Seitz <keiths@redhat.com>
4360
4361 * Makefile.in (install-gdbtk): Create insight plugin directory.
4362 Install plugins.tcl file.
4363
4364 2002-08-14 Keith Seitz <keiths@redhat.com>
4365
4366 * configure.in: Move SUBDIRS to near top of the file so that
4367 --enable options may add things to it.
4368 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4369 * configure: Regenerate.
4370
4371 2002-08-13 Michael Snyder <msnyder@redhat.com>
4372
4373 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4374 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4375 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4376
4377 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4378
4379 * vax-tdep.c (vax_get_saved_register): Delete function.
4380 (vax_gdbarch_init): Update.
4381 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4382 (ns32k_gdbarch_init): Update.
4383 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4384 (alpha_gdbarch_init): Update.
4385
4386 2002-08-13 Andrew Cagney <cagney@redhat.com>
4387
4388 * regcache.c (init_regcache_descr): Overallocate the
4389 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4390 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4391 nr_raw_registers.
4392 (set_register_cached): Add range checking assertions. Use
4393 current_regcache.
4394
4395 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4396
4397 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4398 numbers for MMX registers.
4399
4400 2002-08-13 Andrew Cagney <cagney@redhat.com>
4401
4402 * i386-tdep.c (i386_gdbarch_init): Use
4403 generic_unwind_get_saved_register.
4404
4405 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4406
4407 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4408 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4409 target vector.
4410 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4411 Delete. Add comment regarding this now-deleted target method.
4412
4413 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4414
4415 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4416 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4417 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4418 real PC and the page number (if it's within the memory bank window).
4419 (m68hc11_pseudo_register_write): Likewise when saving.
4420 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4421 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4422 (m68hc11_register_raw_size): And use 32-bit for it.
4423 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4424 16K memory bank is used by the prog; also use the virtual pc.
4425
4426 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4427
4428 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4429 (m68hc11_gdbarch_init): Install it in gdbarch.
4430 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4431 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4432 (MSYMBOL_SIZE): New for documentation.
4433 (insn_return_kind): Enum to specify how a function returns.
4434 (frame_extra_info): Cleanup and record the return mode.
4435 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4436 register in address computation.
4437 (m68hc11_get_return_insn): New to obtain the return instruction used
4438 by the function.
4439 (m68hc11_frame_init_saved_regs): Take into account the return
4440 instruction used by the function for far and interrupt functions.
4441 (m68hc11_init_extra_frame_info): Take into account page register.
4442 (m68hc11_frame_args_address): Adjust according to the return mode.
4443 (show_regs): Print page register only when it's used.
4444
4445 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4446
4447 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4448 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4449 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4450 registers.
4451 (m68hc11_register_raw_size): Likewise.
4452
4453 2002-08-13 Andrew Cagney <cagney@redhat.com>
4454
4455 * i386-tdep.c (i386_register_name): Handle mmx registers.
4456 (mmx_regnum_p): New function.
4457 (i386_mmx_names): New array.
4458 (mmx_num_regs): New variable.
4459 (i386_pseudo_register_read): New function.
4460 (i386_pseudo_register_write): New function.
4461 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4462
4463 * regcache.c (regcache_raw_read_unsigned): New function.
4464 (regcache_raw_read_signed): New function.
4465 * regcache.h (regcache_raw_read_unsigned): Declare.
4466 (regcache_raw_read_signed): Declare.
4467
4468 2002-08-13 Andrew Cagney <cagney@redhat.com>
4469
4470 * regcache.c (regcache_raw_read_as_address): Delete function.
4471 (regcache_cooked_read_signed): New function.
4472 (regcache_cooked_read_unsigned): New function.
4473 * regcache.h (regcache_cooked_read_signed): Declare.
4474 (regcache_cooked_read_unsigned): Declare.
4475 (regcache_raw_read_as_address): Delete declaration.
4476
4477 * blockframe.c (generic_read_register_dummy): Use
4478 regcache_cooked_read_unsigned.
4479 * i386-tdep.c (i386_extract_struct_value_address): Use
4480 regcache_cooked_read_unsigned.
4481
4482 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4483
4484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4485 double sizes according to ELF ABI flags.
4486 (gdbarch_tdep): Record elf_flags.
4487
4488 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4489
4490 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4491 (m6812_prolog): They can appear in 68HC12 function prologue.
4492 (m68hc11_frame_chain): Cleanup.
4493
4494 2002-08-12 Andrew Cagney <cagney@redhat.com>
4495
4496 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4497 declarations.
4498 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4499 (i386_linux_register_raw_size): Delete function.
4500 (i386_linux_init_abi): Update.
4501 * i386-tdep.c (i386_register_raw_size): Delete function.
4502 (i386_register_byte): Delete function.
4503 (i386_gdbarch_init): Update.
4504 (i386_register_size): Delete array.
4505 (i386_register_offset): Delete array.
4506
4507 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4508 (REGISTER_RAW_SIZE): Delete macro.
4509 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4510 (REGISTER_BYTE): Delete macro.
4511
4512 2002-08-11 Aidan Skinner <aidan@velvet.net>
4513
4514 * ada-lang.c (ada_lookup_partial_symbol)
4515 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4516 prototype names so that grep ^func works properly.
4517
4518 * ada-lang.c (ada_array_element_type)
4519 (ada_lookup_partial_symbol): Fix typos in parameter list.
4520
4521 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4522 Fix prototype names so that grep ^func works properly.
4523
4524 2002-08-10 Andrew Cagney <cagney@redhat.com>
4525 Elena Zannoni <ezannoni@redhat.com>
4526 Martin M. Hunt <hunt@redhat.com>
4527
4528 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4529 (build_builtin_type_vec128i): Set the vector bit.
4530 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4531 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4532 (build_builtin_type_vec64): New function.
4533 (build_builtin_type_vec64i): New function.
4534 (build_gdbtypes): Initialize builtin_type_vec64 and
4535 builtin_type_vec64i.
4536
4537 2002-08-09 Andrew Cagney <cagney@redhat.com>
4538
4539 * regcache.c (regcache_dump): Compare the register offset
4540 with REGISTER_BYTE.
4541 * arch-utils.c (generic_register_byte): New function.
4542 * arch-utils.h (generic_register_byte): Declare.
4543 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4544 * gdbarch.h, gdbarch.c: Regenerate.
4545
4546 2002-08-09 Andrew Cagney <cagney@redhat.com>
4547
4548 * regcache.c: Include "gdbcmd.h"
4549 (_initialize_regcache): Add commands "maintenance print
4550 registers", "maintenance print raw-registers" and "maintenance
4551 print cooked-registers".
4552 (enum regcache_dump_what): Define.
4553 (dump_endian_bytes): New function.
4554 (regcache_dump): New function.
4555 (regcache_print): New function.
4556 (maintenance_print_registers): New function.
4557 (maintenance_print_raw_registers): New function.
4558 (maintenance_print_cooked_registers): New function.
4559 * Makefile.in (regcache.o): Update dependencies.
4560
4561 2002-08-09 Michael Snyder <msnyder@redhat.com>
4562
4563 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4564 (mips_push_arguments): Correct some comments. Use paddr_nz
4565 for printing addresses in debug output. Replace static
4566 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4567 (mips_n32n64_push_arguments): New function, cloned from
4568 mips_push_arguments and tuned for the n32/n64 ABI.
4569 (mips_push_register): Buffer needs dynamic allocation.
4570 (mips_print_register): Ditto.
4571 (do_gp_register_row): Ditto.
4572 (mips_store_return_value): Ditto.
4573 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4574
4575 2002-08-09 Don Howard <dhoward@redhat.com>
4576
4577 * memattr.c (mem_info_command): Print special case of upper bound
4578 as max CORE_ADDR + 1.
4579
4580 2002-08-08 Michael Snyder <msnyder@redhat.com>
4581
4582 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4583 returns structs by ref if they're too big to fit in two registers.
4584
4585 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4586
4587 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4588 saved regs value.
4589 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4590 mips_find_saved_regs().
4591 (mips_pop_frame): Likewise.
4592
4593 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4594
4595 * blockframe.c (frame_saved_regs_register_unwind): Revise
4596 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4597 frames are in use.
4598
4599 2002-08-09 Grace Sainsbury <graces@redhat.com>
4600
4601 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4602 T-packets; the 'a' is not taken as a register number.
4603 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4604 (remote_stopped_data_address): New functions; add to target
4605 vector.
4606 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4607 prototypes to match other implementations of this
4608 function. replace integer argument with pointer -- the length
4609 field in the Z-packet is the length of what is pointed to or 1 if
4610 pointer is null. Add to target vector.
4611 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4612 target vector.
4613
4614 From Mark Salter:
4615 * remote.c (remote_wait): Add support to extract optional
4616 watchpoint information from T-packet. Ignore unrecognized
4617 optional info in T-packet.
4618 (remote_async_wait): Ditto.
4619
4620 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4621
4622 * cli/cli-dump.c: Change fopen modes to use binary open modes
4623 as defined in include/fopen-bin.h throughout.
4624
4625 2002-08-08 Michael Snyder <msnyder@redhat.com>
4626
4627 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4628
4629 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4630
4631 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4632 assertion failure by returning early after a warning.
4633
4634 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4635
4636 * mips-tdep.c (mips_find_saved_regs): Make static.
4637 (mips_frame_init_saved_regs): New function.
4638 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4639 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4640 (mips_find_saved_regs): Delete declaration.
4641
4642 2002-08-08 Grace Sainsbury <graces@redhat.com>
4643
4644 * remote.c (remote_wait, remote_async_wait): Change
4645 thread_num from int to ULONGEST.
4646 (unpack_varlen_hex): Change result parameter from
4647 int * to ULONGEST *.
4648
4649 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4650
4651 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4652 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4653 powerpc*-*-*.
4654 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4655
4656 2002-08-08 Andrew Cagney <cagney@redhat.com>
4657
4658 * gcore.c (override_derive_stack_segment): Delete variable.
4659 (preempt_derive_stack_segment): Delete function.
4660 (derive_stack_segment): Delete function.
4661 (default_derive_stack_segment): Renamed to derive_stack_segment.
4662 (override_derive_heap_segment): Delete variable.
4663 (preempt_derive_heap_segment): Delete function.
4664 (derive_heap_segment): Delete function.
4665 (default_derive_heap_segment): Rename to derive_heap_segment.
4666
4667 2002-08-06 Michael Snyder <msnyder@redhat.com>
4668
4669 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4670 * mips-tdep.c (mips_EABI_use_struct_convention,
4671 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4672 New functions. (mips_use_struct_convention): Delete.
4673 (mips_gdbarch_init): set use_gdbarch_convention.
4674
4675 2002-08-06 Michael Snyder <msnyder@redhat.com>
4676
4677 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4678 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4679 mips_o32_reg_struct_has_addr): New functions.
4680 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4681
4682 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4683
4684 * regcache.c (pseudo_register): Delete function.
4685 (fetch_register): Delete function.
4686 (store_register): Delete function.
4687 (regcache_raw_read, legacy_read_register_gen): Use
4688 target_fetch_registers instead of fetch_register.
4689 (legacy_write_register_gen, regcache_raw_write): Use
4690 target_store_register instead of store_register.
4691 (write_register_bytes): Ditto.
4692
4693 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4694 (STORE_PSEUDO_REGISTER): Delete.
4695 * gdbarch.h, gdbarch.c: Regenerate.
4696
4697 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4698
4699 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4700 write dump file binary.
4701
4702 2002-08-05 Michael Snyder <msnyder@redhat.com>
4703
4704 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4705 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4706 (mips_gdbarch_init): Set N32 target to be mips64.
4707
4708 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4709
4710 * frame.c (find_saved_register): Break out of loop once saved
4711 register address is found. Don't mention sparc in loop comment
4712 anymore.
4713
4714 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4715
4716 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4717 mips_default_saved_regsize to 8.
4718
4719 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4720
4721 * gcore.c: Do not include <sys/procfs.h>.
4722 * Makefile.in (gcore.o): Update dependencies.
4723
4724 2002-08-06 Andrew Cagney <cagney@redhat.com>
4725
4726 * configure.tgt: Make arc-*-* obsolete.
4727 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4728 * MAINTAINERS: Make arc-elf obsolete.
4729 * arc-tdep.c: Make file obsolete.
4730 * config/arc/arc.mt: Ditto.
4731 * config/arc/tm-arc.h: Ditto.
4732
4733 2002-08-05 Theodore A. Roth <troth@verinet.com>
4734
4735 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4736
4737 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4738
4739 * mcore-tdep.c (mcore_gdbarch_init): Use
4740 generic_unwind_get_saved_register instead of
4741 generic_get_saved_register.
4742 * v850-tdep.c (v850_gdbarch_init): Ditto.
4743 * frv-tdep.c (frv_gdbarch_init): Ditto.
4744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4745 * s390-tdep.c (s390_gdbarch_init): Ditto.
4746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4747 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4748 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4749
4750 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4751
4752 * objfiles.h: Add missing #include "symfile.h"
4753
4754 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4755
4756 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4757
4758 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4759 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4760 of FIELD_BITSIZE.
4761
4762 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4763
4764 * NEWS: Cleanup and nitpick.
4765
4766 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4767
4768 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4769
4770 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4771
4772 * Makefile.in (gdbtk-bp.o): Update dependencies.
4773 (gdbtk-register.o): Ditto.
4774 (gdbtk-varobj.o): Ditto.
4775
4776 2002-08-03 Andrew Cagney <cagney@redhat.com>
4777
4778 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4779 m68hc11_fetch_pseudo_register.
4780 (m68hc11_pseudo_register_write): Replace
4781 m68hc11_store_pseudo_register.
4782 (m68hc11_gdbarch_init): Update.
4783
4784 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4785
4786 * gdbarch.sh: Include "gdb_string.h".
4787 * gdbarch.c: Regenerate.
4788
4789 * regcache.c: Include "gdb_string.h".
4790 * ax-general.c: Ditto.
4791 * varobj.c: Ditto.
4792 * std-regs.c: Ditto.
4793 * fbsd-proc.c: Ditto.
4794 * thread.c: Ditto.
4795
4796 * Makefile.in (regcache.o): Update dependencies.
4797 (thread.o, gdbarch.o): Ditto.
4798 (ax-general.o, gdbarch.o): Ditto.
4799 (varobj.o, std-regs.o): Ditto.
4800 (fbsd-proc.o): Specify dependencies.
4801
4802 2002-08-02 Andrew Cagney <cagney@redhat.com>
4803
4804 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4805 regnum.
4806 (regcache_cooked_write): Ditto.
4807
4808 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4809
4810 * regcache.c (regcache_cooked_read): New function.
4811 (regcache_cooked_write): New function.
4812 (read_register_gen): Rewrite using regcache_cooked_read.
4813 (write_register_gen): Rewrite using regcache_cooked_write.
4814
4815 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4816 Declare.
4817
4818 2002-08-02 Andrew Cagney <cagney@redhat.com>
4819
4820 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4821 Replace the architecture methods register_read and register_write.
4822 * gdbarch.h, gdbarch.c: Regenerate.
4823 * regcache.c (init_regcache_descr): Update.
4824 (read_register_gen): Update.
4825 (write_register_gen): Update.
4826 (supply_register): Update comment.
4827
4828 * sh-tdep.c (sh_gdbarch_init): Update.
4829 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4830 `regcache' and `gdbarch' parameters. Make `buffer' a void
4831 pointer. Update code.
4832 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4833 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4834 void pointer. Update code.
4835 (sh64_register_write): Delete.
4836 (sh4_register_read): Delete.
4837 (sh64_register_read): Delete.
4838 (sh4_register_write): Delete.
4839 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4840 void pointer, `to' parameter a void pointer.
4841 (sh_sh64_register_convert_to_raw): Ditto.
4842
4843 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4844
4845 * mips-tdep.c (mips_register_virtual_type): Use architecture
4846 invariant return values.
4847
4848 2002-08-01 Andrew Cagney <cagney@redhat.com>
4849
4850 * linux-proc.c: Include "gdb_string.h".
4851 * Makefile.in (linux-proc.o): Update dependency list.
4852
4853 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4854
4855 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4856 comment.
4857
4858 2002-08-01 Grace Sainsbury <graces@redhat.com>
4859
4860 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4861 to_insert_watchpoint, to_remove_watchpoint,
4862 to_stopped_by_watchpoint, to_stopped_data_address,
4863 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4864 target vecctor. Define their corresponding macros so they call
4865 them.
4866
4867 * target.c: Add default and debug versions of for
4868 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4869 to_insert_watchpoint, to_remove_watchpoint,
4870 to_stopped_by_watchpoint, to_stopped_data_address,
4871 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4872
4873 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4874
4875 * mips-tdep.c (mips_register_virtual_type): New function.
4876 (mips_gdbarch_init): Register mips_register_virtual_type()
4877 with gdbarch machinery.
4878 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4879 this file instead of tm-bigmips.h.
4880 (MIPS_REGSIZE): Delete this macro.
4881 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4882 multiarch version in mips-tdep.c will be found.
4883
4884 2002-08-01 Andrew Cagney <cagney@redhat.com>
4885
4886 * NEWS: Menion that CHILL has been made obsolete.
4887
4888 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4889 * stabsread.c (read_range_type): Ditto.
4890 * gdbtypes.h: Ditto.
4891 * language.c (binop_type_check): Ditto.
4892 (binop_result_type): Ditto.
4893 (integral_type): Ditto.
4894 (character_type): Ditto.
4895 (string_type): Ditto.
4896 (boolean_type): Ditto.
4897 (structured_type): Ditto.
4898 (lang_bool_type): Ditto.
4899 (binop_type_check): Ditto.
4900 * language.h (_LANG_chill): Ditto.
4901 * dwarfread.c (set_cu_language): Ditto.
4902 * dwarfread.c (CHILL_PRODUCER): Ditto.
4903 * dwarfread.c (handle_producer): Ditto.
4904 * expression.h (enum exp_opcode): Ditto.
4905 * eval.c: Ditto for comments.
4906 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4907 * expprint.c (print_subexp): Ditto.
4908 (print_subexp): Ditto.
4909 * valops.c (value_cast): Ditto.
4910 (search_struct_field): Ditto.
4911 * value.h (COERCE_VARYING_ARRAY): Ditto.
4912 * symfile.c (init_filename_language_table): Ditto.
4913 (add_psymbol_with_dem_name_to_list): Ditto.
4914 * valarith.c (value_binop): Ditto.
4915 (value_neg): Ditto.
4916 * valops.c (value_slice): Ditto.
4917 * symtab.h (union language_specific): Ditto.
4918 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4919 (SYMBOL_DEMANGLED_NAME): Ditto.
4920 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4921 * defs.h (enum language): Ditto.
4922 * symtab.c (got_symtab): Ditto.
4923 * utils.c (fprintf_symbol_filtered): Ditto.
4924
4925 * ch-typeprint.c: Make file obsolete.
4926 * ch-valprint.c: Make file obsolete.
4927 * ch-lang.h: Make file obsolete.
4928 * ch-exp.c: Make file obsolete.
4929 * ch-lang.c: Make file obsolete.
4930
4931 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4932 CHILL_LIB.
4933 (TARGET_FLAGS_TO_PASS): Ditto.
4934 (CHILLFLAGS): Obsolete.
4935 (CHILL): Obsolete.
4936 (CHILL_FOR_TARGET): Obsolete.
4937 (CHILL_LIB): Obsolete.
4938 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4939 ch-valprint.c.
4940 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4941 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4942 ch-lang.o.
4943 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4944 targets.
4945
4946 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4947
4948 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4949 This does not change anything at the moment, but will be helpful
4950 later when full Ada support is integrated.
4951
4952 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4953
4954 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4955 help message.
4956
4957 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4958
4959 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4960 and save it in a local variable. Use variable in later test.
4961
4962 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4963
4964 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4965 test. (Thanks to Daniel Jacobowitz.)
4966
4967 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4968
4969 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4970 (mips_abi_strings): Add "n64".
4971 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4972
4973 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4974
4975 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4976 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4977
4978 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4979
4980 * utils.c (host_pointer_to_address, address_to_host_pointer):
4981 Use gdb_assert() instead of explicit call to internal_error().
4982
4983 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4984
4985 * Makefile.in (rs6000-nat.o): Update dependencies.
4986
4987 From Nicholas Duffek:
4988 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4989 (aix-thread.o): New rule.
4990 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4991 * config/powerpc/aix432.mh: New file.
4992
4993 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4994
4995 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4996 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4997 (fetch_core_registers, ppc_linux_supply_gregset)
4998 (ppc_linux_supply_fpregset): New functions.
4999 (ppc_linux_regset_core_fns): New.
5000 (_initialize_ppc_linux_tdep): Call add_core_fns.
5001 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5002 and ppc_linux_supply_gregset.
5003 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5004 (supply_fpregset): Call ppc_linux_supply_fpregset.
5005 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5006 corelow.o.
5007 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5008
5009 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5010
5011 * symtab.c (lookup_symbol): Demangle before lowercasing.
5012
5013 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5014
5015 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5016 declaration.
5017 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5018 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5019 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5020 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5021 "gdb_string.h".
5022 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5023 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5024 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5025 (avr-tdep.o, mon960-rom.o): Ditto.
5026 (aout_stabs_gnu_h): Define.
5027 (symtab_h): Remove $(gdb_obstack_h).
5028
5029 2002-07-30 Jim Blandy <jimb@redhat.com>
5030
5031 Patch from David Carlton <carlton@math.stanford.edu>:
5032 * gdbinit.in: Move the `dir' commands that add GDB's own source
5033 directory to the search path to the end, so that the `gdb' source
5034 directory will be searched first.
5035
5036 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5037
5038 * gdb_obstack.h: New file.
5039 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5040 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5041 * objfiles.h: Include "gdb_obstack.h".
5042 * Makefile.in (gdb_obstack_h): Define.
5043 (symtab_h): Add $(gdb_obstack_h).
5044 (objfiles_h): Add $(gdb_obstack_h).
5045
5046 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5047 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5048 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5049 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5050 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5051 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5052 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5053 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5054
5055 * Makefile.in (bcache.o): Update dependencies.
5056 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5057 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5058 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5059 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5060 (stabsread.o, symfile.o, symmisc.o): Ditto.
5061 (symtab.o, typeprint.o, macroexp.o): Ditto.
5062 (macrotab.o, mdebugread.o): Ditto.
5063 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5064 (coff_ecoff_h, aout_aout64_h): Define.
5065 (aout_stabs_gnu_h, libaout_h): Define.
5066
5067 2002-07-29 Andrew Cagney <cagney@redhat.com>
5068
5069 * regcache.c (struct regcache_descr): Rename nr_registers to
5070 nr_cooked_registers. Revise comments describing the structure
5071 member fields.
5072 (init_regcache_descr): Update.
5073 (init_legacy_regcache_descr): Update.
5074 (read_register_gen, write_register_gen): When a cooked register in
5075 the raw register range, directly access the value from the raw
5076 register cache.
5077
5078 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5079
5080 * z8k-tdep.c: Do not include "obstack.h".
5081 * h8300-tdep.c, h8500-tdep.c: Ditto.
5082 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5083 * valprint.c, v850-tdep.c: Ditto.
5084 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5085 * mn10200-tdep.c: Ditto.
5086
5087 * Makefile.in (z8k-tdep.o): Update dependencies.
5088 (m68hc11-tdep.o, valprint.o): Ditto.
5089 (v850-tdep.o, d10v-tdep.o): Ditto.
5090 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5091 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5092 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5093 (sh_opc_h, gdb_sim_sh_h): Define.
5094 (elf_sh_h, elf_bfd_h): Define.
5095 (opcode_m68hc11_h): Define.
5096 (OPCODES_SRC, OPCODES_DIR): define.
5097 (OPCODES): Use $(OPCODES_DIR).
5098 (gdb_sim_d10v_h): Rename sim_d10v_h.
5099 (gdb_sim_arm_h): Rename sim_arm_h.
5100
5101 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5102
5103 * utils.c (host_pointer_to_address, address_to_host_pointer):
5104 Change internal_error() message to indicate function responsible
5105 for the error.
5106
5107 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5108
5109 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5110 calls to local_hex_string_custom().
5111
5112 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5113
5114 * irix5-nat.c: Move IRIX shared library support from here...
5115 * solib-irix.c: ...to here. Revised substantially to work with
5116 generic solib framework.
5117
5118 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5119 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5120 * mips-irix-tdep.c: New file.
5121
5122 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5123 (mips-irix-tdep.o, solib-irix.o): New rules.
5124 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5125 solib-irix.o.
5126 * config/mips/irix6.mt (TDEPFILES): Likewise.
5127 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5128
5129 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5130
5131 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5132 disabled (via ``#if 0'') includes.
5133
5134 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5135
5136 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5137 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5138 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5139 Add support for the fpscr register.
5140 * rs6000-nat.c (regmap, fetch_inferior_registers)
5141 (store_inferior_registers, fetch_core_registers): Likewise.
5142
5143 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5144
5145 * rs6000-nat.c (language.h): Include.
5146 (special_regs): Delete this array.
5147 (regmap): New function.
5148 (fetch_register, store_register): Use regmap() to map gdb
5149 register numbers to ptrace register numbers. Also, use
5150 outputs from regmap() to make decisions regarding type of
5151 ptrace() call to make. In particular, don't compare against
5152 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5153 (fetch_inferior_registers, store_inferior_registers): Where
5154 possible, obtain register numbers from tdep struct. Don't
5155 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5156 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5157 (LAST_UISA_SP_REGNUM): Delete.
5158
5159 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5160
5161 * rs6000-nat.c (ppc-tdep.h): Include.
5162 (fetch_registers, store_register, fetch_core_registers): Don't
5163 access registers[] directly. Instead, use supply_register() or
5164 regcache_collect() as appropriate.
5165 (find_toc_address): Format hex address with local_hex_string().
5166
5167 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5168
5169 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5170 bfd/elf32-frv.c.
5171
5172 2002-07-24 Tom Tromey <tromey@redhat.com>
5173
5174 * jv-exp.y: Marked all strings with _().
5175 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5176 internal_error.
5177 (MethodInvocation, CastExpression, parse_number, yyerror,
5178 java_type_from_name, push_expression_name, yylex): Typo fixes.
5179
5180 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5181
5182 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5183 (tee_file_flush, tee_file_write, tee_file_fputs)
5184 (tee_file_isatty): New.
5185 * ui-file.h (tee_file_new): Add prototype.
5186
5187 2002-07-24 Aidan Skinner <aidan@velvet.net>
5188
5189 * ada-lang.c: Change k&r style function definitions to prototyped
5190 form.
5191 * ada-typeprint.c: Change k&r style function definitions to prototyped
5192 form.
5193 * ada-valprint.c: Change k&r style function definitions to prototyped
5194 form.
5195
5196 2002-07-24 Andrew Cagney <cagney@redhat.com>
5197
5198 * README: Remove reference to remote-bug.
5199 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5200 remote-bug.c.
5201 (m88k-nat.o): Delete rule.
5202 (m88k-tdep.o): Delete rule.
5203 (remote-bug.o): Delete rule.
5204 * MAINTAINERS: Mark as obsolete.
5205 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5206 * m88k-tdep.c: Make file obsolete.
5207 * config/m88k/m88k.mh: Ditto.
5208 * config/m88k/delta88v4.mh: Ditto.
5209 * config/m88k/delta88v4.mt: Ditto.
5210 * config/m88k/delta88.mt: Ditto.
5211 * config/m88k/delta88.mh: Ditto.
5212 * remote-bug.c: Ditto.
5213 * config/m88k/tm-delta88.h: Ditto.
5214 * config/m88k/nm-delta88v4.h: Ditto.
5215 * config/m88k/xm-delta88.h: Ditto.
5216 * config/m88k/xm-dgux.h: Ditto.
5217 * config/m88k/tm-m88k.h: Ditto.
5218 * config/m88k/nm-m88k.h: Ditto.
5219 * config/m88k/tm-delta88v4.h: Ditto.
5220 * m88k-nat.c: Ditto.
5221 * cxux-nat.c: Ditto.
5222 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5223 and m88*-*-* obsolete.
5224 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5225 m88*-*-* obsolete.
5226
5227 2002-07-24 Andrew Cagney <cagney@redhat.com>
5228
5229 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5230 constant. Same for local pointer variables.
5231 (extract_signed_integer): Ditto.
5232 * defs.h (extract_unsigned_integer): Update.
5233 (extract_signed_integer): Update.
5234
5235 2002-07-24 Andrew Cagney <cagney@redhat.com>
5236
5237 * regcache.c (regcache_raw_write): Change buf parameter to a
5238 constant void pointer.
5239 (regcache_raw_read): Change buf parameter to a void pointer.
5240 (legacy_write_register_gen): Change myaddr parameter a constant
5241 void pointer.
5242 (supply_register): Change val parameter to a const void pointer.
5243 * regcache.h (regcache_raw_write): Update declaration.
5244 (regcache_raw_read): Update declaration.
5245 (supply_register): Update declaration.
5246
5247 2002-07-24 Tom Tromey <tromey@redhat.com>
5248
5249 * defs.h (gdb_readline_wrapper): Declare.
5250 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5251 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5252 * top.c (gdb_readline_wrapper): New function.
5253 (command_line_input): Use it.
5254
5255 2002-07-24 Andrew Cagney <cagney@redhat.com>
5256
5257 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5258 regcache_read and regcache_write.
5259 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5260 * regcache.c: Update.
5261 * sh-tdep.c (sh64_push_arguments): Update comment.
5262 (sh_pseudo_register_read): Update.
5263 (sh_pseudo_register_write): Update.
5264 (sh4_register_read): Update.
5265 (sh4_register_write): Update.
5266 (sh64_pseudo_register_read): Update.
5267 (sh64_pseudo_register_write): Update.
5268 (sh64_register_read): Update.
5269 (sh64_register_write): Update.
5270 * i386-tdep.c (i386_extract_return_value): Update.
5271 (i386_extract_struct_value_address): Update.
5272 (i386_extract_return_value): Update.
5273 * blockframe.c (generic_read_register_dummy): Update.
5274 (generic_call_dummy_register_unwind): Update
5275 * infrun.c (write_inferior_status_register): Update.
5276
5277 2002-07-23 Jim Blandy <jimb@redhat.com>
5278
5279 * parser-defs.h (expression_context_pc): Make this extern.
5280 (Thanks to Michael Snyder.)
5281
5282 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5283
5284 GDB 5.2.1 released from 5.2 branch.
5285 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5286 * README: Update to mention 5.2.1.
5287
5288 2002-07-23 Mark Salter <msalter@redhat.com>
5289
5290 * remote.c (remote_read_bytes): Fix check for error.
5291
5292 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5293
5294 * aix-thread.c (language.h): Include.
5295 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5296 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5297 Print newlines at end of debug messages.
5298 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5299 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5300
5301 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5302
5303 * aix-thread.c (ppc-tdep.h): Include.
5304 (special_register_p): New function.
5305 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5306 (store_regs_user_thread): Use register number information from
5307 gdbarch_tdep struct instead of hardcoded offsets relative to
5308 FIRST_UISA_SP_REGNUM.
5309 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5310 special_register_p() instead of using FPLAST_REGNUM and
5311 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5312 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5313 will be MQ's register number.
5314
5315 2002-07-22 Michael Snyder <msnyder@redhat.com>
5316
5317 * aix-thread.c (ops): Rename to aix_thread_ops.
5318 (base_ops): Rename to base_target.
5319 (ops_attach): Rename to aix_thread_attach.
5320 (ops_detach): Rename to aix_thread_detach.
5321 (ops_resume): Rename to aix_thread_detach.
5322 (ops_wait): Rename to aix_thread_wait.
5323 (ops_kill): Rename to aix_thread_kill.
5324 (init_ops): Rename to init_aix_thread_ops.
5325 (ops_fetch_register): Rename to aix_thread_fetch_register.
5326 (ops_store_register): Rename to aix_thread_store_register.
5327 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5328 (ops_thread_alive): Rename to aix_thread_thread_alive.
5329 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5330 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5331 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5332 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5333 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5334 (store_regs_lib): Rename to store_regs_user_thread.
5335 (store_regs_kern): Rename to store_regs_kernel_thread.
5336
5337 2002-07-22 Michael Snyder <msnyder@redhat.com>
5338
5339 * aix-thread.c (ops_prepare_to_store): Eliminate.
5340 (init_ops): Don't initialize ops.prepare_to_store.
5341 (store_regs_kern): Pre-fetch register buffers from child,
5342 because some registers may not be in the cache. Copy
5343 regs from register cache only if they are cached.
5344 (store_regs_lib): Copy regs from register cache only
5345 if they are cached.
5346 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5347 fill_gprs64): Ditto.
5348
5349 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5350
5351 * aix-thread.c (gdb_assert.h): Include.
5352 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5353 register sizes (from register cache) match size of buffer holding
5354 register data.
5355 (fill_sprs32): Change parameter types to match those in the ptrace()
5356 buffer.
5357 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5358 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5359
5360 2002-07-22 Michael Snyder <msnyder@redhat.com>
5361
5362 * aix-thread.c (supply_sprs64): Cosmetic change.
5363 (supply_sprs32): Cosmetic change.
5364 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5365 (fill_sprs64): Use regcache_collect instead of read_register.
5366 (store_regs_lib): Use regcache_collect instead of
5367 read_register. Use fill_sprs32 instead of fill_sprs64,
5368 if debugging a 32-bit architecture.
5369 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5370 out of the register cache, instead of passing a pointer into
5371 the register cache directly to ptrace. Use regcache_collect
5372 insteaad of read_register.
5373 (ops_prepare_to_store): Use target_read_registers instead
5374 of read_register_bytes.
5375
5376 2002-07-20 Aidan Skinner <aidan@velvet.net>
5377
5378 * MAINTAINERS: Add self under write after approval.
5379
5380 2002-07-20 Aidan Skinner <aidan@velvet.net>
5381
5382 * ada-tasks.c: Change k&r style function definitions to prototyped
5383 form.
5384
5385 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5386
5387 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5388 * x86-64-tdep.c: Include "objfiles.h".
5389 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5390 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5391
5392 2002-07-17 Michal Ludvig <michal@suse.cz>
5393
5394 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5395 (update_context): Initialise cfa variable.
5396
5397 2002-07-17 Michael Snyder <msnyder@redhat.com>
5398
5399 * aix-thread.c: Shorten some long lines.
5400 Bring comments into line with code spec.
5401
5402 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5403
5404 * infrun.c: Re-indent using gdb_indent.sh.
5405
5406 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5407
5408 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5409 Leave the indentation temporarily untouched, to minimize the diffs.
5410
5411 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5412
5413 * stabsread.c: Make os9k sections of the code obsolete,
5414 for real this time.
5415 * stabsread.h: Make os9k sections of the code obsolete.
5416
5417 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5418
5419 * linux-low.c (regsets_store_inferior_registers): Add free()
5420 at the end of a loop to prevent memory leak.
5421 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5422 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5423 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5424 line a comment.
5425 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5426
5427 2002-07-17 Jim Blandy <jimb@redhat.com>
5428
5429 * macrocmd.c (info_macro_command): Remove newline from error
5430 message.
5431
5432 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5433
5434 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5435 (sh_gdbarch_init): Use it for sh-dsp.
5436
5437 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5438
5439 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5440 64-bit DWARF2 format.
5441
5442 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5443
5444 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5445 <sys/proc.h> when not available.
5446
5447 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5448
5449 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5450 * stabsread.c: Make os9k sections of the code obsolete.
5451 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5452 * config/i386/i386os9k.mt: Make file obsolete.
5453 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5454 (COMMON_OBS): Remove os9kread.o
5455 (SFILES): Remove os9kread.c.
5456 (os9kread.o, remote-os9k.o): Make target obsolete.
5457 * remote-os9k.c: Make file obsolete.
5458 * os9kread.c: Make file obsolete.
5459 * Makefile.in
5460
5461 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5462
5463 * NEWS: Mention that the FR30 has been made obsolete.
5464 * fr30-tdep.c: Make file obsolete.
5465 * config/fr30/tm-fr30.h: Ditto.
5466 * config/fr30/fr30.mt: Ditto.
5467 * configure.tgt: Make fr30-*-elf obsolete.
5468 * MAINTAINERS: Make fr30-elf obsolete.
5469
5470 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5471
5472 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5473 found is not inside a section.
5474
5475 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5476
5477 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5478 strerror().
5479 (pdc_realloc): Use xrealloc() instead of realloc().
5480
5481 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5482
5483 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5484 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5485 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5486 macros.
5487
5488 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5489
5490 * aix-thread.c (ptrace_check): Eliminate goto.
5491 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5492 problem.
5493
5494 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5495
5496 * aix-thread.c (gdbcmd.h): Include.
5497 (DEBUG, DBG, DBG2, dbg): Eliminate.
5498 (debug_aix_thread): New static global.
5499 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5500 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5501 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5502 invocations to DBG and DBG2 macros to test against
5503 ``debug_aix_thread'' and call fprintf_unfiltered().
5504 (_initialize_aix_thread): Add new command "set debug aix-thread".
5505
5506 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5507
5508 From Gerhard Tonn <TON@de.ibm.com>:
5509 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5510 instead of supply_register.
5511
5512 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5513
5514 * dwarf2cfi.c: Include "gdb_assert.h".
5515 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5516 non-NULL.
5517 (update_context): Do not use __func__. Add missing ``break''.
5518 (update_context): Do not use __func__.
5519
5520 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5521
5522 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5523 and its setting. Set gdbarch instruction printing functions
5524 directly. For non-rs6000 case use new function
5525 gdb_print_insn_powerpc.
5526 (gdb_print_insn_powerpc): New function.
5527
5528 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5529
5530 * NEWS: Mention that the d30v has been marked obsolete.
5531 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5532 * configure.tgt: Mark d30v-*-* as obsolete.
5533 * d30v-tdep.c: Mark file as obsolete.
5534 * config/d30v/d30v.mt: Ditto.
5535 * config/d30v/tm-d30v.h: Ditto.
5536
5537 2002-07-13 Aidan Skinner <aidan@velvet.net>
5538
5539 * ada-tasks.c (add_task_entry): replace calls to
5540 malloc() with xmalloc
5541 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5542
5543 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5544 ada_finish_decode_line_1, all_sals_for_line
5545 ada_breakpoint_rewrite): replace calls to free() with xfree()
5546
5547 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5548
5549 From Nicholas Duffek (with minor changes by Martin Hunt,
5550 Louis Hamilton, and Kevin Buettner):
5551 * aix-thread.c: New file.
5552
5553 2002-07-12 Petr Sorfa <petrs@caldera.com>
5554
5555 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5556 complaint for invalid attribute class or form.
5557 (read_func_scope): DW_AT_frame_base
5558 better handling of DW_AT_block*.
5559 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5560 better handling of DW_AT_block*.
5561 (read_common_block): DW_AT_location
5562 better handling of DW_AT_block*.
5563 (read_partial_die): DW_AT_location better handling
5564 of DW_AT_block*.
5565 (new_symbol): DW_AT_external better handling of
5566 DW_AT_block*. Proper initialization of variable
5567 "addr".
5568 (attr_form_is_block): New function that returns true
5569 if the attribute's form is of DW_FORM_block*.
5570
5571 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5572
5573 * valops.c (find_method_list): Remove comment about
5574 removed STATIC_MEMFUNCP argument.
5575 (value_find_oload_method_list): Likewise.
5576
5577 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5578
5579 From Nicholas Duffek:
5580 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5581 target_new_objfile_hook.
5582
5583 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5584
5585 From Nicholas Duffek:
5586 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5587 csect.
5588
5589 2002-07-12 Andrew Cagney <cagney@redhat.com>
5590
5591 * MAINTAINERS: Mention --enable-sim-build-warnings.
5592 (m68hc11-elf): Disable sim build warnings.
5593 (m32r-elf): Mark as broken obsolete candidate.
5594 (x86_64-linux-gnu): Mark as buildable with -Werror.
5595 (arm-elf): Change -w to ``,'' which enables warnings but not
5596 -Werror.
5597
5598 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5599
5600 * bcache.h: Update copyright.
5601 (struct bstring, struct bcache): Move definition to "bcache.c".
5602 Replaced by opaque declaration.
5603 (bcache_xfree): Replace free_bcache.
5604 (bcache_xmalloc, bcache_memory_used): Declare.
5605
5606 * bcache.c: Update copyright.
5607 (struct bstring, struct bcache): Moved to here from "bcache.h".
5608 Update comments.
5609 (bcache_xmalloc, bcache_memory_used): New functions.
5610 (bcache_xfree): Replace function free_bcache.
5611
5612 * Makefile.in (objfiles.o): Add $(bcache_h).
5613 (objfiles_h): Remove $(bcache_h).
5614 (symfile.o): Add $(bcache_h).
5615
5616 * symmisc.c: Update copyright.
5617 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5618 (print_objfile_statistics): Use bcache_memory_used.
5619
5620 * symfile.c: Include "bcache.h".
5621 (reread_symbols): Use bcache_xfree.
5622 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5623 (add_psymbol_to_list): Pass psymbol_cache by value.
5624 (add_psymbol_with_dem_name_to_list): Ditto.
5625
5626 * objfiles.h: Update copyright.
5627 (struct bcache): Declare opaque. Do not include "bcache.h".
5628 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5629 bcache'' pointers.
5630 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5631
5632 * objfiles.c: Include "bcache.h". Update copyright.
5633 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5634 macro_cache.
5635 (free_objfile): Use bcache_xfree.
5636
5637 2002-07-11 Grace Sainsbury <graces@redhat.com>
5638
5639 * monitor.c (monitor_fetch_register): Make name a constant.
5640 (monitor_store_register): Same.
5641
5642 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5643
5644 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5645 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5646 (finish_block) For non-function blocks, hash the symbol table. For
5647 function blocks, mark the symbol table as unhashed.
5648 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5649 (msymbol_hash_iw): Likewise.
5650 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5651 value.
5652 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5653 (lookup_minimal_symbol): Likewise for both.
5654 * symtab.h (struct block): Add `hashtable' flag. Comment the
5655 hashtable.
5656 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5657 (ALL_BLOCK_SYMBOLS): Update.
5658 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5659 (struct symbol): Add `hash_next' pointer.
5660 * symtab.c (lookup_block_symbol): Search using the hash table when
5661 possible.
5662 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5663 (search_symbols, find_addr_symbol): Likewise.
5664
5665 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5666 (read_dst_symtab): Likewise.
5667 * jv-lang.c (get_java_class_symtab): Likewise.
5668 * mdebugread.c: Include "gdb_assert.h".
5669 (shrink_block): Assert that the block being modified is not hashed.
5670 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5671 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5672 symbols.
5673 (dump_symtab): Recognize hashed blocks.
5674 * printcmd.c (print_frame_args): Assert that function blocks do not
5675 have hashed symbol tables.
5676 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5677 (fill_in_ada_prototype, debug_print_block): Likewise.
5678 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5679
5680 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5681
5682 * stack.c (print_frame): Use result of frame_address_in_block()
5683 instead of fi->pc when evaluating symbols.
5684 (backtrace_command_1): Ditto.
5685
5686 2002-07-11 Andrew Cagney <cagney@redhat.com>
5687
5688 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5689 Make static.
5690
5691 * arm-tdep.c (arm_register_name): Make return type constant.
5692
5693 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5694
5695 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5696 prototype.
5697 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5698 * s390-tdep.c (s390_fp_regnum): Ditto.
5699 (s390_read_fp): Ditto.
5700 (s390_pop_frame): Ditto.
5701 (_initialize_s390_tdep): Ditto.
5702 * remote.c (get_remote_state): Ditto.
5703 * procfs.c (mappingflags): Ditto.
5704 * memattr.c (_initialize_mem): Ditto.
5705 * mcore-tdep.c (mcore_pop_frame): Ditto.
5706 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5707 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5708 * language.c (set_case_str): Ditto.
5709 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5710 * frv-tdep.c (new_variant): Ditto.
5711 (frv_stopped_data_address): Ditto.
5712 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5713 (context_alloc): Ditto.
5714 (frame_state_alloc): Ditto.
5715 (unwind_tmp_obstack_init): Ditto.
5716 (unwind_tmp_obstack_free): Ditto.
5717 (cfi_read_fp): Ditto.
5718 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5719 (cris_pop_frame): Ditto.
5720 * c-lang.c (scanning_macro_expansion): Ditto.
5721 (finished_macro_expansion): Ditto.
5722 (c_preprocess_and_parse): Ditto.
5723 * gdbarch.sh: Ditto.
5724 * gdbarch.h, gdbarch.c: Regenerate.
5725 * config/mn10200/tm-mn10200.h: Adjust indentation.
5726 * target.c: Adjust indentation.
5727 * symtab.h: Adjust indentation.
5728 * stabsread.h: Adjust indentation.
5729 * remote-es.c: Adjust indentation.
5730 * os9kread.c: Adjust indentation.
5731
5732 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5733
5734 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5735 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5736
5737 2002-07-10 Grace Sainsbury <graces@redhat.com>
5738
5739 * NEWS: Mention m68k, mcore multi-arching.
5740 * MAINTAINERS: Change status of m68k, mcore to reflect
5741 multi-arching.
5742
5743 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5744
5745 * valops.c (find_overload_match): Free oload_syms.
5746
5747 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5748
5749 Define HAVE_SYS_PROC_H if sys/proc.h exists
5750 * configure.in: Add check for sys/proc.h
5751 * config.in: Regenerate.
5752 * configure: Regenerate.
5753
5754 2002-07-09 Grace Sainsbury <graces@redhat.com>
5755
5756 * config/m68k/tm-m68k.h: Remove macros wrapped in
5757 #if !GDB_MULTI_ARCH.
5758
5759 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5760
5761 * config.in, configure: Regenerate.
5762
5763 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5764
5765 * dwarf2cfi.c: Include "gcore.h".
5766 (execute_stack_op): Fix implementation of the
5767 DW_OP_deref and DW_OP_deref_size operators by letting do their
5768 lookup in the target.
5769
5770 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5771
5772 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5773 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5774 tdep->sc_sp_offset.
5775
5776 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5777
5778 Fix PR gdb/595, gdb/602
5779 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5780 Don't call value_cast, just read the vtable pointer; update comments
5781 to match.
5782
5783 2002-07-05 Grace Sainsbury <graces@redhat.com>
5784
5785 * config/mcore/tm-mcore.h: Remove file.
5786 * config/mcore/mcore.mt: Remove definition of TM_FILE
5787 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5788
5789 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5790
5791 * i386bsd-tdep.c: Include "gdb_string.h".
5792
5793 2002-07-04 Grace Sainsbury <graces@redhat.com>
5794
5795 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5796 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5797 mcore-tdep.
5798 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5799 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5800 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5801 (RETVAL_REGNUM): Move macros from tm-mcore.h
5802 (mcore_reg_struct_has_addr): New function.
5803 (mcore_gdbarch_init): Added initializations for the macros removed
5804 from tm-mcore.h.
5805
5806 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5807
5808 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5809 traditonal string branding within the ELF header.
5810
5811 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5812
5813 * symtab.c (remove_params): New function.
5814 (make_symbol_overload_list): Use it instead of cplus_demangle.
5815 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5816
5817 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5818
5819 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5820
5821 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5822 New variables.
5823 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5824 and tdep->sigtramp_end.
5825 * i386obsd-nat.c: New file.
5826 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5827
5828 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5829 Don't call get_current_frame().
5830
5831 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5832
5833 * i386-nat.c (child_post_startup_inferior): New function
5834 calling i386_cleanup_dregs if
5835 I386_USE_GENERIC_WATCHPOINTS is defined.
5836 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5837 conditional to acknowledge that i386-nat.c has its
5838 own child_post_startup_inferior function.
5839
5840 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5841
5842 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5843 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5844 instead of MAX_REGISTER_RAW_SIZE.
5845 (i386_extract_return_value, i386_extract_struct_value_address):
5846 Convert to use regcache.
5847 (i386_gdbarch_init): Set max_register_raw_size and
5848 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5849 Set extract_return_value and extract_struct_value_address instead
5850 of their deprecated variants.
5851
5852 Convert i386 target to generic dummy frames.
5853 * i386-tdep.c: Include "symfile.h".
5854 (i386_frameless_signal_p): Consider a function to be frameless if
5855 the pc points at the first instruction of the function.
5856 (i386_frame_chain): Handle (generic) call dummies.
5857 (i386_frame_saved_pc): Likewise.
5858 (i386_frame_init_saved_regs): Remove code dealing with call
5859 dummies on the stack.
5860 (i386_push_dummy_frame): Removed.
5861 (i386_call_dummy_words): Removed.
5862 (i386_fix_call_dummy): Removed.
5863 (i386_push_return_address): New function.
5864 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5865 parameter, and don't call get_current_frame.
5866 (i386_pop_frame): New function.
5867 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5868 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5869 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5870 call_dummy_length to 0, set call_dummy_words to NULL, set
5871 sizeof_call_dummy_words to 0, set fix_call_dummy to
5872 generic_fix_call_dummy, set pc_in_call_dummy to
5873 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5874 generic_push_dummy_frame, set push_return_address to
5875 i386_push_return_address and set frame_chain_valid to
5876 generic_file_frame_chain_valid.
5877
5878 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5879
5880 * gdbarch.sh (struct regcache): Add opaque declaration.
5881 (EXTRACT_RETURN_VALUE): New architecture method.
5882 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5883 * gdbarch.h, gdbarch.c: Regenerate.
5884 * arch-utils.c (legacy_extract_return_value): New function.
5885 * arch-utils.h (legacy_extract_return_value): Declare.
5886 * values.c (value_being_returned): Re-enable code handling
5887 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5888 deprecated_grub_regcache_for_registers call to block handling
5889 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5890 (EXTRACT_RETURN_VALUE): Do not define.
5891
5892 2002-07-03 Grace Sainsbury <graces@redhat.com>
5893
5894 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5895 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5896 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5897 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5898 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5899 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5900 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5901 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5902 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5903 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5904 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5905 argument so the function fits the prototype in the architecture
5906 vector.
5907 (mcore_pop_frame): Remove argument so the function fits the
5908 prototype. Use get_current_frame instead of the argument.
5909 (mcore_push_arguments): Change type of struct_return so the
5910 function can be used in the architecture vector.
5911 (mcore_store_struct_return): Add.
5912 (mcore_frame_init_saved_regs): Add.
5913 (mcore_gdbarch_init): Add function calls to replace the macros
5914 removed from tm-mcore.h
5915
5916 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5917
5918 * infcmd.c (print_return_value): Remove compatibility code calling
5919 deprecated_grub_regcache_for_registers.
5920
5921 * values.c: Include "regcache.h".
5922 (value_being_returned): Update. Use
5923 deprecated_grub_regcache_for_registers to extract the register
5924 buffer address.
5925 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5926 ``struct regcache''.
5927 * Makefile.in (values.o): Add dependency on $(regcache_h).
5928
5929 * inferior.h (run_stack_dummy): Change type of second parameter to
5930 a ``struct regcache''.
5931 * valops.c (hand_function_call): Change type of retbuf to ``struct
5932 regcache''. Allocate using regcache_xmalloc, clean using
5933 make_cleanup_regcache_xfree.
5934 * infcmd.c (run_stack_dummy): Update. Use
5935 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5936
5937 * regcache.c (do_regcache_xfree): New function.
5938 (make_cleanup_regcache_xfree): New function.
5939 * regcache.h (make_cleanup_regcache_xfree): Declare.
5940
5941 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5942
5943 * event-top.c (command_line_handler): Don't read past
5944 beginning of buffer.
5945
5946 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5947
5948 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5949 struct frame_id.
5950 (varobj_create): Store frame_id for root.
5951 (varobj_gen_name): Use xasprintf.
5952 (varobj_update): Save and restore frame using get_frame_id() and
5953 frame_find_by_id().
5954 (create_child): Use xasprintf.
5955 (new_root_variable): Initialize frame_id.
5956 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5957 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5958 to prevent memory leak.
5959
5960 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5961
5962 * valops.c (hand_function_call): Move declaration of retbuf to
5963 start of function, allocate using malloc, add a cleanup but before
5964 the inf_status cleanup, cleanup the buffer. Rename local variable
5965 old_chain to inf_status_cleanup.
5966
5967 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5968
5969 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5970
5971 * cli/cli-decode.c (cmd_func_p): New function.
5972 (cmd_func): New function.
5973
5974 * command.h: Add cmd_func() and cmd_func_p().
5975
5976 2002-07-03 Grace Sainsbury <graces@redhat.com>
5977
5978 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5979 (REGISTER_SIZE): Remove.
5980 (MAX_REGISTER_RAW_SIZE): Remove.
5981 (REGISTER_VIRTUAL_TYPE): Remove.
5982 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5983 (REGISTER_NAME): Remove.
5984 (USE_GENERIC_DUMMY_FRAMES): Remove.
5985 (CALL_DUMMY): Remove.
5986 (CALL_DUMMY_START_OFFSET): Remove.
5987 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5988 (CALL_DUMMY_LOCATION): Remove.
5989 (FIX_CALL_DUMMY): Remove.
5990 (CALL_DUMMY_ADDRESS): Remove.
5991 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5992 (SAVE_DUMMY_FRAME_TOS): Remove.
5993 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5994 (mcore_register_virtual_type): New function.
5995 (mcore_register_byte): New function.
5996 (mcore_register_size): New function.
5997 (mcore_register_name): New function.
5998 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5999 macros removed from tm-mcore.h.
6000 (mcore_dump_tdep): Add.
6001 (_initialize_mcore_tdep): Add gdbarch_register call.
6002
6003 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6004
6005 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6006 frameless_look_for_prologue, such that we actually call this
6007 function.
6008
6009 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6010
6011 * frame.h (frame_address_in_block): New function.
6012
6013 * blockframe.c (frame_address_in_block): New function extracted
6014 from get_frame_block().
6015 (get_frame_block): Use frame_address_in_block().
6016 (block_innermost_frame): Use frame_address_in_block() to match
6017 the frame pc address against the block boundaries rather than
6018 the frame pc directly. This prevents a failure when a frame pc
6019 is actually a return-address pointing immediately after the end
6020 of the given block.
6021
6022 2002-07-02 Grace Sainsbury <graces@redhat.com>
6023
6024 * MAINTAINERS: Add self under write after approval.
6025
6026 2002-07-02 Grace Sainsbury <graces@redhat.com>
6027
6028 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6029 used in architecture vector. The default is
6030 m68k_local_breakpoint_from_pc.
6031 (m68k_local_breakpoint_from_pc): Add.
6032 (enum): Add register numbers from tm-m68k.h.
6033 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6034 vector.
6035 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6036 GDB_MULTI_ARCH_PARTIAL.
6037 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6038 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6039 m68k-tdep.c.
6040 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6041 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6042 to enum in m68k-tdep.c
6043
6044 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6045
6046 * solib-osf.c (open_map): Compute the list of shared libraries
6047 loaded by the inferior, rather than the list of libraries loaded
6048 by GDB itself. Otherwise, GDB ends up reading the symbols from
6049 the wrong shared libraries...
6050
6051 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6052
6053 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6054 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6055 macros.
6056 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6057 Remove functions.
6058 (FRAMELESS_SIGNAL): Remove function.
6059 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6060 i386_linux_saved_pc_after_call): Removed.
6061 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6062 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6063 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6064
6065 * i386-tdep.c (i386_frameless_signal_p): New function.
6066 (i386_frame_chain): Deal with frameless signals.
6067 (i386_sigtramp_saved_sp): New function.
6068 (i386_frame_saved_pc): Deal with frameless signals.
6069 (i386_saved_pc_after_call): Make sure the correct value is
6070 returned just after entry into a sigtramp.
6071 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6072 i386fbsd4_sc_sp_offset): New variables.
6073 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6074 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6075 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6076 similiar to what we already did for sc_pc_offset.
6077 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6078 tdep->sc_sp_offset.
6079
6080 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6081
6082 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6083
6084 * config/i386/tm-x86-64linux.h: New.
6085 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6086 definitions.
6087 * config/i386/nm-x86-64.h: Rename to ...
6088 * config/i386/nm-x86-64linux.h: ... this one.
6089 * config/i386/x86-64linux.mh: Reflect the above change.
6090
6091 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6092
6093 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6094 with sigcontext_addr. Add sc_sp_offset.
6095 (i386bsd_sigtramp_saved_pc): Remove prototype.
6096 (i386bsd_sicontext_addr): Add prototype.
6097 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6098 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6099 (i386_svr4_sigtramp_saved_pc): Removed.
6100 (i386_svr4_sigcontext_addr): New function.
6101 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6102 Initialize tdep->sigcontext_addr instead. Initialize
6103 tdep->sc_pc_offset and tdep->sc_sp_offset.
6104 (i386_gdbarch_init): Likewise.
6105 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6106 any more.
6107 (i386bsd_sigtramp_saved_pc): Remove function.
6108 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6109 Initialize tdep->sigcontext_addr instead. Initialize
6110 tdep->sc_pc_offset.
6111 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6112 of tdep->sigtramp_saved_pc.
6113 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6114 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6115 instead.
6116
6117 * i386-tdep.c (i386_frameless_function_invocation,
6118 i386_frame_num_args, i386_frame_init_saved_regs,
6119 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6120 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6121 i386_extract_return_value, i386_store_return_value,
6122 i386_extract_struct_value_address, i386_register_virtual_type,
6123 i386_register_convertible, i386_register_convert_to_virtual,
6124 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6125 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6126 static.
6127
6128 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6129
6130 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6131
6132 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6133 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6134 this macro. Include "value.h".
6135
6136 2002-06-30 Aidan Skinner <aidan@velvet.net>
6137
6138 * ada-exp.tab.c: remove as it's a generated file
6139 * ada-lex.c: remove as it's a generated file
6140
6141 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6142
6143 * config/i386/tm-i386.h (struct frame_info, struct
6144 frame_saved_regs, struct value, struct type): Remove forward
6145 declarations.
6146
6147 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6148 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6149 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6150 (FILL_FPXREGSET): Define.
6151
6152 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6153
6154 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6155 i[3456]86-*-netbsd* case.
6156 * config/i386/tm-obsd.h: Removed.
6157 * config/i386/obsd.mt: Removed.
6158 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6159 core-aout.o.
6160 (MH_CFLAGS): Add -DYYDEBUG=0.
6161
6162 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6163 i386nbsd_sc_pc_offset on OpenBSD too.
6164
6165 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6166 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6167 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6168 define.
6169 * i386bsd-tdep.c: Include "arch-utils.h".
6170 (i386bsd_aout_in_solib_call_trampoline): New function.
6171 (i386bsd_init_abi): Set in_solib_call_trampoline to
6172 i386bsd_aout_in_solib_call_trampoline.
6173 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6174 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6175
6176 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6177
6178 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6179 (struct obstack, struct bcache): Add opaque declarations.
6180 * Makefile.in (macrotab_h): Update
6181
6182 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6183
6184 * blockframe.c (generic_find_dummy_frame): Change return type to
6185 ``struct regcache''.
6186 (struct dummy_frame): Replace field ``registers'' with regcache, a
6187 struct regcache object.
6188 (generic_find_dummy_frame): Update.
6189 (generic_push_dummy_frame): Update. Use regcache_xfree,
6190 regcache_xmalloc and regcache_cpy.
6191 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6192 regcache_xfree.
6193 (deprecated_generic_find_dummy_frame): Update.
6194 (generic_read_register_dummy): Update. Use
6195 regcache_read_as_address.
6196 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6197 (generic_get_saved_register): Update. Use regcache_read.
6198
6199 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6200
6201 * Makefile.in (objfiles_h): Add $(bcache_h).
6202 * objfiles.h: Include "bcache.h".
6203
6204 * Makefile.in (symtab_h): Remove $(bcache_h).
6205 * symtab.h: Do not include "bcache.h".
6206
6207 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6208
6209 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6210 generic_func_frame_chain_valid.
6211
6212 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6213
6214 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6215 * config/i386/tm-fbsd.h: Likewise.
6216
6217 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6218
6219 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6220 generic_unwind_get_saved_register.
6221
6222 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6223
6224 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6225 * regcache.c (supply_register): Add missing argument to
6226 register_buffer call.
6227
6228 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6229
6230 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6231 Solaris /bin/grep does not not like it. From Peter Schauer.
6232
6233 2002-06-26 Tom Tromey <tromey@redhat.com>
6234
6235 * command.h (add_setshow_cmd): Declare.
6236 (add_setshow_cmd_full): Declare.
6237 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6238 returns void. Use add_setshow_cmd_full.
6239 (add_setshow_cmd_full): New function.
6240 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6241 (add_setshow_boolean_cmd): Likewise.
6242
6243 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6244
6245 * config/vax/tm-vax.h: Protect from multiple inclusion.
6246 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6247 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6248 * config/vax/tm-vaxbsd.h: ...here. New file.
6249 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6250
6251 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6252
6253 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6254 (BELIEVE_PCC_PROMOTION): Remove.
6255 (AP_REGNUM): Move to...
6256 * config/vax/nm-vax.h: ...here.
6257 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6258 (vax_breakpoint_from_pc): New function.
6259 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6260 and gdbarch_believe_pcc_promotion.
6261
6262 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6263
6264 * Makefile.in (vax_tdep_h): Define.
6265 (vax-tdep.o): Use $(vax_tdep_h).
6266 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6267 (vax_dump_tdep): New function.
6268 (_initialize_vax_tdep): Register vax_dump_tdep.
6269 * vax-tdep.h: Include osabi.h.
6270 (struct gdbarch_tdep): New.
6271
6272 2002-06-26 Andrew Cagney <cagney@redhat.com>
6273
6274 * frame.h (deprecated_generic_find_dummy_frame): Rename
6275 generic_find_dummy_frame.
6276 * blockframe.c (generic_find_dummy_frame): Make static.
6277 (deprecated_generic_find_dummy_frame): New function.
6278 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6279 generic_find_dummy_frame with deprecated_find_dummy_frame.
6280 (sh64_nofp_frame_init_saved_regs): Ditto.
6281 (sh_fp_frame_init_saved_regs): Ditto.
6282 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6283 (s390_frame_chain): Ditto.
6284 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6285
6286 2002-06-26 Grace Sainsbury <graces@redhat.com>
6287
6288 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6289 gdbarch vector are at the top.
6290 (NUM_REGS): Remove.
6291 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6292 (FRAME_ARGS_ADDRESS): Remove.
6293 (FRAME_LOCALS_ADDRESS): Remove.
6294 (FRAME_NUM_ARGS): Remove.
6295 (FRAME_ARGS_SKIP): Remove.
6296 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6297 (m68k_gdbarch_init): Add gdbarch initializations for macros
6298 undefined in tm-m68k.h
6299
6300 2002-06-26 Grace Sainsbury <graces@redhat.com>
6301
6302 * monitor.h: Add the function regname to monitor_ops
6303 structure. This way NUM_REGS does not have to be a constant.
6304 * monitor.c (monitor_fetch_register): Added support for regname
6305 function. The function is called if the array regnames is NULL.
6306 (monitor_store_register): Same.
6307 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6308 regnames array.
6309 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6310 cpu32bug_cmds.regname to point to new function.
6311 * abug-rom.c (abug_regname): Same as above.
6312 (init_abug_cmds): Same.
6313 * dbug-rom.c (dbug_regname): Same as above.
6314 (init_dbug_cmds): Same.
6315 * remote-est.c (est_regname): Same.
6316 (init_est_cmds): Same.
6317 * rom68k-rom.c (rom68k_regname): Same.
6318 (init_rom68k_cmds): Same.
6319
6320 2002-06-25 Tom Tromey <tromey@redhat.com>
6321
6322 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6323
6324 2002-06-25 Andrew Cagney <cagney@redhat.com>
6325
6326 * infrun.c (stop_registers): Change variable's type to ``struct
6327 regcache'''.
6328 (xmalloc_inferior_status): Delete function.
6329 (free_inferior_status): Delete function.
6330 (normal_stop): Use regcache_cpy.
6331 (struct inferior_status): Change type of fields ``stop_registers''
6332 and ``registers'' to ``struct regcache''.
6333 (write_inferior_status_register): Use regcache_write.
6334 (save_inferior_status): Instead of calling
6335 xmalloc_inferior_status, allocate the inf_status buffer directly.
6336 Use regcache_dup_no_passthrough and regcache_dup to save the
6337 buffers.
6338 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6339 Replace the stop_registers regcache instead of overriding it. Use
6340 regcache_xfree. Instead of calling free_inferior_status, xfree
6341 the buffer directly.
6342 (discard_inferior_status): Use regcache_xfree. Instead of calling
6343 free_inferior_status, xfree the buffer directly.
6344 (build_infrun): Use regcache_xmalloc.
6345 (_initialize_infrun): Delete redundant call to build_infrun.
6346
6347 * Makefile.in (infcmd.o): Add $(regcache_h).
6348
6349 * infcmd.c: Include "regcache.h".
6350 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6351 obtain the address of `stop_registers' register buffer.
6352 (print_return_value): Ditto.
6353
6354 * inferior.h (struct regcache): Add opaque declaration.
6355 (stop_registers): Change variable's declared type to ``struct
6356 regcache''.
6357
6358 2002-06-24 Tom Tromey <tromey@redhat.com>
6359
6360 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6361 * target.c (initialize_targets): Fixed typo in
6362 trust-readonly-sections `show' documentation.
6363
6364 * main.c: Marked all strings with _().
6365
6366 2002-06-24 Don Howard <dhoward@redhat.com>
6367
6368 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6369 that means max CORE_ADDR+1.
6370 (lookup_mem_region): Ditto.
6371 (mem_info_command): Ditto.
6372
6373 2002-06-24 Grace Sainsbury <graces@redhat.com>
6374
6375 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6376 (REGISTER_BYTES_OK): Remove.
6377 (REGISTER_BYTES): Remove.
6378 (STORE_STRUCT_RETURN): Remove.
6379 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6380 (STORE_RETURN_VALUE): Remove.
6381 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6382 (FRAME_CHAIN): Remove.
6383 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6384 (FRAME_SAVED_PC): Remove.
6385 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6386 (m68k_store_struct_return): Add.
6387 (m68k_deprecated_extract_return_value): Add.
6388 (m68k_deprecated_extract_struct_value_address): Add.
6389 (m68k_store_return_value): Add.
6390 (m68k_frame_chain): Add.
6391 (m68k_frameless_function_invocation): Add.
6392 (m68k_frame_saved_pc): Add.
6393 (m68k_gdbarch_init): added set_gdbarch calls for new
6394 functions and deleted macros.
6395
6396 2002-06-23 Tom Tromey <tromey@redhat.com>
6397
6398 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6399 (ALLDEPFILES): Likewise.
6400 (udiheaders): Removed.
6401 (udip2soc.o): Likewise.
6402 (udi2go32.o): Likewise.
6403 (udr.o): Likewise.
6404 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6405
6406 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6407
6408 * infrun.c (_initialize_infrun): Delete unnecessary call to
6409 build_infrun.
6410
6411 * regcache.h: Update comments describing the regcache_cpy family
6412 of functions.
6413 (regcache_save, regcache_restore): Delete declaration.
6414 (regcache_save_no_passthrough): Delete declaration.
6415 (regcache_restore_no_passthrough): Delete declaration.
6416 * regcache.c (regcache_save): Delete function.
6417 (regcache_save_no_passthrough): Delete function.
6418 (regcache_restore): Delete function.
6419 (regcache_restore_no_passthrough): Delete function.
6420
6421 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6422
6423 * config/m68k/tm-m68k.h: Fix typo.
6424 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6425 (m68k_frame_init_saved_regs): Declare.
6426
6427 2002-06-21 Jim Blandy <jimb@redhat.com>
6428
6429 Remove some vestiges of Harris 88k support.
6430 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6431 register numbering quirk.
6432 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6433 odd symbols occurring in Harris 88k ELF targets.
6434
6435 2002-06-21 Tom Tromey <tromey@redhat.com>
6436
6437 * gdb_locale.h: New file.
6438 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6439 (defs_h): Added gdb_locale.h.
6440 * configure, config.in: Rebuilt.
6441 * configure.in (PACKAGE): Define.
6442 * defs.h: Include gdb_locale.h.
6443 * main.c (captured_main): Call setlocale, bindtextdomain,
6444 textdomain.
6445
6446 2002-06-21 Dave Brolley <brolley@redhat.com>
6447
6448 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6449 * config/frv/frv.mt: New file.
6450 * config/frv/tm-frv.h: New file.
6451 * configure.tgt: Support frv-*-*.
6452 * Makefile.in (frv-tdep.o): New target.
6453 * frv-tdep.c: New file.
6454 * NEWS: Mention frv.
6455
6456 2002-06-21 Dave Brolley <brolley@redhat.com>
6457
6458 * MAINTAINERS: Add self to "Write After Approval" list.
6459
6460 2002-06-21 Grace Sainsbury <graces@redhat.com>
6461
6462 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6463 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6464 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6465 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6466 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6467
6468 * m68k-tdep.c: Include arch-utils.h
6469 (m68k_register_raw_size): Add.
6470 (m68k_register_virtual_size): Add.
6471 (m68k_register_virtual_type): Add.
6472 (m68k_register_name): Add.
6473 (m68k_stack_align): Add.
6474 (m68k_register_byte): Add.
6475 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6476 tm-m68k.h.
6477
6478 2002-06-21 Grace Sainsbury <graces@redhat.com>
6479
6480 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6481 m68k_find_saved_regs.
6482 (m68k_pop_frame): Removed saved_regs structure, and replaced
6483 references to it with frame->saved_regs.
6484 (m68k_gdbarch_init): Added function calls to initialize the
6485 gdbarch structure.
6486 (m68k_fix_call_dummy): Add.
6487 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6488 (CALL_DUMMY): Remove.
6489 (CALL_DUMMY_LENGTH): Remove.
6490 (CALL_DUMMY_START_OFFSET): Remove.
6491 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6492 (FIX_CALL_DUMMY): Remove.
6493 (PUSH_DUMMY_FRAME): Remove.
6494 (POP_FRAME): Remove.
6495
6496 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6497
6498 * parse.c (parse_fprintf): New function used to avoid calls to
6499 fprintf in bison parser generated debug code.
6500 * parser-defs.h: Declaration of new parse_fprintf function.
6501 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6502 Set YYDEBUG to 1 by default.
6503 Set YYFPRINTF as parse_fprintf.
6504
6505 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6506
6507 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6508 encoding anymore.
6509 (pointer_encoding, enum ptr_encoding): New.
6510 (execute_cfa_program): Take care about pointer encoding.
6511 (dwarf2_build_frame_info): Only call parse_frame_info for
6512 .debug_frame and .eh_frame.
6513 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6514 fixed augmentation handling, added relative addressing,
6515 ignore duplicate FDEs. Added comments.
6516 * dwarf2cfi.c: Reindented.
6517
6518 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6519
6520 * event-top.c (command_handler): Don't use space_at_cmd_start
6521 unless there is sbrk() on the host. Assign time and space data
6522 to union fields of the appropriate length.
6523
6524 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6525
6526 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6527 x86_64_register_name. Return type changed to 'const char *'.
6528 (x86_64_register_name2nr): Rename to x86_64_register_number.
6529 (x86_64_gdbarch_init): Update to reflect the change.
6530 * x86-64-tdep.h: Ditto.
6531 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6532 (supply_fpregset): Ditto.
6533
6534 2002-06-19 Andrew Cagney <cagney@redhat.com>
6535
6536 * regcache.h: Update copyright.
6537 (struct regcache, struct gdbarch): Add opaque declarations.
6538 (current_regcache): Declare global variable.
6539 (regcache_read, regcache_write): Add gdbarch parameter.
6540 (regcache_save, regcache_save_no_passthrough)
6541 (regcache_restore, regcache_restore_no_passthrough)
6542 (regcache_dup, regcache_dup_no_passthrough)
6543 (regcache_cpy, regcache_cpy_no_passthrough)
6544 (deprecated_grub_regcache_for_registers)
6545 (deprecated_grub_regcache_for_register_valid)
6546 (regcache_valid_p): Add function declarations.
6547
6548 * regcache.c: Update copyright.
6549 (regcache_descr_handle): New global variable.
6550 (struct regcache_descr): Define.
6551 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6552 (regcache_descr, xfree_regcache_descr): New functions.
6553 (struct regcache): Define.
6554 (regcache_xmalloc, regcache_xfree): New functions.
6555 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6556 (regcache_dup, regcache_dup_no_passthrough): New functions.
6557 (regcache_valid_p, regcache_read_as_address): New functions.
6558 (deprecated_grub_regcache_for_registers): New function.
6559 (deprecated_grub_regcache_for_register_valid): New function.
6560 (current_regcache): New global variable.
6561 (register_buffer): Add regcache parameter. Update calls.
6562 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6563 (read_register_gen, write_register_gen): Update register_buffer
6564 call. Test for legacy_p instead of gdbarch_register_read_p or
6565 gdbarch_register_write_p.
6566 (regcache_collect): Update register_buffer call.
6567 (build_regcache): Rewrite. Use deprecated grub functions.
6568 (regcache_save, regcache_save_no_passthrough): New functions.
6569 (regcache_restore, regcache_restore_no_passthrough): New
6570 functions.
6571 (_initialize_regcache): Create the regcache_data_handle. Swap
6572 current_regcache global variable.
6573
6574 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6575 parameter to regcache_read and regcache_write calls.
6576 (sh4_register_read): Ditto.
6577 (sh64_pseudo_register_read): Ditto.
6578 (sh64_register_read): Ditto.
6579 (sh_pseudo_register_write): Ditto.
6580 (sh4_register_write): Ditto.
6581 (sh64_pseudo_register_write): Ditto.
6582 (sh64_register_write): Ditto.
6583
6584 * defs.h (XCALLOC): Define.
6585
6586 2002-06-19 Grace Sainsbury <graces@redhat.com>
6587
6588 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6589 * m68k-tdep.c (m68k_gdbarch_init): Added.
6590 (m68k_dump_tdep): Added.
6591
6592 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6593
6594 * ada-lang.c (fill_in_ada_prototype): Update comment.
6595
6596 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6597
6598 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6599 MIPS_ABI_LAST.
6600 (mips_abi_string, mips_abi_strings): New.
6601 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6602 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6603 tdep->mips_abi_string. Honor mips_abi_string. Default to
6604 O32 if no ABI is found.
6605 (mips_dump_tdep): Use mips_abi_strings.
6606 (mips_abi_update): New function.
6607 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6608 ``set mips abi'' and ``show mips abi''. Check the size of
6609 mips_abi_strings.
6610
6611 2002-06-19 Andrew Cagney <cagney@redhat.com>
6612
6613 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6614 constant.
6615
6616 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6617
6618 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6619 current frame using only the first stack size adjustment. All
6620 subsequent size adjustments are not considered to be part of
6621 the "static" part of the current frame.
6622 Compute the address of the saved registers relative to the
6623 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6624 in use in this frame.
6625
6626 2002-06-18 Don Howard <dhoward@redhat.com>
6627
6628 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6629 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6630 suggesting this solution.
6631
6632 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6633
6634 * config/romp/xm-rtbsd.h: Delete file.
6635 * config/romp/rtbsd.mh: Delete file.
6636
6637 2002-06-18 Keith Seitz <keiths@redhat.com>
6638
6639 * breakpoint.c (condition_command): Post breakpoint_modify
6640 when a condition is added to an existing breakpoint.
6641 (commands_command): Likewise for commands.
6642 (set_ignore_count): Likewise for ignore counts.
6643 If no tty, do not simply return, still need to send event
6644 notification.
6645 (ignore_command): Only print a newline if the command came
6646 from a tty.
6647 Don't call breakpoints_changed, since this is now properly
6648 handled by set_ignore_count.
6649
6650 2002-06-18 Andrew Cagney <cagney@redhat.com>
6651
6652 * MAINTAINERS: Note that cris-elf target can be compiled with
6653 -Werror.
6654 * cris-tdep.c (cris_register_name): Make return type constant.
6655 (cris_breakpoint_from_pc): Ditto.
6656
6657 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6658
6659 * frame.h (struct frame_info): Change type of context to
6660 'struct context'.
6661
6662 2002-06-17 Andrew Cagney <cagney@redhat.com>
6663
6664 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6665 pointer.
6666 * gdbarch.h, gdbarch.c: Regenerate.
6667 * config/mips/tm-mips.h (mips_register_name): Update.
6668 * i386-tdep.h (i386_register_name): Update.
6669 * mips-tdep.c (mips_register_name): Update
6670 * alpha-tdep.c (alpha_register_name): Update.
6671 * arch-utils.c (legacy_register_name): Update.
6672 * arch-utils.h (legacy_register_name): Update.
6673 * avr-tdep.c (avr_register_name): Update.
6674 * ia64-tdep.c (ia64_register_name): Update.
6675 * i386-tdep.c (i386_register_name): Update.
6676 * sparc-tdep.c (sparc32_register_name): Update.
6677 (sparc64_register_name): Update.
6678 (sparclite_register_name): Update.
6679 (sparclet_register_name): Update.
6680 * sh-tdep.c (sh_generic_register_name): Update.
6681 (sh_sh_register_name): Update.
6682 (sh_sh3_register_name): Update.
6683 (sh_sh3e_register_name): Update.
6684 (sh_sh_dsp_register_name): Update.
6685 (sh_sh3_dsp_register_name): Update.
6686 (sh_sh4_register_name): Update.
6687 (sh_sh64_register_name): Update.
6688 * s390-tdep.c (s390_register_name): Update.
6689 * rs6000-tdep.c (rs6000_register_name): Update.
6690 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6691 (ns32k_register_name_32382): Update.
6692 * d10v-tdep.c (d10v_ts2_register_name): Update.
6693 (d10v_ts3_register_name): Update.
6694 * xstormy16-tdep.c (xstormy16_register_name): Update.
6695 * vax-tdep.c (vax_register_name): Update.
6696 * v850-tdep.c (v850_register_name): Update.
6697 * m68hc11-tdep.c (m68hc11_register_name): Update.
6698 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6699 (am33_register_name): Update.
6700
6701 2002-06-17 Grace Sainsbury <graces@redhat.com>
6702
6703 * m68k-tdep.c: Reindented.
6704
6705 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6706
6707 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6708 list of predefined types.
6709
6710 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6711
6712 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6713 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6714 REGISTER_CONVERT_TO_RAW): Remove defines.
6715 (i386_register_virtual_type, i386_register_convertible,
6716 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6717 Remove prototypes.
6718 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6719 macros mentioned above.
6720
6721 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6722 (i386lynx_saved_pc_after_call): Remove prototype.
6723 * i386ly-tdep.c: Include "i386-tdep.h".
6724 (i386lynx_saved_pc_after_call): Make static. Use
6725 read_memory_nobpt instead of read_memory. Use
6726 read_memory_unsigned_integer instead of read_memory_integer.
6727 (i386lynx_init_abi): New function.
6728 (i386lynx_coff_osabi_sniffer): New function.
6729 (_initialize_i386bsd_tdep): New function.
6730
6731 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6732 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6733 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6734 (i386_fix_call_dummy): Remove prototype.
6735 * i386-tdep.c (i386_call_dummy_words): New variable.
6736 (i386_gdbarch_init): Adjust for removal of the
6737 macros mentioned above.
6738
6739 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6740
6741 * command.h (add_setshow_auto_boolean_cmd): Replace
6742 add_set_auto_boolean_cmd.
6743 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6744 add_set_auto_boolean_cmd.
6745 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6746 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6747 mask-address'' command.
6748 (show_mask_address): Add cmd parameter.
6749 * remote.c (add_packet_config_cmd): Update. Change type of
6750 set_func and show_func to cmd_sfunc_ftype.
6751 (_initialize_remote): Update `set remote Z-packet'
6752 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6753 (show_remote_protocol_e_packet_cmd): Ditto.
6754 (show_remote_protocol_E_packet_cmd): Ditto.
6755 (show_remote_protocol_P_packet_cmd): Ditto.
6756 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6757 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6758 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6759 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6760 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6761 (show_remote_protocol_Z_packet_cmd): Ditto.
6762 (show_remote_protocol_binary_download_cmd): Ditto.
6763 (show_remote_cmd): Pass NULL to all of above.
6764
6765 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6766
6767 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6768 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6769 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6770 POP_FRAME): Remove defines.
6771 (i386_push_arguments, i386_store_struct_return,
6772 i386_extract_return_value, i386_store_return_value,
6773 i386_extract_struct_value_address, i386_push_dummy_frame,
6774 i386_pop_frame): Renove prototypes.
6775 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6776 macros mentioned above.
6777
6778 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6779
6780 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6781 add_set_boolean_cmd.
6782 (add_setshow_cmd): New function.
6783 * command.h (add_setshow_boolean_cmd): Replace
6784 add_set_boolean_cmd.
6785 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6786 and ``set rdiromatzero''.
6787 * maint.c (_initialize_maint_cmds): Update commented out code.
6788 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6789 * target.c (initialize_targets): Update `set
6790 trust-readonly-sections'.
6791 * remote.c (_initialize_remote): Update `set remotebreak'.
6792
6793 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6794
6795 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6796 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6797 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6798 fit into multi-arch framework.
6799 (i386_breakpoint_from_pc): New function.
6800 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6801 above.
6802
6803 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6804 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6805 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6806 (i386_frameless_function_invocation, i386_frame_num_args,
6807 i386_frame_init_saved_regs): Remove prototypes.
6808 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6809 macros mentioned above.
6810
6811 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6812
6813 * cli/cli-decode.c (set_cmd_cfunc): Update.
6814 (set_cmd_sfunc): Update.
6815 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6816 (set_cmd_sfunc, set_cmd_cfunc): Update.
6817 * cli/cli-decode.h: Update.
6818
6819 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6820
6821 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6822 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6823
6824 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6825
6826 * defs.h (auto_boolean): Declare enum.
6827 * command.h (cmd_auto_boolean): Delete enum.
6828 * mips-tdep.c (mask_address_var): Update.
6829 (mips_mask_address_p): Update.
6830 (show_mask_address): Update.
6831 * remote.c (struct packet_config): Update.
6832 (update_packet_config): Update.
6833 (show_packet_config_cmd): Update.
6834 (packet_ok): Update.
6835 (add_packet_config_cmd): Update.
6836 (_initialize_remote):
6837 * command.h: Update.
6838 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6839 (do_setshow_command): Update.
6840 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6841 * cli/cli-decode.h: Update.
6842
6843 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6844
6845 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6846 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6847 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6848 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6849 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6850 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6851
6852 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6853 list of DJGPP COFF targets.
6854
6855 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6856 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6857 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6858 (FP0_REGNUM): Remove define.
6859 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6860 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6861 (i386_register_virtual_size): Remove protoype.
6862 * i386-tdep.c (i386_register_virtual_size): Removed.
6863 (i386_extract_return_value, i386_store_return_value): Use
6864 FP0_REGNUM instead of NUM_FREGS to determine whether the
6865 floating-point registers are available.
6866 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6867 Adjust for removal of macros mentioned above.
6868
6869 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6870
6871 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6872 comments.
6873 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6874 Remove prototypes.
6875 (supply_gregset, fill_gregset): Remove use of register keyword and
6876 remove declaration for regmap. Use I386_NUM_GREGS instead of
6877 NUM_REGS and NUM_FREGS.
6878 (FPREGSET_FSAVE_OFFSET): Remove.
6879 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6880 NUM_FREGS to determine whether the floating-point registers are
6881 available.
6882
6883 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6884 gnu_store_registers): Replace usage of NUM_GREGS with
6885 I386_NUM_GREGS.
6886
6887 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6888 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6889 usage of NUM_GREGS with I386_NUM_GREGS.
6890
6891 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6892
6893 * i386bsd-nat.c: Include "i386-tdep.h".
6894 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6895 I386_NUM_GREGS.
6896
6897 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6898 and associated comment. They no longer make any sense, since we
6899 don't use this file anymore on Linux.
6900
6901 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6902 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6903 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6904 elements in these arrays.
6905 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6906 MAX_NUM_REGS.
6907
6908 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6909
6910 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6911 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6912
6913 2002-06-14 Andrew Cagney <cagney@redhat.com>
6914
6915 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6916 EXTRACT_RETURN_VALUE.
6917 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6918 EXTRACT_STRUCT_VALUE_ADDRESS.
6919 * gdbarch.h, gdbarch.c: Regenerate.
6920
6921 * values.c (value_being_returned): Handle
6922 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6923 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6924
6925 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6926 * arm-tdep.c (arm_gdbarch_init): Update.
6927 * avr-tdep.c (avr_gdbarch_init): Update.
6928 * cris-tdep.c (cris_gdbarch_init): Update.
6929 * d10v-tdep.c (d10v_gdbarch_init): Update.
6930 * ia64-tdep.c (ia64_gdbarch_init): Update.
6931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6932 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6933 * s390-tdep.c (s390_gdbarch_init): Update.
6934 * sh-tdep.c (sh_gdbarch_init): Update.
6935 * s390-tdep.c (s390_gdbarch_init): Update.
6936 * sparc-tdep.c (sparc_gdbarch_init): Update.
6937 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6938 * v850-tdep.c (v850_gdbarch_init): Update.
6939 * vax-tdep.c (vax_gdbarch_init): Update.
6940 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6942
6943 * config/arc/tm-arc.h: Update.
6944 * config/d30v/tm-d30v.h: Update.
6945 * config/fr30/tm-fr30.h: Update.
6946 * config/h8300/tm-h8300.h: Update.
6947 * config/h8500/tm-h8500.h: Update.
6948 * config/i386/tm-i386.h: Update.
6949 * config/i386/tm-ptx.h: Update.
6950 * config/i386/tm-symmetry.h: Update.
6951 * config/i960/tm-i960.h: Update.
6952 * config/m32r/tm-m32r.h: Update.
6953 * config/m68k/tm-delta68.h: Update.
6954 * config/m68k/tm-linux.h: Update.
6955 * config/m68k/tm-m68k.h: Update.
6956 * config/m88k/tm-m88k.h: Update.
6957 * config/mcore/tm-mcore.h: Update.
6958 * config/mips/tm-mips.h: Update.
6959 * config/mn10200/tm-mn10200.h: Update.
6960 * config/pa/tm-hppa.h: Update.
6961 * config/pa/tm-hppa64.h: Update.
6962 * config/sparc/tm-sp64.h: Update.
6963 * config/sparc/tm-sparc.h: Update.
6964 * config/sparc/tm-sparclet.h: Update.
6965 * config/z8k/tm-z8k.h: Update.
6966
6967 2002-06-14 Andrew Cagney <cagney@redhat.com>
6968
6969 * Makefile.in (i386_linux_tdep_h): Define.
6970 (i386_tdep_h, i387_tdep_h): Define.
6971 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6972 $(i386_tdep_h) and $(i387_tdep_h).
6973 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6974
6975 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6976
6977 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6978 Already covered by the default.
6979
6980 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6981 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6982 (i386_gdbarch_init): Initialize long_double_format and long_double
6983 bit.
6984
6985 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6986 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6987 Move these to ...
6988 * config/i386/i386sol2.mh: ... here.
6989 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6990 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6991 (SIGCONTEXT_PC_OFFSET): Remove define.
6992 (IN_SIGTRAMP): Remove define.
6993 * i386-sol2-tdep.c: New file.
6994
6995 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6996 * config/i386/tm-i386nw.h: Removed.
6997
6998 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6999 USE_STRUCT_CONVENTION): Remove defines.
7000 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7001 (get_longjmp_target): Remove prototype.
7002 (IN_SIGTRAMP): Remove define.
7003 (i386bsd_in_sigtramp): Remove prototype.
7004 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7005 function. Update comment accordingly
7006 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7007 (FRAME_SAVED_PC): Remove define.
7008 (i386bsd_frame_saved_pc): Remove prototype.
7009 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7010 GET_LONGJMP_TARGET): Remove defines.
7011 (get_longjmp_target): Remove prototype.
7012 (IN_SIGTRAMP): Remove define.
7013 (i386bsd_in_sigtramp): Remove prototype.
7014 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7015 function. Update comment accordingly
7016 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7017 (FRAME_SAVED_PC): Remove define.
7018 (i386bsd_frame_saved_pc): Remove prototype.
7019 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7020 Remove prototype.
7021 (USE_STRUCT_CONVENTION): Remove prototype.
7022 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7023 declaration.
7024 (_initialize_i386bsd_nat): Revise logic to determine some
7025 constants at compile time when compiling a native GDB. Warn if
7026 things don't match up with what we expect.
7027 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7028 Remove variables.
7029 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7030 to use date stored in `struct gdbarch_tdep'.
7031 (i386bsd_sigcontext_offset): Remove varaible.
7032 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7033 stored in `struct gdbarch_tdep'.
7034 (i386bsd_frame_saved_pc): Make static.
7035 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7036 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7037 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7038 i386fbsd4_sc_pc_offset): New variables.
7039 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7040 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7041 functions.
7042 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7043 functions.
7044 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7045 Modify the value of i386fbsd_sigtramp_start and
7046 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7047 i386fbsd_sigtramp_end.
7048 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7049 function.
7050
7051 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7052 define to i386-linux-tdep.h.
7053 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7054 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7055 defines.
7056 (i386_linux_register_name, i386_linux_register_byte,
7057 i386_linux_register_raw_size): Remove prototypes.
7058 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7059 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7060 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7061 TARGET_WRITE_PC): Remove defines.
7062 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7063 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7064 i386_linux_write_pc): Remove prototypes.
7065 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7066 (get_longjmp_target): Remove prototype.
7067 * i386-linux-tdep.h: New file.
7068 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7069 * i386-linux-tdep.c: Include "i386-tdep.h" and
7070 "i386-linux-tdep.h".
7071 (i386_linux_register_name, i386_linux_register_byte,
7072 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7073 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7074 Make static.
7075 (i386_linux_init_abi): New function.
7076 (_initialize_i386_linux_tdep): New function.
7077
7078 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7079 (i386_saved_pc_after_call): Remove prototype.
7080 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7081 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7082 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7083 (i386_register_name, i386_stab_reg_to_regnum,
7084 i386_dwarf_reg_to_regnum): Remove prototypes.
7085 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7086 SIZEOF_SSE_REGS): Remove defines.
7087 (REGISTER_BYTES): Remove define.
7088 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7089 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7090 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7091 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7092 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7093 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7094 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7095 (get_longjmp_target): Remove prototype.
7096 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7097 (sigtramp_saved_pc): Remove define.
7098 (i386v4_sigtramp_saved_pc): Remove prototype.
7099 * config/i386/tm-go32.h (FRAME_CHAIN,
7100 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7101 (i386go32_frame_saved_pc): Remove prototype.
7102 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7103 (get_longjmp_target): Remove prototype.
7104 * i386-tdep.h: Include "osabi.h".
7105 (enum i386_abi): Removed.
7106 (enum struct_return): New enum.
7107 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7108 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7109 sc_pc_offset members.
7110 (i386_gdbarch_register_os_abi): Remove prototype.
7111 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7112 I386_SSE_NUM_REGS): New defines.
7113 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7114 I386_SSE_SIZEOF_REGS): New defines.
7115 (i386_register_name, i386_register_byte, i386_register_raw_size):
7116 New prototypes.
7117 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7118 (i386bsd_sigtramp_saved_pc): New prototype.
7119 * i386-tdep.c: Don't include "elf-bfd.h".
7120 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7121 i386_frame_chain, i386_saved_pc_after_call): Make static.
7122 (i386_frame_saved_pc): Rewrite to call architecture dependent
7123 function to deal with signal handlers. Make static.
7124 (i386go32_frame_saved_pc): Removed.
7125 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7126 Removed.
7127 (i386_get_longjmp_target): New function.
7128 (default_struct_convention, pcc_struct_convention,
7129 reg_struct_convention, valid_conventions, struct_convention): New
7130 variables.
7131 (i386_use_struct_convention): New function.
7132 (i386v4_sigtramp_saved_pc): Renamed to
7133 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7134 (i386_pc_in_sigtramp): New function.
7135 (i386_abi_names): Removed.
7136 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7137 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7138 Removed.
7139 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7140 i386_gdbarch_register_os_abi): Removed.
7141 (struct i386_abi_handler): Removed.
7142 (i386_abi_handler_list): Removed.
7143 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7144 functions.
7145 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7146 i386_nw_init_abi): New functions.
7147 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7148 Use set_gdbarch_xxx() calls instead of relying on macros for a
7149 number of calls.
7150 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7151 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7152 Register the various architecture variants defined in this file.
7153
7154 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7155
7156 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7157 (struct main_type): Remove arg_types member. Update comments for
7158 struct field.
7159 (TYPE_ARG_TYPES): Remove.
7160 (TYPE_FN_FIELD_ARGS): Update.
7161 (smash_to_method_type): Update prototype.
7162
7163 * c-typeprint.c (cp_type_print_method_args): Take method type
7164 instead of argument list. Use new argument layout. Simplify.
7165 (c_type_print_args): Use new argument layout. Simplify.
7166 (c_type_print_base): Update call to cp_type_print_method_args.
7167 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7168 argument; use die->type instead. Update call to
7169 smash_to_method_type.
7170 (read_structure_scope): Update call to dwarf2_add_member_fn.
7171 * gdbtypes.c (allocate_stub_method): Update comment.
7172 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7173 Use new argument layout.
7174 (check_stub_method): Use new argument layout. Don't count
7175 void as an argument.
7176 (print_arg_types): Update comments. Use new argument layout.
7177 (recursive_dump_type): Don't print arg_types member.
7178 * hpread.c (hpread_read_struct_type): Use new argument layout.
7179 (fixup_class_method_type): Likewise.
7180 (hpread_type_lookup): Likewise.
7181 * stabsread.c (read_type): Update calls to read_args and
7182 smash_to_method_type.
7183 (read_args): Use new argument layout. Simplify.
7184 * valops.c (typecmp): Use new argument layout. Update parameters
7185 and comments. Simplify.
7186 (hand_function_call): Use new argument layout.
7187 (search_struct_method): Update call to typecmp.
7188 (find_overload_match): Use new argument layout.
7189
7190 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7191
7192 * NEWS: Mention multithreaded debug support for gdbserver.
7193
7194 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7195
7196 * MAINTAINERS: Mention NEWS.
7197
7198 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7199
7200 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7201 (struct mips_objfile_private, compare_pdr_entries): New.
7202 (non_heuristic_proc_desc): Read the ".pdr" section if it
7203 is present.
7204
7205 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7206
7207 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7208 (arm_debug): New static variable.
7209 (_initialize_arm_tdep): Add ``set debug arm'' command.
7210
7211 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7212
7213 * Makefile.in (sim_arm_h): Define.
7214 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7215 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7216 (arm_register_sim_regno): New function, map an internal REGNUM
7217 onto a simulator register number.
7218 (arm_gdbarch_init): Set register_sim_regno.
7219
7220 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7221
7222 * MAINTAINERS: Add self.
7223
7224 2002-06-11 Jim Blandy <jimb@redhat.com>
7225
7226 * source.c (source_info): Mention whether the symtab has
7227 information about preprocessor macros.
7228
7229 Call the command `info macro', not `show macro'.
7230 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7231 Fix error message.
7232 (_initialize_macrocmd): Register `info_macro_command' in
7233 `infolist', not `showlist'.
7234
7235 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7236
7237 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7238 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7239 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7240 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7241 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7242 unconditionally.
7243 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7244 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7245 (_initialize_mips_tdep): Remove dead code.
7246 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7247 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7248 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7249 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7250 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7251 MIPS_LAST_FP_ARG_REGNUM): Remove.
7252
7253 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7254
7255 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7256 (unwind_tmp_obstack_free, parse_frame_info)
7257 (update_context, cfi_read_fp, cfi_write_fp)
7258 (cfi_frame_chain, cfi_init_extra_frame_info)
7259 (cfi_virtual_frame_pointer): Use the above function.
7260 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7261
7262 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7263
7264 * v850-tdep.c (v850_type_is_scalar): New function.
7265 (v850_use_struct_convention): Match current gcc implementation
7266 as close as possible.
7267 (v850_push_arguments): Fix stack_offset handling. Don't write
7268 struct_addr into register. This is done by v850_store_struct_return.
7269 (v850_extract_return_value): Care for structs.
7270 (v850_store_return_value): Ditto.
7271 (v850_store_struct_return): Actually write address.
7272
7273 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7274
7275 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7276 without debug information too.
7277
7278 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7279
7280 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7281 Make multi-arch pure.
7282 * gdbarch.h, gdbarch.c: Re-generate.
7283 * arm-tdep.c (arm_print_float_info): Update.
7284 * arch-utils.h (default_print_float_info): Update.
7285 * arch-utils.c (default_print_float_info): Update.
7286 * infcmd.c (float_info): Update call.
7287
7288 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7289
7290 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7291 the front of the initialize list.
7292
7293 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7294
7295 * infrun.c (struct inferior_status): Replace fields
7296 selected_frame_address and selected_level with field
7297 selected_frame_id.
7298 (save_inferior_status): Update. Use get_frame_id.
7299 (struct restore_selected_frame_args): Delete.
7300 (restore_selected_frame): Update. Use frame_find_by_id.
7301 (restore_inferior_status): Update.
7302
7303 * breakpoint.h (struct breakpoint): Change type of
7304 watchpoint_frame to frame_id.
7305 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7306 call to get_current_frame.
7307 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7308 get_current_frame.
7309 (watchpoint_check): Use frame_find_by_id.
7310
7311 * frame.h (record_selected_frame): Delete declaration.
7312 * stack.c (record_selected_frame): Delete function.
7313
7314 * frame.h (struct frame_id): Define.
7315 (get_frame_id): Declare.
7316 (frame_find_by_id): Declare.
7317 * frame.c (frame_find_by_id): New function.
7318 (get_frame_id): New function.
7319
7320 2002-06-10 Andrey Volkov <avolkov@transas.com>
7321
7322 * ser-e7kpc.c: Fix duplicated define and call of
7323 _initialize_ser_e7000pc
7324
7325 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7326
7327 * signals/signals.c (target_signal_from_host): Fix #ifdef
7328 SIGRTMIN case.
7329 (do_target_signal_to_host): Likewise.
7330
7331 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7332
7333 * mips-tdep.c (mips_find_abi_section): New function.
7334 (mips_gdbarch_init): Call it.
7335
7336 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7337
7338 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7339 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7340 after Andrew's 2002-06-08 gdbarch change.
7341
7342 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7343
7344 * i386-linux-nat.c (suppy_gregset): Don't supply
7345 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7346 register cache.
7347 (fill_gregset): Don't fetch it under the same circumstances.
7348
7349 2002-06-09 Andrew Cagney <cagney@redhat.com>
7350
7351 * Makefile.in (callback_h): Define.
7352 (remote_sim_h): Update path to remote-sim.h.
7353 (remote-rdp.o): Add $(callback_h).
7354 (remote-sim.o): Use $(callback_h).
7355 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7356 * remote-rdp.c: Include "gdb/callback.h".
7357
7358 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7359
7360 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7361 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7362
7363 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7364
7365 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7366 * rdi-share/serpardr.c: Ditto.
7367 * rdi-share/unixcomm.c: Ditto.
7368 * rdi-share/serdrv.c: Ditto.
7369 * rdi-share/hostchan.h: Ditto.
7370 * rdi-share/hostchan.c: Ditto.
7371 * rdi-share/host.h: Ditto.
7372 * rdi-share/devsw.c: Ditto.
7373
7374 * objfiles.h: Change type of obj_private to void pointer.
7375 * pa64solib.c: Update copyright. Don't include "assert.h", use
7376 strcmp instead of STREQ, use LONGEST, do not use PTR
7377 * somsolib.c: Ditto.
7378
7379 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7380 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7381 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7382
7383 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7384
7385 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7386 (default_get_saved_register): Delete function.
7387 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7388 generic_unwind_get_saved_register.
7389 * gdbarch.h, gdbarch.c: Re-generate.
7390
7391 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7392
7393 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7394 generic_func_frame_chain_valid.
7395 * gdbarch.h, gdbarch.c: Re-generate.
7396 * blockframe.c (generic_func_frame_chain_valid): Only check
7397 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7398 passing FP to PC_IN_CALL_DUMMY.
7399 Fix PR gdb/360.
7400
7401 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7402
7403 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7404 (register_gdbarch_data): Initialize init_p.
7405 (gdbarch_data): Initialize data pointer using the init function.
7406 (init_gdbarch_data): Delete function.
7407 (gdbarch_update_p): Update.
7408 (initialize_non_multiarch): Update.
7409 (struct gdbarch): Add field initialized_p.
7410 * gdbarch.h, gdbarch.c: Re-generate.
7411
7412 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7413
7414 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7415 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7416 better do the things actually here.
7417 * x86-64-tdep.c (x86_64_register_name2nr): New.
7418 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7419 (x86_64_gdbarch_init): Respect the above change.
7420 * x86-64-tdep.h (x86_64_register_name2nr)
7421 (x86_64_register_nr2name): Add prototypes.
7422 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7423
7424 2002-06-06 Michael Snyder <msnyder@redhat.com>
7425
7426 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7427 Delete extra braces and re-indent.
7428 (d10v_store_return_value): Char return values
7429 must be shifted over by one byte in R0.
7430 (d10v_extract_return_value): Delete extra braces, re-indent.
7431
7432 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7433
7434 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7435 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7436 (d10v_integer_to_address): Rewrite.
7437 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7438 the d10v specific functions which take care of converting to the
7439 correct space.
7440
7441 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7442
7443 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7444 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7445
7446 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7447
7448 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7449 includes.
7450 * config/tm-linux.h: Ditto.
7451 * config/alpha/tm-alphalinux.h: Ditto.
7452 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7453 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7454 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7455 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7456 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7457 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7458 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7459 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7460 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7461 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7462 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7463 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7464 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7465 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7466 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7467 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7468 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7469 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7470 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7471 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7472 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7473 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7474 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7475 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7476 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7477 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7478 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7479 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7480 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7481 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7482 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7483 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7484 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7485 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7486 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7487 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7488 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7489
7490 2002-05-04 Aidan Skinner <aidan@velvet.net>
7491
7492 * ada-exp.tab.c: New file
7493 * ada-exp.y: New file
7494 * ada-lang.c: New file
7495 * ada-lang.h: New file
7496 * ada-lex.c: New file
7497 * ada-lex.l: New file
7498 * ada-tasks.c: New file
7499 * ada-typeprint.c: New file
7500 * ada-valprint.c: New file
7501
7502 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7503
7504 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7505 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7506
7507 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7508
7509 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7510 insetead of ppc-linux-tdep.o.
7511 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7512 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7513
7514 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7515
7516 2002-05-07 Christian Groessler <chris@groessler.org>
7517 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7518 bit register contents for little endian hosts.
7519
7520 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7521
7522 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7523 any maintainer.
7524
7525 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7526
7527 * gdbarch.h: Regenerate.
7528
7529 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7530
7531 * MAINTAINERS: Add everyone to write-after-approval list.
7532
7533 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7534
7535 * stack.c (frame_info): Use frame_register_unwind instead of
7536 saved_regs. Mention when the SP is on the stack or in a register.
7537
7538 * frame.h (frame_register_unwind_ftype): Define. Document.
7539 (struct frame_info): Add field register_unwind and
7540 register_unwind_cache.
7541 (frame_register_unwind): Declare.
7542 (generic_unwind_get_saved_register): Declare.
7543
7544 * frame.c (frame_register_unwind): New function.
7545 (generic_unwind_get_saved_register): New function.
7546
7547 * blockframe.c (generic_call_dummy_register_unwind): New function.
7548 (frame_saved_regs_register_unwind): New function.
7549 (set_unwind_by_pc): New function.
7550 (create_new_frame): New function.
7551 (get_prev_frame): New function.
7552
7553 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7554
7555 * a29k-share/: Delete directory.
7556 * remote-vx29k.c: Delete file.
7557
7558 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7559
7560 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7561 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7562
7563 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7564
7565 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7566 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7567 (sparc64nbsd-nat.o)
7568 (sparcnbsd-nat.o)
7569 (sparcnbsd-tdep.o): New dependency lists.
7570 * NEWS: Note new UltraSPARC NetBSD native configuration.
7571 * configure.host (sparc64-*-netbsd*): New host.
7572 * configure.tgt (sparc-*-netbsdelf*)
7573 (sparc-*-netbsd*): Set gdb_target to nbsd.
7574 (sparc64-*-netbsd*): New target.
7575 * sparc64nbsd-nat.c: New file.
7576 * sparcnbsd-nat.c: New file.
7577 * sparcnbsd-tdep.c: New file.
7578 * sparcnbsd-tdep.h: New file.
7579 * config/sparc/nbsd.mt: New file.
7580 * config/sparc/nbsd64.mh: New file.
7581 * config/sparc/nbsd64.mt: New file.
7582 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7583 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7584 (HOST_IPC): Remove.
7585 * config/sparc/nbsdaout.mt: Remove.
7586 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7587 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7588 (HOST_IPC): Remove.
7589 * config/sparc/nbsdelf.mt: Remove.
7590 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7591 sparc-nat.c compatiblity defines.
7592 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7593 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7594 * config/sparc/tm-nbsd64.h: New file.
7595 * config/sparc/tm-nbsdaout.h: Remove.
7596 * config/sparc/xm-nbsd.h: Remove.
7597
7598 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7599
7600 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7601 * sparc-tdep.c: Include osabi.h.
7602 (gdbarch_tdep): Add osabi member.
7603 (_initialize_sparc_tdep): Use gdbarch_register.
7604 (sparc_gdbarch_init): Use generic OS ABI framework.
7605 (sparc_dump_tdep): New function.
7606
7607 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7608
7609 * corefile.c (do_captured_read_memory_integer): Return non-zero
7610 result.
7611 (safe_read_memory_integer): Copy result of memory read when
7612 status is non-zero. Also, add comments.
7613
7614 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7615
7616 * Makefile.in (ppc_tdep_h): Define.
7617 (ppc-linux-nat.o)
7618 (ppc-linux-tdep.o)
7619 (rs6000-tdep.o): Use $(ppc_tdep_h).
7620 (ppc-sysv-tdep.o)
7621 (ppcnbsd-nat.o)
7622 (ppcnbsd-tdep.o): New dependency lists.
7623 * ppc-tdep.h: Use generic OS ABI framework.
7624 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7625 (ppc_linux_init_abi): New functions.
7626 (ppc_sysv_abi_broken_use_struct_convention)
7627 (ppc_sysv_abi_use_struct_convention)
7628 (ppc_sysv_abi_push_arguments): Move to...
7629 * ppc-sysv-tdep.c: ...here.
7630 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7631 * rs6000-tdep.c (process_note_abi_tag_sections)
7632 (get_elfosabi): Remove.
7633 (rs6000_gdbarch_init): Use generic OS ABI framework.
7634 (rs6000_dump_tdep): New function.
7635 (_initialize_rs6000_tdep): Use gdbarch_register.
7636 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7637 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7638 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7639 of ppc-linux-tdep.o.
7640 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7641 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7642 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7643 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7644 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7645 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7646
7647 2002-05-29 Jim Blandy <jimb@redhat.com>
7648
7649 * macroscope.c (default_macro_scope): Put `void' in empty argument
7650 list.
7651
7652 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7653
7654 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7655 * arch-utils.c: Include "sim-regno.h".
7656 * gdbarch.sh: Don't include "sim-regno.h".
7657 * gdbarch.h, gdbarch.c: Regenerate.
7658 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7659 here.
7660 * arch-utils.h (legacy_register_sim_regno): To here.
7661 * remote-sim.c (legacy_register_sim_regno): Move function from
7662 here.
7663 * arch-utils.c (legacy_register_sim_regno): To here.
7664
7665 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7666
7667 * sim-regno.h: New file.
7668 * Makefile.in (sim_regno_h): Define.
7669 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7670 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7671 (legacy_register_sim_regno): New function.
7672 (one2one_register_sim_regno): New function.
7673 (gdbsim_fetch_register): Rewrite.
7674 (gdbsim_store_register): Only store a register when
7675 REGISTER_SIM_REGNO is valid.
7676 * d10v-tdep.c: Include "sim-regno.h".
7677 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7678 (d10v_ts3_register_sim_regno): Ditto.
7679 * gdbarch.sh: Include "sim-regno.h".
7680 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7681 * gdbarch.h, gdbarch.c: Regenerate.
7682 * arch-utils.h (default_register_sim_regno): Delete declaration.
7683 * arch-utils.c (default_register_sim_regno): Delete function.
7684
7685 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7686
7687 * ppcnbsd-nat.c: Rewrite.
7688 * ppcnbsd-tdep.c: New file.
7689 * ppcnbsd-tdep.h: New file.
7690 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7691 solib.o, and solib-svr4.o.
7692 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7693 nbsd-tdep.o, and corelow.o.
7694
7695 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7696
7697 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7698 `tr' and `sed'. Mention that `broken' targets are not expected to
7699 build.
7700
7701 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7702
7703 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7704 Let PC point right after the prologue before looking up symbols.
7705
7706 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7707
7708 * i386-tdep.c (i386_register_virtual_type): Return
7709 builtin_type_vec128i for SSE registers.
7710
7711 * gdbtypes.h (builtin_type_vec128i): Declare.
7712
7713 * gdbtypes.c (build_builtin_type_vec128i): New function.
7714 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7715 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7716 (build_gdbtypes): Initialize new builtin vector types.
7717 (_initialize_gdbtypes): Register new vector types with gdbarch.
7718
7719 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7722 since it has been multi-arch'd.
7723 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7724 Move Alpha and VAX multi-arch news entries to same section
7725 as other multi-arch news.
7726
7727 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7728
7729 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7730 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7731 static. Rename some register numbers to put them in ns32k-tdep
7732 private namespace.
7733 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7734 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7735 functions.
7736 (_initialize_ns32k_tdep): Use gdbarch_register.
7737 * ns32k-tdep.h: New file.
7738 * ns32knbsd-tdep.c: New file.
7739 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7740 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7741 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7742 REGISTER_BYTES, REGISTER_BYTE): Remove.
7743 * config/ns32k/tm-ns32k.h: New file.
7744 * config/ns32k/tm-umax.h: Remove.
7745
7746 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7747
7748 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7749 ns32k_store_struct_return, ns32k_extract_return_value,
7750 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7751 functions.
7752 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7753 ns32k_saved_pc_after_call.
7754 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7755 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7756 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7757 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7758 ns32k_extract_struct_value_address.
7759
7760 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7761
7762 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7763 ns32k_fix_call_dummy): New.
7764 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7765 ns32k_call_dummy_words.
7766 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7767 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7768 CALL_DUMMY_NARGS): Remove.
7769 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7770
7771 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7772
7773 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7774 ns32k_frame_saved_pc, ns32k_frame_args_address,
7775 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7776 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7777 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7778 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7779 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7780 (BREAKPOINT): Remove..
7781 (FRAME_CHAIN): Define as ns32k_frame_chain.
7782 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7783 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7784 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7785 (FRAME_FIND_SAVED_REGS): Remove.
7786 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7787 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7788 (POP_FRAME): Define as ns32k_pop_frame.
7789
7790 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7791
7792 * ns32k-tdep.c (ns32k_register_byte_32082,
7793 ns32k_register_byte_32382, ns32k_register_raw_size,
7794 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7795 functions.
7796 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7797 ns32k_register_byte_32382.
7798 * config/ns32k/tm-umax.h: Update copyright years.
7799 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7800 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7801 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7802 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7803 (ns32k_get_enter_addr): Fix prototype.
7804
7805 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7806
7807 * ns32k-tdep.c: Update copyright years.
7808 (ns32k_register_name_32082): New function.
7809 (ns32k_register_name_32382): Ditto.
7810 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7811 (REGISTER_NAME): Define as ns32k_register_name_32382.
7812 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7813 (REGISTER_NAME): Define as ns32k_register_name_32082.
7814
7815 2002-05-24 Jim Blandy <jimb@redhat.com>
7816
7817 * dwarf2read.c (free_line_header): Use xfree, not free.
7818
7819 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7820
7821 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7822 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7823
7824 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7825
7826 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7827
7828 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7829
7830 From Ross Alexander at NEC Europe:
7831 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7832
7833 2002-05-23 Michael Snyder <msnyder@redhat.com>
7834
7835 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7836 for input, rather than parse_and_eval_address.
7837
7838 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7839
7840 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7841 * Makefile.in (sim_d10v_h): Update definition.
7842
7843 2002-05-24 Andrew Cagney <cagney@redhat.com>
7844
7845 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7846 change `2002-05-22 Michael Snyder' below.
7847 (d10v_push_arguments): Ditto.
7848 (d10v_extract_return_value): Ditto.
7849
7850 2002-05-23 Jim Blandy <jimb@redhat.com>
7851
7852 * macrotab.c (check_for_redefinition): Don't complain if the new
7853 definition is the same as the previous one. Take more arguments
7854 to allow the comparison.
7855 (macro_define_object, macro_define_function): Pass more arguments
7856 to check_for_redefinition.
7857
7858 2002-05-22 Michael Snyder <msnyder@redhat.com>
7859
7860 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7861 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7862 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7863 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7864 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7865 Add a temp variable to save a call (and a memory read).
7866 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7867 if possible (so that PC_IN_CALL_DUMMY will work).
7868
7869 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7870
7871 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7872
7873 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7874
7875 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7876 fde->cie_ptr.
7877 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7878 (dwarf2_build_frame_info): Add offset to fde->initial_location
7879 so that frames of shared libraries are mapped correctly.
7880 (execute_stack_op): Change type of 'result' from ULONGEST to
7881 CORE_ADDR.
7882
7883 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7884
7885 * config/alpha/tm-nbsd.h: Include solib.h.
7886
7887 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7890 assumptions about the host's byte order.
7891
7892 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7895 to dependency list.
7896 * alphanbsd-tdep.c: Include solib-svr4.h.
7897 * shnbsd-tdep.c: Ditto.
7898
7899 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7900
7901 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7902 nbsd-tdep.h to dependency list.
7903 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7904 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7905 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7906 nbsdaout.mh and nbsdelf.mh consistently.
7907 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7908 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7909 nbsdaout.mt and nbsdelf.mh consistently.
7910 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7911 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7912 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7913 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7914 a.out shared library stuff from here...
7915 * config/nm-nbsdaout.h: ...to here.
7916 * config/tm-nbsd.h: Remove.
7917 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7918 * config/arm/nbsd.mh: Remove.
7919 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7920 nbsd-tdep.o.
7921 * config/arm/nbsdaout.mh: New file.
7922 * config/arm/nbsdelf.mh: New file.
7923 * config/arm/nm-nbsdaout.h: New file.
7924 * config/i386/nbsd.mh: Remove.
7925 * config/i386/nbsd.mt: Remove.
7926 * config/i386/nbsdaout.mh: New file.
7927 * config/i386/nbsdaout.mt: New file.
7928 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7929 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7930 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7931 i386_register_u_addr): Remove.
7932 * config/i386/nm-nbsdaout.h: New file.
7933 * config/i386/nm-nbsdelf.h: Remove.
7934 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7935 (USE_STRUCT_CONVENTION): Remove.
7936 * config/i386/tm-nbsdaout.h: New file.
7937 * config/i386/tm-nbsdelf.h: Remove.
7938 * config/m68k/nbsd.mh: Remove.
7939 * config/m68k/nbsd.mt: Remove.
7940 * config/m68k/nbsdaout.mh: New file.
7941 * config/m68k/nbsdaout.mt: New file.
7942 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7943 * config/m68k/nm-nbsdaout.h: New file.
7944 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7945 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7946 * config/ns32k/nbsd.mh: Remove.
7947 * config/ns32k/nbsd.mt: Remove.
7948 * config/ns32k/nbsdaout.mh: New file.
7949 * config/ns32k/nbsdaout.mt: New file.
7950 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7951 * config/ns32k/nm-nbsdaout.h: New file.
7952 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7953 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7954 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7955 (SVR4_SHARED_LIBS): Remove.
7956 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7957 * config/sparc/nbsd.mh: Remove.
7958 * config/sparc/nbsd.mt: Remove.
7959 * config/sparc/nbsdaout.mh: New file.
7960 * config/sparc/nbsdaout.mt: New file.
7961 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7962 * config/sparc/nbsdelf.mt: New file.
7963 * config/sparc/nm-nbsdaout.h: New file.
7964 * config/sparc/nm-nbsdelf.h: Remove.
7965 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7966 * config/sparc/tm-nbsdaout.h: New file.
7967
7968 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7971 mipsnbsd-tdep.c
7972 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7973
7974 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7975
7976 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7977 shnbsd-nat.c.
7978 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7979
7980 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7981
7982 * NEWS: Note new MIPS NetBSD native configuration.
7983 * configure.host (mips*-*-netbsd*): New host.
7984 * configure.tgt (mips*-*-netbsd*): New target.
7985 * mipsnbsd-nat.c: New file.
7986 * mipsnbsd-tdep.c: New file.
7987 * mipsnbsd-tdep.h: New file.
7988 * config/mips/nbsd.mh: New file.
7989 * config/mips/nbsd.mt: New file.
7990 * config/mips/nm-nbsd.h: New file.
7991 * config/mips/tm-nbsd.h: New file.
7992
7993 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7994
7995 * Makefile.in (SFILES): Add osabi.c.
7996 (COMMON_OBS): Add osabi.o.
7997 (osabi.o): New dependency list.
7998 * osabi.c: New file.
7999 * osabi.h: New file.
8000 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8001
8002 * Makefile.in (alpha_tdep_h): Define and use instead of
8003 alpha-tdep.h.
8004 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8005 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8006 Remove.
8007 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8008 * alpha-tdep.h: Include osabi.h.
8009 (alpha_abi): Remove.
8010 (gdbarch_tdep): Use generic OS ABI framework.
8011 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8012 gdbarch_register_osabi.
8013 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8014 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8015 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8016
8017 * Makefile.in (sh_tdep_h): Add osabi.h.
8018 * sh-tdep.h (sh_osabi): Remove.
8019 (gdbarch_tdep): Use generic OS ABI framework.
8020 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8021 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8022 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8023 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8024
8025 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8026 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8027 gdbarch_register_osabi.
8028 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8029 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8030 (get_elfosabi): Rename to...
8031 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8032 ABI framework support routines.
8033 (arm_gdbarch_init): Use generic OS ABI framework.
8034 (arm_dump_tdep): Likewise.
8035 (_initialize_arm_tdep): Likewise.
8036 * arm-tdep.h: Include osabi.h.
8037 (arm_abi): Remove.
8038 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8039 osabi member.
8040 (arm_gdbarch_register_os_abi): Remove prototype.
8041 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8042 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8043
8044 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8045 * mips-tdep.c: Include osabi.h.
8046 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8047 OS ABI framework.
8048
8049 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8050
8051 * h8300-tdep.c: Fix formatting.
8052
8053 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8054
8055 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8056 printing vector registers.
8057
8058 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8059
8060 From Fernando Nasser:
8061 * remote.c (remote_async_open_1): Re-throw the exception when the
8062 connection fails.
8063 (remote_cisco_open): Ditto.
8064 (remote_open_1): Ditto.
8065
8066 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8067
8068 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8069 (remote_start_remote): Add uiout parameter. Pass through to
8070 remote_start_remote_dummy.
8071 (remote_open_1): Use catch_exception instead of catch_errors.
8072 (remote_async_open_1): Ditto.
8073 (remote_cisco_open): Ditto.
8074
8075 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8076
8077 * remote.c (remote_start_remote): Replace PTR with void pointer.
8078 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8079 static.
8080
8081 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8082
8083 * gdb_indent.sh: Allow the script to be run in the sim directory.
8084
8085 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8086
8087 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8088 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8089
8090 * corelow.c (core_open): Only call set_gdbarch_from_file if
8091 exec_bfd is NULL.
8092
8093 2002-05-17 Andrey Volkov <avolkov@transas.com>
8094
8095 * h8300-tdep.c: Add support of EXR register
8096 * config/h8300/tm-h8300.h: Ditto.
8097
8098 2002-05-17 Andrey Volkov <avolkov@transas.com>
8099
8100 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8101
8102 2002-05-17 Andrey Volkov <avolkov@transas.com>
8103
8104 * h8300-tdep.c: Change literal regnums to REGNO.
8105
8106 2002-05-17 Jim Blandy <jimb@redhat.com>
8107
8108 * NEWS: Note addition of macro support.
8109
8110 Expand preprocessor macros in C expressions.
8111 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8112 (scan_macro_expansion, scanning_macro_expansion,
8113 finished_macro_expansion): New function declarations.
8114 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8115 variable declarations.
8116 * parser-defs.h (expression_context_pc): New declaration.
8117 * parse.c (expression_context_pc): New variable.
8118 (parse_exp_1): Set expression_context_pc, as well as
8119 expression_context_block.
8120 * c-exp.y (yylex): If we're not already reading the result of a
8121 macro expansion, try to macro-expand the next token. When we're
8122 done scanning a macro expansion, switch back to the mainline text.
8123 Commas and `if's in a macro's expansion don't terminate the input.
8124 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8125 (macro_original_text, macro_expanded_text,
8126 expression_macro_lookup_func, expression_macro_lookup_baton): New
8127 variables.
8128 (scan_macro_expansion, scanning_macro_expansion,
8129 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8130 c_preprocess_and_parse): New functions.
8131 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8132 c_preprocess_and_parse, instead of c_parse.
8133 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8134 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8135
8136 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8137
8138 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8139 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8140 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8141
8142 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8143
8144 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8145
8146 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8147
8148 * Makefile.in (sh_tdep_h): Define and use.
8149 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8150 register enum): Move to...
8151 * * sh-tdep.h: ...here.
8152 * sh-tdep.c: Include sh-tdep.h.
8153 * sh3-rom.c: Likewise.
8154 * shnbsd-tdep.c: Likewise.
8155
8156 2002-05-16 Michael Snyder <msnyder@redhat.com>
8157
8158 * arm-tdep.c: Spelling fix in comment.
8159
8160 2002-05-16 Jim Blandy <jimb@redhat.com>
8161
8162 Add commands for manually expanding macros and showing their
8163 definitions.
8164 * macrocmd.c, macroscope.c, macroscope.h: New files.
8165 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8166 (macroscope_h): New variable.
8167 (HFILES_NO_SRCDIR): Add macroscope.h.
8168 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8169 (macroscope.o, macrocmd.o): New rules.
8170
8171 Teach the Dwarf 2 reader to read macro information.
8172 * dwarf2read.c: #include "macrotab.h".
8173 (dwarf_macinfo_buffer): New variable.
8174 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8175 dwarf_macinfo_size.
8176 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8177 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8178 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8179 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8180 dwarf2_macro_spaces_in_definition): New complaints.
8181 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8182 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8183 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8184 the partial symbol table.
8185 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8186 from what's recorded in the partial symbol table.
8187 (read_file_scope): If the compilation unit has a
8188 `DW_AT_macro_info' attribute, read its macro information.
8189 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8190
8191 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8192
8193 Fix PR gdb/546
8194 * ser-tcp.c: Don't include <netinet/udp.h>.
8195
8196 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8197
8198 * MAINTAINERS: Update my email address.
8199
8200 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8201
8202 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8203 include file of the same name.
8204
8205 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8206
8207 * configure.tgt: Mark v850 as multi-arched.
8208 * config/v850/tm-v850.h: Remove file.
8209 * config/v850/v850.mt: Eliminate TM_FILE.
8210
8211 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8212
8213 * v850-tdep.c: Full multi-arch.
8214 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8215 Define GDB_MULTI_ARCH to 2.
8216
8217 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8218
8219 * p-exp.y (current_type): New static variable.
8220 Carries the type of the expression at the position that is parsed.
8221 (push_current_type, pop_current_type): Two new functions. Used
8222 to store/restore current_type in expression on specific tokens.
8223 (search_field): New static variable. Set to one after parsing a point
8224 as at that point only a FIELDNAME token should be searched.
8225 (FIELDNAME): New token. After a point only a token belonging to
8226 current_type type definition is allowed.
8227 (all over token rules): reset and change current_type according
8228 to rules.
8229 (exp '[' rule): insert implicit array index field if
8230 exp is a pascal string type.
8231
8232 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8233
8234 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8235 frame info. Use frame_info's saved_regs instead of matching member
8236 in extra_frame_info throughout.
8237 (v850_frame_init_saved_regs): New function.
8238 (v850_init_extra_frame_info): Move most functionality into
8239 v850_frame_init_saved_regs().
8240 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8241 (v850_frame_find_saved_regs): Remove declaration.
8242 (FRAME_FIND_SAVED_REGS): Remove definition.
8243 (v850_frame_init_saved_regs): Add declaration.
8244 (FRAME_INIT_SAVED_REGS): Add definition.
8245
8246 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8247
8248 * v850-tdep.c: Begin multi-arch'ing v850.
8249 (v850_target_architecture_hook): Remove function.
8250 (v850_gdbarch_init): New function. Add code previously in
8251 v850_target_architecture_hook().
8252 (_initialize_v850_tdep): Don't set target_architecture_hook.
8253 Call register_gdbarch_init() instead.
8254
8255 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8256
8257 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8258 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8259 (fixup_class_method_type): Likewise.
8260
8261 2002-05-15 Jim Blandy <jimb@redhat.com>
8262
8263 Add macro structures to GDB's symbol tables. Nobody puts anything
8264 in them yet.
8265 * symtab.h (struct symtab): New member: `macro_table'.
8266 * buildsym.h (pending_macros): New global variable.
8267 * buildsym.c: #include "macrotab.h".
8268 (buildsym_init): Initialize `pending_macros'.
8269 (end_symtab): If we found macro information while reading a CU's
8270 debugging info, do build a symtab structure for it. Make the
8271 symtab point to the macro information, and clear the
8272 `pending_macros' pointer which held it while we were reading the
8273 debug info.
8274 (really_free_pendings): Free any pending macro table.
8275 * objfiles.h (struct objfile): New member: `macro_cache'.
8276 * objfiles.c (allocate_objfile): Set allocate and free functions
8277 for the macro cache's objstack.
8278 (free_objfile): Empty the macro cache's obstack.
8279 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8280 set new allocate and free functions for it.
8281 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8282 free functions for the macro cache's objstack. (Why is this
8283 function building its own objfile?)
8284 * symmisc.c (print_objfile_statistics): Print statistics on the
8285 macro bcache.
8286 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8287
8288 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8289
8290 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8291 (REGISTER_U_ADDR): Delete definition.
8292 (arm_register_u_addr): Delete declaration.
8293
8294 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8295
8296 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8297 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8298
8299 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8300
8301 * regcache.c (register_valid): Revise comments refering to "Not
8302 available" and "unavailable".
8303 * frame.c (frame_register_read): Ditto.
8304 * findvar.c (value_of_register): Ditto.
8305
8306 2002-05-15 Andrew Cagney <cagney@redhat.com>
8307
8308 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8309 (remote-sim.o): Update dependencies.
8310 (d10v-tdep.o): Specify dependencies.
8311 (sim_d10v_h): Define.
8312
8313 2002-05-14 Jim Blandy <jimb@redhat.com>
8314
8315 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8316 * macrotab.c (macro_lookup_inclusion, find_definition,
8317 new_macro_table): Same.
8318
8319 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8320 not `! strcmp ()'. This is a dubious improvement.
8321 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8322
8323 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8324 although it's not necessary, to avoid a warning.
8325
8326 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8327
8328 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8329 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8330 TYPE_INSTANCE_FLAGS.
8331 (struct main_type): New.
8332 (struct type): Move most members to struct main_type. Change
8333 cv_type and as_type to new type_chain member. Add instance_flags.
8334 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8335 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8336 (finish_cv_type): Remove prototype.
8337 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8338 Set TYPE_CHAIN.
8339 (alloc_type_instance): New function.
8340 (smash_type): New function.
8341 (make_pointer_type, make_reference_type, make_function_type)
8342 (smash_to_member_type, smash_to_method_type): Call smash_type.
8343 (make_qualified_type): New function.
8344 (make_type_with_address_space): Call make_qualified_type.
8345 (make_cv_type): Likewise.
8346 (finish_cv_type): Remove unnecessary function.
8347 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8348 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8349 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8350 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8351 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8352 * hpread.c (hpread_read_struct_type): Likewise.
8353 * stabsread.c (read_struct_type): Likewise.
8354
8355 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8356
8357 * configure.tgt: Add a catch all sh* target, for cases like
8358 sh[2,3,4]-elf and sh-hms.
8359
8360 2002-05-14 Keith Seitz <keiths@redhat.com>
8361
8362 * event-loop.c (create_file_handler): Don't do anything but
8363 update data when we are given a fd which we are already
8364 monitoring.
8365
8366 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8367
8368 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8369 (update_context): Use __func__ in warnings.
8370
8371 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8372
8373 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8374 and tcp_close to net_open and net_close.
8375 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8376 using UDP if requested. Don't try to disable Nagle on UDP
8377 sockets.
8378 * remote.c (remote_serial_open): New function. Warn about UDP.
8379 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8380
8381 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8382
8383 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8384
8385 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8386
8387 * configure.tgt: Remove sh-hms target.
8388 * MAINTAINERS: Don't list sh-hms as a separate target.
8389
8390 2002-05-13 Jim Blandy <jimb@redhat.com>
8391
8392 Add first preprocessor macro-expansion files.
8393 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8394 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8395 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8396 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8397 (COMMON_OBS): Add macrotab.o, macroexp.o.
8398 (macroexp.o, macrotab.o): New rules.
8399
8400 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8401
8402 * config/m88k/tm-m88k.h: Update copyright.
8403 (m88k_target_write_pc): Declare
8404 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8405 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8406 (SHIFT_INST_REGS): Update definition.
8407 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8408 using old definition of TARGET_WRITE_PC.
8409 * regcache.c (generic_target_write_pc): Delete code handling
8410 NNPC_REGNUM.
8411 * gdbarch.sh (NNPC_REGNUM): Delete.
8412 * gdbarch.h, gdbarch.c: Regenerate.
8413
8414 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8415
8416 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8417 builtin reg number.
8418
8419 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8422 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8423 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8424 access macros.
8425 * c-typeprint.c (cp_type_print_method_args): Likewise.
8426 (c_type_print_args): Likewise.
8427 * d10v-tdep.c (d10v_push_arguments): Likewise.
8428 (d10v_extract_return_value): Likewise.
8429 * expprint.c (print_subexp): Likewise.
8430 * gdbtypes.c (lookup_primitive_typename): Likewise.
8431 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8432 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8433 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8434 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8435 (TYPE_VECTOR): Likewise.
8436 * hpread.c (hpread_read_struct_type)
8437 (fix_static_member_physnames, fixup_class_method_type)
8438 (hpread_type_lookup): Likewise.
8439 * mdebugread.c (parse_symbol, parse_type): Likewise.
8440 * p-lang.c (is_pascal_string_type): Likewise.
8441 * valops.c (hand_function_call): Likewise.
8442 * x86-64-tdep.c (classify_argument): Likewise.
8443
8444 * hpread.c (hpread_read_function_type)
8445 (hpread_read_doc_function_type): Call replace_type.
8446 * dstread.c (create_new_type): Delete.
8447 (decode_dst_structure, process_dst_function): Call alloc_type.
8448 Use type access macros.
8449
8450 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8451
8452 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8453 the're not supported by the current architecture.
8454 (i387_fill_fxsave): Likewise.
8455
8456 2002-05-12 Fred Fish <fnf@redhat.com>
8457
8458 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8459 sect_index_xxx members to index the first slot in section_offsets
8460 if all of the section_offsets are zero.
8461
8462 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8463
8464 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8465 checked in with last change.
8466
8467 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8468
8469 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8470 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8471 config.sub.
8472
8473 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8474
8475 * Makefile.in: Update dependencies.
8476
8477 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8478
8479 * language.c (local_hex_string_custom): Simplify. Do not depend
8480 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8481
8482 * memattr.c (mem_info_command): Replace calls to
8483 longest_local_hex_string and longest_local_hex_string_custom.
8484 * buildsym.c (make_blockvector): Ditto.
8485 * solib.c (info_sharedlibrary_command): Ditto.
8486 * tracepoint.c (tracepoints_info): Ditto.
8487 * symtab.c (print_msymbol_info): Ditto.
8488
8489 * language.c (local_hex_string): Delete.
8490 (local_hex_string_custom): Delete.
8491 (longest_local_hex_string): Rename to local_hex_string.
8492 (longest_local_hex_string_custom): Rename to
8493 local_hex_string_custom.
8494 * language.h (local_hex_string): Change parameter type to LONGEST.
8495 (local_hex_string_custom): Ditto.
8496 (longest_local_hex_string): Delete declaration.
8497 (longest_local_hex_string_custom): Ditto.
8498
8499 * solib.c: Update copyright.
8500 * memattr.c: Update copyright.
8501
8502 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8503
8504 * arch-utils.h (legacy_register_to_value): Declare.
8505 (legacy_value_to_register): Declare.
8506 (legacy_convert_register_p): Declare.
8507 * arch-utils.c (legacy_register_to_value): New function.
8508 (legacy_value_to_register): New function.
8509 (legacy_convert_register_p): New function.
8510
8511 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8512 (VALUE_TO_REGISTER): Define.
8513 (CONVERT_REGISTER_P): Define.
8514 * gdbarch.h, gdbarch.c: Regenerate.
8515
8516 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8517 VALUE_TO_REGISTER.
8518 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8519 CONVERT_REGISTER_P.
8520
8521 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8522 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8523
8524 * Makefile.in: Update dependencies for valops.c.
8525 * valops.c: Include "gdb_assert.h".
8526 (typecmp): Skip THIS parameter to methods.
8527 (find_method_list): Remove static_memfuncp argument,
8528 update callers. Check for stub methods.
8529 (find_value_oload_method_list): Don't set *static_memfuncp.
8530 (find_overload_match): Don't check for stub methods. Assert
8531 that methods are not stubbed. Handle static methods.
8532 (value_find_oload_method_list): Remove static_memfuncp argument.
8533 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8534 to the argument list for static stub methods.
8535 * value.h (value_find_oload_method_list): Update prototype.
8536
8537 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8538
8539 * arch-utils.h (generic_register_size): Declare.
8540 (generic_register_raw_size, generic_register_virtual_size): Delete
8541 declarations.
8542 * arch-utils.c (generic_register_raw_size): Delete.
8543 (generic_register_size): New function.
8544 (generic_register_virtual_size): Delete.
8545
8546 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8547 default generic_register_size.
8548 * gdbarch.h, gdbarch.c: Re-generate.
8549
8550 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8551 register_virtual_size.
8552 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8553 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8554
8555 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8556
8557 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8558 * gdbarch.h, gdbarch.c: Regenerate.
8559 * gnu-v3-abi.c: Update copyright.
8560 (vtable_address_point_offset): Update.
8561 (gnuv3_rtti_type): Update.
8562 (gnuv3_baseclass_offset): Update.
8563 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8564 (init_fetch_link_map_offsets): Update.
8565 * remote.c (get_remote_state): Update.
8566
8567 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8568
8569 * TODO: Remove value_headof/value_from_vtable_info comment.
8570 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8571 * values.c (value_headof, value_from_vtable_info): Delete.
8572 * value.h (value_from_vtable_info): Delete prototype.
8573
8574 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8575
8576 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8577 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8578 $(gdb_regex_h).
8579 (gdb_assert_h): Define.
8580 (gdb_wait_h): Define.
8581 (gdb_regex_h): Define.
8582
8583 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8584
8585 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8586 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8587
8588 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8589
8590 * nbsd-tdep.c: Fix comment.
8591
8592 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8593
8594 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8595 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8596 (nbsd-tdep.o): New dependency list.
8597 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8598 nbsd-tdep.h.
8599 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8600 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8601 * nbsd-tdep.c: New file.
8602 * nbsd-tdep.h: New file.
8603 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8604 nbsd-tdep.h.
8605 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8606 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8607 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8608 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8609
8610 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8611
8612 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8613 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8614 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8615 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8616 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8617 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8618
8619 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8620
8621 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8622 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8623 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8624 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8625 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8626 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8627 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8628
8629 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8630
8631 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8632 fetch_elfcore_registers to...
8633 * i386nbsd-tdep.c: ...here.
8634 (i386nbsd_use_struct_convention): Rename to...
8635 (i386nbsd_aout_use_struct_convention): ...this.
8636 (i386nbsd_supply_reg): New function.
8637 (i386nbsd_fill_reg): New function.
8638 (fetch_core_registers): Use i386nbsd_supply_reg.
8639 (fetch_elfcore_registers): Likewise.
8640 (_initialize_i386nbsd_tdep): New function.
8641 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8642 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8643 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8644 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8645 (i386nbsd_aout_use_struct_convention): ...this.
8646
8647 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8648
8649 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8650 (store_inferior_registers): Use shnbsd_fill_reg.
8651 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8652 sh_nbsd_supply_register): Collapse into...
8653 (shnbsd_supply_reg): ...this.
8654 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8655 (shnbsd_fill_reg): ...this.
8656 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8657 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8658 (fetch_core_registers): Use shnbsd_supply_reg.
8659 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8660 (sh_nbsd_core_fns): Rename to...
8661 (shnbsd_core_fns): ...this.
8662 (sh_nbsd_elfcore_fns): Rename to...
8663 (shnbsd_elfcore_fns): ...this.
8664 (sh_nbsd_init_abi): Rename to...
8665 (shnbsd_init_abi): ...this.
8666 (_initialize_sh_nbsd_tdep): Rename to...
8667 (_initialize_shnbsd_tdep): ...this.
8668 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8669 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8670 sh_nbsd_fill_register): Remove prototypes.
8671 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8672
8673 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8674
8675 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8676 (i387-nat.o): Delete dependency list.
8677 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8678 (x86-64-linux-nat.o): Likewise.
8679 * i387-nat.c: Delete file, moving contents to...
8680 * i387-tdep.c: ...here.
8681 * i387-nat.h: Rename...
8682 * i387-tdep.h: ...to this.
8683 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8684 * i386-linux-nat.c: Likewise.
8685 * i386bsd-nat.c: Likewise.
8686 * i386gnu-nat.c: Likewise.
8687 * i386nbsd-nat.c: Likewise.
8688 * i386v4-nat.c: Likewise.
8689 * x86-64-linux-nat.c: Likewise.
8690 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8691 * config/i386/go32.mh (NATDEPFILES): Likewise.
8692 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8693 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8694 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8695 * config/i386/linux.mh (NATDEPFILES): Likewise.
8696 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8697 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8698 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8699 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8700
8701 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8702
8703 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8704 (alphanbsd-nat.o): Remove dependency list.
8705 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8706 * alphanbsd-nat.c: Delete. Contents moved to...
8707 * alphanbsd-tdep.c: ...here.
8708 (_initialize_alphanbsd_tdep): Register core functions.
8709 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8710
8711 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8712
8713 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8714 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8715 (alphanbsd-nat.o): Likewise.
8716 (alphabsd-tdep.o): New dependency list.
8717 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8718 (fill_gregset): Use alphabsd_fill_reg.
8719 (supply_fpregset): Use alphabsd_supply_fpreg.
8720 (fill_fpregset): Use alphabsd_fill_fpreg.
8721 (fetch_inferior_registers): Use struct reg and struct fpreg
8722 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8723 and alphabsd_supply_fpreg.
8724 (store_inferior_registers): Use struct reg and struct fpreg
8725 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8726 and alphabsd_fill_fpreg.
8727 * alphabsd-tdep.c: New file.
8728 * alphabsd-tdep.h: New file.
8729 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8730 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8731 alphabsd_supply_fpreg.
8732 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8733 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8734
8735 2002-05-11 Eric Christopher <echristo@redhat.com>
8736
8737 * mips-tdep.c (mips_double_register_type): Fix thinko.
8738 (mips_single_register_type): Ditto.
8739 * MAINTAINERS: Add self.
8740
8741 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8742
8743 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8744 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8745 right thing on architectures with different endianness and/or
8746 integer sizes.
8747
8748 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8749
8750 From Christian Limpach <chris@Pin.LU>
8751 * configure.in: Change sed expression which comments out
8752 NATDEPFILES to also comment out continuation lines.
8753 * configure: Regenerate.
8754
8755 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8756
8757 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8758 big patch.
8759
8760 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8761
8762 * sh-tdep.c: Include correct file.
8763
8764 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8765
8766 New support for sh64-elf (sh5) target.
8767
8768 * configure.tgt: For sh64-elf target, default to sh-elf.
8769
8770 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8771 (struct gdbarch_tdep): Add new fields for new registers and ABI
8772 info.
8773
8774 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8775 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8776 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8777 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8778 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8779 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8780 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8781 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8782 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8783 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8784 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8785 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8786 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8787 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8788 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8789 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8790 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8791 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8792 sign_extend, sh64_nofp_frame_init_saved_regs,
8793 sh64_init_extra_frame_info, sh64_get_saved_register,
8794 sh64_extract_struct_value_address, sh64_pop_frame,
8795 sh64_push_arguments, sh64_extract_return_value,
8796 sh64_store_return_value, sh64_show_media_regs,
8797 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8798 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8799 sh_sh64_register_virtual_type,
8800 sh_sh64_register_convert_to_virtual,
8801 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8802 sh64_register_read, sh64_pseudo_register_write,
8803 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8804 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8805 sh64_do_pseudo_register, sh_compact_do_registers_info,
8806 sh64_do_registers_info, sh_gdbarch_init): New functions.
8807
8808 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8809
8810 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8811
8812 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8813
8814 * linespec.c (decode_line_1): Check for a double quote after
8815 a filename correctly.
8816
8817 2002-05-10 Jim Blandy <jimb@redhat.com>
8818
8819 Properly track the size of the current objfile's .debug_line section.
8820 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8821 (DWARF_LINE_SIZE): New macro.
8822 (dwarf2_build_psymtabs_hard): Record the line section's size in
8823 the partial symbol table.
8824 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8825 symbol table.
8826
8827 2002-05-10 Petr Sorfa <petrs@caldera.com>
8828
8829 * ia64-tdep.c: Handle breakpoints on L instruction type
8830 in MLX instruction bundle by moving the breakpoint to
8831 the third slot (X instruction type) as L holds only data.
8832
8833 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8834
8835 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8836 (process_one_symbol): Complain about discarding local symbols
8837 due to a misplaced N_LBRAC entry.
8838
8839 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8840
8841 From Daniel Berlin <dan@cgsoftware.com>
8842 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8843 decrease the depth we are at, in the case of templates.
8844
8845 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8846
8847 * mips-tdep.c (mips_float_register_type): New function.
8848 (mips_double_register_type): New function.
8849 (mips_print_register): Use them.
8850 (do_fp_register_row): Likewise.
8851
8852 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8853
8854 * signals/signals.c (signals): Remove conditional compilation around
8855 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8856 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8857
8858 2002-05-09 Michael Snyder <msnyder@redhat.com>
8859
8860 * remote-rdp.c (remote_rdp_can_run): Remove.
8861
8862 2002-05-09 Tom Tromey <tromey@redhat.com>
8863
8864 * jv-valprint.c (java_val_print): Handle `char' as a special case
8865 of TYPE_CODE_INT.
8866
8867 2002-05-09 Michael Snyder <msnyder@redhat.com>
8868
8869 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8870 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8871 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8872 str r(0123),[sp,#nn].
8873 (arm_skip_prologue): Ditto. Also make disassembly
8874 order-independent by placing it in a loop.
8875
8876 2002-05-06 Michael Snyder <msnyder@redhat.com>
8877
8878 * stabsread.c (read_type): Add recognition for new attribute:
8879 "@V;" means that an array type is actually a vector.
8880 This is analogous to the vector flag that's been added to dwarf2.
8881
8882 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8883
8884 * i386-tdep.h (i386_abi): New enum.
8885 (struct gdbarch_tdep): Replace os_ident member with abi.
8886 (i386_gdbarch_register_os_abi): New prototype.
8887 * i386-tdep.c (i386_abi_names): New array.
8888 (process_note_abi_tag_sections): Removed.
8889 (process_note_sections): New function.
8890 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8891 (struct i386_abi_handler): New struct.
8892 (i386_abi_handler_list): New variable.
8893 (i386_gdbarch_register_os_abi): New function.
8894 (i386_gdbarch_init): Adapt for the changes given above.
8895
8896 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * gregset.h: Say "GNU/Linux".
8899
8900 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8901
8902 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8903 (build_gdbtypes): Build builtin_type_v2_float.
8904 (_initialize_gdbtypes): Register new builtin type.
8905
8906 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8907
8908 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8909 (clear_gdbarch_swap): New function.
8910 (initialize_non_multiarch): Call.
8911 (gdbarch_update_p): Before calling init(), swap out and clear the
8912 existing architecture.
8913 * gdbarch.c: Regenerate.
8914
8915 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8916
8917 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8918 alphanbsd-tdep.c.
8919
8920 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8921
8922 * sh-nbsd-nat.c: Rename to...
8923 * shnbsd-nat.c: ...this.
8924 * sh-nbsd-tdep.c: Rename to...
8925 * shnbsd-tdep.c: ...this.
8926 * sh-nbsd-tdep.h: Rename to...
8927 * shnbsd-tdep.h: ...this.
8928 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8929 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8930
8931 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8932
8933 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8934 concatenation for command help messages.
8935
8936 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8937
8938 * NEWS: Note new sh*-*-netbsdelf* configuration.
8939 * configure.host: Set gdb_host_cpu to sh for all sh*.
8940 (sh*-*-netbsdelf*): New host.
8941 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8942 (sh*-*-netbsdelf*): New target.
8943 * sh-nbsd-nat.c: New file.
8944 * sh-nbsd-tdep.c: New file.
8945 * sh-nbsd-tdep.h: New file.
8946 * config/sh/nbsd.mh: New file.
8947 * config/sh/nbsd.mt: New file.
8948 * config/sh/nm-nbsd.h: New file.
8949 * config/sh/tm-nbsd.h: New file.
8950
8951 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8952
8953 * sh-tdep.c (sh_osabi_names): Declare.
8954 (process_note_abi_tag_sections): New function.
8955 (get_elfosabi): Ditto.
8956 (sh_gdbarch_register_os_abi): Ditto.
8957 (sh_dump_tdep): Ditto.
8958 _initialize_sh_tdep): Use gdbarch_register to register
8959 sh_gdbarch_init and sh_dump_tdep.
8960 * config/sh/tm-sh.h (sh_osabi): Declare.
8961 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8962
8963 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8964
8965 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8966 (thumb_scan_prologue): Ditto.
8967 (arm_find_callers_reg): Ditto.
8968 (arm_frame_chain): Ditto.
8969 (arm_init_extra_frame_info): Ditto.
8970 (arm_frame_saved_pc): Ditto.
8971 (arm_pop_frame): Ditto.
8972 (arm_push_return_address): New function.
8973 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8974 call_dummy_location, call_dummy_breakpoint_offset_p,
8975 call_dummy_breakpoint_offset, call_dummy_p,
8976 call_dummy_stack_adjust_p, call_dummy_words,
8977 sizeof_call_dummy_words, call_dummy_start_offset,
8978 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8979 call_dummy_address, push_return_address and push_dummy_frame for
8980 generic dummy frames.
8981
8982 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8983
8984 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8985 size computation for alloca.
8986 (sh_fp_frame_init_saved_regs): Likewise.
8987
8988 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8989
8990 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8991 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8992 * arm-tdep.c (arm_store_return_value): Use them.
8993 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8994 * remote-rdp.c (remote_rdp_fetch_register): Use
8995 ARM_MAX_REGISTER_RAW_SIZE.
8996 (remote_rdp_store_register): Likewise.
8997
8998 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8999
9000 * dwarf2cfi.c: Code cleanup, removed unused variables,
9001 added default labels to switch {} statements.
9002 * x86-64-tdep.c: Ditto.
9003 * x86-64-linux-nat.c: Ditto.
9004
9005 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9006
9007 * solib.h: Protect against multiple inclusion.
9008
9009 2002-05-06 Jim Blandy <jimb@redhat.com>
9010
9011 Add first preprocessor macro-expansion files.
9012 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9013 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9014 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9015 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9016 (COMMON_OBS): Add macrotab.o, macroexp.o.
9017 (macroexp.o, macrotab.o): New rules.
9018
9019 Separate the job of reading the line number info statement program
9020 header (...expialidocious) out into its own function.
9021 * dwarf2read.c (struct line_head, struct filenames, struct
9022 directories): Replace with...
9023 (struct line_header): New structure, containing the full
9024 contents of the statement program header, including the
9025 include directory and file name tables.
9026 (read_file_scope): If we have line number info, instead of just
9027 calling dwarf_decode_lines to do all the work, call
9028 dwarf_decode_line_header first to get a `struct line_header'
9029 containing the data in the statement program header, and then
9030 pass that to dwarf_decode_lines, which will pick up where that
9031 left off. Be sure to clean up the `struct line_header' object.
9032 (dwarf_decode_line_header, free_line_header, add_include_dir,
9033 add_file_name): New functions.
9034 (dwarf_decode_lines): Move all the code to read the statement
9035 program header into dwarf_decode_line_header. Take the line
9036 header it built as the first argument, instead of the offset to
9037 the compilation unit's line number info. Use the new `struct
9038 line_header' type instead of the old structures. No need to do
9039 cleanups here now, since we don't allocate anything.
9040 (dwarf2_statement_list_fits_in_line_number_section,
9041 dwarf2_line_header_too_long): New complaints.
9042
9043 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9044
9045 * gdbtypes.c (init_vector_type): New function.
9046 (build_builtin_type_vec128): Simplify the representation of SIMD
9047 registers.
9048 (build_gdbtypes): Initialize new builtin vector types.
9049 (_initialize_gdbtypes): Register new vector types with gdbarch.
9050 (builtin_type_v4_float, builtin_type_v4_int32,
9051 builtin_type_v8_int16, builtin_type_v16_int8,
9052 builtin_type_v2_int32, builtin_type_v4_int16,
9053 builtin_type_v8_int8): New (renamed) SIMD types.
9054
9055 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9056
9057 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9058 (i387_fill_fxsave): Likewise.
9059
9060 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9061
9062 * alpha-tdep.c (alpha_extract_return_value): Don't use
9063 non-constant array size in prototype.
9064
9065 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9066
9067 From Brian Taylor <briant at model dot com>:
9068 * ui-out.c (ui_out_field_core_addr): Use the function
9069 longest_local_hex_string_custom'to format addresses > 32 bits
9070 wide.
9071
9072 * ui-out.c (ui_out_field_core_addr): Update comment.
9073
9074 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9075
9076 * stack.c (select_and_print_frame): Make static. Delete the
9077 parameter `level'.
9078 (func_command): Update call.
9079 (select_frame_command): Delete code computing the frame level.
9080 * frame.h (select_and_print_frame): Delete declaration.
9081
9082 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9083
9084 * sparc-tdep.c (sparc_get_saved_register): Comment why
9085 get_prev_frame call is safe.
9086
9087 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9088
9089 * frame.h (select_frame): Delete level parameter.
9090 * stack.c (select_frame): Update. Use frame_relative_level to
9091 obtain the frame's level.
9092 (select_and_print_frame): Update call.
9093 (select_frame_command): Ditto.
9094 (up_silently_base): Ditto.
9095 (down_silently_base): Ditto.
9096 * ocd.c (ocd_start_remote): Ditto.
9097 * remote-rdp.c (remote_rdp_open): Ditto.
9098 * remote-mips.c (mips_initialize): Ditto.
9099 (common_open): Ditto.
9100 * remote-e7000.c (e7000_start_remote): Ditto.
9101 * m3-nat.c (select_thread): Ditto.
9102 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9103 (child_get_current_exception_event): Ditto.
9104 * varobj.c (varobj_create): Ditto.
9105 (varobj_update): Ditto.
9106 (c_value_of_root): Ditto.
9107 * tracepoint.c (finish_tfind_command): Ditto.
9108 * corelow.c (core_open): Ditto.
9109 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9110 * thread.c (info_threads_command): Ditto.
9111 (switch_to_thread): Ditto.
9112 * infrun.c (normal_stop): Ditto.
9113 (restore_selected_frame): Ditto.
9114 (restore_inferior_status): Ditto.
9115 * breakpoint.c (insert_breakpoints): Ditto.
9116 (watchpoint_check): Ditto.
9117 (bpstat_stop_status): Ditto.
9118 (do_enable_breakpoint): Ditto.
9119 * blockframe.c (flush_cached_frames): Ditto.
9120 (reinit_frame_cache): Ditto.
9121
9122 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9123
9124 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9125 maintainer.
9126
9127 2002-05-04 Jim Blandy <jimb@redhat.com>
9128
9129 * gdbtypes.c (replace_type): Doc fix.
9130
9131 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9132
9133 * valprint.c (strcat_longest): Delete commented out function.
9134 Update copyright.
9135
9136 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9137
9138 * MAINTAINERS: Mark a29k as deleted.
9139 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9140 Move new configurations to the top.
9141 * configure.tgt: Remove a29k.
9142 * config/a29k/tm-vx29k.h: Delete.
9143 * config/a29k/vx29k.mt: Delete.
9144 * config/a29k/tm-a29k.h: Delete.
9145 * config/a29k/a29k-udi.mt: Delete.
9146 * config/a29k/a29k.mt: Delete.
9147 * a29k-tdep.c: Delete.
9148 * remote-udi.c: Delete.
9149 * remote-mm.c: Delete.
9150 * remote-eb.c: Delete.
9151 * remote-adapt.c: Delete.
9152 * Makefile.in: Remove obsolete code.
9153 * config/s390/s390x.mt: Ditto.
9154 * config/s390/s390.mt: Ditto.
9155 * config/sparc/sparclynx.mh: Ditto.
9156 * config/sparc/linux.mh: Ditto.
9157 * config/pa/hppaosf.mh: Ditto.
9158 * config/pa/hppabsd.mh: Ditto.
9159 * config/ns32k/nbsd.mt: Ditto.
9160 * config/mips/vr5000.mt: Ditto.
9161 * config/m68k/sun3os4.mh: Ditto.
9162 * config/m68k/nbsd.mt: Ditto.
9163 * config/m68k/m68klynx.mh: Ditto.
9164 * config/m32r/m32r.mt: Ditto.
9165 * config/i386/x86-64linux.mt: Ditto.
9166 * config/i386/nbsdelf.mt: Ditto.
9167 * config/i386/nbsd.mt: Ditto.
9168 * config/i386/i386lynx.mh: Ditto.
9169
9170 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9171
9172 * target.c (debug_print_register): New function. Handle oversize
9173 registers.
9174 (debug_to_fetch_registers): Call.
9175 (debug_to_store_registers): Call.
9176
9177 2002-05-03 Jim Blandy <jimb@redhat.com>
9178
9179 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9180 (read_type): Doc fix.
9181 * gdbtypes.c (replace_type): Doc fix.
9182
9183 * stabsread.c (multiply_defined_struct): New complaint.
9184 (read_struct_type): If the type we were passed isn't empty, or
9185 incomplete, don't read the new struct type into it; complain,
9186 and return the original type unchanged. Take a new `type_code'
9187 argument, which is the type code for the new type.
9188 (read_type): Rather than storing the type's type code here, pass
9189 it as an argument to read_struct_type, and let that take care of
9190 storing it. That way, we don't overwrite the original type code,
9191 so read_struct_type can use it to decide whether we're overwriting
9192 something we shouldn't.
9193 (complain_about_struct_wipeout): New function.
9194
9195 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9196
9197 * gdbarch.sh: Assert that gdbarch is non-NULL.
9198 * gdbarch.c: Regenerate.
9199
9200 2002-05-03 Jason Merrill <jason@redhat.com>
9201
9202 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9203 and return NULL.
9204
9205 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9206
9207 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9208 (x86_64_dwarf2gdb_regno_map_length),
9209 (x86_64_dwarf2_reg_to_regnum): Added.
9210 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9211 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9212 (_initialize_x86_64_tdep): Synced with the change above.
9213 (x86_64_skip_prologue): Reformulated message.
9214
9215 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9216
9217 * f-exp.y: Also use new prev_lexptr variable
9218 to improve error reporting. Based on Michael Snyder
9219 2002-04-24 dated patch to c-exp.y.
9220 * jv-exp.y: Likewise.
9221 * m2-exp.y: Likewise.
9222
9223 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9224
9225 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9226 we are dealing with vectors.
9227
9228 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9229
9230 * config/m68k/tm-nbsd.h: Obvious fix,
9231 correct machine name.
9232
9233 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9234
9235 * p-typeprint.c (pascal_type_print_base): Add support
9236 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9237
9238 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9239
9240 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9241 for fondamental pascal 'char' type.
9242
9243 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9244
9245 * p-lang.h (is_pascal_string_type): Declaration changed,
9246 new sixth argument of type char ** added.
9247 * p-lang.c (is_pascal_string_type): Implementation
9248 changed. Args length_pos, length_size, string_pos, char_size
9249 can now be NULL. New argument arrayname set to the field
9250 name of the char array. Return value set to char array
9251 field index plus one.
9252 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9253 is_pascal_string_type function.
9254
9255 2002-05-02 Andrew Cagney <cagney@redhat.com>
9256
9257 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9258 <cagney@redhat.com> change.
9259 * gdbarch.c: Regenerate.
9260
9261 2002-05-02 Andrew Cagney <cagney@redhat.com>
9262
9263 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9264 before probing for a new one. Detect errorenous gdbarch_init
9265 functions.
9266 * gdbarch.c: Regenerate.
9267
9268 2002-05-01 Andrew Cagney <cagney@redhat.com>
9269
9270 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9271 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9272 * config/v850/tm-v850.h: Ditto. Update copyright.
9273
9274 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9275
9276 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9277 current_gdbarch.
9278
9279 2002-04-30 Michael Snyder <msnyder@redhat.com>
9280
9281 * arm-tdep.c: Whitespace clean-ups.
9282 (arm_skip_prologue): Fix thinko; two lines
9283 should have been removed as part of 4/24 change.
9284
9285 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9286
9287 * rs6000-tdep.c: Added comment describing how fpscr register
9288 numbers were chosen.
9289
9290 2002-04-30 Michael Snyder <msnyder@redhat.com>
9291
9292 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9293
9294 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9295
9296 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9297 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9298 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9299
9300 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9301
9302 From Louis Hamilton <hamilton@redhat.com>:
9303 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9304 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9305 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9306 not bfd-private xcoff data, to determine wordsize.
9307 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9308
9309 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9310
9311 GDB 5.2 released from 5.2 branch.
9312
9313 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9314
9315 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9316 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9317 (x86_64_register_info_table): Added comments with register numbers.
9318
9319 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9320
9321 * rs6000-tdep.c (rs6000_extract_return_value,
9322 rs6000_store_return_value): Handle returning vectors.
9323 (rs6000_gdbarch_init): Use
9324 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9325 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9326 New function.
9327 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9328 vectors.
9329 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9330 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9331
9332 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9333
9334 * hpread.c (hpread_psymtab_to_symtab_1,
9335 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9336 with fprintf_unfiltered (gdb_stderr,...).
9337
9338 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9339
9340 * remote-array.c (printf_monitor, write_monitor,
9341 array_insert_breakpoint, array_remove_breakpoint ):
9342 Replace fprintf (stderr,...
9343 with fprintf_unfiltered (gdb_stderr,....
9344 * remote-es.c: Likewise.
9345 * remote-os9k.c: Likewise.
9346 * remote-st.c: Likewise.
9347
9348 2002-04-28 Andreas Schwab <schwab@suse.de>
9349
9350 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9351 linux-proc.o and gcore.o.
9352
9353 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9354
9355 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9356 code without frame pointers.
9357
9358 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9359
9360 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9361 ON_STACK is needed.
9362
9363 2002-04-26 Ben Elliston <bje@redhat.com>
9364
9365 * target.c (do_xfer_memory): Correct reference to the new option
9366 "trust-readonly-sections".
9367
9368 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9369
9370 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9371 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9372 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9373 vectors.
9374 (read_array_type): Record the fact that this array type is really a
9375 vector (i.e. are passed in by value).
9376
9377 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9378
9379 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9380 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9381 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9382 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9383 * alpha-linux-tdep.c: Include frame.h.
9384 (alpha_linux_sigcontext_addr): New function.
9385 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9386 alpha_linux_sigcontext_addr.
9387 * alpha-osf1-tdep.c: Include gdbcore.h.
9388 (alpha_osf1_sigcontext_addr): New function.
9389 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9390 alpha_osf1_sigcontext_addr.
9391 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9392 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9393
9394 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9395
9396 * stack.c (selected_frame_level):
9397 (select_frame): Do not set selected_frame_level.
9398 * frame.h (selected_frame_level): Delete declaration.
9399
9400 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9401
9402 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9403 convert_from_func_ptr-addr when AIX / PowerOpen.
9404
9405 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9406
9407 * valops.c (hand_function_call): Call
9408 generic_save_call_dummy_addr.
9409 * frame.h (generic_save_call_dummy_addr): Declare.
9410 * blockframe.c (struct dummy_frame): Add fields call_lo and
9411 call_hi.
9412 (generic_find_dummy_frame): Check for PC in range call_lo to
9413 call_hi instead of entry_point_address.
9414 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9415 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9416 (generic_save_call_dummy_addr): New function.
9417
9418 2002-04-24 David S. Miller <davem@redhat.com>
9419
9420 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9421 sparc_skip_prologue.
9422 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9423 information to find prologue when possible.
9424 (sparc_prologue_frameless_p): Call examine_prologue directly.
9425 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9426 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9427 second argument.
9428 (SKIP_PROLOGUE): Likewise.
9429
9430 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9431
9432 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9433 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9434 indicate that the condition it was testing is always true.
9435 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9436 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9437 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9438
9439 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9440
9441 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9442 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9443 tdep->jb_pc and tdep->jb_elt_size.
9444 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9445 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9446 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9447 * alpha-nat.c (get_longjmp_target): Remove.
9448 (JB_ELEMENT_SIZE): Ditto.
9449 (JB_PC): Ditto.
9450 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9451 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9452 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9453 to alpha_get_longjmp_target.
9454 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9455 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9456 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9457
9458 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9459
9460 * README: Update to GDB 5.2.
9461
9462 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9463
9464 * gdbarch.sh (LC_ALL): Set to `c'.
9465
9466 2002-04-25 Theodore A. Roth <troth@verinet.com>
9467
9468 * avr-tdep.c: Ran through gdb_indent.sh.
9469
9470 2002-04-25 Theodore A. Roth <troth@verinet.com>
9471
9472 * MAINTAINERS: Add myself as AVR maintainer.
9473 * NEWS: Note new target avr.
9474
9475 2002-04-25 Theodore A. Roth <troth@verinet.com>
9476
9477 * Makefile.in: Add support for AVR target.
9478 * configure.tgt: Add support for AVR target.
9479 * avr-tdep.c: New file
9480 * config/avr/avr.mt: New file.
9481
9482 2002-04-25 Theodore A. Roth <troth@verinet.com>
9483
9484 * MAINTAINERS: Add myself to write-after-approval.
9485
9486 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9487
9488 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9489 with fprintf_unfiltered (gdb_stderr,....
9490
9491 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9492
9493 Fix PR gdb/508.
9494 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9495
9496 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9497
9498 * p-exp.y: Also use new prev_lexptr variable
9499 to improve error reporting. Based on Michael Snyder
9500 2002-04-24 dated patch to c-exp.y.
9501
9502 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9503
9504 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9505 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9506 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9507 to 0.
9508 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9509 and struct value.
9510 (FUNCTION_START_OFFSET): Remove.
9511 (BREAKPOINT): Ditto.
9512
9513 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9514
9515 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9516 * NEWS: Ditto.
9517
9518 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9519
9520 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9521 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9522 alpha_linux_pc_in_sigtramp.
9523 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9524 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9525 alpha_osf1_pc_in_sigtramp.
9526 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9527 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9528 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9529 alphafbsd_pc_in_sigtramp.
9530 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9531 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9532 alphanbsd_pc_in_sigtramp.
9533 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9534 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9535
9536 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9537
9538 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9539
9540 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9541
9542 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9543 alphanbsd-tdep.c.
9544 (alphanbsd-nat.o): New dependency list.
9545 (alphanbsd-tdep.o): Ditto.
9546 * NEWS: Note new native NetBSD/alpha configuration.
9547 * alphanbsd-nat.c: New file.
9548 * alphanbsd-tdep.c: Ditto.
9549 * configure.host (alpha*-*-netbsd*): New host.
9550 * configure.tgt (alpha*-*-netbsd*): New target.
9551 * config/alpha/nbsd.mh: New file.
9552 * config/alpha/nbsd.mt: Ditto.
9553 * config/alpha/nm-nbsd.h: Ditto.
9554 * config/alpha/tm-nbsd.h: Ditto.
9555
9556 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9557
9558 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9559 (alpha-osf1-tdep.o): New dependency list.
9560 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9561 and skip_sigtramp_frame members.
9562 * alpha-linux-tdep.c: Include gdbcore.h.
9563 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9564 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9565 * alpha-osf1-tdep.c: New file.
9566 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9567 alpha-osf1-dep.c.
9568 (alpha_frame_past_sigtramp_frame): New function.
9569 (alpha_dynamic_sigtramp_offset): Ditto.
9570 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9571 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9572 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9573 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9574 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9575 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9576 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9577 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9578 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9579 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9580 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9581 to find_solib_trampoline_target.
9582 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9583 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9584 (SKIP_TRAMPOLINE_CODE): Remove.
9585 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9586 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9587 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9588 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9589 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9590 (PROC_SIGTRAMP_MAGIC): Ditto.
9591 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9592 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9593 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9594 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9595 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9596
9597 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9598
9599 * NEWS: Note that Alpha targets are now multi-arch.
9600
9601 2002-04-24 Michael Snyder <msnyder@redhat.com>
9602
9603 * parser-defs.h (prev_lexptr): New external variable.
9604 * parse.c (parse_exp_1): Set prev_lexptr to null before
9605 calling the language-specific parser.
9606 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9607 (yyerror): Use prev_lexptr in error reporting.
9608
9609 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9610
9611 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9612 * gregset.h: If FILL_FPXREGSET is defined, provide
9613 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9614 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9615 is defined, call fill_fpxregset.
9616
9617 2002-04-24 Roland McGrath <roland@frob.com>
9618
9619 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9620 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9621 (supply_gregset, supply_fpregset): New functions.
9622
9623 * gnu-nat.c (gnu_find_memory_regions): New function.
9624 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9625 (gnu_xfer_memory): Add a cast.
9626
9627 2002-04-24 Michael Snyder <msnyder@redhat.com>
9628
9629 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9630 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9631 of argument regs ("str r(0123), [r11, #-nn"]).
9632 (arm_skip_prologue): Better handling for frameless functions.
9633 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9634 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9635
9636 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9637
9638 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9639 NUM_PSEUDO_REGS can be used.
9640
9641 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9642
9643 * arch-utils.h: Update copyright.
9644
9645 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9646 * gdbarch.h, gdbarch.c: Re-generate.
9647
9648 * inferior.h (IN_SIGTRAMP): Delete definition.
9649 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9650 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9651
9652 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9653 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9654 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9655 (find_proc_framesize): Ditto.
9656 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9657 (alpha_init_extra_frame_info): Ditto.
9658 * infrun.c (handle_inferior_event): Ditto.
9659 (handle_inferior_event): Ditto.
9660 (check_sigtramp2): Ditto.
9661 * blockframe.c (create_new_frame): Ditto.
9662 (get_prev_frame): Ditto.
9663 * ppc-linux-tdep.c: Update comments.
9664 * i386-linux-tdep.c: Update comments.
9665 * breakpoint.c (bpstat_what): Update comment.
9666
9667 2002-04-24 David S. Miller <davem@redhat.com>
9668
9669 * i960-tdep.c (register_in_window_p): New function.
9670 (i960_find_saved_register): Use it instead of
9671 REGISTER_IN_WINDOW_P.
9672 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9673
9674 * symtab.h (find_stab_function_addr): Kill extern.
9675 * minsyms.c (find_stab_function_addr): Remove from here...
9676 * dbxread.c: ... to here, and mark it static.
9677
9678 2002-04-20 David S. Miller <davem@redhat.com>
9679
9680 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9681 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9682
9683 2002-04-21 David S. Miller <davem@redhat.com>
9684
9685 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9686 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9687 (vx_write_register): Likewise.
9688
9689 2002-04-23 J. Brobecker <brobecker@gnat.com>
9690
9691 * source.c (is_regular_file): New function.
9692 (openp): Check wether file to open is a regular file
9693 to avoid opening directories.
9694
9695 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9696
9697 * findvar.c (extract_signed_integer): Cast printf argument
9698 to suppress format warning.
9699 (extract_unsigned_integer): Likewise.
9700 * infcmd.c (registers_info): Likewise.
9701 * top.c (get_prompt_1): Likewise.
9702 * valops.c (value_assign): Likewise.
9703 * valprint.c (print_decimal): Likewise.
9704
9705 2002-04-22 H.J. Lu (hjl@gnu.org)
9706
9707 * c-exp.y (typebase): Support
9708
9709 [long|long long|short] [signed|unsigned] [int|]
9710
9711 and
9712
9713 signed [long|long long|short] int
9714
9715 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9716
9717 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9718 and vax-tdep.h.
9719 * vax-tdep.h: New file.
9720 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9721 Make several routines static.
9722 (vax_get_saved_register): New function.
9723 (vax_gdbarch_init): New function.
9724 (_initialize_vax_tdep): Register vax_gdbarch_init.
9725 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9726 Remove macros now under the control of gdbarch.
9727
9728 2002-04-22 Michael Snyder <msnyder@redhat.com>
9729
9730 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9731 Some whitespace and coding standards tweaks.
9732
9733 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9734
9735 * vax-tdep.c: Include regcache.h.
9736 (vax_call_dummy_words): New.
9737 (sizeof_vax_call_dummy_words): New.
9738 (vax_fix_call_dummy): New function.
9739 (vax_saved_pc_after_call): Ditto.
9740 * config/vax/tm-vax.h: Don't include regcache.h.
9741 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9742 (CALL_DUMMY): Remove.
9743 (CALL_DUMMY_WORDS): Define.
9744 (SIZEOF_CALL_DUMMY_WORDS): Define.
9745 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9746
9747 2002-04-18 Michael Snyder <msnyder@redhat.com>
9748
9749 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9750
9751 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9752
9753 * vax-tdep.c (vax_frame_chain): New function.
9754 (vax_push_dummy_frame): Ditto.
9755 (vax_pop_frame): Ditto.
9756 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9757 (FRAMELESS_FUNCTION_INVOCATION): Use
9758 generic_frameless_function_invocation_not.
9759 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9760 (POP_FRAME): Use vax_pop_frame.
9761
9762 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9763
9764 * vax-tdep.c (vax_store_struct_return): New function.
9765 (vax_extract_return_value): Ditto.
9766 (vax_store_return_value): Ditto.
9767 (vax_extract_struct_value_address): Ditto.
9768 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9769 vax_store_struct_return.
9770 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9771 (STORE_RETURN_VALUE): Use vax_store_return_value.
9772 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9773
9774 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9775
9776 * vax-tdep.c (vax_frame_saved_pc): New function.
9777 (vax_frame_args_address_correct): Ditto.
9778 (vax_frame_args_address): Ditto.
9779 (vax_frame_locals_address): Ditto.
9780 (vax_frame_num_args): Move code to be in proximity to
9781 other frame-related functions.
9782 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9783 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9784 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9785 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9786 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9787
9788 2002-04-22 H.J. Lu (hjl@gnu.org)
9789
9790 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9791 includedir.
9792
9793 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9794
9795 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9796 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9797 (FRAME_INIT_SAVED_REGS): New macro.
9798
9799 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9800
9801 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9802
9803 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9804
9805 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9806 where needed.
9807 (fetch_osf_core_registers): Likewise.
9808 (supply_gregset): Likewise.
9809
9810 2002-04-22 J. Brobecker <brobecker@gnat.com>
9811
9812 * symfile.h (get_section_index): Define.
9813 * symfile.c (get_section_index): New function.
9814 * mdebugread.c (SC_IS_SBSS): New macro.
9815 (SC_IS_BSS): Return true for the scBss storage class only, as
9816 the scSBss storage class refers to the .sbss section.
9817 (parse_partial_symbols): Discard the symbols which associated
9818 section does not exist.
9819 Make sure to use the .sbss section index for symbols which
9820 storage class is scBss, rather than using the .bss section index.
9821
9822 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9823
9824 * vax-tdep.c: Update copyright years.
9825 (vax_register_name): New function.
9826 (vax_register_byte): Ditto.
9827 (vax_register_raw_size): Ditto.
9828 (vax_register_virtual_size): Ditto.
9829 (vax_register_virtual_type): Ditto.
9830 * config/vax/tm-vax.h: Update copyright years.
9831 (REGISTER_NAMES): Remove.
9832 (REGISTER_NAME): Define.
9833 (REGISTER_BYTE): Use vax_register_byte.
9834 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9835 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9836 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9837
9838 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9839
9840 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9841 declaration
9842 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9843
9844 2002-04-21 David S. Miller <davem@redhat.com>
9845
9846 * arch-utils.c (generic_prologue_frameless_p): Kill
9847 SKIP_PROLOGUE_FRAMELESS_P code.
9848 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9849 references.
9850 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9851 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9852 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9853 references.
9854 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9855 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9856 (sparc_gdbarch_init): Pass it to
9857 set_gdbarch_prologue_frameless_p.
9858
9859 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9860
9861 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9862 (alphabsd-nat.o): New dependency list.
9863
9864 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9865
9866 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9867 alphafbsd-tdep.c.
9868 (alpha-linux-tdep.o): New dependency list.
9869 (alphafbsd-tdep.o): Likewise.
9870
9871 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9872
9873 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9874 to here...
9875 * alpha-tdep.c: ...from here.
9876 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9877
9878 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9879
9880 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9881 prototype from here...
9882 * alpha-tdep.h: ...to here.
9883
9884 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9885
9886 * frame.h (selected_frame_level): Document as deprecated.
9887 (frame_relative_level): Declare.
9888 * stack.c (frame_relative_level): New function.
9889 (selected_frame_level): Document as deprecated.
9890 (select_frame): Do not set the selected_frame_level.
9891
9892 * stack.c (frame_info, record_selected_frame): Update.
9893 (frame_command, current_frame_command): Update.
9894 (up_silently_base, up_command, down_silently_base): Update.
9895 (down_command): Update.
9896 * inflow.c (kill_command): Update.
9897 * tracepoint.c (finish_tfind_command): Update.
9898 * corelow.c (core_open): Update.
9899 * thread.c (info_threads_command): Update.
9900 (do_captured_thread_select): Update.
9901 * infcmd.c (finish_command): Update.
9902 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9903
9904 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9905
9906 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9907
9908 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9909
9910 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9911 type const.
9912
9913 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9914
9915 * alphafbsd-tdep.c: Update copyright years. Include
9916 alpha-tdep.h.
9917 (alphafbsd_use_struct_convention): Make static.
9918 (alphafbsd_init_abi): New function.
9919 (_initialize_alphafbsd_tdep): New function.
9920 * config/alpha/tm-fbsd.h: Update copyright years.
9921 (USE_STRUCT_CONVENTION): Remove.
9922
9923 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9924
9925 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9926 an Alpha ABI variant.
9927 (alpha_abi_handler_list): Declare.
9928 (alpha_gdbarch_register_os_abi): New function.
9929 (alpha_gdbarch_init): Give registered ABI variant handlers a
9930 chance to tweak the gdbarch once we have set up defaults.
9931 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9932
9933 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9934
9935 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9936 to standard_coerce_float_to_double.
9937 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9938
9939 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9940
9941 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9942 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9943 from gdbarch_tdep rather than a constant.
9944 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9945 the default text address for all Alpha Unix ABIs.
9946 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9947 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9948
9949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9950
9951 * alpha-tdep.h: New file. Includes several Alpha target constants
9952 taken from...
9953 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9954 let gdbarch deal with.
9955 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9956 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9957 to dependency list.
9958 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9959 Alpha target register names.
9960 * alphabsd-nat.c: Likewise.
9961 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9962 Alpha target register names. Make serveral routines static.
9963 (alpha_get_saved_register): New function.
9964 (alpha_abi_names): New.
9965 (process_note_abi_tag_sections): New function.
9966 (get_elfosabi): New function.
9967 (alpha_gdbarch_init): New function.
9968 (alpha_dump_tdep): New function.
9969 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9970
9971 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9972
9973 * frame.c (find_saved_register): Delete #ifdef
9974 HAVE_REGISTER_WINDOWS code.
9975 * config/sparc/tm-sparc.h: Update comments.
9976 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9977
9978 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9979
9980 * i960-tdep.c (i960_find_saved_register): New function.
9981 (i960_get_saved_register): New function.
9982 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9983 (i960_get_saved_register): Declare.
9984 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9985
9986 2002-04-20 David S. Miller <davem@redhat.com>
9987
9988 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9989
9990 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9991
9992 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9993 instead of NUM_PSEUDO_REGS.
9994
9995 2002-04-20 David S. Miller <davem@redhat.com>
9996
9997 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9998 GDB_MULTI_ARCH_PARTIAL
9999 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10000 define, let tm-sp64.h do it.
10001
10002 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10003
10004 * frame.c (find_saved_register): Avoid a NULL pointer
10005 dereference and actually walk the frame list.
10006
10007 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10008
10009 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10010 sorted in most most-recent-used order. Document.
10011 * gdbarch.h, gdbarch.c: Regenerate.
10012
10013 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10014
10015 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10016 instead of ->prev.
10017 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10018 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10019 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10020 instead of ->prev.
10021
10022 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10023
10024 Fix PR gdb/471.
10025 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10026 (build_builtin_type_vec128): Ditto.
10027 (append_composite_type_field): Fix calculation of type length in
10028 union case.
10029
10030 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10031
10032 * config/djgpp/README: Update.
10033
10034 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10035 compiler warnings.
10036
10037 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10038
10039 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10040 (alpha_setup_arbitrary_frame): ...to this.
10041 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10042 for alpha_setup_arbitrary_frame.
10043
10044 2002-04-18 Andrew Cagney <cagney@redhat.com>
10045
10046 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10047 * gdbarch.h, gdbarch.c: Regenerate.
10048
10049 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10050 * target.h (memory_breakpoint_from_pc): Update declaration.
10051 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10052
10053 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10054 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10055 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10056 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10057 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10058 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10059 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10060 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10061 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10062 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10063 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10064 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10065
10066 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10067 const pointer.
10068 * monitor.c (monitor_insert_breakpoint): Ditto.
10069 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10070
10071 * config/mcore/tm-mcore.h: Update copyright.
10072 * mem-break.c: Ditto.
10073 * xstormy16-tdep.c: Ditto.
10074
10075 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10076
10077 * p-exp.y: Add precedence rule for '^' token.
10078 This removes the shift/reduce conflicts.
10079 Remove the comment concerning these shift/reduce conflicts.
10080
10081 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10082
10083 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10084 (registers_powerpc_nofp): New register set for processors
10085 without floating point unit.
10086
10087 2002-04-18 David S. Miller <davem@redhat.com>
10088
10089 * MAINTAINERS: Add myself to write-after-approval.
10090
10091 2002-04-17 Michael Snyder <msnyder@redhat.com>
10092
10093 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10094
10095 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10096
10097 * rs6000-tdep.c (frame_initial_stack_address): Use
10098 frame_register_read to read the alloca_reg.
10099
10100 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10101
10102 * frame.c (find_saved_register): Find saved registers in the next
10103 not prev frame.
10104 Fix PR gdb/365.
10105
10106 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10107
10108 * gdbarch.sh (LANG): Set to ``c''.
10109
10110 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10111
10112 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10113
10114 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10115
10116 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10117 Update copyright.
10118
10119 * hpread.c (hpread_get_lntt): Add declaration.
10120 Also fix PR gdb/391.
10121
10122 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10123
10124 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10125 * aclocal.m4, configure: Re-generate.
10126 Fix PR gdb/391.
10127
10128 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10129
10130 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10131 instead of tm_print_insn.
10132
10133 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10134
10135 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10136
10137 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10138
10139 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10140 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10141 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10142
10143 2002-04-12 Don Howard <dhoward@redhat.com>
10144
10145 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10146 max_user_call_depth.
10147 (init_cmd_lists): Initialize the new value;
10148 * cli/cli-script.c (execute_user_command): Limit the call depth of
10149 user defined commands. This avoids a core-dump when user commands
10150 are infinitly recursive.
10151
10152 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10153
10154 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10155 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10156 from tdep struct instead of DEFAULT_LR_SAVE.
10157 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10158 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10159 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10160
10161 2002-04-12 Michael Snyder <msnyder@redhat.com>
10162
10163 * Remote.c: Spelling fix.
10164 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10165 If no symbol found for "sbrk", try "_sbrk".
10166 (make_output_phdrs): Use bfd_section_name.
10167 (gcore_copy_callback): Use bfd_section_name.
10168 * eval.c: Indentation fix-ups.
10169 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10170 in case it gets applied to an address that is already
10171 in the instruction space.
10172 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10173 * symfile.c: Fix indentation, long lines.
10174 * source.c: White space fix-up.
10175
10176 2002-04-12 Andrew Cagney <cagney@redhat.com>
10177
10178 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10179 * frame.c (frame_register_read): New function. Return non-zero on
10180 success.
10181 (read_relative_register_raw_bytes_for_frame): Delete.
10182 (read_relative_register_raw_bytes): Delete.
10183 * frame.h (frame_register_read): Declare.
10184 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10185 * sh-tdep.c: Ditto.
10186 * infcmd.c (do_registers_info): Ditto.
10187 * hppa-tdep.c: Ditto.
10188 * rs6000-tdep.c: Ditto.
10189 * h8500-tdep.c: Ditto.
10190 * mips-tdep.c: Ditto.
10191 * h8300-tdep.c: Ditto.
10192 * z8k-tdep.c: Ditto.
10193
10194 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10195
10196 From Jimi X <jimix@watson.ibm.com>:
10197 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10198 64-bit SysV ABI.
10199
10200 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10201
10202 From Jimi X <jimix@watson.ibm.com>:
10203 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10204 bfd info.
10205
10206 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10207
10208 From Jimi X <jimix@watson.ibm.com>:
10209 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10210 register sets for these processor variants.
10211
10212 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10213
10214 * regformats/reg-ppc.dat: Support FPSCR.
10215
10216 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10217
10218 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10219 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10220 Add fpscr as an invalid/unfetchable register.
10221 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10222 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10223 (fill_fpregset): Add support for register fpscr.
10224 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10225 (fill_gregset): Account for the fact that register ``mq'' might
10226 not exist.
10227 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10228 (registers_power): Add fpscr to register set at slot 71.
10229 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10230 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10231
10232 2002-04-11 Michael Snyder <msnyder@redhat.com>
10233
10234 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10235 * configure: Regenerate.
10236 * config.in: Regenerate.
10237 * acconfig.h: Add define for _SYSCALL32.
10238 * core-sol2.c: Remove #define _SYSCALL32.
10239 * solib-legacy.c: Remove #define _SYSCALL32.
10240
10241 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10242
10243 * stack.c (select_frame): Cleanup internal error message, do not
10244 use %p.
10245
10246 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10247
10248 * stack.c (select_frame): Check that selected_frame and the
10249 specified level are as expected.
10250 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10251 Update copyright.
10252 * frame.h (struct frame_info): Add field `level'. Update
10253 copyright.
10254 Work-in-progress PR gdb/464.
10255
10256 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10257
10258 * maint.c (maint_print_section_info): Rename print_section_info.
10259 (print_bfd_section_info, print_objfile_section_info): Update.
10260 * inferior.h (struct gdbarch): Add opaque declaration.
10261 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10262 * gdbarch.h: Regenerate.
10263
10264 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10265
10266 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10267 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10268 (kernel_u_size): Added.
10269 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10270 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10271
10272 2002-04-04 Jim Ingham <jingham@apple.com>
10273
10274 * valarith.c (find_size_for_pointer_math): New function, either returns
10275 the size for a pointer's target, returns 1 for void *, or errors for
10276 incomplete types.
10277 (value_add, value_sub): use find_size_for_pointer_math.
10278
10279 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10280
10281 * linux-low.c (linux_look_up_symbols): New hook.
10282 (linux_target_ops): Add linux_look_up_symbols.
10283 * remote-utils.c (decode_address): New function.
10284 (look_up_one_symbol): New function.
10285 * server.c (handle_query): Call target look_up_symbols hook.
10286 * server.h (look_up_one_symbol): Add prototype.
10287 * target.h (struct target_ops): Add look_up_symbols hook.
10288
10289 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10290
10291 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10292 override FP_REGNUM with frame->fp. Update copyright.
10293 * parse.c (num_std_regs, std_regs): Delete.
10294 (target_map_name_to_register): Do not search std_regs. Update
10295 function description.
10296 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10297 declarations. Update copyright.
10298 Fix PR gdb/251.
10299
10300 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10303 after the last symbol in a block.
10304
10305 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10306
10307 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10308 is non zero as a found symbol.
10309
10310 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10311
10312 * findvar.c: Include "builtin-regs.h".
10313 (value_of_register): Call value_of_builtin_reg when applicable.
10314 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10315 (target_map_name_to_register): Call
10316 builtin_reg_map_name_to_regnum.
10317 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10318 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10319 (builtin_regs_h): Define.
10320 (builtin-regs.o): New target.
10321 (findvar.o): Add $(builtin_regs_h).
10322 * builtin-regs.c, builtin-regs.h: New files.
10323 * std-regs.c: New file.
10324 Partial fix for PR gdb/251.
10325
10326 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10327
10328 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10329 it's no longer required.
10330
10331 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10332
10333 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10334
10335 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10336
10337 From Jimi X <jimix@watson.ibm.com>:
10338 * rs6000-tdep.c (rs6000_software_single_step): Use
10339 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10340 and size. Use target_insert_breakpoint() and
10341 target_remove_breakpoint() to insert and remove breakpoints
10342 instead of explicit memory reads and writes.
10343
10344 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10345
10346 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10347 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10348 ELF_OBJECT_FORMAT ifdef.
10349
10350 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10351
10352 From Jimi X <jimix@watson.ibm.com>:
10353 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10354
10355 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10356
10357 From Jimi X <jimix@watson.ibm.com>:
10358 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10359 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10360
10361 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10362
10363 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10364 s/asprintf/xasprintf/.
10365 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10366
10367 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10368
10369 I believe Jeff Law denies responsability for this one:
10370 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10371 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10372 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10373 Work-around for PR gdb/366.
10374
10375 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10376
10377 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10378 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10379 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10380
10381 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10382
10383 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10384 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10385 information.
10386
10387 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10388
10389 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10390 maintainer.
10391
10392 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10393
10394 * README (Reporting Bugs in GDB): Document the bug web page as the
10395 prefered way of submitting bugs.
10396 Fix PR gdb/402.
10397
10398 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10399
10400 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10401 -1. Update comment.
10402 * gdbarch.h, gdbarch.c: Re-generate.
10403
10404 2002-04-07 Andreas Schwab <schwab@suse.de>
10405
10406 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10407 buffer to regcache_collect.
10408
10409 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10410
10411 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10412 * gdbarch.c, gdbarch.h: Re-generate.
10413
10414 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10415
10416 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10417 declaration. Fix -Werror.
10418
10419 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10420
10421 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10422 * gdbarch.c: Regenerate.
10423
10424 2002-04-05 Michael Snyder <msnyder@redhat.com>
10425
10426 * breakpoint.c (clear_command): Rewrite middle section to
10427 combine two loops with identical control conditions.
10428 Add a cleanup to eliminate a memory leak.
10429 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10430
10431 2002-04-05 H.J. Lu (hjl@gnu.org)
10432
10433 * solib-svr4.c (bkpt_names): Add "__start".
10434
10435 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10436
10437 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10438 as test for 64 bit target.
10439
10440 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10441
10442 * h8500-tdep.c (h8500_write_fp): Delete function.
10443 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10444 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10445 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10447 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10448 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10449 (s390_write_fp):
10450 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10451 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10452 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10453 (d10v_write_fp): Delete function.
10454 * inferior.h (write_fp, generic_target_write_fp): Delete
10455 declarations.
10456 * regcache.c (generic_target_write_fp): Delete function.
10457 (write_fp): Delete function.
10458 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10459 * gdbarch.h, gdbarch.c: Regenerate.
10460 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10461 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10462 (sparc64_write_fp): Delete declaration.
10463 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10464 (h8500_write_fp): Delete declaration.
10465
10466 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10467
10468 * sparc-tdep.c (sparc64_write_fp): Delete.
10469 (sparc_push_dummy_frame): Replace write_fp call with code to store
10470 the FP directly.
10471 (sparc_gdbarch_init): Do not initialize write_fp.
10472
10473 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10474
10475 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10476 clause.
10477
10478 2002-03-29 Jim Blandy <jimb@redhat.com>
10479
10480 * stack.c (get_selected_block): Add new argument `addr_in_block',
10481 used to return the exact code address we used to select the block,
10482 not just the block.
10483 * blockframe.c (get_frame_block, get_current_block): Same.
10484 * frame.h (get_frame_block, get_current_block,
10485 get_selected_block): Update declarations.
10486 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10487 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10488
10489 2002-04-05 Michael Snyder <msnyder@redhat.com>
10490
10491 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10492 warning message.
10493
10494 2002-04-05 J. Brobecker <brobecker@gnat.com>
10495
10496 * utils.c (xfullpath): New function.
10497 * defs.h (xfullpath): Add declaration.
10498 * source.c (openp): Use xfullpath in place of gdb_realpath to
10499 avoid resolving the basename part of filenames when the
10500 associated file is a symbolic link. This fixes a potential
10501 inconsistency between the filenames known to GDB and the
10502 filenames it prints in the annotations.
10503 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10504 to be able to match a filename with either the real filename, or
10505 the name of any symbolic link to this file.
10506 (lookup_partial_symtab): Ditto.
10507
10508 2002-04-04 Michael Snyder <msnyder@redhat.com>
10509
10510 * breakpoint.c: Add support for hardware breakpoints in overlays.
10511 (overlay_events_enabled): New state variable.
10512 (insert_breakpoints): Use overlay_events_enabled to decide
10513 whether to attempt to set a breakpoint at the overlay load addr.
10514 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10515 (remove_breakpoint): Use overlay_events_enabled to decide
10516 whether breakpoints need to be removed from overlay load addr.
10517 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10518 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10519 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10520 disable_overlay_breakpoints): Update overlay_events_enabled.
10521
10522 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * dwarf2read.c (struct function_range): New.
10525 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10526 (check_cu_functions): New.
10527 (read_file_scope): Initialize global function lists.
10528 Call dwarf_decode_line after processing children.
10529 (read_func_scope): Add to global function list.
10530 (dwarf_decode_lines): Call check_cu_functions everywhere
10531 record_line is called. Call record_line with a linenumber
10532 of 0 to mark sequence ends.
10533
10534 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10535
10536 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10537 change sync with glibc.
10538
10539 2002-04-03 Jim Blandy <jimb@redhat.com>
10540
10541 * configure.in: Call AC_C_INLINE.
10542 * configure: Regenerated.
10543
10544 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10547 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10548
10549 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10550
10551 * NEWS: Mention gcore support on FreeBSD/i386.
10552
10553 * fbsd-proc.c: New file.
10554 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10555 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10556
10557 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10558 while statement.
10559
10560 2002-03-29 Jim Blandy <jimb@redhat.com>
10561
10562 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10563 unescaped newlines in string literals, but newer ones don't. So
10564 escape them.
10565
10566 2002-03-26 Michael Snyder <msnyder@redhat.com>
10567 Andrew Cagney <cagney@redhat.com>
10568
10569 * cli/cli-dump.c: New file. Dump memory to file,
10570 restore file to memory.
10571 * cli/cli-dump.h: New file.
10572 * Makefile.in: Add rules, dependencies for cli-dump.o.
10573 * NEWS: Mention new commands.
10574
10575 2002-03-28 Michael Snyder <msnyder@redhat.com>
10576
10577 * symfile.c (symbol_file_add): Move test for null symbols to later.
10578
10579 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10580
10581 From veksler at il.ibm.com:
10582 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10583 the xstrduped original path.
10584 Fix PR gdb/417.
10585
10586 2002-03-27 Michael Snyder <msnyder@redhat.com>
10587
10588 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10589 * infcmd.c (_initialize_infcmd): Ditto.
10590 * language.c (_initialize_language): Ditto.
10591 * symfile.c (_initialize_symfile): Ditto.
10592 * top.c (_init_main): Ditto.
10593 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10594
10595 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10596
10597 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10598 vector registers handling.
10599 (skip_prologue): Handle new AltiVec instructions. Fill in new
10600 fields of frame data.
10601 (frame_get_saved_regs): Fill in information for AltiVec registers.
10602
10603 2002-03-27 Jim Blandy <jimb@redhat.com>
10604
10605 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10606 a function; leave this macro here to invoke that function.
10607 (symbol_init_mangled_name): Declaration for that function.
10608 * symtab.c (symbol_init_mangled_name): New function.
10609
10610 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10611
10612 * valarith.c: Replace strerror with safe_strerror.
10613 * tracepoint.c: Ditto.
10614 * lin-lwp.c: Ditto.
10615 * go32-nat.c: Ditto.
10616 * inflow.c: Ditto.
10617 * gnu-nat.c: Ditto.
10618
10619 2002-03-27 Andreas Schwab <schwab@suse.de>
10620
10621 * event-top.c (command_line_handler): Remove useless if.
10622
10623 2002-03-27 Andreas Jaeger <aj@suse.de>
10624
10625 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10626 comment.
10627
10628 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10629
10630 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10631 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10632 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10633 (x86_64_linux_dr_get_status, supply_gregset),
10634 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10635 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10636 (x86_64_register_info_table): Add.
10637 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10638 (x86_64_register_raw_size, x86_64_register_virtual_type),
10639 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10640 general x86_64_register_info_table.
10641 (i386_gdbarch_init): gdbarch_register_bytes is now set
10642 dynamicaly during initialization.
10643 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10644 * gdbserver/linux-x86-64-low.c: Ditto.
10645
10646 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * gdbserver/server.c (main): Call target_signal_to_host_p
10649 and target_signal_to_host on signals received from the remote.
10650 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10651 target_signal_from_host on signals sent to the remote.
10652 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10653 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10654
10655 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * signals/signals.c: Include "server.h" in gdbserver build.
10658 (target_signal_from_name): Don't use STREQ.
10659 (_initialize_signals): Likewise. Don't include function in
10660 gdbserver build.
10661
10662 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10663
10664 * signals.c: Moved to...
10665 * signals/signals.c: Here.
10666 * Makefile (signals.o): Update.
10667
10668 2002-03-26 Jeff Law (law@redhat.com)
10669
10670 * somread.c (som_symtab_read): Remove some commented out code and
10671 updated related comments. Do not set the minimal symbol table to
10672 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10673 in a dynamic executable.
10674 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10675 where we are unable to find the minimal symbol for the given
10676 PC value.
10677
10678 2002-03-25 Jeff Law (law@redhat.com)
10679
10680 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10681
10682 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10683
10684 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10685
10686 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10687
10688 * command.h: Update copyright.
10689 (struct cmd_list_element): Replace definition with opaque
10690 declaration.
10691 (enum cmd_types): Document that it will eventually be moved to
10692 cli/cli-decode.h
10693 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10694 (MALLOCED_REPLACEMENT): Delete macro.
10695 * Makefile.in (cli_decode_h): Add $(command_h).
10696 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10697 * top.c: Include "cli/cli-decode.h".
10698 * completer.c: Include "cli/cli-decode.h".
10699 * maint.c: Include "cli/cli-decode.h".
10700 * cli/cli-decode.h: Include "command.h".
10701 (enum command_class): Delete.
10702 (enum cmd_types): Comment out.
10703 (enum cmd_auto_boolean): Delete.
10704 (enum var_types): Delete.
10705
10706 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10707
10708 * cli/cli-decode.c: Include "gdb_assert.h".
10709 (add_set_or_show_cmd): New static function.
10710 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10711 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10712 all fields, such as func, from the set command.
10713
10714 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10715
10716 * MAINTAINERS (sh-elf): Change warning flag to -w.
10717
10718 2002-03-23 Andrew Cagney <cagney@redhat.com>
10719
10720 * defs.h (error): Add printf format attribute.
10721 * thread-db.c (thread_from_lwp): Fix error format string.
10722 * stack.c (parse_frame_specification): Ditto.
10723 * cli/cli-decode.c (undef_cmd_error): Ditto.
10724 * scm-lang.c (scm_lookup_name): Ditto.
10725 * tracepoint.c (trace_error): Ditto.
10726 * remote-utils.c (usage): Ditto.
10727 * remote.c (compare_sections_command): Ditto.
10728 Fix PR gdb/328.
10729
10730 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10731
10732 * gdbtypes.c (append_composite_type_field): New function.
10733 (init_composite_type): New function.
10734 * gdbtypes.h (append_composite_type_field): Declare.
10735 (init_composite_type): Ditto.
10736
10737 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10738
10739 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10740 function.
10741 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10742 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10743 structure returning convention for SYSV ABI case, but not
10744 for GNU/Linux, FreeBSD, or NetBSD.
10745
10746 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10747
10748 * symtab.h (lookup_block_symbol): Add mangled_name argument
10749 to prototype.
10750
10751 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10752 with new mangled_name argument.
10753 * linespec.c (decode_line_1): Likewise.
10754 * valops (value_of_this): Likewise.
10755 * symtab.c (lookup_transparent_type): Likewise.
10756 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10757 (lookup_symbol): If we are given a mangled name, pass it down
10758 to lookup_symbol_aux.
10759 (lookup_block_symbol): If we are given a mangled name to check
10760 against, only return symbols which match it.
10761
10762 2002-03-22 Christopher Faylor <cgf@redhat.com>
10763
10764 * win32-nat.c (child_create_inferior): Check for proper shell to use
10765 here, in case the user changes it on the fly.
10766 (_initialize_inftarg): Remove shell path considerations.
10767
10768 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10769
10770 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10771 for gdbarch_max_register_raw_size and max_register_virtual_size.
10772 Adjust copyright year.
10773
10774 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10775
10776 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10777 in a function to cover the entire beginning of the function
10778 as well if it does not already.
10779
10780 2002-03-21 Tom Rix <trix@redhat.com>
10781
10782 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10783 (rs6000_ptrace64): Renamed from ptrace64.
10784
10785 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10786
10787 * gdbserver/remote-utils.c (remote_open): Don't call
10788 getprotobyname, we're all using TCP here so just use
10789 IPPROTO_TCP.
10790 * gdbserver/gdbreplay.c (remote_open): Ditto.
10791
10792 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10793
10794 * regcache.c (_initialize_regcache): No need to call
10795 build_regcache() at this time; it gets called whenever
10796 the gdbarch changes.
10797
10798 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10799
10800 * sparc-nat.c: Include sys/param.h where possible.
10801
10802 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10803
10804 Fix PR gdb/422.
10805 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10806 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10807 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10808 complex types.
10809 * stabsread.c (rs6000_builtin_type): Likewise.
10810 (read_sun_floating_type): Likewise.
10811
10812 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10813
10814 * stabsread.c (read_member_functions): Remove skip code for duplicate
10815 constructor/destructor methods. Use standard parsing for these
10816 methods and just do not chain them to the list of methods after
10817 parsing.
10818
10819 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10820
10821 * coffread.c: Remove redundant static declarations. Replace
10822 occurrences of `PTR' with `void *'.
10823 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10824 * top.h (quit_cover): Likewise.
10825 * defs.h (catch_errors): Likewise.
10826
10827 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10828
10829 * defs.h (XMALLOC): Define.
10830 * gdb-events.sh (XMALLOC): Delete macro.
10831 * gdb-events.c, gdb-events.h: Regenerate.
10832 * gdbarch.sh (XMALLOC): Delete macro.
10833 * gdbarch.c: Regenerate.
10834 * serial.c (XMALLOC): Delete macro.
10835 * ui-file.c (XMALLOC): Ditto.
10836 * ser-unix.h (XMALLOC): Ditto.
10837 * sh-tdep.c (XMALLOC): Ditto.
10838 * ui-out.c (XMALLOC): Ditto.
10839 * utils.c (XMALLOC): Ditto.
10840 * i386-tdep.c (XMALLOC): Ditto.
10841 * gdb-events.c (XMALLOC): Ditto.
10842 * d10v-tdep.c (XMALLOC): Ditto.
10843 * cli-out.c (XMALLOC): Ditto.
10844
10845 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10846 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10847 * ui-file.c, ui-out.c: Ditto.
10848
10849 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10850
10851 * command.h (struct cmd_list_element): Add field context.
10852 (set_cmd_context, get_cmd_context): Declare.
10853 * cli/cli-decode.h: Ditto.
10854 * cli/cli-decode.c (get_cmd_context): New function.
10855 (set_cmd_context): New function.
10856 (add_cmd): Initialize context.
10857 Part of fixing PR gdb/145 and PR gdb/146.
10858
10859 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10860
10861 * cli/cli-decode.c (cmd_type): New function.
10862 * command.h (cmd_type): Declare.
10863 * infrun.c (set_schedlock_func): Call function cmd_type.
10864 * kod.c (kod_set_os): Call cmd_type.
10865 * cris-tdep.c (cris_version_update): Use function cmd_type.
10866 (cris_mode_update, cris_abi_update): Ditto.
10867
10868 * command.h: (execute_cmd_post_hook): Declare.
10869 (execute_cmd_pre_hook): Declare.
10870 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10871 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10872 functions. Execute pre/post hook while ensuring that afterwords
10873 hook_in is cleared.
10874 * top.c (execute_command): Use execute_cmd_post_hook, and
10875 execute_cmd_pre_hook to execute pre/post commands.
10876 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10877 hook_stop_stub.
10878 (hook_stop_stub): Call execute_cmd_pre_hook.
10879
10880 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10881
10882 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10883 set'' and this leads to a core dump. Move xstrdup of
10884 operating_system to after check that it is not NULL.
10885
10886 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10887
10888 * kod.c (kod_set_os): Remove unnecessary check that
10889 ``command->type'' is set_cmd.
10890
10891 * valprint.c (set_input_radix): Use input_radix.
10892 (set_output_radix): Use output_radix.
10893 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10894 isn't reverted.
10895
10896 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10897
10898 * value.h (struct value): Delete field ``substring_addr''. Change
10899 aligner fields to force_doublest_align, force_longest_align,
10900 force_core_addr_align and force_pointer_aligh.
10901
10902 * value.h (struct value): Fix typo in above change.
10903
10904 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10905
10906 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10907 to fix internal_error from ``maintenance print architecture''.
10908
10909 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10910
10911 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10912 for gcc versions after gcc-2.8.1.
10913
10914 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10915
10916 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10917 for method resolution. Restore adjustment of ``this'' pointer after
10918 calling value_struct_elt, which was accidentally removed during the
10919 HP merge.
10920
10921 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10922
10923 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10924 value_of_register.
10925 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10926 get_saved_register.
10927 * value.h (value_of_register): Update.
10928
10929 2002-03-14 Richard Henderson <rth@redhat.com>
10930
10931 * configure.in: Detect declaration for canonicalize_file_name.
10932 * utils.c (canonicalize_file_name): Declare, if needed.
10933 (gdb_realpath): Prefer realpath if available and usable.
10934 * config.in, configure: Rebuild.
10935
10936 2002-03-14 Richard Henderson <rth@redhat.com>
10937
10938 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10939 a constant array bound.
10940
10941 * MAINTAINERS: Add myself to write-after-approval.
10942
10943 2002-03-14 Michael Snyder <msnyder@redhat.com>
10944
10945 * symfile.c (syms_from_objfile): Return immediately if no syms.
10946 (symbol_file_add): Return immediately if no syms.
10947 (find_sym_fns): Return immediately if no syms.
10948
10949 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10950
10951 * gdbserver/remote-util.c (remote_open): Print remote-side's
10952 IP address when remote debugging over the network.
10953
10954 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10955
10956 * config/sparc/fbsd.mh: Fix copyright.
10957 * config/sparc/fbsd.mt: Likewise.
10958
10959 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10960
10961 * MAINTAINERS: Fix typo in name of gdb warnings option.
10962 (x86-64): Fix formating so that this can be parsed by awk.
10963
10964 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10965
10966 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10967 * defs.h: Include "gdb/signals.h".
10968 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10969
10970 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10971
10972 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10973 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10974 from x86-64-tdep.h
10975
10976 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10977 Don Howard <dhoward@redhat.com>
10978
10979 * mips-tdep.c (ST0_FR): Define.
10980 (mips2_fp_compat): New function, temporarily disabled.
10981 (mips_read_fp_register_single): New function.
10982 (mips_read_fp_register_double): New function.
10983 (mips_print_register): Use them.
10984 (do_fp_register_row): Likewise.
10985
10986 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10987
10988 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10989 approval''.
10990
10991 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10992
10993 * stabsread.c (read_member_functions): Fix is_stub test for
10994 static member functions, improve comment.
10995
10996 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10997
10998 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10999 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11000 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11001 commands that set boolean values.
11002 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11003 (arm_rdi_resume): Always initialize PC.
11004 (arm_rdi_open): Don't use rslt as a boolean.
11005 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11006 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11007 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11008 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11009
11010 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11011
11012 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11013 * configure: Rebuilt.
11014
11015 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11016
11017 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11018 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11019
11020 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11021
11022 * cli/cli-decode.c (set_cmd_completer): New function.
11023 * command.h (set_cmd_completer): Declare.
11024 * cli/cli-decode.h (set_cmd_completer): Ditto.
11025
11026 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11027 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11028 * win32-nat.c (_initialize_inftarg): Ditto.
11029 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11030 * proc-api.c (_initialize_proc_api): Ditto.
11031 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11032 * source.c (_initialize_source): Ditto.
11033 * exec.c (_initialize_exec): Ditto.
11034 * solib.c (_initialize_solib): Ditto.
11035 * top.c (init_main): Ditto.
11036 * tracepoint.c (_initialize_tracepoint): Ditto.
11037 * symfile.c (_initialize_symfile): Ditto.
11038 * printcmd.c (_initialize_printcmd): Ditto.
11039 * infcmd.c (_initialize_infcmd): Ditto.
11040 * corefile.c (_initialize_core): Ditto.
11041
11042 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11043
11044 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11045
11046 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11047
11048 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11049
11050 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11051
11052 * NEWS: Update headings, 5.2 has branched.
11053
11054 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11055
11056 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11057 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11058 (register_addr, REGISTER_RAW_SIZE): Likewise.
11059 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11060 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11061
11062 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11063
11064 * MAINTAINERS (x86-64): Add myself.
11065 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11066 changed value_ptr -> struct value *
11067
11068 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11069
11070 * configure.host (sparc64-*-freebsd): Add.
11071 * configure.tgt: Likewise.
11072 * config/sparc/fbsd.mh: New file.
11073 * config/sparc/fbsd.mt: Likewise.
11074 * config/sparc/nm-fbsd.h: Likewise.
11075 * config/sparc/tm-fbsd.h: Likewise.
11076
11077 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11078
11079 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11080 regformats/reg-s390x.dat.
11081
11082 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11083
11084 * utils.c: Add FIXME explaining true/false problem.
11085
11086 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11087
11088 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11089
11090 2002-02-28 Michael Chastain <mec@shout.net>
11091
11092 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11093
11094 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11095
11096 * gdbserver/linux-s390-low.c: New file.
11097 * regformats/reg-s390.dat: New file.
11098 * regformats/reg-s390x.dat: New file.
11099 * gdbserver/configure.srv: Add S/390.
11100 * gdbserver/Makefile.in: Add S/390.
11101 * configure.tgt: Enable gdbserver for S/390.
11102
11103 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11104
11105 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11106 first line of the doc string for "info dos", except at the end of
11107 the sentence, since the short help stops at the first period.
11108
11109 2002-02-28 Jason Merrill <jason@redhat.com>
11110
11111 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11112
11113 2002-02-27 Fred Fish <fnf@redhat.com>
11114
11115 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11116 comment (dumy -> dummy).
11117
11118 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11119
11120 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11121
11122 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11123
11124 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11125
11126 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11127
11128 * gdbserver/acconfig.h: New file.
11129 * gdbserver/i387-fp.c: New file.
11130 * gdbserver/i387-fp.h: New file.
11131 * gdbserver/linux-x86-64.c: New file.
11132 * regformats/reg-x86-64.dat: New file.
11133 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11134 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11135 * gdbserver/configure.in: Add support for regsets.
11136 * gdbserver/config.in: Regenerate.
11137 * gdbserver/configure: Regenerate.
11138 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11139 * gdbserver/linux-low.h: New file.
11140 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11141 for regsets.
11142 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11143 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11144 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11145 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11146 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11147 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11148 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11149 "i387-fp.h". Add PTRACE_GETREGS and friends.
11150 * gdbserver/regcache.c (supply_register): New function.
11151 (supply_register_by_name): New function.
11152 (collect_register): New function.
11153 (collect_register_by_name): New function.
11154
11155 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11158 (config.status): Add configure.srv dependency.
11159 (server_h): Add config.h dependency.
11160
11161 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11162
11163 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11164 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11165 * gdbserver/configure.srv: Change i386-*-linux* to use
11166 reg-i386-linux.o.
11167
11168 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11169
11170 * x86-64-tdep.c: Re-indent. Update copyright date.
11171
11172 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11173
11174 From Michal Ludvig <mludvig@suse.cz>:
11175 * x86-64-tdep.c (value.h): Delete.
11176 (gdb_assert.h): Include.
11177 (x86_64_register_convert_to_virtual,
11178 x86_64_register_convert_to_raw ): Add check which lets only
11179 floating-point values to be converted.
11180 (value_push): Delete.
11181 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11182 (i386_gdbarch_init): Number of register_bytes fixed.
11183
11184 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11185
11186 * MAINTAINERS: Add x86-64 target.
11187
11188 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11189
11190 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11191 * osfsolib.c (solib_map_sections): Ditto.
11192 * irix5-nat.c (solib_map_sections): Ditto.
11193 * corelow.c (gdb_check_format): Ditto.
11194 * symfile.c (symfile_bfd_open): Ditto.
11195 * solib.c (solib_map_sections): Ditto.
11196 Fix PR gdb/354.
11197
11198 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11199
11200 * remote.c (_initialize_remote): By default, disable ``e'' and
11201 ``E'' step out-of-range packets.
11202
11203 2002-02-26 Andreas Schwab <schwab@suse.de>
11204
11205 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11206 m68k_linux_frame_saved_pc.
11207 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11208 in_sigtramp.
11209 (SIGCONTEXT_PC_OFFSET): Remove.
11210 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11211 m68k_linux_sigtramp_saved_pc): New functions.
11212 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11213 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11214 (UCONTEXT_PC_OFFSET): Define.
11215 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11216 non-RT and RT signal trampolines.
11217
11218 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11219
11220 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11221 (TARGET_NBPG, STACK_END_ADDR): Delete
11222 (VARIABLES_INSIDE_BLOCK): Delete.
11223
11224 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11225
11226 * utils.c (perror_with_name): Make string parameter constant.
11227 (print_sys_errmsg): Ditto.
11228 (query): Ditto.
11229 * defs.h (perror_with_name): Update.
11230 (print_sys_errmsg): Update.
11231 (query): Update.
11232
11233 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11234
11235 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11236 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11237
11238 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11239
11240 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11241 if it already matches the current architecture from the exec file.
11242 Include arch-utils.h for gdbarch_info_init prototype.
11243 * Makefile.in (rs6000-nat.o): Update dependencies.
11244
11245 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11246
11247 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11248 list of exported variables.
11249
11250 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11251
11252 * gdbserver/configure.srv: New file.
11253 * gdbserver/configure.in: Use configure.srv instead
11254 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11255 from it.
11256 * gdbserver/configure: Regenerated.
11257 * gdbserver/terminal.h: New file.
11258 * gdbserver/Makefile.in: Update for configure changes. Remove
11259 more unneeded include paths.
11260
11261 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11262
11263 From wiz at danbala:
11264 * config/sparc/tm-sp64.h: Fix grammar and typos.
11265 Fix PR gdb/287.
11266
11267 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11268
11269 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11270 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11271 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11272 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11273 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11274 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11275 * s390-tdep.c: Ditto.
11276 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11277 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11278 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11279 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11280 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11281 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11282 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11283 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11284 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11285 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11286 Fix PR gdb/378.
11287
11288 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11289
11290 * lin-thread.c: Delete file.
11291 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11292 to gdb_proc_service.h.
11293 * configure: Re-generate.
11294
11295 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11296 * serial.c (serial_open): Delete check for "ocd".
11297 Fix PR gdb/349.
11298
11299 * Makefile.in (linux-thread.o): Delete target.
11300 * linux-thread.c: Delete file.
11301
11302 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11303 renamed SH files to be consistent.
11304
11305 * symtab.c (sort_search_symbols): Use xfree.
11306
11307 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11308
11309 * arm-linux-tdep.c (arm_linux_init_abi): Register
11310 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11311 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11312 definition with undef, since we don't want the sysvr4 definition.
11313 (SKIP_TRAMPOLINE_CODE): Likewise.
11314
11315 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11316
11317 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11318
11319 * configure.in: (AC_CHECK_FUNCS) Added test for
11320 canonicalize_file_name Regenerated.
11321 * config.in, configure: Regenerated.
11322 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11323 defined use canonicalize_file_name.
11324
11325 2002-02-23 Michael Chastain <mec@shout.net>
11326
11327 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11328
11329 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11330
11331 * README: Remove references to cygnus.com.
11332 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11333 dot com'' form. Remove references to cygnus.com and sourceware.
11334
11335 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11336
11337 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11338 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11339 1003.1-2001 no longer allows "head -1".
11340 * gdb/Makefile.in (version.c): Likewise.
11341 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11342 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11343 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11344
11345 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11346
11347 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11348 * command.h (cmd_cfunc_eq): Declare.
11349 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11350
11351 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11352 ``struct cmd_list_element *''.
11353 * cli/cli-cmds.c (is_complete_command): Update. Use
11354 cmd_cfunc_eq.
11355 * top.c (execute_command): Pass the command to
11356 is_complete_command.
11357 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11358
11359 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11360
11361 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11362 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11363 architecture defines.
11364 * s390-tdep.c (s390_gdbarch_init): Likewise.
11365
11366 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11367
11368 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11369 (arm_linux_push_arguments): Likewise.
11370 (arm_linux_init_abi): Register them. Also register linux-specific
11371 call_dummy_words.
11372 (find_minsym_and_objfile): Use strcmp, not STREQ.
11373 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11374 (arm_linux_call_dummy_words): Delete declaration.
11375 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11376 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11377 declarations.
11378 (LOWEST_PC): Delete.
11379
11380 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11381
11382 * maint.c (print_section_info): Do not prepend `0x' to filepos
11383 output, it will be handled by local_hex_string_custom.
11384
11385 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11386
11387 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11388 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11389 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11390
11391 2002-02-22 Jim Blandy <jimb@redhat.com>
11392
11393 Indicate that the bcache functions don't change the strings
11394 they're passed.
11395 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11396 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11397
11398 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11399
11400 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11401
11402 2002-02-21 Christopher Faylor <cgf@redhat.com>
11403
11404 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11405 find the complete path to a loaded DLL.
11406
11407 2002-02-21 Fred Fish <fnf@redhat.com>
11408
11409 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11410 that marks the end of the range of a function, enter a line number
11411 entry that has a line number of zero and a PC offset that matches
11412 the end of the function. This starts a range of PC's for which no
11413 line number information is known.
11414 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11415 PC's for which no line number info is found (line number is zero)
11416 then we didn't find any valid line information.
11417 * symtab.h: Document use of zero line number entry.
11418
11419 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11420
11421 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11422 (have_ptrace_getvrregs): Define for run time checks.
11423 (gdb_vrregset_t): New type for Altivec register handling.
11424 (fetch_register, store_register): Fetch/store altivec register
11425 when needed.
11426 (fetch_altivec_register, store_altivec_register): New functions.
11427 (supply_vrregset, fill_vrregset): New functions.
11428 (fetch_altivec_registers, store_altivec_registers): New functions.
11429 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11430 registers as well.
11431
11432 2002-02-21 Jiri Smid <smid@suse.cz>
11433
11434 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11435
11436 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11437
11438 * Makefile.in (armnbsd-nat.o): Update dependencies.
11439 * armnbsd-nat.c (supply_gregset): New function. Common code to
11440 supply the integer register set.
11441 (supply_fparegset): New function. Similar for FPA registers.
11442 (fetch_regs, fetch_fp_regs): Use them.
11443 (fetch_core_registers): Likewise.
11444 (fetch_elfcore_registers): New function.
11445 (arm_netbsd_elfcore_fns): New core-file type specification.
11446 (_initialize_arm_netbsd_nat): Register it.
11447
11448 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11449
11450 * armnbsd-nat.c: Include gdbcore.h.
11451 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11452 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11453 'void' to declaration, to shut up ARI.
11454 (fetch_core_registers): Make static. Rewrite using supply_register.
11455 (arm_netbsd_core_fns): New core-file type specification.
11456 (_initialize_arm_netbsd_nat): New function.
11457
11458 2002-02-21 Christopher Faylor <cgf@redhat.com>
11459
11460 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11461 value.
11462
11463 2002-02-20 Christopher Faylor <cgf@redhat.com>
11464
11465 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11466 fails.
11467
11468 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11469
11470 * jv-exp.y (parse_number): Change type of implicit longs
11471 to builtin_type_uint64.
11472
11473 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11474
11475 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11476 to be an integer instead of a `union wait'.
11477
11478 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11479
11480 * mips-linux-nat.c: Call the operating system GNU/Linux.
11481 * mips-linux-tdep.c: Likewise.
11482 * mips-tdep.c: Likewise.
11483
11484 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11485
11486 Fix PR gdb/265.
11487 * jv-exp.y (parse_number): Handle 64-bit integers.
11488
11489 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11490
11491 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11492 AC_STDC_HEADERS to AC_HEADER_STDC.
11493 * gdbserver/configure: Regenerated.
11494
11495 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11496
11497 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11498 is defined.
11499 * sparc-tdep.c (get_longjmp_target): Likewise.
11500
11501 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11502
11503 * News: Add news about ARM and Multi-arch. Mention the new target
11504 arm*-*-netbsd*.
11505
11506 2002-02-19 Jim Blandy <jimb@redhat.com>
11507
11508 * stabsread.c (error_type_complaint): Improve error message.
11509
11510 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11511
11512 * gdbserver/README: Update documentation.
11513 * gdbserver/configure.in: Update configury to match documentation.
11514 * gdbserver/Makefile.in: Likewise.
11515 * gdbserver/configure: Regenerated.
11516 * gdbserver/aclocal.m4: New file, generated by aclocal.
11517 * gdbserver/config.in: New file, generated by autoheader.
11518
11519 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11520
11521 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11522 armnbsd-nat.c.
11523
11524 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11525
11526 * arm-tdep.h (enum arm_float_model): New enum.
11527 (struct gdbarch_tdep): Add fp_model.
11528 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11529 up floating-point conversions until we know the floating-point model
11530 in use by the inferior. Don't complain about being unable to
11531 determine the ABI of the inferior when we don't have one.
11532 (arm_extract_return_value): Support different floating-point models.
11533 (arm_store_return_value): Likewise.
11534 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11535 ARM_FLOAT_SOFT.
11536 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11537
11538 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11539
11540 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11541 of ``current_gdbarch''.
11542
11543 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11544
11545 * armnbsd-nat.c : ANSIfy all function declarations.
11546 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11547 (fetch_inferior_registers): Re-implement in terms of above.
11548 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11549 (store_inferior_registers): Re-implement in terms of above.
11550
11551 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11552
11553 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11554 kernel.
11555 * arm-linux-tdep.c: Likewise.
11556 * config/arm/tm-linux.h: Likewise.
11557
11558 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11559
11560 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11561 * config/arm/nbsd.mt (TM_FILE): Delete.
11562 * config/arm/tm-nbsd.h: Delete.
11563
11564 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11565
11566 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11567 Initialize CALL_DUMMY_LENGTH.
11568
11569 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11570
11571 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11572 function.
11573 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11574 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11575 defines one thing and that is incorrect for this port.
11576 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11577
11578 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11579
11580 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11581
11582 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11583
11584 * win32-nat.c (display_selector): New function. Displays information
11585 about the information returned by GetThreadSelectorEntry API function.
11586 (display_selectors): New function. Displays the infomation of
11587 the selector given as argument, or of CS, DS ans FS selectors
11588 if no argument is given.
11589 ( _initialize_inftarg): Add "w32" as info prefix command.
11590 Add "info w32 selector" as command calling display_selectors.
11591
11592 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11593
11594 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11595 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11596 if not defined.
11597
11598 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11599
11600 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11601
11602 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11603
11604 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11605 (arm_fix_call_dummy): Call it.
11606 (arm_call_dummy_breakpoint_offset): Delete.
11607 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11608 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11609
11610 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11611
11612 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11613 Default to func_frame_chain_valid.
11614 * gdbarch.h, gdbarch.c: Re-generate.
11615 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11616
11617 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11618
11619 * ppc-linux-nat.c: Update copyright.
11620 (fetch_register, store_register): Add tid parameter, don't compute
11621 tid here.
11622 (fetch_ppc_registers, store_ppc_registers): Add tid
11623 parameter. Pass it along to callees.
11624 (fetch_inferior_registers, store_inferior_registers): Compute tid
11625 here, and pass it to calleed functions.
11626 (fill_gregset, supply_fpregset): Clean up formatting.
11627
11628 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11629
11630 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11631 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11632
11633 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11634
11635 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11636 * gdbarch.c gdbarch.h: Regenerate.
11637 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11638 function.
11639 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11640 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11641 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11642
11643 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11644 * arm-tdep.c (arm_get_longjmp_target): New function.
11645 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11646 this to a positive value register arm_get_longjmp_target as the
11647 longjmp handler.
11648 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11649 (arm_linux_init_abi): Set up longjmp description in tdep.
11650 * armnbsd-nat.c (get_longjmp_target): Delete.
11651 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11652 description in tdep.
11653 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11654 (get_longjmp_target): Delete declaration.
11655 (GET_LONGJMP_TARGET): Delete.
11656 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11657 (GET_LONGJMP_TARGET): Delete.
11658
11659 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11660
11661 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11662 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11663 of ``current_gdbarch''.
11664
11665 2002-02-17 Tom Tromey <tromey@redhat.com>
11666
11667 * cli/cli-cmds.c (compare_strings): New function.
11668 (complete_command): Only print each unique item once.
11669 * completer.h (complete_line): Declare.
11670 * completer.c (complete_line): New function.
11671 (line_completion_function): Use it.
11672
11673 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11674
11675 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11676 * gdbarch.h, gdbarch.c: Re-generate.
11677
11678 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11679
11680 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11681
11682 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11683
11684 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11685 * valops.c (value_arg_coerce): Don't take the address of a reference
11686 to convert an argument to a reference.
11687
11688 2002-02-15 Christopher Faylor <cgf@redhat.com>
11689
11690 * win32-nat.c (get_image_name): New function.
11691 (handle_load_dll): Use get_image_name function.
11692 (get_child_debug_event): Avoid registering debug events until possibly
11693 execed process is started.
11694 (child_create_inferior): Allow invocation via shell so that command
11695 line redirection, etc. works ok.
11696 (_initialize_inftarg): Add new command: "set shell" to control whether
11697 a shell is used to start a process.
11698
11699 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11700
11701 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11702 instead of find_register_by_number.
11703 (cannot_store_register): Likewise.
11704
11705 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11706
11707 * dwarf2read.c: Replace fprintf (stderr, ...) by
11708 fprintf_unfiltered (gdb_stderr, ...).
11709
11710 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11711
11712 * gdbserver/gdbserver.1: Document --attach.
11713
11714 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11715
11716 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11717 descriptions.
11718 * arm-tdep.c (arm_default_arm_le_breakpoint)
11719 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11720 (arm_default_thumb_be_breakpoint): New. Initialize them from
11721 traditional breakpoint defines.
11722 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11723 (arm_gdbarch_init): Initialize new breakpoint variables.
11724 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11725 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11726 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11727 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11728 code out to ...
11729 (arm_netbsd_init_abi_common): ... here; new function.
11730 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11731 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11732 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11733 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11734
11735 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11736
11737 * arm-tdep.h (enum arm_abi): New enum.
11738 (struct gdbarch_tdep): New structure.
11739 (LOWEST_PC): Provide a default.
11740 (arm_gdbarch_register_os_abi): Declare new function.
11741 * arm-tdep.c (arm_abi_names): New array.
11742 (process_note_abi_tag_sections): New function.
11743 (get_elfosabi): New function.
11744 (arm_gdbarch_register_os_abi): New function.
11745 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11746 support for that ABI has been built in, then call the appropriate
11747 configuration routine. Use gdbarch_num_regs() to get the number
11748 of registers.
11749 (arm_dump_tdep): New function.
11750 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11751 place-holder functions.
11752 (_initialize_arm_tdep): Register them.
11753 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11754
11755 * armnbsd-tdep.c: New file.
11756 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11757 * config/arm/nbsd.mt (TDEPFILES): Add it.
11758 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11759
11760 * armnbsd-nat.c: Include regcache.h.
11761 * Makefile.in (armnbsd-nat.o): Update dependency list.
11762
11763 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11764
11765 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11766
11767 * gdbserver/Makefile.in: Fix typos in target rules.
11768
11769 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11770
11771 Fix part of PR gdb/267.
11772 * linespec.c (find_methods): Handle constructors specially for now.
11773
11774 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11775
11776 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11777 handling.
11778 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11779 standard_coerce_float_to_double().
11780
11781 2002-02-14 Christopher Faylor <cgf@redhat.com>
11782
11783 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11784 GDBINIT_FILENAME.
11785
11786 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11787
11788 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11789 find_variant_by_name, because it confuses the multiarch
11790 framework. Return NULL if there isn't an architecture with the
11791 user supplied name, instead of forcing a different one without
11792 recording the change with the multiarch machinery.
11793 (find_variant_by_name): Delete.
11794
11795 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11796
11797 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11798 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11799
11800 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11801
11802 * stack.c (print_frame_info_base): When calling
11803 print_frame_info_listing_hook, set current_source_symtab.
11804
11805 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11806
11807 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11808 and remove unused $(INCLUDE_DIR).
11809 Add regcache.c to OBS.
11810 Add generated register protocol files to clean target.
11811 Update dependencies for new objects, obsolete old target code.
11812
11813 * gdbserver/linux-low.c: Remove all platform-specific code to
11814 new files. Remove various dead code. Update to use regcache
11815 functionality.
11816 * gdbserver/remote-utils.c (fromhex): Add return statement
11817 to quiet warning.
11818 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11819 constant.
11820 (input_interrupt): Add integer parameter to match prototype
11821 of a signal handler.
11822 (outreg): Use register_data ().
11823 (prepare_resume_reply): Use gdbserver_expedite_regs.
11824 * gdbserver/server.c (main): Dynamically allocate own_buf because
11825 PBUFSIZ is no longer constant. Use registers_to_string () and
11826 registers_from_string ().
11827 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11828 for error (), fatal (), and warning (). Update definition of
11829 PBUFSIZ to use regcache functionality. Add include guard.
11830 * gdbserver/utils.c (fatal): Add missing ``const''.
11831 (warning): New function.
11832
11833 * regformats/regdat.sh: Include "regcache.h" in generated files.
11834 Provide init_registers () function.
11835 * regformats/regdef.h: Add prototype for set_register_cache ().
11836 Add include guard.
11837
11838 * gdbserver/linux-arm-low.c: New file.
11839 * gdbserver/linux-i386-low.c: New file.
11840 * gdbserver/linux-ia64-low.c: New file.
11841 * gdbserver/linux-m68k-low.c: New file.
11842 * gdbserver/linux-mips-low.c: New file.
11843 * gdbserver/linux-ppc-low.c: New file.
11844 * gdbserver/linux-sh-low.c: New file.
11845
11846 * gdbserver/regcache.c: New file.
11847 * gdbserver/regcache.h: New file.
11848
11849 * gdbserver/low-linux.c: Removed obsolete file.
11850
11851 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11852
11853 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11854 * config/i386/linux.mt: Likewise.
11855 * config/ia64/linux.mt: Likewise.
11856 * config/m68k/linux.mh: Likewise.
11857 * config/powerpc/linux.mh: Likewise.
11858 * config/mips/linux.mt: Likewise.
11859
11860 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11861
11862 * config/i386/i386lynx.mh: Mark gdbserver variables
11863 as (currently) obsolete for this target.
11864 * config/i386/nbsd.mt: Likewise.
11865 * config/i386/nbsdelf.mt: Likewise.
11866 * config/m32r/m32r.mt: Likewise.
11867 * config/m68k/m68klynx.mh: Likewise.
11868 * config/m68k/nbsd.mt: Likewise.
11869 * config/m68k/sun3os4.mh: Likewise.
11870 * config/mips/vr5000.mt: Likewise.
11871 * config/ns32k/nbsd.mt: Likewise.
11872 * config/pa/hppabsd.mh: Likewise.
11873 * config/pa/hppaosf.mh: Likewise.
11874 * config/powerpc/nbsd.mt: Likewise.
11875 * config/rs6000/rs6000lynx.mh: Likewise.
11876 * config/s390/s390.mt: Likewise.
11877 * config/s390/s390x.mt: Likewise.
11878 * config/sparc/sparclynx.mh: Likewise.
11879 * config/sparc/sun4os4.mh: Likewise.
11880 * config/i386/x86-64linux.mt: Likewise.
11881 * config/sparc/linux.mh: Likewise.
11882
11883 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * configure.tgt: Configure gdbserver only for known working
11886 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11887 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11888 SUBDIRS if it is configured. Update comment for ${nativefile}.
11889 * configure: Regenerated.
11890
11891 2002-02-13 Michael Snyder <msnyder@redhat.com>
11892
11893 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11894
11895 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11896 (default_gcore_mach): Just return 0, work around a problem in bfd.
11897 (default_gcore_target): OK to return NULL if exec_bfd is null.
11898 (make_mem_sec): Use a cast, avoid a warning.
11899
11900 * procfs.c (find_memory_regions_callback): Use a cast instead of
11901 calling host_pointer_to_address (which complains if
11902 sizeof (host pointer) != sizeof (target pointer)).
11903 (procfs_make_note_section): Avoid overflow in psargs string.
11904
11905 * procfs.c (procfs_make_note_section): Make the default
11906 implementation return an error.
11907
11908 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11909
11910 * procfs.c (procfs_make_note_section): Provide a default definition
11911 (for alpha-dec-osf4.0f). Fix typos.
11912
11913 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11914
11915 * linux-proc.c: Add include of regcache.h.
11916 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11917
11918 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11919
11920 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11921 * memattr.c (create_mem_region): Disallow useless empty region.
11922 Regions are half-open intervals, so allow [A..B) [B..C) as
11923 non-overlapping.
11924
11925 2002-02-13 Michael Chastain <mec@shout.net>
11926
11927 * defs.h: Kill CONST_PTR.
11928 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11929 * c-lang.c (c_builtin_types): Likewise.
11930 * ch-lang.c (ch_builtin_types): Likewise.
11931 * f-lang.c (f_builtin_types): Likewise.
11932 * language.c (unknown_builtin_types): Likewise.
11933 * m2-lang.c (m2_builtin_types): Likewise.
11934 * p-lang.c (pascal_builtin_types): Likewise.
11935 * scm-lang.c (c_builtin_types): Likewise.
11936
11937 2002-02-13 Keith Seitz <keiths@redhat.com>
11938
11939 * arm-tdep.h (arm_get_next_pc): Add declaration.
11940
11941 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11942
11943 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11944 with other related struct-returning functions.
11945 (arm_extract_struct_value_address): New function.
11946 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11947 initialize float_format, double_format and long_double_format as
11948 appropriate to the endianness of the target.
11949 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11950 (arm_use_struct_convention): Delete declaration.
11951 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11952
11953 2002-02-13 Keith Seitz <keiths@redhat.com>
11954
11955 * defs.h (core_addr_to_string_nz): New function.
11956
11957 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11958
11959 Apply missing bits of 2002-01-15 patch.
11960 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11961 (fill_fpregset): Use i387_fill_fsave.
11962
11963 2002-02-12 Keith Seitz <keiths@redhat.com>
11964
11965 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11966 (core_addr_to_string_nz): New function.
11967
11968 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11969
11970 * arm-linux-nat.c: Really include arm-tdep.h.
11971 * config/arm/tm-linux.h (struct type, struct value): Declare.
11972
11973 2002-02-11 Michael Snyder <msnyder@redhat.com>
11974
11975 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11976 (gcore section): Ifdef for Solaris and Unixware only.
11977 (procfs_do_thread_registers): Unixware needs one lwpstatus
11978 per thread (not one prstatus or pstatus).
11979 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11980 not over all gdb threads. For unixware, call elfcore_write_pstatus
11981 once before iterating over threads.
11982
11983 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11984
11985 * arm-tdep.h: New file.
11986 * arm-tdep.c: Include arm-tdep.h.
11987 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11988 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11989 (arm_print_float_info, arm_register_type, convert_to_extended)
11990 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11991 (arm_extract_return_value, arm_register_name): Make static.
11992 (arm_software_single_step): Similarly. Fix types in declaration.
11993 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11994 (arm_store_return_value, arm_store_struct_return): New functions.
11995 (arm_gdbarch_init): Register the above functions. Also register
11996 call_dummy_start_offset, sizeof_call_dummy_words,
11997 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11998 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11999 max_register_virtual_size, register_size. Set up
12000 prologue_cache.saved_regs here, rather than ...
12001 (_initialize_arm_tdep): ... here.
12002 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12003 declarations.
12004 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12005 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12006 (arm_print_float_info, arm_register_type, convert_to_extended)
12007 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12008 (arm_extract_return_value, arm_register_name): Delete declarations.
12009 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12010 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12011 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12012 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12013 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12014 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12015 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12016 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12017 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12018 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12019 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12020 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12021 interface.
12022 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12023 * remote-rdi.c remote-rdp.c: Likewise.
12024 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12025 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12026 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12027 definition.
12028
12029 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12030 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12031 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12032 from non-ARM_ prefixed definitions.
12033 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12034 all uses of above.
12035 * remote-rdi.c remote-rdp.c: Likewise.
12036 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12037
12038 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12039
12040 * arm-tdep.c (arm_frameless_function_invocation)
12041 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12042 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12043 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12044 (arm_pop_frame, arm_get_next_pc): Make static.
12045 (arm_gdbarch_init): Register above in gdbarch structure.
12046 (arm_read_fp): Renamed from arm_target_read_fp.
12047 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12048 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12049 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12050 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12051 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12052 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12053 (arm_pc_is_thumb_dummy): Delete declarations.
12054 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12055 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12056 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12057 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12058
12059 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12060
12061 * symtab.c (compare_search_syms): New function.
12062 (sort_search_symbols): New function.
12063 (search_symbols): Sort symbols after searching rather than
12064 before.
12065
12066 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12067
12068 * NEWS: Linux -> GNU/Linux.
12069
12070 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12071
12072 * gdbarch.sh: For for level one methods, disallow a definition
12073 when partially multi-arched. Add comments explaining rationale.
12074 * gdbarch.h: Re-generate.
12075
12076 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12077
12078 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12079 multi-arch partial.
12080
12081 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12082
12083 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12084 field. Use diff -u.
12085 * gdbarch.c: Re-generate.
12086
12087 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12088
12089 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12090 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12091 partial.
12092
12093 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12094
12095 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12096 multi-arch partial.
12097 (PUSH_ARGUMENTS): Switch to using predefault.
12098 * gdbarch.c: Regenerate.
12099
12100 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12101
12102 * valops.c (PUSH_ARGUMENTS): Delete definition.
12103 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12104 partial. Default to default_push_arguments.
12105 * gdbarch.h, gdbarch.c: Regenerate.
12106
12107 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12108
12109 * defs.h (throw_exception): Rename return_to_top_level. Update
12110 comments.
12111 * utils.c (error_stream, internal_verror, quit): Ditto.
12112 * top.c (throw_exception, catcher): Ditto.
12113 * sparclet-rom.c (sparclet_load): Ditto.
12114 * remote.c (interrupt_query, minitelnet): Ditto.
12115 * remote-sds.c (interrupt_query): Ditto.
12116 * remote-mips.c (mips_error, mips_kill): Ditto.
12117 * ocd.c (interrupt_query): Ditto.
12118 * monitor.c (monitor_interrupt_query): Ditto.
12119 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12120 * target.h: Update comment.
12121
12122 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12123
12124 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12125
12126 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12127 default_double_format.
12128 * gdbarch.h, gdbarch.c: Re-generate.
12129 * findvar.c (floatformat_unknown): Delete variable definition.
12130 * doublest.h (floatformat_unknown): Delete variable declaration.
12131
12132 2002-02-09 Jim Blandy <jimb@redhat.com>
12133
12134 * stabsread.c (read_type): Add code to parse Sun's syntax for
12135 prototyped function types.
12136
12137 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12138
12139 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12140 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12141
12142 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12143
12144 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12145 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12146 now _initialize_xcoffsolib gets called again and overrides the
12147 commands from solib.c in a native configuration.
12148
12149 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12150
12151 * doublest.c (store_typed_floating): Don't try to return a value.
12152 Fixes PR gdb/290.
12153
12154 2002-02-08 Jim Blandy <jimb@redhat.com>
12155
12156 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12157 is prototyped and has no arguments, print its argument list as
12158 `(void)'.
12159
12160 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12161
12162 * MAINTAINERS (write-after-approval): Add myself.
12163 (paper-trail): I've escaped!
12164
12165 2002-02-08 Christopher Faylor <cgf@redhat.com>
12166
12167 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12168 changes.
12169 (_initialize_check_for_gdb_ini): Ditto.
12170
12171 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12172
12173 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12174 xaprintf -> xasprintf.
12175
12176 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12177
12178 * win32-nat.c: Remove use of printf and sprintf functions.
12179
12180 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12181
12182 * arm-tdep.c (arm_frame_chain_valid): Make static.
12183 (arm_push_arguments): Likewise.
12184 (arm_gdbarch_init): New function.
12185 (_initialize_arm_tdep): Call it.
12186 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12187 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12188 (FRAME_CHAIN_VALID): Delete.
12189 (arm_frame_chain_valid): Delete declaration.
12190 (PUSH_ARGUMENTS): Delete.
12191 (arm_push_arguments): Delete declaration.
12192 (CALL_DUMMY_P): Delete.
12193
12194 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12195 Corinna Vinschen <vinschen@redhat.com>
12196
12197 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12198 on builtin float types.
12199
12200 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12201
12202 * utils.c: Include <curses.h> before "bfd.h".
12203 * tui/tui-hooks.c: Likewise.
12204 * tui/tui.c: Likewise.
12205 * tui/tuiCommand.c: Likewise.
12206 * tui/tuiData.c: Likewise.
12207 * tui/tuiDataWin.c: Likewise.
12208 * tui/tuiDisassem.c: Likewise.
12209 * tui/tuiGeneralWin.c: Likewise.
12210 * tui/tuiIO.c: Likewise.
12211 * tui/tuiLayout.c: Likewise.
12212 * tui/tuiRegs.c: Likewise.
12213 * tui/tuiSource.c: Likewise.
12214 * tui/tuiSourceWin.c: Likewise.
12215 * tui/tuiStack.c: Likewise.
12216 * tui/tuiWin.c: Likewise.
12217
12218 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12219
12220 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12221 to include space for pseudoregs as well. Update loops accordingly.
12222 (sh_fp_frame_init_saved_regs): Ditto.
12223 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12224
12225 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12226
12227 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12228 Add Richard Earnshaw to Arm maintainers.
12229
12230 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12231
12232 * defs.h (warning_begin): Delete declaration.
12233
12234 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12235 Delete macro.
12236
12237 2002-02-07 Michael Snyder <msnyder@redhat.com>
12238
12239 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12240 Logic bug, remove misplaced else.
12241
12242 2002-02-07 Klee Dienes <klee@apple.com>
12243
12244 * fork-inferior.c (fork_inferior): Add '!' to the list of
12245 characters that need to be quoted when building a string for the
12246 shell. Quote '!' specifically with a backslash, since CSH chokes
12247 when trying to evaluate "str!str".
12248
12249 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12250
12251 * rdi-share/host.h: Only provide a typedef for bool if it is not
12252 defined.
12253
12254 2002-02-04 Michael Snyder <msnyder@redhat.com>
12255
12256 * breakpoint.h (enum bptype): Add new overlay event bp type.
12257 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12258
12259 * breakpoint.c (create_internal_breakpoint): New function.
12260 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12261 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12262 (create_thread_event_breakpoint): Ditto.
12263 (create_solib_event_breakpoint): Ditto.
12264 (create_overlay_event_breakpoint): New function.
12265 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12266 (update_breakpoints_after_exec): Delete and re-initialize
12267 overlay event breakpoints after an exec. Add FIXME comment
12268 about longjmp breakpoint.
12269 (print_it_typical): Ignore overlay event breakpoints.
12270 (print_one_breakpoint): Ditto.
12271 (mention): Ditto.
12272 (bpstat_what): Do not stop for overlay event breakpoints.
12273 (delete_breakpoint): Don't delete overlay event breakpoints.
12274 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12275 (breakpoint_re_set): Re-create overlay event breakpoint.
12276
12277 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12278 (overlay_manual_command): Disable overlay breakpoints.
12279 (overlay_off_command): Disable overlay breakpoints.
12280
12281 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12282
12283 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12284 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12285 to here from config/tm-arm.h.
12286 (coff_sym_is_thumb): Make static.
12287 (arm_elf_make_msymbol_special): New function.
12288 (arm_coff_make_msymbol_special): New function.
12289 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12290 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12291 (coff_sym_is_thumb): Delete declaration.
12292 (arm_elf_make_msymbol_special): Declare.
12293 (arm_coff_make_msymbol_special): Declare.
12294 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12295 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12296
12297 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12298
12299 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12300
12301 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12302
12303 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12304 * gdbarch.c gdbarch.h: Regenerate.
12305 * arch-utils.c (default_print_float_info): New function.
12306 * arch-utils.h (default_print_float_info): Prototype it.
12307 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12308 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12309 (PRINT_FLOAT_INFO): Document it.
12310
12311 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12312 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12313 (PRINT_FLOAT_INFO): Define.
12314
12315 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12316
12317 * win32-nat.c (_initialize_check_for_gdb_ini):
12318 Add typecast to sprintf argument to suppress a warning.
12319
12320 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12321
12322 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12323 to allow easier handling of pass state.
12324 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12325 that gives exception name and address.
12326 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12327 and set last_sig value to ourstatus->value.sig. Some missing
12328 exceptions added.
12329 (child_continue): Correctly report continue_status.
12330 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12331 TARGET_SIGNAL_0 (new default value).
12332 (child_resume): consider sig argument passed to decide if
12333 the exception should be passed to debuggee or not.
12334
12335 2002-02-05 Michael Snyder <msnyder@redhat.com>
12336
12337 * regcache.c (fetch_register): Call target_fetch_register
12338 only if we don't call FETCH_PSEUDO_REGISTER.
12339 (store_register): Call target_store_register only if we
12340 don't call STORE_PSEUDO_REGISTER.
12341
12342 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12343
12344 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12345 ELF_MAKE_MSYMBOL_SPECIAL.
12346 * gdbarch.c, gdbarch.h: Regenerate.
12347 * arch-utils.c (default_make_msymbol_special): New function.
12348 * arch-utils.h (default_make_msymbol_special): Export.
12349 * elfread.c (elf_symtab_read): Compile use of
12350 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12351 multiarched.
12352 * coffread.c (coff_symtab_read): Ditto, for
12353 COFF_MAKE_MSYMBOL_SPECIAL.
12354
12355 2002-02-05 Jim Blandy <jimb@redhat.com>
12356
12357 * solib-svr4.c (svr4_truncate_ptr): New function.
12358 (svr4_relocate_section_addresses): Do the address arithmetic with
12359 the appropriate truncation for target addresses, even when
12360 CORE_ADDR is larger than a target address.
12361
12362 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12363
12364 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12365 to (int *).
12366
12367 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12368
12369 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12370 code.
12371
12372 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12373
12374 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12375
12376 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12377
12378 * gdbserver/linux-low.c: Remove unused include files.
12379
12380 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12381
12382 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12383 (read_inferior_memory): Use it.
12384 (write_inferior_memory): Likewise.
12385
12386 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12387
12388 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12389 grubbing through sys_errlist.
12390
12391 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12392
12393 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12394
12395 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12396 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12397
12398 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12399
12400 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12401 (do_sfunc, set_cmd_sfunc): New functions.
12402
12403 * command.h (struct cmd_list_element): Add field func.
12404 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12405 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12406 * cli/cli-decode.h: Ditto.
12407
12408 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12409 (help_all, help_cmd_list): Ditto.
12410 (find_cmd, complete_on_cmdlist): Ditto.
12411 * top.c (execute_command): Ditto.
12412
12413 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12414 function.sfunc.
12415
12416 * infcmd.c (notice_args_read): Fix function signature.
12417
12418 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12419 * cli/cli-decode.c (add_set_cmd): Ditto.
12420 * utils.c (initialize_utils): Ditto.
12421 * maint.c (_initialize_maint_cmds): Ditto.
12422 * infrun.c (_initialize_infrun): Ditto.
12423 * demangle.c (_initialize_demangler): Ditto.
12424 * remote.c (add_packet_config_cmd): Ditto.
12425 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12426 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12427 * proc-api.c (_initialize_proc_api): Ditto.
12428 * kod.c (_initialize_kod): Ditto.
12429 * valprint.c (_initialize_valprint): Ditto.
12430 * top.c (init_main): Ditto.
12431 * infcmd.c (_initialize_infcmd): Ditto.
12432 * corefile.c (_initialize_core): Ditto.
12433 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12434 * arch-utils.c (initialize_current_architecture): Ditto.
12435 (_initialize_gdbarch_utils): Ditto.
12436 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12437
12438 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12439 * wince.c (_initialize_inftarg): Ditto.
12440 * symfile.c (_initialize_symfile): Ditto.
12441 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12442 * language.c (_initialize_language): Ditto.
12443 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12444
12445 2002-02-04 Michael Snyder <msnyder@redhat.com>
12446
12447 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12448
12449 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12450
12451 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12452 Add rules for building the register data files.
12453
12454 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12455
12456 * regformats/regdat.sh: Add braces to the definition of
12457 expedite_regs_${arch}.
12458
12459 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12460
12461 * regformats/regdef.h (struct reg): Add comment describing the
12462 requirements for offset and size fields.
12463
12464 2002-02-04 Andreas Schwab <schwab@suse.de>
12465
12466 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12467 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12468
12469 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12470
12471 * gdbarch.sh (copyright): Update years in generated header.
12472 (SMASH_TEXT_ADDRESS): Add rule.
12473 * gdbarch.h, gdbarch.c: Re-generate.
12474 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12475 * dbxread.c: Likewise.
12476 * dwarfread.c: Likewise.
12477 * elfread.c: Likewise.
12478 * somread.c: Likewise.
12479
12480 * arm-tdep.c (arm_smash_text_address): New function.
12481 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12482
12483 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12484
12485 Add support for hardware watchpoints on win32 native.
12486 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12487 CONTEXT_DEBUG_REGISTERS.
12488 (dr variable): New variable. Static array containing a local copy
12489 of debug registers.
12490 (debug_registers_changed): New variable. Reflects when debug registers
12491 are changed and need to be written to inferior.
12492 (debug_registers_used): New variable. Reflects when any debug register
12493 was set, used when new threads are created.
12494 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12495 i386-nat code.
12496 (thread_rec): Set dr array if id is the thread of current_event .
12497 (child_continue, child_resume): Change the debug registers for all
12498 threads if debug_registers_changed.
12499 (child_add_thread): Change the debug registers if debug_registers_used.
12500 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12501 Link nm.h to new nm-cygwin.h file.
12502 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12503 of hardware registers.
12504
12505 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12506
12507 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12508 Restore behavour broken by 2002-01-20 Andrew Cagney
12509 <ac131313@redhat.com> IEEE_FLOAT removal.
12510
12511 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12512
12513 * c-valprint.c (c_val_print): Pass a proper valaddr to
12514 cp_print_class_method.
12515 * valops.c (search_struct_method): If there is only one method
12516 and args is NULL, return that method.
12517
12518 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12519
12520 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12521 accessing tag_name directly.
12522
12523 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12524
12525 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12526 of accessing tag_name directly.
12527
12528 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12529
12530 PR gdb/280
12531 * gdbtypes.c (replace_type): New function.
12532 * gdbtypes.h (replace_type): Add prototype.
12533 * stabsread.c (read_type): Use replace_type.
12534
12535 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12536
12537 * Makefile.in (memattr.o): Add missing dependencies rule.
12538
12539 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12540
12541 * breakpoint.c (break_at_finish_command): Really export.
12542 (break_at_finish_at_depth_command): Ditto.
12543 (tbreak_at_finish_command): Ditto.
12544 * hppa-tdep.c: Include completer.h.
12545 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12546 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12547
12548 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12549
12550 * utils.c (do_write): New function.
12551 (error_stream): Rewrite combining the code from error_begin and
12552 verror.
12553 (verror): Rewrite using error_stream.
12554 (error_begin): Delete function.
12555
12556 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12557
12558 * utils.c (error_begin): Make static.
12559 * defs.h (error_begin): Delete declaration.
12560
12561 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12562 (decode_line_1): Use cplusplus_error instead of error_begin,
12563 cplusplus_hint and return_to_top_level.
12564 * coffread.c (coff_symfile_read): Use error instead of error_begin
12565 and return_to_top_level.
12566 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12567
12568 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12569
12570 * language.h (type_error, range_error): Make string parameter
12571 constant.
12572 * language.c (warning_pre_print): Delete extern declaration.
12573 * dwarfread.c (warning_pre_print): Ditto.
12574 * language.c (type_error, range_error): Rewrite to use verror and
12575 vwarning instead of warning_begin.
12576
12577 2002-02-01 Michael Snyder <msnyder@redhat.com>
12578
12579 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12580 (set_ignore_count): Move misplaced comment back where it belongs.
12581
12582 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12583
12584 * command.h (NO_FUNCTION): Delete macro.
12585 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12586 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12587 * tracepoint.c (_initialize_tracepoint): Ditto.
12588 * cli/cli-decode.c (add_set_cmd): Ditto.
12589 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12590
12591 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12592
12593 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12594 Update ``this'' pointer when calling virtual functions.
12595
12596 2002-02-01 Michael Snyder <msnyder@redhat.com>
12597
12598 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12599 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12600
12601 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12602
12603 * regformats/reg-arm.dat: New file.
12604 * regformats/reg-i386.dat: New file.
12605 * regformats/reg-ia64.dat: New file.
12606 * regformats/reg-m68k.dat: New file.
12607 * regformats/reg-mips.dat: New file.
12608 * regformats/reg-ppc.dat: New file.
12609 * regformats/reg-sh.dat: New file.
12610 * regformats/regdef.h: New file.
12611 * regformats/regdat.sh: New file.
12612
12613 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12614
12615 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12616 (arm_frame_args_address, arm_frame_locals_address): New functions.
12617 (arm_frame_num_args): New function.
12618 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12619 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12620 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12621
12622 2002-01-31 Michael Snyder <msnyder@redhat.com>
12623
12624 * breakpoint.c (break_at_finish_command): Export.
12625 (break_at_finish_at_depth_command): Export.
12626 (tbreak_at_finish_command): Export.
12627 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12628 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12629 "txbreak" commands, which are HPPA specific.
12630
12631 * printcmd.c (disassemble_command): Remove an ancient
12632 artifact of an old merge.
12633
12634 * symfile.h (enum overlay_debugging_state):
12635 Define enum constant values for overlay mode.
12636 * symfile.c (overlay_debugging): Use enums instead of literals.
12637 (overlay_is_mapped, overlay_auto_command,
12638 overlay_manual_command): Ditto.
12639
12640 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12641 breakpoint_here_p, breakpoint_inserted_here_p,
12642 breakpoint_thread_match, bpstat_stop_status,
12643 describe_other_breakpoints, check_duplicates, clear_command):
12644 Coding standard fixes.
12645
12646 * target.c (target_xfer_memory): Add spaces, coding standard.
12647 (do_xfer_memory): Add missing line to trust-readonly
12648 code: check bfd SEC_READONLY flag for section.
12649
12650 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12651
12652 * PROBLEMS: Fix typo, 5.1->5.1.1.
12653
12654 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12655
12656 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12657 data symbols, since we search based on textlow and texthigh.
12658 (find_pc_sect_symtab): Likewise.
12659
12660 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12661
12662 * defs.h (vwarning): Declare.
12663 * utils.c (vwarning): New function.
12664 (warning): Call vwarning.
12665 (warning_begin): Delete function.
12666
12667 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12668 the warning message.
12669 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12670 warning_begin.
12671
12672 2002-01-30 Michael Snyder <msnyder@redhat.com>
12673
12674 * NEWS: Mention "set trust-readonly-sections" command.
12675 Mention generate-core-file command.
12676
12677 2002-01-15 Michael Snyder <msnyder@redhat.com>
12678
12679 * target.c: New command, "set trust-readonly-sections on".
12680 (do_xfer_memory): Honor the suggestion to trust readonly sections
12681 by reading them from the object file instead of from the target.
12682 (initialize_targets): Register command "set trust-readonly-sections".
12683
12684 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12685
12686 * parse.c (target_map_name_to_register): Simplify, search regs and
12687 pseudo-regs using a single loop.
12688
12689 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12690
12691 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12692
12693 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12694
12695 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12696 * config/i386/i386v42mp.mh: Add i387-nat.o .
12697 * i386v4-nat.c: Include i387-nat.h.
12698 (supply_fpregset): Use i387_supply_fsave.
12699 (fill_fpregset): Use i387_fill_fsave.
12700
12701 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12702
12703 * arm-tdep.c (arm_call_dummy_words): Define.
12704 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12705 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12706 (CALL_DUMMY_WORDS): Define.
12707 (arm_call_dummy_words): Declare.
12708 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12709 (arm_linux_call_dummy_words): Declare.
12710
12711 2002-01-30 Andreas Schwab <schwab@suse.de>
12712
12713 * m68klinux-nat.c: Fix last change to use regcache_collect
12714 instead of referencing registers[] directly.
12715
12716 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12717
12718 * parse.c (target_map_name_to_register): Delete code wrapped in
12719 #ifdef REGISTER_NAME_ALIAS_HOOK.
12720
12721 2002-01-28 Michael Snyder <msnyder@redhat.com>
12722
12723 * regcache.c (legacy_read_register_gen): Need to be able to
12724 read pseudo-register as well as real register.
12725 (legacy_write_register_gen): Ditto.
12726
12727 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12728
12729 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12730 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12731 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12732 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12733 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12734 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12735 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12736 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12737 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12738 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12739 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12740 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12741 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12742 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12743 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12744 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12745 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12746 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12747 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12748 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12749
12750 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12751
12752 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12753 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12754 (initialize_current_architecture): Update target_byte_order using
12755 information from BFD.
12756 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12757 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12758
12759 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12760
12761 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12762 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12763
12764 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12765 #ifdef INVALID_FLOAT.
12766 * infcmd.c (do_registers_info): Ditto.
12767 * values.c (unpack_double): Ditto. Add comment.
12768
12769 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12770 already commented out.
12771
12772 2002-01-26 Andreas Schwab <schwab@suse.de>
12773
12774 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12775 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12776 registers and add support for PTRACE_GETREGS.
12777
12778 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12779
12780 GDB 5.1.1 released from 5.1 branch.
12781 * NEWS: Add 5.1.1 news.
12782 * README: Sync with 5.1 branch.
12783
12784 2002-01-23 Fred Fish <fnf@redhat.com>
12785
12786 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12787 stabstring on initial malloc. Reallocing will copy it for us,
12788 if necessary.
12789
12790 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12791
12792 * Makefile.in (hpread_h): Delete.
12793 (HFILES_NO_SRCDIR): Remove hpread.h.
12794 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12795 (hpread.o): Update dependencies.
12796 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12797
12798 * hp-psymtab-read.c: Remove file.
12799 * hp-symtab-read.c: Remove file.
12800 * hpread.h: Remove file.
12801
12802 * hpread.c: Merge all contents of hp-psymtab-read.c,
12803 hp-symtab-read.c and hpread.h into this file, as it was prior to
12804 January 1999.
12805
12806 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12807 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12808 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12809 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12810
12811 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12812
12813 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12814 fill_gregset): Call gdbarch_tdep() just once, assign result to
12815 variable and use that, instead of calling the function several
12816 times.
12817
12818 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12819
12820 * configure.host: Accept sparcv9 as alias for sparc64.
12821 * configure.tgt: Likewise.
12822
12823 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12824
12825 * solib-aix5.c (build_so_list_from_mapfile)
12826 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12827 arguments is not reversed.
12828 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12829 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12830
12831 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12832
12833 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12834 modified version of obsolete sh_fetch_pseudo_register.
12835 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12836 (sh4_register_read): New function.
12837 (sh_pseudo_register_write): New function. Renamed and modified
12838 version of obsolete sh_store_pseudo_register.
12839 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12840 (sh4_register_write): New function.
12841 (sh_gdbarch_init): Remove setting of gdbarch function
12842 fetch_pseudo_register and store_pseudo_register. Remove setting of
12843 register_convert_to_raw, register_convert_to_virtual,
12844 register_convertible.
12845 (sh_sh4_register_convertible): Delete. No longer needed. All is
12846 taken care by architecture specific functions
12847 register_read/register_write.
12848 (sh_sh4_register_convert_to_virtual): Make static.
12849 (sh_sh4_register_convert_to_raw): Ditto.
12850
12851 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12852
12853 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12854 (floatformat_is_nan, floatformat_mantissa): Ditto.
12855
12856 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12857 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12858 builtin_type_ieee_double_little,
12859 builtin_type_ieee_double_littlebyte_bigword,
12860 builtin_type_m68881_ext, builtin_type_i960_ext,
12861 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12862 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12863 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12864 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12865
12866 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12867
12868 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12869 parameter. Set frameless flag if it exists and depended of
12870 whether the scanned function is frameless or not.
12871 (xstormy16_skip_prologue): If function is frameless, return
12872 result of xstormy16_scan_prologue().
12873 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12874 call.
12875
12876 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12877
12878 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12879 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12880 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12881 sh_sh4_register_byte, sh_sh4_register_raw_size,
12882 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12883 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12884 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12885 sh_store_pseudo_register, sh_do_pseudo_register): Call
12886 gdbarch_tdep() just once, assign result to variable and use that,
12887 instead of calling the function several times.
12888
12889 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12890
12891 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12892 macros instead of LAST_FPU_CTRL_REGNUM.
12893 (store_register): Likewise.
12894
12895 2002-01-21 Jim Blandy <jimb@redhat.com>
12896
12897 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12898 is up-to-date before running the program, not just when a program
12899 exits.
12900
12901 2002-01-21 Fred Fish <fnf@redhat.com>
12902
12903 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12904 when we have found all instructions we are looking for.
12905
12906 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12907
12908 * arm-tdep.c (arm_register_name): New function.
12909 (arm_registers_names): Make static.
12910 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12911 (arm_register_name): Declare.
12912 (REGISTER_NAME): Use it.
12913
12914 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12915 Kevin Buettner <kevinb@redhat.com>
12916
12917 Convert arm targets to new FRAME interface.
12918 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12919 (arm_frame_find_save_regs): Delete.
12920 (arm_frame_init_saved_regs): New.
12921 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12922 Allocate extra_info as required. Convert all uses of fsr.regs
12923 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12924 to use extra_info.
12925 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12926 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12927 (check_prologue_cache, save_prologue_cache): Likewise.
12928 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12929 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12930 (FRAME_FIND_SAVED_REGS): Delete.
12931 (arm_frame_find_saved_regs): Delete prototype.
12932 (arm_frame_init_saved_regs): New prototype.
12933 (FRAME_INIT_SAVED_REGS): Define.
12934
12935 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12936
12937 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12938
12939 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12940
12941 From Jeff Law <law@redhat.com>:
12942 * infttrace.c: Include <sys/pstat.h>.
12943 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12944 exec file if the ttrace equivalent fails.
12945
12946 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12947
12948 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12949 (closeLogFile): Ditto.
12950
12951 2002-01-20 Michael Chastain <mec@shout.net>
12952
12953 * top.c (print_gdb_version): Bump copyright year to 2002.
12954
12955 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12956
12957 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12958 Zannoni and Eli Zaretskii.
12959
12960 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12961
12962 * buildsym.c: Update copyright years.
12963 * c-typeprint.c: Likewise.
12964 * dwarf2read.c: Likewise.
12965 * f-typeprint.c: Likewise.
12966 * gdbtypes.c: Likewise.
12967 * gdbtypes.h: Likewise.
12968 * hp-symtab-read.c: Likewise.
12969 * hpread.c: Likewise.
12970 * mdebugread.c: Likewise.
12971 * p-typeprint.c: Likewise.
12972
12973 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12974
12975 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12976 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12977 byte-order selectable.
12978 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12979 * arch-utils.c: Ditto.
12980 (set_endian): Ditto.
12981 (set_endian_from_file): Ditto.
12982 * gdbserver/low-sim.c (create_inferior): Ditto.
12983 * gdbarch.sh: Ditto.
12984 * gdbarch.h: Re-generate.
12985 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12986 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12987 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12988 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12989 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12990 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12991 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12992 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12993 macro definition.
12994 * config/mips/tm-wince.h: Remove #undef of macro
12995 TARGET_BYTE_ORDER_SELECTABLE.
12996 * config/sh/tm-wince.h: Ditto.
12997
12998 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12999
13000 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13001 member function fields. Add accessor macro
13002 TYPE_FN_FIELD_ARTIFICIAL.
13003 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13004 * c-typeprint.c (c_type_print_base): Skip artificial member
13005 functions.
13006
13007 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13008
13009 * f-typeprint.c: Delete unused function f_type_print_args.
13010 * p-typeprint.c: Delete unused function pascal_type_print_args.
13011
13012 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13013
13014 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13015 comment. Add ``artificial'' to ``union field_location''.
13016
13017 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13018
13019 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13020 * mdebugread.c (parse_symbol): Likewise.
13021 * stabsread.c (define_symbol): Likewise.
13022 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13023 initializing TYPE_FIELD_BITPOS to n (obsolete).
13024 (hpread_doc_function_type): Likewise.
13025 * hpread.c (hpread_function_type): Likewise.
13026
13027 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13028
13029 * configure.in (host_makefile_frag): Only require a host makefile
13030 fragment when a native build.
13031 * configure: Re-generate.
13032
13033 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13034
13035 * doublest.h (floatformat_from_type): Declare.
13036 * doublest.c (floatformat_from_type): New function.
13037 (convert_typed_floating): Use.
13038
13039 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13040 call to function floatformat_from_type.
13041
13042 * gdbarch.sh (IEEE_FLOAT): Delete.
13043 * gdbarch.h, gdbarch.c: Re-generate.
13044 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13045 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13046 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13047 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13048 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13049 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13050 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13051 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13052 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13053 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13054 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13055 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13056
13057 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13058 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13059 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13060 * sh-tdep.c (sh_gdbarch_init): Ditto.
13061 * mips-tdep.c (mips_gdbarch_init): Ditto.
13062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13063 * cris-tdep.c (cris_gdbarch_init): Ditto.
13064
13065 2002-01-20 Jiri Smid <smid@suse.cz>
13066
13067 * configure.host, configure.tgt: Support x86-64.
13068 * NEWS: Note new target x86-64.
13069
13070 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13071 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13072 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13073 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13074 x86-64-linux-nat.o): Fix dependencies.
13075
13076 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13077
13078 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13079 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13080 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13081 * config/sparc/xm-sun4os4.h: Delete file.
13082 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13083
13084 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13085
13086 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13087 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13088 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13089 * config/i386/i386lynx.mh (XM_FILE): Delete.
13090 * config/rs6000/xm-rs6000ly.h: Delete file.
13091 * config/sparc/xm-sparclynx.h: Delete file.
13092 * config/m68k/xm-m68klynx.h: Delete file.
13093 * config/i386/xm-i386lynx.h: Delete file.
13094 * config/xm-lynx.h: Delete file.
13095 * config/djgpp/fnchange.lst: Update.
13096
13097 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13098
13099 * alpha-tdep.c (alpha_register_byte): New function.
13100 (alpha_register_raw_size): Ditto.
13101 (alpha_register_virtual_size): Ditto.
13102 (alpha_skip_prologue_internal): Renamed from
13103 alpha_skip_prologue.
13104 (alpha_skip_prologue): New version that calls
13105 alpha_skip_prologue_internal.
13106 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13107 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13108 second argument from alpha_skip_prologue.
13109 (REGISTER_BYTE): Use alpha_register_byte.
13110 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13111 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13112 (FRAMELESS_FUNCTION_INVOCATION): Use
13113 generic_frameless_function_invocation_not.
13114 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13115 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13116
13117 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13118
13119 * config/mips/xm-news-mips.h: Delete file.
13120 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13121
13122 * config/m88k/xm-m88k.h: Delete file.
13123 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13124 * config/m88k/xm-delta88v4.h: Ditto.
13125 * config/m88k/xm-delta88.h: Ditto.
13126
13127 * config/alpha/xm-fbsd.h: Delete file.
13128 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13129
13130 * config/sparc/xm-sparc.h: Delete file.
13131 * Makefile.in (xm-sun4os4.h): Delete dependency.
13132 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13133 * config/sparc/xm-sun4os4.h: Ditto.
13134 * config/sparc/xm-linux.h: Ditto.
13135
13136 * config/i386/xm-windows.h: Delete file.
13137
13138 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13139
13140 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13141 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13142
13143 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13144
13145 * alpha-tdep.c (alpha_call_dummy_words): New.
13146 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13147 (CALL_DUMMY_P): Define.
13148 (CALL_DUMMY_WORDS): Define.
13149 (SIZEOF_CALL_DUMMY_WORDS): Define.
13150
13151 2002-01-19 Per Bothner <per@bothner.com>
13152
13153 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13154 isn't NULL, which can happen with some gcj-3.x-produced code.
13155
13156 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13157
13158 * alpha-tdep.c (alpha_register_virtual_type): New function.
13159 (alpha_init_frame_pc_first): Ditto.
13160 (alpha_fix_call_dummy): Ditto.
13161 (alpha_store_struct_return): Ditto.
13162 (alpha_extract_struct_value_address): Ditto.
13163 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13164 alpha_register_virtual_type.
13165 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13166 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13167 alpha_extract_struct_value_address.
13168 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13169 (INIT_FRAME_PC): Use init_frame_pc_noop.
13170 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13171
13172 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13173
13174 * i386gnu-nat.c: Include "i386-tdep.h".
13175 (fetch_fpregs): Simplify code dealing with uninitialized floating
13176 point states such that it doesn't require FP7_REGNUM.
13177
13178 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13179
13180 * alpha-tdep.c (frame_extra_info): New.
13181 (alpha_find_saved_regs): Make static. Use
13182 frame->extra_info.
13183 (alpha_frame_init_saved_regs): New function.
13184 (alpha_frame_saved_pc): Use frame->extra_info.
13185 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13186 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13187 (init_extra_frame_info): Rename to...
13188 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13189 (alpha_print_extra_frame_info): New function.
13190 (alpha_frame_locals_address): Ditto.
13191 (alpha_frame_args_address): Ditto.
13192 (alpha_pop_frame): Use frame->extra_info.
13193 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13194 alpha_frame_args_address.
13195 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13196 (alpha_find_saved_regs): Remove prototype.
13197 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13198 (EXTRA_FRAME_INFO): Remove.
13199 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13200 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13201
13202 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13203
13204 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13205 (alpha_cannot_fetch_register): Ditto.
13206 (alpha_cannot_store_register): Ditto.
13207 (alpha_register_convertible): Ditto.
13208 (alpha_use_struct_convention): Ditto.
13209 * config/alpha/tm-alpha.h: Update copyright years.
13210 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13211 (INNER_THAN): Use core_addr_lessthan.
13212 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13213 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13214 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13215 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13216 (FRAME_CHAIN): Remove unnecessary cast.
13217
13218 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13219
13220 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13221 obsolete.
13222
13223 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13224
13225 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13226 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13227 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13228 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13229 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13230 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13231 * x86-64-linux-nat.c: Ditto.
13232
13233 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13234
13235 * alpha-tdep.c (alpha_register_name): New function.
13236 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13237 (REGISTER_NAME): Define.
13238
13239 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13240
13241 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13242
13243 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13244
13245 * alpha-tdep.c: Update copyright years.
13246 (alpha_next_pc): New function.
13247 (alpha_software_single_step): Ditto.
13248 * config/alpha/tm-alpha.h: Add prototype for
13249 alpha_software_single_step.
13250
13251 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13252
13253 * alphabsd-nat.c: Update copyright years.
13254 (fill_gregset): Use regcache_collect.
13255 (fill_fpregset): Likewise.
13256 (fetch_inferior_registers): Only fetch integer registers
13257 if requested to do so.
13258 (store_inferior_registers): Only store integer registers
13259 if requested to do so.
13260
13261 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13262
13263 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13264 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13265 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13266 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13267 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13268 * config/arm/linux.mh (XDEPFILES): Delete.
13269 * config/arm/nbsd.mh (XDEPFILES): Delete.
13270 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13271 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13272 * config/i386/i386m3.mh (XDEPFILES): Delete.
13273 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13274 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13275 * config/i386/fbsd.mh (XDEPFILES): Delete.
13276 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13277 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13278 * config/i386/i386v4.mh (XDEPFILES): Delete.
13279 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13280 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13281 * config/i386/i386aix.mh (XDEPFILES): Delete.
13282 * config/i386/go32.mh (XDEPFILES): Delete.
13283 * config/i386/cygwin.mh (XDEPFILES): Delete.
13284 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13285 * config/i386/i386mach.mh (XDEPFILES): Delete.
13286 * config/i386/i386v32.mh (XDEPFILES): Delete.
13287 * config/i386/linux.mh (XDEPFILES): Delete.
13288 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13289 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13290 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13291 * config/i386/i386sco.mh (XDEPFILES): Delete.
13292 * config/i386/i386v.mh (XDEPFILES): Delete.
13293 * config/i386/nbsd.mh (XDEPFILES): Delete.
13294 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13295 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13296 * config/i386/symmetry.mh (XDEPFILES): Delete.
13297 * config/i386/obsd.mh (XDEPFILES): Delete.
13298 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13299 * config/ia64/linux.mh (XDEPFILES): Delete.
13300 * config/ia64/aix.mh (XDEPFILES): Delete.
13301 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13302 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13303 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13304 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13305 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13306 * config/m68k/linux.mh (XDEPFILES): Delete.
13307 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13308 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13309 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13310 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13311 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13312 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13313 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13314 * config/m88k/delta88.mh (XDEPFILES): Delete.
13315 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13316 * config/m88k/m88k.mh (XDEPFILES): Delete.
13317 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13318 * config/mips/linux.mh (XDEPFILES): Delete.
13319 * config/mips/irix6.mh (XDEPFILES): Delete.
13320 * config/mips/irix5.mh (XDEPFILES): Delete.
13321 * config/mips/irix4.mh (XDEPFILES): Delete.
13322 * config/mips/irix3.mh (XDEPFILES): Delete.
13323 * config/mips/decstation.mh (XDEPFILES): Delete.
13324 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13325 (NATDEPFILES): Move core-aout.o to here.
13326 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13327 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13328 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13329 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13330 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13331 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13332 * config/pa/hpux11.mh (XDEPFILES): Delete.
13333 * config/powerpc/aix.mh (XDEPFILES): Delete.
13334 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13335 * config/powerpc/linux.mh (XDEPFILES): Delete.
13336 * config/romp/rtbsd.mh: Rename XDEPFILES.
13337 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13338 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13339 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13340 * config/s390/s390.mh (XDEPFILES): Delete.
13341 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13342 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13343 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13344 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13345 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13346 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13347 * config/sparc/linux.mh (XDEPFILES): Delete.
13348 * config/vax/vaxult.mh (XDEPFILES): Delete.
13349 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13350 * Makefile.in (DEPFILES): Remove XDEPFILES.
13351
13352 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13353
13354 * utils.c (internal_verror): Fix comments, default is yes not no.
13355 Update queries to match. Default to quit and dump core.
13356
13357 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13358
13359 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13360 copyright.
13361 * defs.h, event-top.c, gdbcmd.h: Ditto.
13362 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13363 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13364 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13365 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13366 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13367 * mi/mi-main.c:Ditto.
13368
13369 * stack.c, symfile.c: Update copyright.
13370
13371 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13372
13373 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13374 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13375 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13376 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13377
13378 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13379
13380 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13381 * gdbserver/low-lynx.c (myattach): Likewise.
13382 * gdbserver/low-nbsd.c (myattach): Likewise.
13383 * gdbserver/low-sim.c (myattach): Likewise.
13384 * gdbserver/low-sparc.c (myattach): Likewise.
13385 * gdbserver/low-sun3.c (myattach): Likewise.
13386
13387 * gdbserver/low-linux.c (myattach): New function.
13388
13389 * gdbserver/server.c (attach_inferior): New function.
13390 (main): Handle "--attach".
13391
13392 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13393
13394 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13395 maintainer.
13396
13397 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13398
13399 * c-typeprint.c (is_type_conversion_operator): Add additional
13400 check for non-conversion operators.
13401
13402 2002-01-15 Michael Snyder <msnyder@redhat.com>
13403
13404 * linux-proc.c: Add "info proc" command, a la procfs.c.
13405 (read_mapping): New function, abstract and re-use code.
13406 (linux_find_memory_regions): Use new func read_mapping.
13407 (linux_info_proc_cmd): New function, implement "info proc".
13408 (_initialize_linux_proc): Add new command "info proc".
13409
13410 2002-01-15 Michael Snyder <msnyder@redhat.com>
13411
13412 * symfile.c (generic_load): Use bfd_map_over_sections method
13413 instead of manipulating bfd structure members directly.
13414 (add_section_size_callback): New function, bfd sections callback
13415 used by generic_load.
13416 (load_sections_callback): New function, bfd sections callback
13417 used by generic_load.
13418
13419 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13420
13421 [Based on work by Jim Blandy]
13422 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13423 (builtin_type_vec128): Export.
13424 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13425 types.
13426 (builtin_type_vec128): New builtin type for 128 bit vector
13427 registers.
13428 (build_gdbtypes): Initialize builtin_type_v16qi and
13429 builtin_type_v8hi. Create the vec128 register builtin type
13430 structure.
13431 (build_builtin_type_vec128): New function.
13432 (_initialize_gdbtypes): Register builtin_type_v16qi and
13433 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13434 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13435 AltiVec register to new builtin type.
13436
13437 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13438
13439 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13440 to make_cv_type.
13441
13442 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13443
13444 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13445 CLEAN_UP_REGISTER_VALUE.
13446 * regcache.c (supply_register): Update only call.
13447
13448 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13449
13450 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13451 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13452 a29k-*-vxworks* targets as obsolete.
13453
13454 2002-01-14 Michael Snyder <msnyder@redhat.com>
13455
13456 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13457 until we can resolve portability issues.
13458 * gregset.h: Remove references to fpxregs.
13459 * gcore.c (gcore_command): Initialize note_sec to NULL.
13460
13461 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13462
13463 * signals.c (target_signal_to_name): Rewrite. Only use
13464 signals[].name when in bounds and non-NULL.
13465
13466 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13467
13468 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13469 * signals.c (target_signal_to_name): Verify that SIG is within the
13470 bounds of the signals array.
13471
13472 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13473
13474 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13475
13476 2002-01-13 Keith Seitz <keiths@redhat.com>
13477
13478 * stack.c (print_frame_info_base): Print the frame's pc
13479 only if when print_frame_info_listing_hook is not defined.
13480
13481 2002-01-13 Keith Seitz <keiths@redhat.com>
13482
13483 * varobj.c (varobj_set_value): Make sure that there were no
13484 errors evaluating the object before attempting to set its
13485 value.
13486 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13487 so this offset adjustment is no longer necessary.
13488 (create_child): Don't set the error flag if the child is
13489 a CPLUS_FAKE_CHILD.
13490 (value_of_child): If value_fetch_lazy fails, return NULL
13491 so that callers will be notified that an error occurred.
13492 (c_value_of_variable): Delay check of variable's validity
13493 until later. We actually want all structs and unions to have
13494 the value "{...}".
13495 Do not return "???" for variables which could not be evaluated.
13496 This error condition must be returned to the caller so that it
13497 can get the error condition from gdb.
13498 (cplus_name_of_child): Adjust index for vptr before figuring
13499 out the name of the child.
13500 (cplus_value_of_child): If a child's (real) parent is not valid,
13501 don't even bother trying to give a value for it. Just return
13502 an error. Change all instances in this function.
13503 (cplus_type_of_child): If our parent is one of the "fake"
13504 parents, we need to get at the type of the real parent, and
13505 derive the child's true type using this information.
13506
13507 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13508
13509 From 2002-01-09 John Marshall <johnm@falch.net>:
13510 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13511 sources.redhat.com, and tweak some related URLs which had
13512 suffered from linkrot.
13513
13514 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13515
13516 From Jeff law:
13517 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13518 structures passed in registers.
13519
13520 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13521
13522 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13523 white space which prevented compilation. Reported by DSK
13524 <dsk@student.unsw.edu.au>.
13525
13526 2002-01-11 Michael Snyder <msnyder@redhat.com>
13527
13528 * symfile.c (build_section_addr_info_from_section_tab):
13529 Use bfd access method instead of manipulating bfd directly.
13530 (syms_from_objfile): Ditto.
13531 (simple_overlay_update_1): Ditto.
13532 (simple_overlay_update): Ditto.
13533 (generic_load): Ditto.
13534 (overlay_unmapped_address): FIXME comment, bfd access methods.
13535 (sections_overlap): FIXME comment, bfd access methods.
13536 (pc_in_mapped_range): FIXME comment, bfd access methods.
13537 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13538 (section_is_mapped): FIXME comment, bfd access methods.
13539 (section_is_overlay): FIXME comment, bfd access methods.
13540
13541 * symfile.c (generic_load): Whitespace and long line cleanups.
13542 Remove duplicate variable, change several local variables to
13543 more appropriate data types.
13544 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13545
13546 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13547
13548 From Peter Schauer:
13549 * language.c (longest_local_hex_string_custom): Use phex_nz to
13550 convert NUM to a hex string.
13551
13552 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13553
13554 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13555 the function.
13556 Update Copyright year.
13557
13558 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13559
13560 * language.c (longest_raw_hex_string): Delete unused function.
13561
13562 2002-01-11 Petr Sorfa <petrs@caldera.com>
13563
13564 * MAINTAINERS (write-after-approval): Add myself.
13565 * dwarf2read.c (read_tag_string_type): Handling of
13566 DW_AT_byte_size.
13567 (read_tag_string_type): FORTRAN fix to prevent propagation of
13568 first string size.
13569 (set_cu_language): Handling of DW_LANG_Fortran95
13570
13571 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13572
13573 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13574 GETPID(inferior_ptid).
13575 (store_inferior_registers): Likewise.
13576
13577 2002-01-10 Jason Merrill <jason@redhat.com>
13578
13579 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13580 Fix DW_OP_minus.
13581
13582 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13583
13584 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13585 and bfd/elf32-sh-nbsd.c.
13586
13587 2002-01-10 Michael Snyder <msnyder@redhat.com>
13588
13589 * NEWS: Mention --pid and corefile/proc-id behavior change.
13590
13591 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13592 * gcore.c: Include cli/cli-decode.h instead of command.h.
13593
13594 * main.c (captured_main): Add new command line option "--pid".
13595 If the second command line argument (following the symbol-file)
13596 begins with a digit, try to attach to it before trying to open
13597 it as a corefile.
13598 (print_gdb_help): Document the "--pid" argument.
13599
13600 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13601
13602 * completer.c (command_completer): New function.
13603
13604 * completer.h <command_completer>: Add prototype.
13605
13606 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13607 completer for the "help" command.
13608
13609 2002-01-09 Jason Merrill <jason@redhat.com>
13610
13611 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13612
13613 2002-01-09 Michael Snyder <msnyder@redhat.com>
13614
13615 * i386-linux-nat.c (fill_fpxregset): Make global.
13616 (store_fpxregset): Ditto.
13617
13618 * gregset.h (gdb_fpxregset_t): Define.
13619 (supply_fpxregset): Prototype.
13620 (fill_fpxregset): Prototype.
13621
13622 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13623
13624 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13625
13626 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13627 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13628 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13629
13630 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13631
13632 * MAINTAINERS: Update target maintainer rules so that any
13633 Maintainer can approve a tested patch for a maintenance-only
13634 target.
13635
13636 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13637
13638 * MAINTAINERS (write-after-approval): Add myself.
13639
13640 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13641 IN_SIGTRAMP.
13642
13643 2002-01-08 Michael Snyder <msnyder@redhat.com>
13644
13645 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13646 real name of the executable, rather than the /proc name.
13647
13648 2002-01-03 Michael Snyder <msnyder@redhat.com>
13649
13650 Implement a "generate-core-file" command in gdb, save target state.
13651 * gcore.c: New file. Implement new command 'generate-core-file'.
13652 Save a corefile image of the current state of the inferior.
13653 * linux-proc.c: Add linux-specific code for saving corefiles.
13654 * target.h (struct target_ops): Add new target vectors for saving
13655 corefiles; to_find_memory_regions and to_make_corefile_notes.
13656 (target_find_memory_regions): New macro.
13657 (target_make_corefile_notes): New macro.
13658 * target.c (update_current_target): Inherit new target methods.
13659 (dummy_find_memory_regions): New place-holder method.
13660 (dummy_make_corefile_notes): New place-holder method.
13661 (init_dummy_target): Initialize new dummy target vectors.
13662 * exec.c (exec_set_find_memory_regions): New function.
13663 Allow the exec_ops vector for memory regions to be taken over.
13664 (exec_make_note_section): New function, target vector method.
13665 * defs.h (exec_set_find_memory_regions): Export prototype.
13666 * procfs.c (proc_find_memory_regions): New function, corefile method.
13667 (procfs_make_note_section): New function, corefile method.
13668 (init_procfs_ops): Set new target vector pointers.
13669 (find_memory_regions_callback): New function.
13670 (procfs_do_thread_registers): New function.
13671 (procfs_corefile_thread_callback): New function.
13672 * sol-thread.c (sol_find_memory_regions): New function.
13673 (sol_make_note_section): New function.
13674 (init_sol_thread_ops): Initialize new target vectors.
13675 * inftarg.c (inftarg_set_find_memory_regions): New function.
13676 Allow to_find_memory_regions vector to be taken over.
13677 (inftarg_set_make_corefile_notes): New function.
13678 Allow to_make_corefile_notes vector to be taken over.
13679 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13680 interface layer if not target_has_execution (may be a corefile).
13681 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13682 * config/sparc/sun4sol2.mh: Ditto.
13683 * config/alpha/alpha-linux.mh: Ditto.
13684 * config/arm/linux.mh: Ditto.
13685 * config/i386/x86-64linux.mh: Ditto.
13686 * config/ia64/linux.mh: Ditto.
13687 * config/m68k/linux.mh: Ditto.
13688 * config/mips/linux.mh: Ditto.
13689 * config/powerpc/linux.mh: Ditto.
13690 * config/sparc/linux.mh: Ditto.
13691
13692 2002-01-07 Michael Snyder <msnyder@redhat.com>
13693
13694 * arm-linux-nat.c: Remove references to regcache.c internal data
13695 (registers[] and register_valid[]).
13696
13697 2002-01-07 Michael Snyder <msnyder@redhat.com>
13698
13699 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13700 so that attaching to a pid will automatically read the process's
13701 symbol file and shlibs.
13702 * Makefile.in: Add rule for linux-proc.o.
13703 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13704 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13705 * config/arm/linux.mh: Ditto.
13706 * config/i386/linux.mh: Ditto.
13707 * config/i386/x86-64linux.mh: Ditto.
13708 * config/ia64/linux.mh: Ditto.
13709 * config/m68k/linux.mh: Ditto.
13710 * config/mips/linux.mh: Ditto.
13711 * config/powerpc/linux.mh: Ditto.
13712 * config/sparc/linux.mh: Ditto.
13713
13714 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13715
13716 * win32-nat.c: Add i386-tdep.h dependency.
13717
13718 2002-01-07 Michael Snyder <msnyder@redhat.com>
13719
13720 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13721 instead of bfd_get_arch_size. Don't bail out just because
13722 there's no exec_bfd.
13723
13724 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13725 * p-valprint.c (pascal_object_print_value): Ditto.
13726 * somread.c (som_symtab_read): Ditto.
13727 * symfile.c (simple_free_overlay_region_table): Ditto.
13728 * valops.c (value_assign): Ditto.
13729
13730 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13731 use tilde_expand and strerror for opening save-tracepoints file.
13732
13733 * thread-db.c (thread_db_new_objfile): Indendation fix.
13734
13735 * infptrace.c (GDB_MAX_ALLOCA): New define.
13736 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13737 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13738 can be overridden with whatever value is appropriate to the host).
13739 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13740 alloca to allocate potentially large buffer.
13741 * rs6000-nat.c (child_xfer_memory): Ditto.
13742 * symm-nat.c (child_xfer_memory): Ditto.
13743 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13744
13745 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13746
13747 From Nick Clifton <nickc@redhat.com>
13748 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13749
13750 2002-01-07 Michael Snyder <msnyder@redhat.com>
13751
13752 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13753 Don't use exec_bfd if it's NULL.
13754
13755 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13756
13757 * valops.c (value_arg_coerce): Fix formatting.
13758
13759 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13760
13761 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13762 * gnu-nat.c: Ditto.
13763
13764 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13765
13766 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13767 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13768 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13769 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13770 z8k-coff have not been multi-arched. Update z8k-coff build
13771 status.
13772
13773 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13774
13775 * MAINTAINERS: Mark a29k target as obsolete.
13776 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13777 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13778 comments.
13779 * NEWS: Note that a29k targets are obsolete.
13780 * a29k-tdep.c: Mark as obsolete.
13781 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13782 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13783 a29k-*-vxworks* targets as obsolete.
13784 * remote-adapt.c: Obsolete.
13785 * remote-eb.c: Obsolete.
13786 * remote-mm.c: Obsolete.
13787 * remote-udi.c: Obsolete.
13788 * config/a29k/a29k-udi.mt: Obsolete.
13789 * config/a29k/a29k.mt: Obsolete.
13790 * config/a29k/tm-a29k.h: Obsolete.
13791 * config/a29k/tm-vx29k.h: Obsolete.
13792 * config/a29k/vx29k.mt: Obsolete.
13793
13794 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13795
13796 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13797 with BFD_ENDIAN_BIG.
13798
13799 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13800
13801 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13802 * configure, config.in: Re-generate.
13803 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13804 * defs.h: Do not include <endian.h>.
13805
13806 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13807
13808 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13809 * config.in: Regenerate.
13810 * configure.in: Update copyright years.
13811 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13812 * configure: Regenerate.
13813 * i386bsd-nat.c: Update copyright years.
13814 (fill_gregset): Use regcache_collect.
13815 (fetch_inferior_registers): Only fetch integer registers
13816 if requested to do so. Add support for XMM registers
13817 using PT_GETXMMREGS.
13818 (store_inferior_registers): Only store integer registers
13819 if requested to do so. Add support for XMM registers
13820 using PT_SETXMMREGS.
13821 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13822 (store_inferior_registers): Remove.
13823 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13824 (fetch_elfcore_registers): New function.
13825 (i386nbsd_elfcore_fns): New.
13826 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13827 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13828 i386bsd-nat.o.
13829 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13830 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13831 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13832 * config/i386/tm-nbsd.h: Update copyright years.
13833 (HAVE_SSE_REGS): Define.
13834 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13835 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13836 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13837 (SIGCONTEXT_PC_OFFSET): Remove.
13838 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13839
13840 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13841
13842 * configure.tgt: Remove powerpc-*-macos* target.
13843 * config/m68k/xm-mpw.h: Delete file.
13844 * config/xm-mpw.h: Delete file.
13845 * ser-mac.c: Delete file.
13846 * mpw-make.sed: Delete file.
13847 * mpw-config.in: Delete file.
13848 * mac-xdep.c: Delete file.
13849 * mac-gdb.r: Delete file.
13850 * mac-defs.h: Delete file.
13851 * mac-nat.c: Delete file.
13852 * config/powerpc/macos.mh: Delete file.
13853 * config/powerpc/macos.mt: Delete file.
13854 * config/powerpc/nm-macos.h: Delete file.
13855 * config/powerpc/tm-macos.h: Delete file.
13856 * source.c (openp, open_source_file): Remove obsolete code.
13857 * top.c (gdb_readline): Ditto.
13858 * utils.c (query): Ditto.
13859 * event-top.c (display_gdb_prompt): Ditto.
13860 * Makefile.in (ser-mac.o): Delete obsolete target.
13861 * NEWS: Update.
13862
13863 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13864
13865 * defs.h (BIG_ENDIAN): Delete macro definition.
13866 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13867 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13868 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13869 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13870 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13871 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13872 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13873 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13874 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13875 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13876 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13877 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13878 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13879 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13880 * gdbarch.c: Re-generate.
13881
13882 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13883
13884 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13885 for core files.
13886
13887 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13888
13889 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13890
13891 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13892
13893 * value.h (value_ptr): Delete typedef.
13894
13895 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13896
13897 * i386nbsd-nat.c: Update copyright years.
13898 Include i386-tdep.h.
13899
13900 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13901
13902 * stabsread.c: Update copyright years.
13903
13904 From Debashis Mahata <debashis.mahata@wipro.com>:
13905 (read_struct_fields): Deal with Sun C compiler erroneous stab
13906 output for structs and unions.
13907 Fix PR gdb/269.
13908
13909 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13910
13911 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13912 prototype.
13913
13914 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13915
13916 * cp-abi.c: Fix whitespace.
13917 (baseclass_offset): New wrapper function.
13918 * cp-abi.h (baseclass_offset): Add prototype.
13919 (struct cp_abi_ops): Add baseclass_offset pointer.
13920
13921 * valops.c (vb_match): Move to...
13922 * gnu-v2-abi.c (vb_match): here.
13923 * valops.c (baseclass_offset): Move to...
13924 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13925
13926 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13927
13928 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13929 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13930 * hpacc-abi.c (init_hpacc_ops): Likewise.
13931
13932 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13933
13934 * valops.c (find_overload_match): Accept obj as a
13935 reference parameter. Update it before returning.
13936 * value.h (find_overload_match): Update prototype.
13937 * eval.c (evaluate_subexp_standard): Pass object to
13938 find_overload_match by reference.
13939
13940 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13941
13942 * valarith.c: Replace value_ptr with struct value pointer. Remove
13943 register attribute from value declarations.
13944 * valops.c: Ditto.
13945 * value.h: Ditto.
13946 * scm-lang.c (scm_lookup_name): Ditto.
13947
13948 2002-01-03 Michael Snyder <msnyder@redhat.com>
13949
13950 Abstract the functionality of iterating over mapped memory
13951 regions into a general purpose iterator function.
13952 * procfs.c (iterate_over_mappings): New function, general purpose
13953 iterator for memory sections.
13954 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13955 (solib_mappings_callback): New function, callback for above.
13956 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13957 (info_mappings_callback): New function, callback for above.
13958
13959 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13960
13961 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13962
13963 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13964 * i386-tdep.c: Include "elf-bfd.h".
13965 (process_note_abi_tag_sections): New function.
13966 (i386_gdbarch_init): Add code to recognize various OS/ABI
13967 combinations.
13968
13969 * maint.c (_initialize_maint_cmds): Add missing \ in
13970 string-literal.
13971
13972 For older changes see ChangeLog-2001
13973 \f
13974 Local Variables:
13975 mode: change-log
13976 left-margin: 8
13977 fill-column: 74
13978 version-control: never
13979 End:
This page took 0.427985 seconds and 4 git commands to generate.