2002-12-06 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
2
3 * ia64-linux-nat.c: Include gdb_string.h.
4 * alpha-nat.c: Ditto.
5 * ppc-linux-nat.c: Ditto.
6 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
7 Update dependencies.
8
9 2002-12-05 Andrew Cagney <ac131313@redhat.com>
10
11 * gdbthread.h: Include "frame.h".
12 (struct thread_info): Replace step_frame_address with
13 step_frame_id.
14 * inferior.h: Include "frame.h".
15 (step_frame_id): Replace external variable step_frame_address.
16 * gdbthread.h (save_infrun_state): Replace step_frame_address
17 parameter with step_frame_id parameter.
18 (load_infrun_state): Ditto.
19 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
20 * infcmd.c (step_frame_id, step_1, step_once): Update.
21 * thread.c (load_infrun_state, save_infrun_state): Update.
22 * infrun.c (clear_proceed_status, save_inferior_status): Update.
23 (handle_inferior_event, step_over_function): Update.
24 (normal_stop, context_switch, restore_inferior_status): Update.
25 (struct inferior_status): Replace step_frame_address with
26 step_frame_id.
27
28 2002-12-05 David Carlton <carlton@math.stanford.edu>
29
30 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
31 DW_TAG_member as well as a declaration as being a C++ static data
32 member.
33 (read_structure_scope): Combine tests for DW_TAG_member and
34 DW_TAG_variable.
35
36 2002-12-05 David Carlton <carlton@math.stanford.edu>
37
38 * linespec.c (decode_compound): New function.
39 (decode_line_1): Move code into decode_compound.
40
41 2002-12-05 David Carlton <carlton@math.stanford.edu>
42
43 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
44 argument.
45 (lookup_symbol_aux): Do the 'field_of_this' check before checking
46 the static block. See PR gdb/804.
47
48 2002-12-05 David Carlton <carlton@math.stanford.edu>
49
50 * symtab.c (lookup_symbol_aux_block): New function.
51 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
52
53 2002-12-05 Andrew Cagney <ac131313@redhat.com>
54
55 * gdbarch.sh: Dump the predicate function and macro values.
56 (read): Print error on standard error.
57 * gdbarch.c: Regenerate.
58
59 2002-12-04 Kevin Buettner <kevinb@redhat.com>
60
61 * Makefile.in (mips_tdep_h): Define.
62 (mips-tdep.o): Add mips_tdep_h to dependency list.
63 * mips-tdep.h: New file.
64 * mips-tdep.c (mips-tdep.h): Include.
65 (enum mips_abi): Move to mips-tdep.h.
66 (mips_abi): New function.
67
68 2002-12-04 David Carlton <carlton@math.stanford.edu>
69
70 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
71
72 2002-12-04 David Carlton <carlton@math.stanford.edu>
73
74 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
75 function.
76 (lookup_symbol_aux_minsyms): New function.
77
78 2002-12-04 J. Brobecker <brobecker@gnat.com>
79
80 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
81
82 2002-12-04 J. Brobecker <brobecker@gnat.com>
83
84 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
85 which is an obsolete macro name.
86
87 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
88
89 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
90 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
91
92 2002-12-03 H.J. Lu (hjl@gnu.org)
93
94 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
95 (create_breakpoints): Make sure the addr_string field is not
96 NULL.
97
98 2002-12-03 Andrew Cagney <ac131313@redhat.com>
99
100 * sparc-nat.c (fetch_inferior_registers)
101 (store_inferior_registers): Add comment on problem of LWP vs
102 threads.
103
104 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
105 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
106 (lin_lwp_store_registers): Remove.
107 (init_lin_lwp_ops): Use fetch_inferior_registers
108 and store_inferior_registers directly.
109 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
110 (store_inferior_registers): Likewise.
111 Fix PR gdb/725.
112
113 2002-12-03 Andrew Cagney <ac131313@redhat.com>
114
115 * frame.h (get_frame_id): Convert to a function.
116 (null_frame_id, frame_id_p): Declare.
117 (frame_id_eq, frame_id_inner): Declare.
118 (frame_id_build): New function.
119 * frame.c (get_frame_id): Update. Use null_frame_id.
120 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
121 frame_id_inner.
122 (null_frame_id, frame_id_p): Define.
123 (frame_id_eq, frame_id_inner): Define.
124 (frame_id_build): New function.
125 * varobj.c (varobj_create): Update.
126 (varobj_update): Update.
127 * valops.c (value_assign): Update.
128 (new_root_variable): Update.
129 * infrun.c (save_inferior_status): Update.
130 * breakpoint.c (watch_command_1): Update.
131
132 2002-12-03 J. Brobecker <brobecker@gnat.com>
133
134 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
135 (SNAP2): Likewise.
136
137 2002-12-03 Andrew Cagney <cagney@redhat.com>
138
139 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
140 patch.
141
142 * PROBLEMS: Mention PR gdb/725.
143
144 2002-12-03 Andreas Schwab <schwab@suse.de>
145
146 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
147
148 2002-12-02 Adam Fedor <fedor@gnu.org>
149 Klee Dienes <kdienes@apple.com>
150
151 * objc-lang.c (objc_printstr): Add width arg to match
152 printstr prototype.
153 (compare_selectors): Add 'const' to arg types.
154 (compare_classes): Likewise.
155 (find_imps): Cast msym pointer to avoid compiler warning.
156 (print_object_command): Validate the address before
157 passing it to the print routine.
158 (find_objc_msgcall_submethod): Change function argument to
159 return an int.
160 * objc-lang.h: Add 'extern' to all function declarations.
161 (value_nsstring): Add declaration.
162
163 2002-12-02 J. Brobecker <brobecker@gnat.com>
164
165 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
166 Fixes a build failure on HP/UX.
167
168 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
169 failure on HP/UX.
170 (hpread_has_name): Advance declaration to avoid a compilation warning.
171 (pst_syms_count): Add missing variable type. By change, the compiler
172 was defaulting to int, which seems a good choice. Fixes a compilation
173 warning.
174 (pst_syms_size): Likewise.
175
176 2002-12-02 J. Brobecker <brobecker@gnat.com>
177
178 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
179 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
180 later to set the proper gdbarch methods depending on the osabi.
181 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
182
183 2002-12-02 J. Brobecker <brobecker@gnat.com>
184
185 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
186 * osabi.c (gdb_osabi_name): Add strings images for the two new
187 enum values.
188 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
189
190 2002-12-02 Andrew Cagney <ac131313@redhat.com>
191
192 * MAINTAINERS (Java): Global maintainers are responible for Java.
193 (Past Maintainers): Mention both Anthony Green and Per Bothner as
194 part Java maintainers.
195
196 2002-12-02 J. Brobecker <brobecker@gnat.com>
197
198 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
199 Fixes a compilation failure on AiX.
200
201 2002-12-02 J. Brobecker <brobecker@gnat.com>
202
203 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
204 why aix-thread.o is not listed.
205
206 2002-12-01 Andrew Cagney <ac131313@redhat.com>
207
208 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
209 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
210 * gdbarch.h, gdbarch.c: Re-generate.
211 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
212 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
213 * config/pa/tm-hppa.h, frame.h: Update.
214 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
215 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
216 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
217 * cris-tdep.c, alpha-tdep.c: Update.
218 * frame.c (set_unwind_by_pc, create_new_frame): Use either
219 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
220 (get_prev_frame): Ditto.
221
222 2002-11-30 Andrew Cagney <cagney@redhat.com>
223
224 * exec.c (xfer_memory): Replace boolean with int.
225 * p-exp.y: Use 0 instead of false.
226 * corelow.c (gdb_check_format): Change return type to int from
227 boolean.
228 * utils.c: Don't include <curses.h> or <term.h> first.
229
230 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
231
232 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
233 (m68hc11_register_byte): Remove.
234 (m68hc11_gdbarch_init): Don't set the above.
235
236 2002-11-29 Andrew Cagney <cagney@redhat.com>
237
238 * remote-mips.c (mips_initialize): Force a selected frame rebuild
239 by calling get_selected_frame.
240 * ocd.c (ocd_start_remote): Use get_selected frame instead of
241 set_current_frame, create_new_frame, select_frame and
242 get_current_frame.
243 * remote-e7000.c (e7000_start_remote): Ditto.
244 * remote-mips.c (common_open): Ditto
245 * remote-rdp.c (remote_rdp_open): Ditto.
246
247 2002-11-29 Andreas Schwab <schwab@suse.de>
248
249 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
250 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
251 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
252 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
253 read_memory_unsigned_integer instead of read_memory_integer when
254 dealing with addresses and instruction opcodes.
255 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
256 (m68k_linux_frame_saved_pc): Likewise.
257
258 2002-11-29 Andrew Cagney <ac131313@redhat.com>
259
260 * stack.c (selected_frame, select_frame): Move from here ...
261 * frame.c (selected_frame, select_frame): ... to here. Include
262 "language.h".
263 * Makefile.in (frame.o): Update dependencies.
264 * frame.c (get_selected_frame): New function.
265 * frame.h (get_selected_frame): Declare.
266 (deprecated_selected_frame): Rename selected_frame.
267 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
268 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
269 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
270 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
271 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
272 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
273 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
274 * z8k-tdep.c, cli/cli-cmds.c: Update.
275
276 2002-11-29 Andrew Cagney <ac131313@redhat.com>
277
278 * frame.h (get_selected_block): Add comments.
279
280 2002-11-28 Andrew Cagney <ac131313@redhat.com>
281
282 * frame.c (pc_notcurrent): New function.
283 (find_frame_sal): New function.
284 * frame.h (find_frame_sal): Declare.
285 (struct symtab_and_line): Add opaque declaration.
286 * stack.c (print_frame_info_base): Use find_frame_sal instead of
287 find_pc_line.
288 (frame_info): Ditto.
289 * ada-lang.c (find_printable_frame): Ditto.
290
291 2002-11-28 J. Brobecker <brobecker@gnat.com>
292
293 * configure.in: Check that the pthdebug library is recent enough
294 before enabling thread support on native AiX.
295 * configure: Regenerate.
296
297 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
298 from the list of object files as it is now appended by configure
299 if thread support is enabled.
300 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
301 if thread support is enabled.
302
303 2002-11-28 Andrew Cagney <cagney@redhat.com>
304
305 * stack.c (get_selected_block): In-line get_current_block.
306 * frame.h (get_current_block): Delete declaration.
307 * blockframe.c (get_current_block): Delete function.
308
309 2002-11-28 Andrew Cagney <ac131313@redhat.com>
310
311 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
312 USE_GENERIC_DUMMY_FRAMES.
313 * gdbarch.h, gdbarch.c: Regenerate.
314 * valops.c, frame.c: Update.
315 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
316 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
317 * config/pa/tm-hppa.h, blockframe.c: Update.
318 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
319 * m68k-tdep.c, alpha-tdep.c: Ditto.
320
321 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
322 * mips-tdep.c: Ditto.
323
324 2002-11-27 Andrew Cagney <ac131313@redhat.com>
325
326 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
327 (USE_GENERIC_DUMMY_FRAMES): Default to true.
328 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
329 * gdbarch.c, gdbarch.h: Re-generate.
330 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
331 (CALL_DUMMY_LOCATION): Delete macro definition.
332 (PC_IN_CALL_DUMMY): Delete macro definitions.
333
334 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
335 default is already generic_pc_in_call_dummy.
336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
337 * v850-tdep.c (v850_gdbarch_init): Ditto.
338 * sh-tdep.c (sh_gdbarch_init): Ditto.
339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
340 * mips-tdep.c (mips_gdbarch_init): Ditto.
341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
343 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
345 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
346 * avr-tdep.c (avr_gdbarch_init): Ditto.
347
348 * arm-tdep.c (arm_gdbarch_init): Do not set
349 use_generic_dummy_frames, default is already 1.
350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
351 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
352 * v850-tdep.c (v850_gdbarch_init): Ditto.
353 * sh-tdep.c (sh_gdbarch_init): Ditto.
354 * s390-tdep.c (s390_gdbarch_init): Ditto.
355 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
356 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
357 * mips-tdep.c (mips_gdbarch_init): Ditto.
358 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
360 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
361 * i386-tdep.c (i386_gdbarch_init): Ditto.
362 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
363 * frv-tdep.c (frv_gdbarch_init): Ditto.
364 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
365 * cris-tdep.c (cris_gdbarch_init): Ditto.
366 * avr-tdep.c (avr_gdbarch_init): Ditto.
367
368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
369 call_dummy_location, default is already AT_ENTRY_POINT.
370 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
371 * v850-tdep.c (v850_gdbarch_init): Ditto.
372 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
373 * sh-tdep.c (sh_gdbarch_init): Ditto.
374 * s390-tdep.c (s390_gdbarch_init): Ditto.
375 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
376 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
377 * mips-tdep.c (mips_gdbarch_init): Ditto.
378 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
380 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
381 * i386-tdep.c (i386_gdbarch_init): Ditto.
382 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
383 * frv-tdep.c (frv_gdbarch_init): Ditto.
384 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
385 * cris-tdep.c (cris_gdbarch_init): Ditto.
386 * avr-tdep.c (avr_gdbarch_init): Ditto.
387 * arm-tdep.c (arm_gdbarch_init): Ditto.
388 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
389
390 2002-11-28 Andrew Cagney <cagney@redhat.com>
391
392 * frame.h: Update comments on set_current_frame, create_new_frame,
393 flush_cached_frames, reinit_frame_cache, select_frame and
394 selected_frame.
395
396 2002-11-27 Andrew Cagney <cagney@redhat.com>
397
398 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
399 deprecated pc_in_call_dummy function.
400 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
401 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
402 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
403 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
404 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
405
406 2002-11-26 Martin M. Hunt <hunt@redhat.com>
407
408 * Makefile.in: Remove Tix dependencies.
409 * acinclude.m4: Ditto.
410 * aclocal.m4: Ditto.
411 * configure.in: Ditto.
412 * configure: Regenerated.
413
414 2002-11-26 Andrew Cagney <ac131313@redhat.com>
415
416 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
417 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
418 * gdbarch.c: Re-generate.
419
420 2002-11-26 Andrew Cagney <ac131313@redhat.com>
421
422 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
423 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
424 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
425 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
426 pc_in_call_dummy_at_entry_point.
427 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
428 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
429 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
430 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
431 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
432 pc_in_call_dummy_on_stack.
433 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
434 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
435 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
436 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
437 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
438
439 2002-11-26 Andrew Cagney <ac131313@redhat.com>
440
441 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
442 pc_in_call_dummy_before_text_end
443 (deprecated_pc_in_call_dummy_after_text_end): Rename
444 pc_in_call_dummy_after_text_end.
445 (deprecated_pc_in_call_dummy_on_stack): Rename
446 pc_in_call_dummy_on_stack.
447 (deprecated_pc_in_call_dummy_at_entry_point): Rename
448 pc_in_call_dummy_at_entry_point.
449 * m68k-tdep.c (m68k_gdbarch_init): Update.
450 * s390-tdep.c (s390_gdbarch_init): Update.
451 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
452 * vax-tdep.c (vax_gdbarch_init): Update.
453 * sparc-tdep.c (sparc_gdbarch_init): Update.
454 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
455 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
456 * i386-tdep.c (i386_gdbarch_init): Update.
457 * frv-tdep.c (frv_gdbarch_init): Update.
458 * cris-tdep.c (cris_gdbarch_init): Update.
459 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
460 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
461 (deprecated_pc_in_call_dummy_after_text_end)
462 (deprecated_pc_in_call_dummy_on_stack)
463 (deprecated_pc_in_call_dummy_at_entry_point): Update.
464 * alpha-tdep.c (alpha_gdbarch_init): Update.
465
466 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
467
468 * acconfig.h (HAVE_PREAD64): Add.
469 * configure.in: Check for pread64.
470 * config.in: Regenerated.
471 * configure: Regenerated.
472 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
473 * linux-proc.c (linux_proc_xfer_memory): New function.
474 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
475
476 2002-11-25 David Carlton <carlton@math.stanford.edu>
477
478 * dwarf2read.c (scan_partial_symbols): Descend into namespace
479 pdi's with no name.
480
481 2002-11-25 Andrew Cagney <ac131313@redhat.com>
482
483 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
484 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
485
486 2002-11-25 Jim Blandy <jimb@redhat.com>
487
488 * symfile.c (init_objfile_sect_indices): New function.
489 (default_symfile_offsets): Move the section-index-initializing
490 stuff into init_objfile_sect_indices, and call that.
491
492 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
493 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
494
495 * symfile.c (syms_from_objfile): Adjust indentation.
496
497 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
498 || info_verbose isn't true.
499
500 2002-11-24 Andrew Cagney <ac131313@redhat.com>
501
502 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
503 default to get_frame_base.
504 * gdbarch.h, gdbarch.c: Regenerate.
505 * arch-utils.c (default_frame_address): Delete function.
506 * arch-utils.h (default_frame_address): Delete declaration
507
508 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
509
510 * varobj.c (find_frame_addr_in_frame_chain):
511 Use get_frame_base instead of FRAME_FP,
512 obvious fix.
513
514 2002-11-19 Andrew Cagney <ac131313@redhat.com>
515
516 * frame.h (FRAME_FP): Delete macro.
517 (get_frame_base): New function declaration.
518 * frame.c (get_frame_base): New function.
519 (get_frame_id): Use ->frame.
520 (frame_find_by_id): Rewrite to use get_frame_id.
521 * blockframe.c: Use get_frame_base instead of FRAME_FP.
522 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
523 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
524 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
525 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
526 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
527 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
528
529 2002-11-24 Andrew Cagney <ac131313@redhat.com>
530
531 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
532
533 2002-11-24 Andrew Cagney <ac131313@redhat.com>
534
535 * frame.c (set_unwind_by_pc): Revert change below, use
536 PC_IN_CALL_DUMMY.
537 (get_prev_frame): Ditto.
538
539 2002-11-24 Andrew Cagney <ac131313@redhat.com>
540
541 * dummy-frame.c (pc_in_dummy_frame): New function.
542 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
543 (find_dummy_frame): Update comment.
544 (generic_pop_current_frame): Use get_frame_type.
545 * dummy-frame.h (pc_in_dummy_frame): Declare.
546 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
547 (create_new_frame): Use pc_in_dummy_frame.
548 (get_prev_frame): Use pc_in_dummy_frame.
549 (frame_saved_regs_register_unwind): Use get_prev_frame.
550 (deprecated_generic_get_saved_register): Use get_prev_frame.
551
552 2002-11-23 Andrew Cagney <ac131313@redhat.com>
553
554 * blockframe.c (find_frame_addr_in_frame_chain): Move function
555 from here ...
556 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
557 (varobj_create): Note that frame ID should be used.
558 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
559
560 2002-11-23 Andrew Cagney <ac131313@redhat.com>
561
562 * breakpoint.c: Include "gdb_assert.h".
563 (deprecated_frame_in_dummy): Assert that generic dummy frames are
564 not being used.
565 * Makefile.in (breakpoint.o): Update dependencies.
566 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
567 deprecated_frame_in_dummy.
568 * stack.c (print_frame_info_base): Ditto.
569 (frame_info): Ditto.
570 (print_frame_info_base): Ditto. Delete dead code.
571
572 2002-11-23 Andreas Schwab <schwab@suse.de>
573
574 * Makefile.in (m68k_tdep_h): Define.
575 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
576 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
577 * m68k-tdep.c: Move register number enum ...
578 * m68k-tdep.h: ... to this new file and rename the constants from
579 E_* to M68K_*. All uses changed.
580 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
581 * abug-rom.c: Include "m68k-tdep.h". Use
582 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
583 * cpu32bug-rom.c: Likewise.
584 * dbug-rom.c: Likewise.
585 * m68k-tdep.c: Likewise.
586 * m68klinux-nat.c: Likewise.
587 * remote-est.c: Likewise.
588 * rom68k-rom.c: Likewise.
589 * config/m68k/tm-linux.h: Likewise.
590
591 2002-11-23 Andrew Cagney <ac131313@redhat.com>
592
593 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
594 dummy frame initialization code.
595 * mips-tdep.c (mips_gdbarch_init): Ditto.
596
597 2002-11-22 Christopher Faylor <cgf@redhat.com>
598
599 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
600 attach will hang.
601
602 2002-11-22 Andrew Cagney <ac131313@redhat.com>
603
604 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
605 to default_frame_address.
606 * gdbarch.h, gdbarch.c: Re-generate.
607
608 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
609 or frame_locals_address to default_frame_address.
610 * m68k-tdep.c (m68k_gdbarch_init): Update.
611 * i386-tdep.c (i386_gdbarch_init): Update.
612 * frv-tdep.c (frv_gdbarch_init): Update.
613 * sh-tdep.c (sh_gdbarch_init): Update.
614 * v850-tdep.c (v850_gdbarch_init): Update.
615 * sparc-tdep.c (sparc_gdbarch_init): Update.
616 * mips-tdep.c (mips_gdbarch_init): Update.
617 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
618 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
620
621 * cris-tdep.c (cris_frame_args_address): Delete function.
622 (cris_frame_locals_address): Delete function.
623 (cris_gdbarch_init): Do not set frame_args_address or
624 frame_locals_address.
625
626 2002-11-22 Michael Snyder <msnyder@redhat.com>
627
628 * thread-db.c (thread_db_load): Tell the user what's going on
629 if dlopen fails on libthread_db.
630
631 2002-11-23 Andreas Schwab <schwab@suse.de>
632
633 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
634 invariant return values.
635
636 2002-11-22 Andreas Schwab <schwab@suse.de>
637
638 * valops.c (value_slice): Move declaration of `offset' to avoid
639 warning.
640
641 2002-11-22 Christopher Faylor <cgf@redhat.com>
642
643 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
644 (struct so_stuff): Add end_addr field.
645 (register_loaded_dll): Calculate and store end address of loaded dll.
646 (solib_address): New function.
647 (child_solib_loaded_library_pathname): Pass carefully constructed
648 section info to safe_symbol_file_add rather than ignoring it.
649 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
650 DLL is loaded.
651 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
652 (child_create_inferior): Fix a compiler warning.
653 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
654 (solib_address): Declare new function.
655
656 2002-11-22 Andreas Schwab <schwab@suse.de>
657
658 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
659 and FPS registers.
660
661 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
662
663 * maint.c (_initialize_maint_cmds): Fix typo. From
664 Francesco Potorti` <pot@gnu.org>.
665
666 2002-11-21 Andrew Cagney <cagney@redhat.com>
667
668 * mips-tdep.c (mips_dump_tdep): Delete references to
669 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
670 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
671 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
672 * printcmd.c (build_address_symbolic): Delete calls to
673 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
674 (address_info): Ditto.
675 Fix PR gdb/773.
676
677 2002-11-19 Klee Dienes <kdienes@apple.com>
678 Adam Fedor <fedor@gnu.org>
679
680 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
681 the ability to explicitly specify the quote characters and word
682 break characters; if NULL is specified for either, use the old
683 behavior of using the characters used by the completer.
684 (skip_chars): New function. Convenience wrapper around
685 skip_quoted_chars to provide the original skip_chars behavior.
686 * completer.h (skip_quoted_chars): Add prototype.
687
688 2002-11-19 Andrew Cagney <ac131313@redhat.com>
689
690 Problems reported by Paul Eggert.
691 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
692
693 2002-11-19 Andreas Schwab <schwab@suse.de>
694
695 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
696 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
697 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
698 (m68k_linux_frame_saved_pc): Move to ...
699 * m68klinux-tdep.c: ... here. New file.
700 * Makefile.in (m68klinux-tdep.o): Add dependencies.
701 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
702
703 2002-11-19 Adam Fedor <fedor@gnu.org>
704
705 * objc-exp.y: Revert to old skip_quoted usage.
706
707 2002-11-19 Adam Fedor <fedor@gnu.org>
708
709 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
710 (objc_lang_h): Define.
711 (YYFILES): Add objc-exp.tab.c.
712 (local-maintainer-clean): Remove objc-exp.tab.c.
713 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
714
715 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
716
717 * p-exp.y (typecast rule): Add automatic dereference of
718 pascal classes if needed.
719 (THIS): Set current_type.
720 Automatically dereference pascal classes.
721 (typebase rule): Add ^typebase recognition.
722
723 2002-11-18 Adam Fedor <fedor@gnu.org>
724
725 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
726 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
727 (op_name): Handle OP_OBJC_SELF.
728 * Makefile.in (expprint.o): Add additional depends.
729
730 2002-11-18 Adam Fedor <fedor@gnu.org>
731
732 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
733 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
734 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
735 * objc-exp.y: Likewise.
736
737 2002-11-18 Adam Fedor <fedor@gnu.org>
738
739 * gdb/parser-defs.h: (struct objc_class_str): New structure
740 for parsing ObjC classes.
741
742 2002-11-18 Andrew Cagney <ac131313@redhat.com>
743
744 * stack.c (frame_relative_level): Copy function from here ...
745 * frame.c (frame_relative_level): ...to here.
746
747 2002-11-18 Andrew Cagney <ac131313@redhat.com>
748
749 * frame.h (enum frame_type): Define.
750 (get_frame_type): Declare.
751 (struct frame_info): Add field `type'. Delete field
752 signal_handler_caller.
753 (deprecated_set_frame_signal_handler_caller): Declare.
754 * frame.c (get_frame_type): New function.
755 (deprecated_set_frame_type): New function.
756 (create_new_frame): Set the frame's type.
757 (get_prev_frame): Similar.
758 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
759 * s390-tdep.c: Ditto.
760 * m68klinux-nat.c: Ditto.
761 * ns32k-tdep.c: Ditto.
762 * x86-64-linux-tdep.c: Ditto.
763 * vax-tdep.c: Ditto.
764 * rs6000-tdep.c: Ditto.
765 * ppc-linux-tdep.c: Ditto.
766 * i386-interix-tdep.c: Ditto.
767 * mips-tdep.c: Ditto.
768 * m68k-tdep.c: Ditto.
769 * hppa-tdep.c: Ditto.
770 * ia64-tdep.c: Ditto.
771 * cris-tdep.c: Ditto.
772 * arm-tdep.c: Ditto.
773 * alpha-tdep.c: Ditto.
774 * i386-tdep.c: Ditto.
775 * stack.c: Ditto.
776 * ada-lang.c: Ditto.
777 * blockframe.c: Update.
778 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
779 deprecated_set_frame_type instead of signal_handler_caller.
780 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
781 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
782 * breakpoint.h: Delete FIXME suggesting get_frame_type.
783
784 2002-11-18 Klee Dienes <kdienes@apple.com>
785
786 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
787
788 2002-11-18 Klee Dienes <kdienes@apple.com>
789
790 * buildsym.c (pop_context): Add comment.
791
792 2002-11-18 Klee Dienes <kdienes@apple.com>
793
794 * buildsym.h (pop_context): Convert to function, defined in
795 buildsym.c.
796 * buildsym.c: Include gdb_assert.h.
797 (pop_context): Implement as C function. Add check for stack
798 underflow.
799 * dbxread.c (process_one_symbol): Complain and stop processing
800 that symbol if we are already at the top of the context stack for
801 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
802 when processing N_RBRAC.
803
804 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
805
806 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
807 define.
808 (struct target_waitstatus): Add opaque definition.
809 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
810 * exec.c (init_exec_ops): Likewise.
811 * fork-child.c (clone_and_follow_inferior): Remove.
812 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
813 * inferior.h (clone_and_follow_inferior): Remove prototype.
814 * infrun.c (follow_fork_mode_both): Remove.
815 (follow_fork_mode_kind_names): Remove commented out "both".
816 (follow_inferior_fork): Remove follow_fork_mode_both support.
817 * inftarg.c (child_clone_and_follow_inferior): Remove.
818 (child_post_follow_inferior_by_clone): Remove.
819 (init_child_ops): Don't set to_clone_and_follow_inferior
820 or to_post_follow_inferior_by_clone.
821 * target.c (default_clone_and_follow_inferior): Remove.
822 (cleanup_target): Don't set to_clone_and_follow_inferior
823 or to_post_follow_inferior_by_clone.
824 (find_default_clone_and_follow_inferior): Remove.
825 (init_dummy_target): Don't set to_clone_and_follow_inferior.
826 (debug_to_clone_and_follow_inferior): Remove.
827 (debug_to_post_follow_inferior_by_clone): Remove.
828 (setup_target_debug): Don't set to_clone_and_follow_inferior
829 or to_post_follow_inferior_by_clone.
830 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
831 and to_post_follow_inferior_by_clone.
832 (child_clone_and_follow_inferior): Remove prototype.
833 (child_post_follow_inferior_by_clone): Remove prototype.
834 (target_clone_and_follow_inferior): Remove macro.
835 (target_post_follow_inferior_by_clone): Remove macro.
836 (find_default_clone_and_follow_inferior): Remove prototype.
837
838 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
839
840 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
841 inferior_has_vforked, and inferior_has_execd instead of
842 target_has_forked, target_has_vforked, and target_has_execd.
843 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
844 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
845 (CHILD_WAIT): Define.
846 (child_wait): Add prototype.
847 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
848 Add prototype.
849 (hpux_has_vforked): Likewise, from child_has_vforked.
850 (hpux_has_execd): Likewise, from child_has_execd.
851 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
852 (not_same_real_pid, child_wait): New, copied from inftarg.c.
853 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
854 and hpux_has_syscall_event instead of the target hooks.
855 * infrun.c (inferior_has_forked, inferior_has_vforked)
856 (inferior_has_execd): New functions.
857 * inftarg.c (not_same_real_pid): Remove.
858 (child_wait): Remove references to not_same_real_pid,
859 target_has_forked, target_has_vforked, target_has_execd,
860 and target_has_syscall_event.
861 (child_has_forked, child_has_vforked, child_has_execd)
862 (child_has_syscall_event): Remove.
863 (init_child_ops): Remove references to child_has_forked,
864 child_has_vforked, child_has_execd, and child_has_syscall_event.
865 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
866 (hpux_has_vforked): Likewise, from child_has_vforked.
867 (hpux_has_execd): Likewise, from child_has_execd.
868 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
869 * target.c (cleanup_target): Remove references to
870 to_has_forked, to_has_vforked, to_has_execd, and
871 to_has_syscall_event.
872 (update_current_target): Likewise.
873 (setup_target_debug): Likewise.
874 (debug_to_has_forked): Remove.
875 (debug_to_has_vforked): Remove.
876 (debug_to_has_execd): Remove.
877 (debug_to_has_syscall_event): Remove.
878 * target.h (struct target_ops): Remove to_has_forked.
879 to_has_vforked, to_has_execd, and to_has_syscall_event.
880 (child_has_forked, child_has_vforked, child_has_execd)
881 (child_has_syscall_event): Remove prototypes.
882 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
883 prototypes.
884 (target_has_forked, target_has_vforked, target_has_execd)
885 (target_has_syscall_event): Remove macros.
886
887 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
888
889 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
890 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
891 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
892 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
893 * target.c (cleanup_target): Remove reference to
894 to_can_follow_vfork_prior_to_exec.
895 (update_current_target): Likewise.
896 (debug_to_can_follow_vfork_prior_to_exec): Remove.
897 (setup_target_debug): Remove reference to
898 to_can_follow_vfork_prior_to_exec.
899 * target.h (struct target_ops): Remove
900 to_can_follow_vfork_prior_to_exec.
901 (child_can_follow_vfork_prior_to_exec): Remove prototype.
902 (target_can_follow_vfork_prior_to_exec): Remove definition.
903 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
904 define.
905 * infrun.c (follow_vfork_when_exec): Remove.
906 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
907 (follow_exec): Likewise.
908 (handle_inferior_event): Likewise.
909 (keep_going): Likewise.
910
911 2002-11-15 Andrew Cagney <cagney@redhat.com>
912
913 * frame.c (generic_unwind_get_saved_register): Make static.
914 * frame.h (generic_unwind_get_saved_register): Delete declaration.
915 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
916 defaults to generic_unwind_get_saved_register.
917 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
918 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
919 * frv-tdep.c (frv_gdbarch_init): Ditto.
920 * i386-tdep.c (i386_gdbarch_init): Ditto.
921 * s390-tdep.c (s390_gdbarch_init): Ditto.
922 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
923 * v850-tdep.c (v850_gdbarch_init): Ditto.
924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
925 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
926 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
927
928 2002-11-15 Andrew Cagney <cagney@redhat.com>
929
930 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
931 i386-tdep.c.
932
933 2002-11-15 Andrew Cagney <cagney@redhat.com>
934
935 * frame.h (sigtramp_saved_pc): Delete declaration.
936 * blockframe.c (sigtramp_saved_pc): Delete function.
937 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
938 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
939 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
940 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
941
942 2002-11-15 Andrew Cagney <ac131313@redhat.com>
943
944 * frame.c (frame_pc_unwind): New function.
945 (frame_saved_regs_pc_unwind): New function.
946 (frame_register_unwind): Pass unwind_cache instead of
947 register_unwind_cache.
948 (set_unwind_by_pc): Add unwind_pc parameter, set.
949 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
950 (get_prev_frame): Ditto.
951 * frame.h (frame_pc_unwind_ftype): Declare.
952 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
953 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
954 (frame_pc_unwind): Declare.
955 * dummy-frame.c (dummy_frame_pc_unwind): New function.
956 (struct dummy_frame): Add comment mentioning that values are for
957 previous frame.
958 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
959 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
960 (generic_file_frame_chain_valid): Ditto.
961 * stack.c (frame_info): Ditto.
962
963 2002-11-15 David Carlton <carlton@math.stanford.edu>
964
965 * linespec.c (locate_first_half): New function.
966 (decode_line_1): Move code into locate_first_half.
967
968 2002-11-15 Andrew Cagney <ac131313@redhat.com>
969
970 * complaints.h: Add comment explaining how to eliminate a
971 deprecated_complain call.
972 * complaints.h: Fix spelling errors.
973
974 2002-11-15 David Carlton <carlton@math.stanford.edu>
975
976 * printcmd.c: Remove #include "disasm.h".
977
978 2002-11-14 Andrew Cagney <ac131313@redhat.com>
979
980 * frame.h: Move the most relevant interface functions to the start
981 of the file.
982
983 2002-11-14 Andrew Cagney <ac131313@redhat.com>
984
985 * regcache.h (deprecated_registers): Rename registers.
986 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
987 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
988 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
989 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
990 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
991 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
992 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
993 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
994 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
995 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
996 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
997 * v850ice.c: Update.
998
999 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1000
1001 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1002 NULL buffer.
1003
1004 2002-11-13 Andrew Cagney <cagney@redhat.com>
1005
1006 * regcache.h (deprecated_read_register_bytes): Rename
1007 read_register_bytes.
1008 (deprecated_write_register_bytes): Rename write_register_bytes.
1009 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1010 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1011 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1012 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1013 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1014 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1015 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1016 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1017 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1018 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1019 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1020 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1021 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1022 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1023
1024 2002-11-13 Jim Blandy <jimb@redhat.com>
1025
1026 * findvar.c (read_var_value): Doc fix.
1027
1028 2002-11-13 Andrew Cagney <cagney@redhat.com>
1029
1030 * regcache.c (struct regcache): Replace passthough_p with
1031 readonly_p.
1032 (regcache_xmalloc): Initialize readonly_p.
1033 (build_regcache): Initialize readonly_p.
1034 (regcache_save): New function.
1035 (regcache_restore): New function.
1036 (regcache_cpy): Re-implement using regcache_save and
1037 regcache_restore.
1038 (regcache_raw_read): Update.
1039 (regcache_cooked_read): When a read-only cache, checked for cached
1040 pseudo register values.
1041 (regcache_raw_write): Assert that the cache is not read-only.
1042 Remove code handling a non-passthrough cache.
1043 * regcache.h (regcache_save): Declare.
1044 (regcache_restore): Declare.
1045
1046 2002-11-13 Andrew Cagney <cagney@redhat.com>
1047
1048 * regcache.c (struct regcache_descr): Add fields
1049 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1050 (init_legacy_regcache_descr): Compute the size of a cooked
1051 register cache and then assign that to sizeof_raw_registers. Set
1052 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1053 (init_legacy_regcache_descr): Ditto.
1054
1055 2002-11-13 Andrew Cagney <cagney@redhat.com>
1056
1057 * regcache.c (register_buffer): Move to near start of file, update
1058 description.
1059 (regcache_raw_read): Use.
1060 (regcache_raw_write): Use.
1061 (struct regcache): Rename raw_registers to registers and
1062 raw_register_valid_p to register_valid_p.
1063 (regcache_xmalloc): Update.
1064 (regcache_xfree): Update.
1065 (register_buffer): Update.
1066 (regcache_cpy): Update.
1067 (regcache_cpy_no_passthrough): Update.
1068 (regcache_valid_p): Update.
1069 (deprecated_grub_regcache_for_registers): Update.
1070 (deprecated_grub_regcache_for_register_valid): Update.
1071 (set_register_cached): Update.
1072 (regcache_raw_write): Update.
1073
1074 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1075
1076 * p-exp.y (name_not_typename): Use copy_name to
1077 set current_type variable for fields of THIS.
1078
1079 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1080
1081 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1082 * monitor.c (init_base_monitor_ops): Likewise.
1083 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1084 * remote-array.c (init_array_ops): Likewise.
1085 * remote-e7000.c (init_e7000_ops): Likewise.
1086 * remote-es.c (init_es1800_ops): Likewise.
1087 (init_es1800_child_ops): Likewise.
1088 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1089 * remote-sim.c (init_gdbsim_ops): Likewise.
1090 * remote-st.c (init_st2000_ops): Likewise.
1091 * sol-thread.c (init_sol_core_ops): Likewise.
1092 (init_sol_thread_ops): Likewise.
1093 * v850ice.c (init_850ice_ops): Likewise.
1094 * win32-nat.c (init_child_ops): Likewise.
1095 * wince.c (init_child_ops): Likewise.
1096
1097 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1098
1099 * utils.c (gdb_realpath): Make rp a constant pointer.
1100
1101 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1102
1103 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1104 a constant buffer; cannonicalize_file_name(); realpath() with a
1105 pathconf() defined buffer, xstrdup().
1106
1107 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1108
1109 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1110 to hang2.C; hang3.c to hang3.C.
1111
1112 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1113
1114 * findvar.c (read_var_value): Reenable TLS code.
1115
1116 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1117 Jim Blandy <jimb@redhat.com>
1118
1119 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1120 * target.c (update_current_target): Add
1121 to_get_thread_local_address.
1122 * target.h (to_get_thread_local_address): Export.
1123 (target_get_thread_local_address): Define.
1124 (target_get_thread_local_address_p): Define.
1125 * thread-db.c: Include solib-svr4.h.
1126 (td_thr_tls_get_addr_p): Define.
1127 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1128 (thread_db_get_thread_local_address): New function.
1129 (init_thread_db_ops): Initialize to_get_thread_local_address.
1130 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1131 * configure: Regenerate.
1132 * config.in: Regenerate.
1133
1134 2002-11-11 David Carlton <carlton@math.stanford.edu>
1135
1136 * linespec.c (set_flags): New function.
1137 (decode_line_1): Move code into set_flags.
1138
1139 2002-11-11 David Carlton <carlton@math.stanford.edu>
1140
1141 * linespec.c (decode_line_1): Move chunks of code to separate
1142 functions.
1143 (initialize_defaults): New function.
1144 (decode_indirect): New function.
1145
1146 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1147
1148 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1149 instead of void_code_ptr.
1150 (sigtramp_saved_pc): Ditto.
1151
1152 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1153 i386_fp_regnum_p.
1154
1155 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * gdbtypes.h (struct main_type): Move artificial flag out of
1158 loc. New member of ``struct field'' named static_kind. Reduce
1159 overloaded meaning of bitsize.
1160 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1161 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1162 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1163
1164 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1165 new fields.
1166 (template_to_fixed_record_type, template_to_static_fixed_type)
1167 (to_record_with_fixed_variant_part): Likewise.
1168 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1169 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1170 * dwarfread.c (struct_type, enum_type): Likewise.
1171 * hpread.c (hpread_read_enum_type)
1172 (hpread_read_function_type, hpread_read_doc_function_type)
1173 (hpread_read_struct_type): Likewise.
1174 * mdebugread.c (parse_symbol): Likewise.
1175
1176 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1177
1178 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1179 * stack.c (print_frame_info_base): Update.
1180 (print_frame_info_base, frame_info): Update.
1181 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1182 (sparc_frame_saved_pc): Update.
1183 * ada-lang.c (find_printable_frame): Update.
1184 * breakpoint.c (deprecated_frame_in_dummy): Update.
1185
1186 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1187
1188 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1189 defined.
1190 (regmap): Extend to cover all registers.
1191 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1192 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1193 definitions.
1194 (fetch_register, sore_register): Simplify.
1195 (old_fetch_inferior_registers, old_store_inferior_registers):
1196 Remove functions.
1197 (cannot_fetch_register, cannot_store_register): Change
1198 implementation to use regmap array to decide which registers
1199 cannot be fetched/stored. This removes $orig_eax from the
1200 registers that cannot be fetched/stored.
1201 (fetch_inferior_registers): Call fetch_register directly instead
1202 of calling old_fetch_inferior_registers.
1203 (store_inferior_registers): Call store_register directly instead
1204 of calling old_store_inferior_registers.
1205 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1206 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1207 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1208
1209 2002-11-09 Klee Dienes <kdienes@apple.com>
1210
1211 * i387-tdep.c (i387_supply_register): When called with NULL as a
1212 buffer, mark the register as not provided (to mirror the behavior
1213 of supply_register).
1214 (i387_supply_fxsave): Ditto.
1215 (i387_supply_fsave): Ditto (inherits the behavior from
1216 i387_supply_register).
1217
1218 2002-11-09 Klee Dienes <kdienes@apple.com>
1219
1220 * blockframe.c (sigtramp_saved_pc): Use
1221 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1222 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1223 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1224
1225 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1226
1227 * frame.c (get_prev_frame): Test prev_p to identify a previously
1228 unwound frame. Initialize prev_p.
1229 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1230 comment.
1231
1232 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1233
1234 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1235 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1236 more comments. Zap dead code.
1237
1238 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1239
1240 * infcmd.c (print_vector_info, print_float_info): Move code that
1241 checks whether the target has any registers and whether there is a
1242 selected frame up, such that it is also used if a target provides
1243 multi-arch definitions of these functions.
1244
1245 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1246
1247 * Makefile.in (DESTDIR): Define.
1248 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1249 prefix.
1250
1251 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1252 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1253
1254 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1255
1256 * i386-linux-tdep.c: Include "reggroups.h".
1257 (i386_linux_register_reggroup_p): New function.
1258 (i386_linux_init_abi): Set register_reggroup_p to
1259 i386_linux_register_reggroup_p.
1260 * i386-tdep.h (i386_register_reggroup_p): Declare.
1261 * i386-tdep.c: Include "reggroups.h".
1262 (i386_init_reggroups): New function.
1263 (i386_add_reggroups): New function.
1264 (i386_register_reggroup_p): New function.
1265 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1266 (_initialize_i386_tdep): Call i386_init_reggroups.
1267 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1268 specific reggroups.
1269
1270 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1271
1272 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1273 request that's available in *BSD.
1274
1275 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1276
1277 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1278 FDOFF_REGNUM.
1279
1280 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1281
1282 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1283 * dummy-frame.c (find_dummy_frame): Rename
1284 generic_find_dummy_frame, make static. Return the dummy frame
1285 instead of the regcache.
1286 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1287 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1288 (dummy_frame_register_unwind): Rename
1289 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1290 * dummy-frame.h (dummy_frame_register_unwind): Rename
1291 generic_call_dummy_register_unwind.
1292
1293 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1294
1295 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1296 except the inclusion of "i386/tm-i386.h", to...
1297 * config/i386/nm-i386v42mp.h: ...here.
1298 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1299
1300 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1301
1302 * Makefile.in (frame.o): Update dependencies.
1303 * blockframe.c (current_frame, frame_obstack_alloc)
1304 (frame_saved_regs_zalloc, get_current_frame)
1305 (set_current_frame, create_new_frame)
1306 (set_unwind_by_pc, get_next_frame)
1307 (flush_cached_frames, reinit_frame_cache)
1308 (frame_saved_regs_register_unwind)
1309 (deprecated_generic_get_saved_register)
1310 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1311 (_initialize_blockframe): Move frame code from here...
1312 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1313 "annotate.h" and "dummy-frame.h".
1314 (_initialize_frame): New function.
1315
1316 2002-11-08 Jim Blandy <jimb@redhat.com>
1317
1318 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1319 when we finish a function a context.
1320 * buildsym.h (outermost_context_p): New macro.
1321 (Bug analyzed by David Edelsohn.)
1322
1323 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1324
1325 * blockframe.c: Include "dummy-frame.h".
1326 (struct dummy_frame, dummy_frame_stack)
1327 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1328 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1329 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1330 (generic_save_call_dummy_addr, generic_pop_current_frame)
1331 (generic_pop_dummy_frame, generic_fix_call_dummy)
1332 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1333 dummy frame code from here...
1334 * dummy-frame.c: ...to here. New file.
1335 * dummy-frame.h: New file.
1336 (generic_call_dummy_register_unwind): Declare.
1337 (generic_find_dummy_frame): Declare.
1338 * Makefile.in (SFILES): Add dummy-frame.c.
1339 (dummy-frame.o): Specify dependencies.
1340 (dummy_frame_h): Define.
1341 (COMMON_OBS): Add dummy-frame.o.
1342 (blockframe.o): Update dependencies.
1343
1344 2002-11-08 Jim Blandy <jimb@redhat.com>
1345
1346 * dwarf2read.c (read_func_scope): Restore local_symbols and
1347 param_symbols after we finish the function context. (Based on a
1348 patch from David Edelsohn.)
1349
1350 2002-11-08 David Carlton <carlton@math.stanford.edu>
1351
1352 * linespec.c (symbol_found): New function.
1353 (minsym_found): New function.
1354 (decode_line_1): Separate out some code into separate functions.
1355
1356 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1357
1358 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1359 the benefit of the interix target.
1360 * i386-tdep.h (i386_frameless_signal_p): Declare.
1361
1362 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1363
1364 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1365 declaration that snuck in from change below.
1366
1367 2002-11-06 Andrew Cagney <cagney@redhat.com>
1368
1369 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1370 all callers.
1371 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1372 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1373 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1374 (i386_mxcsr_regnum_p): new function. Use instead of
1375 MXCSR_REGNUM_P.
1376 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1377 (i386_sse_regnum_p): Declare.
1378 (i386_mxcsr_regnum_p): Declare.
1379 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1380 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1381 (IS_FP_REGNUM): Update definition.
1382 (IS_FPU_CTRL_REGNUM): Update definition..
1383 (IS_SSE_REGNUM): Update definition..
1384 * i386v-nat.c (register_u_addr): Update.
1385 * go32-nat.c (fetch_register): Update.
1386 (store_register): Update.
1387
1388 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1389
1390 Preparation work to convert the hppa targets to multiarch partial.
1391
1392 * hppa-tdep.c: Add new functions replacing macro bodies from
1393 config/pa/tm-hppa.h. These function will be used to initialize
1394 the gdbarch structure. Import some comments from tm-hppa.h,
1395 and place them where appropriate, to avoid loosing them when
1396 we cleanup this file.
1397 (hppa_reg_struct_has_addr): New function.
1398 (hppa_inner_than): New function.
1399 (hppa_stack_align): New function.
1400 (hppa_pc_requires_run_before_use): New function.
1401 (hppa_instruction_nullified): New function.
1402 (hppa_register_byte): New function.
1403 (hppa_register_virtual_type): New function.
1404 (hppa_store_struct_return): New function.
1405 (hppa_cannot_store_register): New function.
1406 (hppa_frame_args_address): New function.
1407 (hppa_frame_locals_address): New function.
1408 (hppa_smash_text_address): New function.
1409 (hppa_coerce_float_to_double): New function. Requires the inclusion
1410 of "language.h".
1411
1412 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1413
1414 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1415 gdbarch-eligible macro to a call to the new associated function
1416 created in hppa-tdep.c.
1417 (INNER_THAN): Likewise.
1418 (STACK_ALIGN): Likewise.
1419 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1420 (INSTRUCTION_NULLIFIED): Likewise.
1421 (REGISTER_BYTE): Likewise.
1422 (REGISTER_VIRTUAL_TYPE): Likewise.
1423 (STORE_STRUCT_RETURN): Likewise.
1424 (CANNOT_STORE_REGISTER): Likewise.
1425 (FRAME_ARGS_ADDRESS): Likewise.
1426 (FRAME_LOCALS_ADDRESS): Likewise.
1427 (SMASH_TEXT_ADDRESS): Likewise.
1428 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1429 (ABOUT_TO_RETURN): Delete, as no longer used.
1430
1431 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1432
1433 * printcmd.c (disassemble_command): Remove obsolete function.
1434 (_initialize_printcmd): Do not create disassemble command here.
1435 * cli/cli-cmds.c (disassemble_command): New function. Implements
1436 disassemble command.
1437 (init_cli_cmds): Create disassemble command here instead.
1438
1439 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1440
1441 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1442
1443 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1444
1445 * regcache.h (regcache_cooked_read_using_offset_hack)
1446 (regcache_cooked_write_using_offset_hack): Delete declarations.
1447 (register_changed): Delete declaration.
1448 * regcache.c (regcache_cooked_read_using_offset_hack)
1449 (regcache_cooked_write_using_offset_hack): Delete functions.
1450 (cooked_xfer_using_offset_hack): Delete function.
1451 (register_changed): Delete function.
1452
1453 2002-11-07 Jim Blandy <jimb@redhat.com>
1454
1455 * macroscope.c: #include "complaints.h".
1456 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1457 but not in the macro table.
1458 * Makefile.in (macroscope.o): Record dependency.
1459
1460 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1461
1462 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1463
1464 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1465
1466 * regcache.c (deprecated_registers_fetched): Update.
1467 * regcache.h (deprecated_registers_fetched): Rename
1468 registers_fetched.
1469 * remote-vxsparc.c (vx_read_register): Update.
1470 * remote-vxmips.c (vx_read_register): Update.
1471 * remote-vx68.c (vx_read_register): Update.
1472 * irix5-nat.c (fetch_core_registers): Update.
1473 * mipsm3-nat.c (fetch_inferior_registers): Update.
1474 * sun3-nat.c (fetch_inferior_registers): Update.
1475 * symm-nat.c (fetch_inferior_registers): Update.
1476 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1477 (fetch_core_registers): Update.
1478 (fetch_kcore_registers): Update.
1479 * mips-nat.c (fetch_inferior_registers): Update.
1480 * corelow.c (get_core_registers): Update.
1481 * a68v-nat.c (fetch_inferior_registers): Update.
1482
1483 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1484
1485 Put in place the framework necessary for multiarching the hppa targets.
1486 * hppa-tdep.c (hppa_gdbarch_init): New function.
1487 (hppa_dump_tdep): New function.
1488 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1489 tdep structure dumper.
1490 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1491 until the multi-arching conversion has partially been completed.
1492
1493 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1494
1495 * valops.c (value_assign): Merge lval_register case into
1496 lval_reg_frame_relative. Use frame_register and
1497 regcache_cooked_write instead of get_saved_register and
1498 write_register_bytes. After flushing the register cache, try to
1499 re-select the selected frame.
1500
1501 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1502
1503 * regcache.h (deprecated_register_valid): Rename register_valid.
1504 * regcache.c: Update.
1505 * ia64-aix-nat.c: Update.
1506 * i386gnu-nat.c: Update.
1507 * alpha-nat.c: Update.
1508 * sparc-nat.c: Update.
1509 * lynx-nat.c: Update.
1510 * remote-mips.c: Update.
1511
1512 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1513
1514 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1515 to end of file, to be more consistent with the pratice followed
1516 by other targets.
1517
1518 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1519
1520 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1521 (print_float_info): Print registers in float_reggroup.
1522 (print_vector_info): Print registers in vector_reggroup.
1523 (default_print_registers_info): When all, print registers in
1524 all_reggroup. Otherwize, print registers in general_reggroup.
1525 (registers_info): Rewrite. Add support for register groups.
1526 Eliminate a goto.
1527
1528 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1529
1530 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1531 ages.
1532 (symtab_symbol_info): Remove eons old ifdeffed out code.
1533 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1534 command.
1535
1536 2002-11-06 Theodore A. Roth <troth@openavr.org>
1537
1538 * c-exp.y: Add missing semi-colons.
1539 * f-exp.y: Add missing semi-colons.
1540 * m2-exp.y: Add missing semi-colons.
1541 * p-exp.y: Add missing semi-colons.
1542 Add empty action to start rule to avoid a type clash error when
1543 building with bison >= 1.50.
1544
1545 2002-11-06 Jim Blandy <jimb@redhat.com>
1546
1547 * macrotab.h (struct macro_source_file): Doc fix.
1548
1549 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1550
1551 * varobj.c (child_exists, cplus_number_of_children): Change
1552 STREQ macro references to strcmp.
1553 (cplus_name_of_child): Change code to handle the fact that
1554 fields are not necessarily contiguous with regards to their
1555 access control. This is a fix for PR gdb/792.
1556
1557 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1558
1559 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1560 * gdbarch.h, gdbarch.c: Regnerate.
1561 * frame.h (frame_register): Declare.
1562 * frame.c (frame_register): New function.
1563 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1564 GET_SAVED_REGISTER, otherwize call
1565 generic_unwind_get_saved_register.
1566 (frame_register_read): Use frame_register instead of
1567 get_saved_register.
1568
1569 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1570
1571 From Jim Ingham <jingham@apple.com>:
1572 * event-top.c (gdb_disable_readline): New function.
1573 (_initialize_event_loop): Move comment.
1574
1575 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1576
1577 * event-loop.c (start_event_loop): Add comment.
1578 Update copyright.
1579
1580 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1581
1582 * infcmd.c (default_print_registers_info): Do not call
1583 PRINT_REGISTER_HOOK.
1584
1585 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1586
1587 * sparc-tdep.c (sparc_print_register_hook): Make static.
1588 (sparc_print_registers_info): New function.
1589 (sparc_do_registers_info): New function.
1590 (sparclet_print_registers_info): New function.
1591 (sparclet_do_registers_info): New function.
1592 (do_sparc_print_registers_info): New function.
1593 (sparc_print_registers): New static function, clone of infcmd.c's
1594 default_print_registers_info.
1595 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1596 (sparclet_do_registers_info): Declare.
1597 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1598 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1599 Re-define.
1600 (sparc_do_registers_info): Declare.
1601 (PRINT_REGISTER_HOOK): Delete macro.
1602 (sparc_print_register_hook): Delete declaration.
1603
1604 2002-11-05 David Carlton <carlton@math.stanford.edu>
1605
1606 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1607 functions.
1608 (lookup_symbol_aux_local): New function.
1609 (lookup_symbol_aux_symtabs): New function.
1610 (lookup_symbol_aux_psymtabs): New function.
1611
1612 2002-11-05 David Carlton <carlton@math.stanford.edu>
1613
1614 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1615 previous values of 'objfile' and 'block'.
1616
1617 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1618
1619 * values.c (value_change_enclosing_type): Set
1620 enclosing_type field correctly also for the case where
1621 more memory needs to be allocated.
1622
1623 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1624
1625 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1626 of puts_filtered.
1627
1628 * i387-tdep.c (i387_print_float_info): Replace calls to
1629 register_read and deprecated_read_register_gen with calls to
1630 frame_register_read, and make the necessary adjustments to the
1631 surrounding code.
1632
1633 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1634
1635 * gdbarch.sh (register_reggroup_p): Allow default value.
1636 * gdbarch.h, gdbarch.c: Regenerate.
1637
1638 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1639
1640 * regcache.h: Add coment indicating replacements for deprecated
1641 functions.
1642
1643 2002-11-02 Andrew Cagney <cagney@redhat.com>
1644
1645 * reggroups.h, reggroups.c: New files.
1646 * regcache.c: Include "reggroups.h".
1647 (enum regcache_dump_what): Add `regcache_dump_groups'.
1648 (regcache_dump): Contract size of the "Type" column. When
1649 specified, dump the register's groups.
1650 (maintenance_print_register_groups): New function.
1651 (_initialize_regcache): Add command `maint print register-groups'.
1652 * Makefile.in (COMMON_OBS): Add reggroups.o
1653 (SFILES): Add reggroups.c.
1654 (reggroups_h): Define.
1655 (regcache.o, gdbarch.o): Update dependencies.
1656 (reggroups.o): Specify dependencies.
1657 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1658 Add opaque declaration for `struct reggroup' in generated .h file.
1659 Include "reggroups.h" in generated .c file.
1660 gdbarch.h, gdbarch.c: Re-generate.
1661
1662 2002-11-02 Andrew Cagney <cagney@redhat.com>
1663
1664 * regcache.h (deprecated_read_register_gen): Rename
1665 read_register_gen.
1666 (deprecated_write_register_gen): Rename write_register_gen.
1667 * i387-tdep.c: Update.
1668 * x86-64-linux-nat.c: Update
1669 * wince.c: Update.
1670 * thread-db.c: Update.
1671 * win32-nat.c: Update.
1672 * mips-tdep.c: Update.
1673 * d10v-tdep.c: Update.
1674 * cris-tdep.c: Update.
1675 * remote-sim.c: Update.
1676 * remote-rdi.c: Update.
1677 * remote-rdp.c: Update.
1678 * frame.c: Update.
1679 * target.c: Update.
1680 * blockframe.c: Update.
1681 * x86-64-tdep.c: Update.
1682 * xstormy16-tdep.c: Update.
1683 * sh-tdep.c: Update.
1684 * s390-tdep.c: Update.
1685 * rs6000-tdep.c: Update.
1686 * sparc-tdep.c: Update.
1687 * i386-tdep.c: Update.
1688 * dwarf2cfi.c: Update.
1689 * regcache.c: Update.
1690
1691 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1692
1693 New interix-specific files:
1694 * config/i386/nm-interix.h: New file.
1695 * config/i386/interix.mh: New file.
1696 * config/i386/interix.mt: New file.
1697 * i386-interix-nat.c: New file.
1698 * i386-interix-tdep.c: New file.
1699
1700 2002-11-01 Andrew Cagney <cagney@redhat.com>
1701
1702 * frame.h (deprecated_generic_get_saved_register): Rename
1703 generic_get_saved_register.
1704 * blockframe.c (deprecated_generic_get_saved_register): Update.
1705 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1706 (xstormy16_frame_saved_register): Update.
1707 * sh-tdep.c (sh_gdbarch_init): Update.
1708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1709 * ia64-tdep.c (ia64_get_saved_register): Update.
1710 * cris-tdep.c (cris_gdbarch_init): Update.
1711 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1712 * arm-tdep.c (arm_gdbarch_init): Update.
1713
1714 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1715
1716 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1717
1718 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1719
1720 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1721 trampolines in sigaction.
1722
1723 2002-10-31 Andrew Cagney <cagney@redhat.com>
1724
1725 * h8300-tdep.c: Include "gdb_assert.h".
1726 (h8300_print_register): Add gdbarch, file and frame parameters.
1727 Use frame_read_unsigned_register to read the register's value.
1728 Use fprintf_filtered to display output.
1729 (h8300_print_registers_info): Replace h8300_do_registers_info.
1730 (h8300_gdbarch_init): Set print_registers_info.
1731
1732 2002-10-31 Andrew Cagney <cagney@redhat.com>
1733
1734 * frame.c (frame_read_unsigned_register): New function.
1735 (frame_read_signed_register): New function.
1736 * frame.h (frame_read_unsigned_register): Declare.
1737 (frame_read_signed_register): Declare.
1738
1739 2002-10-31 Andrew Cagney <cagney@redhat.com>
1740
1741 * h8500-tdep.c (h8500_print_registers_info): New static function,
1742 clone of infcmd.c's default_print_registers_info.
1743 (h8500_do_registers_info): New funtion.
1744 (h8500_print_register_hook): Rename print_register_hook, make
1745 static.
1746
1747 * config/h8500/tm-h8500.h: Update copyright.
1748 (DEPRECATED_DO_REGISTERS_INFO): Define.
1749 (h8500_do_registers_info: Declare.
1750 (PRINT_REGISTER_HOOK): Delete macro.
1751 (print_register_hook): Delete function.
1752
1753 2002-10-31 Andrew Cagney <cagney@redhat.com>
1754
1755 * z8k-tdep.c (z8k_print_register_hook): Make static.
1756 (z8k_print_registers_info): New static function, clone of
1757 infcmd.c's default_print_registers_info.
1758 (z8k_do_registers_info): New function. Wrap
1759 z8k_print_registers_info.
1760 * config/z8k/tm-z8k.h: Update copyright.
1761 (PRINT_REGISTER_HOOK): Delete macro.
1762 (z8k_print_register_hook): Delete declaration.
1763 (DEPRECATED_DO_REGISTERS_INFO): Define.
1764 (z8k_do_registers_info): Declare.
1765
1766 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1767
1768 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1769 as this is already provided by value.h, and was actually causing
1770 a compilation error because of a conflict in parameter type
1771 declaration due to a missing const keyword.
1772 (low_text_segment_addres): Fix a compilation warning.
1773
1774 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1775
1776 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1777 registers without a name.
1778 (mips_linux_cannot_store_register): Don't store registers without
1779 a name.
1780
1781 2002-10-28 David Carlton <carlton@math.stanford.edu>
1782
1783 * symtab.c (find_addr_symbol): Delete. (It was already commented
1784 out.)
1785 * symtab.h: Delete prototype for find_addr_symbol.
1786
1787 2002-10-26 Andrew Cagney <cagney@redhat.com>
1788
1789 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1790 DO_REGISTERS_INFO.
1791 gdbarch.h, gdbarch.c: Re-generate.
1792 * infcmd.c (default_print_registers_info): Update reference.
1793 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1794 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1795 * sh-tdep.c (sh_gdbarch_init): Ditto.
1796 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1797 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1798
1799 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1800
1801 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1802 cfi_init_extra_frame_info.
1803 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1804 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1805
1806 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1807 target where necessary. Add more comments and remove the ones
1808 that don't provide any useful information.
1809
1810 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1811 deprecated_read_register_dummy with
1812 frame_unwind_unsigned_register.
1813
1814 * i386-tdep.c (i386_extract_struct_value_address): Use
1815 regcache_raw_read_unsigned instead of
1816 regcache_cooked_read_unsigned since we know that the register
1817 we're reading isn't a pseudo register. Rename variable 'val' into
1818 the more descriptive 'addr'.
1819
1820 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1821 (x86_64_push_return_address): Add comment.
1822 (x86_64_pop_frame): Make static.
1823 (examine_argument): Clarify comment.
1824 (x86_64_skip_prologue): Make prolog_expact variable static.
1825
1826 * dwarf2cfi.c: Fix some formatting problems.
1827 (context_cpy, read_encoded_pointer): Clarify comments.
1828
1829 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1830 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1831 i386 target back into x86_64_gdbarch_init. Add some comments and
1832 remove meaningless ones.
1833
1834 2002-10-25 Andrew Cagney <cagney@redhat.com>
1835
1836 * complaints.h (struct deprecated_complaint): Rename `struct
1837 complaint'.
1838 * complaints.c (complain): Update.
1839 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1840 incorrect comment indicating that "symfile.h" was being included
1841 for the `struct complaint' definition.
1842 * remote-vx.c: Update.
1843 * objc-lang.c: Update.
1844 * xcoffread.c: Update.
1845 * hpread.c: Update.
1846 * mdebugread.c: Update.
1847 * stabsread.c: Update.
1848 * dwarf2read.c: Update.
1849 * dwarfread.c: Update.
1850 * elfread.c: Update.
1851 * coffread.c: Update.
1852 * stabsread.h: Update.
1853 * dbxread.c: Update.
1854 * buildsym.c: Update.
1855 * gdbtypes.c: Update.
1856 * macrotab.c: Update.
1857
1858 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1859
1860 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1861 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1862 (x86_64_init_abi): ...new function.
1863
1864 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1865 * i386v-nat.c: Include "i386-tdep.h".
1866
1867 2002-10-25 Andrew Cagney <cagney@redhat.com>
1868
1869 * gdbtypes.c (address_space_name_to_int): Update.
1870 (address_space_int_to_name): Update.
1871 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1872 multi-arch predicate.
1873 (address_class_name_to_type_flags): Ditto.
1874 * gdbarch.h, gdbarch.c: Re-generate.
1875
1876 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1877
1878 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1879
1880 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1881
1882 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1883
1884 * symtab.h (INIT_SAL): Delete macro.
1885 (init_sal): Export.
1886 * symtab.c (init_sal): New function.
1887
1888 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1889 to init_sal function call.
1890 (find_sal_from_funcs_and_line): Ditto.
1891 (all_sals_for_line): Ditto.
1892 * breakpoint.c (create_internal_breakpoint): Ditto.
1893 (create_fork_vfork_event_catchpoint): Ditto.
1894 (create_exec_event_catchpoint): Ditto.
1895 (parse_breakpoint_sals): Ditto.
1896 (watch_command_1): Ditto.
1897 (handle_gnu_4_16_catch_command): Ditto.
1898 (clear_command): Ditto.
1899 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1900 * infcmd.c (run_stack_dummy): Ditto.
1901 * infrun.c (process_event_stop_test): Ditto.
1902 (check_sigtramp2): Ditto.
1903 (step_over_function): Ditto.
1904 * linespec.c (decode_line_2): Ditto.
1905 (decode_line_1): Ditto.
1906 * source.c (line_info): Ditto.
1907 * symtab.c (find_pc_sect_line): Ditto.
1908
1909 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1910
1911 * dwarf2cfi.c (struct context)
1912 (struct context_reg): Moved to dwarf2cfi.h
1913 (context_alloc, frame_state_alloc, context_cpy):
1914 Made extern instead of static, removed prototypes.
1915 * dwarf2cfi.h (struct context)
1916 (struct context_reg): New, moved from dwarf2cfi.c
1917 (context_alloc, frame_state_alloc, context_cpy):
1918 New prototypes.
1919 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1920 Changed from static to extern.
1921 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1922 (LINUX_SIGCONTEXT_FP_OFFSET)
1923 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1924 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1925 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1926 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1927 set_gdbarch_*() calls now use x86-64 specific functions
1928 instead of DWARF2 CFI ones.
1929 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1930 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1931 (x86_64_init_extra_frame_info): New prototypes.
1932
1933 2002-10-23 David Carlton <carlton@math.stanford.edu>
1934
1935 * linespec.c: #include "parser-defs.h".
1936 Delete prototype for find_template_name_end.
1937 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1938
1939 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1940
1941 * NEWS: add recent mi fixes.
1942 * varobj.c (struct varobj): Add new "updated" flag.
1943 (new_variable): Default "updated" flag to 0.
1944 (varobj_set_value): Set "updated" flag to 1 if value
1945 changes.
1946 (varobj_update): Check varobj "updated" flag before
1947 comparing old and refreshed values. Fix for
1948 PR gdb/702.
1949
1950 2002-10-23 David Carlton <carlton@math.stanford.edu>
1951
1952 * parse.c (parse_exp_1): Use BLOCK_START.
1953 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1954 SYMBOL_BLOCK_VALUE.
1955 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1956
1957 2002-10-23 David Carlton <carlton@math.stanford.edu>
1958
1959 * symtab.c: Delete cplusplus_hint.
1960 Delete prototype for find_template_name_end.
1961
1962 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1963
1964 * symtab.h: Update comment.
1965
1966 2002-10-23 Michael Snyder <msnyder@redhat.com>
1967
1968 * printcmd.c (address_info): Restore quotes in output.
1969 * valops.c (value_of_local): Restore quotes in error message.
1970
1971 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1972
1973 * symtab.c (symbol_demangled_name): New function.
1974 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1975 turning most of it into a function.
1976 (symbol_demangled_name): Export.
1977
1978 2002-10-23 Michael Snyder <msnyder@redhat.com>
1979
1980 * valops.c (value_of_local): Restore quotes in error message.
1981
1982 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1983
1984 * symtab.c (symbol_init_language_specific): New function.
1985 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1986 turning most of it into a function.
1987 (symbol_init_language_specific): Export.
1988
1989 2002-10-23 David Carlton <carlton@math.stanford.edu>
1990
1991 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1992 (dwarf_attr_name): Ditto.
1993 (dwarf_type_encoding_name): Ditto.
1994 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1995 (process_die): Handle DW_TAG_namespace,
1996 DW_TAG_imported_declaration, DW_TAG_imported_module.
1997 (read_namespace): New function.
1998
1999 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2000
2001 * configure.in: Define NEW_PROC_API on Interix too.
2002 * configure: Regenerate.
2003
2004 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2005
2006 * configure: Regenerate using the proper version of autoconf.
2007
2008 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * findvar.c (read_var_value): Temporarily disable TLS code, until
2011 complete TLS support is added.
2012
2013 2002-10-21 Jim Blandy <jimb@redhat.com>
2014 Elena Zannoni <ezannoni@redhat.com>
2015
2016 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2017 for thread local storage locations.
2018 (struct symbol): Add objfile field.
2019 (SYMBOL_OBJFILE): Define.
2020 * dwarf2read.c (is_thread_local): New static variable.
2021 (new_symbol): If variable is in thread local fill in address class
2022 and objfile appropriately.
2023 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2024 stack operation.
2025 * printcmd.c (address_info): Print the information for thread
2026 local storage variable.
2027 * findvar.c (read_var_value): In case of thread local variable,
2028 defer to the target vector code to compute address.
2029
2030 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2031
2032 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2033 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2034
2035 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2036
2037 * symtab.h (address_class): Rename
2038 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2039 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2040 * printcmd.c (address_info): Ditto.
2041 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2042
2043 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2044
2045 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2046 DBREG_DRX macro to acces debug registers.
2047
2048 * Makefile.in (i386obsd-tdep.o): New target.
2049
2050 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2051 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2052
2053 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2054 * config/i386/obsd.mt: New file.
2055 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2056 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2057 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2058 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2059 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2060 * i386obsd-tdep.c: New file.
2061
2062 2002-10-19 Adam Fedor <fedor@gnu.org>
2063
2064 * objc-exp.y (name_not_typename): Fix invalid comment.
2065
2066 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2067
2068 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2069 to allocate partial syms and macro byte caches.
2070
2071 2002-10-18 David Carlton <carlton@math.stanford.edu>
2072
2073 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2074
2075 2002-10-18 Adam Fedor <fedor@gnu.org>
2076
2077 * stabsread.c (find_name_end): New function.
2078 (define_symbol): Use it.
2079
2080 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2081
2082 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2083 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2084 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2085 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2086
2087 2002-10-17 David Carlton <carlton@math.stanford.edu>
2088
2089 * symfile.h: Add opaque declaration for struct obstack.
2090 Declare obsavestring to take a const char *.
2091 * symfile.c (obsavestring): Make first argument a const char *.
2092
2093 2002-10-16 Adam Fedor <fedor@gnu.org>
2094
2095 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2096 names when matching breakpoints in current file.
2097
2098 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2099
2100 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2101 (read_tag_pointer_type): Add address class support.
2102 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2103 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2104 New methods.
2105 * gdbarch.h, gdbarch.c: Regenerate.
2106 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2107 (make_type_with_address_space, recursive_type_dump): Add address
2108 class support.
2109 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2110 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2111 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2112
2113 2002-10-16 Klee Dienes <kdienes@apple.com>
2114
2115 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2116 to get the last character of a char[] buffer, not
2117 name[sizeof(vptr_name)-1].
2118
2119 2002-10-14 Adam Fedor <fedor@gnu.org>
2120
2121 * symtab.h: New objc_specific struct.
2122 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2123 (SYMBOL_DEMANGLED_NAME): Likewise.
2124
2125 2002-10-14 Adam Fedor <fedor@gnu.org>
2126
2127 * symfile.c (init_filename_language_table): Add ObjC file extension.
2128
2129 2002-10-14 Adam Fedor <fedor@gnu.org>
2130
2131 * utils.c (puts_filtered_tabular): New function.
2132 (fprintf_symbol_filtered): Get ObjC demangled name.
2133 * defs.h (puts_filtered_tabular): Declared.
2134
2135 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2136
2137 * c-lang.h (c_type_print_varspec_prefix): Delete.
2138 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2139 ``need_post_space'' parameter. Adjust all callers.
2140
2141 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2144 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2145 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2146 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2147
2148 2002-10-13 Adam Fedor <fedor@gnu.org>
2149
2150 * source.c (print_source_lines): Update comments.
2151
2152 2002-10-13 Adam Fedor <fedor@gnu.org>
2153
2154 * valops.c (value_of_local): New function.
2155 (value_of_this): Use it.
2156 * value.h (value_of_local): Declared.
2157
2158 2002-10-13 Adam Fedor <fedor@gnu.org>
2159
2160 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2161 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2162
2163 2002-10-12 Adam Fedor <fedor@gnu.org>
2164
2165 * language.c (binop_result_type): Add language_objc to case.
2166 (integral_type): Likewise.
2167 (character_type): Likewise.
2168 (string_type): Likewise.
2169 (boolean_type): Likewise.
2170 (structured_type): Likewise.
2171 (binop_type_check): Likewise.
2172
2173 2002-10-11 Adam Fedor <fedor@gnu.org>
2174
2175 * printcmd.c (address_info): Print 'self' for ObjC.
2176
2177 2002-10-11 Adam Fedor <fedor@gnu.org>
2178
2179 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2180 OP_SELF.
2181
2182 2002-10-11 Adam Fedor <fedor@gnu.org>
2183
2184 * language.h (CAST_IS_CONVERSION): Add language_objc.
2185
2186 2002-10-11 Adam Fedor <fedor@gnu.org>
2187
2188 * defs.h (enum language): Add language_objc.
2189
2190 2002-10-11 Klee Dienes <kdienes@apple.com>
2191
2192 * corefile.c (read_memory_typed_address): New function.
2193 * gdbcore.h (read_memory_typed_address): Add prototype.
2194 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2195 to read a value destined for a CORE_ADDR, not read_memory_integer.
2196 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2197 (f77_get_dynamic_lowerbound): Ditto.
2198
2199 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2200
2201 * utils.c (string_to_core_addr): After turning string into
2202 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2203 which will do necessary sign-extension, etc.
2204
2205 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2206
2207 * c-exp.y (THIS): Delete token and grammar rule.
2208 (yylex): Don't return THIS.
2209 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2210 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2211 * demangle.c (cplus_markers): Update comment. Put '$'
2212 first. Remove CPLUS_MARKER.
2213 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2214 * jv-exp.y (THIS): Delete token and grammar rule.
2215 (yylex): Don't return THIS.
2216 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2217 * objc-exp.y (THIS): Delete token and grammar rule.
2218 (yylex): Don't return THIS.
2219 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2220 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2221 (read_member_functions): Likewise for opname.
2222 (read_tilde_fields): Use is_cplus_marker.
2223
2224 * defs.h (CPLUS_MARKER): Don't define.
2225 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2226 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2227 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2228 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2229 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2230
2231 * config/i386/tm-i386v4.h: Delete file.
2232 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2233 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2234 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2235 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2236 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2237 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2238 * config/i386/i386v4.mt (TM_FILE): Likewise.
2239 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2240
2241 2002-10-10 Marko Mlinar <markom@opencores.org>
2242
2243 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2244 accidentially not commited 2002-10-09
2245 * gdbarch.h, gdbarch.c: Re-generate.
2246
2247 2002-10-09 Marko Mlinar <markom@opencores.org>
2248
2249 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2250 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2251 * gdbarch.h, gdbarch.c: Re-generate.
2252
2253 2002-10-08 Petr Sorfa <petrs@caldera.com>
2254
2255 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2256
2257 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2258 so we can work on more than one compilation unit at a time. This
2259 helps prepare GDB to handle inter-CU die references.
2260 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2261 the code to be defined before struct comp_unit_head.
2262 (comp_unit_head): Added new members - offset, cu_head,
2263 begin_die, next and dwarf2_abbrevs.
2264 (dwarf2_abbrevs): Removed single static var; now member of
2265 struct comp_unit_head.
2266 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2267 members.
2268 (psymtab_to_symtab_1): Changed to work with the new
2269 struct comp_unit_head.
2270 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2271 constructs the dwarf2_abbrevs[] inside the cu_header.
2272 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2273 dwarf2_abbrev table to clean up.
2274 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2275 handling of dwarf2_abbrevs inside the cu_header.
2276 (read_partial_die): Now supports the call to the new
2277 dwarf2_lookup_abbrev.
2278 (read_full_die): Now supports the call to the new
2279 dwarf2_lookup_abbrev.
2280
2281 2002-10-06 Christopher Faylor <cgf@redhat.com>
2282
2283 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2284 insure that shell variables, such as "transformed_name" are propagated
2285 to later shell statements in rule.
2286
2287 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2288
2289 * config/i386/nm-i386sco.h: Add protection against
2290 multiple-inclusion. Include "i386/nm-i386v.h".
2291 (REGISTER_U_ADDR): Remove define.
2292 (i386_register_u_addr): Remove prototype.
2293
2294 2002-10-04 Michael Snyder <msnyder@redhat.com>
2295
2296 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2297 before treating it as a single-step event.
2298
2299 2002-10-03 Adam Fedor <fedor@gnu.org>
2300
2301 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2302 (objc_demangle): Remove assignment in if statements, Replace
2303 free with xfree.
2304 (add_msglist): Likewise.
2305 (end_msglist): Likewise.
2306 (complare_selectors): Likewise.
2307 (selectors_info): Likewise.
2308 (compare_classes): Likewise.
2309 (classes_info): Likewise.
2310 (print_object_command): Likewise.
2311 (find_objc_msgcall_submethod): Replace PTR with void *.
2312 * objc-lang.h: Remove check for __STDC__.
2313
2314 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2315
2316 * ui-out.h (ui_out_field_fmt_int): New prototype.
2317 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2318 of field width and alignment.
2319 * stack.c (print_frame_info_base): When printing frame level, use
2320 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2321 PR gdb/192
2322
2323 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2324
2325 * MAINTAINERS: Add self to Write After Approval list.
2326
2327 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2328
2329 * infcmd.c (interrupt_target_command_wrapper): Delete.
2330 (interrupt_target_command): Make non static.
2331 (nofp_registers_info): Make static.
2332 * stack.c (return_command_wrapper): Delete.
2333 (return_command): Make non static.
2334
2335 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2336
2337 * event-top.c (gdb_setup_readline): New function. Code moved from
2338 _initialize_event_loop().
2339 (_initialize_event_loop): Call gdb_setup_readline().
2340
2341 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2342
2343 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2344 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2345 * gdbarch.h, gdbarch.c: Re-generate.
2346
2347 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2348
2349 Fix PR gdb/778
2350 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2351 before recursing.
2352 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2353 of fill_in_vptr_fieldno.
2354
2355 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2356
2357 * inferior.h (registers_info, stepi_command, nexti_command,
2358 continue_command, interrupt_target_command): Export from infcmd.c.
2359 * frame.h (args_info, selected_frame_level_changed_hook,
2360 return_command): Export from stack.c.
2361 * v850ice.c (stepi_command, nexti_command, continue_command): use
2362 prototypes from inferior.h.
2363 * tracepoint.c (registers_info, args_info, locals_info): Use
2364 prototypes from frame.h and inferior.h.
2365 * Makefile.in (mi-main.o): Add dependency on frame.h.
2366
2367 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2368
2369 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2370 value in register 3 adjusted by ppc_gp0_regnum.
2371
2372 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2373
2374 2002-10-02 Marko Mlinar <markom@opencores.org>
2375
2376 * MAINTAINERS: Add myself to the Write After Approval list.
2377
2378 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2379
2380 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2381 of the section for the N64 ABI, fixed.
2382
2383 * config/mips/tm-irix6.h: Include solib.h.
2384
2385 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2386
2387 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2388 GNU operators.
2389
2390 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2391
2392 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2393 and that "mi0" syntax has been removed.
2394
2395 2002-09-30 David Carlton <carlton@math.stanford.edu>
2396
2397 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2398 * ppc-sysv-tdep.c: #include "gdb_string.h".
2399 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2400 pacify GCC.
2401
2402 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2403
2404 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2405 "vrsave"'s register number.
2406
2407 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2408
2409 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2410 use frame_unwind_signed_register to obtain the PC.
2411 (mips_frame_chain): Handle a generic dummy frame.
2412 (mips_init_extra_frame_info): When a generic dummy frame, don't
2413 re-compute the frame base.
2414 (mips_pop_frame): Handle generic dummy frames.
2415 (mips_gdbarch_init): When generic dummy frames, set
2416 use_generic_dummy_frames, push_dummy_frame to
2417 generic_push_dummy_frame, pc_in_call_dummy to
2418 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2419 generic_save_dummy_frame_tos.
2420
2421 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2422
2423 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2424 against TOP when TOP was explictly set.
2425 (generic_push_dummy_frame): Set TOP to zero.
2426
2427 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2428
2429 * event-loop.c (start_event_loop): Rename variable 'result' to
2430 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2431
2432 2002-09-30 Keith Seitz <keiths@redhat.com>
2433
2434 * gdb-events.sh (selected_thread_changed): New event.
2435 * gdb-events.c: Regenerated.
2436 * gdb-events.h: Regenerated.
2437
2438 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2439
2440 * MAINTAINERS: Add self to Write After Approval list.
2441
2442 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2443
2444 * disasm.c: New file.
2445 * disasm.h: New file.
2446 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2447 (compare_lines): Ditto.
2448 (dump_insns): Ditto.
2449 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2450 argument.
2451 (do_assembly_only): Ditto.
2452 (do_disassembly): Renamed to gdb_disassembly and moved to
2453 disasm.c. Sdded uiout argument.
2454 * Makefile.in: Add new files. Reorder SFILES list. Update
2455 dependencies. Include libgdb.a later in the insight executable.
2456
2457 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2458
2459 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2460 bfd/elf64-alpha-fbsd.c.
2461
2462 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2463
2464 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2465 i386gnu-tdep.c.
2466
2467 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2468
2469 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2470 __FUNCTION__.
2471 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2472 function name.
2473 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2474 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2475 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2476 (S_msg_sig_post_reply): Ditto.
2477
2478 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2479
2480 * sh-tdep.c (sh_use_struct_convention): Use definition according
2481 to ABI.
2482 (sh_push_arguments): Store in register with correct endianess.
2483 (sh_default_store_return_value): Ditto.
2484 (sh_gdbarch_init): Set sizeof long double to 8.
2485
2486 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2487
2488 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2489 Fix some whitespace problems.
2490
2491 2002-09-27 David Carlton <carlton@math.stanford.edu>
2492
2493 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2494 (mcore-tdep.o): Ditto.
2495 (ns32k-tdep.o): Ditto.
2496 (ns32knbsd-tdep.o): Ditto.
2497 (sh3-rom.o): Ditto.
2498 (vax-tdep.o): Ditto.
2499 * cris-tdep.c: #include "gdb_string.h"
2500 * mcore-tdep.c: Ditto.
2501 * ns32k-tdep.c: Ditto.
2502 * ns32knbsd-tdep.c: Ditto.
2503 * sh3-rom.c: Ditto.
2504 * vax-tdep.c: Ditto.
2505
2506 2002-09-27 David Carlton <carlton@math.stanford.edu>
2507
2508 * config/djgpp/fnchange.lst: Add entries for
2509 gdb/testsuite/gdb.c++/m-static files.
2510
2511 2002-09-27 Jim Wilson <wilson@redhat.com>
2512
2513 * MAINTAINERS: Add myself to the Write After Approval list.
2514
2515 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2516
2517 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2518
2519
2520 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2521
2522 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2523 frame.
2524
2525 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2526
2527 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2528 (rs6000_struct_return_address): Delete variable.
2529 (rs6000_store_struct_return): Update.
2530 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2531 deprecated_extract_struct_value_address.
2532 (rs6000_frame_align): New function.
2533 (rs6000_gdbarch_init): Set frame_align.
2534
2535 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2536
2537 From Grace Sainsbury <graces@redhat.com>:
2538 * Makefile.in (gdbtk-main.o): New target.
2539 (gdb.o): New target.
2540 (main_h): Define.
2541 (main.o): Update dependencies.
2542 (gdb$(EXEEXT)): Add gdb.o.
2543 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2544 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2545 (SUBDIR_GDBTK_CLEAN): Set.
2546 (install-gdbtk): Install the insight binary.
2547 (uninstall-gdbtk): New target.
2548 (all-gdbtk, clean-gdbtk): New rule.
2549 * top.c (use_windows): Default to zero.
2550 * main.c: Include "main.h".
2551 (main): Delete.
2552 (struct captured_main_args): Delete.
2553 (gdb_main): New function.
2554 * main.h: New file.
2555 * gdb.c: New File.
2556
2557 2002-09-25 Andrew Cagney <cagney@redhat.com>
2558
2559 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2560 (frame_map_regnum_to_name): New function.
2561 (frame_map_name_to_regnum): New function.
2562 * frame.h (frame_map_name_to_regnum): Declare.
2563 (frame_map_regnum_to_name): Declare.
2564 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2565 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2566 * parse.c: Do not include "builtin-regs.h".
2567 (target_map_name_to_register): Delete function.
2568 (write_dollar_variable): Use frame_map_name_to_regnum.
2569 * parser-defs.h (target_map_name_to_register): Delete declaration.
2570 * expprint.c: Include "frame.h".
2571 (print_subexp): Use frame_map_regnum_to_name.
2572 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2573 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2574
2575 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2576
2577 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2578 wasn't saved, and the next innermost frame is a dummy, return the
2579 dummy frame's link register.
2580
2581 2002-09-24 Jim Blandy <jimb@redhat.com>
2582
2583 Fix from Paul Breed:
2584 * main.c (captured_main): Add a `break' after the case for 'b'.
2585
2586 2002-09-24 Keith Seitz <keiths@redhat.com>
2587
2588 * varobj.c (c_type_of_child): Use get_target_type instead
2589 of TYPE_TARGET_TYPE.
2590
2591 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2592
2593 * source.c (get_current_or_default_source_symtab_and_line): Remove
2594 function.
2595 (set_default_source_symtab_and_line): New function. Attempts to
2596 determine a source file to list lines from if one is not currently
2597 defined.
2598 (get_current_source_symtab_and_line): Initialize sal.pc and
2599 sal.end fields.
2600 (set_current_source_symtab_and_line): Mark argument as const.
2601 * source.h: Update declarations and comments.
2602 * linespec.c (decode_line_1): Replace call to removed routine above.
2603 * stack.c (print_frame_info_base): Ditto.
2604 * cli/cli-cmds.c (edit_command): Ditto.
2605 (list_command): Ditto.
2606
2607 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2608
2609 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2610 sal.pc and sal.end fields.
2611 (get_current_or_default_source_symtab_and_line): Ditto.
2612 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2613 so we do not cause a new source symtab to be searched for (reverting an
2614 unintentional change from the 2002-09-20 patch).
2615 * scm-lang.c (scm_unpac): Ditto.
2616
2617 2002-09-21 Andrew Cagney <cagney@redhat.com>
2618
2619 * complaints.c (symfile_explanations): Remove new-line from
2620 ``isolated_message''.
2621 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2622 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2623
2624 2002-09-20 Nick Clifton <nickc@redhat.com>
2625
2626 * NEWS: Announce that V850EA ISA is no longer supported.
2627 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2628
2629 2002-09-20 David Carlton <carlton@math.stanford.edu>
2630
2631 * Makefile.in (c-lang.o): Correct dependencies.
2632 (utils.o): Gather dependencies.
2633 (charset.o): Move.
2634 * c-lang.c: #include "gdb_string.h"
2635
2636 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2637
2638 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2639 * cli/cli-cmds.c (list_command): New function. Implements the new
2640 cli edit command.
2641 (_init_cli_cmds): Add new command definition.
2642 * gdb.1: Document edit command.
2643 * doc/gdb.texinfo: Document edit command.
2644
2645 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2646
2647 * source.c: Make global variables current_source_symtab and
2648 current_source_line static.
2649 (list_command): Moved to cli/cli-cmds.c.
2650 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2651 (get_first_line_listed): New accessor function.
2652 (get_lines_to_list): New accessor function.
2653 (get_current_source_symtab_and_line): New function. Retrieves the
2654 position in the source code that we consider current.
2655 (get_current_or_default_source_symtab_and_line): New function.
2656 Like the above but attempts to determine a default position if one
2657 is not currently defined.
2658 (set_current_source_symtab_and_line): New function. Sets the source
2659 code position considered current and returns the previously set one.
2660 (clear_current_source_symtab_and_line): Reset stored information about
2661 a current source line.
2662 (_initialize_source): Remove registration for the "list" command and
2663 its alias.
2664 * source.h: Add declarations for the new functions above.
2665 * symtab.h: Remove declarations for the global variables mentioned
2666 above.
2667 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2668 obtain current source line.
2669 * linespec.c (decode_line_1): Ditto.
2670 * macroscope.c (default_macro_scope): Ditto.
2671 * scm-lang.c (scm_unpac): Ditto.
2672 * stack.c (print_frame_info_base): Ditto.
2673 * symfile.c (clear_symtab_users): Ditto.
2674 * symtab.c (decode_line_spec): Ditto.
2675 * cli/cli-cmds.c (list_command): Moved here from source.c.
2676 (ambiguous_line_spec): Moved here from source.c.
2677 (_init_cli_cmds): Add definition for "list" and its alias.
2678 * Makefile.in: Update dependencies.
2679
2680 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2681
2682 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2683 with what gcc thinks is correct.
2684
2685 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2686
2687 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2688 multiple register push instruction.
2689
2690 2002-09-19 Jim Blandy <jimb@redhat.com>
2691
2692 Add support for distinct host and target character sets.
2693 * charset.c, charset.h: New files.
2694 * c-exp.y: #include "charset.h".
2695 (yylex): Convert character and string literals to the target
2696 character set, before returning them as the semantic value of the
2697 token.
2698 * c-lang.c: #include "charset.h".
2699 (c_emit_char): Use charset-specific methods to recognize
2700 characters with backslash escape forms, to decide which characters
2701 to print literally and which to print using numeric escape
2702 sequences, and to convert target characters to host characters
2703 before printing.
2704 * utils.c: #include "charset.h".
2705 (no_control_char_error): New function.
2706 (parse_escape): Use charset-specific methods to recognize
2707 backslash escapes, parse `control character' notation, and convert
2708 characters from the host character set to the target character set.
2709 * configure.in: Set the default host character set.
2710 Check where to find iconv, and what its argument types might be.
2711 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2712 * Makefile.in (SFILES): List charset.c.
2713 (COMMON_OBS): List charset.o.
2714 (charset.o): New rule.
2715 (charset_h): New header dependency variable.
2716 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2717 (LIBICONV): New variable, set by configure.
2718 (CLIBS): Include $(LIBICONV) here.
2719 * aclocal.m4, config.in, configure: Regenerated.
2720
2721 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2722
2723 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2724 bison 1.35 warning.
2725
2726 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2727
2728 * gdb_mbuild.sh: New file.
2729
2730 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2731
2732 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2733
2734 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2735
2736 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2737 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2738 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2739 valops.c, value.h: Revert previous change.
2740
2741 2002-09-18 Michael Snyder <msnyder@redhat.com>
2742
2743 Preliminary support for Objective-C:
2744 * defs.h (language_objc): New enum value.
2745 (puts_filtered_tabular): Declaration only, exported from utils.c.
2746 (skip_quoted): Delete, declared in completer.h.
2747 * c-exp.y: Include completer.h.
2748 * p-exp.y: Ditto.
2749 * jv-exp.y: Ditto.
2750 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2751 New operator enum values.
2752 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2753 * language.c (binop_result_type): Handle language_objc case.
2754 (integral_type, character_type, string_type, boolean_type,
2755 structured_type, binop_type_check): Ditto.
2756 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2757 (struct objc_specific): Add to general_symbol_info.
2758 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2759 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2760 * parser-defs.h (struct objc_class_str): New struct type.
2761 (start_msglist, end_msglist, add_msglist): Declaration only,
2762 exported from objc-lang.c.
2763 * value.h (value_of_local, value_nsstring,
2764 call_function_by_hand_expecting_type): Exported from valops.c.
2765 * valops.c (find_function_addr): Export.
2766 (call_function_by_hand_expecting_type): New function.
2767 (value_of_local): New function.
2768 * symfile.c (init_filename_language_table): Add ".m" extension
2769 for Objective-C.
2770 * utils.c (puts_filtered_tabular): New function.
2771 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2772 (set/show demangle): Extend help-string to refer to ObjC.
2773 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2774 * stabsread.c (symbol_reference_defined): Objective-C symbols
2775 may contain colons: make allowances when scanning stabs strings
2776 for colons.
2777 (objc_find_colon): New function.
2778 * printcmd.c (address_info): If language == objc then print
2779 "self" instead of "this".
2780 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2781 OP_NSSTRING, and OP_SELF.
2782 (prefixify_subexp): Ditto.
2783 * source.c (print_source_lines): Mention objc in comment.
2784 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2785 method names.
2786
2787 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2788
2789 * complaints.h: Update copyright.
2790 (struct complaints): Declare.
2791 (struct complaint): Make `message' constant.
2792 (internal_complaint): Declare.
2793 (complaint): Declare.
2794 (complaint_root): Delete declaration.
2795 (symfile_complaints): Delete declaration.
2796 (struct complaints): Add opaque declaration.
2797 (clear_complaints): Add a complaints parameter.
2798 * complaints.c: Update copyright.
2799 (enum complaint_series): Define.
2800 (complaint_root): Delete.
2801 (struct complaints): Define.
2802 (complaint_sentinel, symfile_complaint_book): New variables.
2803 (symfile_explanations, symfile_complaints): New variables.
2804 New variables.
2805 (get_complaints): New function.
2806 (vcomplaint): New function.
2807 (complaint): New function.
2808 (internal_complaint): New function.
2809 (complain): Call vcomplain with symfile_complaint.
2810 (clear_complaints): Rewrite.
2811 (_initialize_complaints): Use add_setshow_command.
2812 * Makefile.in (complaints.o): Update dependencies.
2813 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2814 to call to clear_complaints.
2815 (new_symfile_objfile, reread_symbols): Ditto.
2816 (oldsyms_complaint): Delete.
2817 (empty_symtab_complaint, unknown_option_complaint): Delete.
2818 (free_named_symtabs): Use complaint instead of complain.
2819
2820 2002-09-18 Michael Snyder <msnyder@redhat.com>
2821
2822 Contributed by Apple Computer, Inc. Merged with current sources
2823 by Adam Fedor <fedor@doc.com> [cagney].
2824
2825 * objc-lang.c: First clean-up round: comments, indentation.
2826 * objc-lang.h: Ditto.
2827 * objc-lang.y: Ditto.
2828
2829 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2830
2831 * maint.c (maintenance_internal_error): Print the parameter as the
2832 error message.
2833 (maintenance_internal_warning): New function.
2834 (_initialize_maint_cmds): Add command `maint internal-warning'.
2835
2836 * defs.h (internal_warning, internal_vwarning): Declare.
2837 * utils.c (struct internal_problem): Define.
2838 (internal_vproblem): New function.
2839 (internal_warning): New function.
2840 (internal_vwarning): New function.
2841 (internal_warning_problem, internal_error_problem): New variables.
2842 (internal_verror): Just call internal_vproblem.
2843
2844 2002-09-18 Michael Snyder <msnyder@redhat.com>
2845
2846 * objc-lang.c: New file, support for Objective-C.
2847 Preliminary check-in, not yet integrated into gdb.
2848 * objc-lang.h: New file.
2849 * objc-exp.y: New file.
2850
2851 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2852
2853 * infrun.c (signal_stop_update): Convert definition to ISO C.
2854 (signal_print_update): Ditto.
2855 (signal_pass_update): Ditto.
2856 * inflow.c (terminal_save_ours): Ditto.
2857
2858 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2859 comments.
2860
2861 * config/djgpp/fnchange.lst: Handle name clashes between
2862 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2863 bfd/coff-tic80.c.
2864
2865 * i386-linux-tdep.h: Fix tipo.
2866
2867 2002-09-18 Adam Fedor <fedor@gnu.org>
2868
2869 * MAINTAINERS: Add myself to the Write After Approval list.
2870
2871 2002-09-18 Jim Blandy <jimb@redhat.com>
2872
2873 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2874 texthigh and textlow to reader-specific structs caused
2875 objfile_relocate to miss them. This is fixable, but the work that
2876 the change was supposed to prepare GDB for never got done anyway.
2877
2878 2002-09-18 David Carlton <carlton@math.stanford.edu>
2879
2880 * MAINTAINERS: Alphabetize Write After Approval list.
2881
2882 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2883
2884 Fix PR gdb/709
2885 * values.c (value_static_field): Call read_var_value.
2886
2887 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2888
2889 * valops.c (hand_function_call): Align the initial stack pointer
2890 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2891 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2892 return value.
2893 * mips-tdep.c (mips_frame_align): New function.
2894 (mips_gdbarch_init): Set frame_align.
2895 * gdbarch.sh (FRAME_ALIGN): New method.
2896 * gdbarch.h, gdbarch.c: Re-generate.
2897
2898 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2899
2900 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2901 registers.
2902
2903 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2904
2905 * NEWS: Mention that MIPS $fp behavior changed.
2906 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2907 reference to FP_REGNUM.
2908 (mipsnbsd_cannot_store_register): Ditto.
2909 * mips-linux-nat.c: Update copyright.
2910 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2911 (mips_linux_cannot_store_register): Ditto.
2912 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2913 * config/mips/tm-mips.h: Update copyright.
2914 (FP_REGNUM): Delete macro.
2915 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2916 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2917 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2918 (mips_r3041_reg_names, mips_r3051_reg_names)
2919 (mips_r3081_reg_names): Replace "fp" with "".
2920 Fix PR gdb/480.
2921
2922 2002-09-17 Theodore A. Roth <troth@verinet.com>
2923
2924 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2925 generic_read_register_dummy() (PR gdb/703).
2926 (avr_push_return_address): #if 0 out unused vars.
2927 (avr_gdbarch_init): Enable use of avr_push_return_address().
2928
2929 2002-09-17 Michael Snyder <msnyder@redhat.com>
2930
2931 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2932 RTE will take care of it.
2933
2934 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2935
2936 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2937 invalid, return SP_REGNUM.
2938
2939 2002-09-17 Michael Snyder <msnyder@redhat.com>
2940
2941 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2942 point registers without sign extension.
2943
2944 2002-09-17 Andrew Cagney <cagney@redhat.com>
2945
2946 * blockframe.c (deprecated_read_register_dummy): Rename
2947 generic_read_register_dummy.
2948 * frame.c (frame_unwind_signed_register): New function.
2949 (frame_unwind_unsigned_register): New function.
2950 * frame.h (frame_unwind_signed_register): Declare.
2951 (frame_unwind_unsigned_register): Declare.
2952 (deprecated_read_register_dummy): Rename
2953 generic_read_register_dummy.
2954
2955 * h8300-tdep.c (h8300_frame_chain): Update.
2956 (h8300_frame_saved_pc): Update.
2957 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2958 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2959 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2960 (s390_frame_chain): Update.
2961 * v850-tdep.c (v850_find_callers_reg): Update.
2962 (v850_frame_saved_pc): Update.
2963 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2964 (m32r_find_callers_reg): Update.
2965 (m32r_frame_saved_pc): Update.
2966 * sh-tdep.c (sh_find_callers_reg): Update.
2967 (sh64_get_saved_pr): Update.
2968 (sh_init_extra_frame_info): Update.
2969 (sh_init_extra_frame_info): Update.
2970 (sh64_init_extra_frame_info): Update.
2971 (sh64_init_extra_frame_info): Update.
2972 * mcore-tdep.c (mcore_find_callers_reg): Update.
2973 (mcore_frame_saved_pc): Update.
2974 (mcore_init_extra_frame_info): Update.
2975 * i386-tdep.c (i386_frame_saved_pc): Update.
2976 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2977 (ia64_init_extra_frame_info): Update.
2978 (ia64_init_extra_frame_info): Update.
2979 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2980 * cris-tdep.c (cris_init_extra_frame_info): Update.
2981 * avr-tdep.c (avr_frame_chain): Update.
2982 (avr_init_extra_frame_info): Update.
2983 (avr_frame_saved_pc): Update.
2984 * arm-tdep.c (arm_find_callers_reg): Update.
2985 (arm_init_extra_frame_info): Update.
2986 (arm_frame_saved_pc): Update.
2987
2988 2002-09-17 Tom Tromey <tromey@redhat.com>
2989
2990 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2991 is "'".
2992
2993 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2994
2995 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2996 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2997 NEXT_PROLOGUE_INSN.
2998 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2999 NEXT_PROLOGUE_INSN.
3000
3001 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3002
3003 * osfsolib.c: Remove file, replaced by solib-osf.c.
3004 * Makefile.in: Remove compilation rules for osfsolib.c.
3005
3006 2002-09-16 David Carlton <carlton@math.stanford.edu>
3007
3008 * cp-valprint.c (cp_print_class_method): Correct args to
3009 check_stub_method_group.
3010
3011 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3012
3013 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3014 `set architecture'. Unify naming convention of functions.
3015 (h8300_skip_prologue): Improve prologue analysis.
3016 (h8300_push_arguments): Rewritten to more closely match GCC's
3017 bizarre argument-passing behavior, along with the comment describing
3018 said behavior.
3019 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3020 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3021 sim, remote-e7000.c, remote-hms.c and remote.c
3022
3023 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3024
3025 * i386-tdep.c (gdb_print_insn_i386): Removed.
3026 (i386_print_insn): New function.
3027 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3028 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3029 tm_print_insn_info.
3030
3031 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3032
3033 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3034 zero.
3035
3036 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3037
3038 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3039 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3040 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3041
3042 2002-09-13 Christopher Faylor <cgf@redhat.com>
3043
3044 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3045
3046 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3047
3048 * gdbtypes.c (check_stub_method): Make static.
3049 (check_stub_method_group): New function.
3050 * gdbtypes.h: Update prototypes.
3051 * cp-support.c: New file.
3052 * cp-support.h: New file.
3053
3054 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3055 (update_method_name_from_physname): New function.
3056 (read_member_functions): Correct method names for operators
3057 and v3 constructors/destructors. Separate v2 constructors and
3058 destructors.
3059 * Makefile.in (stabsread.o): Update dependencies.
3060 (SFILES): Add cp-support.c.
3061 (COMMON_OBS): Add cp-support.o.
3062 (cp_support_h, cp-support.o): Add.
3063
3064 * cp-valprint.c (cp_print_class_method): Call
3065 check_stub_method_group instead of check_stub_method. Remove
3066 extraneous QUITs.
3067 * p-valprint.c (pascal_object_print_class_method): Likewise.
3068 * valops.c (search_struct_method): Likewise.
3069 (find_method_list, value_struct_elt_for_reference): Likewise.
3070
3071 2002-09-13 Andrew Cagney <cagney@redhat.com>
3072
3073 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3074 * gdbarch.h, gdbarch.c: Regenerate.
3075
3076 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3077
3078 * frame.c (find_saved_register): Delete function.
3079 * frame.h (find_saved_register): Delete declaration.
3080 Fix PR gdb/631.
3081
3082 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3083
3084 * mips-tdep.c (read_next_frame_reg): Re-hack using
3085 frame_register_unwind.
3086
3087 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3088
3089 * mips-tdep.c (mips_get_saved_register): Re-hack using
3090 frame_register_unwind.
3091
3092 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3093
3094 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3095 vector. Will be useful for Interix.
3096 * gdbarch.h, gdbarch.c: Regenerate.
3097
3098 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3099 name of the malloc function by NAME_OF_MALLOC.
3100
3101 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3102
3103 * value.h (find_function_in_inferior): Add const keyword to
3104 one of the parameters. Allows us to invoke this function with
3105 a const char *.
3106 * valops.c (find_function_in_inferior): Likewise.
3107
3108 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3109
3110 * exec.c (xfer_memory): Fix compilation warning with old versions
3111 of GCC.
3112 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3113
3114 2002-09-12 David Carlton <carlton@math.stanford.edu>
3115
3116 * symtab.h: Run through gdb_indent.h.
3117 Add 2002 to Copyright year list.
3118
3119 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3120
3121 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3122 mach constants.
3123 * MAINTAINERS: Add myself to write after approval list.
3124
3125 2002-09-11 J. Brobecker <brobecker@gnat.com>
3126
3127 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3128
3129 2002-09-11 J. Brobecker <brobecker@gnat.com>
3130
3131 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3132 Interix.
3133
3134 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3135
3136 * procfs.c (do_detach): Clear current signal, not just fault.
3137 Corrects problem with breakpoint trap signal leaking to detached
3138 process on Tru64.
3139
3140 2002-09-10 Michael Snyder <msnyder@redhat.com>
3141
3142 * buildsym.c (finish_block): Protect against null pointer.
3143
3144 2002-09-10 Andrew Cagney <cagney@redhat.com>
3145
3146 * infcmd.c (default_print_registers_info): Send all output to
3147 ``file'' instead of ``gdb_stdout''.
3148
3149 2002-09-10 Michael Snyder <msnyder@redhat.com>
3150
3151 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3152 LONGEST, and use signed register read (addresses are sign-
3153 extended for mips).
3154
3155 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3156
3157 * event-loop.c (gdb_do_one_event): Make public.
3158 * event-loop.h (gdb_do_one_event): Declare.
3159
3160 2002-09-10 Jeff Law <law@redhat.com>
3161
3162 * infttrace.c (child_resume): Simplify and rework to avoid
3163 TT_PROC_CONTINUE.
3164
3165 2002-09-09 Fred Fish <fnf@intrinsity.com>
3166
3167 * printcmd.c (print_scalar_formatted): "len" is the number of
3168 target bytes, NOT the number of target bits.
3169
3170 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3171
3172 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3173 * top.c (init_main): Set rl_terminal_name.
3174
3175 2002-09-08 Aidan Skinner <aidan@velvet.net>
3176
3177 * ada-lang.c (ada_array_bound, ada_type_match,
3178 _initialize_ada_language): Fix K&R definitions.
3179 * ada-tasks.c (get_current_task): Fix K&R definitions.
3180 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3181
3182 2002-09-07 Christopher Faylor <cgf@redhat.com>
3183
3184 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3185 Add XP.
3186
3187 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3188
3189 * i386-tdep.c (i386_register_virtual_type,
3190 i386_register_convertible, i386_register_convert_to_virtual,
3191 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3192 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3193 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3194 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3195 Don't set push_arguments twice.
3196
3197 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3198 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3199 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3200 sigtramp_end to NULL.
3201 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3202 defines.
3203 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3204
3205 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3206 whitespace.
3207
3208 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3209 * gdbarch.h, gdbarch.c: Re-generate.
3210 * blockframe.c (find_pc_sect_partial_function): Convert to use
3211 SIGTRAMP_START_P predicate.
3212
3213 2002-09-05 Michael Snyder <msnyder@redhat.com>
3214
3215 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3216 generic_dummy_frame method and old method. Also distinguish
3217 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3218 (arm_extract_return_value): Use new regcache method.
3219
3220 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3221 adjustment that doesn't conform to the ABI.
3222 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3223 saved regcache, not from current regcache.
3224
3225 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3226
3227 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3228 * README: Update.
3229
3230 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3231
3232 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3233 if arm_apcs_32 is false.
3234
3235 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3236
3237 GDB 5.3 branch created.
3238
3239 2002-09-03 Theodore A. Roth <troth@verinet.com>
3240
3241 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3242 generic_unwind_get_saved_register.
3243
3244 2002-09-03 David Carlton <carlton@math.stanford.edu>
3245
3246 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3247 argument (PR gdb/653). Update call to smash_to_method_type.
3248 (read_structure_scope): Update call to dwarf2_add_member_fn.
3249
3250 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3251
3252 * x86-64-linux-tdep.c: Include gdb_string.h
3253 * x86-64-linux-nat.c: Ditto.
3254
3255 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3256
3257 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3258 when YYDEBUG is set to 1.
3259 * c-exp.y: Likewise.
3260 * f-exp.y: Likewise.
3261 * jv-exp.y: Likewise.
3262 * m2-exp.y: Likewise.
3263 * p-exp.y: Likewise.
3264
3265 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3266
3267 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3268 dependency list.
3269 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3270 solib_svr4_fetch_link_map_offsets to
3271 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3272 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3273 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3274 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3275 solib-svr4.o, and solib-legacy.o.
3276 * config/i386/tm-nbsd.h: Include solib.h.
3277
3278 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3279
3280 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3281 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3282 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3283 comment noting that this needs its own target configuration.
3284 * config/i386/nbsd.mt: New file.
3285 * config/i386/nbsdaout.mt: Remove.
3286 * config/i386/nbsdelf.mt: Ditto.
3287 * config/i386/tm-nbsdaout.h: Ditto.
3288
3289 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3290
3291 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3292 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3293 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3294 tdep->sigtramp_end.
3295 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3296 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3297 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3298
3299 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3300
3301 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3302 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3303 * i386-tdep.h (i386bsd_init_abi): New prototype.
3304 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3305 function declaration.
3306 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3307 for NetBSD-a.out or NetBSD-ELF.
3308 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3309 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3310 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3311 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3312 and nbsd-tdep.h.
3313 (i386nbsd_pc_in_sigtramp): New function.
3314 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3315 i386nbsd_pc_in_sigtramp.
3316 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3317 and i386nbsdelf_init_abi OS ABI handlers.
3318 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3319 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3320
3321 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3322
3323 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3324 registers if the target really has them.
3325
3326 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3327
3328 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3329 than nbsd-tdep.h.
3330
3331 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3332
3333 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3334 list.
3335 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3336 (alphanbsd_skip_sigtramp_frame): New functions.
3337 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3338 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3339 to alphanbsd_sigcontext_addr.
3340
3341 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3342
3343 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3344 list.
3345 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3346 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3347 nbsd_pc_in_sigtramp.
3348 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3349 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3350 * nbsd-tdep.c: Include gdb_string.h.
3351 (nbsd_pc_in_sigtramp): New function.
3352 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3353 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3354 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3355 ppcnbsd_pc_in_sigtramp.
3356 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3357 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3358 shnbsd_pc_in_sigtramp.
3359 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3360 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3361 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3362
3363 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3364
3365 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3366 watchpoints to NULL.
3367 (insert_breakpoints): set val field of watchpoints if NULL.
3368
3369
3370 2002-08-29 Jim Blandy <jimb@redhat.com>
3371
3372 * symtab.c (lookup_symbol_aux): In the cases where we find a
3373 minimal symbol of an appropriate name and use its address to
3374 select a symtab to read and search, use `name' (as passed to us)
3375 as the demangled name when searching the symtab's global and
3376 static blocks, not the minsym's name.
3377
3378 2002-08-29 Keith Seitz <keiths@redhat.com>
3379
3380 * stack.c (print_frame_info_base): Always set current_source_symtab
3381 and current_source_line.
3382
3383 2002-08-29 Donn Terry <donnte@microsoft.com>
3384
3385 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3386
3387 2002-08-28 Keith Seitz <keiths@redhat.com>
3388
3389 * stack.c (select_frame): Add FIXME concerning selected-frame
3390 events.
3391 (select_frame_command): Send selected-frame-level-changed
3392 event notification, but only if the level actually changed.
3393 (up_silently_base): Add selected-frame-level-changed event
3394 notification.
3395 (down_silently_base): Likewise.
3396
3397 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3398
3399 * Makefile.in: Update dependencies for all gdb/*.c files.
3400
3401 2002-08-27 Tom Tromey <tromey@redhat.com>
3402
3403 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3404 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3405 Update dependencies.
3406 * i387-tdep.c: Include gdb_string.h.
3407 * osabi.c: Likewise.
3408 * i386-linux-nat.c: Likewise.
3409 * lin-lwp.c: Likewise.
3410 * ax-gdb.c: Likewise.
3411 * signals/signals.c: Likewise.
3412 * jv-valprint.c: Likewise.
3413 * p-lang.c: Likewise.
3414 * c-valprint.c: Likewise.
3415 * cp-abi.c: Likewise.
3416
3417 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3418
3419 * cli/cli-script.h (copy_command_lines): Export.
3420 * breakpoint.c: Include cli/cli-script.h.
3421 * Makefile.in (breakpoint.o): Update dependencies.
3422
3423 2002-08-26 Michael Snyder <msnyder@redhat.com>
3424
3425 * breakpoint.c (insert_breakpoints): Protect all references
3426 to 'process_warning'. Shorten long lines.
3427
3428 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3429
3430 * cli/cli-script.c (copy_command_lines): New function.
3431 * defs.h (copy_command_lines): Export.
3432 * testsuite/gdb.base/commands.exp: New tests for commands
3433 attached to a temporary breakpoint, and for commands that
3434 delete the breakpoint they are attached to.
3435
3436 2002-08-26 Michael Snyder <msnyder@redhat.com>
3437
3438 * breakpoint.c (bpstat_stop_status): Instead of copying the
3439 pointer to the breakpoint commands struct, make a new copy
3440 of the struct and point to that.
3441 (bpstat_clear): Free the commands struct.
3442 (bpstat_clear_actions): Free the commands struct.
3443 (bpstat_do_actions): Free the command actions. Also execute
3444 the local cleanups, instead of deleting them.
3445 (delete_breakpoint): Leave the commands field of the bpstat
3446 chain alone -- it will be freed later.
3447
3448 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3449
3450 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3451 deleted in 2002-08-20 commit. This function is still used by
3452 ppc-linux-nat.c.
3453
3454 2002-08-26 Keith Seitz <keiths@redhat.com>
3455
3456 * gdb-events.sh: Add selected-frame-level-changed event.
3457 * gdb-events.c: Regenerated.
3458 * gdb-events.h: Regenerated.
3459
3460 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3461
3462 Fix PR gdb/393:
3463 * inflow.c (terminal_save_ours): New function to save terminal
3464 settings.
3465 * inferior.h (terminal_save_ours): Declare.
3466 * target.c (debug_to_terminal_save_ours): New function.
3467 (cleanup_target): Defaults to_terminal_save_ours.
3468 (update_current_target): Inherit to_terminal_save_ours.
3469 (setup_target_debug): Set to_terminal_save_ours.
3470 * target.h (target_terminal_save_ours): New to save terminal settings.
3471 (target_ops): New member to_terminal_save_ours.
3472 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3473 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3474 * inftarg.c (init_child_ops): Likewise.
3475 * m3-nat.c (init_m3_ops): Likewise.
3476 * procfs.c (init_procfs_ops): Likewise.
3477 * wince.c (init_child_ops): Likewise.
3478 * win32-nat.c (init_child_ops): Likewise.
3479 * sol-thread.c (init_sol_thread_ops): Likewise.
3480
3481 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3482
3483 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3484 use regcache_* functions.
3485 (i386_gdbarch_init): Set store_return_value instead of
3486 deprecated_store_return_value.
3487
3488 * regcache.c (regcache_raw_write_signed,
3489 regcache_raw_write_unsigned): New functions.
3490 * regcache.h (regcache_raw_write_signed,
3491 regcache_raw_write_unsigned): New prototypes.
3492
3493 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3494
3495 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3496 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3497 source file dependencies. Cleanup corresponding generator rules.
3498
3499 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3500
3501 * regcache.h (register_offset_hack): Declare.
3502 (regcache_cooked_read_using_offset_hack): Declare.
3503 (regcache_cooked_write_using_offset_hack): Declare.
3504
3505 * regcache.c (register_offset_hack): New function.
3506 (regcache_cooked_read_using_offset_hack): New function.
3507 (regcache_cooked_write_using_offset_hack): New function.
3508 (regcache_dump): Check that the registers, according to their
3509 offset, are packed hard against each other.
3510 (cooked_xfer_using_offset_hack): New function.
3511
3512 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3513
3514 * regcache.c (struct regcache_descr): Add field register_type.
3515 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3516 in as a parameter
3517 (init_regcache_descr): Initialize register_type. Pass the descr
3518 to init_legacy_regcache_descr. Use register_type instead of
3519 REGISTER_VIRTUAL_TYPE.
3520 (register_type): New function.
3521 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3522 * regcache.h (register_type): Declare.
3523
3524 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3525
3526 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3527 instead of deprecated_store_return_value. Fix fallout from
3528 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3529
3530 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3531
3532 * regcache.c (max_register_size): New function.
3533 (init_legacy_regcache_descr): Ensure that max_register_size is
3534 large enough for REGISTER_VIRTUAL_SIZE.
3535 * regcache.h (max_register_size): Declare.
3536
3537 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3538
3539 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3540 store_return_value.
3541 (e500_extract_return_value): Change type of valbuf pointer to
3542 void.
3543
3544 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3545
3546 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3547 workaround.
3548
3549 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3550 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3551 long long) to prevent compiler warning on 64-bit systems.
3552
3553 2002-08-23 Andrew Cagney <cagney@redhat.com>
3554
3555 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3556 (DEPRECATED_STORE_RETURN_VALUE): New method.
3557 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3558 * gdbarch.h, gdbarch.c: Re-generate.
3559
3560 * values.c (set_return_value): Pass current_regcache to
3561 STORE_RETURN_VALUE.
3562 * arch-utils.h (legacy_store_return_value): Declare.
3563 * arch-utils.c (legacy_store_return_value): New function.
3564 (legacy_extract_return_value): Update parameters.
3565
3566 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3567 STORE_RETURN_VALUE.
3568 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3569 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3570 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3571 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3572 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3573 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3574 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3575 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3576 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3577 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3578
3579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3580 * i386-tdep.c (i386_extract_return_value): Update.
3581 * arch-utils.c (legacy_extract_return_value): Update.
3582 * frv-tdep.c (frv_gdbarch_init): Update.
3583 * cris-tdep.c (cris_gdbarch_init): Update.
3584 * d10v-tdep.c (d10v_gdbarch_init): Update.
3585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3586 * m68k-tdep.c (m68k_gdbarch_init): Update.
3587 * mcore-tdep.c (mcore_gdbarch_init): Update.
3588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3589 * s390-tdep.c (s390_gdbarch_init): Update.
3590 * sparc-tdep.c (sparc_gdbarch_init): Update.
3591 * sh-tdep.c (sh_gdbarch_init): Update.
3592 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3593 * v850-tdep.c (v850_gdbarch_init): Update.
3594 * avr-tdep.c (avr_gdbarch_init): Update.
3595 * ia64-tdep.c (ia64_gdbarch_init): Update.
3596 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3597 * vax-tdep.c (vax_gdbarch_init): Update.
3598 * alpha-tdep.c (alpha_gdbarch_init): Update.
3599 * arm-tdep.c (arm_gdbarch_init): Update.
3600 * mips-tdep.c (mips_gdbarch_init): Update.
3601 * i386-tdep.c (i386_gdbarch_init): Update.
3602
3603 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3604
3605 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3606 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3607
3608 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3609
3610 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3611 problems.
3612
3613 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3614
3615 * infrun.c (handle_inferior_event): Move a comment outside of a
3616 function call, in order to avoid indent reformatting this part
3617 of the code in an unreadable way.
3618
3619 2002-08-23 Grace Sainsbury <graces@redhat.com>
3620
3621 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3622 when breakpoints fail. Move general breakpoint error messages to
3623 insert_breakpoints.
3624 * breakpoint.c (insert_breakpoints): Change warnings when
3625 breakpoints are nto inserted to specify the type. Remove call to
3626 memory_error when hardware breakpoints can't be inserted. Remove
3627 multiple calls to warning so all messages are sent to the user at
3628 once.
3629 (delete_breakpoints): Make insert error messsages more explicit.
3630
3631 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3632
3633 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3634 gdbserver/ChangeLog.
3635
3636 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3637
3638 * i386-tdep.c: Include "objfiles.h".
3639 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3640 skip_trampoline_code.
3641 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3642 (CPLUS_MARKER): Define to '.'.
3643
3644 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3645 member.
3646 (linux_corefile_thread_callback): Increase args->num_notes.
3647 (linux_make_note_section): Initialize thread_args.num_notes, and
3648 use it to determine whether notes for any threads were created.
3649
3650 2002-08-23 Donn Terry <donnte@microsoft.com>
3651
3652 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3653 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3654 and PCUNKILL.
3655 (write_with_trace): Conditionalize out the switch branch handling
3656 PCSHOLD if the corresponding macro is not defined. Likewise for
3657 PRSABORT and PRSTOP.
3658 This change will be needed by the Interix port.
3659
3660 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3661
3662 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3663 write_register wherever possible instead of manipulating the
3664 register bytes directly.
3665 Assign VALUE_CONTENTS to a variable and use that.
3666 The GPR numbers are now dependent on the architecture.
3667
3668 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3669
3670 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3671 ev_offset fields.
3672 (skip_prologue): Add support for BookE/e500 instructions.
3673 (e500_extract_return_value): New function.
3674 (frame_get_saved_regs): Add support for saving ev registers and
3675 pseudo gpr's.
3676 (e500_store_return_value): New function.
3677 (rs6000_gdbarch_init): Move up default intializations of
3678 deprecated_extract_return_value and store_return_value. Overwrite
3679 init of store_return_value with e500 specific version.
3680 Set extract_return_value for e500.
3681
3682 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3683
3684 * blockframe.c (generic_call_dummy_register_unwind): Use
3685 regcache_cooked_read to catch cases in which the variable is
3686 stored in a pseudo register.
3687
3688 2002-08-22 Andrew Cagney <cagney@redhat.com>
3689
3690 * NEWS: Mention that the i960 has been made obsolete.
3691 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3692 i960-tdep.c
3693 (remote-nrom.o): Obsolete target.
3694 (remote-nindy.o, i960-tdep.o): Ditto.
3695 * remote-nrom.c: Make file obsolete.
3696 * remote-nindy.c, remote-vx960.c: Ditto.
3697 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3698 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3699 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3700 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3701 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3702 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3703 i960-*-vxworks* obsolete.
3704 * MAINTAINERS: Note that the i960 is obsolete.
3705
3706 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3707
3708 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3709 detach to allow reinitialization.
3710
3711 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3712
3713 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3714 attempt).
3715
3716 2002-08-22 Jim Blandy <jimb@redhat.com>
3717
3718 * coffread.c (coff_symfile_read): Don't try to read the line
3719 number table from disk if the image file doesn't have a symbol
3720 table; we'll never actually look at the info anyway, and Windows
3721 ships DLL's with bogus file offsets for the line number data.
3722
3723 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3724
3725 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3726 an e500 executable.
3727
3728 2002-08-21 Michael Snyder <msnyder@redhat.com>
3729
3730 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3731 (MSYMBOL_SIZE): Replace macro with function.
3732 (DEFAULT_MIPS_TYPE): Delete unused macro.
3733 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3734 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3735
3736 2002-08-21 Jim Blandy <jimb@redhat.com>
3737
3738 * valops.c (value_cast): Simplify and correct logic for doing a
3739 static cast from a pointer to a base class to a pointer to a
3740 derived class.
3741
3742 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3743
3744 * infcmd.c (default_print_registers_info): Replace
3745 do_registers_info.
3746 (registers_info): Use gdbarch_print_registers_info instead of
3747 DO_REGISTERS_INFO.
3748 * inferior.h (default_print_registers_info): Replace
3749 do_registers_info.
3750 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3751 (DO_REGISTERS_INFO): Change to a predicate function.
3752 * gdbarch.h, gdbarch.c: Regenerate.
3753
3754 2002-08-21 Keith Seitz <keiths@redhat.com>
3755
3756 * gdb-events.sh: Add target-changed event.
3757 * gdb-events.c: Regenerated.
3758 * gdb-events.c: Regenerated.
3759 * valops.c (value_assign): Add target-changed event notification
3760 to inlval_register, lval_memory, and lval_reg_frame_relative.
3761
3762 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3763
3764 * NEWS: Add an entry regarding the improvement of the next/step
3765 operation on Alpha Tru64 multi-processor machines.
3766
3767 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3768
3769 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3770 directores.
3771 * Makefile.in: Update all _h macro definitions.
3772 * Makefile.in (install-gdbtk): Move to install section.
3773 (rdi-share/libangsd.a): Move to end of file.
3774
3775 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3776
3777 * frame.c (frame_register_unwind): When a register, set addrp to
3778 the register's byte.
3779
3780 2002-08-20 Michael Snyder <msnyder@redhat.com>
3781
3782 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3783 used locally, so move them from the target machine header to here.
3784 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3785 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3786 Make static.
3787 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3788
3789 2002-08-20 Andrew Cagney <cagney@redhat.com>
3790
3791 * NEWS: Mention that the Apollo line was made obsolete.
3792 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3793 m68*-hp-hpux* obsolete.
3794 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3795 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3796 * buildsym.c (make_blockvector): Make static.
3797 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3798 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3799 (ALLDEPFILES): Remove dstread.c.
3800 (dstread.o): Obsolete make rule.
3801 * dstread.c: Makefile obsolete.
3802 * dst.h: Ditto.
3803 * config/m68k/hp300hpux.mt: Ditto.
3804 * config/m68k/hp300hpux.mh: Ditto.
3805 * config/m68k/hp300bsd.mt: Ditto.
3806 * config/m68k/hp300bsd.mh: Ditto.
3807 * config/m68k/apollo68b.mt: Ditto.
3808 * config/m68k/apollo68v.mh: Ditto.
3809 * config/m68k/apollo68b.mh: Ditto.
3810
3811 2002-08-20 Michael Snyder <msnyder@redhat.com>
3812
3813 * mips-tdep.c (mips_in_return_stub): Make static.
3814 (mips_gdbarch_init): Set in_solib_return_trampoline.
3815 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3816
3817 2002-08-20 Michael Snyder <msnyder@redhat.com>
3818
3819 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3820 * gdbarch.c, gdbarch.h: Regenerate.
3821 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3822 Add.
3823 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3824
3825 2002-08-20 Michael Snyder <msnyder@redhat.com>
3826
3827 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3828 (mips_gdbarch_init): Set skip_trampoline_code,
3829 in_solib_call_trampoline.
3830 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3831 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3832
3833 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3834
3835 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3836
3837 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3838 vector type for ev registers.
3839 (e500_pseudo_register_read): New function.
3840 (e500_pseudo_register_write): New function.
3841 (e500_dwarf2_reg_to_regnum): New function.
3842 (PPC_UISA_NOFP_SPRS): New macro.
3843 (PPC_EV_REGS): New macro.
3844 (PPC_GPRS_PSEUDO_REGS): New macro.
3845 (registers_e500): New register set for e500.
3846 (variants): Add e500 variant.
3847 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3848 before setting architectural dependent variations. Initialize ev
3849 registers numbers. Add case for e500 architecture. Set the
3850 number of pseudo registers.
3851
3852 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3853
3854 * rs6000-tdep.c: Clean up comments.
3855
3856 2002-08-20 Andrew Cagney <cagney@redhat.com>
3857
3858 * h8300-tdep.c: Re-indent file.
3859
3860 2002-08-20 Jim Blandy <jimb@redhat.com>
3861
3862 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3863 default for this.
3864
3865 2002-08-20 Keith Seitz <keiths@redhat.com>
3866
3867 * breakpoints.c (watch_command_1): Use internal breakpoint
3868 when setting a watchpoint_scope breakpoint.
3869
3870 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3871
3872 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3873 (build_builtin_type_vec64i): Ditto.
3874 (build_builtin_type_vec128): Ditto.
3875 (build_builtin_type_vec128i): Ditto.
3876
3877 2002-08-19 Michael Snyder <msnyder@redhat.com>
3878
3879 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3880 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3881 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3882 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3883 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3884 CALL_DUMMY_ADDRESS): Delete.
3885 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3886 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3887 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3888 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3889 push_return_address.
3890 (mips_register_raw_size, mips_eabi_use_struct_convention,
3891 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3892 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3893 mips_init_extra_frame_info, mips_eabi_push_arguments,
3894 mips_n32n64_push_arguments, mips_push_return_address,
3895 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3896 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3897
3898 2002-08-19 Michael Snyder <msnyder@redhat.com>
3899
3900 * mips-tdep.c (mips_frame_num_args): New function.
3901 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3902 frame_saved_pc, frame_args_address, frame_locals_address,
3903 frame_num_args, and frame_args_skip.
3904 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3905 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3906 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3907 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3908
3909 2002-08-20 Michael Snyder <msnyder@redhat.com>
3910
3911 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3912 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3913 * mips-tdep.c (mips_store_struct_return): New function.
3914 (mips_extract_struct_value_address): New function.
3915 (mips_gdbarch_init): Set store_struct_return and
3916 extract_struct_value_address.
3917
3918 2002-08-20 David Carlton <carlton@math.stanford.edu>
3919
3920 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3921 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3922 (read_file_scope): Check that line_header is nonzero before
3923 decoding macro information.
3924
3925 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3926
3927 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3928 flag the general-purpose registers as floating-point on targets
3929 that don't support the floating-point registers.
3930
3931 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3932
3933 * rs6000-tdep.c (altivec_register_p): Delete.
3934 (rs6000_do_altivec_registers): Delete.
3935 (rs6000_altivec_registers_info): Delete.
3936 (rs6000_do_registers_info): Delete.
3937 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3938 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3939
3940 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3941
3942 * infcmd.c (do_registers_info): Print vector registers in hex
3943 format only.
3944 (print_vector_info): Check that printing registers
3945 makes sense.
3946 (print_float_info): Ditto.
3947
3948 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3949
3950 * mips-tdep.c (mips_gdbarch_init): Update.
3951 (mips_o32_extract_return_value): Rewrite.
3952 (mips_o32_store_return_value): Rewrite.
3953 (mips_o32_xfer_return_value): New function.
3954 (mips_xfer_register): Tweak debug print message. Allow for
3955 buf_offset when dumping the value transfered.
3956
3957 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3958
3959 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3960 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3961 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3962 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3963 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3964
3965 2002-08-14 Michael Snyder <msnyder@redhat.com>
3966
3967 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3968
3969 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3970
3971 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3972 register.
3973 (P): New macro to define a register as a pseudo register.
3974 (R, R4, R8, R16, FR32, R64, R0): Updated.
3975 (struct variant): Add new fields for number of pseudo registers
3976 and number of total registers.
3977 (tot_num_registers): New macro replacing....
3978 (num_registers): ...deleted macro.
3979 (num_registers): New function.
3980 (num_pseudo_registers): New function.
3981 (variants): Update all variants to intialize new fields correctly.
3982 Postpone initialization of number of pseudo regs and real regs.
3983 (init_variants): New function.
3984 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3985 registers offsets.
3986
3987 2002-08-19 David Carlton <carlton@math.stanford.edu>
3988
3989 * valops.c (search_struct_field): Change error message to treat
3990 return value of 0 from value_static_field as meaning that field is
3991 optimized out.
3992 (value_struct_elt_for_reference): Ditto.
3993 * values.c (value_static_field): Treat an unresolved location the
3994 same as a nonexistent symbol. Fix PR gdb/635.
3995 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3996 enclosed. Fix PR gdb/574.
3997 * MAINTAINERS: Add self to Write After Approval list.
3998
3999 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4000
4001 * mips-tdep.c (mips_xfer_register): New function.
4002 (mips_n32n64_extract_return_value): Rewrite.
4003 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4004 instead of deprecated_extract_return_value.
4005
4006 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4007
4008 * rs6000-tdep.c (TDEP): Delete macro.
4009 (branch_dest): Replace use of TDEP macro with its body.
4010 (rs6000_pop_frame): Ditto.
4011 (rs6000_push_arguments): Ditto.
4012 (rs6000_skip_trampoline_code): Ditto.
4013 (rs6000_frame_saved_pc): Ditto.
4014 (rs6000_frame_chain): Ditto.
4015 (rs6000_register_name): Ditto.
4016 (rs6000_register_byte): Ditto.
4017 (rs6000_register_raw_size): Ditto.
4018 (rs6000_register_virtual_type): Ditto.
4019 (rs6000_register_convertible): Ditto.
4020 (rs6000_convert_from_func_ptr_addr): Ditto.
4021
4022 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4023
4024 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4025 conditionally.
4026 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4027 MIPS_LINUX_JB_ELEMENT_SIZE.
4028 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4029 for MAX_REGISTER_RAW_SIZE arrays.
4030 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4031 MIPS_LINUX_JB_ELEMENT_SIZE.
4032
4033 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4034
4035 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4036
4037 2002-08-19 Aidan Skinner <aidan@velvet.net>
4038
4039 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4040 ada-valprint.c ada-tasks.c.
4041 (YYFILES): Add ada-exp.y.
4042 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4043 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4044 (ada-exp.tab.o): New target.
4045
4046 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4047
4048 * regcache.c (regcache_xfer_part): New function.
4049 (regcache_raw_read_part): New function.
4050 (regcache_raw_write_part): New function.
4051 (regcache_cooked_read_part): New function.
4052 (regcache_cooked_write_part): New function.
4053 * regcache.h (regcache_raw_read_part): Declare.
4054 (regcache_raw_write_part): Declare.
4055 (regcache_cooked_read_part): Declare.
4056 (regcache_cooked_write_part): Declare.
4057
4058 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * remote.c (remote_open_1): Add async_p.
4061 (remote_async_open_1): Delete.
4062 (open_remote_target): Delete.
4063 (remote_open, extended_remote_open): Update calls to remote_open_1.
4064 (remote_async_open, extended_remote_async_open): Call
4065 remote_open_1 instead of remote_async_open_1.
4066
4067 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4068
4069 * blockframe.c: Fix a few coding standard violations.
4070
4071 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4072
4073 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4074 here from ...
4075 * config/i386/tm-i386sco5.h: ... here. File removed.
4076 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4077
4078 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4079 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4080 (TM_FILE): Set to tm-i386.h.
4081 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4082 * config/i386/tm-i386v.h: Remove file.
4083 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4084 instead of "i386/tm-i386v.h".
4085 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4086 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4087 "i386/tm-i386v.h".
4088 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4089 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4090 "i386/tm-i386.h".
4091
4092 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4093
4094 * config/i386/nm-i386v.h: Add protection against
4095 multiple-inclusion.
4096 (i386_register_u_addr): Remove prototype.
4097 (register_u_addr): New prototype.
4098 (REGISTER_U_ADDR): Redefine accordingly.
4099 * i386v-nat.c: Improve several comments.
4100 (i386_register_u_addr): Change signature and rename to
4101 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4102 ubase variable.
4103
4104 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4105
4106 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4107 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4108 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4109 deprecated_extract_return_value.
4110 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4111 rename mips_o32o64_push_arguments.
4112 (mips_gdbarch_init): Update.
4113 (mips_extract_return_value): Delete.
4114 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4115 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4116 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4117 (mips_n32n64_extract_return_value): Clone
4118 mips_extract_return_value.
4119 (mips_store_return_value): Delete.
4120 (mips_o32_store_return_value): Clone mips_store_return_value.
4121 (mips_o64_store_return_value): Clone mips_store_return_value.
4122 (mips_eabi_store_return_value): Clone mips_store_return_value.
4123 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4124
4125 2002-08-18 Aidan Skinner <aidan@velvet.net>
4126
4127 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4128 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4129
4130 2002-08-18 Aidan Skinner <aidan@velvet.net>
4131
4132 * ada-lang.c: Run through gdb_indent.sh.
4133 * ada-lang.h: Run through gdb_indent.sh.
4134 * ada-tasks.c: Run through gdb_indent.sh.
4135 * ada-typeprint.c: Run through gdb_indent.sh.
4136 * ada-valprint.c: Run through gdb_indent.sh.
4137
4138 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4139
4140 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4141 ABI.
4142
4143 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4144
4145 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4146
4147 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4148 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4149
4150 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4151 write_register_gen instead of write_register_bytes.
4152
4153 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4154 i[3456]-*-osf1mk* configurations have been made obsolete.
4155 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4156 i[3456]86-*-osf1mk* hosts obsolete.
4157 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4158 targets obsolete.
4159 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4160 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4161 config/i386/i386m3.mt, config/i386/nm-m3.h,
4162 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4163 config/i386/i386mk.mh, config/i386/i386mk.mt,
4164 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4165 obsolete.
4166 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4167 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4168 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4169
4170 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4171
4172 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4173 (hppa_value_returned_from_stack): Declare.
4174 (hppa_extract_return_value): Declare.
4175 * config/pa/hppa.mt: New file.
4176 * configure.tgt: Recognize hppa*-*-*.
4177 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4178
4179 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4180
4181 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4182 comment.
4183
4184 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4185
4186 * top.c (gdb_rl_operate_and_get_next): Make sure
4187 operate-and-get-next functions correctly even when the history
4188 list is completely filled.
4189
4190 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4191
4192 * MAINTAINERS (Target Instruction Set Architectures): Rename
4193 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4194 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4195 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4196 already listed under Host/Native.
4197
4198 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4199 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4200 mips*-*-*.
4201
4202 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4203
4204 * config/ia64/ia64.mt: New file.
4205 * config/alpha/alpha.mt: New file.
4206 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4207 ia64-linux-gnu. Mention that ia64-elf is broken.
4208 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4209
4210 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4211
4212 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4213 generic_func_frame_valid instead of func_frame_valid.
4214
4215 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4216
4217 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4218 procfs appears to be broken when debugging on multi-processor
4219 machines. So enable software single stepping in order to avoid
4220 using the procfs interface to do next/step operations, using
4221 internal breakpoints instead.
4222
4223 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4224 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4225 make this pc address equal to the value it would have if the
4226 system stepping capability was used. Also set a new flag used
4227 to ensure that we don't readjust the PC one more time later.
4228
4229 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4230 address by DECR_PC_AFTER_BREAK when software single step is
4231 in use for this architecture, as this has already been taken
4232 care of in handle_inferior_event().
4233
4234 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4235
4236 * infrun.c (handle_inferior_event): Minor reformatting, to make
4237 a rather long condition expression easier to read.
4238
4239 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4240
4241 * Makefile.in (gdbtk.o): Move to end of file.
4242 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4243 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4244 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4245 (gdbtk-wrapper.o, gdbres.o): Ditto.
4246
4247 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4248
4249 * Makefile.in (copying.o): Separate out compile rule.
4250 (hpux-thread.o, procfs.o, signals.o): Ditto.
4251 (v850ice.o, z8k-tdep.o): Ditto.
4252 (tui-file.o): Move to TUI section.
4253 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4254 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4255
4256 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4257
4258 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4259 skip_trampoline_code, for better namespace-proofing.
4260
4261 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4262
4263 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4264
4265 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4266
4267 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4268
4269 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4270 signal, check whether we hit a breakpoint before checking for a
4271 single step breakpoint. Otherwise, GDB fails to notice that a
4272 breakpoint has been hit when stepping onto a breakpoint.
4273
4274 2002-08-16 Keith Seitz <keiths@redhat.com>
4275
4276 * gdb-events.sh (clear_gdb_event_hooks): New function.
4277 * gdb-events.c: Regenerate.
4278 * gdb-events.h: Regenerate.
4279
4280 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4281
4282 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4283 not_a_sw_breakpoint.
4284 * breakpoint.h (bpstat_stop_status): Add parameter names.
4285
4286 2002-08-16 Grace Sainsbury <graces@redhat.com>
4287
4288 * remote.c (remote_insert_hw_breakpoint)
4289 (remote_remove_hw_breakpoint): Fix calculation of length field
4290 for Z-packet.
4291
4292 2002-08-15 Michael Snyder <msnyder@redhat.com>
4293
4294 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4295 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4296 (supply_fpregset): Ditto.
4297
4298 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4299 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4300 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4301 (TARGET_READ_SP): Delete.
4302 (DO_REGISTERS_INFO): Delete.
4303 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4304 Delete.
4305 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4306 from macros to functions.
4307
4308 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4309 (mips_register_convertible, mips_register_convert_to_virtual,
4310 mips_register_convert_to_raw): Make static.
4311 (mips_read_sp): New function.
4312 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4313 (mips_do_registers_info): Make static.
4314 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4315 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4316 (mips_register_convert_from_type, mips_register_convert_to_type):
4317 New functions.
4318 (mips_gdbarch_init): Set up function_start_offset,
4319 register_virtual_size, pc_in_sigtramp.
4320
4321 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4322
4323 * infcmd.c (vector_info): New function.
4324 (_initialize_infcmd): Add command "info vector".
4325 (print_vector_info): New function.
4326
4327 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4328 * gdbarch.h, gdbarch.c: Regenerate.
4329
4330 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4331
4332 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4333 ``print_all''. Only print vector registers when ``print_all''.
4334
4335 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4336
4337 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4338 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4339
4340 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4341 Add `args' parameter.
4342 * gdbarch.h, gdbarch.c: Regenerate.
4343
4344 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4345
4346 * infcmd.c (float_info): Call print_float_info.
4347 (print_float_info): New function. By default, print the
4348 floating-point registers.
4349
4350 * arch-utils.h (default_print_float_info): Delete declaration.
4351 * arch-utils.c (default_print_float_info): Delete function.
4352
4353 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4354
4355 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4356 out define.
4357
4358 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4359 FRAME.
4360
4361 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4362 * configure.host: Make i[3456]86-*-aix host obsolete.
4363 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4364 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4365 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4366 config/i386/xm-i386aix.h: Make files obsolete.
4367 * i386aix-nat.c: Make file obsolete.
4368 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4369 (i386aix-nat.o): Make target obsolete.
4370
4371 * config/i386/nm-gnu.h: Removed.
4372 * config/i386/nm-i386gnu.h: New file.
4373 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4374 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4375 Moved here from ...
4376 * config/i386/tm-i386gnu.h: ... here. Removed.
4377 * config/i386/xm-i386gnu.h: Removed.
4378 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4379 (NAT_FILE): Set to nm-i386gnu.h.
4380 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4381 * i386-tdep.c: New file.
4382 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4383 (i386gnu-tdep.o): Specify dependencies.
4384
4385 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4386
4387 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4388 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4389 Adjust a few comments to reflect reality a bit closer.
4390 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4391 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4392 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4393 target_insert_watchpoint, target_remove_watchpoint):
4394 Move defines to ...
4395 * config/i386/nm-i386sco5.h: ... here.
4396 (kernel_u_size): Add prototype. Improve a few comments and add
4397 protection against multiple inclusion.
4398
4399 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4400 out define.
4401
4402 * uw-thread.c (SP_ARG0): Define if not already defined.
4403 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4404
4405 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4406
4407 * config/i386/tm-i386.h: Don't include "regcache.h".
4408
4409 * i387-tdep.h (i387_print_float_info): New prototype.
4410 * i387-tdep.c (print_i387_value, print_i387_ext,
4411 print_i387_status_word, print_i387_control_word): Add `struct
4412 ui_file *' argument and use it for output.
4413 (i387_print_float_info): Renamed from i387_float_info. Add
4414 `struct gdbarch *' and `struct ui_file *' arguments and use the
4415 latter for output.
4416 * i386-tdep.c: Include "i387-tdep.h".
4417 (i386_gdbarch_init): Set print_float_info.
4418 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4419 (FLOAT_INFO): Remove define.
4420
4421 2002-08-13 Michael Snyder <msnyder@redhat.com>
4422
4423 * mips-tdep.c (mips_push_arguments): Rename to
4424 mips_eabi_push_arguments, and tune for EABI.
4425 (MIPS_REGS_HAVE_HOME_P): Delete.
4426 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4427 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4428 Delete references to mips_regs_have_home_p.
4429
4430 2002-08-14 Keith Seitz <keiths@redhat.com>
4431
4432 * Makefile.in (install-gdbtk): Create insight plugin directory.
4433 Install plugins.tcl file.
4434
4435 2002-08-14 Keith Seitz <keiths@redhat.com>
4436
4437 * configure.in: Move SUBDIRS to near top of the file so that
4438 --enable options may add things to it.
4439 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4440 * configure: Regenerate.
4441
4442 2002-08-13 Michael Snyder <msnyder@redhat.com>
4443
4444 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4445 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4446 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4447
4448 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4449
4450 * vax-tdep.c (vax_get_saved_register): Delete function.
4451 (vax_gdbarch_init): Update.
4452 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4453 (ns32k_gdbarch_init): Update.
4454 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4455 (alpha_gdbarch_init): Update.
4456
4457 2002-08-13 Andrew Cagney <cagney@redhat.com>
4458
4459 * regcache.c (init_regcache_descr): Overallocate the
4460 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4461 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4462 nr_raw_registers.
4463 (set_register_cached): Add range checking assertions. Use
4464 current_regcache.
4465
4466 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4467
4468 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4469 numbers for MMX registers.
4470
4471 2002-08-13 Andrew Cagney <cagney@redhat.com>
4472
4473 * i386-tdep.c (i386_gdbarch_init): Use
4474 generic_unwind_get_saved_register.
4475
4476 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4477
4478 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4479 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4480 target vector.
4481 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4482 Delete. Add comment regarding this now-deleted target method.
4483
4484 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4485
4486 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4487 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4488 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4489 real PC and the page number (if it's within the memory bank window).
4490 (m68hc11_pseudo_register_write): Likewise when saving.
4491 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4492 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4493 (m68hc11_register_raw_size): And use 32-bit for it.
4494 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4495 16K memory bank is used by the prog; also use the virtual pc.
4496
4497 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4498
4499 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4500 (m68hc11_gdbarch_init): Install it in gdbarch.
4501 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4502 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4503 (MSYMBOL_SIZE): New for documentation.
4504 (insn_return_kind): Enum to specify how a function returns.
4505 (frame_extra_info): Cleanup and record the return mode.
4506 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4507 register in address computation.
4508 (m68hc11_get_return_insn): New to obtain the return instruction used
4509 by the function.
4510 (m68hc11_frame_init_saved_regs): Take into account the return
4511 instruction used by the function for far and interrupt functions.
4512 (m68hc11_init_extra_frame_info): Take into account page register.
4513 (m68hc11_frame_args_address): Adjust according to the return mode.
4514 (show_regs): Print page register only when it's used.
4515
4516 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4517
4518 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4519 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4520 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4521 registers.
4522 (m68hc11_register_raw_size): Likewise.
4523
4524 2002-08-13 Andrew Cagney <cagney@redhat.com>
4525
4526 * i386-tdep.c (i386_register_name): Handle mmx registers.
4527 (mmx_regnum_p): New function.
4528 (i386_mmx_names): New array.
4529 (mmx_num_regs): New variable.
4530 (i386_pseudo_register_read): New function.
4531 (i386_pseudo_register_write): New function.
4532 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4533
4534 * regcache.c (regcache_raw_read_unsigned): New function.
4535 (regcache_raw_read_signed): New function.
4536 * regcache.h (regcache_raw_read_unsigned): Declare.
4537 (regcache_raw_read_signed): Declare.
4538
4539 2002-08-13 Andrew Cagney <cagney@redhat.com>
4540
4541 * regcache.c (regcache_raw_read_as_address): Delete function.
4542 (regcache_cooked_read_signed): New function.
4543 (regcache_cooked_read_unsigned): New function.
4544 * regcache.h (regcache_cooked_read_signed): Declare.
4545 (regcache_cooked_read_unsigned): Declare.
4546 (regcache_raw_read_as_address): Delete declaration.
4547
4548 * blockframe.c (generic_read_register_dummy): Use
4549 regcache_cooked_read_unsigned.
4550 * i386-tdep.c (i386_extract_struct_value_address): Use
4551 regcache_cooked_read_unsigned.
4552
4553 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4554
4555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4556 double sizes according to ELF ABI flags.
4557 (gdbarch_tdep): Record elf_flags.
4558
4559 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4560
4561 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4562 (m6812_prolog): They can appear in 68HC12 function prologue.
4563 (m68hc11_frame_chain): Cleanup.
4564
4565 2002-08-12 Andrew Cagney <cagney@redhat.com>
4566
4567 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4568 declarations.
4569 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4570 (i386_linux_register_raw_size): Delete function.
4571 (i386_linux_init_abi): Update.
4572 * i386-tdep.c (i386_register_raw_size): Delete function.
4573 (i386_register_byte): Delete function.
4574 (i386_gdbarch_init): Update.
4575 (i386_register_size): Delete array.
4576 (i386_register_offset): Delete array.
4577
4578 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4579 (REGISTER_RAW_SIZE): Delete macro.
4580 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4581 (REGISTER_BYTE): Delete macro.
4582
4583 2002-08-11 Aidan Skinner <aidan@velvet.net>
4584
4585 * ada-lang.c (ada_lookup_partial_symbol)
4586 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4587 prototype names so that grep ^func works properly.
4588
4589 * ada-lang.c (ada_array_element_type)
4590 (ada_lookup_partial_symbol): Fix typos in parameter list.
4591
4592 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4593 Fix prototype names so that grep ^func works properly.
4594
4595 2002-08-10 Andrew Cagney <cagney@redhat.com>
4596 Elena Zannoni <ezannoni@redhat.com>
4597 Martin M. Hunt <hunt@redhat.com>
4598
4599 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4600 (build_builtin_type_vec128i): Set the vector bit.
4601 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4602 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4603 (build_builtin_type_vec64): New function.
4604 (build_builtin_type_vec64i): New function.
4605 (build_gdbtypes): Initialize builtin_type_vec64 and
4606 builtin_type_vec64i.
4607
4608 2002-08-09 Andrew Cagney <cagney@redhat.com>
4609
4610 * regcache.c (regcache_dump): Compare the register offset
4611 with REGISTER_BYTE.
4612 * arch-utils.c (generic_register_byte): New function.
4613 * arch-utils.h (generic_register_byte): Declare.
4614 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4615 * gdbarch.h, gdbarch.c: Regenerate.
4616
4617 2002-08-09 Andrew Cagney <cagney@redhat.com>
4618
4619 * regcache.c: Include "gdbcmd.h"
4620 (_initialize_regcache): Add commands "maintenance print
4621 registers", "maintenance print raw-registers" and "maintenance
4622 print cooked-registers".
4623 (enum regcache_dump_what): Define.
4624 (dump_endian_bytes): New function.
4625 (regcache_dump): New function.
4626 (regcache_print): New function.
4627 (maintenance_print_registers): New function.
4628 (maintenance_print_raw_registers): New function.
4629 (maintenance_print_cooked_registers): New function.
4630 * Makefile.in (regcache.o): Update dependencies.
4631
4632 2002-08-09 Michael Snyder <msnyder@redhat.com>
4633
4634 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4635 (mips_push_arguments): Correct some comments. Use paddr_nz
4636 for printing addresses in debug output. Replace static
4637 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4638 (mips_n32n64_push_arguments): New function, cloned from
4639 mips_push_arguments and tuned for the n32/n64 ABI.
4640 (mips_push_register): Buffer needs dynamic allocation.
4641 (mips_print_register): Ditto.
4642 (do_gp_register_row): Ditto.
4643 (mips_store_return_value): Ditto.
4644 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4645
4646 2002-08-09 Don Howard <dhoward@redhat.com>
4647
4648 * memattr.c (mem_info_command): Print special case of upper bound
4649 as max CORE_ADDR + 1.
4650
4651 2002-08-08 Michael Snyder <msnyder@redhat.com>
4652
4653 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4654 returns structs by ref if they're too big to fit in two registers.
4655
4656 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4657
4658 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4659 saved regs value.
4660 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4661 mips_find_saved_regs().
4662 (mips_pop_frame): Likewise.
4663
4664 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4665
4666 * blockframe.c (frame_saved_regs_register_unwind): Revise
4667 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4668 frames are in use.
4669
4670 2002-08-09 Grace Sainsbury <graces@redhat.com>
4671
4672 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4673 T-packets; the 'a' is not taken as a register number.
4674 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4675 (remote_stopped_data_address): New functions; add to target
4676 vector.
4677 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4678 prototypes to match other implementations of this
4679 function. replace integer argument with pointer -- the length
4680 field in the Z-packet is the length of what is pointed to or 1 if
4681 pointer is null. Add to target vector.
4682 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4683 target vector.
4684
4685 From Mark Salter:
4686 * remote.c (remote_wait): Add support to extract optional
4687 watchpoint information from T-packet. Ignore unrecognized
4688 optional info in T-packet.
4689 (remote_async_wait): Ditto.
4690
4691 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4692
4693 * cli/cli-dump.c: Change fopen modes to use binary open modes
4694 as defined in include/fopen-bin.h throughout.
4695
4696 2002-08-08 Michael Snyder <msnyder@redhat.com>
4697
4698 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4699
4700 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4701
4702 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4703 assertion failure by returning early after a warning.
4704
4705 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4706
4707 * mips-tdep.c (mips_find_saved_regs): Make static.
4708 (mips_frame_init_saved_regs): New function.
4709 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4710 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4711 (mips_find_saved_regs): Delete declaration.
4712
4713 2002-08-08 Grace Sainsbury <graces@redhat.com>
4714
4715 * remote.c (remote_wait, remote_async_wait): Change
4716 thread_num from int to ULONGEST.
4717 (unpack_varlen_hex): Change result parameter from
4718 int * to ULONGEST *.
4719
4720 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4721
4722 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4723 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4724 powerpc*-*-*.
4725 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4726
4727 2002-08-08 Andrew Cagney <cagney@redhat.com>
4728
4729 * gcore.c (override_derive_stack_segment): Delete variable.
4730 (preempt_derive_stack_segment): Delete function.
4731 (derive_stack_segment): Delete function.
4732 (default_derive_stack_segment): Renamed to derive_stack_segment.
4733 (override_derive_heap_segment): Delete variable.
4734 (preempt_derive_heap_segment): Delete function.
4735 (derive_heap_segment): Delete function.
4736 (default_derive_heap_segment): Rename to derive_heap_segment.
4737
4738 2002-08-06 Michael Snyder <msnyder@redhat.com>
4739
4740 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4741 * mips-tdep.c (mips_EABI_use_struct_convention,
4742 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4743 New functions. (mips_use_struct_convention): Delete.
4744 (mips_gdbarch_init): set use_gdbarch_convention.
4745
4746 2002-08-06 Michael Snyder <msnyder@redhat.com>
4747
4748 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4749 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4750 mips_o32_reg_struct_has_addr): New functions.
4751 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4752
4753 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4754
4755 * regcache.c (pseudo_register): Delete function.
4756 (fetch_register): Delete function.
4757 (store_register): Delete function.
4758 (regcache_raw_read, legacy_read_register_gen): Use
4759 target_fetch_registers instead of fetch_register.
4760 (legacy_write_register_gen, regcache_raw_write): Use
4761 target_store_register instead of store_register.
4762 (write_register_bytes): Ditto.
4763
4764 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4765 (STORE_PSEUDO_REGISTER): Delete.
4766 * gdbarch.h, gdbarch.c: Regenerate.
4767
4768 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4769
4770 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4771 write dump file binary.
4772
4773 2002-08-05 Michael Snyder <msnyder@redhat.com>
4774
4775 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4776 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4777 (mips_gdbarch_init): Set N32 target to be mips64.
4778
4779 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4780
4781 * frame.c (find_saved_register): Break out of loop once saved
4782 register address is found. Don't mention sparc in loop comment
4783 anymore.
4784
4785 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4786
4787 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4788 mips_default_saved_regsize to 8.
4789
4790 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4791
4792 * gcore.c: Do not include <sys/procfs.h>.
4793 * Makefile.in (gcore.o): Update dependencies.
4794
4795 2002-08-06 Andrew Cagney <cagney@redhat.com>
4796
4797 * configure.tgt: Make arc-*-* obsolete.
4798 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4799 * MAINTAINERS: Make arc-elf obsolete.
4800 * arc-tdep.c: Make file obsolete.
4801 * config/arc/arc.mt: Ditto.
4802 * config/arc/tm-arc.h: Ditto.
4803
4804 2002-08-05 Theodore A. Roth <troth@verinet.com>
4805
4806 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4807
4808 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4809
4810 * mcore-tdep.c (mcore_gdbarch_init): Use
4811 generic_unwind_get_saved_register instead of
4812 generic_get_saved_register.
4813 * v850-tdep.c (v850_gdbarch_init): Ditto.
4814 * frv-tdep.c (frv_gdbarch_init): Ditto.
4815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4816 * s390-tdep.c (s390_gdbarch_init): Ditto.
4817 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4818 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4819 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4820
4821 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4822
4823 * objfiles.h: Add missing #include "symfile.h"
4824
4825 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4826
4827 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4828
4829 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4830 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4831 of FIELD_BITSIZE.
4832
4833 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4834
4835 * NEWS: Cleanup and nitpick.
4836
4837 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4838
4839 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4840
4841 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4842
4843 * Makefile.in (gdbtk-bp.o): Update dependencies.
4844 (gdbtk-register.o): Ditto.
4845 (gdbtk-varobj.o): Ditto.
4846
4847 2002-08-03 Andrew Cagney <cagney@redhat.com>
4848
4849 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4850 m68hc11_fetch_pseudo_register.
4851 (m68hc11_pseudo_register_write): Replace
4852 m68hc11_store_pseudo_register.
4853 (m68hc11_gdbarch_init): Update.
4854
4855 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4856
4857 * gdbarch.sh: Include "gdb_string.h".
4858 * gdbarch.c: Regenerate.
4859
4860 * regcache.c: Include "gdb_string.h".
4861 * ax-general.c: Ditto.
4862 * varobj.c: Ditto.
4863 * std-regs.c: Ditto.
4864 * fbsd-proc.c: Ditto.
4865 * thread.c: Ditto.
4866
4867 * Makefile.in (regcache.o): Update dependencies.
4868 (thread.o, gdbarch.o): Ditto.
4869 (ax-general.o, gdbarch.o): Ditto.
4870 (varobj.o, std-regs.o): Ditto.
4871 (fbsd-proc.o): Specify dependencies.
4872
4873 2002-08-02 Andrew Cagney <cagney@redhat.com>
4874
4875 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4876 regnum.
4877 (regcache_cooked_write): Ditto.
4878
4879 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4880
4881 * regcache.c (regcache_cooked_read): New function.
4882 (regcache_cooked_write): New function.
4883 (read_register_gen): Rewrite using regcache_cooked_read.
4884 (write_register_gen): Rewrite using regcache_cooked_write.
4885
4886 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4887 Declare.
4888
4889 2002-08-02 Andrew Cagney <cagney@redhat.com>
4890
4891 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4892 Replace the architecture methods register_read and register_write.
4893 * gdbarch.h, gdbarch.c: Regenerate.
4894 * regcache.c (init_regcache_descr): Update.
4895 (read_register_gen): Update.
4896 (write_register_gen): Update.
4897 (supply_register): Update comment.
4898
4899 * sh-tdep.c (sh_gdbarch_init): Update.
4900 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4901 `regcache' and `gdbarch' parameters. Make `buffer' a void
4902 pointer. Update code.
4903 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4904 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4905 void pointer. Update code.
4906 (sh64_register_write): Delete.
4907 (sh4_register_read): Delete.
4908 (sh64_register_read): Delete.
4909 (sh4_register_write): Delete.
4910 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4911 void pointer, `to' parameter a void pointer.
4912 (sh_sh64_register_convert_to_raw): Ditto.
4913
4914 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4915
4916 * mips-tdep.c (mips_register_virtual_type): Use architecture
4917 invariant return values.
4918
4919 2002-08-01 Andrew Cagney <cagney@redhat.com>
4920
4921 * linux-proc.c: Include "gdb_string.h".
4922 * Makefile.in (linux-proc.o): Update dependency list.
4923
4924 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4925
4926 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4927 comment.
4928
4929 2002-08-01 Grace Sainsbury <graces@redhat.com>
4930
4931 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4932 to_insert_watchpoint, to_remove_watchpoint,
4933 to_stopped_by_watchpoint, to_stopped_data_address,
4934 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4935 target vecctor. Define their corresponding macros so they call
4936 them.
4937
4938 * target.c: Add default and debug versions of for
4939 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4940 to_insert_watchpoint, to_remove_watchpoint,
4941 to_stopped_by_watchpoint, to_stopped_data_address,
4942 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4943
4944 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4945
4946 * mips-tdep.c (mips_register_virtual_type): New function.
4947 (mips_gdbarch_init): Register mips_register_virtual_type()
4948 with gdbarch machinery.
4949 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4950 this file instead of tm-bigmips.h.
4951 (MIPS_REGSIZE): Delete this macro.
4952 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4953 multiarch version in mips-tdep.c will be found.
4954
4955 2002-08-01 Andrew Cagney <cagney@redhat.com>
4956
4957 * NEWS: Menion that CHILL has been made obsolete.
4958
4959 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4960 * stabsread.c (read_range_type): Ditto.
4961 * gdbtypes.h: Ditto.
4962 * language.c (binop_type_check): Ditto.
4963 (binop_result_type): Ditto.
4964 (integral_type): Ditto.
4965 (character_type): Ditto.
4966 (string_type): Ditto.
4967 (boolean_type): Ditto.
4968 (structured_type): Ditto.
4969 (lang_bool_type): Ditto.
4970 (binop_type_check): Ditto.
4971 * language.h (_LANG_chill): Ditto.
4972 * dwarfread.c (set_cu_language): Ditto.
4973 * dwarfread.c (CHILL_PRODUCER): Ditto.
4974 * dwarfread.c (handle_producer): Ditto.
4975 * expression.h (enum exp_opcode): Ditto.
4976 * eval.c: Ditto for comments.
4977 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4978 * expprint.c (print_subexp): Ditto.
4979 (print_subexp): Ditto.
4980 * valops.c (value_cast): Ditto.
4981 (search_struct_field): Ditto.
4982 * value.h (COERCE_VARYING_ARRAY): Ditto.
4983 * symfile.c (init_filename_language_table): Ditto.
4984 (add_psymbol_with_dem_name_to_list): Ditto.
4985 * valarith.c (value_binop): Ditto.
4986 (value_neg): Ditto.
4987 * valops.c (value_slice): Ditto.
4988 * symtab.h (union language_specific): Ditto.
4989 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4990 (SYMBOL_DEMANGLED_NAME): Ditto.
4991 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4992 * defs.h (enum language): Ditto.
4993 * symtab.c (got_symtab): Ditto.
4994 * utils.c (fprintf_symbol_filtered): Ditto.
4995
4996 * ch-typeprint.c: Make file obsolete.
4997 * ch-valprint.c: Make file obsolete.
4998 * ch-lang.h: Make file obsolete.
4999 * ch-exp.c: Make file obsolete.
5000 * ch-lang.c: Make file obsolete.
5001
5002 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5003 CHILL_LIB.
5004 (TARGET_FLAGS_TO_PASS): Ditto.
5005 (CHILLFLAGS): Obsolete.
5006 (CHILL): Obsolete.
5007 (CHILL_FOR_TARGET): Obsolete.
5008 (CHILL_LIB): Obsolete.
5009 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5010 ch-valprint.c.
5011 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5012 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5013 ch-lang.o.
5014 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5015 targets.
5016
5017 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5018
5019 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5020 This does not change anything at the moment, but will be helpful
5021 later when full Ada support is integrated.
5022
5023 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5024
5025 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5026 help message.
5027
5028 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5029
5030 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5031 and save it in a local variable. Use variable in later test.
5032
5033 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5034
5035 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5036 test. (Thanks to Daniel Jacobowitz.)
5037
5038 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5039
5040 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5041 (mips_abi_strings): Add "n64".
5042 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5043
5044 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5045
5046 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5047 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5048
5049 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5050
5051 * utils.c (host_pointer_to_address, address_to_host_pointer):
5052 Use gdb_assert() instead of explicit call to internal_error().
5053
5054 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5055
5056 * Makefile.in (rs6000-nat.o): Update dependencies.
5057
5058 From Nicholas Duffek:
5059 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5060 (aix-thread.o): New rule.
5061 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5062 * config/powerpc/aix432.mh: New file.
5063
5064 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5065
5066 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5067 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5068 (fetch_core_registers, ppc_linux_supply_gregset)
5069 (ppc_linux_supply_fpregset): New functions.
5070 (ppc_linux_regset_core_fns): New.
5071 (_initialize_ppc_linux_tdep): Call add_core_fns.
5072 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5073 and ppc_linux_supply_gregset.
5074 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5075 (supply_fpregset): Call ppc_linux_supply_fpregset.
5076 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5077 corelow.o.
5078 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5079
5080 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5081
5082 * symtab.c (lookup_symbol): Demangle before lowercasing.
5083
5084 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5085
5086 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5087 declaration.
5088 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5089 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5090 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5091 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5092 "gdb_string.h".
5093 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5094 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5095 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5096 (avr-tdep.o, mon960-rom.o): Ditto.
5097 (aout_stabs_gnu_h): Define.
5098 (symtab_h): Remove $(gdb_obstack_h).
5099
5100 2002-07-30 Jim Blandy <jimb@redhat.com>
5101
5102 Patch from David Carlton <carlton@math.stanford.edu>:
5103 * gdbinit.in: Move the `dir' commands that add GDB's own source
5104 directory to the search path to the end, so that the `gdb' source
5105 directory will be searched first.
5106
5107 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5108
5109 * gdb_obstack.h: New file.
5110 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5111 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5112 * objfiles.h: Include "gdb_obstack.h".
5113 * Makefile.in (gdb_obstack_h): Define.
5114 (symtab_h): Add $(gdb_obstack_h).
5115 (objfiles_h): Add $(gdb_obstack_h).
5116
5117 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5118 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5119 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5120 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5121 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5122 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5123 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5124 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5125
5126 * Makefile.in (bcache.o): Update dependencies.
5127 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5128 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5129 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5130 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5131 (stabsread.o, symfile.o, symmisc.o): Ditto.
5132 (symtab.o, typeprint.o, macroexp.o): Ditto.
5133 (macrotab.o, mdebugread.o): Ditto.
5134 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5135 (coff_ecoff_h, aout_aout64_h): Define.
5136 (aout_stabs_gnu_h, libaout_h): Define.
5137
5138 2002-07-29 Andrew Cagney <cagney@redhat.com>
5139
5140 * regcache.c (struct regcache_descr): Rename nr_registers to
5141 nr_cooked_registers. Revise comments describing the structure
5142 member fields.
5143 (init_regcache_descr): Update.
5144 (init_legacy_regcache_descr): Update.
5145 (read_register_gen, write_register_gen): When a cooked register in
5146 the raw register range, directly access the value from the raw
5147 register cache.
5148
5149 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5150
5151 * z8k-tdep.c: Do not include "obstack.h".
5152 * h8300-tdep.c, h8500-tdep.c: Ditto.
5153 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5154 * valprint.c, v850-tdep.c: Ditto.
5155 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5156 * mn10200-tdep.c: Ditto.
5157
5158 * Makefile.in (z8k-tdep.o): Update dependencies.
5159 (m68hc11-tdep.o, valprint.o): Ditto.
5160 (v850-tdep.o, d10v-tdep.o): Ditto.
5161 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5162 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5163 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5164 (sh_opc_h, gdb_sim_sh_h): Define.
5165 (elf_sh_h, elf_bfd_h): Define.
5166 (opcode_m68hc11_h): Define.
5167 (OPCODES_SRC, OPCODES_DIR): define.
5168 (OPCODES): Use $(OPCODES_DIR).
5169 (gdb_sim_d10v_h): Rename sim_d10v_h.
5170 (gdb_sim_arm_h): Rename sim_arm_h.
5171
5172 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5173
5174 * utils.c (host_pointer_to_address, address_to_host_pointer):
5175 Change internal_error() message to indicate function responsible
5176 for the error.
5177
5178 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5179
5180 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5181 calls to local_hex_string_custom().
5182
5183 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5184
5185 * irix5-nat.c: Move IRIX shared library support from here...
5186 * solib-irix.c: ...to here. Revised substantially to work with
5187 generic solib framework.
5188
5189 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5190 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5191 * mips-irix-tdep.c: New file.
5192
5193 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5194 (mips-irix-tdep.o, solib-irix.o): New rules.
5195 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5196 solib-irix.o.
5197 * config/mips/irix6.mt (TDEPFILES): Likewise.
5198 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5199
5200 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5201
5202 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5203 disabled (via ``#if 0'') includes.
5204
5205 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5206
5207 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5208 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5209 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5210 Add support for the fpscr register.
5211 * rs6000-nat.c (regmap, fetch_inferior_registers)
5212 (store_inferior_registers, fetch_core_registers): Likewise.
5213
5214 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5215
5216 * rs6000-nat.c (language.h): Include.
5217 (special_regs): Delete this array.
5218 (regmap): New function.
5219 (fetch_register, store_register): Use regmap() to map gdb
5220 register numbers to ptrace register numbers. Also, use
5221 outputs from regmap() to make decisions regarding type of
5222 ptrace() call to make. In particular, don't compare against
5223 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5224 (fetch_inferior_registers, store_inferior_registers): Where
5225 possible, obtain register numbers from tdep struct. Don't
5226 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5227 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5228 (LAST_UISA_SP_REGNUM): Delete.
5229
5230 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5231
5232 * rs6000-nat.c (ppc-tdep.h): Include.
5233 (fetch_registers, store_register, fetch_core_registers): Don't
5234 access registers[] directly. Instead, use supply_register() or
5235 regcache_collect() as appropriate.
5236 (find_toc_address): Format hex address with local_hex_string().
5237
5238 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5239
5240 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5241 bfd/elf32-frv.c.
5242
5243 2002-07-24 Tom Tromey <tromey@redhat.com>
5244
5245 * jv-exp.y: Marked all strings with _().
5246 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5247 internal_error.
5248 (MethodInvocation, CastExpression, parse_number, yyerror,
5249 java_type_from_name, push_expression_name, yylex): Typo fixes.
5250
5251 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5252
5253 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5254 (tee_file_flush, tee_file_write, tee_file_fputs)
5255 (tee_file_isatty): New.
5256 * ui-file.h (tee_file_new): Add prototype.
5257
5258 2002-07-24 Aidan Skinner <aidan@velvet.net>
5259
5260 * ada-lang.c: Change k&r style function definitions to prototyped
5261 form.
5262 * ada-typeprint.c: Change k&r style function definitions to prototyped
5263 form.
5264 * ada-valprint.c: Change k&r style function definitions to prototyped
5265 form.
5266
5267 2002-07-24 Andrew Cagney <cagney@redhat.com>
5268
5269 * README: Remove reference to remote-bug.
5270 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5271 remote-bug.c.
5272 (m88k-nat.o): Delete rule.
5273 (m88k-tdep.o): Delete rule.
5274 (remote-bug.o): Delete rule.
5275 * MAINTAINERS: Mark as obsolete.
5276 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5277 * m88k-tdep.c: Make file obsolete.
5278 * config/m88k/m88k.mh: Ditto.
5279 * config/m88k/delta88v4.mh: Ditto.
5280 * config/m88k/delta88v4.mt: Ditto.
5281 * config/m88k/delta88.mt: Ditto.
5282 * config/m88k/delta88.mh: Ditto.
5283 * remote-bug.c: Ditto.
5284 * config/m88k/tm-delta88.h: Ditto.
5285 * config/m88k/nm-delta88v4.h: Ditto.
5286 * config/m88k/xm-delta88.h: Ditto.
5287 * config/m88k/xm-dgux.h: Ditto.
5288 * config/m88k/tm-m88k.h: Ditto.
5289 * config/m88k/nm-m88k.h: Ditto.
5290 * config/m88k/tm-delta88v4.h: Ditto.
5291 * m88k-nat.c: Ditto.
5292 * cxux-nat.c: Ditto.
5293 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5294 and m88*-*-* obsolete.
5295 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5296 m88*-*-* obsolete.
5297
5298 2002-07-24 Andrew Cagney <cagney@redhat.com>
5299
5300 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5301 constant. Same for local pointer variables.
5302 (extract_signed_integer): Ditto.
5303 * defs.h (extract_unsigned_integer): Update.
5304 (extract_signed_integer): Update.
5305
5306 2002-07-24 Andrew Cagney <cagney@redhat.com>
5307
5308 * regcache.c (regcache_raw_write): Change buf parameter to a
5309 constant void pointer.
5310 (regcache_raw_read): Change buf parameter to a void pointer.
5311 (legacy_write_register_gen): Change myaddr parameter a constant
5312 void pointer.
5313 (supply_register): Change val parameter to a const void pointer.
5314 * regcache.h (regcache_raw_write): Update declaration.
5315 (regcache_raw_read): Update declaration.
5316 (supply_register): Update declaration.
5317
5318 2002-07-24 Tom Tromey <tromey@redhat.com>
5319
5320 * defs.h (gdb_readline_wrapper): Declare.
5321 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5322 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5323 * top.c (gdb_readline_wrapper): New function.
5324 (command_line_input): Use it.
5325
5326 2002-07-24 Andrew Cagney <cagney@redhat.com>
5327
5328 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5329 regcache_read and regcache_write.
5330 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5331 * regcache.c: Update.
5332 * sh-tdep.c (sh64_push_arguments): Update comment.
5333 (sh_pseudo_register_read): Update.
5334 (sh_pseudo_register_write): Update.
5335 (sh4_register_read): Update.
5336 (sh4_register_write): Update.
5337 (sh64_pseudo_register_read): Update.
5338 (sh64_pseudo_register_write): Update.
5339 (sh64_register_read): Update.
5340 (sh64_register_write): Update.
5341 * i386-tdep.c (i386_extract_return_value): Update.
5342 (i386_extract_struct_value_address): Update.
5343 (i386_extract_return_value): Update.
5344 * blockframe.c (generic_read_register_dummy): Update.
5345 (generic_call_dummy_register_unwind): Update
5346 * infrun.c (write_inferior_status_register): Update.
5347
5348 2002-07-23 Jim Blandy <jimb@redhat.com>
5349
5350 * parser-defs.h (expression_context_pc): Make this extern.
5351 (Thanks to Michael Snyder.)
5352
5353 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5354
5355 GDB 5.2.1 released from 5.2 branch.
5356 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5357 * README: Update to mention 5.2.1.
5358
5359 2002-07-23 Mark Salter <msalter@redhat.com>
5360
5361 * remote.c (remote_read_bytes): Fix check for error.
5362
5363 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5364
5365 * aix-thread.c (language.h): Include.
5366 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5367 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5368 Print newlines at end of debug messages.
5369 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5370 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5371
5372 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5373
5374 * aix-thread.c (ppc-tdep.h): Include.
5375 (special_register_p): New function.
5376 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5377 (store_regs_user_thread): Use register number information from
5378 gdbarch_tdep struct instead of hardcoded offsets relative to
5379 FIRST_UISA_SP_REGNUM.
5380 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5381 special_register_p() instead of using FPLAST_REGNUM and
5382 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5383 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5384 will be MQ's register number.
5385
5386 2002-07-22 Michael Snyder <msnyder@redhat.com>
5387
5388 * aix-thread.c (ops): Rename to aix_thread_ops.
5389 (base_ops): Rename to base_target.
5390 (ops_attach): Rename to aix_thread_attach.
5391 (ops_detach): Rename to aix_thread_detach.
5392 (ops_resume): Rename to aix_thread_detach.
5393 (ops_wait): Rename to aix_thread_wait.
5394 (ops_kill): Rename to aix_thread_kill.
5395 (init_ops): Rename to init_aix_thread_ops.
5396 (ops_fetch_register): Rename to aix_thread_fetch_register.
5397 (ops_store_register): Rename to aix_thread_store_register.
5398 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5399 (ops_thread_alive): Rename to aix_thread_thread_alive.
5400 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5401 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5402 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5403 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5404 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5405 (store_regs_lib): Rename to store_regs_user_thread.
5406 (store_regs_kern): Rename to store_regs_kernel_thread.
5407
5408 2002-07-22 Michael Snyder <msnyder@redhat.com>
5409
5410 * aix-thread.c (ops_prepare_to_store): Eliminate.
5411 (init_ops): Don't initialize ops.prepare_to_store.
5412 (store_regs_kern): Pre-fetch register buffers from child,
5413 because some registers may not be in the cache. Copy
5414 regs from register cache only if they are cached.
5415 (store_regs_lib): Copy regs from register cache only
5416 if they are cached.
5417 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5418 fill_gprs64): Ditto.
5419
5420 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5421
5422 * aix-thread.c (gdb_assert.h): Include.
5423 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5424 register sizes (from register cache) match size of buffer holding
5425 register data.
5426 (fill_sprs32): Change parameter types to match those in the ptrace()
5427 buffer.
5428 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5429 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5430
5431 2002-07-22 Michael Snyder <msnyder@redhat.com>
5432
5433 * aix-thread.c (supply_sprs64): Cosmetic change.
5434 (supply_sprs32): Cosmetic change.
5435 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5436 (fill_sprs64): Use regcache_collect instead of read_register.
5437 (store_regs_lib): Use regcache_collect instead of
5438 read_register. Use fill_sprs32 instead of fill_sprs64,
5439 if debugging a 32-bit architecture.
5440 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5441 out of the register cache, instead of passing a pointer into
5442 the register cache directly to ptrace. Use regcache_collect
5443 insteaad of read_register.
5444 (ops_prepare_to_store): Use target_read_registers instead
5445 of read_register_bytes.
5446
5447 2002-07-20 Aidan Skinner <aidan@velvet.net>
5448
5449 * MAINTAINERS: Add self under write after approval.
5450
5451 2002-07-20 Aidan Skinner <aidan@velvet.net>
5452
5453 * ada-tasks.c: Change k&r style function definitions to prototyped
5454 form.
5455
5456 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5457
5458 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5459 * x86-64-tdep.c: Include "objfiles.h".
5460 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5461 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5462
5463 2002-07-17 Michal Ludvig <michal@suse.cz>
5464
5465 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5466 (update_context): Initialise cfa variable.
5467
5468 2002-07-17 Michael Snyder <msnyder@redhat.com>
5469
5470 * aix-thread.c: Shorten some long lines.
5471 Bring comments into line with code spec.
5472
5473 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5474
5475 * infrun.c: Re-indent using gdb_indent.sh.
5476
5477 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5478
5479 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5480 Leave the indentation temporarily untouched, to minimize the diffs.
5481
5482 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5483
5484 * stabsread.c: Make os9k sections of the code obsolete,
5485 for real this time.
5486 * stabsread.h: Make os9k sections of the code obsolete.
5487
5488 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5489
5490 * linux-low.c (regsets_store_inferior_registers): Add free()
5491 at the end of a loop to prevent memory leak.
5492 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5493 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5494 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5495 line a comment.
5496 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5497
5498 2002-07-17 Jim Blandy <jimb@redhat.com>
5499
5500 * macrocmd.c (info_macro_command): Remove newline from error
5501 message.
5502
5503 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5504
5505 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5506 (sh_gdbarch_init): Use it for sh-dsp.
5507
5508 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5509
5510 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5511 64-bit DWARF2 format.
5512
5513 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5514
5515 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5516 <sys/proc.h> when not available.
5517
5518 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5519
5520 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5521 * stabsread.c: Make os9k sections of the code obsolete.
5522 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5523 * config/i386/i386os9k.mt: Make file obsolete.
5524 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5525 (COMMON_OBS): Remove os9kread.o
5526 (SFILES): Remove os9kread.c.
5527 (os9kread.o, remote-os9k.o): Make target obsolete.
5528 * remote-os9k.c: Make file obsolete.
5529 * os9kread.c: Make file obsolete.
5530 * Makefile.in
5531
5532 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5533
5534 * NEWS: Mention that the FR30 has been made obsolete.
5535 * fr30-tdep.c: Make file obsolete.
5536 * config/fr30/tm-fr30.h: Ditto.
5537 * config/fr30/fr30.mt: Ditto.
5538 * configure.tgt: Make fr30-*-elf obsolete.
5539 * MAINTAINERS: Make fr30-elf obsolete.
5540
5541 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5542
5543 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5544 found is not inside a section.
5545
5546 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5547
5548 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5549 strerror().
5550 (pdc_realloc): Use xrealloc() instead of realloc().
5551
5552 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5553
5554 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5555 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5556 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5557 macros.
5558
5559 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5560
5561 * aix-thread.c (ptrace_check): Eliminate goto.
5562 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5563 problem.
5564
5565 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5566
5567 * aix-thread.c (gdbcmd.h): Include.
5568 (DEBUG, DBG, DBG2, dbg): Eliminate.
5569 (debug_aix_thread): New static global.
5570 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5571 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5572 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5573 invocations to DBG and DBG2 macros to test against
5574 ``debug_aix_thread'' and call fprintf_unfiltered().
5575 (_initialize_aix_thread): Add new command "set debug aix-thread".
5576
5577 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5578
5579 From Gerhard Tonn <TON@de.ibm.com>:
5580 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5581 instead of supply_register.
5582
5583 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5584
5585 * dwarf2cfi.c: Include "gdb_assert.h".
5586 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5587 non-NULL.
5588 (update_context): Do not use __func__. Add missing ``break''.
5589 (update_context): Do not use __func__.
5590
5591 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5592
5593 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5594 and its setting. Set gdbarch instruction printing functions
5595 directly. For non-rs6000 case use new function
5596 gdb_print_insn_powerpc.
5597 (gdb_print_insn_powerpc): New function.
5598
5599 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5600
5601 * NEWS: Mention that the d30v has been marked obsolete.
5602 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5603 * configure.tgt: Mark d30v-*-* as obsolete.
5604 * d30v-tdep.c: Mark file as obsolete.
5605 * config/d30v/d30v.mt: Ditto.
5606 * config/d30v/tm-d30v.h: Ditto.
5607
5608 2002-07-13 Aidan Skinner <aidan@velvet.net>
5609
5610 * ada-tasks.c (add_task_entry): replace calls to
5611 malloc() with xmalloc
5612 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5613
5614 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5615 ada_finish_decode_line_1, all_sals_for_line
5616 ada_breakpoint_rewrite): replace calls to free() with xfree()
5617
5618 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5619
5620 From Nicholas Duffek (with minor changes by Martin Hunt,
5621 Louis Hamilton, and Kevin Buettner):
5622 * aix-thread.c: New file.
5623
5624 2002-07-12 Petr Sorfa <petrs@caldera.com>
5625
5626 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5627 complaint for invalid attribute class or form.
5628 (read_func_scope): DW_AT_frame_base
5629 better handling of DW_AT_block*.
5630 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5631 better handling of DW_AT_block*.
5632 (read_common_block): DW_AT_location
5633 better handling of DW_AT_block*.
5634 (read_partial_die): DW_AT_location better handling
5635 of DW_AT_block*.
5636 (new_symbol): DW_AT_external better handling of
5637 DW_AT_block*. Proper initialization of variable
5638 "addr".
5639 (attr_form_is_block): New function that returns true
5640 if the attribute's form is of DW_FORM_block*.
5641
5642 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5643
5644 * valops.c (find_method_list): Remove comment about
5645 removed STATIC_MEMFUNCP argument.
5646 (value_find_oload_method_list): Likewise.
5647
5648 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5649
5650 From Nicholas Duffek:
5651 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5652 target_new_objfile_hook.
5653
5654 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5655
5656 From Nicholas Duffek:
5657 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5658 csect.
5659
5660 2002-07-12 Andrew Cagney <cagney@redhat.com>
5661
5662 * MAINTAINERS: Mention --enable-sim-build-warnings.
5663 (m68hc11-elf): Disable sim build warnings.
5664 (m32r-elf): Mark as broken obsolete candidate.
5665 (x86_64-linux-gnu): Mark as buildable with -Werror.
5666 (arm-elf): Change -w to ``,'' which enables warnings but not
5667 -Werror.
5668
5669 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5670
5671 * bcache.h: Update copyright.
5672 (struct bstring, struct bcache): Move definition to "bcache.c".
5673 Replaced by opaque declaration.
5674 (bcache_xfree): Replace free_bcache.
5675 (bcache_xmalloc, bcache_memory_used): Declare.
5676
5677 * bcache.c: Update copyright.
5678 (struct bstring, struct bcache): Moved to here from "bcache.h".
5679 Update comments.
5680 (bcache_xmalloc, bcache_memory_used): New functions.
5681 (bcache_xfree): Replace function free_bcache.
5682
5683 * Makefile.in (objfiles.o): Add $(bcache_h).
5684 (objfiles_h): Remove $(bcache_h).
5685 (symfile.o): Add $(bcache_h).
5686
5687 * symmisc.c: Update copyright.
5688 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5689 (print_objfile_statistics): Use bcache_memory_used.
5690
5691 * symfile.c: Include "bcache.h".
5692 (reread_symbols): Use bcache_xfree.
5693 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5694 (add_psymbol_to_list): Pass psymbol_cache by value.
5695 (add_psymbol_with_dem_name_to_list): Ditto.
5696
5697 * objfiles.h: Update copyright.
5698 (struct bcache): Declare opaque. Do not include "bcache.h".
5699 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5700 bcache'' pointers.
5701 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5702
5703 * objfiles.c: Include "bcache.h". Update copyright.
5704 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5705 macro_cache.
5706 (free_objfile): Use bcache_xfree.
5707
5708 2002-07-11 Grace Sainsbury <graces@redhat.com>
5709
5710 * monitor.c (monitor_fetch_register): Make name a constant.
5711 (monitor_store_register): Same.
5712
5713 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5714
5715 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5716 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5717 (finish_block) For non-function blocks, hash the symbol table. For
5718 function blocks, mark the symbol table as unhashed.
5719 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5720 (msymbol_hash_iw): Likewise.
5721 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5722 value.
5723 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5724 (lookup_minimal_symbol): Likewise for both.
5725 * symtab.h (struct block): Add `hashtable' flag. Comment the
5726 hashtable.
5727 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5728 (ALL_BLOCK_SYMBOLS): Update.
5729 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5730 (struct symbol): Add `hash_next' pointer.
5731 * symtab.c (lookup_block_symbol): Search using the hash table when
5732 possible.
5733 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5734 (search_symbols, find_addr_symbol): Likewise.
5735
5736 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5737 (read_dst_symtab): Likewise.
5738 * jv-lang.c (get_java_class_symtab): Likewise.
5739 * mdebugread.c: Include "gdb_assert.h".
5740 (shrink_block): Assert that the block being modified is not hashed.
5741 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5742 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5743 symbols.
5744 (dump_symtab): Recognize hashed blocks.
5745 * printcmd.c (print_frame_args): Assert that function blocks do not
5746 have hashed symbol tables.
5747 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5748 (fill_in_ada_prototype, debug_print_block): Likewise.
5749 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5750
5751 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5752
5753 * stack.c (print_frame): Use result of frame_address_in_block()
5754 instead of fi->pc when evaluating symbols.
5755 (backtrace_command_1): Ditto.
5756
5757 2002-07-11 Andrew Cagney <cagney@redhat.com>
5758
5759 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5760 Make static.
5761
5762 * arm-tdep.c (arm_register_name): Make return type constant.
5763
5764 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5765
5766 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5767 prototype.
5768 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5769 * s390-tdep.c (s390_fp_regnum): Ditto.
5770 (s390_read_fp): Ditto.
5771 (s390_pop_frame): Ditto.
5772 (_initialize_s390_tdep): Ditto.
5773 * remote.c (get_remote_state): Ditto.
5774 * procfs.c (mappingflags): Ditto.
5775 * memattr.c (_initialize_mem): Ditto.
5776 * mcore-tdep.c (mcore_pop_frame): Ditto.
5777 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5778 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5779 * language.c (set_case_str): Ditto.
5780 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5781 * frv-tdep.c (new_variant): Ditto.
5782 (frv_stopped_data_address): Ditto.
5783 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5784 (context_alloc): Ditto.
5785 (frame_state_alloc): Ditto.
5786 (unwind_tmp_obstack_init): Ditto.
5787 (unwind_tmp_obstack_free): Ditto.
5788 (cfi_read_fp): Ditto.
5789 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5790 (cris_pop_frame): Ditto.
5791 * c-lang.c (scanning_macro_expansion): Ditto.
5792 (finished_macro_expansion): Ditto.
5793 (c_preprocess_and_parse): Ditto.
5794 * gdbarch.sh: Ditto.
5795 * gdbarch.h, gdbarch.c: Regenerate.
5796 * config/mn10200/tm-mn10200.h: Adjust indentation.
5797 * target.c: Adjust indentation.
5798 * symtab.h: Adjust indentation.
5799 * stabsread.h: Adjust indentation.
5800 * remote-es.c: Adjust indentation.
5801 * os9kread.c: Adjust indentation.
5802
5803 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5804
5805 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5806 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5807
5808 2002-07-10 Grace Sainsbury <graces@redhat.com>
5809
5810 * NEWS: Mention m68k, mcore multi-arching.
5811 * MAINTAINERS: Change status of m68k, mcore to reflect
5812 multi-arching.
5813
5814 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5815
5816 * valops.c (find_overload_match): Free oload_syms.
5817
5818 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5819
5820 Define HAVE_SYS_PROC_H if sys/proc.h exists
5821 * configure.in: Add check for sys/proc.h
5822 * config.in: Regenerate.
5823 * configure: Regenerate.
5824
5825 2002-07-09 Grace Sainsbury <graces@redhat.com>
5826
5827 * config/m68k/tm-m68k.h: Remove macros wrapped in
5828 #if !GDB_MULTI_ARCH.
5829
5830 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5831
5832 * config.in, configure: Regenerate.
5833
5834 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5835
5836 * dwarf2cfi.c: Include "gcore.h".
5837 (execute_stack_op): Fix implementation of the
5838 DW_OP_deref and DW_OP_deref_size operators by letting do their
5839 lookup in the target.
5840
5841 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5842
5843 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5844 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5845 tdep->sc_sp_offset.
5846
5847 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5848
5849 Fix PR gdb/595, gdb/602
5850 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5851 Don't call value_cast, just read the vtable pointer; update comments
5852 to match.
5853
5854 2002-07-05 Grace Sainsbury <graces@redhat.com>
5855
5856 * config/mcore/tm-mcore.h: Remove file.
5857 * config/mcore/mcore.mt: Remove definition of TM_FILE
5858 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5859
5860 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5861
5862 * i386bsd-tdep.c: Include "gdb_string.h".
5863
5864 2002-07-04 Grace Sainsbury <graces@redhat.com>
5865
5866 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5867 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5868 mcore-tdep.
5869 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5870 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5871 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5872 (RETVAL_REGNUM): Move macros from tm-mcore.h
5873 (mcore_reg_struct_has_addr): New function.
5874 (mcore_gdbarch_init): Added initializations for the macros removed
5875 from tm-mcore.h.
5876
5877 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5878
5879 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5880 traditonal string branding within the ELF header.
5881
5882 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5883
5884 * symtab.c (remove_params): New function.
5885 (make_symbol_overload_list): Use it instead of cplus_demangle.
5886 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5887
5888 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5889
5890 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5891
5892 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5893 New variables.
5894 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5895 and tdep->sigtramp_end.
5896 * i386obsd-nat.c: New file.
5897 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5898
5899 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5900 Don't call get_current_frame().
5901
5902 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5903
5904 * i386-nat.c (child_post_startup_inferior): New function
5905 calling i386_cleanup_dregs if
5906 I386_USE_GENERIC_WATCHPOINTS is defined.
5907 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5908 conditional to acknowledge that i386-nat.c has its
5909 own child_post_startup_inferior function.
5910
5911 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5912
5913 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5914 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5915 instead of MAX_REGISTER_RAW_SIZE.
5916 (i386_extract_return_value, i386_extract_struct_value_address):
5917 Convert to use regcache.
5918 (i386_gdbarch_init): Set max_register_raw_size and
5919 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5920 Set extract_return_value and extract_struct_value_address instead
5921 of their deprecated variants.
5922
5923 Convert i386 target to generic dummy frames.
5924 * i386-tdep.c: Include "symfile.h".
5925 (i386_frameless_signal_p): Consider a function to be frameless if
5926 the pc points at the first instruction of the function.
5927 (i386_frame_chain): Handle (generic) call dummies.
5928 (i386_frame_saved_pc): Likewise.
5929 (i386_frame_init_saved_regs): Remove code dealing with call
5930 dummies on the stack.
5931 (i386_push_dummy_frame): Removed.
5932 (i386_call_dummy_words): Removed.
5933 (i386_fix_call_dummy): Removed.
5934 (i386_push_return_address): New function.
5935 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5936 parameter, and don't call get_current_frame.
5937 (i386_pop_frame): New function.
5938 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5939 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5940 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5941 call_dummy_length to 0, set call_dummy_words to NULL, set
5942 sizeof_call_dummy_words to 0, set fix_call_dummy to
5943 generic_fix_call_dummy, set pc_in_call_dummy to
5944 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5945 generic_push_dummy_frame, set push_return_address to
5946 i386_push_return_address and set frame_chain_valid to
5947 generic_file_frame_chain_valid.
5948
5949 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5950
5951 * gdbarch.sh (struct regcache): Add opaque declaration.
5952 (EXTRACT_RETURN_VALUE): New architecture method.
5953 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5954 * gdbarch.h, gdbarch.c: Regenerate.
5955 * arch-utils.c (legacy_extract_return_value): New function.
5956 * arch-utils.h (legacy_extract_return_value): Declare.
5957 * values.c (value_being_returned): Re-enable code handling
5958 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5959 deprecated_grub_regcache_for_registers call to block handling
5960 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5961 (EXTRACT_RETURN_VALUE): Do not define.
5962
5963 2002-07-03 Grace Sainsbury <graces@redhat.com>
5964
5965 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5966 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5967 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5968 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5969 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5970 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5971 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5972 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5973 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5974 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5975 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5976 argument so the function fits the prototype in the architecture
5977 vector.
5978 (mcore_pop_frame): Remove argument so the function fits the
5979 prototype. Use get_current_frame instead of the argument.
5980 (mcore_push_arguments): Change type of struct_return so the
5981 function can be used in the architecture vector.
5982 (mcore_store_struct_return): Add.
5983 (mcore_frame_init_saved_regs): Add.
5984 (mcore_gdbarch_init): Add function calls to replace the macros
5985 removed from tm-mcore.h
5986
5987 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5988
5989 * infcmd.c (print_return_value): Remove compatibility code calling
5990 deprecated_grub_regcache_for_registers.
5991
5992 * values.c: Include "regcache.h".
5993 (value_being_returned): Update. Use
5994 deprecated_grub_regcache_for_registers to extract the register
5995 buffer address.
5996 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5997 ``struct regcache''.
5998 * Makefile.in (values.o): Add dependency on $(regcache_h).
5999
6000 * inferior.h (run_stack_dummy): Change type of second parameter to
6001 a ``struct regcache''.
6002 * valops.c (hand_function_call): Change type of retbuf to ``struct
6003 regcache''. Allocate using regcache_xmalloc, clean using
6004 make_cleanup_regcache_xfree.
6005 * infcmd.c (run_stack_dummy): Update. Use
6006 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6007
6008 * regcache.c (do_regcache_xfree): New function.
6009 (make_cleanup_regcache_xfree): New function.
6010 * regcache.h (make_cleanup_regcache_xfree): Declare.
6011
6012 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6013
6014 * event-top.c (command_line_handler): Don't read past
6015 beginning of buffer.
6016
6017 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6018
6019 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6020 struct frame_id.
6021 (varobj_create): Store frame_id for root.
6022 (varobj_gen_name): Use xasprintf.
6023 (varobj_update): Save and restore frame using get_frame_id() and
6024 frame_find_by_id().
6025 (create_child): Use xasprintf.
6026 (new_root_variable): Initialize frame_id.
6027 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6028 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6029 to prevent memory leak.
6030
6031 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6032
6033 * valops.c (hand_function_call): Move declaration of retbuf to
6034 start of function, allocate using malloc, add a cleanup but before
6035 the inf_status cleanup, cleanup the buffer. Rename local variable
6036 old_chain to inf_status_cleanup.
6037
6038 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6039
6040 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6041
6042 * cli/cli-decode.c (cmd_func_p): New function.
6043 (cmd_func): New function.
6044
6045 * command.h: Add cmd_func() and cmd_func_p().
6046
6047 2002-07-03 Grace Sainsbury <graces@redhat.com>
6048
6049 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6050 (REGISTER_SIZE): Remove.
6051 (MAX_REGISTER_RAW_SIZE): Remove.
6052 (REGISTER_VIRTUAL_TYPE): Remove.
6053 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6054 (REGISTER_NAME): Remove.
6055 (USE_GENERIC_DUMMY_FRAMES): Remove.
6056 (CALL_DUMMY): Remove.
6057 (CALL_DUMMY_START_OFFSET): Remove.
6058 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6059 (CALL_DUMMY_LOCATION): Remove.
6060 (FIX_CALL_DUMMY): Remove.
6061 (CALL_DUMMY_ADDRESS): Remove.
6062 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6063 (SAVE_DUMMY_FRAME_TOS): Remove.
6064 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6065 (mcore_register_virtual_type): New function.
6066 (mcore_register_byte): New function.
6067 (mcore_register_size): New function.
6068 (mcore_register_name): New function.
6069 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6070 macros removed from tm-mcore.h.
6071 (mcore_dump_tdep): Add.
6072 (_initialize_mcore_tdep): Add gdbarch_register call.
6073
6074 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6075
6076 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6077 frameless_look_for_prologue, such that we actually call this
6078 function.
6079
6080 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6081
6082 * frame.h (frame_address_in_block): New function.
6083
6084 * blockframe.c (frame_address_in_block): New function extracted
6085 from get_frame_block().
6086 (get_frame_block): Use frame_address_in_block().
6087 (block_innermost_frame): Use frame_address_in_block() to match
6088 the frame pc address against the block boundaries rather than
6089 the frame pc directly. This prevents a failure when a frame pc
6090 is actually a return-address pointing immediately after the end
6091 of the given block.
6092
6093 2002-07-02 Grace Sainsbury <graces@redhat.com>
6094
6095 * MAINTAINERS: Add self under write after approval.
6096
6097 2002-07-02 Grace Sainsbury <graces@redhat.com>
6098
6099 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6100 used in architecture vector. The default is
6101 m68k_local_breakpoint_from_pc.
6102 (m68k_local_breakpoint_from_pc): Add.
6103 (enum): Add register numbers from tm-m68k.h.
6104 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6105 vector.
6106 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6107 GDB_MULTI_ARCH_PARTIAL.
6108 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6109 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6110 m68k-tdep.c.
6111 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6112 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6113 to enum in m68k-tdep.c
6114
6115 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6116
6117 * solib-osf.c (open_map): Compute the list of shared libraries
6118 loaded by the inferior, rather than the list of libraries loaded
6119 by GDB itself. Otherwise, GDB ends up reading the symbols from
6120 the wrong shared libraries...
6121
6122 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6123
6124 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6125 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6126 macros.
6127 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6128 Remove functions.
6129 (FRAMELESS_SIGNAL): Remove function.
6130 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6131 i386_linux_saved_pc_after_call): Removed.
6132 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6133 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6134 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6135
6136 * i386-tdep.c (i386_frameless_signal_p): New function.
6137 (i386_frame_chain): Deal with frameless signals.
6138 (i386_sigtramp_saved_sp): New function.
6139 (i386_frame_saved_pc): Deal with frameless signals.
6140 (i386_saved_pc_after_call): Make sure the correct value is
6141 returned just after entry into a sigtramp.
6142 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6143 i386fbsd4_sc_sp_offset): New variables.
6144 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6145 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6146 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6147 similiar to what we already did for sc_pc_offset.
6148 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6149 tdep->sc_sp_offset.
6150
6151 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6152
6153 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6154
6155 * config/i386/tm-x86-64linux.h: New.
6156 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6157 definitions.
6158 * config/i386/nm-x86-64.h: Rename to ...
6159 * config/i386/nm-x86-64linux.h: ... this one.
6160 * config/i386/x86-64linux.mh: Reflect the above change.
6161
6162 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6163
6164 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6165 with sigcontext_addr. Add sc_sp_offset.
6166 (i386bsd_sigtramp_saved_pc): Remove prototype.
6167 (i386bsd_sicontext_addr): Add prototype.
6168 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6169 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6170 (i386_svr4_sigtramp_saved_pc): Removed.
6171 (i386_svr4_sigcontext_addr): New function.
6172 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6173 Initialize tdep->sigcontext_addr instead. Initialize
6174 tdep->sc_pc_offset and tdep->sc_sp_offset.
6175 (i386_gdbarch_init): Likewise.
6176 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6177 any more.
6178 (i386bsd_sigtramp_saved_pc): Remove function.
6179 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6180 Initialize tdep->sigcontext_addr instead. Initialize
6181 tdep->sc_pc_offset.
6182 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6183 of tdep->sigtramp_saved_pc.
6184 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6185 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6186 instead.
6187
6188 * i386-tdep.c (i386_frameless_function_invocation,
6189 i386_frame_num_args, i386_frame_init_saved_regs,
6190 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6191 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6192 i386_extract_return_value, i386_store_return_value,
6193 i386_extract_struct_value_address, i386_register_virtual_type,
6194 i386_register_convertible, i386_register_convert_to_virtual,
6195 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6196 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6197 static.
6198
6199 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6200
6201 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6202
6203 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6204 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6205 this macro. Include "value.h".
6206
6207 2002-06-30 Aidan Skinner <aidan@velvet.net>
6208
6209 * ada-exp.tab.c: remove as it's a generated file
6210 * ada-lex.c: remove as it's a generated file
6211
6212 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6213
6214 * config/i386/tm-i386.h (struct frame_info, struct
6215 frame_saved_regs, struct value, struct type): Remove forward
6216 declarations.
6217
6218 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6219 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6220 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6221 (FILL_FPXREGSET): Define.
6222
6223 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6224
6225 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6226 i[3456]86-*-netbsd* case.
6227 * config/i386/tm-obsd.h: Removed.
6228 * config/i386/obsd.mt: Removed.
6229 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6230 core-aout.o.
6231 (MH_CFLAGS): Add -DYYDEBUG=0.
6232
6233 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6234 i386nbsd_sc_pc_offset on OpenBSD too.
6235
6236 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6237 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6238 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6239 define.
6240 * i386bsd-tdep.c: Include "arch-utils.h".
6241 (i386bsd_aout_in_solib_call_trampoline): New function.
6242 (i386bsd_init_abi): Set in_solib_call_trampoline to
6243 i386bsd_aout_in_solib_call_trampoline.
6244 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6245 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6246
6247 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6248
6249 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6250 (struct obstack, struct bcache): Add opaque declarations.
6251 * Makefile.in (macrotab_h): Update
6252
6253 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6254
6255 * blockframe.c (generic_find_dummy_frame): Change return type to
6256 ``struct regcache''.
6257 (struct dummy_frame): Replace field ``registers'' with regcache, a
6258 struct regcache object.
6259 (generic_find_dummy_frame): Update.
6260 (generic_push_dummy_frame): Update. Use regcache_xfree,
6261 regcache_xmalloc and regcache_cpy.
6262 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6263 regcache_xfree.
6264 (deprecated_generic_find_dummy_frame): Update.
6265 (generic_read_register_dummy): Update. Use
6266 regcache_read_as_address.
6267 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6268 (generic_get_saved_register): Update. Use regcache_read.
6269
6270 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6271
6272 * Makefile.in (objfiles_h): Add $(bcache_h).
6273 * objfiles.h: Include "bcache.h".
6274
6275 * Makefile.in (symtab_h): Remove $(bcache_h).
6276 * symtab.h: Do not include "bcache.h".
6277
6278 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6279
6280 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6281 generic_func_frame_chain_valid.
6282
6283 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6284
6285 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6286 * config/i386/tm-fbsd.h: Likewise.
6287
6288 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6289
6290 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6291 generic_unwind_get_saved_register.
6292
6293 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6294
6295 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6296 * regcache.c (supply_register): Add missing argument to
6297 register_buffer call.
6298
6299 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6300
6301 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6302 Solaris /bin/grep does not not like it. From Peter Schauer.
6303
6304 2002-06-26 Tom Tromey <tromey@redhat.com>
6305
6306 * command.h (add_setshow_cmd): Declare.
6307 (add_setshow_cmd_full): Declare.
6308 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6309 returns void. Use add_setshow_cmd_full.
6310 (add_setshow_cmd_full): New function.
6311 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6312 (add_setshow_boolean_cmd): Likewise.
6313
6314 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * config/vax/tm-vax.h: Protect from multiple inclusion.
6317 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6318 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6319 * config/vax/tm-vaxbsd.h: ...here. New file.
6320 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6321
6322 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6323
6324 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6325 (BELIEVE_PCC_PROMOTION): Remove.
6326 (AP_REGNUM): Move to...
6327 * config/vax/nm-vax.h: ...here.
6328 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6329 (vax_breakpoint_from_pc): New function.
6330 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6331 and gdbarch_believe_pcc_promotion.
6332
6333 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * Makefile.in (vax_tdep_h): Define.
6336 (vax-tdep.o): Use $(vax_tdep_h).
6337 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6338 (vax_dump_tdep): New function.
6339 (_initialize_vax_tdep): Register vax_dump_tdep.
6340 * vax-tdep.h: Include osabi.h.
6341 (struct gdbarch_tdep): New.
6342
6343 2002-06-26 Andrew Cagney <cagney@redhat.com>
6344
6345 * frame.h (deprecated_generic_find_dummy_frame): Rename
6346 generic_find_dummy_frame.
6347 * blockframe.c (generic_find_dummy_frame): Make static.
6348 (deprecated_generic_find_dummy_frame): New function.
6349 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6350 generic_find_dummy_frame with deprecated_find_dummy_frame.
6351 (sh64_nofp_frame_init_saved_regs): Ditto.
6352 (sh_fp_frame_init_saved_regs): Ditto.
6353 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6354 (s390_frame_chain): Ditto.
6355 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6356
6357 2002-06-26 Grace Sainsbury <graces@redhat.com>
6358
6359 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6360 gdbarch vector are at the top.
6361 (NUM_REGS): Remove.
6362 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6363 (FRAME_ARGS_ADDRESS): Remove.
6364 (FRAME_LOCALS_ADDRESS): Remove.
6365 (FRAME_NUM_ARGS): Remove.
6366 (FRAME_ARGS_SKIP): Remove.
6367 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6368 (m68k_gdbarch_init): Add gdbarch initializations for macros
6369 undefined in tm-m68k.h
6370
6371 2002-06-26 Grace Sainsbury <graces@redhat.com>
6372
6373 * monitor.h: Add the function regname to monitor_ops
6374 structure. This way NUM_REGS does not have to be a constant.
6375 * monitor.c (monitor_fetch_register): Added support for regname
6376 function. The function is called if the array regnames is NULL.
6377 (monitor_store_register): Same.
6378 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6379 regnames array.
6380 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6381 cpu32bug_cmds.regname to point to new function.
6382 * abug-rom.c (abug_regname): Same as above.
6383 (init_abug_cmds): Same.
6384 * dbug-rom.c (dbug_regname): Same as above.
6385 (init_dbug_cmds): Same.
6386 * remote-est.c (est_regname): Same.
6387 (init_est_cmds): Same.
6388 * rom68k-rom.c (rom68k_regname): Same.
6389 (init_rom68k_cmds): Same.
6390
6391 2002-06-25 Tom Tromey <tromey@redhat.com>
6392
6393 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6394
6395 2002-06-25 Andrew Cagney <cagney@redhat.com>
6396
6397 * infrun.c (stop_registers): Change variable's type to ``struct
6398 regcache'''.
6399 (xmalloc_inferior_status): Delete function.
6400 (free_inferior_status): Delete function.
6401 (normal_stop): Use regcache_cpy.
6402 (struct inferior_status): Change type of fields ``stop_registers''
6403 and ``registers'' to ``struct regcache''.
6404 (write_inferior_status_register): Use regcache_write.
6405 (save_inferior_status): Instead of calling
6406 xmalloc_inferior_status, allocate the inf_status buffer directly.
6407 Use regcache_dup_no_passthrough and regcache_dup to save the
6408 buffers.
6409 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6410 Replace the stop_registers regcache instead of overriding it. Use
6411 regcache_xfree. Instead of calling free_inferior_status, xfree
6412 the buffer directly.
6413 (discard_inferior_status): Use regcache_xfree. Instead of calling
6414 free_inferior_status, xfree the buffer directly.
6415 (build_infrun): Use regcache_xmalloc.
6416 (_initialize_infrun): Delete redundant call to build_infrun.
6417
6418 * Makefile.in (infcmd.o): Add $(regcache_h).
6419
6420 * infcmd.c: Include "regcache.h".
6421 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6422 obtain the address of `stop_registers' register buffer.
6423 (print_return_value): Ditto.
6424
6425 * inferior.h (struct regcache): Add opaque declaration.
6426 (stop_registers): Change variable's declared type to ``struct
6427 regcache''.
6428
6429 2002-06-24 Tom Tromey <tromey@redhat.com>
6430
6431 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6432 * target.c (initialize_targets): Fixed typo in
6433 trust-readonly-sections `show' documentation.
6434
6435 * main.c: Marked all strings with _().
6436
6437 2002-06-24 Don Howard <dhoward@redhat.com>
6438
6439 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6440 that means max CORE_ADDR+1.
6441 (lookup_mem_region): Ditto.
6442 (mem_info_command): Ditto.
6443
6444 2002-06-24 Grace Sainsbury <graces@redhat.com>
6445
6446 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6447 (REGISTER_BYTES_OK): Remove.
6448 (REGISTER_BYTES): Remove.
6449 (STORE_STRUCT_RETURN): Remove.
6450 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6451 (STORE_RETURN_VALUE): Remove.
6452 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6453 (FRAME_CHAIN): Remove.
6454 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6455 (FRAME_SAVED_PC): Remove.
6456 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6457 (m68k_store_struct_return): Add.
6458 (m68k_deprecated_extract_return_value): Add.
6459 (m68k_deprecated_extract_struct_value_address): Add.
6460 (m68k_store_return_value): Add.
6461 (m68k_frame_chain): Add.
6462 (m68k_frameless_function_invocation): Add.
6463 (m68k_frame_saved_pc): Add.
6464 (m68k_gdbarch_init): added set_gdbarch calls for new
6465 functions and deleted macros.
6466
6467 2002-06-23 Tom Tromey <tromey@redhat.com>
6468
6469 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6470 (ALLDEPFILES): Likewise.
6471 (udiheaders): Removed.
6472 (udip2soc.o): Likewise.
6473 (udi2go32.o): Likewise.
6474 (udr.o): Likewise.
6475 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6476
6477 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6478
6479 * infrun.c (_initialize_infrun): Delete unnecessary call to
6480 build_infrun.
6481
6482 * regcache.h: Update comments describing the regcache_cpy family
6483 of functions.
6484 (regcache_save, regcache_restore): Delete declaration.
6485 (regcache_save_no_passthrough): Delete declaration.
6486 (regcache_restore_no_passthrough): Delete declaration.
6487 * regcache.c (regcache_save): Delete function.
6488 (regcache_save_no_passthrough): Delete function.
6489 (regcache_restore): Delete function.
6490 (regcache_restore_no_passthrough): Delete function.
6491
6492 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6493
6494 * config/m68k/tm-m68k.h: Fix typo.
6495 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6496 (m68k_frame_init_saved_regs): Declare.
6497
6498 2002-06-21 Jim Blandy <jimb@redhat.com>
6499
6500 Remove some vestiges of Harris 88k support.
6501 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6502 register numbering quirk.
6503 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6504 odd symbols occurring in Harris 88k ELF targets.
6505
6506 2002-06-21 Tom Tromey <tromey@redhat.com>
6507
6508 * gdb_locale.h: New file.
6509 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6510 (defs_h): Added gdb_locale.h.
6511 * configure, config.in: Rebuilt.
6512 * configure.in (PACKAGE): Define.
6513 * defs.h: Include gdb_locale.h.
6514 * main.c (captured_main): Call setlocale, bindtextdomain,
6515 textdomain.
6516
6517 2002-06-21 Dave Brolley <brolley@redhat.com>
6518
6519 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6520 * config/frv/frv.mt: New file.
6521 * config/frv/tm-frv.h: New file.
6522 * configure.tgt: Support frv-*-*.
6523 * Makefile.in (frv-tdep.o): New target.
6524 * frv-tdep.c: New file.
6525 * NEWS: Mention frv.
6526
6527 2002-06-21 Dave Brolley <brolley@redhat.com>
6528
6529 * MAINTAINERS: Add self to "Write After Approval" list.
6530
6531 2002-06-21 Grace Sainsbury <graces@redhat.com>
6532
6533 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6534 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6535 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6536 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6537 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6538
6539 * m68k-tdep.c: Include arch-utils.h
6540 (m68k_register_raw_size): Add.
6541 (m68k_register_virtual_size): Add.
6542 (m68k_register_virtual_type): Add.
6543 (m68k_register_name): Add.
6544 (m68k_stack_align): Add.
6545 (m68k_register_byte): Add.
6546 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6547 tm-m68k.h.
6548
6549 2002-06-21 Grace Sainsbury <graces@redhat.com>
6550
6551 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6552 m68k_find_saved_regs.
6553 (m68k_pop_frame): Removed saved_regs structure, and replaced
6554 references to it with frame->saved_regs.
6555 (m68k_gdbarch_init): Added function calls to initialize the
6556 gdbarch structure.
6557 (m68k_fix_call_dummy): Add.
6558 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6559 (CALL_DUMMY): Remove.
6560 (CALL_DUMMY_LENGTH): Remove.
6561 (CALL_DUMMY_START_OFFSET): Remove.
6562 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6563 (FIX_CALL_DUMMY): Remove.
6564 (PUSH_DUMMY_FRAME): Remove.
6565 (POP_FRAME): Remove.
6566
6567 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6568
6569 * parse.c (parse_fprintf): New function used to avoid calls to
6570 fprintf in bison parser generated debug code.
6571 * parser-defs.h: Declaration of new parse_fprintf function.
6572 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6573 Set YYDEBUG to 1 by default.
6574 Set YYFPRINTF as parse_fprintf.
6575
6576 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6577
6578 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6579 encoding anymore.
6580 (pointer_encoding, enum ptr_encoding): New.
6581 (execute_cfa_program): Take care about pointer encoding.
6582 (dwarf2_build_frame_info): Only call parse_frame_info for
6583 .debug_frame and .eh_frame.
6584 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6585 fixed augmentation handling, added relative addressing,
6586 ignore duplicate FDEs. Added comments.
6587 * dwarf2cfi.c: Reindented.
6588
6589 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6590
6591 * event-top.c (command_handler): Don't use space_at_cmd_start
6592 unless there is sbrk() on the host. Assign time and space data
6593 to union fields of the appropriate length.
6594
6595 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6596
6597 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6598 x86_64_register_name. Return type changed to 'const char *'.
6599 (x86_64_register_name2nr): Rename to x86_64_register_number.
6600 (x86_64_gdbarch_init): Update to reflect the change.
6601 * x86-64-tdep.h: Ditto.
6602 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6603 (supply_fpregset): Ditto.
6604
6605 2002-06-19 Andrew Cagney <cagney@redhat.com>
6606
6607 * regcache.h: Update copyright.
6608 (struct regcache, struct gdbarch): Add opaque declarations.
6609 (current_regcache): Declare global variable.
6610 (regcache_read, regcache_write): Add gdbarch parameter.
6611 (regcache_save, regcache_save_no_passthrough)
6612 (regcache_restore, regcache_restore_no_passthrough)
6613 (regcache_dup, regcache_dup_no_passthrough)
6614 (regcache_cpy, regcache_cpy_no_passthrough)
6615 (deprecated_grub_regcache_for_registers)
6616 (deprecated_grub_regcache_for_register_valid)
6617 (regcache_valid_p): Add function declarations.
6618
6619 * regcache.c: Update copyright.
6620 (regcache_descr_handle): New global variable.
6621 (struct regcache_descr): Define.
6622 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6623 (regcache_descr, xfree_regcache_descr): New functions.
6624 (struct regcache): Define.
6625 (regcache_xmalloc, regcache_xfree): New functions.
6626 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6627 (regcache_dup, regcache_dup_no_passthrough): New functions.
6628 (regcache_valid_p, regcache_read_as_address): New functions.
6629 (deprecated_grub_regcache_for_registers): New function.
6630 (deprecated_grub_regcache_for_register_valid): New function.
6631 (current_regcache): New global variable.
6632 (register_buffer): Add regcache parameter. Update calls.
6633 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6634 (read_register_gen, write_register_gen): Update register_buffer
6635 call. Test for legacy_p instead of gdbarch_register_read_p or
6636 gdbarch_register_write_p.
6637 (regcache_collect): Update register_buffer call.
6638 (build_regcache): Rewrite. Use deprecated grub functions.
6639 (regcache_save, regcache_save_no_passthrough): New functions.
6640 (regcache_restore, regcache_restore_no_passthrough): New
6641 functions.
6642 (_initialize_regcache): Create the regcache_data_handle. Swap
6643 current_regcache global variable.
6644
6645 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6646 parameter to regcache_read and regcache_write calls.
6647 (sh4_register_read): Ditto.
6648 (sh64_pseudo_register_read): Ditto.
6649 (sh64_register_read): Ditto.
6650 (sh_pseudo_register_write): Ditto.
6651 (sh4_register_write): Ditto.
6652 (sh64_pseudo_register_write): Ditto.
6653 (sh64_register_write): Ditto.
6654
6655 * defs.h (XCALLOC): Define.
6656
6657 2002-06-19 Grace Sainsbury <graces@redhat.com>
6658
6659 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6660 * m68k-tdep.c (m68k_gdbarch_init): Added.
6661 (m68k_dump_tdep): Added.
6662
6663 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6664
6665 * ada-lang.c (fill_in_ada_prototype): Update comment.
6666
6667 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6668
6669 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6670 MIPS_ABI_LAST.
6671 (mips_abi_string, mips_abi_strings): New.
6672 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6673 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6674 tdep->mips_abi_string. Honor mips_abi_string. Default to
6675 O32 if no ABI is found.
6676 (mips_dump_tdep): Use mips_abi_strings.
6677 (mips_abi_update): New function.
6678 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6679 ``set mips abi'' and ``show mips abi''. Check the size of
6680 mips_abi_strings.
6681
6682 2002-06-19 Andrew Cagney <cagney@redhat.com>
6683
6684 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6685 constant.
6686
6687 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6688
6689 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6690 current frame using only the first stack size adjustment. All
6691 subsequent size adjustments are not considered to be part of
6692 the "static" part of the current frame.
6693 Compute the address of the saved registers relative to the
6694 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6695 in use in this frame.
6696
6697 2002-06-18 Don Howard <dhoward@redhat.com>
6698
6699 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6700 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6701 suggesting this solution.
6702
6703 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6704
6705 * config/romp/xm-rtbsd.h: Delete file.
6706 * config/romp/rtbsd.mh: Delete file.
6707
6708 2002-06-18 Keith Seitz <keiths@redhat.com>
6709
6710 * breakpoint.c (condition_command): Post breakpoint_modify
6711 when a condition is added to an existing breakpoint.
6712 (commands_command): Likewise for commands.
6713 (set_ignore_count): Likewise for ignore counts.
6714 If no tty, do not simply return, still need to send event
6715 notification.
6716 (ignore_command): Only print a newline if the command came
6717 from a tty.
6718 Don't call breakpoints_changed, since this is now properly
6719 handled by set_ignore_count.
6720
6721 2002-06-18 Andrew Cagney <cagney@redhat.com>
6722
6723 * MAINTAINERS: Note that cris-elf target can be compiled with
6724 -Werror.
6725 * cris-tdep.c (cris_register_name): Make return type constant.
6726 (cris_breakpoint_from_pc): Ditto.
6727
6728 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6729
6730 * frame.h (struct frame_info): Change type of context to
6731 'struct context'.
6732
6733 2002-06-17 Andrew Cagney <cagney@redhat.com>
6734
6735 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6736 pointer.
6737 * gdbarch.h, gdbarch.c: Regenerate.
6738 * config/mips/tm-mips.h (mips_register_name): Update.
6739 * i386-tdep.h (i386_register_name): Update.
6740 * mips-tdep.c (mips_register_name): Update
6741 * alpha-tdep.c (alpha_register_name): Update.
6742 * arch-utils.c (legacy_register_name): Update.
6743 * arch-utils.h (legacy_register_name): Update.
6744 * avr-tdep.c (avr_register_name): Update.
6745 * ia64-tdep.c (ia64_register_name): Update.
6746 * i386-tdep.c (i386_register_name): Update.
6747 * sparc-tdep.c (sparc32_register_name): Update.
6748 (sparc64_register_name): Update.
6749 (sparclite_register_name): Update.
6750 (sparclet_register_name): Update.
6751 * sh-tdep.c (sh_generic_register_name): Update.
6752 (sh_sh_register_name): Update.
6753 (sh_sh3_register_name): Update.
6754 (sh_sh3e_register_name): Update.
6755 (sh_sh_dsp_register_name): Update.
6756 (sh_sh3_dsp_register_name): Update.
6757 (sh_sh4_register_name): Update.
6758 (sh_sh64_register_name): Update.
6759 * s390-tdep.c (s390_register_name): Update.
6760 * rs6000-tdep.c (rs6000_register_name): Update.
6761 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6762 (ns32k_register_name_32382): Update.
6763 * d10v-tdep.c (d10v_ts2_register_name): Update.
6764 (d10v_ts3_register_name): Update.
6765 * xstormy16-tdep.c (xstormy16_register_name): Update.
6766 * vax-tdep.c (vax_register_name): Update.
6767 * v850-tdep.c (v850_register_name): Update.
6768 * m68hc11-tdep.c (m68hc11_register_name): Update.
6769 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6770 (am33_register_name): Update.
6771
6772 2002-06-17 Grace Sainsbury <graces@redhat.com>
6773
6774 * m68k-tdep.c: Reindented.
6775
6776 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6777
6778 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6779 list of predefined types.
6780
6781 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6782
6783 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6784 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6785 REGISTER_CONVERT_TO_RAW): Remove defines.
6786 (i386_register_virtual_type, i386_register_convertible,
6787 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6788 Remove prototypes.
6789 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6790 macros mentioned above.
6791
6792 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6793 (i386lynx_saved_pc_after_call): Remove prototype.
6794 * i386ly-tdep.c: Include "i386-tdep.h".
6795 (i386lynx_saved_pc_after_call): Make static. Use
6796 read_memory_nobpt instead of read_memory. Use
6797 read_memory_unsigned_integer instead of read_memory_integer.
6798 (i386lynx_init_abi): New function.
6799 (i386lynx_coff_osabi_sniffer): New function.
6800 (_initialize_i386bsd_tdep): New function.
6801
6802 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6803 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6804 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6805 (i386_fix_call_dummy): Remove prototype.
6806 * i386-tdep.c (i386_call_dummy_words): New variable.
6807 (i386_gdbarch_init): Adjust for removal of the
6808 macros mentioned above.
6809
6810 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6811
6812 * command.h (add_setshow_auto_boolean_cmd): Replace
6813 add_set_auto_boolean_cmd.
6814 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6815 add_set_auto_boolean_cmd.
6816 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6817 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6818 mask-address'' command.
6819 (show_mask_address): Add cmd parameter.
6820 * remote.c (add_packet_config_cmd): Update. Change type of
6821 set_func and show_func to cmd_sfunc_ftype.
6822 (_initialize_remote): Update `set remote Z-packet'
6823 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6824 (show_remote_protocol_e_packet_cmd): Ditto.
6825 (show_remote_protocol_E_packet_cmd): Ditto.
6826 (show_remote_protocol_P_packet_cmd): Ditto.
6827 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6828 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6829 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6830 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6831 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6832 (show_remote_protocol_Z_packet_cmd): Ditto.
6833 (show_remote_protocol_binary_download_cmd): Ditto.
6834 (show_remote_cmd): Pass NULL to all of above.
6835
6836 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6837
6838 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6839 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6840 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6841 POP_FRAME): Remove defines.
6842 (i386_push_arguments, i386_store_struct_return,
6843 i386_extract_return_value, i386_store_return_value,
6844 i386_extract_struct_value_address, i386_push_dummy_frame,
6845 i386_pop_frame): Renove prototypes.
6846 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6847 macros mentioned above.
6848
6849 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6850
6851 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6852 add_set_boolean_cmd.
6853 (add_setshow_cmd): New function.
6854 * command.h (add_setshow_boolean_cmd): Replace
6855 add_set_boolean_cmd.
6856 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6857 and ``set rdiromatzero''.
6858 * maint.c (_initialize_maint_cmds): Update commented out code.
6859 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6860 * target.c (initialize_targets): Update `set
6861 trust-readonly-sections'.
6862 * remote.c (_initialize_remote): Update `set remotebreak'.
6863
6864 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6865
6866 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6867 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6868 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6869 fit into multi-arch framework.
6870 (i386_breakpoint_from_pc): New function.
6871 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6872 above.
6873
6874 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6875 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6876 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6877 (i386_frameless_function_invocation, i386_frame_num_args,
6878 i386_frame_init_saved_regs): Remove prototypes.
6879 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6880 macros mentioned above.
6881
6882 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6883
6884 * cli/cli-decode.c (set_cmd_cfunc): Update.
6885 (set_cmd_sfunc): Update.
6886 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6887 (set_cmd_sfunc, set_cmd_cfunc): Update.
6888 * cli/cli-decode.h: Update.
6889
6890 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6891
6892 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6893 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6894
6895 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6896
6897 * defs.h (auto_boolean): Declare enum.
6898 * command.h (cmd_auto_boolean): Delete enum.
6899 * mips-tdep.c (mask_address_var): Update.
6900 (mips_mask_address_p): Update.
6901 (show_mask_address): Update.
6902 * remote.c (struct packet_config): Update.
6903 (update_packet_config): Update.
6904 (show_packet_config_cmd): Update.
6905 (packet_ok): Update.
6906 (add_packet_config_cmd): Update.
6907 (_initialize_remote):
6908 * command.h: Update.
6909 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6910 (do_setshow_command): Update.
6911 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6912 * cli/cli-decode.h: Update.
6913
6914 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6915
6916 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6917 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6918 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6919 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6920 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6921 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6922
6923 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6924 list of DJGPP COFF targets.
6925
6926 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6927 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6928 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6929 (FP0_REGNUM): Remove define.
6930 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6931 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6932 (i386_register_virtual_size): Remove protoype.
6933 * i386-tdep.c (i386_register_virtual_size): Removed.
6934 (i386_extract_return_value, i386_store_return_value): Use
6935 FP0_REGNUM instead of NUM_FREGS to determine whether the
6936 floating-point registers are available.
6937 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6938 Adjust for removal of macros mentioned above.
6939
6940 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6941
6942 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6943 comments.
6944 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6945 Remove prototypes.
6946 (supply_gregset, fill_gregset): Remove use of register keyword and
6947 remove declaration for regmap. Use I386_NUM_GREGS instead of
6948 NUM_REGS and NUM_FREGS.
6949 (FPREGSET_FSAVE_OFFSET): Remove.
6950 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6951 NUM_FREGS to determine whether the floating-point registers are
6952 available.
6953
6954 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6955 gnu_store_registers): Replace usage of NUM_GREGS with
6956 I386_NUM_GREGS.
6957
6958 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6959 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6960 usage of NUM_GREGS with I386_NUM_GREGS.
6961
6962 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6963
6964 * i386bsd-nat.c: Include "i386-tdep.h".
6965 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6966 I386_NUM_GREGS.
6967
6968 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6969 and associated comment. They no longer make any sense, since we
6970 don't use this file anymore on Linux.
6971
6972 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6973 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6974 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6975 elements in these arrays.
6976 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6977 MAX_NUM_REGS.
6978
6979 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6980
6981 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6982 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6983
6984 2002-06-14 Andrew Cagney <cagney@redhat.com>
6985
6986 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6987 EXTRACT_RETURN_VALUE.
6988 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6989 EXTRACT_STRUCT_VALUE_ADDRESS.
6990 * gdbarch.h, gdbarch.c: Regenerate.
6991
6992 * values.c (value_being_returned): Handle
6993 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6994 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6995
6996 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6997 * arm-tdep.c (arm_gdbarch_init): Update.
6998 * avr-tdep.c (avr_gdbarch_init): Update.
6999 * cris-tdep.c (cris_gdbarch_init): Update.
7000 * d10v-tdep.c (d10v_gdbarch_init): Update.
7001 * ia64-tdep.c (ia64_gdbarch_init): Update.
7002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7003 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7004 * s390-tdep.c (s390_gdbarch_init): Update.
7005 * sh-tdep.c (sh_gdbarch_init): Update.
7006 * s390-tdep.c (s390_gdbarch_init): Update.
7007 * sparc-tdep.c (sparc_gdbarch_init): Update.
7008 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7009 * v850-tdep.c (v850_gdbarch_init): Update.
7010 * vax-tdep.c (vax_gdbarch_init): Update.
7011 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7013
7014 * config/arc/tm-arc.h: Update.
7015 * config/d30v/tm-d30v.h: Update.
7016 * config/fr30/tm-fr30.h: Update.
7017 * config/h8300/tm-h8300.h: Update.
7018 * config/h8500/tm-h8500.h: Update.
7019 * config/i386/tm-i386.h: Update.
7020 * config/i386/tm-ptx.h: Update.
7021 * config/i386/tm-symmetry.h: Update.
7022 * config/i960/tm-i960.h: Update.
7023 * config/m32r/tm-m32r.h: Update.
7024 * config/m68k/tm-delta68.h: Update.
7025 * config/m68k/tm-linux.h: Update.
7026 * config/m68k/tm-m68k.h: Update.
7027 * config/m88k/tm-m88k.h: Update.
7028 * config/mcore/tm-mcore.h: Update.
7029 * config/mips/tm-mips.h: Update.
7030 * config/mn10200/tm-mn10200.h: Update.
7031 * config/pa/tm-hppa.h: Update.
7032 * config/pa/tm-hppa64.h: Update.
7033 * config/sparc/tm-sp64.h: Update.
7034 * config/sparc/tm-sparc.h: Update.
7035 * config/sparc/tm-sparclet.h: Update.
7036 * config/z8k/tm-z8k.h: Update.
7037
7038 2002-06-14 Andrew Cagney <cagney@redhat.com>
7039
7040 * Makefile.in (i386_linux_tdep_h): Define.
7041 (i386_tdep_h, i387_tdep_h): Define.
7042 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7043 $(i386_tdep_h) and $(i387_tdep_h).
7044 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7045
7046 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7047
7048 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7049 Already covered by the default.
7050
7051 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7052 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7053 (i386_gdbarch_init): Initialize long_double_format and long_double
7054 bit.
7055
7056 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7057 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7058 Move these to ...
7059 * config/i386/i386sol2.mh: ... here.
7060 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7061 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7062 (SIGCONTEXT_PC_OFFSET): Remove define.
7063 (IN_SIGTRAMP): Remove define.
7064 * i386-sol2-tdep.c: New file.
7065
7066 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7067 * config/i386/tm-i386nw.h: Removed.
7068
7069 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7070 USE_STRUCT_CONVENTION): Remove defines.
7071 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7072 (get_longjmp_target): Remove prototype.
7073 (IN_SIGTRAMP): Remove define.
7074 (i386bsd_in_sigtramp): Remove prototype.
7075 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7076 function. Update comment accordingly
7077 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7078 (FRAME_SAVED_PC): Remove define.
7079 (i386bsd_frame_saved_pc): Remove prototype.
7080 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7081 GET_LONGJMP_TARGET): Remove defines.
7082 (get_longjmp_target): Remove prototype.
7083 (IN_SIGTRAMP): Remove define.
7084 (i386bsd_in_sigtramp): Remove prototype.
7085 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7086 function. Update comment accordingly
7087 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7088 (FRAME_SAVED_PC): Remove define.
7089 (i386bsd_frame_saved_pc): Remove prototype.
7090 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7091 Remove prototype.
7092 (USE_STRUCT_CONVENTION): Remove prototype.
7093 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7094 declaration.
7095 (_initialize_i386bsd_nat): Revise logic to determine some
7096 constants at compile time when compiling a native GDB. Warn if
7097 things don't match up with what we expect.
7098 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7099 Remove variables.
7100 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7101 to use date stored in `struct gdbarch_tdep'.
7102 (i386bsd_sigcontext_offset): Remove varaible.
7103 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7104 stored in `struct gdbarch_tdep'.
7105 (i386bsd_frame_saved_pc): Make static.
7106 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7107 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7108 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7109 i386fbsd4_sc_pc_offset): New variables.
7110 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7111 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7112 functions.
7113 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7114 functions.
7115 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7116 Modify the value of i386fbsd_sigtramp_start and
7117 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7118 i386fbsd_sigtramp_end.
7119 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7120 function.
7121
7122 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7123 define to i386-linux-tdep.h.
7124 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7125 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7126 defines.
7127 (i386_linux_register_name, i386_linux_register_byte,
7128 i386_linux_register_raw_size): Remove prototypes.
7129 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7130 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7131 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7132 TARGET_WRITE_PC): Remove defines.
7133 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7134 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7135 i386_linux_write_pc): Remove prototypes.
7136 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7137 (get_longjmp_target): Remove prototype.
7138 * i386-linux-tdep.h: New file.
7139 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7140 * i386-linux-tdep.c: Include "i386-tdep.h" and
7141 "i386-linux-tdep.h".
7142 (i386_linux_register_name, i386_linux_register_byte,
7143 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7144 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7145 Make static.
7146 (i386_linux_init_abi): New function.
7147 (_initialize_i386_linux_tdep): New function.
7148
7149 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7150 (i386_saved_pc_after_call): Remove prototype.
7151 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7152 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7153 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7154 (i386_register_name, i386_stab_reg_to_regnum,
7155 i386_dwarf_reg_to_regnum): Remove prototypes.
7156 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7157 SIZEOF_SSE_REGS): Remove defines.
7158 (REGISTER_BYTES): Remove define.
7159 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7160 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7161 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7162 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7163 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7164 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7165 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7166 (get_longjmp_target): Remove prototype.
7167 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7168 (sigtramp_saved_pc): Remove define.
7169 (i386v4_sigtramp_saved_pc): Remove prototype.
7170 * config/i386/tm-go32.h (FRAME_CHAIN,
7171 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7172 (i386go32_frame_saved_pc): Remove prototype.
7173 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7174 (get_longjmp_target): Remove prototype.
7175 * i386-tdep.h: Include "osabi.h".
7176 (enum i386_abi): Removed.
7177 (enum struct_return): New enum.
7178 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7179 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7180 sc_pc_offset members.
7181 (i386_gdbarch_register_os_abi): Remove prototype.
7182 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7183 I386_SSE_NUM_REGS): New defines.
7184 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7185 I386_SSE_SIZEOF_REGS): New defines.
7186 (i386_register_name, i386_register_byte, i386_register_raw_size):
7187 New prototypes.
7188 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7189 (i386bsd_sigtramp_saved_pc): New prototype.
7190 * i386-tdep.c: Don't include "elf-bfd.h".
7191 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7192 i386_frame_chain, i386_saved_pc_after_call): Make static.
7193 (i386_frame_saved_pc): Rewrite to call architecture dependent
7194 function to deal with signal handlers. Make static.
7195 (i386go32_frame_saved_pc): Removed.
7196 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7197 Removed.
7198 (i386_get_longjmp_target): New function.
7199 (default_struct_convention, pcc_struct_convention,
7200 reg_struct_convention, valid_conventions, struct_convention): New
7201 variables.
7202 (i386_use_struct_convention): New function.
7203 (i386v4_sigtramp_saved_pc): Renamed to
7204 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7205 (i386_pc_in_sigtramp): New function.
7206 (i386_abi_names): Removed.
7207 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7208 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7209 Removed.
7210 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7211 i386_gdbarch_register_os_abi): Removed.
7212 (struct i386_abi_handler): Removed.
7213 (i386_abi_handler_list): Removed.
7214 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7215 functions.
7216 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7217 i386_nw_init_abi): New functions.
7218 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7219 Use set_gdbarch_xxx() calls instead of relying on macros for a
7220 number of calls.
7221 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7222 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7223 Register the various architecture variants defined in this file.
7224
7225 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7226
7227 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7228 (struct main_type): Remove arg_types member. Update comments for
7229 struct field.
7230 (TYPE_ARG_TYPES): Remove.
7231 (TYPE_FN_FIELD_ARGS): Update.
7232 (smash_to_method_type): Update prototype.
7233
7234 * c-typeprint.c (cp_type_print_method_args): Take method type
7235 instead of argument list. Use new argument layout. Simplify.
7236 (c_type_print_args): Use new argument layout. Simplify.
7237 (c_type_print_base): Update call to cp_type_print_method_args.
7238 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7239 argument; use die->type instead. Update call to
7240 smash_to_method_type.
7241 (read_structure_scope): Update call to dwarf2_add_member_fn.
7242 * gdbtypes.c (allocate_stub_method): Update comment.
7243 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7244 Use new argument layout.
7245 (check_stub_method): Use new argument layout. Don't count
7246 void as an argument.
7247 (print_arg_types): Update comments. Use new argument layout.
7248 (recursive_dump_type): Don't print arg_types member.
7249 * hpread.c (hpread_read_struct_type): Use new argument layout.
7250 (fixup_class_method_type): Likewise.
7251 (hpread_type_lookup): Likewise.
7252 * stabsread.c (read_type): Update calls to read_args and
7253 smash_to_method_type.
7254 (read_args): Use new argument layout. Simplify.
7255 * valops.c (typecmp): Use new argument layout. Update parameters
7256 and comments. Simplify.
7257 (hand_function_call): Use new argument layout.
7258 (search_struct_method): Update call to typecmp.
7259 (find_overload_match): Use new argument layout.
7260
7261 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * NEWS: Mention multithreaded debug support for gdbserver.
7264
7265 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7266
7267 * MAINTAINERS: Mention NEWS.
7268
7269 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7270
7271 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7272 (struct mips_objfile_private, compare_pdr_entries): New.
7273 (non_heuristic_proc_desc): Read the ".pdr" section if it
7274 is present.
7275
7276 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7277
7278 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7279 (arm_debug): New static variable.
7280 (_initialize_arm_tdep): Add ``set debug arm'' command.
7281
7282 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7283
7284 * Makefile.in (sim_arm_h): Define.
7285 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7286 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7287 (arm_register_sim_regno): New function, map an internal REGNUM
7288 onto a simulator register number.
7289 (arm_gdbarch_init): Set register_sim_regno.
7290
7291 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7292
7293 * MAINTAINERS: Add self.
7294
7295 2002-06-11 Jim Blandy <jimb@redhat.com>
7296
7297 * source.c (source_info): Mention whether the symtab has
7298 information about preprocessor macros.
7299
7300 Call the command `info macro', not `show macro'.
7301 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7302 Fix error message.
7303 (_initialize_macrocmd): Register `info_macro_command' in
7304 `infolist', not `showlist'.
7305
7306 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7307
7308 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7309 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7310 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7311 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7312 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7313 unconditionally.
7314 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7315 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7316 (_initialize_mips_tdep): Remove dead code.
7317 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7318 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7319 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7320 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7321 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7322 MIPS_LAST_FP_ARG_REGNUM): Remove.
7323
7324 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7325
7326 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7327 (unwind_tmp_obstack_free, parse_frame_info)
7328 (update_context, cfi_read_fp, cfi_write_fp)
7329 (cfi_frame_chain, cfi_init_extra_frame_info)
7330 (cfi_virtual_frame_pointer): Use the above function.
7331 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7332
7333 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7334
7335 * v850-tdep.c (v850_type_is_scalar): New function.
7336 (v850_use_struct_convention): Match current gcc implementation
7337 as close as possible.
7338 (v850_push_arguments): Fix stack_offset handling. Don't write
7339 struct_addr into register. This is done by v850_store_struct_return.
7340 (v850_extract_return_value): Care for structs.
7341 (v850_store_return_value): Ditto.
7342 (v850_store_struct_return): Actually write address.
7343
7344 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7345
7346 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7347 without debug information too.
7348
7349 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7350
7351 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7352 Make multi-arch pure.
7353 * gdbarch.h, gdbarch.c: Re-generate.
7354 * arm-tdep.c (arm_print_float_info): Update.
7355 * arch-utils.h (default_print_float_info): Update.
7356 * arch-utils.c (default_print_float_info): Update.
7357 * infcmd.c (float_info): Update call.
7358
7359 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7360
7361 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7362 the front of the initialize list.
7363
7364 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7365
7366 * infrun.c (struct inferior_status): Replace fields
7367 selected_frame_address and selected_level with field
7368 selected_frame_id.
7369 (save_inferior_status): Update. Use get_frame_id.
7370 (struct restore_selected_frame_args): Delete.
7371 (restore_selected_frame): Update. Use frame_find_by_id.
7372 (restore_inferior_status): Update.
7373
7374 * breakpoint.h (struct breakpoint): Change type of
7375 watchpoint_frame to frame_id.
7376 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7377 call to get_current_frame.
7378 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7379 get_current_frame.
7380 (watchpoint_check): Use frame_find_by_id.
7381
7382 * frame.h (record_selected_frame): Delete declaration.
7383 * stack.c (record_selected_frame): Delete function.
7384
7385 * frame.h (struct frame_id): Define.
7386 (get_frame_id): Declare.
7387 (frame_find_by_id): Declare.
7388 * frame.c (frame_find_by_id): New function.
7389 (get_frame_id): New function.
7390
7391 2002-06-10 Andrey Volkov <avolkov@transas.com>
7392
7393 * ser-e7kpc.c: Fix duplicated define and call of
7394 _initialize_ser_e7000pc
7395
7396 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7397
7398 * signals/signals.c (target_signal_from_host): Fix #ifdef
7399 SIGRTMIN case.
7400 (do_target_signal_to_host): Likewise.
7401
7402 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7403
7404 * mips-tdep.c (mips_find_abi_section): New function.
7405 (mips_gdbarch_init): Call it.
7406
7407 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7408
7409 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7410 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7411 after Andrew's 2002-06-08 gdbarch change.
7412
7413 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7414
7415 * i386-linux-nat.c (suppy_gregset): Don't supply
7416 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7417 register cache.
7418 (fill_gregset): Don't fetch it under the same circumstances.
7419
7420 2002-06-09 Andrew Cagney <cagney@redhat.com>
7421
7422 * Makefile.in (callback_h): Define.
7423 (remote_sim_h): Update path to remote-sim.h.
7424 (remote-rdp.o): Add $(callback_h).
7425 (remote-sim.o): Use $(callback_h).
7426 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7427 * remote-rdp.c: Include "gdb/callback.h".
7428
7429 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7430
7431 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7432 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7433
7434 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7435
7436 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7437 * rdi-share/serpardr.c: Ditto.
7438 * rdi-share/unixcomm.c: Ditto.
7439 * rdi-share/serdrv.c: Ditto.
7440 * rdi-share/hostchan.h: Ditto.
7441 * rdi-share/hostchan.c: Ditto.
7442 * rdi-share/host.h: Ditto.
7443 * rdi-share/devsw.c: Ditto.
7444
7445 * objfiles.h: Change type of obj_private to void pointer.
7446 * pa64solib.c: Update copyright. Don't include "assert.h", use
7447 strcmp instead of STREQ, use LONGEST, do not use PTR
7448 * somsolib.c: Ditto.
7449
7450 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7451 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7452 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7453
7454 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7455
7456 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7457 (default_get_saved_register): Delete function.
7458 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7459 generic_unwind_get_saved_register.
7460 * gdbarch.h, gdbarch.c: Re-generate.
7461
7462 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7463
7464 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7465 generic_func_frame_chain_valid.
7466 * gdbarch.h, gdbarch.c: Re-generate.
7467 * blockframe.c (generic_func_frame_chain_valid): Only check
7468 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7469 passing FP to PC_IN_CALL_DUMMY.
7470 Fix PR gdb/360.
7471
7472 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7473
7474 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7475 (register_gdbarch_data): Initialize init_p.
7476 (gdbarch_data): Initialize data pointer using the init function.
7477 (init_gdbarch_data): Delete function.
7478 (gdbarch_update_p): Update.
7479 (initialize_non_multiarch): Update.
7480 (struct gdbarch): Add field initialized_p.
7481 * gdbarch.h, gdbarch.c: Re-generate.
7482
7483 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7484
7485 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7486 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7487 better do the things actually here.
7488 * x86-64-tdep.c (x86_64_register_name2nr): New.
7489 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7490 (x86_64_gdbarch_init): Respect the above change.
7491 * x86-64-tdep.h (x86_64_register_name2nr)
7492 (x86_64_register_nr2name): Add prototypes.
7493 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7494
7495 2002-06-06 Michael Snyder <msnyder@redhat.com>
7496
7497 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7498 Delete extra braces and re-indent.
7499 (d10v_store_return_value): Char return values
7500 must be shifted over by one byte in R0.
7501 (d10v_extract_return_value): Delete extra braces, re-indent.
7502
7503 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7504
7505 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7506 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7507 (d10v_integer_to_address): Rewrite.
7508 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7509 the d10v specific functions which take care of converting to the
7510 correct space.
7511
7512 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7513
7514 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7515 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7516
7517 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7518
7519 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7520 includes.
7521 * config/tm-linux.h: Ditto.
7522 * config/alpha/tm-alphalinux.h: Ditto.
7523 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7524 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7525 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7526 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7527 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7528 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7529 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7530 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7531 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7532 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7533 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7534 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7535 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7536 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7537 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7538 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7539 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7540 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7541 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7542 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7543 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7544 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7545 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7546 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7547 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7548 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7549 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7550 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7551 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7552 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7553 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7554 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7555 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7556 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7557 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7558 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7559 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7560
7561 2002-05-04 Aidan Skinner <aidan@velvet.net>
7562
7563 * ada-exp.tab.c: New file
7564 * ada-exp.y: New file
7565 * ada-lang.c: New file
7566 * ada-lang.h: New file
7567 * ada-lex.c: New file
7568 * ada-lex.l: New file
7569 * ada-tasks.c: New file
7570 * ada-typeprint.c: New file
7571 * ada-valprint.c: New file
7572
7573 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7574
7575 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7576 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7577
7578 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7579
7580 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7581 insetead of ppc-linux-tdep.o.
7582 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7583 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7584
7585 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7586
7587 2002-05-07 Christian Groessler <chris@groessler.org>
7588 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7589 bit register contents for little endian hosts.
7590
7591 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7592
7593 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7594 any maintainer.
7595
7596 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7597
7598 * gdbarch.h: Regenerate.
7599
7600 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7601
7602 * MAINTAINERS: Add everyone to write-after-approval list.
7603
7604 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7605
7606 * stack.c (frame_info): Use frame_register_unwind instead of
7607 saved_regs. Mention when the SP is on the stack or in a register.
7608
7609 * frame.h (frame_register_unwind_ftype): Define. Document.
7610 (struct frame_info): Add field register_unwind and
7611 register_unwind_cache.
7612 (frame_register_unwind): Declare.
7613 (generic_unwind_get_saved_register): Declare.
7614
7615 * frame.c (frame_register_unwind): New function.
7616 (generic_unwind_get_saved_register): New function.
7617
7618 * blockframe.c (generic_call_dummy_register_unwind): New function.
7619 (frame_saved_regs_register_unwind): New function.
7620 (set_unwind_by_pc): New function.
7621 (create_new_frame): New function.
7622 (get_prev_frame): New function.
7623
7624 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7625
7626 * a29k-share/: Delete directory.
7627 * remote-vx29k.c: Delete file.
7628
7629 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7630
7631 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7632 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7633
7634 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7635
7636 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7637 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7638 (sparc64nbsd-nat.o)
7639 (sparcnbsd-nat.o)
7640 (sparcnbsd-tdep.o): New dependency lists.
7641 * NEWS: Note new UltraSPARC NetBSD native configuration.
7642 * configure.host (sparc64-*-netbsd*): New host.
7643 * configure.tgt (sparc-*-netbsdelf*)
7644 (sparc-*-netbsd*): Set gdb_target to nbsd.
7645 (sparc64-*-netbsd*): New target.
7646 * sparc64nbsd-nat.c: New file.
7647 * sparcnbsd-nat.c: New file.
7648 * sparcnbsd-tdep.c: New file.
7649 * sparcnbsd-tdep.h: New file.
7650 * config/sparc/nbsd.mt: New file.
7651 * config/sparc/nbsd64.mh: New file.
7652 * config/sparc/nbsd64.mt: New file.
7653 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7654 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7655 (HOST_IPC): Remove.
7656 * config/sparc/nbsdaout.mt: Remove.
7657 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7658 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7659 (HOST_IPC): Remove.
7660 * config/sparc/nbsdelf.mt: Remove.
7661 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7662 sparc-nat.c compatiblity defines.
7663 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7664 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7665 * config/sparc/tm-nbsd64.h: New file.
7666 * config/sparc/tm-nbsdaout.h: Remove.
7667 * config/sparc/xm-nbsd.h: Remove.
7668
7669 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7670
7671 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7672 * sparc-tdep.c: Include osabi.h.
7673 (gdbarch_tdep): Add osabi member.
7674 (_initialize_sparc_tdep): Use gdbarch_register.
7675 (sparc_gdbarch_init): Use generic OS ABI framework.
7676 (sparc_dump_tdep): New function.
7677
7678 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7679
7680 * corefile.c (do_captured_read_memory_integer): Return non-zero
7681 result.
7682 (safe_read_memory_integer): Copy result of memory read when
7683 status is non-zero. Also, add comments.
7684
7685 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7686
7687 * Makefile.in (ppc_tdep_h): Define.
7688 (ppc-linux-nat.o)
7689 (ppc-linux-tdep.o)
7690 (rs6000-tdep.o): Use $(ppc_tdep_h).
7691 (ppc-sysv-tdep.o)
7692 (ppcnbsd-nat.o)
7693 (ppcnbsd-tdep.o): New dependency lists.
7694 * ppc-tdep.h: Use generic OS ABI framework.
7695 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7696 (ppc_linux_init_abi): New functions.
7697 (ppc_sysv_abi_broken_use_struct_convention)
7698 (ppc_sysv_abi_use_struct_convention)
7699 (ppc_sysv_abi_push_arguments): Move to...
7700 * ppc-sysv-tdep.c: ...here.
7701 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7702 * rs6000-tdep.c (process_note_abi_tag_sections)
7703 (get_elfosabi): Remove.
7704 (rs6000_gdbarch_init): Use generic OS ABI framework.
7705 (rs6000_dump_tdep): New function.
7706 (_initialize_rs6000_tdep): Use gdbarch_register.
7707 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7708 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7709 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7710 of ppc-linux-tdep.o.
7711 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7712 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7713 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7714 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7715 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7716 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7717
7718 2002-05-29 Jim Blandy <jimb@redhat.com>
7719
7720 * macroscope.c (default_macro_scope): Put `void' in empty argument
7721 list.
7722
7723 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7724
7725 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7726 * arch-utils.c: Include "sim-regno.h".
7727 * gdbarch.sh: Don't include "sim-regno.h".
7728 * gdbarch.h, gdbarch.c: Regenerate.
7729 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7730 here.
7731 * arch-utils.h (legacy_register_sim_regno): To here.
7732 * remote-sim.c (legacy_register_sim_regno): Move function from
7733 here.
7734 * arch-utils.c (legacy_register_sim_regno): To here.
7735
7736 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7737
7738 * sim-regno.h: New file.
7739 * Makefile.in (sim_regno_h): Define.
7740 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7741 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7742 (legacy_register_sim_regno): New function.
7743 (one2one_register_sim_regno): New function.
7744 (gdbsim_fetch_register): Rewrite.
7745 (gdbsim_store_register): Only store a register when
7746 REGISTER_SIM_REGNO is valid.
7747 * d10v-tdep.c: Include "sim-regno.h".
7748 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7749 (d10v_ts3_register_sim_regno): Ditto.
7750 * gdbarch.sh: Include "sim-regno.h".
7751 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7752 * gdbarch.h, gdbarch.c: Regenerate.
7753 * arch-utils.h (default_register_sim_regno): Delete declaration.
7754 * arch-utils.c (default_register_sim_regno): Delete function.
7755
7756 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7757
7758 * ppcnbsd-nat.c: Rewrite.
7759 * ppcnbsd-tdep.c: New file.
7760 * ppcnbsd-tdep.h: New file.
7761 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7762 solib.o, and solib-svr4.o.
7763 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7764 nbsd-tdep.o, and corelow.o.
7765
7766 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7767
7768 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7769 `tr' and `sed'. Mention that `broken' targets are not expected to
7770 build.
7771
7772 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7773
7774 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7775 Let PC point right after the prologue before looking up symbols.
7776
7777 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7778
7779 * i386-tdep.c (i386_register_virtual_type): Return
7780 builtin_type_vec128i for SSE registers.
7781
7782 * gdbtypes.h (builtin_type_vec128i): Declare.
7783
7784 * gdbtypes.c (build_builtin_type_vec128i): New function.
7785 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7786 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7787 (build_gdbtypes): Initialize new builtin vector types.
7788 (_initialize_gdbtypes): Register new vector types with gdbarch.
7789
7790 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7791
7792 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7793 since it has been multi-arch'd.
7794 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7795 Move Alpha and VAX multi-arch news entries to same section
7796 as other multi-arch news.
7797
7798 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7801 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7802 static. Rename some register numbers to put them in ns32k-tdep
7803 private namespace.
7804 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7805 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7806 functions.
7807 (_initialize_ns32k_tdep): Use gdbarch_register.
7808 * ns32k-tdep.h: New file.
7809 * ns32knbsd-tdep.c: New file.
7810 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7811 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7812 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7813 REGISTER_BYTES, REGISTER_BYTE): Remove.
7814 * config/ns32k/tm-ns32k.h: New file.
7815 * config/ns32k/tm-umax.h: Remove.
7816
7817 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7818
7819 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7820 ns32k_store_struct_return, ns32k_extract_return_value,
7821 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7822 functions.
7823 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7824 ns32k_saved_pc_after_call.
7825 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7826 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7827 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7828 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7829 ns32k_extract_struct_value_address.
7830
7831 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7832
7833 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7834 ns32k_fix_call_dummy): New.
7835 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7836 ns32k_call_dummy_words.
7837 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7838 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7839 CALL_DUMMY_NARGS): Remove.
7840 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7841
7842 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7843
7844 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7845 ns32k_frame_saved_pc, ns32k_frame_args_address,
7846 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7847 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7848 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7849 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7850 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7851 (BREAKPOINT): Remove..
7852 (FRAME_CHAIN): Define as ns32k_frame_chain.
7853 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7854 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7855 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7856 (FRAME_FIND_SAVED_REGS): Remove.
7857 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7858 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7859 (POP_FRAME): Define as ns32k_pop_frame.
7860
7861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7862
7863 * ns32k-tdep.c (ns32k_register_byte_32082,
7864 ns32k_register_byte_32382, ns32k_register_raw_size,
7865 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7866 functions.
7867 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7868 ns32k_register_byte_32382.
7869 * config/ns32k/tm-umax.h: Update copyright years.
7870 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7871 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7872 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7873 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7874 (ns32k_get_enter_addr): Fix prototype.
7875
7876 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7877
7878 * ns32k-tdep.c: Update copyright years.
7879 (ns32k_register_name_32082): New function.
7880 (ns32k_register_name_32382): Ditto.
7881 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7882 (REGISTER_NAME): Define as ns32k_register_name_32382.
7883 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7884 (REGISTER_NAME): Define as ns32k_register_name_32082.
7885
7886 2002-05-24 Jim Blandy <jimb@redhat.com>
7887
7888 * dwarf2read.c (free_line_header): Use xfree, not free.
7889
7890 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7891
7892 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7893 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7894
7895 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7896
7897 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7898
7899 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7900
7901 From Ross Alexander at NEC Europe:
7902 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7903
7904 2002-05-23 Michael Snyder <msnyder@redhat.com>
7905
7906 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7907 for input, rather than parse_and_eval_address.
7908
7909 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7910
7911 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7912 * Makefile.in (sim_d10v_h): Update definition.
7913
7914 2002-05-24 Andrew Cagney <cagney@redhat.com>
7915
7916 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7917 change `2002-05-22 Michael Snyder' below.
7918 (d10v_push_arguments): Ditto.
7919 (d10v_extract_return_value): Ditto.
7920
7921 2002-05-23 Jim Blandy <jimb@redhat.com>
7922
7923 * macrotab.c (check_for_redefinition): Don't complain if the new
7924 definition is the same as the previous one. Take more arguments
7925 to allow the comparison.
7926 (macro_define_object, macro_define_function): Pass more arguments
7927 to check_for_redefinition.
7928
7929 2002-05-22 Michael Snyder <msnyder@redhat.com>
7930
7931 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7932 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7933 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7934 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7935 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7936 Add a temp variable to save a call (and a memory read).
7937 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7938 if possible (so that PC_IN_CALL_DUMMY will work).
7939
7940 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7941
7942 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7943
7944 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7945
7946 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7947 fde->cie_ptr.
7948 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7949 (dwarf2_build_frame_info): Add offset to fde->initial_location
7950 so that frames of shared libraries are mapped correctly.
7951 (execute_stack_op): Change type of 'result' from ULONGEST to
7952 CORE_ADDR.
7953
7954 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7955
7956 * config/alpha/tm-nbsd.h: Include solib.h.
7957
7958 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7959
7960 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7961 assumptions about the host's byte order.
7962
7963 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7964
7965 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7966 to dependency list.
7967 * alphanbsd-tdep.c: Include solib-svr4.h.
7968 * shnbsd-tdep.c: Ditto.
7969
7970 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7971
7972 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7973 nbsd-tdep.h to dependency list.
7974 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7975 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7976 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7977 nbsdaout.mh and nbsdelf.mh consistently.
7978 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7979 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7980 nbsdaout.mt and nbsdelf.mh consistently.
7981 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7982 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7983 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7984 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7985 a.out shared library stuff from here...
7986 * config/nm-nbsdaout.h: ...to here.
7987 * config/tm-nbsd.h: Remove.
7988 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7989 * config/arm/nbsd.mh: Remove.
7990 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7991 nbsd-tdep.o.
7992 * config/arm/nbsdaout.mh: New file.
7993 * config/arm/nbsdelf.mh: New file.
7994 * config/arm/nm-nbsdaout.h: New file.
7995 * config/i386/nbsd.mh: Remove.
7996 * config/i386/nbsd.mt: Remove.
7997 * config/i386/nbsdaout.mh: New file.
7998 * config/i386/nbsdaout.mt: New file.
7999 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8000 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8001 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8002 i386_register_u_addr): Remove.
8003 * config/i386/nm-nbsdaout.h: New file.
8004 * config/i386/nm-nbsdelf.h: Remove.
8005 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8006 (USE_STRUCT_CONVENTION): Remove.
8007 * config/i386/tm-nbsdaout.h: New file.
8008 * config/i386/tm-nbsdelf.h: Remove.
8009 * config/m68k/nbsd.mh: Remove.
8010 * config/m68k/nbsd.mt: Remove.
8011 * config/m68k/nbsdaout.mh: New file.
8012 * config/m68k/nbsdaout.mt: New file.
8013 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8014 * config/m68k/nm-nbsdaout.h: New file.
8015 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8016 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8017 * config/ns32k/nbsd.mh: Remove.
8018 * config/ns32k/nbsd.mt: Remove.
8019 * config/ns32k/nbsdaout.mh: New file.
8020 * config/ns32k/nbsdaout.mt: New file.
8021 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8022 * config/ns32k/nm-nbsdaout.h: New file.
8023 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8024 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8025 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8026 (SVR4_SHARED_LIBS): Remove.
8027 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8028 * config/sparc/nbsd.mh: Remove.
8029 * config/sparc/nbsd.mt: Remove.
8030 * config/sparc/nbsdaout.mh: New file.
8031 * config/sparc/nbsdaout.mt: New file.
8032 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8033 * config/sparc/nbsdelf.mt: New file.
8034 * config/sparc/nm-nbsdaout.h: New file.
8035 * config/sparc/nm-nbsdelf.h: Remove.
8036 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8037 * config/sparc/tm-nbsdaout.h: New file.
8038
8039 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8040
8041 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8042 mipsnbsd-tdep.c
8043 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8044
8045 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8046
8047 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8048 shnbsd-nat.c.
8049 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8050
8051 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8052
8053 * NEWS: Note new MIPS NetBSD native configuration.
8054 * configure.host (mips*-*-netbsd*): New host.
8055 * configure.tgt (mips*-*-netbsd*): New target.
8056 * mipsnbsd-nat.c: New file.
8057 * mipsnbsd-tdep.c: New file.
8058 * mipsnbsd-tdep.h: New file.
8059 * config/mips/nbsd.mh: New file.
8060 * config/mips/nbsd.mt: New file.
8061 * config/mips/nm-nbsd.h: New file.
8062 * config/mips/tm-nbsd.h: New file.
8063
8064 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8065
8066 * Makefile.in (SFILES): Add osabi.c.
8067 (COMMON_OBS): Add osabi.o.
8068 (osabi.o): New dependency list.
8069 * osabi.c: New file.
8070 * osabi.h: New file.
8071 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8072
8073 * Makefile.in (alpha_tdep_h): Define and use instead of
8074 alpha-tdep.h.
8075 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8076 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8077 Remove.
8078 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8079 * alpha-tdep.h: Include osabi.h.
8080 (alpha_abi): Remove.
8081 (gdbarch_tdep): Use generic OS ABI framework.
8082 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8083 gdbarch_register_osabi.
8084 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8085 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8086 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8087
8088 * Makefile.in (sh_tdep_h): Add osabi.h.
8089 * sh-tdep.h (sh_osabi): Remove.
8090 (gdbarch_tdep): Use generic OS ABI framework.
8091 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8092 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8093 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8094 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8095
8096 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8097 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8098 gdbarch_register_osabi.
8099 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8100 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8101 (get_elfosabi): Rename to...
8102 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8103 ABI framework support routines.
8104 (arm_gdbarch_init): Use generic OS ABI framework.
8105 (arm_dump_tdep): Likewise.
8106 (_initialize_arm_tdep): Likewise.
8107 * arm-tdep.h: Include osabi.h.
8108 (arm_abi): Remove.
8109 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8110 osabi member.
8111 (arm_gdbarch_register_os_abi): Remove prototype.
8112 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8113 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8114
8115 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8116 * mips-tdep.c: Include osabi.h.
8117 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8118 OS ABI framework.
8119
8120 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8121
8122 * h8300-tdep.c: Fix formatting.
8123
8124 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8125
8126 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8127 printing vector registers.
8128
8129 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8130
8131 From Fernando Nasser:
8132 * remote.c (remote_async_open_1): Re-throw the exception when the
8133 connection fails.
8134 (remote_cisco_open): Ditto.
8135 (remote_open_1): Ditto.
8136
8137 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8138
8139 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8140 (remote_start_remote): Add uiout parameter. Pass through to
8141 remote_start_remote_dummy.
8142 (remote_open_1): Use catch_exception instead of catch_errors.
8143 (remote_async_open_1): Ditto.
8144 (remote_cisco_open): Ditto.
8145
8146 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8147
8148 * remote.c (remote_start_remote): Replace PTR with void pointer.
8149 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8150 static.
8151
8152 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8153
8154 * gdb_indent.sh: Allow the script to be run in the sim directory.
8155
8156 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8157
8158 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8159 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8160
8161 * corelow.c (core_open): Only call set_gdbarch_from_file if
8162 exec_bfd is NULL.
8163
8164 2002-05-17 Andrey Volkov <avolkov@transas.com>
8165
8166 * h8300-tdep.c: Add support of EXR register
8167 * config/h8300/tm-h8300.h: Ditto.
8168
8169 2002-05-17 Andrey Volkov <avolkov@transas.com>
8170
8171 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8172
8173 2002-05-17 Andrey Volkov <avolkov@transas.com>
8174
8175 * h8300-tdep.c: Change literal regnums to REGNO.
8176
8177 2002-05-17 Jim Blandy <jimb@redhat.com>
8178
8179 * NEWS: Note addition of macro support.
8180
8181 Expand preprocessor macros in C expressions.
8182 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8183 (scan_macro_expansion, scanning_macro_expansion,
8184 finished_macro_expansion): New function declarations.
8185 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8186 variable declarations.
8187 * parser-defs.h (expression_context_pc): New declaration.
8188 * parse.c (expression_context_pc): New variable.
8189 (parse_exp_1): Set expression_context_pc, as well as
8190 expression_context_block.
8191 * c-exp.y (yylex): If we're not already reading the result of a
8192 macro expansion, try to macro-expand the next token. When we're
8193 done scanning a macro expansion, switch back to the mainline text.
8194 Commas and `if's in a macro's expansion don't terminate the input.
8195 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8196 (macro_original_text, macro_expanded_text,
8197 expression_macro_lookup_func, expression_macro_lookup_baton): New
8198 variables.
8199 (scan_macro_expansion, scanning_macro_expansion,
8200 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8201 c_preprocess_and_parse): New functions.
8202 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8203 c_preprocess_and_parse, instead of c_parse.
8204 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8205 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8206
8207 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8208
8209 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8210 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8211 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8212
8213 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8214
8215 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8216
8217 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8218
8219 * Makefile.in (sh_tdep_h): Define and use.
8220 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8221 register enum): Move to...
8222 * * sh-tdep.h: ...here.
8223 * sh-tdep.c: Include sh-tdep.h.
8224 * sh3-rom.c: Likewise.
8225 * shnbsd-tdep.c: Likewise.
8226
8227 2002-05-16 Michael Snyder <msnyder@redhat.com>
8228
8229 * arm-tdep.c: Spelling fix in comment.
8230
8231 2002-05-16 Jim Blandy <jimb@redhat.com>
8232
8233 Add commands for manually expanding macros and showing their
8234 definitions.
8235 * macrocmd.c, macroscope.c, macroscope.h: New files.
8236 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8237 (macroscope_h): New variable.
8238 (HFILES_NO_SRCDIR): Add macroscope.h.
8239 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8240 (macroscope.o, macrocmd.o): New rules.
8241
8242 Teach the Dwarf 2 reader to read macro information.
8243 * dwarf2read.c: #include "macrotab.h".
8244 (dwarf_macinfo_buffer): New variable.
8245 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8246 dwarf_macinfo_size.
8247 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8248 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8249 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8250 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8251 dwarf2_macro_spaces_in_definition): New complaints.
8252 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8253 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8254 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8255 the partial symbol table.
8256 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8257 from what's recorded in the partial symbol table.
8258 (read_file_scope): If the compilation unit has a
8259 `DW_AT_macro_info' attribute, read its macro information.
8260 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8261
8262 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8263
8264 Fix PR gdb/546
8265 * ser-tcp.c: Don't include <netinet/udp.h>.
8266
8267 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8268
8269 * MAINTAINERS: Update my email address.
8270
8271 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8272
8273 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8274 include file of the same name.
8275
8276 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8277
8278 * configure.tgt: Mark v850 as multi-arched.
8279 * config/v850/tm-v850.h: Remove file.
8280 * config/v850/v850.mt: Eliminate TM_FILE.
8281
8282 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8283
8284 * v850-tdep.c: Full multi-arch.
8285 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8286 Define GDB_MULTI_ARCH to 2.
8287
8288 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8289
8290 * p-exp.y (current_type): New static variable.
8291 Carries the type of the expression at the position that is parsed.
8292 (push_current_type, pop_current_type): Two new functions. Used
8293 to store/restore current_type in expression on specific tokens.
8294 (search_field): New static variable. Set to one after parsing a point
8295 as at that point only a FIELDNAME token should be searched.
8296 (FIELDNAME): New token. After a point only a token belonging to
8297 current_type type definition is allowed.
8298 (all over token rules): reset and change current_type according
8299 to rules.
8300 (exp '[' rule): insert implicit array index field if
8301 exp is a pascal string type.
8302
8303 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8304
8305 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8306 frame info. Use frame_info's saved_regs instead of matching member
8307 in extra_frame_info throughout.
8308 (v850_frame_init_saved_regs): New function.
8309 (v850_init_extra_frame_info): Move most functionality into
8310 v850_frame_init_saved_regs().
8311 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8312 (v850_frame_find_saved_regs): Remove declaration.
8313 (FRAME_FIND_SAVED_REGS): Remove definition.
8314 (v850_frame_init_saved_regs): Add declaration.
8315 (FRAME_INIT_SAVED_REGS): Add definition.
8316
8317 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8318
8319 * v850-tdep.c: Begin multi-arch'ing v850.
8320 (v850_target_architecture_hook): Remove function.
8321 (v850_gdbarch_init): New function. Add code previously in
8322 v850_target_architecture_hook().
8323 (_initialize_v850_tdep): Don't set target_architecture_hook.
8324 Call register_gdbarch_init() instead.
8325
8326 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8327
8328 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8329 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8330 (fixup_class_method_type): Likewise.
8331
8332 2002-05-15 Jim Blandy <jimb@redhat.com>
8333
8334 Add macro structures to GDB's symbol tables. Nobody puts anything
8335 in them yet.
8336 * symtab.h (struct symtab): New member: `macro_table'.
8337 * buildsym.h (pending_macros): New global variable.
8338 * buildsym.c: #include "macrotab.h".
8339 (buildsym_init): Initialize `pending_macros'.
8340 (end_symtab): If we found macro information while reading a CU's
8341 debugging info, do build a symtab structure for it. Make the
8342 symtab point to the macro information, and clear the
8343 `pending_macros' pointer which held it while we were reading the
8344 debug info.
8345 (really_free_pendings): Free any pending macro table.
8346 * objfiles.h (struct objfile): New member: `macro_cache'.
8347 * objfiles.c (allocate_objfile): Set allocate and free functions
8348 for the macro cache's objstack.
8349 (free_objfile): Empty the macro cache's obstack.
8350 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8351 set new allocate and free functions for it.
8352 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8353 free functions for the macro cache's objstack. (Why is this
8354 function building its own objfile?)
8355 * symmisc.c (print_objfile_statistics): Print statistics on the
8356 macro bcache.
8357 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8358
8359 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8360
8361 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8362 (REGISTER_U_ADDR): Delete definition.
8363 (arm_register_u_addr): Delete declaration.
8364
8365 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8366
8367 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8368 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8369
8370 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8371
8372 * regcache.c (register_valid): Revise comments refering to "Not
8373 available" and "unavailable".
8374 * frame.c (frame_register_read): Ditto.
8375 * findvar.c (value_of_register): Ditto.
8376
8377 2002-05-15 Andrew Cagney <cagney@redhat.com>
8378
8379 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8380 (remote-sim.o): Update dependencies.
8381 (d10v-tdep.o): Specify dependencies.
8382 (sim_d10v_h): Define.
8383
8384 2002-05-14 Jim Blandy <jimb@redhat.com>
8385
8386 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8387 * macrotab.c (macro_lookup_inclusion, find_definition,
8388 new_macro_table): Same.
8389
8390 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8391 not `! strcmp ()'. This is a dubious improvement.
8392 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8393
8394 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8395 although it's not necessary, to avoid a warning.
8396
8397 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8398
8399 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8400 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8401 TYPE_INSTANCE_FLAGS.
8402 (struct main_type): New.
8403 (struct type): Move most members to struct main_type. Change
8404 cv_type and as_type to new type_chain member. Add instance_flags.
8405 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8406 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8407 (finish_cv_type): Remove prototype.
8408 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8409 Set TYPE_CHAIN.
8410 (alloc_type_instance): New function.
8411 (smash_type): New function.
8412 (make_pointer_type, make_reference_type, make_function_type)
8413 (smash_to_member_type, smash_to_method_type): Call smash_type.
8414 (make_qualified_type): New function.
8415 (make_type_with_address_space): Call make_qualified_type.
8416 (make_cv_type): Likewise.
8417 (finish_cv_type): Remove unnecessary function.
8418 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8419 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8420 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8421 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8422 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8423 * hpread.c (hpread_read_struct_type): Likewise.
8424 * stabsread.c (read_struct_type): Likewise.
8425
8426 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8427
8428 * configure.tgt: Add a catch all sh* target, for cases like
8429 sh[2,3,4]-elf and sh-hms.
8430
8431 2002-05-14 Keith Seitz <keiths@redhat.com>
8432
8433 * event-loop.c (create_file_handler): Don't do anything but
8434 update data when we are given a fd which we are already
8435 monitoring.
8436
8437 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8438
8439 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8440 (update_context): Use __func__ in warnings.
8441
8442 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8443
8444 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8445 and tcp_close to net_open and net_close.
8446 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8447 using UDP if requested. Don't try to disable Nagle on UDP
8448 sockets.
8449 * remote.c (remote_serial_open): New function. Warn about UDP.
8450 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8451
8452 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8453
8454 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8455
8456 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8457
8458 * configure.tgt: Remove sh-hms target.
8459 * MAINTAINERS: Don't list sh-hms as a separate target.
8460
8461 2002-05-13 Jim Blandy <jimb@redhat.com>
8462
8463 Add first preprocessor macro-expansion files.
8464 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8465 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8466 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8467 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8468 (COMMON_OBS): Add macrotab.o, macroexp.o.
8469 (macroexp.o, macrotab.o): New rules.
8470
8471 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8472
8473 * config/m88k/tm-m88k.h: Update copyright.
8474 (m88k_target_write_pc): Declare
8475 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8476 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8477 (SHIFT_INST_REGS): Update definition.
8478 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8479 using old definition of TARGET_WRITE_PC.
8480 * regcache.c (generic_target_write_pc): Delete code handling
8481 NNPC_REGNUM.
8482 * gdbarch.sh (NNPC_REGNUM): Delete.
8483 * gdbarch.h, gdbarch.c: Regenerate.
8484
8485 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8486
8487 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8488 builtin reg number.
8489
8490 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8491
8492 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8493 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8494 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8495 access macros.
8496 * c-typeprint.c (cp_type_print_method_args): Likewise.
8497 (c_type_print_args): Likewise.
8498 * d10v-tdep.c (d10v_push_arguments): Likewise.
8499 (d10v_extract_return_value): Likewise.
8500 * expprint.c (print_subexp): Likewise.
8501 * gdbtypes.c (lookup_primitive_typename): Likewise.
8502 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8503 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8504 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8505 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8506 (TYPE_VECTOR): Likewise.
8507 * hpread.c (hpread_read_struct_type)
8508 (fix_static_member_physnames, fixup_class_method_type)
8509 (hpread_type_lookup): Likewise.
8510 * mdebugread.c (parse_symbol, parse_type): Likewise.
8511 * p-lang.c (is_pascal_string_type): Likewise.
8512 * valops.c (hand_function_call): Likewise.
8513 * x86-64-tdep.c (classify_argument): Likewise.
8514
8515 * hpread.c (hpread_read_function_type)
8516 (hpread_read_doc_function_type): Call replace_type.
8517 * dstread.c (create_new_type): Delete.
8518 (decode_dst_structure, process_dst_function): Call alloc_type.
8519 Use type access macros.
8520
8521 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8522
8523 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8524 the're not supported by the current architecture.
8525 (i387_fill_fxsave): Likewise.
8526
8527 2002-05-12 Fred Fish <fnf@redhat.com>
8528
8529 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8530 sect_index_xxx members to index the first slot in section_offsets
8531 if all of the section_offsets are zero.
8532
8533 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8534
8535 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8536 checked in with last change.
8537
8538 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8539
8540 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8541 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8542 config.sub.
8543
8544 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8545
8546 * Makefile.in: Update dependencies.
8547
8548 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8549
8550 * language.c (local_hex_string_custom): Simplify. Do not depend
8551 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8552
8553 * memattr.c (mem_info_command): Replace calls to
8554 longest_local_hex_string and longest_local_hex_string_custom.
8555 * buildsym.c (make_blockvector): Ditto.
8556 * solib.c (info_sharedlibrary_command): Ditto.
8557 * tracepoint.c (tracepoints_info): Ditto.
8558 * symtab.c (print_msymbol_info): Ditto.
8559
8560 * language.c (local_hex_string): Delete.
8561 (local_hex_string_custom): Delete.
8562 (longest_local_hex_string): Rename to local_hex_string.
8563 (longest_local_hex_string_custom): Rename to
8564 local_hex_string_custom.
8565 * language.h (local_hex_string): Change parameter type to LONGEST.
8566 (local_hex_string_custom): Ditto.
8567 (longest_local_hex_string): Delete declaration.
8568 (longest_local_hex_string_custom): Ditto.
8569
8570 * solib.c: Update copyright.
8571 * memattr.c: Update copyright.
8572
8573 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8574
8575 * arch-utils.h (legacy_register_to_value): Declare.
8576 (legacy_value_to_register): Declare.
8577 (legacy_convert_register_p): Declare.
8578 * arch-utils.c (legacy_register_to_value): New function.
8579 (legacy_value_to_register): New function.
8580 (legacy_convert_register_p): New function.
8581
8582 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8583 (VALUE_TO_REGISTER): Define.
8584 (CONVERT_REGISTER_P): Define.
8585 * gdbarch.h, gdbarch.c: Regenerate.
8586
8587 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8588 VALUE_TO_REGISTER.
8589 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8590 CONVERT_REGISTER_P.
8591
8592 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8593 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8594
8595 * Makefile.in: Update dependencies for valops.c.
8596 * valops.c: Include "gdb_assert.h".
8597 (typecmp): Skip THIS parameter to methods.
8598 (find_method_list): Remove static_memfuncp argument,
8599 update callers. Check for stub methods.
8600 (find_value_oload_method_list): Don't set *static_memfuncp.
8601 (find_overload_match): Don't check for stub methods. Assert
8602 that methods are not stubbed. Handle static methods.
8603 (value_find_oload_method_list): Remove static_memfuncp argument.
8604 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8605 to the argument list for static stub methods.
8606 * value.h (value_find_oload_method_list): Update prototype.
8607
8608 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8609
8610 * arch-utils.h (generic_register_size): Declare.
8611 (generic_register_raw_size, generic_register_virtual_size): Delete
8612 declarations.
8613 * arch-utils.c (generic_register_raw_size): Delete.
8614 (generic_register_size): New function.
8615 (generic_register_virtual_size): Delete.
8616
8617 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8618 default generic_register_size.
8619 * gdbarch.h, gdbarch.c: Re-generate.
8620
8621 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8622 register_virtual_size.
8623 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8624 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8625
8626 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8627
8628 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8629 * gdbarch.h, gdbarch.c: Regenerate.
8630 * gnu-v3-abi.c: Update copyright.
8631 (vtable_address_point_offset): Update.
8632 (gnuv3_rtti_type): Update.
8633 (gnuv3_baseclass_offset): Update.
8634 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8635 (init_fetch_link_map_offsets): Update.
8636 * remote.c (get_remote_state): Update.
8637
8638 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8639
8640 * TODO: Remove value_headof/value_from_vtable_info comment.
8641 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8642 * values.c (value_headof, value_from_vtable_info): Delete.
8643 * value.h (value_from_vtable_info): Delete prototype.
8644
8645 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8646
8647 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8648 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8649 $(gdb_regex_h).
8650 (gdb_assert_h): Define.
8651 (gdb_wait_h): Define.
8652 (gdb_regex_h): Define.
8653
8654 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8655
8656 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8657 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8658
8659 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8660
8661 * nbsd-tdep.c: Fix comment.
8662
8663 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8664
8665 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8666 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8667 (nbsd-tdep.o): New dependency list.
8668 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8669 nbsd-tdep.h.
8670 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8671 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8672 * nbsd-tdep.c: New file.
8673 * nbsd-tdep.h: New file.
8674 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8675 nbsd-tdep.h.
8676 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8677 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8678 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8679 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8680
8681 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8682
8683 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8684 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8685 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8686 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8687 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8688 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8689
8690 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8691
8692 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8693 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8694 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8695 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8696 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8697 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8698 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8699
8700 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8701
8702 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8703 fetch_elfcore_registers to...
8704 * i386nbsd-tdep.c: ...here.
8705 (i386nbsd_use_struct_convention): Rename to...
8706 (i386nbsd_aout_use_struct_convention): ...this.
8707 (i386nbsd_supply_reg): New function.
8708 (i386nbsd_fill_reg): New function.
8709 (fetch_core_registers): Use i386nbsd_supply_reg.
8710 (fetch_elfcore_registers): Likewise.
8711 (_initialize_i386nbsd_tdep): New function.
8712 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8713 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8714 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8715 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8716 (i386nbsd_aout_use_struct_convention): ...this.
8717
8718 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8719
8720 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8721 (store_inferior_registers): Use shnbsd_fill_reg.
8722 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8723 sh_nbsd_supply_register): Collapse into...
8724 (shnbsd_supply_reg): ...this.
8725 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8726 (shnbsd_fill_reg): ...this.
8727 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8728 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8729 (fetch_core_registers): Use shnbsd_supply_reg.
8730 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8731 (sh_nbsd_core_fns): Rename to...
8732 (shnbsd_core_fns): ...this.
8733 (sh_nbsd_elfcore_fns): Rename to...
8734 (shnbsd_elfcore_fns): ...this.
8735 (sh_nbsd_init_abi): Rename to...
8736 (shnbsd_init_abi): ...this.
8737 (_initialize_sh_nbsd_tdep): Rename to...
8738 (_initialize_shnbsd_tdep): ...this.
8739 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8740 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8741 sh_nbsd_fill_register): Remove prototypes.
8742 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8743
8744 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8745
8746 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8747 (i387-nat.o): Delete dependency list.
8748 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8749 (x86-64-linux-nat.o): Likewise.
8750 * i387-nat.c: Delete file, moving contents to...
8751 * i387-tdep.c: ...here.
8752 * i387-nat.h: Rename...
8753 * i387-tdep.h: ...to this.
8754 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8755 * i386-linux-nat.c: Likewise.
8756 * i386bsd-nat.c: Likewise.
8757 * i386gnu-nat.c: Likewise.
8758 * i386nbsd-nat.c: Likewise.
8759 * i386v4-nat.c: Likewise.
8760 * x86-64-linux-nat.c: Likewise.
8761 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8762 * config/i386/go32.mh (NATDEPFILES): Likewise.
8763 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8764 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8765 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8766 * config/i386/linux.mh (NATDEPFILES): Likewise.
8767 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8768 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8769 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8770 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8771
8772 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8773
8774 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8775 (alphanbsd-nat.o): Remove dependency list.
8776 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8777 * alphanbsd-nat.c: Delete. Contents moved to...
8778 * alphanbsd-tdep.c: ...here.
8779 (_initialize_alphanbsd_tdep): Register core functions.
8780 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8781
8782 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8783
8784 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8785 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8786 (alphanbsd-nat.o): Likewise.
8787 (alphabsd-tdep.o): New dependency list.
8788 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8789 (fill_gregset): Use alphabsd_fill_reg.
8790 (supply_fpregset): Use alphabsd_supply_fpreg.
8791 (fill_fpregset): Use alphabsd_fill_fpreg.
8792 (fetch_inferior_registers): Use struct reg and struct fpreg
8793 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8794 and alphabsd_supply_fpreg.
8795 (store_inferior_registers): Use struct reg and struct fpreg
8796 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8797 and alphabsd_fill_fpreg.
8798 * alphabsd-tdep.c: New file.
8799 * alphabsd-tdep.h: New file.
8800 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8801 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8802 alphabsd_supply_fpreg.
8803 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8804 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8805
8806 2002-05-11 Eric Christopher <echristo@redhat.com>
8807
8808 * mips-tdep.c (mips_double_register_type): Fix thinko.
8809 (mips_single_register_type): Ditto.
8810 * MAINTAINERS: Add self.
8811
8812 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8813
8814 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8815 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8816 right thing on architectures with different endianness and/or
8817 integer sizes.
8818
8819 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 From Christian Limpach <chris@Pin.LU>
8822 * configure.in: Change sed expression which comments out
8823 NATDEPFILES to also comment out continuation lines.
8824 * configure: Regenerate.
8825
8826 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8827
8828 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8829 big patch.
8830
8831 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8832
8833 * sh-tdep.c: Include correct file.
8834
8835 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8836
8837 New support for sh64-elf (sh5) target.
8838
8839 * configure.tgt: For sh64-elf target, default to sh-elf.
8840
8841 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8842 (struct gdbarch_tdep): Add new fields for new registers and ABI
8843 info.
8844
8845 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8846 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8847 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8848 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8849 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8850 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8851 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8852 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8853 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8854 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8855 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8856 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8857 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8858 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8859 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8860 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8861 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8862 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8863 sign_extend, sh64_nofp_frame_init_saved_regs,
8864 sh64_init_extra_frame_info, sh64_get_saved_register,
8865 sh64_extract_struct_value_address, sh64_pop_frame,
8866 sh64_push_arguments, sh64_extract_return_value,
8867 sh64_store_return_value, sh64_show_media_regs,
8868 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8869 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8870 sh_sh64_register_virtual_type,
8871 sh_sh64_register_convert_to_virtual,
8872 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8873 sh64_register_read, sh64_pseudo_register_write,
8874 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8875 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8876 sh64_do_pseudo_register, sh_compact_do_registers_info,
8877 sh64_do_registers_info, sh_gdbarch_init): New functions.
8878
8879 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8880
8881 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8882
8883 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8884
8885 * linespec.c (decode_line_1): Check for a double quote after
8886 a filename correctly.
8887
8888 2002-05-10 Jim Blandy <jimb@redhat.com>
8889
8890 Properly track the size of the current objfile's .debug_line section.
8891 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8892 (DWARF_LINE_SIZE): New macro.
8893 (dwarf2_build_psymtabs_hard): Record the line section's size in
8894 the partial symbol table.
8895 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8896 symbol table.
8897
8898 2002-05-10 Petr Sorfa <petrs@caldera.com>
8899
8900 * ia64-tdep.c: Handle breakpoints on L instruction type
8901 in MLX instruction bundle by moving the breakpoint to
8902 the third slot (X instruction type) as L holds only data.
8903
8904 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8905
8906 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8907 (process_one_symbol): Complain about discarding local symbols
8908 due to a misplaced N_LBRAC entry.
8909
8910 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8911
8912 From Daniel Berlin <dan@cgsoftware.com>
8913 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8914 decrease the depth we are at, in the case of templates.
8915
8916 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8917
8918 * mips-tdep.c (mips_float_register_type): New function.
8919 (mips_double_register_type): New function.
8920 (mips_print_register): Use them.
8921 (do_fp_register_row): Likewise.
8922
8923 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8924
8925 * signals/signals.c (signals): Remove conditional compilation around
8926 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8927 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8928
8929 2002-05-09 Michael Snyder <msnyder@redhat.com>
8930
8931 * remote-rdp.c (remote_rdp_can_run): Remove.
8932
8933 2002-05-09 Tom Tromey <tromey@redhat.com>
8934
8935 * jv-valprint.c (java_val_print): Handle `char' as a special case
8936 of TYPE_CODE_INT.
8937
8938 2002-05-09 Michael Snyder <msnyder@redhat.com>
8939
8940 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8941 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8942 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8943 str r(0123),[sp,#nn].
8944 (arm_skip_prologue): Ditto. Also make disassembly
8945 order-independent by placing it in a loop.
8946
8947 2002-05-06 Michael Snyder <msnyder@redhat.com>
8948
8949 * stabsread.c (read_type): Add recognition for new attribute:
8950 "@V;" means that an array type is actually a vector.
8951 This is analogous to the vector flag that's been added to dwarf2.
8952
8953 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8954
8955 * i386-tdep.h (i386_abi): New enum.
8956 (struct gdbarch_tdep): Replace os_ident member with abi.
8957 (i386_gdbarch_register_os_abi): New prototype.
8958 * i386-tdep.c (i386_abi_names): New array.
8959 (process_note_abi_tag_sections): Removed.
8960 (process_note_sections): New function.
8961 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8962 (struct i386_abi_handler): New struct.
8963 (i386_abi_handler_list): New variable.
8964 (i386_gdbarch_register_os_abi): New function.
8965 (i386_gdbarch_init): Adapt for the changes given above.
8966
8967 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8968
8969 * gregset.h: Say "GNU/Linux".
8970
8971 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8972
8973 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8974 (build_gdbtypes): Build builtin_type_v2_float.
8975 (_initialize_gdbtypes): Register new builtin type.
8976
8977 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8978
8979 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8980 (clear_gdbarch_swap): New function.
8981 (initialize_non_multiarch): Call.
8982 (gdbarch_update_p): Before calling init(), swap out and clear the
8983 existing architecture.
8984 * gdbarch.c: Regenerate.
8985
8986 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8987
8988 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8989 alphanbsd-tdep.c.
8990
8991 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8992
8993 * sh-nbsd-nat.c: Rename to...
8994 * shnbsd-nat.c: ...this.
8995 * sh-nbsd-tdep.c: Rename to...
8996 * shnbsd-tdep.c: ...this.
8997 * sh-nbsd-tdep.h: Rename to...
8998 * shnbsd-tdep.h: ...this.
8999 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9000 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9001
9002 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9003
9004 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9005 concatenation for command help messages.
9006
9007 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9008
9009 * NEWS: Note new sh*-*-netbsdelf* configuration.
9010 * configure.host: Set gdb_host_cpu to sh for all sh*.
9011 (sh*-*-netbsdelf*): New host.
9012 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9013 (sh*-*-netbsdelf*): New target.
9014 * sh-nbsd-nat.c: New file.
9015 * sh-nbsd-tdep.c: New file.
9016 * sh-nbsd-tdep.h: New file.
9017 * config/sh/nbsd.mh: New file.
9018 * config/sh/nbsd.mt: New file.
9019 * config/sh/nm-nbsd.h: New file.
9020 * config/sh/tm-nbsd.h: New file.
9021
9022 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9023
9024 * sh-tdep.c (sh_osabi_names): Declare.
9025 (process_note_abi_tag_sections): New function.
9026 (get_elfosabi): Ditto.
9027 (sh_gdbarch_register_os_abi): Ditto.
9028 (sh_dump_tdep): Ditto.
9029 _initialize_sh_tdep): Use gdbarch_register to register
9030 sh_gdbarch_init and sh_dump_tdep.
9031 * config/sh/tm-sh.h (sh_osabi): Declare.
9032 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9033
9034 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9035
9036 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9037 (thumb_scan_prologue): Ditto.
9038 (arm_find_callers_reg): Ditto.
9039 (arm_frame_chain): Ditto.
9040 (arm_init_extra_frame_info): Ditto.
9041 (arm_frame_saved_pc): Ditto.
9042 (arm_pop_frame): Ditto.
9043 (arm_push_return_address): New function.
9044 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9045 call_dummy_location, call_dummy_breakpoint_offset_p,
9046 call_dummy_breakpoint_offset, call_dummy_p,
9047 call_dummy_stack_adjust_p, call_dummy_words,
9048 sizeof_call_dummy_words, call_dummy_start_offset,
9049 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9050 call_dummy_address, push_return_address and push_dummy_frame for
9051 generic dummy frames.
9052
9053 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9054
9055 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9056 size computation for alloca.
9057 (sh_fp_frame_init_saved_regs): Likewise.
9058
9059 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9060
9061 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9062 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9063 * arm-tdep.c (arm_store_return_value): Use them.
9064 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9065 * remote-rdp.c (remote_rdp_fetch_register): Use
9066 ARM_MAX_REGISTER_RAW_SIZE.
9067 (remote_rdp_store_register): Likewise.
9068
9069 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9070
9071 * dwarf2cfi.c: Code cleanup, removed unused variables,
9072 added default labels to switch {} statements.
9073 * x86-64-tdep.c: Ditto.
9074 * x86-64-linux-nat.c: Ditto.
9075
9076 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9077
9078 * solib.h: Protect against multiple inclusion.
9079
9080 2002-05-06 Jim Blandy <jimb@redhat.com>
9081
9082 Add first preprocessor macro-expansion files.
9083 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9084 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9085 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9086 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9087 (COMMON_OBS): Add macrotab.o, macroexp.o.
9088 (macroexp.o, macrotab.o): New rules.
9089
9090 Separate the job of reading the line number info statement program
9091 header (...expialidocious) out into its own function.
9092 * dwarf2read.c (struct line_head, struct filenames, struct
9093 directories): Replace with...
9094 (struct line_header): New structure, containing the full
9095 contents of the statement program header, including the
9096 include directory and file name tables.
9097 (read_file_scope): If we have line number info, instead of just
9098 calling dwarf_decode_lines to do all the work, call
9099 dwarf_decode_line_header first to get a `struct line_header'
9100 containing the data in the statement program header, and then
9101 pass that to dwarf_decode_lines, which will pick up where that
9102 left off. Be sure to clean up the `struct line_header' object.
9103 (dwarf_decode_line_header, free_line_header, add_include_dir,
9104 add_file_name): New functions.
9105 (dwarf_decode_lines): Move all the code to read the statement
9106 program header into dwarf_decode_line_header. Take the line
9107 header it built as the first argument, instead of the offset to
9108 the compilation unit's line number info. Use the new `struct
9109 line_header' type instead of the old structures. No need to do
9110 cleanups here now, since we don't allocate anything.
9111 (dwarf2_statement_list_fits_in_line_number_section,
9112 dwarf2_line_header_too_long): New complaints.
9113
9114 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9115
9116 * gdbtypes.c (init_vector_type): New function.
9117 (build_builtin_type_vec128): Simplify the representation of SIMD
9118 registers.
9119 (build_gdbtypes): Initialize new builtin vector types.
9120 (_initialize_gdbtypes): Register new vector types with gdbarch.
9121 (builtin_type_v4_float, builtin_type_v4_int32,
9122 builtin_type_v8_int16, builtin_type_v16_int8,
9123 builtin_type_v2_int32, builtin_type_v4_int16,
9124 builtin_type_v8_int8): New (renamed) SIMD types.
9125
9126 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9127
9128 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9129 (i387_fill_fxsave): Likewise.
9130
9131 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9132
9133 * alpha-tdep.c (alpha_extract_return_value): Don't use
9134 non-constant array size in prototype.
9135
9136 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9137
9138 From Brian Taylor <briant at model dot com>:
9139 * ui-out.c (ui_out_field_core_addr): Use the function
9140 longest_local_hex_string_custom'to format addresses > 32 bits
9141 wide.
9142
9143 * ui-out.c (ui_out_field_core_addr): Update comment.
9144
9145 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9146
9147 * stack.c (select_and_print_frame): Make static. Delete the
9148 parameter `level'.
9149 (func_command): Update call.
9150 (select_frame_command): Delete code computing the frame level.
9151 * frame.h (select_and_print_frame): Delete declaration.
9152
9153 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9154
9155 * sparc-tdep.c (sparc_get_saved_register): Comment why
9156 get_prev_frame call is safe.
9157
9158 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9159
9160 * frame.h (select_frame): Delete level parameter.
9161 * stack.c (select_frame): Update. Use frame_relative_level to
9162 obtain the frame's level.
9163 (select_and_print_frame): Update call.
9164 (select_frame_command): Ditto.
9165 (up_silently_base): Ditto.
9166 (down_silently_base): Ditto.
9167 * ocd.c (ocd_start_remote): Ditto.
9168 * remote-rdp.c (remote_rdp_open): Ditto.
9169 * remote-mips.c (mips_initialize): Ditto.
9170 (common_open): Ditto.
9171 * remote-e7000.c (e7000_start_remote): Ditto.
9172 * m3-nat.c (select_thread): Ditto.
9173 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9174 (child_get_current_exception_event): Ditto.
9175 * varobj.c (varobj_create): Ditto.
9176 (varobj_update): Ditto.
9177 (c_value_of_root): Ditto.
9178 * tracepoint.c (finish_tfind_command): Ditto.
9179 * corelow.c (core_open): Ditto.
9180 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9181 * thread.c (info_threads_command): Ditto.
9182 (switch_to_thread): Ditto.
9183 * infrun.c (normal_stop): Ditto.
9184 (restore_selected_frame): Ditto.
9185 (restore_inferior_status): Ditto.
9186 * breakpoint.c (insert_breakpoints): Ditto.
9187 (watchpoint_check): Ditto.
9188 (bpstat_stop_status): Ditto.
9189 (do_enable_breakpoint): Ditto.
9190 * blockframe.c (flush_cached_frames): Ditto.
9191 (reinit_frame_cache): Ditto.
9192
9193 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9194
9195 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9196 maintainer.
9197
9198 2002-05-04 Jim Blandy <jimb@redhat.com>
9199
9200 * gdbtypes.c (replace_type): Doc fix.
9201
9202 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9203
9204 * valprint.c (strcat_longest): Delete commented out function.
9205 Update copyright.
9206
9207 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9208
9209 * MAINTAINERS: Mark a29k as deleted.
9210 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9211 Move new configurations to the top.
9212 * configure.tgt: Remove a29k.
9213 * config/a29k/tm-vx29k.h: Delete.
9214 * config/a29k/vx29k.mt: Delete.
9215 * config/a29k/tm-a29k.h: Delete.
9216 * config/a29k/a29k-udi.mt: Delete.
9217 * config/a29k/a29k.mt: Delete.
9218 * a29k-tdep.c: Delete.
9219 * remote-udi.c: Delete.
9220 * remote-mm.c: Delete.
9221 * remote-eb.c: Delete.
9222 * remote-adapt.c: Delete.
9223 * Makefile.in: Remove obsolete code.
9224 * config/s390/s390x.mt: Ditto.
9225 * config/s390/s390.mt: Ditto.
9226 * config/sparc/sparclynx.mh: Ditto.
9227 * config/sparc/linux.mh: Ditto.
9228 * config/pa/hppaosf.mh: Ditto.
9229 * config/pa/hppabsd.mh: Ditto.
9230 * config/ns32k/nbsd.mt: Ditto.
9231 * config/mips/vr5000.mt: Ditto.
9232 * config/m68k/sun3os4.mh: Ditto.
9233 * config/m68k/nbsd.mt: Ditto.
9234 * config/m68k/m68klynx.mh: Ditto.
9235 * config/m32r/m32r.mt: Ditto.
9236 * config/i386/x86-64linux.mt: Ditto.
9237 * config/i386/nbsdelf.mt: Ditto.
9238 * config/i386/nbsd.mt: Ditto.
9239 * config/i386/i386lynx.mh: Ditto.
9240
9241 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9242
9243 * target.c (debug_print_register): New function. Handle oversize
9244 registers.
9245 (debug_to_fetch_registers): Call.
9246 (debug_to_store_registers): Call.
9247
9248 2002-05-03 Jim Blandy <jimb@redhat.com>
9249
9250 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9251 (read_type): Doc fix.
9252 * gdbtypes.c (replace_type): Doc fix.
9253
9254 * stabsread.c (multiply_defined_struct): New complaint.
9255 (read_struct_type): If the type we were passed isn't empty, or
9256 incomplete, don't read the new struct type into it; complain,
9257 and return the original type unchanged. Take a new `type_code'
9258 argument, which is the type code for the new type.
9259 (read_type): Rather than storing the type's type code here, pass
9260 it as an argument to read_struct_type, and let that take care of
9261 storing it. That way, we don't overwrite the original type code,
9262 so read_struct_type can use it to decide whether we're overwriting
9263 something we shouldn't.
9264 (complain_about_struct_wipeout): New function.
9265
9266 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9267
9268 * gdbarch.sh: Assert that gdbarch is non-NULL.
9269 * gdbarch.c: Regenerate.
9270
9271 2002-05-03 Jason Merrill <jason@redhat.com>
9272
9273 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9274 and return NULL.
9275
9276 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9277
9278 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9279 (x86_64_dwarf2gdb_regno_map_length),
9280 (x86_64_dwarf2_reg_to_regnum): Added.
9281 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9282 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9283 (_initialize_x86_64_tdep): Synced with the change above.
9284 (x86_64_skip_prologue): Reformulated message.
9285
9286 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9287
9288 * f-exp.y: Also use new prev_lexptr variable
9289 to improve error reporting. Based on Michael Snyder
9290 2002-04-24 dated patch to c-exp.y.
9291 * jv-exp.y: Likewise.
9292 * m2-exp.y: Likewise.
9293
9294 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9295
9296 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9297 we are dealing with vectors.
9298
9299 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9300
9301 * config/m68k/tm-nbsd.h: Obvious fix,
9302 correct machine name.
9303
9304 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9305
9306 * p-typeprint.c (pascal_type_print_base): Add support
9307 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9308
9309 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9310
9311 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9312 for fondamental pascal 'char' type.
9313
9314 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9315
9316 * p-lang.h (is_pascal_string_type): Declaration changed,
9317 new sixth argument of type char ** added.
9318 * p-lang.c (is_pascal_string_type): Implementation
9319 changed. Args length_pos, length_size, string_pos, char_size
9320 can now be NULL. New argument arrayname set to the field
9321 name of the char array. Return value set to char array
9322 field index plus one.
9323 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9324 is_pascal_string_type function.
9325
9326 2002-05-02 Andrew Cagney <cagney@redhat.com>
9327
9328 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9329 <cagney@redhat.com> change.
9330 * gdbarch.c: Regenerate.
9331
9332 2002-05-02 Andrew Cagney <cagney@redhat.com>
9333
9334 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9335 before probing for a new one. Detect errorenous gdbarch_init
9336 functions.
9337 * gdbarch.c: Regenerate.
9338
9339 2002-05-01 Andrew Cagney <cagney@redhat.com>
9340
9341 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9342 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9343 * config/v850/tm-v850.h: Ditto. Update copyright.
9344
9345 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9346
9347 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9348 current_gdbarch.
9349
9350 2002-04-30 Michael Snyder <msnyder@redhat.com>
9351
9352 * arm-tdep.c: Whitespace clean-ups.
9353 (arm_skip_prologue): Fix thinko; two lines
9354 should have been removed as part of 4/24 change.
9355
9356 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9357
9358 * rs6000-tdep.c: Added comment describing how fpscr register
9359 numbers were chosen.
9360
9361 2002-04-30 Michael Snyder <msnyder@redhat.com>
9362
9363 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9364
9365 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9366
9367 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9368 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9369 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9370
9371 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9372
9373 From Louis Hamilton <hamilton@redhat.com>:
9374 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9375 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9376 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9377 not bfd-private xcoff data, to determine wordsize.
9378 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9379
9380 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9381
9382 GDB 5.2 released from 5.2 branch.
9383
9384 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9385
9386 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9387 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9388 (x86_64_register_info_table): Added comments with register numbers.
9389
9390 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9391
9392 * rs6000-tdep.c (rs6000_extract_return_value,
9393 rs6000_store_return_value): Handle returning vectors.
9394 (rs6000_gdbarch_init): Use
9395 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9396 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9397 New function.
9398 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9399 vectors.
9400 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9401 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9402
9403 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9404
9405 * hpread.c (hpread_psymtab_to_symtab_1,
9406 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9407 with fprintf_unfiltered (gdb_stderr,...).
9408
9409 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9410
9411 * remote-array.c (printf_monitor, write_monitor,
9412 array_insert_breakpoint, array_remove_breakpoint ):
9413 Replace fprintf (stderr,...
9414 with fprintf_unfiltered (gdb_stderr,....
9415 * remote-es.c: Likewise.
9416 * remote-os9k.c: Likewise.
9417 * remote-st.c: Likewise.
9418
9419 2002-04-28 Andreas Schwab <schwab@suse.de>
9420
9421 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9422 linux-proc.o and gcore.o.
9423
9424 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9425
9426 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9427 code without frame pointers.
9428
9429 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9430
9431 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9432 ON_STACK is needed.
9433
9434 2002-04-26 Ben Elliston <bje@redhat.com>
9435
9436 * target.c (do_xfer_memory): Correct reference to the new option
9437 "trust-readonly-sections".
9438
9439 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9440
9441 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9442 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9443 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9444 vectors.
9445 (read_array_type): Record the fact that this array type is really a
9446 vector (i.e. are passed in by value).
9447
9448 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9449
9450 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9451 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9452 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9453 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9454 * alpha-linux-tdep.c: Include frame.h.
9455 (alpha_linux_sigcontext_addr): New function.
9456 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9457 alpha_linux_sigcontext_addr.
9458 * alpha-osf1-tdep.c: Include gdbcore.h.
9459 (alpha_osf1_sigcontext_addr): New function.
9460 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9461 alpha_osf1_sigcontext_addr.
9462 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9463 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9464
9465 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9466
9467 * stack.c (selected_frame_level):
9468 (select_frame): Do not set selected_frame_level.
9469 * frame.h (selected_frame_level): Delete declaration.
9470
9471 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9472
9473 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9474 convert_from_func_ptr-addr when AIX / PowerOpen.
9475
9476 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9477
9478 * valops.c (hand_function_call): Call
9479 generic_save_call_dummy_addr.
9480 * frame.h (generic_save_call_dummy_addr): Declare.
9481 * blockframe.c (struct dummy_frame): Add fields call_lo and
9482 call_hi.
9483 (generic_find_dummy_frame): Check for PC in range call_lo to
9484 call_hi instead of entry_point_address.
9485 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9486 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9487 (generic_save_call_dummy_addr): New function.
9488
9489 2002-04-24 David S. Miller <davem@redhat.com>
9490
9491 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9492 sparc_skip_prologue.
9493 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9494 information to find prologue when possible.
9495 (sparc_prologue_frameless_p): Call examine_prologue directly.
9496 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9497 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9498 second argument.
9499 (SKIP_PROLOGUE): Likewise.
9500
9501 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9502
9503 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9504 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9505 indicate that the condition it was testing is always true.
9506 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9507 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9508 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9509
9510 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9511
9512 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9513 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9514 tdep->jb_pc and tdep->jb_elt_size.
9515 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9516 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9517 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9518 * alpha-nat.c (get_longjmp_target): Remove.
9519 (JB_ELEMENT_SIZE): Ditto.
9520 (JB_PC): Ditto.
9521 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9522 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9523 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9524 to alpha_get_longjmp_target.
9525 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9526 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9527 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9528
9529 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9530
9531 * README: Update to GDB 5.2.
9532
9533 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9534
9535 * gdbarch.sh (LC_ALL): Set to `c'.
9536
9537 2002-04-25 Theodore A. Roth <troth@verinet.com>
9538
9539 * avr-tdep.c: Ran through gdb_indent.sh.
9540
9541 2002-04-25 Theodore A. Roth <troth@verinet.com>
9542
9543 * MAINTAINERS: Add myself as AVR maintainer.
9544 * NEWS: Note new target avr.
9545
9546 2002-04-25 Theodore A. Roth <troth@verinet.com>
9547
9548 * Makefile.in: Add support for AVR target.
9549 * configure.tgt: Add support for AVR target.
9550 * avr-tdep.c: New file
9551 * config/avr/avr.mt: New file.
9552
9553 2002-04-25 Theodore A. Roth <troth@verinet.com>
9554
9555 * MAINTAINERS: Add myself to write-after-approval.
9556
9557 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9558
9559 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9560 with fprintf_unfiltered (gdb_stderr,....
9561
9562 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9563
9564 Fix PR gdb/508.
9565 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9566
9567 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9568
9569 * p-exp.y: Also use new prev_lexptr variable
9570 to improve error reporting. Based on Michael Snyder
9571 2002-04-24 dated patch to c-exp.y.
9572
9573 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9574
9575 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9576 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9577 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9578 to 0.
9579 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9580 and struct value.
9581 (FUNCTION_START_OFFSET): Remove.
9582 (BREAKPOINT): Ditto.
9583
9584 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9585
9586 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9587 * NEWS: Ditto.
9588
9589 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9590
9591 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9592 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9593 alpha_linux_pc_in_sigtramp.
9594 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9595 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9596 alpha_osf1_pc_in_sigtramp.
9597 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9598 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9599 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9600 alphafbsd_pc_in_sigtramp.
9601 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9602 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9603 alphanbsd_pc_in_sigtramp.
9604 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9605 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9606
9607 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9610
9611 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9612
9613 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9614 alphanbsd-tdep.c.
9615 (alphanbsd-nat.o): New dependency list.
9616 (alphanbsd-tdep.o): Ditto.
9617 * NEWS: Note new native NetBSD/alpha configuration.
9618 * alphanbsd-nat.c: New file.
9619 * alphanbsd-tdep.c: Ditto.
9620 * configure.host (alpha*-*-netbsd*): New host.
9621 * configure.tgt (alpha*-*-netbsd*): New target.
9622 * config/alpha/nbsd.mh: New file.
9623 * config/alpha/nbsd.mt: Ditto.
9624 * config/alpha/nm-nbsd.h: Ditto.
9625 * config/alpha/tm-nbsd.h: Ditto.
9626
9627 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9628
9629 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9630 (alpha-osf1-tdep.o): New dependency list.
9631 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9632 and skip_sigtramp_frame members.
9633 * alpha-linux-tdep.c: Include gdbcore.h.
9634 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9635 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9636 * alpha-osf1-tdep.c: New file.
9637 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9638 alpha-osf1-dep.c.
9639 (alpha_frame_past_sigtramp_frame): New function.
9640 (alpha_dynamic_sigtramp_offset): Ditto.
9641 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9642 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9643 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9644 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9645 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9646 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9647 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9648 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9649 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9650 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9651 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9652 to find_solib_trampoline_target.
9653 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9654 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9655 (SKIP_TRAMPOLINE_CODE): Remove.
9656 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9657 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9658 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9659 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9660 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9661 (PROC_SIGTRAMP_MAGIC): Ditto.
9662 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9663 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9664 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9665 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9666 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9667
9668 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9669
9670 * NEWS: Note that Alpha targets are now multi-arch.
9671
9672 2002-04-24 Michael Snyder <msnyder@redhat.com>
9673
9674 * parser-defs.h (prev_lexptr): New external variable.
9675 * parse.c (parse_exp_1): Set prev_lexptr to null before
9676 calling the language-specific parser.
9677 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9678 (yyerror): Use prev_lexptr in error reporting.
9679
9680 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9681
9682 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9683 * gregset.h: If FILL_FPXREGSET is defined, provide
9684 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9685 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9686 is defined, call fill_fpxregset.
9687
9688 2002-04-24 Roland McGrath <roland@frob.com>
9689
9690 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9691 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9692 (supply_gregset, supply_fpregset): New functions.
9693
9694 * gnu-nat.c (gnu_find_memory_regions): New function.
9695 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9696 (gnu_xfer_memory): Add a cast.
9697
9698 2002-04-24 Michael Snyder <msnyder@redhat.com>
9699
9700 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9701 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9702 of argument regs ("str r(0123), [r11, #-nn"]).
9703 (arm_skip_prologue): Better handling for frameless functions.
9704 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9705 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9706
9707 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9708
9709 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9710 NUM_PSEUDO_REGS can be used.
9711
9712 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9713
9714 * arch-utils.h: Update copyright.
9715
9716 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9717 * gdbarch.h, gdbarch.c: Re-generate.
9718
9719 * inferior.h (IN_SIGTRAMP): Delete definition.
9720 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9721 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9722
9723 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9724 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9725 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9726 (find_proc_framesize): Ditto.
9727 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9728 (alpha_init_extra_frame_info): Ditto.
9729 * infrun.c (handle_inferior_event): Ditto.
9730 (handle_inferior_event): Ditto.
9731 (check_sigtramp2): Ditto.
9732 * blockframe.c (create_new_frame): Ditto.
9733 (get_prev_frame): Ditto.
9734 * ppc-linux-tdep.c: Update comments.
9735 * i386-linux-tdep.c: Update comments.
9736 * breakpoint.c (bpstat_what): Update comment.
9737
9738 2002-04-24 David S. Miller <davem@redhat.com>
9739
9740 * i960-tdep.c (register_in_window_p): New function.
9741 (i960_find_saved_register): Use it instead of
9742 REGISTER_IN_WINDOW_P.
9743 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9744
9745 * symtab.h (find_stab_function_addr): Kill extern.
9746 * minsyms.c (find_stab_function_addr): Remove from here...
9747 * dbxread.c: ... to here, and mark it static.
9748
9749 2002-04-20 David S. Miller <davem@redhat.com>
9750
9751 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9752 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9753
9754 2002-04-21 David S. Miller <davem@redhat.com>
9755
9756 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9757 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9758 (vx_write_register): Likewise.
9759
9760 2002-04-23 J. Brobecker <brobecker@gnat.com>
9761
9762 * source.c (is_regular_file): New function.
9763 (openp): Check wether file to open is a regular file
9764 to avoid opening directories.
9765
9766 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9767
9768 * findvar.c (extract_signed_integer): Cast printf argument
9769 to suppress format warning.
9770 (extract_unsigned_integer): Likewise.
9771 * infcmd.c (registers_info): Likewise.
9772 * top.c (get_prompt_1): Likewise.
9773 * valops.c (value_assign): Likewise.
9774 * valprint.c (print_decimal): Likewise.
9775
9776 2002-04-22 H.J. Lu (hjl@gnu.org)
9777
9778 * c-exp.y (typebase): Support
9779
9780 [long|long long|short] [signed|unsigned] [int|]
9781
9782 and
9783
9784 signed [long|long long|short] int
9785
9786 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9787
9788 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9789 and vax-tdep.h.
9790 * vax-tdep.h: New file.
9791 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9792 Make several routines static.
9793 (vax_get_saved_register): New function.
9794 (vax_gdbarch_init): New function.
9795 (_initialize_vax_tdep): Register vax_gdbarch_init.
9796 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9797 Remove macros now under the control of gdbarch.
9798
9799 2002-04-22 Michael Snyder <msnyder@redhat.com>
9800
9801 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9802 Some whitespace and coding standards tweaks.
9803
9804 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9805
9806 * vax-tdep.c: Include regcache.h.
9807 (vax_call_dummy_words): New.
9808 (sizeof_vax_call_dummy_words): New.
9809 (vax_fix_call_dummy): New function.
9810 (vax_saved_pc_after_call): Ditto.
9811 * config/vax/tm-vax.h: Don't include regcache.h.
9812 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9813 (CALL_DUMMY): Remove.
9814 (CALL_DUMMY_WORDS): Define.
9815 (SIZEOF_CALL_DUMMY_WORDS): Define.
9816 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9817
9818 2002-04-18 Michael Snyder <msnyder@redhat.com>
9819
9820 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9821
9822 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9823
9824 * vax-tdep.c (vax_frame_chain): New function.
9825 (vax_push_dummy_frame): Ditto.
9826 (vax_pop_frame): Ditto.
9827 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9828 (FRAMELESS_FUNCTION_INVOCATION): Use
9829 generic_frameless_function_invocation_not.
9830 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9831 (POP_FRAME): Use vax_pop_frame.
9832
9833 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9834
9835 * vax-tdep.c (vax_store_struct_return): New function.
9836 (vax_extract_return_value): Ditto.
9837 (vax_store_return_value): Ditto.
9838 (vax_extract_struct_value_address): Ditto.
9839 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9840 vax_store_struct_return.
9841 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9842 (STORE_RETURN_VALUE): Use vax_store_return_value.
9843 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9844
9845 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9846
9847 * vax-tdep.c (vax_frame_saved_pc): New function.
9848 (vax_frame_args_address_correct): Ditto.
9849 (vax_frame_args_address): Ditto.
9850 (vax_frame_locals_address): Ditto.
9851 (vax_frame_num_args): Move code to be in proximity to
9852 other frame-related functions.
9853 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9854 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9855 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9856 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9857 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9858
9859 2002-04-22 H.J. Lu (hjl@gnu.org)
9860
9861 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9862 includedir.
9863
9864 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9865
9866 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9867 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9868 (FRAME_INIT_SAVED_REGS): New macro.
9869
9870 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9871
9872 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9873
9874 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9875
9876 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9877 where needed.
9878 (fetch_osf_core_registers): Likewise.
9879 (supply_gregset): Likewise.
9880
9881 2002-04-22 J. Brobecker <brobecker@gnat.com>
9882
9883 * symfile.h (get_section_index): Define.
9884 * symfile.c (get_section_index): New function.
9885 * mdebugread.c (SC_IS_SBSS): New macro.
9886 (SC_IS_BSS): Return true for the scBss storage class only, as
9887 the scSBss storage class refers to the .sbss section.
9888 (parse_partial_symbols): Discard the symbols which associated
9889 section does not exist.
9890 Make sure to use the .sbss section index for symbols which
9891 storage class is scBss, rather than using the .bss section index.
9892
9893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9894
9895 * vax-tdep.c: Update copyright years.
9896 (vax_register_name): New function.
9897 (vax_register_byte): Ditto.
9898 (vax_register_raw_size): Ditto.
9899 (vax_register_virtual_size): Ditto.
9900 (vax_register_virtual_type): Ditto.
9901 * config/vax/tm-vax.h: Update copyright years.
9902 (REGISTER_NAMES): Remove.
9903 (REGISTER_NAME): Define.
9904 (REGISTER_BYTE): Use vax_register_byte.
9905 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9906 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9907 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9908
9909 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9910
9911 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9912 declaration
9913 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9914
9915 2002-04-21 David S. Miller <davem@redhat.com>
9916
9917 * arch-utils.c (generic_prologue_frameless_p): Kill
9918 SKIP_PROLOGUE_FRAMELESS_P code.
9919 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9920 references.
9921 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9922 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9923 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9924 references.
9925 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9926 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9927 (sparc_gdbarch_init): Pass it to
9928 set_gdbarch_prologue_frameless_p.
9929
9930 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9931
9932 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9933 (alphabsd-nat.o): New dependency list.
9934
9935 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9936
9937 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9938 alphafbsd-tdep.c.
9939 (alpha-linux-tdep.o): New dependency list.
9940 (alphafbsd-tdep.o): Likewise.
9941
9942 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9943
9944 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9945 to here...
9946 * alpha-tdep.c: ...from here.
9947 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9948
9949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9950
9951 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9952 prototype from here...
9953 * alpha-tdep.h: ...to here.
9954
9955 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9956
9957 * frame.h (selected_frame_level): Document as deprecated.
9958 (frame_relative_level): Declare.
9959 * stack.c (frame_relative_level): New function.
9960 (selected_frame_level): Document as deprecated.
9961 (select_frame): Do not set the selected_frame_level.
9962
9963 * stack.c (frame_info, record_selected_frame): Update.
9964 (frame_command, current_frame_command): Update.
9965 (up_silently_base, up_command, down_silently_base): Update.
9966 (down_command): Update.
9967 * inflow.c (kill_command): Update.
9968 * tracepoint.c (finish_tfind_command): Update.
9969 * corelow.c (core_open): Update.
9970 * thread.c (info_threads_command): Update.
9971 (do_captured_thread_select): Update.
9972 * infcmd.c (finish_command): Update.
9973 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9974
9975 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9976
9977 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9978
9979 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9980
9981 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9982 type const.
9983
9984 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9985
9986 * alphafbsd-tdep.c: Update copyright years. Include
9987 alpha-tdep.h.
9988 (alphafbsd_use_struct_convention): Make static.
9989 (alphafbsd_init_abi): New function.
9990 (_initialize_alphafbsd_tdep): New function.
9991 * config/alpha/tm-fbsd.h: Update copyright years.
9992 (USE_STRUCT_CONVENTION): Remove.
9993
9994 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9995
9996 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9997 an Alpha ABI variant.
9998 (alpha_abi_handler_list): Declare.
9999 (alpha_gdbarch_register_os_abi): New function.
10000 (alpha_gdbarch_init): Give registered ABI variant handlers a
10001 chance to tweak the gdbarch once we have set up defaults.
10002 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10003
10004 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10005
10006 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10007 to standard_coerce_float_to_double.
10008 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10009
10010 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10011
10012 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10013 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10014 from gdbarch_tdep rather than a constant.
10015 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10016 the default text address for all Alpha Unix ABIs.
10017 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10018 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10019
10020 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10021
10022 * alpha-tdep.h: New file. Includes several Alpha target constants
10023 taken from...
10024 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10025 let gdbarch deal with.
10026 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10027 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10028 to dependency list.
10029 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10030 Alpha target register names.
10031 * alphabsd-nat.c: Likewise.
10032 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10033 Alpha target register names. Make serveral routines static.
10034 (alpha_get_saved_register): New function.
10035 (alpha_abi_names): New.
10036 (process_note_abi_tag_sections): New function.
10037 (get_elfosabi): New function.
10038 (alpha_gdbarch_init): New function.
10039 (alpha_dump_tdep): New function.
10040 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10041
10042 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10043
10044 * frame.c (find_saved_register): Delete #ifdef
10045 HAVE_REGISTER_WINDOWS code.
10046 * config/sparc/tm-sparc.h: Update comments.
10047 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10048
10049 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10050
10051 * i960-tdep.c (i960_find_saved_register): New function.
10052 (i960_get_saved_register): New function.
10053 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10054 (i960_get_saved_register): Declare.
10055 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10056
10057 2002-04-20 David S. Miller <davem@redhat.com>
10058
10059 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10060
10061 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10062
10063 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10064 instead of NUM_PSEUDO_REGS.
10065
10066 2002-04-20 David S. Miller <davem@redhat.com>
10067
10068 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10069 GDB_MULTI_ARCH_PARTIAL
10070 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10071 define, let tm-sp64.h do it.
10072
10073 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10074
10075 * frame.c (find_saved_register): Avoid a NULL pointer
10076 dereference and actually walk the frame list.
10077
10078 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10079
10080 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10081 sorted in most most-recent-used order. Document.
10082 * gdbarch.h, gdbarch.c: Regenerate.
10083
10084 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10085
10086 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10087 instead of ->prev.
10088 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10089 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10090 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10091 instead of ->prev.
10092
10093 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10094
10095 Fix PR gdb/471.
10096 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10097 (build_builtin_type_vec128): Ditto.
10098 (append_composite_type_field): Fix calculation of type length in
10099 union case.
10100
10101 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10102
10103 * config/djgpp/README: Update.
10104
10105 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10106 compiler warnings.
10107
10108 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10109
10110 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10111 (alpha_setup_arbitrary_frame): ...to this.
10112 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10113 for alpha_setup_arbitrary_frame.
10114
10115 2002-04-18 Andrew Cagney <cagney@redhat.com>
10116
10117 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10118 * gdbarch.h, gdbarch.c: Regenerate.
10119
10120 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10121 * target.h (memory_breakpoint_from_pc): Update declaration.
10122 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10123
10124 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10125 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10126 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10127 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10128 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10129 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10130 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10131 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10132 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10133 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10134 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10135 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10136
10137 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10138 const pointer.
10139 * monitor.c (monitor_insert_breakpoint): Ditto.
10140 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10141
10142 * config/mcore/tm-mcore.h: Update copyright.
10143 * mem-break.c: Ditto.
10144 * xstormy16-tdep.c: Ditto.
10145
10146 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10147
10148 * p-exp.y: Add precedence rule for '^' token.
10149 This removes the shift/reduce conflicts.
10150 Remove the comment concerning these shift/reduce conflicts.
10151
10152 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10153
10154 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10155 (registers_powerpc_nofp): New register set for processors
10156 without floating point unit.
10157
10158 2002-04-18 David S. Miller <davem@redhat.com>
10159
10160 * MAINTAINERS: Add myself to write-after-approval.
10161
10162 2002-04-17 Michael Snyder <msnyder@redhat.com>
10163
10164 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10165
10166 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10167
10168 * rs6000-tdep.c (frame_initial_stack_address): Use
10169 frame_register_read to read the alloca_reg.
10170
10171 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10172
10173 * frame.c (find_saved_register): Find saved registers in the next
10174 not prev frame.
10175 Fix PR gdb/365.
10176
10177 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10178
10179 * gdbarch.sh (LANG): Set to ``c''.
10180
10181 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10182
10183 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10184
10185 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10186
10187 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10188 Update copyright.
10189
10190 * hpread.c (hpread_get_lntt): Add declaration.
10191 Also fix PR gdb/391.
10192
10193 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10194
10195 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10196 * aclocal.m4, configure: Re-generate.
10197 Fix PR gdb/391.
10198
10199 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10200
10201 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10202 instead of tm_print_insn.
10203
10204 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10205
10206 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10207
10208 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10209
10210 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10211 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10212 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10213
10214 2002-04-12 Don Howard <dhoward@redhat.com>
10215
10216 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10217 max_user_call_depth.
10218 (init_cmd_lists): Initialize the new value;
10219 * cli/cli-script.c (execute_user_command): Limit the call depth of
10220 user defined commands. This avoids a core-dump when user commands
10221 are infinitly recursive.
10222
10223 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10224
10225 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10226 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10227 from tdep struct instead of DEFAULT_LR_SAVE.
10228 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10229 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10230 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10231
10232 2002-04-12 Michael Snyder <msnyder@redhat.com>
10233
10234 * Remote.c: Spelling fix.
10235 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10236 If no symbol found for "sbrk", try "_sbrk".
10237 (make_output_phdrs): Use bfd_section_name.
10238 (gcore_copy_callback): Use bfd_section_name.
10239 * eval.c: Indentation fix-ups.
10240 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10241 in case it gets applied to an address that is already
10242 in the instruction space.
10243 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10244 * symfile.c: Fix indentation, long lines.
10245 * source.c: White space fix-up.
10246
10247 2002-04-12 Andrew Cagney <cagney@redhat.com>
10248
10249 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10250 * frame.c (frame_register_read): New function. Return non-zero on
10251 success.
10252 (read_relative_register_raw_bytes_for_frame): Delete.
10253 (read_relative_register_raw_bytes): Delete.
10254 * frame.h (frame_register_read): Declare.
10255 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10256 * sh-tdep.c: Ditto.
10257 * infcmd.c (do_registers_info): Ditto.
10258 * hppa-tdep.c: Ditto.
10259 * rs6000-tdep.c: Ditto.
10260 * h8500-tdep.c: Ditto.
10261 * mips-tdep.c: Ditto.
10262 * h8300-tdep.c: Ditto.
10263 * z8k-tdep.c: Ditto.
10264
10265 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10266
10267 From Jimi X <jimix@watson.ibm.com>:
10268 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10269 64-bit SysV ABI.
10270
10271 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10272
10273 From Jimi X <jimix@watson.ibm.com>:
10274 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10275 bfd info.
10276
10277 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10278
10279 From Jimi X <jimix@watson.ibm.com>:
10280 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10281 register sets for these processor variants.
10282
10283 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10284
10285 * regformats/reg-ppc.dat: Support FPSCR.
10286
10287 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10288
10289 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10290 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10291 Add fpscr as an invalid/unfetchable register.
10292 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10293 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10294 (fill_fpregset): Add support for register fpscr.
10295 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10296 (fill_gregset): Account for the fact that register ``mq'' might
10297 not exist.
10298 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10299 (registers_power): Add fpscr to register set at slot 71.
10300 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10301 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10302
10303 2002-04-11 Michael Snyder <msnyder@redhat.com>
10304
10305 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10306 * configure: Regenerate.
10307 * config.in: Regenerate.
10308 * acconfig.h: Add define for _SYSCALL32.
10309 * core-sol2.c: Remove #define _SYSCALL32.
10310 * solib-legacy.c: Remove #define _SYSCALL32.
10311
10312 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10313
10314 * stack.c (select_frame): Cleanup internal error message, do not
10315 use %p.
10316
10317 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10318
10319 * stack.c (select_frame): Check that selected_frame and the
10320 specified level are as expected.
10321 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10322 Update copyright.
10323 * frame.h (struct frame_info): Add field `level'. Update
10324 copyright.
10325 Work-in-progress PR gdb/464.
10326
10327 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10328
10329 * maint.c (maint_print_section_info): Rename print_section_info.
10330 (print_bfd_section_info, print_objfile_section_info): Update.
10331 * inferior.h (struct gdbarch): Add opaque declaration.
10332 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10333 * gdbarch.h: Regenerate.
10334
10335 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10336
10337 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10338 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10339 (kernel_u_size): Added.
10340 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10341 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10342
10343 2002-04-04 Jim Ingham <jingham@apple.com>
10344
10345 * valarith.c (find_size_for_pointer_math): New function, either returns
10346 the size for a pointer's target, returns 1 for void *, or errors for
10347 incomplete types.
10348 (value_add, value_sub): use find_size_for_pointer_math.
10349
10350 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * linux-low.c (linux_look_up_symbols): New hook.
10353 (linux_target_ops): Add linux_look_up_symbols.
10354 * remote-utils.c (decode_address): New function.
10355 (look_up_one_symbol): New function.
10356 * server.c (handle_query): Call target look_up_symbols hook.
10357 * server.h (look_up_one_symbol): Add prototype.
10358 * target.h (struct target_ops): Add look_up_symbols hook.
10359
10360 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10361
10362 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10363 override FP_REGNUM with frame->fp. Update copyright.
10364 * parse.c (num_std_regs, std_regs): Delete.
10365 (target_map_name_to_register): Do not search std_regs. Update
10366 function description.
10367 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10368 declarations. Update copyright.
10369 Fix PR gdb/251.
10370
10371 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10372
10373 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10374 after the last symbol in a block.
10375
10376 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10377
10378 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10379 is non zero as a found symbol.
10380
10381 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10382
10383 * findvar.c: Include "builtin-regs.h".
10384 (value_of_register): Call value_of_builtin_reg when applicable.
10385 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10386 (target_map_name_to_register): Call
10387 builtin_reg_map_name_to_regnum.
10388 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10389 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10390 (builtin_regs_h): Define.
10391 (builtin-regs.o): New target.
10392 (findvar.o): Add $(builtin_regs_h).
10393 * builtin-regs.c, builtin-regs.h: New files.
10394 * std-regs.c: New file.
10395 Partial fix for PR gdb/251.
10396
10397 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10398
10399 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10400 it's no longer required.
10401
10402 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10403
10404 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10405
10406 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10407
10408 From Jimi X <jimix@watson.ibm.com>:
10409 * rs6000-tdep.c (rs6000_software_single_step): Use
10410 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10411 and size. Use target_insert_breakpoint() and
10412 target_remove_breakpoint() to insert and remove breakpoints
10413 instead of explicit memory reads and writes.
10414
10415 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10416
10417 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10418 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10419 ELF_OBJECT_FORMAT ifdef.
10420
10421 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10422
10423 From Jimi X <jimix@watson.ibm.com>:
10424 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10425
10426 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10427
10428 From Jimi X <jimix@watson.ibm.com>:
10429 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10430 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10431
10432 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10433
10434 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10435 s/asprintf/xasprintf/.
10436 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10437
10438 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10439
10440 I believe Jeff Law denies responsability for this one:
10441 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10442 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10443 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10444 Work-around for PR gdb/366.
10445
10446 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10447
10448 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10449 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10450 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10451
10452 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10453
10454 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10455 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10456 information.
10457
10458 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10459
10460 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10461 maintainer.
10462
10463 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10464
10465 * README (Reporting Bugs in GDB): Document the bug web page as the
10466 prefered way of submitting bugs.
10467 Fix PR gdb/402.
10468
10469 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10470
10471 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10472 -1. Update comment.
10473 * gdbarch.h, gdbarch.c: Re-generate.
10474
10475 2002-04-07 Andreas Schwab <schwab@suse.de>
10476
10477 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10478 buffer to regcache_collect.
10479
10480 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10481
10482 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10483 * gdbarch.c, gdbarch.h: Re-generate.
10484
10485 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10486
10487 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10488 declaration. Fix -Werror.
10489
10490 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10493 * gdbarch.c: Regenerate.
10494
10495 2002-04-05 Michael Snyder <msnyder@redhat.com>
10496
10497 * breakpoint.c (clear_command): Rewrite middle section to
10498 combine two loops with identical control conditions.
10499 Add a cleanup to eliminate a memory leak.
10500 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10501
10502 2002-04-05 H.J. Lu (hjl@gnu.org)
10503
10504 * solib-svr4.c (bkpt_names): Add "__start".
10505
10506 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10507
10508 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10509 as test for 64 bit target.
10510
10511 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10512
10513 * h8500-tdep.c (h8500_write_fp): Delete function.
10514 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10515 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10516 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10518 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10519 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10520 (s390_write_fp):
10521 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10522 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10523 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10524 (d10v_write_fp): Delete function.
10525 * inferior.h (write_fp, generic_target_write_fp): Delete
10526 declarations.
10527 * regcache.c (generic_target_write_fp): Delete function.
10528 (write_fp): Delete function.
10529 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10530 * gdbarch.h, gdbarch.c: Regenerate.
10531 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10532 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10533 (sparc64_write_fp): Delete declaration.
10534 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10535 (h8500_write_fp): Delete declaration.
10536
10537 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10538
10539 * sparc-tdep.c (sparc64_write_fp): Delete.
10540 (sparc_push_dummy_frame): Replace write_fp call with code to store
10541 the FP directly.
10542 (sparc_gdbarch_init): Do not initialize write_fp.
10543
10544 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10545
10546 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10547 clause.
10548
10549 2002-03-29 Jim Blandy <jimb@redhat.com>
10550
10551 * stack.c (get_selected_block): Add new argument `addr_in_block',
10552 used to return the exact code address we used to select the block,
10553 not just the block.
10554 * blockframe.c (get_frame_block, get_current_block): Same.
10555 * frame.h (get_frame_block, get_current_block,
10556 get_selected_block): Update declarations.
10557 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10558 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10559
10560 2002-04-05 Michael Snyder <msnyder@redhat.com>
10561
10562 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10563 warning message.
10564
10565 2002-04-05 J. Brobecker <brobecker@gnat.com>
10566
10567 * utils.c (xfullpath): New function.
10568 * defs.h (xfullpath): Add declaration.
10569 * source.c (openp): Use xfullpath in place of gdb_realpath to
10570 avoid resolving the basename part of filenames when the
10571 associated file is a symbolic link. This fixes a potential
10572 inconsistency between the filenames known to GDB and the
10573 filenames it prints in the annotations.
10574 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10575 to be able to match a filename with either the real filename, or
10576 the name of any symbolic link to this file.
10577 (lookup_partial_symtab): Ditto.
10578
10579 2002-04-04 Michael Snyder <msnyder@redhat.com>
10580
10581 * breakpoint.c: Add support for hardware breakpoints in overlays.
10582 (overlay_events_enabled): New state variable.
10583 (insert_breakpoints): Use overlay_events_enabled to decide
10584 whether to attempt to set a breakpoint at the overlay load addr.
10585 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10586 (remove_breakpoint): Use overlay_events_enabled to decide
10587 whether breakpoints need to be removed from overlay load addr.
10588 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10589 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10590 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10591 disable_overlay_breakpoints): Update overlay_events_enabled.
10592
10593 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * dwarf2read.c (struct function_range): New.
10596 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10597 (check_cu_functions): New.
10598 (read_file_scope): Initialize global function lists.
10599 Call dwarf_decode_line after processing children.
10600 (read_func_scope): Add to global function list.
10601 (dwarf_decode_lines): Call check_cu_functions everywhere
10602 record_line is called. Call record_line with a linenumber
10603 of 0 to mark sequence ends.
10604
10605 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10606
10607 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10608 change sync with glibc.
10609
10610 2002-04-03 Jim Blandy <jimb@redhat.com>
10611
10612 * configure.in: Call AC_C_INLINE.
10613 * configure: Regenerated.
10614
10615 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10616
10617 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10618 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10619
10620 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10621
10622 * NEWS: Mention gcore support on FreeBSD/i386.
10623
10624 * fbsd-proc.c: New file.
10625 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10626 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10627
10628 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10629 while statement.
10630
10631 2002-03-29 Jim Blandy <jimb@redhat.com>
10632
10633 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10634 unescaped newlines in string literals, but newer ones don't. So
10635 escape them.
10636
10637 2002-03-26 Michael Snyder <msnyder@redhat.com>
10638 Andrew Cagney <cagney@redhat.com>
10639
10640 * cli/cli-dump.c: New file. Dump memory to file,
10641 restore file to memory.
10642 * cli/cli-dump.h: New file.
10643 * Makefile.in: Add rules, dependencies for cli-dump.o.
10644 * NEWS: Mention new commands.
10645
10646 2002-03-28 Michael Snyder <msnyder@redhat.com>
10647
10648 * symfile.c (symbol_file_add): Move test for null symbols to later.
10649
10650 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10651
10652 From veksler at il.ibm.com:
10653 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10654 the xstrduped original path.
10655 Fix PR gdb/417.
10656
10657 2002-03-27 Michael Snyder <msnyder@redhat.com>
10658
10659 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10660 * infcmd.c (_initialize_infcmd): Ditto.
10661 * language.c (_initialize_language): Ditto.
10662 * symfile.c (_initialize_symfile): Ditto.
10663 * top.c (_init_main): Ditto.
10664 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10665
10666 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10667
10668 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10669 vector registers handling.
10670 (skip_prologue): Handle new AltiVec instructions. Fill in new
10671 fields of frame data.
10672 (frame_get_saved_regs): Fill in information for AltiVec registers.
10673
10674 2002-03-27 Jim Blandy <jimb@redhat.com>
10675
10676 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10677 a function; leave this macro here to invoke that function.
10678 (symbol_init_mangled_name): Declaration for that function.
10679 * symtab.c (symbol_init_mangled_name): New function.
10680
10681 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10682
10683 * valarith.c: Replace strerror with safe_strerror.
10684 * tracepoint.c: Ditto.
10685 * lin-lwp.c: Ditto.
10686 * go32-nat.c: Ditto.
10687 * inflow.c: Ditto.
10688 * gnu-nat.c: Ditto.
10689
10690 2002-03-27 Andreas Schwab <schwab@suse.de>
10691
10692 * event-top.c (command_line_handler): Remove useless if.
10693
10694 2002-03-27 Andreas Jaeger <aj@suse.de>
10695
10696 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10697 comment.
10698
10699 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10700
10701 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10702 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10703 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10704 (x86_64_linux_dr_get_status, supply_gregset),
10705 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10706 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10707 (x86_64_register_info_table): Add.
10708 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10709 (x86_64_register_raw_size, x86_64_register_virtual_type),
10710 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10711 general x86_64_register_info_table.
10712 (i386_gdbarch_init): gdbarch_register_bytes is now set
10713 dynamicaly during initialization.
10714 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10715 * gdbserver/linux-x86-64-low.c: Ditto.
10716
10717 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * gdbserver/server.c (main): Call target_signal_to_host_p
10720 and target_signal_to_host on signals received from the remote.
10721 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10722 target_signal_from_host on signals sent to the remote.
10723 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10724 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10725
10726 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10727
10728 * signals/signals.c: Include "server.h" in gdbserver build.
10729 (target_signal_from_name): Don't use STREQ.
10730 (_initialize_signals): Likewise. Don't include function in
10731 gdbserver build.
10732
10733 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10734
10735 * signals.c: Moved to...
10736 * signals/signals.c: Here.
10737 * Makefile (signals.o): Update.
10738
10739 2002-03-26 Jeff Law (law@redhat.com)
10740
10741 * somread.c (som_symtab_read): Remove some commented out code and
10742 updated related comments. Do not set the minimal symbol table to
10743 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10744 in a dynamic executable.
10745 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10746 where we are unable to find the minimal symbol for the given
10747 PC value.
10748
10749 2002-03-25 Jeff Law (law@redhat.com)
10750
10751 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10752
10753 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10754
10755 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10756
10757 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10758
10759 * command.h: Update copyright.
10760 (struct cmd_list_element): Replace definition with opaque
10761 declaration.
10762 (enum cmd_types): Document that it will eventually be moved to
10763 cli/cli-decode.h
10764 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10765 (MALLOCED_REPLACEMENT): Delete macro.
10766 * Makefile.in (cli_decode_h): Add $(command_h).
10767 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10768 * top.c: Include "cli/cli-decode.h".
10769 * completer.c: Include "cli/cli-decode.h".
10770 * maint.c: Include "cli/cli-decode.h".
10771 * cli/cli-decode.h: Include "command.h".
10772 (enum command_class): Delete.
10773 (enum cmd_types): Comment out.
10774 (enum cmd_auto_boolean): Delete.
10775 (enum var_types): Delete.
10776
10777 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10778
10779 * cli/cli-decode.c: Include "gdb_assert.h".
10780 (add_set_or_show_cmd): New static function.
10781 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10782 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10783 all fields, such as func, from the set command.
10784
10785 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10786
10787 * MAINTAINERS (sh-elf): Change warning flag to -w.
10788
10789 2002-03-23 Andrew Cagney <cagney@redhat.com>
10790
10791 * defs.h (error): Add printf format attribute.
10792 * thread-db.c (thread_from_lwp): Fix error format string.
10793 * stack.c (parse_frame_specification): Ditto.
10794 * cli/cli-decode.c (undef_cmd_error): Ditto.
10795 * scm-lang.c (scm_lookup_name): Ditto.
10796 * tracepoint.c (trace_error): Ditto.
10797 * remote-utils.c (usage): Ditto.
10798 * remote.c (compare_sections_command): Ditto.
10799 Fix PR gdb/328.
10800
10801 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10802
10803 * gdbtypes.c (append_composite_type_field): New function.
10804 (init_composite_type): New function.
10805 * gdbtypes.h (append_composite_type_field): Declare.
10806 (init_composite_type): Ditto.
10807
10808 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10809
10810 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10811 function.
10812 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10813 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10814 structure returning convention for SYSV ABI case, but not
10815 for GNU/Linux, FreeBSD, or NetBSD.
10816
10817 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10818
10819 * symtab.h (lookup_block_symbol): Add mangled_name argument
10820 to prototype.
10821
10822 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10823 with new mangled_name argument.
10824 * linespec.c (decode_line_1): Likewise.
10825 * valops (value_of_this): Likewise.
10826 * symtab.c (lookup_transparent_type): Likewise.
10827 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10828 (lookup_symbol): If we are given a mangled name, pass it down
10829 to lookup_symbol_aux.
10830 (lookup_block_symbol): If we are given a mangled name to check
10831 against, only return symbols which match it.
10832
10833 2002-03-22 Christopher Faylor <cgf@redhat.com>
10834
10835 * win32-nat.c (child_create_inferior): Check for proper shell to use
10836 here, in case the user changes it on the fly.
10837 (_initialize_inftarg): Remove shell path considerations.
10838
10839 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10840
10841 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10842 for gdbarch_max_register_raw_size and max_register_virtual_size.
10843 Adjust copyright year.
10844
10845 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10846
10847 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10848 in a function to cover the entire beginning of the function
10849 as well if it does not already.
10850
10851 2002-03-21 Tom Rix <trix@redhat.com>
10852
10853 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10854 (rs6000_ptrace64): Renamed from ptrace64.
10855
10856 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10857
10858 * gdbserver/remote-utils.c (remote_open): Don't call
10859 getprotobyname, we're all using TCP here so just use
10860 IPPROTO_TCP.
10861 * gdbserver/gdbreplay.c (remote_open): Ditto.
10862
10863 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10864
10865 * regcache.c (_initialize_regcache): No need to call
10866 build_regcache() at this time; it gets called whenever
10867 the gdbarch changes.
10868
10869 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10870
10871 * sparc-nat.c: Include sys/param.h where possible.
10872
10873 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10874
10875 Fix PR gdb/422.
10876 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10877 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10878 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10879 complex types.
10880 * stabsread.c (rs6000_builtin_type): Likewise.
10881 (read_sun_floating_type): Likewise.
10882
10883 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10884
10885 * stabsread.c (read_member_functions): Remove skip code for duplicate
10886 constructor/destructor methods. Use standard parsing for these
10887 methods and just do not chain them to the list of methods after
10888 parsing.
10889
10890 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10891
10892 * coffread.c: Remove redundant static declarations. Replace
10893 occurrences of `PTR' with `void *'.
10894 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10895 * top.h (quit_cover): Likewise.
10896 * defs.h (catch_errors): Likewise.
10897
10898 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10899
10900 * defs.h (XMALLOC): Define.
10901 * gdb-events.sh (XMALLOC): Delete macro.
10902 * gdb-events.c, gdb-events.h: Regenerate.
10903 * gdbarch.sh (XMALLOC): Delete macro.
10904 * gdbarch.c: Regenerate.
10905 * serial.c (XMALLOC): Delete macro.
10906 * ui-file.c (XMALLOC): Ditto.
10907 * ser-unix.h (XMALLOC): Ditto.
10908 * sh-tdep.c (XMALLOC): Ditto.
10909 * ui-out.c (XMALLOC): Ditto.
10910 * utils.c (XMALLOC): Ditto.
10911 * i386-tdep.c (XMALLOC): Ditto.
10912 * gdb-events.c (XMALLOC): Ditto.
10913 * d10v-tdep.c (XMALLOC): Ditto.
10914 * cli-out.c (XMALLOC): Ditto.
10915
10916 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10917 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10918 * ui-file.c, ui-out.c: Ditto.
10919
10920 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10921
10922 * command.h (struct cmd_list_element): Add field context.
10923 (set_cmd_context, get_cmd_context): Declare.
10924 * cli/cli-decode.h: Ditto.
10925 * cli/cli-decode.c (get_cmd_context): New function.
10926 (set_cmd_context): New function.
10927 (add_cmd): Initialize context.
10928 Part of fixing PR gdb/145 and PR gdb/146.
10929
10930 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10931
10932 * cli/cli-decode.c (cmd_type): New function.
10933 * command.h (cmd_type): Declare.
10934 * infrun.c (set_schedlock_func): Call function cmd_type.
10935 * kod.c (kod_set_os): Call cmd_type.
10936 * cris-tdep.c (cris_version_update): Use function cmd_type.
10937 (cris_mode_update, cris_abi_update): Ditto.
10938
10939 * command.h: (execute_cmd_post_hook): Declare.
10940 (execute_cmd_pre_hook): Declare.
10941 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10942 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10943 functions. Execute pre/post hook while ensuring that afterwords
10944 hook_in is cleared.
10945 * top.c (execute_command): Use execute_cmd_post_hook, and
10946 execute_cmd_pre_hook to execute pre/post commands.
10947 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10948 hook_stop_stub.
10949 (hook_stop_stub): Call execute_cmd_pre_hook.
10950
10951 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10952
10953 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10954 set'' and this leads to a core dump. Move xstrdup of
10955 operating_system to after check that it is not NULL.
10956
10957 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10958
10959 * kod.c (kod_set_os): Remove unnecessary check that
10960 ``command->type'' is set_cmd.
10961
10962 * valprint.c (set_input_radix): Use input_radix.
10963 (set_output_radix): Use output_radix.
10964 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10965 isn't reverted.
10966
10967 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10968
10969 * value.h (struct value): Delete field ``substring_addr''. Change
10970 aligner fields to force_doublest_align, force_longest_align,
10971 force_core_addr_align and force_pointer_aligh.
10972
10973 * value.h (struct value): Fix typo in above change.
10974
10975 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10976
10977 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10978 to fix internal_error from ``maintenance print architecture''.
10979
10980 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10981
10982 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10983 for gcc versions after gcc-2.8.1.
10984
10985 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10986
10987 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10988 for method resolution. Restore adjustment of ``this'' pointer after
10989 calling value_struct_elt, which was accidentally removed during the
10990 HP merge.
10991
10992 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10993
10994 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10995 value_of_register.
10996 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10997 get_saved_register.
10998 * value.h (value_of_register): Update.
10999
11000 2002-03-14 Richard Henderson <rth@redhat.com>
11001
11002 * configure.in: Detect declaration for canonicalize_file_name.
11003 * utils.c (canonicalize_file_name): Declare, if needed.
11004 (gdb_realpath): Prefer realpath if available and usable.
11005 * config.in, configure: Rebuild.
11006
11007 2002-03-14 Richard Henderson <rth@redhat.com>
11008
11009 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11010 a constant array bound.
11011
11012 * MAINTAINERS: Add myself to write-after-approval.
11013
11014 2002-03-14 Michael Snyder <msnyder@redhat.com>
11015
11016 * symfile.c (syms_from_objfile): Return immediately if no syms.
11017 (symbol_file_add): Return immediately if no syms.
11018 (find_sym_fns): Return immediately if no syms.
11019
11020 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11021
11022 * gdbserver/remote-util.c (remote_open): Print remote-side's
11023 IP address when remote debugging over the network.
11024
11025 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11026
11027 * config/sparc/fbsd.mh: Fix copyright.
11028 * config/sparc/fbsd.mt: Likewise.
11029
11030 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11031
11032 * MAINTAINERS: Fix typo in name of gdb warnings option.
11033 (x86-64): Fix formating so that this can be parsed by awk.
11034
11035 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11036
11037 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11038 * defs.h: Include "gdb/signals.h".
11039 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11040
11041 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11042
11043 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11044 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11045 from x86-64-tdep.h
11046
11047 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11048 Don Howard <dhoward@redhat.com>
11049
11050 * mips-tdep.c (ST0_FR): Define.
11051 (mips2_fp_compat): New function, temporarily disabled.
11052 (mips_read_fp_register_single): New function.
11053 (mips_read_fp_register_double): New function.
11054 (mips_print_register): Use them.
11055 (do_fp_register_row): Likewise.
11056
11057 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11058
11059 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11060 approval''.
11061
11062 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11063
11064 * stabsread.c (read_member_functions): Fix is_stub test for
11065 static member functions, improve comment.
11066
11067 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11068
11069 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11070 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11071 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11072 commands that set boolean values.
11073 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11074 (arm_rdi_resume): Always initialize PC.
11075 (arm_rdi_open): Don't use rslt as a boolean.
11076 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11077 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11078 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11079 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11080
11081 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11082
11083 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11084 * configure: Rebuilt.
11085
11086 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11087
11088 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11089 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11090
11091 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11092
11093 * cli/cli-decode.c (set_cmd_completer): New function.
11094 * command.h (set_cmd_completer): Declare.
11095 * cli/cli-decode.h (set_cmd_completer): Ditto.
11096
11097 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11098 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11099 * win32-nat.c (_initialize_inftarg): Ditto.
11100 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11101 * proc-api.c (_initialize_proc_api): Ditto.
11102 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11103 * source.c (_initialize_source): Ditto.
11104 * exec.c (_initialize_exec): Ditto.
11105 * solib.c (_initialize_solib): Ditto.
11106 * top.c (init_main): Ditto.
11107 * tracepoint.c (_initialize_tracepoint): Ditto.
11108 * symfile.c (_initialize_symfile): Ditto.
11109 * printcmd.c (_initialize_printcmd): Ditto.
11110 * infcmd.c (_initialize_infcmd): Ditto.
11111 * corefile.c (_initialize_core): Ditto.
11112
11113 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11114
11115 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11116
11117 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11118
11119 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11120
11121 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11122
11123 * NEWS: Update headings, 5.2 has branched.
11124
11125 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11126
11127 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11128 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11129 (register_addr, REGISTER_RAW_SIZE): Likewise.
11130 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11131 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11132
11133 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11134
11135 * MAINTAINERS (x86-64): Add myself.
11136 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11137 changed value_ptr -> struct value *
11138
11139 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11140
11141 * configure.host (sparc64-*-freebsd): Add.
11142 * configure.tgt: Likewise.
11143 * config/sparc/fbsd.mh: New file.
11144 * config/sparc/fbsd.mt: Likewise.
11145 * config/sparc/nm-fbsd.h: Likewise.
11146 * config/sparc/tm-fbsd.h: Likewise.
11147
11148 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11149
11150 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11151 regformats/reg-s390x.dat.
11152
11153 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11154
11155 * utils.c: Add FIXME explaining true/false problem.
11156
11157 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11158
11159 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11160
11161 2002-02-28 Michael Chastain <mec@shout.net>
11162
11163 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11164
11165 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * gdbserver/linux-s390-low.c: New file.
11168 * regformats/reg-s390.dat: New file.
11169 * regformats/reg-s390x.dat: New file.
11170 * gdbserver/configure.srv: Add S/390.
11171 * gdbserver/Makefile.in: Add S/390.
11172 * configure.tgt: Enable gdbserver for S/390.
11173
11174 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11175
11176 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11177 first line of the doc string for "info dos", except at the end of
11178 the sentence, since the short help stops at the first period.
11179
11180 2002-02-28 Jason Merrill <jason@redhat.com>
11181
11182 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11183
11184 2002-02-27 Fred Fish <fnf@redhat.com>
11185
11186 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11187 comment (dumy -> dummy).
11188
11189 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11190
11191 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11192
11193 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11194
11195 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11196
11197 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11198
11199 * gdbserver/acconfig.h: New file.
11200 * gdbserver/i387-fp.c: New file.
11201 * gdbserver/i387-fp.h: New file.
11202 * gdbserver/linux-x86-64.c: New file.
11203 * regformats/reg-x86-64.dat: New file.
11204 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11205 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11206 * gdbserver/configure.in: Add support for regsets.
11207 * gdbserver/config.in: Regenerate.
11208 * gdbserver/configure: Regenerate.
11209 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11210 * gdbserver/linux-low.h: New file.
11211 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11212 for regsets.
11213 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11214 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11215 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11216 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11217 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11218 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11219 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11220 "i387-fp.h". Add PTRACE_GETREGS and friends.
11221 * gdbserver/regcache.c (supply_register): New function.
11222 (supply_register_by_name): New function.
11223 (collect_register): New function.
11224 (collect_register_by_name): New function.
11225
11226 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11227
11228 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11229 (config.status): Add configure.srv dependency.
11230 (server_h): Add config.h dependency.
11231
11232 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11233
11234 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11235 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11236 * gdbserver/configure.srv: Change i386-*-linux* to use
11237 reg-i386-linux.o.
11238
11239 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11240
11241 * x86-64-tdep.c: Re-indent. Update copyright date.
11242
11243 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11244
11245 From Michal Ludvig <mludvig@suse.cz>:
11246 * x86-64-tdep.c (value.h): Delete.
11247 (gdb_assert.h): Include.
11248 (x86_64_register_convert_to_virtual,
11249 x86_64_register_convert_to_raw ): Add check which lets only
11250 floating-point values to be converted.
11251 (value_push): Delete.
11252 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11253 (i386_gdbarch_init): Number of register_bytes fixed.
11254
11255 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11256
11257 * MAINTAINERS: Add x86-64 target.
11258
11259 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11260
11261 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11262 * osfsolib.c (solib_map_sections): Ditto.
11263 * irix5-nat.c (solib_map_sections): Ditto.
11264 * corelow.c (gdb_check_format): Ditto.
11265 * symfile.c (symfile_bfd_open): Ditto.
11266 * solib.c (solib_map_sections): Ditto.
11267 Fix PR gdb/354.
11268
11269 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11270
11271 * remote.c (_initialize_remote): By default, disable ``e'' and
11272 ``E'' step out-of-range packets.
11273
11274 2002-02-26 Andreas Schwab <schwab@suse.de>
11275
11276 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11277 m68k_linux_frame_saved_pc.
11278 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11279 in_sigtramp.
11280 (SIGCONTEXT_PC_OFFSET): Remove.
11281 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11282 m68k_linux_sigtramp_saved_pc): New functions.
11283 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11284 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11285 (UCONTEXT_PC_OFFSET): Define.
11286 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11287 non-RT and RT signal trampolines.
11288
11289 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11290
11291 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11292 (TARGET_NBPG, STACK_END_ADDR): Delete
11293 (VARIABLES_INSIDE_BLOCK): Delete.
11294
11295 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11296
11297 * utils.c (perror_with_name): Make string parameter constant.
11298 (print_sys_errmsg): Ditto.
11299 (query): Ditto.
11300 * defs.h (perror_with_name): Update.
11301 (print_sys_errmsg): Update.
11302 (query): Update.
11303
11304 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11305
11306 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11307 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11308
11309 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11310
11311 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11312 if it already matches the current architecture from the exec file.
11313 Include arch-utils.h for gdbarch_info_init prototype.
11314 * Makefile.in (rs6000-nat.o): Update dependencies.
11315
11316 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11317
11318 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11319 list of exported variables.
11320
11321 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11322
11323 * gdbserver/configure.srv: New file.
11324 * gdbserver/configure.in: Use configure.srv instead
11325 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11326 from it.
11327 * gdbserver/configure: Regenerated.
11328 * gdbserver/terminal.h: New file.
11329 * gdbserver/Makefile.in: Update for configure changes. Remove
11330 more unneeded include paths.
11331
11332 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11333
11334 From wiz at danbala:
11335 * config/sparc/tm-sp64.h: Fix grammar and typos.
11336 Fix PR gdb/287.
11337
11338 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11339
11340 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11341 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11342 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11343 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11344 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11345 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11346 * s390-tdep.c: Ditto.
11347 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11348 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11349 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11350 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11351 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11352 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11353 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11354 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11355 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11356 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11357 Fix PR gdb/378.
11358
11359 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11360
11361 * lin-thread.c: Delete file.
11362 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11363 to gdb_proc_service.h.
11364 * configure: Re-generate.
11365
11366 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11367 * serial.c (serial_open): Delete check for "ocd".
11368 Fix PR gdb/349.
11369
11370 * Makefile.in (linux-thread.o): Delete target.
11371 * linux-thread.c: Delete file.
11372
11373 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11374 renamed SH files to be consistent.
11375
11376 * symtab.c (sort_search_symbols): Use xfree.
11377
11378 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11379
11380 * arm-linux-tdep.c (arm_linux_init_abi): Register
11381 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11382 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11383 definition with undef, since we don't want the sysvr4 definition.
11384 (SKIP_TRAMPOLINE_CODE): Likewise.
11385
11386 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11387
11388 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11389
11390 * configure.in: (AC_CHECK_FUNCS) Added test for
11391 canonicalize_file_name Regenerated.
11392 * config.in, configure: Regenerated.
11393 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11394 defined use canonicalize_file_name.
11395
11396 2002-02-23 Michael Chastain <mec@shout.net>
11397
11398 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11399
11400 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11401
11402 * README: Remove references to cygnus.com.
11403 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11404 dot com'' form. Remove references to cygnus.com and sourceware.
11405
11406 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11407
11408 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11409 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11410 1003.1-2001 no longer allows "head -1".
11411 * gdb/Makefile.in (version.c): Likewise.
11412 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11413 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11414 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11415
11416 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11417
11418 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11419 * command.h (cmd_cfunc_eq): Declare.
11420 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11421
11422 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11423 ``struct cmd_list_element *''.
11424 * cli/cli-cmds.c (is_complete_command): Update. Use
11425 cmd_cfunc_eq.
11426 * top.c (execute_command): Pass the command to
11427 is_complete_command.
11428 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11429
11430 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11431
11432 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11433 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11434 architecture defines.
11435 * s390-tdep.c (s390_gdbarch_init): Likewise.
11436
11437 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11438
11439 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11440 (arm_linux_push_arguments): Likewise.
11441 (arm_linux_init_abi): Register them. Also register linux-specific
11442 call_dummy_words.
11443 (find_minsym_and_objfile): Use strcmp, not STREQ.
11444 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11445 (arm_linux_call_dummy_words): Delete declaration.
11446 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11447 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11448 declarations.
11449 (LOWEST_PC): Delete.
11450
11451 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11452
11453 * maint.c (print_section_info): Do not prepend `0x' to filepos
11454 output, it will be handled by local_hex_string_custom.
11455
11456 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11457
11458 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11459 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11460 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11461
11462 2002-02-22 Jim Blandy <jimb@redhat.com>
11463
11464 Indicate that the bcache functions don't change the strings
11465 they're passed.
11466 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11467 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11468
11469 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11470
11471 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11472
11473 2002-02-21 Christopher Faylor <cgf@redhat.com>
11474
11475 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11476 find the complete path to a loaded DLL.
11477
11478 2002-02-21 Fred Fish <fnf@redhat.com>
11479
11480 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11481 that marks the end of the range of a function, enter a line number
11482 entry that has a line number of zero and a PC offset that matches
11483 the end of the function. This starts a range of PC's for which no
11484 line number information is known.
11485 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11486 PC's for which no line number info is found (line number is zero)
11487 then we didn't find any valid line information.
11488 * symtab.h: Document use of zero line number entry.
11489
11490 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11491
11492 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11493 (have_ptrace_getvrregs): Define for run time checks.
11494 (gdb_vrregset_t): New type for Altivec register handling.
11495 (fetch_register, store_register): Fetch/store altivec register
11496 when needed.
11497 (fetch_altivec_register, store_altivec_register): New functions.
11498 (supply_vrregset, fill_vrregset): New functions.
11499 (fetch_altivec_registers, store_altivec_registers): New functions.
11500 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11501 registers as well.
11502
11503 2002-02-21 Jiri Smid <smid@suse.cz>
11504
11505 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11506
11507 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11508
11509 * Makefile.in (armnbsd-nat.o): Update dependencies.
11510 * armnbsd-nat.c (supply_gregset): New function. Common code to
11511 supply the integer register set.
11512 (supply_fparegset): New function. Similar for FPA registers.
11513 (fetch_regs, fetch_fp_regs): Use them.
11514 (fetch_core_registers): Likewise.
11515 (fetch_elfcore_registers): New function.
11516 (arm_netbsd_elfcore_fns): New core-file type specification.
11517 (_initialize_arm_netbsd_nat): Register it.
11518
11519 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11520
11521 * armnbsd-nat.c: Include gdbcore.h.
11522 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11523 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11524 'void' to declaration, to shut up ARI.
11525 (fetch_core_registers): Make static. Rewrite using supply_register.
11526 (arm_netbsd_core_fns): New core-file type specification.
11527 (_initialize_arm_netbsd_nat): New function.
11528
11529 2002-02-21 Christopher Faylor <cgf@redhat.com>
11530
11531 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11532 value.
11533
11534 2002-02-20 Christopher Faylor <cgf@redhat.com>
11535
11536 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11537 fails.
11538
11539 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11540
11541 * jv-exp.y (parse_number): Change type of implicit longs
11542 to builtin_type_uint64.
11543
11544 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11545
11546 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11547 to be an integer instead of a `union wait'.
11548
11549 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * mips-linux-nat.c: Call the operating system GNU/Linux.
11552 * mips-linux-tdep.c: Likewise.
11553 * mips-tdep.c: Likewise.
11554
11555 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11556
11557 Fix PR gdb/265.
11558 * jv-exp.y (parse_number): Handle 64-bit integers.
11559
11560 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11563 AC_STDC_HEADERS to AC_HEADER_STDC.
11564 * gdbserver/configure: Regenerated.
11565
11566 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11567
11568 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11569 is defined.
11570 * sparc-tdep.c (get_longjmp_target): Likewise.
11571
11572 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11573
11574 * News: Add news about ARM and Multi-arch. Mention the new target
11575 arm*-*-netbsd*.
11576
11577 2002-02-19 Jim Blandy <jimb@redhat.com>
11578
11579 * stabsread.c (error_type_complaint): Improve error message.
11580
11581 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11582
11583 * gdbserver/README: Update documentation.
11584 * gdbserver/configure.in: Update configury to match documentation.
11585 * gdbserver/Makefile.in: Likewise.
11586 * gdbserver/configure: Regenerated.
11587 * gdbserver/aclocal.m4: New file, generated by aclocal.
11588 * gdbserver/config.in: New file, generated by autoheader.
11589
11590 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11591
11592 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11593 armnbsd-nat.c.
11594
11595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11596
11597 * arm-tdep.h (enum arm_float_model): New enum.
11598 (struct gdbarch_tdep): Add fp_model.
11599 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11600 up floating-point conversions until we know the floating-point model
11601 in use by the inferior. Don't complain about being unable to
11602 determine the ABI of the inferior when we don't have one.
11603 (arm_extract_return_value): Support different floating-point models.
11604 (arm_store_return_value): Likewise.
11605 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11606 ARM_FLOAT_SOFT.
11607 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11608
11609 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11610
11611 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11612 of ``current_gdbarch''.
11613
11614 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11615
11616 * armnbsd-nat.c : ANSIfy all function declarations.
11617 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11618 (fetch_inferior_registers): Re-implement in terms of above.
11619 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11620 (store_inferior_registers): Re-implement in terms of above.
11621
11622 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11623
11624 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11625 kernel.
11626 * arm-linux-tdep.c: Likewise.
11627 * config/arm/tm-linux.h: Likewise.
11628
11629 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11630
11631 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11632 * config/arm/nbsd.mt (TM_FILE): Delete.
11633 * config/arm/tm-nbsd.h: Delete.
11634
11635 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11636
11637 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11638 Initialize CALL_DUMMY_LENGTH.
11639
11640 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11641
11642 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11643 function.
11644 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11645 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11646 defines one thing and that is incorrect for this port.
11647 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11648
11649 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11650
11651 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11652
11653 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11654
11655 * win32-nat.c (display_selector): New function. Displays information
11656 about the information returned by GetThreadSelectorEntry API function.
11657 (display_selectors): New function. Displays the infomation of
11658 the selector given as argument, or of CS, DS ans FS selectors
11659 if no argument is given.
11660 ( _initialize_inftarg): Add "w32" as info prefix command.
11661 Add "info w32 selector" as command calling display_selectors.
11662
11663 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11664
11665 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11666 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11667 if not defined.
11668
11669 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11670
11671 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11672
11673 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11674
11675 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11676 (arm_fix_call_dummy): Call it.
11677 (arm_call_dummy_breakpoint_offset): Delete.
11678 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11679 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11680
11681 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11682
11683 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11684 Default to func_frame_chain_valid.
11685 * gdbarch.h, gdbarch.c: Re-generate.
11686 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11687
11688 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11689
11690 * ppc-linux-nat.c: Update copyright.
11691 (fetch_register, store_register): Add tid parameter, don't compute
11692 tid here.
11693 (fetch_ppc_registers, store_ppc_registers): Add tid
11694 parameter. Pass it along to callees.
11695 (fetch_inferior_registers, store_inferior_registers): Compute tid
11696 here, and pass it to calleed functions.
11697 (fill_gregset, supply_fpregset): Clean up formatting.
11698
11699 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11700
11701 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11702 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11703
11704 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11705
11706 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11707 * gdbarch.c gdbarch.h: Regenerate.
11708 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11709 function.
11710 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11711 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11712 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11713
11714 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11715 * arm-tdep.c (arm_get_longjmp_target): New function.
11716 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11717 this to a positive value register arm_get_longjmp_target as the
11718 longjmp handler.
11719 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11720 (arm_linux_init_abi): Set up longjmp description in tdep.
11721 * armnbsd-nat.c (get_longjmp_target): Delete.
11722 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11723 description in tdep.
11724 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11725 (get_longjmp_target): Delete declaration.
11726 (GET_LONGJMP_TARGET): Delete.
11727 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11728 (GET_LONGJMP_TARGET): Delete.
11729
11730 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11731
11732 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11733 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11734 of ``current_gdbarch''.
11735
11736 2002-02-17 Tom Tromey <tromey@redhat.com>
11737
11738 * cli/cli-cmds.c (compare_strings): New function.
11739 (complete_command): Only print each unique item once.
11740 * completer.h (complete_line): Declare.
11741 * completer.c (complete_line): New function.
11742 (line_completion_function): Use it.
11743
11744 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11745
11746 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11747 * gdbarch.h, gdbarch.c: Re-generate.
11748
11749 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11750
11751 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11752
11753 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11754
11755 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11756 * valops.c (value_arg_coerce): Don't take the address of a reference
11757 to convert an argument to a reference.
11758
11759 2002-02-15 Christopher Faylor <cgf@redhat.com>
11760
11761 * win32-nat.c (get_image_name): New function.
11762 (handle_load_dll): Use get_image_name function.
11763 (get_child_debug_event): Avoid registering debug events until possibly
11764 execed process is started.
11765 (child_create_inferior): Allow invocation via shell so that command
11766 line redirection, etc. works ok.
11767 (_initialize_inftarg): Add new command: "set shell" to control whether
11768 a shell is used to start a process.
11769
11770 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11771
11772 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11773 instead of find_register_by_number.
11774 (cannot_store_register): Likewise.
11775
11776 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11777
11778 * dwarf2read.c: Replace fprintf (stderr, ...) by
11779 fprintf_unfiltered (gdb_stderr, ...).
11780
11781 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11782
11783 * gdbserver/gdbserver.1: Document --attach.
11784
11785 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11786
11787 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11788 descriptions.
11789 * arm-tdep.c (arm_default_arm_le_breakpoint)
11790 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11791 (arm_default_thumb_be_breakpoint): New. Initialize them from
11792 traditional breakpoint defines.
11793 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11794 (arm_gdbarch_init): Initialize new breakpoint variables.
11795 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11796 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11797 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11798 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11799 code out to ...
11800 (arm_netbsd_init_abi_common): ... here; new function.
11801 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11802 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11803 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11804 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11805
11806 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11807
11808 * arm-tdep.h (enum arm_abi): New enum.
11809 (struct gdbarch_tdep): New structure.
11810 (LOWEST_PC): Provide a default.
11811 (arm_gdbarch_register_os_abi): Declare new function.
11812 * arm-tdep.c (arm_abi_names): New array.
11813 (process_note_abi_tag_sections): New function.
11814 (get_elfosabi): New function.
11815 (arm_gdbarch_register_os_abi): New function.
11816 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11817 support for that ABI has been built in, then call the appropriate
11818 configuration routine. Use gdbarch_num_regs() to get the number
11819 of registers.
11820 (arm_dump_tdep): New function.
11821 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11822 place-holder functions.
11823 (_initialize_arm_tdep): Register them.
11824 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11825
11826 * armnbsd-tdep.c: New file.
11827 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11828 * config/arm/nbsd.mt (TDEPFILES): Add it.
11829 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11830
11831 * armnbsd-nat.c: Include regcache.h.
11832 * Makefile.in (armnbsd-nat.o): Update dependency list.
11833
11834 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11835
11836 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11837
11838 * gdbserver/Makefile.in: Fix typos in target rules.
11839
11840 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11841
11842 Fix part of PR gdb/267.
11843 * linespec.c (find_methods): Handle constructors specially for now.
11844
11845 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11846
11847 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11848 handling.
11849 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11850 standard_coerce_float_to_double().
11851
11852 2002-02-14 Christopher Faylor <cgf@redhat.com>
11853
11854 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11855 GDBINIT_FILENAME.
11856
11857 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11858
11859 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11860 find_variant_by_name, because it confuses the multiarch
11861 framework. Return NULL if there isn't an architecture with the
11862 user supplied name, instead of forcing a different one without
11863 recording the change with the multiarch machinery.
11864 (find_variant_by_name): Delete.
11865
11866 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11867
11868 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11869 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11870
11871 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11872
11873 * stack.c (print_frame_info_base): When calling
11874 print_frame_info_listing_hook, set current_source_symtab.
11875
11876 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11879 and remove unused $(INCLUDE_DIR).
11880 Add regcache.c to OBS.
11881 Add generated register protocol files to clean target.
11882 Update dependencies for new objects, obsolete old target code.
11883
11884 * gdbserver/linux-low.c: Remove all platform-specific code to
11885 new files. Remove various dead code. Update to use regcache
11886 functionality.
11887 * gdbserver/remote-utils.c (fromhex): Add return statement
11888 to quiet warning.
11889 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11890 constant.
11891 (input_interrupt): Add integer parameter to match prototype
11892 of a signal handler.
11893 (outreg): Use register_data ().
11894 (prepare_resume_reply): Use gdbserver_expedite_regs.
11895 * gdbserver/server.c (main): Dynamically allocate own_buf because
11896 PBUFSIZ is no longer constant. Use registers_to_string () and
11897 registers_from_string ().
11898 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11899 for error (), fatal (), and warning (). Update definition of
11900 PBUFSIZ to use regcache functionality. Add include guard.
11901 * gdbserver/utils.c (fatal): Add missing ``const''.
11902 (warning): New function.
11903
11904 * regformats/regdat.sh: Include "regcache.h" in generated files.
11905 Provide init_registers () function.
11906 * regformats/regdef.h: Add prototype for set_register_cache ().
11907 Add include guard.
11908
11909 * gdbserver/linux-arm-low.c: New file.
11910 * gdbserver/linux-i386-low.c: New file.
11911 * gdbserver/linux-ia64-low.c: New file.
11912 * gdbserver/linux-m68k-low.c: New file.
11913 * gdbserver/linux-mips-low.c: New file.
11914 * gdbserver/linux-ppc-low.c: New file.
11915 * gdbserver/linux-sh-low.c: New file.
11916
11917 * gdbserver/regcache.c: New file.
11918 * gdbserver/regcache.h: New file.
11919
11920 * gdbserver/low-linux.c: Removed obsolete file.
11921
11922 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11923
11924 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11925 * config/i386/linux.mt: Likewise.
11926 * config/ia64/linux.mt: Likewise.
11927 * config/m68k/linux.mh: Likewise.
11928 * config/powerpc/linux.mh: Likewise.
11929 * config/mips/linux.mt: Likewise.
11930
11931 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11932
11933 * config/i386/i386lynx.mh: Mark gdbserver variables
11934 as (currently) obsolete for this target.
11935 * config/i386/nbsd.mt: Likewise.
11936 * config/i386/nbsdelf.mt: Likewise.
11937 * config/m32r/m32r.mt: Likewise.
11938 * config/m68k/m68klynx.mh: Likewise.
11939 * config/m68k/nbsd.mt: Likewise.
11940 * config/m68k/sun3os4.mh: Likewise.
11941 * config/mips/vr5000.mt: Likewise.
11942 * config/ns32k/nbsd.mt: Likewise.
11943 * config/pa/hppabsd.mh: Likewise.
11944 * config/pa/hppaosf.mh: Likewise.
11945 * config/powerpc/nbsd.mt: Likewise.
11946 * config/rs6000/rs6000lynx.mh: Likewise.
11947 * config/s390/s390.mt: Likewise.
11948 * config/s390/s390x.mt: Likewise.
11949 * config/sparc/sparclynx.mh: Likewise.
11950 * config/sparc/sun4os4.mh: Likewise.
11951 * config/i386/x86-64linux.mt: Likewise.
11952 * config/sparc/linux.mh: Likewise.
11953
11954 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * configure.tgt: Configure gdbserver only for known working
11957 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11958 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11959 SUBDIRS if it is configured. Update comment for ${nativefile}.
11960 * configure: Regenerated.
11961
11962 2002-02-13 Michael Snyder <msnyder@redhat.com>
11963
11964 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11965
11966 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11967 (default_gcore_mach): Just return 0, work around a problem in bfd.
11968 (default_gcore_target): OK to return NULL if exec_bfd is null.
11969 (make_mem_sec): Use a cast, avoid a warning.
11970
11971 * procfs.c (find_memory_regions_callback): Use a cast instead of
11972 calling host_pointer_to_address (which complains if
11973 sizeof (host pointer) != sizeof (target pointer)).
11974 (procfs_make_note_section): Avoid overflow in psargs string.
11975
11976 * procfs.c (procfs_make_note_section): Make the default
11977 implementation return an error.
11978
11979 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11980
11981 * procfs.c (procfs_make_note_section): Provide a default definition
11982 (for alpha-dec-osf4.0f). Fix typos.
11983
11984 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11985
11986 * linux-proc.c: Add include of regcache.h.
11987 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11988
11989 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11990
11991 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11992 * memattr.c (create_mem_region): Disallow useless empty region.
11993 Regions are half-open intervals, so allow [A..B) [B..C) as
11994 non-overlapping.
11995
11996 2002-02-13 Michael Chastain <mec@shout.net>
11997
11998 * defs.h: Kill CONST_PTR.
11999 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12000 * c-lang.c (c_builtin_types): Likewise.
12001 * ch-lang.c (ch_builtin_types): Likewise.
12002 * f-lang.c (f_builtin_types): Likewise.
12003 * language.c (unknown_builtin_types): Likewise.
12004 * m2-lang.c (m2_builtin_types): Likewise.
12005 * p-lang.c (pascal_builtin_types): Likewise.
12006 * scm-lang.c (c_builtin_types): Likewise.
12007
12008 2002-02-13 Keith Seitz <keiths@redhat.com>
12009
12010 * arm-tdep.h (arm_get_next_pc): Add declaration.
12011
12012 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12013
12014 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12015 with other related struct-returning functions.
12016 (arm_extract_struct_value_address): New function.
12017 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12018 initialize float_format, double_format and long_double_format as
12019 appropriate to the endianness of the target.
12020 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12021 (arm_use_struct_convention): Delete declaration.
12022 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12023
12024 2002-02-13 Keith Seitz <keiths@redhat.com>
12025
12026 * defs.h (core_addr_to_string_nz): New function.
12027
12028 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12029
12030 Apply missing bits of 2002-01-15 patch.
12031 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12032 (fill_fpregset): Use i387_fill_fsave.
12033
12034 2002-02-12 Keith Seitz <keiths@redhat.com>
12035
12036 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12037 (core_addr_to_string_nz): New function.
12038
12039 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12040
12041 * arm-linux-nat.c: Really include arm-tdep.h.
12042 * config/arm/tm-linux.h (struct type, struct value): Declare.
12043
12044 2002-02-11 Michael Snyder <msnyder@redhat.com>
12045
12046 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12047 (gcore section): Ifdef for Solaris and Unixware only.
12048 (procfs_do_thread_registers): Unixware needs one lwpstatus
12049 per thread (not one prstatus or pstatus).
12050 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12051 not over all gdb threads. For unixware, call elfcore_write_pstatus
12052 once before iterating over threads.
12053
12054 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12055
12056 * arm-tdep.h: New file.
12057 * arm-tdep.c: Include arm-tdep.h.
12058 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12059 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12060 (arm_print_float_info, arm_register_type, convert_to_extended)
12061 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12062 (arm_extract_return_value, arm_register_name): Make static.
12063 (arm_software_single_step): Similarly. Fix types in declaration.
12064 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12065 (arm_store_return_value, arm_store_struct_return): New functions.
12066 (arm_gdbarch_init): Register the above functions. Also register
12067 call_dummy_start_offset, sizeof_call_dummy_words,
12068 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12069 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12070 max_register_virtual_size, register_size. Set up
12071 prologue_cache.saved_regs here, rather than ...
12072 (_initialize_arm_tdep): ... here.
12073 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12074 declarations.
12075 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12076 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12077 (arm_print_float_info, arm_register_type, convert_to_extended)
12078 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12079 (arm_extract_return_value, arm_register_name): Delete declarations.
12080 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12081 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12082 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12083 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12084 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12085 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12086 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12087 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12088 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12089 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12090 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12091 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12092 interface.
12093 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12094 * remote-rdi.c remote-rdp.c: Likewise.
12095 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12096 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12097 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12098 definition.
12099
12100 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12101 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12102 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12103 from non-ARM_ prefixed definitions.
12104 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12105 all uses of above.
12106 * remote-rdi.c remote-rdp.c: Likewise.
12107 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12108
12109 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12110
12111 * arm-tdep.c (arm_frameless_function_invocation)
12112 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12113 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12114 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12115 (arm_pop_frame, arm_get_next_pc): Make static.
12116 (arm_gdbarch_init): Register above in gdbarch structure.
12117 (arm_read_fp): Renamed from arm_target_read_fp.
12118 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12119 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12120 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12121 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12122 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12123 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12124 (arm_pc_is_thumb_dummy): Delete declarations.
12125 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12126 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12127 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12128 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12129
12130 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12131
12132 * symtab.c (compare_search_syms): New function.
12133 (sort_search_symbols): New function.
12134 (search_symbols): Sort symbols after searching rather than
12135 before.
12136
12137 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12138
12139 * NEWS: Linux -> GNU/Linux.
12140
12141 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12142
12143 * gdbarch.sh: For for level one methods, disallow a definition
12144 when partially multi-arched. Add comments explaining rationale.
12145 * gdbarch.h: Re-generate.
12146
12147 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12148
12149 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12150 multi-arch partial.
12151
12152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12153
12154 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12155 field. Use diff -u.
12156 * gdbarch.c: Re-generate.
12157
12158 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12159
12160 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12161 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12162 partial.
12163
12164 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12165
12166 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12167 multi-arch partial.
12168 (PUSH_ARGUMENTS): Switch to using predefault.
12169 * gdbarch.c: Regenerate.
12170
12171 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12172
12173 * valops.c (PUSH_ARGUMENTS): Delete definition.
12174 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12175 partial. Default to default_push_arguments.
12176 * gdbarch.h, gdbarch.c: Regenerate.
12177
12178 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12179
12180 * defs.h (throw_exception): Rename return_to_top_level. Update
12181 comments.
12182 * utils.c (error_stream, internal_verror, quit): Ditto.
12183 * top.c (throw_exception, catcher): Ditto.
12184 * sparclet-rom.c (sparclet_load): Ditto.
12185 * remote.c (interrupt_query, minitelnet): Ditto.
12186 * remote-sds.c (interrupt_query): Ditto.
12187 * remote-mips.c (mips_error, mips_kill): Ditto.
12188 * ocd.c (interrupt_query): Ditto.
12189 * monitor.c (monitor_interrupt_query): Ditto.
12190 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12191 * target.h: Update comment.
12192
12193 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12194
12195 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12196
12197 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12198 default_double_format.
12199 * gdbarch.h, gdbarch.c: Re-generate.
12200 * findvar.c (floatformat_unknown): Delete variable definition.
12201 * doublest.h (floatformat_unknown): Delete variable declaration.
12202
12203 2002-02-09 Jim Blandy <jimb@redhat.com>
12204
12205 * stabsread.c (read_type): Add code to parse Sun's syntax for
12206 prototyped function types.
12207
12208 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12209
12210 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12211 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12212
12213 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12214
12215 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12216 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12217 now _initialize_xcoffsolib gets called again and overrides the
12218 commands from solib.c in a native configuration.
12219
12220 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12221
12222 * doublest.c (store_typed_floating): Don't try to return a value.
12223 Fixes PR gdb/290.
12224
12225 2002-02-08 Jim Blandy <jimb@redhat.com>
12226
12227 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12228 is prototyped and has no arguments, print its argument list as
12229 `(void)'.
12230
12231 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12232
12233 * MAINTAINERS (write-after-approval): Add myself.
12234 (paper-trail): I've escaped!
12235
12236 2002-02-08 Christopher Faylor <cgf@redhat.com>
12237
12238 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12239 changes.
12240 (_initialize_check_for_gdb_ini): Ditto.
12241
12242 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12243
12244 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12245 xaprintf -> xasprintf.
12246
12247 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12248
12249 * win32-nat.c: Remove use of printf and sprintf functions.
12250
12251 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12252
12253 * arm-tdep.c (arm_frame_chain_valid): Make static.
12254 (arm_push_arguments): Likewise.
12255 (arm_gdbarch_init): New function.
12256 (_initialize_arm_tdep): Call it.
12257 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12258 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12259 (FRAME_CHAIN_VALID): Delete.
12260 (arm_frame_chain_valid): Delete declaration.
12261 (PUSH_ARGUMENTS): Delete.
12262 (arm_push_arguments): Delete declaration.
12263 (CALL_DUMMY_P): Delete.
12264
12265 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12266 Corinna Vinschen <vinschen@redhat.com>
12267
12268 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12269 on builtin float types.
12270
12271 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * utils.c: Include <curses.h> before "bfd.h".
12274 * tui/tui-hooks.c: Likewise.
12275 * tui/tui.c: Likewise.
12276 * tui/tuiCommand.c: Likewise.
12277 * tui/tuiData.c: Likewise.
12278 * tui/tuiDataWin.c: Likewise.
12279 * tui/tuiDisassem.c: Likewise.
12280 * tui/tuiGeneralWin.c: Likewise.
12281 * tui/tuiIO.c: Likewise.
12282 * tui/tuiLayout.c: Likewise.
12283 * tui/tuiRegs.c: Likewise.
12284 * tui/tuiSource.c: Likewise.
12285 * tui/tuiSourceWin.c: Likewise.
12286 * tui/tuiStack.c: Likewise.
12287 * tui/tuiWin.c: Likewise.
12288
12289 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12290
12291 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12292 to include space for pseudoregs as well. Update loops accordingly.
12293 (sh_fp_frame_init_saved_regs): Ditto.
12294 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12295
12296 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12297
12298 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12299 Add Richard Earnshaw to Arm maintainers.
12300
12301 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12302
12303 * defs.h (warning_begin): Delete declaration.
12304
12305 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12306 Delete macro.
12307
12308 2002-02-07 Michael Snyder <msnyder@redhat.com>
12309
12310 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12311 Logic bug, remove misplaced else.
12312
12313 2002-02-07 Klee Dienes <klee@apple.com>
12314
12315 * fork-inferior.c (fork_inferior): Add '!' to the list of
12316 characters that need to be quoted when building a string for the
12317 shell. Quote '!' specifically with a backslash, since CSH chokes
12318 when trying to evaluate "str!str".
12319
12320 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12321
12322 * rdi-share/host.h: Only provide a typedef for bool if it is not
12323 defined.
12324
12325 2002-02-04 Michael Snyder <msnyder@redhat.com>
12326
12327 * breakpoint.h (enum bptype): Add new overlay event bp type.
12328 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12329
12330 * breakpoint.c (create_internal_breakpoint): New function.
12331 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12332 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12333 (create_thread_event_breakpoint): Ditto.
12334 (create_solib_event_breakpoint): Ditto.
12335 (create_overlay_event_breakpoint): New function.
12336 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12337 (update_breakpoints_after_exec): Delete and re-initialize
12338 overlay event breakpoints after an exec. Add FIXME comment
12339 about longjmp breakpoint.
12340 (print_it_typical): Ignore overlay event breakpoints.
12341 (print_one_breakpoint): Ditto.
12342 (mention): Ditto.
12343 (bpstat_what): Do not stop for overlay event breakpoints.
12344 (delete_breakpoint): Don't delete overlay event breakpoints.
12345 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12346 (breakpoint_re_set): Re-create overlay event breakpoint.
12347
12348 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12349 (overlay_manual_command): Disable overlay breakpoints.
12350 (overlay_off_command): Disable overlay breakpoints.
12351
12352 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12353
12354 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12355 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12356 to here from config/tm-arm.h.
12357 (coff_sym_is_thumb): Make static.
12358 (arm_elf_make_msymbol_special): New function.
12359 (arm_coff_make_msymbol_special): New function.
12360 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12361 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12362 (coff_sym_is_thumb): Delete declaration.
12363 (arm_elf_make_msymbol_special): Declare.
12364 (arm_coff_make_msymbol_special): Declare.
12365 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12366 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12367
12368 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12369
12370 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12371
12372 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12373
12374 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12375 * gdbarch.c gdbarch.h: Regenerate.
12376 * arch-utils.c (default_print_float_info): New function.
12377 * arch-utils.h (default_print_float_info): Prototype it.
12378 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12379 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12380 (PRINT_FLOAT_INFO): Document it.
12381
12382 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12383 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12384 (PRINT_FLOAT_INFO): Define.
12385
12386 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12387
12388 * win32-nat.c (_initialize_check_for_gdb_ini):
12389 Add typecast to sprintf argument to suppress a warning.
12390
12391 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12392
12393 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12394 to allow easier handling of pass state.
12395 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12396 that gives exception name and address.
12397 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12398 and set last_sig value to ourstatus->value.sig. Some missing
12399 exceptions added.
12400 (child_continue): Correctly report continue_status.
12401 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12402 TARGET_SIGNAL_0 (new default value).
12403 (child_resume): consider sig argument passed to decide if
12404 the exception should be passed to debuggee or not.
12405
12406 2002-02-05 Michael Snyder <msnyder@redhat.com>
12407
12408 * regcache.c (fetch_register): Call target_fetch_register
12409 only if we don't call FETCH_PSEUDO_REGISTER.
12410 (store_register): Call target_store_register only if we
12411 don't call STORE_PSEUDO_REGISTER.
12412
12413 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12414
12415 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12416 ELF_MAKE_MSYMBOL_SPECIAL.
12417 * gdbarch.c, gdbarch.h: Regenerate.
12418 * arch-utils.c (default_make_msymbol_special): New function.
12419 * arch-utils.h (default_make_msymbol_special): Export.
12420 * elfread.c (elf_symtab_read): Compile use of
12421 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12422 multiarched.
12423 * coffread.c (coff_symtab_read): Ditto, for
12424 COFF_MAKE_MSYMBOL_SPECIAL.
12425
12426 2002-02-05 Jim Blandy <jimb@redhat.com>
12427
12428 * solib-svr4.c (svr4_truncate_ptr): New function.
12429 (svr4_relocate_section_addresses): Do the address arithmetic with
12430 the appropriate truncation for target addresses, even when
12431 CORE_ADDR is larger than a target address.
12432
12433 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12434
12435 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12436 to (int *).
12437
12438 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12439
12440 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12441 code.
12442
12443 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12446
12447 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12448
12449 * gdbserver/linux-low.c: Remove unused include files.
12450
12451 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12452
12453 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12454 (read_inferior_memory): Use it.
12455 (write_inferior_memory): Likewise.
12456
12457 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12458
12459 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12460 grubbing through sys_errlist.
12461
12462 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12463
12464 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12465
12466 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12467 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12468
12469 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12470
12471 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12472 (do_sfunc, set_cmd_sfunc): New functions.
12473
12474 * command.h (struct cmd_list_element): Add field func.
12475 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12476 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12477 * cli/cli-decode.h: Ditto.
12478
12479 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12480 (help_all, help_cmd_list): Ditto.
12481 (find_cmd, complete_on_cmdlist): Ditto.
12482 * top.c (execute_command): Ditto.
12483
12484 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12485 function.sfunc.
12486
12487 * infcmd.c (notice_args_read): Fix function signature.
12488
12489 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12490 * cli/cli-decode.c (add_set_cmd): Ditto.
12491 * utils.c (initialize_utils): Ditto.
12492 * maint.c (_initialize_maint_cmds): Ditto.
12493 * infrun.c (_initialize_infrun): Ditto.
12494 * demangle.c (_initialize_demangler): Ditto.
12495 * remote.c (add_packet_config_cmd): Ditto.
12496 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12497 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12498 * proc-api.c (_initialize_proc_api): Ditto.
12499 * kod.c (_initialize_kod): Ditto.
12500 * valprint.c (_initialize_valprint): Ditto.
12501 * top.c (init_main): Ditto.
12502 * infcmd.c (_initialize_infcmd): Ditto.
12503 * corefile.c (_initialize_core): Ditto.
12504 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12505 * arch-utils.c (initialize_current_architecture): Ditto.
12506 (_initialize_gdbarch_utils): Ditto.
12507 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12508
12509 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12510 * wince.c (_initialize_inftarg): Ditto.
12511 * symfile.c (_initialize_symfile): Ditto.
12512 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12513 * language.c (_initialize_language): Ditto.
12514 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12515
12516 2002-02-04 Michael Snyder <msnyder@redhat.com>
12517
12518 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12519
12520 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12521
12522 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12523 Add rules for building the register data files.
12524
12525 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * regformats/regdat.sh: Add braces to the definition of
12528 expedite_regs_${arch}.
12529
12530 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12531
12532 * regformats/regdef.h (struct reg): Add comment describing the
12533 requirements for offset and size fields.
12534
12535 2002-02-04 Andreas Schwab <schwab@suse.de>
12536
12537 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12538 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12539
12540 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12541
12542 * gdbarch.sh (copyright): Update years in generated header.
12543 (SMASH_TEXT_ADDRESS): Add rule.
12544 * gdbarch.h, gdbarch.c: Re-generate.
12545 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12546 * dbxread.c: Likewise.
12547 * dwarfread.c: Likewise.
12548 * elfread.c: Likewise.
12549 * somread.c: Likewise.
12550
12551 * arm-tdep.c (arm_smash_text_address): New function.
12552 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12553
12554 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12555
12556 Add support for hardware watchpoints on win32 native.
12557 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12558 CONTEXT_DEBUG_REGISTERS.
12559 (dr variable): New variable. Static array containing a local copy
12560 of debug registers.
12561 (debug_registers_changed): New variable. Reflects when debug registers
12562 are changed and need to be written to inferior.
12563 (debug_registers_used): New variable. Reflects when any debug register
12564 was set, used when new threads are created.
12565 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12566 i386-nat code.
12567 (thread_rec): Set dr array if id is the thread of current_event .
12568 (child_continue, child_resume): Change the debug registers for all
12569 threads if debug_registers_changed.
12570 (child_add_thread): Change the debug registers if debug_registers_used.
12571 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12572 Link nm.h to new nm-cygwin.h file.
12573 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12574 of hardware registers.
12575
12576 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12577
12578 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12579 Restore behavour broken by 2002-01-20 Andrew Cagney
12580 <ac131313@redhat.com> IEEE_FLOAT removal.
12581
12582 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12583
12584 * c-valprint.c (c_val_print): Pass a proper valaddr to
12585 cp_print_class_method.
12586 * valops.c (search_struct_method): If there is only one method
12587 and args is NULL, return that method.
12588
12589 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12590
12591 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12592 accessing tag_name directly.
12593
12594 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12595
12596 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12597 of accessing tag_name directly.
12598
12599 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12600
12601 PR gdb/280
12602 * gdbtypes.c (replace_type): New function.
12603 * gdbtypes.h (replace_type): Add prototype.
12604 * stabsread.c (read_type): Use replace_type.
12605
12606 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12607
12608 * Makefile.in (memattr.o): Add missing dependencies rule.
12609
12610 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12611
12612 * breakpoint.c (break_at_finish_command): Really export.
12613 (break_at_finish_at_depth_command): Ditto.
12614 (tbreak_at_finish_command): Ditto.
12615 * hppa-tdep.c: Include completer.h.
12616 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12617 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12618
12619 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12620
12621 * utils.c (do_write): New function.
12622 (error_stream): Rewrite combining the code from error_begin and
12623 verror.
12624 (verror): Rewrite using error_stream.
12625 (error_begin): Delete function.
12626
12627 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12628
12629 * utils.c (error_begin): Make static.
12630 * defs.h (error_begin): Delete declaration.
12631
12632 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12633 (decode_line_1): Use cplusplus_error instead of error_begin,
12634 cplusplus_hint and return_to_top_level.
12635 * coffread.c (coff_symfile_read): Use error instead of error_begin
12636 and return_to_top_level.
12637 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12638
12639 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12640
12641 * language.h (type_error, range_error): Make string parameter
12642 constant.
12643 * language.c (warning_pre_print): Delete extern declaration.
12644 * dwarfread.c (warning_pre_print): Ditto.
12645 * language.c (type_error, range_error): Rewrite to use verror and
12646 vwarning instead of warning_begin.
12647
12648 2002-02-01 Michael Snyder <msnyder@redhat.com>
12649
12650 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12651 (set_ignore_count): Move misplaced comment back where it belongs.
12652
12653 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12654
12655 * command.h (NO_FUNCTION): Delete macro.
12656 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12657 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12658 * tracepoint.c (_initialize_tracepoint): Ditto.
12659 * cli/cli-decode.c (add_set_cmd): Ditto.
12660 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12661
12662 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12663
12664 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12665 Update ``this'' pointer when calling virtual functions.
12666
12667 2002-02-01 Michael Snyder <msnyder@redhat.com>
12668
12669 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12670 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12671
12672 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12673
12674 * regformats/reg-arm.dat: New file.
12675 * regformats/reg-i386.dat: New file.
12676 * regformats/reg-ia64.dat: New file.
12677 * regformats/reg-m68k.dat: New file.
12678 * regformats/reg-mips.dat: New file.
12679 * regformats/reg-ppc.dat: New file.
12680 * regformats/reg-sh.dat: New file.
12681 * regformats/regdef.h: New file.
12682 * regformats/regdat.sh: New file.
12683
12684 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12685
12686 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12687 (arm_frame_args_address, arm_frame_locals_address): New functions.
12688 (arm_frame_num_args): New function.
12689 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12690 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12691 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12692
12693 2002-01-31 Michael Snyder <msnyder@redhat.com>
12694
12695 * breakpoint.c (break_at_finish_command): Export.
12696 (break_at_finish_at_depth_command): Export.
12697 (tbreak_at_finish_command): Export.
12698 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12699 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12700 "txbreak" commands, which are HPPA specific.
12701
12702 * printcmd.c (disassemble_command): Remove an ancient
12703 artifact of an old merge.
12704
12705 * symfile.h (enum overlay_debugging_state):
12706 Define enum constant values for overlay mode.
12707 * symfile.c (overlay_debugging): Use enums instead of literals.
12708 (overlay_is_mapped, overlay_auto_command,
12709 overlay_manual_command): Ditto.
12710
12711 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12712 breakpoint_here_p, breakpoint_inserted_here_p,
12713 breakpoint_thread_match, bpstat_stop_status,
12714 describe_other_breakpoints, check_duplicates, clear_command):
12715 Coding standard fixes.
12716
12717 * target.c (target_xfer_memory): Add spaces, coding standard.
12718 (do_xfer_memory): Add missing line to trust-readonly
12719 code: check bfd SEC_READONLY flag for section.
12720
12721 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12722
12723 * PROBLEMS: Fix typo, 5.1->5.1.1.
12724
12725 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12726
12727 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12728 data symbols, since we search based on textlow and texthigh.
12729 (find_pc_sect_symtab): Likewise.
12730
12731 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12732
12733 * defs.h (vwarning): Declare.
12734 * utils.c (vwarning): New function.
12735 (warning): Call vwarning.
12736 (warning_begin): Delete function.
12737
12738 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12739 the warning message.
12740 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12741 warning_begin.
12742
12743 2002-01-30 Michael Snyder <msnyder@redhat.com>
12744
12745 * NEWS: Mention "set trust-readonly-sections" command.
12746 Mention generate-core-file command.
12747
12748 2002-01-15 Michael Snyder <msnyder@redhat.com>
12749
12750 * target.c: New command, "set trust-readonly-sections on".
12751 (do_xfer_memory): Honor the suggestion to trust readonly sections
12752 by reading them from the object file instead of from the target.
12753 (initialize_targets): Register command "set trust-readonly-sections".
12754
12755 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12756
12757 * parse.c (target_map_name_to_register): Simplify, search regs and
12758 pseudo-regs using a single loop.
12759
12760 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12761
12762 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12763
12764 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12765
12766 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12767 * config/i386/i386v42mp.mh: Add i387-nat.o .
12768 * i386v4-nat.c: Include i387-nat.h.
12769 (supply_fpregset): Use i387_supply_fsave.
12770 (fill_fpregset): Use i387_fill_fsave.
12771
12772 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12773
12774 * arm-tdep.c (arm_call_dummy_words): Define.
12775 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12776 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12777 (CALL_DUMMY_WORDS): Define.
12778 (arm_call_dummy_words): Declare.
12779 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12780 (arm_linux_call_dummy_words): Declare.
12781
12782 2002-01-30 Andreas Schwab <schwab@suse.de>
12783
12784 * m68klinux-nat.c: Fix last change to use regcache_collect
12785 instead of referencing registers[] directly.
12786
12787 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12788
12789 * parse.c (target_map_name_to_register): Delete code wrapped in
12790 #ifdef REGISTER_NAME_ALIAS_HOOK.
12791
12792 2002-01-28 Michael Snyder <msnyder@redhat.com>
12793
12794 * regcache.c (legacy_read_register_gen): Need to be able to
12795 read pseudo-register as well as real register.
12796 (legacy_write_register_gen): Ditto.
12797
12798 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12799
12800 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12801 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12802 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12803 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12804 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12805 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12806 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12807 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12808 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12809 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12810 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12811 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12812 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12813 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12814 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12815 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12816 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12817 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12818 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12819 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12820
12821 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12822
12823 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12824 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12825 (initialize_current_architecture): Update target_byte_order using
12826 information from BFD.
12827 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12828 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12829
12830 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12831
12832 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12833 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12834
12835 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12836 #ifdef INVALID_FLOAT.
12837 * infcmd.c (do_registers_info): Ditto.
12838 * values.c (unpack_double): Ditto. Add comment.
12839
12840 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12841 already commented out.
12842
12843 2002-01-26 Andreas Schwab <schwab@suse.de>
12844
12845 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12846 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12847 registers and add support for PTRACE_GETREGS.
12848
12849 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12850
12851 GDB 5.1.1 released from 5.1 branch.
12852 * NEWS: Add 5.1.1 news.
12853 * README: Sync with 5.1 branch.
12854
12855 2002-01-23 Fred Fish <fnf@redhat.com>
12856
12857 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12858 stabstring on initial malloc. Reallocing will copy it for us,
12859 if necessary.
12860
12861 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12862
12863 * Makefile.in (hpread_h): Delete.
12864 (HFILES_NO_SRCDIR): Remove hpread.h.
12865 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12866 (hpread.o): Update dependencies.
12867 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12868
12869 * hp-psymtab-read.c: Remove file.
12870 * hp-symtab-read.c: Remove file.
12871 * hpread.h: Remove file.
12872
12873 * hpread.c: Merge all contents of hp-psymtab-read.c,
12874 hp-symtab-read.c and hpread.h into this file, as it was prior to
12875 January 1999.
12876
12877 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12878 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12879 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12880 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12881
12882 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12883
12884 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12885 fill_gregset): Call gdbarch_tdep() just once, assign result to
12886 variable and use that, instead of calling the function several
12887 times.
12888
12889 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12890
12891 * configure.host: Accept sparcv9 as alias for sparc64.
12892 * configure.tgt: Likewise.
12893
12894 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12895
12896 * solib-aix5.c (build_so_list_from_mapfile)
12897 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12898 arguments is not reversed.
12899 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12900 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12901
12902 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12903
12904 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12905 modified version of obsolete sh_fetch_pseudo_register.
12906 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12907 (sh4_register_read): New function.
12908 (sh_pseudo_register_write): New function. Renamed and modified
12909 version of obsolete sh_store_pseudo_register.
12910 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12911 (sh4_register_write): New function.
12912 (sh_gdbarch_init): Remove setting of gdbarch function
12913 fetch_pseudo_register and store_pseudo_register. Remove setting of
12914 register_convert_to_raw, register_convert_to_virtual,
12915 register_convertible.
12916 (sh_sh4_register_convertible): Delete. No longer needed. All is
12917 taken care by architecture specific functions
12918 register_read/register_write.
12919 (sh_sh4_register_convert_to_virtual): Make static.
12920 (sh_sh4_register_convert_to_raw): Ditto.
12921
12922 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12923
12924 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12925 (floatformat_is_nan, floatformat_mantissa): Ditto.
12926
12927 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12928 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12929 builtin_type_ieee_double_little,
12930 builtin_type_ieee_double_littlebyte_bigword,
12931 builtin_type_m68881_ext, builtin_type_i960_ext,
12932 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12933 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12934 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12935 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12936
12937 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12938
12939 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12940 parameter. Set frameless flag if it exists and depended of
12941 whether the scanned function is frameless or not.
12942 (xstormy16_skip_prologue): If function is frameless, return
12943 result of xstormy16_scan_prologue().
12944 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12945 call.
12946
12947 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12948
12949 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12950 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12951 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12952 sh_sh4_register_byte, sh_sh4_register_raw_size,
12953 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12954 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12955 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12956 sh_store_pseudo_register, sh_do_pseudo_register): Call
12957 gdbarch_tdep() just once, assign result to variable and use that,
12958 instead of calling the function several times.
12959
12960 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12961
12962 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12963 macros instead of LAST_FPU_CTRL_REGNUM.
12964 (store_register): Likewise.
12965
12966 2002-01-21 Jim Blandy <jimb@redhat.com>
12967
12968 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12969 is up-to-date before running the program, not just when a program
12970 exits.
12971
12972 2002-01-21 Fred Fish <fnf@redhat.com>
12973
12974 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12975 when we have found all instructions we are looking for.
12976
12977 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12978
12979 * arm-tdep.c (arm_register_name): New function.
12980 (arm_registers_names): Make static.
12981 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12982 (arm_register_name): Declare.
12983 (REGISTER_NAME): Use it.
12984
12985 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12986 Kevin Buettner <kevinb@redhat.com>
12987
12988 Convert arm targets to new FRAME interface.
12989 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12990 (arm_frame_find_save_regs): Delete.
12991 (arm_frame_init_saved_regs): New.
12992 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12993 Allocate extra_info as required. Convert all uses of fsr.regs
12994 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12995 to use extra_info.
12996 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12997 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12998 (check_prologue_cache, save_prologue_cache): Likewise.
12999 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13000 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13001 (FRAME_FIND_SAVED_REGS): Delete.
13002 (arm_frame_find_saved_regs): Delete prototype.
13003 (arm_frame_init_saved_regs): New prototype.
13004 (FRAME_INIT_SAVED_REGS): Define.
13005
13006 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13007
13008 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13009
13010 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13011
13012 From Jeff Law <law@redhat.com>:
13013 * infttrace.c: Include <sys/pstat.h>.
13014 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13015 exec file if the ttrace equivalent fails.
13016
13017 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13018
13019 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13020 (closeLogFile): Ditto.
13021
13022 2002-01-20 Michael Chastain <mec@shout.net>
13023
13024 * top.c (print_gdb_version): Bump copyright year to 2002.
13025
13026 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13027
13028 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13029 Zannoni and Eli Zaretskii.
13030
13031 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13032
13033 * buildsym.c: Update copyright years.
13034 * c-typeprint.c: Likewise.
13035 * dwarf2read.c: Likewise.
13036 * f-typeprint.c: Likewise.
13037 * gdbtypes.c: Likewise.
13038 * gdbtypes.h: Likewise.
13039 * hp-symtab-read.c: Likewise.
13040 * hpread.c: Likewise.
13041 * mdebugread.c: Likewise.
13042 * p-typeprint.c: Likewise.
13043
13044 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13045
13046 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13047 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13048 byte-order selectable.
13049 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13050 * arch-utils.c: Ditto.
13051 (set_endian): Ditto.
13052 (set_endian_from_file): Ditto.
13053 * gdbserver/low-sim.c (create_inferior): Ditto.
13054 * gdbarch.sh: Ditto.
13055 * gdbarch.h: Re-generate.
13056 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13057 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13058 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13059 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13060 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13061 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13062 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13063 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13064 macro definition.
13065 * config/mips/tm-wince.h: Remove #undef of macro
13066 TARGET_BYTE_ORDER_SELECTABLE.
13067 * config/sh/tm-wince.h: Ditto.
13068
13069 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13070
13071 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13072 member function fields. Add accessor macro
13073 TYPE_FN_FIELD_ARTIFICIAL.
13074 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13075 * c-typeprint.c (c_type_print_base): Skip artificial member
13076 functions.
13077
13078 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13079
13080 * f-typeprint.c: Delete unused function f_type_print_args.
13081 * p-typeprint.c: Delete unused function pascal_type_print_args.
13082
13083 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13084
13085 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13086 comment. Add ``artificial'' to ``union field_location''.
13087
13088 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13089
13090 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13091 * mdebugread.c (parse_symbol): Likewise.
13092 * stabsread.c (define_symbol): Likewise.
13093 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13094 initializing TYPE_FIELD_BITPOS to n (obsolete).
13095 (hpread_doc_function_type): Likewise.
13096 * hpread.c (hpread_function_type): Likewise.
13097
13098 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13099
13100 * configure.in (host_makefile_frag): Only require a host makefile
13101 fragment when a native build.
13102 * configure: Re-generate.
13103
13104 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13105
13106 * doublest.h (floatformat_from_type): Declare.
13107 * doublest.c (floatformat_from_type): New function.
13108 (convert_typed_floating): Use.
13109
13110 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13111 call to function floatformat_from_type.
13112
13113 * gdbarch.sh (IEEE_FLOAT): Delete.
13114 * gdbarch.h, gdbarch.c: Re-generate.
13115 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13116 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13117 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13118 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13119 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13120 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13121 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13122 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13123 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13124 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13125 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13126 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13127
13128 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13129 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13130 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13131 * sh-tdep.c (sh_gdbarch_init): Ditto.
13132 * mips-tdep.c (mips_gdbarch_init): Ditto.
13133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13134 * cris-tdep.c (cris_gdbarch_init): Ditto.
13135
13136 2002-01-20 Jiri Smid <smid@suse.cz>
13137
13138 * configure.host, configure.tgt: Support x86-64.
13139 * NEWS: Note new target x86-64.
13140
13141 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13142 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13143 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13144 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13145 x86-64-linux-nat.o): Fix dependencies.
13146
13147 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13148
13149 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13150 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13151 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13152 * config/sparc/xm-sun4os4.h: Delete file.
13153 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13154
13155 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13156
13157 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13158 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13159 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13160 * config/i386/i386lynx.mh (XM_FILE): Delete.
13161 * config/rs6000/xm-rs6000ly.h: Delete file.
13162 * config/sparc/xm-sparclynx.h: Delete file.
13163 * config/m68k/xm-m68klynx.h: Delete file.
13164 * config/i386/xm-i386lynx.h: Delete file.
13165 * config/xm-lynx.h: Delete file.
13166 * config/djgpp/fnchange.lst: Update.
13167
13168 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13169
13170 * alpha-tdep.c (alpha_register_byte): New function.
13171 (alpha_register_raw_size): Ditto.
13172 (alpha_register_virtual_size): Ditto.
13173 (alpha_skip_prologue_internal): Renamed from
13174 alpha_skip_prologue.
13175 (alpha_skip_prologue): New version that calls
13176 alpha_skip_prologue_internal.
13177 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13178 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13179 second argument from alpha_skip_prologue.
13180 (REGISTER_BYTE): Use alpha_register_byte.
13181 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13182 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13183 (FRAMELESS_FUNCTION_INVOCATION): Use
13184 generic_frameless_function_invocation_not.
13185 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13186 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13187
13188 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13189
13190 * config/mips/xm-news-mips.h: Delete file.
13191 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13192
13193 * config/m88k/xm-m88k.h: Delete file.
13194 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13195 * config/m88k/xm-delta88v4.h: Ditto.
13196 * config/m88k/xm-delta88.h: Ditto.
13197
13198 * config/alpha/xm-fbsd.h: Delete file.
13199 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13200
13201 * config/sparc/xm-sparc.h: Delete file.
13202 * Makefile.in (xm-sun4os4.h): Delete dependency.
13203 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13204 * config/sparc/xm-sun4os4.h: Ditto.
13205 * config/sparc/xm-linux.h: Ditto.
13206
13207 * config/i386/xm-windows.h: Delete file.
13208
13209 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13210
13211 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13212 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13213
13214 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13215
13216 * alpha-tdep.c (alpha_call_dummy_words): New.
13217 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13218 (CALL_DUMMY_P): Define.
13219 (CALL_DUMMY_WORDS): Define.
13220 (SIZEOF_CALL_DUMMY_WORDS): Define.
13221
13222 2002-01-19 Per Bothner <per@bothner.com>
13223
13224 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13225 isn't NULL, which can happen with some gcj-3.x-produced code.
13226
13227 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13228
13229 * alpha-tdep.c (alpha_register_virtual_type): New function.
13230 (alpha_init_frame_pc_first): Ditto.
13231 (alpha_fix_call_dummy): Ditto.
13232 (alpha_store_struct_return): Ditto.
13233 (alpha_extract_struct_value_address): Ditto.
13234 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13235 alpha_register_virtual_type.
13236 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13237 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13238 alpha_extract_struct_value_address.
13239 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13240 (INIT_FRAME_PC): Use init_frame_pc_noop.
13241 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13242
13243 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13244
13245 * i386gnu-nat.c: Include "i386-tdep.h".
13246 (fetch_fpregs): Simplify code dealing with uninitialized floating
13247 point states such that it doesn't require FP7_REGNUM.
13248
13249 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13250
13251 * alpha-tdep.c (frame_extra_info): New.
13252 (alpha_find_saved_regs): Make static. Use
13253 frame->extra_info.
13254 (alpha_frame_init_saved_regs): New function.
13255 (alpha_frame_saved_pc): Use frame->extra_info.
13256 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13257 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13258 (init_extra_frame_info): Rename to...
13259 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13260 (alpha_print_extra_frame_info): New function.
13261 (alpha_frame_locals_address): Ditto.
13262 (alpha_frame_args_address): Ditto.
13263 (alpha_pop_frame): Use frame->extra_info.
13264 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13265 alpha_frame_args_address.
13266 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13267 (alpha_find_saved_regs): Remove prototype.
13268 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13269 (EXTRA_FRAME_INFO): Remove.
13270 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13271 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13272
13273 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13274
13275 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13276 (alpha_cannot_fetch_register): Ditto.
13277 (alpha_cannot_store_register): Ditto.
13278 (alpha_register_convertible): Ditto.
13279 (alpha_use_struct_convention): Ditto.
13280 * config/alpha/tm-alpha.h: Update copyright years.
13281 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13282 (INNER_THAN): Use core_addr_lessthan.
13283 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13284 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13285 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13286 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13287 (FRAME_CHAIN): Remove unnecessary cast.
13288
13289 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13290
13291 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13292 obsolete.
13293
13294 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13295
13296 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13297 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13298 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13299 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13300 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13301 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13302 * x86-64-linux-nat.c: Ditto.
13303
13304 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13305
13306 * alpha-tdep.c (alpha_register_name): New function.
13307 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13308 (REGISTER_NAME): Define.
13309
13310 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13311
13312 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13313
13314 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13315
13316 * alpha-tdep.c: Update copyright years.
13317 (alpha_next_pc): New function.
13318 (alpha_software_single_step): Ditto.
13319 * config/alpha/tm-alpha.h: Add prototype for
13320 alpha_software_single_step.
13321
13322 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13323
13324 * alphabsd-nat.c: Update copyright years.
13325 (fill_gregset): Use regcache_collect.
13326 (fill_fpregset): Likewise.
13327 (fetch_inferior_registers): Only fetch integer registers
13328 if requested to do so.
13329 (store_inferior_registers): Only store integer registers
13330 if requested to do so.
13331
13332 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13333
13334 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13335 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13336 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13337 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13338 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13339 * config/arm/linux.mh (XDEPFILES): Delete.
13340 * config/arm/nbsd.mh (XDEPFILES): Delete.
13341 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13342 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13343 * config/i386/i386m3.mh (XDEPFILES): Delete.
13344 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13345 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13346 * config/i386/fbsd.mh (XDEPFILES): Delete.
13347 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13348 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13349 * config/i386/i386v4.mh (XDEPFILES): Delete.
13350 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13351 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13352 * config/i386/i386aix.mh (XDEPFILES): Delete.
13353 * config/i386/go32.mh (XDEPFILES): Delete.
13354 * config/i386/cygwin.mh (XDEPFILES): Delete.
13355 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13356 * config/i386/i386mach.mh (XDEPFILES): Delete.
13357 * config/i386/i386v32.mh (XDEPFILES): Delete.
13358 * config/i386/linux.mh (XDEPFILES): Delete.
13359 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13360 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13361 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13362 * config/i386/i386sco.mh (XDEPFILES): Delete.
13363 * config/i386/i386v.mh (XDEPFILES): Delete.
13364 * config/i386/nbsd.mh (XDEPFILES): Delete.
13365 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13366 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13367 * config/i386/symmetry.mh (XDEPFILES): Delete.
13368 * config/i386/obsd.mh (XDEPFILES): Delete.
13369 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13370 * config/ia64/linux.mh (XDEPFILES): Delete.
13371 * config/ia64/aix.mh (XDEPFILES): Delete.
13372 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13373 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13374 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13375 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13376 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13377 * config/m68k/linux.mh (XDEPFILES): Delete.
13378 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13379 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13380 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13381 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13382 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13383 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13384 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13385 * config/m88k/delta88.mh (XDEPFILES): Delete.
13386 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13387 * config/m88k/m88k.mh (XDEPFILES): Delete.
13388 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13389 * config/mips/linux.mh (XDEPFILES): Delete.
13390 * config/mips/irix6.mh (XDEPFILES): Delete.
13391 * config/mips/irix5.mh (XDEPFILES): Delete.
13392 * config/mips/irix4.mh (XDEPFILES): Delete.
13393 * config/mips/irix3.mh (XDEPFILES): Delete.
13394 * config/mips/decstation.mh (XDEPFILES): Delete.
13395 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13396 (NATDEPFILES): Move core-aout.o to here.
13397 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13398 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13399 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13400 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13401 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13402 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13403 * config/pa/hpux11.mh (XDEPFILES): Delete.
13404 * config/powerpc/aix.mh (XDEPFILES): Delete.
13405 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13406 * config/powerpc/linux.mh (XDEPFILES): Delete.
13407 * config/romp/rtbsd.mh: Rename XDEPFILES.
13408 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13409 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13410 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13411 * config/s390/s390.mh (XDEPFILES): Delete.
13412 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13413 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13414 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13415 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13416 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13417 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13418 * config/sparc/linux.mh (XDEPFILES): Delete.
13419 * config/vax/vaxult.mh (XDEPFILES): Delete.
13420 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13421 * Makefile.in (DEPFILES): Remove XDEPFILES.
13422
13423 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13424
13425 * utils.c (internal_verror): Fix comments, default is yes not no.
13426 Update queries to match. Default to quit and dump core.
13427
13428 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13429
13430 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13431 copyright.
13432 * defs.h, event-top.c, gdbcmd.h: Ditto.
13433 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13434 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13435 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13436 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13437 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13438 * mi/mi-main.c:Ditto.
13439
13440 * stack.c, symfile.c: Update copyright.
13441
13442 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13443
13444 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13445 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13446 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13447 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13448
13449 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13450
13451 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13452 * gdbserver/low-lynx.c (myattach): Likewise.
13453 * gdbserver/low-nbsd.c (myattach): Likewise.
13454 * gdbserver/low-sim.c (myattach): Likewise.
13455 * gdbserver/low-sparc.c (myattach): Likewise.
13456 * gdbserver/low-sun3.c (myattach): Likewise.
13457
13458 * gdbserver/low-linux.c (myattach): New function.
13459
13460 * gdbserver/server.c (attach_inferior): New function.
13461 (main): Handle "--attach".
13462
13463 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13464
13465 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13466 maintainer.
13467
13468 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13469
13470 * c-typeprint.c (is_type_conversion_operator): Add additional
13471 check for non-conversion operators.
13472
13473 2002-01-15 Michael Snyder <msnyder@redhat.com>
13474
13475 * linux-proc.c: Add "info proc" command, a la procfs.c.
13476 (read_mapping): New function, abstract and re-use code.
13477 (linux_find_memory_regions): Use new func read_mapping.
13478 (linux_info_proc_cmd): New function, implement "info proc".
13479 (_initialize_linux_proc): Add new command "info proc".
13480
13481 2002-01-15 Michael Snyder <msnyder@redhat.com>
13482
13483 * symfile.c (generic_load): Use bfd_map_over_sections method
13484 instead of manipulating bfd structure members directly.
13485 (add_section_size_callback): New function, bfd sections callback
13486 used by generic_load.
13487 (load_sections_callback): New function, bfd sections callback
13488 used by generic_load.
13489
13490 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13491
13492 [Based on work by Jim Blandy]
13493 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13494 (builtin_type_vec128): Export.
13495 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13496 types.
13497 (builtin_type_vec128): New builtin type for 128 bit vector
13498 registers.
13499 (build_gdbtypes): Initialize builtin_type_v16qi and
13500 builtin_type_v8hi. Create the vec128 register builtin type
13501 structure.
13502 (build_builtin_type_vec128): New function.
13503 (_initialize_gdbtypes): Register builtin_type_v16qi and
13504 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13505 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13506 AltiVec register to new builtin type.
13507
13508 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13509
13510 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13511 to make_cv_type.
13512
13513 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13514
13515 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13516 CLEAN_UP_REGISTER_VALUE.
13517 * regcache.c (supply_register): Update only call.
13518
13519 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13520
13521 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13522 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13523 a29k-*-vxworks* targets as obsolete.
13524
13525 2002-01-14 Michael Snyder <msnyder@redhat.com>
13526
13527 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13528 until we can resolve portability issues.
13529 * gregset.h: Remove references to fpxregs.
13530 * gcore.c (gcore_command): Initialize note_sec to NULL.
13531
13532 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13533
13534 * signals.c (target_signal_to_name): Rewrite. Only use
13535 signals[].name when in bounds and non-NULL.
13536
13537 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13538
13539 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13540 * signals.c (target_signal_to_name): Verify that SIG is within the
13541 bounds of the signals array.
13542
13543 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13544
13545 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13546
13547 2002-01-13 Keith Seitz <keiths@redhat.com>
13548
13549 * stack.c (print_frame_info_base): Print the frame's pc
13550 only if when print_frame_info_listing_hook is not defined.
13551
13552 2002-01-13 Keith Seitz <keiths@redhat.com>
13553
13554 * varobj.c (varobj_set_value): Make sure that there were no
13555 errors evaluating the object before attempting to set its
13556 value.
13557 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13558 so this offset adjustment is no longer necessary.
13559 (create_child): Don't set the error flag if the child is
13560 a CPLUS_FAKE_CHILD.
13561 (value_of_child): If value_fetch_lazy fails, return NULL
13562 so that callers will be notified that an error occurred.
13563 (c_value_of_variable): Delay check of variable's validity
13564 until later. We actually want all structs and unions to have
13565 the value "{...}".
13566 Do not return "???" for variables which could not be evaluated.
13567 This error condition must be returned to the caller so that it
13568 can get the error condition from gdb.
13569 (cplus_name_of_child): Adjust index for vptr before figuring
13570 out the name of the child.
13571 (cplus_value_of_child): If a child's (real) parent is not valid,
13572 don't even bother trying to give a value for it. Just return
13573 an error. Change all instances in this function.
13574 (cplus_type_of_child): If our parent is one of the "fake"
13575 parents, we need to get at the type of the real parent, and
13576 derive the child's true type using this information.
13577
13578 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13579
13580 From 2002-01-09 John Marshall <johnm@falch.net>:
13581 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13582 sources.redhat.com, and tweak some related URLs which had
13583 suffered from linkrot.
13584
13585 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13586
13587 From Jeff law:
13588 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13589 structures passed in registers.
13590
13591 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13592
13593 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13594 white space which prevented compilation. Reported by DSK
13595 <dsk@student.unsw.edu.au>.
13596
13597 2002-01-11 Michael Snyder <msnyder@redhat.com>
13598
13599 * symfile.c (build_section_addr_info_from_section_tab):
13600 Use bfd access method instead of manipulating bfd directly.
13601 (syms_from_objfile): Ditto.
13602 (simple_overlay_update_1): Ditto.
13603 (simple_overlay_update): Ditto.
13604 (generic_load): Ditto.
13605 (overlay_unmapped_address): FIXME comment, bfd access methods.
13606 (sections_overlap): FIXME comment, bfd access methods.
13607 (pc_in_mapped_range): FIXME comment, bfd access methods.
13608 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13609 (section_is_mapped): FIXME comment, bfd access methods.
13610 (section_is_overlay): FIXME comment, bfd access methods.
13611
13612 * symfile.c (generic_load): Whitespace and long line cleanups.
13613 Remove duplicate variable, change several local variables to
13614 more appropriate data types.
13615 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13616
13617 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13618
13619 From Peter Schauer:
13620 * language.c (longest_local_hex_string_custom): Use phex_nz to
13621 convert NUM to a hex string.
13622
13623 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13624
13625 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13626 the function.
13627 Update Copyright year.
13628
13629 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13630
13631 * language.c (longest_raw_hex_string): Delete unused function.
13632
13633 2002-01-11 Petr Sorfa <petrs@caldera.com>
13634
13635 * MAINTAINERS (write-after-approval): Add myself.
13636 * dwarf2read.c (read_tag_string_type): Handling of
13637 DW_AT_byte_size.
13638 (read_tag_string_type): FORTRAN fix to prevent propagation of
13639 first string size.
13640 (set_cu_language): Handling of DW_LANG_Fortran95
13641
13642 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13643
13644 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13645 GETPID(inferior_ptid).
13646 (store_inferior_registers): Likewise.
13647
13648 2002-01-10 Jason Merrill <jason@redhat.com>
13649
13650 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13651 Fix DW_OP_minus.
13652
13653 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13654
13655 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13656 and bfd/elf32-sh-nbsd.c.
13657
13658 2002-01-10 Michael Snyder <msnyder@redhat.com>
13659
13660 * NEWS: Mention --pid and corefile/proc-id behavior change.
13661
13662 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13663 * gcore.c: Include cli/cli-decode.h instead of command.h.
13664
13665 * main.c (captured_main): Add new command line option "--pid".
13666 If the second command line argument (following the symbol-file)
13667 begins with a digit, try to attach to it before trying to open
13668 it as a corefile.
13669 (print_gdb_help): Document the "--pid" argument.
13670
13671 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13672
13673 * completer.c (command_completer): New function.
13674
13675 * completer.h <command_completer>: Add prototype.
13676
13677 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13678 completer for the "help" command.
13679
13680 2002-01-09 Jason Merrill <jason@redhat.com>
13681
13682 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13683
13684 2002-01-09 Michael Snyder <msnyder@redhat.com>
13685
13686 * i386-linux-nat.c (fill_fpxregset): Make global.
13687 (store_fpxregset): Ditto.
13688
13689 * gregset.h (gdb_fpxregset_t): Define.
13690 (supply_fpxregset): Prototype.
13691 (fill_fpxregset): Prototype.
13692
13693 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13694
13695 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13696
13697 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13698 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13699 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13700
13701 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13702
13703 * MAINTAINERS: Update target maintainer rules so that any
13704 Maintainer can approve a tested patch for a maintenance-only
13705 target.
13706
13707 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13708
13709 * MAINTAINERS (write-after-approval): Add myself.
13710
13711 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13712 IN_SIGTRAMP.
13713
13714 2002-01-08 Michael Snyder <msnyder@redhat.com>
13715
13716 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13717 real name of the executable, rather than the /proc name.
13718
13719 2002-01-03 Michael Snyder <msnyder@redhat.com>
13720
13721 Implement a "generate-core-file" command in gdb, save target state.
13722 * gcore.c: New file. Implement new command 'generate-core-file'.
13723 Save a corefile image of the current state of the inferior.
13724 * linux-proc.c: Add linux-specific code for saving corefiles.
13725 * target.h (struct target_ops): Add new target vectors for saving
13726 corefiles; to_find_memory_regions and to_make_corefile_notes.
13727 (target_find_memory_regions): New macro.
13728 (target_make_corefile_notes): New macro.
13729 * target.c (update_current_target): Inherit new target methods.
13730 (dummy_find_memory_regions): New place-holder method.
13731 (dummy_make_corefile_notes): New place-holder method.
13732 (init_dummy_target): Initialize new dummy target vectors.
13733 * exec.c (exec_set_find_memory_regions): New function.
13734 Allow the exec_ops vector for memory regions to be taken over.
13735 (exec_make_note_section): New function, target vector method.
13736 * defs.h (exec_set_find_memory_regions): Export prototype.
13737 * procfs.c (proc_find_memory_regions): New function, corefile method.
13738 (procfs_make_note_section): New function, corefile method.
13739 (init_procfs_ops): Set new target vector pointers.
13740 (find_memory_regions_callback): New function.
13741 (procfs_do_thread_registers): New function.
13742 (procfs_corefile_thread_callback): New function.
13743 * sol-thread.c (sol_find_memory_regions): New function.
13744 (sol_make_note_section): New function.
13745 (init_sol_thread_ops): Initialize new target vectors.
13746 * inftarg.c (inftarg_set_find_memory_regions): New function.
13747 Allow to_find_memory_regions vector to be taken over.
13748 (inftarg_set_make_corefile_notes): New function.
13749 Allow to_make_corefile_notes vector to be taken over.
13750 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13751 interface layer if not target_has_execution (may be a corefile).
13752 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13753 * config/sparc/sun4sol2.mh: Ditto.
13754 * config/alpha/alpha-linux.mh: Ditto.
13755 * config/arm/linux.mh: Ditto.
13756 * config/i386/x86-64linux.mh: Ditto.
13757 * config/ia64/linux.mh: Ditto.
13758 * config/m68k/linux.mh: Ditto.
13759 * config/mips/linux.mh: Ditto.
13760 * config/powerpc/linux.mh: Ditto.
13761 * config/sparc/linux.mh: Ditto.
13762
13763 2002-01-07 Michael Snyder <msnyder@redhat.com>
13764
13765 * arm-linux-nat.c: Remove references to regcache.c internal data
13766 (registers[] and register_valid[]).
13767
13768 2002-01-07 Michael Snyder <msnyder@redhat.com>
13769
13770 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13771 so that attaching to a pid will automatically read the process's
13772 symbol file and shlibs.
13773 * Makefile.in: Add rule for linux-proc.o.
13774 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13775 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13776 * config/arm/linux.mh: Ditto.
13777 * config/i386/linux.mh: Ditto.
13778 * config/i386/x86-64linux.mh: Ditto.
13779 * config/ia64/linux.mh: Ditto.
13780 * config/m68k/linux.mh: Ditto.
13781 * config/mips/linux.mh: Ditto.
13782 * config/powerpc/linux.mh: Ditto.
13783 * config/sparc/linux.mh: Ditto.
13784
13785 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13786
13787 * win32-nat.c: Add i386-tdep.h dependency.
13788
13789 2002-01-07 Michael Snyder <msnyder@redhat.com>
13790
13791 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13792 instead of bfd_get_arch_size. Don't bail out just because
13793 there's no exec_bfd.
13794
13795 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13796 * p-valprint.c (pascal_object_print_value): Ditto.
13797 * somread.c (som_symtab_read): Ditto.
13798 * symfile.c (simple_free_overlay_region_table): Ditto.
13799 * valops.c (value_assign): Ditto.
13800
13801 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13802 use tilde_expand and strerror for opening save-tracepoints file.
13803
13804 * thread-db.c (thread_db_new_objfile): Indendation fix.
13805
13806 * infptrace.c (GDB_MAX_ALLOCA): New define.
13807 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13808 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13809 can be overridden with whatever value is appropriate to the host).
13810 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13811 alloca to allocate potentially large buffer.
13812 * rs6000-nat.c (child_xfer_memory): Ditto.
13813 * symm-nat.c (child_xfer_memory): Ditto.
13814 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13815
13816 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13817
13818 From Nick Clifton <nickc@redhat.com>
13819 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13820
13821 2002-01-07 Michael Snyder <msnyder@redhat.com>
13822
13823 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13824 Don't use exec_bfd if it's NULL.
13825
13826 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13827
13828 * valops.c (value_arg_coerce): Fix formatting.
13829
13830 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13831
13832 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13833 * gnu-nat.c: Ditto.
13834
13835 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13836
13837 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13838 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13839 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13840 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13841 z8k-coff have not been multi-arched. Update z8k-coff build
13842 status.
13843
13844 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13845
13846 * MAINTAINERS: Mark a29k target as obsolete.
13847 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13848 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13849 comments.
13850 * NEWS: Note that a29k targets are obsolete.
13851 * a29k-tdep.c: Mark as obsolete.
13852 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13853 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13854 a29k-*-vxworks* targets as obsolete.
13855 * remote-adapt.c: Obsolete.
13856 * remote-eb.c: Obsolete.
13857 * remote-mm.c: Obsolete.
13858 * remote-udi.c: Obsolete.
13859 * config/a29k/a29k-udi.mt: Obsolete.
13860 * config/a29k/a29k.mt: Obsolete.
13861 * config/a29k/tm-a29k.h: Obsolete.
13862 * config/a29k/tm-vx29k.h: Obsolete.
13863 * config/a29k/vx29k.mt: Obsolete.
13864
13865 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13866
13867 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13868 with BFD_ENDIAN_BIG.
13869
13870 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13871
13872 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13873 * configure, config.in: Re-generate.
13874 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13875 * defs.h: Do not include <endian.h>.
13876
13877 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13878
13879 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13880 * config.in: Regenerate.
13881 * configure.in: Update copyright years.
13882 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13883 * configure: Regenerate.
13884 * i386bsd-nat.c: Update copyright years.
13885 (fill_gregset): Use regcache_collect.
13886 (fetch_inferior_registers): Only fetch integer registers
13887 if requested to do so. Add support for XMM registers
13888 using PT_GETXMMREGS.
13889 (store_inferior_registers): Only store integer registers
13890 if requested to do so. Add support for XMM registers
13891 using PT_SETXMMREGS.
13892 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13893 (store_inferior_registers): Remove.
13894 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13895 (fetch_elfcore_registers): New function.
13896 (i386nbsd_elfcore_fns): New.
13897 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13898 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13899 i386bsd-nat.o.
13900 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13901 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13902 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13903 * config/i386/tm-nbsd.h: Update copyright years.
13904 (HAVE_SSE_REGS): Define.
13905 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13906 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13907 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13908 (SIGCONTEXT_PC_OFFSET): Remove.
13909 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13910
13911 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13912
13913 * configure.tgt: Remove powerpc-*-macos* target.
13914 * config/m68k/xm-mpw.h: Delete file.
13915 * config/xm-mpw.h: Delete file.
13916 * ser-mac.c: Delete file.
13917 * mpw-make.sed: Delete file.
13918 * mpw-config.in: Delete file.
13919 * mac-xdep.c: Delete file.
13920 * mac-gdb.r: Delete file.
13921 * mac-defs.h: Delete file.
13922 * mac-nat.c: Delete file.
13923 * config/powerpc/macos.mh: Delete file.
13924 * config/powerpc/macos.mt: Delete file.
13925 * config/powerpc/nm-macos.h: Delete file.
13926 * config/powerpc/tm-macos.h: Delete file.
13927 * source.c (openp, open_source_file): Remove obsolete code.
13928 * top.c (gdb_readline): Ditto.
13929 * utils.c (query): Ditto.
13930 * event-top.c (display_gdb_prompt): Ditto.
13931 * Makefile.in (ser-mac.o): Delete obsolete target.
13932 * NEWS: Update.
13933
13934 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13935
13936 * defs.h (BIG_ENDIAN): Delete macro definition.
13937 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13938 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13939 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13940 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13941 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13942 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13943 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13944 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13945 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13946 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13947 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13948 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13949 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13950 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13951 * gdbarch.c: Re-generate.
13952
13953 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13954
13955 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13956 for core files.
13957
13958 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13959
13960 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13961
13962 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13963
13964 * value.h (value_ptr): Delete typedef.
13965
13966 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13967
13968 * i386nbsd-nat.c: Update copyright years.
13969 Include i386-tdep.h.
13970
13971 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13972
13973 * stabsread.c: Update copyright years.
13974
13975 From Debashis Mahata <debashis.mahata@wipro.com>:
13976 (read_struct_fields): Deal with Sun C compiler erroneous stab
13977 output for structs and unions.
13978 Fix PR gdb/269.
13979
13980 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13981
13982 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13983 prototype.
13984
13985 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13986
13987 * cp-abi.c: Fix whitespace.
13988 (baseclass_offset): New wrapper function.
13989 * cp-abi.h (baseclass_offset): Add prototype.
13990 (struct cp_abi_ops): Add baseclass_offset pointer.
13991
13992 * valops.c (vb_match): Move to...
13993 * gnu-v2-abi.c (vb_match): here.
13994 * valops.c (baseclass_offset): Move to...
13995 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13996
13997 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13998
13999 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14000 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14001 * hpacc-abi.c (init_hpacc_ops): Likewise.
14002
14003 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14004
14005 * valops.c (find_overload_match): Accept obj as a
14006 reference parameter. Update it before returning.
14007 * value.h (find_overload_match): Update prototype.
14008 * eval.c (evaluate_subexp_standard): Pass object to
14009 find_overload_match by reference.
14010
14011 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14012
14013 * valarith.c: Replace value_ptr with struct value pointer. Remove
14014 register attribute from value declarations.
14015 * valops.c: Ditto.
14016 * value.h: Ditto.
14017 * scm-lang.c (scm_lookup_name): Ditto.
14018
14019 2002-01-03 Michael Snyder <msnyder@redhat.com>
14020
14021 Abstract the functionality of iterating over mapped memory
14022 regions into a general purpose iterator function.
14023 * procfs.c (iterate_over_mappings): New function, general purpose
14024 iterator for memory sections.
14025 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14026 (solib_mappings_callback): New function, callback for above.
14027 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14028 (info_mappings_callback): New function, callback for above.
14029
14030 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14031
14032 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14033
14034 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14035 * i386-tdep.c: Include "elf-bfd.h".
14036 (process_note_abi_tag_sections): New function.
14037 (i386_gdbarch_init): Add code to recognize various OS/ABI
14038 combinations.
14039
14040 * maint.c (_initialize_maint_cmds): Add missing \ in
14041 string-literal.
14042
14043 For older changes see ChangeLog-2001
14044 \f
14045 Local Variables:
14046 mode: change-log
14047 left-margin: 8
14048 fill-column: 74
14049 version-control: never
14050 End:
This page took 0.296105 seconds and 5 git commands to generate.