* pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-04 J. Brobecker <brobecker@gnat.com>
2
3 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
4
5 2002-12-04 J. Brobecker <brobecker@gnat.com>
6
7 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
8 which is an obsolete macro name.
9
10 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
11
12 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
13 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
14
15 2002-12-03 H.J. Lu (hjl@gnu.org)
16
17 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
18 (create_breakpoints): Make sure the addr_string field is not
19 NULL.
20
21 2002-12-03 Andrew Cagney <ac131313@redhat.com>
22
23 * sparc-nat.c (fetch_inferior_registers)
24 (store_inferior_registers): Add comment on problem of LWP vs
25 threads.
26
27 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
28 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
29 (lin_lwp_store_registers): Remove.
30 (init_lin_lwp_ops): Use fetch_inferior_registers
31 and store_inferior_registers directly.
32 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
33 (store_inferior_registers): Likewise.
34 Fix PR gdb/725.
35
36 2002-12-03 Andrew Cagney <ac131313@redhat.com>
37
38 * frame.h (get_frame_id): Convert to a function.
39 (null_frame_id, frame_id_p): Declare.
40 (frame_id_eq, frame_id_inner): Declare.
41 (frame_id_build): New function.
42 * frame.c (get_frame_id): Update. Use null_frame_id.
43 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
44 frame_id_inner.
45 (null_frame_id, frame_id_p): Define.
46 (frame_id_eq, frame_id_inner): Define.
47 (frame_id_build): New function.
48 * varobj.c (varobj_create): Update.
49 (varobj_update): Update.
50 * valops.c (value_assign): Update.
51 (new_root_variable): Update.
52 * infrun.c (save_inferior_status): Update.
53 * breakpoint.c (watch_command_1): Update.
54
55 2002-12-03 J. Brobecker <brobecker@gnat.com>
56
57 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
58 (SNAP2): Likewise.
59
60 2002-12-03 Andrew Cagney <cagney@redhat.com>
61
62 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
63 patch.
64
65 * PROBLEMS: Mention PR gdb/725.
66
67 2002-12-03 Andreas Schwab <schwab@suse.de>
68
69 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
70
71 2002-12-02 Adam Fedor <fedor@gnu.org>
72 Klee Dienes <kdienes@apple.com>
73
74 * objc-lang.c (objc_printstr): Add width arg to match
75 printstr prototype.
76 (compare_selectors): Add 'const' to arg types.
77 (compare_classes): Likewise.
78 (find_imps): Cast msym pointer to avoid compiler warning.
79 (print_object_command): Validate the address before
80 passing it to the print routine.
81 (find_objc_msgcall_submethod): Change function argument to
82 return an int.
83 * objc-lang.h: Add 'extern' to all function declarations.
84 (value_nsstring): Add declaration.
85
86 2002-12-02 J. Brobecker <brobecker@gnat.com>
87
88 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
89 Fixes a build failure on HP/UX.
90
91 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
92 failure on HP/UX.
93 (hpread_has_name): Advance declaration to avoid a compilation warning.
94 (pst_syms_count): Add missing variable type. By change, the compiler
95 was defaulting to int, which seems a good choice. Fixes a compilation
96 warning.
97 (pst_syms_size): Likewise.
98
99 2002-12-02 J. Brobecker <brobecker@gnat.com>
100
101 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
102 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
103 later to set the proper gdbarch methods depending on the osabi.
104 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
105
106 2002-12-02 J. Brobecker <brobecker@gnat.com>
107
108 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
109 * osabi.c (gdb_osabi_name): Add strings images for the two new
110 enum values.
111 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
112
113 2002-12-02 Andrew Cagney <ac131313@redhat.com>
114
115 * MAINTAINERS (Java): Global maintainers are responible for Java.
116 (Past Maintainers): Mention both Anthony Green and Per Bothner as
117 part Java maintainers.
118
119 2002-12-02 J. Brobecker <brobecker@gnat.com>
120
121 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
122 Fixes a compilation failure on AiX.
123
124 2002-12-02 J. Brobecker <brobecker@gnat.com>
125
126 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
127 why aix-thread.o is not listed.
128
129 2002-12-01 Andrew Cagney <ac131313@redhat.com>
130
131 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
132 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
133 * gdbarch.h, gdbarch.c: Re-generate.
134 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
135 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
136 * config/pa/tm-hppa.h, frame.h: Update.
137 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
138 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
139 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
140 * cris-tdep.c, alpha-tdep.c: Update.
141 * frame.c (set_unwind_by_pc, create_new_frame): Use either
142 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
143 (get_prev_frame): Ditto.
144
145 2002-11-30 Andrew Cagney <cagney@redhat.com>
146
147 * exec.c (xfer_memory): Replace boolean with int.
148 * p-exp.y: Use 0 instead of false.
149 * corelow.c (gdb_check_format): Change return type to int from
150 boolean.
151 * utils.c: Don't include <curses.h> or <term.h> first.
152
153 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
154
155 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
156 (m68hc11_register_byte): Remove.
157 (m68hc11_gdbarch_init): Don't set the above.
158
159 2002-11-29 Andrew Cagney <cagney@redhat.com>
160
161 * remote-mips.c (mips_initialize): Force a selected frame rebuild
162 by calling get_selected_frame.
163 * ocd.c (ocd_start_remote): Use get_selected frame instead of
164 set_current_frame, create_new_frame, select_frame and
165 get_current_frame.
166 * remote-e7000.c (e7000_start_remote): Ditto.
167 * remote-mips.c (common_open): Ditto
168 * remote-rdp.c (remote_rdp_open): Ditto.
169
170 2002-11-29 Andreas Schwab <schwab@suse.de>
171
172 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
173 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
174 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
175 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
176 read_memory_unsigned_integer instead of read_memory_integer when
177 dealing with addresses and instruction opcodes.
178 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
179 (m68k_linux_frame_saved_pc): Likewise.
180
181 2002-11-29 Andrew Cagney <ac131313@redhat.com>
182
183 * stack.c (selected_frame, select_frame): Move from here ...
184 * frame.c (selected_frame, select_frame): ... to here. Include
185 "language.h".
186 * Makefile.in (frame.o): Update dependencies.
187 * frame.c (get_selected_frame): New function.
188 * frame.h (get_selected_frame): Declare.
189 (deprecated_selected_frame): Rename selected_frame.
190 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
191 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
192 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
193 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
194 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
195 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
196 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
197 * z8k-tdep.c, cli/cli-cmds.c: Update.
198
199 2002-11-29 Andrew Cagney <ac131313@redhat.com>
200
201 * frame.h (get_selected_block): Add comments.
202
203 2002-11-28 Andrew Cagney <ac131313@redhat.com>
204
205 * frame.c (pc_notcurrent): New function.
206 (find_frame_sal): New function.
207 * frame.h (find_frame_sal): Declare.
208 (struct symtab_and_line): Add opaque declaration.
209 * stack.c (print_frame_info_base): Use find_frame_sal instead of
210 find_pc_line.
211 (frame_info): Ditto.
212 * ada-lang.c (find_printable_frame): Ditto.
213
214 2002-11-28 J. Brobecker <brobecker@gnat.com>
215
216 * configure.in: Check that the pthdebug library is recent enough
217 before enabling thread support on native AiX.
218 * configure: Regenerate.
219
220 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
221 from the list of object files as it is now appended by configure
222 if thread support is enabled.
223 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
224 if thread support is enabled.
225
226 2002-11-28 Andrew Cagney <cagney@redhat.com>
227
228 * stack.c (get_selected_block): In-line get_current_block.
229 * frame.h (get_current_block): Delete declaration.
230 * blockframe.c (get_current_block): Delete function.
231
232 2002-11-28 Andrew Cagney <ac131313@redhat.com>
233
234 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
235 USE_GENERIC_DUMMY_FRAMES.
236 * gdbarch.h, gdbarch.c: Regenerate.
237 * valops.c, frame.c: Update.
238 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
239 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
240 * config/pa/tm-hppa.h, blockframe.c: Update.
241 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
242 * m68k-tdep.c, alpha-tdep.c: Ditto.
243
244 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
245 * mips-tdep.c: Ditto.
246
247 2002-11-27 Andrew Cagney <ac131313@redhat.com>
248
249 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
250 (USE_GENERIC_DUMMY_FRAMES): Default to true.
251 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
252 * gdbarch.c, gdbarch.h: Re-generate.
253 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
254 (CALL_DUMMY_LOCATION): Delete macro definition.
255 (PC_IN_CALL_DUMMY): Delete macro definitions.
256
257 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
258 default is already generic_pc_in_call_dummy.
259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
260 * v850-tdep.c (v850_gdbarch_init): Ditto.
261 * sh-tdep.c (sh_gdbarch_init): Ditto.
262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
263 * mips-tdep.c (mips_gdbarch_init): Ditto.
264 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
267 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
268 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
269 * avr-tdep.c (avr_gdbarch_init): Ditto.
270
271 * arm-tdep.c (arm_gdbarch_init): Do not set
272 use_generic_dummy_frames, default is already 1.
273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
274 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
275 * v850-tdep.c (v850_gdbarch_init): Ditto.
276 * sh-tdep.c (sh_gdbarch_init): Ditto.
277 * s390-tdep.c (s390_gdbarch_init): Ditto.
278 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
280 * mips-tdep.c (mips_gdbarch_init): Ditto.
281 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
283 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
284 * i386-tdep.c (i386_gdbarch_init): Ditto.
285 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
286 * frv-tdep.c (frv_gdbarch_init): Ditto.
287 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
288 * cris-tdep.c (cris_gdbarch_init): Ditto.
289 * avr-tdep.c (avr_gdbarch_init): Ditto.
290
291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
292 call_dummy_location, default is already AT_ENTRY_POINT.
293 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
294 * v850-tdep.c (v850_gdbarch_init): Ditto.
295 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
296 * sh-tdep.c (sh_gdbarch_init): Ditto.
297 * s390-tdep.c (s390_gdbarch_init): Ditto.
298 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
299 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
300 * mips-tdep.c (mips_gdbarch_init): Ditto.
301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
304 * i386-tdep.c (i386_gdbarch_init): Ditto.
305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
306 * frv-tdep.c (frv_gdbarch_init): Ditto.
307 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
308 * cris-tdep.c (cris_gdbarch_init): Ditto.
309 * avr-tdep.c (avr_gdbarch_init): Ditto.
310 * arm-tdep.c (arm_gdbarch_init): Ditto.
311 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
312
313 2002-11-28 Andrew Cagney <cagney@redhat.com>
314
315 * frame.h: Update comments on set_current_frame, create_new_frame,
316 flush_cached_frames, reinit_frame_cache, select_frame and
317 selected_frame.
318
319 2002-11-27 Andrew Cagney <cagney@redhat.com>
320
321 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
322 deprecated pc_in_call_dummy function.
323 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
324 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
325 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
326 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
327 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
328
329 2002-11-26 Martin M. Hunt <hunt@redhat.com>
330
331 * Makefile.in: Remove Tix dependencies.
332 * acinclude.m4: Ditto.
333 * aclocal.m4: Ditto.
334 * configure.in: Ditto.
335 * configure: Regenerated.
336
337 2002-11-26 Andrew Cagney <ac131313@redhat.com>
338
339 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
340 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
341 * gdbarch.c: Re-generate.
342
343 2002-11-26 Andrew Cagney <ac131313@redhat.com>
344
345 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
346 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
347 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
348 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
349 pc_in_call_dummy_at_entry_point.
350 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
351 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
352 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
353 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
354 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
355 pc_in_call_dummy_on_stack.
356 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
357 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
358 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
359 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
360 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
361
362 2002-11-26 Andrew Cagney <ac131313@redhat.com>
363
364 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
365 pc_in_call_dummy_before_text_end
366 (deprecated_pc_in_call_dummy_after_text_end): Rename
367 pc_in_call_dummy_after_text_end.
368 (deprecated_pc_in_call_dummy_on_stack): Rename
369 pc_in_call_dummy_on_stack.
370 (deprecated_pc_in_call_dummy_at_entry_point): Rename
371 pc_in_call_dummy_at_entry_point.
372 * m68k-tdep.c (m68k_gdbarch_init): Update.
373 * s390-tdep.c (s390_gdbarch_init): Update.
374 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
375 * vax-tdep.c (vax_gdbarch_init): Update.
376 * sparc-tdep.c (sparc_gdbarch_init): Update.
377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
379 * i386-tdep.c (i386_gdbarch_init): Update.
380 * frv-tdep.c (frv_gdbarch_init): Update.
381 * cris-tdep.c (cris_gdbarch_init): Update.
382 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
383 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
384 (deprecated_pc_in_call_dummy_after_text_end)
385 (deprecated_pc_in_call_dummy_on_stack)
386 (deprecated_pc_in_call_dummy_at_entry_point): Update.
387 * alpha-tdep.c (alpha_gdbarch_init): Update.
388
389 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
390
391 * acconfig.h (HAVE_PREAD64): Add.
392 * configure.in: Check for pread64.
393 * config.in: Regenerated.
394 * configure: Regenerated.
395 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
396 * linux-proc.c (linux_proc_xfer_memory): New function.
397 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
398
399 2002-11-25 David Carlton <carlton@math.stanford.edu>
400
401 * dwarf2read.c (scan_partial_symbols): Descend into namespace
402 pdi's with no name.
403
404 2002-11-25 Andrew Cagney <ac131313@redhat.com>
405
406 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
407 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
408
409 2002-11-25 Jim Blandy <jimb@redhat.com>
410
411 * symfile.c (init_objfile_sect_indices): New function.
412 (default_symfile_offsets): Move the section-index-initializing
413 stuff into init_objfile_sect_indices, and call that.
414
415 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
416 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
417
418 * symfile.c (syms_from_objfile): Adjust indentation.
419
420 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
421 || info_verbose isn't true.
422
423 2002-11-24 Andrew Cagney <ac131313@redhat.com>
424
425 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
426 default to get_frame_base.
427 * gdbarch.h, gdbarch.c: Regenerate.
428 * arch-utils.c (default_frame_address): Delete function.
429 * arch-utils.h (default_frame_address): Delete declaration
430
431 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
432
433 * varobj.c (find_frame_addr_in_frame_chain):
434 Use get_frame_base instead of FRAME_FP,
435 obvious fix.
436
437 2002-11-19 Andrew Cagney <ac131313@redhat.com>
438
439 * frame.h (FRAME_FP): Delete macro.
440 (get_frame_base): New function declaration.
441 * frame.c (get_frame_base): New function.
442 (get_frame_id): Use ->frame.
443 (frame_find_by_id): Rewrite to use get_frame_id.
444 * blockframe.c: Use get_frame_base instead of FRAME_FP.
445 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
446 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
447 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
448 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
449 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
450 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
451
452 2002-11-24 Andrew Cagney <ac131313@redhat.com>
453
454 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
455
456 2002-11-24 Andrew Cagney <ac131313@redhat.com>
457
458 * frame.c (set_unwind_by_pc): Revert change below, use
459 PC_IN_CALL_DUMMY.
460 (get_prev_frame): Ditto.
461
462 2002-11-24 Andrew Cagney <ac131313@redhat.com>
463
464 * dummy-frame.c (pc_in_dummy_frame): New function.
465 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
466 (find_dummy_frame): Update comment.
467 (generic_pop_current_frame): Use get_frame_type.
468 * dummy-frame.h (pc_in_dummy_frame): Declare.
469 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
470 (create_new_frame): Use pc_in_dummy_frame.
471 (get_prev_frame): Use pc_in_dummy_frame.
472 (frame_saved_regs_register_unwind): Use get_prev_frame.
473 (deprecated_generic_get_saved_register): Use get_prev_frame.
474
475 2002-11-23 Andrew Cagney <ac131313@redhat.com>
476
477 * blockframe.c (find_frame_addr_in_frame_chain): Move function
478 from here ...
479 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
480 (varobj_create): Note that frame ID should be used.
481 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
482
483 2002-11-23 Andrew Cagney <ac131313@redhat.com>
484
485 * breakpoint.c: Include "gdb_assert.h".
486 (deprecated_frame_in_dummy): Assert that generic dummy frames are
487 not being used.
488 * Makefile.in (breakpoint.o): Update dependencies.
489 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
490 deprecated_frame_in_dummy.
491 * stack.c (print_frame_info_base): Ditto.
492 (frame_info): Ditto.
493 (print_frame_info_base): Ditto. Delete dead code.
494
495 2002-11-23 Andreas Schwab <schwab@suse.de>
496
497 * Makefile.in (m68k_tdep_h): Define.
498 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
499 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
500 * m68k-tdep.c: Move register number enum ...
501 * m68k-tdep.h: ... to this new file and rename the constants from
502 E_* to M68K_*. All uses changed.
503 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
504 * abug-rom.c: Include "m68k-tdep.h". Use
505 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
506 * cpu32bug-rom.c: Likewise.
507 * dbug-rom.c: Likewise.
508 * m68k-tdep.c: Likewise.
509 * m68klinux-nat.c: Likewise.
510 * remote-est.c: Likewise.
511 * rom68k-rom.c: Likewise.
512 * config/m68k/tm-linux.h: Likewise.
513
514 2002-11-23 Andrew Cagney <ac131313@redhat.com>
515
516 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
517 dummy frame initialization code.
518 * mips-tdep.c (mips_gdbarch_init): Ditto.
519
520 2002-11-22 Christopher Faylor <cgf@redhat.com>
521
522 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
523 attach will hang.
524
525 2002-11-22 Andrew Cagney <ac131313@redhat.com>
526
527 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
528 to default_frame_address.
529 * gdbarch.h, gdbarch.c: Re-generate.
530
531 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
532 or frame_locals_address to default_frame_address.
533 * m68k-tdep.c (m68k_gdbarch_init): Update.
534 * i386-tdep.c (i386_gdbarch_init): Update.
535 * frv-tdep.c (frv_gdbarch_init): Update.
536 * sh-tdep.c (sh_gdbarch_init): Update.
537 * v850-tdep.c (v850_gdbarch_init): Update.
538 * sparc-tdep.c (sparc_gdbarch_init): Update.
539 * mips-tdep.c (mips_gdbarch_init): Update.
540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
541 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
543
544 * cris-tdep.c (cris_frame_args_address): Delete function.
545 (cris_frame_locals_address): Delete function.
546 (cris_gdbarch_init): Do not set frame_args_address or
547 frame_locals_address.
548
549 2002-11-22 Michael Snyder <msnyder@redhat.com>
550
551 * thread-db.c (thread_db_load): Tell the user what's going on
552 if dlopen fails on libthread_db.
553
554 2002-11-23 Andreas Schwab <schwab@suse.de>
555
556 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
557 invariant return values.
558
559 2002-11-22 Andreas Schwab <schwab@suse.de>
560
561 * valops.c (value_slice): Move declaration of `offset' to avoid
562 warning.
563
564 2002-11-22 Christopher Faylor <cgf@redhat.com>
565
566 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
567 (struct so_stuff): Add end_addr field.
568 (register_loaded_dll): Calculate and store end address of loaded dll.
569 (solib_address): New function.
570 (child_solib_loaded_library_pathname): Pass carefully constructed
571 section info to safe_symbol_file_add rather than ignoring it.
572 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
573 DLL is loaded.
574 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
575 (child_create_inferior): Fix a compiler warning.
576 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
577 (solib_address): Declare new function.
578
579 2002-11-22 Andreas Schwab <schwab@suse.de>
580
581 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
582 and FPS registers.
583
584 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
585
586 * maint.c (_initialize_maint_cmds): Fix typo. From
587 Francesco Potorti` <pot@gnu.org>.
588
589 2002-11-21 Andrew Cagney <cagney@redhat.com>
590
591 * mips-tdep.c (mips_dump_tdep): Delete references to
592 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
593 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
594 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
595 * printcmd.c (build_address_symbolic): Delete calls to
596 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
597 (address_info): Ditto.
598 Fix PR gdb/773.
599
600 2002-11-19 Klee Dienes <kdienes@apple.com>
601 Adam Fedor <fedor@gnu.org>
602
603 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
604 the ability to explicitly specify the quote characters and word
605 break characters; if NULL is specified for either, use the old
606 behavior of using the characters used by the completer.
607 (skip_chars): New function. Convenience wrapper around
608 skip_quoted_chars to provide the original skip_chars behavior.
609 * completer.h (skip_quoted_chars): Add prototype.
610
611 2002-11-19 Andrew Cagney <ac131313@redhat.com>
612
613 Problems reported by Paul Eggert.
614 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
615
616 2002-11-19 Andreas Schwab <schwab@suse.de>
617
618 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
619 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
620 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
621 (m68k_linux_frame_saved_pc): Move to ...
622 * m68klinux-tdep.c: ... here. New file.
623 * Makefile.in (m68klinux-tdep.o): Add dependencies.
624 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
625
626 2002-11-19 Adam Fedor <fedor@gnu.org>
627
628 * objc-exp.y: Revert to old skip_quoted usage.
629
630 2002-11-19 Adam Fedor <fedor@gnu.org>
631
632 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
633 (objc_lang_h): Define.
634 (YYFILES): Add objc-exp.tab.c.
635 (local-maintainer-clean): Remove objc-exp.tab.c.
636 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
637
638 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
639
640 * p-exp.y (typecast rule): Add automatic dereference of
641 pascal classes if needed.
642 (THIS): Set current_type.
643 Automatically dereference pascal classes.
644 (typebase rule): Add ^typebase recognition.
645
646 2002-11-18 Adam Fedor <fedor@gnu.org>
647
648 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
649 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
650 (op_name): Handle OP_OBJC_SELF.
651 * Makefile.in (expprint.o): Add additional depends.
652
653 2002-11-18 Adam Fedor <fedor@gnu.org>
654
655 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
656 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
657 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
658 * objc-exp.y: Likewise.
659
660 2002-11-18 Adam Fedor <fedor@gnu.org>
661
662 * gdb/parser-defs.h: (struct objc_class_str): New structure
663 for parsing ObjC classes.
664
665 2002-11-18 Andrew Cagney <ac131313@redhat.com>
666
667 * stack.c (frame_relative_level): Copy function from here ...
668 * frame.c (frame_relative_level): ...to here.
669
670 2002-11-18 Andrew Cagney <ac131313@redhat.com>
671
672 * frame.h (enum frame_type): Define.
673 (get_frame_type): Declare.
674 (struct frame_info): Add field `type'. Delete field
675 signal_handler_caller.
676 (deprecated_set_frame_signal_handler_caller): Declare.
677 * frame.c (get_frame_type): New function.
678 (deprecated_set_frame_type): New function.
679 (create_new_frame): Set the frame's type.
680 (get_prev_frame): Similar.
681 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
682 * s390-tdep.c: Ditto.
683 * m68klinux-nat.c: Ditto.
684 * ns32k-tdep.c: Ditto.
685 * x86-64-linux-tdep.c: Ditto.
686 * vax-tdep.c: Ditto.
687 * rs6000-tdep.c: Ditto.
688 * ppc-linux-tdep.c: Ditto.
689 * i386-interix-tdep.c: Ditto.
690 * mips-tdep.c: Ditto.
691 * m68k-tdep.c: Ditto.
692 * hppa-tdep.c: Ditto.
693 * ia64-tdep.c: Ditto.
694 * cris-tdep.c: Ditto.
695 * arm-tdep.c: Ditto.
696 * alpha-tdep.c: Ditto.
697 * i386-tdep.c: Ditto.
698 * stack.c: Ditto.
699 * ada-lang.c: Ditto.
700 * blockframe.c: Update.
701 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
702 deprecated_set_frame_type instead of signal_handler_caller.
703 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
704 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
705 * breakpoint.h: Delete FIXME suggesting get_frame_type.
706
707 2002-11-18 Klee Dienes <kdienes@apple.com>
708
709 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
710
711 2002-11-18 Klee Dienes <kdienes@apple.com>
712
713 * buildsym.c (pop_context): Add comment.
714
715 2002-11-18 Klee Dienes <kdienes@apple.com>
716
717 * buildsym.h (pop_context): Convert to function, defined in
718 buildsym.c.
719 * buildsym.c: Include gdb_assert.h.
720 (pop_context): Implement as C function. Add check for stack
721 underflow.
722 * dbxread.c (process_one_symbol): Complain and stop processing
723 that symbol if we are already at the top of the context stack for
724 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
725 when processing N_RBRAC.
726
727 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
728
729 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
730 define.
731 (struct target_waitstatus): Add opaque definition.
732 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
733 * exec.c (init_exec_ops): Likewise.
734 * fork-child.c (clone_and_follow_inferior): Remove.
735 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
736 * inferior.h (clone_and_follow_inferior): Remove prototype.
737 * infrun.c (follow_fork_mode_both): Remove.
738 (follow_fork_mode_kind_names): Remove commented out "both".
739 (follow_inferior_fork): Remove follow_fork_mode_both support.
740 * inftarg.c (child_clone_and_follow_inferior): Remove.
741 (child_post_follow_inferior_by_clone): Remove.
742 (init_child_ops): Don't set to_clone_and_follow_inferior
743 or to_post_follow_inferior_by_clone.
744 * target.c (default_clone_and_follow_inferior): Remove.
745 (cleanup_target): Don't set to_clone_and_follow_inferior
746 or to_post_follow_inferior_by_clone.
747 (find_default_clone_and_follow_inferior): Remove.
748 (init_dummy_target): Don't set to_clone_and_follow_inferior.
749 (debug_to_clone_and_follow_inferior): Remove.
750 (debug_to_post_follow_inferior_by_clone): Remove.
751 (setup_target_debug): Don't set to_clone_and_follow_inferior
752 or to_post_follow_inferior_by_clone.
753 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
754 and to_post_follow_inferior_by_clone.
755 (child_clone_and_follow_inferior): Remove prototype.
756 (child_post_follow_inferior_by_clone): Remove prototype.
757 (target_clone_and_follow_inferior): Remove macro.
758 (target_post_follow_inferior_by_clone): Remove macro.
759 (find_default_clone_and_follow_inferior): Remove prototype.
760
761 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
762
763 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
764 inferior_has_vforked, and inferior_has_execd instead of
765 target_has_forked, target_has_vforked, and target_has_execd.
766 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
767 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
768 (CHILD_WAIT): Define.
769 (child_wait): Add prototype.
770 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
771 Add prototype.
772 (hpux_has_vforked): Likewise, from child_has_vforked.
773 (hpux_has_execd): Likewise, from child_has_execd.
774 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
775 (not_same_real_pid, child_wait): New, copied from inftarg.c.
776 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
777 and hpux_has_syscall_event instead of the target hooks.
778 * infrun.c (inferior_has_forked, inferior_has_vforked)
779 (inferior_has_execd): New functions.
780 * inftarg.c (not_same_real_pid): Remove.
781 (child_wait): Remove references to not_same_real_pid,
782 target_has_forked, target_has_vforked, target_has_execd,
783 and target_has_syscall_event.
784 (child_has_forked, child_has_vforked, child_has_execd)
785 (child_has_syscall_event): Remove.
786 (init_child_ops): Remove references to child_has_forked,
787 child_has_vforked, child_has_execd, and child_has_syscall_event.
788 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
789 (hpux_has_vforked): Likewise, from child_has_vforked.
790 (hpux_has_execd): Likewise, from child_has_execd.
791 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
792 * target.c (cleanup_target): Remove references to
793 to_has_forked, to_has_vforked, to_has_execd, and
794 to_has_syscall_event.
795 (update_current_target): Likewise.
796 (setup_target_debug): Likewise.
797 (debug_to_has_forked): Remove.
798 (debug_to_has_vforked): Remove.
799 (debug_to_has_execd): Remove.
800 (debug_to_has_syscall_event): Remove.
801 * target.h (struct target_ops): Remove to_has_forked.
802 to_has_vforked, to_has_execd, and to_has_syscall_event.
803 (child_has_forked, child_has_vforked, child_has_execd)
804 (child_has_syscall_event): Remove prototypes.
805 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
806 prototypes.
807 (target_has_forked, target_has_vforked, target_has_execd)
808 (target_has_syscall_event): Remove macros.
809
810 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
811
812 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
813 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
814 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
815 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
816 * target.c (cleanup_target): Remove reference to
817 to_can_follow_vfork_prior_to_exec.
818 (update_current_target): Likewise.
819 (debug_to_can_follow_vfork_prior_to_exec): Remove.
820 (setup_target_debug): Remove reference to
821 to_can_follow_vfork_prior_to_exec.
822 * target.h (struct target_ops): Remove
823 to_can_follow_vfork_prior_to_exec.
824 (child_can_follow_vfork_prior_to_exec): Remove prototype.
825 (target_can_follow_vfork_prior_to_exec): Remove definition.
826 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
827 define.
828 * infrun.c (follow_vfork_when_exec): Remove.
829 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
830 (follow_exec): Likewise.
831 (handle_inferior_event): Likewise.
832 (keep_going): Likewise.
833
834 2002-11-15 Andrew Cagney <cagney@redhat.com>
835
836 * frame.c (generic_unwind_get_saved_register): Make static.
837 * frame.h (generic_unwind_get_saved_register): Delete declaration.
838 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
839 defaults to generic_unwind_get_saved_register.
840 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
841 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
842 * frv-tdep.c (frv_gdbarch_init): Ditto.
843 * i386-tdep.c (i386_gdbarch_init): Ditto.
844 * s390-tdep.c (s390_gdbarch_init): Ditto.
845 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
846 * v850-tdep.c (v850_gdbarch_init): Ditto.
847 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
848 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
849 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
850
851 2002-11-15 Andrew Cagney <cagney@redhat.com>
852
853 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
854 i386-tdep.c.
855
856 2002-11-15 Andrew Cagney <cagney@redhat.com>
857
858 * frame.h (sigtramp_saved_pc): Delete declaration.
859 * blockframe.c (sigtramp_saved_pc): Delete function.
860 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
861 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
862 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
863 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
864
865 2002-11-15 Andrew Cagney <ac131313@redhat.com>
866
867 * frame.c (frame_pc_unwind): New function.
868 (frame_saved_regs_pc_unwind): New function.
869 (frame_register_unwind): Pass unwind_cache instead of
870 register_unwind_cache.
871 (set_unwind_by_pc): Add unwind_pc parameter, set.
872 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
873 (get_prev_frame): Ditto.
874 * frame.h (frame_pc_unwind_ftype): Declare.
875 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
876 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
877 (frame_pc_unwind): Declare.
878 * dummy-frame.c (dummy_frame_pc_unwind): New function.
879 (struct dummy_frame): Add comment mentioning that values are for
880 previous frame.
881 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
882 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
883 (generic_file_frame_chain_valid): Ditto.
884 * stack.c (frame_info): Ditto.
885
886 2002-11-15 David Carlton <carlton@math.stanford.edu>
887
888 * linespec.c (locate_first_half): New function.
889 (decode_line_1): Move code into locate_first_half.
890
891 2002-11-15 Andrew Cagney <ac131313@redhat.com>
892
893 * complaints.h: Add comment explaining how to eliminate a
894 deprecated_complain call.
895 * complaints.h: Fix spelling errors.
896
897 2002-11-15 David Carlton <carlton@math.stanford.edu>
898
899 * printcmd.c: Remove #include "disasm.h".
900
901 2002-11-14 Andrew Cagney <ac131313@redhat.com>
902
903 * frame.h: Move the most relevant interface functions to the start
904 of the file.
905
906 2002-11-14 Andrew Cagney <ac131313@redhat.com>
907
908 * regcache.h (deprecated_registers): Rename registers.
909 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
910 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
911 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
912 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
913 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
914 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
915 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
916 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
917 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
918 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
919 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
920 * v850ice.c: Update.
921
922 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
923
924 * utils.c (gdb_realpath): Add comment mentioning realpath with a
925 NULL buffer.
926
927 2002-11-13 Andrew Cagney <cagney@redhat.com>
928
929 * regcache.h (deprecated_read_register_bytes): Rename
930 read_register_bytes.
931 (deprecated_write_register_bytes): Rename write_register_bytes.
932 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
933 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
934 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
935 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
936 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
937 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
938 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
939 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
940 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
941 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
942 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
943 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
944 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
945 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
946
947 2002-11-13 Jim Blandy <jimb@redhat.com>
948
949 * findvar.c (read_var_value): Doc fix.
950
951 2002-11-13 Andrew Cagney <cagney@redhat.com>
952
953 * regcache.c (struct regcache): Replace passthough_p with
954 readonly_p.
955 (regcache_xmalloc): Initialize readonly_p.
956 (build_regcache): Initialize readonly_p.
957 (regcache_save): New function.
958 (regcache_restore): New function.
959 (regcache_cpy): Re-implement using regcache_save and
960 regcache_restore.
961 (regcache_raw_read): Update.
962 (regcache_cooked_read): When a read-only cache, checked for cached
963 pseudo register values.
964 (regcache_raw_write): Assert that the cache is not read-only.
965 Remove code handling a non-passthrough cache.
966 * regcache.h (regcache_save): Declare.
967 (regcache_restore): Declare.
968
969 2002-11-13 Andrew Cagney <cagney@redhat.com>
970
971 * regcache.c (struct regcache_descr): Add fields
972 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
973 (init_legacy_regcache_descr): Compute the size of a cooked
974 register cache and then assign that to sizeof_raw_registers. Set
975 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
976 (init_legacy_regcache_descr): Ditto.
977
978 2002-11-13 Andrew Cagney <cagney@redhat.com>
979
980 * regcache.c (register_buffer): Move to near start of file, update
981 description.
982 (regcache_raw_read): Use.
983 (regcache_raw_write): Use.
984 (struct regcache): Rename raw_registers to registers and
985 raw_register_valid_p to register_valid_p.
986 (regcache_xmalloc): Update.
987 (regcache_xfree): Update.
988 (register_buffer): Update.
989 (regcache_cpy): Update.
990 (regcache_cpy_no_passthrough): Update.
991 (regcache_valid_p): Update.
992 (deprecated_grub_regcache_for_registers): Update.
993 (deprecated_grub_regcache_for_register_valid): Update.
994 (set_register_cached): Update.
995 (regcache_raw_write): Update.
996
997 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
998
999 * p-exp.y (name_not_typename): Use copy_name to
1000 set current_type variable for fields of THIS.
1001
1002 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1003
1004 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1005 * monitor.c (init_base_monitor_ops): Likewise.
1006 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1007 * remote-array.c (init_array_ops): Likewise.
1008 * remote-e7000.c (init_e7000_ops): Likewise.
1009 * remote-es.c (init_es1800_ops): Likewise.
1010 (init_es1800_child_ops): Likewise.
1011 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1012 * remote-sim.c (init_gdbsim_ops): Likewise.
1013 * remote-st.c (init_st2000_ops): Likewise.
1014 * sol-thread.c (init_sol_core_ops): Likewise.
1015 (init_sol_thread_ops): Likewise.
1016 * v850ice.c (init_850ice_ops): Likewise.
1017 * win32-nat.c (init_child_ops): Likewise.
1018 * wince.c (init_child_ops): Likewise.
1019
1020 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1021
1022 * utils.c (gdb_realpath): Make rp a constant pointer.
1023
1024 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1025
1026 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1027 a constant buffer; cannonicalize_file_name(); realpath() with a
1028 pathconf() defined buffer, xstrdup().
1029
1030 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1031
1032 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1033 to hang2.C; hang3.c to hang3.C.
1034
1035 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1036
1037 * findvar.c (read_var_value): Reenable TLS code.
1038
1039 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1040 Jim Blandy <jimb@redhat.com>
1041
1042 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1043 * target.c (update_current_target): Add
1044 to_get_thread_local_address.
1045 * target.h (to_get_thread_local_address): Export.
1046 (target_get_thread_local_address): Define.
1047 (target_get_thread_local_address_p): Define.
1048 * thread-db.c: Include solib-svr4.h.
1049 (td_thr_tls_get_addr_p): Define.
1050 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1051 (thread_db_get_thread_local_address): New function.
1052 (init_thread_db_ops): Initialize to_get_thread_local_address.
1053 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1054 * configure: Regenerate.
1055 * config.in: Regenerate.
1056
1057 2002-11-11 David Carlton <carlton@math.stanford.edu>
1058
1059 * linespec.c (set_flags): New function.
1060 (decode_line_1): Move code into set_flags.
1061
1062 2002-11-11 David Carlton <carlton@math.stanford.edu>
1063
1064 * linespec.c (decode_line_1): Move chunks of code to separate
1065 functions.
1066 (initialize_defaults): New function.
1067 (decode_indirect): New function.
1068
1069 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1070
1071 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1072 instead of void_code_ptr.
1073 (sigtramp_saved_pc): Ditto.
1074
1075 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1076 i386_fp_regnum_p.
1077
1078 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1079
1080 * gdbtypes.h (struct main_type): Move artificial flag out of
1081 loc. New member of ``struct field'' named static_kind. Reduce
1082 overloaded meaning of bitsize.
1083 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1084 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1085 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1086
1087 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1088 new fields.
1089 (template_to_fixed_record_type, template_to_static_fixed_type)
1090 (to_record_with_fixed_variant_part): Likewise.
1091 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1092 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1093 * dwarfread.c (struct_type, enum_type): Likewise.
1094 * hpread.c (hpread_read_enum_type)
1095 (hpread_read_function_type, hpread_read_doc_function_type)
1096 (hpread_read_struct_type): Likewise.
1097 * mdebugread.c (parse_symbol): Likewise.
1098
1099 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1100
1101 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1102 * stack.c (print_frame_info_base): Update.
1103 (print_frame_info_base, frame_info): Update.
1104 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1105 (sparc_frame_saved_pc): Update.
1106 * ada-lang.c (find_printable_frame): Update.
1107 * breakpoint.c (deprecated_frame_in_dummy): Update.
1108
1109 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1110
1111 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1112 defined.
1113 (regmap): Extend to cover all registers.
1114 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1115 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1116 definitions.
1117 (fetch_register, sore_register): Simplify.
1118 (old_fetch_inferior_registers, old_store_inferior_registers):
1119 Remove functions.
1120 (cannot_fetch_register, cannot_store_register): Change
1121 implementation to use regmap array to decide which registers
1122 cannot be fetched/stored. This removes $orig_eax from the
1123 registers that cannot be fetched/stored.
1124 (fetch_inferior_registers): Call fetch_register directly instead
1125 of calling old_fetch_inferior_registers.
1126 (store_inferior_registers): Call store_register directly instead
1127 of calling old_store_inferior_registers.
1128 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1129 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1130 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1131
1132 2002-11-09 Klee Dienes <kdienes@apple.com>
1133
1134 * i387-tdep.c (i387_supply_register): When called with NULL as a
1135 buffer, mark the register as not provided (to mirror the behavior
1136 of supply_register).
1137 (i387_supply_fxsave): Ditto.
1138 (i387_supply_fsave): Ditto (inherits the behavior from
1139 i387_supply_register).
1140
1141 2002-11-09 Klee Dienes <kdienes@apple.com>
1142
1143 * blockframe.c (sigtramp_saved_pc): Use
1144 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1145 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1146 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1147
1148 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1149
1150 * frame.c (get_prev_frame): Test prev_p to identify a previously
1151 unwound frame. Initialize prev_p.
1152 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1153 comment.
1154
1155 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1156
1157 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1158 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1159 more comments. Zap dead code.
1160
1161 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1162
1163 * infcmd.c (print_vector_info, print_float_info): Move code that
1164 checks whether the target has any registers and whether there is a
1165 selected frame up, such that it is also used if a target provides
1166 multi-arch definitions of these functions.
1167
1168 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1169
1170 * Makefile.in (DESTDIR): Define.
1171 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1172 prefix.
1173
1174 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1175 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1176
1177 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1178
1179 * i386-linux-tdep.c: Include "reggroups.h".
1180 (i386_linux_register_reggroup_p): New function.
1181 (i386_linux_init_abi): Set register_reggroup_p to
1182 i386_linux_register_reggroup_p.
1183 * i386-tdep.h (i386_register_reggroup_p): Declare.
1184 * i386-tdep.c: Include "reggroups.h".
1185 (i386_init_reggroups): New function.
1186 (i386_add_reggroups): New function.
1187 (i386_register_reggroup_p): New function.
1188 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1189 (_initialize_i386_tdep): Call i386_init_reggroups.
1190 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1191 specific reggroups.
1192
1193 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1194
1195 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1196 request that's available in *BSD.
1197
1198 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1199
1200 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1201 FDOFF_REGNUM.
1202
1203 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1204
1205 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1206 * dummy-frame.c (find_dummy_frame): Rename
1207 generic_find_dummy_frame, make static. Return the dummy frame
1208 instead of the regcache.
1209 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1210 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1211 (dummy_frame_register_unwind): Rename
1212 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1213 * dummy-frame.h (dummy_frame_register_unwind): Rename
1214 generic_call_dummy_register_unwind.
1215
1216 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1217
1218 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1219 except the inclusion of "i386/tm-i386.h", to...
1220 * config/i386/nm-i386v42mp.h: ...here.
1221 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1222
1223 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1224
1225 * Makefile.in (frame.o): Update dependencies.
1226 * blockframe.c (current_frame, frame_obstack_alloc)
1227 (frame_saved_regs_zalloc, get_current_frame)
1228 (set_current_frame, create_new_frame)
1229 (set_unwind_by_pc, get_next_frame)
1230 (flush_cached_frames, reinit_frame_cache)
1231 (frame_saved_regs_register_unwind)
1232 (deprecated_generic_get_saved_register)
1233 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1234 (_initialize_blockframe): Move frame code from here...
1235 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1236 "annotate.h" and "dummy-frame.h".
1237 (_initialize_frame): New function.
1238
1239 2002-11-08 Jim Blandy <jimb@redhat.com>
1240
1241 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1242 when we finish a function a context.
1243 * buildsym.h (outermost_context_p): New macro.
1244 (Bug analyzed by David Edelsohn.)
1245
1246 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1247
1248 * blockframe.c: Include "dummy-frame.h".
1249 (struct dummy_frame, dummy_frame_stack)
1250 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1251 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1252 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1253 (generic_save_call_dummy_addr, generic_pop_current_frame)
1254 (generic_pop_dummy_frame, generic_fix_call_dummy)
1255 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1256 dummy frame code from here...
1257 * dummy-frame.c: ...to here. New file.
1258 * dummy-frame.h: New file.
1259 (generic_call_dummy_register_unwind): Declare.
1260 (generic_find_dummy_frame): Declare.
1261 * Makefile.in (SFILES): Add dummy-frame.c.
1262 (dummy-frame.o): Specify dependencies.
1263 (dummy_frame_h): Define.
1264 (COMMON_OBS): Add dummy-frame.o.
1265 (blockframe.o): Update dependencies.
1266
1267 2002-11-08 Jim Blandy <jimb@redhat.com>
1268
1269 * dwarf2read.c (read_func_scope): Restore local_symbols and
1270 param_symbols after we finish the function context. (Based on a
1271 patch from David Edelsohn.)
1272
1273 2002-11-08 David Carlton <carlton@math.stanford.edu>
1274
1275 * linespec.c (symbol_found): New function.
1276 (minsym_found): New function.
1277 (decode_line_1): Separate out some code into separate functions.
1278
1279 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1280
1281 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1282 the benefit of the interix target.
1283 * i386-tdep.h (i386_frameless_signal_p): Declare.
1284
1285 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1286
1287 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1288 declaration that snuck in from change below.
1289
1290 2002-11-06 Andrew Cagney <cagney@redhat.com>
1291
1292 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1293 all callers.
1294 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1295 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1296 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1297 (i386_mxcsr_regnum_p): new function. Use instead of
1298 MXCSR_REGNUM_P.
1299 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1300 (i386_sse_regnum_p): Declare.
1301 (i386_mxcsr_regnum_p): Declare.
1302 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1303 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1304 (IS_FP_REGNUM): Update definition.
1305 (IS_FPU_CTRL_REGNUM): Update definition..
1306 (IS_SSE_REGNUM): Update definition..
1307 * i386v-nat.c (register_u_addr): Update.
1308 * go32-nat.c (fetch_register): Update.
1309 (store_register): Update.
1310
1311 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1312
1313 Preparation work to convert the hppa targets to multiarch partial.
1314
1315 * hppa-tdep.c: Add new functions replacing macro bodies from
1316 config/pa/tm-hppa.h. These function will be used to initialize
1317 the gdbarch structure. Import some comments from tm-hppa.h,
1318 and place them where appropriate, to avoid loosing them when
1319 we cleanup this file.
1320 (hppa_reg_struct_has_addr): New function.
1321 (hppa_inner_than): New function.
1322 (hppa_stack_align): New function.
1323 (hppa_pc_requires_run_before_use): New function.
1324 (hppa_instruction_nullified): New function.
1325 (hppa_register_byte): New function.
1326 (hppa_register_virtual_type): New function.
1327 (hppa_store_struct_return): New function.
1328 (hppa_cannot_store_register): New function.
1329 (hppa_frame_args_address): New function.
1330 (hppa_frame_locals_address): New function.
1331 (hppa_smash_text_address): New function.
1332 (hppa_coerce_float_to_double): New function. Requires the inclusion
1333 of "language.h".
1334
1335 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1336
1337 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1338 gdbarch-eligible macro to a call to the new associated function
1339 created in hppa-tdep.c.
1340 (INNER_THAN): Likewise.
1341 (STACK_ALIGN): Likewise.
1342 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1343 (INSTRUCTION_NULLIFIED): Likewise.
1344 (REGISTER_BYTE): Likewise.
1345 (REGISTER_VIRTUAL_TYPE): Likewise.
1346 (STORE_STRUCT_RETURN): Likewise.
1347 (CANNOT_STORE_REGISTER): Likewise.
1348 (FRAME_ARGS_ADDRESS): Likewise.
1349 (FRAME_LOCALS_ADDRESS): Likewise.
1350 (SMASH_TEXT_ADDRESS): Likewise.
1351 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1352 (ABOUT_TO_RETURN): Delete, as no longer used.
1353
1354 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1355
1356 * printcmd.c (disassemble_command): Remove obsolete function.
1357 (_initialize_printcmd): Do not create disassemble command here.
1358 * cli/cli-cmds.c (disassemble_command): New function. Implements
1359 disassemble command.
1360 (init_cli_cmds): Create disassemble command here instead.
1361
1362 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1363
1364 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1365
1366 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1367
1368 * regcache.h (regcache_cooked_read_using_offset_hack)
1369 (regcache_cooked_write_using_offset_hack): Delete declarations.
1370 (register_changed): Delete declaration.
1371 * regcache.c (regcache_cooked_read_using_offset_hack)
1372 (regcache_cooked_write_using_offset_hack): Delete functions.
1373 (cooked_xfer_using_offset_hack): Delete function.
1374 (register_changed): Delete function.
1375
1376 2002-11-07 Jim Blandy <jimb@redhat.com>
1377
1378 * macroscope.c: #include "complaints.h".
1379 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1380 but not in the macro table.
1381 * Makefile.in (macroscope.o): Record dependency.
1382
1383 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1384
1385 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1386
1387 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1388
1389 * regcache.c (deprecated_registers_fetched): Update.
1390 * regcache.h (deprecated_registers_fetched): Rename
1391 registers_fetched.
1392 * remote-vxsparc.c (vx_read_register): Update.
1393 * remote-vxmips.c (vx_read_register): Update.
1394 * remote-vx68.c (vx_read_register): Update.
1395 * irix5-nat.c (fetch_core_registers): Update.
1396 * mipsm3-nat.c (fetch_inferior_registers): Update.
1397 * sun3-nat.c (fetch_inferior_registers): Update.
1398 * symm-nat.c (fetch_inferior_registers): Update.
1399 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1400 (fetch_core_registers): Update.
1401 (fetch_kcore_registers): Update.
1402 * mips-nat.c (fetch_inferior_registers): Update.
1403 * corelow.c (get_core_registers): Update.
1404 * a68v-nat.c (fetch_inferior_registers): Update.
1405
1406 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1407
1408 Put in place the framework necessary for multiarching the hppa targets.
1409 * hppa-tdep.c (hppa_gdbarch_init): New function.
1410 (hppa_dump_tdep): New function.
1411 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1412 tdep structure dumper.
1413 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1414 until the multi-arching conversion has partially been completed.
1415
1416 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1417
1418 * valops.c (value_assign): Merge lval_register case into
1419 lval_reg_frame_relative. Use frame_register and
1420 regcache_cooked_write instead of get_saved_register and
1421 write_register_bytes. After flushing the register cache, try to
1422 re-select the selected frame.
1423
1424 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1425
1426 * regcache.h (deprecated_register_valid): Rename register_valid.
1427 * regcache.c: Update.
1428 * ia64-aix-nat.c: Update.
1429 * i386gnu-nat.c: Update.
1430 * alpha-nat.c: Update.
1431 * sparc-nat.c: Update.
1432 * lynx-nat.c: Update.
1433 * remote-mips.c: Update.
1434
1435 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1436
1437 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1438 to end of file, to be more consistent with the pratice followed
1439 by other targets.
1440
1441 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1442
1443 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1444 (print_float_info): Print registers in float_reggroup.
1445 (print_vector_info): Print registers in vector_reggroup.
1446 (default_print_registers_info): When all, print registers in
1447 all_reggroup. Otherwize, print registers in general_reggroup.
1448 (registers_info): Rewrite. Add support for register groups.
1449 Eliminate a goto.
1450
1451 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1452
1453 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1454 ages.
1455 (symtab_symbol_info): Remove eons old ifdeffed out code.
1456 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1457 command.
1458
1459 2002-11-06 Theodore A. Roth <troth@openavr.org>
1460
1461 * c-exp.y: Add missing semi-colons.
1462 * f-exp.y: Add missing semi-colons.
1463 * m2-exp.y: Add missing semi-colons.
1464 * p-exp.y: Add missing semi-colons.
1465 Add empty action to start rule to avoid a type clash error when
1466 building with bison >= 1.50.
1467
1468 2002-11-06 Jim Blandy <jimb@redhat.com>
1469
1470 * macrotab.h (struct macro_source_file): Doc fix.
1471
1472 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1473
1474 * varobj.c (child_exists, cplus_number_of_children): Change
1475 STREQ macro references to strcmp.
1476 (cplus_name_of_child): Change code to handle the fact that
1477 fields are not necessarily contiguous with regards to their
1478 access control. This is a fix for PR gdb/792.
1479
1480 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1481
1482 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1483 * gdbarch.h, gdbarch.c: Regnerate.
1484 * frame.h (frame_register): Declare.
1485 * frame.c (frame_register): New function.
1486 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1487 GET_SAVED_REGISTER, otherwize call
1488 generic_unwind_get_saved_register.
1489 (frame_register_read): Use frame_register instead of
1490 get_saved_register.
1491
1492 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1493
1494 From Jim Ingham <jingham@apple.com>:
1495 * event-top.c (gdb_disable_readline): New function.
1496 (_initialize_event_loop): Move comment.
1497
1498 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1499
1500 * event-loop.c (start_event_loop): Add comment.
1501 Update copyright.
1502
1503 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1504
1505 * infcmd.c (default_print_registers_info): Do not call
1506 PRINT_REGISTER_HOOK.
1507
1508 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1509
1510 * sparc-tdep.c (sparc_print_register_hook): Make static.
1511 (sparc_print_registers_info): New function.
1512 (sparc_do_registers_info): New function.
1513 (sparclet_print_registers_info): New function.
1514 (sparclet_do_registers_info): New function.
1515 (do_sparc_print_registers_info): New function.
1516 (sparc_print_registers): New static function, clone of infcmd.c's
1517 default_print_registers_info.
1518 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1519 (sparclet_do_registers_info): Declare.
1520 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1521 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1522 Re-define.
1523 (sparc_do_registers_info): Declare.
1524 (PRINT_REGISTER_HOOK): Delete macro.
1525 (sparc_print_register_hook): Delete declaration.
1526
1527 2002-11-05 David Carlton <carlton@math.stanford.edu>
1528
1529 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1530 functions.
1531 (lookup_symbol_aux_local): New function.
1532 (lookup_symbol_aux_symtabs): New function.
1533 (lookup_symbol_aux_psymtabs): New function.
1534
1535 2002-11-05 David Carlton <carlton@math.stanford.edu>
1536
1537 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1538 previous values of 'objfile' and 'block'.
1539
1540 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1541
1542 * values.c (value_change_enclosing_type): Set
1543 enclosing_type field correctly also for the case where
1544 more memory needs to be allocated.
1545
1546 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1547
1548 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1549 of puts_filtered.
1550
1551 * i387-tdep.c (i387_print_float_info): Replace calls to
1552 register_read and deprecated_read_register_gen with calls to
1553 frame_register_read, and make the necessary adjustments to the
1554 surrounding code.
1555
1556 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1557
1558 * gdbarch.sh (register_reggroup_p): Allow default value.
1559 * gdbarch.h, gdbarch.c: Regenerate.
1560
1561 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1562
1563 * regcache.h: Add coment indicating replacements for deprecated
1564 functions.
1565
1566 2002-11-02 Andrew Cagney <cagney@redhat.com>
1567
1568 * reggroups.h, reggroups.c: New files.
1569 * regcache.c: Include "reggroups.h".
1570 (enum regcache_dump_what): Add `regcache_dump_groups'.
1571 (regcache_dump): Contract size of the "Type" column. When
1572 specified, dump the register's groups.
1573 (maintenance_print_register_groups): New function.
1574 (_initialize_regcache): Add command `maint print register-groups'.
1575 * Makefile.in (COMMON_OBS): Add reggroups.o
1576 (SFILES): Add reggroups.c.
1577 (reggroups_h): Define.
1578 (regcache.o, gdbarch.o): Update dependencies.
1579 (reggroups.o): Specify dependencies.
1580 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1581 Add opaque declaration for `struct reggroup' in generated .h file.
1582 Include "reggroups.h" in generated .c file.
1583 gdbarch.h, gdbarch.c: Re-generate.
1584
1585 2002-11-02 Andrew Cagney <cagney@redhat.com>
1586
1587 * regcache.h (deprecated_read_register_gen): Rename
1588 read_register_gen.
1589 (deprecated_write_register_gen): Rename write_register_gen.
1590 * i387-tdep.c: Update.
1591 * x86-64-linux-nat.c: Update
1592 * wince.c: Update.
1593 * thread-db.c: Update.
1594 * win32-nat.c: Update.
1595 * mips-tdep.c: Update.
1596 * d10v-tdep.c: Update.
1597 * cris-tdep.c: Update.
1598 * remote-sim.c: Update.
1599 * remote-rdi.c: Update.
1600 * remote-rdp.c: Update.
1601 * frame.c: Update.
1602 * target.c: Update.
1603 * blockframe.c: Update.
1604 * x86-64-tdep.c: Update.
1605 * xstormy16-tdep.c: Update.
1606 * sh-tdep.c: Update.
1607 * s390-tdep.c: Update.
1608 * rs6000-tdep.c: Update.
1609 * sparc-tdep.c: Update.
1610 * i386-tdep.c: Update.
1611 * dwarf2cfi.c: Update.
1612 * regcache.c: Update.
1613
1614 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1615
1616 New interix-specific files:
1617 * config/i386/nm-interix.h: New file.
1618 * config/i386/interix.mh: New file.
1619 * config/i386/interix.mt: New file.
1620 * i386-interix-nat.c: New file.
1621 * i386-interix-tdep.c: New file.
1622
1623 2002-11-01 Andrew Cagney <cagney@redhat.com>
1624
1625 * frame.h (deprecated_generic_get_saved_register): Rename
1626 generic_get_saved_register.
1627 * blockframe.c (deprecated_generic_get_saved_register): Update.
1628 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1629 (xstormy16_frame_saved_register): Update.
1630 * sh-tdep.c (sh_gdbarch_init): Update.
1631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1632 * ia64-tdep.c (ia64_get_saved_register): Update.
1633 * cris-tdep.c (cris_gdbarch_init): Update.
1634 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1635 * arm-tdep.c (arm_gdbarch_init): Update.
1636
1637 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1638
1639 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1640
1641 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1642
1643 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1644 trampolines in sigaction.
1645
1646 2002-10-31 Andrew Cagney <cagney@redhat.com>
1647
1648 * h8300-tdep.c: Include "gdb_assert.h".
1649 (h8300_print_register): Add gdbarch, file and frame parameters.
1650 Use frame_read_unsigned_register to read the register's value.
1651 Use fprintf_filtered to display output.
1652 (h8300_print_registers_info): Replace h8300_do_registers_info.
1653 (h8300_gdbarch_init): Set print_registers_info.
1654
1655 2002-10-31 Andrew Cagney <cagney@redhat.com>
1656
1657 * frame.c (frame_read_unsigned_register): New function.
1658 (frame_read_signed_register): New function.
1659 * frame.h (frame_read_unsigned_register): Declare.
1660 (frame_read_signed_register): Declare.
1661
1662 2002-10-31 Andrew Cagney <cagney@redhat.com>
1663
1664 * h8500-tdep.c (h8500_print_registers_info): New static function,
1665 clone of infcmd.c's default_print_registers_info.
1666 (h8500_do_registers_info): New funtion.
1667 (h8500_print_register_hook): Rename print_register_hook, make
1668 static.
1669
1670 * config/h8500/tm-h8500.h: Update copyright.
1671 (DEPRECATED_DO_REGISTERS_INFO): Define.
1672 (h8500_do_registers_info: Declare.
1673 (PRINT_REGISTER_HOOK): Delete macro.
1674 (print_register_hook): Delete function.
1675
1676 2002-10-31 Andrew Cagney <cagney@redhat.com>
1677
1678 * z8k-tdep.c (z8k_print_register_hook): Make static.
1679 (z8k_print_registers_info): New static function, clone of
1680 infcmd.c's default_print_registers_info.
1681 (z8k_do_registers_info): New function. Wrap
1682 z8k_print_registers_info.
1683 * config/z8k/tm-z8k.h: Update copyright.
1684 (PRINT_REGISTER_HOOK): Delete macro.
1685 (z8k_print_register_hook): Delete declaration.
1686 (DEPRECATED_DO_REGISTERS_INFO): Define.
1687 (z8k_do_registers_info): Declare.
1688
1689 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1690
1691 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1692 as this is already provided by value.h, and was actually causing
1693 a compilation error because of a conflict in parameter type
1694 declaration due to a missing const keyword.
1695 (low_text_segment_addres): Fix a compilation warning.
1696
1697 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1698
1699 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1700 registers without a name.
1701 (mips_linux_cannot_store_register): Don't store registers without
1702 a name.
1703
1704 2002-10-28 David Carlton <carlton@math.stanford.edu>
1705
1706 * symtab.c (find_addr_symbol): Delete. (It was already commented
1707 out.)
1708 * symtab.h: Delete prototype for find_addr_symbol.
1709
1710 2002-10-26 Andrew Cagney <cagney@redhat.com>
1711
1712 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1713 DO_REGISTERS_INFO.
1714 gdbarch.h, gdbarch.c: Re-generate.
1715 * infcmd.c (default_print_registers_info): Update reference.
1716 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1717 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1718 * sh-tdep.c (sh_gdbarch_init): Ditto.
1719 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1720 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1721
1722 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1723
1724 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1725 cfi_init_extra_frame_info.
1726 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1727 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1728
1729 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1730 target where necessary. Add more comments and remove the ones
1731 that don't provide any useful information.
1732
1733 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1734 deprecated_read_register_dummy with
1735 frame_unwind_unsigned_register.
1736
1737 * i386-tdep.c (i386_extract_struct_value_address): Use
1738 regcache_raw_read_unsigned instead of
1739 regcache_cooked_read_unsigned since we know that the register
1740 we're reading isn't a pseudo register. Rename variable 'val' into
1741 the more descriptive 'addr'.
1742
1743 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1744 (x86_64_push_return_address): Add comment.
1745 (x86_64_pop_frame): Make static.
1746 (examine_argument): Clarify comment.
1747 (x86_64_skip_prologue): Make prolog_expact variable static.
1748
1749 * dwarf2cfi.c: Fix some formatting problems.
1750 (context_cpy, read_encoded_pointer): Clarify comments.
1751
1752 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1753 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1754 i386 target back into x86_64_gdbarch_init. Add some comments and
1755 remove meaningless ones.
1756
1757 2002-10-25 Andrew Cagney <cagney@redhat.com>
1758
1759 * complaints.h (struct deprecated_complaint): Rename `struct
1760 complaint'.
1761 * complaints.c (complain): Update.
1762 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1763 incorrect comment indicating that "symfile.h" was being included
1764 for the `struct complaint' definition.
1765 * remote-vx.c: Update.
1766 * objc-lang.c: Update.
1767 * xcoffread.c: Update.
1768 * hpread.c: Update.
1769 * mdebugread.c: Update.
1770 * stabsread.c: Update.
1771 * dwarf2read.c: Update.
1772 * dwarfread.c: Update.
1773 * elfread.c: Update.
1774 * coffread.c: Update.
1775 * stabsread.h: Update.
1776 * dbxread.c: Update.
1777 * buildsym.c: Update.
1778 * gdbtypes.c: Update.
1779 * macrotab.c: Update.
1780
1781 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1782
1783 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1784 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1785 (x86_64_init_abi): ...new function.
1786
1787 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1788 * i386v-nat.c: Include "i386-tdep.h".
1789
1790 2002-10-25 Andrew Cagney <cagney@redhat.com>
1791
1792 * gdbtypes.c (address_space_name_to_int): Update.
1793 (address_space_int_to_name): Update.
1794 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1795 multi-arch predicate.
1796 (address_class_name_to_type_flags): Ditto.
1797 * gdbarch.h, gdbarch.c: Re-generate.
1798
1799 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1800
1801 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1802
1803 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1804
1805 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1806
1807 * symtab.h (INIT_SAL): Delete macro.
1808 (init_sal): Export.
1809 * symtab.c (init_sal): New function.
1810
1811 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1812 to init_sal function call.
1813 (find_sal_from_funcs_and_line): Ditto.
1814 (all_sals_for_line): Ditto.
1815 * breakpoint.c (create_internal_breakpoint): Ditto.
1816 (create_fork_vfork_event_catchpoint): Ditto.
1817 (create_exec_event_catchpoint): Ditto.
1818 (parse_breakpoint_sals): Ditto.
1819 (watch_command_1): Ditto.
1820 (handle_gnu_4_16_catch_command): Ditto.
1821 (clear_command): Ditto.
1822 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1823 * infcmd.c (run_stack_dummy): Ditto.
1824 * infrun.c (process_event_stop_test): Ditto.
1825 (check_sigtramp2): Ditto.
1826 (step_over_function): Ditto.
1827 * linespec.c (decode_line_2): Ditto.
1828 (decode_line_1): Ditto.
1829 * source.c (line_info): Ditto.
1830 * symtab.c (find_pc_sect_line): Ditto.
1831
1832 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1833
1834 * dwarf2cfi.c (struct context)
1835 (struct context_reg): Moved to dwarf2cfi.h
1836 (context_alloc, frame_state_alloc, context_cpy):
1837 Made extern instead of static, removed prototypes.
1838 * dwarf2cfi.h (struct context)
1839 (struct context_reg): New, moved from dwarf2cfi.c
1840 (context_alloc, frame_state_alloc, context_cpy):
1841 New prototypes.
1842 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1843 Changed from static to extern.
1844 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1845 (LINUX_SIGCONTEXT_FP_OFFSET)
1846 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1847 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1848 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1849 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1850 set_gdbarch_*() calls now use x86-64 specific functions
1851 instead of DWARF2 CFI ones.
1852 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1853 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1854 (x86_64_init_extra_frame_info): New prototypes.
1855
1856 2002-10-23 David Carlton <carlton@math.stanford.edu>
1857
1858 * linespec.c: #include "parser-defs.h".
1859 Delete prototype for find_template_name_end.
1860 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1861
1862 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1863
1864 * NEWS: add recent mi fixes.
1865 * varobj.c (struct varobj): Add new "updated" flag.
1866 (new_variable): Default "updated" flag to 0.
1867 (varobj_set_value): Set "updated" flag to 1 if value
1868 changes.
1869 (varobj_update): Check varobj "updated" flag before
1870 comparing old and refreshed values. Fix for
1871 PR gdb/702.
1872
1873 2002-10-23 David Carlton <carlton@math.stanford.edu>
1874
1875 * parse.c (parse_exp_1): Use BLOCK_START.
1876 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1877 SYMBOL_BLOCK_VALUE.
1878 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1879
1880 2002-10-23 David Carlton <carlton@math.stanford.edu>
1881
1882 * symtab.c: Delete cplusplus_hint.
1883 Delete prototype for find_template_name_end.
1884
1885 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1886
1887 * symtab.h: Update comment.
1888
1889 2002-10-23 Michael Snyder <msnyder@redhat.com>
1890
1891 * printcmd.c (address_info): Restore quotes in output.
1892 * valops.c (value_of_local): Restore quotes in error message.
1893
1894 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1895
1896 * symtab.c (symbol_demangled_name): New function.
1897 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1898 turning most of it into a function.
1899 (symbol_demangled_name): Export.
1900
1901 2002-10-23 Michael Snyder <msnyder@redhat.com>
1902
1903 * valops.c (value_of_local): Restore quotes in error message.
1904
1905 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1906
1907 * symtab.c (symbol_init_language_specific): New function.
1908 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1909 turning most of it into a function.
1910 (symbol_init_language_specific): Export.
1911
1912 2002-10-23 David Carlton <carlton@math.stanford.edu>
1913
1914 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1915 (dwarf_attr_name): Ditto.
1916 (dwarf_type_encoding_name): Ditto.
1917 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1918 (process_die): Handle DW_TAG_namespace,
1919 DW_TAG_imported_declaration, DW_TAG_imported_module.
1920 (read_namespace): New function.
1921
1922 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1923
1924 * configure.in: Define NEW_PROC_API on Interix too.
1925 * configure: Regenerate.
1926
1927 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1928
1929 * configure: Regenerate using the proper version of autoconf.
1930
1931 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1932
1933 * findvar.c (read_var_value): Temporarily disable TLS code, until
1934 complete TLS support is added.
1935
1936 2002-10-21 Jim Blandy <jimb@redhat.com>
1937 Elena Zannoni <ezannoni@redhat.com>
1938
1939 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1940 for thread local storage locations.
1941 (struct symbol): Add objfile field.
1942 (SYMBOL_OBJFILE): Define.
1943 * dwarf2read.c (is_thread_local): New static variable.
1944 (new_symbol): If variable is in thread local fill in address class
1945 and objfile appropriately.
1946 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1947 stack operation.
1948 * printcmd.c (address_info): Print the information for thread
1949 local storage variable.
1950 * findvar.c (read_var_value): In case of thread local variable,
1951 defer to the target vector code to compute address.
1952
1953 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1954
1955 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1956 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1957
1958 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1959
1960 * symtab.h (address_class): Rename
1961 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1962 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1963 * printcmd.c (address_info): Ditto.
1964 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1965
1966 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1967
1968 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1969 DBREG_DRX macro to acces debug registers.
1970
1971 * Makefile.in (i386obsd-tdep.o): New target.
1972
1973 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1974 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1975
1976 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1977 * config/i386/obsd.mt: New file.
1978 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1979 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1980 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1981 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1982 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1983 * i386obsd-tdep.c: New file.
1984
1985 2002-10-19 Adam Fedor <fedor@gnu.org>
1986
1987 * objc-exp.y (name_not_typename): Fix invalid comment.
1988
1989 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1990
1991 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1992 to allocate partial syms and macro byte caches.
1993
1994 2002-10-18 David Carlton <carlton@math.stanford.edu>
1995
1996 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1997
1998 2002-10-18 Adam Fedor <fedor@gnu.org>
1999
2000 * stabsread.c (find_name_end): New function.
2001 (define_symbol): Use it.
2002
2003 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2006 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2007 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2008 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2009
2010 2002-10-17 David Carlton <carlton@math.stanford.edu>
2011
2012 * symfile.h: Add opaque declaration for struct obstack.
2013 Declare obsavestring to take a const char *.
2014 * symfile.c (obsavestring): Make first argument a const char *.
2015
2016 2002-10-16 Adam Fedor <fedor@gnu.org>
2017
2018 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2019 names when matching breakpoints in current file.
2020
2021 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2022
2023 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2024 (read_tag_pointer_type): Add address class support.
2025 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2026 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2027 New methods.
2028 * gdbarch.h, gdbarch.c: Regenerate.
2029 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2030 (make_type_with_address_space, recursive_type_dump): Add address
2031 class support.
2032 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2033 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2034 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2035
2036 2002-10-16 Klee Dienes <kdienes@apple.com>
2037
2038 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2039 to get the last character of a char[] buffer, not
2040 name[sizeof(vptr_name)-1].
2041
2042 2002-10-14 Adam Fedor <fedor@gnu.org>
2043
2044 * symtab.h: New objc_specific struct.
2045 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2046 (SYMBOL_DEMANGLED_NAME): Likewise.
2047
2048 2002-10-14 Adam Fedor <fedor@gnu.org>
2049
2050 * symfile.c (init_filename_language_table): Add ObjC file extension.
2051
2052 2002-10-14 Adam Fedor <fedor@gnu.org>
2053
2054 * utils.c (puts_filtered_tabular): New function.
2055 (fprintf_symbol_filtered): Get ObjC demangled name.
2056 * defs.h (puts_filtered_tabular): Declared.
2057
2058 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2059
2060 * c-lang.h (c_type_print_varspec_prefix): Delete.
2061 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2062 ``need_post_space'' parameter. Adjust all callers.
2063
2064 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2065
2066 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2067 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2068 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2069 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2070
2071 2002-10-13 Adam Fedor <fedor@gnu.org>
2072
2073 * source.c (print_source_lines): Update comments.
2074
2075 2002-10-13 Adam Fedor <fedor@gnu.org>
2076
2077 * valops.c (value_of_local): New function.
2078 (value_of_this): Use it.
2079 * value.h (value_of_local): Declared.
2080
2081 2002-10-13 Adam Fedor <fedor@gnu.org>
2082
2083 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2084 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2085
2086 2002-10-12 Adam Fedor <fedor@gnu.org>
2087
2088 * language.c (binop_result_type): Add language_objc to case.
2089 (integral_type): Likewise.
2090 (character_type): Likewise.
2091 (string_type): Likewise.
2092 (boolean_type): Likewise.
2093 (structured_type): Likewise.
2094 (binop_type_check): Likewise.
2095
2096 2002-10-11 Adam Fedor <fedor@gnu.org>
2097
2098 * printcmd.c (address_info): Print 'self' for ObjC.
2099
2100 2002-10-11 Adam Fedor <fedor@gnu.org>
2101
2102 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2103 OP_SELF.
2104
2105 2002-10-11 Adam Fedor <fedor@gnu.org>
2106
2107 * language.h (CAST_IS_CONVERSION): Add language_objc.
2108
2109 2002-10-11 Adam Fedor <fedor@gnu.org>
2110
2111 * defs.h (enum language): Add language_objc.
2112
2113 2002-10-11 Klee Dienes <kdienes@apple.com>
2114
2115 * corefile.c (read_memory_typed_address): New function.
2116 * gdbcore.h (read_memory_typed_address): Add prototype.
2117 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2118 to read a value destined for a CORE_ADDR, not read_memory_integer.
2119 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2120 (f77_get_dynamic_lowerbound): Ditto.
2121
2122 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2123
2124 * utils.c (string_to_core_addr): After turning string into
2125 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2126 which will do necessary sign-extension, etc.
2127
2128 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2129
2130 * c-exp.y (THIS): Delete token and grammar rule.
2131 (yylex): Don't return THIS.
2132 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2133 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2134 * demangle.c (cplus_markers): Update comment. Put '$'
2135 first. Remove CPLUS_MARKER.
2136 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2137 * jv-exp.y (THIS): Delete token and grammar rule.
2138 (yylex): Don't return THIS.
2139 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2140 * objc-exp.y (THIS): Delete token and grammar rule.
2141 (yylex): Don't return THIS.
2142 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2143 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2144 (read_member_functions): Likewise for opname.
2145 (read_tilde_fields): Use is_cplus_marker.
2146
2147 * defs.h (CPLUS_MARKER): Don't define.
2148 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2149 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2150 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2151 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2152 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2153
2154 * config/i386/tm-i386v4.h: Delete file.
2155 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2156 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2157 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2158 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2159 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2160 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2161 * config/i386/i386v4.mt (TM_FILE): Likewise.
2162 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2163
2164 2002-10-10 Marko Mlinar <markom@opencores.org>
2165
2166 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2167 accidentially not commited 2002-10-09
2168 * gdbarch.h, gdbarch.c: Re-generate.
2169
2170 2002-10-09 Marko Mlinar <markom@opencores.org>
2171
2172 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2173 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2174 * gdbarch.h, gdbarch.c: Re-generate.
2175
2176 2002-10-08 Petr Sorfa <petrs@caldera.com>
2177
2178 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2179
2180 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2181 so we can work on more than one compilation unit at a time. This
2182 helps prepare GDB to handle inter-CU die references.
2183 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2184 the code to be defined before struct comp_unit_head.
2185 (comp_unit_head): Added new members - offset, cu_head,
2186 begin_die, next and dwarf2_abbrevs.
2187 (dwarf2_abbrevs): Removed single static var; now member of
2188 struct comp_unit_head.
2189 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2190 members.
2191 (psymtab_to_symtab_1): Changed to work with the new
2192 struct comp_unit_head.
2193 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2194 constructs the dwarf2_abbrevs[] inside the cu_header.
2195 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2196 dwarf2_abbrev table to clean up.
2197 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2198 handling of dwarf2_abbrevs inside the cu_header.
2199 (read_partial_die): Now supports the call to the new
2200 dwarf2_lookup_abbrev.
2201 (read_full_die): Now supports the call to the new
2202 dwarf2_lookup_abbrev.
2203
2204 2002-10-06 Christopher Faylor <cgf@redhat.com>
2205
2206 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2207 insure that shell variables, such as "transformed_name" are propagated
2208 to later shell statements in rule.
2209
2210 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2211
2212 * config/i386/nm-i386sco.h: Add protection against
2213 multiple-inclusion. Include "i386/nm-i386v.h".
2214 (REGISTER_U_ADDR): Remove define.
2215 (i386_register_u_addr): Remove prototype.
2216
2217 2002-10-04 Michael Snyder <msnyder@redhat.com>
2218
2219 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2220 before treating it as a single-step event.
2221
2222 2002-10-03 Adam Fedor <fedor@gnu.org>
2223
2224 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2225 (objc_demangle): Remove assignment in if statements, Replace
2226 free with xfree.
2227 (add_msglist): Likewise.
2228 (end_msglist): Likewise.
2229 (complare_selectors): Likewise.
2230 (selectors_info): Likewise.
2231 (compare_classes): Likewise.
2232 (classes_info): Likewise.
2233 (print_object_command): Likewise.
2234 (find_objc_msgcall_submethod): Replace PTR with void *.
2235 * objc-lang.h: Remove check for __STDC__.
2236
2237 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2238
2239 * ui-out.h (ui_out_field_fmt_int): New prototype.
2240 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2241 of field width and alignment.
2242 * stack.c (print_frame_info_base): When printing frame level, use
2243 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2244 PR gdb/192
2245
2246 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2247
2248 * MAINTAINERS: Add self to Write After Approval list.
2249
2250 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2251
2252 * infcmd.c (interrupt_target_command_wrapper): Delete.
2253 (interrupt_target_command): Make non static.
2254 (nofp_registers_info): Make static.
2255 * stack.c (return_command_wrapper): Delete.
2256 (return_command): Make non static.
2257
2258 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2259
2260 * event-top.c (gdb_setup_readline): New function. Code moved from
2261 _initialize_event_loop().
2262 (_initialize_event_loop): Call gdb_setup_readline().
2263
2264 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2265
2266 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2267 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2268 * gdbarch.h, gdbarch.c: Re-generate.
2269
2270 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2271
2272 Fix PR gdb/778
2273 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2274 before recursing.
2275 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2276 of fill_in_vptr_fieldno.
2277
2278 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2279
2280 * inferior.h (registers_info, stepi_command, nexti_command,
2281 continue_command, interrupt_target_command): Export from infcmd.c.
2282 * frame.h (args_info, selected_frame_level_changed_hook,
2283 return_command): Export from stack.c.
2284 * v850ice.c (stepi_command, nexti_command, continue_command): use
2285 prototypes from inferior.h.
2286 * tracepoint.c (registers_info, args_info, locals_info): Use
2287 prototypes from frame.h and inferior.h.
2288 * Makefile.in (mi-main.o): Add dependency on frame.h.
2289
2290 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2291
2292 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2293 value in register 3 adjusted by ppc_gp0_regnum.
2294
2295 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2296
2297 2002-10-02 Marko Mlinar <markom@opencores.org>
2298
2299 * MAINTAINERS: Add myself to the Write After Approval list.
2300
2301 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2302
2303 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2304 of the section for the N64 ABI, fixed.
2305
2306 * config/mips/tm-irix6.h: Include solib.h.
2307
2308 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2309
2310 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2311 GNU operators.
2312
2313 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2314
2315 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2316 and that "mi0" syntax has been removed.
2317
2318 2002-09-30 David Carlton <carlton@math.stanford.edu>
2319
2320 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2321 * ppc-sysv-tdep.c: #include "gdb_string.h".
2322 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2323 pacify GCC.
2324
2325 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2326
2327 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2328 "vrsave"'s register number.
2329
2330 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2331
2332 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2333 use frame_unwind_signed_register to obtain the PC.
2334 (mips_frame_chain): Handle a generic dummy frame.
2335 (mips_init_extra_frame_info): When a generic dummy frame, don't
2336 re-compute the frame base.
2337 (mips_pop_frame): Handle generic dummy frames.
2338 (mips_gdbarch_init): When generic dummy frames, set
2339 use_generic_dummy_frames, push_dummy_frame to
2340 generic_push_dummy_frame, pc_in_call_dummy to
2341 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2342 generic_save_dummy_frame_tos.
2343
2344 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2345
2346 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2347 against TOP when TOP was explictly set.
2348 (generic_push_dummy_frame): Set TOP to zero.
2349
2350 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2351
2352 * event-loop.c (start_event_loop): Rename variable 'result' to
2353 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2354
2355 2002-09-30 Keith Seitz <keiths@redhat.com>
2356
2357 * gdb-events.sh (selected_thread_changed): New event.
2358 * gdb-events.c: Regenerated.
2359 * gdb-events.h: Regenerated.
2360
2361 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2362
2363 * MAINTAINERS: Add self to Write After Approval list.
2364
2365 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2366
2367 * disasm.c: New file.
2368 * disasm.h: New file.
2369 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2370 (compare_lines): Ditto.
2371 (dump_insns): Ditto.
2372 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2373 argument.
2374 (do_assembly_only): Ditto.
2375 (do_disassembly): Renamed to gdb_disassembly and moved to
2376 disasm.c. Sdded uiout argument.
2377 * Makefile.in: Add new files. Reorder SFILES list. Update
2378 dependencies. Include libgdb.a later in the insight executable.
2379
2380 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2381
2382 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2383 bfd/elf64-alpha-fbsd.c.
2384
2385 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2386
2387 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2388 i386gnu-tdep.c.
2389
2390 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2391
2392 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2393 __FUNCTION__.
2394 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2395 function name.
2396 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2397 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2398 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2399 (S_msg_sig_post_reply): Ditto.
2400
2401 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2402
2403 * sh-tdep.c (sh_use_struct_convention): Use definition according
2404 to ABI.
2405 (sh_push_arguments): Store in register with correct endianess.
2406 (sh_default_store_return_value): Ditto.
2407 (sh_gdbarch_init): Set sizeof long double to 8.
2408
2409 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2410
2411 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2412 Fix some whitespace problems.
2413
2414 2002-09-27 David Carlton <carlton@math.stanford.edu>
2415
2416 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2417 (mcore-tdep.o): Ditto.
2418 (ns32k-tdep.o): Ditto.
2419 (ns32knbsd-tdep.o): Ditto.
2420 (sh3-rom.o): Ditto.
2421 (vax-tdep.o): Ditto.
2422 * cris-tdep.c: #include "gdb_string.h"
2423 * mcore-tdep.c: Ditto.
2424 * ns32k-tdep.c: Ditto.
2425 * ns32knbsd-tdep.c: Ditto.
2426 * sh3-rom.c: Ditto.
2427 * vax-tdep.c: Ditto.
2428
2429 2002-09-27 David Carlton <carlton@math.stanford.edu>
2430
2431 * config/djgpp/fnchange.lst: Add entries for
2432 gdb/testsuite/gdb.c++/m-static files.
2433
2434 2002-09-27 Jim Wilson <wilson@redhat.com>
2435
2436 * MAINTAINERS: Add myself to the Write After Approval list.
2437
2438 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2439
2440 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2441
2442
2443 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2444
2445 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2446 frame.
2447
2448 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2449
2450 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2451 (rs6000_struct_return_address): Delete variable.
2452 (rs6000_store_struct_return): Update.
2453 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2454 deprecated_extract_struct_value_address.
2455 (rs6000_frame_align): New function.
2456 (rs6000_gdbarch_init): Set frame_align.
2457
2458 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2459
2460 From Grace Sainsbury <graces@redhat.com>:
2461 * Makefile.in (gdbtk-main.o): New target.
2462 (gdb.o): New target.
2463 (main_h): Define.
2464 (main.o): Update dependencies.
2465 (gdb$(EXEEXT)): Add gdb.o.
2466 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2467 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2468 (SUBDIR_GDBTK_CLEAN): Set.
2469 (install-gdbtk): Install the insight binary.
2470 (uninstall-gdbtk): New target.
2471 (all-gdbtk, clean-gdbtk): New rule.
2472 * top.c (use_windows): Default to zero.
2473 * main.c: Include "main.h".
2474 (main): Delete.
2475 (struct captured_main_args): Delete.
2476 (gdb_main): New function.
2477 * main.h: New file.
2478 * gdb.c: New File.
2479
2480 2002-09-25 Andrew Cagney <cagney@redhat.com>
2481
2482 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2483 (frame_map_regnum_to_name): New function.
2484 (frame_map_name_to_regnum): New function.
2485 * frame.h (frame_map_name_to_regnum): Declare.
2486 (frame_map_regnum_to_name): Declare.
2487 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2488 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2489 * parse.c: Do not include "builtin-regs.h".
2490 (target_map_name_to_register): Delete function.
2491 (write_dollar_variable): Use frame_map_name_to_regnum.
2492 * parser-defs.h (target_map_name_to_register): Delete declaration.
2493 * expprint.c: Include "frame.h".
2494 (print_subexp): Use frame_map_regnum_to_name.
2495 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2496 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2497
2498 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2499
2500 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2501 wasn't saved, and the next innermost frame is a dummy, return the
2502 dummy frame's link register.
2503
2504 2002-09-24 Jim Blandy <jimb@redhat.com>
2505
2506 Fix from Paul Breed:
2507 * main.c (captured_main): Add a `break' after the case for 'b'.
2508
2509 2002-09-24 Keith Seitz <keiths@redhat.com>
2510
2511 * varobj.c (c_type_of_child): Use get_target_type instead
2512 of TYPE_TARGET_TYPE.
2513
2514 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2515
2516 * source.c (get_current_or_default_source_symtab_and_line): Remove
2517 function.
2518 (set_default_source_symtab_and_line): New function. Attempts to
2519 determine a source file to list lines from if one is not currently
2520 defined.
2521 (get_current_source_symtab_and_line): Initialize sal.pc and
2522 sal.end fields.
2523 (set_current_source_symtab_and_line): Mark argument as const.
2524 * source.h: Update declarations and comments.
2525 * linespec.c (decode_line_1): Replace call to removed routine above.
2526 * stack.c (print_frame_info_base): Ditto.
2527 * cli/cli-cmds.c (edit_command): Ditto.
2528 (list_command): Ditto.
2529
2530 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2531
2532 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2533 sal.pc and sal.end fields.
2534 (get_current_or_default_source_symtab_and_line): Ditto.
2535 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2536 so we do not cause a new source symtab to be searched for (reverting an
2537 unintentional change from the 2002-09-20 patch).
2538 * scm-lang.c (scm_unpac): Ditto.
2539
2540 2002-09-21 Andrew Cagney <cagney@redhat.com>
2541
2542 * complaints.c (symfile_explanations): Remove new-line from
2543 ``isolated_message''.
2544 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2545 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2546
2547 2002-09-20 Nick Clifton <nickc@redhat.com>
2548
2549 * NEWS: Announce that V850EA ISA is no longer supported.
2550 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2551
2552 2002-09-20 David Carlton <carlton@math.stanford.edu>
2553
2554 * Makefile.in (c-lang.o): Correct dependencies.
2555 (utils.o): Gather dependencies.
2556 (charset.o): Move.
2557 * c-lang.c: #include "gdb_string.h"
2558
2559 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2560
2561 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2562 * cli/cli-cmds.c (list_command): New function. Implements the new
2563 cli edit command.
2564 (_init_cli_cmds): Add new command definition.
2565 * gdb.1: Document edit command.
2566 * doc/gdb.texinfo: Document edit command.
2567
2568 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2569
2570 * source.c: Make global variables current_source_symtab and
2571 current_source_line static.
2572 (list_command): Moved to cli/cli-cmds.c.
2573 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2574 (get_first_line_listed): New accessor function.
2575 (get_lines_to_list): New accessor function.
2576 (get_current_source_symtab_and_line): New function. Retrieves the
2577 position in the source code that we consider current.
2578 (get_current_or_default_source_symtab_and_line): New function.
2579 Like the above but attempts to determine a default position if one
2580 is not currently defined.
2581 (set_current_source_symtab_and_line): New function. Sets the source
2582 code position considered current and returns the previously set one.
2583 (clear_current_source_symtab_and_line): Reset stored information about
2584 a current source line.
2585 (_initialize_source): Remove registration for the "list" command and
2586 its alias.
2587 * source.h: Add declarations for the new functions above.
2588 * symtab.h: Remove declarations for the global variables mentioned
2589 above.
2590 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2591 obtain current source line.
2592 * linespec.c (decode_line_1): Ditto.
2593 * macroscope.c (default_macro_scope): Ditto.
2594 * scm-lang.c (scm_unpac): Ditto.
2595 * stack.c (print_frame_info_base): Ditto.
2596 * symfile.c (clear_symtab_users): Ditto.
2597 * symtab.c (decode_line_spec): Ditto.
2598 * cli/cli-cmds.c (list_command): Moved here from source.c.
2599 (ambiguous_line_spec): Moved here from source.c.
2600 (_init_cli_cmds): Add definition for "list" and its alias.
2601 * Makefile.in: Update dependencies.
2602
2603 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2604
2605 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2606 with what gcc thinks is correct.
2607
2608 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2609
2610 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2611 multiple register push instruction.
2612
2613 2002-09-19 Jim Blandy <jimb@redhat.com>
2614
2615 Add support for distinct host and target character sets.
2616 * charset.c, charset.h: New files.
2617 * c-exp.y: #include "charset.h".
2618 (yylex): Convert character and string literals to the target
2619 character set, before returning them as the semantic value of the
2620 token.
2621 * c-lang.c: #include "charset.h".
2622 (c_emit_char): Use charset-specific methods to recognize
2623 characters with backslash escape forms, to decide which characters
2624 to print literally and which to print using numeric escape
2625 sequences, and to convert target characters to host characters
2626 before printing.
2627 * utils.c: #include "charset.h".
2628 (no_control_char_error): New function.
2629 (parse_escape): Use charset-specific methods to recognize
2630 backslash escapes, parse `control character' notation, and convert
2631 characters from the host character set to the target character set.
2632 * configure.in: Set the default host character set.
2633 Check where to find iconv, and what its argument types might be.
2634 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2635 * Makefile.in (SFILES): List charset.c.
2636 (COMMON_OBS): List charset.o.
2637 (charset.o): New rule.
2638 (charset_h): New header dependency variable.
2639 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2640 (LIBICONV): New variable, set by configure.
2641 (CLIBS): Include $(LIBICONV) here.
2642 * aclocal.m4, config.in, configure: Regenerated.
2643
2644 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2645
2646 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2647 bison 1.35 warning.
2648
2649 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2650
2651 * gdb_mbuild.sh: New file.
2652
2653 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2654
2655 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2656
2657 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2658
2659 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2660 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2661 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2662 valops.c, value.h: Revert previous change.
2663
2664 2002-09-18 Michael Snyder <msnyder@redhat.com>
2665
2666 Preliminary support for Objective-C:
2667 * defs.h (language_objc): New enum value.
2668 (puts_filtered_tabular): Declaration only, exported from utils.c.
2669 (skip_quoted): Delete, declared in completer.h.
2670 * c-exp.y: Include completer.h.
2671 * p-exp.y: Ditto.
2672 * jv-exp.y: Ditto.
2673 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2674 New operator enum values.
2675 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2676 * language.c (binop_result_type): Handle language_objc case.
2677 (integral_type, character_type, string_type, boolean_type,
2678 structured_type, binop_type_check): Ditto.
2679 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2680 (struct objc_specific): Add to general_symbol_info.
2681 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2682 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2683 * parser-defs.h (struct objc_class_str): New struct type.
2684 (start_msglist, end_msglist, add_msglist): Declaration only,
2685 exported from objc-lang.c.
2686 * value.h (value_of_local, value_nsstring,
2687 call_function_by_hand_expecting_type): Exported from valops.c.
2688 * valops.c (find_function_addr): Export.
2689 (call_function_by_hand_expecting_type): New function.
2690 (value_of_local): New function.
2691 * symfile.c (init_filename_language_table): Add ".m" extension
2692 for Objective-C.
2693 * utils.c (puts_filtered_tabular): New function.
2694 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2695 (set/show demangle): Extend help-string to refer to ObjC.
2696 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2697 * stabsread.c (symbol_reference_defined): Objective-C symbols
2698 may contain colons: make allowances when scanning stabs strings
2699 for colons.
2700 (objc_find_colon): New function.
2701 * printcmd.c (address_info): If language == objc then print
2702 "self" instead of "this".
2703 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2704 OP_NSSTRING, and OP_SELF.
2705 (prefixify_subexp): Ditto.
2706 * source.c (print_source_lines): Mention objc in comment.
2707 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2708 method names.
2709
2710 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2711
2712 * complaints.h: Update copyright.
2713 (struct complaints): Declare.
2714 (struct complaint): Make `message' constant.
2715 (internal_complaint): Declare.
2716 (complaint): Declare.
2717 (complaint_root): Delete declaration.
2718 (symfile_complaints): Delete declaration.
2719 (struct complaints): Add opaque declaration.
2720 (clear_complaints): Add a complaints parameter.
2721 * complaints.c: Update copyright.
2722 (enum complaint_series): Define.
2723 (complaint_root): Delete.
2724 (struct complaints): Define.
2725 (complaint_sentinel, symfile_complaint_book): New variables.
2726 (symfile_explanations, symfile_complaints): New variables.
2727 New variables.
2728 (get_complaints): New function.
2729 (vcomplaint): New function.
2730 (complaint): New function.
2731 (internal_complaint): New function.
2732 (complain): Call vcomplain with symfile_complaint.
2733 (clear_complaints): Rewrite.
2734 (_initialize_complaints): Use add_setshow_command.
2735 * Makefile.in (complaints.o): Update dependencies.
2736 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2737 to call to clear_complaints.
2738 (new_symfile_objfile, reread_symbols): Ditto.
2739 (oldsyms_complaint): Delete.
2740 (empty_symtab_complaint, unknown_option_complaint): Delete.
2741 (free_named_symtabs): Use complaint instead of complain.
2742
2743 2002-09-18 Michael Snyder <msnyder@redhat.com>
2744
2745 Contributed by Apple Computer, Inc. Merged with current sources
2746 by Adam Fedor <fedor@doc.com> [cagney].
2747
2748 * objc-lang.c: First clean-up round: comments, indentation.
2749 * objc-lang.h: Ditto.
2750 * objc-lang.y: Ditto.
2751
2752 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2753
2754 * maint.c (maintenance_internal_error): Print the parameter as the
2755 error message.
2756 (maintenance_internal_warning): New function.
2757 (_initialize_maint_cmds): Add command `maint internal-warning'.
2758
2759 * defs.h (internal_warning, internal_vwarning): Declare.
2760 * utils.c (struct internal_problem): Define.
2761 (internal_vproblem): New function.
2762 (internal_warning): New function.
2763 (internal_vwarning): New function.
2764 (internal_warning_problem, internal_error_problem): New variables.
2765 (internal_verror): Just call internal_vproblem.
2766
2767 2002-09-18 Michael Snyder <msnyder@redhat.com>
2768
2769 * objc-lang.c: New file, support for Objective-C.
2770 Preliminary check-in, not yet integrated into gdb.
2771 * objc-lang.h: New file.
2772 * objc-exp.y: New file.
2773
2774 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2775
2776 * infrun.c (signal_stop_update): Convert definition to ISO C.
2777 (signal_print_update): Ditto.
2778 (signal_pass_update): Ditto.
2779 * inflow.c (terminal_save_ours): Ditto.
2780
2781 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2782 comments.
2783
2784 * config/djgpp/fnchange.lst: Handle name clashes between
2785 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2786 bfd/coff-tic80.c.
2787
2788 * i386-linux-tdep.h: Fix tipo.
2789
2790 2002-09-18 Adam Fedor <fedor@gnu.org>
2791
2792 * MAINTAINERS: Add myself to the Write After Approval list.
2793
2794 2002-09-18 Jim Blandy <jimb@redhat.com>
2795
2796 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2797 texthigh and textlow to reader-specific structs caused
2798 objfile_relocate to miss them. This is fixable, but the work that
2799 the change was supposed to prepare GDB for never got done anyway.
2800
2801 2002-09-18 David Carlton <carlton@math.stanford.edu>
2802
2803 * MAINTAINERS: Alphabetize Write After Approval list.
2804
2805 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2806
2807 Fix PR gdb/709
2808 * values.c (value_static_field): Call read_var_value.
2809
2810 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2811
2812 * valops.c (hand_function_call): Align the initial stack pointer
2813 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2814 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2815 return value.
2816 * mips-tdep.c (mips_frame_align): New function.
2817 (mips_gdbarch_init): Set frame_align.
2818 * gdbarch.sh (FRAME_ALIGN): New method.
2819 * gdbarch.h, gdbarch.c: Re-generate.
2820
2821 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2822
2823 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2824 registers.
2825
2826 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2827
2828 * NEWS: Mention that MIPS $fp behavior changed.
2829 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2830 reference to FP_REGNUM.
2831 (mipsnbsd_cannot_store_register): Ditto.
2832 * mips-linux-nat.c: Update copyright.
2833 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2834 (mips_linux_cannot_store_register): Ditto.
2835 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2836 * config/mips/tm-mips.h: Update copyright.
2837 (FP_REGNUM): Delete macro.
2838 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2839 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2840 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2841 (mips_r3041_reg_names, mips_r3051_reg_names)
2842 (mips_r3081_reg_names): Replace "fp" with "".
2843 Fix PR gdb/480.
2844
2845 2002-09-17 Theodore A. Roth <troth@verinet.com>
2846
2847 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2848 generic_read_register_dummy() (PR gdb/703).
2849 (avr_push_return_address): #if 0 out unused vars.
2850 (avr_gdbarch_init): Enable use of avr_push_return_address().
2851
2852 2002-09-17 Michael Snyder <msnyder@redhat.com>
2853
2854 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2855 RTE will take care of it.
2856
2857 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2858
2859 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2860 invalid, return SP_REGNUM.
2861
2862 2002-09-17 Michael Snyder <msnyder@redhat.com>
2863
2864 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2865 point registers without sign extension.
2866
2867 2002-09-17 Andrew Cagney <cagney@redhat.com>
2868
2869 * blockframe.c (deprecated_read_register_dummy): Rename
2870 generic_read_register_dummy.
2871 * frame.c (frame_unwind_signed_register): New function.
2872 (frame_unwind_unsigned_register): New function.
2873 * frame.h (frame_unwind_signed_register): Declare.
2874 (frame_unwind_unsigned_register): Declare.
2875 (deprecated_read_register_dummy): Rename
2876 generic_read_register_dummy.
2877
2878 * h8300-tdep.c (h8300_frame_chain): Update.
2879 (h8300_frame_saved_pc): Update.
2880 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2881 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2882 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2883 (s390_frame_chain): Update.
2884 * v850-tdep.c (v850_find_callers_reg): Update.
2885 (v850_frame_saved_pc): Update.
2886 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2887 (m32r_find_callers_reg): Update.
2888 (m32r_frame_saved_pc): Update.
2889 * sh-tdep.c (sh_find_callers_reg): Update.
2890 (sh64_get_saved_pr): Update.
2891 (sh_init_extra_frame_info): Update.
2892 (sh_init_extra_frame_info): Update.
2893 (sh64_init_extra_frame_info): Update.
2894 (sh64_init_extra_frame_info): Update.
2895 * mcore-tdep.c (mcore_find_callers_reg): Update.
2896 (mcore_frame_saved_pc): Update.
2897 (mcore_init_extra_frame_info): Update.
2898 * i386-tdep.c (i386_frame_saved_pc): Update.
2899 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2900 (ia64_init_extra_frame_info): Update.
2901 (ia64_init_extra_frame_info): Update.
2902 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2903 * cris-tdep.c (cris_init_extra_frame_info): Update.
2904 * avr-tdep.c (avr_frame_chain): Update.
2905 (avr_init_extra_frame_info): Update.
2906 (avr_frame_saved_pc): Update.
2907 * arm-tdep.c (arm_find_callers_reg): Update.
2908 (arm_init_extra_frame_info): Update.
2909 (arm_frame_saved_pc): Update.
2910
2911 2002-09-17 Tom Tromey <tromey@redhat.com>
2912
2913 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2914 is "'".
2915
2916 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2917
2918 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2919 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2920 NEXT_PROLOGUE_INSN.
2921 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2922 NEXT_PROLOGUE_INSN.
2923
2924 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2925
2926 * osfsolib.c: Remove file, replaced by solib-osf.c.
2927 * Makefile.in: Remove compilation rules for osfsolib.c.
2928
2929 2002-09-16 David Carlton <carlton@math.stanford.edu>
2930
2931 * cp-valprint.c (cp_print_class_method): Correct args to
2932 check_stub_method_group.
2933
2934 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2935
2936 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2937 `set architecture'. Unify naming convention of functions.
2938 (h8300_skip_prologue): Improve prologue analysis.
2939 (h8300_push_arguments): Rewritten to more closely match GCC's
2940 bizarre argument-passing behavior, along with the comment describing
2941 said behavior.
2942 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2943 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2944 sim, remote-e7000.c, remote-hms.c and remote.c
2945
2946 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2947
2948 * i386-tdep.c (gdb_print_insn_i386): Removed.
2949 (i386_print_insn): New function.
2950 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2951 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2952 tm_print_insn_info.
2953
2954 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2955
2956 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2957 zero.
2958
2959 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2960
2961 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2962 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2963 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2964
2965 2002-09-13 Christopher Faylor <cgf@redhat.com>
2966
2967 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2968
2969 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2970
2971 * gdbtypes.c (check_stub_method): Make static.
2972 (check_stub_method_group): New function.
2973 * gdbtypes.h: Update prototypes.
2974 * cp-support.c: New file.
2975 * cp-support.h: New file.
2976
2977 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2978 (update_method_name_from_physname): New function.
2979 (read_member_functions): Correct method names for operators
2980 and v3 constructors/destructors. Separate v2 constructors and
2981 destructors.
2982 * Makefile.in (stabsread.o): Update dependencies.
2983 (SFILES): Add cp-support.c.
2984 (COMMON_OBS): Add cp-support.o.
2985 (cp_support_h, cp-support.o): Add.
2986
2987 * cp-valprint.c (cp_print_class_method): Call
2988 check_stub_method_group instead of check_stub_method. Remove
2989 extraneous QUITs.
2990 * p-valprint.c (pascal_object_print_class_method): Likewise.
2991 * valops.c (search_struct_method): Likewise.
2992 (find_method_list, value_struct_elt_for_reference): Likewise.
2993
2994 2002-09-13 Andrew Cagney <cagney@redhat.com>
2995
2996 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2997 * gdbarch.h, gdbarch.c: Regenerate.
2998
2999 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3000
3001 * frame.c (find_saved_register): Delete function.
3002 * frame.h (find_saved_register): Delete declaration.
3003 Fix PR gdb/631.
3004
3005 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3006
3007 * mips-tdep.c (read_next_frame_reg): Re-hack using
3008 frame_register_unwind.
3009
3010 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3011
3012 * mips-tdep.c (mips_get_saved_register): Re-hack using
3013 frame_register_unwind.
3014
3015 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3016
3017 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3018 vector. Will be useful for Interix.
3019 * gdbarch.h, gdbarch.c: Regenerate.
3020
3021 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3022 name of the malloc function by NAME_OF_MALLOC.
3023
3024 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3025
3026 * value.h (find_function_in_inferior): Add const keyword to
3027 one of the parameters. Allows us to invoke this function with
3028 a const char *.
3029 * valops.c (find_function_in_inferior): Likewise.
3030
3031 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3032
3033 * exec.c (xfer_memory): Fix compilation warning with old versions
3034 of GCC.
3035 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3036
3037 2002-09-12 David Carlton <carlton@math.stanford.edu>
3038
3039 * symtab.h: Run through gdb_indent.h.
3040 Add 2002 to Copyright year list.
3041
3042 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3043
3044 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3045 mach constants.
3046 * MAINTAINERS: Add myself to write after approval list.
3047
3048 2002-09-11 J. Brobecker <brobecker@gnat.com>
3049
3050 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3051
3052 2002-09-11 J. Brobecker <brobecker@gnat.com>
3053
3054 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3055 Interix.
3056
3057 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3058
3059 * procfs.c (do_detach): Clear current signal, not just fault.
3060 Corrects problem with breakpoint trap signal leaking to detached
3061 process on Tru64.
3062
3063 2002-09-10 Michael Snyder <msnyder@redhat.com>
3064
3065 * buildsym.c (finish_block): Protect against null pointer.
3066
3067 2002-09-10 Andrew Cagney <cagney@redhat.com>
3068
3069 * infcmd.c (default_print_registers_info): Send all output to
3070 ``file'' instead of ``gdb_stdout''.
3071
3072 2002-09-10 Michael Snyder <msnyder@redhat.com>
3073
3074 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3075 LONGEST, and use signed register read (addresses are sign-
3076 extended for mips).
3077
3078 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3079
3080 * event-loop.c (gdb_do_one_event): Make public.
3081 * event-loop.h (gdb_do_one_event): Declare.
3082
3083 2002-09-10 Jeff Law <law@redhat.com>
3084
3085 * infttrace.c (child_resume): Simplify and rework to avoid
3086 TT_PROC_CONTINUE.
3087
3088 2002-09-09 Fred Fish <fnf@intrinsity.com>
3089
3090 * printcmd.c (print_scalar_formatted): "len" is the number of
3091 target bytes, NOT the number of target bits.
3092
3093 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3094
3095 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3096 * top.c (init_main): Set rl_terminal_name.
3097
3098 2002-09-08 Aidan Skinner <aidan@velvet.net>
3099
3100 * ada-lang.c (ada_array_bound, ada_type_match,
3101 _initialize_ada_language): Fix K&R definitions.
3102 * ada-tasks.c (get_current_task): Fix K&R definitions.
3103 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3104
3105 2002-09-07 Christopher Faylor <cgf@redhat.com>
3106
3107 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3108 Add XP.
3109
3110 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3111
3112 * i386-tdep.c (i386_register_virtual_type,
3113 i386_register_convertible, i386_register_convert_to_virtual,
3114 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3115 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3116 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3117 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3118 Don't set push_arguments twice.
3119
3120 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3121 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3122 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3123 sigtramp_end to NULL.
3124 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3125 defines.
3126 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3127
3128 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3129 whitespace.
3130
3131 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3132 * gdbarch.h, gdbarch.c: Re-generate.
3133 * blockframe.c (find_pc_sect_partial_function): Convert to use
3134 SIGTRAMP_START_P predicate.
3135
3136 2002-09-05 Michael Snyder <msnyder@redhat.com>
3137
3138 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3139 generic_dummy_frame method and old method. Also distinguish
3140 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3141 (arm_extract_return_value): Use new regcache method.
3142
3143 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3144 adjustment that doesn't conform to the ABI.
3145 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3146 saved regcache, not from current regcache.
3147
3148 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3149
3150 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3151 * README: Update.
3152
3153 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3154
3155 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3156 if arm_apcs_32 is false.
3157
3158 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3159
3160 GDB 5.3 branch created.
3161
3162 2002-09-03 Theodore A. Roth <troth@verinet.com>
3163
3164 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3165 generic_unwind_get_saved_register.
3166
3167 2002-09-03 David Carlton <carlton@math.stanford.edu>
3168
3169 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3170 argument (PR gdb/653). Update call to smash_to_method_type.
3171 (read_structure_scope): Update call to dwarf2_add_member_fn.
3172
3173 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3174
3175 * x86-64-linux-tdep.c: Include gdb_string.h
3176 * x86-64-linux-nat.c: Ditto.
3177
3178 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3179
3180 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3181 when YYDEBUG is set to 1.
3182 * c-exp.y: Likewise.
3183 * f-exp.y: Likewise.
3184 * jv-exp.y: Likewise.
3185 * m2-exp.y: Likewise.
3186 * p-exp.y: Likewise.
3187
3188 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3189
3190 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3191 dependency list.
3192 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3193 solib_svr4_fetch_link_map_offsets to
3194 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3195 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3196 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3197 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3198 solib-svr4.o, and solib-legacy.o.
3199 * config/i386/tm-nbsd.h: Include solib.h.
3200
3201 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3202
3203 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3204 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3205 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3206 comment noting that this needs its own target configuration.
3207 * config/i386/nbsd.mt: New file.
3208 * config/i386/nbsdaout.mt: Remove.
3209 * config/i386/nbsdelf.mt: Ditto.
3210 * config/i386/tm-nbsdaout.h: Ditto.
3211
3212 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3213
3214 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3215 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3216 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3217 tdep->sigtramp_end.
3218 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3219 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3220 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3221
3222 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3223
3224 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3225 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3226 * i386-tdep.h (i386bsd_init_abi): New prototype.
3227 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3228 function declaration.
3229 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3230 for NetBSD-a.out or NetBSD-ELF.
3231 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3232 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3233 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3234 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3235 and nbsd-tdep.h.
3236 (i386nbsd_pc_in_sigtramp): New function.
3237 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3238 i386nbsd_pc_in_sigtramp.
3239 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3240 and i386nbsdelf_init_abi OS ABI handlers.
3241 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3242 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3243
3244 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3245
3246 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3247 registers if the target really has them.
3248
3249 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3250
3251 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3252 than nbsd-tdep.h.
3253
3254 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3255
3256 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3257 list.
3258 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3259 (alphanbsd_skip_sigtramp_frame): New functions.
3260 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3261 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3262 to alphanbsd_sigcontext_addr.
3263
3264 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3265
3266 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3267 list.
3268 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3269 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3270 nbsd_pc_in_sigtramp.
3271 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3272 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3273 * nbsd-tdep.c: Include gdb_string.h.
3274 (nbsd_pc_in_sigtramp): New function.
3275 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3276 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3277 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3278 ppcnbsd_pc_in_sigtramp.
3279 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3280 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3281 shnbsd_pc_in_sigtramp.
3282 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3283 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3284 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3285
3286 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3287
3288 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3289 watchpoints to NULL.
3290 (insert_breakpoints): set val field of watchpoints if NULL.
3291
3292
3293 2002-08-29 Jim Blandy <jimb@redhat.com>
3294
3295 * symtab.c (lookup_symbol_aux): In the cases where we find a
3296 minimal symbol of an appropriate name and use its address to
3297 select a symtab to read and search, use `name' (as passed to us)
3298 as the demangled name when searching the symtab's global and
3299 static blocks, not the minsym's name.
3300
3301 2002-08-29 Keith Seitz <keiths@redhat.com>
3302
3303 * stack.c (print_frame_info_base): Always set current_source_symtab
3304 and current_source_line.
3305
3306 2002-08-29 Donn Terry <donnte@microsoft.com>
3307
3308 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3309
3310 2002-08-28 Keith Seitz <keiths@redhat.com>
3311
3312 * stack.c (select_frame): Add FIXME concerning selected-frame
3313 events.
3314 (select_frame_command): Send selected-frame-level-changed
3315 event notification, but only if the level actually changed.
3316 (up_silently_base): Add selected-frame-level-changed event
3317 notification.
3318 (down_silently_base): Likewise.
3319
3320 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3321
3322 * Makefile.in: Update dependencies for all gdb/*.c files.
3323
3324 2002-08-27 Tom Tromey <tromey@redhat.com>
3325
3326 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3327 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3328 Update dependencies.
3329 * i387-tdep.c: Include gdb_string.h.
3330 * osabi.c: Likewise.
3331 * i386-linux-nat.c: Likewise.
3332 * lin-lwp.c: Likewise.
3333 * ax-gdb.c: Likewise.
3334 * signals/signals.c: Likewise.
3335 * jv-valprint.c: Likewise.
3336 * p-lang.c: Likewise.
3337 * c-valprint.c: Likewise.
3338 * cp-abi.c: Likewise.
3339
3340 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3341
3342 * cli/cli-script.h (copy_command_lines): Export.
3343 * breakpoint.c: Include cli/cli-script.h.
3344 * Makefile.in (breakpoint.o): Update dependencies.
3345
3346 2002-08-26 Michael Snyder <msnyder@redhat.com>
3347
3348 * breakpoint.c (insert_breakpoints): Protect all references
3349 to 'process_warning'. Shorten long lines.
3350
3351 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3352
3353 * cli/cli-script.c (copy_command_lines): New function.
3354 * defs.h (copy_command_lines): Export.
3355 * testsuite/gdb.base/commands.exp: New tests for commands
3356 attached to a temporary breakpoint, and for commands that
3357 delete the breakpoint they are attached to.
3358
3359 2002-08-26 Michael Snyder <msnyder@redhat.com>
3360
3361 * breakpoint.c (bpstat_stop_status): Instead of copying the
3362 pointer to the breakpoint commands struct, make a new copy
3363 of the struct and point to that.
3364 (bpstat_clear): Free the commands struct.
3365 (bpstat_clear_actions): Free the commands struct.
3366 (bpstat_do_actions): Free the command actions. Also execute
3367 the local cleanups, instead of deleting them.
3368 (delete_breakpoint): Leave the commands field of the bpstat
3369 chain alone -- it will be freed later.
3370
3371 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3372
3373 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3374 deleted in 2002-08-20 commit. This function is still used by
3375 ppc-linux-nat.c.
3376
3377 2002-08-26 Keith Seitz <keiths@redhat.com>
3378
3379 * gdb-events.sh: Add selected-frame-level-changed event.
3380 * gdb-events.c: Regenerated.
3381 * gdb-events.h: Regenerated.
3382
3383 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3384
3385 Fix PR gdb/393:
3386 * inflow.c (terminal_save_ours): New function to save terminal
3387 settings.
3388 * inferior.h (terminal_save_ours): Declare.
3389 * target.c (debug_to_terminal_save_ours): New function.
3390 (cleanup_target): Defaults to_terminal_save_ours.
3391 (update_current_target): Inherit to_terminal_save_ours.
3392 (setup_target_debug): Set to_terminal_save_ours.
3393 * target.h (target_terminal_save_ours): New to save terminal settings.
3394 (target_ops): New member to_terminal_save_ours.
3395 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3396 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3397 * inftarg.c (init_child_ops): Likewise.
3398 * m3-nat.c (init_m3_ops): Likewise.
3399 * procfs.c (init_procfs_ops): Likewise.
3400 * wince.c (init_child_ops): Likewise.
3401 * win32-nat.c (init_child_ops): Likewise.
3402 * sol-thread.c (init_sol_thread_ops): Likewise.
3403
3404 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3405
3406 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3407 use regcache_* functions.
3408 (i386_gdbarch_init): Set store_return_value instead of
3409 deprecated_store_return_value.
3410
3411 * regcache.c (regcache_raw_write_signed,
3412 regcache_raw_write_unsigned): New functions.
3413 * regcache.h (regcache_raw_write_signed,
3414 regcache_raw_write_unsigned): New prototypes.
3415
3416 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3417
3418 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3419 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3420 source file dependencies. Cleanup corresponding generator rules.
3421
3422 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3423
3424 * regcache.h (register_offset_hack): Declare.
3425 (regcache_cooked_read_using_offset_hack): Declare.
3426 (regcache_cooked_write_using_offset_hack): Declare.
3427
3428 * regcache.c (register_offset_hack): New function.
3429 (regcache_cooked_read_using_offset_hack): New function.
3430 (regcache_cooked_write_using_offset_hack): New function.
3431 (regcache_dump): Check that the registers, according to their
3432 offset, are packed hard against each other.
3433 (cooked_xfer_using_offset_hack): New function.
3434
3435 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3436
3437 * regcache.c (struct regcache_descr): Add field register_type.
3438 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3439 in as a parameter
3440 (init_regcache_descr): Initialize register_type. Pass the descr
3441 to init_legacy_regcache_descr. Use register_type instead of
3442 REGISTER_VIRTUAL_TYPE.
3443 (register_type): New function.
3444 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3445 * regcache.h (register_type): Declare.
3446
3447 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3448
3449 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3450 instead of deprecated_store_return_value. Fix fallout from
3451 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3452
3453 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3454
3455 * regcache.c (max_register_size): New function.
3456 (init_legacy_regcache_descr): Ensure that max_register_size is
3457 large enough for REGISTER_VIRTUAL_SIZE.
3458 * regcache.h (max_register_size): Declare.
3459
3460 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3461
3462 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3463 store_return_value.
3464 (e500_extract_return_value): Change type of valbuf pointer to
3465 void.
3466
3467 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3468
3469 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3470 workaround.
3471
3472 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3473 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3474 long long) to prevent compiler warning on 64-bit systems.
3475
3476 2002-08-23 Andrew Cagney <cagney@redhat.com>
3477
3478 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3479 (DEPRECATED_STORE_RETURN_VALUE): New method.
3480 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3481 * gdbarch.h, gdbarch.c: Re-generate.
3482
3483 * values.c (set_return_value): Pass current_regcache to
3484 STORE_RETURN_VALUE.
3485 * arch-utils.h (legacy_store_return_value): Declare.
3486 * arch-utils.c (legacy_store_return_value): New function.
3487 (legacy_extract_return_value): Update parameters.
3488
3489 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3490 STORE_RETURN_VALUE.
3491 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3492 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3493 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3494 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3495 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3496 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3497 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3498 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3499 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3500 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3501
3502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3503 * i386-tdep.c (i386_extract_return_value): Update.
3504 * arch-utils.c (legacy_extract_return_value): Update.
3505 * frv-tdep.c (frv_gdbarch_init): Update.
3506 * cris-tdep.c (cris_gdbarch_init): Update.
3507 * d10v-tdep.c (d10v_gdbarch_init): Update.
3508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3509 * m68k-tdep.c (m68k_gdbarch_init): Update.
3510 * mcore-tdep.c (mcore_gdbarch_init): Update.
3511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3512 * s390-tdep.c (s390_gdbarch_init): Update.
3513 * sparc-tdep.c (sparc_gdbarch_init): Update.
3514 * sh-tdep.c (sh_gdbarch_init): Update.
3515 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3516 * v850-tdep.c (v850_gdbarch_init): Update.
3517 * avr-tdep.c (avr_gdbarch_init): Update.
3518 * ia64-tdep.c (ia64_gdbarch_init): Update.
3519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3520 * vax-tdep.c (vax_gdbarch_init): Update.
3521 * alpha-tdep.c (alpha_gdbarch_init): Update.
3522 * arm-tdep.c (arm_gdbarch_init): Update.
3523 * mips-tdep.c (mips_gdbarch_init): Update.
3524 * i386-tdep.c (i386_gdbarch_init): Update.
3525
3526 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3527
3528 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3529 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3530
3531 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3532
3533 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3534 problems.
3535
3536 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3537
3538 * infrun.c (handle_inferior_event): Move a comment outside of a
3539 function call, in order to avoid indent reformatting this part
3540 of the code in an unreadable way.
3541
3542 2002-08-23 Grace Sainsbury <graces@redhat.com>
3543
3544 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3545 when breakpoints fail. Move general breakpoint error messages to
3546 insert_breakpoints.
3547 * breakpoint.c (insert_breakpoints): Change warnings when
3548 breakpoints are nto inserted to specify the type. Remove call to
3549 memory_error when hardware breakpoints can't be inserted. Remove
3550 multiple calls to warning so all messages are sent to the user at
3551 once.
3552 (delete_breakpoints): Make insert error messsages more explicit.
3553
3554 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3555
3556 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3557 gdbserver/ChangeLog.
3558
3559 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3560
3561 * i386-tdep.c: Include "objfiles.h".
3562 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3563 skip_trampoline_code.
3564 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3565 (CPLUS_MARKER): Define to '.'.
3566
3567 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3568 member.
3569 (linux_corefile_thread_callback): Increase args->num_notes.
3570 (linux_make_note_section): Initialize thread_args.num_notes, and
3571 use it to determine whether notes for any threads were created.
3572
3573 2002-08-23 Donn Terry <donnte@microsoft.com>
3574
3575 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3576 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3577 and PCUNKILL.
3578 (write_with_trace): Conditionalize out the switch branch handling
3579 PCSHOLD if the corresponding macro is not defined. Likewise for
3580 PRSABORT and PRSTOP.
3581 This change will be needed by the Interix port.
3582
3583 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3584
3585 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3586 write_register wherever possible instead of manipulating the
3587 register bytes directly.
3588 Assign VALUE_CONTENTS to a variable and use that.
3589 The GPR numbers are now dependent on the architecture.
3590
3591 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3592
3593 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3594 ev_offset fields.
3595 (skip_prologue): Add support for BookE/e500 instructions.
3596 (e500_extract_return_value): New function.
3597 (frame_get_saved_regs): Add support for saving ev registers and
3598 pseudo gpr's.
3599 (e500_store_return_value): New function.
3600 (rs6000_gdbarch_init): Move up default intializations of
3601 deprecated_extract_return_value and store_return_value. Overwrite
3602 init of store_return_value with e500 specific version.
3603 Set extract_return_value for e500.
3604
3605 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3606
3607 * blockframe.c (generic_call_dummy_register_unwind): Use
3608 regcache_cooked_read to catch cases in which the variable is
3609 stored in a pseudo register.
3610
3611 2002-08-22 Andrew Cagney <cagney@redhat.com>
3612
3613 * NEWS: Mention that the i960 has been made obsolete.
3614 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3615 i960-tdep.c
3616 (remote-nrom.o): Obsolete target.
3617 (remote-nindy.o, i960-tdep.o): Ditto.
3618 * remote-nrom.c: Make file obsolete.
3619 * remote-nindy.c, remote-vx960.c: Ditto.
3620 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3621 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3622 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3623 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3624 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3625 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3626 i960-*-vxworks* obsolete.
3627 * MAINTAINERS: Note that the i960 is obsolete.
3628
3629 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3630
3631 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3632 detach to allow reinitialization.
3633
3634 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3635
3636 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3637 attempt).
3638
3639 2002-08-22 Jim Blandy <jimb@redhat.com>
3640
3641 * coffread.c (coff_symfile_read): Don't try to read the line
3642 number table from disk if the image file doesn't have a symbol
3643 table; we'll never actually look at the info anyway, and Windows
3644 ships DLL's with bogus file offsets for the line number data.
3645
3646 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3647
3648 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3649 an e500 executable.
3650
3651 2002-08-21 Michael Snyder <msnyder@redhat.com>
3652
3653 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3654 (MSYMBOL_SIZE): Replace macro with function.
3655 (DEFAULT_MIPS_TYPE): Delete unused macro.
3656 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3657 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3658
3659 2002-08-21 Jim Blandy <jimb@redhat.com>
3660
3661 * valops.c (value_cast): Simplify and correct logic for doing a
3662 static cast from a pointer to a base class to a pointer to a
3663 derived class.
3664
3665 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3666
3667 * infcmd.c (default_print_registers_info): Replace
3668 do_registers_info.
3669 (registers_info): Use gdbarch_print_registers_info instead of
3670 DO_REGISTERS_INFO.
3671 * inferior.h (default_print_registers_info): Replace
3672 do_registers_info.
3673 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3674 (DO_REGISTERS_INFO): Change to a predicate function.
3675 * gdbarch.h, gdbarch.c: Regenerate.
3676
3677 2002-08-21 Keith Seitz <keiths@redhat.com>
3678
3679 * gdb-events.sh: Add target-changed event.
3680 * gdb-events.c: Regenerated.
3681 * gdb-events.c: Regenerated.
3682 * valops.c (value_assign): Add target-changed event notification
3683 to inlval_register, lval_memory, and lval_reg_frame_relative.
3684
3685 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3686
3687 * NEWS: Add an entry regarding the improvement of the next/step
3688 operation on Alpha Tru64 multi-processor machines.
3689
3690 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3691
3692 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3693 directores.
3694 * Makefile.in: Update all _h macro definitions.
3695 * Makefile.in (install-gdbtk): Move to install section.
3696 (rdi-share/libangsd.a): Move to end of file.
3697
3698 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3699
3700 * frame.c (frame_register_unwind): When a register, set addrp to
3701 the register's byte.
3702
3703 2002-08-20 Michael Snyder <msnyder@redhat.com>
3704
3705 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3706 used locally, so move them from the target machine header to here.
3707 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3708 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3709 Make static.
3710 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3711
3712 2002-08-20 Andrew Cagney <cagney@redhat.com>
3713
3714 * NEWS: Mention that the Apollo line was made obsolete.
3715 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3716 m68*-hp-hpux* obsolete.
3717 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3718 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3719 * buildsym.c (make_blockvector): Make static.
3720 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3721 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3722 (ALLDEPFILES): Remove dstread.c.
3723 (dstread.o): Obsolete make rule.
3724 * dstread.c: Makefile obsolete.
3725 * dst.h: Ditto.
3726 * config/m68k/hp300hpux.mt: Ditto.
3727 * config/m68k/hp300hpux.mh: Ditto.
3728 * config/m68k/hp300bsd.mt: Ditto.
3729 * config/m68k/hp300bsd.mh: Ditto.
3730 * config/m68k/apollo68b.mt: Ditto.
3731 * config/m68k/apollo68v.mh: Ditto.
3732 * config/m68k/apollo68b.mh: Ditto.
3733
3734 2002-08-20 Michael Snyder <msnyder@redhat.com>
3735
3736 * mips-tdep.c (mips_in_return_stub): Make static.
3737 (mips_gdbarch_init): Set in_solib_return_trampoline.
3738 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3739
3740 2002-08-20 Michael Snyder <msnyder@redhat.com>
3741
3742 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3743 * gdbarch.c, gdbarch.h: Regenerate.
3744 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3745 Add.
3746 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3747
3748 2002-08-20 Michael Snyder <msnyder@redhat.com>
3749
3750 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3751 (mips_gdbarch_init): Set skip_trampoline_code,
3752 in_solib_call_trampoline.
3753 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3754 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3755
3756 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3757
3758 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3759
3760 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3761 vector type for ev registers.
3762 (e500_pseudo_register_read): New function.
3763 (e500_pseudo_register_write): New function.
3764 (e500_dwarf2_reg_to_regnum): New function.
3765 (PPC_UISA_NOFP_SPRS): New macro.
3766 (PPC_EV_REGS): New macro.
3767 (PPC_GPRS_PSEUDO_REGS): New macro.
3768 (registers_e500): New register set for e500.
3769 (variants): Add e500 variant.
3770 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3771 before setting architectural dependent variations. Initialize ev
3772 registers numbers. Add case for e500 architecture. Set the
3773 number of pseudo registers.
3774
3775 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3776
3777 * rs6000-tdep.c: Clean up comments.
3778
3779 2002-08-20 Andrew Cagney <cagney@redhat.com>
3780
3781 * h8300-tdep.c: Re-indent file.
3782
3783 2002-08-20 Jim Blandy <jimb@redhat.com>
3784
3785 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3786 default for this.
3787
3788 2002-08-20 Keith Seitz <keiths@redhat.com>
3789
3790 * breakpoints.c (watch_command_1): Use internal breakpoint
3791 when setting a watchpoint_scope breakpoint.
3792
3793 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3796 (build_builtin_type_vec64i): Ditto.
3797 (build_builtin_type_vec128): Ditto.
3798 (build_builtin_type_vec128i): Ditto.
3799
3800 2002-08-19 Michael Snyder <msnyder@redhat.com>
3801
3802 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3803 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3804 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3805 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3806 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3807 CALL_DUMMY_ADDRESS): Delete.
3808 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3809 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3810 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3811 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3812 push_return_address.
3813 (mips_register_raw_size, mips_eabi_use_struct_convention,
3814 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3815 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3816 mips_init_extra_frame_info, mips_eabi_push_arguments,
3817 mips_n32n64_push_arguments, mips_push_return_address,
3818 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3819 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3820
3821 2002-08-19 Michael Snyder <msnyder@redhat.com>
3822
3823 * mips-tdep.c (mips_frame_num_args): New function.
3824 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3825 frame_saved_pc, frame_args_address, frame_locals_address,
3826 frame_num_args, and frame_args_skip.
3827 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3828 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3829 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3830 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3831
3832 2002-08-20 Michael Snyder <msnyder@redhat.com>
3833
3834 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3835 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3836 * mips-tdep.c (mips_store_struct_return): New function.
3837 (mips_extract_struct_value_address): New function.
3838 (mips_gdbarch_init): Set store_struct_return and
3839 extract_struct_value_address.
3840
3841 2002-08-20 David Carlton <carlton@math.stanford.edu>
3842
3843 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3844 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3845 (read_file_scope): Check that line_header is nonzero before
3846 decoding macro information.
3847
3848 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3849
3850 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3851 flag the general-purpose registers as floating-point on targets
3852 that don't support the floating-point registers.
3853
3854 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3855
3856 * rs6000-tdep.c (altivec_register_p): Delete.
3857 (rs6000_do_altivec_registers): Delete.
3858 (rs6000_altivec_registers_info): Delete.
3859 (rs6000_do_registers_info): Delete.
3860 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3861 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3862
3863 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3864
3865 * infcmd.c (do_registers_info): Print vector registers in hex
3866 format only.
3867 (print_vector_info): Check that printing registers
3868 makes sense.
3869 (print_float_info): Ditto.
3870
3871 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3872
3873 * mips-tdep.c (mips_gdbarch_init): Update.
3874 (mips_o32_extract_return_value): Rewrite.
3875 (mips_o32_store_return_value): Rewrite.
3876 (mips_o32_xfer_return_value): New function.
3877 (mips_xfer_register): Tweak debug print message. Allow for
3878 buf_offset when dumping the value transfered.
3879
3880 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3881
3882 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3883 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3884 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3885 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3886 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3887
3888 2002-08-14 Michael Snyder <msnyder@redhat.com>
3889
3890 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3891
3892 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3893
3894 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3895 register.
3896 (P): New macro to define a register as a pseudo register.
3897 (R, R4, R8, R16, FR32, R64, R0): Updated.
3898 (struct variant): Add new fields for number of pseudo registers
3899 and number of total registers.
3900 (tot_num_registers): New macro replacing....
3901 (num_registers): ...deleted macro.
3902 (num_registers): New function.
3903 (num_pseudo_registers): New function.
3904 (variants): Update all variants to intialize new fields correctly.
3905 Postpone initialization of number of pseudo regs and real regs.
3906 (init_variants): New function.
3907 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3908 registers offsets.
3909
3910 2002-08-19 David Carlton <carlton@math.stanford.edu>
3911
3912 * valops.c (search_struct_field): Change error message to treat
3913 return value of 0 from value_static_field as meaning that field is
3914 optimized out.
3915 (value_struct_elt_for_reference): Ditto.
3916 * values.c (value_static_field): Treat an unresolved location the
3917 same as a nonexistent symbol. Fix PR gdb/635.
3918 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3919 enclosed. Fix PR gdb/574.
3920 * MAINTAINERS: Add self to Write After Approval list.
3921
3922 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3923
3924 * mips-tdep.c (mips_xfer_register): New function.
3925 (mips_n32n64_extract_return_value): Rewrite.
3926 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3927 instead of deprecated_extract_return_value.
3928
3929 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3930
3931 * rs6000-tdep.c (TDEP): Delete macro.
3932 (branch_dest): Replace use of TDEP macro with its body.
3933 (rs6000_pop_frame): Ditto.
3934 (rs6000_push_arguments): Ditto.
3935 (rs6000_skip_trampoline_code): Ditto.
3936 (rs6000_frame_saved_pc): Ditto.
3937 (rs6000_frame_chain): Ditto.
3938 (rs6000_register_name): Ditto.
3939 (rs6000_register_byte): Ditto.
3940 (rs6000_register_raw_size): Ditto.
3941 (rs6000_register_virtual_type): Ditto.
3942 (rs6000_register_convertible): Ditto.
3943 (rs6000_convert_from_func_ptr_addr): Ditto.
3944
3945 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3948 conditionally.
3949 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3950 MIPS_LINUX_JB_ELEMENT_SIZE.
3951 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3952 for MAX_REGISTER_RAW_SIZE arrays.
3953 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3954 MIPS_LINUX_JB_ELEMENT_SIZE.
3955
3956 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3957
3958 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3959
3960 2002-08-19 Aidan Skinner <aidan@velvet.net>
3961
3962 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3963 ada-valprint.c ada-tasks.c.
3964 (YYFILES): Add ada-exp.y.
3965 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3966 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3967 (ada-exp.tab.o): New target.
3968
3969 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3970
3971 * regcache.c (regcache_xfer_part): New function.
3972 (regcache_raw_read_part): New function.
3973 (regcache_raw_write_part): New function.
3974 (regcache_cooked_read_part): New function.
3975 (regcache_cooked_write_part): New function.
3976 * regcache.h (regcache_raw_read_part): Declare.
3977 (regcache_raw_write_part): Declare.
3978 (regcache_cooked_read_part): Declare.
3979 (regcache_cooked_write_part): Declare.
3980
3981 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3982
3983 * remote.c (remote_open_1): Add async_p.
3984 (remote_async_open_1): Delete.
3985 (open_remote_target): Delete.
3986 (remote_open, extended_remote_open): Update calls to remote_open_1.
3987 (remote_async_open, extended_remote_async_open): Call
3988 remote_open_1 instead of remote_async_open_1.
3989
3990 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3991
3992 * blockframe.c: Fix a few coding standard violations.
3993
3994 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3995
3996 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3997 here from ...
3998 * config/i386/tm-i386sco5.h: ... here. File removed.
3999 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4000
4001 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4002 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4003 (TM_FILE): Set to tm-i386.h.
4004 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4005 * config/i386/tm-i386v.h: Remove file.
4006 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4007 instead of "i386/tm-i386v.h".
4008 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4009 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4010 "i386/tm-i386v.h".
4011 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4012 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4013 "i386/tm-i386.h".
4014
4015 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4016
4017 * config/i386/nm-i386v.h: Add protection against
4018 multiple-inclusion.
4019 (i386_register_u_addr): Remove prototype.
4020 (register_u_addr): New prototype.
4021 (REGISTER_U_ADDR): Redefine accordingly.
4022 * i386v-nat.c: Improve several comments.
4023 (i386_register_u_addr): Change signature and rename to
4024 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4025 ubase variable.
4026
4027 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4028
4029 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4030 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4031 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4032 deprecated_extract_return_value.
4033 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4034 rename mips_o32o64_push_arguments.
4035 (mips_gdbarch_init): Update.
4036 (mips_extract_return_value): Delete.
4037 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4038 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4039 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4040 (mips_n32n64_extract_return_value): Clone
4041 mips_extract_return_value.
4042 (mips_store_return_value): Delete.
4043 (mips_o32_store_return_value): Clone mips_store_return_value.
4044 (mips_o64_store_return_value): Clone mips_store_return_value.
4045 (mips_eabi_store_return_value): Clone mips_store_return_value.
4046 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4047
4048 2002-08-18 Aidan Skinner <aidan@velvet.net>
4049
4050 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4051 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4052
4053 2002-08-18 Aidan Skinner <aidan@velvet.net>
4054
4055 * ada-lang.c: Run through gdb_indent.sh.
4056 * ada-lang.h: Run through gdb_indent.sh.
4057 * ada-tasks.c: Run through gdb_indent.sh.
4058 * ada-typeprint.c: Run through gdb_indent.sh.
4059 * ada-valprint.c: Run through gdb_indent.sh.
4060
4061 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4062
4063 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4064 ABI.
4065
4066 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4067
4068 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4069
4070 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4071 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4072
4073 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4074 write_register_gen instead of write_register_bytes.
4075
4076 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4077 i[3456]-*-osf1mk* configurations have been made obsolete.
4078 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4079 i[3456]86-*-osf1mk* hosts obsolete.
4080 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4081 targets obsolete.
4082 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4083 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4084 config/i386/i386m3.mt, config/i386/nm-m3.h,
4085 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4086 config/i386/i386mk.mh, config/i386/i386mk.mt,
4087 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4088 obsolete.
4089 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4090 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4091 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4092
4093 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4094
4095 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4096 (hppa_value_returned_from_stack): Declare.
4097 (hppa_extract_return_value): Declare.
4098 * config/pa/hppa.mt: New file.
4099 * configure.tgt: Recognize hppa*-*-*.
4100 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4101
4102 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4103
4104 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4105 comment.
4106
4107 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4108
4109 * top.c (gdb_rl_operate_and_get_next): Make sure
4110 operate-and-get-next functions correctly even when the history
4111 list is completely filled.
4112
4113 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4114
4115 * MAINTAINERS (Target Instruction Set Architectures): Rename
4116 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4117 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4118 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4119 already listed under Host/Native.
4120
4121 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4122 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4123 mips*-*-*.
4124
4125 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4126
4127 * config/ia64/ia64.mt: New file.
4128 * config/alpha/alpha.mt: New file.
4129 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4130 ia64-linux-gnu. Mention that ia64-elf is broken.
4131 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4132
4133 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4134
4135 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4136 generic_func_frame_valid instead of func_frame_valid.
4137
4138 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4139
4140 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4141 procfs appears to be broken when debugging on multi-processor
4142 machines. So enable software single stepping in order to avoid
4143 using the procfs interface to do next/step operations, using
4144 internal breakpoints instead.
4145
4146 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4147 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4148 make this pc address equal to the value it would have if the
4149 system stepping capability was used. Also set a new flag used
4150 to ensure that we don't readjust the PC one more time later.
4151
4152 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4153 address by DECR_PC_AFTER_BREAK when software single step is
4154 in use for this architecture, as this has already been taken
4155 care of in handle_inferior_event().
4156
4157 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4158
4159 * infrun.c (handle_inferior_event): Minor reformatting, to make
4160 a rather long condition expression easier to read.
4161
4162 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4163
4164 * Makefile.in (gdbtk.o): Move to end of file.
4165 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4166 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4167 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4168 (gdbtk-wrapper.o, gdbres.o): Ditto.
4169
4170 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4171
4172 * Makefile.in (copying.o): Separate out compile rule.
4173 (hpux-thread.o, procfs.o, signals.o): Ditto.
4174 (v850ice.o, z8k-tdep.o): Ditto.
4175 (tui-file.o): Move to TUI section.
4176 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4177 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4178
4179 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4180
4181 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4182 skip_trampoline_code, for better namespace-proofing.
4183
4184 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4185
4186 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4187
4188 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4189
4190 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4191
4192 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4193 signal, check whether we hit a breakpoint before checking for a
4194 single step breakpoint. Otherwise, GDB fails to notice that a
4195 breakpoint has been hit when stepping onto a breakpoint.
4196
4197 2002-08-16 Keith Seitz <keiths@redhat.com>
4198
4199 * gdb-events.sh (clear_gdb_event_hooks): New function.
4200 * gdb-events.c: Regenerate.
4201 * gdb-events.h: Regenerate.
4202
4203 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4204
4205 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4206 not_a_sw_breakpoint.
4207 * breakpoint.h (bpstat_stop_status): Add parameter names.
4208
4209 2002-08-16 Grace Sainsbury <graces@redhat.com>
4210
4211 * remote.c (remote_insert_hw_breakpoint)
4212 (remote_remove_hw_breakpoint): Fix calculation of length field
4213 for Z-packet.
4214
4215 2002-08-15 Michael Snyder <msnyder@redhat.com>
4216
4217 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4218 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4219 (supply_fpregset): Ditto.
4220
4221 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4222 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4223 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4224 (TARGET_READ_SP): Delete.
4225 (DO_REGISTERS_INFO): Delete.
4226 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4227 Delete.
4228 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4229 from macros to functions.
4230
4231 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4232 (mips_register_convertible, mips_register_convert_to_virtual,
4233 mips_register_convert_to_raw): Make static.
4234 (mips_read_sp): New function.
4235 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4236 (mips_do_registers_info): Make static.
4237 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4238 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4239 (mips_register_convert_from_type, mips_register_convert_to_type):
4240 New functions.
4241 (mips_gdbarch_init): Set up function_start_offset,
4242 register_virtual_size, pc_in_sigtramp.
4243
4244 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4245
4246 * infcmd.c (vector_info): New function.
4247 (_initialize_infcmd): Add command "info vector".
4248 (print_vector_info): New function.
4249
4250 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4251 * gdbarch.h, gdbarch.c: Regenerate.
4252
4253 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4254
4255 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4256 ``print_all''. Only print vector registers when ``print_all''.
4257
4258 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4259
4260 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4261 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4262
4263 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4264 Add `args' parameter.
4265 * gdbarch.h, gdbarch.c: Regenerate.
4266
4267 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4268
4269 * infcmd.c (float_info): Call print_float_info.
4270 (print_float_info): New function. By default, print the
4271 floating-point registers.
4272
4273 * arch-utils.h (default_print_float_info): Delete declaration.
4274 * arch-utils.c (default_print_float_info): Delete function.
4275
4276 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4277
4278 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4279 out define.
4280
4281 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4282 FRAME.
4283
4284 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4285 * configure.host: Make i[3456]86-*-aix host obsolete.
4286 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4287 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4288 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4289 config/i386/xm-i386aix.h: Make files obsolete.
4290 * i386aix-nat.c: Make file obsolete.
4291 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4292 (i386aix-nat.o): Make target obsolete.
4293
4294 * config/i386/nm-gnu.h: Removed.
4295 * config/i386/nm-i386gnu.h: New file.
4296 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4297 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4298 Moved here from ...
4299 * config/i386/tm-i386gnu.h: ... here. Removed.
4300 * config/i386/xm-i386gnu.h: Removed.
4301 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4302 (NAT_FILE): Set to nm-i386gnu.h.
4303 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4304 * i386-tdep.c: New file.
4305 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4306 (i386gnu-tdep.o): Specify dependencies.
4307
4308 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4309
4310 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4311 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4312 Adjust a few comments to reflect reality a bit closer.
4313 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4314 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4315 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4316 target_insert_watchpoint, target_remove_watchpoint):
4317 Move defines to ...
4318 * config/i386/nm-i386sco5.h: ... here.
4319 (kernel_u_size): Add prototype. Improve a few comments and add
4320 protection against multiple inclusion.
4321
4322 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4323 out define.
4324
4325 * uw-thread.c (SP_ARG0): Define if not already defined.
4326 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4327
4328 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4329
4330 * config/i386/tm-i386.h: Don't include "regcache.h".
4331
4332 * i387-tdep.h (i387_print_float_info): New prototype.
4333 * i387-tdep.c (print_i387_value, print_i387_ext,
4334 print_i387_status_word, print_i387_control_word): Add `struct
4335 ui_file *' argument and use it for output.
4336 (i387_print_float_info): Renamed from i387_float_info. Add
4337 `struct gdbarch *' and `struct ui_file *' arguments and use the
4338 latter for output.
4339 * i386-tdep.c: Include "i387-tdep.h".
4340 (i386_gdbarch_init): Set print_float_info.
4341 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4342 (FLOAT_INFO): Remove define.
4343
4344 2002-08-13 Michael Snyder <msnyder@redhat.com>
4345
4346 * mips-tdep.c (mips_push_arguments): Rename to
4347 mips_eabi_push_arguments, and tune for EABI.
4348 (MIPS_REGS_HAVE_HOME_P): Delete.
4349 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4350 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4351 Delete references to mips_regs_have_home_p.
4352
4353 2002-08-14 Keith Seitz <keiths@redhat.com>
4354
4355 * Makefile.in (install-gdbtk): Create insight plugin directory.
4356 Install plugins.tcl file.
4357
4358 2002-08-14 Keith Seitz <keiths@redhat.com>
4359
4360 * configure.in: Move SUBDIRS to near top of the file so that
4361 --enable options may add things to it.
4362 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4363 * configure: Regenerate.
4364
4365 2002-08-13 Michael Snyder <msnyder@redhat.com>
4366
4367 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4368 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4369 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4370
4371 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4372
4373 * vax-tdep.c (vax_get_saved_register): Delete function.
4374 (vax_gdbarch_init): Update.
4375 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4376 (ns32k_gdbarch_init): Update.
4377 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4378 (alpha_gdbarch_init): Update.
4379
4380 2002-08-13 Andrew Cagney <cagney@redhat.com>
4381
4382 * regcache.c (init_regcache_descr): Overallocate the
4383 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4384 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4385 nr_raw_registers.
4386 (set_register_cached): Add range checking assertions. Use
4387 current_regcache.
4388
4389 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4390
4391 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4392 numbers for MMX registers.
4393
4394 2002-08-13 Andrew Cagney <cagney@redhat.com>
4395
4396 * i386-tdep.c (i386_gdbarch_init): Use
4397 generic_unwind_get_saved_register.
4398
4399 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4400
4401 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4402 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4403 target vector.
4404 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4405 Delete. Add comment regarding this now-deleted target method.
4406
4407 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4408
4409 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4410 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4411 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4412 real PC and the page number (if it's within the memory bank window).
4413 (m68hc11_pseudo_register_write): Likewise when saving.
4414 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4415 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4416 (m68hc11_register_raw_size): And use 32-bit for it.
4417 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4418 16K memory bank is used by the prog; also use the virtual pc.
4419
4420 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4421
4422 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4423 (m68hc11_gdbarch_init): Install it in gdbarch.
4424 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4425 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4426 (MSYMBOL_SIZE): New for documentation.
4427 (insn_return_kind): Enum to specify how a function returns.
4428 (frame_extra_info): Cleanup and record the return mode.
4429 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4430 register in address computation.
4431 (m68hc11_get_return_insn): New to obtain the return instruction used
4432 by the function.
4433 (m68hc11_frame_init_saved_regs): Take into account the return
4434 instruction used by the function for far and interrupt functions.
4435 (m68hc11_init_extra_frame_info): Take into account page register.
4436 (m68hc11_frame_args_address): Adjust according to the return mode.
4437 (show_regs): Print page register only when it's used.
4438
4439 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4440
4441 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4442 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4443 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4444 registers.
4445 (m68hc11_register_raw_size): Likewise.
4446
4447 2002-08-13 Andrew Cagney <cagney@redhat.com>
4448
4449 * i386-tdep.c (i386_register_name): Handle mmx registers.
4450 (mmx_regnum_p): New function.
4451 (i386_mmx_names): New array.
4452 (mmx_num_regs): New variable.
4453 (i386_pseudo_register_read): New function.
4454 (i386_pseudo_register_write): New function.
4455 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4456
4457 * regcache.c (regcache_raw_read_unsigned): New function.
4458 (regcache_raw_read_signed): New function.
4459 * regcache.h (regcache_raw_read_unsigned): Declare.
4460 (regcache_raw_read_signed): Declare.
4461
4462 2002-08-13 Andrew Cagney <cagney@redhat.com>
4463
4464 * regcache.c (regcache_raw_read_as_address): Delete function.
4465 (regcache_cooked_read_signed): New function.
4466 (regcache_cooked_read_unsigned): New function.
4467 * regcache.h (regcache_cooked_read_signed): Declare.
4468 (regcache_cooked_read_unsigned): Declare.
4469 (regcache_raw_read_as_address): Delete declaration.
4470
4471 * blockframe.c (generic_read_register_dummy): Use
4472 regcache_cooked_read_unsigned.
4473 * i386-tdep.c (i386_extract_struct_value_address): Use
4474 regcache_cooked_read_unsigned.
4475
4476 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4477
4478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4479 double sizes according to ELF ABI flags.
4480 (gdbarch_tdep): Record elf_flags.
4481
4482 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4483
4484 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4485 (m6812_prolog): They can appear in 68HC12 function prologue.
4486 (m68hc11_frame_chain): Cleanup.
4487
4488 2002-08-12 Andrew Cagney <cagney@redhat.com>
4489
4490 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4491 declarations.
4492 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4493 (i386_linux_register_raw_size): Delete function.
4494 (i386_linux_init_abi): Update.
4495 * i386-tdep.c (i386_register_raw_size): Delete function.
4496 (i386_register_byte): Delete function.
4497 (i386_gdbarch_init): Update.
4498 (i386_register_size): Delete array.
4499 (i386_register_offset): Delete array.
4500
4501 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4502 (REGISTER_RAW_SIZE): Delete macro.
4503 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4504 (REGISTER_BYTE): Delete macro.
4505
4506 2002-08-11 Aidan Skinner <aidan@velvet.net>
4507
4508 * ada-lang.c (ada_lookup_partial_symbol)
4509 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4510 prototype names so that grep ^func works properly.
4511
4512 * ada-lang.c (ada_array_element_type)
4513 (ada_lookup_partial_symbol): Fix typos in parameter list.
4514
4515 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4516 Fix prototype names so that grep ^func works properly.
4517
4518 2002-08-10 Andrew Cagney <cagney@redhat.com>
4519 Elena Zannoni <ezannoni@redhat.com>
4520 Martin M. Hunt <hunt@redhat.com>
4521
4522 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4523 (build_builtin_type_vec128i): Set the vector bit.
4524 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4525 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4526 (build_builtin_type_vec64): New function.
4527 (build_builtin_type_vec64i): New function.
4528 (build_gdbtypes): Initialize builtin_type_vec64 and
4529 builtin_type_vec64i.
4530
4531 2002-08-09 Andrew Cagney <cagney@redhat.com>
4532
4533 * regcache.c (regcache_dump): Compare the register offset
4534 with REGISTER_BYTE.
4535 * arch-utils.c (generic_register_byte): New function.
4536 * arch-utils.h (generic_register_byte): Declare.
4537 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4538 * gdbarch.h, gdbarch.c: Regenerate.
4539
4540 2002-08-09 Andrew Cagney <cagney@redhat.com>
4541
4542 * regcache.c: Include "gdbcmd.h"
4543 (_initialize_regcache): Add commands "maintenance print
4544 registers", "maintenance print raw-registers" and "maintenance
4545 print cooked-registers".
4546 (enum regcache_dump_what): Define.
4547 (dump_endian_bytes): New function.
4548 (regcache_dump): New function.
4549 (regcache_print): New function.
4550 (maintenance_print_registers): New function.
4551 (maintenance_print_raw_registers): New function.
4552 (maintenance_print_cooked_registers): New function.
4553 * Makefile.in (regcache.o): Update dependencies.
4554
4555 2002-08-09 Michael Snyder <msnyder@redhat.com>
4556
4557 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4558 (mips_push_arguments): Correct some comments. Use paddr_nz
4559 for printing addresses in debug output. Replace static
4560 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4561 (mips_n32n64_push_arguments): New function, cloned from
4562 mips_push_arguments and tuned for the n32/n64 ABI.
4563 (mips_push_register): Buffer needs dynamic allocation.
4564 (mips_print_register): Ditto.
4565 (do_gp_register_row): Ditto.
4566 (mips_store_return_value): Ditto.
4567 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4568
4569 2002-08-09 Don Howard <dhoward@redhat.com>
4570
4571 * memattr.c (mem_info_command): Print special case of upper bound
4572 as max CORE_ADDR + 1.
4573
4574 2002-08-08 Michael Snyder <msnyder@redhat.com>
4575
4576 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4577 returns structs by ref if they're too big to fit in two registers.
4578
4579 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4580
4581 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4582 saved regs value.
4583 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4584 mips_find_saved_regs().
4585 (mips_pop_frame): Likewise.
4586
4587 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4588
4589 * blockframe.c (frame_saved_regs_register_unwind): Revise
4590 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4591 frames are in use.
4592
4593 2002-08-09 Grace Sainsbury <graces@redhat.com>
4594
4595 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4596 T-packets; the 'a' is not taken as a register number.
4597 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4598 (remote_stopped_data_address): New functions; add to target
4599 vector.
4600 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4601 prototypes to match other implementations of this
4602 function. replace integer argument with pointer -- the length
4603 field in the Z-packet is the length of what is pointed to or 1 if
4604 pointer is null. Add to target vector.
4605 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4606 target vector.
4607
4608 From Mark Salter:
4609 * remote.c (remote_wait): Add support to extract optional
4610 watchpoint information from T-packet. Ignore unrecognized
4611 optional info in T-packet.
4612 (remote_async_wait): Ditto.
4613
4614 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4615
4616 * cli/cli-dump.c: Change fopen modes to use binary open modes
4617 as defined in include/fopen-bin.h throughout.
4618
4619 2002-08-08 Michael Snyder <msnyder@redhat.com>
4620
4621 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4622
4623 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4624
4625 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4626 assertion failure by returning early after a warning.
4627
4628 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4629
4630 * mips-tdep.c (mips_find_saved_regs): Make static.
4631 (mips_frame_init_saved_regs): New function.
4632 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4633 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4634 (mips_find_saved_regs): Delete declaration.
4635
4636 2002-08-08 Grace Sainsbury <graces@redhat.com>
4637
4638 * remote.c (remote_wait, remote_async_wait): Change
4639 thread_num from int to ULONGEST.
4640 (unpack_varlen_hex): Change result parameter from
4641 int * to ULONGEST *.
4642
4643 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4644
4645 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4646 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4647 powerpc*-*-*.
4648 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4649
4650 2002-08-08 Andrew Cagney <cagney@redhat.com>
4651
4652 * gcore.c (override_derive_stack_segment): Delete variable.
4653 (preempt_derive_stack_segment): Delete function.
4654 (derive_stack_segment): Delete function.
4655 (default_derive_stack_segment): Renamed to derive_stack_segment.
4656 (override_derive_heap_segment): Delete variable.
4657 (preempt_derive_heap_segment): Delete function.
4658 (derive_heap_segment): Delete function.
4659 (default_derive_heap_segment): Rename to derive_heap_segment.
4660
4661 2002-08-06 Michael Snyder <msnyder@redhat.com>
4662
4663 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4664 * mips-tdep.c (mips_EABI_use_struct_convention,
4665 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4666 New functions. (mips_use_struct_convention): Delete.
4667 (mips_gdbarch_init): set use_gdbarch_convention.
4668
4669 2002-08-06 Michael Snyder <msnyder@redhat.com>
4670
4671 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4672 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4673 mips_o32_reg_struct_has_addr): New functions.
4674 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4675
4676 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4677
4678 * regcache.c (pseudo_register): Delete function.
4679 (fetch_register): Delete function.
4680 (store_register): Delete function.
4681 (regcache_raw_read, legacy_read_register_gen): Use
4682 target_fetch_registers instead of fetch_register.
4683 (legacy_write_register_gen, regcache_raw_write): Use
4684 target_store_register instead of store_register.
4685 (write_register_bytes): Ditto.
4686
4687 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4688 (STORE_PSEUDO_REGISTER): Delete.
4689 * gdbarch.h, gdbarch.c: Regenerate.
4690
4691 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4692
4693 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4694 write dump file binary.
4695
4696 2002-08-05 Michael Snyder <msnyder@redhat.com>
4697
4698 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4699 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4700 (mips_gdbarch_init): Set N32 target to be mips64.
4701
4702 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4703
4704 * frame.c (find_saved_register): Break out of loop once saved
4705 register address is found. Don't mention sparc in loop comment
4706 anymore.
4707
4708 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4709
4710 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4711 mips_default_saved_regsize to 8.
4712
4713 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4714
4715 * gcore.c: Do not include <sys/procfs.h>.
4716 * Makefile.in (gcore.o): Update dependencies.
4717
4718 2002-08-06 Andrew Cagney <cagney@redhat.com>
4719
4720 * configure.tgt: Make arc-*-* obsolete.
4721 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4722 * MAINTAINERS: Make arc-elf obsolete.
4723 * arc-tdep.c: Make file obsolete.
4724 * config/arc/arc.mt: Ditto.
4725 * config/arc/tm-arc.h: Ditto.
4726
4727 2002-08-05 Theodore A. Roth <troth@verinet.com>
4728
4729 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4730
4731 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4732
4733 * mcore-tdep.c (mcore_gdbarch_init): Use
4734 generic_unwind_get_saved_register instead of
4735 generic_get_saved_register.
4736 * v850-tdep.c (v850_gdbarch_init): Ditto.
4737 * frv-tdep.c (frv_gdbarch_init): Ditto.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4739 * s390-tdep.c (s390_gdbarch_init): Ditto.
4740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4741 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4742 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4743
4744 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4745
4746 * objfiles.h: Add missing #include "symfile.h"
4747
4748 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4749
4750 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4751
4752 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4753 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4754 of FIELD_BITSIZE.
4755
4756 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * NEWS: Cleanup and nitpick.
4759
4760 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4761
4762 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4763
4764 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4765
4766 * Makefile.in (gdbtk-bp.o): Update dependencies.
4767 (gdbtk-register.o): Ditto.
4768 (gdbtk-varobj.o): Ditto.
4769
4770 2002-08-03 Andrew Cagney <cagney@redhat.com>
4771
4772 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4773 m68hc11_fetch_pseudo_register.
4774 (m68hc11_pseudo_register_write): Replace
4775 m68hc11_store_pseudo_register.
4776 (m68hc11_gdbarch_init): Update.
4777
4778 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4779
4780 * gdbarch.sh: Include "gdb_string.h".
4781 * gdbarch.c: Regenerate.
4782
4783 * regcache.c: Include "gdb_string.h".
4784 * ax-general.c: Ditto.
4785 * varobj.c: Ditto.
4786 * std-regs.c: Ditto.
4787 * fbsd-proc.c: Ditto.
4788 * thread.c: Ditto.
4789
4790 * Makefile.in (regcache.o): Update dependencies.
4791 (thread.o, gdbarch.o): Ditto.
4792 (ax-general.o, gdbarch.o): Ditto.
4793 (varobj.o, std-regs.o): Ditto.
4794 (fbsd-proc.o): Specify dependencies.
4795
4796 2002-08-02 Andrew Cagney <cagney@redhat.com>
4797
4798 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4799 regnum.
4800 (regcache_cooked_write): Ditto.
4801
4802 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4803
4804 * regcache.c (regcache_cooked_read): New function.
4805 (regcache_cooked_write): New function.
4806 (read_register_gen): Rewrite using regcache_cooked_read.
4807 (write_register_gen): Rewrite using regcache_cooked_write.
4808
4809 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4810 Declare.
4811
4812 2002-08-02 Andrew Cagney <cagney@redhat.com>
4813
4814 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4815 Replace the architecture methods register_read and register_write.
4816 * gdbarch.h, gdbarch.c: Regenerate.
4817 * regcache.c (init_regcache_descr): Update.
4818 (read_register_gen): Update.
4819 (write_register_gen): Update.
4820 (supply_register): Update comment.
4821
4822 * sh-tdep.c (sh_gdbarch_init): Update.
4823 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4824 `regcache' and `gdbarch' parameters. Make `buffer' a void
4825 pointer. Update code.
4826 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4827 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4828 void pointer. Update code.
4829 (sh64_register_write): Delete.
4830 (sh4_register_read): Delete.
4831 (sh64_register_read): Delete.
4832 (sh4_register_write): Delete.
4833 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4834 void pointer, `to' parameter a void pointer.
4835 (sh_sh64_register_convert_to_raw): Ditto.
4836
4837 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4838
4839 * mips-tdep.c (mips_register_virtual_type): Use architecture
4840 invariant return values.
4841
4842 2002-08-01 Andrew Cagney <cagney@redhat.com>
4843
4844 * linux-proc.c: Include "gdb_string.h".
4845 * Makefile.in (linux-proc.o): Update dependency list.
4846
4847 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4848
4849 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4850 comment.
4851
4852 2002-08-01 Grace Sainsbury <graces@redhat.com>
4853
4854 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4855 to_insert_watchpoint, to_remove_watchpoint,
4856 to_stopped_by_watchpoint, to_stopped_data_address,
4857 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4858 target vecctor. Define their corresponding macros so they call
4859 them.
4860
4861 * target.c: Add default and debug versions of for
4862 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4863 to_insert_watchpoint, to_remove_watchpoint,
4864 to_stopped_by_watchpoint, to_stopped_data_address,
4865 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4866
4867 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4868
4869 * mips-tdep.c (mips_register_virtual_type): New function.
4870 (mips_gdbarch_init): Register mips_register_virtual_type()
4871 with gdbarch machinery.
4872 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4873 this file instead of tm-bigmips.h.
4874 (MIPS_REGSIZE): Delete this macro.
4875 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4876 multiarch version in mips-tdep.c will be found.
4877
4878 2002-08-01 Andrew Cagney <cagney@redhat.com>
4879
4880 * NEWS: Menion that CHILL has been made obsolete.
4881
4882 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4883 * stabsread.c (read_range_type): Ditto.
4884 * gdbtypes.h: Ditto.
4885 * language.c (binop_type_check): Ditto.
4886 (binop_result_type): Ditto.
4887 (integral_type): Ditto.
4888 (character_type): Ditto.
4889 (string_type): Ditto.
4890 (boolean_type): Ditto.
4891 (structured_type): Ditto.
4892 (lang_bool_type): Ditto.
4893 (binop_type_check): Ditto.
4894 * language.h (_LANG_chill): Ditto.
4895 * dwarfread.c (set_cu_language): Ditto.
4896 * dwarfread.c (CHILL_PRODUCER): Ditto.
4897 * dwarfread.c (handle_producer): Ditto.
4898 * expression.h (enum exp_opcode): Ditto.
4899 * eval.c: Ditto for comments.
4900 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4901 * expprint.c (print_subexp): Ditto.
4902 (print_subexp): Ditto.
4903 * valops.c (value_cast): Ditto.
4904 (search_struct_field): Ditto.
4905 * value.h (COERCE_VARYING_ARRAY): Ditto.
4906 * symfile.c (init_filename_language_table): Ditto.
4907 (add_psymbol_with_dem_name_to_list): Ditto.
4908 * valarith.c (value_binop): Ditto.
4909 (value_neg): Ditto.
4910 * valops.c (value_slice): Ditto.
4911 * symtab.h (union language_specific): Ditto.
4912 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4913 (SYMBOL_DEMANGLED_NAME): Ditto.
4914 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4915 * defs.h (enum language): Ditto.
4916 * symtab.c (got_symtab): Ditto.
4917 * utils.c (fprintf_symbol_filtered): Ditto.
4918
4919 * ch-typeprint.c: Make file obsolete.
4920 * ch-valprint.c: Make file obsolete.
4921 * ch-lang.h: Make file obsolete.
4922 * ch-exp.c: Make file obsolete.
4923 * ch-lang.c: Make file obsolete.
4924
4925 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4926 CHILL_LIB.
4927 (TARGET_FLAGS_TO_PASS): Ditto.
4928 (CHILLFLAGS): Obsolete.
4929 (CHILL): Obsolete.
4930 (CHILL_FOR_TARGET): Obsolete.
4931 (CHILL_LIB): Obsolete.
4932 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4933 ch-valprint.c.
4934 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4935 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4936 ch-lang.o.
4937 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4938 targets.
4939
4940 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4941
4942 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4943 This does not change anything at the moment, but will be helpful
4944 later when full Ada support is integrated.
4945
4946 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4947
4948 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4949 help message.
4950
4951 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4952
4953 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4954 and save it in a local variable. Use variable in later test.
4955
4956 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4957
4958 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4959 test. (Thanks to Daniel Jacobowitz.)
4960
4961 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4962
4963 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4964 (mips_abi_strings): Add "n64".
4965 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4966
4967 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4968
4969 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4970 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4971
4972 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4973
4974 * utils.c (host_pointer_to_address, address_to_host_pointer):
4975 Use gdb_assert() instead of explicit call to internal_error().
4976
4977 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4978
4979 * Makefile.in (rs6000-nat.o): Update dependencies.
4980
4981 From Nicholas Duffek:
4982 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4983 (aix-thread.o): New rule.
4984 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4985 * config/powerpc/aix432.mh: New file.
4986
4987 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4988
4989 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4990 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4991 (fetch_core_registers, ppc_linux_supply_gregset)
4992 (ppc_linux_supply_fpregset): New functions.
4993 (ppc_linux_regset_core_fns): New.
4994 (_initialize_ppc_linux_tdep): Call add_core_fns.
4995 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4996 and ppc_linux_supply_gregset.
4997 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4998 (supply_fpregset): Call ppc_linux_supply_fpregset.
4999 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5000 corelow.o.
5001 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5002
5003 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5004
5005 * symtab.c (lookup_symbol): Demangle before lowercasing.
5006
5007 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5008
5009 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5010 declaration.
5011 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5012 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5013 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5014 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5015 "gdb_string.h".
5016 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5017 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5018 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5019 (avr-tdep.o, mon960-rom.o): Ditto.
5020 (aout_stabs_gnu_h): Define.
5021 (symtab_h): Remove $(gdb_obstack_h).
5022
5023 2002-07-30 Jim Blandy <jimb@redhat.com>
5024
5025 Patch from David Carlton <carlton@math.stanford.edu>:
5026 * gdbinit.in: Move the `dir' commands that add GDB's own source
5027 directory to the search path to the end, so that the `gdb' source
5028 directory will be searched first.
5029
5030 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5031
5032 * gdb_obstack.h: New file.
5033 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5034 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5035 * objfiles.h: Include "gdb_obstack.h".
5036 * Makefile.in (gdb_obstack_h): Define.
5037 (symtab_h): Add $(gdb_obstack_h).
5038 (objfiles_h): Add $(gdb_obstack_h).
5039
5040 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5041 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5042 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5043 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5044 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5045 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5046 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5047 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5048
5049 * Makefile.in (bcache.o): Update dependencies.
5050 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5051 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5052 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5053 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5054 (stabsread.o, symfile.o, symmisc.o): Ditto.
5055 (symtab.o, typeprint.o, macroexp.o): Ditto.
5056 (macrotab.o, mdebugread.o): Ditto.
5057 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5058 (coff_ecoff_h, aout_aout64_h): Define.
5059 (aout_stabs_gnu_h, libaout_h): Define.
5060
5061 2002-07-29 Andrew Cagney <cagney@redhat.com>
5062
5063 * regcache.c (struct regcache_descr): Rename nr_registers to
5064 nr_cooked_registers. Revise comments describing the structure
5065 member fields.
5066 (init_regcache_descr): Update.
5067 (init_legacy_regcache_descr): Update.
5068 (read_register_gen, write_register_gen): When a cooked register in
5069 the raw register range, directly access the value from the raw
5070 register cache.
5071
5072 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5073
5074 * z8k-tdep.c: Do not include "obstack.h".
5075 * h8300-tdep.c, h8500-tdep.c: Ditto.
5076 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5077 * valprint.c, v850-tdep.c: Ditto.
5078 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5079 * mn10200-tdep.c: Ditto.
5080
5081 * Makefile.in (z8k-tdep.o): Update dependencies.
5082 (m68hc11-tdep.o, valprint.o): Ditto.
5083 (v850-tdep.o, d10v-tdep.o): Ditto.
5084 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5085 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5086 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5087 (sh_opc_h, gdb_sim_sh_h): Define.
5088 (elf_sh_h, elf_bfd_h): Define.
5089 (opcode_m68hc11_h): Define.
5090 (OPCODES_SRC, OPCODES_DIR): define.
5091 (OPCODES): Use $(OPCODES_DIR).
5092 (gdb_sim_d10v_h): Rename sim_d10v_h.
5093 (gdb_sim_arm_h): Rename sim_arm_h.
5094
5095 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5096
5097 * utils.c (host_pointer_to_address, address_to_host_pointer):
5098 Change internal_error() message to indicate function responsible
5099 for the error.
5100
5101 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5102
5103 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5104 calls to local_hex_string_custom().
5105
5106 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5107
5108 * irix5-nat.c: Move IRIX shared library support from here...
5109 * solib-irix.c: ...to here. Revised substantially to work with
5110 generic solib framework.
5111
5112 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5113 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5114 * mips-irix-tdep.c: New file.
5115
5116 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5117 (mips-irix-tdep.o, solib-irix.o): New rules.
5118 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5119 solib-irix.o.
5120 * config/mips/irix6.mt (TDEPFILES): Likewise.
5121 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5122
5123 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5124
5125 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5126 disabled (via ``#if 0'') includes.
5127
5128 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5129
5130 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5131 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5132 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5133 Add support for the fpscr register.
5134 * rs6000-nat.c (regmap, fetch_inferior_registers)
5135 (store_inferior_registers, fetch_core_registers): Likewise.
5136
5137 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5138
5139 * rs6000-nat.c (language.h): Include.
5140 (special_regs): Delete this array.
5141 (regmap): New function.
5142 (fetch_register, store_register): Use regmap() to map gdb
5143 register numbers to ptrace register numbers. Also, use
5144 outputs from regmap() to make decisions regarding type of
5145 ptrace() call to make. In particular, don't compare against
5146 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5147 (fetch_inferior_registers, store_inferior_registers): Where
5148 possible, obtain register numbers from tdep struct. Don't
5149 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5150 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5151 (LAST_UISA_SP_REGNUM): Delete.
5152
5153 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5154
5155 * rs6000-nat.c (ppc-tdep.h): Include.
5156 (fetch_registers, store_register, fetch_core_registers): Don't
5157 access registers[] directly. Instead, use supply_register() or
5158 regcache_collect() as appropriate.
5159 (find_toc_address): Format hex address with local_hex_string().
5160
5161 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5162
5163 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5164 bfd/elf32-frv.c.
5165
5166 2002-07-24 Tom Tromey <tromey@redhat.com>
5167
5168 * jv-exp.y: Marked all strings with _().
5169 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5170 internal_error.
5171 (MethodInvocation, CastExpression, parse_number, yyerror,
5172 java_type_from_name, push_expression_name, yylex): Typo fixes.
5173
5174 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5175
5176 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5177 (tee_file_flush, tee_file_write, tee_file_fputs)
5178 (tee_file_isatty): New.
5179 * ui-file.h (tee_file_new): Add prototype.
5180
5181 2002-07-24 Aidan Skinner <aidan@velvet.net>
5182
5183 * ada-lang.c: Change k&r style function definitions to prototyped
5184 form.
5185 * ada-typeprint.c: Change k&r style function definitions to prototyped
5186 form.
5187 * ada-valprint.c: Change k&r style function definitions to prototyped
5188 form.
5189
5190 2002-07-24 Andrew Cagney <cagney@redhat.com>
5191
5192 * README: Remove reference to remote-bug.
5193 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5194 remote-bug.c.
5195 (m88k-nat.o): Delete rule.
5196 (m88k-tdep.o): Delete rule.
5197 (remote-bug.o): Delete rule.
5198 * MAINTAINERS: Mark as obsolete.
5199 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5200 * m88k-tdep.c: Make file obsolete.
5201 * config/m88k/m88k.mh: Ditto.
5202 * config/m88k/delta88v4.mh: Ditto.
5203 * config/m88k/delta88v4.mt: Ditto.
5204 * config/m88k/delta88.mt: Ditto.
5205 * config/m88k/delta88.mh: Ditto.
5206 * remote-bug.c: Ditto.
5207 * config/m88k/tm-delta88.h: Ditto.
5208 * config/m88k/nm-delta88v4.h: Ditto.
5209 * config/m88k/xm-delta88.h: Ditto.
5210 * config/m88k/xm-dgux.h: Ditto.
5211 * config/m88k/tm-m88k.h: Ditto.
5212 * config/m88k/nm-m88k.h: Ditto.
5213 * config/m88k/tm-delta88v4.h: Ditto.
5214 * m88k-nat.c: Ditto.
5215 * cxux-nat.c: Ditto.
5216 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5217 and m88*-*-* obsolete.
5218 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5219 m88*-*-* obsolete.
5220
5221 2002-07-24 Andrew Cagney <cagney@redhat.com>
5222
5223 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5224 constant. Same for local pointer variables.
5225 (extract_signed_integer): Ditto.
5226 * defs.h (extract_unsigned_integer): Update.
5227 (extract_signed_integer): Update.
5228
5229 2002-07-24 Andrew Cagney <cagney@redhat.com>
5230
5231 * regcache.c (regcache_raw_write): Change buf parameter to a
5232 constant void pointer.
5233 (regcache_raw_read): Change buf parameter to a void pointer.
5234 (legacy_write_register_gen): Change myaddr parameter a constant
5235 void pointer.
5236 (supply_register): Change val parameter to a const void pointer.
5237 * regcache.h (regcache_raw_write): Update declaration.
5238 (regcache_raw_read): Update declaration.
5239 (supply_register): Update declaration.
5240
5241 2002-07-24 Tom Tromey <tromey@redhat.com>
5242
5243 * defs.h (gdb_readline_wrapper): Declare.
5244 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5245 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5246 * top.c (gdb_readline_wrapper): New function.
5247 (command_line_input): Use it.
5248
5249 2002-07-24 Andrew Cagney <cagney@redhat.com>
5250
5251 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5252 regcache_read and regcache_write.
5253 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5254 * regcache.c: Update.
5255 * sh-tdep.c (sh64_push_arguments): Update comment.
5256 (sh_pseudo_register_read): Update.
5257 (sh_pseudo_register_write): Update.
5258 (sh4_register_read): Update.
5259 (sh4_register_write): Update.
5260 (sh64_pseudo_register_read): Update.
5261 (sh64_pseudo_register_write): Update.
5262 (sh64_register_read): Update.
5263 (sh64_register_write): Update.
5264 * i386-tdep.c (i386_extract_return_value): Update.
5265 (i386_extract_struct_value_address): Update.
5266 (i386_extract_return_value): Update.
5267 * blockframe.c (generic_read_register_dummy): Update.
5268 (generic_call_dummy_register_unwind): Update
5269 * infrun.c (write_inferior_status_register): Update.
5270
5271 2002-07-23 Jim Blandy <jimb@redhat.com>
5272
5273 * parser-defs.h (expression_context_pc): Make this extern.
5274 (Thanks to Michael Snyder.)
5275
5276 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5277
5278 GDB 5.2.1 released from 5.2 branch.
5279 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5280 * README: Update to mention 5.2.1.
5281
5282 2002-07-23 Mark Salter <msalter@redhat.com>
5283
5284 * remote.c (remote_read_bytes): Fix check for error.
5285
5286 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5287
5288 * aix-thread.c (language.h): Include.
5289 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5290 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5291 Print newlines at end of debug messages.
5292 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5293 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5294
5295 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5296
5297 * aix-thread.c (ppc-tdep.h): Include.
5298 (special_register_p): New function.
5299 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5300 (store_regs_user_thread): Use register number information from
5301 gdbarch_tdep struct instead of hardcoded offsets relative to
5302 FIRST_UISA_SP_REGNUM.
5303 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5304 special_register_p() instead of using FPLAST_REGNUM and
5305 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5306 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5307 will be MQ's register number.
5308
5309 2002-07-22 Michael Snyder <msnyder@redhat.com>
5310
5311 * aix-thread.c (ops): Rename to aix_thread_ops.
5312 (base_ops): Rename to base_target.
5313 (ops_attach): Rename to aix_thread_attach.
5314 (ops_detach): Rename to aix_thread_detach.
5315 (ops_resume): Rename to aix_thread_detach.
5316 (ops_wait): Rename to aix_thread_wait.
5317 (ops_kill): Rename to aix_thread_kill.
5318 (init_ops): Rename to init_aix_thread_ops.
5319 (ops_fetch_register): Rename to aix_thread_fetch_register.
5320 (ops_store_register): Rename to aix_thread_store_register.
5321 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5322 (ops_thread_alive): Rename to aix_thread_thread_alive.
5323 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5324 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5325 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5326 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5327 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5328 (store_regs_lib): Rename to store_regs_user_thread.
5329 (store_regs_kern): Rename to store_regs_kernel_thread.
5330
5331 2002-07-22 Michael Snyder <msnyder@redhat.com>
5332
5333 * aix-thread.c (ops_prepare_to_store): Eliminate.
5334 (init_ops): Don't initialize ops.prepare_to_store.
5335 (store_regs_kern): Pre-fetch register buffers from child,
5336 because some registers may not be in the cache. Copy
5337 regs from register cache only if they are cached.
5338 (store_regs_lib): Copy regs from register cache only
5339 if they are cached.
5340 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5341 fill_gprs64): Ditto.
5342
5343 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5344
5345 * aix-thread.c (gdb_assert.h): Include.
5346 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5347 register sizes (from register cache) match size of buffer holding
5348 register data.
5349 (fill_sprs32): Change parameter types to match those in the ptrace()
5350 buffer.
5351 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5352 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5353
5354 2002-07-22 Michael Snyder <msnyder@redhat.com>
5355
5356 * aix-thread.c (supply_sprs64): Cosmetic change.
5357 (supply_sprs32): Cosmetic change.
5358 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5359 (fill_sprs64): Use regcache_collect instead of read_register.
5360 (store_regs_lib): Use regcache_collect instead of
5361 read_register. Use fill_sprs32 instead of fill_sprs64,
5362 if debugging a 32-bit architecture.
5363 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5364 out of the register cache, instead of passing a pointer into
5365 the register cache directly to ptrace. Use regcache_collect
5366 insteaad of read_register.
5367 (ops_prepare_to_store): Use target_read_registers instead
5368 of read_register_bytes.
5369
5370 2002-07-20 Aidan Skinner <aidan@velvet.net>
5371
5372 * MAINTAINERS: Add self under write after approval.
5373
5374 2002-07-20 Aidan Skinner <aidan@velvet.net>
5375
5376 * ada-tasks.c: Change k&r style function definitions to prototyped
5377 form.
5378
5379 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5380
5381 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5382 * x86-64-tdep.c: Include "objfiles.h".
5383 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5384 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5385
5386 2002-07-17 Michal Ludvig <michal@suse.cz>
5387
5388 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5389 (update_context): Initialise cfa variable.
5390
5391 2002-07-17 Michael Snyder <msnyder@redhat.com>
5392
5393 * aix-thread.c: Shorten some long lines.
5394 Bring comments into line with code spec.
5395
5396 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5397
5398 * infrun.c: Re-indent using gdb_indent.sh.
5399
5400 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5401
5402 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5403 Leave the indentation temporarily untouched, to minimize the diffs.
5404
5405 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5406
5407 * stabsread.c: Make os9k sections of the code obsolete,
5408 for real this time.
5409 * stabsread.h: Make os9k sections of the code obsolete.
5410
5411 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5412
5413 * linux-low.c (regsets_store_inferior_registers): Add free()
5414 at the end of a loop to prevent memory leak.
5415 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5416 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5417 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5418 line a comment.
5419 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5420
5421 2002-07-17 Jim Blandy <jimb@redhat.com>
5422
5423 * macrocmd.c (info_macro_command): Remove newline from error
5424 message.
5425
5426 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5427
5428 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5429 (sh_gdbarch_init): Use it for sh-dsp.
5430
5431 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5432
5433 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5434 64-bit DWARF2 format.
5435
5436 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5437
5438 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5439 <sys/proc.h> when not available.
5440
5441 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5442
5443 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5444 * stabsread.c: Make os9k sections of the code obsolete.
5445 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5446 * config/i386/i386os9k.mt: Make file obsolete.
5447 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5448 (COMMON_OBS): Remove os9kread.o
5449 (SFILES): Remove os9kread.c.
5450 (os9kread.o, remote-os9k.o): Make target obsolete.
5451 * remote-os9k.c: Make file obsolete.
5452 * os9kread.c: Make file obsolete.
5453 * Makefile.in
5454
5455 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5456
5457 * NEWS: Mention that the FR30 has been made obsolete.
5458 * fr30-tdep.c: Make file obsolete.
5459 * config/fr30/tm-fr30.h: Ditto.
5460 * config/fr30/fr30.mt: Ditto.
5461 * configure.tgt: Make fr30-*-elf obsolete.
5462 * MAINTAINERS: Make fr30-elf obsolete.
5463
5464 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5465
5466 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5467 found is not inside a section.
5468
5469 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5470
5471 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5472 strerror().
5473 (pdc_realloc): Use xrealloc() instead of realloc().
5474
5475 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5476
5477 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5478 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5479 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5480 macros.
5481
5482 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5483
5484 * aix-thread.c (ptrace_check): Eliminate goto.
5485 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5486 problem.
5487
5488 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5489
5490 * aix-thread.c (gdbcmd.h): Include.
5491 (DEBUG, DBG, DBG2, dbg): Eliminate.
5492 (debug_aix_thread): New static global.
5493 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5494 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5495 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5496 invocations to DBG and DBG2 macros to test against
5497 ``debug_aix_thread'' and call fprintf_unfiltered().
5498 (_initialize_aix_thread): Add new command "set debug aix-thread".
5499
5500 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5501
5502 From Gerhard Tonn <TON@de.ibm.com>:
5503 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5504 instead of supply_register.
5505
5506 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5507
5508 * dwarf2cfi.c: Include "gdb_assert.h".
5509 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5510 non-NULL.
5511 (update_context): Do not use __func__. Add missing ``break''.
5512 (update_context): Do not use __func__.
5513
5514 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5515
5516 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5517 and its setting. Set gdbarch instruction printing functions
5518 directly. For non-rs6000 case use new function
5519 gdb_print_insn_powerpc.
5520 (gdb_print_insn_powerpc): New function.
5521
5522 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5523
5524 * NEWS: Mention that the d30v has been marked obsolete.
5525 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5526 * configure.tgt: Mark d30v-*-* as obsolete.
5527 * d30v-tdep.c: Mark file as obsolete.
5528 * config/d30v/d30v.mt: Ditto.
5529 * config/d30v/tm-d30v.h: Ditto.
5530
5531 2002-07-13 Aidan Skinner <aidan@velvet.net>
5532
5533 * ada-tasks.c (add_task_entry): replace calls to
5534 malloc() with xmalloc
5535 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5536
5537 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5538 ada_finish_decode_line_1, all_sals_for_line
5539 ada_breakpoint_rewrite): replace calls to free() with xfree()
5540
5541 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5542
5543 From Nicholas Duffek (with minor changes by Martin Hunt,
5544 Louis Hamilton, and Kevin Buettner):
5545 * aix-thread.c: New file.
5546
5547 2002-07-12 Petr Sorfa <petrs@caldera.com>
5548
5549 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5550 complaint for invalid attribute class or form.
5551 (read_func_scope): DW_AT_frame_base
5552 better handling of DW_AT_block*.
5553 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5554 better handling of DW_AT_block*.
5555 (read_common_block): DW_AT_location
5556 better handling of DW_AT_block*.
5557 (read_partial_die): DW_AT_location better handling
5558 of DW_AT_block*.
5559 (new_symbol): DW_AT_external better handling of
5560 DW_AT_block*. Proper initialization of variable
5561 "addr".
5562 (attr_form_is_block): New function that returns true
5563 if the attribute's form is of DW_FORM_block*.
5564
5565 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5566
5567 * valops.c (find_method_list): Remove comment about
5568 removed STATIC_MEMFUNCP argument.
5569 (value_find_oload_method_list): Likewise.
5570
5571 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5572
5573 From Nicholas Duffek:
5574 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5575 target_new_objfile_hook.
5576
5577 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5578
5579 From Nicholas Duffek:
5580 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5581 csect.
5582
5583 2002-07-12 Andrew Cagney <cagney@redhat.com>
5584
5585 * MAINTAINERS: Mention --enable-sim-build-warnings.
5586 (m68hc11-elf): Disable sim build warnings.
5587 (m32r-elf): Mark as broken obsolete candidate.
5588 (x86_64-linux-gnu): Mark as buildable with -Werror.
5589 (arm-elf): Change -w to ``,'' which enables warnings but not
5590 -Werror.
5591
5592 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5593
5594 * bcache.h: Update copyright.
5595 (struct bstring, struct bcache): Move definition to "bcache.c".
5596 Replaced by opaque declaration.
5597 (bcache_xfree): Replace free_bcache.
5598 (bcache_xmalloc, bcache_memory_used): Declare.
5599
5600 * bcache.c: Update copyright.
5601 (struct bstring, struct bcache): Moved to here from "bcache.h".
5602 Update comments.
5603 (bcache_xmalloc, bcache_memory_used): New functions.
5604 (bcache_xfree): Replace function free_bcache.
5605
5606 * Makefile.in (objfiles.o): Add $(bcache_h).
5607 (objfiles_h): Remove $(bcache_h).
5608 (symfile.o): Add $(bcache_h).
5609
5610 * symmisc.c: Update copyright.
5611 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5612 (print_objfile_statistics): Use bcache_memory_used.
5613
5614 * symfile.c: Include "bcache.h".
5615 (reread_symbols): Use bcache_xfree.
5616 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5617 (add_psymbol_to_list): Pass psymbol_cache by value.
5618 (add_psymbol_with_dem_name_to_list): Ditto.
5619
5620 * objfiles.h: Update copyright.
5621 (struct bcache): Declare opaque. Do not include "bcache.h".
5622 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5623 bcache'' pointers.
5624 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5625
5626 * objfiles.c: Include "bcache.h". Update copyright.
5627 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5628 macro_cache.
5629 (free_objfile): Use bcache_xfree.
5630
5631 2002-07-11 Grace Sainsbury <graces@redhat.com>
5632
5633 * monitor.c (monitor_fetch_register): Make name a constant.
5634 (monitor_store_register): Same.
5635
5636 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5637
5638 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5639 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5640 (finish_block) For non-function blocks, hash the symbol table. For
5641 function blocks, mark the symbol table as unhashed.
5642 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5643 (msymbol_hash_iw): Likewise.
5644 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5645 value.
5646 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5647 (lookup_minimal_symbol): Likewise for both.
5648 * symtab.h (struct block): Add `hashtable' flag. Comment the
5649 hashtable.
5650 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5651 (ALL_BLOCK_SYMBOLS): Update.
5652 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5653 (struct symbol): Add `hash_next' pointer.
5654 * symtab.c (lookup_block_symbol): Search using the hash table when
5655 possible.
5656 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5657 (search_symbols, find_addr_symbol): Likewise.
5658
5659 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5660 (read_dst_symtab): Likewise.
5661 * jv-lang.c (get_java_class_symtab): Likewise.
5662 * mdebugread.c: Include "gdb_assert.h".
5663 (shrink_block): Assert that the block being modified is not hashed.
5664 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5665 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5666 symbols.
5667 (dump_symtab): Recognize hashed blocks.
5668 * printcmd.c (print_frame_args): Assert that function blocks do not
5669 have hashed symbol tables.
5670 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5671 (fill_in_ada_prototype, debug_print_block): Likewise.
5672 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5673
5674 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5675
5676 * stack.c (print_frame): Use result of frame_address_in_block()
5677 instead of fi->pc when evaluating symbols.
5678 (backtrace_command_1): Ditto.
5679
5680 2002-07-11 Andrew Cagney <cagney@redhat.com>
5681
5682 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5683 Make static.
5684
5685 * arm-tdep.c (arm_register_name): Make return type constant.
5686
5687 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5688
5689 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5690 prototype.
5691 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5692 * s390-tdep.c (s390_fp_regnum): Ditto.
5693 (s390_read_fp): Ditto.
5694 (s390_pop_frame): Ditto.
5695 (_initialize_s390_tdep): Ditto.
5696 * remote.c (get_remote_state): Ditto.
5697 * procfs.c (mappingflags): Ditto.
5698 * memattr.c (_initialize_mem): Ditto.
5699 * mcore-tdep.c (mcore_pop_frame): Ditto.
5700 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5701 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5702 * language.c (set_case_str): Ditto.
5703 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5704 * frv-tdep.c (new_variant): Ditto.
5705 (frv_stopped_data_address): Ditto.
5706 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5707 (context_alloc): Ditto.
5708 (frame_state_alloc): Ditto.
5709 (unwind_tmp_obstack_init): Ditto.
5710 (unwind_tmp_obstack_free): Ditto.
5711 (cfi_read_fp): Ditto.
5712 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5713 (cris_pop_frame): Ditto.
5714 * c-lang.c (scanning_macro_expansion): Ditto.
5715 (finished_macro_expansion): Ditto.
5716 (c_preprocess_and_parse): Ditto.
5717 * gdbarch.sh: Ditto.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5719 * config/mn10200/tm-mn10200.h: Adjust indentation.
5720 * target.c: Adjust indentation.
5721 * symtab.h: Adjust indentation.
5722 * stabsread.h: Adjust indentation.
5723 * remote-es.c: Adjust indentation.
5724 * os9kread.c: Adjust indentation.
5725
5726 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5727
5728 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5729 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5730
5731 2002-07-10 Grace Sainsbury <graces@redhat.com>
5732
5733 * NEWS: Mention m68k, mcore multi-arching.
5734 * MAINTAINERS: Change status of m68k, mcore to reflect
5735 multi-arching.
5736
5737 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5738
5739 * valops.c (find_overload_match): Free oload_syms.
5740
5741 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5742
5743 Define HAVE_SYS_PROC_H if sys/proc.h exists
5744 * configure.in: Add check for sys/proc.h
5745 * config.in: Regenerate.
5746 * configure: Regenerate.
5747
5748 2002-07-09 Grace Sainsbury <graces@redhat.com>
5749
5750 * config/m68k/tm-m68k.h: Remove macros wrapped in
5751 #if !GDB_MULTI_ARCH.
5752
5753 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5754
5755 * config.in, configure: Regenerate.
5756
5757 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5758
5759 * dwarf2cfi.c: Include "gcore.h".
5760 (execute_stack_op): Fix implementation of the
5761 DW_OP_deref and DW_OP_deref_size operators by letting do their
5762 lookup in the target.
5763
5764 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5765
5766 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5767 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5768 tdep->sc_sp_offset.
5769
5770 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5771
5772 Fix PR gdb/595, gdb/602
5773 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5774 Don't call value_cast, just read the vtable pointer; update comments
5775 to match.
5776
5777 2002-07-05 Grace Sainsbury <graces@redhat.com>
5778
5779 * config/mcore/tm-mcore.h: Remove file.
5780 * config/mcore/mcore.mt: Remove definition of TM_FILE
5781 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5782
5783 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5784
5785 * i386bsd-tdep.c: Include "gdb_string.h".
5786
5787 2002-07-04 Grace Sainsbury <graces@redhat.com>
5788
5789 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5790 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5791 mcore-tdep.
5792 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5793 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5794 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5795 (RETVAL_REGNUM): Move macros from tm-mcore.h
5796 (mcore_reg_struct_has_addr): New function.
5797 (mcore_gdbarch_init): Added initializations for the macros removed
5798 from tm-mcore.h.
5799
5800 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5801
5802 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5803 traditonal string branding within the ELF header.
5804
5805 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5806
5807 * symtab.c (remove_params): New function.
5808 (make_symbol_overload_list): Use it instead of cplus_demangle.
5809 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5810
5811 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5812
5813 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5814
5815 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5816 New variables.
5817 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5818 and tdep->sigtramp_end.
5819 * i386obsd-nat.c: New file.
5820 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5821
5822 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5823 Don't call get_current_frame().
5824
5825 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5826
5827 * i386-nat.c (child_post_startup_inferior): New function
5828 calling i386_cleanup_dregs if
5829 I386_USE_GENERIC_WATCHPOINTS is defined.
5830 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5831 conditional to acknowledge that i386-nat.c has its
5832 own child_post_startup_inferior function.
5833
5834 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5835
5836 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5837 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5838 instead of MAX_REGISTER_RAW_SIZE.
5839 (i386_extract_return_value, i386_extract_struct_value_address):
5840 Convert to use regcache.
5841 (i386_gdbarch_init): Set max_register_raw_size and
5842 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5843 Set extract_return_value and extract_struct_value_address instead
5844 of their deprecated variants.
5845
5846 Convert i386 target to generic dummy frames.
5847 * i386-tdep.c: Include "symfile.h".
5848 (i386_frameless_signal_p): Consider a function to be frameless if
5849 the pc points at the first instruction of the function.
5850 (i386_frame_chain): Handle (generic) call dummies.
5851 (i386_frame_saved_pc): Likewise.
5852 (i386_frame_init_saved_regs): Remove code dealing with call
5853 dummies on the stack.
5854 (i386_push_dummy_frame): Removed.
5855 (i386_call_dummy_words): Removed.
5856 (i386_fix_call_dummy): Removed.
5857 (i386_push_return_address): New function.
5858 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5859 parameter, and don't call get_current_frame.
5860 (i386_pop_frame): New function.
5861 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5862 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5863 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5864 call_dummy_length to 0, set call_dummy_words to NULL, set
5865 sizeof_call_dummy_words to 0, set fix_call_dummy to
5866 generic_fix_call_dummy, set pc_in_call_dummy to
5867 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5868 generic_push_dummy_frame, set push_return_address to
5869 i386_push_return_address and set frame_chain_valid to
5870 generic_file_frame_chain_valid.
5871
5872 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5873
5874 * gdbarch.sh (struct regcache): Add opaque declaration.
5875 (EXTRACT_RETURN_VALUE): New architecture method.
5876 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5877 * gdbarch.h, gdbarch.c: Regenerate.
5878 * arch-utils.c (legacy_extract_return_value): New function.
5879 * arch-utils.h (legacy_extract_return_value): Declare.
5880 * values.c (value_being_returned): Re-enable code handling
5881 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5882 deprecated_grub_regcache_for_registers call to block handling
5883 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5884 (EXTRACT_RETURN_VALUE): Do not define.
5885
5886 2002-07-03 Grace Sainsbury <graces@redhat.com>
5887
5888 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5889 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5890 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5891 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5892 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5893 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5894 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5895 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5896 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5897 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5898 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5899 argument so the function fits the prototype in the architecture
5900 vector.
5901 (mcore_pop_frame): Remove argument so the function fits the
5902 prototype. Use get_current_frame instead of the argument.
5903 (mcore_push_arguments): Change type of struct_return so the
5904 function can be used in the architecture vector.
5905 (mcore_store_struct_return): Add.
5906 (mcore_frame_init_saved_regs): Add.
5907 (mcore_gdbarch_init): Add function calls to replace the macros
5908 removed from tm-mcore.h
5909
5910 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5911
5912 * infcmd.c (print_return_value): Remove compatibility code calling
5913 deprecated_grub_regcache_for_registers.
5914
5915 * values.c: Include "regcache.h".
5916 (value_being_returned): Update. Use
5917 deprecated_grub_regcache_for_registers to extract the register
5918 buffer address.
5919 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5920 ``struct regcache''.
5921 * Makefile.in (values.o): Add dependency on $(regcache_h).
5922
5923 * inferior.h (run_stack_dummy): Change type of second parameter to
5924 a ``struct regcache''.
5925 * valops.c (hand_function_call): Change type of retbuf to ``struct
5926 regcache''. Allocate using regcache_xmalloc, clean using
5927 make_cleanup_regcache_xfree.
5928 * infcmd.c (run_stack_dummy): Update. Use
5929 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5930
5931 * regcache.c (do_regcache_xfree): New function.
5932 (make_cleanup_regcache_xfree): New function.
5933 * regcache.h (make_cleanup_regcache_xfree): Declare.
5934
5935 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5936
5937 * event-top.c (command_line_handler): Don't read past
5938 beginning of buffer.
5939
5940 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5941
5942 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5943 struct frame_id.
5944 (varobj_create): Store frame_id for root.
5945 (varobj_gen_name): Use xasprintf.
5946 (varobj_update): Save and restore frame using get_frame_id() and
5947 frame_find_by_id().
5948 (create_child): Use xasprintf.
5949 (new_root_variable): Initialize frame_id.
5950 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5951 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5952 to prevent memory leak.
5953
5954 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5955
5956 * valops.c (hand_function_call): Move declaration of retbuf to
5957 start of function, allocate using malloc, add a cleanup but before
5958 the inf_status cleanup, cleanup the buffer. Rename local variable
5959 old_chain to inf_status_cleanup.
5960
5961 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5962
5963 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5964
5965 * cli/cli-decode.c (cmd_func_p): New function.
5966 (cmd_func): New function.
5967
5968 * command.h: Add cmd_func() and cmd_func_p().
5969
5970 2002-07-03 Grace Sainsbury <graces@redhat.com>
5971
5972 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5973 (REGISTER_SIZE): Remove.
5974 (MAX_REGISTER_RAW_SIZE): Remove.
5975 (REGISTER_VIRTUAL_TYPE): Remove.
5976 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5977 (REGISTER_NAME): Remove.
5978 (USE_GENERIC_DUMMY_FRAMES): Remove.
5979 (CALL_DUMMY): Remove.
5980 (CALL_DUMMY_START_OFFSET): Remove.
5981 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5982 (CALL_DUMMY_LOCATION): Remove.
5983 (FIX_CALL_DUMMY): Remove.
5984 (CALL_DUMMY_ADDRESS): Remove.
5985 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5986 (SAVE_DUMMY_FRAME_TOS): Remove.
5987 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5988 (mcore_register_virtual_type): New function.
5989 (mcore_register_byte): New function.
5990 (mcore_register_size): New function.
5991 (mcore_register_name): New function.
5992 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5993 macros removed from tm-mcore.h.
5994 (mcore_dump_tdep): Add.
5995 (_initialize_mcore_tdep): Add gdbarch_register call.
5996
5997 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5998
5999 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6000 frameless_look_for_prologue, such that we actually call this
6001 function.
6002
6003 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6004
6005 * frame.h (frame_address_in_block): New function.
6006
6007 * blockframe.c (frame_address_in_block): New function extracted
6008 from get_frame_block().
6009 (get_frame_block): Use frame_address_in_block().
6010 (block_innermost_frame): Use frame_address_in_block() to match
6011 the frame pc address against the block boundaries rather than
6012 the frame pc directly. This prevents a failure when a frame pc
6013 is actually a return-address pointing immediately after the end
6014 of the given block.
6015
6016 2002-07-02 Grace Sainsbury <graces@redhat.com>
6017
6018 * MAINTAINERS: Add self under write after approval.
6019
6020 2002-07-02 Grace Sainsbury <graces@redhat.com>
6021
6022 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6023 used in architecture vector. The default is
6024 m68k_local_breakpoint_from_pc.
6025 (m68k_local_breakpoint_from_pc): Add.
6026 (enum): Add register numbers from tm-m68k.h.
6027 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6028 vector.
6029 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6030 GDB_MULTI_ARCH_PARTIAL.
6031 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6032 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6033 m68k-tdep.c.
6034 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6035 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6036 to enum in m68k-tdep.c
6037
6038 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6039
6040 * solib-osf.c (open_map): Compute the list of shared libraries
6041 loaded by the inferior, rather than the list of libraries loaded
6042 by GDB itself. Otherwise, GDB ends up reading the symbols from
6043 the wrong shared libraries...
6044
6045 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6046
6047 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6048 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6049 macros.
6050 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6051 Remove functions.
6052 (FRAMELESS_SIGNAL): Remove function.
6053 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6054 i386_linux_saved_pc_after_call): Removed.
6055 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6056 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6057 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6058
6059 * i386-tdep.c (i386_frameless_signal_p): New function.
6060 (i386_frame_chain): Deal with frameless signals.
6061 (i386_sigtramp_saved_sp): New function.
6062 (i386_frame_saved_pc): Deal with frameless signals.
6063 (i386_saved_pc_after_call): Make sure the correct value is
6064 returned just after entry into a sigtramp.
6065 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6066 i386fbsd4_sc_sp_offset): New variables.
6067 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6068 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6069 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6070 similiar to what we already did for sc_pc_offset.
6071 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6072 tdep->sc_sp_offset.
6073
6074 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6075
6076 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6077
6078 * config/i386/tm-x86-64linux.h: New.
6079 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6080 definitions.
6081 * config/i386/nm-x86-64.h: Rename to ...
6082 * config/i386/nm-x86-64linux.h: ... this one.
6083 * config/i386/x86-64linux.mh: Reflect the above change.
6084
6085 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6086
6087 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6088 with sigcontext_addr. Add sc_sp_offset.
6089 (i386bsd_sigtramp_saved_pc): Remove prototype.
6090 (i386bsd_sicontext_addr): Add prototype.
6091 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6092 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6093 (i386_svr4_sigtramp_saved_pc): Removed.
6094 (i386_svr4_sigcontext_addr): New function.
6095 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6096 Initialize tdep->sigcontext_addr instead. Initialize
6097 tdep->sc_pc_offset and tdep->sc_sp_offset.
6098 (i386_gdbarch_init): Likewise.
6099 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6100 any more.
6101 (i386bsd_sigtramp_saved_pc): Remove function.
6102 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6103 Initialize tdep->sigcontext_addr instead. Initialize
6104 tdep->sc_pc_offset.
6105 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6106 of tdep->sigtramp_saved_pc.
6107 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6108 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6109 instead.
6110
6111 * i386-tdep.c (i386_frameless_function_invocation,
6112 i386_frame_num_args, i386_frame_init_saved_regs,
6113 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6114 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6115 i386_extract_return_value, i386_store_return_value,
6116 i386_extract_struct_value_address, i386_register_virtual_type,
6117 i386_register_convertible, i386_register_convert_to_virtual,
6118 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6119 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6120 static.
6121
6122 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6123
6124 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6125
6126 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6127 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6128 this macro. Include "value.h".
6129
6130 2002-06-30 Aidan Skinner <aidan@velvet.net>
6131
6132 * ada-exp.tab.c: remove as it's a generated file
6133 * ada-lex.c: remove as it's a generated file
6134
6135 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6136
6137 * config/i386/tm-i386.h (struct frame_info, struct
6138 frame_saved_regs, struct value, struct type): Remove forward
6139 declarations.
6140
6141 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6142 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6143 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6144 (FILL_FPXREGSET): Define.
6145
6146 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6147
6148 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6149 i[3456]86-*-netbsd* case.
6150 * config/i386/tm-obsd.h: Removed.
6151 * config/i386/obsd.mt: Removed.
6152 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6153 core-aout.o.
6154 (MH_CFLAGS): Add -DYYDEBUG=0.
6155
6156 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6157 i386nbsd_sc_pc_offset on OpenBSD too.
6158
6159 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6160 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6161 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6162 define.
6163 * i386bsd-tdep.c: Include "arch-utils.h".
6164 (i386bsd_aout_in_solib_call_trampoline): New function.
6165 (i386bsd_init_abi): Set in_solib_call_trampoline to
6166 i386bsd_aout_in_solib_call_trampoline.
6167 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6168 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6169
6170 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6171
6172 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6173 (struct obstack, struct bcache): Add opaque declarations.
6174 * Makefile.in (macrotab_h): Update
6175
6176 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6177
6178 * blockframe.c (generic_find_dummy_frame): Change return type to
6179 ``struct regcache''.
6180 (struct dummy_frame): Replace field ``registers'' with regcache, a
6181 struct regcache object.
6182 (generic_find_dummy_frame): Update.
6183 (generic_push_dummy_frame): Update. Use regcache_xfree,
6184 regcache_xmalloc and regcache_cpy.
6185 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6186 regcache_xfree.
6187 (deprecated_generic_find_dummy_frame): Update.
6188 (generic_read_register_dummy): Update. Use
6189 regcache_read_as_address.
6190 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6191 (generic_get_saved_register): Update. Use regcache_read.
6192
6193 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6194
6195 * Makefile.in (objfiles_h): Add $(bcache_h).
6196 * objfiles.h: Include "bcache.h".
6197
6198 * Makefile.in (symtab_h): Remove $(bcache_h).
6199 * symtab.h: Do not include "bcache.h".
6200
6201 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6202
6203 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6204 generic_func_frame_chain_valid.
6205
6206 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6207
6208 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6209 * config/i386/tm-fbsd.h: Likewise.
6210
6211 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6212
6213 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6214 generic_unwind_get_saved_register.
6215
6216 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6217
6218 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6219 * regcache.c (supply_register): Add missing argument to
6220 register_buffer call.
6221
6222 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6223
6224 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6225 Solaris /bin/grep does not not like it. From Peter Schauer.
6226
6227 2002-06-26 Tom Tromey <tromey@redhat.com>
6228
6229 * command.h (add_setshow_cmd): Declare.
6230 (add_setshow_cmd_full): Declare.
6231 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6232 returns void. Use add_setshow_cmd_full.
6233 (add_setshow_cmd_full): New function.
6234 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6235 (add_setshow_boolean_cmd): Likewise.
6236
6237 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6238
6239 * config/vax/tm-vax.h: Protect from multiple inclusion.
6240 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6241 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6242 * config/vax/tm-vaxbsd.h: ...here. New file.
6243 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6244
6245 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6248 (BELIEVE_PCC_PROMOTION): Remove.
6249 (AP_REGNUM): Move to...
6250 * config/vax/nm-vax.h: ...here.
6251 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6252 (vax_breakpoint_from_pc): New function.
6253 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6254 and gdbarch_believe_pcc_promotion.
6255
6256 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6257
6258 * Makefile.in (vax_tdep_h): Define.
6259 (vax-tdep.o): Use $(vax_tdep_h).
6260 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6261 (vax_dump_tdep): New function.
6262 (_initialize_vax_tdep): Register vax_dump_tdep.
6263 * vax-tdep.h: Include osabi.h.
6264 (struct gdbarch_tdep): New.
6265
6266 2002-06-26 Andrew Cagney <cagney@redhat.com>
6267
6268 * frame.h (deprecated_generic_find_dummy_frame): Rename
6269 generic_find_dummy_frame.
6270 * blockframe.c (generic_find_dummy_frame): Make static.
6271 (deprecated_generic_find_dummy_frame): New function.
6272 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6273 generic_find_dummy_frame with deprecated_find_dummy_frame.
6274 (sh64_nofp_frame_init_saved_regs): Ditto.
6275 (sh_fp_frame_init_saved_regs): Ditto.
6276 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6277 (s390_frame_chain): Ditto.
6278 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6279
6280 2002-06-26 Grace Sainsbury <graces@redhat.com>
6281
6282 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6283 gdbarch vector are at the top.
6284 (NUM_REGS): Remove.
6285 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6286 (FRAME_ARGS_ADDRESS): Remove.
6287 (FRAME_LOCALS_ADDRESS): Remove.
6288 (FRAME_NUM_ARGS): Remove.
6289 (FRAME_ARGS_SKIP): Remove.
6290 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6291 (m68k_gdbarch_init): Add gdbarch initializations for macros
6292 undefined in tm-m68k.h
6293
6294 2002-06-26 Grace Sainsbury <graces@redhat.com>
6295
6296 * monitor.h: Add the function regname to monitor_ops
6297 structure. This way NUM_REGS does not have to be a constant.
6298 * monitor.c (monitor_fetch_register): Added support for regname
6299 function. The function is called if the array regnames is NULL.
6300 (monitor_store_register): Same.
6301 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6302 regnames array.
6303 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6304 cpu32bug_cmds.regname to point to new function.
6305 * abug-rom.c (abug_regname): Same as above.
6306 (init_abug_cmds): Same.
6307 * dbug-rom.c (dbug_regname): Same as above.
6308 (init_dbug_cmds): Same.
6309 * remote-est.c (est_regname): Same.
6310 (init_est_cmds): Same.
6311 * rom68k-rom.c (rom68k_regname): Same.
6312 (init_rom68k_cmds): Same.
6313
6314 2002-06-25 Tom Tromey <tromey@redhat.com>
6315
6316 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6317
6318 2002-06-25 Andrew Cagney <cagney@redhat.com>
6319
6320 * infrun.c (stop_registers): Change variable's type to ``struct
6321 regcache'''.
6322 (xmalloc_inferior_status): Delete function.
6323 (free_inferior_status): Delete function.
6324 (normal_stop): Use regcache_cpy.
6325 (struct inferior_status): Change type of fields ``stop_registers''
6326 and ``registers'' to ``struct regcache''.
6327 (write_inferior_status_register): Use regcache_write.
6328 (save_inferior_status): Instead of calling
6329 xmalloc_inferior_status, allocate the inf_status buffer directly.
6330 Use regcache_dup_no_passthrough and regcache_dup to save the
6331 buffers.
6332 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6333 Replace the stop_registers regcache instead of overriding it. Use
6334 regcache_xfree. Instead of calling free_inferior_status, xfree
6335 the buffer directly.
6336 (discard_inferior_status): Use regcache_xfree. Instead of calling
6337 free_inferior_status, xfree the buffer directly.
6338 (build_infrun): Use regcache_xmalloc.
6339 (_initialize_infrun): Delete redundant call to build_infrun.
6340
6341 * Makefile.in (infcmd.o): Add $(regcache_h).
6342
6343 * infcmd.c: Include "regcache.h".
6344 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6345 obtain the address of `stop_registers' register buffer.
6346 (print_return_value): Ditto.
6347
6348 * inferior.h (struct regcache): Add opaque declaration.
6349 (stop_registers): Change variable's declared type to ``struct
6350 regcache''.
6351
6352 2002-06-24 Tom Tromey <tromey@redhat.com>
6353
6354 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6355 * target.c (initialize_targets): Fixed typo in
6356 trust-readonly-sections `show' documentation.
6357
6358 * main.c: Marked all strings with _().
6359
6360 2002-06-24 Don Howard <dhoward@redhat.com>
6361
6362 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6363 that means max CORE_ADDR+1.
6364 (lookup_mem_region): Ditto.
6365 (mem_info_command): Ditto.
6366
6367 2002-06-24 Grace Sainsbury <graces@redhat.com>
6368
6369 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6370 (REGISTER_BYTES_OK): Remove.
6371 (REGISTER_BYTES): Remove.
6372 (STORE_STRUCT_RETURN): Remove.
6373 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6374 (STORE_RETURN_VALUE): Remove.
6375 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6376 (FRAME_CHAIN): Remove.
6377 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6378 (FRAME_SAVED_PC): Remove.
6379 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6380 (m68k_store_struct_return): Add.
6381 (m68k_deprecated_extract_return_value): Add.
6382 (m68k_deprecated_extract_struct_value_address): Add.
6383 (m68k_store_return_value): Add.
6384 (m68k_frame_chain): Add.
6385 (m68k_frameless_function_invocation): Add.
6386 (m68k_frame_saved_pc): Add.
6387 (m68k_gdbarch_init): added set_gdbarch calls for new
6388 functions and deleted macros.
6389
6390 2002-06-23 Tom Tromey <tromey@redhat.com>
6391
6392 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6393 (ALLDEPFILES): Likewise.
6394 (udiheaders): Removed.
6395 (udip2soc.o): Likewise.
6396 (udi2go32.o): Likewise.
6397 (udr.o): Likewise.
6398 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6399
6400 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6401
6402 * infrun.c (_initialize_infrun): Delete unnecessary call to
6403 build_infrun.
6404
6405 * regcache.h: Update comments describing the regcache_cpy family
6406 of functions.
6407 (regcache_save, regcache_restore): Delete declaration.
6408 (regcache_save_no_passthrough): Delete declaration.
6409 (regcache_restore_no_passthrough): Delete declaration.
6410 * regcache.c (regcache_save): Delete function.
6411 (regcache_save_no_passthrough): Delete function.
6412 (regcache_restore): Delete function.
6413 (regcache_restore_no_passthrough): Delete function.
6414
6415 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6416
6417 * config/m68k/tm-m68k.h: Fix typo.
6418 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6419 (m68k_frame_init_saved_regs): Declare.
6420
6421 2002-06-21 Jim Blandy <jimb@redhat.com>
6422
6423 Remove some vestiges of Harris 88k support.
6424 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6425 register numbering quirk.
6426 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6427 odd symbols occurring in Harris 88k ELF targets.
6428
6429 2002-06-21 Tom Tromey <tromey@redhat.com>
6430
6431 * gdb_locale.h: New file.
6432 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6433 (defs_h): Added gdb_locale.h.
6434 * configure, config.in: Rebuilt.
6435 * configure.in (PACKAGE): Define.
6436 * defs.h: Include gdb_locale.h.
6437 * main.c (captured_main): Call setlocale, bindtextdomain,
6438 textdomain.
6439
6440 2002-06-21 Dave Brolley <brolley@redhat.com>
6441
6442 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6443 * config/frv/frv.mt: New file.
6444 * config/frv/tm-frv.h: New file.
6445 * configure.tgt: Support frv-*-*.
6446 * Makefile.in (frv-tdep.o): New target.
6447 * frv-tdep.c: New file.
6448 * NEWS: Mention frv.
6449
6450 2002-06-21 Dave Brolley <brolley@redhat.com>
6451
6452 * MAINTAINERS: Add self to "Write After Approval" list.
6453
6454 2002-06-21 Grace Sainsbury <graces@redhat.com>
6455
6456 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6457 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6458 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6459 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6460 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6461
6462 * m68k-tdep.c: Include arch-utils.h
6463 (m68k_register_raw_size): Add.
6464 (m68k_register_virtual_size): Add.
6465 (m68k_register_virtual_type): Add.
6466 (m68k_register_name): Add.
6467 (m68k_stack_align): Add.
6468 (m68k_register_byte): Add.
6469 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6470 tm-m68k.h.
6471
6472 2002-06-21 Grace Sainsbury <graces@redhat.com>
6473
6474 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6475 m68k_find_saved_regs.
6476 (m68k_pop_frame): Removed saved_regs structure, and replaced
6477 references to it with frame->saved_regs.
6478 (m68k_gdbarch_init): Added function calls to initialize the
6479 gdbarch structure.
6480 (m68k_fix_call_dummy): Add.
6481 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6482 (CALL_DUMMY): Remove.
6483 (CALL_DUMMY_LENGTH): Remove.
6484 (CALL_DUMMY_START_OFFSET): Remove.
6485 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6486 (FIX_CALL_DUMMY): Remove.
6487 (PUSH_DUMMY_FRAME): Remove.
6488 (POP_FRAME): Remove.
6489
6490 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6491
6492 * parse.c (parse_fprintf): New function used to avoid calls to
6493 fprintf in bison parser generated debug code.
6494 * parser-defs.h: Declaration of new parse_fprintf function.
6495 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6496 Set YYDEBUG to 1 by default.
6497 Set YYFPRINTF as parse_fprintf.
6498
6499 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6500
6501 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6502 encoding anymore.
6503 (pointer_encoding, enum ptr_encoding): New.
6504 (execute_cfa_program): Take care about pointer encoding.
6505 (dwarf2_build_frame_info): Only call parse_frame_info for
6506 .debug_frame and .eh_frame.
6507 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6508 fixed augmentation handling, added relative addressing,
6509 ignore duplicate FDEs. Added comments.
6510 * dwarf2cfi.c: Reindented.
6511
6512 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6513
6514 * event-top.c (command_handler): Don't use space_at_cmd_start
6515 unless there is sbrk() on the host. Assign time and space data
6516 to union fields of the appropriate length.
6517
6518 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6519
6520 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6521 x86_64_register_name. Return type changed to 'const char *'.
6522 (x86_64_register_name2nr): Rename to x86_64_register_number.
6523 (x86_64_gdbarch_init): Update to reflect the change.
6524 * x86-64-tdep.h: Ditto.
6525 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6526 (supply_fpregset): Ditto.
6527
6528 2002-06-19 Andrew Cagney <cagney@redhat.com>
6529
6530 * regcache.h: Update copyright.
6531 (struct regcache, struct gdbarch): Add opaque declarations.
6532 (current_regcache): Declare global variable.
6533 (regcache_read, regcache_write): Add gdbarch parameter.
6534 (regcache_save, regcache_save_no_passthrough)
6535 (regcache_restore, regcache_restore_no_passthrough)
6536 (regcache_dup, regcache_dup_no_passthrough)
6537 (regcache_cpy, regcache_cpy_no_passthrough)
6538 (deprecated_grub_regcache_for_registers)
6539 (deprecated_grub_regcache_for_register_valid)
6540 (regcache_valid_p): Add function declarations.
6541
6542 * regcache.c: Update copyright.
6543 (regcache_descr_handle): New global variable.
6544 (struct regcache_descr): Define.
6545 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6546 (regcache_descr, xfree_regcache_descr): New functions.
6547 (struct regcache): Define.
6548 (regcache_xmalloc, regcache_xfree): New functions.
6549 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6550 (regcache_dup, regcache_dup_no_passthrough): New functions.
6551 (regcache_valid_p, regcache_read_as_address): New functions.
6552 (deprecated_grub_regcache_for_registers): New function.
6553 (deprecated_grub_regcache_for_register_valid): New function.
6554 (current_regcache): New global variable.
6555 (register_buffer): Add regcache parameter. Update calls.
6556 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6557 (read_register_gen, write_register_gen): Update register_buffer
6558 call. Test for legacy_p instead of gdbarch_register_read_p or
6559 gdbarch_register_write_p.
6560 (regcache_collect): Update register_buffer call.
6561 (build_regcache): Rewrite. Use deprecated grub functions.
6562 (regcache_save, regcache_save_no_passthrough): New functions.
6563 (regcache_restore, regcache_restore_no_passthrough): New
6564 functions.
6565 (_initialize_regcache): Create the regcache_data_handle. Swap
6566 current_regcache global variable.
6567
6568 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6569 parameter to regcache_read and regcache_write calls.
6570 (sh4_register_read): Ditto.
6571 (sh64_pseudo_register_read): Ditto.
6572 (sh64_register_read): Ditto.
6573 (sh_pseudo_register_write): Ditto.
6574 (sh4_register_write): Ditto.
6575 (sh64_pseudo_register_write): Ditto.
6576 (sh64_register_write): Ditto.
6577
6578 * defs.h (XCALLOC): Define.
6579
6580 2002-06-19 Grace Sainsbury <graces@redhat.com>
6581
6582 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6583 * m68k-tdep.c (m68k_gdbarch_init): Added.
6584 (m68k_dump_tdep): Added.
6585
6586 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6587
6588 * ada-lang.c (fill_in_ada_prototype): Update comment.
6589
6590 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6593 MIPS_ABI_LAST.
6594 (mips_abi_string, mips_abi_strings): New.
6595 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6596 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6597 tdep->mips_abi_string. Honor mips_abi_string. Default to
6598 O32 if no ABI is found.
6599 (mips_dump_tdep): Use mips_abi_strings.
6600 (mips_abi_update): New function.
6601 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6602 ``set mips abi'' and ``show mips abi''. Check the size of
6603 mips_abi_strings.
6604
6605 2002-06-19 Andrew Cagney <cagney@redhat.com>
6606
6607 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6608 constant.
6609
6610 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6611
6612 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6613 current frame using only the first stack size adjustment. All
6614 subsequent size adjustments are not considered to be part of
6615 the "static" part of the current frame.
6616 Compute the address of the saved registers relative to the
6617 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6618 in use in this frame.
6619
6620 2002-06-18 Don Howard <dhoward@redhat.com>
6621
6622 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6623 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6624 suggesting this solution.
6625
6626 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6627
6628 * config/romp/xm-rtbsd.h: Delete file.
6629 * config/romp/rtbsd.mh: Delete file.
6630
6631 2002-06-18 Keith Seitz <keiths@redhat.com>
6632
6633 * breakpoint.c (condition_command): Post breakpoint_modify
6634 when a condition is added to an existing breakpoint.
6635 (commands_command): Likewise for commands.
6636 (set_ignore_count): Likewise for ignore counts.
6637 If no tty, do not simply return, still need to send event
6638 notification.
6639 (ignore_command): Only print a newline if the command came
6640 from a tty.
6641 Don't call breakpoints_changed, since this is now properly
6642 handled by set_ignore_count.
6643
6644 2002-06-18 Andrew Cagney <cagney@redhat.com>
6645
6646 * MAINTAINERS: Note that cris-elf target can be compiled with
6647 -Werror.
6648 * cris-tdep.c (cris_register_name): Make return type constant.
6649 (cris_breakpoint_from_pc): Ditto.
6650
6651 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6652
6653 * frame.h (struct frame_info): Change type of context to
6654 'struct context'.
6655
6656 2002-06-17 Andrew Cagney <cagney@redhat.com>
6657
6658 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6659 pointer.
6660 * gdbarch.h, gdbarch.c: Regenerate.
6661 * config/mips/tm-mips.h (mips_register_name): Update.
6662 * i386-tdep.h (i386_register_name): Update.
6663 * mips-tdep.c (mips_register_name): Update
6664 * alpha-tdep.c (alpha_register_name): Update.
6665 * arch-utils.c (legacy_register_name): Update.
6666 * arch-utils.h (legacy_register_name): Update.
6667 * avr-tdep.c (avr_register_name): Update.
6668 * ia64-tdep.c (ia64_register_name): Update.
6669 * i386-tdep.c (i386_register_name): Update.
6670 * sparc-tdep.c (sparc32_register_name): Update.
6671 (sparc64_register_name): Update.
6672 (sparclite_register_name): Update.
6673 (sparclet_register_name): Update.
6674 * sh-tdep.c (sh_generic_register_name): Update.
6675 (sh_sh_register_name): Update.
6676 (sh_sh3_register_name): Update.
6677 (sh_sh3e_register_name): Update.
6678 (sh_sh_dsp_register_name): Update.
6679 (sh_sh3_dsp_register_name): Update.
6680 (sh_sh4_register_name): Update.
6681 (sh_sh64_register_name): Update.
6682 * s390-tdep.c (s390_register_name): Update.
6683 * rs6000-tdep.c (rs6000_register_name): Update.
6684 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6685 (ns32k_register_name_32382): Update.
6686 * d10v-tdep.c (d10v_ts2_register_name): Update.
6687 (d10v_ts3_register_name): Update.
6688 * xstormy16-tdep.c (xstormy16_register_name): Update.
6689 * vax-tdep.c (vax_register_name): Update.
6690 * v850-tdep.c (v850_register_name): Update.
6691 * m68hc11-tdep.c (m68hc11_register_name): Update.
6692 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6693 (am33_register_name): Update.
6694
6695 2002-06-17 Grace Sainsbury <graces@redhat.com>
6696
6697 * m68k-tdep.c: Reindented.
6698
6699 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6700
6701 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6702 list of predefined types.
6703
6704 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6705
6706 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6707 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6708 REGISTER_CONVERT_TO_RAW): Remove defines.
6709 (i386_register_virtual_type, i386_register_convertible,
6710 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6711 Remove prototypes.
6712 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6713 macros mentioned above.
6714
6715 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6716 (i386lynx_saved_pc_after_call): Remove prototype.
6717 * i386ly-tdep.c: Include "i386-tdep.h".
6718 (i386lynx_saved_pc_after_call): Make static. Use
6719 read_memory_nobpt instead of read_memory. Use
6720 read_memory_unsigned_integer instead of read_memory_integer.
6721 (i386lynx_init_abi): New function.
6722 (i386lynx_coff_osabi_sniffer): New function.
6723 (_initialize_i386bsd_tdep): New function.
6724
6725 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6726 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6727 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6728 (i386_fix_call_dummy): Remove prototype.
6729 * i386-tdep.c (i386_call_dummy_words): New variable.
6730 (i386_gdbarch_init): Adjust for removal of the
6731 macros mentioned above.
6732
6733 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6734
6735 * command.h (add_setshow_auto_boolean_cmd): Replace
6736 add_set_auto_boolean_cmd.
6737 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6738 add_set_auto_boolean_cmd.
6739 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6740 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6741 mask-address'' command.
6742 (show_mask_address): Add cmd parameter.
6743 * remote.c (add_packet_config_cmd): Update. Change type of
6744 set_func and show_func to cmd_sfunc_ftype.
6745 (_initialize_remote): Update `set remote Z-packet'
6746 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6747 (show_remote_protocol_e_packet_cmd): Ditto.
6748 (show_remote_protocol_E_packet_cmd): Ditto.
6749 (show_remote_protocol_P_packet_cmd): Ditto.
6750 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6751 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6752 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6753 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6754 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6755 (show_remote_protocol_Z_packet_cmd): Ditto.
6756 (show_remote_protocol_binary_download_cmd): Ditto.
6757 (show_remote_cmd): Pass NULL to all of above.
6758
6759 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6760
6761 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6762 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6763 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6764 POP_FRAME): Remove defines.
6765 (i386_push_arguments, i386_store_struct_return,
6766 i386_extract_return_value, i386_store_return_value,
6767 i386_extract_struct_value_address, i386_push_dummy_frame,
6768 i386_pop_frame): Renove prototypes.
6769 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6770 macros mentioned above.
6771
6772 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6773
6774 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6775 add_set_boolean_cmd.
6776 (add_setshow_cmd): New function.
6777 * command.h (add_setshow_boolean_cmd): Replace
6778 add_set_boolean_cmd.
6779 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6780 and ``set rdiromatzero''.
6781 * maint.c (_initialize_maint_cmds): Update commented out code.
6782 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6783 * target.c (initialize_targets): Update `set
6784 trust-readonly-sections'.
6785 * remote.c (_initialize_remote): Update `set remotebreak'.
6786
6787 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6788
6789 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6790 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6791 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6792 fit into multi-arch framework.
6793 (i386_breakpoint_from_pc): New function.
6794 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6795 above.
6796
6797 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6798 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6799 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6800 (i386_frameless_function_invocation, i386_frame_num_args,
6801 i386_frame_init_saved_regs): Remove prototypes.
6802 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6803 macros mentioned above.
6804
6805 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6806
6807 * cli/cli-decode.c (set_cmd_cfunc): Update.
6808 (set_cmd_sfunc): Update.
6809 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6810 (set_cmd_sfunc, set_cmd_cfunc): Update.
6811 * cli/cli-decode.h: Update.
6812
6813 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6814
6815 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6816 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6817
6818 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6819
6820 * defs.h (auto_boolean): Declare enum.
6821 * command.h (cmd_auto_boolean): Delete enum.
6822 * mips-tdep.c (mask_address_var): Update.
6823 (mips_mask_address_p): Update.
6824 (show_mask_address): Update.
6825 * remote.c (struct packet_config): Update.
6826 (update_packet_config): Update.
6827 (show_packet_config_cmd): Update.
6828 (packet_ok): Update.
6829 (add_packet_config_cmd): Update.
6830 (_initialize_remote):
6831 * command.h: Update.
6832 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6833 (do_setshow_command): Update.
6834 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6835 * cli/cli-decode.h: Update.
6836
6837 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6838
6839 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6840 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6841 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6842 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6843 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6844 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6845
6846 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6847 list of DJGPP COFF targets.
6848
6849 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6850 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6851 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6852 (FP0_REGNUM): Remove define.
6853 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6854 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6855 (i386_register_virtual_size): Remove protoype.
6856 * i386-tdep.c (i386_register_virtual_size): Removed.
6857 (i386_extract_return_value, i386_store_return_value): Use
6858 FP0_REGNUM instead of NUM_FREGS to determine whether the
6859 floating-point registers are available.
6860 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6861 Adjust for removal of macros mentioned above.
6862
6863 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6864
6865 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6866 comments.
6867 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6868 Remove prototypes.
6869 (supply_gregset, fill_gregset): Remove use of register keyword and
6870 remove declaration for regmap. Use I386_NUM_GREGS instead of
6871 NUM_REGS and NUM_FREGS.
6872 (FPREGSET_FSAVE_OFFSET): Remove.
6873 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6874 NUM_FREGS to determine whether the floating-point registers are
6875 available.
6876
6877 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6878 gnu_store_registers): Replace usage of NUM_GREGS with
6879 I386_NUM_GREGS.
6880
6881 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6882 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6883 usage of NUM_GREGS with I386_NUM_GREGS.
6884
6885 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6886
6887 * i386bsd-nat.c: Include "i386-tdep.h".
6888 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6889 I386_NUM_GREGS.
6890
6891 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6892 and associated comment. They no longer make any sense, since we
6893 don't use this file anymore on Linux.
6894
6895 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6896 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6897 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6898 elements in these arrays.
6899 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6900 MAX_NUM_REGS.
6901
6902 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6903
6904 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6905 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6906
6907 2002-06-14 Andrew Cagney <cagney@redhat.com>
6908
6909 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6910 EXTRACT_RETURN_VALUE.
6911 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6912 EXTRACT_STRUCT_VALUE_ADDRESS.
6913 * gdbarch.h, gdbarch.c: Regenerate.
6914
6915 * values.c (value_being_returned): Handle
6916 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6917 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6918
6919 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6920 * arm-tdep.c (arm_gdbarch_init): Update.
6921 * avr-tdep.c (avr_gdbarch_init): Update.
6922 * cris-tdep.c (cris_gdbarch_init): Update.
6923 * d10v-tdep.c (d10v_gdbarch_init): Update.
6924 * ia64-tdep.c (ia64_gdbarch_init): Update.
6925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6926 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6927 * s390-tdep.c (s390_gdbarch_init): Update.
6928 * sh-tdep.c (sh_gdbarch_init): Update.
6929 * s390-tdep.c (s390_gdbarch_init): Update.
6930 * sparc-tdep.c (sparc_gdbarch_init): Update.
6931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6932 * v850-tdep.c (v850_gdbarch_init): Update.
6933 * vax-tdep.c (vax_gdbarch_init): Update.
6934 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6936
6937 * config/arc/tm-arc.h: Update.
6938 * config/d30v/tm-d30v.h: Update.
6939 * config/fr30/tm-fr30.h: Update.
6940 * config/h8300/tm-h8300.h: Update.
6941 * config/h8500/tm-h8500.h: Update.
6942 * config/i386/tm-i386.h: Update.
6943 * config/i386/tm-ptx.h: Update.
6944 * config/i386/tm-symmetry.h: Update.
6945 * config/i960/tm-i960.h: Update.
6946 * config/m32r/tm-m32r.h: Update.
6947 * config/m68k/tm-delta68.h: Update.
6948 * config/m68k/tm-linux.h: Update.
6949 * config/m68k/tm-m68k.h: Update.
6950 * config/m88k/tm-m88k.h: Update.
6951 * config/mcore/tm-mcore.h: Update.
6952 * config/mips/tm-mips.h: Update.
6953 * config/mn10200/tm-mn10200.h: Update.
6954 * config/pa/tm-hppa.h: Update.
6955 * config/pa/tm-hppa64.h: Update.
6956 * config/sparc/tm-sp64.h: Update.
6957 * config/sparc/tm-sparc.h: Update.
6958 * config/sparc/tm-sparclet.h: Update.
6959 * config/z8k/tm-z8k.h: Update.
6960
6961 2002-06-14 Andrew Cagney <cagney@redhat.com>
6962
6963 * Makefile.in (i386_linux_tdep_h): Define.
6964 (i386_tdep_h, i387_tdep_h): Define.
6965 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6966 $(i386_tdep_h) and $(i387_tdep_h).
6967 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6968
6969 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6970
6971 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6972 Already covered by the default.
6973
6974 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6975 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6976 (i386_gdbarch_init): Initialize long_double_format and long_double
6977 bit.
6978
6979 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6980 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6981 Move these to ...
6982 * config/i386/i386sol2.mh: ... here.
6983 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6984 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6985 (SIGCONTEXT_PC_OFFSET): Remove define.
6986 (IN_SIGTRAMP): Remove define.
6987 * i386-sol2-tdep.c: New file.
6988
6989 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6990 * config/i386/tm-i386nw.h: Removed.
6991
6992 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6993 USE_STRUCT_CONVENTION): Remove defines.
6994 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6995 (get_longjmp_target): Remove prototype.
6996 (IN_SIGTRAMP): Remove define.
6997 (i386bsd_in_sigtramp): Remove prototype.
6998 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6999 function. Update comment accordingly
7000 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7001 (FRAME_SAVED_PC): Remove define.
7002 (i386bsd_frame_saved_pc): Remove prototype.
7003 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7004 GET_LONGJMP_TARGET): Remove defines.
7005 (get_longjmp_target): Remove prototype.
7006 (IN_SIGTRAMP): Remove define.
7007 (i386bsd_in_sigtramp): Remove prototype.
7008 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7009 function. Update comment accordingly
7010 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7011 (FRAME_SAVED_PC): Remove define.
7012 (i386bsd_frame_saved_pc): Remove prototype.
7013 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7014 Remove prototype.
7015 (USE_STRUCT_CONVENTION): Remove prototype.
7016 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7017 declaration.
7018 (_initialize_i386bsd_nat): Revise logic to determine some
7019 constants at compile time when compiling a native GDB. Warn if
7020 things don't match up with what we expect.
7021 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7022 Remove variables.
7023 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7024 to use date stored in `struct gdbarch_tdep'.
7025 (i386bsd_sigcontext_offset): Remove varaible.
7026 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7027 stored in `struct gdbarch_tdep'.
7028 (i386bsd_frame_saved_pc): Make static.
7029 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7030 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7031 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7032 i386fbsd4_sc_pc_offset): New variables.
7033 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7034 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7035 functions.
7036 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7037 functions.
7038 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7039 Modify the value of i386fbsd_sigtramp_start and
7040 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7041 i386fbsd_sigtramp_end.
7042 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7043 function.
7044
7045 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7046 define to i386-linux-tdep.h.
7047 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7048 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7049 defines.
7050 (i386_linux_register_name, i386_linux_register_byte,
7051 i386_linux_register_raw_size): Remove prototypes.
7052 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7053 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7054 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7055 TARGET_WRITE_PC): Remove defines.
7056 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7057 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7058 i386_linux_write_pc): Remove prototypes.
7059 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7060 (get_longjmp_target): Remove prototype.
7061 * i386-linux-tdep.h: New file.
7062 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7063 * i386-linux-tdep.c: Include "i386-tdep.h" and
7064 "i386-linux-tdep.h".
7065 (i386_linux_register_name, i386_linux_register_byte,
7066 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7067 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7068 Make static.
7069 (i386_linux_init_abi): New function.
7070 (_initialize_i386_linux_tdep): New function.
7071
7072 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7073 (i386_saved_pc_after_call): Remove prototype.
7074 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7075 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7076 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7077 (i386_register_name, i386_stab_reg_to_regnum,
7078 i386_dwarf_reg_to_regnum): Remove prototypes.
7079 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7080 SIZEOF_SSE_REGS): Remove defines.
7081 (REGISTER_BYTES): Remove define.
7082 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7083 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7084 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7085 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7086 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7087 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7088 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7089 (get_longjmp_target): Remove prototype.
7090 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7091 (sigtramp_saved_pc): Remove define.
7092 (i386v4_sigtramp_saved_pc): Remove prototype.
7093 * config/i386/tm-go32.h (FRAME_CHAIN,
7094 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7095 (i386go32_frame_saved_pc): Remove prototype.
7096 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7097 (get_longjmp_target): Remove prototype.
7098 * i386-tdep.h: Include "osabi.h".
7099 (enum i386_abi): Removed.
7100 (enum struct_return): New enum.
7101 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7102 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7103 sc_pc_offset members.
7104 (i386_gdbarch_register_os_abi): Remove prototype.
7105 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7106 I386_SSE_NUM_REGS): New defines.
7107 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7108 I386_SSE_SIZEOF_REGS): New defines.
7109 (i386_register_name, i386_register_byte, i386_register_raw_size):
7110 New prototypes.
7111 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7112 (i386bsd_sigtramp_saved_pc): New prototype.
7113 * i386-tdep.c: Don't include "elf-bfd.h".
7114 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7115 i386_frame_chain, i386_saved_pc_after_call): Make static.
7116 (i386_frame_saved_pc): Rewrite to call architecture dependent
7117 function to deal with signal handlers. Make static.
7118 (i386go32_frame_saved_pc): Removed.
7119 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7120 Removed.
7121 (i386_get_longjmp_target): New function.
7122 (default_struct_convention, pcc_struct_convention,
7123 reg_struct_convention, valid_conventions, struct_convention): New
7124 variables.
7125 (i386_use_struct_convention): New function.
7126 (i386v4_sigtramp_saved_pc): Renamed to
7127 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7128 (i386_pc_in_sigtramp): New function.
7129 (i386_abi_names): Removed.
7130 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7131 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7132 Removed.
7133 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7134 i386_gdbarch_register_os_abi): Removed.
7135 (struct i386_abi_handler): Removed.
7136 (i386_abi_handler_list): Removed.
7137 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7138 functions.
7139 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7140 i386_nw_init_abi): New functions.
7141 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7142 Use set_gdbarch_xxx() calls instead of relying on macros for a
7143 number of calls.
7144 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7145 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7146 Register the various architecture variants defined in this file.
7147
7148 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7149
7150 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7151 (struct main_type): Remove arg_types member. Update comments for
7152 struct field.
7153 (TYPE_ARG_TYPES): Remove.
7154 (TYPE_FN_FIELD_ARGS): Update.
7155 (smash_to_method_type): Update prototype.
7156
7157 * c-typeprint.c (cp_type_print_method_args): Take method type
7158 instead of argument list. Use new argument layout. Simplify.
7159 (c_type_print_args): Use new argument layout. Simplify.
7160 (c_type_print_base): Update call to cp_type_print_method_args.
7161 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7162 argument; use die->type instead. Update call to
7163 smash_to_method_type.
7164 (read_structure_scope): Update call to dwarf2_add_member_fn.
7165 * gdbtypes.c (allocate_stub_method): Update comment.
7166 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7167 Use new argument layout.
7168 (check_stub_method): Use new argument layout. Don't count
7169 void as an argument.
7170 (print_arg_types): Update comments. Use new argument layout.
7171 (recursive_dump_type): Don't print arg_types member.
7172 * hpread.c (hpread_read_struct_type): Use new argument layout.
7173 (fixup_class_method_type): Likewise.
7174 (hpread_type_lookup): Likewise.
7175 * stabsread.c (read_type): Update calls to read_args and
7176 smash_to_method_type.
7177 (read_args): Use new argument layout. Simplify.
7178 * valops.c (typecmp): Use new argument layout. Update parameters
7179 and comments. Simplify.
7180 (hand_function_call): Use new argument layout.
7181 (search_struct_method): Update call to typecmp.
7182 (find_overload_match): Use new argument layout.
7183
7184 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7185
7186 * NEWS: Mention multithreaded debug support for gdbserver.
7187
7188 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7189
7190 * MAINTAINERS: Mention NEWS.
7191
7192 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7193
7194 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7195 (struct mips_objfile_private, compare_pdr_entries): New.
7196 (non_heuristic_proc_desc): Read the ".pdr" section if it
7197 is present.
7198
7199 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7200
7201 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7202 (arm_debug): New static variable.
7203 (_initialize_arm_tdep): Add ``set debug arm'' command.
7204
7205 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7206
7207 * Makefile.in (sim_arm_h): Define.
7208 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7209 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7210 (arm_register_sim_regno): New function, map an internal REGNUM
7211 onto a simulator register number.
7212 (arm_gdbarch_init): Set register_sim_regno.
7213
7214 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7215
7216 * MAINTAINERS: Add self.
7217
7218 2002-06-11 Jim Blandy <jimb@redhat.com>
7219
7220 * source.c (source_info): Mention whether the symtab has
7221 information about preprocessor macros.
7222
7223 Call the command `info macro', not `show macro'.
7224 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7225 Fix error message.
7226 (_initialize_macrocmd): Register `info_macro_command' in
7227 `infolist', not `showlist'.
7228
7229 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7230
7231 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7232 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7233 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7234 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7235 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7236 unconditionally.
7237 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7238 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7239 (_initialize_mips_tdep): Remove dead code.
7240 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7241 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7242 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7243 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7244 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7245 MIPS_LAST_FP_ARG_REGNUM): Remove.
7246
7247 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7248
7249 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7250 (unwind_tmp_obstack_free, parse_frame_info)
7251 (update_context, cfi_read_fp, cfi_write_fp)
7252 (cfi_frame_chain, cfi_init_extra_frame_info)
7253 (cfi_virtual_frame_pointer): Use the above function.
7254 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7255
7256 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7257
7258 * v850-tdep.c (v850_type_is_scalar): New function.
7259 (v850_use_struct_convention): Match current gcc implementation
7260 as close as possible.
7261 (v850_push_arguments): Fix stack_offset handling. Don't write
7262 struct_addr into register. This is done by v850_store_struct_return.
7263 (v850_extract_return_value): Care for structs.
7264 (v850_store_return_value): Ditto.
7265 (v850_store_struct_return): Actually write address.
7266
7267 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7268
7269 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7270 without debug information too.
7271
7272 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7273
7274 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7275 Make multi-arch pure.
7276 * gdbarch.h, gdbarch.c: Re-generate.
7277 * arm-tdep.c (arm_print_float_info): Update.
7278 * arch-utils.h (default_print_float_info): Update.
7279 * arch-utils.c (default_print_float_info): Update.
7280 * infcmd.c (float_info): Update call.
7281
7282 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7283
7284 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7285 the front of the initialize list.
7286
7287 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7288
7289 * infrun.c (struct inferior_status): Replace fields
7290 selected_frame_address and selected_level with field
7291 selected_frame_id.
7292 (save_inferior_status): Update. Use get_frame_id.
7293 (struct restore_selected_frame_args): Delete.
7294 (restore_selected_frame): Update. Use frame_find_by_id.
7295 (restore_inferior_status): Update.
7296
7297 * breakpoint.h (struct breakpoint): Change type of
7298 watchpoint_frame to frame_id.
7299 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7300 call to get_current_frame.
7301 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7302 get_current_frame.
7303 (watchpoint_check): Use frame_find_by_id.
7304
7305 * frame.h (record_selected_frame): Delete declaration.
7306 * stack.c (record_selected_frame): Delete function.
7307
7308 * frame.h (struct frame_id): Define.
7309 (get_frame_id): Declare.
7310 (frame_find_by_id): Declare.
7311 * frame.c (frame_find_by_id): New function.
7312 (get_frame_id): New function.
7313
7314 2002-06-10 Andrey Volkov <avolkov@transas.com>
7315
7316 * ser-e7kpc.c: Fix duplicated define and call of
7317 _initialize_ser_e7000pc
7318
7319 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7320
7321 * signals/signals.c (target_signal_from_host): Fix #ifdef
7322 SIGRTMIN case.
7323 (do_target_signal_to_host): Likewise.
7324
7325 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7326
7327 * mips-tdep.c (mips_find_abi_section): New function.
7328 (mips_gdbarch_init): Call it.
7329
7330 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7331
7332 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7333 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7334 after Andrew's 2002-06-08 gdbarch change.
7335
7336 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7337
7338 * i386-linux-nat.c (suppy_gregset): Don't supply
7339 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7340 register cache.
7341 (fill_gregset): Don't fetch it under the same circumstances.
7342
7343 2002-06-09 Andrew Cagney <cagney@redhat.com>
7344
7345 * Makefile.in (callback_h): Define.
7346 (remote_sim_h): Update path to remote-sim.h.
7347 (remote-rdp.o): Add $(callback_h).
7348 (remote-sim.o): Use $(callback_h).
7349 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7350 * remote-rdp.c: Include "gdb/callback.h".
7351
7352 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7353
7354 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7355 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7356
7357 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7358
7359 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7360 * rdi-share/serpardr.c: Ditto.
7361 * rdi-share/unixcomm.c: Ditto.
7362 * rdi-share/serdrv.c: Ditto.
7363 * rdi-share/hostchan.h: Ditto.
7364 * rdi-share/hostchan.c: Ditto.
7365 * rdi-share/host.h: Ditto.
7366 * rdi-share/devsw.c: Ditto.
7367
7368 * objfiles.h: Change type of obj_private to void pointer.
7369 * pa64solib.c: Update copyright. Don't include "assert.h", use
7370 strcmp instead of STREQ, use LONGEST, do not use PTR
7371 * somsolib.c: Ditto.
7372
7373 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7374 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7375 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7376
7377 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7378
7379 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7380 (default_get_saved_register): Delete function.
7381 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7382 generic_unwind_get_saved_register.
7383 * gdbarch.h, gdbarch.c: Re-generate.
7384
7385 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7386
7387 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7388 generic_func_frame_chain_valid.
7389 * gdbarch.h, gdbarch.c: Re-generate.
7390 * blockframe.c (generic_func_frame_chain_valid): Only check
7391 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7392 passing FP to PC_IN_CALL_DUMMY.
7393 Fix PR gdb/360.
7394
7395 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7396
7397 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7398 (register_gdbarch_data): Initialize init_p.
7399 (gdbarch_data): Initialize data pointer using the init function.
7400 (init_gdbarch_data): Delete function.
7401 (gdbarch_update_p): Update.
7402 (initialize_non_multiarch): Update.
7403 (struct gdbarch): Add field initialized_p.
7404 * gdbarch.h, gdbarch.c: Re-generate.
7405
7406 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7407
7408 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7409 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7410 better do the things actually here.
7411 * x86-64-tdep.c (x86_64_register_name2nr): New.
7412 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7413 (x86_64_gdbarch_init): Respect the above change.
7414 * x86-64-tdep.h (x86_64_register_name2nr)
7415 (x86_64_register_nr2name): Add prototypes.
7416 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7417
7418 2002-06-06 Michael Snyder <msnyder@redhat.com>
7419
7420 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7421 Delete extra braces and re-indent.
7422 (d10v_store_return_value): Char return values
7423 must be shifted over by one byte in R0.
7424 (d10v_extract_return_value): Delete extra braces, re-indent.
7425
7426 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7427
7428 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7429 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7430 (d10v_integer_to_address): Rewrite.
7431 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7432 the d10v specific functions which take care of converting to the
7433 correct space.
7434
7435 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7436
7437 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7438 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7439
7440 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7441
7442 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7443 includes.
7444 * config/tm-linux.h: Ditto.
7445 * config/alpha/tm-alphalinux.h: Ditto.
7446 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7447 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7448 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7449 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7450 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7451 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7452 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7453 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7454 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7455 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7456 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7457 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7458 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7459 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7460 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7461 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7462 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7463 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7464 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7465 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7466 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7467 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7468 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7469 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7470 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7471 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7472 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7473 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7474 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7475 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7476 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7477 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7478 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7479 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7480 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7481 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7482 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7483
7484 2002-05-04 Aidan Skinner <aidan@velvet.net>
7485
7486 * ada-exp.tab.c: New file
7487 * ada-exp.y: New file
7488 * ada-lang.c: New file
7489 * ada-lang.h: New file
7490 * ada-lex.c: New file
7491 * ada-lex.l: New file
7492 * ada-tasks.c: New file
7493 * ada-typeprint.c: New file
7494 * ada-valprint.c: New file
7495
7496 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7497
7498 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7499 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7500
7501 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7502
7503 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7504 insetead of ppc-linux-tdep.o.
7505 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7506 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7507
7508 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7509
7510 2002-05-07 Christian Groessler <chris@groessler.org>
7511 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7512 bit register contents for little endian hosts.
7513
7514 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7515
7516 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7517 any maintainer.
7518
7519 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7520
7521 * gdbarch.h: Regenerate.
7522
7523 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7524
7525 * MAINTAINERS: Add everyone to write-after-approval list.
7526
7527 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7528
7529 * stack.c (frame_info): Use frame_register_unwind instead of
7530 saved_regs. Mention when the SP is on the stack or in a register.
7531
7532 * frame.h (frame_register_unwind_ftype): Define. Document.
7533 (struct frame_info): Add field register_unwind and
7534 register_unwind_cache.
7535 (frame_register_unwind): Declare.
7536 (generic_unwind_get_saved_register): Declare.
7537
7538 * frame.c (frame_register_unwind): New function.
7539 (generic_unwind_get_saved_register): New function.
7540
7541 * blockframe.c (generic_call_dummy_register_unwind): New function.
7542 (frame_saved_regs_register_unwind): New function.
7543 (set_unwind_by_pc): New function.
7544 (create_new_frame): New function.
7545 (get_prev_frame): New function.
7546
7547 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7548
7549 * a29k-share/: Delete directory.
7550 * remote-vx29k.c: Delete file.
7551
7552 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7553
7554 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7555 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7556
7557 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7558
7559 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7560 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7561 (sparc64nbsd-nat.o)
7562 (sparcnbsd-nat.o)
7563 (sparcnbsd-tdep.o): New dependency lists.
7564 * NEWS: Note new UltraSPARC NetBSD native configuration.
7565 * configure.host (sparc64-*-netbsd*): New host.
7566 * configure.tgt (sparc-*-netbsdelf*)
7567 (sparc-*-netbsd*): Set gdb_target to nbsd.
7568 (sparc64-*-netbsd*): New target.
7569 * sparc64nbsd-nat.c: New file.
7570 * sparcnbsd-nat.c: New file.
7571 * sparcnbsd-tdep.c: New file.
7572 * sparcnbsd-tdep.h: New file.
7573 * config/sparc/nbsd.mt: New file.
7574 * config/sparc/nbsd64.mh: New file.
7575 * config/sparc/nbsd64.mt: New file.
7576 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7577 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7578 (HOST_IPC): Remove.
7579 * config/sparc/nbsdaout.mt: Remove.
7580 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7581 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7582 (HOST_IPC): Remove.
7583 * config/sparc/nbsdelf.mt: Remove.
7584 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7585 sparc-nat.c compatiblity defines.
7586 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7587 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7588 * config/sparc/tm-nbsd64.h: New file.
7589 * config/sparc/tm-nbsdaout.h: Remove.
7590 * config/sparc/xm-nbsd.h: Remove.
7591
7592 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7593
7594 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7595 * sparc-tdep.c: Include osabi.h.
7596 (gdbarch_tdep): Add osabi member.
7597 (_initialize_sparc_tdep): Use gdbarch_register.
7598 (sparc_gdbarch_init): Use generic OS ABI framework.
7599 (sparc_dump_tdep): New function.
7600
7601 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7602
7603 * corefile.c (do_captured_read_memory_integer): Return non-zero
7604 result.
7605 (safe_read_memory_integer): Copy result of memory read when
7606 status is non-zero. Also, add comments.
7607
7608 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7609
7610 * Makefile.in (ppc_tdep_h): Define.
7611 (ppc-linux-nat.o)
7612 (ppc-linux-tdep.o)
7613 (rs6000-tdep.o): Use $(ppc_tdep_h).
7614 (ppc-sysv-tdep.o)
7615 (ppcnbsd-nat.o)
7616 (ppcnbsd-tdep.o): New dependency lists.
7617 * ppc-tdep.h: Use generic OS ABI framework.
7618 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7619 (ppc_linux_init_abi): New functions.
7620 (ppc_sysv_abi_broken_use_struct_convention)
7621 (ppc_sysv_abi_use_struct_convention)
7622 (ppc_sysv_abi_push_arguments): Move to...
7623 * ppc-sysv-tdep.c: ...here.
7624 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7625 * rs6000-tdep.c (process_note_abi_tag_sections)
7626 (get_elfosabi): Remove.
7627 (rs6000_gdbarch_init): Use generic OS ABI framework.
7628 (rs6000_dump_tdep): New function.
7629 (_initialize_rs6000_tdep): Use gdbarch_register.
7630 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7631 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7632 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7633 of ppc-linux-tdep.o.
7634 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7635 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7636 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7637 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7638 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7639 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7640
7641 2002-05-29 Jim Blandy <jimb@redhat.com>
7642
7643 * macroscope.c (default_macro_scope): Put `void' in empty argument
7644 list.
7645
7646 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7647
7648 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7649 * arch-utils.c: Include "sim-regno.h".
7650 * gdbarch.sh: Don't include "sim-regno.h".
7651 * gdbarch.h, gdbarch.c: Regenerate.
7652 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7653 here.
7654 * arch-utils.h (legacy_register_sim_regno): To here.
7655 * remote-sim.c (legacy_register_sim_regno): Move function from
7656 here.
7657 * arch-utils.c (legacy_register_sim_regno): To here.
7658
7659 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7660
7661 * sim-regno.h: New file.
7662 * Makefile.in (sim_regno_h): Define.
7663 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7664 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7665 (legacy_register_sim_regno): New function.
7666 (one2one_register_sim_regno): New function.
7667 (gdbsim_fetch_register): Rewrite.
7668 (gdbsim_store_register): Only store a register when
7669 REGISTER_SIM_REGNO is valid.
7670 * d10v-tdep.c: Include "sim-regno.h".
7671 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7672 (d10v_ts3_register_sim_regno): Ditto.
7673 * gdbarch.sh: Include "sim-regno.h".
7674 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7675 * gdbarch.h, gdbarch.c: Regenerate.
7676 * arch-utils.h (default_register_sim_regno): Delete declaration.
7677 * arch-utils.c (default_register_sim_regno): Delete function.
7678
7679 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7680
7681 * ppcnbsd-nat.c: Rewrite.
7682 * ppcnbsd-tdep.c: New file.
7683 * ppcnbsd-tdep.h: New file.
7684 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7685 solib.o, and solib-svr4.o.
7686 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7687 nbsd-tdep.o, and corelow.o.
7688
7689 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7690
7691 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7692 `tr' and `sed'. Mention that `broken' targets are not expected to
7693 build.
7694
7695 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7696
7697 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7698 Let PC point right after the prologue before looking up symbols.
7699
7700 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7701
7702 * i386-tdep.c (i386_register_virtual_type): Return
7703 builtin_type_vec128i for SSE registers.
7704
7705 * gdbtypes.h (builtin_type_vec128i): Declare.
7706
7707 * gdbtypes.c (build_builtin_type_vec128i): New function.
7708 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7709 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7710 (build_gdbtypes): Initialize new builtin vector types.
7711 (_initialize_gdbtypes): Register new vector types with gdbarch.
7712
7713 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7714
7715 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7716 since it has been multi-arch'd.
7717 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7718 Move Alpha and VAX multi-arch news entries to same section
7719 as other multi-arch news.
7720
7721 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7722
7723 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7724 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7725 static. Rename some register numbers to put them in ns32k-tdep
7726 private namespace.
7727 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7728 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7729 functions.
7730 (_initialize_ns32k_tdep): Use gdbarch_register.
7731 * ns32k-tdep.h: New file.
7732 * ns32knbsd-tdep.c: New file.
7733 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7734 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7735 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7736 REGISTER_BYTES, REGISTER_BYTE): Remove.
7737 * config/ns32k/tm-ns32k.h: New file.
7738 * config/ns32k/tm-umax.h: Remove.
7739
7740 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7741
7742 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7743 ns32k_store_struct_return, ns32k_extract_return_value,
7744 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7745 functions.
7746 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7747 ns32k_saved_pc_after_call.
7748 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7749 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7750 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7751 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7752 ns32k_extract_struct_value_address.
7753
7754 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7757 ns32k_fix_call_dummy): New.
7758 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7759 ns32k_call_dummy_words.
7760 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7761 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7762 CALL_DUMMY_NARGS): Remove.
7763 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7764
7765 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7766
7767 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7768 ns32k_frame_saved_pc, ns32k_frame_args_address,
7769 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7770 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7771 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7772 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7773 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7774 (BREAKPOINT): Remove..
7775 (FRAME_CHAIN): Define as ns32k_frame_chain.
7776 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7777 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7778 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7779 (FRAME_FIND_SAVED_REGS): Remove.
7780 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7781 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7782 (POP_FRAME): Define as ns32k_pop_frame.
7783
7784 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7785
7786 * ns32k-tdep.c (ns32k_register_byte_32082,
7787 ns32k_register_byte_32382, ns32k_register_raw_size,
7788 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7789 functions.
7790 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7791 ns32k_register_byte_32382.
7792 * config/ns32k/tm-umax.h: Update copyright years.
7793 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7794 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7795 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7796 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7797 (ns32k_get_enter_addr): Fix prototype.
7798
7799 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7800
7801 * ns32k-tdep.c: Update copyright years.
7802 (ns32k_register_name_32082): New function.
7803 (ns32k_register_name_32382): Ditto.
7804 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7805 (REGISTER_NAME): Define as ns32k_register_name_32382.
7806 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7807 (REGISTER_NAME): Define as ns32k_register_name_32082.
7808
7809 2002-05-24 Jim Blandy <jimb@redhat.com>
7810
7811 * dwarf2read.c (free_line_header): Use xfree, not free.
7812
7813 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7814
7815 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7816 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7817
7818 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7819
7820 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7821
7822 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7823
7824 From Ross Alexander at NEC Europe:
7825 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7826
7827 2002-05-23 Michael Snyder <msnyder@redhat.com>
7828
7829 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7830 for input, rather than parse_and_eval_address.
7831
7832 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7833
7834 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7835 * Makefile.in (sim_d10v_h): Update definition.
7836
7837 2002-05-24 Andrew Cagney <cagney@redhat.com>
7838
7839 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7840 change `2002-05-22 Michael Snyder' below.
7841 (d10v_push_arguments): Ditto.
7842 (d10v_extract_return_value): Ditto.
7843
7844 2002-05-23 Jim Blandy <jimb@redhat.com>
7845
7846 * macrotab.c (check_for_redefinition): Don't complain if the new
7847 definition is the same as the previous one. Take more arguments
7848 to allow the comparison.
7849 (macro_define_object, macro_define_function): Pass more arguments
7850 to check_for_redefinition.
7851
7852 2002-05-22 Michael Snyder <msnyder@redhat.com>
7853
7854 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7855 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7856 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7857 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7858 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7859 Add a temp variable to save a call (and a memory read).
7860 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7861 if possible (so that PC_IN_CALL_DUMMY will work).
7862
7863 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7864
7865 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7866
7867 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7868
7869 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7870 fde->cie_ptr.
7871 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7872 (dwarf2_build_frame_info): Add offset to fde->initial_location
7873 so that frames of shared libraries are mapped correctly.
7874 (execute_stack_op): Change type of 'result' from ULONGEST to
7875 CORE_ADDR.
7876
7877 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7878
7879 * config/alpha/tm-nbsd.h: Include solib.h.
7880
7881 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7882
7883 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7884 assumptions about the host's byte order.
7885
7886 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7887
7888 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7889 to dependency list.
7890 * alphanbsd-tdep.c: Include solib-svr4.h.
7891 * shnbsd-tdep.c: Ditto.
7892
7893 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7894
7895 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7896 nbsd-tdep.h to dependency list.
7897 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7898 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7899 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7900 nbsdaout.mh and nbsdelf.mh consistently.
7901 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7902 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7903 nbsdaout.mt and nbsdelf.mh consistently.
7904 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7905 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7906 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7907 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7908 a.out shared library stuff from here...
7909 * config/nm-nbsdaout.h: ...to here.
7910 * config/tm-nbsd.h: Remove.
7911 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7912 * config/arm/nbsd.mh: Remove.
7913 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7914 nbsd-tdep.o.
7915 * config/arm/nbsdaout.mh: New file.
7916 * config/arm/nbsdelf.mh: New file.
7917 * config/arm/nm-nbsdaout.h: New file.
7918 * config/i386/nbsd.mh: Remove.
7919 * config/i386/nbsd.mt: Remove.
7920 * config/i386/nbsdaout.mh: New file.
7921 * config/i386/nbsdaout.mt: New file.
7922 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7923 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7924 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7925 i386_register_u_addr): Remove.
7926 * config/i386/nm-nbsdaout.h: New file.
7927 * config/i386/nm-nbsdelf.h: Remove.
7928 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7929 (USE_STRUCT_CONVENTION): Remove.
7930 * config/i386/tm-nbsdaout.h: New file.
7931 * config/i386/tm-nbsdelf.h: Remove.
7932 * config/m68k/nbsd.mh: Remove.
7933 * config/m68k/nbsd.mt: Remove.
7934 * config/m68k/nbsdaout.mh: New file.
7935 * config/m68k/nbsdaout.mt: New file.
7936 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7937 * config/m68k/nm-nbsdaout.h: New file.
7938 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7939 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7940 * config/ns32k/nbsd.mh: Remove.
7941 * config/ns32k/nbsd.mt: Remove.
7942 * config/ns32k/nbsdaout.mh: New file.
7943 * config/ns32k/nbsdaout.mt: New file.
7944 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7945 * config/ns32k/nm-nbsdaout.h: New file.
7946 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7947 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7948 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7949 (SVR4_SHARED_LIBS): Remove.
7950 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7951 * config/sparc/nbsd.mh: Remove.
7952 * config/sparc/nbsd.mt: Remove.
7953 * config/sparc/nbsdaout.mh: New file.
7954 * config/sparc/nbsdaout.mt: New file.
7955 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7956 * config/sparc/nbsdelf.mt: New file.
7957 * config/sparc/nm-nbsdaout.h: New file.
7958 * config/sparc/nm-nbsdelf.h: Remove.
7959 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7960 * config/sparc/tm-nbsdaout.h: New file.
7961
7962 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7963
7964 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7965 mipsnbsd-tdep.c
7966 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7967
7968 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7971 shnbsd-nat.c.
7972 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7973
7974 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7975
7976 * NEWS: Note new MIPS NetBSD native configuration.
7977 * configure.host (mips*-*-netbsd*): New host.
7978 * configure.tgt (mips*-*-netbsd*): New target.
7979 * mipsnbsd-nat.c: New file.
7980 * mipsnbsd-tdep.c: New file.
7981 * mipsnbsd-tdep.h: New file.
7982 * config/mips/nbsd.mh: New file.
7983 * config/mips/nbsd.mt: New file.
7984 * config/mips/nm-nbsd.h: New file.
7985 * config/mips/tm-nbsd.h: New file.
7986
7987 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7988
7989 * Makefile.in (SFILES): Add osabi.c.
7990 (COMMON_OBS): Add osabi.o.
7991 (osabi.o): New dependency list.
7992 * osabi.c: New file.
7993 * osabi.h: New file.
7994 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7995
7996 * Makefile.in (alpha_tdep_h): Define and use instead of
7997 alpha-tdep.h.
7998 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7999 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8000 Remove.
8001 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8002 * alpha-tdep.h: Include osabi.h.
8003 (alpha_abi): Remove.
8004 (gdbarch_tdep): Use generic OS ABI framework.
8005 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8006 gdbarch_register_osabi.
8007 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8008 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8009 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8010
8011 * Makefile.in (sh_tdep_h): Add osabi.h.
8012 * sh-tdep.h (sh_osabi): Remove.
8013 (gdbarch_tdep): Use generic OS ABI framework.
8014 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8015 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8016 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8017 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8018
8019 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8020 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8021 gdbarch_register_osabi.
8022 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8023 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8024 (get_elfosabi): Rename to...
8025 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8026 ABI framework support routines.
8027 (arm_gdbarch_init): Use generic OS ABI framework.
8028 (arm_dump_tdep): Likewise.
8029 (_initialize_arm_tdep): Likewise.
8030 * arm-tdep.h: Include osabi.h.
8031 (arm_abi): Remove.
8032 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8033 osabi member.
8034 (arm_gdbarch_register_os_abi): Remove prototype.
8035 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8036 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8037
8038 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8039 * mips-tdep.c: Include osabi.h.
8040 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8041 OS ABI framework.
8042
8043 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8044
8045 * h8300-tdep.c: Fix formatting.
8046
8047 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8048
8049 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8050 printing vector registers.
8051
8052 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8053
8054 From Fernando Nasser:
8055 * remote.c (remote_async_open_1): Re-throw the exception when the
8056 connection fails.
8057 (remote_cisco_open): Ditto.
8058 (remote_open_1): Ditto.
8059
8060 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8061
8062 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8063 (remote_start_remote): Add uiout parameter. Pass through to
8064 remote_start_remote_dummy.
8065 (remote_open_1): Use catch_exception instead of catch_errors.
8066 (remote_async_open_1): Ditto.
8067 (remote_cisco_open): Ditto.
8068
8069 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8070
8071 * remote.c (remote_start_remote): Replace PTR with void pointer.
8072 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8073 static.
8074
8075 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8076
8077 * gdb_indent.sh: Allow the script to be run in the sim directory.
8078
8079 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8080
8081 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8082 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8083
8084 * corelow.c (core_open): Only call set_gdbarch_from_file if
8085 exec_bfd is NULL.
8086
8087 2002-05-17 Andrey Volkov <avolkov@transas.com>
8088
8089 * h8300-tdep.c: Add support of EXR register
8090 * config/h8300/tm-h8300.h: Ditto.
8091
8092 2002-05-17 Andrey Volkov <avolkov@transas.com>
8093
8094 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8095
8096 2002-05-17 Andrey Volkov <avolkov@transas.com>
8097
8098 * h8300-tdep.c: Change literal regnums to REGNO.
8099
8100 2002-05-17 Jim Blandy <jimb@redhat.com>
8101
8102 * NEWS: Note addition of macro support.
8103
8104 Expand preprocessor macros in C expressions.
8105 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8106 (scan_macro_expansion, scanning_macro_expansion,
8107 finished_macro_expansion): New function declarations.
8108 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8109 variable declarations.
8110 * parser-defs.h (expression_context_pc): New declaration.
8111 * parse.c (expression_context_pc): New variable.
8112 (parse_exp_1): Set expression_context_pc, as well as
8113 expression_context_block.
8114 * c-exp.y (yylex): If we're not already reading the result of a
8115 macro expansion, try to macro-expand the next token. When we're
8116 done scanning a macro expansion, switch back to the mainline text.
8117 Commas and `if's in a macro's expansion don't terminate the input.
8118 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8119 (macro_original_text, macro_expanded_text,
8120 expression_macro_lookup_func, expression_macro_lookup_baton): New
8121 variables.
8122 (scan_macro_expansion, scanning_macro_expansion,
8123 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8124 c_preprocess_and_parse): New functions.
8125 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8126 c_preprocess_and_parse, instead of c_parse.
8127 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8128 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8129
8130 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8131
8132 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8133 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8134 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8135
8136 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8137
8138 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8139
8140 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8141
8142 * Makefile.in (sh_tdep_h): Define and use.
8143 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8144 register enum): Move to...
8145 * * sh-tdep.h: ...here.
8146 * sh-tdep.c: Include sh-tdep.h.
8147 * sh3-rom.c: Likewise.
8148 * shnbsd-tdep.c: Likewise.
8149
8150 2002-05-16 Michael Snyder <msnyder@redhat.com>
8151
8152 * arm-tdep.c: Spelling fix in comment.
8153
8154 2002-05-16 Jim Blandy <jimb@redhat.com>
8155
8156 Add commands for manually expanding macros and showing their
8157 definitions.
8158 * macrocmd.c, macroscope.c, macroscope.h: New files.
8159 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8160 (macroscope_h): New variable.
8161 (HFILES_NO_SRCDIR): Add macroscope.h.
8162 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8163 (macroscope.o, macrocmd.o): New rules.
8164
8165 Teach the Dwarf 2 reader to read macro information.
8166 * dwarf2read.c: #include "macrotab.h".
8167 (dwarf_macinfo_buffer): New variable.
8168 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8169 dwarf_macinfo_size.
8170 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8171 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8172 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8173 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8174 dwarf2_macro_spaces_in_definition): New complaints.
8175 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8176 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8177 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8178 the partial symbol table.
8179 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8180 from what's recorded in the partial symbol table.
8181 (read_file_scope): If the compilation unit has a
8182 `DW_AT_macro_info' attribute, read its macro information.
8183 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8184
8185 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8186
8187 Fix PR gdb/546
8188 * ser-tcp.c: Don't include <netinet/udp.h>.
8189
8190 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8191
8192 * MAINTAINERS: Update my email address.
8193
8194 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8195
8196 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8197 include file of the same name.
8198
8199 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8200
8201 * configure.tgt: Mark v850 as multi-arched.
8202 * config/v850/tm-v850.h: Remove file.
8203 * config/v850/v850.mt: Eliminate TM_FILE.
8204
8205 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8206
8207 * v850-tdep.c: Full multi-arch.
8208 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8209 Define GDB_MULTI_ARCH to 2.
8210
8211 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8212
8213 * p-exp.y (current_type): New static variable.
8214 Carries the type of the expression at the position that is parsed.
8215 (push_current_type, pop_current_type): Two new functions. Used
8216 to store/restore current_type in expression on specific tokens.
8217 (search_field): New static variable. Set to one after parsing a point
8218 as at that point only a FIELDNAME token should be searched.
8219 (FIELDNAME): New token. After a point only a token belonging to
8220 current_type type definition is allowed.
8221 (all over token rules): reset and change current_type according
8222 to rules.
8223 (exp '[' rule): insert implicit array index field if
8224 exp is a pascal string type.
8225
8226 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8227
8228 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8229 frame info. Use frame_info's saved_regs instead of matching member
8230 in extra_frame_info throughout.
8231 (v850_frame_init_saved_regs): New function.
8232 (v850_init_extra_frame_info): Move most functionality into
8233 v850_frame_init_saved_regs().
8234 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8235 (v850_frame_find_saved_regs): Remove declaration.
8236 (FRAME_FIND_SAVED_REGS): Remove definition.
8237 (v850_frame_init_saved_regs): Add declaration.
8238 (FRAME_INIT_SAVED_REGS): Add definition.
8239
8240 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8241
8242 * v850-tdep.c: Begin multi-arch'ing v850.
8243 (v850_target_architecture_hook): Remove function.
8244 (v850_gdbarch_init): New function. Add code previously in
8245 v850_target_architecture_hook().
8246 (_initialize_v850_tdep): Don't set target_architecture_hook.
8247 Call register_gdbarch_init() instead.
8248
8249 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8250
8251 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8252 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8253 (fixup_class_method_type): Likewise.
8254
8255 2002-05-15 Jim Blandy <jimb@redhat.com>
8256
8257 Add macro structures to GDB's symbol tables. Nobody puts anything
8258 in them yet.
8259 * symtab.h (struct symtab): New member: `macro_table'.
8260 * buildsym.h (pending_macros): New global variable.
8261 * buildsym.c: #include "macrotab.h".
8262 (buildsym_init): Initialize `pending_macros'.
8263 (end_symtab): If we found macro information while reading a CU's
8264 debugging info, do build a symtab structure for it. Make the
8265 symtab point to the macro information, and clear the
8266 `pending_macros' pointer which held it while we were reading the
8267 debug info.
8268 (really_free_pendings): Free any pending macro table.
8269 * objfiles.h (struct objfile): New member: `macro_cache'.
8270 * objfiles.c (allocate_objfile): Set allocate and free functions
8271 for the macro cache's objstack.
8272 (free_objfile): Empty the macro cache's obstack.
8273 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8274 set new allocate and free functions for it.
8275 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8276 free functions for the macro cache's objstack. (Why is this
8277 function building its own objfile?)
8278 * symmisc.c (print_objfile_statistics): Print statistics on the
8279 macro bcache.
8280 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8281
8282 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8283
8284 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8285 (REGISTER_U_ADDR): Delete definition.
8286 (arm_register_u_addr): Delete declaration.
8287
8288 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8289
8290 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8291 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8292
8293 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8294
8295 * regcache.c (register_valid): Revise comments refering to "Not
8296 available" and "unavailable".
8297 * frame.c (frame_register_read): Ditto.
8298 * findvar.c (value_of_register): Ditto.
8299
8300 2002-05-15 Andrew Cagney <cagney@redhat.com>
8301
8302 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8303 (remote-sim.o): Update dependencies.
8304 (d10v-tdep.o): Specify dependencies.
8305 (sim_d10v_h): Define.
8306
8307 2002-05-14 Jim Blandy <jimb@redhat.com>
8308
8309 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8310 * macrotab.c (macro_lookup_inclusion, find_definition,
8311 new_macro_table): Same.
8312
8313 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8314 not `! strcmp ()'. This is a dubious improvement.
8315 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8316
8317 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8318 although it's not necessary, to avoid a warning.
8319
8320 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8321
8322 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8323 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8324 TYPE_INSTANCE_FLAGS.
8325 (struct main_type): New.
8326 (struct type): Move most members to struct main_type. Change
8327 cv_type and as_type to new type_chain member. Add instance_flags.
8328 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8329 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8330 (finish_cv_type): Remove prototype.
8331 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8332 Set TYPE_CHAIN.
8333 (alloc_type_instance): New function.
8334 (smash_type): New function.
8335 (make_pointer_type, make_reference_type, make_function_type)
8336 (smash_to_member_type, smash_to_method_type): Call smash_type.
8337 (make_qualified_type): New function.
8338 (make_type_with_address_space): Call make_qualified_type.
8339 (make_cv_type): Likewise.
8340 (finish_cv_type): Remove unnecessary function.
8341 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8342 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8343 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8344 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8345 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8346 * hpread.c (hpread_read_struct_type): Likewise.
8347 * stabsread.c (read_struct_type): Likewise.
8348
8349 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8350
8351 * configure.tgt: Add a catch all sh* target, for cases like
8352 sh[2,3,4]-elf and sh-hms.
8353
8354 2002-05-14 Keith Seitz <keiths@redhat.com>
8355
8356 * event-loop.c (create_file_handler): Don't do anything but
8357 update data when we are given a fd which we are already
8358 monitoring.
8359
8360 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8361
8362 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8363 (update_context): Use __func__ in warnings.
8364
8365 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8366
8367 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8368 and tcp_close to net_open and net_close.
8369 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8370 using UDP if requested. Don't try to disable Nagle on UDP
8371 sockets.
8372 * remote.c (remote_serial_open): New function. Warn about UDP.
8373 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8374
8375 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8376
8377 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8378
8379 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8380
8381 * configure.tgt: Remove sh-hms target.
8382 * MAINTAINERS: Don't list sh-hms as a separate target.
8383
8384 2002-05-13 Jim Blandy <jimb@redhat.com>
8385
8386 Add first preprocessor macro-expansion files.
8387 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8388 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8389 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8390 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8391 (COMMON_OBS): Add macrotab.o, macroexp.o.
8392 (macroexp.o, macrotab.o): New rules.
8393
8394 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8395
8396 * config/m88k/tm-m88k.h: Update copyright.
8397 (m88k_target_write_pc): Declare
8398 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8399 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8400 (SHIFT_INST_REGS): Update definition.
8401 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8402 using old definition of TARGET_WRITE_PC.
8403 * regcache.c (generic_target_write_pc): Delete code handling
8404 NNPC_REGNUM.
8405 * gdbarch.sh (NNPC_REGNUM): Delete.
8406 * gdbarch.h, gdbarch.c: Regenerate.
8407
8408 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8409
8410 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8411 builtin reg number.
8412
8413 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8414
8415 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8416 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8417 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8418 access macros.
8419 * c-typeprint.c (cp_type_print_method_args): Likewise.
8420 (c_type_print_args): Likewise.
8421 * d10v-tdep.c (d10v_push_arguments): Likewise.
8422 (d10v_extract_return_value): Likewise.
8423 * expprint.c (print_subexp): Likewise.
8424 * gdbtypes.c (lookup_primitive_typename): Likewise.
8425 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8426 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8427 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8428 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8429 (TYPE_VECTOR): Likewise.
8430 * hpread.c (hpread_read_struct_type)
8431 (fix_static_member_physnames, fixup_class_method_type)
8432 (hpread_type_lookup): Likewise.
8433 * mdebugread.c (parse_symbol, parse_type): Likewise.
8434 * p-lang.c (is_pascal_string_type): Likewise.
8435 * valops.c (hand_function_call): Likewise.
8436 * x86-64-tdep.c (classify_argument): Likewise.
8437
8438 * hpread.c (hpread_read_function_type)
8439 (hpread_read_doc_function_type): Call replace_type.
8440 * dstread.c (create_new_type): Delete.
8441 (decode_dst_structure, process_dst_function): Call alloc_type.
8442 Use type access macros.
8443
8444 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8445
8446 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8447 the're not supported by the current architecture.
8448 (i387_fill_fxsave): Likewise.
8449
8450 2002-05-12 Fred Fish <fnf@redhat.com>
8451
8452 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8453 sect_index_xxx members to index the first slot in section_offsets
8454 if all of the section_offsets are zero.
8455
8456 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8457
8458 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8459 checked in with last change.
8460
8461 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8462
8463 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8464 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8465 config.sub.
8466
8467 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8468
8469 * Makefile.in: Update dependencies.
8470
8471 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8472
8473 * language.c (local_hex_string_custom): Simplify. Do not depend
8474 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8475
8476 * memattr.c (mem_info_command): Replace calls to
8477 longest_local_hex_string and longest_local_hex_string_custom.
8478 * buildsym.c (make_blockvector): Ditto.
8479 * solib.c (info_sharedlibrary_command): Ditto.
8480 * tracepoint.c (tracepoints_info): Ditto.
8481 * symtab.c (print_msymbol_info): Ditto.
8482
8483 * language.c (local_hex_string): Delete.
8484 (local_hex_string_custom): Delete.
8485 (longest_local_hex_string): Rename to local_hex_string.
8486 (longest_local_hex_string_custom): Rename to
8487 local_hex_string_custom.
8488 * language.h (local_hex_string): Change parameter type to LONGEST.
8489 (local_hex_string_custom): Ditto.
8490 (longest_local_hex_string): Delete declaration.
8491 (longest_local_hex_string_custom): Ditto.
8492
8493 * solib.c: Update copyright.
8494 * memattr.c: Update copyright.
8495
8496 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8497
8498 * arch-utils.h (legacy_register_to_value): Declare.
8499 (legacy_value_to_register): Declare.
8500 (legacy_convert_register_p): Declare.
8501 * arch-utils.c (legacy_register_to_value): New function.
8502 (legacy_value_to_register): New function.
8503 (legacy_convert_register_p): New function.
8504
8505 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8506 (VALUE_TO_REGISTER): Define.
8507 (CONVERT_REGISTER_P): Define.
8508 * gdbarch.h, gdbarch.c: Regenerate.
8509
8510 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8511 VALUE_TO_REGISTER.
8512 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8513 CONVERT_REGISTER_P.
8514
8515 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8516 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8517
8518 * Makefile.in: Update dependencies for valops.c.
8519 * valops.c: Include "gdb_assert.h".
8520 (typecmp): Skip THIS parameter to methods.
8521 (find_method_list): Remove static_memfuncp argument,
8522 update callers. Check for stub methods.
8523 (find_value_oload_method_list): Don't set *static_memfuncp.
8524 (find_overload_match): Don't check for stub methods. Assert
8525 that methods are not stubbed. Handle static methods.
8526 (value_find_oload_method_list): Remove static_memfuncp argument.
8527 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8528 to the argument list for static stub methods.
8529 * value.h (value_find_oload_method_list): Update prototype.
8530
8531 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8532
8533 * arch-utils.h (generic_register_size): Declare.
8534 (generic_register_raw_size, generic_register_virtual_size): Delete
8535 declarations.
8536 * arch-utils.c (generic_register_raw_size): Delete.
8537 (generic_register_size): New function.
8538 (generic_register_virtual_size): Delete.
8539
8540 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8541 default generic_register_size.
8542 * gdbarch.h, gdbarch.c: Re-generate.
8543
8544 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8545 register_virtual_size.
8546 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8547 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8548
8549 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8550
8551 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8552 * gdbarch.h, gdbarch.c: Regenerate.
8553 * gnu-v3-abi.c: Update copyright.
8554 (vtable_address_point_offset): Update.
8555 (gnuv3_rtti_type): Update.
8556 (gnuv3_baseclass_offset): Update.
8557 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8558 (init_fetch_link_map_offsets): Update.
8559 * remote.c (get_remote_state): Update.
8560
8561 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8562
8563 * TODO: Remove value_headof/value_from_vtable_info comment.
8564 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8565 * values.c (value_headof, value_from_vtable_info): Delete.
8566 * value.h (value_from_vtable_info): Delete prototype.
8567
8568 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8569
8570 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8571 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8572 $(gdb_regex_h).
8573 (gdb_assert_h): Define.
8574 (gdb_wait_h): Define.
8575 (gdb_regex_h): Define.
8576
8577 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8578
8579 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8580 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8581
8582 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * nbsd-tdep.c: Fix comment.
8585
8586 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8587
8588 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8589 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8590 (nbsd-tdep.o): New dependency list.
8591 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8592 nbsd-tdep.h.
8593 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8594 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8595 * nbsd-tdep.c: New file.
8596 * nbsd-tdep.h: New file.
8597 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8598 nbsd-tdep.h.
8599 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8600 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8601 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8602 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8603
8604 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8605
8606 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8607 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8608 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8609 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8610 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8611 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8612
8613 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8614
8615 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8616 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8617 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8618 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8619 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8620 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8621 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8622
8623 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8624
8625 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8626 fetch_elfcore_registers to...
8627 * i386nbsd-tdep.c: ...here.
8628 (i386nbsd_use_struct_convention): Rename to...
8629 (i386nbsd_aout_use_struct_convention): ...this.
8630 (i386nbsd_supply_reg): New function.
8631 (i386nbsd_fill_reg): New function.
8632 (fetch_core_registers): Use i386nbsd_supply_reg.
8633 (fetch_elfcore_registers): Likewise.
8634 (_initialize_i386nbsd_tdep): New function.
8635 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8636 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8637 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8638 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8639 (i386nbsd_aout_use_struct_convention): ...this.
8640
8641 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8642
8643 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8644 (store_inferior_registers): Use shnbsd_fill_reg.
8645 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8646 sh_nbsd_supply_register): Collapse into...
8647 (shnbsd_supply_reg): ...this.
8648 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8649 (shnbsd_fill_reg): ...this.
8650 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8651 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8652 (fetch_core_registers): Use shnbsd_supply_reg.
8653 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8654 (sh_nbsd_core_fns): Rename to...
8655 (shnbsd_core_fns): ...this.
8656 (sh_nbsd_elfcore_fns): Rename to...
8657 (shnbsd_elfcore_fns): ...this.
8658 (sh_nbsd_init_abi): Rename to...
8659 (shnbsd_init_abi): ...this.
8660 (_initialize_sh_nbsd_tdep): Rename to...
8661 (_initialize_shnbsd_tdep): ...this.
8662 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8663 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8664 sh_nbsd_fill_register): Remove prototypes.
8665 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8666
8667 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8668
8669 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8670 (i387-nat.o): Delete dependency list.
8671 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8672 (x86-64-linux-nat.o): Likewise.
8673 * i387-nat.c: Delete file, moving contents to...
8674 * i387-tdep.c: ...here.
8675 * i387-nat.h: Rename...
8676 * i387-tdep.h: ...to this.
8677 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8678 * i386-linux-nat.c: Likewise.
8679 * i386bsd-nat.c: Likewise.
8680 * i386gnu-nat.c: Likewise.
8681 * i386nbsd-nat.c: Likewise.
8682 * i386v4-nat.c: Likewise.
8683 * x86-64-linux-nat.c: Likewise.
8684 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8685 * config/i386/go32.mh (NATDEPFILES): Likewise.
8686 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8687 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8688 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8689 * config/i386/linux.mh (NATDEPFILES): Likewise.
8690 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8691 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8692 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8693 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8694
8695 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8696
8697 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8698 (alphanbsd-nat.o): Remove dependency list.
8699 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8700 * alphanbsd-nat.c: Delete. Contents moved to...
8701 * alphanbsd-tdep.c: ...here.
8702 (_initialize_alphanbsd_tdep): Register core functions.
8703 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8704
8705 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8706
8707 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8708 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8709 (alphanbsd-nat.o): Likewise.
8710 (alphabsd-tdep.o): New dependency list.
8711 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8712 (fill_gregset): Use alphabsd_fill_reg.
8713 (supply_fpregset): Use alphabsd_supply_fpreg.
8714 (fill_fpregset): Use alphabsd_fill_fpreg.
8715 (fetch_inferior_registers): Use struct reg and struct fpreg
8716 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8717 and alphabsd_supply_fpreg.
8718 (store_inferior_registers): Use struct reg and struct fpreg
8719 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8720 and alphabsd_fill_fpreg.
8721 * alphabsd-tdep.c: New file.
8722 * alphabsd-tdep.h: New file.
8723 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8724 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8725 alphabsd_supply_fpreg.
8726 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8727 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8728
8729 2002-05-11 Eric Christopher <echristo@redhat.com>
8730
8731 * mips-tdep.c (mips_double_register_type): Fix thinko.
8732 (mips_single_register_type): Ditto.
8733 * MAINTAINERS: Add self.
8734
8735 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8736
8737 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8738 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8739 right thing on architectures with different endianness and/or
8740 integer sizes.
8741
8742 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8743
8744 From Christian Limpach <chris@Pin.LU>
8745 * configure.in: Change sed expression which comments out
8746 NATDEPFILES to also comment out continuation lines.
8747 * configure: Regenerate.
8748
8749 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8750
8751 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8752 big patch.
8753
8754 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8755
8756 * sh-tdep.c: Include correct file.
8757
8758 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8759
8760 New support for sh64-elf (sh5) target.
8761
8762 * configure.tgt: For sh64-elf target, default to sh-elf.
8763
8764 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8765 (struct gdbarch_tdep): Add new fields for new registers and ABI
8766 info.
8767
8768 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8769 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8770 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8771 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8772 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8773 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8774 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8775 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8776 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8777 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8778 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8779 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8780 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8781 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8782 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8783 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8784 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8785 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8786 sign_extend, sh64_nofp_frame_init_saved_regs,
8787 sh64_init_extra_frame_info, sh64_get_saved_register,
8788 sh64_extract_struct_value_address, sh64_pop_frame,
8789 sh64_push_arguments, sh64_extract_return_value,
8790 sh64_store_return_value, sh64_show_media_regs,
8791 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8792 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8793 sh_sh64_register_virtual_type,
8794 sh_sh64_register_convert_to_virtual,
8795 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8796 sh64_register_read, sh64_pseudo_register_write,
8797 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8798 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8799 sh64_do_pseudo_register, sh_compact_do_registers_info,
8800 sh64_do_registers_info, sh_gdbarch_init): New functions.
8801
8802 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8803
8804 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8805
8806 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8807
8808 * linespec.c (decode_line_1): Check for a double quote after
8809 a filename correctly.
8810
8811 2002-05-10 Jim Blandy <jimb@redhat.com>
8812
8813 Properly track the size of the current objfile's .debug_line section.
8814 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8815 (DWARF_LINE_SIZE): New macro.
8816 (dwarf2_build_psymtabs_hard): Record the line section's size in
8817 the partial symbol table.
8818 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8819 symbol table.
8820
8821 2002-05-10 Petr Sorfa <petrs@caldera.com>
8822
8823 * ia64-tdep.c: Handle breakpoints on L instruction type
8824 in MLX instruction bundle by moving the breakpoint to
8825 the third slot (X instruction type) as L holds only data.
8826
8827 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8828
8829 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8830 (process_one_symbol): Complain about discarding local symbols
8831 due to a misplaced N_LBRAC entry.
8832
8833 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8834
8835 From Daniel Berlin <dan@cgsoftware.com>
8836 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8837 decrease the depth we are at, in the case of templates.
8838
8839 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8840
8841 * mips-tdep.c (mips_float_register_type): New function.
8842 (mips_double_register_type): New function.
8843 (mips_print_register): Use them.
8844 (do_fp_register_row): Likewise.
8845
8846 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8847
8848 * signals/signals.c (signals): Remove conditional compilation around
8849 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8850 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8851
8852 2002-05-09 Michael Snyder <msnyder@redhat.com>
8853
8854 * remote-rdp.c (remote_rdp_can_run): Remove.
8855
8856 2002-05-09 Tom Tromey <tromey@redhat.com>
8857
8858 * jv-valprint.c (java_val_print): Handle `char' as a special case
8859 of TYPE_CODE_INT.
8860
8861 2002-05-09 Michael Snyder <msnyder@redhat.com>
8862
8863 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8864 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8865 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8866 str r(0123),[sp,#nn].
8867 (arm_skip_prologue): Ditto. Also make disassembly
8868 order-independent by placing it in a loop.
8869
8870 2002-05-06 Michael Snyder <msnyder@redhat.com>
8871
8872 * stabsread.c (read_type): Add recognition for new attribute:
8873 "@V;" means that an array type is actually a vector.
8874 This is analogous to the vector flag that's been added to dwarf2.
8875
8876 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8877
8878 * i386-tdep.h (i386_abi): New enum.
8879 (struct gdbarch_tdep): Replace os_ident member with abi.
8880 (i386_gdbarch_register_os_abi): New prototype.
8881 * i386-tdep.c (i386_abi_names): New array.
8882 (process_note_abi_tag_sections): Removed.
8883 (process_note_sections): New function.
8884 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8885 (struct i386_abi_handler): New struct.
8886 (i386_abi_handler_list): New variable.
8887 (i386_gdbarch_register_os_abi): New function.
8888 (i386_gdbarch_init): Adapt for the changes given above.
8889
8890 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8891
8892 * gregset.h: Say "GNU/Linux".
8893
8894 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8895
8896 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8897 (build_gdbtypes): Build builtin_type_v2_float.
8898 (_initialize_gdbtypes): Register new builtin type.
8899
8900 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8901
8902 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8903 (clear_gdbarch_swap): New function.
8904 (initialize_non_multiarch): Call.
8905 (gdbarch_update_p): Before calling init(), swap out and clear the
8906 existing architecture.
8907 * gdbarch.c: Regenerate.
8908
8909 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8910
8911 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8912 alphanbsd-tdep.c.
8913
8914 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8915
8916 * sh-nbsd-nat.c: Rename to...
8917 * shnbsd-nat.c: ...this.
8918 * sh-nbsd-tdep.c: Rename to...
8919 * shnbsd-tdep.c: ...this.
8920 * sh-nbsd-tdep.h: Rename to...
8921 * shnbsd-tdep.h: ...this.
8922 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8923 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8924
8925 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8926
8927 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8928 concatenation for command help messages.
8929
8930 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8931
8932 * NEWS: Note new sh*-*-netbsdelf* configuration.
8933 * configure.host: Set gdb_host_cpu to sh for all sh*.
8934 (sh*-*-netbsdelf*): New host.
8935 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8936 (sh*-*-netbsdelf*): New target.
8937 * sh-nbsd-nat.c: New file.
8938 * sh-nbsd-tdep.c: New file.
8939 * sh-nbsd-tdep.h: New file.
8940 * config/sh/nbsd.mh: New file.
8941 * config/sh/nbsd.mt: New file.
8942 * config/sh/nm-nbsd.h: New file.
8943 * config/sh/tm-nbsd.h: New file.
8944
8945 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8946
8947 * sh-tdep.c (sh_osabi_names): Declare.
8948 (process_note_abi_tag_sections): New function.
8949 (get_elfosabi): Ditto.
8950 (sh_gdbarch_register_os_abi): Ditto.
8951 (sh_dump_tdep): Ditto.
8952 _initialize_sh_tdep): Use gdbarch_register to register
8953 sh_gdbarch_init and sh_dump_tdep.
8954 * config/sh/tm-sh.h (sh_osabi): Declare.
8955 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8956
8957 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8958
8959 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8960 (thumb_scan_prologue): Ditto.
8961 (arm_find_callers_reg): Ditto.
8962 (arm_frame_chain): Ditto.
8963 (arm_init_extra_frame_info): Ditto.
8964 (arm_frame_saved_pc): Ditto.
8965 (arm_pop_frame): Ditto.
8966 (arm_push_return_address): New function.
8967 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8968 call_dummy_location, call_dummy_breakpoint_offset_p,
8969 call_dummy_breakpoint_offset, call_dummy_p,
8970 call_dummy_stack_adjust_p, call_dummy_words,
8971 sizeof_call_dummy_words, call_dummy_start_offset,
8972 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8973 call_dummy_address, push_return_address and push_dummy_frame for
8974 generic dummy frames.
8975
8976 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8977
8978 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8979 size computation for alloca.
8980 (sh_fp_frame_init_saved_regs): Likewise.
8981
8982 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8983
8984 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8985 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8986 * arm-tdep.c (arm_store_return_value): Use them.
8987 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8988 * remote-rdp.c (remote_rdp_fetch_register): Use
8989 ARM_MAX_REGISTER_RAW_SIZE.
8990 (remote_rdp_store_register): Likewise.
8991
8992 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8993
8994 * dwarf2cfi.c: Code cleanup, removed unused variables,
8995 added default labels to switch {} statements.
8996 * x86-64-tdep.c: Ditto.
8997 * x86-64-linux-nat.c: Ditto.
8998
8999 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9000
9001 * solib.h: Protect against multiple inclusion.
9002
9003 2002-05-06 Jim Blandy <jimb@redhat.com>
9004
9005 Add first preprocessor macro-expansion files.
9006 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9007 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9008 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9009 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9010 (COMMON_OBS): Add macrotab.o, macroexp.o.
9011 (macroexp.o, macrotab.o): New rules.
9012
9013 Separate the job of reading the line number info statement program
9014 header (...expialidocious) out into its own function.
9015 * dwarf2read.c (struct line_head, struct filenames, struct
9016 directories): Replace with...
9017 (struct line_header): New structure, containing the full
9018 contents of the statement program header, including the
9019 include directory and file name tables.
9020 (read_file_scope): If we have line number info, instead of just
9021 calling dwarf_decode_lines to do all the work, call
9022 dwarf_decode_line_header first to get a `struct line_header'
9023 containing the data in the statement program header, and then
9024 pass that to dwarf_decode_lines, which will pick up where that
9025 left off. Be sure to clean up the `struct line_header' object.
9026 (dwarf_decode_line_header, free_line_header, add_include_dir,
9027 add_file_name): New functions.
9028 (dwarf_decode_lines): Move all the code to read the statement
9029 program header into dwarf_decode_line_header. Take the line
9030 header it built as the first argument, instead of the offset to
9031 the compilation unit's line number info. Use the new `struct
9032 line_header' type instead of the old structures. No need to do
9033 cleanups here now, since we don't allocate anything.
9034 (dwarf2_statement_list_fits_in_line_number_section,
9035 dwarf2_line_header_too_long): New complaints.
9036
9037 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9038
9039 * gdbtypes.c (init_vector_type): New function.
9040 (build_builtin_type_vec128): Simplify the representation of SIMD
9041 registers.
9042 (build_gdbtypes): Initialize new builtin vector types.
9043 (_initialize_gdbtypes): Register new vector types with gdbarch.
9044 (builtin_type_v4_float, builtin_type_v4_int32,
9045 builtin_type_v8_int16, builtin_type_v16_int8,
9046 builtin_type_v2_int32, builtin_type_v4_int16,
9047 builtin_type_v8_int8): New (renamed) SIMD types.
9048
9049 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9050
9051 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9052 (i387_fill_fxsave): Likewise.
9053
9054 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9055
9056 * alpha-tdep.c (alpha_extract_return_value): Don't use
9057 non-constant array size in prototype.
9058
9059 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9060
9061 From Brian Taylor <briant at model dot com>:
9062 * ui-out.c (ui_out_field_core_addr): Use the function
9063 longest_local_hex_string_custom'to format addresses > 32 bits
9064 wide.
9065
9066 * ui-out.c (ui_out_field_core_addr): Update comment.
9067
9068 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9069
9070 * stack.c (select_and_print_frame): Make static. Delete the
9071 parameter `level'.
9072 (func_command): Update call.
9073 (select_frame_command): Delete code computing the frame level.
9074 * frame.h (select_and_print_frame): Delete declaration.
9075
9076 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9077
9078 * sparc-tdep.c (sparc_get_saved_register): Comment why
9079 get_prev_frame call is safe.
9080
9081 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9082
9083 * frame.h (select_frame): Delete level parameter.
9084 * stack.c (select_frame): Update. Use frame_relative_level to
9085 obtain the frame's level.
9086 (select_and_print_frame): Update call.
9087 (select_frame_command): Ditto.
9088 (up_silently_base): Ditto.
9089 (down_silently_base): Ditto.
9090 * ocd.c (ocd_start_remote): Ditto.
9091 * remote-rdp.c (remote_rdp_open): Ditto.
9092 * remote-mips.c (mips_initialize): Ditto.
9093 (common_open): Ditto.
9094 * remote-e7000.c (e7000_start_remote): Ditto.
9095 * m3-nat.c (select_thread): Ditto.
9096 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9097 (child_get_current_exception_event): Ditto.
9098 * varobj.c (varobj_create): Ditto.
9099 (varobj_update): Ditto.
9100 (c_value_of_root): Ditto.
9101 * tracepoint.c (finish_tfind_command): Ditto.
9102 * corelow.c (core_open): Ditto.
9103 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9104 * thread.c (info_threads_command): Ditto.
9105 (switch_to_thread): Ditto.
9106 * infrun.c (normal_stop): Ditto.
9107 (restore_selected_frame): Ditto.
9108 (restore_inferior_status): Ditto.
9109 * breakpoint.c (insert_breakpoints): Ditto.
9110 (watchpoint_check): Ditto.
9111 (bpstat_stop_status): Ditto.
9112 (do_enable_breakpoint): Ditto.
9113 * blockframe.c (flush_cached_frames): Ditto.
9114 (reinit_frame_cache): Ditto.
9115
9116 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9117
9118 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9119 maintainer.
9120
9121 2002-05-04 Jim Blandy <jimb@redhat.com>
9122
9123 * gdbtypes.c (replace_type): Doc fix.
9124
9125 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9126
9127 * valprint.c (strcat_longest): Delete commented out function.
9128 Update copyright.
9129
9130 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9131
9132 * MAINTAINERS: Mark a29k as deleted.
9133 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9134 Move new configurations to the top.
9135 * configure.tgt: Remove a29k.
9136 * config/a29k/tm-vx29k.h: Delete.
9137 * config/a29k/vx29k.mt: Delete.
9138 * config/a29k/tm-a29k.h: Delete.
9139 * config/a29k/a29k-udi.mt: Delete.
9140 * config/a29k/a29k.mt: Delete.
9141 * a29k-tdep.c: Delete.
9142 * remote-udi.c: Delete.
9143 * remote-mm.c: Delete.
9144 * remote-eb.c: Delete.
9145 * remote-adapt.c: Delete.
9146 * Makefile.in: Remove obsolete code.
9147 * config/s390/s390x.mt: Ditto.
9148 * config/s390/s390.mt: Ditto.
9149 * config/sparc/sparclynx.mh: Ditto.
9150 * config/sparc/linux.mh: Ditto.
9151 * config/pa/hppaosf.mh: Ditto.
9152 * config/pa/hppabsd.mh: Ditto.
9153 * config/ns32k/nbsd.mt: Ditto.
9154 * config/mips/vr5000.mt: Ditto.
9155 * config/m68k/sun3os4.mh: Ditto.
9156 * config/m68k/nbsd.mt: Ditto.
9157 * config/m68k/m68klynx.mh: Ditto.
9158 * config/m32r/m32r.mt: Ditto.
9159 * config/i386/x86-64linux.mt: Ditto.
9160 * config/i386/nbsdelf.mt: Ditto.
9161 * config/i386/nbsd.mt: Ditto.
9162 * config/i386/i386lynx.mh: Ditto.
9163
9164 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9165
9166 * target.c (debug_print_register): New function. Handle oversize
9167 registers.
9168 (debug_to_fetch_registers): Call.
9169 (debug_to_store_registers): Call.
9170
9171 2002-05-03 Jim Blandy <jimb@redhat.com>
9172
9173 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9174 (read_type): Doc fix.
9175 * gdbtypes.c (replace_type): Doc fix.
9176
9177 * stabsread.c (multiply_defined_struct): New complaint.
9178 (read_struct_type): If the type we were passed isn't empty, or
9179 incomplete, don't read the new struct type into it; complain,
9180 and return the original type unchanged. Take a new `type_code'
9181 argument, which is the type code for the new type.
9182 (read_type): Rather than storing the type's type code here, pass
9183 it as an argument to read_struct_type, and let that take care of
9184 storing it. That way, we don't overwrite the original type code,
9185 so read_struct_type can use it to decide whether we're overwriting
9186 something we shouldn't.
9187 (complain_about_struct_wipeout): New function.
9188
9189 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9190
9191 * gdbarch.sh: Assert that gdbarch is non-NULL.
9192 * gdbarch.c: Regenerate.
9193
9194 2002-05-03 Jason Merrill <jason@redhat.com>
9195
9196 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9197 and return NULL.
9198
9199 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9200
9201 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9202 (x86_64_dwarf2gdb_regno_map_length),
9203 (x86_64_dwarf2_reg_to_regnum): Added.
9204 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9205 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9206 (_initialize_x86_64_tdep): Synced with the change above.
9207 (x86_64_skip_prologue): Reformulated message.
9208
9209 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9210
9211 * f-exp.y: Also use new prev_lexptr variable
9212 to improve error reporting. Based on Michael Snyder
9213 2002-04-24 dated patch to c-exp.y.
9214 * jv-exp.y: Likewise.
9215 * m2-exp.y: Likewise.
9216
9217 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9218
9219 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9220 we are dealing with vectors.
9221
9222 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9223
9224 * config/m68k/tm-nbsd.h: Obvious fix,
9225 correct machine name.
9226
9227 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9228
9229 * p-typeprint.c (pascal_type_print_base): Add support
9230 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9231
9232 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9233
9234 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9235 for fondamental pascal 'char' type.
9236
9237 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9238
9239 * p-lang.h (is_pascal_string_type): Declaration changed,
9240 new sixth argument of type char ** added.
9241 * p-lang.c (is_pascal_string_type): Implementation
9242 changed. Args length_pos, length_size, string_pos, char_size
9243 can now be NULL. New argument arrayname set to the field
9244 name of the char array. Return value set to char array
9245 field index plus one.
9246 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9247 is_pascal_string_type function.
9248
9249 2002-05-02 Andrew Cagney <cagney@redhat.com>
9250
9251 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9252 <cagney@redhat.com> change.
9253 * gdbarch.c: Regenerate.
9254
9255 2002-05-02 Andrew Cagney <cagney@redhat.com>
9256
9257 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9258 before probing for a new one. Detect errorenous gdbarch_init
9259 functions.
9260 * gdbarch.c: Regenerate.
9261
9262 2002-05-01 Andrew Cagney <cagney@redhat.com>
9263
9264 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9265 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9266 * config/v850/tm-v850.h: Ditto. Update copyright.
9267
9268 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9269
9270 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9271 current_gdbarch.
9272
9273 2002-04-30 Michael Snyder <msnyder@redhat.com>
9274
9275 * arm-tdep.c: Whitespace clean-ups.
9276 (arm_skip_prologue): Fix thinko; two lines
9277 should have been removed as part of 4/24 change.
9278
9279 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9280
9281 * rs6000-tdep.c: Added comment describing how fpscr register
9282 numbers were chosen.
9283
9284 2002-04-30 Michael Snyder <msnyder@redhat.com>
9285
9286 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9287
9288 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9289
9290 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9291 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9292 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9293
9294 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9295
9296 From Louis Hamilton <hamilton@redhat.com>:
9297 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9298 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9299 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9300 not bfd-private xcoff data, to determine wordsize.
9301 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9302
9303 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9304
9305 GDB 5.2 released from 5.2 branch.
9306
9307 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9308
9309 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9310 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9311 (x86_64_register_info_table): Added comments with register numbers.
9312
9313 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9314
9315 * rs6000-tdep.c (rs6000_extract_return_value,
9316 rs6000_store_return_value): Handle returning vectors.
9317 (rs6000_gdbarch_init): Use
9318 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9319 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9320 New function.
9321 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9322 vectors.
9323 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9324 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9325
9326 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9327
9328 * hpread.c (hpread_psymtab_to_symtab_1,
9329 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9330 with fprintf_unfiltered (gdb_stderr,...).
9331
9332 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9333
9334 * remote-array.c (printf_monitor, write_monitor,
9335 array_insert_breakpoint, array_remove_breakpoint ):
9336 Replace fprintf (stderr,...
9337 with fprintf_unfiltered (gdb_stderr,....
9338 * remote-es.c: Likewise.
9339 * remote-os9k.c: Likewise.
9340 * remote-st.c: Likewise.
9341
9342 2002-04-28 Andreas Schwab <schwab@suse.de>
9343
9344 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9345 linux-proc.o and gcore.o.
9346
9347 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9348
9349 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9350 code without frame pointers.
9351
9352 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9353
9354 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9355 ON_STACK is needed.
9356
9357 2002-04-26 Ben Elliston <bje@redhat.com>
9358
9359 * target.c (do_xfer_memory): Correct reference to the new option
9360 "trust-readonly-sections".
9361
9362 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9363
9364 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9365 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9366 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9367 vectors.
9368 (read_array_type): Record the fact that this array type is really a
9369 vector (i.e. are passed in by value).
9370
9371 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9372
9373 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9374 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9375 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9376 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9377 * alpha-linux-tdep.c: Include frame.h.
9378 (alpha_linux_sigcontext_addr): New function.
9379 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9380 alpha_linux_sigcontext_addr.
9381 * alpha-osf1-tdep.c: Include gdbcore.h.
9382 (alpha_osf1_sigcontext_addr): New function.
9383 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9384 alpha_osf1_sigcontext_addr.
9385 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9386 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9387
9388 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9389
9390 * stack.c (selected_frame_level):
9391 (select_frame): Do not set selected_frame_level.
9392 * frame.h (selected_frame_level): Delete declaration.
9393
9394 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9395
9396 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9397 convert_from_func_ptr-addr when AIX / PowerOpen.
9398
9399 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9400
9401 * valops.c (hand_function_call): Call
9402 generic_save_call_dummy_addr.
9403 * frame.h (generic_save_call_dummy_addr): Declare.
9404 * blockframe.c (struct dummy_frame): Add fields call_lo and
9405 call_hi.
9406 (generic_find_dummy_frame): Check for PC in range call_lo to
9407 call_hi instead of entry_point_address.
9408 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9409 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9410 (generic_save_call_dummy_addr): New function.
9411
9412 2002-04-24 David S. Miller <davem@redhat.com>
9413
9414 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9415 sparc_skip_prologue.
9416 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9417 information to find prologue when possible.
9418 (sparc_prologue_frameless_p): Call examine_prologue directly.
9419 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9420 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9421 second argument.
9422 (SKIP_PROLOGUE): Likewise.
9423
9424 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9425
9426 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9427 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9428 indicate that the condition it was testing is always true.
9429 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9430 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9431 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9432
9433 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9436 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9437 tdep->jb_pc and tdep->jb_elt_size.
9438 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9439 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9440 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9441 * alpha-nat.c (get_longjmp_target): Remove.
9442 (JB_ELEMENT_SIZE): Ditto.
9443 (JB_PC): Ditto.
9444 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9445 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9446 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9447 to alpha_get_longjmp_target.
9448 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9449 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9450 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9451
9452 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9453
9454 * README: Update to GDB 5.2.
9455
9456 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9457
9458 * gdbarch.sh (LC_ALL): Set to `c'.
9459
9460 2002-04-25 Theodore A. Roth <troth@verinet.com>
9461
9462 * avr-tdep.c: Ran through gdb_indent.sh.
9463
9464 2002-04-25 Theodore A. Roth <troth@verinet.com>
9465
9466 * MAINTAINERS: Add myself as AVR maintainer.
9467 * NEWS: Note new target avr.
9468
9469 2002-04-25 Theodore A. Roth <troth@verinet.com>
9470
9471 * Makefile.in: Add support for AVR target.
9472 * configure.tgt: Add support for AVR target.
9473 * avr-tdep.c: New file
9474 * config/avr/avr.mt: New file.
9475
9476 2002-04-25 Theodore A. Roth <troth@verinet.com>
9477
9478 * MAINTAINERS: Add myself to write-after-approval.
9479
9480 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9481
9482 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9483 with fprintf_unfiltered (gdb_stderr,....
9484
9485 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9486
9487 Fix PR gdb/508.
9488 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9489
9490 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9491
9492 * p-exp.y: Also use new prev_lexptr variable
9493 to improve error reporting. Based on Michael Snyder
9494 2002-04-24 dated patch to c-exp.y.
9495
9496 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9497
9498 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9499 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9500 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9501 to 0.
9502 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9503 and struct value.
9504 (FUNCTION_START_OFFSET): Remove.
9505 (BREAKPOINT): Ditto.
9506
9507 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9508
9509 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9510 * NEWS: Ditto.
9511
9512 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9513
9514 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9515 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9516 alpha_linux_pc_in_sigtramp.
9517 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9518 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9519 alpha_osf1_pc_in_sigtramp.
9520 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9521 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9522 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9523 alphafbsd_pc_in_sigtramp.
9524 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9525 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9526 alphanbsd_pc_in_sigtramp.
9527 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9528 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9529
9530 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9531
9532 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9533
9534 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9535
9536 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9537 alphanbsd-tdep.c.
9538 (alphanbsd-nat.o): New dependency list.
9539 (alphanbsd-tdep.o): Ditto.
9540 * NEWS: Note new native NetBSD/alpha configuration.
9541 * alphanbsd-nat.c: New file.
9542 * alphanbsd-tdep.c: Ditto.
9543 * configure.host (alpha*-*-netbsd*): New host.
9544 * configure.tgt (alpha*-*-netbsd*): New target.
9545 * config/alpha/nbsd.mh: New file.
9546 * config/alpha/nbsd.mt: Ditto.
9547 * config/alpha/nm-nbsd.h: Ditto.
9548 * config/alpha/tm-nbsd.h: Ditto.
9549
9550 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9551
9552 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9553 (alpha-osf1-tdep.o): New dependency list.
9554 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9555 and skip_sigtramp_frame members.
9556 * alpha-linux-tdep.c: Include gdbcore.h.
9557 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9558 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9559 * alpha-osf1-tdep.c: New file.
9560 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9561 alpha-osf1-dep.c.
9562 (alpha_frame_past_sigtramp_frame): New function.
9563 (alpha_dynamic_sigtramp_offset): Ditto.
9564 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9565 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9566 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9567 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9568 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9569 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9570 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9571 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9572 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9573 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9574 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9575 to find_solib_trampoline_target.
9576 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9577 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9578 (SKIP_TRAMPOLINE_CODE): Remove.
9579 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9580 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9581 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9582 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9583 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9584 (PROC_SIGTRAMP_MAGIC): Ditto.
9585 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9586 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9587 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9588 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9589 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9590
9591 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9592
9593 * NEWS: Note that Alpha targets are now multi-arch.
9594
9595 2002-04-24 Michael Snyder <msnyder@redhat.com>
9596
9597 * parser-defs.h (prev_lexptr): New external variable.
9598 * parse.c (parse_exp_1): Set prev_lexptr to null before
9599 calling the language-specific parser.
9600 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9601 (yyerror): Use prev_lexptr in error reporting.
9602
9603 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9604
9605 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9606 * gregset.h: If FILL_FPXREGSET is defined, provide
9607 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9608 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9609 is defined, call fill_fpxregset.
9610
9611 2002-04-24 Roland McGrath <roland@frob.com>
9612
9613 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9614 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9615 (supply_gregset, supply_fpregset): New functions.
9616
9617 * gnu-nat.c (gnu_find_memory_regions): New function.
9618 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9619 (gnu_xfer_memory): Add a cast.
9620
9621 2002-04-24 Michael Snyder <msnyder@redhat.com>
9622
9623 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9624 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9625 of argument regs ("str r(0123), [r11, #-nn"]).
9626 (arm_skip_prologue): Better handling for frameless functions.
9627 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9628 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9629
9630 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9631
9632 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9633 NUM_PSEUDO_REGS can be used.
9634
9635 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9636
9637 * arch-utils.h: Update copyright.
9638
9639 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9640 * gdbarch.h, gdbarch.c: Re-generate.
9641
9642 * inferior.h (IN_SIGTRAMP): Delete definition.
9643 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9644 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9645
9646 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9647 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9648 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9649 (find_proc_framesize): Ditto.
9650 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9651 (alpha_init_extra_frame_info): Ditto.
9652 * infrun.c (handle_inferior_event): Ditto.
9653 (handle_inferior_event): Ditto.
9654 (check_sigtramp2): Ditto.
9655 * blockframe.c (create_new_frame): Ditto.
9656 (get_prev_frame): Ditto.
9657 * ppc-linux-tdep.c: Update comments.
9658 * i386-linux-tdep.c: Update comments.
9659 * breakpoint.c (bpstat_what): Update comment.
9660
9661 2002-04-24 David S. Miller <davem@redhat.com>
9662
9663 * i960-tdep.c (register_in_window_p): New function.
9664 (i960_find_saved_register): Use it instead of
9665 REGISTER_IN_WINDOW_P.
9666 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9667
9668 * symtab.h (find_stab_function_addr): Kill extern.
9669 * minsyms.c (find_stab_function_addr): Remove from here...
9670 * dbxread.c: ... to here, and mark it static.
9671
9672 2002-04-20 David S. Miller <davem@redhat.com>
9673
9674 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9675 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9676
9677 2002-04-21 David S. Miller <davem@redhat.com>
9678
9679 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9680 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9681 (vx_write_register): Likewise.
9682
9683 2002-04-23 J. Brobecker <brobecker@gnat.com>
9684
9685 * source.c (is_regular_file): New function.
9686 (openp): Check wether file to open is a regular file
9687 to avoid opening directories.
9688
9689 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9690
9691 * findvar.c (extract_signed_integer): Cast printf argument
9692 to suppress format warning.
9693 (extract_unsigned_integer): Likewise.
9694 * infcmd.c (registers_info): Likewise.
9695 * top.c (get_prompt_1): Likewise.
9696 * valops.c (value_assign): Likewise.
9697 * valprint.c (print_decimal): Likewise.
9698
9699 2002-04-22 H.J. Lu (hjl@gnu.org)
9700
9701 * c-exp.y (typebase): Support
9702
9703 [long|long long|short] [signed|unsigned] [int|]
9704
9705 and
9706
9707 signed [long|long long|short] int
9708
9709 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9710
9711 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9712 and vax-tdep.h.
9713 * vax-tdep.h: New file.
9714 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9715 Make several routines static.
9716 (vax_get_saved_register): New function.
9717 (vax_gdbarch_init): New function.
9718 (_initialize_vax_tdep): Register vax_gdbarch_init.
9719 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9720 Remove macros now under the control of gdbarch.
9721
9722 2002-04-22 Michael Snyder <msnyder@redhat.com>
9723
9724 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9725 Some whitespace and coding standards tweaks.
9726
9727 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9728
9729 * vax-tdep.c: Include regcache.h.
9730 (vax_call_dummy_words): New.
9731 (sizeof_vax_call_dummy_words): New.
9732 (vax_fix_call_dummy): New function.
9733 (vax_saved_pc_after_call): Ditto.
9734 * config/vax/tm-vax.h: Don't include regcache.h.
9735 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9736 (CALL_DUMMY): Remove.
9737 (CALL_DUMMY_WORDS): Define.
9738 (SIZEOF_CALL_DUMMY_WORDS): Define.
9739 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9740
9741 2002-04-18 Michael Snyder <msnyder@redhat.com>
9742
9743 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9744
9745 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9746
9747 * vax-tdep.c (vax_frame_chain): New function.
9748 (vax_push_dummy_frame): Ditto.
9749 (vax_pop_frame): Ditto.
9750 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9751 (FRAMELESS_FUNCTION_INVOCATION): Use
9752 generic_frameless_function_invocation_not.
9753 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9754 (POP_FRAME): Use vax_pop_frame.
9755
9756 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9757
9758 * vax-tdep.c (vax_store_struct_return): New function.
9759 (vax_extract_return_value): Ditto.
9760 (vax_store_return_value): Ditto.
9761 (vax_extract_struct_value_address): Ditto.
9762 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9763 vax_store_struct_return.
9764 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9765 (STORE_RETURN_VALUE): Use vax_store_return_value.
9766 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9767
9768 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9769
9770 * vax-tdep.c (vax_frame_saved_pc): New function.
9771 (vax_frame_args_address_correct): Ditto.
9772 (vax_frame_args_address): Ditto.
9773 (vax_frame_locals_address): Ditto.
9774 (vax_frame_num_args): Move code to be in proximity to
9775 other frame-related functions.
9776 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9777 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9778 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9779 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9780 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9781
9782 2002-04-22 H.J. Lu (hjl@gnu.org)
9783
9784 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9785 includedir.
9786
9787 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9788
9789 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9790 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9791 (FRAME_INIT_SAVED_REGS): New macro.
9792
9793 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9794
9795 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9796
9797 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9798
9799 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9800 where needed.
9801 (fetch_osf_core_registers): Likewise.
9802 (supply_gregset): Likewise.
9803
9804 2002-04-22 J. Brobecker <brobecker@gnat.com>
9805
9806 * symfile.h (get_section_index): Define.
9807 * symfile.c (get_section_index): New function.
9808 * mdebugread.c (SC_IS_SBSS): New macro.
9809 (SC_IS_BSS): Return true for the scBss storage class only, as
9810 the scSBss storage class refers to the .sbss section.
9811 (parse_partial_symbols): Discard the symbols which associated
9812 section does not exist.
9813 Make sure to use the .sbss section index for symbols which
9814 storage class is scBss, rather than using the .bss section index.
9815
9816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9817
9818 * vax-tdep.c: Update copyright years.
9819 (vax_register_name): New function.
9820 (vax_register_byte): Ditto.
9821 (vax_register_raw_size): Ditto.
9822 (vax_register_virtual_size): Ditto.
9823 (vax_register_virtual_type): Ditto.
9824 * config/vax/tm-vax.h: Update copyright years.
9825 (REGISTER_NAMES): Remove.
9826 (REGISTER_NAME): Define.
9827 (REGISTER_BYTE): Use vax_register_byte.
9828 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9829 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9830 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9831
9832 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9833
9834 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9835 declaration
9836 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9837
9838 2002-04-21 David S. Miller <davem@redhat.com>
9839
9840 * arch-utils.c (generic_prologue_frameless_p): Kill
9841 SKIP_PROLOGUE_FRAMELESS_P code.
9842 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9843 references.
9844 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9845 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9846 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9847 references.
9848 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9849 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9850 (sparc_gdbarch_init): Pass it to
9851 set_gdbarch_prologue_frameless_p.
9852
9853 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9856 (alphabsd-nat.o): New dependency list.
9857
9858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9859
9860 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9861 alphafbsd-tdep.c.
9862 (alpha-linux-tdep.o): New dependency list.
9863 (alphafbsd-tdep.o): Likewise.
9864
9865 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9866
9867 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9868 to here...
9869 * alpha-tdep.c: ...from here.
9870 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9871
9872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9873
9874 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9875 prototype from here...
9876 * alpha-tdep.h: ...to here.
9877
9878 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9879
9880 * frame.h (selected_frame_level): Document as deprecated.
9881 (frame_relative_level): Declare.
9882 * stack.c (frame_relative_level): New function.
9883 (selected_frame_level): Document as deprecated.
9884 (select_frame): Do not set the selected_frame_level.
9885
9886 * stack.c (frame_info, record_selected_frame): Update.
9887 (frame_command, current_frame_command): Update.
9888 (up_silently_base, up_command, down_silently_base): Update.
9889 (down_command): Update.
9890 * inflow.c (kill_command): Update.
9891 * tracepoint.c (finish_tfind_command): Update.
9892 * corelow.c (core_open): Update.
9893 * thread.c (info_threads_command): Update.
9894 (do_captured_thread_select): Update.
9895 * infcmd.c (finish_command): Update.
9896 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9897
9898 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9899
9900 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9901
9902 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9903
9904 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9905 type const.
9906
9907 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9908
9909 * alphafbsd-tdep.c: Update copyright years. Include
9910 alpha-tdep.h.
9911 (alphafbsd_use_struct_convention): Make static.
9912 (alphafbsd_init_abi): New function.
9913 (_initialize_alphafbsd_tdep): New function.
9914 * config/alpha/tm-fbsd.h: Update copyright years.
9915 (USE_STRUCT_CONVENTION): Remove.
9916
9917 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9918
9919 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9920 an Alpha ABI variant.
9921 (alpha_abi_handler_list): Declare.
9922 (alpha_gdbarch_register_os_abi): New function.
9923 (alpha_gdbarch_init): Give registered ABI variant handlers a
9924 chance to tweak the gdbarch once we have set up defaults.
9925 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9926
9927 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9928
9929 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9930 to standard_coerce_float_to_double.
9931 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9932
9933 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9934
9935 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9936 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9937 from gdbarch_tdep rather than a constant.
9938 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9939 the default text address for all Alpha Unix ABIs.
9940 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9941 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9942
9943 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9944
9945 * alpha-tdep.h: New file. Includes several Alpha target constants
9946 taken from...
9947 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9948 let gdbarch deal with.
9949 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9950 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9951 to dependency list.
9952 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9953 Alpha target register names.
9954 * alphabsd-nat.c: Likewise.
9955 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9956 Alpha target register names. Make serveral routines static.
9957 (alpha_get_saved_register): New function.
9958 (alpha_abi_names): New.
9959 (process_note_abi_tag_sections): New function.
9960 (get_elfosabi): New function.
9961 (alpha_gdbarch_init): New function.
9962 (alpha_dump_tdep): New function.
9963 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9964
9965 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9966
9967 * frame.c (find_saved_register): Delete #ifdef
9968 HAVE_REGISTER_WINDOWS code.
9969 * config/sparc/tm-sparc.h: Update comments.
9970 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9971
9972 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9973
9974 * i960-tdep.c (i960_find_saved_register): New function.
9975 (i960_get_saved_register): New function.
9976 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9977 (i960_get_saved_register): Declare.
9978 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9979
9980 2002-04-20 David S. Miller <davem@redhat.com>
9981
9982 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9983
9984 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9985
9986 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9987 instead of NUM_PSEUDO_REGS.
9988
9989 2002-04-20 David S. Miller <davem@redhat.com>
9990
9991 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9992 GDB_MULTI_ARCH_PARTIAL
9993 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9994 define, let tm-sp64.h do it.
9995
9996 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9997
9998 * frame.c (find_saved_register): Avoid a NULL pointer
9999 dereference and actually walk the frame list.
10000
10001 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10002
10003 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10004 sorted in most most-recent-used order. Document.
10005 * gdbarch.h, gdbarch.c: Regenerate.
10006
10007 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10008
10009 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10010 instead of ->prev.
10011 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10012 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10013 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10014 instead of ->prev.
10015
10016 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10017
10018 Fix PR gdb/471.
10019 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10020 (build_builtin_type_vec128): Ditto.
10021 (append_composite_type_field): Fix calculation of type length in
10022 union case.
10023
10024 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10025
10026 * config/djgpp/README: Update.
10027
10028 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10029 compiler warnings.
10030
10031 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10032
10033 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10034 (alpha_setup_arbitrary_frame): ...to this.
10035 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10036 for alpha_setup_arbitrary_frame.
10037
10038 2002-04-18 Andrew Cagney <cagney@redhat.com>
10039
10040 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10041 * gdbarch.h, gdbarch.c: Regenerate.
10042
10043 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10044 * target.h (memory_breakpoint_from_pc): Update declaration.
10045 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10046
10047 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10048 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10049 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10050 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10051 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10052 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10053 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10054 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10055 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10056 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10057 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10058 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10059
10060 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10061 const pointer.
10062 * monitor.c (monitor_insert_breakpoint): Ditto.
10063 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10064
10065 * config/mcore/tm-mcore.h: Update copyright.
10066 * mem-break.c: Ditto.
10067 * xstormy16-tdep.c: Ditto.
10068
10069 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10070
10071 * p-exp.y: Add precedence rule for '^' token.
10072 This removes the shift/reduce conflicts.
10073 Remove the comment concerning these shift/reduce conflicts.
10074
10075 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10076
10077 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10078 (registers_powerpc_nofp): New register set for processors
10079 without floating point unit.
10080
10081 2002-04-18 David S. Miller <davem@redhat.com>
10082
10083 * MAINTAINERS: Add myself to write-after-approval.
10084
10085 2002-04-17 Michael Snyder <msnyder@redhat.com>
10086
10087 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10088
10089 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10090
10091 * rs6000-tdep.c (frame_initial_stack_address): Use
10092 frame_register_read to read the alloca_reg.
10093
10094 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10095
10096 * frame.c (find_saved_register): Find saved registers in the next
10097 not prev frame.
10098 Fix PR gdb/365.
10099
10100 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10101
10102 * gdbarch.sh (LANG): Set to ``c''.
10103
10104 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10105
10106 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10107
10108 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10109
10110 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10111 Update copyright.
10112
10113 * hpread.c (hpread_get_lntt): Add declaration.
10114 Also fix PR gdb/391.
10115
10116 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10117
10118 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10119 * aclocal.m4, configure: Re-generate.
10120 Fix PR gdb/391.
10121
10122 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10123
10124 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10125 instead of tm_print_insn.
10126
10127 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10128
10129 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10130
10131 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10132
10133 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10134 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10135 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10136
10137 2002-04-12 Don Howard <dhoward@redhat.com>
10138
10139 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10140 max_user_call_depth.
10141 (init_cmd_lists): Initialize the new value;
10142 * cli/cli-script.c (execute_user_command): Limit the call depth of
10143 user defined commands. This avoids a core-dump when user commands
10144 are infinitly recursive.
10145
10146 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10147
10148 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10149 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10150 from tdep struct instead of DEFAULT_LR_SAVE.
10151 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10152 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10153 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10154
10155 2002-04-12 Michael Snyder <msnyder@redhat.com>
10156
10157 * Remote.c: Spelling fix.
10158 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10159 If no symbol found for "sbrk", try "_sbrk".
10160 (make_output_phdrs): Use bfd_section_name.
10161 (gcore_copy_callback): Use bfd_section_name.
10162 * eval.c: Indentation fix-ups.
10163 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10164 in case it gets applied to an address that is already
10165 in the instruction space.
10166 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10167 * symfile.c: Fix indentation, long lines.
10168 * source.c: White space fix-up.
10169
10170 2002-04-12 Andrew Cagney <cagney@redhat.com>
10171
10172 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10173 * frame.c (frame_register_read): New function. Return non-zero on
10174 success.
10175 (read_relative_register_raw_bytes_for_frame): Delete.
10176 (read_relative_register_raw_bytes): Delete.
10177 * frame.h (frame_register_read): Declare.
10178 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10179 * sh-tdep.c: Ditto.
10180 * infcmd.c (do_registers_info): Ditto.
10181 * hppa-tdep.c: Ditto.
10182 * rs6000-tdep.c: Ditto.
10183 * h8500-tdep.c: Ditto.
10184 * mips-tdep.c: Ditto.
10185 * h8300-tdep.c: Ditto.
10186 * z8k-tdep.c: Ditto.
10187
10188 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10189
10190 From Jimi X <jimix@watson.ibm.com>:
10191 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10192 64-bit SysV ABI.
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): Compute ``wordsize'' from
10198 bfd info.
10199
10200 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10201
10202 From Jimi X <jimix@watson.ibm.com>:
10203 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10204 register sets for these processor variants.
10205
10206 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10207
10208 * regformats/reg-ppc.dat: Support FPSCR.
10209
10210 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10211
10212 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10213 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10214 Add fpscr as an invalid/unfetchable register.
10215 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10216 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10217 (fill_fpregset): Add support for register fpscr.
10218 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10219 (fill_gregset): Account for the fact that register ``mq'' might
10220 not exist.
10221 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10222 (registers_power): Add fpscr to register set at slot 71.
10223 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10224 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10225
10226 2002-04-11 Michael Snyder <msnyder@redhat.com>
10227
10228 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10229 * configure: Regenerate.
10230 * config.in: Regenerate.
10231 * acconfig.h: Add define for _SYSCALL32.
10232 * core-sol2.c: Remove #define _SYSCALL32.
10233 * solib-legacy.c: Remove #define _SYSCALL32.
10234
10235 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10236
10237 * stack.c (select_frame): Cleanup internal error message, do not
10238 use %p.
10239
10240 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10241
10242 * stack.c (select_frame): Check that selected_frame and the
10243 specified level are as expected.
10244 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10245 Update copyright.
10246 * frame.h (struct frame_info): Add field `level'. Update
10247 copyright.
10248 Work-in-progress PR gdb/464.
10249
10250 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10251
10252 * maint.c (maint_print_section_info): Rename print_section_info.
10253 (print_bfd_section_info, print_objfile_section_info): Update.
10254 * inferior.h (struct gdbarch): Add opaque declaration.
10255 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10256 * gdbarch.h: Regenerate.
10257
10258 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10259
10260 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10261 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10262 (kernel_u_size): Added.
10263 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10264 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10265
10266 2002-04-04 Jim Ingham <jingham@apple.com>
10267
10268 * valarith.c (find_size_for_pointer_math): New function, either returns
10269 the size for a pointer's target, returns 1 for void *, or errors for
10270 incomplete types.
10271 (value_add, value_sub): use find_size_for_pointer_math.
10272
10273 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10274
10275 * linux-low.c (linux_look_up_symbols): New hook.
10276 (linux_target_ops): Add linux_look_up_symbols.
10277 * remote-utils.c (decode_address): New function.
10278 (look_up_one_symbol): New function.
10279 * server.c (handle_query): Call target look_up_symbols hook.
10280 * server.h (look_up_one_symbol): Add prototype.
10281 * target.h (struct target_ops): Add look_up_symbols hook.
10282
10283 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10284
10285 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10286 override FP_REGNUM with frame->fp. Update copyright.
10287 * parse.c (num_std_regs, std_regs): Delete.
10288 (target_map_name_to_register): Do not search std_regs. Update
10289 function description.
10290 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10291 declarations. Update copyright.
10292 Fix PR gdb/251.
10293
10294 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10295
10296 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10297 after the last symbol in a block.
10298
10299 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10300
10301 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10302 is non zero as a found symbol.
10303
10304 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10305
10306 * findvar.c: Include "builtin-regs.h".
10307 (value_of_register): Call value_of_builtin_reg when applicable.
10308 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10309 (target_map_name_to_register): Call
10310 builtin_reg_map_name_to_regnum.
10311 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10312 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10313 (builtin_regs_h): Define.
10314 (builtin-regs.o): New target.
10315 (findvar.o): Add $(builtin_regs_h).
10316 * builtin-regs.c, builtin-regs.h: New files.
10317 * std-regs.c: New file.
10318 Partial fix for PR gdb/251.
10319
10320 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10321
10322 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10323 it's no longer required.
10324
10325 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10326
10327 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10328
10329 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10330
10331 From Jimi X <jimix@watson.ibm.com>:
10332 * rs6000-tdep.c (rs6000_software_single_step): Use
10333 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10334 and size. Use target_insert_breakpoint() and
10335 target_remove_breakpoint() to insert and remove breakpoints
10336 instead of explicit memory reads and writes.
10337
10338 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10339
10340 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10341 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10342 ELF_OBJECT_FORMAT ifdef.
10343
10344 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10345
10346 From Jimi X <jimix@watson.ibm.com>:
10347 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10348
10349 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10350
10351 From Jimi X <jimix@watson.ibm.com>:
10352 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10353 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10354
10355 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10356
10357 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10358 s/asprintf/xasprintf/.
10359 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10360
10361 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10362
10363 I believe Jeff Law denies responsability for this one:
10364 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10365 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10366 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10367 Work-around for PR gdb/366.
10368
10369 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10370
10371 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10372 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10373 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10374
10375 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10376
10377 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10378 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10379 information.
10380
10381 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10382
10383 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10384 maintainer.
10385
10386 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10387
10388 * README (Reporting Bugs in GDB): Document the bug web page as the
10389 prefered way of submitting bugs.
10390 Fix PR gdb/402.
10391
10392 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10393
10394 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10395 -1. Update comment.
10396 * gdbarch.h, gdbarch.c: Re-generate.
10397
10398 2002-04-07 Andreas Schwab <schwab@suse.de>
10399
10400 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10401 buffer to regcache_collect.
10402
10403 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10404
10405 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10406 * gdbarch.c, gdbarch.h: Re-generate.
10407
10408 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10409
10410 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10411 declaration. Fix -Werror.
10412
10413 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10414
10415 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10416 * gdbarch.c: Regenerate.
10417
10418 2002-04-05 Michael Snyder <msnyder@redhat.com>
10419
10420 * breakpoint.c (clear_command): Rewrite middle section to
10421 combine two loops with identical control conditions.
10422 Add a cleanup to eliminate a memory leak.
10423 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10424
10425 2002-04-05 H.J. Lu (hjl@gnu.org)
10426
10427 * solib-svr4.c (bkpt_names): Add "__start".
10428
10429 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10430
10431 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10432 as test for 64 bit target.
10433
10434 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10435
10436 * h8500-tdep.c (h8500_write_fp): Delete function.
10437 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10438 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10439 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10441 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10442 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10443 (s390_write_fp):
10444 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10445 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10446 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10447 (d10v_write_fp): Delete function.
10448 * inferior.h (write_fp, generic_target_write_fp): Delete
10449 declarations.
10450 * regcache.c (generic_target_write_fp): Delete function.
10451 (write_fp): Delete function.
10452 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10453 * gdbarch.h, gdbarch.c: Regenerate.
10454 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10455 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10456 (sparc64_write_fp): Delete declaration.
10457 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10458 (h8500_write_fp): Delete declaration.
10459
10460 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10461
10462 * sparc-tdep.c (sparc64_write_fp): Delete.
10463 (sparc_push_dummy_frame): Replace write_fp call with code to store
10464 the FP directly.
10465 (sparc_gdbarch_init): Do not initialize write_fp.
10466
10467 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10468
10469 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10470 clause.
10471
10472 2002-03-29 Jim Blandy <jimb@redhat.com>
10473
10474 * stack.c (get_selected_block): Add new argument `addr_in_block',
10475 used to return the exact code address we used to select the block,
10476 not just the block.
10477 * blockframe.c (get_frame_block, get_current_block): Same.
10478 * frame.h (get_frame_block, get_current_block,
10479 get_selected_block): Update declarations.
10480 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10481 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10482
10483 2002-04-05 Michael Snyder <msnyder@redhat.com>
10484
10485 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10486 warning message.
10487
10488 2002-04-05 J. Brobecker <brobecker@gnat.com>
10489
10490 * utils.c (xfullpath): New function.
10491 * defs.h (xfullpath): Add declaration.
10492 * source.c (openp): Use xfullpath in place of gdb_realpath to
10493 avoid resolving the basename part of filenames when the
10494 associated file is a symbolic link. This fixes a potential
10495 inconsistency between the filenames known to GDB and the
10496 filenames it prints in the annotations.
10497 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10498 to be able to match a filename with either the real filename, or
10499 the name of any symbolic link to this file.
10500 (lookup_partial_symtab): Ditto.
10501
10502 2002-04-04 Michael Snyder <msnyder@redhat.com>
10503
10504 * breakpoint.c: Add support for hardware breakpoints in overlays.
10505 (overlay_events_enabled): New state variable.
10506 (insert_breakpoints): Use overlay_events_enabled to decide
10507 whether to attempt to set a breakpoint at the overlay load addr.
10508 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10509 (remove_breakpoint): Use overlay_events_enabled to decide
10510 whether breakpoints need to be removed from overlay load addr.
10511 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10512 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10513 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10514 disable_overlay_breakpoints): Update overlay_events_enabled.
10515
10516 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * dwarf2read.c (struct function_range): New.
10519 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10520 (check_cu_functions): New.
10521 (read_file_scope): Initialize global function lists.
10522 Call dwarf_decode_line after processing children.
10523 (read_func_scope): Add to global function list.
10524 (dwarf_decode_lines): Call check_cu_functions everywhere
10525 record_line is called. Call record_line with a linenumber
10526 of 0 to mark sequence ends.
10527
10528 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10529
10530 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10531 change sync with glibc.
10532
10533 2002-04-03 Jim Blandy <jimb@redhat.com>
10534
10535 * configure.in: Call AC_C_INLINE.
10536 * configure: Regenerated.
10537
10538 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10539
10540 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10541 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10542
10543 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10544
10545 * NEWS: Mention gcore support on FreeBSD/i386.
10546
10547 * fbsd-proc.c: New file.
10548 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10549 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10550
10551 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10552 while statement.
10553
10554 2002-03-29 Jim Blandy <jimb@redhat.com>
10555
10556 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10557 unescaped newlines in string literals, but newer ones don't. So
10558 escape them.
10559
10560 2002-03-26 Michael Snyder <msnyder@redhat.com>
10561 Andrew Cagney <cagney@redhat.com>
10562
10563 * cli/cli-dump.c: New file. Dump memory to file,
10564 restore file to memory.
10565 * cli/cli-dump.h: New file.
10566 * Makefile.in: Add rules, dependencies for cli-dump.o.
10567 * NEWS: Mention new commands.
10568
10569 2002-03-28 Michael Snyder <msnyder@redhat.com>
10570
10571 * symfile.c (symbol_file_add): Move test for null symbols to later.
10572
10573 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10574
10575 From veksler at il.ibm.com:
10576 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10577 the xstrduped original path.
10578 Fix PR gdb/417.
10579
10580 2002-03-27 Michael Snyder <msnyder@redhat.com>
10581
10582 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10583 * infcmd.c (_initialize_infcmd): Ditto.
10584 * language.c (_initialize_language): Ditto.
10585 * symfile.c (_initialize_symfile): Ditto.
10586 * top.c (_init_main): Ditto.
10587 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10588
10589 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10590
10591 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10592 vector registers handling.
10593 (skip_prologue): Handle new AltiVec instructions. Fill in new
10594 fields of frame data.
10595 (frame_get_saved_regs): Fill in information for AltiVec registers.
10596
10597 2002-03-27 Jim Blandy <jimb@redhat.com>
10598
10599 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10600 a function; leave this macro here to invoke that function.
10601 (symbol_init_mangled_name): Declaration for that function.
10602 * symtab.c (symbol_init_mangled_name): New function.
10603
10604 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10605
10606 * valarith.c: Replace strerror with safe_strerror.
10607 * tracepoint.c: Ditto.
10608 * lin-lwp.c: Ditto.
10609 * go32-nat.c: Ditto.
10610 * inflow.c: Ditto.
10611 * gnu-nat.c: Ditto.
10612
10613 2002-03-27 Andreas Schwab <schwab@suse.de>
10614
10615 * event-top.c (command_line_handler): Remove useless if.
10616
10617 2002-03-27 Andreas Jaeger <aj@suse.de>
10618
10619 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10620 comment.
10621
10622 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10623
10624 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10625 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10626 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10627 (x86_64_linux_dr_get_status, supply_gregset),
10628 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10629 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10630 (x86_64_register_info_table): Add.
10631 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10632 (x86_64_register_raw_size, x86_64_register_virtual_type),
10633 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10634 general x86_64_register_info_table.
10635 (i386_gdbarch_init): gdbarch_register_bytes is now set
10636 dynamicaly during initialization.
10637 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10638 * gdbserver/linux-x86-64-low.c: Ditto.
10639
10640 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * gdbserver/server.c (main): Call target_signal_to_host_p
10643 and target_signal_to_host on signals received from the remote.
10644 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10645 target_signal_from_host on signals sent to the remote.
10646 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10647 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10648
10649 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10650
10651 * signals/signals.c: Include "server.h" in gdbserver build.
10652 (target_signal_from_name): Don't use STREQ.
10653 (_initialize_signals): Likewise. Don't include function in
10654 gdbserver build.
10655
10656 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10657
10658 * signals.c: Moved to...
10659 * signals/signals.c: Here.
10660 * Makefile (signals.o): Update.
10661
10662 2002-03-26 Jeff Law (law@redhat.com)
10663
10664 * somread.c (som_symtab_read): Remove some commented out code and
10665 updated related comments. Do not set the minimal symbol table to
10666 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10667 in a dynamic executable.
10668 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10669 where we are unable to find the minimal symbol for the given
10670 PC value.
10671
10672 2002-03-25 Jeff Law (law@redhat.com)
10673
10674 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10675
10676 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10677
10678 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10679
10680 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10681
10682 * command.h: Update copyright.
10683 (struct cmd_list_element): Replace definition with opaque
10684 declaration.
10685 (enum cmd_types): Document that it will eventually be moved to
10686 cli/cli-decode.h
10687 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10688 (MALLOCED_REPLACEMENT): Delete macro.
10689 * Makefile.in (cli_decode_h): Add $(command_h).
10690 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10691 * top.c: Include "cli/cli-decode.h".
10692 * completer.c: Include "cli/cli-decode.h".
10693 * maint.c: Include "cli/cli-decode.h".
10694 * cli/cli-decode.h: Include "command.h".
10695 (enum command_class): Delete.
10696 (enum cmd_types): Comment out.
10697 (enum cmd_auto_boolean): Delete.
10698 (enum var_types): Delete.
10699
10700 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10701
10702 * cli/cli-decode.c: Include "gdb_assert.h".
10703 (add_set_or_show_cmd): New static function.
10704 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10705 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10706 all fields, such as func, from the set command.
10707
10708 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10709
10710 * MAINTAINERS (sh-elf): Change warning flag to -w.
10711
10712 2002-03-23 Andrew Cagney <cagney@redhat.com>
10713
10714 * defs.h (error): Add printf format attribute.
10715 * thread-db.c (thread_from_lwp): Fix error format string.
10716 * stack.c (parse_frame_specification): Ditto.
10717 * cli/cli-decode.c (undef_cmd_error): Ditto.
10718 * scm-lang.c (scm_lookup_name): Ditto.
10719 * tracepoint.c (trace_error): Ditto.
10720 * remote-utils.c (usage): Ditto.
10721 * remote.c (compare_sections_command): Ditto.
10722 Fix PR gdb/328.
10723
10724 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10725
10726 * gdbtypes.c (append_composite_type_field): New function.
10727 (init_composite_type): New function.
10728 * gdbtypes.h (append_composite_type_field): Declare.
10729 (init_composite_type): Ditto.
10730
10731 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10732
10733 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10734 function.
10735 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10736 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10737 structure returning convention for SYSV ABI case, but not
10738 for GNU/Linux, FreeBSD, or NetBSD.
10739
10740 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10741
10742 * symtab.h (lookup_block_symbol): Add mangled_name argument
10743 to prototype.
10744
10745 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10746 with new mangled_name argument.
10747 * linespec.c (decode_line_1): Likewise.
10748 * valops (value_of_this): Likewise.
10749 * symtab.c (lookup_transparent_type): Likewise.
10750 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10751 (lookup_symbol): If we are given a mangled name, pass it down
10752 to lookup_symbol_aux.
10753 (lookup_block_symbol): If we are given a mangled name to check
10754 against, only return symbols which match it.
10755
10756 2002-03-22 Christopher Faylor <cgf@redhat.com>
10757
10758 * win32-nat.c (child_create_inferior): Check for proper shell to use
10759 here, in case the user changes it on the fly.
10760 (_initialize_inftarg): Remove shell path considerations.
10761
10762 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10763
10764 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10765 for gdbarch_max_register_raw_size and max_register_virtual_size.
10766 Adjust copyright year.
10767
10768 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10769
10770 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10771 in a function to cover the entire beginning of the function
10772 as well if it does not already.
10773
10774 2002-03-21 Tom Rix <trix@redhat.com>
10775
10776 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10777 (rs6000_ptrace64): Renamed from ptrace64.
10778
10779 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10780
10781 * gdbserver/remote-utils.c (remote_open): Don't call
10782 getprotobyname, we're all using TCP here so just use
10783 IPPROTO_TCP.
10784 * gdbserver/gdbreplay.c (remote_open): Ditto.
10785
10786 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10787
10788 * regcache.c (_initialize_regcache): No need to call
10789 build_regcache() at this time; it gets called whenever
10790 the gdbarch changes.
10791
10792 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10793
10794 * sparc-nat.c: Include sys/param.h where possible.
10795
10796 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10797
10798 Fix PR gdb/422.
10799 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10800 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10801 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10802 complex types.
10803 * stabsread.c (rs6000_builtin_type): Likewise.
10804 (read_sun_floating_type): Likewise.
10805
10806 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10807
10808 * stabsread.c (read_member_functions): Remove skip code for duplicate
10809 constructor/destructor methods. Use standard parsing for these
10810 methods and just do not chain them to the list of methods after
10811 parsing.
10812
10813 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10814
10815 * coffread.c: Remove redundant static declarations. Replace
10816 occurrences of `PTR' with `void *'.
10817 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10818 * top.h (quit_cover): Likewise.
10819 * defs.h (catch_errors): Likewise.
10820
10821 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10822
10823 * defs.h (XMALLOC): Define.
10824 * gdb-events.sh (XMALLOC): Delete macro.
10825 * gdb-events.c, gdb-events.h: Regenerate.
10826 * gdbarch.sh (XMALLOC): Delete macro.
10827 * gdbarch.c: Regenerate.
10828 * serial.c (XMALLOC): Delete macro.
10829 * ui-file.c (XMALLOC): Ditto.
10830 * ser-unix.h (XMALLOC): Ditto.
10831 * sh-tdep.c (XMALLOC): Ditto.
10832 * ui-out.c (XMALLOC): Ditto.
10833 * utils.c (XMALLOC): Ditto.
10834 * i386-tdep.c (XMALLOC): Ditto.
10835 * gdb-events.c (XMALLOC): Ditto.
10836 * d10v-tdep.c (XMALLOC): Ditto.
10837 * cli-out.c (XMALLOC): Ditto.
10838
10839 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10840 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10841 * ui-file.c, ui-out.c: Ditto.
10842
10843 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10844
10845 * command.h (struct cmd_list_element): Add field context.
10846 (set_cmd_context, get_cmd_context): Declare.
10847 * cli/cli-decode.h: Ditto.
10848 * cli/cli-decode.c (get_cmd_context): New function.
10849 (set_cmd_context): New function.
10850 (add_cmd): Initialize context.
10851 Part of fixing PR gdb/145 and PR gdb/146.
10852
10853 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10854
10855 * cli/cli-decode.c (cmd_type): New function.
10856 * command.h (cmd_type): Declare.
10857 * infrun.c (set_schedlock_func): Call function cmd_type.
10858 * kod.c (kod_set_os): Call cmd_type.
10859 * cris-tdep.c (cris_version_update): Use function cmd_type.
10860 (cris_mode_update, cris_abi_update): Ditto.
10861
10862 * command.h: (execute_cmd_post_hook): Declare.
10863 (execute_cmd_pre_hook): Declare.
10864 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10865 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10866 functions. Execute pre/post hook while ensuring that afterwords
10867 hook_in is cleared.
10868 * top.c (execute_command): Use execute_cmd_post_hook, and
10869 execute_cmd_pre_hook to execute pre/post commands.
10870 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10871 hook_stop_stub.
10872 (hook_stop_stub): Call execute_cmd_pre_hook.
10873
10874 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10875
10876 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10877 set'' and this leads to a core dump. Move xstrdup of
10878 operating_system to after check that it is not NULL.
10879
10880 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10881
10882 * kod.c (kod_set_os): Remove unnecessary check that
10883 ``command->type'' is set_cmd.
10884
10885 * valprint.c (set_input_radix): Use input_radix.
10886 (set_output_radix): Use output_radix.
10887 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10888 isn't reverted.
10889
10890 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10891
10892 * value.h (struct value): Delete field ``substring_addr''. Change
10893 aligner fields to force_doublest_align, force_longest_align,
10894 force_core_addr_align and force_pointer_aligh.
10895
10896 * value.h (struct value): Fix typo in above change.
10897
10898 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10899
10900 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10901 to fix internal_error from ``maintenance print architecture''.
10902
10903 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10904
10905 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10906 for gcc versions after gcc-2.8.1.
10907
10908 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10909
10910 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10911 for method resolution. Restore adjustment of ``this'' pointer after
10912 calling value_struct_elt, which was accidentally removed during the
10913 HP merge.
10914
10915 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10916
10917 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10918 value_of_register.
10919 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10920 get_saved_register.
10921 * value.h (value_of_register): Update.
10922
10923 2002-03-14 Richard Henderson <rth@redhat.com>
10924
10925 * configure.in: Detect declaration for canonicalize_file_name.
10926 * utils.c (canonicalize_file_name): Declare, if needed.
10927 (gdb_realpath): Prefer realpath if available and usable.
10928 * config.in, configure: Rebuild.
10929
10930 2002-03-14 Richard Henderson <rth@redhat.com>
10931
10932 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10933 a constant array bound.
10934
10935 * MAINTAINERS: Add myself to write-after-approval.
10936
10937 2002-03-14 Michael Snyder <msnyder@redhat.com>
10938
10939 * symfile.c (syms_from_objfile): Return immediately if no syms.
10940 (symbol_file_add): Return immediately if no syms.
10941 (find_sym_fns): Return immediately if no syms.
10942
10943 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10944
10945 * gdbserver/remote-util.c (remote_open): Print remote-side's
10946 IP address when remote debugging over the network.
10947
10948 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10949
10950 * config/sparc/fbsd.mh: Fix copyright.
10951 * config/sparc/fbsd.mt: Likewise.
10952
10953 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10954
10955 * MAINTAINERS: Fix typo in name of gdb warnings option.
10956 (x86-64): Fix formating so that this can be parsed by awk.
10957
10958 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10961 * defs.h: Include "gdb/signals.h".
10962 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10963
10964 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10965
10966 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10967 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10968 from x86-64-tdep.h
10969
10970 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10971 Don Howard <dhoward@redhat.com>
10972
10973 * mips-tdep.c (ST0_FR): Define.
10974 (mips2_fp_compat): New function, temporarily disabled.
10975 (mips_read_fp_register_single): New function.
10976 (mips_read_fp_register_double): New function.
10977 (mips_print_register): Use them.
10978 (do_fp_register_row): Likewise.
10979
10980 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10981
10982 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10983 approval''.
10984
10985 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10986
10987 * stabsread.c (read_member_functions): Fix is_stub test for
10988 static member functions, improve comment.
10989
10990 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10991
10992 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10993 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10994 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10995 commands that set boolean values.
10996 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10997 (arm_rdi_resume): Always initialize PC.
10998 (arm_rdi_open): Don't use rslt as a boolean.
10999 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11000 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11001 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11002 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11003
11004 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11005
11006 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11007 * configure: Rebuilt.
11008
11009 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11010
11011 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11012 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11013
11014 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11015
11016 * cli/cli-decode.c (set_cmd_completer): New function.
11017 * command.h (set_cmd_completer): Declare.
11018 * cli/cli-decode.h (set_cmd_completer): Ditto.
11019
11020 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11021 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11022 * win32-nat.c (_initialize_inftarg): Ditto.
11023 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11024 * proc-api.c (_initialize_proc_api): Ditto.
11025 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11026 * source.c (_initialize_source): Ditto.
11027 * exec.c (_initialize_exec): Ditto.
11028 * solib.c (_initialize_solib): Ditto.
11029 * top.c (init_main): Ditto.
11030 * tracepoint.c (_initialize_tracepoint): Ditto.
11031 * symfile.c (_initialize_symfile): Ditto.
11032 * printcmd.c (_initialize_printcmd): Ditto.
11033 * infcmd.c (_initialize_infcmd): Ditto.
11034 * corefile.c (_initialize_core): Ditto.
11035
11036 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11037
11038 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11039
11040 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11041
11042 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11043
11044 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11045
11046 * NEWS: Update headings, 5.2 has branched.
11047
11048 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11049
11050 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11051 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11052 (register_addr, REGISTER_RAW_SIZE): Likewise.
11053 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11054 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11055
11056 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11057
11058 * MAINTAINERS (x86-64): Add myself.
11059 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11060 changed value_ptr -> struct value *
11061
11062 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11063
11064 * configure.host (sparc64-*-freebsd): Add.
11065 * configure.tgt: Likewise.
11066 * config/sparc/fbsd.mh: New file.
11067 * config/sparc/fbsd.mt: Likewise.
11068 * config/sparc/nm-fbsd.h: Likewise.
11069 * config/sparc/tm-fbsd.h: Likewise.
11070
11071 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11074 regformats/reg-s390x.dat.
11075
11076 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11077
11078 * utils.c: Add FIXME explaining true/false problem.
11079
11080 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11081
11082 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11083
11084 2002-02-28 Michael Chastain <mec@shout.net>
11085
11086 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11087
11088 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11089
11090 * gdbserver/linux-s390-low.c: New file.
11091 * regformats/reg-s390.dat: New file.
11092 * regformats/reg-s390x.dat: New file.
11093 * gdbserver/configure.srv: Add S/390.
11094 * gdbserver/Makefile.in: Add S/390.
11095 * configure.tgt: Enable gdbserver for S/390.
11096
11097 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11098
11099 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11100 first line of the doc string for "info dos", except at the end of
11101 the sentence, since the short help stops at the first period.
11102
11103 2002-02-28 Jason Merrill <jason@redhat.com>
11104
11105 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11106
11107 2002-02-27 Fred Fish <fnf@redhat.com>
11108
11109 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11110 comment (dumy -> dummy).
11111
11112 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11113
11114 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11115
11116 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11117
11118 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11119
11120 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11121
11122 * gdbserver/acconfig.h: New file.
11123 * gdbserver/i387-fp.c: New file.
11124 * gdbserver/i387-fp.h: New file.
11125 * gdbserver/linux-x86-64.c: New file.
11126 * regformats/reg-x86-64.dat: New file.
11127 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11128 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11129 * gdbserver/configure.in: Add support for regsets.
11130 * gdbserver/config.in: Regenerate.
11131 * gdbserver/configure: Regenerate.
11132 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11133 * gdbserver/linux-low.h: New file.
11134 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11135 for regsets.
11136 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11137 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11138 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11139 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11140 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11141 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11142 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11143 "i387-fp.h". Add PTRACE_GETREGS and friends.
11144 * gdbserver/regcache.c (supply_register): New function.
11145 (supply_register_by_name): New function.
11146 (collect_register): New function.
11147 (collect_register_by_name): New function.
11148
11149 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11150
11151 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11152 (config.status): Add configure.srv dependency.
11153 (server_h): Add config.h dependency.
11154
11155 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11158 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11159 * gdbserver/configure.srv: Change i386-*-linux* to use
11160 reg-i386-linux.o.
11161
11162 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11163
11164 * x86-64-tdep.c: Re-indent. Update copyright date.
11165
11166 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11167
11168 From Michal Ludvig <mludvig@suse.cz>:
11169 * x86-64-tdep.c (value.h): Delete.
11170 (gdb_assert.h): Include.
11171 (x86_64_register_convert_to_virtual,
11172 x86_64_register_convert_to_raw ): Add check which lets only
11173 floating-point values to be converted.
11174 (value_push): Delete.
11175 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11176 (i386_gdbarch_init): Number of register_bytes fixed.
11177
11178 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11179
11180 * MAINTAINERS: Add x86-64 target.
11181
11182 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11183
11184 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11185 * osfsolib.c (solib_map_sections): Ditto.
11186 * irix5-nat.c (solib_map_sections): Ditto.
11187 * corelow.c (gdb_check_format): Ditto.
11188 * symfile.c (symfile_bfd_open): Ditto.
11189 * solib.c (solib_map_sections): Ditto.
11190 Fix PR gdb/354.
11191
11192 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11193
11194 * remote.c (_initialize_remote): By default, disable ``e'' and
11195 ``E'' step out-of-range packets.
11196
11197 2002-02-26 Andreas Schwab <schwab@suse.de>
11198
11199 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11200 m68k_linux_frame_saved_pc.
11201 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11202 in_sigtramp.
11203 (SIGCONTEXT_PC_OFFSET): Remove.
11204 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11205 m68k_linux_sigtramp_saved_pc): New functions.
11206 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11207 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11208 (UCONTEXT_PC_OFFSET): Define.
11209 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11210 non-RT and RT signal trampolines.
11211
11212 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11213
11214 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11215 (TARGET_NBPG, STACK_END_ADDR): Delete
11216 (VARIABLES_INSIDE_BLOCK): Delete.
11217
11218 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11219
11220 * utils.c (perror_with_name): Make string parameter constant.
11221 (print_sys_errmsg): Ditto.
11222 (query): Ditto.
11223 * defs.h (perror_with_name): Update.
11224 (print_sys_errmsg): Update.
11225 (query): Update.
11226
11227 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11228
11229 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11230 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11231
11232 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11233
11234 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11235 if it already matches the current architecture from the exec file.
11236 Include arch-utils.h for gdbarch_info_init prototype.
11237 * Makefile.in (rs6000-nat.o): Update dependencies.
11238
11239 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11240
11241 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11242 list of exported variables.
11243
11244 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11245
11246 * gdbserver/configure.srv: New file.
11247 * gdbserver/configure.in: Use configure.srv instead
11248 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11249 from it.
11250 * gdbserver/configure: Regenerated.
11251 * gdbserver/terminal.h: New file.
11252 * gdbserver/Makefile.in: Update for configure changes. Remove
11253 more unneeded include paths.
11254
11255 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11256
11257 From wiz at danbala:
11258 * config/sparc/tm-sp64.h: Fix grammar and typos.
11259 Fix PR gdb/287.
11260
11261 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11262
11263 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11264 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11265 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11266 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11267 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11268 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11269 * s390-tdep.c: Ditto.
11270 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11271 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11272 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11273 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11274 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11275 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11276 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11277 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11278 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11279 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11280 Fix PR gdb/378.
11281
11282 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11283
11284 * lin-thread.c: Delete file.
11285 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11286 to gdb_proc_service.h.
11287 * configure: Re-generate.
11288
11289 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11290 * serial.c (serial_open): Delete check for "ocd".
11291 Fix PR gdb/349.
11292
11293 * Makefile.in (linux-thread.o): Delete target.
11294 * linux-thread.c: Delete file.
11295
11296 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11297 renamed SH files to be consistent.
11298
11299 * symtab.c (sort_search_symbols): Use xfree.
11300
11301 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11302
11303 * arm-linux-tdep.c (arm_linux_init_abi): Register
11304 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11305 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11306 definition with undef, since we don't want the sysvr4 definition.
11307 (SKIP_TRAMPOLINE_CODE): Likewise.
11308
11309 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11310
11311 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11312
11313 * configure.in: (AC_CHECK_FUNCS) Added test for
11314 canonicalize_file_name Regenerated.
11315 * config.in, configure: Regenerated.
11316 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11317 defined use canonicalize_file_name.
11318
11319 2002-02-23 Michael Chastain <mec@shout.net>
11320
11321 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11322
11323 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11324
11325 * README: Remove references to cygnus.com.
11326 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11327 dot com'' form. Remove references to cygnus.com and sourceware.
11328
11329 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11330
11331 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11332 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11333 1003.1-2001 no longer allows "head -1".
11334 * gdb/Makefile.in (version.c): Likewise.
11335 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11336 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11337 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11338
11339 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11340
11341 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11342 * command.h (cmd_cfunc_eq): Declare.
11343 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11344
11345 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11346 ``struct cmd_list_element *''.
11347 * cli/cli-cmds.c (is_complete_command): Update. Use
11348 cmd_cfunc_eq.
11349 * top.c (execute_command): Pass the command to
11350 is_complete_command.
11351 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11352
11353 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11354
11355 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11356 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11357 architecture defines.
11358 * s390-tdep.c (s390_gdbarch_init): Likewise.
11359
11360 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11361
11362 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11363 (arm_linux_push_arguments): Likewise.
11364 (arm_linux_init_abi): Register them. Also register linux-specific
11365 call_dummy_words.
11366 (find_minsym_and_objfile): Use strcmp, not STREQ.
11367 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11368 (arm_linux_call_dummy_words): Delete declaration.
11369 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11370 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11371 declarations.
11372 (LOWEST_PC): Delete.
11373
11374 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11375
11376 * maint.c (print_section_info): Do not prepend `0x' to filepos
11377 output, it will be handled by local_hex_string_custom.
11378
11379 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11380
11381 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11382 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11383 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11384
11385 2002-02-22 Jim Blandy <jimb@redhat.com>
11386
11387 Indicate that the bcache functions don't change the strings
11388 they're passed.
11389 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11390 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11391
11392 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11393
11394 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11395
11396 2002-02-21 Christopher Faylor <cgf@redhat.com>
11397
11398 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11399 find the complete path to a loaded DLL.
11400
11401 2002-02-21 Fred Fish <fnf@redhat.com>
11402
11403 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11404 that marks the end of the range of a function, enter a line number
11405 entry that has a line number of zero and a PC offset that matches
11406 the end of the function. This starts a range of PC's for which no
11407 line number information is known.
11408 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11409 PC's for which no line number info is found (line number is zero)
11410 then we didn't find any valid line information.
11411 * symtab.h: Document use of zero line number entry.
11412
11413 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11414
11415 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11416 (have_ptrace_getvrregs): Define for run time checks.
11417 (gdb_vrregset_t): New type for Altivec register handling.
11418 (fetch_register, store_register): Fetch/store altivec register
11419 when needed.
11420 (fetch_altivec_register, store_altivec_register): New functions.
11421 (supply_vrregset, fill_vrregset): New functions.
11422 (fetch_altivec_registers, store_altivec_registers): New functions.
11423 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11424 registers as well.
11425
11426 2002-02-21 Jiri Smid <smid@suse.cz>
11427
11428 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11429
11430 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11431
11432 * Makefile.in (armnbsd-nat.o): Update dependencies.
11433 * armnbsd-nat.c (supply_gregset): New function. Common code to
11434 supply the integer register set.
11435 (supply_fparegset): New function. Similar for FPA registers.
11436 (fetch_regs, fetch_fp_regs): Use them.
11437 (fetch_core_registers): Likewise.
11438 (fetch_elfcore_registers): New function.
11439 (arm_netbsd_elfcore_fns): New core-file type specification.
11440 (_initialize_arm_netbsd_nat): Register it.
11441
11442 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11443
11444 * armnbsd-nat.c: Include gdbcore.h.
11445 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11446 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11447 'void' to declaration, to shut up ARI.
11448 (fetch_core_registers): Make static. Rewrite using supply_register.
11449 (arm_netbsd_core_fns): New core-file type specification.
11450 (_initialize_arm_netbsd_nat): New function.
11451
11452 2002-02-21 Christopher Faylor <cgf@redhat.com>
11453
11454 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11455 value.
11456
11457 2002-02-20 Christopher Faylor <cgf@redhat.com>
11458
11459 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11460 fails.
11461
11462 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11463
11464 * jv-exp.y (parse_number): Change type of implicit longs
11465 to builtin_type_uint64.
11466
11467 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11468
11469 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11470 to be an integer instead of a `union wait'.
11471
11472 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11473
11474 * mips-linux-nat.c: Call the operating system GNU/Linux.
11475 * mips-linux-tdep.c: Likewise.
11476 * mips-tdep.c: Likewise.
11477
11478 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11479
11480 Fix PR gdb/265.
11481 * jv-exp.y (parse_number): Handle 64-bit integers.
11482
11483 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11484
11485 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11486 AC_STDC_HEADERS to AC_HEADER_STDC.
11487 * gdbserver/configure: Regenerated.
11488
11489 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11490
11491 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11492 is defined.
11493 * sparc-tdep.c (get_longjmp_target): Likewise.
11494
11495 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11496
11497 * News: Add news about ARM and Multi-arch. Mention the new target
11498 arm*-*-netbsd*.
11499
11500 2002-02-19 Jim Blandy <jimb@redhat.com>
11501
11502 * stabsread.c (error_type_complaint): Improve error message.
11503
11504 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * gdbserver/README: Update documentation.
11507 * gdbserver/configure.in: Update configury to match documentation.
11508 * gdbserver/Makefile.in: Likewise.
11509 * gdbserver/configure: Regenerated.
11510 * gdbserver/aclocal.m4: New file, generated by aclocal.
11511 * gdbserver/config.in: New file, generated by autoheader.
11512
11513 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11514
11515 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11516 armnbsd-nat.c.
11517
11518 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11519
11520 * arm-tdep.h (enum arm_float_model): New enum.
11521 (struct gdbarch_tdep): Add fp_model.
11522 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11523 up floating-point conversions until we know the floating-point model
11524 in use by the inferior. Don't complain about being unable to
11525 determine the ABI of the inferior when we don't have one.
11526 (arm_extract_return_value): Support different floating-point models.
11527 (arm_store_return_value): Likewise.
11528 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11529 ARM_FLOAT_SOFT.
11530 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11531
11532 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11533
11534 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11535 of ``current_gdbarch''.
11536
11537 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11538
11539 * armnbsd-nat.c : ANSIfy all function declarations.
11540 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11541 (fetch_inferior_registers): Re-implement in terms of above.
11542 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11543 (store_inferior_registers): Re-implement in terms of above.
11544
11545 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11546
11547 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11548 kernel.
11549 * arm-linux-tdep.c: Likewise.
11550 * config/arm/tm-linux.h: Likewise.
11551
11552 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11553
11554 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11555 * config/arm/nbsd.mt (TM_FILE): Delete.
11556 * config/arm/tm-nbsd.h: Delete.
11557
11558 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11559
11560 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11561 Initialize CALL_DUMMY_LENGTH.
11562
11563 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11564
11565 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11566 function.
11567 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11568 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11569 defines one thing and that is incorrect for this port.
11570 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11571
11572 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11573
11574 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11575
11576 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11577
11578 * win32-nat.c (display_selector): New function. Displays information
11579 about the information returned by GetThreadSelectorEntry API function.
11580 (display_selectors): New function. Displays the infomation of
11581 the selector given as argument, or of CS, DS ans FS selectors
11582 if no argument is given.
11583 ( _initialize_inftarg): Add "w32" as info prefix command.
11584 Add "info w32 selector" as command calling display_selectors.
11585
11586 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11587
11588 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11589 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11590 if not defined.
11591
11592 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11593
11594 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11595
11596 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11597
11598 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11599 (arm_fix_call_dummy): Call it.
11600 (arm_call_dummy_breakpoint_offset): Delete.
11601 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11602 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11603
11604 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11605
11606 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11607 Default to func_frame_chain_valid.
11608 * gdbarch.h, gdbarch.c: Re-generate.
11609 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11610
11611 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11612
11613 * ppc-linux-nat.c: Update copyright.
11614 (fetch_register, store_register): Add tid parameter, don't compute
11615 tid here.
11616 (fetch_ppc_registers, store_ppc_registers): Add tid
11617 parameter. Pass it along to callees.
11618 (fetch_inferior_registers, store_inferior_registers): Compute tid
11619 here, and pass it to calleed functions.
11620 (fill_gregset, supply_fpregset): Clean up formatting.
11621
11622 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11623
11624 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11625 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11626
11627 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11628
11629 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11630 * gdbarch.c gdbarch.h: Regenerate.
11631 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11632 function.
11633 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11634 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11635 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11636
11637 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11638 * arm-tdep.c (arm_get_longjmp_target): New function.
11639 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11640 this to a positive value register arm_get_longjmp_target as the
11641 longjmp handler.
11642 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11643 (arm_linux_init_abi): Set up longjmp description in tdep.
11644 * armnbsd-nat.c (get_longjmp_target): Delete.
11645 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11646 description in tdep.
11647 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11648 (get_longjmp_target): Delete declaration.
11649 (GET_LONGJMP_TARGET): Delete.
11650 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11651 (GET_LONGJMP_TARGET): Delete.
11652
11653 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11654
11655 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11656 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11657 of ``current_gdbarch''.
11658
11659 2002-02-17 Tom Tromey <tromey@redhat.com>
11660
11661 * cli/cli-cmds.c (compare_strings): New function.
11662 (complete_command): Only print each unique item once.
11663 * completer.h (complete_line): Declare.
11664 * completer.c (complete_line): New function.
11665 (line_completion_function): Use it.
11666
11667 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11668
11669 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11670 * gdbarch.h, gdbarch.c: Re-generate.
11671
11672 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11673
11674 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11675
11676 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11677
11678 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11679 * valops.c (value_arg_coerce): Don't take the address of a reference
11680 to convert an argument to a reference.
11681
11682 2002-02-15 Christopher Faylor <cgf@redhat.com>
11683
11684 * win32-nat.c (get_image_name): New function.
11685 (handle_load_dll): Use get_image_name function.
11686 (get_child_debug_event): Avoid registering debug events until possibly
11687 execed process is started.
11688 (child_create_inferior): Allow invocation via shell so that command
11689 line redirection, etc. works ok.
11690 (_initialize_inftarg): Add new command: "set shell" to control whether
11691 a shell is used to start a process.
11692
11693 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11696 instead of find_register_by_number.
11697 (cannot_store_register): Likewise.
11698
11699 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11700
11701 * dwarf2read.c: Replace fprintf (stderr, ...) by
11702 fprintf_unfiltered (gdb_stderr, ...).
11703
11704 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11705
11706 * gdbserver/gdbserver.1: Document --attach.
11707
11708 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11709
11710 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11711 descriptions.
11712 * arm-tdep.c (arm_default_arm_le_breakpoint)
11713 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11714 (arm_default_thumb_be_breakpoint): New. Initialize them from
11715 traditional breakpoint defines.
11716 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11717 (arm_gdbarch_init): Initialize new breakpoint variables.
11718 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11719 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11720 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11721 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11722 code out to ...
11723 (arm_netbsd_init_abi_common): ... here; new function.
11724 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11725 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11726 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11727 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11728
11729 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11730
11731 * arm-tdep.h (enum arm_abi): New enum.
11732 (struct gdbarch_tdep): New structure.
11733 (LOWEST_PC): Provide a default.
11734 (arm_gdbarch_register_os_abi): Declare new function.
11735 * arm-tdep.c (arm_abi_names): New array.
11736 (process_note_abi_tag_sections): New function.
11737 (get_elfosabi): New function.
11738 (arm_gdbarch_register_os_abi): New function.
11739 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11740 support for that ABI has been built in, then call the appropriate
11741 configuration routine. Use gdbarch_num_regs() to get the number
11742 of registers.
11743 (arm_dump_tdep): New function.
11744 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11745 place-holder functions.
11746 (_initialize_arm_tdep): Register them.
11747 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11748
11749 * armnbsd-tdep.c: New file.
11750 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11751 * config/arm/nbsd.mt (TDEPFILES): Add it.
11752 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11753
11754 * armnbsd-nat.c: Include regcache.h.
11755 * Makefile.in (armnbsd-nat.o): Update dependency list.
11756
11757 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11758
11759 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11760
11761 * gdbserver/Makefile.in: Fix typos in target rules.
11762
11763 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11764
11765 Fix part of PR gdb/267.
11766 * linespec.c (find_methods): Handle constructors specially for now.
11767
11768 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11769
11770 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11771 handling.
11772 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11773 standard_coerce_float_to_double().
11774
11775 2002-02-14 Christopher Faylor <cgf@redhat.com>
11776
11777 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11778 GDBINIT_FILENAME.
11779
11780 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11781
11782 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11783 find_variant_by_name, because it confuses the multiarch
11784 framework. Return NULL if there isn't an architecture with the
11785 user supplied name, instead of forcing a different one without
11786 recording the change with the multiarch machinery.
11787 (find_variant_by_name): Delete.
11788
11789 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11790
11791 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11792 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11793
11794 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11795
11796 * stack.c (print_frame_info_base): When calling
11797 print_frame_info_listing_hook, set current_source_symtab.
11798
11799 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11800
11801 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11802 and remove unused $(INCLUDE_DIR).
11803 Add regcache.c to OBS.
11804 Add generated register protocol files to clean target.
11805 Update dependencies for new objects, obsolete old target code.
11806
11807 * gdbserver/linux-low.c: Remove all platform-specific code to
11808 new files. Remove various dead code. Update to use regcache
11809 functionality.
11810 * gdbserver/remote-utils.c (fromhex): Add return statement
11811 to quiet warning.
11812 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11813 constant.
11814 (input_interrupt): Add integer parameter to match prototype
11815 of a signal handler.
11816 (outreg): Use register_data ().
11817 (prepare_resume_reply): Use gdbserver_expedite_regs.
11818 * gdbserver/server.c (main): Dynamically allocate own_buf because
11819 PBUFSIZ is no longer constant. Use registers_to_string () and
11820 registers_from_string ().
11821 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11822 for error (), fatal (), and warning (). Update definition of
11823 PBUFSIZ to use regcache functionality. Add include guard.
11824 * gdbserver/utils.c (fatal): Add missing ``const''.
11825 (warning): New function.
11826
11827 * regformats/regdat.sh: Include "regcache.h" in generated files.
11828 Provide init_registers () function.
11829 * regformats/regdef.h: Add prototype for set_register_cache ().
11830 Add include guard.
11831
11832 * gdbserver/linux-arm-low.c: New file.
11833 * gdbserver/linux-i386-low.c: New file.
11834 * gdbserver/linux-ia64-low.c: New file.
11835 * gdbserver/linux-m68k-low.c: New file.
11836 * gdbserver/linux-mips-low.c: New file.
11837 * gdbserver/linux-ppc-low.c: New file.
11838 * gdbserver/linux-sh-low.c: New file.
11839
11840 * gdbserver/regcache.c: New file.
11841 * gdbserver/regcache.h: New file.
11842
11843 * gdbserver/low-linux.c: Removed obsolete file.
11844
11845 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11846
11847 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11848 * config/i386/linux.mt: Likewise.
11849 * config/ia64/linux.mt: Likewise.
11850 * config/m68k/linux.mh: Likewise.
11851 * config/powerpc/linux.mh: Likewise.
11852 * config/mips/linux.mt: Likewise.
11853
11854 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11855
11856 * config/i386/i386lynx.mh: Mark gdbserver variables
11857 as (currently) obsolete for this target.
11858 * config/i386/nbsd.mt: Likewise.
11859 * config/i386/nbsdelf.mt: Likewise.
11860 * config/m32r/m32r.mt: Likewise.
11861 * config/m68k/m68klynx.mh: Likewise.
11862 * config/m68k/nbsd.mt: Likewise.
11863 * config/m68k/sun3os4.mh: Likewise.
11864 * config/mips/vr5000.mt: Likewise.
11865 * config/ns32k/nbsd.mt: Likewise.
11866 * config/pa/hppabsd.mh: Likewise.
11867 * config/pa/hppaosf.mh: Likewise.
11868 * config/powerpc/nbsd.mt: Likewise.
11869 * config/rs6000/rs6000lynx.mh: Likewise.
11870 * config/s390/s390.mt: Likewise.
11871 * config/s390/s390x.mt: Likewise.
11872 * config/sparc/sparclynx.mh: Likewise.
11873 * config/sparc/sun4os4.mh: Likewise.
11874 * config/i386/x86-64linux.mt: Likewise.
11875 * config/sparc/linux.mh: Likewise.
11876
11877 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11878
11879 * configure.tgt: Configure gdbserver only for known working
11880 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11881 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11882 SUBDIRS if it is configured. Update comment for ${nativefile}.
11883 * configure: Regenerated.
11884
11885 2002-02-13 Michael Snyder <msnyder@redhat.com>
11886
11887 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11888
11889 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11890 (default_gcore_mach): Just return 0, work around a problem in bfd.
11891 (default_gcore_target): OK to return NULL if exec_bfd is null.
11892 (make_mem_sec): Use a cast, avoid a warning.
11893
11894 * procfs.c (find_memory_regions_callback): Use a cast instead of
11895 calling host_pointer_to_address (which complains if
11896 sizeof (host pointer) != sizeof (target pointer)).
11897 (procfs_make_note_section): Avoid overflow in psargs string.
11898
11899 * procfs.c (procfs_make_note_section): Make the default
11900 implementation return an error.
11901
11902 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11903
11904 * procfs.c (procfs_make_note_section): Provide a default definition
11905 (for alpha-dec-osf4.0f). Fix typos.
11906
11907 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11908
11909 * linux-proc.c: Add include of regcache.h.
11910 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11911
11912 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11913
11914 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11915 * memattr.c (create_mem_region): Disallow useless empty region.
11916 Regions are half-open intervals, so allow [A..B) [B..C) as
11917 non-overlapping.
11918
11919 2002-02-13 Michael Chastain <mec@shout.net>
11920
11921 * defs.h: Kill CONST_PTR.
11922 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11923 * c-lang.c (c_builtin_types): Likewise.
11924 * ch-lang.c (ch_builtin_types): Likewise.
11925 * f-lang.c (f_builtin_types): Likewise.
11926 * language.c (unknown_builtin_types): Likewise.
11927 * m2-lang.c (m2_builtin_types): Likewise.
11928 * p-lang.c (pascal_builtin_types): Likewise.
11929 * scm-lang.c (c_builtin_types): Likewise.
11930
11931 2002-02-13 Keith Seitz <keiths@redhat.com>
11932
11933 * arm-tdep.h (arm_get_next_pc): Add declaration.
11934
11935 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11936
11937 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11938 with other related struct-returning functions.
11939 (arm_extract_struct_value_address): New function.
11940 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11941 initialize float_format, double_format and long_double_format as
11942 appropriate to the endianness of the target.
11943 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11944 (arm_use_struct_convention): Delete declaration.
11945 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11946
11947 2002-02-13 Keith Seitz <keiths@redhat.com>
11948
11949 * defs.h (core_addr_to_string_nz): New function.
11950
11951 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11952
11953 Apply missing bits of 2002-01-15 patch.
11954 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11955 (fill_fpregset): Use i387_fill_fsave.
11956
11957 2002-02-12 Keith Seitz <keiths@redhat.com>
11958
11959 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11960 (core_addr_to_string_nz): New function.
11961
11962 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11963
11964 * arm-linux-nat.c: Really include arm-tdep.h.
11965 * config/arm/tm-linux.h (struct type, struct value): Declare.
11966
11967 2002-02-11 Michael Snyder <msnyder@redhat.com>
11968
11969 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11970 (gcore section): Ifdef for Solaris and Unixware only.
11971 (procfs_do_thread_registers): Unixware needs one lwpstatus
11972 per thread (not one prstatus or pstatus).
11973 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11974 not over all gdb threads. For unixware, call elfcore_write_pstatus
11975 once before iterating over threads.
11976
11977 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11978
11979 * arm-tdep.h: New file.
11980 * arm-tdep.c: Include arm-tdep.h.
11981 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11982 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11983 (arm_print_float_info, arm_register_type, convert_to_extended)
11984 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11985 (arm_extract_return_value, arm_register_name): Make static.
11986 (arm_software_single_step): Similarly. Fix types in declaration.
11987 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11988 (arm_store_return_value, arm_store_struct_return): New functions.
11989 (arm_gdbarch_init): Register the above functions. Also register
11990 call_dummy_start_offset, sizeof_call_dummy_words,
11991 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11992 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11993 max_register_virtual_size, register_size. Set up
11994 prologue_cache.saved_regs here, rather than ...
11995 (_initialize_arm_tdep): ... here.
11996 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11997 declarations.
11998 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11999 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12000 (arm_print_float_info, arm_register_type, convert_to_extended)
12001 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12002 (arm_extract_return_value, arm_register_name): Delete declarations.
12003 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12004 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12005 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12006 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12007 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12008 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12009 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12010 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12011 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12012 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12013 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12014 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12015 interface.
12016 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12017 * remote-rdi.c remote-rdp.c: Likewise.
12018 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12019 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12020 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12021 definition.
12022
12023 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12024 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12025 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12026 from non-ARM_ prefixed definitions.
12027 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12028 all uses of above.
12029 * remote-rdi.c remote-rdp.c: Likewise.
12030 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12031
12032 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12033
12034 * arm-tdep.c (arm_frameless_function_invocation)
12035 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12036 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12037 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12038 (arm_pop_frame, arm_get_next_pc): Make static.
12039 (arm_gdbarch_init): Register above in gdbarch structure.
12040 (arm_read_fp): Renamed from arm_target_read_fp.
12041 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12042 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12043 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12044 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12045 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12046 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12047 (arm_pc_is_thumb_dummy): Delete declarations.
12048 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12049 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12050 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12051 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12052
12053 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12054
12055 * symtab.c (compare_search_syms): New function.
12056 (sort_search_symbols): New function.
12057 (search_symbols): Sort symbols after searching rather than
12058 before.
12059
12060 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12061
12062 * NEWS: Linux -> GNU/Linux.
12063
12064 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12065
12066 * gdbarch.sh: For for level one methods, disallow a definition
12067 when partially multi-arched. Add comments explaining rationale.
12068 * gdbarch.h: Re-generate.
12069
12070 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12071
12072 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12073 multi-arch partial.
12074
12075 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12076
12077 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12078 field. Use diff -u.
12079 * gdbarch.c: Re-generate.
12080
12081 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12082
12083 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12084 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12085 partial.
12086
12087 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12088
12089 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12090 multi-arch partial.
12091 (PUSH_ARGUMENTS): Switch to using predefault.
12092 * gdbarch.c: Regenerate.
12093
12094 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12095
12096 * valops.c (PUSH_ARGUMENTS): Delete definition.
12097 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12098 partial. Default to default_push_arguments.
12099 * gdbarch.h, gdbarch.c: Regenerate.
12100
12101 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12102
12103 * defs.h (throw_exception): Rename return_to_top_level. Update
12104 comments.
12105 * utils.c (error_stream, internal_verror, quit): Ditto.
12106 * top.c (throw_exception, catcher): Ditto.
12107 * sparclet-rom.c (sparclet_load): Ditto.
12108 * remote.c (interrupt_query, minitelnet): Ditto.
12109 * remote-sds.c (interrupt_query): Ditto.
12110 * remote-mips.c (mips_error, mips_kill): Ditto.
12111 * ocd.c (interrupt_query): Ditto.
12112 * monitor.c (monitor_interrupt_query): Ditto.
12113 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12114 * target.h: Update comment.
12115
12116 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12117
12118 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12119
12120 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12121 default_double_format.
12122 * gdbarch.h, gdbarch.c: Re-generate.
12123 * findvar.c (floatformat_unknown): Delete variable definition.
12124 * doublest.h (floatformat_unknown): Delete variable declaration.
12125
12126 2002-02-09 Jim Blandy <jimb@redhat.com>
12127
12128 * stabsread.c (read_type): Add code to parse Sun's syntax for
12129 prototyped function types.
12130
12131 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12132
12133 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12134 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12135
12136 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12137
12138 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12139 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12140 now _initialize_xcoffsolib gets called again and overrides the
12141 commands from solib.c in a native configuration.
12142
12143 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12144
12145 * doublest.c (store_typed_floating): Don't try to return a value.
12146 Fixes PR gdb/290.
12147
12148 2002-02-08 Jim Blandy <jimb@redhat.com>
12149
12150 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12151 is prototyped and has no arguments, print its argument list as
12152 `(void)'.
12153
12154 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12155
12156 * MAINTAINERS (write-after-approval): Add myself.
12157 (paper-trail): I've escaped!
12158
12159 2002-02-08 Christopher Faylor <cgf@redhat.com>
12160
12161 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12162 changes.
12163 (_initialize_check_for_gdb_ini): Ditto.
12164
12165 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12166
12167 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12168 xaprintf -> xasprintf.
12169
12170 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12171
12172 * win32-nat.c: Remove use of printf and sprintf functions.
12173
12174 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12175
12176 * arm-tdep.c (arm_frame_chain_valid): Make static.
12177 (arm_push_arguments): Likewise.
12178 (arm_gdbarch_init): New function.
12179 (_initialize_arm_tdep): Call it.
12180 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12181 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12182 (FRAME_CHAIN_VALID): Delete.
12183 (arm_frame_chain_valid): Delete declaration.
12184 (PUSH_ARGUMENTS): Delete.
12185 (arm_push_arguments): Delete declaration.
12186 (CALL_DUMMY_P): Delete.
12187
12188 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12189 Corinna Vinschen <vinschen@redhat.com>
12190
12191 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12192 on builtin float types.
12193
12194 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * utils.c: Include <curses.h> before "bfd.h".
12197 * tui/tui-hooks.c: Likewise.
12198 * tui/tui.c: Likewise.
12199 * tui/tuiCommand.c: Likewise.
12200 * tui/tuiData.c: Likewise.
12201 * tui/tuiDataWin.c: Likewise.
12202 * tui/tuiDisassem.c: Likewise.
12203 * tui/tuiGeneralWin.c: Likewise.
12204 * tui/tuiIO.c: Likewise.
12205 * tui/tuiLayout.c: Likewise.
12206 * tui/tuiRegs.c: Likewise.
12207 * tui/tuiSource.c: Likewise.
12208 * tui/tuiSourceWin.c: Likewise.
12209 * tui/tuiStack.c: Likewise.
12210 * tui/tuiWin.c: Likewise.
12211
12212 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12213
12214 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12215 to include space for pseudoregs as well. Update loops accordingly.
12216 (sh_fp_frame_init_saved_regs): Ditto.
12217 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12218
12219 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12220
12221 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12222 Add Richard Earnshaw to Arm maintainers.
12223
12224 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12225
12226 * defs.h (warning_begin): Delete declaration.
12227
12228 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12229 Delete macro.
12230
12231 2002-02-07 Michael Snyder <msnyder@redhat.com>
12232
12233 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12234 Logic bug, remove misplaced else.
12235
12236 2002-02-07 Klee Dienes <klee@apple.com>
12237
12238 * fork-inferior.c (fork_inferior): Add '!' to the list of
12239 characters that need to be quoted when building a string for the
12240 shell. Quote '!' specifically with a backslash, since CSH chokes
12241 when trying to evaluate "str!str".
12242
12243 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12244
12245 * rdi-share/host.h: Only provide a typedef for bool if it is not
12246 defined.
12247
12248 2002-02-04 Michael Snyder <msnyder@redhat.com>
12249
12250 * breakpoint.h (enum bptype): Add new overlay event bp type.
12251 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12252
12253 * breakpoint.c (create_internal_breakpoint): New function.
12254 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12255 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12256 (create_thread_event_breakpoint): Ditto.
12257 (create_solib_event_breakpoint): Ditto.
12258 (create_overlay_event_breakpoint): New function.
12259 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12260 (update_breakpoints_after_exec): Delete and re-initialize
12261 overlay event breakpoints after an exec. Add FIXME comment
12262 about longjmp breakpoint.
12263 (print_it_typical): Ignore overlay event breakpoints.
12264 (print_one_breakpoint): Ditto.
12265 (mention): Ditto.
12266 (bpstat_what): Do not stop for overlay event breakpoints.
12267 (delete_breakpoint): Don't delete overlay event breakpoints.
12268 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12269 (breakpoint_re_set): Re-create overlay event breakpoint.
12270
12271 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12272 (overlay_manual_command): Disable overlay breakpoints.
12273 (overlay_off_command): Disable overlay breakpoints.
12274
12275 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12276
12277 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12278 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12279 to here from config/tm-arm.h.
12280 (coff_sym_is_thumb): Make static.
12281 (arm_elf_make_msymbol_special): New function.
12282 (arm_coff_make_msymbol_special): New function.
12283 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12284 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12285 (coff_sym_is_thumb): Delete declaration.
12286 (arm_elf_make_msymbol_special): Declare.
12287 (arm_coff_make_msymbol_special): Declare.
12288 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12289 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12290
12291 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12292
12293 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12294
12295 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12296
12297 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12298 * gdbarch.c gdbarch.h: Regenerate.
12299 * arch-utils.c (default_print_float_info): New function.
12300 * arch-utils.h (default_print_float_info): Prototype it.
12301 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12302 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12303 (PRINT_FLOAT_INFO): Document it.
12304
12305 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12306 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12307 (PRINT_FLOAT_INFO): Define.
12308
12309 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12310
12311 * win32-nat.c (_initialize_check_for_gdb_ini):
12312 Add typecast to sprintf argument to suppress a warning.
12313
12314 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12315
12316 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12317 to allow easier handling of pass state.
12318 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12319 that gives exception name and address.
12320 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12321 and set last_sig value to ourstatus->value.sig. Some missing
12322 exceptions added.
12323 (child_continue): Correctly report continue_status.
12324 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12325 TARGET_SIGNAL_0 (new default value).
12326 (child_resume): consider sig argument passed to decide if
12327 the exception should be passed to debuggee or not.
12328
12329 2002-02-05 Michael Snyder <msnyder@redhat.com>
12330
12331 * regcache.c (fetch_register): Call target_fetch_register
12332 only if we don't call FETCH_PSEUDO_REGISTER.
12333 (store_register): Call target_store_register only if we
12334 don't call STORE_PSEUDO_REGISTER.
12335
12336 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12337
12338 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12339 ELF_MAKE_MSYMBOL_SPECIAL.
12340 * gdbarch.c, gdbarch.h: Regenerate.
12341 * arch-utils.c (default_make_msymbol_special): New function.
12342 * arch-utils.h (default_make_msymbol_special): Export.
12343 * elfread.c (elf_symtab_read): Compile use of
12344 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12345 multiarched.
12346 * coffread.c (coff_symtab_read): Ditto, for
12347 COFF_MAKE_MSYMBOL_SPECIAL.
12348
12349 2002-02-05 Jim Blandy <jimb@redhat.com>
12350
12351 * solib-svr4.c (svr4_truncate_ptr): New function.
12352 (svr4_relocate_section_addresses): Do the address arithmetic with
12353 the appropriate truncation for target addresses, even when
12354 CORE_ADDR is larger than a target address.
12355
12356 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12357
12358 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12359 to (int *).
12360
12361 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12364 code.
12365
12366 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12367
12368 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12369
12370 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12371
12372 * gdbserver/linux-low.c: Remove unused include files.
12373
12374 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12375
12376 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12377 (read_inferior_memory): Use it.
12378 (write_inferior_memory): Likewise.
12379
12380 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12381
12382 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12383 grubbing through sys_errlist.
12384
12385 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12386
12387 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12388
12389 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12390 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12391
12392 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12393
12394 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12395 (do_sfunc, set_cmd_sfunc): New functions.
12396
12397 * command.h (struct cmd_list_element): Add field func.
12398 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12399 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12400 * cli/cli-decode.h: Ditto.
12401
12402 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12403 (help_all, help_cmd_list): Ditto.
12404 (find_cmd, complete_on_cmdlist): Ditto.
12405 * top.c (execute_command): Ditto.
12406
12407 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12408 function.sfunc.
12409
12410 * infcmd.c (notice_args_read): Fix function signature.
12411
12412 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12413 * cli/cli-decode.c (add_set_cmd): Ditto.
12414 * utils.c (initialize_utils): Ditto.
12415 * maint.c (_initialize_maint_cmds): Ditto.
12416 * infrun.c (_initialize_infrun): Ditto.
12417 * demangle.c (_initialize_demangler): Ditto.
12418 * remote.c (add_packet_config_cmd): Ditto.
12419 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12420 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12421 * proc-api.c (_initialize_proc_api): Ditto.
12422 * kod.c (_initialize_kod): Ditto.
12423 * valprint.c (_initialize_valprint): Ditto.
12424 * top.c (init_main): Ditto.
12425 * infcmd.c (_initialize_infcmd): Ditto.
12426 * corefile.c (_initialize_core): Ditto.
12427 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12428 * arch-utils.c (initialize_current_architecture): Ditto.
12429 (_initialize_gdbarch_utils): Ditto.
12430 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12431
12432 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12433 * wince.c (_initialize_inftarg): Ditto.
12434 * symfile.c (_initialize_symfile): Ditto.
12435 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12436 * language.c (_initialize_language): Ditto.
12437 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12438
12439 2002-02-04 Michael Snyder <msnyder@redhat.com>
12440
12441 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12442
12443 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12446 Add rules for building the register data files.
12447
12448 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12449
12450 * regformats/regdat.sh: Add braces to the definition of
12451 expedite_regs_${arch}.
12452
12453 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12454
12455 * regformats/regdef.h (struct reg): Add comment describing the
12456 requirements for offset and size fields.
12457
12458 2002-02-04 Andreas Schwab <schwab@suse.de>
12459
12460 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12461 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12462
12463 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12464
12465 * gdbarch.sh (copyright): Update years in generated header.
12466 (SMASH_TEXT_ADDRESS): Add rule.
12467 * gdbarch.h, gdbarch.c: Re-generate.
12468 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12469 * dbxread.c: Likewise.
12470 * dwarfread.c: Likewise.
12471 * elfread.c: Likewise.
12472 * somread.c: Likewise.
12473
12474 * arm-tdep.c (arm_smash_text_address): New function.
12475 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12476
12477 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12478
12479 Add support for hardware watchpoints on win32 native.
12480 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12481 CONTEXT_DEBUG_REGISTERS.
12482 (dr variable): New variable. Static array containing a local copy
12483 of debug registers.
12484 (debug_registers_changed): New variable. Reflects when debug registers
12485 are changed and need to be written to inferior.
12486 (debug_registers_used): New variable. Reflects when any debug register
12487 was set, used when new threads are created.
12488 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12489 i386-nat code.
12490 (thread_rec): Set dr array if id is the thread of current_event .
12491 (child_continue, child_resume): Change the debug registers for all
12492 threads if debug_registers_changed.
12493 (child_add_thread): Change the debug registers if debug_registers_used.
12494 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12495 Link nm.h to new nm-cygwin.h file.
12496 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12497 of hardware registers.
12498
12499 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12500
12501 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12502 Restore behavour broken by 2002-01-20 Andrew Cagney
12503 <ac131313@redhat.com> IEEE_FLOAT removal.
12504
12505 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12506
12507 * c-valprint.c (c_val_print): Pass a proper valaddr to
12508 cp_print_class_method.
12509 * valops.c (search_struct_method): If there is only one method
12510 and args is NULL, return that method.
12511
12512 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12513
12514 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12515 accessing tag_name directly.
12516
12517 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12518
12519 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12520 of accessing tag_name directly.
12521
12522 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12523
12524 PR gdb/280
12525 * gdbtypes.c (replace_type): New function.
12526 * gdbtypes.h (replace_type): Add prototype.
12527 * stabsread.c (read_type): Use replace_type.
12528
12529 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12530
12531 * Makefile.in (memattr.o): Add missing dependencies rule.
12532
12533 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12534
12535 * breakpoint.c (break_at_finish_command): Really export.
12536 (break_at_finish_at_depth_command): Ditto.
12537 (tbreak_at_finish_command): Ditto.
12538 * hppa-tdep.c: Include completer.h.
12539 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12540 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12541
12542 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12543
12544 * utils.c (do_write): New function.
12545 (error_stream): Rewrite combining the code from error_begin and
12546 verror.
12547 (verror): Rewrite using error_stream.
12548 (error_begin): Delete function.
12549
12550 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12551
12552 * utils.c (error_begin): Make static.
12553 * defs.h (error_begin): Delete declaration.
12554
12555 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12556 (decode_line_1): Use cplusplus_error instead of error_begin,
12557 cplusplus_hint and return_to_top_level.
12558 * coffread.c (coff_symfile_read): Use error instead of error_begin
12559 and return_to_top_level.
12560 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12561
12562 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12563
12564 * language.h (type_error, range_error): Make string parameter
12565 constant.
12566 * language.c (warning_pre_print): Delete extern declaration.
12567 * dwarfread.c (warning_pre_print): Ditto.
12568 * language.c (type_error, range_error): Rewrite to use verror and
12569 vwarning instead of warning_begin.
12570
12571 2002-02-01 Michael Snyder <msnyder@redhat.com>
12572
12573 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12574 (set_ignore_count): Move misplaced comment back where it belongs.
12575
12576 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12577
12578 * command.h (NO_FUNCTION): Delete macro.
12579 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12580 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12581 * tracepoint.c (_initialize_tracepoint): Ditto.
12582 * cli/cli-decode.c (add_set_cmd): Ditto.
12583 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12584
12585 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12586
12587 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12588 Update ``this'' pointer when calling virtual functions.
12589
12590 2002-02-01 Michael Snyder <msnyder@redhat.com>
12591
12592 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12593 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12594
12595 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12596
12597 * regformats/reg-arm.dat: New file.
12598 * regformats/reg-i386.dat: New file.
12599 * regformats/reg-ia64.dat: New file.
12600 * regformats/reg-m68k.dat: New file.
12601 * regformats/reg-mips.dat: New file.
12602 * regformats/reg-ppc.dat: New file.
12603 * regformats/reg-sh.dat: New file.
12604 * regformats/regdef.h: New file.
12605 * regformats/regdat.sh: New file.
12606
12607 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12608
12609 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12610 (arm_frame_args_address, arm_frame_locals_address): New functions.
12611 (arm_frame_num_args): New function.
12612 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12613 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12614 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12615
12616 2002-01-31 Michael Snyder <msnyder@redhat.com>
12617
12618 * breakpoint.c (break_at_finish_command): Export.
12619 (break_at_finish_at_depth_command): Export.
12620 (tbreak_at_finish_command): Export.
12621 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12622 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12623 "txbreak" commands, which are HPPA specific.
12624
12625 * printcmd.c (disassemble_command): Remove an ancient
12626 artifact of an old merge.
12627
12628 * symfile.h (enum overlay_debugging_state):
12629 Define enum constant values for overlay mode.
12630 * symfile.c (overlay_debugging): Use enums instead of literals.
12631 (overlay_is_mapped, overlay_auto_command,
12632 overlay_manual_command): Ditto.
12633
12634 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12635 breakpoint_here_p, breakpoint_inserted_here_p,
12636 breakpoint_thread_match, bpstat_stop_status,
12637 describe_other_breakpoints, check_duplicates, clear_command):
12638 Coding standard fixes.
12639
12640 * target.c (target_xfer_memory): Add spaces, coding standard.
12641 (do_xfer_memory): Add missing line to trust-readonly
12642 code: check bfd SEC_READONLY flag for section.
12643
12644 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12645
12646 * PROBLEMS: Fix typo, 5.1->5.1.1.
12647
12648 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12649
12650 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12651 data symbols, since we search based on textlow and texthigh.
12652 (find_pc_sect_symtab): Likewise.
12653
12654 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12655
12656 * defs.h (vwarning): Declare.
12657 * utils.c (vwarning): New function.
12658 (warning): Call vwarning.
12659 (warning_begin): Delete function.
12660
12661 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12662 the warning message.
12663 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12664 warning_begin.
12665
12666 2002-01-30 Michael Snyder <msnyder@redhat.com>
12667
12668 * NEWS: Mention "set trust-readonly-sections" command.
12669 Mention generate-core-file command.
12670
12671 2002-01-15 Michael Snyder <msnyder@redhat.com>
12672
12673 * target.c: New command, "set trust-readonly-sections on".
12674 (do_xfer_memory): Honor the suggestion to trust readonly sections
12675 by reading them from the object file instead of from the target.
12676 (initialize_targets): Register command "set trust-readonly-sections".
12677
12678 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12679
12680 * parse.c (target_map_name_to_register): Simplify, search regs and
12681 pseudo-regs using a single loop.
12682
12683 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12684
12685 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12686
12687 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12688
12689 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12690 * config/i386/i386v42mp.mh: Add i387-nat.o .
12691 * i386v4-nat.c: Include i387-nat.h.
12692 (supply_fpregset): Use i387_supply_fsave.
12693 (fill_fpregset): Use i387_fill_fsave.
12694
12695 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12696
12697 * arm-tdep.c (arm_call_dummy_words): Define.
12698 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12699 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12700 (CALL_DUMMY_WORDS): Define.
12701 (arm_call_dummy_words): Declare.
12702 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12703 (arm_linux_call_dummy_words): Declare.
12704
12705 2002-01-30 Andreas Schwab <schwab@suse.de>
12706
12707 * m68klinux-nat.c: Fix last change to use regcache_collect
12708 instead of referencing registers[] directly.
12709
12710 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12711
12712 * parse.c (target_map_name_to_register): Delete code wrapped in
12713 #ifdef REGISTER_NAME_ALIAS_HOOK.
12714
12715 2002-01-28 Michael Snyder <msnyder@redhat.com>
12716
12717 * regcache.c (legacy_read_register_gen): Need to be able to
12718 read pseudo-register as well as real register.
12719 (legacy_write_register_gen): Ditto.
12720
12721 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12722
12723 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12724 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12725 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12726 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12727 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12728 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12729 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12730 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12731 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12732 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12733 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12734 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12735 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12736 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12737 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12738 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12739 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12740 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12741 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12742 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12743
12744 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12745
12746 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12747 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12748 (initialize_current_architecture): Update target_byte_order using
12749 information from BFD.
12750 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12751 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12752
12753 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12754
12755 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12756 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12757
12758 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12759 #ifdef INVALID_FLOAT.
12760 * infcmd.c (do_registers_info): Ditto.
12761 * values.c (unpack_double): Ditto. Add comment.
12762
12763 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12764 already commented out.
12765
12766 2002-01-26 Andreas Schwab <schwab@suse.de>
12767
12768 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12769 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12770 registers and add support for PTRACE_GETREGS.
12771
12772 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12773
12774 GDB 5.1.1 released from 5.1 branch.
12775 * NEWS: Add 5.1.1 news.
12776 * README: Sync with 5.1 branch.
12777
12778 2002-01-23 Fred Fish <fnf@redhat.com>
12779
12780 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12781 stabstring on initial malloc. Reallocing will copy it for us,
12782 if necessary.
12783
12784 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12785
12786 * Makefile.in (hpread_h): Delete.
12787 (HFILES_NO_SRCDIR): Remove hpread.h.
12788 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12789 (hpread.o): Update dependencies.
12790 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12791
12792 * hp-psymtab-read.c: Remove file.
12793 * hp-symtab-read.c: Remove file.
12794 * hpread.h: Remove file.
12795
12796 * hpread.c: Merge all contents of hp-psymtab-read.c,
12797 hp-symtab-read.c and hpread.h into this file, as it was prior to
12798 January 1999.
12799
12800 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12801 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12802 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12803 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12804
12805 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12806
12807 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12808 fill_gregset): Call gdbarch_tdep() just once, assign result to
12809 variable and use that, instead of calling the function several
12810 times.
12811
12812 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12813
12814 * configure.host: Accept sparcv9 as alias for sparc64.
12815 * configure.tgt: Likewise.
12816
12817 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12818
12819 * solib-aix5.c (build_so_list_from_mapfile)
12820 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12821 arguments is not reversed.
12822 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12823 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12824
12825 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12826
12827 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12828 modified version of obsolete sh_fetch_pseudo_register.
12829 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12830 (sh4_register_read): New function.
12831 (sh_pseudo_register_write): New function. Renamed and modified
12832 version of obsolete sh_store_pseudo_register.
12833 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12834 (sh4_register_write): New function.
12835 (sh_gdbarch_init): Remove setting of gdbarch function
12836 fetch_pseudo_register and store_pseudo_register. Remove setting of
12837 register_convert_to_raw, register_convert_to_virtual,
12838 register_convertible.
12839 (sh_sh4_register_convertible): Delete. No longer needed. All is
12840 taken care by architecture specific functions
12841 register_read/register_write.
12842 (sh_sh4_register_convert_to_virtual): Make static.
12843 (sh_sh4_register_convert_to_raw): Ditto.
12844
12845 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12846
12847 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12848 (floatformat_is_nan, floatformat_mantissa): Ditto.
12849
12850 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12851 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12852 builtin_type_ieee_double_little,
12853 builtin_type_ieee_double_littlebyte_bigword,
12854 builtin_type_m68881_ext, builtin_type_i960_ext,
12855 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12856 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12857 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12858 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12859
12860 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12861
12862 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12863 parameter. Set frameless flag if it exists and depended of
12864 whether the scanned function is frameless or not.
12865 (xstormy16_skip_prologue): If function is frameless, return
12866 result of xstormy16_scan_prologue().
12867 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12868 call.
12869
12870 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12871
12872 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12873 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12874 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12875 sh_sh4_register_byte, sh_sh4_register_raw_size,
12876 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12877 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12878 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12879 sh_store_pseudo_register, sh_do_pseudo_register): Call
12880 gdbarch_tdep() just once, assign result to variable and use that,
12881 instead of calling the function several times.
12882
12883 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12884
12885 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12886 macros instead of LAST_FPU_CTRL_REGNUM.
12887 (store_register): Likewise.
12888
12889 2002-01-21 Jim Blandy <jimb@redhat.com>
12890
12891 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12892 is up-to-date before running the program, not just when a program
12893 exits.
12894
12895 2002-01-21 Fred Fish <fnf@redhat.com>
12896
12897 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12898 when we have found all instructions we are looking for.
12899
12900 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12901
12902 * arm-tdep.c (arm_register_name): New function.
12903 (arm_registers_names): Make static.
12904 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12905 (arm_register_name): Declare.
12906 (REGISTER_NAME): Use it.
12907
12908 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12909 Kevin Buettner <kevinb@redhat.com>
12910
12911 Convert arm targets to new FRAME interface.
12912 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12913 (arm_frame_find_save_regs): Delete.
12914 (arm_frame_init_saved_regs): New.
12915 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12916 Allocate extra_info as required. Convert all uses of fsr.regs
12917 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12918 to use extra_info.
12919 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12920 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12921 (check_prologue_cache, save_prologue_cache): Likewise.
12922 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12923 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12924 (FRAME_FIND_SAVED_REGS): Delete.
12925 (arm_frame_find_saved_regs): Delete prototype.
12926 (arm_frame_init_saved_regs): New prototype.
12927 (FRAME_INIT_SAVED_REGS): Define.
12928
12929 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12930
12931 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12932
12933 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12934
12935 From Jeff Law <law@redhat.com>:
12936 * infttrace.c: Include <sys/pstat.h>.
12937 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12938 exec file if the ttrace equivalent fails.
12939
12940 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12941
12942 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12943 (closeLogFile): Ditto.
12944
12945 2002-01-20 Michael Chastain <mec@shout.net>
12946
12947 * top.c (print_gdb_version): Bump copyright year to 2002.
12948
12949 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12950
12951 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12952 Zannoni and Eli Zaretskii.
12953
12954 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12955
12956 * buildsym.c: Update copyright years.
12957 * c-typeprint.c: Likewise.
12958 * dwarf2read.c: Likewise.
12959 * f-typeprint.c: Likewise.
12960 * gdbtypes.c: Likewise.
12961 * gdbtypes.h: Likewise.
12962 * hp-symtab-read.c: Likewise.
12963 * hpread.c: Likewise.
12964 * mdebugread.c: Likewise.
12965 * p-typeprint.c: Likewise.
12966
12967 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12968
12969 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12970 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12971 byte-order selectable.
12972 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12973 * arch-utils.c: Ditto.
12974 (set_endian): Ditto.
12975 (set_endian_from_file): Ditto.
12976 * gdbserver/low-sim.c (create_inferior): Ditto.
12977 * gdbarch.sh: Ditto.
12978 * gdbarch.h: Re-generate.
12979 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12980 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12981 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12982 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12983 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12984 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12985 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12986 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12987 macro definition.
12988 * config/mips/tm-wince.h: Remove #undef of macro
12989 TARGET_BYTE_ORDER_SELECTABLE.
12990 * config/sh/tm-wince.h: Ditto.
12991
12992 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12993
12994 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12995 member function fields. Add accessor macro
12996 TYPE_FN_FIELD_ARTIFICIAL.
12997 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12998 * c-typeprint.c (c_type_print_base): Skip artificial member
12999 functions.
13000
13001 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13002
13003 * f-typeprint.c: Delete unused function f_type_print_args.
13004 * p-typeprint.c: Delete unused function pascal_type_print_args.
13005
13006 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13007
13008 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13009 comment. Add ``artificial'' to ``union field_location''.
13010
13011 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13012
13013 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13014 * mdebugread.c (parse_symbol): Likewise.
13015 * stabsread.c (define_symbol): Likewise.
13016 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13017 initializing TYPE_FIELD_BITPOS to n (obsolete).
13018 (hpread_doc_function_type): Likewise.
13019 * hpread.c (hpread_function_type): Likewise.
13020
13021 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13022
13023 * configure.in (host_makefile_frag): Only require a host makefile
13024 fragment when a native build.
13025 * configure: Re-generate.
13026
13027 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13028
13029 * doublest.h (floatformat_from_type): Declare.
13030 * doublest.c (floatformat_from_type): New function.
13031 (convert_typed_floating): Use.
13032
13033 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13034 call to function floatformat_from_type.
13035
13036 * gdbarch.sh (IEEE_FLOAT): Delete.
13037 * gdbarch.h, gdbarch.c: Re-generate.
13038 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13039 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13040 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13041 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13042 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13043 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13044 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13045 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13046 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13047 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13048 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13049 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13050
13051 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13052 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13053 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13054 * sh-tdep.c (sh_gdbarch_init): Ditto.
13055 * mips-tdep.c (mips_gdbarch_init): Ditto.
13056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13057 * cris-tdep.c (cris_gdbarch_init): Ditto.
13058
13059 2002-01-20 Jiri Smid <smid@suse.cz>
13060
13061 * configure.host, configure.tgt: Support x86-64.
13062 * NEWS: Note new target x86-64.
13063
13064 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13065 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13066 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13067 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13068 x86-64-linux-nat.o): Fix dependencies.
13069
13070 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13071
13072 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13073 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13074 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13075 * config/sparc/xm-sun4os4.h: Delete file.
13076 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13077
13078 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13079
13080 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13081 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13082 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13083 * config/i386/i386lynx.mh (XM_FILE): Delete.
13084 * config/rs6000/xm-rs6000ly.h: Delete file.
13085 * config/sparc/xm-sparclynx.h: Delete file.
13086 * config/m68k/xm-m68klynx.h: Delete file.
13087 * config/i386/xm-i386lynx.h: Delete file.
13088 * config/xm-lynx.h: Delete file.
13089 * config/djgpp/fnchange.lst: Update.
13090
13091 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13092
13093 * alpha-tdep.c (alpha_register_byte): New function.
13094 (alpha_register_raw_size): Ditto.
13095 (alpha_register_virtual_size): Ditto.
13096 (alpha_skip_prologue_internal): Renamed from
13097 alpha_skip_prologue.
13098 (alpha_skip_prologue): New version that calls
13099 alpha_skip_prologue_internal.
13100 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13101 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13102 second argument from alpha_skip_prologue.
13103 (REGISTER_BYTE): Use alpha_register_byte.
13104 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13105 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13106 (FRAMELESS_FUNCTION_INVOCATION): Use
13107 generic_frameless_function_invocation_not.
13108 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13109 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13110
13111 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13112
13113 * config/mips/xm-news-mips.h: Delete file.
13114 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13115
13116 * config/m88k/xm-m88k.h: Delete file.
13117 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13118 * config/m88k/xm-delta88v4.h: Ditto.
13119 * config/m88k/xm-delta88.h: Ditto.
13120
13121 * config/alpha/xm-fbsd.h: Delete file.
13122 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13123
13124 * config/sparc/xm-sparc.h: Delete file.
13125 * Makefile.in (xm-sun4os4.h): Delete dependency.
13126 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13127 * config/sparc/xm-sun4os4.h: Ditto.
13128 * config/sparc/xm-linux.h: Ditto.
13129
13130 * config/i386/xm-windows.h: Delete file.
13131
13132 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13133
13134 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13135 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13136
13137 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13138
13139 * alpha-tdep.c (alpha_call_dummy_words): New.
13140 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13141 (CALL_DUMMY_P): Define.
13142 (CALL_DUMMY_WORDS): Define.
13143 (SIZEOF_CALL_DUMMY_WORDS): Define.
13144
13145 2002-01-19 Per Bothner <per@bothner.com>
13146
13147 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13148 isn't NULL, which can happen with some gcj-3.x-produced code.
13149
13150 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13151
13152 * alpha-tdep.c (alpha_register_virtual_type): New function.
13153 (alpha_init_frame_pc_first): Ditto.
13154 (alpha_fix_call_dummy): Ditto.
13155 (alpha_store_struct_return): Ditto.
13156 (alpha_extract_struct_value_address): Ditto.
13157 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13158 alpha_register_virtual_type.
13159 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13160 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13161 alpha_extract_struct_value_address.
13162 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13163 (INIT_FRAME_PC): Use init_frame_pc_noop.
13164 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13165
13166 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13167
13168 * i386gnu-nat.c: Include "i386-tdep.h".
13169 (fetch_fpregs): Simplify code dealing with uninitialized floating
13170 point states such that it doesn't require FP7_REGNUM.
13171
13172 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13173
13174 * alpha-tdep.c (frame_extra_info): New.
13175 (alpha_find_saved_regs): Make static. Use
13176 frame->extra_info.
13177 (alpha_frame_init_saved_regs): New function.
13178 (alpha_frame_saved_pc): Use frame->extra_info.
13179 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13180 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13181 (init_extra_frame_info): Rename to...
13182 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13183 (alpha_print_extra_frame_info): New function.
13184 (alpha_frame_locals_address): Ditto.
13185 (alpha_frame_args_address): Ditto.
13186 (alpha_pop_frame): Use frame->extra_info.
13187 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13188 alpha_frame_args_address.
13189 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13190 (alpha_find_saved_regs): Remove prototype.
13191 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13192 (EXTRA_FRAME_INFO): Remove.
13193 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13194 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13195
13196 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13197
13198 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13199 (alpha_cannot_fetch_register): Ditto.
13200 (alpha_cannot_store_register): Ditto.
13201 (alpha_register_convertible): Ditto.
13202 (alpha_use_struct_convention): Ditto.
13203 * config/alpha/tm-alpha.h: Update copyright years.
13204 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13205 (INNER_THAN): Use core_addr_lessthan.
13206 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13207 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13208 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13209 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13210 (FRAME_CHAIN): Remove unnecessary cast.
13211
13212 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13213
13214 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13215 obsolete.
13216
13217 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13218
13219 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13220 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13221 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13222 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13223 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13224 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13225 * x86-64-linux-nat.c: Ditto.
13226
13227 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13228
13229 * alpha-tdep.c (alpha_register_name): New function.
13230 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13231 (REGISTER_NAME): Define.
13232
13233 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13234
13235 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13236
13237 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13238
13239 * alpha-tdep.c: Update copyright years.
13240 (alpha_next_pc): New function.
13241 (alpha_software_single_step): Ditto.
13242 * config/alpha/tm-alpha.h: Add prototype for
13243 alpha_software_single_step.
13244
13245 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13246
13247 * alphabsd-nat.c: Update copyright years.
13248 (fill_gregset): Use regcache_collect.
13249 (fill_fpregset): Likewise.
13250 (fetch_inferior_registers): Only fetch integer registers
13251 if requested to do so.
13252 (store_inferior_registers): Only store integer registers
13253 if requested to do so.
13254
13255 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13256
13257 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13258 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13259 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13260 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13261 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13262 * config/arm/linux.mh (XDEPFILES): Delete.
13263 * config/arm/nbsd.mh (XDEPFILES): Delete.
13264 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13265 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13266 * config/i386/i386m3.mh (XDEPFILES): Delete.
13267 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13268 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13269 * config/i386/fbsd.mh (XDEPFILES): Delete.
13270 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13271 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13272 * config/i386/i386v4.mh (XDEPFILES): Delete.
13273 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13274 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13275 * config/i386/i386aix.mh (XDEPFILES): Delete.
13276 * config/i386/go32.mh (XDEPFILES): Delete.
13277 * config/i386/cygwin.mh (XDEPFILES): Delete.
13278 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13279 * config/i386/i386mach.mh (XDEPFILES): Delete.
13280 * config/i386/i386v32.mh (XDEPFILES): Delete.
13281 * config/i386/linux.mh (XDEPFILES): Delete.
13282 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13283 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13284 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13285 * config/i386/i386sco.mh (XDEPFILES): Delete.
13286 * config/i386/i386v.mh (XDEPFILES): Delete.
13287 * config/i386/nbsd.mh (XDEPFILES): Delete.
13288 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13289 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13290 * config/i386/symmetry.mh (XDEPFILES): Delete.
13291 * config/i386/obsd.mh (XDEPFILES): Delete.
13292 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13293 * config/ia64/linux.mh (XDEPFILES): Delete.
13294 * config/ia64/aix.mh (XDEPFILES): Delete.
13295 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13296 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13297 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13298 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13299 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13300 * config/m68k/linux.mh (XDEPFILES): Delete.
13301 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13302 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13303 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13304 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13305 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13306 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13307 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13308 * config/m88k/delta88.mh (XDEPFILES): Delete.
13309 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13310 * config/m88k/m88k.mh (XDEPFILES): Delete.
13311 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13312 * config/mips/linux.mh (XDEPFILES): Delete.
13313 * config/mips/irix6.mh (XDEPFILES): Delete.
13314 * config/mips/irix5.mh (XDEPFILES): Delete.
13315 * config/mips/irix4.mh (XDEPFILES): Delete.
13316 * config/mips/irix3.mh (XDEPFILES): Delete.
13317 * config/mips/decstation.mh (XDEPFILES): Delete.
13318 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13319 (NATDEPFILES): Move core-aout.o to here.
13320 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13321 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13322 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13323 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13324 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13325 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13326 * config/pa/hpux11.mh (XDEPFILES): Delete.
13327 * config/powerpc/aix.mh (XDEPFILES): Delete.
13328 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13329 * config/powerpc/linux.mh (XDEPFILES): Delete.
13330 * config/romp/rtbsd.mh: Rename XDEPFILES.
13331 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13332 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13333 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13334 * config/s390/s390.mh (XDEPFILES): Delete.
13335 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13336 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13337 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13338 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13339 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13340 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13341 * config/sparc/linux.mh (XDEPFILES): Delete.
13342 * config/vax/vaxult.mh (XDEPFILES): Delete.
13343 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13344 * Makefile.in (DEPFILES): Remove XDEPFILES.
13345
13346 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13347
13348 * utils.c (internal_verror): Fix comments, default is yes not no.
13349 Update queries to match. Default to quit and dump core.
13350
13351 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13352
13353 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13354 copyright.
13355 * defs.h, event-top.c, gdbcmd.h: Ditto.
13356 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13357 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13358 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13359 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13360 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13361 * mi/mi-main.c:Ditto.
13362
13363 * stack.c, symfile.c: Update copyright.
13364
13365 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13366
13367 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13368 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13369 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13370 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13371
13372 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13373
13374 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13375 * gdbserver/low-lynx.c (myattach): Likewise.
13376 * gdbserver/low-nbsd.c (myattach): Likewise.
13377 * gdbserver/low-sim.c (myattach): Likewise.
13378 * gdbserver/low-sparc.c (myattach): Likewise.
13379 * gdbserver/low-sun3.c (myattach): Likewise.
13380
13381 * gdbserver/low-linux.c (myattach): New function.
13382
13383 * gdbserver/server.c (attach_inferior): New function.
13384 (main): Handle "--attach".
13385
13386 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13387
13388 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13389 maintainer.
13390
13391 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13392
13393 * c-typeprint.c (is_type_conversion_operator): Add additional
13394 check for non-conversion operators.
13395
13396 2002-01-15 Michael Snyder <msnyder@redhat.com>
13397
13398 * linux-proc.c: Add "info proc" command, a la procfs.c.
13399 (read_mapping): New function, abstract and re-use code.
13400 (linux_find_memory_regions): Use new func read_mapping.
13401 (linux_info_proc_cmd): New function, implement "info proc".
13402 (_initialize_linux_proc): Add new command "info proc".
13403
13404 2002-01-15 Michael Snyder <msnyder@redhat.com>
13405
13406 * symfile.c (generic_load): Use bfd_map_over_sections method
13407 instead of manipulating bfd structure members directly.
13408 (add_section_size_callback): New function, bfd sections callback
13409 used by generic_load.
13410 (load_sections_callback): New function, bfd sections callback
13411 used by generic_load.
13412
13413 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13414
13415 [Based on work by Jim Blandy]
13416 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13417 (builtin_type_vec128): Export.
13418 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13419 types.
13420 (builtin_type_vec128): New builtin type for 128 bit vector
13421 registers.
13422 (build_gdbtypes): Initialize builtin_type_v16qi and
13423 builtin_type_v8hi. Create the vec128 register builtin type
13424 structure.
13425 (build_builtin_type_vec128): New function.
13426 (_initialize_gdbtypes): Register builtin_type_v16qi and
13427 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13428 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13429 AltiVec register to new builtin type.
13430
13431 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13432
13433 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13434 to make_cv_type.
13435
13436 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13437
13438 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13439 CLEAN_UP_REGISTER_VALUE.
13440 * regcache.c (supply_register): Update only call.
13441
13442 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13443
13444 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13445 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13446 a29k-*-vxworks* targets as obsolete.
13447
13448 2002-01-14 Michael Snyder <msnyder@redhat.com>
13449
13450 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13451 until we can resolve portability issues.
13452 * gregset.h: Remove references to fpxregs.
13453 * gcore.c (gcore_command): Initialize note_sec to NULL.
13454
13455 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13456
13457 * signals.c (target_signal_to_name): Rewrite. Only use
13458 signals[].name when in bounds and non-NULL.
13459
13460 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13461
13462 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13463 * signals.c (target_signal_to_name): Verify that SIG is within the
13464 bounds of the signals array.
13465
13466 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13467
13468 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13469
13470 2002-01-13 Keith Seitz <keiths@redhat.com>
13471
13472 * stack.c (print_frame_info_base): Print the frame's pc
13473 only if when print_frame_info_listing_hook is not defined.
13474
13475 2002-01-13 Keith Seitz <keiths@redhat.com>
13476
13477 * varobj.c (varobj_set_value): Make sure that there were no
13478 errors evaluating the object before attempting to set its
13479 value.
13480 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13481 so this offset adjustment is no longer necessary.
13482 (create_child): Don't set the error flag if the child is
13483 a CPLUS_FAKE_CHILD.
13484 (value_of_child): If value_fetch_lazy fails, return NULL
13485 so that callers will be notified that an error occurred.
13486 (c_value_of_variable): Delay check of variable's validity
13487 until later. We actually want all structs and unions to have
13488 the value "{...}".
13489 Do not return "???" for variables which could not be evaluated.
13490 This error condition must be returned to the caller so that it
13491 can get the error condition from gdb.
13492 (cplus_name_of_child): Adjust index for vptr before figuring
13493 out the name of the child.
13494 (cplus_value_of_child): If a child's (real) parent is not valid,
13495 don't even bother trying to give a value for it. Just return
13496 an error. Change all instances in this function.
13497 (cplus_type_of_child): If our parent is one of the "fake"
13498 parents, we need to get at the type of the real parent, and
13499 derive the child's true type using this information.
13500
13501 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13502
13503 From 2002-01-09 John Marshall <johnm@falch.net>:
13504 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13505 sources.redhat.com, and tweak some related URLs which had
13506 suffered from linkrot.
13507
13508 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13509
13510 From Jeff law:
13511 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13512 structures passed in registers.
13513
13514 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13515
13516 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13517 white space which prevented compilation. Reported by DSK
13518 <dsk@student.unsw.edu.au>.
13519
13520 2002-01-11 Michael Snyder <msnyder@redhat.com>
13521
13522 * symfile.c (build_section_addr_info_from_section_tab):
13523 Use bfd access method instead of manipulating bfd directly.
13524 (syms_from_objfile): Ditto.
13525 (simple_overlay_update_1): Ditto.
13526 (simple_overlay_update): Ditto.
13527 (generic_load): Ditto.
13528 (overlay_unmapped_address): FIXME comment, bfd access methods.
13529 (sections_overlap): FIXME comment, bfd access methods.
13530 (pc_in_mapped_range): FIXME comment, bfd access methods.
13531 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13532 (section_is_mapped): FIXME comment, bfd access methods.
13533 (section_is_overlay): FIXME comment, bfd access methods.
13534
13535 * symfile.c (generic_load): Whitespace and long line cleanups.
13536 Remove duplicate variable, change several local variables to
13537 more appropriate data types.
13538 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13539
13540 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13541
13542 From Peter Schauer:
13543 * language.c (longest_local_hex_string_custom): Use phex_nz to
13544 convert NUM to a hex string.
13545
13546 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13547
13548 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13549 the function.
13550 Update Copyright year.
13551
13552 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13553
13554 * language.c (longest_raw_hex_string): Delete unused function.
13555
13556 2002-01-11 Petr Sorfa <petrs@caldera.com>
13557
13558 * MAINTAINERS (write-after-approval): Add myself.
13559 * dwarf2read.c (read_tag_string_type): Handling of
13560 DW_AT_byte_size.
13561 (read_tag_string_type): FORTRAN fix to prevent propagation of
13562 first string size.
13563 (set_cu_language): Handling of DW_LANG_Fortran95
13564
13565 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13566
13567 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13568 GETPID(inferior_ptid).
13569 (store_inferior_registers): Likewise.
13570
13571 2002-01-10 Jason Merrill <jason@redhat.com>
13572
13573 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13574 Fix DW_OP_minus.
13575
13576 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13577
13578 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13579 and bfd/elf32-sh-nbsd.c.
13580
13581 2002-01-10 Michael Snyder <msnyder@redhat.com>
13582
13583 * NEWS: Mention --pid and corefile/proc-id behavior change.
13584
13585 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13586 * gcore.c: Include cli/cli-decode.h instead of command.h.
13587
13588 * main.c (captured_main): Add new command line option "--pid".
13589 If the second command line argument (following the symbol-file)
13590 begins with a digit, try to attach to it before trying to open
13591 it as a corefile.
13592 (print_gdb_help): Document the "--pid" argument.
13593
13594 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13595
13596 * completer.c (command_completer): New function.
13597
13598 * completer.h <command_completer>: Add prototype.
13599
13600 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13601 completer for the "help" command.
13602
13603 2002-01-09 Jason Merrill <jason@redhat.com>
13604
13605 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13606
13607 2002-01-09 Michael Snyder <msnyder@redhat.com>
13608
13609 * i386-linux-nat.c (fill_fpxregset): Make global.
13610 (store_fpxregset): Ditto.
13611
13612 * gregset.h (gdb_fpxregset_t): Define.
13613 (supply_fpxregset): Prototype.
13614 (fill_fpxregset): Prototype.
13615
13616 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13617
13618 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13619
13620 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13621 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13622 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13623
13624 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13625
13626 * MAINTAINERS: Update target maintainer rules so that any
13627 Maintainer can approve a tested patch for a maintenance-only
13628 target.
13629
13630 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13631
13632 * MAINTAINERS (write-after-approval): Add myself.
13633
13634 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13635 IN_SIGTRAMP.
13636
13637 2002-01-08 Michael Snyder <msnyder@redhat.com>
13638
13639 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13640 real name of the executable, rather than the /proc name.
13641
13642 2002-01-03 Michael Snyder <msnyder@redhat.com>
13643
13644 Implement a "generate-core-file" command in gdb, save target state.
13645 * gcore.c: New file. Implement new command 'generate-core-file'.
13646 Save a corefile image of the current state of the inferior.
13647 * linux-proc.c: Add linux-specific code for saving corefiles.
13648 * target.h (struct target_ops): Add new target vectors for saving
13649 corefiles; to_find_memory_regions and to_make_corefile_notes.
13650 (target_find_memory_regions): New macro.
13651 (target_make_corefile_notes): New macro.
13652 * target.c (update_current_target): Inherit new target methods.
13653 (dummy_find_memory_regions): New place-holder method.
13654 (dummy_make_corefile_notes): New place-holder method.
13655 (init_dummy_target): Initialize new dummy target vectors.
13656 * exec.c (exec_set_find_memory_regions): New function.
13657 Allow the exec_ops vector for memory regions to be taken over.
13658 (exec_make_note_section): New function, target vector method.
13659 * defs.h (exec_set_find_memory_regions): Export prototype.
13660 * procfs.c (proc_find_memory_regions): New function, corefile method.
13661 (procfs_make_note_section): New function, corefile method.
13662 (init_procfs_ops): Set new target vector pointers.
13663 (find_memory_regions_callback): New function.
13664 (procfs_do_thread_registers): New function.
13665 (procfs_corefile_thread_callback): New function.
13666 * sol-thread.c (sol_find_memory_regions): New function.
13667 (sol_make_note_section): New function.
13668 (init_sol_thread_ops): Initialize new target vectors.
13669 * inftarg.c (inftarg_set_find_memory_regions): New function.
13670 Allow to_find_memory_regions vector to be taken over.
13671 (inftarg_set_make_corefile_notes): New function.
13672 Allow to_make_corefile_notes vector to be taken over.
13673 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13674 interface layer if not target_has_execution (may be a corefile).
13675 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13676 * config/sparc/sun4sol2.mh: Ditto.
13677 * config/alpha/alpha-linux.mh: Ditto.
13678 * config/arm/linux.mh: Ditto.
13679 * config/i386/x86-64linux.mh: Ditto.
13680 * config/ia64/linux.mh: Ditto.
13681 * config/m68k/linux.mh: Ditto.
13682 * config/mips/linux.mh: Ditto.
13683 * config/powerpc/linux.mh: Ditto.
13684 * config/sparc/linux.mh: Ditto.
13685
13686 2002-01-07 Michael Snyder <msnyder@redhat.com>
13687
13688 * arm-linux-nat.c: Remove references to regcache.c internal data
13689 (registers[] and register_valid[]).
13690
13691 2002-01-07 Michael Snyder <msnyder@redhat.com>
13692
13693 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13694 so that attaching to a pid will automatically read the process's
13695 symbol file and shlibs.
13696 * Makefile.in: Add rule for linux-proc.o.
13697 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13698 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13699 * config/arm/linux.mh: Ditto.
13700 * config/i386/linux.mh: Ditto.
13701 * config/i386/x86-64linux.mh: Ditto.
13702 * config/ia64/linux.mh: Ditto.
13703 * config/m68k/linux.mh: Ditto.
13704 * config/mips/linux.mh: Ditto.
13705 * config/powerpc/linux.mh: Ditto.
13706 * config/sparc/linux.mh: Ditto.
13707
13708 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13709
13710 * win32-nat.c: Add i386-tdep.h dependency.
13711
13712 2002-01-07 Michael Snyder <msnyder@redhat.com>
13713
13714 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13715 instead of bfd_get_arch_size. Don't bail out just because
13716 there's no exec_bfd.
13717
13718 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13719 * p-valprint.c (pascal_object_print_value): Ditto.
13720 * somread.c (som_symtab_read): Ditto.
13721 * symfile.c (simple_free_overlay_region_table): Ditto.
13722 * valops.c (value_assign): Ditto.
13723
13724 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13725 use tilde_expand and strerror for opening save-tracepoints file.
13726
13727 * thread-db.c (thread_db_new_objfile): Indendation fix.
13728
13729 * infptrace.c (GDB_MAX_ALLOCA): New define.
13730 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13731 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13732 can be overridden with whatever value is appropriate to the host).
13733 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13734 alloca to allocate potentially large buffer.
13735 * rs6000-nat.c (child_xfer_memory): Ditto.
13736 * symm-nat.c (child_xfer_memory): Ditto.
13737 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13738
13739 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13740
13741 From Nick Clifton <nickc@redhat.com>
13742 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13743
13744 2002-01-07 Michael Snyder <msnyder@redhat.com>
13745
13746 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13747 Don't use exec_bfd if it's NULL.
13748
13749 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13750
13751 * valops.c (value_arg_coerce): Fix formatting.
13752
13753 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13754
13755 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13756 * gnu-nat.c: Ditto.
13757
13758 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13759
13760 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13761 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13762 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13763 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13764 z8k-coff have not been multi-arched. Update z8k-coff build
13765 status.
13766
13767 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13768
13769 * MAINTAINERS: Mark a29k target as obsolete.
13770 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13771 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13772 comments.
13773 * NEWS: Note that a29k targets are obsolete.
13774 * a29k-tdep.c: Mark as obsolete.
13775 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13776 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13777 a29k-*-vxworks* targets as obsolete.
13778 * remote-adapt.c: Obsolete.
13779 * remote-eb.c: Obsolete.
13780 * remote-mm.c: Obsolete.
13781 * remote-udi.c: Obsolete.
13782 * config/a29k/a29k-udi.mt: Obsolete.
13783 * config/a29k/a29k.mt: Obsolete.
13784 * config/a29k/tm-a29k.h: Obsolete.
13785 * config/a29k/tm-vx29k.h: Obsolete.
13786 * config/a29k/vx29k.mt: Obsolete.
13787
13788 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13789
13790 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13791 with BFD_ENDIAN_BIG.
13792
13793 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13794
13795 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13796 * configure, config.in: Re-generate.
13797 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13798 * defs.h: Do not include <endian.h>.
13799
13800 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13801
13802 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13803 * config.in: Regenerate.
13804 * configure.in: Update copyright years.
13805 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13806 * configure: Regenerate.
13807 * i386bsd-nat.c: Update copyright years.
13808 (fill_gregset): Use regcache_collect.
13809 (fetch_inferior_registers): Only fetch integer registers
13810 if requested to do so. Add support for XMM registers
13811 using PT_GETXMMREGS.
13812 (store_inferior_registers): Only store integer registers
13813 if requested to do so. Add support for XMM registers
13814 using PT_SETXMMREGS.
13815 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13816 (store_inferior_registers): Remove.
13817 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13818 (fetch_elfcore_registers): New function.
13819 (i386nbsd_elfcore_fns): New.
13820 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13821 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13822 i386bsd-nat.o.
13823 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13824 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13825 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13826 * config/i386/tm-nbsd.h: Update copyright years.
13827 (HAVE_SSE_REGS): Define.
13828 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13829 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13830 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13831 (SIGCONTEXT_PC_OFFSET): Remove.
13832 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13833
13834 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13835
13836 * configure.tgt: Remove powerpc-*-macos* target.
13837 * config/m68k/xm-mpw.h: Delete file.
13838 * config/xm-mpw.h: Delete file.
13839 * ser-mac.c: Delete file.
13840 * mpw-make.sed: Delete file.
13841 * mpw-config.in: Delete file.
13842 * mac-xdep.c: Delete file.
13843 * mac-gdb.r: Delete file.
13844 * mac-defs.h: Delete file.
13845 * mac-nat.c: Delete file.
13846 * config/powerpc/macos.mh: Delete file.
13847 * config/powerpc/macos.mt: Delete file.
13848 * config/powerpc/nm-macos.h: Delete file.
13849 * config/powerpc/tm-macos.h: Delete file.
13850 * source.c (openp, open_source_file): Remove obsolete code.
13851 * top.c (gdb_readline): Ditto.
13852 * utils.c (query): Ditto.
13853 * event-top.c (display_gdb_prompt): Ditto.
13854 * Makefile.in (ser-mac.o): Delete obsolete target.
13855 * NEWS: Update.
13856
13857 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13858
13859 * defs.h (BIG_ENDIAN): Delete macro definition.
13860 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13861 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13862 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13863 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13864 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13865 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13866 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13867 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13868 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13869 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13870 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13871 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13872 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13873 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13874 * gdbarch.c: Re-generate.
13875
13876 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13877
13878 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13879 for core files.
13880
13881 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13882
13883 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13884
13885 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13886
13887 * value.h (value_ptr): Delete typedef.
13888
13889 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13890
13891 * i386nbsd-nat.c: Update copyright years.
13892 Include i386-tdep.h.
13893
13894 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13895
13896 * stabsread.c: Update copyright years.
13897
13898 From Debashis Mahata <debashis.mahata@wipro.com>:
13899 (read_struct_fields): Deal with Sun C compiler erroneous stab
13900 output for structs and unions.
13901 Fix PR gdb/269.
13902
13903 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13904
13905 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13906 prototype.
13907
13908 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13909
13910 * cp-abi.c: Fix whitespace.
13911 (baseclass_offset): New wrapper function.
13912 * cp-abi.h (baseclass_offset): Add prototype.
13913 (struct cp_abi_ops): Add baseclass_offset pointer.
13914
13915 * valops.c (vb_match): Move to...
13916 * gnu-v2-abi.c (vb_match): here.
13917 * valops.c (baseclass_offset): Move to...
13918 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13919
13920 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13921
13922 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13923 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13924 * hpacc-abi.c (init_hpacc_ops): Likewise.
13925
13926 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13927
13928 * valops.c (find_overload_match): Accept obj as a
13929 reference parameter. Update it before returning.
13930 * value.h (find_overload_match): Update prototype.
13931 * eval.c (evaluate_subexp_standard): Pass object to
13932 find_overload_match by reference.
13933
13934 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13935
13936 * valarith.c: Replace value_ptr with struct value pointer. Remove
13937 register attribute from value declarations.
13938 * valops.c: Ditto.
13939 * value.h: Ditto.
13940 * scm-lang.c (scm_lookup_name): Ditto.
13941
13942 2002-01-03 Michael Snyder <msnyder@redhat.com>
13943
13944 Abstract the functionality of iterating over mapped memory
13945 regions into a general purpose iterator function.
13946 * procfs.c (iterate_over_mappings): New function, general purpose
13947 iterator for memory sections.
13948 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13949 (solib_mappings_callback): New function, callback for above.
13950 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13951 (info_mappings_callback): New function, callback for above.
13952
13953 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13954
13955 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13956
13957 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13958 * i386-tdep.c: Include "elf-bfd.h".
13959 (process_note_abi_tag_sections): New function.
13960 (i386_gdbarch_init): Add code to recognize various OS/ABI
13961 combinations.
13962
13963 * maint.c (_initialize_maint_cmds): Add missing \ in
13964 string-literal.
13965
13966 For older changes see ChangeLog-2001
13967 \f
13968 Local Variables:
13969 mode: change-log
13970 left-margin: 8
13971 fill-column: 74
13972 version-control: never
13973 End:
This page took 0.315415 seconds and 5 git commands to generate.