2002-12-05 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-05 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbthread.h: Include "frame.h".
4 (struct thread_info): Replace step_frame_address with
5 step_frame_id.
6 * inferior.h: Include "frame.h".
7 (step_frame_id): Replace external variable step_frame_address.
8 * gdbthread.h (save_infrun_state): Replace step_frame_address
9 parameter with step_frame_id parameter.
10 (load_infrun_state): Ditto.
11 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
12 * infcmd.c (step_frame_id, step_1, step_once): Update.
13 * thread.c (load_infrun_state, save_infrun_state): Update.
14 * infrun.c (clear_proceed_status, save_inferior_status): Update.
15 (handle_inferior_event, step_over_function): Update.
16 (normal_stop, context_switch, restore_inferior_status): Update.
17 (struct inferior_status): Replace step_frame_address with
18 step_frame_id.
19
20 2002-12-05 David Carlton <carlton@math.stanford.edu>
21
22 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
23 DW_TAG_member as well as a declaration as being a C++ static data
24 member.
25 (read_structure_scope): Combine tests for DW_TAG_member and
26 DW_TAG_variable.
27
28 2002-12-05 David Carlton <carlton@math.stanford.edu>
29
30 * linespec.c (decode_compound): New function.
31 (decode_line_1): Move code into decode_compound.
32
33 2002-12-05 David Carlton <carlton@math.stanford.edu>
34
35 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
36 argument.
37 (lookup_symbol_aux): Do the 'field_of_this' check before checking
38 the static block. See PR gdb/804.
39
40 2002-12-05 David Carlton <carlton@math.stanford.edu>
41
42 * symtab.c (lookup_symbol_aux_block): New function.
43 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
44
45 2002-12-05 Andrew Cagney <ac131313@redhat.com>
46
47 * gdbarch.sh: Dump the predicate function and macro values.
48 (read): Print error on standard error.
49 * gdbarch.c: Regenerate.
50
51 2002-12-04 Kevin Buettner <kevinb@redhat.com>
52
53 * Makefile.in (mips_tdep_h): Define.
54 (mips-tdep.o): Add mips_tdep_h to dependency list.
55 * mips-tdep.h: New file.
56 * mips-tdep.c (mips-tdep.h): Include.
57 (enum mips_abi): Move to mips-tdep.h.
58 (mips_abi): New function.
59
60 2002-12-04 David Carlton <carlton@math.stanford.edu>
61
62 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
63
64 2002-12-04 David Carlton <carlton@math.stanford.edu>
65
66 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
67 function.
68 (lookup_symbol_aux_minsyms): New function.
69
70 2002-12-04 J. Brobecker <brobecker@gnat.com>
71
72 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
73
74 2002-12-04 J. Brobecker <brobecker@gnat.com>
75
76 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
77 which is an obsolete macro name.
78
79 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
80
81 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
82 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
83
84 2002-12-03 H.J. Lu (hjl@gnu.org)
85
86 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
87 (create_breakpoints): Make sure the addr_string field is not
88 NULL.
89
90 2002-12-03 Andrew Cagney <ac131313@redhat.com>
91
92 * sparc-nat.c (fetch_inferior_registers)
93 (store_inferior_registers): Add comment on problem of LWP vs
94 threads.
95
96 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
97 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
98 (lin_lwp_store_registers): Remove.
99 (init_lin_lwp_ops): Use fetch_inferior_registers
100 and store_inferior_registers directly.
101 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
102 (store_inferior_registers): Likewise.
103 Fix PR gdb/725.
104
105 2002-12-03 Andrew Cagney <ac131313@redhat.com>
106
107 * frame.h (get_frame_id): Convert to a function.
108 (null_frame_id, frame_id_p): Declare.
109 (frame_id_eq, frame_id_inner): Declare.
110 (frame_id_build): New function.
111 * frame.c (get_frame_id): Update. Use null_frame_id.
112 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
113 frame_id_inner.
114 (null_frame_id, frame_id_p): Define.
115 (frame_id_eq, frame_id_inner): Define.
116 (frame_id_build): New function.
117 * varobj.c (varobj_create): Update.
118 (varobj_update): Update.
119 * valops.c (value_assign): Update.
120 (new_root_variable): Update.
121 * infrun.c (save_inferior_status): Update.
122 * breakpoint.c (watch_command_1): Update.
123
124 2002-12-03 J. Brobecker <brobecker@gnat.com>
125
126 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
127 (SNAP2): Likewise.
128
129 2002-12-03 Andrew Cagney <cagney@redhat.com>
130
131 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
132 patch.
133
134 * PROBLEMS: Mention PR gdb/725.
135
136 2002-12-03 Andreas Schwab <schwab@suse.de>
137
138 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
139
140 2002-12-02 Adam Fedor <fedor@gnu.org>
141 Klee Dienes <kdienes@apple.com>
142
143 * objc-lang.c (objc_printstr): Add width arg to match
144 printstr prototype.
145 (compare_selectors): Add 'const' to arg types.
146 (compare_classes): Likewise.
147 (find_imps): Cast msym pointer to avoid compiler warning.
148 (print_object_command): Validate the address before
149 passing it to the print routine.
150 (find_objc_msgcall_submethod): Change function argument to
151 return an int.
152 * objc-lang.h: Add 'extern' to all function declarations.
153 (value_nsstring): Add declaration.
154
155 2002-12-02 J. Brobecker <brobecker@gnat.com>
156
157 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
158 Fixes a build failure on HP/UX.
159
160 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
161 failure on HP/UX.
162 (hpread_has_name): Advance declaration to avoid a compilation warning.
163 (pst_syms_count): Add missing variable type. By change, the compiler
164 was defaulting to int, which seems a good choice. Fixes a compilation
165 warning.
166 (pst_syms_size): Likewise.
167
168 2002-12-02 J. Brobecker <brobecker@gnat.com>
169
170 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
171 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
172 later to set the proper gdbarch methods depending on the osabi.
173 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
174
175 2002-12-02 J. Brobecker <brobecker@gnat.com>
176
177 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
178 * osabi.c (gdb_osabi_name): Add strings images for the two new
179 enum values.
180 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
181
182 2002-12-02 Andrew Cagney <ac131313@redhat.com>
183
184 * MAINTAINERS (Java): Global maintainers are responible for Java.
185 (Past Maintainers): Mention both Anthony Green and Per Bothner as
186 part Java maintainers.
187
188 2002-12-02 J. Brobecker <brobecker@gnat.com>
189
190 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
191 Fixes a compilation failure on AiX.
192
193 2002-12-02 J. Brobecker <brobecker@gnat.com>
194
195 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
196 why aix-thread.o is not listed.
197
198 2002-12-01 Andrew Cagney <ac131313@redhat.com>
199
200 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
201 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
202 * gdbarch.h, gdbarch.c: Re-generate.
203 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
204 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
205 * config/pa/tm-hppa.h, frame.h: Update.
206 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
207 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
208 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
209 * cris-tdep.c, alpha-tdep.c: Update.
210 * frame.c (set_unwind_by_pc, create_new_frame): Use either
211 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
212 (get_prev_frame): Ditto.
213
214 2002-11-30 Andrew Cagney <cagney@redhat.com>
215
216 * exec.c (xfer_memory): Replace boolean with int.
217 * p-exp.y: Use 0 instead of false.
218 * corelow.c (gdb_check_format): Change return type to int from
219 boolean.
220 * utils.c: Don't include <curses.h> or <term.h> first.
221
222 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
223
224 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
225 (m68hc11_register_byte): Remove.
226 (m68hc11_gdbarch_init): Don't set the above.
227
228 2002-11-29 Andrew Cagney <cagney@redhat.com>
229
230 * remote-mips.c (mips_initialize): Force a selected frame rebuild
231 by calling get_selected_frame.
232 * ocd.c (ocd_start_remote): Use get_selected frame instead of
233 set_current_frame, create_new_frame, select_frame and
234 get_current_frame.
235 * remote-e7000.c (e7000_start_remote): Ditto.
236 * remote-mips.c (common_open): Ditto
237 * remote-rdp.c (remote_rdp_open): Ditto.
238
239 2002-11-29 Andreas Schwab <schwab@suse.de>
240
241 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
242 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
243 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
244 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
245 read_memory_unsigned_integer instead of read_memory_integer when
246 dealing with addresses and instruction opcodes.
247 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
248 (m68k_linux_frame_saved_pc): Likewise.
249
250 2002-11-29 Andrew Cagney <ac131313@redhat.com>
251
252 * stack.c (selected_frame, select_frame): Move from here ...
253 * frame.c (selected_frame, select_frame): ... to here. Include
254 "language.h".
255 * Makefile.in (frame.o): Update dependencies.
256 * frame.c (get_selected_frame): New function.
257 * frame.h (get_selected_frame): Declare.
258 (deprecated_selected_frame): Rename selected_frame.
259 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
260 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
261 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
262 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
263 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
264 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
265 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
266 * z8k-tdep.c, cli/cli-cmds.c: Update.
267
268 2002-11-29 Andrew Cagney <ac131313@redhat.com>
269
270 * frame.h (get_selected_block): Add comments.
271
272 2002-11-28 Andrew Cagney <ac131313@redhat.com>
273
274 * frame.c (pc_notcurrent): New function.
275 (find_frame_sal): New function.
276 * frame.h (find_frame_sal): Declare.
277 (struct symtab_and_line): Add opaque declaration.
278 * stack.c (print_frame_info_base): Use find_frame_sal instead of
279 find_pc_line.
280 (frame_info): Ditto.
281 * ada-lang.c (find_printable_frame): Ditto.
282
283 2002-11-28 J. Brobecker <brobecker@gnat.com>
284
285 * configure.in: Check that the pthdebug library is recent enough
286 before enabling thread support on native AiX.
287 * configure: Regenerate.
288
289 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
290 from the list of object files as it is now appended by configure
291 if thread support is enabled.
292 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
293 if thread support is enabled.
294
295 2002-11-28 Andrew Cagney <cagney@redhat.com>
296
297 * stack.c (get_selected_block): In-line get_current_block.
298 * frame.h (get_current_block): Delete declaration.
299 * blockframe.c (get_current_block): Delete function.
300
301 2002-11-28 Andrew Cagney <ac131313@redhat.com>
302
303 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
304 USE_GENERIC_DUMMY_FRAMES.
305 * gdbarch.h, gdbarch.c: Regenerate.
306 * valops.c, frame.c: Update.
307 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
308 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
309 * config/pa/tm-hppa.h, blockframe.c: Update.
310 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
311 * m68k-tdep.c, alpha-tdep.c: Ditto.
312
313 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
314 * mips-tdep.c: Ditto.
315
316 2002-11-27 Andrew Cagney <ac131313@redhat.com>
317
318 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
319 (USE_GENERIC_DUMMY_FRAMES): Default to true.
320 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
321 * gdbarch.c, gdbarch.h: Re-generate.
322 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
323 (CALL_DUMMY_LOCATION): Delete macro definition.
324 (PC_IN_CALL_DUMMY): Delete macro definitions.
325
326 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
327 default is already generic_pc_in_call_dummy.
328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
329 * v850-tdep.c (v850_gdbarch_init): Ditto.
330 * sh-tdep.c (sh_gdbarch_init): Ditto.
331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
332 * mips-tdep.c (mips_gdbarch_init): Ditto.
333 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
336 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
338 * avr-tdep.c (avr_gdbarch_init): Ditto.
339
340 * arm-tdep.c (arm_gdbarch_init): Do not set
341 use_generic_dummy_frames, default is already 1.
342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
343 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
344 * v850-tdep.c (v850_gdbarch_init): Ditto.
345 * sh-tdep.c (sh_gdbarch_init): Ditto.
346 * s390-tdep.c (s390_gdbarch_init): Ditto.
347 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
348 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
349 * mips-tdep.c (mips_gdbarch_init): Ditto.
350 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
352 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
353 * i386-tdep.c (i386_gdbarch_init): Ditto.
354 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
355 * frv-tdep.c (frv_gdbarch_init): Ditto.
356 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
357 * cris-tdep.c (cris_gdbarch_init): Ditto.
358 * avr-tdep.c (avr_gdbarch_init): Ditto.
359
360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
361 call_dummy_location, default is already AT_ENTRY_POINT.
362 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
363 * v850-tdep.c (v850_gdbarch_init): Ditto.
364 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
365 * sh-tdep.c (sh_gdbarch_init): Ditto.
366 * s390-tdep.c (s390_gdbarch_init): Ditto.
367 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
368 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
369 * mips-tdep.c (mips_gdbarch_init): Ditto.
370 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
372 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
373 * i386-tdep.c (i386_gdbarch_init): Ditto.
374 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
375 * frv-tdep.c (frv_gdbarch_init): Ditto.
376 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
377 * cris-tdep.c (cris_gdbarch_init): Ditto.
378 * avr-tdep.c (avr_gdbarch_init): Ditto.
379 * arm-tdep.c (arm_gdbarch_init): Ditto.
380 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
381
382 2002-11-28 Andrew Cagney <cagney@redhat.com>
383
384 * frame.h: Update comments on set_current_frame, create_new_frame,
385 flush_cached_frames, reinit_frame_cache, select_frame and
386 selected_frame.
387
388 2002-11-27 Andrew Cagney <cagney@redhat.com>
389
390 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
391 deprecated pc_in_call_dummy function.
392 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
393 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
394 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
395 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
396 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
397
398 2002-11-26 Martin M. Hunt <hunt@redhat.com>
399
400 * Makefile.in: Remove Tix dependencies.
401 * acinclude.m4: Ditto.
402 * aclocal.m4: Ditto.
403 * configure.in: Ditto.
404 * configure: Regenerated.
405
406 2002-11-26 Andrew Cagney <ac131313@redhat.com>
407
408 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
409 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
410 * gdbarch.c: Re-generate.
411
412 2002-11-26 Andrew Cagney <ac131313@redhat.com>
413
414 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
415 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
416 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
417 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
418 pc_in_call_dummy_at_entry_point.
419 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
420 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
421 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
422 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
423 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
424 pc_in_call_dummy_on_stack.
425 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
426 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
427 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
428 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
429 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
430
431 2002-11-26 Andrew Cagney <ac131313@redhat.com>
432
433 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
434 pc_in_call_dummy_before_text_end
435 (deprecated_pc_in_call_dummy_after_text_end): Rename
436 pc_in_call_dummy_after_text_end.
437 (deprecated_pc_in_call_dummy_on_stack): Rename
438 pc_in_call_dummy_on_stack.
439 (deprecated_pc_in_call_dummy_at_entry_point): Rename
440 pc_in_call_dummy_at_entry_point.
441 * m68k-tdep.c (m68k_gdbarch_init): Update.
442 * s390-tdep.c (s390_gdbarch_init): Update.
443 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
444 * vax-tdep.c (vax_gdbarch_init): Update.
445 * sparc-tdep.c (sparc_gdbarch_init): Update.
446 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
447 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
448 * i386-tdep.c (i386_gdbarch_init): Update.
449 * frv-tdep.c (frv_gdbarch_init): Update.
450 * cris-tdep.c (cris_gdbarch_init): Update.
451 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
452 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
453 (deprecated_pc_in_call_dummy_after_text_end)
454 (deprecated_pc_in_call_dummy_on_stack)
455 (deprecated_pc_in_call_dummy_at_entry_point): Update.
456 * alpha-tdep.c (alpha_gdbarch_init): Update.
457
458 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
459
460 * acconfig.h (HAVE_PREAD64): Add.
461 * configure.in: Check for pread64.
462 * config.in: Regenerated.
463 * configure: Regenerated.
464 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
465 * linux-proc.c (linux_proc_xfer_memory): New function.
466 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
467
468 2002-11-25 David Carlton <carlton@math.stanford.edu>
469
470 * dwarf2read.c (scan_partial_symbols): Descend into namespace
471 pdi's with no name.
472
473 2002-11-25 Andrew Cagney <ac131313@redhat.com>
474
475 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
476 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
477
478 2002-11-25 Jim Blandy <jimb@redhat.com>
479
480 * symfile.c (init_objfile_sect_indices): New function.
481 (default_symfile_offsets): Move the section-index-initializing
482 stuff into init_objfile_sect_indices, and call that.
483
484 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
485 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
486
487 * symfile.c (syms_from_objfile): Adjust indentation.
488
489 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
490 || info_verbose isn't true.
491
492 2002-11-24 Andrew Cagney <ac131313@redhat.com>
493
494 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
495 default to get_frame_base.
496 * gdbarch.h, gdbarch.c: Regenerate.
497 * arch-utils.c (default_frame_address): Delete function.
498 * arch-utils.h (default_frame_address): Delete declaration
499
500 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
501
502 * varobj.c (find_frame_addr_in_frame_chain):
503 Use get_frame_base instead of FRAME_FP,
504 obvious fix.
505
506 2002-11-19 Andrew Cagney <ac131313@redhat.com>
507
508 * frame.h (FRAME_FP): Delete macro.
509 (get_frame_base): New function declaration.
510 * frame.c (get_frame_base): New function.
511 (get_frame_id): Use ->frame.
512 (frame_find_by_id): Rewrite to use get_frame_id.
513 * blockframe.c: Use get_frame_base instead of FRAME_FP.
514 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
515 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
516 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
517 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
518 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
519 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
520
521 2002-11-24 Andrew Cagney <ac131313@redhat.com>
522
523 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
524
525 2002-11-24 Andrew Cagney <ac131313@redhat.com>
526
527 * frame.c (set_unwind_by_pc): Revert change below, use
528 PC_IN_CALL_DUMMY.
529 (get_prev_frame): Ditto.
530
531 2002-11-24 Andrew Cagney <ac131313@redhat.com>
532
533 * dummy-frame.c (pc_in_dummy_frame): New function.
534 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
535 (find_dummy_frame): Update comment.
536 (generic_pop_current_frame): Use get_frame_type.
537 * dummy-frame.h (pc_in_dummy_frame): Declare.
538 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
539 (create_new_frame): Use pc_in_dummy_frame.
540 (get_prev_frame): Use pc_in_dummy_frame.
541 (frame_saved_regs_register_unwind): Use get_prev_frame.
542 (deprecated_generic_get_saved_register): Use get_prev_frame.
543
544 2002-11-23 Andrew Cagney <ac131313@redhat.com>
545
546 * blockframe.c (find_frame_addr_in_frame_chain): Move function
547 from here ...
548 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
549 (varobj_create): Note that frame ID should be used.
550 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
551
552 2002-11-23 Andrew Cagney <ac131313@redhat.com>
553
554 * breakpoint.c: Include "gdb_assert.h".
555 (deprecated_frame_in_dummy): Assert that generic dummy frames are
556 not being used.
557 * Makefile.in (breakpoint.o): Update dependencies.
558 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
559 deprecated_frame_in_dummy.
560 * stack.c (print_frame_info_base): Ditto.
561 (frame_info): Ditto.
562 (print_frame_info_base): Ditto. Delete dead code.
563
564 2002-11-23 Andreas Schwab <schwab@suse.de>
565
566 * Makefile.in (m68k_tdep_h): Define.
567 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
568 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
569 * m68k-tdep.c: Move register number enum ...
570 * m68k-tdep.h: ... to this new file and rename the constants from
571 E_* to M68K_*. All uses changed.
572 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
573 * abug-rom.c: Include "m68k-tdep.h". Use
574 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
575 * cpu32bug-rom.c: Likewise.
576 * dbug-rom.c: Likewise.
577 * m68k-tdep.c: Likewise.
578 * m68klinux-nat.c: Likewise.
579 * remote-est.c: Likewise.
580 * rom68k-rom.c: Likewise.
581 * config/m68k/tm-linux.h: Likewise.
582
583 2002-11-23 Andrew Cagney <ac131313@redhat.com>
584
585 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
586 dummy frame initialization code.
587 * mips-tdep.c (mips_gdbarch_init): Ditto.
588
589 2002-11-22 Christopher Faylor <cgf@redhat.com>
590
591 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
592 attach will hang.
593
594 2002-11-22 Andrew Cagney <ac131313@redhat.com>
595
596 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
597 to default_frame_address.
598 * gdbarch.h, gdbarch.c: Re-generate.
599
600 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
601 or frame_locals_address to default_frame_address.
602 * m68k-tdep.c (m68k_gdbarch_init): Update.
603 * i386-tdep.c (i386_gdbarch_init): Update.
604 * frv-tdep.c (frv_gdbarch_init): Update.
605 * sh-tdep.c (sh_gdbarch_init): Update.
606 * v850-tdep.c (v850_gdbarch_init): Update.
607 * sparc-tdep.c (sparc_gdbarch_init): Update.
608 * mips-tdep.c (mips_gdbarch_init): Update.
609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
610 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
612
613 * cris-tdep.c (cris_frame_args_address): Delete function.
614 (cris_frame_locals_address): Delete function.
615 (cris_gdbarch_init): Do not set frame_args_address or
616 frame_locals_address.
617
618 2002-11-22 Michael Snyder <msnyder@redhat.com>
619
620 * thread-db.c (thread_db_load): Tell the user what's going on
621 if dlopen fails on libthread_db.
622
623 2002-11-23 Andreas Schwab <schwab@suse.de>
624
625 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
626 invariant return values.
627
628 2002-11-22 Andreas Schwab <schwab@suse.de>
629
630 * valops.c (value_slice): Move declaration of `offset' to avoid
631 warning.
632
633 2002-11-22 Christopher Faylor <cgf@redhat.com>
634
635 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
636 (struct so_stuff): Add end_addr field.
637 (register_loaded_dll): Calculate and store end address of loaded dll.
638 (solib_address): New function.
639 (child_solib_loaded_library_pathname): Pass carefully constructed
640 section info to safe_symbol_file_add rather than ignoring it.
641 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
642 DLL is loaded.
643 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
644 (child_create_inferior): Fix a compiler warning.
645 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
646 (solib_address): Declare new function.
647
648 2002-11-22 Andreas Schwab <schwab@suse.de>
649
650 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
651 and FPS registers.
652
653 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
654
655 * maint.c (_initialize_maint_cmds): Fix typo. From
656 Francesco Potorti` <pot@gnu.org>.
657
658 2002-11-21 Andrew Cagney <cagney@redhat.com>
659
660 * mips-tdep.c (mips_dump_tdep): Delete references to
661 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
662 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
663 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
664 * printcmd.c (build_address_symbolic): Delete calls to
665 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
666 (address_info): Ditto.
667 Fix PR gdb/773.
668
669 2002-11-19 Klee Dienes <kdienes@apple.com>
670 Adam Fedor <fedor@gnu.org>
671
672 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
673 the ability to explicitly specify the quote characters and word
674 break characters; if NULL is specified for either, use the old
675 behavior of using the characters used by the completer.
676 (skip_chars): New function. Convenience wrapper around
677 skip_quoted_chars to provide the original skip_chars behavior.
678 * completer.h (skip_quoted_chars): Add prototype.
679
680 2002-11-19 Andrew Cagney <ac131313@redhat.com>
681
682 Problems reported by Paul Eggert.
683 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
684
685 2002-11-19 Andreas Schwab <schwab@suse.de>
686
687 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
688 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
689 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
690 (m68k_linux_frame_saved_pc): Move to ...
691 * m68klinux-tdep.c: ... here. New file.
692 * Makefile.in (m68klinux-tdep.o): Add dependencies.
693 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
694
695 2002-11-19 Adam Fedor <fedor@gnu.org>
696
697 * objc-exp.y: Revert to old skip_quoted usage.
698
699 2002-11-19 Adam Fedor <fedor@gnu.org>
700
701 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
702 (objc_lang_h): Define.
703 (YYFILES): Add objc-exp.tab.c.
704 (local-maintainer-clean): Remove objc-exp.tab.c.
705 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
706
707 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
708
709 * p-exp.y (typecast rule): Add automatic dereference of
710 pascal classes if needed.
711 (THIS): Set current_type.
712 Automatically dereference pascal classes.
713 (typebase rule): Add ^typebase recognition.
714
715 2002-11-18 Adam Fedor <fedor@gnu.org>
716
717 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
718 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
719 (op_name): Handle OP_OBJC_SELF.
720 * Makefile.in (expprint.o): Add additional depends.
721
722 2002-11-18 Adam Fedor <fedor@gnu.org>
723
724 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
725 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
726 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
727 * objc-exp.y: Likewise.
728
729 2002-11-18 Adam Fedor <fedor@gnu.org>
730
731 * gdb/parser-defs.h: (struct objc_class_str): New structure
732 for parsing ObjC classes.
733
734 2002-11-18 Andrew Cagney <ac131313@redhat.com>
735
736 * stack.c (frame_relative_level): Copy function from here ...
737 * frame.c (frame_relative_level): ...to here.
738
739 2002-11-18 Andrew Cagney <ac131313@redhat.com>
740
741 * frame.h (enum frame_type): Define.
742 (get_frame_type): Declare.
743 (struct frame_info): Add field `type'. Delete field
744 signal_handler_caller.
745 (deprecated_set_frame_signal_handler_caller): Declare.
746 * frame.c (get_frame_type): New function.
747 (deprecated_set_frame_type): New function.
748 (create_new_frame): Set the frame's type.
749 (get_prev_frame): Similar.
750 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
751 * s390-tdep.c: Ditto.
752 * m68klinux-nat.c: Ditto.
753 * ns32k-tdep.c: Ditto.
754 * x86-64-linux-tdep.c: Ditto.
755 * vax-tdep.c: Ditto.
756 * rs6000-tdep.c: Ditto.
757 * ppc-linux-tdep.c: Ditto.
758 * i386-interix-tdep.c: Ditto.
759 * mips-tdep.c: Ditto.
760 * m68k-tdep.c: Ditto.
761 * hppa-tdep.c: Ditto.
762 * ia64-tdep.c: Ditto.
763 * cris-tdep.c: Ditto.
764 * arm-tdep.c: Ditto.
765 * alpha-tdep.c: Ditto.
766 * i386-tdep.c: Ditto.
767 * stack.c: Ditto.
768 * ada-lang.c: Ditto.
769 * blockframe.c: Update.
770 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
771 deprecated_set_frame_type instead of signal_handler_caller.
772 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
773 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
774 * breakpoint.h: Delete FIXME suggesting get_frame_type.
775
776 2002-11-18 Klee Dienes <kdienes@apple.com>
777
778 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
779
780 2002-11-18 Klee Dienes <kdienes@apple.com>
781
782 * buildsym.c (pop_context): Add comment.
783
784 2002-11-18 Klee Dienes <kdienes@apple.com>
785
786 * buildsym.h (pop_context): Convert to function, defined in
787 buildsym.c.
788 * buildsym.c: Include gdb_assert.h.
789 (pop_context): Implement as C function. Add check for stack
790 underflow.
791 * dbxread.c (process_one_symbol): Complain and stop processing
792 that symbol if we are already at the top of the context stack for
793 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
794 when processing N_RBRAC.
795
796 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
797
798 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
799 define.
800 (struct target_waitstatus): Add opaque definition.
801 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
802 * exec.c (init_exec_ops): Likewise.
803 * fork-child.c (clone_and_follow_inferior): Remove.
804 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
805 * inferior.h (clone_and_follow_inferior): Remove prototype.
806 * infrun.c (follow_fork_mode_both): Remove.
807 (follow_fork_mode_kind_names): Remove commented out "both".
808 (follow_inferior_fork): Remove follow_fork_mode_both support.
809 * inftarg.c (child_clone_and_follow_inferior): Remove.
810 (child_post_follow_inferior_by_clone): Remove.
811 (init_child_ops): Don't set to_clone_and_follow_inferior
812 or to_post_follow_inferior_by_clone.
813 * target.c (default_clone_and_follow_inferior): Remove.
814 (cleanup_target): Don't set to_clone_and_follow_inferior
815 or to_post_follow_inferior_by_clone.
816 (find_default_clone_and_follow_inferior): Remove.
817 (init_dummy_target): Don't set to_clone_and_follow_inferior.
818 (debug_to_clone_and_follow_inferior): Remove.
819 (debug_to_post_follow_inferior_by_clone): Remove.
820 (setup_target_debug): Don't set to_clone_and_follow_inferior
821 or to_post_follow_inferior_by_clone.
822 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
823 and to_post_follow_inferior_by_clone.
824 (child_clone_and_follow_inferior): Remove prototype.
825 (child_post_follow_inferior_by_clone): Remove prototype.
826 (target_clone_and_follow_inferior): Remove macro.
827 (target_post_follow_inferior_by_clone): Remove macro.
828 (find_default_clone_and_follow_inferior): Remove prototype.
829
830 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
831
832 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
833 inferior_has_vforked, and inferior_has_execd instead of
834 target_has_forked, target_has_vforked, and target_has_execd.
835 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
836 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
837 (CHILD_WAIT): Define.
838 (child_wait): Add prototype.
839 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
840 Add prototype.
841 (hpux_has_vforked): Likewise, from child_has_vforked.
842 (hpux_has_execd): Likewise, from child_has_execd.
843 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
844 (not_same_real_pid, child_wait): New, copied from inftarg.c.
845 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
846 and hpux_has_syscall_event instead of the target hooks.
847 * infrun.c (inferior_has_forked, inferior_has_vforked)
848 (inferior_has_execd): New functions.
849 * inftarg.c (not_same_real_pid): Remove.
850 (child_wait): Remove references to not_same_real_pid,
851 target_has_forked, target_has_vforked, target_has_execd,
852 and target_has_syscall_event.
853 (child_has_forked, child_has_vforked, child_has_execd)
854 (child_has_syscall_event): Remove.
855 (init_child_ops): Remove references to child_has_forked,
856 child_has_vforked, child_has_execd, and child_has_syscall_event.
857 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
858 (hpux_has_vforked): Likewise, from child_has_vforked.
859 (hpux_has_execd): Likewise, from child_has_execd.
860 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
861 * target.c (cleanup_target): Remove references to
862 to_has_forked, to_has_vforked, to_has_execd, and
863 to_has_syscall_event.
864 (update_current_target): Likewise.
865 (setup_target_debug): Likewise.
866 (debug_to_has_forked): Remove.
867 (debug_to_has_vforked): Remove.
868 (debug_to_has_execd): Remove.
869 (debug_to_has_syscall_event): Remove.
870 * target.h (struct target_ops): Remove to_has_forked.
871 to_has_vforked, to_has_execd, and to_has_syscall_event.
872 (child_has_forked, child_has_vforked, child_has_execd)
873 (child_has_syscall_event): Remove prototypes.
874 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
875 prototypes.
876 (target_has_forked, target_has_vforked, target_has_execd)
877 (target_has_syscall_event): Remove macros.
878
879 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
880
881 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
882 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
883 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
884 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
885 * target.c (cleanup_target): Remove reference to
886 to_can_follow_vfork_prior_to_exec.
887 (update_current_target): Likewise.
888 (debug_to_can_follow_vfork_prior_to_exec): Remove.
889 (setup_target_debug): Remove reference to
890 to_can_follow_vfork_prior_to_exec.
891 * target.h (struct target_ops): Remove
892 to_can_follow_vfork_prior_to_exec.
893 (child_can_follow_vfork_prior_to_exec): Remove prototype.
894 (target_can_follow_vfork_prior_to_exec): Remove definition.
895 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
896 define.
897 * infrun.c (follow_vfork_when_exec): Remove.
898 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
899 (follow_exec): Likewise.
900 (handle_inferior_event): Likewise.
901 (keep_going): Likewise.
902
903 2002-11-15 Andrew Cagney <cagney@redhat.com>
904
905 * frame.c (generic_unwind_get_saved_register): Make static.
906 * frame.h (generic_unwind_get_saved_register): Delete declaration.
907 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
908 defaults to generic_unwind_get_saved_register.
909 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
911 * frv-tdep.c (frv_gdbarch_init): Ditto.
912 * i386-tdep.c (i386_gdbarch_init): Ditto.
913 * s390-tdep.c (s390_gdbarch_init): Ditto.
914 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
915 * v850-tdep.c (v850_gdbarch_init): Ditto.
916 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
917 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
918 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
919
920 2002-11-15 Andrew Cagney <cagney@redhat.com>
921
922 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
923 i386-tdep.c.
924
925 2002-11-15 Andrew Cagney <cagney@redhat.com>
926
927 * frame.h (sigtramp_saved_pc): Delete declaration.
928 * blockframe.c (sigtramp_saved_pc): Delete function.
929 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
930 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
931 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
932 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
933
934 2002-11-15 Andrew Cagney <ac131313@redhat.com>
935
936 * frame.c (frame_pc_unwind): New function.
937 (frame_saved_regs_pc_unwind): New function.
938 (frame_register_unwind): Pass unwind_cache instead of
939 register_unwind_cache.
940 (set_unwind_by_pc): Add unwind_pc parameter, set.
941 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
942 (get_prev_frame): Ditto.
943 * frame.h (frame_pc_unwind_ftype): Declare.
944 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
945 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
946 (frame_pc_unwind): Declare.
947 * dummy-frame.c (dummy_frame_pc_unwind): New function.
948 (struct dummy_frame): Add comment mentioning that values are for
949 previous frame.
950 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
951 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
952 (generic_file_frame_chain_valid): Ditto.
953 * stack.c (frame_info): Ditto.
954
955 2002-11-15 David Carlton <carlton@math.stanford.edu>
956
957 * linespec.c (locate_first_half): New function.
958 (decode_line_1): Move code into locate_first_half.
959
960 2002-11-15 Andrew Cagney <ac131313@redhat.com>
961
962 * complaints.h: Add comment explaining how to eliminate a
963 deprecated_complain call.
964 * complaints.h: Fix spelling errors.
965
966 2002-11-15 David Carlton <carlton@math.stanford.edu>
967
968 * printcmd.c: Remove #include "disasm.h".
969
970 2002-11-14 Andrew Cagney <ac131313@redhat.com>
971
972 * frame.h: Move the most relevant interface functions to the start
973 of the file.
974
975 2002-11-14 Andrew Cagney <ac131313@redhat.com>
976
977 * regcache.h (deprecated_registers): Rename registers.
978 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
979 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
980 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
981 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
982 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
983 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
984 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
985 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
986 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
987 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
988 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
989 * v850ice.c: Update.
990
991 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
992
993 * utils.c (gdb_realpath): Add comment mentioning realpath with a
994 NULL buffer.
995
996 2002-11-13 Andrew Cagney <cagney@redhat.com>
997
998 * regcache.h (deprecated_read_register_bytes): Rename
999 read_register_bytes.
1000 (deprecated_write_register_bytes): Rename write_register_bytes.
1001 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1002 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1003 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1004 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1005 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1006 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1007 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1008 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1009 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1010 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1011 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1012 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1013 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1014 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1015
1016 2002-11-13 Jim Blandy <jimb@redhat.com>
1017
1018 * findvar.c (read_var_value): Doc fix.
1019
1020 2002-11-13 Andrew Cagney <cagney@redhat.com>
1021
1022 * regcache.c (struct regcache): Replace passthough_p with
1023 readonly_p.
1024 (regcache_xmalloc): Initialize readonly_p.
1025 (build_regcache): Initialize readonly_p.
1026 (regcache_save): New function.
1027 (regcache_restore): New function.
1028 (regcache_cpy): Re-implement using regcache_save and
1029 regcache_restore.
1030 (regcache_raw_read): Update.
1031 (regcache_cooked_read): When a read-only cache, checked for cached
1032 pseudo register values.
1033 (regcache_raw_write): Assert that the cache is not read-only.
1034 Remove code handling a non-passthrough cache.
1035 * regcache.h (regcache_save): Declare.
1036 (regcache_restore): Declare.
1037
1038 2002-11-13 Andrew Cagney <cagney@redhat.com>
1039
1040 * regcache.c (struct regcache_descr): Add fields
1041 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1042 (init_legacy_regcache_descr): Compute the size of a cooked
1043 register cache and then assign that to sizeof_raw_registers. Set
1044 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1045 (init_legacy_regcache_descr): Ditto.
1046
1047 2002-11-13 Andrew Cagney <cagney@redhat.com>
1048
1049 * regcache.c (register_buffer): Move to near start of file, update
1050 description.
1051 (regcache_raw_read): Use.
1052 (regcache_raw_write): Use.
1053 (struct regcache): Rename raw_registers to registers and
1054 raw_register_valid_p to register_valid_p.
1055 (regcache_xmalloc): Update.
1056 (regcache_xfree): Update.
1057 (register_buffer): Update.
1058 (regcache_cpy): Update.
1059 (regcache_cpy_no_passthrough): Update.
1060 (regcache_valid_p): Update.
1061 (deprecated_grub_regcache_for_registers): Update.
1062 (deprecated_grub_regcache_for_register_valid): Update.
1063 (set_register_cached): Update.
1064 (regcache_raw_write): Update.
1065
1066 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1067
1068 * p-exp.y (name_not_typename): Use copy_name to
1069 set current_type variable for fields of THIS.
1070
1071 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1072
1073 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1074 * monitor.c (init_base_monitor_ops): Likewise.
1075 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1076 * remote-array.c (init_array_ops): Likewise.
1077 * remote-e7000.c (init_e7000_ops): Likewise.
1078 * remote-es.c (init_es1800_ops): Likewise.
1079 (init_es1800_child_ops): Likewise.
1080 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1081 * remote-sim.c (init_gdbsim_ops): Likewise.
1082 * remote-st.c (init_st2000_ops): Likewise.
1083 * sol-thread.c (init_sol_core_ops): Likewise.
1084 (init_sol_thread_ops): Likewise.
1085 * v850ice.c (init_850ice_ops): Likewise.
1086 * win32-nat.c (init_child_ops): Likewise.
1087 * wince.c (init_child_ops): Likewise.
1088
1089 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1090
1091 * utils.c (gdb_realpath): Make rp a constant pointer.
1092
1093 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1094
1095 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1096 a constant buffer; cannonicalize_file_name(); realpath() with a
1097 pathconf() defined buffer, xstrdup().
1098
1099 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1100
1101 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1102 to hang2.C; hang3.c to hang3.C.
1103
1104 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1105
1106 * findvar.c (read_var_value): Reenable TLS code.
1107
1108 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1109 Jim Blandy <jimb@redhat.com>
1110
1111 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1112 * target.c (update_current_target): Add
1113 to_get_thread_local_address.
1114 * target.h (to_get_thread_local_address): Export.
1115 (target_get_thread_local_address): Define.
1116 (target_get_thread_local_address_p): Define.
1117 * thread-db.c: Include solib-svr4.h.
1118 (td_thr_tls_get_addr_p): Define.
1119 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1120 (thread_db_get_thread_local_address): New function.
1121 (init_thread_db_ops): Initialize to_get_thread_local_address.
1122 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1123 * configure: Regenerate.
1124 * config.in: Regenerate.
1125
1126 2002-11-11 David Carlton <carlton@math.stanford.edu>
1127
1128 * linespec.c (set_flags): New function.
1129 (decode_line_1): Move code into set_flags.
1130
1131 2002-11-11 David Carlton <carlton@math.stanford.edu>
1132
1133 * linespec.c (decode_line_1): Move chunks of code to separate
1134 functions.
1135 (initialize_defaults): New function.
1136 (decode_indirect): New function.
1137
1138 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1139
1140 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1141 instead of void_code_ptr.
1142 (sigtramp_saved_pc): Ditto.
1143
1144 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1145 i386_fp_regnum_p.
1146
1147 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1148
1149 * gdbtypes.h (struct main_type): Move artificial flag out of
1150 loc. New member of ``struct field'' named static_kind. Reduce
1151 overloaded meaning of bitsize.
1152 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1153 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1154 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1155
1156 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1157 new fields.
1158 (template_to_fixed_record_type, template_to_static_fixed_type)
1159 (to_record_with_fixed_variant_part): Likewise.
1160 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1161 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1162 * dwarfread.c (struct_type, enum_type): Likewise.
1163 * hpread.c (hpread_read_enum_type)
1164 (hpread_read_function_type, hpread_read_doc_function_type)
1165 (hpread_read_struct_type): Likewise.
1166 * mdebugread.c (parse_symbol): Likewise.
1167
1168 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1169
1170 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1171 * stack.c (print_frame_info_base): Update.
1172 (print_frame_info_base, frame_info): Update.
1173 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1174 (sparc_frame_saved_pc): Update.
1175 * ada-lang.c (find_printable_frame): Update.
1176 * breakpoint.c (deprecated_frame_in_dummy): Update.
1177
1178 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1179
1180 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1181 defined.
1182 (regmap): Extend to cover all registers.
1183 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1184 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1185 definitions.
1186 (fetch_register, sore_register): Simplify.
1187 (old_fetch_inferior_registers, old_store_inferior_registers):
1188 Remove functions.
1189 (cannot_fetch_register, cannot_store_register): Change
1190 implementation to use regmap array to decide which registers
1191 cannot be fetched/stored. This removes $orig_eax from the
1192 registers that cannot be fetched/stored.
1193 (fetch_inferior_registers): Call fetch_register directly instead
1194 of calling old_fetch_inferior_registers.
1195 (store_inferior_registers): Call store_register directly instead
1196 of calling old_store_inferior_registers.
1197 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1198 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1199 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1200
1201 2002-11-09 Klee Dienes <kdienes@apple.com>
1202
1203 * i387-tdep.c (i387_supply_register): When called with NULL as a
1204 buffer, mark the register as not provided (to mirror the behavior
1205 of supply_register).
1206 (i387_supply_fxsave): Ditto.
1207 (i387_supply_fsave): Ditto (inherits the behavior from
1208 i387_supply_register).
1209
1210 2002-11-09 Klee Dienes <kdienes@apple.com>
1211
1212 * blockframe.c (sigtramp_saved_pc): Use
1213 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1214 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1215 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1216
1217 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1218
1219 * frame.c (get_prev_frame): Test prev_p to identify a previously
1220 unwound frame. Initialize prev_p.
1221 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1222 comment.
1223
1224 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1225
1226 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1227 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1228 more comments. Zap dead code.
1229
1230 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1231
1232 * infcmd.c (print_vector_info, print_float_info): Move code that
1233 checks whether the target has any registers and whether there is a
1234 selected frame up, such that it is also used if a target provides
1235 multi-arch definitions of these functions.
1236
1237 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1238
1239 * Makefile.in (DESTDIR): Define.
1240 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1241 prefix.
1242
1243 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1244 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1245
1246 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1247
1248 * i386-linux-tdep.c: Include "reggroups.h".
1249 (i386_linux_register_reggroup_p): New function.
1250 (i386_linux_init_abi): Set register_reggroup_p to
1251 i386_linux_register_reggroup_p.
1252 * i386-tdep.h (i386_register_reggroup_p): Declare.
1253 * i386-tdep.c: Include "reggroups.h".
1254 (i386_init_reggroups): New function.
1255 (i386_add_reggroups): New function.
1256 (i386_register_reggroup_p): New function.
1257 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1258 (_initialize_i386_tdep): Call i386_init_reggroups.
1259 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1260 specific reggroups.
1261
1262 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1263
1264 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1265 request that's available in *BSD.
1266
1267 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1268
1269 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1270 FDOFF_REGNUM.
1271
1272 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1273
1274 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1275 * dummy-frame.c (find_dummy_frame): Rename
1276 generic_find_dummy_frame, make static. Return the dummy frame
1277 instead of the regcache.
1278 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1279 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1280 (dummy_frame_register_unwind): Rename
1281 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1282 * dummy-frame.h (dummy_frame_register_unwind): Rename
1283 generic_call_dummy_register_unwind.
1284
1285 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1286
1287 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1288 except the inclusion of "i386/tm-i386.h", to...
1289 * config/i386/nm-i386v42mp.h: ...here.
1290 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1291
1292 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1293
1294 * Makefile.in (frame.o): Update dependencies.
1295 * blockframe.c (current_frame, frame_obstack_alloc)
1296 (frame_saved_regs_zalloc, get_current_frame)
1297 (set_current_frame, create_new_frame)
1298 (set_unwind_by_pc, get_next_frame)
1299 (flush_cached_frames, reinit_frame_cache)
1300 (frame_saved_regs_register_unwind)
1301 (deprecated_generic_get_saved_register)
1302 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1303 (_initialize_blockframe): Move frame code from here...
1304 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1305 "annotate.h" and "dummy-frame.h".
1306 (_initialize_frame): New function.
1307
1308 2002-11-08 Jim Blandy <jimb@redhat.com>
1309
1310 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1311 when we finish a function a context.
1312 * buildsym.h (outermost_context_p): New macro.
1313 (Bug analyzed by David Edelsohn.)
1314
1315 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1316
1317 * blockframe.c: Include "dummy-frame.h".
1318 (struct dummy_frame, dummy_frame_stack)
1319 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1320 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1321 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1322 (generic_save_call_dummy_addr, generic_pop_current_frame)
1323 (generic_pop_dummy_frame, generic_fix_call_dummy)
1324 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1325 dummy frame code from here...
1326 * dummy-frame.c: ...to here. New file.
1327 * dummy-frame.h: New file.
1328 (generic_call_dummy_register_unwind): Declare.
1329 (generic_find_dummy_frame): Declare.
1330 * Makefile.in (SFILES): Add dummy-frame.c.
1331 (dummy-frame.o): Specify dependencies.
1332 (dummy_frame_h): Define.
1333 (COMMON_OBS): Add dummy-frame.o.
1334 (blockframe.o): Update dependencies.
1335
1336 2002-11-08 Jim Blandy <jimb@redhat.com>
1337
1338 * dwarf2read.c (read_func_scope): Restore local_symbols and
1339 param_symbols after we finish the function context. (Based on a
1340 patch from David Edelsohn.)
1341
1342 2002-11-08 David Carlton <carlton@math.stanford.edu>
1343
1344 * linespec.c (symbol_found): New function.
1345 (minsym_found): New function.
1346 (decode_line_1): Separate out some code into separate functions.
1347
1348 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1349
1350 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1351 the benefit of the interix target.
1352 * i386-tdep.h (i386_frameless_signal_p): Declare.
1353
1354 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1355
1356 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1357 declaration that snuck in from change below.
1358
1359 2002-11-06 Andrew Cagney <cagney@redhat.com>
1360
1361 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1362 all callers.
1363 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1364 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1365 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1366 (i386_mxcsr_regnum_p): new function. Use instead of
1367 MXCSR_REGNUM_P.
1368 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1369 (i386_sse_regnum_p): Declare.
1370 (i386_mxcsr_regnum_p): Declare.
1371 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1372 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1373 (IS_FP_REGNUM): Update definition.
1374 (IS_FPU_CTRL_REGNUM): Update definition..
1375 (IS_SSE_REGNUM): Update definition..
1376 * i386v-nat.c (register_u_addr): Update.
1377 * go32-nat.c (fetch_register): Update.
1378 (store_register): Update.
1379
1380 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1381
1382 Preparation work to convert the hppa targets to multiarch partial.
1383
1384 * hppa-tdep.c: Add new functions replacing macro bodies from
1385 config/pa/tm-hppa.h. These function will be used to initialize
1386 the gdbarch structure. Import some comments from tm-hppa.h,
1387 and place them where appropriate, to avoid loosing them when
1388 we cleanup this file.
1389 (hppa_reg_struct_has_addr): New function.
1390 (hppa_inner_than): New function.
1391 (hppa_stack_align): New function.
1392 (hppa_pc_requires_run_before_use): New function.
1393 (hppa_instruction_nullified): New function.
1394 (hppa_register_byte): New function.
1395 (hppa_register_virtual_type): New function.
1396 (hppa_store_struct_return): New function.
1397 (hppa_cannot_store_register): New function.
1398 (hppa_frame_args_address): New function.
1399 (hppa_frame_locals_address): New function.
1400 (hppa_smash_text_address): New function.
1401 (hppa_coerce_float_to_double): New function. Requires the inclusion
1402 of "language.h".
1403
1404 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1405
1406 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1407 gdbarch-eligible macro to a call to the new associated function
1408 created in hppa-tdep.c.
1409 (INNER_THAN): Likewise.
1410 (STACK_ALIGN): Likewise.
1411 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1412 (INSTRUCTION_NULLIFIED): Likewise.
1413 (REGISTER_BYTE): Likewise.
1414 (REGISTER_VIRTUAL_TYPE): Likewise.
1415 (STORE_STRUCT_RETURN): Likewise.
1416 (CANNOT_STORE_REGISTER): Likewise.
1417 (FRAME_ARGS_ADDRESS): Likewise.
1418 (FRAME_LOCALS_ADDRESS): Likewise.
1419 (SMASH_TEXT_ADDRESS): Likewise.
1420 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1421 (ABOUT_TO_RETURN): Delete, as no longer used.
1422
1423 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1424
1425 * printcmd.c (disassemble_command): Remove obsolete function.
1426 (_initialize_printcmd): Do not create disassemble command here.
1427 * cli/cli-cmds.c (disassemble_command): New function. Implements
1428 disassemble command.
1429 (init_cli_cmds): Create disassemble command here instead.
1430
1431 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1432
1433 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1434
1435 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1436
1437 * regcache.h (regcache_cooked_read_using_offset_hack)
1438 (regcache_cooked_write_using_offset_hack): Delete declarations.
1439 (register_changed): Delete declaration.
1440 * regcache.c (regcache_cooked_read_using_offset_hack)
1441 (regcache_cooked_write_using_offset_hack): Delete functions.
1442 (cooked_xfer_using_offset_hack): Delete function.
1443 (register_changed): Delete function.
1444
1445 2002-11-07 Jim Blandy <jimb@redhat.com>
1446
1447 * macroscope.c: #include "complaints.h".
1448 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1449 but not in the macro table.
1450 * Makefile.in (macroscope.o): Record dependency.
1451
1452 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1453
1454 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1455
1456 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1457
1458 * regcache.c (deprecated_registers_fetched): Update.
1459 * regcache.h (deprecated_registers_fetched): Rename
1460 registers_fetched.
1461 * remote-vxsparc.c (vx_read_register): Update.
1462 * remote-vxmips.c (vx_read_register): Update.
1463 * remote-vx68.c (vx_read_register): Update.
1464 * irix5-nat.c (fetch_core_registers): Update.
1465 * mipsm3-nat.c (fetch_inferior_registers): Update.
1466 * sun3-nat.c (fetch_inferior_registers): Update.
1467 * symm-nat.c (fetch_inferior_registers): Update.
1468 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1469 (fetch_core_registers): Update.
1470 (fetch_kcore_registers): Update.
1471 * mips-nat.c (fetch_inferior_registers): Update.
1472 * corelow.c (get_core_registers): Update.
1473 * a68v-nat.c (fetch_inferior_registers): Update.
1474
1475 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1476
1477 Put in place the framework necessary for multiarching the hppa targets.
1478 * hppa-tdep.c (hppa_gdbarch_init): New function.
1479 (hppa_dump_tdep): New function.
1480 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1481 tdep structure dumper.
1482 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1483 until the multi-arching conversion has partially been completed.
1484
1485 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1486
1487 * valops.c (value_assign): Merge lval_register case into
1488 lval_reg_frame_relative. Use frame_register and
1489 regcache_cooked_write instead of get_saved_register and
1490 write_register_bytes. After flushing the register cache, try to
1491 re-select the selected frame.
1492
1493 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1494
1495 * regcache.h (deprecated_register_valid): Rename register_valid.
1496 * regcache.c: Update.
1497 * ia64-aix-nat.c: Update.
1498 * i386gnu-nat.c: Update.
1499 * alpha-nat.c: Update.
1500 * sparc-nat.c: Update.
1501 * lynx-nat.c: Update.
1502 * remote-mips.c: Update.
1503
1504 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1505
1506 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1507 to end of file, to be more consistent with the pratice followed
1508 by other targets.
1509
1510 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1511
1512 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1513 (print_float_info): Print registers in float_reggroup.
1514 (print_vector_info): Print registers in vector_reggroup.
1515 (default_print_registers_info): When all, print registers in
1516 all_reggroup. Otherwize, print registers in general_reggroup.
1517 (registers_info): Rewrite. Add support for register groups.
1518 Eliminate a goto.
1519
1520 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1521
1522 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1523 ages.
1524 (symtab_symbol_info): Remove eons old ifdeffed out code.
1525 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1526 command.
1527
1528 2002-11-06 Theodore A. Roth <troth@openavr.org>
1529
1530 * c-exp.y: Add missing semi-colons.
1531 * f-exp.y: Add missing semi-colons.
1532 * m2-exp.y: Add missing semi-colons.
1533 * p-exp.y: Add missing semi-colons.
1534 Add empty action to start rule to avoid a type clash error when
1535 building with bison >= 1.50.
1536
1537 2002-11-06 Jim Blandy <jimb@redhat.com>
1538
1539 * macrotab.h (struct macro_source_file): Doc fix.
1540
1541 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1542
1543 * varobj.c (child_exists, cplus_number_of_children): Change
1544 STREQ macro references to strcmp.
1545 (cplus_name_of_child): Change code to handle the fact that
1546 fields are not necessarily contiguous with regards to their
1547 access control. This is a fix for PR gdb/792.
1548
1549 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1550
1551 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1552 * gdbarch.h, gdbarch.c: Regnerate.
1553 * frame.h (frame_register): Declare.
1554 * frame.c (frame_register): New function.
1555 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1556 GET_SAVED_REGISTER, otherwize call
1557 generic_unwind_get_saved_register.
1558 (frame_register_read): Use frame_register instead of
1559 get_saved_register.
1560
1561 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1562
1563 From Jim Ingham <jingham@apple.com>:
1564 * event-top.c (gdb_disable_readline): New function.
1565 (_initialize_event_loop): Move comment.
1566
1567 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1568
1569 * event-loop.c (start_event_loop): Add comment.
1570 Update copyright.
1571
1572 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1573
1574 * infcmd.c (default_print_registers_info): Do not call
1575 PRINT_REGISTER_HOOK.
1576
1577 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1578
1579 * sparc-tdep.c (sparc_print_register_hook): Make static.
1580 (sparc_print_registers_info): New function.
1581 (sparc_do_registers_info): New function.
1582 (sparclet_print_registers_info): New function.
1583 (sparclet_do_registers_info): New function.
1584 (do_sparc_print_registers_info): New function.
1585 (sparc_print_registers): New static function, clone of infcmd.c's
1586 default_print_registers_info.
1587 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1588 (sparclet_do_registers_info): Declare.
1589 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1590 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1591 Re-define.
1592 (sparc_do_registers_info): Declare.
1593 (PRINT_REGISTER_HOOK): Delete macro.
1594 (sparc_print_register_hook): Delete declaration.
1595
1596 2002-11-05 David Carlton <carlton@math.stanford.edu>
1597
1598 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1599 functions.
1600 (lookup_symbol_aux_local): New function.
1601 (lookup_symbol_aux_symtabs): New function.
1602 (lookup_symbol_aux_psymtabs): New function.
1603
1604 2002-11-05 David Carlton <carlton@math.stanford.edu>
1605
1606 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1607 previous values of 'objfile' and 'block'.
1608
1609 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1610
1611 * values.c (value_change_enclosing_type): Set
1612 enclosing_type field correctly also for the case where
1613 more memory needs to be allocated.
1614
1615 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1616
1617 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1618 of puts_filtered.
1619
1620 * i387-tdep.c (i387_print_float_info): Replace calls to
1621 register_read and deprecated_read_register_gen with calls to
1622 frame_register_read, and make the necessary adjustments to the
1623 surrounding code.
1624
1625 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1626
1627 * gdbarch.sh (register_reggroup_p): Allow default value.
1628 * gdbarch.h, gdbarch.c: Regenerate.
1629
1630 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1631
1632 * regcache.h: Add coment indicating replacements for deprecated
1633 functions.
1634
1635 2002-11-02 Andrew Cagney <cagney@redhat.com>
1636
1637 * reggroups.h, reggroups.c: New files.
1638 * regcache.c: Include "reggroups.h".
1639 (enum regcache_dump_what): Add `regcache_dump_groups'.
1640 (regcache_dump): Contract size of the "Type" column. When
1641 specified, dump the register's groups.
1642 (maintenance_print_register_groups): New function.
1643 (_initialize_regcache): Add command `maint print register-groups'.
1644 * Makefile.in (COMMON_OBS): Add reggroups.o
1645 (SFILES): Add reggroups.c.
1646 (reggroups_h): Define.
1647 (regcache.o, gdbarch.o): Update dependencies.
1648 (reggroups.o): Specify dependencies.
1649 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1650 Add opaque declaration for `struct reggroup' in generated .h file.
1651 Include "reggroups.h" in generated .c file.
1652 gdbarch.h, gdbarch.c: Re-generate.
1653
1654 2002-11-02 Andrew Cagney <cagney@redhat.com>
1655
1656 * regcache.h (deprecated_read_register_gen): Rename
1657 read_register_gen.
1658 (deprecated_write_register_gen): Rename write_register_gen.
1659 * i387-tdep.c: Update.
1660 * x86-64-linux-nat.c: Update
1661 * wince.c: Update.
1662 * thread-db.c: Update.
1663 * win32-nat.c: Update.
1664 * mips-tdep.c: Update.
1665 * d10v-tdep.c: Update.
1666 * cris-tdep.c: Update.
1667 * remote-sim.c: Update.
1668 * remote-rdi.c: Update.
1669 * remote-rdp.c: Update.
1670 * frame.c: Update.
1671 * target.c: Update.
1672 * blockframe.c: Update.
1673 * x86-64-tdep.c: Update.
1674 * xstormy16-tdep.c: Update.
1675 * sh-tdep.c: Update.
1676 * s390-tdep.c: Update.
1677 * rs6000-tdep.c: Update.
1678 * sparc-tdep.c: Update.
1679 * i386-tdep.c: Update.
1680 * dwarf2cfi.c: Update.
1681 * regcache.c: Update.
1682
1683 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1684
1685 New interix-specific files:
1686 * config/i386/nm-interix.h: New file.
1687 * config/i386/interix.mh: New file.
1688 * config/i386/interix.mt: New file.
1689 * i386-interix-nat.c: New file.
1690 * i386-interix-tdep.c: New file.
1691
1692 2002-11-01 Andrew Cagney <cagney@redhat.com>
1693
1694 * frame.h (deprecated_generic_get_saved_register): Rename
1695 generic_get_saved_register.
1696 * blockframe.c (deprecated_generic_get_saved_register): Update.
1697 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1698 (xstormy16_frame_saved_register): Update.
1699 * sh-tdep.c (sh_gdbarch_init): Update.
1700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1701 * ia64-tdep.c (ia64_get_saved_register): Update.
1702 * cris-tdep.c (cris_gdbarch_init): Update.
1703 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1704 * arm-tdep.c (arm_gdbarch_init): Update.
1705
1706 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1707
1708 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1709
1710 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1711
1712 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1713 trampolines in sigaction.
1714
1715 2002-10-31 Andrew Cagney <cagney@redhat.com>
1716
1717 * h8300-tdep.c: Include "gdb_assert.h".
1718 (h8300_print_register): Add gdbarch, file and frame parameters.
1719 Use frame_read_unsigned_register to read the register's value.
1720 Use fprintf_filtered to display output.
1721 (h8300_print_registers_info): Replace h8300_do_registers_info.
1722 (h8300_gdbarch_init): Set print_registers_info.
1723
1724 2002-10-31 Andrew Cagney <cagney@redhat.com>
1725
1726 * frame.c (frame_read_unsigned_register): New function.
1727 (frame_read_signed_register): New function.
1728 * frame.h (frame_read_unsigned_register): Declare.
1729 (frame_read_signed_register): Declare.
1730
1731 2002-10-31 Andrew Cagney <cagney@redhat.com>
1732
1733 * h8500-tdep.c (h8500_print_registers_info): New static function,
1734 clone of infcmd.c's default_print_registers_info.
1735 (h8500_do_registers_info): New funtion.
1736 (h8500_print_register_hook): Rename print_register_hook, make
1737 static.
1738
1739 * config/h8500/tm-h8500.h: Update copyright.
1740 (DEPRECATED_DO_REGISTERS_INFO): Define.
1741 (h8500_do_registers_info: Declare.
1742 (PRINT_REGISTER_HOOK): Delete macro.
1743 (print_register_hook): Delete function.
1744
1745 2002-10-31 Andrew Cagney <cagney@redhat.com>
1746
1747 * z8k-tdep.c (z8k_print_register_hook): Make static.
1748 (z8k_print_registers_info): New static function, clone of
1749 infcmd.c's default_print_registers_info.
1750 (z8k_do_registers_info): New function. Wrap
1751 z8k_print_registers_info.
1752 * config/z8k/tm-z8k.h: Update copyright.
1753 (PRINT_REGISTER_HOOK): Delete macro.
1754 (z8k_print_register_hook): Delete declaration.
1755 (DEPRECATED_DO_REGISTERS_INFO): Define.
1756 (z8k_do_registers_info): Declare.
1757
1758 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1759
1760 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1761 as this is already provided by value.h, and was actually causing
1762 a compilation error because of a conflict in parameter type
1763 declaration due to a missing const keyword.
1764 (low_text_segment_addres): Fix a compilation warning.
1765
1766 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1767
1768 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1769 registers without a name.
1770 (mips_linux_cannot_store_register): Don't store registers without
1771 a name.
1772
1773 2002-10-28 David Carlton <carlton@math.stanford.edu>
1774
1775 * symtab.c (find_addr_symbol): Delete. (It was already commented
1776 out.)
1777 * symtab.h: Delete prototype for find_addr_symbol.
1778
1779 2002-10-26 Andrew Cagney <cagney@redhat.com>
1780
1781 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1782 DO_REGISTERS_INFO.
1783 gdbarch.h, gdbarch.c: Re-generate.
1784 * infcmd.c (default_print_registers_info): Update reference.
1785 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1786 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1787 * sh-tdep.c (sh_gdbarch_init): Ditto.
1788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1789 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1790
1791 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1792
1793 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1794 cfi_init_extra_frame_info.
1795 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1796 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1797
1798 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1799 target where necessary. Add more comments and remove the ones
1800 that don't provide any useful information.
1801
1802 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1803 deprecated_read_register_dummy with
1804 frame_unwind_unsigned_register.
1805
1806 * i386-tdep.c (i386_extract_struct_value_address): Use
1807 regcache_raw_read_unsigned instead of
1808 regcache_cooked_read_unsigned since we know that the register
1809 we're reading isn't a pseudo register. Rename variable 'val' into
1810 the more descriptive 'addr'.
1811
1812 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1813 (x86_64_push_return_address): Add comment.
1814 (x86_64_pop_frame): Make static.
1815 (examine_argument): Clarify comment.
1816 (x86_64_skip_prologue): Make prolog_expact variable static.
1817
1818 * dwarf2cfi.c: Fix some formatting problems.
1819 (context_cpy, read_encoded_pointer): Clarify comments.
1820
1821 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1822 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1823 i386 target back into x86_64_gdbarch_init. Add some comments and
1824 remove meaningless ones.
1825
1826 2002-10-25 Andrew Cagney <cagney@redhat.com>
1827
1828 * complaints.h (struct deprecated_complaint): Rename `struct
1829 complaint'.
1830 * complaints.c (complain): Update.
1831 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1832 incorrect comment indicating that "symfile.h" was being included
1833 for the `struct complaint' definition.
1834 * remote-vx.c: Update.
1835 * objc-lang.c: Update.
1836 * xcoffread.c: Update.
1837 * hpread.c: Update.
1838 * mdebugread.c: Update.
1839 * stabsread.c: Update.
1840 * dwarf2read.c: Update.
1841 * dwarfread.c: Update.
1842 * elfread.c: Update.
1843 * coffread.c: Update.
1844 * stabsread.h: Update.
1845 * dbxread.c: Update.
1846 * buildsym.c: Update.
1847 * gdbtypes.c: Update.
1848 * macrotab.c: Update.
1849
1850 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1851
1852 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1853 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1854 (x86_64_init_abi): ...new function.
1855
1856 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1857 * i386v-nat.c: Include "i386-tdep.h".
1858
1859 2002-10-25 Andrew Cagney <cagney@redhat.com>
1860
1861 * gdbtypes.c (address_space_name_to_int): Update.
1862 (address_space_int_to_name): Update.
1863 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1864 multi-arch predicate.
1865 (address_class_name_to_type_flags): Ditto.
1866 * gdbarch.h, gdbarch.c: Re-generate.
1867
1868 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1869
1870 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1871
1872 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1873
1874 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1875
1876 * symtab.h (INIT_SAL): Delete macro.
1877 (init_sal): Export.
1878 * symtab.c (init_sal): New function.
1879
1880 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1881 to init_sal function call.
1882 (find_sal_from_funcs_and_line): Ditto.
1883 (all_sals_for_line): Ditto.
1884 * breakpoint.c (create_internal_breakpoint): Ditto.
1885 (create_fork_vfork_event_catchpoint): Ditto.
1886 (create_exec_event_catchpoint): Ditto.
1887 (parse_breakpoint_sals): Ditto.
1888 (watch_command_1): Ditto.
1889 (handle_gnu_4_16_catch_command): Ditto.
1890 (clear_command): Ditto.
1891 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1892 * infcmd.c (run_stack_dummy): Ditto.
1893 * infrun.c (process_event_stop_test): Ditto.
1894 (check_sigtramp2): Ditto.
1895 (step_over_function): Ditto.
1896 * linespec.c (decode_line_2): Ditto.
1897 (decode_line_1): Ditto.
1898 * source.c (line_info): Ditto.
1899 * symtab.c (find_pc_sect_line): Ditto.
1900
1901 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1902
1903 * dwarf2cfi.c (struct context)
1904 (struct context_reg): Moved to dwarf2cfi.h
1905 (context_alloc, frame_state_alloc, context_cpy):
1906 Made extern instead of static, removed prototypes.
1907 * dwarf2cfi.h (struct context)
1908 (struct context_reg): New, moved from dwarf2cfi.c
1909 (context_alloc, frame_state_alloc, context_cpy):
1910 New prototypes.
1911 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1912 Changed from static to extern.
1913 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1914 (LINUX_SIGCONTEXT_FP_OFFSET)
1915 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1916 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1917 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1918 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1919 set_gdbarch_*() calls now use x86-64 specific functions
1920 instead of DWARF2 CFI ones.
1921 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1922 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1923 (x86_64_init_extra_frame_info): New prototypes.
1924
1925 2002-10-23 David Carlton <carlton@math.stanford.edu>
1926
1927 * linespec.c: #include "parser-defs.h".
1928 Delete prototype for find_template_name_end.
1929 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1930
1931 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1932
1933 * NEWS: add recent mi fixes.
1934 * varobj.c (struct varobj): Add new "updated" flag.
1935 (new_variable): Default "updated" flag to 0.
1936 (varobj_set_value): Set "updated" flag to 1 if value
1937 changes.
1938 (varobj_update): Check varobj "updated" flag before
1939 comparing old and refreshed values. Fix for
1940 PR gdb/702.
1941
1942 2002-10-23 David Carlton <carlton@math.stanford.edu>
1943
1944 * parse.c (parse_exp_1): Use BLOCK_START.
1945 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1946 SYMBOL_BLOCK_VALUE.
1947 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1948
1949 2002-10-23 David Carlton <carlton@math.stanford.edu>
1950
1951 * symtab.c: Delete cplusplus_hint.
1952 Delete prototype for find_template_name_end.
1953
1954 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1955
1956 * symtab.h: Update comment.
1957
1958 2002-10-23 Michael Snyder <msnyder@redhat.com>
1959
1960 * printcmd.c (address_info): Restore quotes in output.
1961 * valops.c (value_of_local): Restore quotes in error message.
1962
1963 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1964
1965 * symtab.c (symbol_demangled_name): New function.
1966 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1967 turning most of it into a function.
1968 (symbol_demangled_name): Export.
1969
1970 2002-10-23 Michael Snyder <msnyder@redhat.com>
1971
1972 * valops.c (value_of_local): Restore quotes in error message.
1973
1974 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1975
1976 * symtab.c (symbol_init_language_specific): New function.
1977 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1978 turning most of it into a function.
1979 (symbol_init_language_specific): Export.
1980
1981 2002-10-23 David Carlton <carlton@math.stanford.edu>
1982
1983 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1984 (dwarf_attr_name): Ditto.
1985 (dwarf_type_encoding_name): Ditto.
1986 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1987 (process_die): Handle DW_TAG_namespace,
1988 DW_TAG_imported_declaration, DW_TAG_imported_module.
1989 (read_namespace): New function.
1990
1991 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1992
1993 * configure.in: Define NEW_PROC_API on Interix too.
1994 * configure: Regenerate.
1995
1996 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1997
1998 * configure: Regenerate using the proper version of autoconf.
1999
2000 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2001
2002 * findvar.c (read_var_value): Temporarily disable TLS code, until
2003 complete TLS support is added.
2004
2005 2002-10-21 Jim Blandy <jimb@redhat.com>
2006 Elena Zannoni <ezannoni@redhat.com>
2007
2008 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2009 for thread local storage locations.
2010 (struct symbol): Add objfile field.
2011 (SYMBOL_OBJFILE): Define.
2012 * dwarf2read.c (is_thread_local): New static variable.
2013 (new_symbol): If variable is in thread local fill in address class
2014 and objfile appropriately.
2015 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2016 stack operation.
2017 * printcmd.c (address_info): Print the information for thread
2018 local storage variable.
2019 * findvar.c (read_var_value): In case of thread local variable,
2020 defer to the target vector code to compute address.
2021
2022 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2023
2024 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2025 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2026
2027 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2028
2029 * symtab.h (address_class): Rename
2030 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2031 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2032 * printcmd.c (address_info): Ditto.
2033 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2034
2035 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2036
2037 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2038 DBREG_DRX macro to acces debug registers.
2039
2040 * Makefile.in (i386obsd-tdep.o): New target.
2041
2042 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2043 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2044
2045 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2046 * config/i386/obsd.mt: New file.
2047 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2048 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2049 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2050 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2051 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2052 * i386obsd-tdep.c: New file.
2053
2054 2002-10-19 Adam Fedor <fedor@gnu.org>
2055
2056 * objc-exp.y (name_not_typename): Fix invalid comment.
2057
2058 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2059
2060 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2061 to allocate partial syms and macro byte caches.
2062
2063 2002-10-18 David Carlton <carlton@math.stanford.edu>
2064
2065 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2066
2067 2002-10-18 Adam Fedor <fedor@gnu.org>
2068
2069 * stabsread.c (find_name_end): New function.
2070 (define_symbol): Use it.
2071
2072 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2073
2074 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2075 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2076 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2077 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2078
2079 2002-10-17 David Carlton <carlton@math.stanford.edu>
2080
2081 * symfile.h: Add opaque declaration for struct obstack.
2082 Declare obsavestring to take a const char *.
2083 * symfile.c (obsavestring): Make first argument a const char *.
2084
2085 2002-10-16 Adam Fedor <fedor@gnu.org>
2086
2087 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2088 names when matching breakpoints in current file.
2089
2090 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2091
2092 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2093 (read_tag_pointer_type): Add address class support.
2094 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2095 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2096 New methods.
2097 * gdbarch.h, gdbarch.c: Regenerate.
2098 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2099 (make_type_with_address_space, recursive_type_dump): Add address
2100 class support.
2101 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2102 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2103 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2104
2105 2002-10-16 Klee Dienes <kdienes@apple.com>
2106
2107 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2108 to get the last character of a char[] buffer, not
2109 name[sizeof(vptr_name)-1].
2110
2111 2002-10-14 Adam Fedor <fedor@gnu.org>
2112
2113 * symtab.h: New objc_specific struct.
2114 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2115 (SYMBOL_DEMANGLED_NAME): Likewise.
2116
2117 2002-10-14 Adam Fedor <fedor@gnu.org>
2118
2119 * symfile.c (init_filename_language_table): Add ObjC file extension.
2120
2121 2002-10-14 Adam Fedor <fedor@gnu.org>
2122
2123 * utils.c (puts_filtered_tabular): New function.
2124 (fprintf_symbol_filtered): Get ObjC demangled name.
2125 * defs.h (puts_filtered_tabular): Declared.
2126
2127 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2128
2129 * c-lang.h (c_type_print_varspec_prefix): Delete.
2130 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2131 ``need_post_space'' parameter. Adjust all callers.
2132
2133 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2134
2135 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2136 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2137 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2138 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2139
2140 2002-10-13 Adam Fedor <fedor@gnu.org>
2141
2142 * source.c (print_source_lines): Update comments.
2143
2144 2002-10-13 Adam Fedor <fedor@gnu.org>
2145
2146 * valops.c (value_of_local): New function.
2147 (value_of_this): Use it.
2148 * value.h (value_of_local): Declared.
2149
2150 2002-10-13 Adam Fedor <fedor@gnu.org>
2151
2152 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2153 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2154
2155 2002-10-12 Adam Fedor <fedor@gnu.org>
2156
2157 * language.c (binop_result_type): Add language_objc to case.
2158 (integral_type): Likewise.
2159 (character_type): Likewise.
2160 (string_type): Likewise.
2161 (boolean_type): Likewise.
2162 (structured_type): Likewise.
2163 (binop_type_check): Likewise.
2164
2165 2002-10-11 Adam Fedor <fedor@gnu.org>
2166
2167 * printcmd.c (address_info): Print 'self' for ObjC.
2168
2169 2002-10-11 Adam Fedor <fedor@gnu.org>
2170
2171 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2172 OP_SELF.
2173
2174 2002-10-11 Adam Fedor <fedor@gnu.org>
2175
2176 * language.h (CAST_IS_CONVERSION): Add language_objc.
2177
2178 2002-10-11 Adam Fedor <fedor@gnu.org>
2179
2180 * defs.h (enum language): Add language_objc.
2181
2182 2002-10-11 Klee Dienes <kdienes@apple.com>
2183
2184 * corefile.c (read_memory_typed_address): New function.
2185 * gdbcore.h (read_memory_typed_address): Add prototype.
2186 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2187 to read a value destined for a CORE_ADDR, not read_memory_integer.
2188 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2189 (f77_get_dynamic_lowerbound): Ditto.
2190
2191 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2192
2193 * utils.c (string_to_core_addr): After turning string into
2194 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2195 which will do necessary sign-extension, etc.
2196
2197 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2198
2199 * c-exp.y (THIS): Delete token and grammar rule.
2200 (yylex): Don't return THIS.
2201 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2202 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2203 * demangle.c (cplus_markers): Update comment. Put '$'
2204 first. Remove CPLUS_MARKER.
2205 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2206 * jv-exp.y (THIS): Delete token and grammar rule.
2207 (yylex): Don't return THIS.
2208 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2209 * objc-exp.y (THIS): Delete token and grammar rule.
2210 (yylex): Don't return THIS.
2211 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2212 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2213 (read_member_functions): Likewise for opname.
2214 (read_tilde_fields): Use is_cplus_marker.
2215
2216 * defs.h (CPLUS_MARKER): Don't define.
2217 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2218 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2219 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2220 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2221 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2222
2223 * config/i386/tm-i386v4.h: Delete file.
2224 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2225 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2226 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2227 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2228 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2229 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2230 * config/i386/i386v4.mt (TM_FILE): Likewise.
2231 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2232
2233 2002-10-10 Marko Mlinar <markom@opencores.org>
2234
2235 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2236 accidentially not commited 2002-10-09
2237 * gdbarch.h, gdbarch.c: Re-generate.
2238
2239 2002-10-09 Marko Mlinar <markom@opencores.org>
2240
2241 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2242 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2243 * gdbarch.h, gdbarch.c: Re-generate.
2244
2245 2002-10-08 Petr Sorfa <petrs@caldera.com>
2246
2247 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2248
2249 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2250 so we can work on more than one compilation unit at a time. This
2251 helps prepare GDB to handle inter-CU die references.
2252 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2253 the code to be defined before struct comp_unit_head.
2254 (comp_unit_head): Added new members - offset, cu_head,
2255 begin_die, next and dwarf2_abbrevs.
2256 (dwarf2_abbrevs): Removed single static var; now member of
2257 struct comp_unit_head.
2258 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2259 members.
2260 (psymtab_to_symtab_1): Changed to work with the new
2261 struct comp_unit_head.
2262 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2263 constructs the dwarf2_abbrevs[] inside the cu_header.
2264 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2265 dwarf2_abbrev table to clean up.
2266 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2267 handling of dwarf2_abbrevs inside the cu_header.
2268 (read_partial_die): Now supports the call to the new
2269 dwarf2_lookup_abbrev.
2270 (read_full_die): Now supports the call to the new
2271 dwarf2_lookup_abbrev.
2272
2273 2002-10-06 Christopher Faylor <cgf@redhat.com>
2274
2275 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2276 insure that shell variables, such as "transformed_name" are propagated
2277 to later shell statements in rule.
2278
2279 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2280
2281 * config/i386/nm-i386sco.h: Add protection against
2282 multiple-inclusion. Include "i386/nm-i386v.h".
2283 (REGISTER_U_ADDR): Remove define.
2284 (i386_register_u_addr): Remove prototype.
2285
2286 2002-10-04 Michael Snyder <msnyder@redhat.com>
2287
2288 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2289 before treating it as a single-step event.
2290
2291 2002-10-03 Adam Fedor <fedor@gnu.org>
2292
2293 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2294 (objc_demangle): Remove assignment in if statements, Replace
2295 free with xfree.
2296 (add_msglist): Likewise.
2297 (end_msglist): Likewise.
2298 (complare_selectors): Likewise.
2299 (selectors_info): Likewise.
2300 (compare_classes): Likewise.
2301 (classes_info): Likewise.
2302 (print_object_command): Likewise.
2303 (find_objc_msgcall_submethod): Replace PTR with void *.
2304 * objc-lang.h: Remove check for __STDC__.
2305
2306 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2307
2308 * ui-out.h (ui_out_field_fmt_int): New prototype.
2309 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2310 of field width and alignment.
2311 * stack.c (print_frame_info_base): When printing frame level, use
2312 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2313 PR gdb/192
2314
2315 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2316
2317 * MAINTAINERS: Add self to Write After Approval list.
2318
2319 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2320
2321 * infcmd.c (interrupt_target_command_wrapper): Delete.
2322 (interrupt_target_command): Make non static.
2323 (nofp_registers_info): Make static.
2324 * stack.c (return_command_wrapper): Delete.
2325 (return_command): Make non static.
2326
2327 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2328
2329 * event-top.c (gdb_setup_readline): New function. Code moved from
2330 _initialize_event_loop().
2331 (_initialize_event_loop): Call gdb_setup_readline().
2332
2333 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2334
2335 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2336 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2337 * gdbarch.h, gdbarch.c: Re-generate.
2338
2339 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2340
2341 Fix PR gdb/778
2342 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2343 before recursing.
2344 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2345 of fill_in_vptr_fieldno.
2346
2347 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2348
2349 * inferior.h (registers_info, stepi_command, nexti_command,
2350 continue_command, interrupt_target_command): Export from infcmd.c.
2351 * frame.h (args_info, selected_frame_level_changed_hook,
2352 return_command): Export from stack.c.
2353 * v850ice.c (stepi_command, nexti_command, continue_command): use
2354 prototypes from inferior.h.
2355 * tracepoint.c (registers_info, args_info, locals_info): Use
2356 prototypes from frame.h and inferior.h.
2357 * Makefile.in (mi-main.o): Add dependency on frame.h.
2358
2359 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2360
2361 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2362 value in register 3 adjusted by ppc_gp0_regnum.
2363
2364 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2365
2366 2002-10-02 Marko Mlinar <markom@opencores.org>
2367
2368 * MAINTAINERS: Add myself to the Write After Approval list.
2369
2370 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2371
2372 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2373 of the section for the N64 ABI, fixed.
2374
2375 * config/mips/tm-irix6.h: Include solib.h.
2376
2377 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2378
2379 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2380 GNU operators.
2381
2382 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2383
2384 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2385 and that "mi0" syntax has been removed.
2386
2387 2002-09-30 David Carlton <carlton@math.stanford.edu>
2388
2389 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2390 * ppc-sysv-tdep.c: #include "gdb_string.h".
2391 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2392 pacify GCC.
2393
2394 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2395
2396 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2397 "vrsave"'s register number.
2398
2399 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2400
2401 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2402 use frame_unwind_signed_register to obtain the PC.
2403 (mips_frame_chain): Handle a generic dummy frame.
2404 (mips_init_extra_frame_info): When a generic dummy frame, don't
2405 re-compute the frame base.
2406 (mips_pop_frame): Handle generic dummy frames.
2407 (mips_gdbarch_init): When generic dummy frames, set
2408 use_generic_dummy_frames, push_dummy_frame to
2409 generic_push_dummy_frame, pc_in_call_dummy to
2410 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2411 generic_save_dummy_frame_tos.
2412
2413 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2414
2415 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2416 against TOP when TOP was explictly set.
2417 (generic_push_dummy_frame): Set TOP to zero.
2418
2419 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2420
2421 * event-loop.c (start_event_loop): Rename variable 'result' to
2422 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2423
2424 2002-09-30 Keith Seitz <keiths@redhat.com>
2425
2426 * gdb-events.sh (selected_thread_changed): New event.
2427 * gdb-events.c: Regenerated.
2428 * gdb-events.h: Regenerated.
2429
2430 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2431
2432 * MAINTAINERS: Add self to Write After Approval list.
2433
2434 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2435
2436 * disasm.c: New file.
2437 * disasm.h: New file.
2438 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2439 (compare_lines): Ditto.
2440 (dump_insns): Ditto.
2441 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2442 argument.
2443 (do_assembly_only): Ditto.
2444 (do_disassembly): Renamed to gdb_disassembly and moved to
2445 disasm.c. Sdded uiout argument.
2446 * Makefile.in: Add new files. Reorder SFILES list. Update
2447 dependencies. Include libgdb.a later in the insight executable.
2448
2449 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2450
2451 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2452 bfd/elf64-alpha-fbsd.c.
2453
2454 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2455
2456 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2457 i386gnu-tdep.c.
2458
2459 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2460
2461 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2462 __FUNCTION__.
2463 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2464 function name.
2465 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2466 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2467 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2468 (S_msg_sig_post_reply): Ditto.
2469
2470 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2471
2472 * sh-tdep.c (sh_use_struct_convention): Use definition according
2473 to ABI.
2474 (sh_push_arguments): Store in register with correct endianess.
2475 (sh_default_store_return_value): Ditto.
2476 (sh_gdbarch_init): Set sizeof long double to 8.
2477
2478 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2479
2480 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2481 Fix some whitespace problems.
2482
2483 2002-09-27 David Carlton <carlton@math.stanford.edu>
2484
2485 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2486 (mcore-tdep.o): Ditto.
2487 (ns32k-tdep.o): Ditto.
2488 (ns32knbsd-tdep.o): Ditto.
2489 (sh3-rom.o): Ditto.
2490 (vax-tdep.o): Ditto.
2491 * cris-tdep.c: #include "gdb_string.h"
2492 * mcore-tdep.c: Ditto.
2493 * ns32k-tdep.c: Ditto.
2494 * ns32knbsd-tdep.c: Ditto.
2495 * sh3-rom.c: Ditto.
2496 * vax-tdep.c: Ditto.
2497
2498 2002-09-27 David Carlton <carlton@math.stanford.edu>
2499
2500 * config/djgpp/fnchange.lst: Add entries for
2501 gdb/testsuite/gdb.c++/m-static files.
2502
2503 2002-09-27 Jim Wilson <wilson@redhat.com>
2504
2505 * MAINTAINERS: Add myself to the Write After Approval list.
2506
2507 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2508
2509 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2510
2511
2512 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2513
2514 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2515 frame.
2516
2517 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2518
2519 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2520 (rs6000_struct_return_address): Delete variable.
2521 (rs6000_store_struct_return): Update.
2522 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2523 deprecated_extract_struct_value_address.
2524 (rs6000_frame_align): New function.
2525 (rs6000_gdbarch_init): Set frame_align.
2526
2527 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2528
2529 From Grace Sainsbury <graces@redhat.com>:
2530 * Makefile.in (gdbtk-main.o): New target.
2531 (gdb.o): New target.
2532 (main_h): Define.
2533 (main.o): Update dependencies.
2534 (gdb$(EXEEXT)): Add gdb.o.
2535 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2536 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2537 (SUBDIR_GDBTK_CLEAN): Set.
2538 (install-gdbtk): Install the insight binary.
2539 (uninstall-gdbtk): New target.
2540 (all-gdbtk, clean-gdbtk): New rule.
2541 * top.c (use_windows): Default to zero.
2542 * main.c: Include "main.h".
2543 (main): Delete.
2544 (struct captured_main_args): Delete.
2545 (gdb_main): New function.
2546 * main.h: New file.
2547 * gdb.c: New File.
2548
2549 2002-09-25 Andrew Cagney <cagney@redhat.com>
2550
2551 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2552 (frame_map_regnum_to_name): New function.
2553 (frame_map_name_to_regnum): New function.
2554 * frame.h (frame_map_name_to_regnum): Declare.
2555 (frame_map_regnum_to_name): Declare.
2556 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2557 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2558 * parse.c: Do not include "builtin-regs.h".
2559 (target_map_name_to_register): Delete function.
2560 (write_dollar_variable): Use frame_map_name_to_regnum.
2561 * parser-defs.h (target_map_name_to_register): Delete declaration.
2562 * expprint.c: Include "frame.h".
2563 (print_subexp): Use frame_map_regnum_to_name.
2564 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2565 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2566
2567 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2568
2569 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2570 wasn't saved, and the next innermost frame is a dummy, return the
2571 dummy frame's link register.
2572
2573 2002-09-24 Jim Blandy <jimb@redhat.com>
2574
2575 Fix from Paul Breed:
2576 * main.c (captured_main): Add a `break' after the case for 'b'.
2577
2578 2002-09-24 Keith Seitz <keiths@redhat.com>
2579
2580 * varobj.c (c_type_of_child): Use get_target_type instead
2581 of TYPE_TARGET_TYPE.
2582
2583 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2584
2585 * source.c (get_current_or_default_source_symtab_and_line): Remove
2586 function.
2587 (set_default_source_symtab_and_line): New function. Attempts to
2588 determine a source file to list lines from if one is not currently
2589 defined.
2590 (get_current_source_symtab_and_line): Initialize sal.pc and
2591 sal.end fields.
2592 (set_current_source_symtab_and_line): Mark argument as const.
2593 * source.h: Update declarations and comments.
2594 * linespec.c (decode_line_1): Replace call to removed routine above.
2595 * stack.c (print_frame_info_base): Ditto.
2596 * cli/cli-cmds.c (edit_command): Ditto.
2597 (list_command): Ditto.
2598
2599 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2600
2601 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2602 sal.pc and sal.end fields.
2603 (get_current_or_default_source_symtab_and_line): Ditto.
2604 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2605 so we do not cause a new source symtab to be searched for (reverting an
2606 unintentional change from the 2002-09-20 patch).
2607 * scm-lang.c (scm_unpac): Ditto.
2608
2609 2002-09-21 Andrew Cagney <cagney@redhat.com>
2610
2611 * complaints.c (symfile_explanations): Remove new-line from
2612 ``isolated_message''.
2613 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2614 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2615
2616 2002-09-20 Nick Clifton <nickc@redhat.com>
2617
2618 * NEWS: Announce that V850EA ISA is no longer supported.
2619 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2620
2621 2002-09-20 David Carlton <carlton@math.stanford.edu>
2622
2623 * Makefile.in (c-lang.o): Correct dependencies.
2624 (utils.o): Gather dependencies.
2625 (charset.o): Move.
2626 * c-lang.c: #include "gdb_string.h"
2627
2628 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2629
2630 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2631 * cli/cli-cmds.c (list_command): New function. Implements the new
2632 cli edit command.
2633 (_init_cli_cmds): Add new command definition.
2634 * gdb.1: Document edit command.
2635 * doc/gdb.texinfo: Document edit command.
2636
2637 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2638
2639 * source.c: Make global variables current_source_symtab and
2640 current_source_line static.
2641 (list_command): Moved to cli/cli-cmds.c.
2642 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2643 (get_first_line_listed): New accessor function.
2644 (get_lines_to_list): New accessor function.
2645 (get_current_source_symtab_and_line): New function. Retrieves the
2646 position in the source code that we consider current.
2647 (get_current_or_default_source_symtab_and_line): New function.
2648 Like the above but attempts to determine a default position if one
2649 is not currently defined.
2650 (set_current_source_symtab_and_line): New function. Sets the source
2651 code position considered current and returns the previously set one.
2652 (clear_current_source_symtab_and_line): Reset stored information about
2653 a current source line.
2654 (_initialize_source): Remove registration for the "list" command and
2655 its alias.
2656 * source.h: Add declarations for the new functions above.
2657 * symtab.h: Remove declarations for the global variables mentioned
2658 above.
2659 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2660 obtain current source line.
2661 * linespec.c (decode_line_1): Ditto.
2662 * macroscope.c (default_macro_scope): Ditto.
2663 * scm-lang.c (scm_unpac): Ditto.
2664 * stack.c (print_frame_info_base): Ditto.
2665 * symfile.c (clear_symtab_users): Ditto.
2666 * symtab.c (decode_line_spec): Ditto.
2667 * cli/cli-cmds.c (list_command): Moved here from source.c.
2668 (ambiguous_line_spec): Moved here from source.c.
2669 (_init_cli_cmds): Add definition for "list" and its alias.
2670 * Makefile.in: Update dependencies.
2671
2672 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2673
2674 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2675 with what gcc thinks is correct.
2676
2677 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2678
2679 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2680 multiple register push instruction.
2681
2682 2002-09-19 Jim Blandy <jimb@redhat.com>
2683
2684 Add support for distinct host and target character sets.
2685 * charset.c, charset.h: New files.
2686 * c-exp.y: #include "charset.h".
2687 (yylex): Convert character and string literals to the target
2688 character set, before returning them as the semantic value of the
2689 token.
2690 * c-lang.c: #include "charset.h".
2691 (c_emit_char): Use charset-specific methods to recognize
2692 characters with backslash escape forms, to decide which characters
2693 to print literally and which to print using numeric escape
2694 sequences, and to convert target characters to host characters
2695 before printing.
2696 * utils.c: #include "charset.h".
2697 (no_control_char_error): New function.
2698 (parse_escape): Use charset-specific methods to recognize
2699 backslash escapes, parse `control character' notation, and convert
2700 characters from the host character set to the target character set.
2701 * configure.in: Set the default host character set.
2702 Check where to find iconv, and what its argument types might be.
2703 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2704 * Makefile.in (SFILES): List charset.c.
2705 (COMMON_OBS): List charset.o.
2706 (charset.o): New rule.
2707 (charset_h): New header dependency variable.
2708 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2709 (LIBICONV): New variable, set by configure.
2710 (CLIBS): Include $(LIBICONV) here.
2711 * aclocal.m4, config.in, configure: Regenerated.
2712
2713 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2714
2715 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2716 bison 1.35 warning.
2717
2718 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2719
2720 * gdb_mbuild.sh: New file.
2721
2722 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2723
2724 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2725
2726 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2727
2728 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2729 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2730 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2731 valops.c, value.h: Revert previous change.
2732
2733 2002-09-18 Michael Snyder <msnyder@redhat.com>
2734
2735 Preliminary support for Objective-C:
2736 * defs.h (language_objc): New enum value.
2737 (puts_filtered_tabular): Declaration only, exported from utils.c.
2738 (skip_quoted): Delete, declared in completer.h.
2739 * c-exp.y: Include completer.h.
2740 * p-exp.y: Ditto.
2741 * jv-exp.y: Ditto.
2742 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2743 New operator enum values.
2744 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2745 * language.c (binop_result_type): Handle language_objc case.
2746 (integral_type, character_type, string_type, boolean_type,
2747 structured_type, binop_type_check): Ditto.
2748 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2749 (struct objc_specific): Add to general_symbol_info.
2750 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2751 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2752 * parser-defs.h (struct objc_class_str): New struct type.
2753 (start_msglist, end_msglist, add_msglist): Declaration only,
2754 exported from objc-lang.c.
2755 * value.h (value_of_local, value_nsstring,
2756 call_function_by_hand_expecting_type): Exported from valops.c.
2757 * valops.c (find_function_addr): Export.
2758 (call_function_by_hand_expecting_type): New function.
2759 (value_of_local): New function.
2760 * symfile.c (init_filename_language_table): Add ".m" extension
2761 for Objective-C.
2762 * utils.c (puts_filtered_tabular): New function.
2763 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2764 (set/show demangle): Extend help-string to refer to ObjC.
2765 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2766 * stabsread.c (symbol_reference_defined): Objective-C symbols
2767 may contain colons: make allowances when scanning stabs strings
2768 for colons.
2769 (objc_find_colon): New function.
2770 * printcmd.c (address_info): If language == objc then print
2771 "self" instead of "this".
2772 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2773 OP_NSSTRING, and OP_SELF.
2774 (prefixify_subexp): Ditto.
2775 * source.c (print_source_lines): Mention objc in comment.
2776 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2777 method names.
2778
2779 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2780
2781 * complaints.h: Update copyright.
2782 (struct complaints): Declare.
2783 (struct complaint): Make `message' constant.
2784 (internal_complaint): Declare.
2785 (complaint): Declare.
2786 (complaint_root): Delete declaration.
2787 (symfile_complaints): Delete declaration.
2788 (struct complaints): Add opaque declaration.
2789 (clear_complaints): Add a complaints parameter.
2790 * complaints.c: Update copyright.
2791 (enum complaint_series): Define.
2792 (complaint_root): Delete.
2793 (struct complaints): Define.
2794 (complaint_sentinel, symfile_complaint_book): New variables.
2795 (symfile_explanations, symfile_complaints): New variables.
2796 New variables.
2797 (get_complaints): New function.
2798 (vcomplaint): New function.
2799 (complaint): New function.
2800 (internal_complaint): New function.
2801 (complain): Call vcomplain with symfile_complaint.
2802 (clear_complaints): Rewrite.
2803 (_initialize_complaints): Use add_setshow_command.
2804 * Makefile.in (complaints.o): Update dependencies.
2805 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2806 to call to clear_complaints.
2807 (new_symfile_objfile, reread_symbols): Ditto.
2808 (oldsyms_complaint): Delete.
2809 (empty_symtab_complaint, unknown_option_complaint): Delete.
2810 (free_named_symtabs): Use complaint instead of complain.
2811
2812 2002-09-18 Michael Snyder <msnyder@redhat.com>
2813
2814 Contributed by Apple Computer, Inc. Merged with current sources
2815 by Adam Fedor <fedor@doc.com> [cagney].
2816
2817 * objc-lang.c: First clean-up round: comments, indentation.
2818 * objc-lang.h: Ditto.
2819 * objc-lang.y: Ditto.
2820
2821 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2822
2823 * maint.c (maintenance_internal_error): Print the parameter as the
2824 error message.
2825 (maintenance_internal_warning): New function.
2826 (_initialize_maint_cmds): Add command `maint internal-warning'.
2827
2828 * defs.h (internal_warning, internal_vwarning): Declare.
2829 * utils.c (struct internal_problem): Define.
2830 (internal_vproblem): New function.
2831 (internal_warning): New function.
2832 (internal_vwarning): New function.
2833 (internal_warning_problem, internal_error_problem): New variables.
2834 (internal_verror): Just call internal_vproblem.
2835
2836 2002-09-18 Michael Snyder <msnyder@redhat.com>
2837
2838 * objc-lang.c: New file, support for Objective-C.
2839 Preliminary check-in, not yet integrated into gdb.
2840 * objc-lang.h: New file.
2841 * objc-exp.y: New file.
2842
2843 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2844
2845 * infrun.c (signal_stop_update): Convert definition to ISO C.
2846 (signal_print_update): Ditto.
2847 (signal_pass_update): Ditto.
2848 * inflow.c (terminal_save_ours): Ditto.
2849
2850 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2851 comments.
2852
2853 * config/djgpp/fnchange.lst: Handle name clashes between
2854 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2855 bfd/coff-tic80.c.
2856
2857 * i386-linux-tdep.h: Fix tipo.
2858
2859 2002-09-18 Adam Fedor <fedor@gnu.org>
2860
2861 * MAINTAINERS: Add myself to the Write After Approval list.
2862
2863 2002-09-18 Jim Blandy <jimb@redhat.com>
2864
2865 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2866 texthigh and textlow to reader-specific structs caused
2867 objfile_relocate to miss them. This is fixable, but the work that
2868 the change was supposed to prepare GDB for never got done anyway.
2869
2870 2002-09-18 David Carlton <carlton@math.stanford.edu>
2871
2872 * MAINTAINERS: Alphabetize Write After Approval list.
2873
2874 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2875
2876 Fix PR gdb/709
2877 * values.c (value_static_field): Call read_var_value.
2878
2879 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2880
2881 * valops.c (hand_function_call): Align the initial stack pointer
2882 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2883 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2884 return value.
2885 * mips-tdep.c (mips_frame_align): New function.
2886 (mips_gdbarch_init): Set frame_align.
2887 * gdbarch.sh (FRAME_ALIGN): New method.
2888 * gdbarch.h, gdbarch.c: Re-generate.
2889
2890 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2891
2892 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2893 registers.
2894
2895 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2896
2897 * NEWS: Mention that MIPS $fp behavior changed.
2898 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2899 reference to FP_REGNUM.
2900 (mipsnbsd_cannot_store_register): Ditto.
2901 * mips-linux-nat.c: Update copyright.
2902 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2903 (mips_linux_cannot_store_register): Ditto.
2904 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2905 * config/mips/tm-mips.h: Update copyright.
2906 (FP_REGNUM): Delete macro.
2907 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2908 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2909 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2910 (mips_r3041_reg_names, mips_r3051_reg_names)
2911 (mips_r3081_reg_names): Replace "fp" with "".
2912 Fix PR gdb/480.
2913
2914 2002-09-17 Theodore A. Roth <troth@verinet.com>
2915
2916 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2917 generic_read_register_dummy() (PR gdb/703).
2918 (avr_push_return_address): #if 0 out unused vars.
2919 (avr_gdbarch_init): Enable use of avr_push_return_address().
2920
2921 2002-09-17 Michael Snyder <msnyder@redhat.com>
2922
2923 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2924 RTE will take care of it.
2925
2926 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2927
2928 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2929 invalid, return SP_REGNUM.
2930
2931 2002-09-17 Michael Snyder <msnyder@redhat.com>
2932
2933 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2934 point registers without sign extension.
2935
2936 2002-09-17 Andrew Cagney <cagney@redhat.com>
2937
2938 * blockframe.c (deprecated_read_register_dummy): Rename
2939 generic_read_register_dummy.
2940 * frame.c (frame_unwind_signed_register): New function.
2941 (frame_unwind_unsigned_register): New function.
2942 * frame.h (frame_unwind_signed_register): Declare.
2943 (frame_unwind_unsigned_register): Declare.
2944 (deprecated_read_register_dummy): Rename
2945 generic_read_register_dummy.
2946
2947 * h8300-tdep.c (h8300_frame_chain): Update.
2948 (h8300_frame_saved_pc): Update.
2949 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2950 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2951 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2952 (s390_frame_chain): Update.
2953 * v850-tdep.c (v850_find_callers_reg): Update.
2954 (v850_frame_saved_pc): Update.
2955 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2956 (m32r_find_callers_reg): Update.
2957 (m32r_frame_saved_pc): Update.
2958 * sh-tdep.c (sh_find_callers_reg): Update.
2959 (sh64_get_saved_pr): Update.
2960 (sh_init_extra_frame_info): Update.
2961 (sh_init_extra_frame_info): Update.
2962 (sh64_init_extra_frame_info): Update.
2963 (sh64_init_extra_frame_info): Update.
2964 * mcore-tdep.c (mcore_find_callers_reg): Update.
2965 (mcore_frame_saved_pc): Update.
2966 (mcore_init_extra_frame_info): Update.
2967 * i386-tdep.c (i386_frame_saved_pc): Update.
2968 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2969 (ia64_init_extra_frame_info): Update.
2970 (ia64_init_extra_frame_info): Update.
2971 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2972 * cris-tdep.c (cris_init_extra_frame_info): Update.
2973 * avr-tdep.c (avr_frame_chain): Update.
2974 (avr_init_extra_frame_info): Update.
2975 (avr_frame_saved_pc): Update.
2976 * arm-tdep.c (arm_find_callers_reg): Update.
2977 (arm_init_extra_frame_info): Update.
2978 (arm_frame_saved_pc): Update.
2979
2980 2002-09-17 Tom Tromey <tromey@redhat.com>
2981
2982 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2983 is "'".
2984
2985 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2986
2987 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2988 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2989 NEXT_PROLOGUE_INSN.
2990 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2991 NEXT_PROLOGUE_INSN.
2992
2993 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2994
2995 * osfsolib.c: Remove file, replaced by solib-osf.c.
2996 * Makefile.in: Remove compilation rules for osfsolib.c.
2997
2998 2002-09-16 David Carlton <carlton@math.stanford.edu>
2999
3000 * cp-valprint.c (cp_print_class_method): Correct args to
3001 check_stub_method_group.
3002
3003 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3004
3005 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3006 `set architecture'. Unify naming convention of functions.
3007 (h8300_skip_prologue): Improve prologue analysis.
3008 (h8300_push_arguments): Rewritten to more closely match GCC's
3009 bizarre argument-passing behavior, along with the comment describing
3010 said behavior.
3011 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3012 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3013 sim, remote-e7000.c, remote-hms.c and remote.c
3014
3015 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3016
3017 * i386-tdep.c (gdb_print_insn_i386): Removed.
3018 (i386_print_insn): New function.
3019 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3020 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3021 tm_print_insn_info.
3022
3023 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3024
3025 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3026 zero.
3027
3028 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3029
3030 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3031 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3032 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3033
3034 2002-09-13 Christopher Faylor <cgf@redhat.com>
3035
3036 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3037
3038 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3039
3040 * gdbtypes.c (check_stub_method): Make static.
3041 (check_stub_method_group): New function.
3042 * gdbtypes.h: Update prototypes.
3043 * cp-support.c: New file.
3044 * cp-support.h: New file.
3045
3046 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3047 (update_method_name_from_physname): New function.
3048 (read_member_functions): Correct method names for operators
3049 and v3 constructors/destructors. Separate v2 constructors and
3050 destructors.
3051 * Makefile.in (stabsread.o): Update dependencies.
3052 (SFILES): Add cp-support.c.
3053 (COMMON_OBS): Add cp-support.o.
3054 (cp_support_h, cp-support.o): Add.
3055
3056 * cp-valprint.c (cp_print_class_method): Call
3057 check_stub_method_group instead of check_stub_method. Remove
3058 extraneous QUITs.
3059 * p-valprint.c (pascal_object_print_class_method): Likewise.
3060 * valops.c (search_struct_method): Likewise.
3061 (find_method_list, value_struct_elt_for_reference): Likewise.
3062
3063 2002-09-13 Andrew Cagney <cagney@redhat.com>
3064
3065 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3066 * gdbarch.h, gdbarch.c: Regenerate.
3067
3068 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3069
3070 * frame.c (find_saved_register): Delete function.
3071 * frame.h (find_saved_register): Delete declaration.
3072 Fix PR gdb/631.
3073
3074 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3075
3076 * mips-tdep.c (read_next_frame_reg): Re-hack using
3077 frame_register_unwind.
3078
3079 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3080
3081 * mips-tdep.c (mips_get_saved_register): Re-hack using
3082 frame_register_unwind.
3083
3084 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3085
3086 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3087 vector. Will be useful for Interix.
3088 * gdbarch.h, gdbarch.c: Regenerate.
3089
3090 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3091 name of the malloc function by NAME_OF_MALLOC.
3092
3093 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3094
3095 * value.h (find_function_in_inferior): Add const keyword to
3096 one of the parameters. Allows us to invoke this function with
3097 a const char *.
3098 * valops.c (find_function_in_inferior): Likewise.
3099
3100 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3101
3102 * exec.c (xfer_memory): Fix compilation warning with old versions
3103 of GCC.
3104 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3105
3106 2002-09-12 David Carlton <carlton@math.stanford.edu>
3107
3108 * symtab.h: Run through gdb_indent.h.
3109 Add 2002 to Copyright year list.
3110
3111 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3112
3113 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3114 mach constants.
3115 * MAINTAINERS: Add myself to write after approval list.
3116
3117 2002-09-11 J. Brobecker <brobecker@gnat.com>
3118
3119 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3120
3121 2002-09-11 J. Brobecker <brobecker@gnat.com>
3122
3123 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3124 Interix.
3125
3126 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3127
3128 * procfs.c (do_detach): Clear current signal, not just fault.
3129 Corrects problem with breakpoint trap signal leaking to detached
3130 process on Tru64.
3131
3132 2002-09-10 Michael Snyder <msnyder@redhat.com>
3133
3134 * buildsym.c (finish_block): Protect against null pointer.
3135
3136 2002-09-10 Andrew Cagney <cagney@redhat.com>
3137
3138 * infcmd.c (default_print_registers_info): Send all output to
3139 ``file'' instead of ``gdb_stdout''.
3140
3141 2002-09-10 Michael Snyder <msnyder@redhat.com>
3142
3143 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3144 LONGEST, and use signed register read (addresses are sign-
3145 extended for mips).
3146
3147 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3148
3149 * event-loop.c (gdb_do_one_event): Make public.
3150 * event-loop.h (gdb_do_one_event): Declare.
3151
3152 2002-09-10 Jeff Law <law@redhat.com>
3153
3154 * infttrace.c (child_resume): Simplify and rework to avoid
3155 TT_PROC_CONTINUE.
3156
3157 2002-09-09 Fred Fish <fnf@intrinsity.com>
3158
3159 * printcmd.c (print_scalar_formatted): "len" is the number of
3160 target bytes, NOT the number of target bits.
3161
3162 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3163
3164 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3165 * top.c (init_main): Set rl_terminal_name.
3166
3167 2002-09-08 Aidan Skinner <aidan@velvet.net>
3168
3169 * ada-lang.c (ada_array_bound, ada_type_match,
3170 _initialize_ada_language): Fix K&R definitions.
3171 * ada-tasks.c (get_current_task): Fix K&R definitions.
3172 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3173
3174 2002-09-07 Christopher Faylor <cgf@redhat.com>
3175
3176 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3177 Add XP.
3178
3179 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3180
3181 * i386-tdep.c (i386_register_virtual_type,
3182 i386_register_convertible, i386_register_convert_to_virtual,
3183 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3184 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3185 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3186 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3187 Don't set push_arguments twice.
3188
3189 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3190 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3191 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3192 sigtramp_end to NULL.
3193 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3194 defines.
3195 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3196
3197 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3198 whitespace.
3199
3200 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3201 * gdbarch.h, gdbarch.c: Re-generate.
3202 * blockframe.c (find_pc_sect_partial_function): Convert to use
3203 SIGTRAMP_START_P predicate.
3204
3205 2002-09-05 Michael Snyder <msnyder@redhat.com>
3206
3207 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3208 generic_dummy_frame method and old method. Also distinguish
3209 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3210 (arm_extract_return_value): Use new regcache method.
3211
3212 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3213 adjustment that doesn't conform to the ABI.
3214 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3215 saved regcache, not from current regcache.
3216
3217 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3218
3219 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3220 * README: Update.
3221
3222 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3223
3224 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3225 if arm_apcs_32 is false.
3226
3227 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3228
3229 GDB 5.3 branch created.
3230
3231 2002-09-03 Theodore A. Roth <troth@verinet.com>
3232
3233 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3234 generic_unwind_get_saved_register.
3235
3236 2002-09-03 David Carlton <carlton@math.stanford.edu>
3237
3238 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3239 argument (PR gdb/653). Update call to smash_to_method_type.
3240 (read_structure_scope): Update call to dwarf2_add_member_fn.
3241
3242 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3243
3244 * x86-64-linux-tdep.c: Include gdb_string.h
3245 * x86-64-linux-nat.c: Ditto.
3246
3247 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3248
3249 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3250 when YYDEBUG is set to 1.
3251 * c-exp.y: Likewise.
3252 * f-exp.y: Likewise.
3253 * jv-exp.y: Likewise.
3254 * m2-exp.y: Likewise.
3255 * p-exp.y: Likewise.
3256
3257 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3258
3259 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3260 dependency list.
3261 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3262 solib_svr4_fetch_link_map_offsets to
3263 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3264 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3265 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3266 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3267 solib-svr4.o, and solib-legacy.o.
3268 * config/i386/tm-nbsd.h: Include solib.h.
3269
3270 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3271
3272 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3273 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3274 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3275 comment noting that this needs its own target configuration.
3276 * config/i386/nbsd.mt: New file.
3277 * config/i386/nbsdaout.mt: Remove.
3278 * config/i386/nbsdelf.mt: Ditto.
3279 * config/i386/tm-nbsdaout.h: Ditto.
3280
3281 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3282
3283 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3284 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3285 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3286 tdep->sigtramp_end.
3287 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3288 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3289 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3290
3291 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3292
3293 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3294 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3295 * i386-tdep.h (i386bsd_init_abi): New prototype.
3296 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3297 function declaration.
3298 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3299 for NetBSD-a.out or NetBSD-ELF.
3300 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3301 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3302 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3303 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3304 and nbsd-tdep.h.
3305 (i386nbsd_pc_in_sigtramp): New function.
3306 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3307 i386nbsd_pc_in_sigtramp.
3308 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3309 and i386nbsdelf_init_abi OS ABI handlers.
3310 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3311 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3312
3313 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3314
3315 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3316 registers if the target really has them.
3317
3318 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3319
3320 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3321 than nbsd-tdep.h.
3322
3323 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3324
3325 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3326 list.
3327 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3328 (alphanbsd_skip_sigtramp_frame): New functions.
3329 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3330 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3331 to alphanbsd_sigcontext_addr.
3332
3333 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3334
3335 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3336 list.
3337 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3338 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3339 nbsd_pc_in_sigtramp.
3340 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3341 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3342 * nbsd-tdep.c: Include gdb_string.h.
3343 (nbsd_pc_in_sigtramp): New function.
3344 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3345 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3346 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3347 ppcnbsd_pc_in_sigtramp.
3348 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3349 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3350 shnbsd_pc_in_sigtramp.
3351 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3352 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3353 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3354
3355 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3356
3357 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3358 watchpoints to NULL.
3359 (insert_breakpoints): set val field of watchpoints if NULL.
3360
3361
3362 2002-08-29 Jim Blandy <jimb@redhat.com>
3363
3364 * symtab.c (lookup_symbol_aux): In the cases where we find a
3365 minimal symbol of an appropriate name and use its address to
3366 select a symtab to read and search, use `name' (as passed to us)
3367 as the demangled name when searching the symtab's global and
3368 static blocks, not the minsym's name.
3369
3370 2002-08-29 Keith Seitz <keiths@redhat.com>
3371
3372 * stack.c (print_frame_info_base): Always set current_source_symtab
3373 and current_source_line.
3374
3375 2002-08-29 Donn Terry <donnte@microsoft.com>
3376
3377 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3378
3379 2002-08-28 Keith Seitz <keiths@redhat.com>
3380
3381 * stack.c (select_frame): Add FIXME concerning selected-frame
3382 events.
3383 (select_frame_command): Send selected-frame-level-changed
3384 event notification, but only if the level actually changed.
3385 (up_silently_base): Add selected-frame-level-changed event
3386 notification.
3387 (down_silently_base): Likewise.
3388
3389 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3390
3391 * Makefile.in: Update dependencies for all gdb/*.c files.
3392
3393 2002-08-27 Tom Tromey <tromey@redhat.com>
3394
3395 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3396 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3397 Update dependencies.
3398 * i387-tdep.c: Include gdb_string.h.
3399 * osabi.c: Likewise.
3400 * i386-linux-nat.c: Likewise.
3401 * lin-lwp.c: Likewise.
3402 * ax-gdb.c: Likewise.
3403 * signals/signals.c: Likewise.
3404 * jv-valprint.c: Likewise.
3405 * p-lang.c: Likewise.
3406 * c-valprint.c: Likewise.
3407 * cp-abi.c: Likewise.
3408
3409 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3410
3411 * cli/cli-script.h (copy_command_lines): Export.
3412 * breakpoint.c: Include cli/cli-script.h.
3413 * Makefile.in (breakpoint.o): Update dependencies.
3414
3415 2002-08-26 Michael Snyder <msnyder@redhat.com>
3416
3417 * breakpoint.c (insert_breakpoints): Protect all references
3418 to 'process_warning'. Shorten long lines.
3419
3420 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3421
3422 * cli/cli-script.c (copy_command_lines): New function.
3423 * defs.h (copy_command_lines): Export.
3424 * testsuite/gdb.base/commands.exp: New tests for commands
3425 attached to a temporary breakpoint, and for commands that
3426 delete the breakpoint they are attached to.
3427
3428 2002-08-26 Michael Snyder <msnyder@redhat.com>
3429
3430 * breakpoint.c (bpstat_stop_status): Instead of copying the
3431 pointer to the breakpoint commands struct, make a new copy
3432 of the struct and point to that.
3433 (bpstat_clear): Free the commands struct.
3434 (bpstat_clear_actions): Free the commands struct.
3435 (bpstat_do_actions): Free the command actions. Also execute
3436 the local cleanups, instead of deleting them.
3437 (delete_breakpoint): Leave the commands field of the bpstat
3438 chain alone -- it will be freed later.
3439
3440 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3441
3442 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3443 deleted in 2002-08-20 commit. This function is still used by
3444 ppc-linux-nat.c.
3445
3446 2002-08-26 Keith Seitz <keiths@redhat.com>
3447
3448 * gdb-events.sh: Add selected-frame-level-changed event.
3449 * gdb-events.c: Regenerated.
3450 * gdb-events.h: Regenerated.
3451
3452 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3453
3454 Fix PR gdb/393:
3455 * inflow.c (terminal_save_ours): New function to save terminal
3456 settings.
3457 * inferior.h (terminal_save_ours): Declare.
3458 * target.c (debug_to_terminal_save_ours): New function.
3459 (cleanup_target): Defaults to_terminal_save_ours.
3460 (update_current_target): Inherit to_terminal_save_ours.
3461 (setup_target_debug): Set to_terminal_save_ours.
3462 * target.h (target_terminal_save_ours): New to save terminal settings.
3463 (target_ops): New member to_terminal_save_ours.
3464 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3465 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3466 * inftarg.c (init_child_ops): Likewise.
3467 * m3-nat.c (init_m3_ops): Likewise.
3468 * procfs.c (init_procfs_ops): Likewise.
3469 * wince.c (init_child_ops): Likewise.
3470 * win32-nat.c (init_child_ops): Likewise.
3471 * sol-thread.c (init_sol_thread_ops): Likewise.
3472
3473 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3474
3475 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3476 use regcache_* functions.
3477 (i386_gdbarch_init): Set store_return_value instead of
3478 deprecated_store_return_value.
3479
3480 * regcache.c (regcache_raw_write_signed,
3481 regcache_raw_write_unsigned): New functions.
3482 * regcache.h (regcache_raw_write_signed,
3483 regcache_raw_write_unsigned): New prototypes.
3484
3485 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3486
3487 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3488 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3489 source file dependencies. Cleanup corresponding generator rules.
3490
3491 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3492
3493 * regcache.h (register_offset_hack): Declare.
3494 (regcache_cooked_read_using_offset_hack): Declare.
3495 (regcache_cooked_write_using_offset_hack): Declare.
3496
3497 * regcache.c (register_offset_hack): New function.
3498 (regcache_cooked_read_using_offset_hack): New function.
3499 (regcache_cooked_write_using_offset_hack): New function.
3500 (regcache_dump): Check that the registers, according to their
3501 offset, are packed hard against each other.
3502 (cooked_xfer_using_offset_hack): New function.
3503
3504 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3505
3506 * regcache.c (struct regcache_descr): Add field register_type.
3507 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3508 in as a parameter
3509 (init_regcache_descr): Initialize register_type. Pass the descr
3510 to init_legacy_regcache_descr. Use register_type instead of
3511 REGISTER_VIRTUAL_TYPE.
3512 (register_type): New function.
3513 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3514 * regcache.h (register_type): Declare.
3515
3516 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3517
3518 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3519 instead of deprecated_store_return_value. Fix fallout from
3520 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3521
3522 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3523
3524 * regcache.c (max_register_size): New function.
3525 (init_legacy_regcache_descr): Ensure that max_register_size is
3526 large enough for REGISTER_VIRTUAL_SIZE.
3527 * regcache.h (max_register_size): Declare.
3528
3529 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3530
3531 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3532 store_return_value.
3533 (e500_extract_return_value): Change type of valbuf pointer to
3534 void.
3535
3536 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3537
3538 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3539 workaround.
3540
3541 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3542 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3543 long long) to prevent compiler warning on 64-bit systems.
3544
3545 2002-08-23 Andrew Cagney <cagney@redhat.com>
3546
3547 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3548 (DEPRECATED_STORE_RETURN_VALUE): New method.
3549 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3550 * gdbarch.h, gdbarch.c: Re-generate.
3551
3552 * values.c (set_return_value): Pass current_regcache to
3553 STORE_RETURN_VALUE.
3554 * arch-utils.h (legacy_store_return_value): Declare.
3555 * arch-utils.c (legacy_store_return_value): New function.
3556 (legacy_extract_return_value): Update parameters.
3557
3558 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3559 STORE_RETURN_VALUE.
3560 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3561 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3562 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3563 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3564 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3565 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3566 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3567 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3568 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3569 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3570
3571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3572 * i386-tdep.c (i386_extract_return_value): Update.
3573 * arch-utils.c (legacy_extract_return_value): Update.
3574 * frv-tdep.c (frv_gdbarch_init): Update.
3575 * cris-tdep.c (cris_gdbarch_init): Update.
3576 * d10v-tdep.c (d10v_gdbarch_init): Update.
3577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3578 * m68k-tdep.c (m68k_gdbarch_init): Update.
3579 * mcore-tdep.c (mcore_gdbarch_init): Update.
3580 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3581 * s390-tdep.c (s390_gdbarch_init): Update.
3582 * sparc-tdep.c (sparc_gdbarch_init): Update.
3583 * sh-tdep.c (sh_gdbarch_init): Update.
3584 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3585 * v850-tdep.c (v850_gdbarch_init): Update.
3586 * avr-tdep.c (avr_gdbarch_init): Update.
3587 * ia64-tdep.c (ia64_gdbarch_init): Update.
3588 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3589 * vax-tdep.c (vax_gdbarch_init): Update.
3590 * alpha-tdep.c (alpha_gdbarch_init): Update.
3591 * arm-tdep.c (arm_gdbarch_init): Update.
3592 * mips-tdep.c (mips_gdbarch_init): Update.
3593 * i386-tdep.c (i386_gdbarch_init): Update.
3594
3595 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3596
3597 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3598 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3599
3600 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3601
3602 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3603 problems.
3604
3605 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3606
3607 * infrun.c (handle_inferior_event): Move a comment outside of a
3608 function call, in order to avoid indent reformatting this part
3609 of the code in an unreadable way.
3610
3611 2002-08-23 Grace Sainsbury <graces@redhat.com>
3612
3613 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3614 when breakpoints fail. Move general breakpoint error messages to
3615 insert_breakpoints.
3616 * breakpoint.c (insert_breakpoints): Change warnings when
3617 breakpoints are nto inserted to specify the type. Remove call to
3618 memory_error when hardware breakpoints can't be inserted. Remove
3619 multiple calls to warning so all messages are sent to the user at
3620 once.
3621 (delete_breakpoints): Make insert error messsages more explicit.
3622
3623 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3624
3625 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3626 gdbserver/ChangeLog.
3627
3628 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3629
3630 * i386-tdep.c: Include "objfiles.h".
3631 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3632 skip_trampoline_code.
3633 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3634 (CPLUS_MARKER): Define to '.'.
3635
3636 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3637 member.
3638 (linux_corefile_thread_callback): Increase args->num_notes.
3639 (linux_make_note_section): Initialize thread_args.num_notes, and
3640 use it to determine whether notes for any threads were created.
3641
3642 2002-08-23 Donn Terry <donnte@microsoft.com>
3643
3644 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3645 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3646 and PCUNKILL.
3647 (write_with_trace): Conditionalize out the switch branch handling
3648 PCSHOLD if the corresponding macro is not defined. Likewise for
3649 PRSABORT and PRSTOP.
3650 This change will be needed by the Interix port.
3651
3652 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3653
3654 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3655 write_register wherever possible instead of manipulating the
3656 register bytes directly.
3657 Assign VALUE_CONTENTS to a variable and use that.
3658 The GPR numbers are now dependent on the architecture.
3659
3660 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3661
3662 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3663 ev_offset fields.
3664 (skip_prologue): Add support for BookE/e500 instructions.
3665 (e500_extract_return_value): New function.
3666 (frame_get_saved_regs): Add support for saving ev registers and
3667 pseudo gpr's.
3668 (e500_store_return_value): New function.
3669 (rs6000_gdbarch_init): Move up default intializations of
3670 deprecated_extract_return_value and store_return_value. Overwrite
3671 init of store_return_value with e500 specific version.
3672 Set extract_return_value for e500.
3673
3674 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3675
3676 * blockframe.c (generic_call_dummy_register_unwind): Use
3677 regcache_cooked_read to catch cases in which the variable is
3678 stored in a pseudo register.
3679
3680 2002-08-22 Andrew Cagney <cagney@redhat.com>
3681
3682 * NEWS: Mention that the i960 has been made obsolete.
3683 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3684 i960-tdep.c
3685 (remote-nrom.o): Obsolete target.
3686 (remote-nindy.o, i960-tdep.o): Ditto.
3687 * remote-nrom.c: Make file obsolete.
3688 * remote-nindy.c, remote-vx960.c: Ditto.
3689 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3690 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3691 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3692 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3693 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3694 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3695 i960-*-vxworks* obsolete.
3696 * MAINTAINERS: Note that the i960 is obsolete.
3697
3698 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3699
3700 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3701 detach to allow reinitialization.
3702
3703 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3704
3705 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3706 attempt).
3707
3708 2002-08-22 Jim Blandy <jimb@redhat.com>
3709
3710 * coffread.c (coff_symfile_read): Don't try to read the line
3711 number table from disk if the image file doesn't have a symbol
3712 table; we'll never actually look at the info anyway, and Windows
3713 ships DLL's with bogus file offsets for the line number data.
3714
3715 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3716
3717 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3718 an e500 executable.
3719
3720 2002-08-21 Michael Snyder <msnyder@redhat.com>
3721
3722 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3723 (MSYMBOL_SIZE): Replace macro with function.
3724 (DEFAULT_MIPS_TYPE): Delete unused macro.
3725 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3726 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3727
3728 2002-08-21 Jim Blandy <jimb@redhat.com>
3729
3730 * valops.c (value_cast): Simplify and correct logic for doing a
3731 static cast from a pointer to a base class to a pointer to a
3732 derived class.
3733
3734 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3735
3736 * infcmd.c (default_print_registers_info): Replace
3737 do_registers_info.
3738 (registers_info): Use gdbarch_print_registers_info instead of
3739 DO_REGISTERS_INFO.
3740 * inferior.h (default_print_registers_info): Replace
3741 do_registers_info.
3742 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3743 (DO_REGISTERS_INFO): Change to a predicate function.
3744 * gdbarch.h, gdbarch.c: Regenerate.
3745
3746 2002-08-21 Keith Seitz <keiths@redhat.com>
3747
3748 * gdb-events.sh: Add target-changed event.
3749 * gdb-events.c: Regenerated.
3750 * gdb-events.c: Regenerated.
3751 * valops.c (value_assign): Add target-changed event notification
3752 to inlval_register, lval_memory, and lval_reg_frame_relative.
3753
3754 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3755
3756 * NEWS: Add an entry regarding the improvement of the next/step
3757 operation on Alpha Tru64 multi-processor machines.
3758
3759 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3760
3761 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3762 directores.
3763 * Makefile.in: Update all _h macro definitions.
3764 * Makefile.in (install-gdbtk): Move to install section.
3765 (rdi-share/libangsd.a): Move to end of file.
3766
3767 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3768
3769 * frame.c (frame_register_unwind): When a register, set addrp to
3770 the register's byte.
3771
3772 2002-08-20 Michael Snyder <msnyder@redhat.com>
3773
3774 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3775 used locally, so move them from the target machine header to here.
3776 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3777 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3778 Make static.
3779 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3780
3781 2002-08-20 Andrew Cagney <cagney@redhat.com>
3782
3783 * NEWS: Mention that the Apollo line was made obsolete.
3784 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3785 m68*-hp-hpux* obsolete.
3786 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3787 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3788 * buildsym.c (make_blockvector): Make static.
3789 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3790 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3791 (ALLDEPFILES): Remove dstread.c.
3792 (dstread.o): Obsolete make rule.
3793 * dstread.c: Makefile obsolete.
3794 * dst.h: Ditto.
3795 * config/m68k/hp300hpux.mt: Ditto.
3796 * config/m68k/hp300hpux.mh: Ditto.
3797 * config/m68k/hp300bsd.mt: Ditto.
3798 * config/m68k/hp300bsd.mh: Ditto.
3799 * config/m68k/apollo68b.mt: Ditto.
3800 * config/m68k/apollo68v.mh: Ditto.
3801 * config/m68k/apollo68b.mh: Ditto.
3802
3803 2002-08-20 Michael Snyder <msnyder@redhat.com>
3804
3805 * mips-tdep.c (mips_in_return_stub): Make static.
3806 (mips_gdbarch_init): Set in_solib_return_trampoline.
3807 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3808
3809 2002-08-20 Michael Snyder <msnyder@redhat.com>
3810
3811 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3812 * gdbarch.c, gdbarch.h: Regenerate.
3813 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3814 Add.
3815 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3816
3817 2002-08-20 Michael Snyder <msnyder@redhat.com>
3818
3819 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3820 (mips_gdbarch_init): Set skip_trampoline_code,
3821 in_solib_call_trampoline.
3822 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3823 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3824
3825 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3826
3827 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3828
3829 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3830 vector type for ev registers.
3831 (e500_pseudo_register_read): New function.
3832 (e500_pseudo_register_write): New function.
3833 (e500_dwarf2_reg_to_regnum): New function.
3834 (PPC_UISA_NOFP_SPRS): New macro.
3835 (PPC_EV_REGS): New macro.
3836 (PPC_GPRS_PSEUDO_REGS): New macro.
3837 (registers_e500): New register set for e500.
3838 (variants): Add e500 variant.
3839 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3840 before setting architectural dependent variations. Initialize ev
3841 registers numbers. Add case for e500 architecture. Set the
3842 number of pseudo registers.
3843
3844 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3845
3846 * rs6000-tdep.c: Clean up comments.
3847
3848 2002-08-20 Andrew Cagney <cagney@redhat.com>
3849
3850 * h8300-tdep.c: Re-indent file.
3851
3852 2002-08-20 Jim Blandy <jimb@redhat.com>
3853
3854 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3855 default for this.
3856
3857 2002-08-20 Keith Seitz <keiths@redhat.com>
3858
3859 * breakpoints.c (watch_command_1): Use internal breakpoint
3860 when setting a watchpoint_scope breakpoint.
3861
3862 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3863
3864 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3865 (build_builtin_type_vec64i): Ditto.
3866 (build_builtin_type_vec128): Ditto.
3867 (build_builtin_type_vec128i): Ditto.
3868
3869 2002-08-19 Michael Snyder <msnyder@redhat.com>
3870
3871 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3872 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3873 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3874 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3875 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3876 CALL_DUMMY_ADDRESS): Delete.
3877 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3878 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3879 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3880 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3881 push_return_address.
3882 (mips_register_raw_size, mips_eabi_use_struct_convention,
3883 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3884 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3885 mips_init_extra_frame_info, mips_eabi_push_arguments,
3886 mips_n32n64_push_arguments, mips_push_return_address,
3887 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3888 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3889
3890 2002-08-19 Michael Snyder <msnyder@redhat.com>
3891
3892 * mips-tdep.c (mips_frame_num_args): New function.
3893 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3894 frame_saved_pc, frame_args_address, frame_locals_address,
3895 frame_num_args, and frame_args_skip.
3896 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3897 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3898 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3899 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3900
3901 2002-08-20 Michael Snyder <msnyder@redhat.com>
3902
3903 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3904 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3905 * mips-tdep.c (mips_store_struct_return): New function.
3906 (mips_extract_struct_value_address): New function.
3907 (mips_gdbarch_init): Set store_struct_return and
3908 extract_struct_value_address.
3909
3910 2002-08-20 David Carlton <carlton@math.stanford.edu>
3911
3912 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3913 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3914 (read_file_scope): Check that line_header is nonzero before
3915 decoding macro information.
3916
3917 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3918
3919 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3920 flag the general-purpose registers as floating-point on targets
3921 that don't support the floating-point registers.
3922
3923 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3924
3925 * rs6000-tdep.c (altivec_register_p): Delete.
3926 (rs6000_do_altivec_registers): Delete.
3927 (rs6000_altivec_registers_info): Delete.
3928 (rs6000_do_registers_info): Delete.
3929 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3930 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3931
3932 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3933
3934 * infcmd.c (do_registers_info): Print vector registers in hex
3935 format only.
3936 (print_vector_info): Check that printing registers
3937 makes sense.
3938 (print_float_info): Ditto.
3939
3940 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3941
3942 * mips-tdep.c (mips_gdbarch_init): Update.
3943 (mips_o32_extract_return_value): Rewrite.
3944 (mips_o32_store_return_value): Rewrite.
3945 (mips_o32_xfer_return_value): New function.
3946 (mips_xfer_register): Tweak debug print message. Allow for
3947 buf_offset when dumping the value transfered.
3948
3949 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3950
3951 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3952 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3953 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3954 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3955 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3956
3957 2002-08-14 Michael Snyder <msnyder@redhat.com>
3958
3959 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3960
3961 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3962
3963 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3964 register.
3965 (P): New macro to define a register as a pseudo register.
3966 (R, R4, R8, R16, FR32, R64, R0): Updated.
3967 (struct variant): Add new fields for number of pseudo registers
3968 and number of total registers.
3969 (tot_num_registers): New macro replacing....
3970 (num_registers): ...deleted macro.
3971 (num_registers): New function.
3972 (num_pseudo_registers): New function.
3973 (variants): Update all variants to intialize new fields correctly.
3974 Postpone initialization of number of pseudo regs and real regs.
3975 (init_variants): New function.
3976 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3977 registers offsets.
3978
3979 2002-08-19 David Carlton <carlton@math.stanford.edu>
3980
3981 * valops.c (search_struct_field): Change error message to treat
3982 return value of 0 from value_static_field as meaning that field is
3983 optimized out.
3984 (value_struct_elt_for_reference): Ditto.
3985 * values.c (value_static_field): Treat an unresolved location the
3986 same as a nonexistent symbol. Fix PR gdb/635.
3987 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3988 enclosed. Fix PR gdb/574.
3989 * MAINTAINERS: Add self to Write After Approval list.
3990
3991 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3992
3993 * mips-tdep.c (mips_xfer_register): New function.
3994 (mips_n32n64_extract_return_value): Rewrite.
3995 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3996 instead of deprecated_extract_return_value.
3997
3998 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3999
4000 * rs6000-tdep.c (TDEP): Delete macro.
4001 (branch_dest): Replace use of TDEP macro with its body.
4002 (rs6000_pop_frame): Ditto.
4003 (rs6000_push_arguments): Ditto.
4004 (rs6000_skip_trampoline_code): Ditto.
4005 (rs6000_frame_saved_pc): Ditto.
4006 (rs6000_frame_chain): Ditto.
4007 (rs6000_register_name): Ditto.
4008 (rs6000_register_byte): Ditto.
4009 (rs6000_register_raw_size): Ditto.
4010 (rs6000_register_virtual_type): Ditto.
4011 (rs6000_register_convertible): Ditto.
4012 (rs6000_convert_from_func_ptr_addr): Ditto.
4013
4014 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4017 conditionally.
4018 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4019 MIPS_LINUX_JB_ELEMENT_SIZE.
4020 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4021 for MAX_REGISTER_RAW_SIZE arrays.
4022 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4023 MIPS_LINUX_JB_ELEMENT_SIZE.
4024
4025 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4026
4027 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4028
4029 2002-08-19 Aidan Skinner <aidan@velvet.net>
4030
4031 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4032 ada-valprint.c ada-tasks.c.
4033 (YYFILES): Add ada-exp.y.
4034 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4035 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4036 (ada-exp.tab.o): New target.
4037
4038 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4039
4040 * regcache.c (regcache_xfer_part): New function.
4041 (regcache_raw_read_part): New function.
4042 (regcache_raw_write_part): New function.
4043 (regcache_cooked_read_part): New function.
4044 (regcache_cooked_write_part): New function.
4045 * regcache.h (regcache_raw_read_part): Declare.
4046 (regcache_raw_write_part): Declare.
4047 (regcache_cooked_read_part): Declare.
4048 (regcache_cooked_write_part): Declare.
4049
4050 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4051
4052 * remote.c (remote_open_1): Add async_p.
4053 (remote_async_open_1): Delete.
4054 (open_remote_target): Delete.
4055 (remote_open, extended_remote_open): Update calls to remote_open_1.
4056 (remote_async_open, extended_remote_async_open): Call
4057 remote_open_1 instead of remote_async_open_1.
4058
4059 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4060
4061 * blockframe.c: Fix a few coding standard violations.
4062
4063 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4064
4065 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4066 here from ...
4067 * config/i386/tm-i386sco5.h: ... here. File removed.
4068 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4069
4070 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4071 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4072 (TM_FILE): Set to tm-i386.h.
4073 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4074 * config/i386/tm-i386v.h: Remove file.
4075 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4076 instead of "i386/tm-i386v.h".
4077 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4078 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4079 "i386/tm-i386v.h".
4080 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4081 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4082 "i386/tm-i386.h".
4083
4084 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4085
4086 * config/i386/nm-i386v.h: Add protection against
4087 multiple-inclusion.
4088 (i386_register_u_addr): Remove prototype.
4089 (register_u_addr): New prototype.
4090 (REGISTER_U_ADDR): Redefine accordingly.
4091 * i386v-nat.c: Improve several comments.
4092 (i386_register_u_addr): Change signature and rename to
4093 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4094 ubase variable.
4095
4096 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4097
4098 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4099 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4100 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4101 deprecated_extract_return_value.
4102 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4103 rename mips_o32o64_push_arguments.
4104 (mips_gdbarch_init): Update.
4105 (mips_extract_return_value): Delete.
4106 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4107 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4108 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4109 (mips_n32n64_extract_return_value): Clone
4110 mips_extract_return_value.
4111 (mips_store_return_value): Delete.
4112 (mips_o32_store_return_value): Clone mips_store_return_value.
4113 (mips_o64_store_return_value): Clone mips_store_return_value.
4114 (mips_eabi_store_return_value): Clone mips_store_return_value.
4115 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4116
4117 2002-08-18 Aidan Skinner <aidan@velvet.net>
4118
4119 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4120 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4121
4122 2002-08-18 Aidan Skinner <aidan@velvet.net>
4123
4124 * ada-lang.c: Run through gdb_indent.sh.
4125 * ada-lang.h: Run through gdb_indent.sh.
4126 * ada-tasks.c: Run through gdb_indent.sh.
4127 * ada-typeprint.c: Run through gdb_indent.sh.
4128 * ada-valprint.c: Run through gdb_indent.sh.
4129
4130 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4131
4132 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4133 ABI.
4134
4135 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4136
4137 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4138
4139 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4140 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4141
4142 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4143 write_register_gen instead of write_register_bytes.
4144
4145 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4146 i[3456]-*-osf1mk* configurations have been made obsolete.
4147 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4148 i[3456]86-*-osf1mk* hosts obsolete.
4149 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4150 targets obsolete.
4151 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4152 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4153 config/i386/i386m3.mt, config/i386/nm-m3.h,
4154 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4155 config/i386/i386mk.mh, config/i386/i386mk.mt,
4156 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4157 obsolete.
4158 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4159 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4160 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4161
4162 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4163
4164 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4165 (hppa_value_returned_from_stack): Declare.
4166 (hppa_extract_return_value): Declare.
4167 * config/pa/hppa.mt: New file.
4168 * configure.tgt: Recognize hppa*-*-*.
4169 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4170
4171 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4172
4173 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4174 comment.
4175
4176 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4177
4178 * top.c (gdb_rl_operate_and_get_next): Make sure
4179 operate-and-get-next functions correctly even when the history
4180 list is completely filled.
4181
4182 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4183
4184 * MAINTAINERS (Target Instruction Set Architectures): Rename
4185 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4186 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4187 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4188 already listed under Host/Native.
4189
4190 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4191 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4192 mips*-*-*.
4193
4194 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4195
4196 * config/ia64/ia64.mt: New file.
4197 * config/alpha/alpha.mt: New file.
4198 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4199 ia64-linux-gnu. Mention that ia64-elf is broken.
4200 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4201
4202 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4203
4204 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4205 generic_func_frame_valid instead of func_frame_valid.
4206
4207 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4208
4209 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4210 procfs appears to be broken when debugging on multi-processor
4211 machines. So enable software single stepping in order to avoid
4212 using the procfs interface to do next/step operations, using
4213 internal breakpoints instead.
4214
4215 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4216 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4217 make this pc address equal to the value it would have if the
4218 system stepping capability was used. Also set a new flag used
4219 to ensure that we don't readjust the PC one more time later.
4220
4221 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4222 address by DECR_PC_AFTER_BREAK when software single step is
4223 in use for this architecture, as this has already been taken
4224 care of in handle_inferior_event().
4225
4226 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4227
4228 * infrun.c (handle_inferior_event): Minor reformatting, to make
4229 a rather long condition expression easier to read.
4230
4231 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4232
4233 * Makefile.in (gdbtk.o): Move to end of file.
4234 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4235 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4236 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4237 (gdbtk-wrapper.o, gdbres.o): Ditto.
4238
4239 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4240
4241 * Makefile.in (copying.o): Separate out compile rule.
4242 (hpux-thread.o, procfs.o, signals.o): Ditto.
4243 (v850ice.o, z8k-tdep.o): Ditto.
4244 (tui-file.o): Move to TUI section.
4245 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4246 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4247
4248 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4249
4250 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4251 skip_trampoline_code, for better namespace-proofing.
4252
4253 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4254
4255 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4256
4257 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4258
4259 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4260
4261 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4262 signal, check whether we hit a breakpoint before checking for a
4263 single step breakpoint. Otherwise, GDB fails to notice that a
4264 breakpoint has been hit when stepping onto a breakpoint.
4265
4266 2002-08-16 Keith Seitz <keiths@redhat.com>
4267
4268 * gdb-events.sh (clear_gdb_event_hooks): New function.
4269 * gdb-events.c: Regenerate.
4270 * gdb-events.h: Regenerate.
4271
4272 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4273
4274 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4275 not_a_sw_breakpoint.
4276 * breakpoint.h (bpstat_stop_status): Add parameter names.
4277
4278 2002-08-16 Grace Sainsbury <graces@redhat.com>
4279
4280 * remote.c (remote_insert_hw_breakpoint)
4281 (remote_remove_hw_breakpoint): Fix calculation of length field
4282 for Z-packet.
4283
4284 2002-08-15 Michael Snyder <msnyder@redhat.com>
4285
4286 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4287 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4288 (supply_fpregset): Ditto.
4289
4290 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4291 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4292 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4293 (TARGET_READ_SP): Delete.
4294 (DO_REGISTERS_INFO): Delete.
4295 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4296 Delete.
4297 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4298 from macros to functions.
4299
4300 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4301 (mips_register_convertible, mips_register_convert_to_virtual,
4302 mips_register_convert_to_raw): Make static.
4303 (mips_read_sp): New function.
4304 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4305 (mips_do_registers_info): Make static.
4306 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4307 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4308 (mips_register_convert_from_type, mips_register_convert_to_type):
4309 New functions.
4310 (mips_gdbarch_init): Set up function_start_offset,
4311 register_virtual_size, pc_in_sigtramp.
4312
4313 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4314
4315 * infcmd.c (vector_info): New function.
4316 (_initialize_infcmd): Add command "info vector".
4317 (print_vector_info): New function.
4318
4319 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4320 * gdbarch.h, gdbarch.c: Regenerate.
4321
4322 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4323
4324 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4325 ``print_all''. Only print vector registers when ``print_all''.
4326
4327 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4328
4329 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4330 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4331
4332 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4333 Add `args' parameter.
4334 * gdbarch.h, gdbarch.c: Regenerate.
4335
4336 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4337
4338 * infcmd.c (float_info): Call print_float_info.
4339 (print_float_info): New function. By default, print the
4340 floating-point registers.
4341
4342 * arch-utils.h (default_print_float_info): Delete declaration.
4343 * arch-utils.c (default_print_float_info): Delete function.
4344
4345 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4346
4347 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4348 out define.
4349
4350 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4351 FRAME.
4352
4353 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4354 * configure.host: Make i[3456]86-*-aix host obsolete.
4355 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4356 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4357 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4358 config/i386/xm-i386aix.h: Make files obsolete.
4359 * i386aix-nat.c: Make file obsolete.
4360 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4361 (i386aix-nat.o): Make target obsolete.
4362
4363 * config/i386/nm-gnu.h: Removed.
4364 * config/i386/nm-i386gnu.h: New file.
4365 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4366 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4367 Moved here from ...
4368 * config/i386/tm-i386gnu.h: ... here. Removed.
4369 * config/i386/xm-i386gnu.h: Removed.
4370 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4371 (NAT_FILE): Set to nm-i386gnu.h.
4372 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4373 * i386-tdep.c: New file.
4374 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4375 (i386gnu-tdep.o): Specify dependencies.
4376
4377 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4378
4379 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4380 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4381 Adjust a few comments to reflect reality a bit closer.
4382 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4383 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4384 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4385 target_insert_watchpoint, target_remove_watchpoint):
4386 Move defines to ...
4387 * config/i386/nm-i386sco5.h: ... here.
4388 (kernel_u_size): Add prototype. Improve a few comments and add
4389 protection against multiple inclusion.
4390
4391 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4392 out define.
4393
4394 * uw-thread.c (SP_ARG0): Define if not already defined.
4395 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4396
4397 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4398
4399 * config/i386/tm-i386.h: Don't include "regcache.h".
4400
4401 * i387-tdep.h (i387_print_float_info): New prototype.
4402 * i387-tdep.c (print_i387_value, print_i387_ext,
4403 print_i387_status_word, print_i387_control_word): Add `struct
4404 ui_file *' argument and use it for output.
4405 (i387_print_float_info): Renamed from i387_float_info. Add
4406 `struct gdbarch *' and `struct ui_file *' arguments and use the
4407 latter for output.
4408 * i386-tdep.c: Include "i387-tdep.h".
4409 (i386_gdbarch_init): Set print_float_info.
4410 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4411 (FLOAT_INFO): Remove define.
4412
4413 2002-08-13 Michael Snyder <msnyder@redhat.com>
4414
4415 * mips-tdep.c (mips_push_arguments): Rename to
4416 mips_eabi_push_arguments, and tune for EABI.
4417 (MIPS_REGS_HAVE_HOME_P): Delete.
4418 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4419 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4420 Delete references to mips_regs_have_home_p.
4421
4422 2002-08-14 Keith Seitz <keiths@redhat.com>
4423
4424 * Makefile.in (install-gdbtk): Create insight plugin directory.
4425 Install plugins.tcl file.
4426
4427 2002-08-14 Keith Seitz <keiths@redhat.com>
4428
4429 * configure.in: Move SUBDIRS to near top of the file so that
4430 --enable options may add things to it.
4431 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4432 * configure: Regenerate.
4433
4434 2002-08-13 Michael Snyder <msnyder@redhat.com>
4435
4436 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4437 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4438 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4439
4440 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4441
4442 * vax-tdep.c (vax_get_saved_register): Delete function.
4443 (vax_gdbarch_init): Update.
4444 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4445 (ns32k_gdbarch_init): Update.
4446 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4447 (alpha_gdbarch_init): Update.
4448
4449 2002-08-13 Andrew Cagney <cagney@redhat.com>
4450
4451 * regcache.c (init_regcache_descr): Overallocate the
4452 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4453 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4454 nr_raw_registers.
4455 (set_register_cached): Add range checking assertions. Use
4456 current_regcache.
4457
4458 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4459
4460 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4461 numbers for MMX registers.
4462
4463 2002-08-13 Andrew Cagney <cagney@redhat.com>
4464
4465 * i386-tdep.c (i386_gdbarch_init): Use
4466 generic_unwind_get_saved_register.
4467
4468 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4469
4470 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4471 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4472 target vector.
4473 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4474 Delete. Add comment regarding this now-deleted target method.
4475
4476 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4477
4478 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4479 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4480 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4481 real PC and the page number (if it's within the memory bank window).
4482 (m68hc11_pseudo_register_write): Likewise when saving.
4483 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4484 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4485 (m68hc11_register_raw_size): And use 32-bit for it.
4486 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4487 16K memory bank is used by the prog; also use the virtual pc.
4488
4489 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4490
4491 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4492 (m68hc11_gdbarch_init): Install it in gdbarch.
4493 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4494 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4495 (MSYMBOL_SIZE): New for documentation.
4496 (insn_return_kind): Enum to specify how a function returns.
4497 (frame_extra_info): Cleanup and record the return mode.
4498 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4499 register in address computation.
4500 (m68hc11_get_return_insn): New to obtain the return instruction used
4501 by the function.
4502 (m68hc11_frame_init_saved_regs): Take into account the return
4503 instruction used by the function for far and interrupt functions.
4504 (m68hc11_init_extra_frame_info): Take into account page register.
4505 (m68hc11_frame_args_address): Adjust according to the return mode.
4506 (show_regs): Print page register only when it's used.
4507
4508 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4509
4510 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4511 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4512 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4513 registers.
4514 (m68hc11_register_raw_size): Likewise.
4515
4516 2002-08-13 Andrew Cagney <cagney@redhat.com>
4517
4518 * i386-tdep.c (i386_register_name): Handle mmx registers.
4519 (mmx_regnum_p): New function.
4520 (i386_mmx_names): New array.
4521 (mmx_num_regs): New variable.
4522 (i386_pseudo_register_read): New function.
4523 (i386_pseudo_register_write): New function.
4524 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4525
4526 * regcache.c (regcache_raw_read_unsigned): New function.
4527 (regcache_raw_read_signed): New function.
4528 * regcache.h (regcache_raw_read_unsigned): Declare.
4529 (regcache_raw_read_signed): Declare.
4530
4531 2002-08-13 Andrew Cagney <cagney@redhat.com>
4532
4533 * regcache.c (regcache_raw_read_as_address): Delete function.
4534 (regcache_cooked_read_signed): New function.
4535 (regcache_cooked_read_unsigned): New function.
4536 * regcache.h (regcache_cooked_read_signed): Declare.
4537 (regcache_cooked_read_unsigned): Declare.
4538 (regcache_raw_read_as_address): Delete declaration.
4539
4540 * blockframe.c (generic_read_register_dummy): Use
4541 regcache_cooked_read_unsigned.
4542 * i386-tdep.c (i386_extract_struct_value_address): Use
4543 regcache_cooked_read_unsigned.
4544
4545 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4546
4547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4548 double sizes according to ELF ABI flags.
4549 (gdbarch_tdep): Record elf_flags.
4550
4551 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4552
4553 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4554 (m6812_prolog): They can appear in 68HC12 function prologue.
4555 (m68hc11_frame_chain): Cleanup.
4556
4557 2002-08-12 Andrew Cagney <cagney@redhat.com>
4558
4559 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4560 declarations.
4561 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4562 (i386_linux_register_raw_size): Delete function.
4563 (i386_linux_init_abi): Update.
4564 * i386-tdep.c (i386_register_raw_size): Delete function.
4565 (i386_register_byte): Delete function.
4566 (i386_gdbarch_init): Update.
4567 (i386_register_size): Delete array.
4568 (i386_register_offset): Delete array.
4569
4570 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4571 (REGISTER_RAW_SIZE): Delete macro.
4572 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4573 (REGISTER_BYTE): Delete macro.
4574
4575 2002-08-11 Aidan Skinner <aidan@velvet.net>
4576
4577 * ada-lang.c (ada_lookup_partial_symbol)
4578 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4579 prototype names so that grep ^func works properly.
4580
4581 * ada-lang.c (ada_array_element_type)
4582 (ada_lookup_partial_symbol): Fix typos in parameter list.
4583
4584 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4585 Fix prototype names so that grep ^func works properly.
4586
4587 2002-08-10 Andrew Cagney <cagney@redhat.com>
4588 Elena Zannoni <ezannoni@redhat.com>
4589 Martin M. Hunt <hunt@redhat.com>
4590
4591 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4592 (build_builtin_type_vec128i): Set the vector bit.
4593 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4594 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4595 (build_builtin_type_vec64): New function.
4596 (build_builtin_type_vec64i): New function.
4597 (build_gdbtypes): Initialize builtin_type_vec64 and
4598 builtin_type_vec64i.
4599
4600 2002-08-09 Andrew Cagney <cagney@redhat.com>
4601
4602 * regcache.c (regcache_dump): Compare the register offset
4603 with REGISTER_BYTE.
4604 * arch-utils.c (generic_register_byte): New function.
4605 * arch-utils.h (generic_register_byte): Declare.
4606 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4607 * gdbarch.h, gdbarch.c: Regenerate.
4608
4609 2002-08-09 Andrew Cagney <cagney@redhat.com>
4610
4611 * regcache.c: Include "gdbcmd.h"
4612 (_initialize_regcache): Add commands "maintenance print
4613 registers", "maintenance print raw-registers" and "maintenance
4614 print cooked-registers".
4615 (enum regcache_dump_what): Define.
4616 (dump_endian_bytes): New function.
4617 (regcache_dump): New function.
4618 (regcache_print): New function.
4619 (maintenance_print_registers): New function.
4620 (maintenance_print_raw_registers): New function.
4621 (maintenance_print_cooked_registers): New function.
4622 * Makefile.in (regcache.o): Update dependencies.
4623
4624 2002-08-09 Michael Snyder <msnyder@redhat.com>
4625
4626 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4627 (mips_push_arguments): Correct some comments. Use paddr_nz
4628 for printing addresses in debug output. Replace static
4629 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4630 (mips_n32n64_push_arguments): New function, cloned from
4631 mips_push_arguments and tuned for the n32/n64 ABI.
4632 (mips_push_register): Buffer needs dynamic allocation.
4633 (mips_print_register): Ditto.
4634 (do_gp_register_row): Ditto.
4635 (mips_store_return_value): Ditto.
4636 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4637
4638 2002-08-09 Don Howard <dhoward@redhat.com>
4639
4640 * memattr.c (mem_info_command): Print special case of upper bound
4641 as max CORE_ADDR + 1.
4642
4643 2002-08-08 Michael Snyder <msnyder@redhat.com>
4644
4645 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4646 returns structs by ref if they're too big to fit in two registers.
4647
4648 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4649
4650 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4651 saved regs value.
4652 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4653 mips_find_saved_regs().
4654 (mips_pop_frame): Likewise.
4655
4656 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4657
4658 * blockframe.c (frame_saved_regs_register_unwind): Revise
4659 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4660 frames are in use.
4661
4662 2002-08-09 Grace Sainsbury <graces@redhat.com>
4663
4664 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4665 T-packets; the 'a' is not taken as a register number.
4666 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4667 (remote_stopped_data_address): New functions; add to target
4668 vector.
4669 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4670 prototypes to match other implementations of this
4671 function. replace integer argument with pointer -- the length
4672 field in the Z-packet is the length of what is pointed to or 1 if
4673 pointer is null. Add to target vector.
4674 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4675 target vector.
4676
4677 From Mark Salter:
4678 * remote.c (remote_wait): Add support to extract optional
4679 watchpoint information from T-packet. Ignore unrecognized
4680 optional info in T-packet.
4681 (remote_async_wait): Ditto.
4682
4683 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4684
4685 * cli/cli-dump.c: Change fopen modes to use binary open modes
4686 as defined in include/fopen-bin.h throughout.
4687
4688 2002-08-08 Michael Snyder <msnyder@redhat.com>
4689
4690 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4691
4692 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4693
4694 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4695 assertion failure by returning early after a warning.
4696
4697 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4698
4699 * mips-tdep.c (mips_find_saved_regs): Make static.
4700 (mips_frame_init_saved_regs): New function.
4701 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4702 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4703 (mips_find_saved_regs): Delete declaration.
4704
4705 2002-08-08 Grace Sainsbury <graces@redhat.com>
4706
4707 * remote.c (remote_wait, remote_async_wait): Change
4708 thread_num from int to ULONGEST.
4709 (unpack_varlen_hex): Change result parameter from
4710 int * to ULONGEST *.
4711
4712 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4713
4714 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4715 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4716 powerpc*-*-*.
4717 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4718
4719 2002-08-08 Andrew Cagney <cagney@redhat.com>
4720
4721 * gcore.c (override_derive_stack_segment): Delete variable.
4722 (preempt_derive_stack_segment): Delete function.
4723 (derive_stack_segment): Delete function.
4724 (default_derive_stack_segment): Renamed to derive_stack_segment.
4725 (override_derive_heap_segment): Delete variable.
4726 (preempt_derive_heap_segment): Delete function.
4727 (derive_heap_segment): Delete function.
4728 (default_derive_heap_segment): Rename to derive_heap_segment.
4729
4730 2002-08-06 Michael Snyder <msnyder@redhat.com>
4731
4732 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4733 * mips-tdep.c (mips_EABI_use_struct_convention,
4734 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4735 New functions. (mips_use_struct_convention): Delete.
4736 (mips_gdbarch_init): set use_gdbarch_convention.
4737
4738 2002-08-06 Michael Snyder <msnyder@redhat.com>
4739
4740 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4741 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4742 mips_o32_reg_struct_has_addr): New functions.
4743 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4744
4745 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4746
4747 * regcache.c (pseudo_register): Delete function.
4748 (fetch_register): Delete function.
4749 (store_register): Delete function.
4750 (regcache_raw_read, legacy_read_register_gen): Use
4751 target_fetch_registers instead of fetch_register.
4752 (legacy_write_register_gen, regcache_raw_write): Use
4753 target_store_register instead of store_register.
4754 (write_register_bytes): Ditto.
4755
4756 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4757 (STORE_PSEUDO_REGISTER): Delete.
4758 * gdbarch.h, gdbarch.c: Regenerate.
4759
4760 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4761
4762 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4763 write dump file binary.
4764
4765 2002-08-05 Michael Snyder <msnyder@redhat.com>
4766
4767 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4768 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4769 (mips_gdbarch_init): Set N32 target to be mips64.
4770
4771 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4772
4773 * frame.c (find_saved_register): Break out of loop once saved
4774 register address is found. Don't mention sparc in loop comment
4775 anymore.
4776
4777 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4778
4779 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4780 mips_default_saved_regsize to 8.
4781
4782 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4783
4784 * gcore.c: Do not include <sys/procfs.h>.
4785 * Makefile.in (gcore.o): Update dependencies.
4786
4787 2002-08-06 Andrew Cagney <cagney@redhat.com>
4788
4789 * configure.tgt: Make arc-*-* obsolete.
4790 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4791 * MAINTAINERS: Make arc-elf obsolete.
4792 * arc-tdep.c: Make file obsolete.
4793 * config/arc/arc.mt: Ditto.
4794 * config/arc/tm-arc.h: Ditto.
4795
4796 2002-08-05 Theodore A. Roth <troth@verinet.com>
4797
4798 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4799
4800 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4801
4802 * mcore-tdep.c (mcore_gdbarch_init): Use
4803 generic_unwind_get_saved_register instead of
4804 generic_get_saved_register.
4805 * v850-tdep.c (v850_gdbarch_init): Ditto.
4806 * frv-tdep.c (frv_gdbarch_init): Ditto.
4807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4808 * s390-tdep.c (s390_gdbarch_init): Ditto.
4809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4810 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4811 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4812
4813 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4814
4815 * objfiles.h: Add missing #include "symfile.h"
4816
4817 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4818
4819 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4820
4821 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4822 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4823 of FIELD_BITSIZE.
4824
4825 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4826
4827 * NEWS: Cleanup and nitpick.
4828
4829 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4830
4831 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4832
4833 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4834
4835 * Makefile.in (gdbtk-bp.o): Update dependencies.
4836 (gdbtk-register.o): Ditto.
4837 (gdbtk-varobj.o): Ditto.
4838
4839 2002-08-03 Andrew Cagney <cagney@redhat.com>
4840
4841 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4842 m68hc11_fetch_pseudo_register.
4843 (m68hc11_pseudo_register_write): Replace
4844 m68hc11_store_pseudo_register.
4845 (m68hc11_gdbarch_init): Update.
4846
4847 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4848
4849 * gdbarch.sh: Include "gdb_string.h".
4850 * gdbarch.c: Regenerate.
4851
4852 * regcache.c: Include "gdb_string.h".
4853 * ax-general.c: Ditto.
4854 * varobj.c: Ditto.
4855 * std-regs.c: Ditto.
4856 * fbsd-proc.c: Ditto.
4857 * thread.c: Ditto.
4858
4859 * Makefile.in (regcache.o): Update dependencies.
4860 (thread.o, gdbarch.o): Ditto.
4861 (ax-general.o, gdbarch.o): Ditto.
4862 (varobj.o, std-regs.o): Ditto.
4863 (fbsd-proc.o): Specify dependencies.
4864
4865 2002-08-02 Andrew Cagney <cagney@redhat.com>
4866
4867 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4868 regnum.
4869 (regcache_cooked_write): Ditto.
4870
4871 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4872
4873 * regcache.c (regcache_cooked_read): New function.
4874 (regcache_cooked_write): New function.
4875 (read_register_gen): Rewrite using regcache_cooked_read.
4876 (write_register_gen): Rewrite using regcache_cooked_write.
4877
4878 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4879 Declare.
4880
4881 2002-08-02 Andrew Cagney <cagney@redhat.com>
4882
4883 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4884 Replace the architecture methods register_read and register_write.
4885 * gdbarch.h, gdbarch.c: Regenerate.
4886 * regcache.c (init_regcache_descr): Update.
4887 (read_register_gen): Update.
4888 (write_register_gen): Update.
4889 (supply_register): Update comment.
4890
4891 * sh-tdep.c (sh_gdbarch_init): Update.
4892 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4893 `regcache' and `gdbarch' parameters. Make `buffer' a void
4894 pointer. Update code.
4895 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4896 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4897 void pointer. Update code.
4898 (sh64_register_write): Delete.
4899 (sh4_register_read): Delete.
4900 (sh64_register_read): Delete.
4901 (sh4_register_write): Delete.
4902 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4903 void pointer, `to' parameter a void pointer.
4904 (sh_sh64_register_convert_to_raw): Ditto.
4905
4906 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4907
4908 * mips-tdep.c (mips_register_virtual_type): Use architecture
4909 invariant return values.
4910
4911 2002-08-01 Andrew Cagney <cagney@redhat.com>
4912
4913 * linux-proc.c: Include "gdb_string.h".
4914 * Makefile.in (linux-proc.o): Update dependency list.
4915
4916 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4917
4918 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4919 comment.
4920
4921 2002-08-01 Grace Sainsbury <graces@redhat.com>
4922
4923 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4924 to_insert_watchpoint, to_remove_watchpoint,
4925 to_stopped_by_watchpoint, to_stopped_data_address,
4926 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4927 target vecctor. Define their corresponding macros so they call
4928 them.
4929
4930 * target.c: Add default and debug versions of for
4931 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.
4935
4936 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4937
4938 * mips-tdep.c (mips_register_virtual_type): New function.
4939 (mips_gdbarch_init): Register mips_register_virtual_type()
4940 with gdbarch machinery.
4941 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4942 this file instead of tm-bigmips.h.
4943 (MIPS_REGSIZE): Delete this macro.
4944 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4945 multiarch version in mips-tdep.c will be found.
4946
4947 2002-08-01 Andrew Cagney <cagney@redhat.com>
4948
4949 * NEWS: Menion that CHILL has been made obsolete.
4950
4951 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4952 * stabsread.c (read_range_type): Ditto.
4953 * gdbtypes.h: Ditto.
4954 * language.c (binop_type_check): Ditto.
4955 (binop_result_type): Ditto.
4956 (integral_type): Ditto.
4957 (character_type): Ditto.
4958 (string_type): Ditto.
4959 (boolean_type): Ditto.
4960 (structured_type): Ditto.
4961 (lang_bool_type): Ditto.
4962 (binop_type_check): Ditto.
4963 * language.h (_LANG_chill): Ditto.
4964 * dwarfread.c (set_cu_language): Ditto.
4965 * dwarfread.c (CHILL_PRODUCER): Ditto.
4966 * dwarfread.c (handle_producer): Ditto.
4967 * expression.h (enum exp_opcode): Ditto.
4968 * eval.c: Ditto for comments.
4969 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4970 * expprint.c (print_subexp): Ditto.
4971 (print_subexp): Ditto.
4972 * valops.c (value_cast): Ditto.
4973 (search_struct_field): Ditto.
4974 * value.h (COERCE_VARYING_ARRAY): Ditto.
4975 * symfile.c (init_filename_language_table): Ditto.
4976 (add_psymbol_with_dem_name_to_list): Ditto.
4977 * valarith.c (value_binop): Ditto.
4978 (value_neg): Ditto.
4979 * valops.c (value_slice): Ditto.
4980 * symtab.h (union language_specific): Ditto.
4981 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4982 (SYMBOL_DEMANGLED_NAME): Ditto.
4983 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4984 * defs.h (enum language): Ditto.
4985 * symtab.c (got_symtab): Ditto.
4986 * utils.c (fprintf_symbol_filtered): Ditto.
4987
4988 * ch-typeprint.c: Make file obsolete.
4989 * ch-valprint.c: Make file obsolete.
4990 * ch-lang.h: Make file obsolete.
4991 * ch-exp.c: Make file obsolete.
4992 * ch-lang.c: Make file obsolete.
4993
4994 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4995 CHILL_LIB.
4996 (TARGET_FLAGS_TO_PASS): Ditto.
4997 (CHILLFLAGS): Obsolete.
4998 (CHILL): Obsolete.
4999 (CHILL_FOR_TARGET): Obsolete.
5000 (CHILL_LIB): Obsolete.
5001 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5002 ch-valprint.c.
5003 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5004 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5005 ch-lang.o.
5006 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5007 targets.
5008
5009 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5010
5011 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5012 This does not change anything at the moment, but will be helpful
5013 later when full Ada support is integrated.
5014
5015 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5016
5017 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5018 help message.
5019
5020 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5021
5022 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5023 and save it in a local variable. Use variable in later test.
5024
5025 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5026
5027 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5028 test. (Thanks to Daniel Jacobowitz.)
5029
5030 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5031
5032 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5033 (mips_abi_strings): Add "n64".
5034 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5035
5036 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5037
5038 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5039 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5040
5041 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5042
5043 * utils.c (host_pointer_to_address, address_to_host_pointer):
5044 Use gdb_assert() instead of explicit call to internal_error().
5045
5046 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5047
5048 * Makefile.in (rs6000-nat.o): Update dependencies.
5049
5050 From Nicholas Duffek:
5051 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5052 (aix-thread.o): New rule.
5053 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5054 * config/powerpc/aix432.mh: New file.
5055
5056 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5057
5058 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5059 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5060 (fetch_core_registers, ppc_linux_supply_gregset)
5061 (ppc_linux_supply_fpregset): New functions.
5062 (ppc_linux_regset_core_fns): New.
5063 (_initialize_ppc_linux_tdep): Call add_core_fns.
5064 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5065 and ppc_linux_supply_gregset.
5066 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5067 (supply_fpregset): Call ppc_linux_supply_fpregset.
5068 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5069 corelow.o.
5070 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5071
5072 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5073
5074 * symtab.c (lookup_symbol): Demangle before lowercasing.
5075
5076 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5077
5078 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5079 declaration.
5080 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5081 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5082 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5083 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5084 "gdb_string.h".
5085 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5086 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5087 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5088 (avr-tdep.o, mon960-rom.o): Ditto.
5089 (aout_stabs_gnu_h): Define.
5090 (symtab_h): Remove $(gdb_obstack_h).
5091
5092 2002-07-30 Jim Blandy <jimb@redhat.com>
5093
5094 Patch from David Carlton <carlton@math.stanford.edu>:
5095 * gdbinit.in: Move the `dir' commands that add GDB's own source
5096 directory to the search path to the end, so that the `gdb' source
5097 directory will be searched first.
5098
5099 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5100
5101 * gdb_obstack.h: New file.
5102 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5103 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5104 * objfiles.h: Include "gdb_obstack.h".
5105 * Makefile.in (gdb_obstack_h): Define.
5106 (symtab_h): Add $(gdb_obstack_h).
5107 (objfiles_h): Add $(gdb_obstack_h).
5108
5109 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5110 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5111 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5112 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5113 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5114 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5115 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5116 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5117
5118 * Makefile.in (bcache.o): Update dependencies.
5119 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5120 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5121 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5122 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5123 (stabsread.o, symfile.o, symmisc.o): Ditto.
5124 (symtab.o, typeprint.o, macroexp.o): Ditto.
5125 (macrotab.o, mdebugread.o): Ditto.
5126 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5127 (coff_ecoff_h, aout_aout64_h): Define.
5128 (aout_stabs_gnu_h, libaout_h): Define.
5129
5130 2002-07-29 Andrew Cagney <cagney@redhat.com>
5131
5132 * regcache.c (struct regcache_descr): Rename nr_registers to
5133 nr_cooked_registers. Revise comments describing the structure
5134 member fields.
5135 (init_regcache_descr): Update.
5136 (init_legacy_regcache_descr): Update.
5137 (read_register_gen, write_register_gen): When a cooked register in
5138 the raw register range, directly access the value from the raw
5139 register cache.
5140
5141 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5142
5143 * z8k-tdep.c: Do not include "obstack.h".
5144 * h8300-tdep.c, h8500-tdep.c: Ditto.
5145 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5146 * valprint.c, v850-tdep.c: Ditto.
5147 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5148 * mn10200-tdep.c: Ditto.
5149
5150 * Makefile.in (z8k-tdep.o): Update dependencies.
5151 (m68hc11-tdep.o, valprint.o): Ditto.
5152 (v850-tdep.o, d10v-tdep.o): Ditto.
5153 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5154 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5155 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5156 (sh_opc_h, gdb_sim_sh_h): Define.
5157 (elf_sh_h, elf_bfd_h): Define.
5158 (opcode_m68hc11_h): Define.
5159 (OPCODES_SRC, OPCODES_DIR): define.
5160 (OPCODES): Use $(OPCODES_DIR).
5161 (gdb_sim_d10v_h): Rename sim_d10v_h.
5162 (gdb_sim_arm_h): Rename sim_arm_h.
5163
5164 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5165
5166 * utils.c (host_pointer_to_address, address_to_host_pointer):
5167 Change internal_error() message to indicate function responsible
5168 for the error.
5169
5170 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5171
5172 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5173 calls to local_hex_string_custom().
5174
5175 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5176
5177 * irix5-nat.c: Move IRIX shared library support from here...
5178 * solib-irix.c: ...to here. Revised substantially to work with
5179 generic solib framework.
5180
5181 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5182 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5183 * mips-irix-tdep.c: New file.
5184
5185 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5186 (mips-irix-tdep.o, solib-irix.o): New rules.
5187 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5188 solib-irix.o.
5189 * config/mips/irix6.mt (TDEPFILES): Likewise.
5190 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5191
5192 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5193
5194 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5195 disabled (via ``#if 0'') includes.
5196
5197 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5198
5199 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5200 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5201 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5202 Add support for the fpscr register.
5203 * rs6000-nat.c (regmap, fetch_inferior_registers)
5204 (store_inferior_registers, fetch_core_registers): Likewise.
5205
5206 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5207
5208 * rs6000-nat.c (language.h): Include.
5209 (special_regs): Delete this array.
5210 (regmap): New function.
5211 (fetch_register, store_register): Use regmap() to map gdb
5212 register numbers to ptrace register numbers. Also, use
5213 outputs from regmap() to make decisions regarding type of
5214 ptrace() call to make. In particular, don't compare against
5215 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5216 (fetch_inferior_registers, store_inferior_registers): Where
5217 possible, obtain register numbers from tdep struct. Don't
5218 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5219 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5220 (LAST_UISA_SP_REGNUM): Delete.
5221
5222 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5223
5224 * rs6000-nat.c (ppc-tdep.h): Include.
5225 (fetch_registers, store_register, fetch_core_registers): Don't
5226 access registers[] directly. Instead, use supply_register() or
5227 regcache_collect() as appropriate.
5228 (find_toc_address): Format hex address with local_hex_string().
5229
5230 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5231
5232 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5233 bfd/elf32-frv.c.
5234
5235 2002-07-24 Tom Tromey <tromey@redhat.com>
5236
5237 * jv-exp.y: Marked all strings with _().
5238 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5239 internal_error.
5240 (MethodInvocation, CastExpression, parse_number, yyerror,
5241 java_type_from_name, push_expression_name, yylex): Typo fixes.
5242
5243 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5244
5245 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5246 (tee_file_flush, tee_file_write, tee_file_fputs)
5247 (tee_file_isatty): New.
5248 * ui-file.h (tee_file_new): Add prototype.
5249
5250 2002-07-24 Aidan Skinner <aidan@velvet.net>
5251
5252 * ada-lang.c: Change k&r style function definitions to prototyped
5253 form.
5254 * ada-typeprint.c: Change k&r style function definitions to prototyped
5255 form.
5256 * ada-valprint.c: Change k&r style function definitions to prototyped
5257 form.
5258
5259 2002-07-24 Andrew Cagney <cagney@redhat.com>
5260
5261 * README: Remove reference to remote-bug.
5262 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5263 remote-bug.c.
5264 (m88k-nat.o): Delete rule.
5265 (m88k-tdep.o): Delete rule.
5266 (remote-bug.o): Delete rule.
5267 * MAINTAINERS: Mark as obsolete.
5268 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5269 * m88k-tdep.c: Make file obsolete.
5270 * config/m88k/m88k.mh: Ditto.
5271 * config/m88k/delta88v4.mh: Ditto.
5272 * config/m88k/delta88v4.mt: Ditto.
5273 * config/m88k/delta88.mt: Ditto.
5274 * config/m88k/delta88.mh: Ditto.
5275 * remote-bug.c: Ditto.
5276 * config/m88k/tm-delta88.h: Ditto.
5277 * config/m88k/nm-delta88v4.h: Ditto.
5278 * config/m88k/xm-delta88.h: Ditto.
5279 * config/m88k/xm-dgux.h: Ditto.
5280 * config/m88k/tm-m88k.h: Ditto.
5281 * config/m88k/nm-m88k.h: Ditto.
5282 * config/m88k/tm-delta88v4.h: Ditto.
5283 * m88k-nat.c: Ditto.
5284 * cxux-nat.c: Ditto.
5285 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5286 and m88*-*-* obsolete.
5287 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5288 m88*-*-* obsolete.
5289
5290 2002-07-24 Andrew Cagney <cagney@redhat.com>
5291
5292 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5293 constant. Same for local pointer variables.
5294 (extract_signed_integer): Ditto.
5295 * defs.h (extract_unsigned_integer): Update.
5296 (extract_signed_integer): Update.
5297
5298 2002-07-24 Andrew Cagney <cagney@redhat.com>
5299
5300 * regcache.c (regcache_raw_write): Change buf parameter to a
5301 constant void pointer.
5302 (regcache_raw_read): Change buf parameter to a void pointer.
5303 (legacy_write_register_gen): Change myaddr parameter a constant
5304 void pointer.
5305 (supply_register): Change val parameter to a const void pointer.
5306 * regcache.h (regcache_raw_write): Update declaration.
5307 (regcache_raw_read): Update declaration.
5308 (supply_register): Update declaration.
5309
5310 2002-07-24 Tom Tromey <tromey@redhat.com>
5311
5312 * defs.h (gdb_readline_wrapper): Declare.
5313 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5314 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5315 * top.c (gdb_readline_wrapper): New function.
5316 (command_line_input): Use it.
5317
5318 2002-07-24 Andrew Cagney <cagney@redhat.com>
5319
5320 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5321 regcache_read and regcache_write.
5322 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5323 * regcache.c: Update.
5324 * sh-tdep.c (sh64_push_arguments): Update comment.
5325 (sh_pseudo_register_read): Update.
5326 (sh_pseudo_register_write): Update.
5327 (sh4_register_read): Update.
5328 (sh4_register_write): Update.
5329 (sh64_pseudo_register_read): Update.
5330 (sh64_pseudo_register_write): Update.
5331 (sh64_register_read): Update.
5332 (sh64_register_write): Update.
5333 * i386-tdep.c (i386_extract_return_value): Update.
5334 (i386_extract_struct_value_address): Update.
5335 (i386_extract_return_value): Update.
5336 * blockframe.c (generic_read_register_dummy): Update.
5337 (generic_call_dummy_register_unwind): Update
5338 * infrun.c (write_inferior_status_register): Update.
5339
5340 2002-07-23 Jim Blandy <jimb@redhat.com>
5341
5342 * parser-defs.h (expression_context_pc): Make this extern.
5343 (Thanks to Michael Snyder.)
5344
5345 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5346
5347 GDB 5.2.1 released from 5.2 branch.
5348 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5349 * README: Update to mention 5.2.1.
5350
5351 2002-07-23 Mark Salter <msalter@redhat.com>
5352
5353 * remote.c (remote_read_bytes): Fix check for error.
5354
5355 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5356
5357 * aix-thread.c (language.h): Include.
5358 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5359 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5360 Print newlines at end of debug messages.
5361 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5362 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5363
5364 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5365
5366 * aix-thread.c (ppc-tdep.h): Include.
5367 (special_register_p): New function.
5368 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5369 (store_regs_user_thread): Use register number information from
5370 gdbarch_tdep struct instead of hardcoded offsets relative to
5371 FIRST_UISA_SP_REGNUM.
5372 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5373 special_register_p() instead of using FPLAST_REGNUM and
5374 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5375 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5376 will be MQ's register number.
5377
5378 2002-07-22 Michael Snyder <msnyder@redhat.com>
5379
5380 * aix-thread.c (ops): Rename to aix_thread_ops.
5381 (base_ops): Rename to base_target.
5382 (ops_attach): Rename to aix_thread_attach.
5383 (ops_detach): Rename to aix_thread_detach.
5384 (ops_resume): Rename to aix_thread_detach.
5385 (ops_wait): Rename to aix_thread_wait.
5386 (ops_kill): Rename to aix_thread_kill.
5387 (init_ops): Rename to init_aix_thread_ops.
5388 (ops_fetch_register): Rename to aix_thread_fetch_register.
5389 (ops_store_register): Rename to aix_thread_store_register.
5390 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5391 (ops_thread_alive): Rename to aix_thread_thread_alive.
5392 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5393 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5394 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5395 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5396 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5397 (store_regs_lib): Rename to store_regs_user_thread.
5398 (store_regs_kern): Rename to store_regs_kernel_thread.
5399
5400 2002-07-22 Michael Snyder <msnyder@redhat.com>
5401
5402 * aix-thread.c (ops_prepare_to_store): Eliminate.
5403 (init_ops): Don't initialize ops.prepare_to_store.
5404 (store_regs_kern): Pre-fetch register buffers from child,
5405 because some registers may not be in the cache. Copy
5406 regs from register cache only if they are cached.
5407 (store_regs_lib): Copy regs from register cache only
5408 if they are cached.
5409 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5410 fill_gprs64): Ditto.
5411
5412 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5413
5414 * aix-thread.c (gdb_assert.h): Include.
5415 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5416 register sizes (from register cache) match size of buffer holding
5417 register data.
5418 (fill_sprs32): Change parameter types to match those in the ptrace()
5419 buffer.
5420 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5421 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5422
5423 2002-07-22 Michael Snyder <msnyder@redhat.com>
5424
5425 * aix-thread.c (supply_sprs64): Cosmetic change.
5426 (supply_sprs32): Cosmetic change.
5427 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5428 (fill_sprs64): Use regcache_collect instead of read_register.
5429 (store_regs_lib): Use regcache_collect instead of
5430 read_register. Use fill_sprs32 instead of fill_sprs64,
5431 if debugging a 32-bit architecture.
5432 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5433 out of the register cache, instead of passing a pointer into
5434 the register cache directly to ptrace. Use regcache_collect
5435 insteaad of read_register.
5436 (ops_prepare_to_store): Use target_read_registers instead
5437 of read_register_bytes.
5438
5439 2002-07-20 Aidan Skinner <aidan@velvet.net>
5440
5441 * MAINTAINERS: Add self under write after approval.
5442
5443 2002-07-20 Aidan Skinner <aidan@velvet.net>
5444
5445 * ada-tasks.c: Change k&r style function definitions to prototyped
5446 form.
5447
5448 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5449
5450 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5451 * x86-64-tdep.c: Include "objfiles.h".
5452 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5453 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5454
5455 2002-07-17 Michal Ludvig <michal@suse.cz>
5456
5457 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5458 (update_context): Initialise cfa variable.
5459
5460 2002-07-17 Michael Snyder <msnyder@redhat.com>
5461
5462 * aix-thread.c: Shorten some long lines.
5463 Bring comments into line with code spec.
5464
5465 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5466
5467 * infrun.c: Re-indent using gdb_indent.sh.
5468
5469 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5470
5471 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5472 Leave the indentation temporarily untouched, to minimize the diffs.
5473
5474 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5475
5476 * stabsread.c: Make os9k sections of the code obsolete,
5477 for real this time.
5478 * stabsread.h: Make os9k sections of the code obsolete.
5479
5480 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5481
5482 * linux-low.c (regsets_store_inferior_registers): Add free()
5483 at the end of a loop to prevent memory leak.
5484 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5485 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5486 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5487 line a comment.
5488 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5489
5490 2002-07-17 Jim Blandy <jimb@redhat.com>
5491
5492 * macrocmd.c (info_macro_command): Remove newline from error
5493 message.
5494
5495 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5496
5497 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5498 (sh_gdbarch_init): Use it for sh-dsp.
5499
5500 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5501
5502 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5503 64-bit DWARF2 format.
5504
5505 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5506
5507 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5508 <sys/proc.h> when not available.
5509
5510 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5511
5512 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5513 * stabsread.c: Make os9k sections of the code obsolete.
5514 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5515 * config/i386/i386os9k.mt: Make file obsolete.
5516 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5517 (COMMON_OBS): Remove os9kread.o
5518 (SFILES): Remove os9kread.c.
5519 (os9kread.o, remote-os9k.o): Make target obsolete.
5520 * remote-os9k.c: Make file obsolete.
5521 * os9kread.c: Make file obsolete.
5522 * Makefile.in
5523
5524 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5525
5526 * NEWS: Mention that the FR30 has been made obsolete.
5527 * fr30-tdep.c: Make file obsolete.
5528 * config/fr30/tm-fr30.h: Ditto.
5529 * config/fr30/fr30.mt: Ditto.
5530 * configure.tgt: Make fr30-*-elf obsolete.
5531 * MAINTAINERS: Make fr30-elf obsolete.
5532
5533 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5534
5535 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5536 found is not inside a section.
5537
5538 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5539
5540 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5541 strerror().
5542 (pdc_realloc): Use xrealloc() instead of realloc().
5543
5544 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5545
5546 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5547 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5548 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5549 macros.
5550
5551 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5552
5553 * aix-thread.c (ptrace_check): Eliminate goto.
5554 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5555 problem.
5556
5557 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5558
5559 * aix-thread.c (gdbcmd.h): Include.
5560 (DEBUG, DBG, DBG2, dbg): Eliminate.
5561 (debug_aix_thread): New static global.
5562 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5563 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5564 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5565 invocations to DBG and DBG2 macros to test against
5566 ``debug_aix_thread'' and call fprintf_unfiltered().
5567 (_initialize_aix_thread): Add new command "set debug aix-thread".
5568
5569 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5570
5571 From Gerhard Tonn <TON@de.ibm.com>:
5572 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5573 instead of supply_register.
5574
5575 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5576
5577 * dwarf2cfi.c: Include "gdb_assert.h".
5578 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5579 non-NULL.
5580 (update_context): Do not use __func__. Add missing ``break''.
5581 (update_context): Do not use __func__.
5582
5583 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5584
5585 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5586 and its setting. Set gdbarch instruction printing functions
5587 directly. For non-rs6000 case use new function
5588 gdb_print_insn_powerpc.
5589 (gdb_print_insn_powerpc): New function.
5590
5591 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5592
5593 * NEWS: Mention that the d30v has been marked obsolete.
5594 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5595 * configure.tgt: Mark d30v-*-* as obsolete.
5596 * d30v-tdep.c: Mark file as obsolete.
5597 * config/d30v/d30v.mt: Ditto.
5598 * config/d30v/tm-d30v.h: Ditto.
5599
5600 2002-07-13 Aidan Skinner <aidan@velvet.net>
5601
5602 * ada-tasks.c (add_task_entry): replace calls to
5603 malloc() with xmalloc
5604 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5605
5606 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5607 ada_finish_decode_line_1, all_sals_for_line
5608 ada_breakpoint_rewrite): replace calls to free() with xfree()
5609
5610 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5611
5612 From Nicholas Duffek (with minor changes by Martin Hunt,
5613 Louis Hamilton, and Kevin Buettner):
5614 * aix-thread.c: New file.
5615
5616 2002-07-12 Petr Sorfa <petrs@caldera.com>
5617
5618 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5619 complaint for invalid attribute class or form.
5620 (read_func_scope): DW_AT_frame_base
5621 better handling of DW_AT_block*.
5622 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5623 better handling of DW_AT_block*.
5624 (read_common_block): DW_AT_location
5625 better handling of DW_AT_block*.
5626 (read_partial_die): DW_AT_location better handling
5627 of DW_AT_block*.
5628 (new_symbol): DW_AT_external better handling of
5629 DW_AT_block*. Proper initialization of variable
5630 "addr".
5631 (attr_form_is_block): New function that returns true
5632 if the attribute's form is of DW_FORM_block*.
5633
5634 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5635
5636 * valops.c (find_method_list): Remove comment about
5637 removed STATIC_MEMFUNCP argument.
5638 (value_find_oload_method_list): Likewise.
5639
5640 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5641
5642 From Nicholas Duffek:
5643 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5644 target_new_objfile_hook.
5645
5646 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5647
5648 From Nicholas Duffek:
5649 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5650 csect.
5651
5652 2002-07-12 Andrew Cagney <cagney@redhat.com>
5653
5654 * MAINTAINERS: Mention --enable-sim-build-warnings.
5655 (m68hc11-elf): Disable sim build warnings.
5656 (m32r-elf): Mark as broken obsolete candidate.
5657 (x86_64-linux-gnu): Mark as buildable with -Werror.
5658 (arm-elf): Change -w to ``,'' which enables warnings but not
5659 -Werror.
5660
5661 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5662
5663 * bcache.h: Update copyright.
5664 (struct bstring, struct bcache): Move definition to "bcache.c".
5665 Replaced by opaque declaration.
5666 (bcache_xfree): Replace free_bcache.
5667 (bcache_xmalloc, bcache_memory_used): Declare.
5668
5669 * bcache.c: Update copyright.
5670 (struct bstring, struct bcache): Moved to here from "bcache.h".
5671 Update comments.
5672 (bcache_xmalloc, bcache_memory_used): New functions.
5673 (bcache_xfree): Replace function free_bcache.
5674
5675 * Makefile.in (objfiles.o): Add $(bcache_h).
5676 (objfiles_h): Remove $(bcache_h).
5677 (symfile.o): Add $(bcache_h).
5678
5679 * symmisc.c: Update copyright.
5680 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5681 (print_objfile_statistics): Use bcache_memory_used.
5682
5683 * symfile.c: Include "bcache.h".
5684 (reread_symbols): Use bcache_xfree.
5685 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5686 (add_psymbol_to_list): Pass psymbol_cache by value.
5687 (add_psymbol_with_dem_name_to_list): Ditto.
5688
5689 * objfiles.h: Update copyright.
5690 (struct bcache): Declare opaque. Do not include "bcache.h".
5691 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5692 bcache'' pointers.
5693 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5694
5695 * objfiles.c: Include "bcache.h". Update copyright.
5696 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5697 macro_cache.
5698 (free_objfile): Use bcache_xfree.
5699
5700 2002-07-11 Grace Sainsbury <graces@redhat.com>
5701
5702 * monitor.c (monitor_fetch_register): Make name a constant.
5703 (monitor_store_register): Same.
5704
5705 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5706
5707 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5708 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5709 (finish_block) For non-function blocks, hash the symbol table. For
5710 function blocks, mark the symbol table as unhashed.
5711 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5712 (msymbol_hash_iw): Likewise.
5713 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5714 value.
5715 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5716 (lookup_minimal_symbol): Likewise for both.
5717 * symtab.h (struct block): Add `hashtable' flag. Comment the
5718 hashtable.
5719 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5720 (ALL_BLOCK_SYMBOLS): Update.
5721 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5722 (struct symbol): Add `hash_next' pointer.
5723 * symtab.c (lookup_block_symbol): Search using the hash table when
5724 possible.
5725 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5726 (search_symbols, find_addr_symbol): Likewise.
5727
5728 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5729 (read_dst_symtab): Likewise.
5730 * jv-lang.c (get_java_class_symtab): Likewise.
5731 * mdebugread.c: Include "gdb_assert.h".
5732 (shrink_block): Assert that the block being modified is not hashed.
5733 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5734 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5735 symbols.
5736 (dump_symtab): Recognize hashed blocks.
5737 * printcmd.c (print_frame_args): Assert that function blocks do not
5738 have hashed symbol tables.
5739 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5740 (fill_in_ada_prototype, debug_print_block): Likewise.
5741 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5742
5743 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5744
5745 * stack.c (print_frame): Use result of frame_address_in_block()
5746 instead of fi->pc when evaluating symbols.
5747 (backtrace_command_1): Ditto.
5748
5749 2002-07-11 Andrew Cagney <cagney@redhat.com>
5750
5751 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5752 Make static.
5753
5754 * arm-tdep.c (arm_register_name): Make return type constant.
5755
5756 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5757
5758 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5759 prototype.
5760 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5761 * s390-tdep.c (s390_fp_regnum): Ditto.
5762 (s390_read_fp): Ditto.
5763 (s390_pop_frame): Ditto.
5764 (_initialize_s390_tdep): Ditto.
5765 * remote.c (get_remote_state): Ditto.
5766 * procfs.c (mappingflags): Ditto.
5767 * memattr.c (_initialize_mem): Ditto.
5768 * mcore-tdep.c (mcore_pop_frame): Ditto.
5769 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5770 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5771 * language.c (set_case_str): Ditto.
5772 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5773 * frv-tdep.c (new_variant): Ditto.
5774 (frv_stopped_data_address): Ditto.
5775 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5776 (context_alloc): Ditto.
5777 (frame_state_alloc): Ditto.
5778 (unwind_tmp_obstack_init): Ditto.
5779 (unwind_tmp_obstack_free): Ditto.
5780 (cfi_read_fp): Ditto.
5781 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5782 (cris_pop_frame): Ditto.
5783 * c-lang.c (scanning_macro_expansion): Ditto.
5784 (finished_macro_expansion): Ditto.
5785 (c_preprocess_and_parse): Ditto.
5786 * gdbarch.sh: Ditto.
5787 * gdbarch.h, gdbarch.c: Regenerate.
5788 * config/mn10200/tm-mn10200.h: Adjust indentation.
5789 * target.c: Adjust indentation.
5790 * symtab.h: Adjust indentation.
5791 * stabsread.h: Adjust indentation.
5792 * remote-es.c: Adjust indentation.
5793 * os9kread.c: Adjust indentation.
5794
5795 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5796
5797 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5798 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5799
5800 2002-07-10 Grace Sainsbury <graces@redhat.com>
5801
5802 * NEWS: Mention m68k, mcore multi-arching.
5803 * MAINTAINERS: Change status of m68k, mcore to reflect
5804 multi-arching.
5805
5806 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5807
5808 * valops.c (find_overload_match): Free oload_syms.
5809
5810 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5811
5812 Define HAVE_SYS_PROC_H if sys/proc.h exists
5813 * configure.in: Add check for sys/proc.h
5814 * config.in: Regenerate.
5815 * configure: Regenerate.
5816
5817 2002-07-09 Grace Sainsbury <graces@redhat.com>
5818
5819 * config/m68k/tm-m68k.h: Remove macros wrapped in
5820 #if !GDB_MULTI_ARCH.
5821
5822 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5823
5824 * config.in, configure: Regenerate.
5825
5826 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5827
5828 * dwarf2cfi.c: Include "gcore.h".
5829 (execute_stack_op): Fix implementation of the
5830 DW_OP_deref and DW_OP_deref_size operators by letting do their
5831 lookup in the target.
5832
5833 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5834
5835 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5836 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5837 tdep->sc_sp_offset.
5838
5839 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5840
5841 Fix PR gdb/595, gdb/602
5842 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5843 Don't call value_cast, just read the vtable pointer; update comments
5844 to match.
5845
5846 2002-07-05 Grace Sainsbury <graces@redhat.com>
5847
5848 * config/mcore/tm-mcore.h: Remove file.
5849 * config/mcore/mcore.mt: Remove definition of TM_FILE
5850 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5851
5852 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5853
5854 * i386bsd-tdep.c: Include "gdb_string.h".
5855
5856 2002-07-04 Grace Sainsbury <graces@redhat.com>
5857
5858 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5859 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5860 mcore-tdep.
5861 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5862 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5863 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5864 (RETVAL_REGNUM): Move macros from tm-mcore.h
5865 (mcore_reg_struct_has_addr): New function.
5866 (mcore_gdbarch_init): Added initializations for the macros removed
5867 from tm-mcore.h.
5868
5869 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5870
5871 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5872 traditonal string branding within the ELF header.
5873
5874 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5875
5876 * symtab.c (remove_params): New function.
5877 (make_symbol_overload_list): Use it instead of cplus_demangle.
5878 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5879
5880 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5881
5882 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5883
5884 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5885 New variables.
5886 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5887 and tdep->sigtramp_end.
5888 * i386obsd-nat.c: New file.
5889 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5890
5891 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5892 Don't call get_current_frame().
5893
5894 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5895
5896 * i386-nat.c (child_post_startup_inferior): New function
5897 calling i386_cleanup_dregs if
5898 I386_USE_GENERIC_WATCHPOINTS is defined.
5899 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5900 conditional to acknowledge that i386-nat.c has its
5901 own child_post_startup_inferior function.
5902
5903 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5904
5905 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5906 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5907 instead of MAX_REGISTER_RAW_SIZE.
5908 (i386_extract_return_value, i386_extract_struct_value_address):
5909 Convert to use regcache.
5910 (i386_gdbarch_init): Set max_register_raw_size and
5911 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5912 Set extract_return_value and extract_struct_value_address instead
5913 of their deprecated variants.
5914
5915 Convert i386 target to generic dummy frames.
5916 * i386-tdep.c: Include "symfile.h".
5917 (i386_frameless_signal_p): Consider a function to be frameless if
5918 the pc points at the first instruction of the function.
5919 (i386_frame_chain): Handle (generic) call dummies.
5920 (i386_frame_saved_pc): Likewise.
5921 (i386_frame_init_saved_regs): Remove code dealing with call
5922 dummies on the stack.
5923 (i386_push_dummy_frame): Removed.
5924 (i386_call_dummy_words): Removed.
5925 (i386_fix_call_dummy): Removed.
5926 (i386_push_return_address): New function.
5927 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5928 parameter, and don't call get_current_frame.
5929 (i386_pop_frame): New function.
5930 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5931 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5932 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5933 call_dummy_length to 0, set call_dummy_words to NULL, set
5934 sizeof_call_dummy_words to 0, set fix_call_dummy to
5935 generic_fix_call_dummy, set pc_in_call_dummy to
5936 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5937 generic_push_dummy_frame, set push_return_address to
5938 i386_push_return_address and set frame_chain_valid to
5939 generic_file_frame_chain_valid.
5940
5941 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5942
5943 * gdbarch.sh (struct regcache): Add opaque declaration.
5944 (EXTRACT_RETURN_VALUE): New architecture method.
5945 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5946 * gdbarch.h, gdbarch.c: Regenerate.
5947 * arch-utils.c (legacy_extract_return_value): New function.
5948 * arch-utils.h (legacy_extract_return_value): Declare.
5949 * values.c (value_being_returned): Re-enable code handling
5950 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5951 deprecated_grub_regcache_for_registers call to block handling
5952 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5953 (EXTRACT_RETURN_VALUE): Do not define.
5954
5955 2002-07-03 Grace Sainsbury <graces@redhat.com>
5956
5957 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5958 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5959 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5960 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5961 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5962 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5963 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5964 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5965 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5966 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5967 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5968 argument so the function fits the prototype in the architecture
5969 vector.
5970 (mcore_pop_frame): Remove argument so the function fits the
5971 prototype. Use get_current_frame instead of the argument.
5972 (mcore_push_arguments): Change type of struct_return so the
5973 function can be used in the architecture vector.
5974 (mcore_store_struct_return): Add.
5975 (mcore_frame_init_saved_regs): Add.
5976 (mcore_gdbarch_init): Add function calls to replace the macros
5977 removed from tm-mcore.h
5978
5979 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5980
5981 * infcmd.c (print_return_value): Remove compatibility code calling
5982 deprecated_grub_regcache_for_registers.
5983
5984 * values.c: Include "regcache.h".
5985 (value_being_returned): Update. Use
5986 deprecated_grub_regcache_for_registers to extract the register
5987 buffer address.
5988 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5989 ``struct regcache''.
5990 * Makefile.in (values.o): Add dependency on $(regcache_h).
5991
5992 * inferior.h (run_stack_dummy): Change type of second parameter to
5993 a ``struct regcache''.
5994 * valops.c (hand_function_call): Change type of retbuf to ``struct
5995 regcache''. Allocate using regcache_xmalloc, clean using
5996 make_cleanup_regcache_xfree.
5997 * infcmd.c (run_stack_dummy): Update. Use
5998 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5999
6000 * regcache.c (do_regcache_xfree): New function.
6001 (make_cleanup_regcache_xfree): New function.
6002 * regcache.h (make_cleanup_regcache_xfree): Declare.
6003
6004 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6005
6006 * event-top.c (command_line_handler): Don't read past
6007 beginning of buffer.
6008
6009 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6010
6011 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6012 struct frame_id.
6013 (varobj_create): Store frame_id for root.
6014 (varobj_gen_name): Use xasprintf.
6015 (varobj_update): Save and restore frame using get_frame_id() and
6016 frame_find_by_id().
6017 (create_child): Use xasprintf.
6018 (new_root_variable): Initialize frame_id.
6019 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6020 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6021 to prevent memory leak.
6022
6023 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6024
6025 * valops.c (hand_function_call): Move declaration of retbuf to
6026 start of function, allocate using malloc, add a cleanup but before
6027 the inf_status cleanup, cleanup the buffer. Rename local variable
6028 old_chain to inf_status_cleanup.
6029
6030 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6031
6032 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6033
6034 * cli/cli-decode.c (cmd_func_p): New function.
6035 (cmd_func): New function.
6036
6037 * command.h: Add cmd_func() and cmd_func_p().
6038
6039 2002-07-03 Grace Sainsbury <graces@redhat.com>
6040
6041 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6042 (REGISTER_SIZE): Remove.
6043 (MAX_REGISTER_RAW_SIZE): Remove.
6044 (REGISTER_VIRTUAL_TYPE): Remove.
6045 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6046 (REGISTER_NAME): Remove.
6047 (USE_GENERIC_DUMMY_FRAMES): Remove.
6048 (CALL_DUMMY): Remove.
6049 (CALL_DUMMY_START_OFFSET): Remove.
6050 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6051 (CALL_DUMMY_LOCATION): Remove.
6052 (FIX_CALL_DUMMY): Remove.
6053 (CALL_DUMMY_ADDRESS): Remove.
6054 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6055 (SAVE_DUMMY_FRAME_TOS): Remove.
6056 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6057 (mcore_register_virtual_type): New function.
6058 (mcore_register_byte): New function.
6059 (mcore_register_size): New function.
6060 (mcore_register_name): New function.
6061 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6062 macros removed from tm-mcore.h.
6063 (mcore_dump_tdep): Add.
6064 (_initialize_mcore_tdep): Add gdbarch_register call.
6065
6066 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6067
6068 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6069 frameless_look_for_prologue, such that we actually call this
6070 function.
6071
6072 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6073
6074 * frame.h (frame_address_in_block): New function.
6075
6076 * blockframe.c (frame_address_in_block): New function extracted
6077 from get_frame_block().
6078 (get_frame_block): Use frame_address_in_block().
6079 (block_innermost_frame): Use frame_address_in_block() to match
6080 the frame pc address against the block boundaries rather than
6081 the frame pc directly. This prevents a failure when a frame pc
6082 is actually a return-address pointing immediately after the end
6083 of the given block.
6084
6085 2002-07-02 Grace Sainsbury <graces@redhat.com>
6086
6087 * MAINTAINERS: Add self under write after approval.
6088
6089 2002-07-02 Grace Sainsbury <graces@redhat.com>
6090
6091 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6092 used in architecture vector. The default is
6093 m68k_local_breakpoint_from_pc.
6094 (m68k_local_breakpoint_from_pc): Add.
6095 (enum): Add register numbers from tm-m68k.h.
6096 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6097 vector.
6098 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6099 GDB_MULTI_ARCH_PARTIAL.
6100 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6101 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6102 m68k-tdep.c.
6103 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6104 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6105 to enum in m68k-tdep.c
6106
6107 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6108
6109 * solib-osf.c (open_map): Compute the list of shared libraries
6110 loaded by the inferior, rather than the list of libraries loaded
6111 by GDB itself. Otherwise, GDB ends up reading the symbols from
6112 the wrong shared libraries...
6113
6114 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6115
6116 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6117 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6118 macros.
6119 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6120 Remove functions.
6121 (FRAMELESS_SIGNAL): Remove function.
6122 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6123 i386_linux_saved_pc_after_call): Removed.
6124 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6125 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6126 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6127
6128 * i386-tdep.c (i386_frameless_signal_p): New function.
6129 (i386_frame_chain): Deal with frameless signals.
6130 (i386_sigtramp_saved_sp): New function.
6131 (i386_frame_saved_pc): Deal with frameless signals.
6132 (i386_saved_pc_after_call): Make sure the correct value is
6133 returned just after entry into a sigtramp.
6134 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6135 i386fbsd4_sc_sp_offset): New variables.
6136 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6137 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6138 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6139 similiar to what we already did for sc_pc_offset.
6140 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6141 tdep->sc_sp_offset.
6142
6143 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6144
6145 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6146
6147 * config/i386/tm-x86-64linux.h: New.
6148 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6149 definitions.
6150 * config/i386/nm-x86-64.h: Rename to ...
6151 * config/i386/nm-x86-64linux.h: ... this one.
6152 * config/i386/x86-64linux.mh: Reflect the above change.
6153
6154 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6155
6156 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6157 with sigcontext_addr. Add sc_sp_offset.
6158 (i386bsd_sigtramp_saved_pc): Remove prototype.
6159 (i386bsd_sicontext_addr): Add prototype.
6160 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6161 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6162 (i386_svr4_sigtramp_saved_pc): Removed.
6163 (i386_svr4_sigcontext_addr): New function.
6164 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6165 Initialize tdep->sigcontext_addr instead. Initialize
6166 tdep->sc_pc_offset and tdep->sc_sp_offset.
6167 (i386_gdbarch_init): Likewise.
6168 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6169 any more.
6170 (i386bsd_sigtramp_saved_pc): Remove function.
6171 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6172 Initialize tdep->sigcontext_addr instead. Initialize
6173 tdep->sc_pc_offset.
6174 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6175 of tdep->sigtramp_saved_pc.
6176 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6177 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6178 instead.
6179
6180 * i386-tdep.c (i386_frameless_function_invocation,
6181 i386_frame_num_args, i386_frame_init_saved_regs,
6182 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6183 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6184 i386_extract_return_value, i386_store_return_value,
6185 i386_extract_struct_value_address, i386_register_virtual_type,
6186 i386_register_convertible, i386_register_convert_to_virtual,
6187 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6188 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6189 static.
6190
6191 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6192
6193 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6194
6195 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6196 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6197 this macro. Include "value.h".
6198
6199 2002-06-30 Aidan Skinner <aidan@velvet.net>
6200
6201 * ada-exp.tab.c: remove as it's a generated file
6202 * ada-lex.c: remove as it's a generated file
6203
6204 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6205
6206 * config/i386/tm-i386.h (struct frame_info, struct
6207 frame_saved_regs, struct value, struct type): Remove forward
6208 declarations.
6209
6210 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6211 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6212 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6213 (FILL_FPXREGSET): Define.
6214
6215 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6216
6217 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6218 i[3456]86-*-netbsd* case.
6219 * config/i386/tm-obsd.h: Removed.
6220 * config/i386/obsd.mt: Removed.
6221 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6222 core-aout.o.
6223 (MH_CFLAGS): Add -DYYDEBUG=0.
6224
6225 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6226 i386nbsd_sc_pc_offset on OpenBSD too.
6227
6228 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6229 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6230 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6231 define.
6232 * i386bsd-tdep.c: Include "arch-utils.h".
6233 (i386bsd_aout_in_solib_call_trampoline): New function.
6234 (i386bsd_init_abi): Set in_solib_call_trampoline to
6235 i386bsd_aout_in_solib_call_trampoline.
6236 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6237 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6238
6239 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6240
6241 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6242 (struct obstack, struct bcache): Add opaque declarations.
6243 * Makefile.in (macrotab_h): Update
6244
6245 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6246
6247 * blockframe.c (generic_find_dummy_frame): Change return type to
6248 ``struct regcache''.
6249 (struct dummy_frame): Replace field ``registers'' with regcache, a
6250 struct regcache object.
6251 (generic_find_dummy_frame): Update.
6252 (generic_push_dummy_frame): Update. Use regcache_xfree,
6253 regcache_xmalloc and regcache_cpy.
6254 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6255 regcache_xfree.
6256 (deprecated_generic_find_dummy_frame): Update.
6257 (generic_read_register_dummy): Update. Use
6258 regcache_read_as_address.
6259 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6260 (generic_get_saved_register): Update. Use regcache_read.
6261
6262 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6263
6264 * Makefile.in (objfiles_h): Add $(bcache_h).
6265 * objfiles.h: Include "bcache.h".
6266
6267 * Makefile.in (symtab_h): Remove $(bcache_h).
6268 * symtab.h: Do not include "bcache.h".
6269
6270 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6271
6272 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6273 generic_func_frame_chain_valid.
6274
6275 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6276
6277 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6278 * config/i386/tm-fbsd.h: Likewise.
6279
6280 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6281
6282 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6283 generic_unwind_get_saved_register.
6284
6285 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6286
6287 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6288 * regcache.c (supply_register): Add missing argument to
6289 register_buffer call.
6290
6291 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6292
6293 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6294 Solaris /bin/grep does not not like it. From Peter Schauer.
6295
6296 2002-06-26 Tom Tromey <tromey@redhat.com>
6297
6298 * command.h (add_setshow_cmd): Declare.
6299 (add_setshow_cmd_full): Declare.
6300 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6301 returns void. Use add_setshow_cmd_full.
6302 (add_setshow_cmd_full): New function.
6303 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6304 (add_setshow_boolean_cmd): Likewise.
6305
6306 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * config/vax/tm-vax.h: Protect from multiple inclusion.
6309 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6310 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6311 * config/vax/tm-vaxbsd.h: ...here. New file.
6312 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6313
6314 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6317 (BELIEVE_PCC_PROMOTION): Remove.
6318 (AP_REGNUM): Move to...
6319 * config/vax/nm-vax.h: ...here.
6320 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6321 (vax_breakpoint_from_pc): New function.
6322 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6323 and gdbarch_believe_pcc_promotion.
6324
6325 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6326
6327 * Makefile.in (vax_tdep_h): Define.
6328 (vax-tdep.o): Use $(vax_tdep_h).
6329 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6330 (vax_dump_tdep): New function.
6331 (_initialize_vax_tdep): Register vax_dump_tdep.
6332 * vax-tdep.h: Include osabi.h.
6333 (struct gdbarch_tdep): New.
6334
6335 2002-06-26 Andrew Cagney <cagney@redhat.com>
6336
6337 * frame.h (deprecated_generic_find_dummy_frame): Rename
6338 generic_find_dummy_frame.
6339 * blockframe.c (generic_find_dummy_frame): Make static.
6340 (deprecated_generic_find_dummy_frame): New function.
6341 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6342 generic_find_dummy_frame with deprecated_find_dummy_frame.
6343 (sh64_nofp_frame_init_saved_regs): Ditto.
6344 (sh_fp_frame_init_saved_regs): Ditto.
6345 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6346 (s390_frame_chain): Ditto.
6347 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6348
6349 2002-06-26 Grace Sainsbury <graces@redhat.com>
6350
6351 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6352 gdbarch vector are at the top.
6353 (NUM_REGS): Remove.
6354 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6355 (FRAME_ARGS_ADDRESS): Remove.
6356 (FRAME_LOCALS_ADDRESS): Remove.
6357 (FRAME_NUM_ARGS): Remove.
6358 (FRAME_ARGS_SKIP): Remove.
6359 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6360 (m68k_gdbarch_init): Add gdbarch initializations for macros
6361 undefined in tm-m68k.h
6362
6363 2002-06-26 Grace Sainsbury <graces@redhat.com>
6364
6365 * monitor.h: Add the function regname to monitor_ops
6366 structure. This way NUM_REGS does not have to be a constant.
6367 * monitor.c (monitor_fetch_register): Added support for regname
6368 function. The function is called if the array regnames is NULL.
6369 (monitor_store_register): Same.
6370 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6371 regnames array.
6372 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6373 cpu32bug_cmds.regname to point to new function.
6374 * abug-rom.c (abug_regname): Same as above.
6375 (init_abug_cmds): Same.
6376 * dbug-rom.c (dbug_regname): Same as above.
6377 (init_dbug_cmds): Same.
6378 * remote-est.c (est_regname): Same.
6379 (init_est_cmds): Same.
6380 * rom68k-rom.c (rom68k_regname): Same.
6381 (init_rom68k_cmds): Same.
6382
6383 2002-06-25 Tom Tromey <tromey@redhat.com>
6384
6385 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6386
6387 2002-06-25 Andrew Cagney <cagney@redhat.com>
6388
6389 * infrun.c (stop_registers): Change variable's type to ``struct
6390 regcache'''.
6391 (xmalloc_inferior_status): Delete function.
6392 (free_inferior_status): Delete function.
6393 (normal_stop): Use regcache_cpy.
6394 (struct inferior_status): Change type of fields ``stop_registers''
6395 and ``registers'' to ``struct regcache''.
6396 (write_inferior_status_register): Use regcache_write.
6397 (save_inferior_status): Instead of calling
6398 xmalloc_inferior_status, allocate the inf_status buffer directly.
6399 Use regcache_dup_no_passthrough and regcache_dup to save the
6400 buffers.
6401 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6402 Replace the stop_registers regcache instead of overriding it. Use
6403 regcache_xfree. Instead of calling free_inferior_status, xfree
6404 the buffer directly.
6405 (discard_inferior_status): Use regcache_xfree. Instead of calling
6406 free_inferior_status, xfree the buffer directly.
6407 (build_infrun): Use regcache_xmalloc.
6408 (_initialize_infrun): Delete redundant call to build_infrun.
6409
6410 * Makefile.in (infcmd.o): Add $(regcache_h).
6411
6412 * infcmd.c: Include "regcache.h".
6413 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6414 obtain the address of `stop_registers' register buffer.
6415 (print_return_value): Ditto.
6416
6417 * inferior.h (struct regcache): Add opaque declaration.
6418 (stop_registers): Change variable's declared type to ``struct
6419 regcache''.
6420
6421 2002-06-24 Tom Tromey <tromey@redhat.com>
6422
6423 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6424 * target.c (initialize_targets): Fixed typo in
6425 trust-readonly-sections `show' documentation.
6426
6427 * main.c: Marked all strings with _().
6428
6429 2002-06-24 Don Howard <dhoward@redhat.com>
6430
6431 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6432 that means max CORE_ADDR+1.
6433 (lookup_mem_region): Ditto.
6434 (mem_info_command): Ditto.
6435
6436 2002-06-24 Grace Sainsbury <graces@redhat.com>
6437
6438 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6439 (REGISTER_BYTES_OK): Remove.
6440 (REGISTER_BYTES): Remove.
6441 (STORE_STRUCT_RETURN): Remove.
6442 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6443 (STORE_RETURN_VALUE): Remove.
6444 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6445 (FRAME_CHAIN): Remove.
6446 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6447 (FRAME_SAVED_PC): Remove.
6448 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6449 (m68k_store_struct_return): Add.
6450 (m68k_deprecated_extract_return_value): Add.
6451 (m68k_deprecated_extract_struct_value_address): Add.
6452 (m68k_store_return_value): Add.
6453 (m68k_frame_chain): Add.
6454 (m68k_frameless_function_invocation): Add.
6455 (m68k_frame_saved_pc): Add.
6456 (m68k_gdbarch_init): added set_gdbarch calls for new
6457 functions and deleted macros.
6458
6459 2002-06-23 Tom Tromey <tromey@redhat.com>
6460
6461 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6462 (ALLDEPFILES): Likewise.
6463 (udiheaders): Removed.
6464 (udip2soc.o): Likewise.
6465 (udi2go32.o): Likewise.
6466 (udr.o): Likewise.
6467 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6468
6469 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6470
6471 * infrun.c (_initialize_infrun): Delete unnecessary call to
6472 build_infrun.
6473
6474 * regcache.h: Update comments describing the regcache_cpy family
6475 of functions.
6476 (regcache_save, regcache_restore): Delete declaration.
6477 (regcache_save_no_passthrough): Delete declaration.
6478 (regcache_restore_no_passthrough): Delete declaration.
6479 * regcache.c (regcache_save): Delete function.
6480 (regcache_save_no_passthrough): Delete function.
6481 (regcache_restore): Delete function.
6482 (regcache_restore_no_passthrough): Delete function.
6483
6484 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6485
6486 * config/m68k/tm-m68k.h: Fix typo.
6487 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6488 (m68k_frame_init_saved_regs): Declare.
6489
6490 2002-06-21 Jim Blandy <jimb@redhat.com>
6491
6492 Remove some vestiges of Harris 88k support.
6493 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6494 register numbering quirk.
6495 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6496 odd symbols occurring in Harris 88k ELF targets.
6497
6498 2002-06-21 Tom Tromey <tromey@redhat.com>
6499
6500 * gdb_locale.h: New file.
6501 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6502 (defs_h): Added gdb_locale.h.
6503 * configure, config.in: Rebuilt.
6504 * configure.in (PACKAGE): Define.
6505 * defs.h: Include gdb_locale.h.
6506 * main.c (captured_main): Call setlocale, bindtextdomain,
6507 textdomain.
6508
6509 2002-06-21 Dave Brolley <brolley@redhat.com>
6510
6511 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6512 * config/frv/frv.mt: New file.
6513 * config/frv/tm-frv.h: New file.
6514 * configure.tgt: Support frv-*-*.
6515 * Makefile.in (frv-tdep.o): New target.
6516 * frv-tdep.c: New file.
6517 * NEWS: Mention frv.
6518
6519 2002-06-21 Dave Brolley <brolley@redhat.com>
6520
6521 * MAINTAINERS: Add self to "Write After Approval" list.
6522
6523 2002-06-21 Grace Sainsbury <graces@redhat.com>
6524
6525 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6526 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6527 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6528 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6529 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6530
6531 * m68k-tdep.c: Include arch-utils.h
6532 (m68k_register_raw_size): Add.
6533 (m68k_register_virtual_size): Add.
6534 (m68k_register_virtual_type): Add.
6535 (m68k_register_name): Add.
6536 (m68k_stack_align): Add.
6537 (m68k_register_byte): Add.
6538 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6539 tm-m68k.h.
6540
6541 2002-06-21 Grace Sainsbury <graces@redhat.com>
6542
6543 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6544 m68k_find_saved_regs.
6545 (m68k_pop_frame): Removed saved_regs structure, and replaced
6546 references to it with frame->saved_regs.
6547 (m68k_gdbarch_init): Added function calls to initialize the
6548 gdbarch structure.
6549 (m68k_fix_call_dummy): Add.
6550 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6551 (CALL_DUMMY): Remove.
6552 (CALL_DUMMY_LENGTH): Remove.
6553 (CALL_DUMMY_START_OFFSET): Remove.
6554 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6555 (FIX_CALL_DUMMY): Remove.
6556 (PUSH_DUMMY_FRAME): Remove.
6557 (POP_FRAME): Remove.
6558
6559 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6560
6561 * parse.c (parse_fprintf): New function used to avoid calls to
6562 fprintf in bison parser generated debug code.
6563 * parser-defs.h: Declaration of new parse_fprintf function.
6564 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6565 Set YYDEBUG to 1 by default.
6566 Set YYFPRINTF as parse_fprintf.
6567
6568 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6569
6570 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6571 encoding anymore.
6572 (pointer_encoding, enum ptr_encoding): New.
6573 (execute_cfa_program): Take care about pointer encoding.
6574 (dwarf2_build_frame_info): Only call parse_frame_info for
6575 .debug_frame and .eh_frame.
6576 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6577 fixed augmentation handling, added relative addressing,
6578 ignore duplicate FDEs. Added comments.
6579 * dwarf2cfi.c: Reindented.
6580
6581 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6582
6583 * event-top.c (command_handler): Don't use space_at_cmd_start
6584 unless there is sbrk() on the host. Assign time and space data
6585 to union fields of the appropriate length.
6586
6587 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6588
6589 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6590 x86_64_register_name. Return type changed to 'const char *'.
6591 (x86_64_register_name2nr): Rename to x86_64_register_number.
6592 (x86_64_gdbarch_init): Update to reflect the change.
6593 * x86-64-tdep.h: Ditto.
6594 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6595 (supply_fpregset): Ditto.
6596
6597 2002-06-19 Andrew Cagney <cagney@redhat.com>
6598
6599 * regcache.h: Update copyright.
6600 (struct regcache, struct gdbarch): Add opaque declarations.
6601 (current_regcache): Declare global variable.
6602 (regcache_read, regcache_write): Add gdbarch parameter.
6603 (regcache_save, regcache_save_no_passthrough)
6604 (regcache_restore, regcache_restore_no_passthrough)
6605 (regcache_dup, regcache_dup_no_passthrough)
6606 (regcache_cpy, regcache_cpy_no_passthrough)
6607 (deprecated_grub_regcache_for_registers)
6608 (deprecated_grub_regcache_for_register_valid)
6609 (regcache_valid_p): Add function declarations.
6610
6611 * regcache.c: Update copyright.
6612 (regcache_descr_handle): New global variable.
6613 (struct regcache_descr): Define.
6614 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6615 (regcache_descr, xfree_regcache_descr): New functions.
6616 (struct regcache): Define.
6617 (regcache_xmalloc, regcache_xfree): New functions.
6618 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6619 (regcache_dup, regcache_dup_no_passthrough): New functions.
6620 (regcache_valid_p, regcache_read_as_address): New functions.
6621 (deprecated_grub_regcache_for_registers): New function.
6622 (deprecated_grub_regcache_for_register_valid): New function.
6623 (current_regcache): New global variable.
6624 (register_buffer): Add regcache parameter. Update calls.
6625 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6626 (read_register_gen, write_register_gen): Update register_buffer
6627 call. Test for legacy_p instead of gdbarch_register_read_p or
6628 gdbarch_register_write_p.
6629 (regcache_collect): Update register_buffer call.
6630 (build_regcache): Rewrite. Use deprecated grub functions.
6631 (regcache_save, regcache_save_no_passthrough): New functions.
6632 (regcache_restore, regcache_restore_no_passthrough): New
6633 functions.
6634 (_initialize_regcache): Create the regcache_data_handle. Swap
6635 current_regcache global variable.
6636
6637 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6638 parameter to regcache_read and regcache_write calls.
6639 (sh4_register_read): Ditto.
6640 (sh64_pseudo_register_read): Ditto.
6641 (sh64_register_read): Ditto.
6642 (sh_pseudo_register_write): Ditto.
6643 (sh4_register_write): Ditto.
6644 (sh64_pseudo_register_write): Ditto.
6645 (sh64_register_write): Ditto.
6646
6647 * defs.h (XCALLOC): Define.
6648
6649 2002-06-19 Grace Sainsbury <graces@redhat.com>
6650
6651 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6652 * m68k-tdep.c (m68k_gdbarch_init): Added.
6653 (m68k_dump_tdep): Added.
6654
6655 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6656
6657 * ada-lang.c (fill_in_ada_prototype): Update comment.
6658
6659 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6660
6661 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6662 MIPS_ABI_LAST.
6663 (mips_abi_string, mips_abi_strings): New.
6664 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6665 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6666 tdep->mips_abi_string. Honor mips_abi_string. Default to
6667 O32 if no ABI is found.
6668 (mips_dump_tdep): Use mips_abi_strings.
6669 (mips_abi_update): New function.
6670 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6671 ``set mips abi'' and ``show mips abi''. Check the size of
6672 mips_abi_strings.
6673
6674 2002-06-19 Andrew Cagney <cagney@redhat.com>
6675
6676 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6677 constant.
6678
6679 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6680
6681 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6682 current frame using only the first stack size adjustment. All
6683 subsequent size adjustments are not considered to be part of
6684 the "static" part of the current frame.
6685 Compute the address of the saved registers relative to the
6686 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6687 in use in this frame.
6688
6689 2002-06-18 Don Howard <dhoward@redhat.com>
6690
6691 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6692 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6693 suggesting this solution.
6694
6695 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6696
6697 * config/romp/xm-rtbsd.h: Delete file.
6698 * config/romp/rtbsd.mh: Delete file.
6699
6700 2002-06-18 Keith Seitz <keiths@redhat.com>
6701
6702 * breakpoint.c (condition_command): Post breakpoint_modify
6703 when a condition is added to an existing breakpoint.
6704 (commands_command): Likewise for commands.
6705 (set_ignore_count): Likewise for ignore counts.
6706 If no tty, do not simply return, still need to send event
6707 notification.
6708 (ignore_command): Only print a newline if the command came
6709 from a tty.
6710 Don't call breakpoints_changed, since this is now properly
6711 handled by set_ignore_count.
6712
6713 2002-06-18 Andrew Cagney <cagney@redhat.com>
6714
6715 * MAINTAINERS: Note that cris-elf target can be compiled with
6716 -Werror.
6717 * cris-tdep.c (cris_register_name): Make return type constant.
6718 (cris_breakpoint_from_pc): Ditto.
6719
6720 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6721
6722 * frame.h (struct frame_info): Change type of context to
6723 'struct context'.
6724
6725 2002-06-17 Andrew Cagney <cagney@redhat.com>
6726
6727 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6728 pointer.
6729 * gdbarch.h, gdbarch.c: Regenerate.
6730 * config/mips/tm-mips.h (mips_register_name): Update.
6731 * i386-tdep.h (i386_register_name): Update.
6732 * mips-tdep.c (mips_register_name): Update
6733 * alpha-tdep.c (alpha_register_name): Update.
6734 * arch-utils.c (legacy_register_name): Update.
6735 * arch-utils.h (legacy_register_name): Update.
6736 * avr-tdep.c (avr_register_name): Update.
6737 * ia64-tdep.c (ia64_register_name): Update.
6738 * i386-tdep.c (i386_register_name): Update.
6739 * sparc-tdep.c (sparc32_register_name): Update.
6740 (sparc64_register_name): Update.
6741 (sparclite_register_name): Update.
6742 (sparclet_register_name): Update.
6743 * sh-tdep.c (sh_generic_register_name): Update.
6744 (sh_sh_register_name): Update.
6745 (sh_sh3_register_name): Update.
6746 (sh_sh3e_register_name): Update.
6747 (sh_sh_dsp_register_name): Update.
6748 (sh_sh3_dsp_register_name): Update.
6749 (sh_sh4_register_name): Update.
6750 (sh_sh64_register_name): Update.
6751 * s390-tdep.c (s390_register_name): Update.
6752 * rs6000-tdep.c (rs6000_register_name): Update.
6753 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6754 (ns32k_register_name_32382): Update.
6755 * d10v-tdep.c (d10v_ts2_register_name): Update.
6756 (d10v_ts3_register_name): Update.
6757 * xstormy16-tdep.c (xstormy16_register_name): Update.
6758 * vax-tdep.c (vax_register_name): Update.
6759 * v850-tdep.c (v850_register_name): Update.
6760 * m68hc11-tdep.c (m68hc11_register_name): Update.
6761 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6762 (am33_register_name): Update.
6763
6764 2002-06-17 Grace Sainsbury <graces@redhat.com>
6765
6766 * m68k-tdep.c: Reindented.
6767
6768 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6769
6770 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6771 list of predefined types.
6772
6773 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6774
6775 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6776 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6777 REGISTER_CONVERT_TO_RAW): Remove defines.
6778 (i386_register_virtual_type, i386_register_convertible,
6779 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6780 Remove prototypes.
6781 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6782 macros mentioned above.
6783
6784 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6785 (i386lynx_saved_pc_after_call): Remove prototype.
6786 * i386ly-tdep.c: Include "i386-tdep.h".
6787 (i386lynx_saved_pc_after_call): Make static. Use
6788 read_memory_nobpt instead of read_memory. Use
6789 read_memory_unsigned_integer instead of read_memory_integer.
6790 (i386lynx_init_abi): New function.
6791 (i386lynx_coff_osabi_sniffer): New function.
6792 (_initialize_i386bsd_tdep): New function.
6793
6794 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6795 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6796 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6797 (i386_fix_call_dummy): Remove prototype.
6798 * i386-tdep.c (i386_call_dummy_words): New variable.
6799 (i386_gdbarch_init): Adjust for removal of the
6800 macros mentioned above.
6801
6802 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6803
6804 * command.h (add_setshow_auto_boolean_cmd): Replace
6805 add_set_auto_boolean_cmd.
6806 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6807 add_set_auto_boolean_cmd.
6808 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6809 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6810 mask-address'' command.
6811 (show_mask_address): Add cmd parameter.
6812 * remote.c (add_packet_config_cmd): Update. Change type of
6813 set_func and show_func to cmd_sfunc_ftype.
6814 (_initialize_remote): Update `set remote Z-packet'
6815 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6816 (show_remote_protocol_e_packet_cmd): Ditto.
6817 (show_remote_protocol_E_packet_cmd): Ditto.
6818 (show_remote_protocol_P_packet_cmd): Ditto.
6819 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6820 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6821 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6822 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6823 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6824 (show_remote_protocol_Z_packet_cmd): Ditto.
6825 (show_remote_protocol_binary_download_cmd): Ditto.
6826 (show_remote_cmd): Pass NULL to all of above.
6827
6828 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6829
6830 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6831 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6832 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6833 POP_FRAME): Remove defines.
6834 (i386_push_arguments, i386_store_struct_return,
6835 i386_extract_return_value, i386_store_return_value,
6836 i386_extract_struct_value_address, i386_push_dummy_frame,
6837 i386_pop_frame): Renove prototypes.
6838 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6839 macros mentioned above.
6840
6841 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6842
6843 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6844 add_set_boolean_cmd.
6845 (add_setshow_cmd): New function.
6846 * command.h (add_setshow_boolean_cmd): Replace
6847 add_set_boolean_cmd.
6848 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6849 and ``set rdiromatzero''.
6850 * maint.c (_initialize_maint_cmds): Update commented out code.
6851 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6852 * target.c (initialize_targets): Update `set
6853 trust-readonly-sections'.
6854 * remote.c (_initialize_remote): Update `set remotebreak'.
6855
6856 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6857
6858 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6859 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6860 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6861 fit into multi-arch framework.
6862 (i386_breakpoint_from_pc): New function.
6863 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6864 above.
6865
6866 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6867 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6868 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6869 (i386_frameless_function_invocation, i386_frame_num_args,
6870 i386_frame_init_saved_regs): Remove prototypes.
6871 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6872 macros mentioned above.
6873
6874 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6875
6876 * cli/cli-decode.c (set_cmd_cfunc): Update.
6877 (set_cmd_sfunc): Update.
6878 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6879 (set_cmd_sfunc, set_cmd_cfunc): Update.
6880 * cli/cli-decode.h: Update.
6881
6882 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6883
6884 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6885 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6886
6887 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6888
6889 * defs.h (auto_boolean): Declare enum.
6890 * command.h (cmd_auto_boolean): Delete enum.
6891 * mips-tdep.c (mask_address_var): Update.
6892 (mips_mask_address_p): Update.
6893 (show_mask_address): Update.
6894 * remote.c (struct packet_config): Update.
6895 (update_packet_config): Update.
6896 (show_packet_config_cmd): Update.
6897 (packet_ok): Update.
6898 (add_packet_config_cmd): Update.
6899 (_initialize_remote):
6900 * command.h: Update.
6901 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6902 (do_setshow_command): Update.
6903 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6904 * cli/cli-decode.h: Update.
6905
6906 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6907
6908 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6909 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6910 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6911 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6912 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6913 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6914
6915 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6916 list of DJGPP COFF targets.
6917
6918 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6919 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6920 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6921 (FP0_REGNUM): Remove define.
6922 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6923 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6924 (i386_register_virtual_size): Remove protoype.
6925 * i386-tdep.c (i386_register_virtual_size): Removed.
6926 (i386_extract_return_value, i386_store_return_value): Use
6927 FP0_REGNUM instead of NUM_FREGS to determine whether the
6928 floating-point registers are available.
6929 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6930 Adjust for removal of macros mentioned above.
6931
6932 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6933
6934 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6935 comments.
6936 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6937 Remove prototypes.
6938 (supply_gregset, fill_gregset): Remove use of register keyword and
6939 remove declaration for regmap. Use I386_NUM_GREGS instead of
6940 NUM_REGS and NUM_FREGS.
6941 (FPREGSET_FSAVE_OFFSET): Remove.
6942 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6943 NUM_FREGS to determine whether the floating-point registers are
6944 available.
6945
6946 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6947 gnu_store_registers): Replace usage of NUM_GREGS with
6948 I386_NUM_GREGS.
6949
6950 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6951 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6952 usage of NUM_GREGS with I386_NUM_GREGS.
6953
6954 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6955
6956 * i386bsd-nat.c: Include "i386-tdep.h".
6957 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6958 I386_NUM_GREGS.
6959
6960 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6961 and associated comment. They no longer make any sense, since we
6962 don't use this file anymore on Linux.
6963
6964 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6965 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6966 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6967 elements in these arrays.
6968 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6969 MAX_NUM_REGS.
6970
6971 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6972
6973 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6974 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6975
6976 2002-06-14 Andrew Cagney <cagney@redhat.com>
6977
6978 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6979 EXTRACT_RETURN_VALUE.
6980 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6981 EXTRACT_STRUCT_VALUE_ADDRESS.
6982 * gdbarch.h, gdbarch.c: Regenerate.
6983
6984 * values.c (value_being_returned): Handle
6985 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6986 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6987
6988 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6989 * arm-tdep.c (arm_gdbarch_init): Update.
6990 * avr-tdep.c (avr_gdbarch_init): Update.
6991 * cris-tdep.c (cris_gdbarch_init): Update.
6992 * d10v-tdep.c (d10v_gdbarch_init): Update.
6993 * ia64-tdep.c (ia64_gdbarch_init): Update.
6994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6996 * s390-tdep.c (s390_gdbarch_init): Update.
6997 * sh-tdep.c (sh_gdbarch_init): Update.
6998 * s390-tdep.c (s390_gdbarch_init): Update.
6999 * sparc-tdep.c (sparc_gdbarch_init): Update.
7000 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7001 * v850-tdep.c (v850_gdbarch_init): Update.
7002 * vax-tdep.c (vax_gdbarch_init): Update.
7003 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7005
7006 * config/arc/tm-arc.h: Update.
7007 * config/d30v/tm-d30v.h: Update.
7008 * config/fr30/tm-fr30.h: Update.
7009 * config/h8300/tm-h8300.h: Update.
7010 * config/h8500/tm-h8500.h: Update.
7011 * config/i386/tm-i386.h: Update.
7012 * config/i386/tm-ptx.h: Update.
7013 * config/i386/tm-symmetry.h: Update.
7014 * config/i960/tm-i960.h: Update.
7015 * config/m32r/tm-m32r.h: Update.
7016 * config/m68k/tm-delta68.h: Update.
7017 * config/m68k/tm-linux.h: Update.
7018 * config/m68k/tm-m68k.h: Update.
7019 * config/m88k/tm-m88k.h: Update.
7020 * config/mcore/tm-mcore.h: Update.
7021 * config/mips/tm-mips.h: Update.
7022 * config/mn10200/tm-mn10200.h: Update.
7023 * config/pa/tm-hppa.h: Update.
7024 * config/pa/tm-hppa64.h: Update.
7025 * config/sparc/tm-sp64.h: Update.
7026 * config/sparc/tm-sparc.h: Update.
7027 * config/sparc/tm-sparclet.h: Update.
7028 * config/z8k/tm-z8k.h: Update.
7029
7030 2002-06-14 Andrew Cagney <cagney@redhat.com>
7031
7032 * Makefile.in (i386_linux_tdep_h): Define.
7033 (i386_tdep_h, i387_tdep_h): Define.
7034 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7035 $(i386_tdep_h) and $(i387_tdep_h).
7036 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7037
7038 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7039
7040 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7041 Already covered by the default.
7042
7043 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7044 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7045 (i386_gdbarch_init): Initialize long_double_format and long_double
7046 bit.
7047
7048 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7049 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7050 Move these to ...
7051 * config/i386/i386sol2.mh: ... here.
7052 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7053 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7054 (SIGCONTEXT_PC_OFFSET): Remove define.
7055 (IN_SIGTRAMP): Remove define.
7056 * i386-sol2-tdep.c: New file.
7057
7058 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7059 * config/i386/tm-i386nw.h: Removed.
7060
7061 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7062 USE_STRUCT_CONVENTION): Remove defines.
7063 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7064 (get_longjmp_target): Remove prototype.
7065 (IN_SIGTRAMP): Remove define.
7066 (i386bsd_in_sigtramp): Remove prototype.
7067 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7068 function. Update comment accordingly
7069 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7070 (FRAME_SAVED_PC): Remove define.
7071 (i386bsd_frame_saved_pc): Remove prototype.
7072 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7073 GET_LONGJMP_TARGET): Remove defines.
7074 (get_longjmp_target): Remove prototype.
7075 (IN_SIGTRAMP): Remove define.
7076 (i386bsd_in_sigtramp): Remove prototype.
7077 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7078 function. Update comment accordingly
7079 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7080 (FRAME_SAVED_PC): Remove define.
7081 (i386bsd_frame_saved_pc): Remove prototype.
7082 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7083 Remove prototype.
7084 (USE_STRUCT_CONVENTION): Remove prototype.
7085 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7086 declaration.
7087 (_initialize_i386bsd_nat): Revise logic to determine some
7088 constants at compile time when compiling a native GDB. Warn if
7089 things don't match up with what we expect.
7090 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7091 Remove variables.
7092 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7093 to use date stored in `struct gdbarch_tdep'.
7094 (i386bsd_sigcontext_offset): Remove varaible.
7095 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7096 stored in `struct gdbarch_tdep'.
7097 (i386bsd_frame_saved_pc): Make static.
7098 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7099 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7100 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7101 i386fbsd4_sc_pc_offset): New variables.
7102 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7103 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7104 functions.
7105 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7106 functions.
7107 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7108 Modify the value of i386fbsd_sigtramp_start and
7109 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7110 i386fbsd_sigtramp_end.
7111 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7112 function.
7113
7114 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7115 define to i386-linux-tdep.h.
7116 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7117 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7118 defines.
7119 (i386_linux_register_name, i386_linux_register_byte,
7120 i386_linux_register_raw_size): Remove prototypes.
7121 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7122 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7123 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7124 TARGET_WRITE_PC): Remove defines.
7125 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7126 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7127 i386_linux_write_pc): Remove prototypes.
7128 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7129 (get_longjmp_target): Remove prototype.
7130 * i386-linux-tdep.h: New file.
7131 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7132 * i386-linux-tdep.c: Include "i386-tdep.h" and
7133 "i386-linux-tdep.h".
7134 (i386_linux_register_name, i386_linux_register_byte,
7135 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7136 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7137 Make static.
7138 (i386_linux_init_abi): New function.
7139 (_initialize_i386_linux_tdep): New function.
7140
7141 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7142 (i386_saved_pc_after_call): Remove prototype.
7143 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7144 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7145 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7146 (i386_register_name, i386_stab_reg_to_regnum,
7147 i386_dwarf_reg_to_regnum): Remove prototypes.
7148 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7149 SIZEOF_SSE_REGS): Remove defines.
7150 (REGISTER_BYTES): Remove define.
7151 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7152 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7153 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7154 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7155 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7156 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7157 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7158 (get_longjmp_target): Remove prototype.
7159 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7160 (sigtramp_saved_pc): Remove define.
7161 (i386v4_sigtramp_saved_pc): Remove prototype.
7162 * config/i386/tm-go32.h (FRAME_CHAIN,
7163 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7164 (i386go32_frame_saved_pc): Remove prototype.
7165 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7166 (get_longjmp_target): Remove prototype.
7167 * i386-tdep.h: Include "osabi.h".
7168 (enum i386_abi): Removed.
7169 (enum struct_return): New enum.
7170 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7171 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7172 sc_pc_offset members.
7173 (i386_gdbarch_register_os_abi): Remove prototype.
7174 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7175 I386_SSE_NUM_REGS): New defines.
7176 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7177 I386_SSE_SIZEOF_REGS): New defines.
7178 (i386_register_name, i386_register_byte, i386_register_raw_size):
7179 New prototypes.
7180 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7181 (i386bsd_sigtramp_saved_pc): New prototype.
7182 * i386-tdep.c: Don't include "elf-bfd.h".
7183 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7184 i386_frame_chain, i386_saved_pc_after_call): Make static.
7185 (i386_frame_saved_pc): Rewrite to call architecture dependent
7186 function to deal with signal handlers. Make static.
7187 (i386go32_frame_saved_pc): Removed.
7188 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7189 Removed.
7190 (i386_get_longjmp_target): New function.
7191 (default_struct_convention, pcc_struct_convention,
7192 reg_struct_convention, valid_conventions, struct_convention): New
7193 variables.
7194 (i386_use_struct_convention): New function.
7195 (i386v4_sigtramp_saved_pc): Renamed to
7196 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7197 (i386_pc_in_sigtramp): New function.
7198 (i386_abi_names): Removed.
7199 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7200 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7201 Removed.
7202 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7203 i386_gdbarch_register_os_abi): Removed.
7204 (struct i386_abi_handler): Removed.
7205 (i386_abi_handler_list): Removed.
7206 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7207 functions.
7208 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7209 i386_nw_init_abi): New functions.
7210 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7211 Use set_gdbarch_xxx() calls instead of relying on macros for a
7212 number of calls.
7213 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7214 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7215 Register the various architecture variants defined in this file.
7216
7217 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7218
7219 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7220 (struct main_type): Remove arg_types member. Update comments for
7221 struct field.
7222 (TYPE_ARG_TYPES): Remove.
7223 (TYPE_FN_FIELD_ARGS): Update.
7224 (smash_to_method_type): Update prototype.
7225
7226 * c-typeprint.c (cp_type_print_method_args): Take method type
7227 instead of argument list. Use new argument layout. Simplify.
7228 (c_type_print_args): Use new argument layout. Simplify.
7229 (c_type_print_base): Update call to cp_type_print_method_args.
7230 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7231 argument; use die->type instead. Update call to
7232 smash_to_method_type.
7233 (read_structure_scope): Update call to dwarf2_add_member_fn.
7234 * gdbtypes.c (allocate_stub_method): Update comment.
7235 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7236 Use new argument layout.
7237 (check_stub_method): Use new argument layout. Don't count
7238 void as an argument.
7239 (print_arg_types): Update comments. Use new argument layout.
7240 (recursive_dump_type): Don't print arg_types member.
7241 * hpread.c (hpread_read_struct_type): Use new argument layout.
7242 (fixup_class_method_type): Likewise.
7243 (hpread_type_lookup): Likewise.
7244 * stabsread.c (read_type): Update calls to read_args and
7245 smash_to_method_type.
7246 (read_args): Use new argument layout. Simplify.
7247 * valops.c (typecmp): Use new argument layout. Update parameters
7248 and comments. Simplify.
7249 (hand_function_call): Use new argument layout.
7250 (search_struct_method): Update call to typecmp.
7251 (find_overload_match): Use new argument layout.
7252
7253 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7254
7255 * NEWS: Mention multithreaded debug support for gdbserver.
7256
7257 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7258
7259 * MAINTAINERS: Mention NEWS.
7260
7261 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7264 (struct mips_objfile_private, compare_pdr_entries): New.
7265 (non_heuristic_proc_desc): Read the ".pdr" section if it
7266 is present.
7267
7268 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7269
7270 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7271 (arm_debug): New static variable.
7272 (_initialize_arm_tdep): Add ``set debug arm'' command.
7273
7274 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7275
7276 * Makefile.in (sim_arm_h): Define.
7277 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7278 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7279 (arm_register_sim_regno): New function, map an internal REGNUM
7280 onto a simulator register number.
7281 (arm_gdbarch_init): Set register_sim_regno.
7282
7283 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7284
7285 * MAINTAINERS: Add self.
7286
7287 2002-06-11 Jim Blandy <jimb@redhat.com>
7288
7289 * source.c (source_info): Mention whether the symtab has
7290 information about preprocessor macros.
7291
7292 Call the command `info macro', not `show macro'.
7293 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7294 Fix error message.
7295 (_initialize_macrocmd): Register `info_macro_command' in
7296 `infolist', not `showlist'.
7297
7298 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7299
7300 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7301 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7302 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7303 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7304 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7305 unconditionally.
7306 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7307 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7308 (_initialize_mips_tdep): Remove dead code.
7309 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7310 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7311 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7312 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7313 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7314 MIPS_LAST_FP_ARG_REGNUM): Remove.
7315
7316 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7317
7318 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7319 (unwind_tmp_obstack_free, parse_frame_info)
7320 (update_context, cfi_read_fp, cfi_write_fp)
7321 (cfi_frame_chain, cfi_init_extra_frame_info)
7322 (cfi_virtual_frame_pointer): Use the above function.
7323 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7324
7325 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7326
7327 * v850-tdep.c (v850_type_is_scalar): New function.
7328 (v850_use_struct_convention): Match current gcc implementation
7329 as close as possible.
7330 (v850_push_arguments): Fix stack_offset handling. Don't write
7331 struct_addr into register. This is done by v850_store_struct_return.
7332 (v850_extract_return_value): Care for structs.
7333 (v850_store_return_value): Ditto.
7334 (v850_store_struct_return): Actually write address.
7335
7336 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7337
7338 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7339 without debug information too.
7340
7341 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7342
7343 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7344 Make multi-arch pure.
7345 * gdbarch.h, gdbarch.c: Re-generate.
7346 * arm-tdep.c (arm_print_float_info): Update.
7347 * arch-utils.h (default_print_float_info): Update.
7348 * arch-utils.c (default_print_float_info): Update.
7349 * infcmd.c (float_info): Update call.
7350
7351 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7352
7353 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7354 the front of the initialize list.
7355
7356 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7357
7358 * infrun.c (struct inferior_status): Replace fields
7359 selected_frame_address and selected_level with field
7360 selected_frame_id.
7361 (save_inferior_status): Update. Use get_frame_id.
7362 (struct restore_selected_frame_args): Delete.
7363 (restore_selected_frame): Update. Use frame_find_by_id.
7364 (restore_inferior_status): Update.
7365
7366 * breakpoint.h (struct breakpoint): Change type of
7367 watchpoint_frame to frame_id.
7368 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7369 call to get_current_frame.
7370 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7371 get_current_frame.
7372 (watchpoint_check): Use frame_find_by_id.
7373
7374 * frame.h (record_selected_frame): Delete declaration.
7375 * stack.c (record_selected_frame): Delete function.
7376
7377 * frame.h (struct frame_id): Define.
7378 (get_frame_id): Declare.
7379 (frame_find_by_id): Declare.
7380 * frame.c (frame_find_by_id): New function.
7381 (get_frame_id): New function.
7382
7383 2002-06-10 Andrey Volkov <avolkov@transas.com>
7384
7385 * ser-e7kpc.c: Fix duplicated define and call of
7386 _initialize_ser_e7000pc
7387
7388 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7389
7390 * signals/signals.c (target_signal_from_host): Fix #ifdef
7391 SIGRTMIN case.
7392 (do_target_signal_to_host): Likewise.
7393
7394 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7395
7396 * mips-tdep.c (mips_find_abi_section): New function.
7397 (mips_gdbarch_init): Call it.
7398
7399 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7400
7401 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7402 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7403 after Andrew's 2002-06-08 gdbarch change.
7404
7405 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7406
7407 * i386-linux-nat.c (suppy_gregset): Don't supply
7408 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7409 register cache.
7410 (fill_gregset): Don't fetch it under the same circumstances.
7411
7412 2002-06-09 Andrew Cagney <cagney@redhat.com>
7413
7414 * Makefile.in (callback_h): Define.
7415 (remote_sim_h): Update path to remote-sim.h.
7416 (remote-rdp.o): Add $(callback_h).
7417 (remote-sim.o): Use $(callback_h).
7418 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7419 * remote-rdp.c: Include "gdb/callback.h".
7420
7421 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7422
7423 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7424 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7425
7426 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7427
7428 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7429 * rdi-share/serpardr.c: Ditto.
7430 * rdi-share/unixcomm.c: Ditto.
7431 * rdi-share/serdrv.c: Ditto.
7432 * rdi-share/hostchan.h: Ditto.
7433 * rdi-share/hostchan.c: Ditto.
7434 * rdi-share/host.h: Ditto.
7435 * rdi-share/devsw.c: Ditto.
7436
7437 * objfiles.h: Change type of obj_private to void pointer.
7438 * pa64solib.c: Update copyright. Don't include "assert.h", use
7439 strcmp instead of STREQ, use LONGEST, do not use PTR
7440 * somsolib.c: Ditto.
7441
7442 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7443 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7444 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7445
7446 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7447
7448 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7449 (default_get_saved_register): Delete function.
7450 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7451 generic_unwind_get_saved_register.
7452 * gdbarch.h, gdbarch.c: Re-generate.
7453
7454 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7455
7456 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7457 generic_func_frame_chain_valid.
7458 * gdbarch.h, gdbarch.c: Re-generate.
7459 * blockframe.c (generic_func_frame_chain_valid): Only check
7460 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7461 passing FP to PC_IN_CALL_DUMMY.
7462 Fix PR gdb/360.
7463
7464 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7465
7466 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7467 (register_gdbarch_data): Initialize init_p.
7468 (gdbarch_data): Initialize data pointer using the init function.
7469 (init_gdbarch_data): Delete function.
7470 (gdbarch_update_p): Update.
7471 (initialize_non_multiarch): Update.
7472 (struct gdbarch): Add field initialized_p.
7473 * gdbarch.h, gdbarch.c: Re-generate.
7474
7475 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7476
7477 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7478 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7479 better do the things actually here.
7480 * x86-64-tdep.c (x86_64_register_name2nr): New.
7481 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7482 (x86_64_gdbarch_init): Respect the above change.
7483 * x86-64-tdep.h (x86_64_register_name2nr)
7484 (x86_64_register_nr2name): Add prototypes.
7485 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7486
7487 2002-06-06 Michael Snyder <msnyder@redhat.com>
7488
7489 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7490 Delete extra braces and re-indent.
7491 (d10v_store_return_value): Char return values
7492 must be shifted over by one byte in R0.
7493 (d10v_extract_return_value): Delete extra braces, re-indent.
7494
7495 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7496
7497 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7498 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7499 (d10v_integer_to_address): Rewrite.
7500 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7501 the d10v specific functions which take care of converting to the
7502 correct space.
7503
7504 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7505
7506 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7507 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7508
7509 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7510
7511 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7512 includes.
7513 * config/tm-linux.h: Ditto.
7514 * config/alpha/tm-alphalinux.h: Ditto.
7515 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7516 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7517 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7518 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7519 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7520 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7521 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7522 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7523 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7524 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7525 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7526 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7527 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7528 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7529 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7530 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7531 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7532 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7533 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7534 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7535 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7536 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7537 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7538 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7539 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7540 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7541 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7542 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7543 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7544 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7545 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7546 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7547 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7548 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7549 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7550 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7551 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7552
7553 2002-05-04 Aidan Skinner <aidan@velvet.net>
7554
7555 * ada-exp.tab.c: New file
7556 * ada-exp.y: New file
7557 * ada-lang.c: New file
7558 * ada-lang.h: New file
7559 * ada-lex.c: New file
7560 * ada-lex.l: New file
7561 * ada-tasks.c: New file
7562 * ada-typeprint.c: New file
7563 * ada-valprint.c: New file
7564
7565 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7568 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7569
7570 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7571
7572 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7573 insetead of ppc-linux-tdep.o.
7574 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7575 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7576
7577 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7578
7579 2002-05-07 Christian Groessler <chris@groessler.org>
7580 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7581 bit register contents for little endian hosts.
7582
7583 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7584
7585 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7586 any maintainer.
7587
7588 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7589
7590 * gdbarch.h: Regenerate.
7591
7592 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7593
7594 * MAINTAINERS: Add everyone to write-after-approval list.
7595
7596 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7597
7598 * stack.c (frame_info): Use frame_register_unwind instead of
7599 saved_regs. Mention when the SP is on the stack or in a register.
7600
7601 * frame.h (frame_register_unwind_ftype): Define. Document.
7602 (struct frame_info): Add field register_unwind and
7603 register_unwind_cache.
7604 (frame_register_unwind): Declare.
7605 (generic_unwind_get_saved_register): Declare.
7606
7607 * frame.c (frame_register_unwind): New function.
7608 (generic_unwind_get_saved_register): New function.
7609
7610 * blockframe.c (generic_call_dummy_register_unwind): New function.
7611 (frame_saved_regs_register_unwind): New function.
7612 (set_unwind_by_pc): New function.
7613 (create_new_frame): New function.
7614 (get_prev_frame): New function.
7615
7616 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7617
7618 * a29k-share/: Delete directory.
7619 * remote-vx29k.c: Delete file.
7620
7621 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7622
7623 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7624 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7625
7626 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7627
7628 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7629 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7630 (sparc64nbsd-nat.o)
7631 (sparcnbsd-nat.o)
7632 (sparcnbsd-tdep.o): New dependency lists.
7633 * NEWS: Note new UltraSPARC NetBSD native configuration.
7634 * configure.host (sparc64-*-netbsd*): New host.
7635 * configure.tgt (sparc-*-netbsdelf*)
7636 (sparc-*-netbsd*): Set gdb_target to nbsd.
7637 (sparc64-*-netbsd*): New target.
7638 * sparc64nbsd-nat.c: New file.
7639 * sparcnbsd-nat.c: New file.
7640 * sparcnbsd-tdep.c: New file.
7641 * sparcnbsd-tdep.h: New file.
7642 * config/sparc/nbsd.mt: New file.
7643 * config/sparc/nbsd64.mh: New file.
7644 * config/sparc/nbsd64.mt: New file.
7645 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7646 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7647 (HOST_IPC): Remove.
7648 * config/sparc/nbsdaout.mt: Remove.
7649 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7650 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7651 (HOST_IPC): Remove.
7652 * config/sparc/nbsdelf.mt: Remove.
7653 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7654 sparc-nat.c compatiblity defines.
7655 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7656 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7657 * config/sparc/tm-nbsd64.h: New file.
7658 * config/sparc/tm-nbsdaout.h: Remove.
7659 * config/sparc/xm-nbsd.h: Remove.
7660
7661 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7662
7663 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7664 * sparc-tdep.c: Include osabi.h.
7665 (gdbarch_tdep): Add osabi member.
7666 (_initialize_sparc_tdep): Use gdbarch_register.
7667 (sparc_gdbarch_init): Use generic OS ABI framework.
7668 (sparc_dump_tdep): New function.
7669
7670 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7671
7672 * corefile.c (do_captured_read_memory_integer): Return non-zero
7673 result.
7674 (safe_read_memory_integer): Copy result of memory read when
7675 status is non-zero. Also, add comments.
7676
7677 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7678
7679 * Makefile.in (ppc_tdep_h): Define.
7680 (ppc-linux-nat.o)
7681 (ppc-linux-tdep.o)
7682 (rs6000-tdep.o): Use $(ppc_tdep_h).
7683 (ppc-sysv-tdep.o)
7684 (ppcnbsd-nat.o)
7685 (ppcnbsd-tdep.o): New dependency lists.
7686 * ppc-tdep.h: Use generic OS ABI framework.
7687 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7688 (ppc_linux_init_abi): New functions.
7689 (ppc_sysv_abi_broken_use_struct_convention)
7690 (ppc_sysv_abi_use_struct_convention)
7691 (ppc_sysv_abi_push_arguments): Move to...
7692 * ppc-sysv-tdep.c: ...here.
7693 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7694 * rs6000-tdep.c (process_note_abi_tag_sections)
7695 (get_elfosabi): Remove.
7696 (rs6000_gdbarch_init): Use generic OS ABI framework.
7697 (rs6000_dump_tdep): New function.
7698 (_initialize_rs6000_tdep): Use gdbarch_register.
7699 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7700 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7701 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7702 of ppc-linux-tdep.o.
7703 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7704 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7705 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7706 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7707 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7708 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7709
7710 2002-05-29 Jim Blandy <jimb@redhat.com>
7711
7712 * macroscope.c (default_macro_scope): Put `void' in empty argument
7713 list.
7714
7715 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7716
7717 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7718 * arch-utils.c: Include "sim-regno.h".
7719 * gdbarch.sh: Don't include "sim-regno.h".
7720 * gdbarch.h, gdbarch.c: Regenerate.
7721 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7722 here.
7723 * arch-utils.h (legacy_register_sim_regno): To here.
7724 * remote-sim.c (legacy_register_sim_regno): Move function from
7725 here.
7726 * arch-utils.c (legacy_register_sim_regno): To here.
7727
7728 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7729
7730 * sim-regno.h: New file.
7731 * Makefile.in (sim_regno_h): Define.
7732 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7733 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7734 (legacy_register_sim_regno): New function.
7735 (one2one_register_sim_regno): New function.
7736 (gdbsim_fetch_register): Rewrite.
7737 (gdbsim_store_register): Only store a register when
7738 REGISTER_SIM_REGNO is valid.
7739 * d10v-tdep.c: Include "sim-regno.h".
7740 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7741 (d10v_ts3_register_sim_regno): Ditto.
7742 * gdbarch.sh: Include "sim-regno.h".
7743 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7744 * gdbarch.h, gdbarch.c: Regenerate.
7745 * arch-utils.h (default_register_sim_regno): Delete declaration.
7746 * arch-utils.c (default_register_sim_regno): Delete function.
7747
7748 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7749
7750 * ppcnbsd-nat.c: Rewrite.
7751 * ppcnbsd-tdep.c: New file.
7752 * ppcnbsd-tdep.h: New file.
7753 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7754 solib.o, and solib-svr4.o.
7755 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7756 nbsd-tdep.o, and corelow.o.
7757
7758 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7759
7760 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7761 `tr' and `sed'. Mention that `broken' targets are not expected to
7762 build.
7763
7764 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7765
7766 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7767 Let PC point right after the prologue before looking up symbols.
7768
7769 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7770
7771 * i386-tdep.c (i386_register_virtual_type): Return
7772 builtin_type_vec128i for SSE registers.
7773
7774 * gdbtypes.h (builtin_type_vec128i): Declare.
7775
7776 * gdbtypes.c (build_builtin_type_vec128i): New function.
7777 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7778 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7779 (build_gdbtypes): Initialize new builtin vector types.
7780 (_initialize_gdbtypes): Register new vector types with gdbarch.
7781
7782 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7783
7784 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7785 since it has been multi-arch'd.
7786 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7787 Move Alpha and VAX multi-arch news entries to same section
7788 as other multi-arch news.
7789
7790 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7791
7792 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7793 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7794 static. Rename some register numbers to put them in ns32k-tdep
7795 private namespace.
7796 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7797 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7798 functions.
7799 (_initialize_ns32k_tdep): Use gdbarch_register.
7800 * ns32k-tdep.h: New file.
7801 * ns32knbsd-tdep.c: New file.
7802 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7803 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7804 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7805 REGISTER_BYTES, REGISTER_BYTE): Remove.
7806 * config/ns32k/tm-ns32k.h: New file.
7807 * config/ns32k/tm-umax.h: Remove.
7808
7809 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7812 ns32k_store_struct_return, ns32k_extract_return_value,
7813 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7814 functions.
7815 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7816 ns32k_saved_pc_after_call.
7817 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7818 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7819 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7820 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7821 ns32k_extract_struct_value_address.
7822
7823 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7826 ns32k_fix_call_dummy): New.
7827 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7828 ns32k_call_dummy_words.
7829 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7830 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7831 CALL_DUMMY_NARGS): Remove.
7832 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7833
7834 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7835
7836 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7837 ns32k_frame_saved_pc, ns32k_frame_args_address,
7838 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7839 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7840 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7841 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7842 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7843 (BREAKPOINT): Remove..
7844 (FRAME_CHAIN): Define as ns32k_frame_chain.
7845 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7846 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7847 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7848 (FRAME_FIND_SAVED_REGS): Remove.
7849 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7850 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7851 (POP_FRAME): Define as ns32k_pop_frame.
7852
7853 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7854
7855 * ns32k-tdep.c (ns32k_register_byte_32082,
7856 ns32k_register_byte_32382, ns32k_register_raw_size,
7857 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7858 functions.
7859 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7860 ns32k_register_byte_32382.
7861 * config/ns32k/tm-umax.h: Update copyright years.
7862 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7863 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7864 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7865 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7866 (ns32k_get_enter_addr): Fix prototype.
7867
7868 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7869
7870 * ns32k-tdep.c: Update copyright years.
7871 (ns32k_register_name_32082): New function.
7872 (ns32k_register_name_32382): Ditto.
7873 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7874 (REGISTER_NAME): Define as ns32k_register_name_32382.
7875 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7876 (REGISTER_NAME): Define as ns32k_register_name_32082.
7877
7878 2002-05-24 Jim Blandy <jimb@redhat.com>
7879
7880 * dwarf2read.c (free_line_header): Use xfree, not free.
7881
7882 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7885 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7886
7887 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7888
7889 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7890
7891 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7892
7893 From Ross Alexander at NEC Europe:
7894 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7895
7896 2002-05-23 Michael Snyder <msnyder@redhat.com>
7897
7898 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7899 for input, rather than parse_and_eval_address.
7900
7901 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7902
7903 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7904 * Makefile.in (sim_d10v_h): Update definition.
7905
7906 2002-05-24 Andrew Cagney <cagney@redhat.com>
7907
7908 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7909 change `2002-05-22 Michael Snyder' below.
7910 (d10v_push_arguments): Ditto.
7911 (d10v_extract_return_value): Ditto.
7912
7913 2002-05-23 Jim Blandy <jimb@redhat.com>
7914
7915 * macrotab.c (check_for_redefinition): Don't complain if the new
7916 definition is the same as the previous one. Take more arguments
7917 to allow the comparison.
7918 (macro_define_object, macro_define_function): Pass more arguments
7919 to check_for_redefinition.
7920
7921 2002-05-22 Michael Snyder <msnyder@redhat.com>
7922
7923 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7924 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7925 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7926 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7927 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7928 Add a temp variable to save a call (and a memory read).
7929 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7930 if possible (so that PC_IN_CALL_DUMMY will work).
7931
7932 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7933
7934 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7935
7936 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7937
7938 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7939 fde->cie_ptr.
7940 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7941 (dwarf2_build_frame_info): Add offset to fde->initial_location
7942 so that frames of shared libraries are mapped correctly.
7943 (execute_stack_op): Change type of 'result' from ULONGEST to
7944 CORE_ADDR.
7945
7946 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7947
7948 * config/alpha/tm-nbsd.h: Include solib.h.
7949
7950 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7951
7952 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7953 assumptions about the host's byte order.
7954
7955 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7956
7957 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7958 to dependency list.
7959 * alphanbsd-tdep.c: Include solib-svr4.h.
7960 * shnbsd-tdep.c: Ditto.
7961
7962 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7963
7964 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7965 nbsd-tdep.h to dependency list.
7966 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7967 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7968 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7969 nbsdaout.mh and nbsdelf.mh consistently.
7970 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7971 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7972 nbsdaout.mt and nbsdelf.mh consistently.
7973 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7974 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7975 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7976 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7977 a.out shared library stuff from here...
7978 * config/nm-nbsdaout.h: ...to here.
7979 * config/tm-nbsd.h: Remove.
7980 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7981 * config/arm/nbsd.mh: Remove.
7982 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7983 nbsd-tdep.o.
7984 * config/arm/nbsdaout.mh: New file.
7985 * config/arm/nbsdelf.mh: New file.
7986 * config/arm/nm-nbsdaout.h: New file.
7987 * config/i386/nbsd.mh: Remove.
7988 * config/i386/nbsd.mt: Remove.
7989 * config/i386/nbsdaout.mh: New file.
7990 * config/i386/nbsdaout.mt: New file.
7991 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7992 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7993 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7994 i386_register_u_addr): Remove.
7995 * config/i386/nm-nbsdaout.h: New file.
7996 * config/i386/nm-nbsdelf.h: Remove.
7997 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7998 (USE_STRUCT_CONVENTION): Remove.
7999 * config/i386/tm-nbsdaout.h: New file.
8000 * config/i386/tm-nbsdelf.h: Remove.
8001 * config/m68k/nbsd.mh: Remove.
8002 * config/m68k/nbsd.mt: Remove.
8003 * config/m68k/nbsdaout.mh: New file.
8004 * config/m68k/nbsdaout.mt: New file.
8005 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8006 * config/m68k/nm-nbsdaout.h: New file.
8007 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8008 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8009 * config/ns32k/nbsd.mh: Remove.
8010 * config/ns32k/nbsd.mt: Remove.
8011 * config/ns32k/nbsdaout.mh: New file.
8012 * config/ns32k/nbsdaout.mt: New file.
8013 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8014 * config/ns32k/nm-nbsdaout.h: New file.
8015 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8016 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8017 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8018 (SVR4_SHARED_LIBS): Remove.
8019 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8020 * config/sparc/nbsd.mh: Remove.
8021 * config/sparc/nbsd.mt: Remove.
8022 * config/sparc/nbsdaout.mh: New file.
8023 * config/sparc/nbsdaout.mt: New file.
8024 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8025 * config/sparc/nbsdelf.mt: New file.
8026 * config/sparc/nm-nbsdaout.h: New file.
8027 * config/sparc/nm-nbsdelf.h: Remove.
8028 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8029 * config/sparc/tm-nbsdaout.h: New file.
8030
8031 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8032
8033 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8034 mipsnbsd-tdep.c
8035 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8036
8037 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8038
8039 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8040 shnbsd-nat.c.
8041 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8042
8043 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * NEWS: Note new MIPS NetBSD native configuration.
8046 * configure.host (mips*-*-netbsd*): New host.
8047 * configure.tgt (mips*-*-netbsd*): New target.
8048 * mipsnbsd-nat.c: New file.
8049 * mipsnbsd-tdep.c: New file.
8050 * mipsnbsd-tdep.h: New file.
8051 * config/mips/nbsd.mh: New file.
8052 * config/mips/nbsd.mt: New file.
8053 * config/mips/nm-nbsd.h: New file.
8054 * config/mips/tm-nbsd.h: New file.
8055
8056 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8057
8058 * Makefile.in (SFILES): Add osabi.c.
8059 (COMMON_OBS): Add osabi.o.
8060 (osabi.o): New dependency list.
8061 * osabi.c: New file.
8062 * osabi.h: New file.
8063 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8064
8065 * Makefile.in (alpha_tdep_h): Define and use instead of
8066 alpha-tdep.h.
8067 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8068 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8069 Remove.
8070 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8071 * alpha-tdep.h: Include osabi.h.
8072 (alpha_abi): Remove.
8073 (gdbarch_tdep): Use generic OS ABI framework.
8074 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8075 gdbarch_register_osabi.
8076 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8077 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8078 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8079
8080 * Makefile.in (sh_tdep_h): Add osabi.h.
8081 * sh-tdep.h (sh_osabi): Remove.
8082 (gdbarch_tdep): Use generic OS ABI framework.
8083 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8084 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8085 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8086 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8087
8088 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8089 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8090 gdbarch_register_osabi.
8091 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8092 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8093 (get_elfosabi): Rename to...
8094 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8095 ABI framework support routines.
8096 (arm_gdbarch_init): Use generic OS ABI framework.
8097 (arm_dump_tdep): Likewise.
8098 (_initialize_arm_tdep): Likewise.
8099 * arm-tdep.h: Include osabi.h.
8100 (arm_abi): Remove.
8101 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8102 osabi member.
8103 (arm_gdbarch_register_os_abi): Remove prototype.
8104 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8105 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8106
8107 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8108 * mips-tdep.c: Include osabi.h.
8109 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8110 OS ABI framework.
8111
8112 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8113
8114 * h8300-tdep.c: Fix formatting.
8115
8116 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8117
8118 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8119 printing vector registers.
8120
8121 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8122
8123 From Fernando Nasser:
8124 * remote.c (remote_async_open_1): Re-throw the exception when the
8125 connection fails.
8126 (remote_cisco_open): Ditto.
8127 (remote_open_1): Ditto.
8128
8129 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8130
8131 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8132 (remote_start_remote): Add uiout parameter. Pass through to
8133 remote_start_remote_dummy.
8134 (remote_open_1): Use catch_exception instead of catch_errors.
8135 (remote_async_open_1): Ditto.
8136 (remote_cisco_open): Ditto.
8137
8138 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8139
8140 * remote.c (remote_start_remote): Replace PTR with void pointer.
8141 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8142 static.
8143
8144 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8145
8146 * gdb_indent.sh: Allow the script to be run in the sim directory.
8147
8148 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8149
8150 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8151 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8152
8153 * corelow.c (core_open): Only call set_gdbarch_from_file if
8154 exec_bfd is NULL.
8155
8156 2002-05-17 Andrey Volkov <avolkov@transas.com>
8157
8158 * h8300-tdep.c: Add support of EXR register
8159 * config/h8300/tm-h8300.h: Ditto.
8160
8161 2002-05-17 Andrey Volkov <avolkov@transas.com>
8162
8163 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8164
8165 2002-05-17 Andrey Volkov <avolkov@transas.com>
8166
8167 * h8300-tdep.c: Change literal regnums to REGNO.
8168
8169 2002-05-17 Jim Blandy <jimb@redhat.com>
8170
8171 * NEWS: Note addition of macro support.
8172
8173 Expand preprocessor macros in C expressions.
8174 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8175 (scan_macro_expansion, scanning_macro_expansion,
8176 finished_macro_expansion): New function declarations.
8177 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8178 variable declarations.
8179 * parser-defs.h (expression_context_pc): New declaration.
8180 * parse.c (expression_context_pc): New variable.
8181 (parse_exp_1): Set expression_context_pc, as well as
8182 expression_context_block.
8183 * c-exp.y (yylex): If we're not already reading the result of a
8184 macro expansion, try to macro-expand the next token. When we're
8185 done scanning a macro expansion, switch back to the mainline text.
8186 Commas and `if's in a macro's expansion don't terminate the input.
8187 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8188 (macro_original_text, macro_expanded_text,
8189 expression_macro_lookup_func, expression_macro_lookup_baton): New
8190 variables.
8191 (scan_macro_expansion, scanning_macro_expansion,
8192 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8193 c_preprocess_and_parse): New functions.
8194 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8195 c_preprocess_and_parse, instead of c_parse.
8196 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8197 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8198
8199 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8200
8201 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8202 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8203 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8204
8205 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8206
8207 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8208
8209 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8210
8211 * Makefile.in (sh_tdep_h): Define and use.
8212 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8213 register enum): Move to...
8214 * * sh-tdep.h: ...here.
8215 * sh-tdep.c: Include sh-tdep.h.
8216 * sh3-rom.c: Likewise.
8217 * shnbsd-tdep.c: Likewise.
8218
8219 2002-05-16 Michael Snyder <msnyder@redhat.com>
8220
8221 * arm-tdep.c: Spelling fix in comment.
8222
8223 2002-05-16 Jim Blandy <jimb@redhat.com>
8224
8225 Add commands for manually expanding macros and showing their
8226 definitions.
8227 * macrocmd.c, macroscope.c, macroscope.h: New files.
8228 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8229 (macroscope_h): New variable.
8230 (HFILES_NO_SRCDIR): Add macroscope.h.
8231 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8232 (macroscope.o, macrocmd.o): New rules.
8233
8234 Teach the Dwarf 2 reader to read macro information.
8235 * dwarf2read.c: #include "macrotab.h".
8236 (dwarf_macinfo_buffer): New variable.
8237 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8238 dwarf_macinfo_size.
8239 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8240 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8241 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8242 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8243 dwarf2_macro_spaces_in_definition): New complaints.
8244 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8245 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8246 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8247 the partial symbol table.
8248 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8249 from what's recorded in the partial symbol table.
8250 (read_file_scope): If the compilation unit has a
8251 `DW_AT_macro_info' attribute, read its macro information.
8252 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8253
8254 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8255
8256 Fix PR gdb/546
8257 * ser-tcp.c: Don't include <netinet/udp.h>.
8258
8259 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8260
8261 * MAINTAINERS: Update my email address.
8262
8263 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8264
8265 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8266 include file of the same name.
8267
8268 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8269
8270 * configure.tgt: Mark v850 as multi-arched.
8271 * config/v850/tm-v850.h: Remove file.
8272 * config/v850/v850.mt: Eliminate TM_FILE.
8273
8274 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8275
8276 * v850-tdep.c: Full multi-arch.
8277 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8278 Define GDB_MULTI_ARCH to 2.
8279
8280 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8281
8282 * p-exp.y (current_type): New static variable.
8283 Carries the type of the expression at the position that is parsed.
8284 (push_current_type, pop_current_type): Two new functions. Used
8285 to store/restore current_type in expression on specific tokens.
8286 (search_field): New static variable. Set to one after parsing a point
8287 as at that point only a FIELDNAME token should be searched.
8288 (FIELDNAME): New token. After a point only a token belonging to
8289 current_type type definition is allowed.
8290 (all over token rules): reset and change current_type according
8291 to rules.
8292 (exp '[' rule): insert implicit array index field if
8293 exp is a pascal string type.
8294
8295 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8296
8297 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8298 frame info. Use frame_info's saved_regs instead of matching member
8299 in extra_frame_info throughout.
8300 (v850_frame_init_saved_regs): New function.
8301 (v850_init_extra_frame_info): Move most functionality into
8302 v850_frame_init_saved_regs().
8303 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8304 (v850_frame_find_saved_regs): Remove declaration.
8305 (FRAME_FIND_SAVED_REGS): Remove definition.
8306 (v850_frame_init_saved_regs): Add declaration.
8307 (FRAME_INIT_SAVED_REGS): Add definition.
8308
8309 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8310
8311 * v850-tdep.c: Begin multi-arch'ing v850.
8312 (v850_target_architecture_hook): Remove function.
8313 (v850_gdbarch_init): New function. Add code previously in
8314 v850_target_architecture_hook().
8315 (_initialize_v850_tdep): Don't set target_architecture_hook.
8316 Call register_gdbarch_init() instead.
8317
8318 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8319
8320 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8321 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8322 (fixup_class_method_type): Likewise.
8323
8324 2002-05-15 Jim Blandy <jimb@redhat.com>
8325
8326 Add macro structures to GDB's symbol tables. Nobody puts anything
8327 in them yet.
8328 * symtab.h (struct symtab): New member: `macro_table'.
8329 * buildsym.h (pending_macros): New global variable.
8330 * buildsym.c: #include "macrotab.h".
8331 (buildsym_init): Initialize `pending_macros'.
8332 (end_symtab): If we found macro information while reading a CU's
8333 debugging info, do build a symtab structure for it. Make the
8334 symtab point to the macro information, and clear the
8335 `pending_macros' pointer which held it while we were reading the
8336 debug info.
8337 (really_free_pendings): Free any pending macro table.
8338 * objfiles.h (struct objfile): New member: `macro_cache'.
8339 * objfiles.c (allocate_objfile): Set allocate and free functions
8340 for the macro cache's objstack.
8341 (free_objfile): Empty the macro cache's obstack.
8342 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8343 set new allocate and free functions for it.
8344 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8345 free functions for the macro cache's objstack. (Why is this
8346 function building its own objfile?)
8347 * symmisc.c (print_objfile_statistics): Print statistics on the
8348 macro bcache.
8349 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8350
8351 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8352
8353 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8354 (REGISTER_U_ADDR): Delete definition.
8355 (arm_register_u_addr): Delete declaration.
8356
8357 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8358
8359 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8360 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8361
8362 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8363
8364 * regcache.c (register_valid): Revise comments refering to "Not
8365 available" and "unavailable".
8366 * frame.c (frame_register_read): Ditto.
8367 * findvar.c (value_of_register): Ditto.
8368
8369 2002-05-15 Andrew Cagney <cagney@redhat.com>
8370
8371 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8372 (remote-sim.o): Update dependencies.
8373 (d10v-tdep.o): Specify dependencies.
8374 (sim_d10v_h): Define.
8375
8376 2002-05-14 Jim Blandy <jimb@redhat.com>
8377
8378 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8379 * macrotab.c (macro_lookup_inclusion, find_definition,
8380 new_macro_table): Same.
8381
8382 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8383 not `! strcmp ()'. This is a dubious improvement.
8384 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8385
8386 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8387 although it's not necessary, to avoid a warning.
8388
8389 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8390
8391 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8392 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8393 TYPE_INSTANCE_FLAGS.
8394 (struct main_type): New.
8395 (struct type): Move most members to struct main_type. Change
8396 cv_type and as_type to new type_chain member. Add instance_flags.
8397 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8398 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8399 (finish_cv_type): Remove prototype.
8400 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8401 Set TYPE_CHAIN.
8402 (alloc_type_instance): New function.
8403 (smash_type): New function.
8404 (make_pointer_type, make_reference_type, make_function_type)
8405 (smash_to_member_type, smash_to_method_type): Call smash_type.
8406 (make_qualified_type): New function.
8407 (make_type_with_address_space): Call make_qualified_type.
8408 (make_cv_type): Likewise.
8409 (finish_cv_type): Remove unnecessary function.
8410 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8411 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8412 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8413 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8414 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8415 * hpread.c (hpread_read_struct_type): Likewise.
8416 * stabsread.c (read_struct_type): Likewise.
8417
8418 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8419
8420 * configure.tgt: Add a catch all sh* target, for cases like
8421 sh[2,3,4]-elf and sh-hms.
8422
8423 2002-05-14 Keith Seitz <keiths@redhat.com>
8424
8425 * event-loop.c (create_file_handler): Don't do anything but
8426 update data when we are given a fd which we are already
8427 monitoring.
8428
8429 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8430
8431 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8432 (update_context): Use __func__ in warnings.
8433
8434 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8435
8436 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8437 and tcp_close to net_open and net_close.
8438 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8439 using UDP if requested. Don't try to disable Nagle on UDP
8440 sockets.
8441 * remote.c (remote_serial_open): New function. Warn about UDP.
8442 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8443
8444 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8445
8446 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8447
8448 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8449
8450 * configure.tgt: Remove sh-hms target.
8451 * MAINTAINERS: Don't list sh-hms as a separate target.
8452
8453 2002-05-13 Jim Blandy <jimb@redhat.com>
8454
8455 Add first preprocessor macro-expansion files.
8456 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8457 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8458 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8459 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8460 (COMMON_OBS): Add macrotab.o, macroexp.o.
8461 (macroexp.o, macrotab.o): New rules.
8462
8463 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8464
8465 * config/m88k/tm-m88k.h: Update copyright.
8466 (m88k_target_write_pc): Declare
8467 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8468 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8469 (SHIFT_INST_REGS): Update definition.
8470 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8471 using old definition of TARGET_WRITE_PC.
8472 * regcache.c (generic_target_write_pc): Delete code handling
8473 NNPC_REGNUM.
8474 * gdbarch.sh (NNPC_REGNUM): Delete.
8475 * gdbarch.h, gdbarch.c: Regenerate.
8476
8477 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8478
8479 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8480 builtin reg number.
8481
8482 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8483
8484 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8485 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8486 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8487 access macros.
8488 * c-typeprint.c (cp_type_print_method_args): Likewise.
8489 (c_type_print_args): Likewise.
8490 * d10v-tdep.c (d10v_push_arguments): Likewise.
8491 (d10v_extract_return_value): Likewise.
8492 * expprint.c (print_subexp): Likewise.
8493 * gdbtypes.c (lookup_primitive_typename): Likewise.
8494 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8495 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8496 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8497 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8498 (TYPE_VECTOR): Likewise.
8499 * hpread.c (hpread_read_struct_type)
8500 (fix_static_member_physnames, fixup_class_method_type)
8501 (hpread_type_lookup): Likewise.
8502 * mdebugread.c (parse_symbol, parse_type): Likewise.
8503 * p-lang.c (is_pascal_string_type): Likewise.
8504 * valops.c (hand_function_call): Likewise.
8505 * x86-64-tdep.c (classify_argument): Likewise.
8506
8507 * hpread.c (hpread_read_function_type)
8508 (hpread_read_doc_function_type): Call replace_type.
8509 * dstread.c (create_new_type): Delete.
8510 (decode_dst_structure, process_dst_function): Call alloc_type.
8511 Use type access macros.
8512
8513 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8514
8515 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8516 the're not supported by the current architecture.
8517 (i387_fill_fxsave): Likewise.
8518
8519 2002-05-12 Fred Fish <fnf@redhat.com>
8520
8521 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8522 sect_index_xxx members to index the first slot in section_offsets
8523 if all of the section_offsets are zero.
8524
8525 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8526
8527 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8528 checked in with last change.
8529
8530 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8531
8532 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8533 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8534 config.sub.
8535
8536 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8537
8538 * Makefile.in: Update dependencies.
8539
8540 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8541
8542 * language.c (local_hex_string_custom): Simplify. Do not depend
8543 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8544
8545 * memattr.c (mem_info_command): Replace calls to
8546 longest_local_hex_string and longest_local_hex_string_custom.
8547 * buildsym.c (make_blockvector): Ditto.
8548 * solib.c (info_sharedlibrary_command): Ditto.
8549 * tracepoint.c (tracepoints_info): Ditto.
8550 * symtab.c (print_msymbol_info): Ditto.
8551
8552 * language.c (local_hex_string): Delete.
8553 (local_hex_string_custom): Delete.
8554 (longest_local_hex_string): Rename to local_hex_string.
8555 (longest_local_hex_string_custom): Rename to
8556 local_hex_string_custom.
8557 * language.h (local_hex_string): Change parameter type to LONGEST.
8558 (local_hex_string_custom): Ditto.
8559 (longest_local_hex_string): Delete declaration.
8560 (longest_local_hex_string_custom): Ditto.
8561
8562 * solib.c: Update copyright.
8563 * memattr.c: Update copyright.
8564
8565 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8566
8567 * arch-utils.h (legacy_register_to_value): Declare.
8568 (legacy_value_to_register): Declare.
8569 (legacy_convert_register_p): Declare.
8570 * arch-utils.c (legacy_register_to_value): New function.
8571 (legacy_value_to_register): New function.
8572 (legacy_convert_register_p): New function.
8573
8574 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8575 (VALUE_TO_REGISTER): Define.
8576 (CONVERT_REGISTER_P): Define.
8577 * gdbarch.h, gdbarch.c: Regenerate.
8578
8579 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8580 VALUE_TO_REGISTER.
8581 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8582 CONVERT_REGISTER_P.
8583
8584 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8585 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8586
8587 * Makefile.in: Update dependencies for valops.c.
8588 * valops.c: Include "gdb_assert.h".
8589 (typecmp): Skip THIS parameter to methods.
8590 (find_method_list): Remove static_memfuncp argument,
8591 update callers. Check for stub methods.
8592 (find_value_oload_method_list): Don't set *static_memfuncp.
8593 (find_overload_match): Don't check for stub methods. Assert
8594 that methods are not stubbed. Handle static methods.
8595 (value_find_oload_method_list): Remove static_memfuncp argument.
8596 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8597 to the argument list for static stub methods.
8598 * value.h (value_find_oload_method_list): Update prototype.
8599
8600 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8601
8602 * arch-utils.h (generic_register_size): Declare.
8603 (generic_register_raw_size, generic_register_virtual_size): Delete
8604 declarations.
8605 * arch-utils.c (generic_register_raw_size): Delete.
8606 (generic_register_size): New function.
8607 (generic_register_virtual_size): Delete.
8608
8609 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8610 default generic_register_size.
8611 * gdbarch.h, gdbarch.c: Re-generate.
8612
8613 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8614 register_virtual_size.
8615 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8616 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8617
8618 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8619
8620 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8621 * gdbarch.h, gdbarch.c: Regenerate.
8622 * gnu-v3-abi.c: Update copyright.
8623 (vtable_address_point_offset): Update.
8624 (gnuv3_rtti_type): Update.
8625 (gnuv3_baseclass_offset): Update.
8626 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8627 (init_fetch_link_map_offsets): Update.
8628 * remote.c (get_remote_state): Update.
8629
8630 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8631
8632 * TODO: Remove value_headof/value_from_vtable_info comment.
8633 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8634 * values.c (value_headof, value_from_vtable_info): Delete.
8635 * value.h (value_from_vtable_info): Delete prototype.
8636
8637 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8638
8639 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8640 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8641 $(gdb_regex_h).
8642 (gdb_assert_h): Define.
8643 (gdb_wait_h): Define.
8644 (gdb_regex_h): Define.
8645
8646 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8647
8648 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8649 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8650
8651 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8652
8653 * nbsd-tdep.c: Fix comment.
8654
8655 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8656
8657 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8658 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8659 (nbsd-tdep.o): New dependency list.
8660 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8661 nbsd-tdep.h.
8662 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8663 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8664 * nbsd-tdep.c: New file.
8665 * nbsd-tdep.h: New file.
8666 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8667 nbsd-tdep.h.
8668 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8669 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8670 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8671 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8672
8673 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8674
8675 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8676 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8677 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8678 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8679 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8680 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8681
8682 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8683
8684 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8685 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8686 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8687 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8688 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8689 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8690 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8691
8692 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8693
8694 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8695 fetch_elfcore_registers to...
8696 * i386nbsd-tdep.c: ...here.
8697 (i386nbsd_use_struct_convention): Rename to...
8698 (i386nbsd_aout_use_struct_convention): ...this.
8699 (i386nbsd_supply_reg): New function.
8700 (i386nbsd_fill_reg): New function.
8701 (fetch_core_registers): Use i386nbsd_supply_reg.
8702 (fetch_elfcore_registers): Likewise.
8703 (_initialize_i386nbsd_tdep): New function.
8704 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8705 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8706 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8707 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8708 (i386nbsd_aout_use_struct_convention): ...this.
8709
8710 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8711
8712 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8713 (store_inferior_registers): Use shnbsd_fill_reg.
8714 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8715 sh_nbsd_supply_register): Collapse into...
8716 (shnbsd_supply_reg): ...this.
8717 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8718 (shnbsd_fill_reg): ...this.
8719 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8720 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8721 (fetch_core_registers): Use shnbsd_supply_reg.
8722 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8723 (sh_nbsd_core_fns): Rename to...
8724 (shnbsd_core_fns): ...this.
8725 (sh_nbsd_elfcore_fns): Rename to...
8726 (shnbsd_elfcore_fns): ...this.
8727 (sh_nbsd_init_abi): Rename to...
8728 (shnbsd_init_abi): ...this.
8729 (_initialize_sh_nbsd_tdep): Rename to...
8730 (_initialize_shnbsd_tdep): ...this.
8731 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8732 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8733 sh_nbsd_fill_register): Remove prototypes.
8734 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8735
8736 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8737
8738 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8739 (i387-nat.o): Delete dependency list.
8740 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8741 (x86-64-linux-nat.o): Likewise.
8742 * i387-nat.c: Delete file, moving contents to...
8743 * i387-tdep.c: ...here.
8744 * i387-nat.h: Rename...
8745 * i387-tdep.h: ...to this.
8746 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8747 * i386-linux-nat.c: Likewise.
8748 * i386bsd-nat.c: Likewise.
8749 * i386gnu-nat.c: Likewise.
8750 * i386nbsd-nat.c: Likewise.
8751 * i386v4-nat.c: Likewise.
8752 * x86-64-linux-nat.c: Likewise.
8753 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8754 * config/i386/go32.mh (NATDEPFILES): Likewise.
8755 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8756 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8757 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8758 * config/i386/linux.mh (NATDEPFILES): Likewise.
8759 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8760 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8761 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8762 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8763
8764 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8765
8766 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8767 (alphanbsd-nat.o): Remove dependency list.
8768 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8769 * alphanbsd-nat.c: Delete. Contents moved to...
8770 * alphanbsd-tdep.c: ...here.
8771 (_initialize_alphanbsd_tdep): Register core functions.
8772 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8773
8774 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8775
8776 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8777 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8778 (alphanbsd-nat.o): Likewise.
8779 (alphabsd-tdep.o): New dependency list.
8780 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8781 (fill_gregset): Use alphabsd_fill_reg.
8782 (supply_fpregset): Use alphabsd_supply_fpreg.
8783 (fill_fpregset): Use alphabsd_fill_fpreg.
8784 (fetch_inferior_registers): Use struct reg and struct fpreg
8785 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8786 and alphabsd_supply_fpreg.
8787 (store_inferior_registers): Use struct reg and struct fpreg
8788 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8789 and alphabsd_fill_fpreg.
8790 * alphabsd-tdep.c: New file.
8791 * alphabsd-tdep.h: New file.
8792 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8793 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8794 alphabsd_supply_fpreg.
8795 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8796 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8797
8798 2002-05-11 Eric Christopher <echristo@redhat.com>
8799
8800 * mips-tdep.c (mips_double_register_type): Fix thinko.
8801 (mips_single_register_type): Ditto.
8802 * MAINTAINERS: Add self.
8803
8804 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8805
8806 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8807 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8808 right thing on architectures with different endianness and/or
8809 integer sizes.
8810
8811 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8812
8813 From Christian Limpach <chris@Pin.LU>
8814 * configure.in: Change sed expression which comments out
8815 NATDEPFILES to also comment out continuation lines.
8816 * configure: Regenerate.
8817
8818 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8819
8820 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8821 big patch.
8822
8823 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8824
8825 * sh-tdep.c: Include correct file.
8826
8827 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8828
8829 New support for sh64-elf (sh5) target.
8830
8831 * configure.tgt: For sh64-elf target, default to sh-elf.
8832
8833 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8834 (struct gdbarch_tdep): Add new fields for new registers and ABI
8835 info.
8836
8837 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8838 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8839 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8840 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8841 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8842 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8843 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8844 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8845 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8846 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8847 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8848 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8849 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8850 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8851 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8852 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8853 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8854 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8855 sign_extend, sh64_nofp_frame_init_saved_regs,
8856 sh64_init_extra_frame_info, sh64_get_saved_register,
8857 sh64_extract_struct_value_address, sh64_pop_frame,
8858 sh64_push_arguments, sh64_extract_return_value,
8859 sh64_store_return_value, sh64_show_media_regs,
8860 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8861 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8862 sh_sh64_register_virtual_type,
8863 sh_sh64_register_convert_to_virtual,
8864 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8865 sh64_register_read, sh64_pseudo_register_write,
8866 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8867 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8868 sh64_do_pseudo_register, sh_compact_do_registers_info,
8869 sh64_do_registers_info, sh_gdbarch_init): New functions.
8870
8871 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8872
8873 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8874
8875 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8876
8877 * linespec.c (decode_line_1): Check for a double quote after
8878 a filename correctly.
8879
8880 2002-05-10 Jim Blandy <jimb@redhat.com>
8881
8882 Properly track the size of the current objfile's .debug_line section.
8883 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8884 (DWARF_LINE_SIZE): New macro.
8885 (dwarf2_build_psymtabs_hard): Record the line section's size in
8886 the partial symbol table.
8887 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8888 symbol table.
8889
8890 2002-05-10 Petr Sorfa <petrs@caldera.com>
8891
8892 * ia64-tdep.c: Handle breakpoints on L instruction type
8893 in MLX instruction bundle by moving the breakpoint to
8894 the third slot (X instruction type) as L holds only data.
8895
8896 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8897
8898 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8899 (process_one_symbol): Complain about discarding local symbols
8900 due to a misplaced N_LBRAC entry.
8901
8902 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8903
8904 From Daniel Berlin <dan@cgsoftware.com>
8905 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8906 decrease the depth we are at, in the case of templates.
8907
8908 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8909
8910 * mips-tdep.c (mips_float_register_type): New function.
8911 (mips_double_register_type): New function.
8912 (mips_print_register): Use them.
8913 (do_fp_register_row): Likewise.
8914
8915 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8916
8917 * signals/signals.c (signals): Remove conditional compilation around
8918 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8919 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8920
8921 2002-05-09 Michael Snyder <msnyder@redhat.com>
8922
8923 * remote-rdp.c (remote_rdp_can_run): Remove.
8924
8925 2002-05-09 Tom Tromey <tromey@redhat.com>
8926
8927 * jv-valprint.c (java_val_print): Handle `char' as a special case
8928 of TYPE_CODE_INT.
8929
8930 2002-05-09 Michael Snyder <msnyder@redhat.com>
8931
8932 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8933 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8934 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8935 str r(0123),[sp,#nn].
8936 (arm_skip_prologue): Ditto. Also make disassembly
8937 order-independent by placing it in a loop.
8938
8939 2002-05-06 Michael Snyder <msnyder@redhat.com>
8940
8941 * stabsread.c (read_type): Add recognition for new attribute:
8942 "@V;" means that an array type is actually a vector.
8943 This is analogous to the vector flag that's been added to dwarf2.
8944
8945 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8946
8947 * i386-tdep.h (i386_abi): New enum.
8948 (struct gdbarch_tdep): Replace os_ident member with abi.
8949 (i386_gdbarch_register_os_abi): New prototype.
8950 * i386-tdep.c (i386_abi_names): New array.
8951 (process_note_abi_tag_sections): Removed.
8952 (process_note_sections): New function.
8953 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8954 (struct i386_abi_handler): New struct.
8955 (i386_abi_handler_list): New variable.
8956 (i386_gdbarch_register_os_abi): New function.
8957 (i386_gdbarch_init): Adapt for the changes given above.
8958
8959 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8960
8961 * gregset.h: Say "GNU/Linux".
8962
8963 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8964
8965 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8966 (build_gdbtypes): Build builtin_type_v2_float.
8967 (_initialize_gdbtypes): Register new builtin type.
8968
8969 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8970
8971 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8972 (clear_gdbarch_swap): New function.
8973 (initialize_non_multiarch): Call.
8974 (gdbarch_update_p): Before calling init(), swap out and clear the
8975 existing architecture.
8976 * gdbarch.c: Regenerate.
8977
8978 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8979
8980 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8981 alphanbsd-tdep.c.
8982
8983 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8984
8985 * sh-nbsd-nat.c: Rename to...
8986 * shnbsd-nat.c: ...this.
8987 * sh-nbsd-tdep.c: Rename to...
8988 * shnbsd-tdep.c: ...this.
8989 * sh-nbsd-tdep.h: Rename to...
8990 * shnbsd-tdep.h: ...this.
8991 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8992 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8993
8994 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8995
8996 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8997 concatenation for command help messages.
8998
8999 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9000
9001 * NEWS: Note new sh*-*-netbsdelf* configuration.
9002 * configure.host: Set gdb_host_cpu to sh for all sh*.
9003 (sh*-*-netbsdelf*): New host.
9004 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9005 (sh*-*-netbsdelf*): New target.
9006 * sh-nbsd-nat.c: New file.
9007 * sh-nbsd-tdep.c: New file.
9008 * sh-nbsd-tdep.h: New file.
9009 * config/sh/nbsd.mh: New file.
9010 * config/sh/nbsd.mt: New file.
9011 * config/sh/nm-nbsd.h: New file.
9012 * config/sh/tm-nbsd.h: New file.
9013
9014 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9015
9016 * sh-tdep.c (sh_osabi_names): Declare.
9017 (process_note_abi_tag_sections): New function.
9018 (get_elfosabi): Ditto.
9019 (sh_gdbarch_register_os_abi): Ditto.
9020 (sh_dump_tdep): Ditto.
9021 _initialize_sh_tdep): Use gdbarch_register to register
9022 sh_gdbarch_init and sh_dump_tdep.
9023 * config/sh/tm-sh.h (sh_osabi): Declare.
9024 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9025
9026 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9027
9028 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9029 (thumb_scan_prologue): Ditto.
9030 (arm_find_callers_reg): Ditto.
9031 (arm_frame_chain): Ditto.
9032 (arm_init_extra_frame_info): Ditto.
9033 (arm_frame_saved_pc): Ditto.
9034 (arm_pop_frame): Ditto.
9035 (arm_push_return_address): New function.
9036 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9037 call_dummy_location, call_dummy_breakpoint_offset_p,
9038 call_dummy_breakpoint_offset, call_dummy_p,
9039 call_dummy_stack_adjust_p, call_dummy_words,
9040 sizeof_call_dummy_words, call_dummy_start_offset,
9041 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9042 call_dummy_address, push_return_address and push_dummy_frame for
9043 generic dummy frames.
9044
9045 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9046
9047 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9048 size computation for alloca.
9049 (sh_fp_frame_init_saved_regs): Likewise.
9050
9051 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9052
9053 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9054 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9055 * arm-tdep.c (arm_store_return_value): Use them.
9056 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9057 * remote-rdp.c (remote_rdp_fetch_register): Use
9058 ARM_MAX_REGISTER_RAW_SIZE.
9059 (remote_rdp_store_register): Likewise.
9060
9061 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9062
9063 * dwarf2cfi.c: Code cleanup, removed unused variables,
9064 added default labels to switch {} statements.
9065 * x86-64-tdep.c: Ditto.
9066 * x86-64-linux-nat.c: Ditto.
9067
9068 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9069
9070 * solib.h: Protect against multiple inclusion.
9071
9072 2002-05-06 Jim Blandy <jimb@redhat.com>
9073
9074 Add first preprocessor macro-expansion files.
9075 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9076 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9077 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9078 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9079 (COMMON_OBS): Add macrotab.o, macroexp.o.
9080 (macroexp.o, macrotab.o): New rules.
9081
9082 Separate the job of reading the line number info statement program
9083 header (...expialidocious) out into its own function.
9084 * dwarf2read.c (struct line_head, struct filenames, struct
9085 directories): Replace with...
9086 (struct line_header): New structure, containing the full
9087 contents of the statement program header, including the
9088 include directory and file name tables.
9089 (read_file_scope): If we have line number info, instead of just
9090 calling dwarf_decode_lines to do all the work, call
9091 dwarf_decode_line_header first to get a `struct line_header'
9092 containing the data in the statement program header, and then
9093 pass that to dwarf_decode_lines, which will pick up where that
9094 left off. Be sure to clean up the `struct line_header' object.
9095 (dwarf_decode_line_header, free_line_header, add_include_dir,
9096 add_file_name): New functions.
9097 (dwarf_decode_lines): Move all the code to read the statement
9098 program header into dwarf_decode_line_header. Take the line
9099 header it built as the first argument, instead of the offset to
9100 the compilation unit's line number info. Use the new `struct
9101 line_header' type instead of the old structures. No need to do
9102 cleanups here now, since we don't allocate anything.
9103 (dwarf2_statement_list_fits_in_line_number_section,
9104 dwarf2_line_header_too_long): New complaints.
9105
9106 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9107
9108 * gdbtypes.c (init_vector_type): New function.
9109 (build_builtin_type_vec128): Simplify the representation of SIMD
9110 registers.
9111 (build_gdbtypes): Initialize new builtin vector types.
9112 (_initialize_gdbtypes): Register new vector types with gdbarch.
9113 (builtin_type_v4_float, builtin_type_v4_int32,
9114 builtin_type_v8_int16, builtin_type_v16_int8,
9115 builtin_type_v2_int32, builtin_type_v4_int16,
9116 builtin_type_v8_int8): New (renamed) SIMD types.
9117
9118 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9119
9120 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9121 (i387_fill_fxsave): Likewise.
9122
9123 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9124
9125 * alpha-tdep.c (alpha_extract_return_value): Don't use
9126 non-constant array size in prototype.
9127
9128 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9129
9130 From Brian Taylor <briant at model dot com>:
9131 * ui-out.c (ui_out_field_core_addr): Use the function
9132 longest_local_hex_string_custom'to format addresses > 32 bits
9133 wide.
9134
9135 * ui-out.c (ui_out_field_core_addr): Update comment.
9136
9137 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9138
9139 * stack.c (select_and_print_frame): Make static. Delete the
9140 parameter `level'.
9141 (func_command): Update call.
9142 (select_frame_command): Delete code computing the frame level.
9143 * frame.h (select_and_print_frame): Delete declaration.
9144
9145 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9146
9147 * sparc-tdep.c (sparc_get_saved_register): Comment why
9148 get_prev_frame call is safe.
9149
9150 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9151
9152 * frame.h (select_frame): Delete level parameter.
9153 * stack.c (select_frame): Update. Use frame_relative_level to
9154 obtain the frame's level.
9155 (select_and_print_frame): Update call.
9156 (select_frame_command): Ditto.
9157 (up_silently_base): Ditto.
9158 (down_silently_base): Ditto.
9159 * ocd.c (ocd_start_remote): Ditto.
9160 * remote-rdp.c (remote_rdp_open): Ditto.
9161 * remote-mips.c (mips_initialize): Ditto.
9162 (common_open): Ditto.
9163 * remote-e7000.c (e7000_start_remote): Ditto.
9164 * m3-nat.c (select_thread): Ditto.
9165 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9166 (child_get_current_exception_event): Ditto.
9167 * varobj.c (varobj_create): Ditto.
9168 (varobj_update): Ditto.
9169 (c_value_of_root): Ditto.
9170 * tracepoint.c (finish_tfind_command): Ditto.
9171 * corelow.c (core_open): Ditto.
9172 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9173 * thread.c (info_threads_command): Ditto.
9174 (switch_to_thread): Ditto.
9175 * infrun.c (normal_stop): Ditto.
9176 (restore_selected_frame): Ditto.
9177 (restore_inferior_status): Ditto.
9178 * breakpoint.c (insert_breakpoints): Ditto.
9179 (watchpoint_check): Ditto.
9180 (bpstat_stop_status): Ditto.
9181 (do_enable_breakpoint): Ditto.
9182 * blockframe.c (flush_cached_frames): Ditto.
9183 (reinit_frame_cache): Ditto.
9184
9185 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9186
9187 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9188 maintainer.
9189
9190 2002-05-04 Jim Blandy <jimb@redhat.com>
9191
9192 * gdbtypes.c (replace_type): Doc fix.
9193
9194 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9195
9196 * valprint.c (strcat_longest): Delete commented out function.
9197 Update copyright.
9198
9199 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9200
9201 * MAINTAINERS: Mark a29k as deleted.
9202 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9203 Move new configurations to the top.
9204 * configure.tgt: Remove a29k.
9205 * config/a29k/tm-vx29k.h: Delete.
9206 * config/a29k/vx29k.mt: Delete.
9207 * config/a29k/tm-a29k.h: Delete.
9208 * config/a29k/a29k-udi.mt: Delete.
9209 * config/a29k/a29k.mt: Delete.
9210 * a29k-tdep.c: Delete.
9211 * remote-udi.c: Delete.
9212 * remote-mm.c: Delete.
9213 * remote-eb.c: Delete.
9214 * remote-adapt.c: Delete.
9215 * Makefile.in: Remove obsolete code.
9216 * config/s390/s390x.mt: Ditto.
9217 * config/s390/s390.mt: Ditto.
9218 * config/sparc/sparclynx.mh: Ditto.
9219 * config/sparc/linux.mh: Ditto.
9220 * config/pa/hppaosf.mh: Ditto.
9221 * config/pa/hppabsd.mh: Ditto.
9222 * config/ns32k/nbsd.mt: Ditto.
9223 * config/mips/vr5000.mt: Ditto.
9224 * config/m68k/sun3os4.mh: Ditto.
9225 * config/m68k/nbsd.mt: Ditto.
9226 * config/m68k/m68klynx.mh: Ditto.
9227 * config/m32r/m32r.mt: Ditto.
9228 * config/i386/x86-64linux.mt: Ditto.
9229 * config/i386/nbsdelf.mt: Ditto.
9230 * config/i386/nbsd.mt: Ditto.
9231 * config/i386/i386lynx.mh: Ditto.
9232
9233 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9234
9235 * target.c (debug_print_register): New function. Handle oversize
9236 registers.
9237 (debug_to_fetch_registers): Call.
9238 (debug_to_store_registers): Call.
9239
9240 2002-05-03 Jim Blandy <jimb@redhat.com>
9241
9242 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9243 (read_type): Doc fix.
9244 * gdbtypes.c (replace_type): Doc fix.
9245
9246 * stabsread.c (multiply_defined_struct): New complaint.
9247 (read_struct_type): If the type we were passed isn't empty, or
9248 incomplete, don't read the new struct type into it; complain,
9249 and return the original type unchanged. Take a new `type_code'
9250 argument, which is the type code for the new type.
9251 (read_type): Rather than storing the type's type code here, pass
9252 it as an argument to read_struct_type, and let that take care of
9253 storing it. That way, we don't overwrite the original type code,
9254 so read_struct_type can use it to decide whether we're overwriting
9255 something we shouldn't.
9256 (complain_about_struct_wipeout): New function.
9257
9258 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9259
9260 * gdbarch.sh: Assert that gdbarch is non-NULL.
9261 * gdbarch.c: Regenerate.
9262
9263 2002-05-03 Jason Merrill <jason@redhat.com>
9264
9265 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9266 and return NULL.
9267
9268 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9269
9270 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9271 (x86_64_dwarf2gdb_regno_map_length),
9272 (x86_64_dwarf2_reg_to_regnum): Added.
9273 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9274 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9275 (_initialize_x86_64_tdep): Synced with the change above.
9276 (x86_64_skip_prologue): Reformulated message.
9277
9278 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9279
9280 * f-exp.y: Also use new prev_lexptr variable
9281 to improve error reporting. Based on Michael Snyder
9282 2002-04-24 dated patch to c-exp.y.
9283 * jv-exp.y: Likewise.
9284 * m2-exp.y: Likewise.
9285
9286 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9287
9288 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9289 we are dealing with vectors.
9290
9291 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9292
9293 * config/m68k/tm-nbsd.h: Obvious fix,
9294 correct machine name.
9295
9296 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9297
9298 * p-typeprint.c (pascal_type_print_base): Add support
9299 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9300
9301 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9302
9303 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9304 for fondamental pascal 'char' type.
9305
9306 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9307
9308 * p-lang.h (is_pascal_string_type): Declaration changed,
9309 new sixth argument of type char ** added.
9310 * p-lang.c (is_pascal_string_type): Implementation
9311 changed. Args length_pos, length_size, string_pos, char_size
9312 can now be NULL. New argument arrayname set to the field
9313 name of the char array. Return value set to char array
9314 field index plus one.
9315 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9316 is_pascal_string_type function.
9317
9318 2002-05-02 Andrew Cagney <cagney@redhat.com>
9319
9320 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9321 <cagney@redhat.com> change.
9322 * gdbarch.c: Regenerate.
9323
9324 2002-05-02 Andrew Cagney <cagney@redhat.com>
9325
9326 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9327 before probing for a new one. Detect errorenous gdbarch_init
9328 functions.
9329 * gdbarch.c: Regenerate.
9330
9331 2002-05-01 Andrew Cagney <cagney@redhat.com>
9332
9333 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9334 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9335 * config/v850/tm-v850.h: Ditto. Update copyright.
9336
9337 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9338
9339 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9340 current_gdbarch.
9341
9342 2002-04-30 Michael Snyder <msnyder@redhat.com>
9343
9344 * arm-tdep.c: Whitespace clean-ups.
9345 (arm_skip_prologue): Fix thinko; two lines
9346 should have been removed as part of 4/24 change.
9347
9348 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9349
9350 * rs6000-tdep.c: Added comment describing how fpscr register
9351 numbers were chosen.
9352
9353 2002-04-30 Michael Snyder <msnyder@redhat.com>
9354
9355 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9356
9357 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9358
9359 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9360 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9361 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9362
9363 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9364
9365 From Louis Hamilton <hamilton@redhat.com>:
9366 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9367 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9368 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9369 not bfd-private xcoff data, to determine wordsize.
9370 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9371
9372 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9373
9374 GDB 5.2 released from 5.2 branch.
9375
9376 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9377
9378 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9379 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9380 (x86_64_register_info_table): Added comments with register numbers.
9381
9382 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9383
9384 * rs6000-tdep.c (rs6000_extract_return_value,
9385 rs6000_store_return_value): Handle returning vectors.
9386 (rs6000_gdbarch_init): Use
9387 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9388 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9389 New function.
9390 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9391 vectors.
9392 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9393 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9394
9395 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9396
9397 * hpread.c (hpread_psymtab_to_symtab_1,
9398 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9399 with fprintf_unfiltered (gdb_stderr,...).
9400
9401 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9402
9403 * remote-array.c (printf_monitor, write_monitor,
9404 array_insert_breakpoint, array_remove_breakpoint ):
9405 Replace fprintf (stderr,...
9406 with fprintf_unfiltered (gdb_stderr,....
9407 * remote-es.c: Likewise.
9408 * remote-os9k.c: Likewise.
9409 * remote-st.c: Likewise.
9410
9411 2002-04-28 Andreas Schwab <schwab@suse.de>
9412
9413 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9414 linux-proc.o and gcore.o.
9415
9416 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9417
9418 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9419 code without frame pointers.
9420
9421 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9422
9423 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9424 ON_STACK is needed.
9425
9426 2002-04-26 Ben Elliston <bje@redhat.com>
9427
9428 * target.c (do_xfer_memory): Correct reference to the new option
9429 "trust-readonly-sections".
9430
9431 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9432
9433 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9434 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9435 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9436 vectors.
9437 (read_array_type): Record the fact that this array type is really a
9438 vector (i.e. are passed in by value).
9439
9440 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9441
9442 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9443 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9444 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9445 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9446 * alpha-linux-tdep.c: Include frame.h.
9447 (alpha_linux_sigcontext_addr): New function.
9448 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9449 alpha_linux_sigcontext_addr.
9450 * alpha-osf1-tdep.c: Include gdbcore.h.
9451 (alpha_osf1_sigcontext_addr): New function.
9452 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9453 alpha_osf1_sigcontext_addr.
9454 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9455 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9456
9457 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9458
9459 * stack.c (selected_frame_level):
9460 (select_frame): Do not set selected_frame_level.
9461 * frame.h (selected_frame_level): Delete declaration.
9462
9463 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9464
9465 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9466 convert_from_func_ptr-addr when AIX / PowerOpen.
9467
9468 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9469
9470 * valops.c (hand_function_call): Call
9471 generic_save_call_dummy_addr.
9472 * frame.h (generic_save_call_dummy_addr): Declare.
9473 * blockframe.c (struct dummy_frame): Add fields call_lo and
9474 call_hi.
9475 (generic_find_dummy_frame): Check for PC in range call_lo to
9476 call_hi instead of entry_point_address.
9477 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9478 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9479 (generic_save_call_dummy_addr): New function.
9480
9481 2002-04-24 David S. Miller <davem@redhat.com>
9482
9483 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9484 sparc_skip_prologue.
9485 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9486 information to find prologue when possible.
9487 (sparc_prologue_frameless_p): Call examine_prologue directly.
9488 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9489 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9490 second argument.
9491 (SKIP_PROLOGUE): Likewise.
9492
9493 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9494
9495 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9496 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9497 indicate that the condition it was testing is always true.
9498 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9499 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9500 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9501
9502 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9503
9504 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9505 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9506 tdep->jb_pc and tdep->jb_elt_size.
9507 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9508 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9509 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9510 * alpha-nat.c (get_longjmp_target): Remove.
9511 (JB_ELEMENT_SIZE): Ditto.
9512 (JB_PC): Ditto.
9513 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9514 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9515 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9516 to alpha_get_longjmp_target.
9517 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9518 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9519 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9520
9521 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9522
9523 * README: Update to GDB 5.2.
9524
9525 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9526
9527 * gdbarch.sh (LC_ALL): Set to `c'.
9528
9529 2002-04-25 Theodore A. Roth <troth@verinet.com>
9530
9531 * avr-tdep.c: Ran through gdb_indent.sh.
9532
9533 2002-04-25 Theodore A. Roth <troth@verinet.com>
9534
9535 * MAINTAINERS: Add myself as AVR maintainer.
9536 * NEWS: Note new target avr.
9537
9538 2002-04-25 Theodore A. Roth <troth@verinet.com>
9539
9540 * Makefile.in: Add support for AVR target.
9541 * configure.tgt: Add support for AVR target.
9542 * avr-tdep.c: New file
9543 * config/avr/avr.mt: New file.
9544
9545 2002-04-25 Theodore A. Roth <troth@verinet.com>
9546
9547 * MAINTAINERS: Add myself to write-after-approval.
9548
9549 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9550
9551 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9552 with fprintf_unfiltered (gdb_stderr,....
9553
9554 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9555
9556 Fix PR gdb/508.
9557 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9558
9559 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9560
9561 * p-exp.y: Also use new prev_lexptr variable
9562 to improve error reporting. Based on Michael Snyder
9563 2002-04-24 dated patch to c-exp.y.
9564
9565 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9566
9567 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9568 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9569 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9570 to 0.
9571 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9572 and struct value.
9573 (FUNCTION_START_OFFSET): Remove.
9574 (BREAKPOINT): Ditto.
9575
9576 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9577
9578 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9579 * NEWS: Ditto.
9580
9581 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9582
9583 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9584 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9585 alpha_linux_pc_in_sigtramp.
9586 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9587 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9588 alpha_osf1_pc_in_sigtramp.
9589 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9590 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9591 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9592 alphafbsd_pc_in_sigtramp.
9593 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9594 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9595 alphanbsd_pc_in_sigtramp.
9596 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9597 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9598
9599 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9600
9601 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9602
9603 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9604
9605 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9606 alphanbsd-tdep.c.
9607 (alphanbsd-nat.o): New dependency list.
9608 (alphanbsd-tdep.o): Ditto.
9609 * NEWS: Note new native NetBSD/alpha configuration.
9610 * alphanbsd-nat.c: New file.
9611 * alphanbsd-tdep.c: Ditto.
9612 * configure.host (alpha*-*-netbsd*): New host.
9613 * configure.tgt (alpha*-*-netbsd*): New target.
9614 * config/alpha/nbsd.mh: New file.
9615 * config/alpha/nbsd.mt: Ditto.
9616 * config/alpha/nm-nbsd.h: Ditto.
9617 * config/alpha/tm-nbsd.h: Ditto.
9618
9619 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9620
9621 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9622 (alpha-osf1-tdep.o): New dependency list.
9623 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9624 and skip_sigtramp_frame members.
9625 * alpha-linux-tdep.c: Include gdbcore.h.
9626 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9627 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9628 * alpha-osf1-tdep.c: New file.
9629 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9630 alpha-osf1-dep.c.
9631 (alpha_frame_past_sigtramp_frame): New function.
9632 (alpha_dynamic_sigtramp_offset): Ditto.
9633 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9634 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9635 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9636 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9637 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9638 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9639 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9640 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9641 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9642 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9643 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9644 to find_solib_trampoline_target.
9645 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9646 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9647 (SKIP_TRAMPOLINE_CODE): Remove.
9648 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9649 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9650 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9651 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9652 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9653 (PROC_SIGTRAMP_MAGIC): Ditto.
9654 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9655 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9656 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9657 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9658 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9659
9660 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9661
9662 * NEWS: Note that Alpha targets are now multi-arch.
9663
9664 2002-04-24 Michael Snyder <msnyder@redhat.com>
9665
9666 * parser-defs.h (prev_lexptr): New external variable.
9667 * parse.c (parse_exp_1): Set prev_lexptr to null before
9668 calling the language-specific parser.
9669 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9670 (yyerror): Use prev_lexptr in error reporting.
9671
9672 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9673
9674 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9675 * gregset.h: If FILL_FPXREGSET is defined, provide
9676 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9677 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9678 is defined, call fill_fpxregset.
9679
9680 2002-04-24 Roland McGrath <roland@frob.com>
9681
9682 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9683 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9684 (supply_gregset, supply_fpregset): New functions.
9685
9686 * gnu-nat.c (gnu_find_memory_regions): New function.
9687 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9688 (gnu_xfer_memory): Add a cast.
9689
9690 2002-04-24 Michael Snyder <msnyder@redhat.com>
9691
9692 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9693 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9694 of argument regs ("str r(0123), [r11, #-nn"]).
9695 (arm_skip_prologue): Better handling for frameless functions.
9696 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9697 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9698
9699 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9700
9701 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9702 NUM_PSEUDO_REGS can be used.
9703
9704 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9705
9706 * arch-utils.h: Update copyright.
9707
9708 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9709 * gdbarch.h, gdbarch.c: Re-generate.
9710
9711 * inferior.h (IN_SIGTRAMP): Delete definition.
9712 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9713 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9714
9715 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9716 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9717 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9718 (find_proc_framesize): Ditto.
9719 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9720 (alpha_init_extra_frame_info): Ditto.
9721 * infrun.c (handle_inferior_event): Ditto.
9722 (handle_inferior_event): Ditto.
9723 (check_sigtramp2): Ditto.
9724 * blockframe.c (create_new_frame): Ditto.
9725 (get_prev_frame): Ditto.
9726 * ppc-linux-tdep.c: Update comments.
9727 * i386-linux-tdep.c: Update comments.
9728 * breakpoint.c (bpstat_what): Update comment.
9729
9730 2002-04-24 David S. Miller <davem@redhat.com>
9731
9732 * i960-tdep.c (register_in_window_p): New function.
9733 (i960_find_saved_register): Use it instead of
9734 REGISTER_IN_WINDOW_P.
9735 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9736
9737 * symtab.h (find_stab_function_addr): Kill extern.
9738 * minsyms.c (find_stab_function_addr): Remove from here...
9739 * dbxread.c: ... to here, and mark it static.
9740
9741 2002-04-20 David S. Miller <davem@redhat.com>
9742
9743 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9744 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9745
9746 2002-04-21 David S. Miller <davem@redhat.com>
9747
9748 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9749 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9750 (vx_write_register): Likewise.
9751
9752 2002-04-23 J. Brobecker <brobecker@gnat.com>
9753
9754 * source.c (is_regular_file): New function.
9755 (openp): Check wether file to open is a regular file
9756 to avoid opening directories.
9757
9758 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9759
9760 * findvar.c (extract_signed_integer): Cast printf argument
9761 to suppress format warning.
9762 (extract_unsigned_integer): Likewise.
9763 * infcmd.c (registers_info): Likewise.
9764 * top.c (get_prompt_1): Likewise.
9765 * valops.c (value_assign): Likewise.
9766 * valprint.c (print_decimal): Likewise.
9767
9768 2002-04-22 H.J. Lu (hjl@gnu.org)
9769
9770 * c-exp.y (typebase): Support
9771
9772 [long|long long|short] [signed|unsigned] [int|]
9773
9774 and
9775
9776 signed [long|long long|short] int
9777
9778 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9779
9780 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9781 and vax-tdep.h.
9782 * vax-tdep.h: New file.
9783 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9784 Make several routines static.
9785 (vax_get_saved_register): New function.
9786 (vax_gdbarch_init): New function.
9787 (_initialize_vax_tdep): Register vax_gdbarch_init.
9788 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9789 Remove macros now under the control of gdbarch.
9790
9791 2002-04-22 Michael Snyder <msnyder@redhat.com>
9792
9793 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9794 Some whitespace and coding standards tweaks.
9795
9796 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9797
9798 * vax-tdep.c: Include regcache.h.
9799 (vax_call_dummy_words): New.
9800 (sizeof_vax_call_dummy_words): New.
9801 (vax_fix_call_dummy): New function.
9802 (vax_saved_pc_after_call): Ditto.
9803 * config/vax/tm-vax.h: Don't include regcache.h.
9804 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9805 (CALL_DUMMY): Remove.
9806 (CALL_DUMMY_WORDS): Define.
9807 (SIZEOF_CALL_DUMMY_WORDS): Define.
9808 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9809
9810 2002-04-18 Michael Snyder <msnyder@redhat.com>
9811
9812 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9813
9814 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9815
9816 * vax-tdep.c (vax_frame_chain): New function.
9817 (vax_push_dummy_frame): Ditto.
9818 (vax_pop_frame): Ditto.
9819 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9820 (FRAMELESS_FUNCTION_INVOCATION): Use
9821 generic_frameless_function_invocation_not.
9822 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9823 (POP_FRAME): Use vax_pop_frame.
9824
9825 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9826
9827 * vax-tdep.c (vax_store_struct_return): New function.
9828 (vax_extract_return_value): Ditto.
9829 (vax_store_return_value): Ditto.
9830 (vax_extract_struct_value_address): Ditto.
9831 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9832 vax_store_struct_return.
9833 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9834 (STORE_RETURN_VALUE): Use vax_store_return_value.
9835 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9836
9837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * vax-tdep.c (vax_frame_saved_pc): New function.
9840 (vax_frame_args_address_correct): Ditto.
9841 (vax_frame_args_address): Ditto.
9842 (vax_frame_locals_address): Ditto.
9843 (vax_frame_num_args): Move code to be in proximity to
9844 other frame-related functions.
9845 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9846 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9847 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9848 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9849 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9850
9851 2002-04-22 H.J. Lu (hjl@gnu.org)
9852
9853 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9854 includedir.
9855
9856 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9857
9858 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9859 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9860 (FRAME_INIT_SAVED_REGS): New macro.
9861
9862 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9863
9864 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9865
9866 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9867
9868 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9869 where needed.
9870 (fetch_osf_core_registers): Likewise.
9871 (supply_gregset): Likewise.
9872
9873 2002-04-22 J. Brobecker <brobecker@gnat.com>
9874
9875 * symfile.h (get_section_index): Define.
9876 * symfile.c (get_section_index): New function.
9877 * mdebugread.c (SC_IS_SBSS): New macro.
9878 (SC_IS_BSS): Return true for the scBss storage class only, as
9879 the scSBss storage class refers to the .sbss section.
9880 (parse_partial_symbols): Discard the symbols which associated
9881 section does not exist.
9882 Make sure to use the .sbss section index for symbols which
9883 storage class is scBss, rather than using the .bss section index.
9884
9885 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9886
9887 * vax-tdep.c: Update copyright years.
9888 (vax_register_name): New function.
9889 (vax_register_byte): Ditto.
9890 (vax_register_raw_size): Ditto.
9891 (vax_register_virtual_size): Ditto.
9892 (vax_register_virtual_type): Ditto.
9893 * config/vax/tm-vax.h: Update copyright years.
9894 (REGISTER_NAMES): Remove.
9895 (REGISTER_NAME): Define.
9896 (REGISTER_BYTE): Use vax_register_byte.
9897 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9898 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9899 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9900
9901 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9902
9903 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9904 declaration
9905 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9906
9907 2002-04-21 David S. Miller <davem@redhat.com>
9908
9909 * arch-utils.c (generic_prologue_frameless_p): Kill
9910 SKIP_PROLOGUE_FRAMELESS_P code.
9911 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9912 references.
9913 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9914 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9915 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9916 references.
9917 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9918 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9919 (sparc_gdbarch_init): Pass it to
9920 set_gdbarch_prologue_frameless_p.
9921
9922 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9923
9924 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9925 (alphabsd-nat.o): New dependency list.
9926
9927 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9928
9929 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9930 alphafbsd-tdep.c.
9931 (alpha-linux-tdep.o): New dependency list.
9932 (alphafbsd-tdep.o): Likewise.
9933
9934 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9935
9936 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9937 to here...
9938 * alpha-tdep.c: ...from here.
9939 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9940
9941 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9942
9943 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9944 prototype from here...
9945 * alpha-tdep.h: ...to here.
9946
9947 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9948
9949 * frame.h (selected_frame_level): Document as deprecated.
9950 (frame_relative_level): Declare.
9951 * stack.c (frame_relative_level): New function.
9952 (selected_frame_level): Document as deprecated.
9953 (select_frame): Do not set the selected_frame_level.
9954
9955 * stack.c (frame_info, record_selected_frame): Update.
9956 (frame_command, current_frame_command): Update.
9957 (up_silently_base, up_command, down_silently_base): Update.
9958 (down_command): Update.
9959 * inflow.c (kill_command): Update.
9960 * tracepoint.c (finish_tfind_command): Update.
9961 * corelow.c (core_open): Update.
9962 * thread.c (info_threads_command): Update.
9963 (do_captured_thread_select): Update.
9964 * infcmd.c (finish_command): Update.
9965 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9966
9967 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9968
9969 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9970
9971 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9972
9973 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9974 type const.
9975
9976 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9977
9978 * alphafbsd-tdep.c: Update copyright years. Include
9979 alpha-tdep.h.
9980 (alphafbsd_use_struct_convention): Make static.
9981 (alphafbsd_init_abi): New function.
9982 (_initialize_alphafbsd_tdep): New function.
9983 * config/alpha/tm-fbsd.h: Update copyright years.
9984 (USE_STRUCT_CONVENTION): Remove.
9985
9986 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9987
9988 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9989 an Alpha ABI variant.
9990 (alpha_abi_handler_list): Declare.
9991 (alpha_gdbarch_register_os_abi): New function.
9992 (alpha_gdbarch_init): Give registered ABI variant handlers a
9993 chance to tweak the gdbarch once we have set up defaults.
9994 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9995
9996 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9997
9998 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9999 to standard_coerce_float_to_double.
10000 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10001
10002 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10003
10004 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10005 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10006 from gdbarch_tdep rather than a constant.
10007 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10008 the default text address for all Alpha Unix ABIs.
10009 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10010 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10011
10012 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10013
10014 * alpha-tdep.h: New file. Includes several Alpha target constants
10015 taken from...
10016 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10017 let gdbarch deal with.
10018 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10019 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10020 to dependency list.
10021 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10022 Alpha target register names.
10023 * alphabsd-nat.c: Likewise.
10024 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10025 Alpha target register names. Make serveral routines static.
10026 (alpha_get_saved_register): New function.
10027 (alpha_abi_names): New.
10028 (process_note_abi_tag_sections): New function.
10029 (get_elfosabi): New function.
10030 (alpha_gdbarch_init): New function.
10031 (alpha_dump_tdep): New function.
10032 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10033
10034 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10035
10036 * frame.c (find_saved_register): Delete #ifdef
10037 HAVE_REGISTER_WINDOWS code.
10038 * config/sparc/tm-sparc.h: Update comments.
10039 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10040
10041 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10042
10043 * i960-tdep.c (i960_find_saved_register): New function.
10044 (i960_get_saved_register): New function.
10045 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10046 (i960_get_saved_register): Declare.
10047 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10048
10049 2002-04-20 David S. Miller <davem@redhat.com>
10050
10051 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10052
10053 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10054
10055 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10056 instead of NUM_PSEUDO_REGS.
10057
10058 2002-04-20 David S. Miller <davem@redhat.com>
10059
10060 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10061 GDB_MULTI_ARCH_PARTIAL
10062 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10063 define, let tm-sp64.h do it.
10064
10065 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10066
10067 * frame.c (find_saved_register): Avoid a NULL pointer
10068 dereference and actually walk the frame list.
10069
10070 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10071
10072 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10073 sorted in most most-recent-used order. Document.
10074 * gdbarch.h, gdbarch.c: Regenerate.
10075
10076 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10077
10078 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10079 instead of ->prev.
10080 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10081 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10082 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10083 instead of ->prev.
10084
10085 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10086
10087 Fix PR gdb/471.
10088 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10089 (build_builtin_type_vec128): Ditto.
10090 (append_composite_type_field): Fix calculation of type length in
10091 union case.
10092
10093 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10094
10095 * config/djgpp/README: Update.
10096
10097 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10098 compiler warnings.
10099
10100 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10101
10102 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10103 (alpha_setup_arbitrary_frame): ...to this.
10104 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10105 for alpha_setup_arbitrary_frame.
10106
10107 2002-04-18 Andrew Cagney <cagney@redhat.com>
10108
10109 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10110 * gdbarch.h, gdbarch.c: Regenerate.
10111
10112 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10113 * target.h (memory_breakpoint_from_pc): Update declaration.
10114 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10115
10116 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10117 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10118 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10119 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10120 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10121 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10122 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10123 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10124 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10125 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10126 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10127 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10128
10129 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10130 const pointer.
10131 * monitor.c (monitor_insert_breakpoint): Ditto.
10132 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10133
10134 * config/mcore/tm-mcore.h: Update copyright.
10135 * mem-break.c: Ditto.
10136 * xstormy16-tdep.c: Ditto.
10137
10138 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10139
10140 * p-exp.y: Add precedence rule for '^' token.
10141 This removes the shift/reduce conflicts.
10142 Remove the comment concerning these shift/reduce conflicts.
10143
10144 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10145
10146 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10147 (registers_powerpc_nofp): New register set for processors
10148 without floating point unit.
10149
10150 2002-04-18 David S. Miller <davem@redhat.com>
10151
10152 * MAINTAINERS: Add myself to write-after-approval.
10153
10154 2002-04-17 Michael Snyder <msnyder@redhat.com>
10155
10156 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10157
10158 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10159
10160 * rs6000-tdep.c (frame_initial_stack_address): Use
10161 frame_register_read to read the alloca_reg.
10162
10163 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10164
10165 * frame.c (find_saved_register): Find saved registers in the next
10166 not prev frame.
10167 Fix PR gdb/365.
10168
10169 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10170
10171 * gdbarch.sh (LANG): Set to ``c''.
10172
10173 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10174
10175 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10176
10177 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10178
10179 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10180 Update copyright.
10181
10182 * hpread.c (hpread_get_lntt): Add declaration.
10183 Also fix PR gdb/391.
10184
10185 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10186
10187 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10188 * aclocal.m4, configure: Re-generate.
10189 Fix PR gdb/391.
10190
10191 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10192
10193 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10194 instead of tm_print_insn.
10195
10196 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10197
10198 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10199
10200 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10201
10202 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10203 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10204 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10205
10206 2002-04-12 Don Howard <dhoward@redhat.com>
10207
10208 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10209 max_user_call_depth.
10210 (init_cmd_lists): Initialize the new value;
10211 * cli/cli-script.c (execute_user_command): Limit the call depth of
10212 user defined commands. This avoids a core-dump when user commands
10213 are infinitly recursive.
10214
10215 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10216
10217 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10218 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10219 from tdep struct instead of DEFAULT_LR_SAVE.
10220 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10221 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10222 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10223
10224 2002-04-12 Michael Snyder <msnyder@redhat.com>
10225
10226 * Remote.c: Spelling fix.
10227 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10228 If no symbol found for "sbrk", try "_sbrk".
10229 (make_output_phdrs): Use bfd_section_name.
10230 (gcore_copy_callback): Use bfd_section_name.
10231 * eval.c: Indentation fix-ups.
10232 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10233 in case it gets applied to an address that is already
10234 in the instruction space.
10235 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10236 * symfile.c: Fix indentation, long lines.
10237 * source.c: White space fix-up.
10238
10239 2002-04-12 Andrew Cagney <cagney@redhat.com>
10240
10241 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10242 * frame.c (frame_register_read): New function. Return non-zero on
10243 success.
10244 (read_relative_register_raw_bytes_for_frame): Delete.
10245 (read_relative_register_raw_bytes): Delete.
10246 * frame.h (frame_register_read): Declare.
10247 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10248 * sh-tdep.c: Ditto.
10249 * infcmd.c (do_registers_info): Ditto.
10250 * hppa-tdep.c: Ditto.
10251 * rs6000-tdep.c: Ditto.
10252 * h8500-tdep.c: Ditto.
10253 * mips-tdep.c: Ditto.
10254 * h8300-tdep.c: Ditto.
10255 * z8k-tdep.c: Ditto.
10256
10257 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10258
10259 From Jimi X <jimix@watson.ibm.com>:
10260 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10261 64-bit SysV ABI.
10262
10263 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10264
10265 From Jimi X <jimix@watson.ibm.com>:
10266 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10267 bfd info.
10268
10269 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10270
10271 From Jimi X <jimix@watson.ibm.com>:
10272 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10273 register sets for these processor variants.
10274
10275 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10276
10277 * regformats/reg-ppc.dat: Support FPSCR.
10278
10279 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10280
10281 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10282 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10283 Add fpscr as an invalid/unfetchable register.
10284 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10285 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10286 (fill_fpregset): Add support for register fpscr.
10287 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10288 (fill_gregset): Account for the fact that register ``mq'' might
10289 not exist.
10290 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10291 (registers_power): Add fpscr to register set at slot 71.
10292 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10293 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10294
10295 2002-04-11 Michael Snyder <msnyder@redhat.com>
10296
10297 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10298 * configure: Regenerate.
10299 * config.in: Regenerate.
10300 * acconfig.h: Add define for _SYSCALL32.
10301 * core-sol2.c: Remove #define _SYSCALL32.
10302 * solib-legacy.c: Remove #define _SYSCALL32.
10303
10304 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10305
10306 * stack.c (select_frame): Cleanup internal error message, do not
10307 use %p.
10308
10309 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10310
10311 * stack.c (select_frame): Check that selected_frame and the
10312 specified level are as expected.
10313 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10314 Update copyright.
10315 * frame.h (struct frame_info): Add field `level'. Update
10316 copyright.
10317 Work-in-progress PR gdb/464.
10318
10319 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10320
10321 * maint.c (maint_print_section_info): Rename print_section_info.
10322 (print_bfd_section_info, print_objfile_section_info): Update.
10323 * inferior.h (struct gdbarch): Add opaque declaration.
10324 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10325 * gdbarch.h: Regenerate.
10326
10327 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10328
10329 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10330 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10331 (kernel_u_size): Added.
10332 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10333 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10334
10335 2002-04-04 Jim Ingham <jingham@apple.com>
10336
10337 * valarith.c (find_size_for_pointer_math): New function, either returns
10338 the size for a pointer's target, returns 1 for void *, or errors for
10339 incomplete types.
10340 (value_add, value_sub): use find_size_for_pointer_math.
10341
10342 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10343
10344 * linux-low.c (linux_look_up_symbols): New hook.
10345 (linux_target_ops): Add linux_look_up_symbols.
10346 * remote-utils.c (decode_address): New function.
10347 (look_up_one_symbol): New function.
10348 * server.c (handle_query): Call target look_up_symbols hook.
10349 * server.h (look_up_one_symbol): Add prototype.
10350 * target.h (struct target_ops): Add look_up_symbols hook.
10351
10352 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10353
10354 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10355 override FP_REGNUM with frame->fp. Update copyright.
10356 * parse.c (num_std_regs, std_regs): Delete.
10357 (target_map_name_to_register): Do not search std_regs. Update
10358 function description.
10359 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10360 declarations. Update copyright.
10361 Fix PR gdb/251.
10362
10363 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10366 after the last symbol in a block.
10367
10368 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10369
10370 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10371 is non zero as a found symbol.
10372
10373 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10374
10375 * findvar.c: Include "builtin-regs.h".
10376 (value_of_register): Call value_of_builtin_reg when applicable.
10377 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10378 (target_map_name_to_register): Call
10379 builtin_reg_map_name_to_regnum.
10380 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10381 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10382 (builtin_regs_h): Define.
10383 (builtin-regs.o): New target.
10384 (findvar.o): Add $(builtin_regs_h).
10385 * builtin-regs.c, builtin-regs.h: New files.
10386 * std-regs.c: New file.
10387 Partial fix for PR gdb/251.
10388
10389 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10390
10391 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10392 it's no longer required.
10393
10394 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10395
10396 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10397
10398 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10399
10400 From Jimi X <jimix@watson.ibm.com>:
10401 * rs6000-tdep.c (rs6000_software_single_step): Use
10402 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10403 and size. Use target_insert_breakpoint() and
10404 target_remove_breakpoint() to insert and remove breakpoints
10405 instead of explicit memory reads and writes.
10406
10407 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10408
10409 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10410 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10411 ELF_OBJECT_FORMAT ifdef.
10412
10413 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10414
10415 From Jimi X <jimix@watson.ibm.com>:
10416 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10417
10418 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10419
10420 From Jimi X <jimix@watson.ibm.com>:
10421 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10422 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10423
10424 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10425
10426 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10427 s/asprintf/xasprintf/.
10428 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10429
10430 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10431
10432 I believe Jeff Law denies responsability for this one:
10433 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10434 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10435 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10436 Work-around for PR gdb/366.
10437
10438 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10439
10440 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10441 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10442 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10443
10444 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10445
10446 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10447 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10448 information.
10449
10450 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10451
10452 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10453 maintainer.
10454
10455 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10456
10457 * README (Reporting Bugs in GDB): Document the bug web page as the
10458 prefered way of submitting bugs.
10459 Fix PR gdb/402.
10460
10461 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10462
10463 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10464 -1. Update comment.
10465 * gdbarch.h, gdbarch.c: Re-generate.
10466
10467 2002-04-07 Andreas Schwab <schwab@suse.de>
10468
10469 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10470 buffer to regcache_collect.
10471
10472 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10473
10474 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10475 * gdbarch.c, gdbarch.h: Re-generate.
10476
10477 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10478
10479 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10480 declaration. Fix -Werror.
10481
10482 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10485 * gdbarch.c: Regenerate.
10486
10487 2002-04-05 Michael Snyder <msnyder@redhat.com>
10488
10489 * breakpoint.c (clear_command): Rewrite middle section to
10490 combine two loops with identical control conditions.
10491 Add a cleanup to eliminate a memory leak.
10492 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10493
10494 2002-04-05 H.J. Lu (hjl@gnu.org)
10495
10496 * solib-svr4.c (bkpt_names): Add "__start".
10497
10498 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10499
10500 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10501 as test for 64 bit target.
10502
10503 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10504
10505 * h8500-tdep.c (h8500_write_fp): Delete function.
10506 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10507 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10508 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10510 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10511 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10512 (s390_write_fp):
10513 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10514 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10515 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10516 (d10v_write_fp): Delete function.
10517 * inferior.h (write_fp, generic_target_write_fp): Delete
10518 declarations.
10519 * regcache.c (generic_target_write_fp): Delete function.
10520 (write_fp): Delete function.
10521 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10522 * gdbarch.h, gdbarch.c: Regenerate.
10523 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10524 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10525 (sparc64_write_fp): Delete declaration.
10526 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10527 (h8500_write_fp): Delete declaration.
10528
10529 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10530
10531 * sparc-tdep.c (sparc64_write_fp): Delete.
10532 (sparc_push_dummy_frame): Replace write_fp call with code to store
10533 the FP directly.
10534 (sparc_gdbarch_init): Do not initialize write_fp.
10535
10536 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10537
10538 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10539 clause.
10540
10541 2002-03-29 Jim Blandy <jimb@redhat.com>
10542
10543 * stack.c (get_selected_block): Add new argument `addr_in_block',
10544 used to return the exact code address we used to select the block,
10545 not just the block.
10546 * blockframe.c (get_frame_block, get_current_block): Same.
10547 * frame.h (get_frame_block, get_current_block,
10548 get_selected_block): Update declarations.
10549 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10550 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10551
10552 2002-04-05 Michael Snyder <msnyder@redhat.com>
10553
10554 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10555 warning message.
10556
10557 2002-04-05 J. Brobecker <brobecker@gnat.com>
10558
10559 * utils.c (xfullpath): New function.
10560 * defs.h (xfullpath): Add declaration.
10561 * source.c (openp): Use xfullpath in place of gdb_realpath to
10562 avoid resolving the basename part of filenames when the
10563 associated file is a symbolic link. This fixes a potential
10564 inconsistency between the filenames known to GDB and the
10565 filenames it prints in the annotations.
10566 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10567 to be able to match a filename with either the real filename, or
10568 the name of any symbolic link to this file.
10569 (lookup_partial_symtab): Ditto.
10570
10571 2002-04-04 Michael Snyder <msnyder@redhat.com>
10572
10573 * breakpoint.c: Add support for hardware breakpoints in overlays.
10574 (overlay_events_enabled): New state variable.
10575 (insert_breakpoints): Use overlay_events_enabled to decide
10576 whether to attempt to set a breakpoint at the overlay load addr.
10577 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10578 (remove_breakpoint): Use overlay_events_enabled to decide
10579 whether breakpoints need to be removed from overlay load addr.
10580 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10581 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10582 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10583 disable_overlay_breakpoints): Update overlay_events_enabled.
10584
10585 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10586
10587 * dwarf2read.c (struct function_range): New.
10588 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10589 (check_cu_functions): New.
10590 (read_file_scope): Initialize global function lists.
10591 Call dwarf_decode_line after processing children.
10592 (read_func_scope): Add to global function list.
10593 (dwarf_decode_lines): Call check_cu_functions everywhere
10594 record_line is called. Call record_line with a linenumber
10595 of 0 to mark sequence ends.
10596
10597 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10598
10599 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10600 change sync with glibc.
10601
10602 2002-04-03 Jim Blandy <jimb@redhat.com>
10603
10604 * configure.in: Call AC_C_INLINE.
10605 * configure: Regenerated.
10606
10607 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10610 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10611
10612 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10613
10614 * NEWS: Mention gcore support on FreeBSD/i386.
10615
10616 * fbsd-proc.c: New file.
10617 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10618 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10619
10620 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10621 while statement.
10622
10623 2002-03-29 Jim Blandy <jimb@redhat.com>
10624
10625 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10626 unescaped newlines in string literals, but newer ones don't. So
10627 escape them.
10628
10629 2002-03-26 Michael Snyder <msnyder@redhat.com>
10630 Andrew Cagney <cagney@redhat.com>
10631
10632 * cli/cli-dump.c: New file. Dump memory to file,
10633 restore file to memory.
10634 * cli/cli-dump.h: New file.
10635 * Makefile.in: Add rules, dependencies for cli-dump.o.
10636 * NEWS: Mention new commands.
10637
10638 2002-03-28 Michael Snyder <msnyder@redhat.com>
10639
10640 * symfile.c (symbol_file_add): Move test for null symbols to later.
10641
10642 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10643
10644 From veksler at il.ibm.com:
10645 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10646 the xstrduped original path.
10647 Fix PR gdb/417.
10648
10649 2002-03-27 Michael Snyder <msnyder@redhat.com>
10650
10651 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10652 * infcmd.c (_initialize_infcmd): Ditto.
10653 * language.c (_initialize_language): Ditto.
10654 * symfile.c (_initialize_symfile): Ditto.
10655 * top.c (_init_main): Ditto.
10656 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10657
10658 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10659
10660 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10661 vector registers handling.
10662 (skip_prologue): Handle new AltiVec instructions. Fill in new
10663 fields of frame data.
10664 (frame_get_saved_regs): Fill in information for AltiVec registers.
10665
10666 2002-03-27 Jim Blandy <jimb@redhat.com>
10667
10668 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10669 a function; leave this macro here to invoke that function.
10670 (symbol_init_mangled_name): Declaration for that function.
10671 * symtab.c (symbol_init_mangled_name): New function.
10672
10673 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10674
10675 * valarith.c: Replace strerror with safe_strerror.
10676 * tracepoint.c: Ditto.
10677 * lin-lwp.c: Ditto.
10678 * go32-nat.c: Ditto.
10679 * inflow.c: Ditto.
10680 * gnu-nat.c: Ditto.
10681
10682 2002-03-27 Andreas Schwab <schwab@suse.de>
10683
10684 * event-top.c (command_line_handler): Remove useless if.
10685
10686 2002-03-27 Andreas Jaeger <aj@suse.de>
10687
10688 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10689 comment.
10690
10691 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10692
10693 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10694 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10695 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10696 (x86_64_linux_dr_get_status, supply_gregset),
10697 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10698 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10699 (x86_64_register_info_table): Add.
10700 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10701 (x86_64_register_raw_size, x86_64_register_virtual_type),
10702 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10703 general x86_64_register_info_table.
10704 (i386_gdbarch_init): gdbarch_register_bytes is now set
10705 dynamicaly during initialization.
10706 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10707 * gdbserver/linux-x86-64-low.c: Ditto.
10708
10709 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10710
10711 * gdbserver/server.c (main): Call target_signal_to_host_p
10712 and target_signal_to_host on signals received from the remote.
10713 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10714 target_signal_from_host on signals sent to the remote.
10715 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10716 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10717
10718 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10719
10720 * signals/signals.c: Include "server.h" in gdbserver build.
10721 (target_signal_from_name): Don't use STREQ.
10722 (_initialize_signals): Likewise. Don't include function in
10723 gdbserver build.
10724
10725 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * signals.c: Moved to...
10728 * signals/signals.c: Here.
10729 * Makefile (signals.o): Update.
10730
10731 2002-03-26 Jeff Law (law@redhat.com)
10732
10733 * somread.c (som_symtab_read): Remove some commented out code and
10734 updated related comments. Do not set the minimal symbol table to
10735 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10736 in a dynamic executable.
10737 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10738 where we are unable to find the minimal symbol for the given
10739 PC value.
10740
10741 2002-03-25 Jeff Law (law@redhat.com)
10742
10743 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10744
10745 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10746
10747 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10748
10749 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10750
10751 * command.h: Update copyright.
10752 (struct cmd_list_element): Replace definition with opaque
10753 declaration.
10754 (enum cmd_types): Document that it will eventually be moved to
10755 cli/cli-decode.h
10756 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10757 (MALLOCED_REPLACEMENT): Delete macro.
10758 * Makefile.in (cli_decode_h): Add $(command_h).
10759 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10760 * top.c: Include "cli/cli-decode.h".
10761 * completer.c: Include "cli/cli-decode.h".
10762 * maint.c: Include "cli/cli-decode.h".
10763 * cli/cli-decode.h: Include "command.h".
10764 (enum command_class): Delete.
10765 (enum cmd_types): Comment out.
10766 (enum cmd_auto_boolean): Delete.
10767 (enum var_types): Delete.
10768
10769 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10770
10771 * cli/cli-decode.c: Include "gdb_assert.h".
10772 (add_set_or_show_cmd): New static function.
10773 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10774 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10775 all fields, such as func, from the set command.
10776
10777 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10778
10779 * MAINTAINERS (sh-elf): Change warning flag to -w.
10780
10781 2002-03-23 Andrew Cagney <cagney@redhat.com>
10782
10783 * defs.h (error): Add printf format attribute.
10784 * thread-db.c (thread_from_lwp): Fix error format string.
10785 * stack.c (parse_frame_specification): Ditto.
10786 * cli/cli-decode.c (undef_cmd_error): Ditto.
10787 * scm-lang.c (scm_lookup_name): Ditto.
10788 * tracepoint.c (trace_error): Ditto.
10789 * remote-utils.c (usage): Ditto.
10790 * remote.c (compare_sections_command): Ditto.
10791 Fix PR gdb/328.
10792
10793 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10794
10795 * gdbtypes.c (append_composite_type_field): New function.
10796 (init_composite_type): New function.
10797 * gdbtypes.h (append_composite_type_field): Declare.
10798 (init_composite_type): Ditto.
10799
10800 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10801
10802 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10803 function.
10804 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10805 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10806 structure returning convention for SYSV ABI case, but not
10807 for GNU/Linux, FreeBSD, or NetBSD.
10808
10809 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10810
10811 * symtab.h (lookup_block_symbol): Add mangled_name argument
10812 to prototype.
10813
10814 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10815 with new mangled_name argument.
10816 * linespec.c (decode_line_1): Likewise.
10817 * valops (value_of_this): Likewise.
10818 * symtab.c (lookup_transparent_type): Likewise.
10819 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10820 (lookup_symbol): If we are given a mangled name, pass it down
10821 to lookup_symbol_aux.
10822 (lookup_block_symbol): If we are given a mangled name to check
10823 against, only return symbols which match it.
10824
10825 2002-03-22 Christopher Faylor <cgf@redhat.com>
10826
10827 * win32-nat.c (child_create_inferior): Check for proper shell to use
10828 here, in case the user changes it on the fly.
10829 (_initialize_inftarg): Remove shell path considerations.
10830
10831 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10832
10833 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10834 for gdbarch_max_register_raw_size and max_register_virtual_size.
10835 Adjust copyright year.
10836
10837 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10840 in a function to cover the entire beginning of the function
10841 as well if it does not already.
10842
10843 2002-03-21 Tom Rix <trix@redhat.com>
10844
10845 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10846 (rs6000_ptrace64): Renamed from ptrace64.
10847
10848 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10849
10850 * gdbserver/remote-utils.c (remote_open): Don't call
10851 getprotobyname, we're all using TCP here so just use
10852 IPPROTO_TCP.
10853 * gdbserver/gdbreplay.c (remote_open): Ditto.
10854
10855 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10856
10857 * regcache.c (_initialize_regcache): No need to call
10858 build_regcache() at this time; it gets called whenever
10859 the gdbarch changes.
10860
10861 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10862
10863 * sparc-nat.c: Include sys/param.h where possible.
10864
10865 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10866
10867 Fix PR gdb/422.
10868 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10869 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10870 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10871 complex types.
10872 * stabsread.c (rs6000_builtin_type): Likewise.
10873 (read_sun_floating_type): Likewise.
10874
10875 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10876
10877 * stabsread.c (read_member_functions): Remove skip code for duplicate
10878 constructor/destructor methods. Use standard parsing for these
10879 methods and just do not chain them to the list of methods after
10880 parsing.
10881
10882 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10883
10884 * coffread.c: Remove redundant static declarations. Replace
10885 occurrences of `PTR' with `void *'.
10886 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10887 * top.h (quit_cover): Likewise.
10888 * defs.h (catch_errors): Likewise.
10889
10890 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10891
10892 * defs.h (XMALLOC): Define.
10893 * gdb-events.sh (XMALLOC): Delete macro.
10894 * gdb-events.c, gdb-events.h: Regenerate.
10895 * gdbarch.sh (XMALLOC): Delete macro.
10896 * gdbarch.c: Regenerate.
10897 * serial.c (XMALLOC): Delete macro.
10898 * ui-file.c (XMALLOC): Ditto.
10899 * ser-unix.h (XMALLOC): Ditto.
10900 * sh-tdep.c (XMALLOC): Ditto.
10901 * ui-out.c (XMALLOC): Ditto.
10902 * utils.c (XMALLOC): Ditto.
10903 * i386-tdep.c (XMALLOC): Ditto.
10904 * gdb-events.c (XMALLOC): Ditto.
10905 * d10v-tdep.c (XMALLOC): Ditto.
10906 * cli-out.c (XMALLOC): Ditto.
10907
10908 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10909 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10910 * ui-file.c, ui-out.c: Ditto.
10911
10912 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10913
10914 * command.h (struct cmd_list_element): Add field context.
10915 (set_cmd_context, get_cmd_context): Declare.
10916 * cli/cli-decode.h: Ditto.
10917 * cli/cli-decode.c (get_cmd_context): New function.
10918 (set_cmd_context): New function.
10919 (add_cmd): Initialize context.
10920 Part of fixing PR gdb/145 and PR gdb/146.
10921
10922 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10923
10924 * cli/cli-decode.c (cmd_type): New function.
10925 * command.h (cmd_type): Declare.
10926 * infrun.c (set_schedlock_func): Call function cmd_type.
10927 * kod.c (kod_set_os): Call cmd_type.
10928 * cris-tdep.c (cris_version_update): Use function cmd_type.
10929 (cris_mode_update, cris_abi_update): Ditto.
10930
10931 * command.h: (execute_cmd_post_hook): Declare.
10932 (execute_cmd_pre_hook): Declare.
10933 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10934 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10935 functions. Execute pre/post hook while ensuring that afterwords
10936 hook_in is cleared.
10937 * top.c (execute_command): Use execute_cmd_post_hook, and
10938 execute_cmd_pre_hook to execute pre/post commands.
10939 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10940 hook_stop_stub.
10941 (hook_stop_stub): Call execute_cmd_pre_hook.
10942
10943 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10944
10945 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10946 set'' and this leads to a core dump. Move xstrdup of
10947 operating_system to after check that it is not NULL.
10948
10949 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10950
10951 * kod.c (kod_set_os): Remove unnecessary check that
10952 ``command->type'' is set_cmd.
10953
10954 * valprint.c (set_input_radix): Use input_radix.
10955 (set_output_radix): Use output_radix.
10956 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10957 isn't reverted.
10958
10959 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10960
10961 * value.h (struct value): Delete field ``substring_addr''. Change
10962 aligner fields to force_doublest_align, force_longest_align,
10963 force_core_addr_align and force_pointer_aligh.
10964
10965 * value.h (struct value): Fix typo in above change.
10966
10967 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10968
10969 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10970 to fix internal_error from ``maintenance print architecture''.
10971
10972 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10973
10974 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10975 for gcc versions after gcc-2.8.1.
10976
10977 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10978
10979 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10980 for method resolution. Restore adjustment of ``this'' pointer after
10981 calling value_struct_elt, which was accidentally removed during the
10982 HP merge.
10983
10984 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10985
10986 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10987 value_of_register.
10988 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10989 get_saved_register.
10990 * value.h (value_of_register): Update.
10991
10992 2002-03-14 Richard Henderson <rth@redhat.com>
10993
10994 * configure.in: Detect declaration for canonicalize_file_name.
10995 * utils.c (canonicalize_file_name): Declare, if needed.
10996 (gdb_realpath): Prefer realpath if available and usable.
10997 * config.in, configure: Rebuild.
10998
10999 2002-03-14 Richard Henderson <rth@redhat.com>
11000
11001 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11002 a constant array bound.
11003
11004 * MAINTAINERS: Add myself to write-after-approval.
11005
11006 2002-03-14 Michael Snyder <msnyder@redhat.com>
11007
11008 * symfile.c (syms_from_objfile): Return immediately if no syms.
11009 (symbol_file_add): Return immediately if no syms.
11010 (find_sym_fns): Return immediately if no syms.
11011
11012 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11013
11014 * gdbserver/remote-util.c (remote_open): Print remote-side's
11015 IP address when remote debugging over the network.
11016
11017 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11018
11019 * config/sparc/fbsd.mh: Fix copyright.
11020 * config/sparc/fbsd.mt: Likewise.
11021
11022 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11023
11024 * MAINTAINERS: Fix typo in name of gdb warnings option.
11025 (x86-64): Fix formating so that this can be parsed by awk.
11026
11027 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11028
11029 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11030 * defs.h: Include "gdb/signals.h".
11031 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11032
11033 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11034
11035 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11036 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11037 from x86-64-tdep.h
11038
11039 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11040 Don Howard <dhoward@redhat.com>
11041
11042 * mips-tdep.c (ST0_FR): Define.
11043 (mips2_fp_compat): New function, temporarily disabled.
11044 (mips_read_fp_register_single): New function.
11045 (mips_read_fp_register_double): New function.
11046 (mips_print_register): Use them.
11047 (do_fp_register_row): Likewise.
11048
11049 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11050
11051 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11052 approval''.
11053
11054 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11055
11056 * stabsread.c (read_member_functions): Fix is_stub test for
11057 static member functions, improve comment.
11058
11059 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11060
11061 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11062 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11063 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11064 commands that set boolean values.
11065 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11066 (arm_rdi_resume): Always initialize PC.
11067 (arm_rdi_open): Don't use rslt as a boolean.
11068 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11069 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11070 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11071 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11072
11073 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11074
11075 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11076 * configure: Rebuilt.
11077
11078 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11079
11080 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11081 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11082
11083 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11084
11085 * cli/cli-decode.c (set_cmd_completer): New function.
11086 * command.h (set_cmd_completer): Declare.
11087 * cli/cli-decode.h (set_cmd_completer): Ditto.
11088
11089 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11090 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11091 * win32-nat.c (_initialize_inftarg): Ditto.
11092 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11093 * proc-api.c (_initialize_proc_api): Ditto.
11094 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11095 * source.c (_initialize_source): Ditto.
11096 * exec.c (_initialize_exec): Ditto.
11097 * solib.c (_initialize_solib): Ditto.
11098 * top.c (init_main): Ditto.
11099 * tracepoint.c (_initialize_tracepoint): Ditto.
11100 * symfile.c (_initialize_symfile): Ditto.
11101 * printcmd.c (_initialize_printcmd): Ditto.
11102 * infcmd.c (_initialize_infcmd): Ditto.
11103 * corefile.c (_initialize_core): Ditto.
11104
11105 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11106
11107 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11108
11109 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11110
11111 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11112
11113 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11114
11115 * NEWS: Update headings, 5.2 has branched.
11116
11117 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11118
11119 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11120 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11121 (register_addr, REGISTER_RAW_SIZE): Likewise.
11122 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11123 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11124
11125 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11126
11127 * MAINTAINERS (x86-64): Add myself.
11128 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11129 changed value_ptr -> struct value *
11130
11131 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11132
11133 * configure.host (sparc64-*-freebsd): Add.
11134 * configure.tgt: Likewise.
11135 * config/sparc/fbsd.mh: New file.
11136 * config/sparc/fbsd.mt: Likewise.
11137 * config/sparc/nm-fbsd.h: Likewise.
11138 * config/sparc/tm-fbsd.h: Likewise.
11139
11140 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11141
11142 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11143 regformats/reg-s390x.dat.
11144
11145 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11146
11147 * utils.c: Add FIXME explaining true/false problem.
11148
11149 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11150
11151 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11152
11153 2002-02-28 Michael Chastain <mec@shout.net>
11154
11155 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11156
11157 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11158
11159 * gdbserver/linux-s390-low.c: New file.
11160 * regformats/reg-s390.dat: New file.
11161 * regformats/reg-s390x.dat: New file.
11162 * gdbserver/configure.srv: Add S/390.
11163 * gdbserver/Makefile.in: Add S/390.
11164 * configure.tgt: Enable gdbserver for S/390.
11165
11166 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11167
11168 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11169 first line of the doc string for "info dos", except at the end of
11170 the sentence, since the short help stops at the first period.
11171
11172 2002-02-28 Jason Merrill <jason@redhat.com>
11173
11174 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11175
11176 2002-02-27 Fred Fish <fnf@redhat.com>
11177
11178 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11179 comment (dumy -> dummy).
11180
11181 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11182
11183 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11184
11185 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11186
11187 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11188
11189 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11190
11191 * gdbserver/acconfig.h: New file.
11192 * gdbserver/i387-fp.c: New file.
11193 * gdbserver/i387-fp.h: New file.
11194 * gdbserver/linux-x86-64.c: New file.
11195 * regformats/reg-x86-64.dat: New file.
11196 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11197 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11198 * gdbserver/configure.in: Add support for regsets.
11199 * gdbserver/config.in: Regenerate.
11200 * gdbserver/configure: Regenerate.
11201 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11202 * gdbserver/linux-low.h: New file.
11203 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11204 for regsets.
11205 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11206 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11207 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11208 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11209 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11210 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11211 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11212 "i387-fp.h". Add PTRACE_GETREGS and friends.
11213 * gdbserver/regcache.c (supply_register): New function.
11214 (supply_register_by_name): New function.
11215 (collect_register): New function.
11216 (collect_register_by_name): New function.
11217
11218 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11219
11220 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11221 (config.status): Add configure.srv dependency.
11222 (server_h): Add config.h dependency.
11223
11224 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11225
11226 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11227 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11228 * gdbserver/configure.srv: Change i386-*-linux* to use
11229 reg-i386-linux.o.
11230
11231 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11232
11233 * x86-64-tdep.c: Re-indent. Update copyright date.
11234
11235 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11236
11237 From Michal Ludvig <mludvig@suse.cz>:
11238 * x86-64-tdep.c (value.h): Delete.
11239 (gdb_assert.h): Include.
11240 (x86_64_register_convert_to_virtual,
11241 x86_64_register_convert_to_raw ): Add check which lets only
11242 floating-point values to be converted.
11243 (value_push): Delete.
11244 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11245 (i386_gdbarch_init): Number of register_bytes fixed.
11246
11247 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11248
11249 * MAINTAINERS: Add x86-64 target.
11250
11251 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11252
11253 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11254 * osfsolib.c (solib_map_sections): Ditto.
11255 * irix5-nat.c (solib_map_sections): Ditto.
11256 * corelow.c (gdb_check_format): Ditto.
11257 * symfile.c (symfile_bfd_open): Ditto.
11258 * solib.c (solib_map_sections): Ditto.
11259 Fix PR gdb/354.
11260
11261 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11262
11263 * remote.c (_initialize_remote): By default, disable ``e'' and
11264 ``E'' step out-of-range packets.
11265
11266 2002-02-26 Andreas Schwab <schwab@suse.de>
11267
11268 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11269 m68k_linux_frame_saved_pc.
11270 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11271 in_sigtramp.
11272 (SIGCONTEXT_PC_OFFSET): Remove.
11273 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11274 m68k_linux_sigtramp_saved_pc): New functions.
11275 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11276 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11277 (UCONTEXT_PC_OFFSET): Define.
11278 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11279 non-RT and RT signal trampolines.
11280
11281 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11282
11283 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11284 (TARGET_NBPG, STACK_END_ADDR): Delete
11285 (VARIABLES_INSIDE_BLOCK): Delete.
11286
11287 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11288
11289 * utils.c (perror_with_name): Make string parameter constant.
11290 (print_sys_errmsg): Ditto.
11291 (query): Ditto.
11292 * defs.h (perror_with_name): Update.
11293 (print_sys_errmsg): Update.
11294 (query): Update.
11295
11296 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11297
11298 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11299 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11300
11301 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11302
11303 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11304 if it already matches the current architecture from the exec file.
11305 Include arch-utils.h for gdbarch_info_init prototype.
11306 * Makefile.in (rs6000-nat.o): Update dependencies.
11307
11308 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11309
11310 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11311 list of exported variables.
11312
11313 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11314
11315 * gdbserver/configure.srv: New file.
11316 * gdbserver/configure.in: Use configure.srv instead
11317 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11318 from it.
11319 * gdbserver/configure: Regenerated.
11320 * gdbserver/terminal.h: New file.
11321 * gdbserver/Makefile.in: Update for configure changes. Remove
11322 more unneeded include paths.
11323
11324 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11325
11326 From wiz at danbala:
11327 * config/sparc/tm-sp64.h: Fix grammar and typos.
11328 Fix PR gdb/287.
11329
11330 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11331
11332 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11333 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11334 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11335 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11336 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11337 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11338 * s390-tdep.c: Ditto.
11339 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11340 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11341 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11342 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11343 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11344 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11345 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11346 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11347 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11348 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11349 Fix PR gdb/378.
11350
11351 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11352
11353 * lin-thread.c: Delete file.
11354 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11355 to gdb_proc_service.h.
11356 * configure: Re-generate.
11357
11358 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11359 * serial.c (serial_open): Delete check for "ocd".
11360 Fix PR gdb/349.
11361
11362 * Makefile.in (linux-thread.o): Delete target.
11363 * linux-thread.c: Delete file.
11364
11365 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11366 renamed SH files to be consistent.
11367
11368 * symtab.c (sort_search_symbols): Use xfree.
11369
11370 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11371
11372 * arm-linux-tdep.c (arm_linux_init_abi): Register
11373 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11374 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11375 definition with undef, since we don't want the sysvr4 definition.
11376 (SKIP_TRAMPOLINE_CODE): Likewise.
11377
11378 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11379
11380 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11381
11382 * configure.in: (AC_CHECK_FUNCS) Added test for
11383 canonicalize_file_name Regenerated.
11384 * config.in, configure: Regenerated.
11385 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11386 defined use canonicalize_file_name.
11387
11388 2002-02-23 Michael Chastain <mec@shout.net>
11389
11390 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11391
11392 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11393
11394 * README: Remove references to cygnus.com.
11395 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11396 dot com'' form. Remove references to cygnus.com and sourceware.
11397
11398 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11399
11400 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11401 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11402 1003.1-2001 no longer allows "head -1".
11403 * gdb/Makefile.in (version.c): Likewise.
11404 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11405 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11406 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11407
11408 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11409
11410 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11411 * command.h (cmd_cfunc_eq): Declare.
11412 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11413
11414 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11415 ``struct cmd_list_element *''.
11416 * cli/cli-cmds.c (is_complete_command): Update. Use
11417 cmd_cfunc_eq.
11418 * top.c (execute_command): Pass the command to
11419 is_complete_command.
11420 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11421
11422 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11423
11424 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11425 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11426 architecture defines.
11427 * s390-tdep.c (s390_gdbarch_init): Likewise.
11428
11429 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11430
11431 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11432 (arm_linux_push_arguments): Likewise.
11433 (arm_linux_init_abi): Register them. Also register linux-specific
11434 call_dummy_words.
11435 (find_minsym_and_objfile): Use strcmp, not STREQ.
11436 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11437 (arm_linux_call_dummy_words): Delete declaration.
11438 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11439 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11440 declarations.
11441 (LOWEST_PC): Delete.
11442
11443 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11444
11445 * maint.c (print_section_info): Do not prepend `0x' to filepos
11446 output, it will be handled by local_hex_string_custom.
11447
11448 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11449
11450 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11451 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11452 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11453
11454 2002-02-22 Jim Blandy <jimb@redhat.com>
11455
11456 Indicate that the bcache functions don't change the strings
11457 they're passed.
11458 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11459 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11460
11461 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11462
11463 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11464
11465 2002-02-21 Christopher Faylor <cgf@redhat.com>
11466
11467 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11468 find the complete path to a loaded DLL.
11469
11470 2002-02-21 Fred Fish <fnf@redhat.com>
11471
11472 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11473 that marks the end of the range of a function, enter a line number
11474 entry that has a line number of zero and a PC offset that matches
11475 the end of the function. This starts a range of PC's for which no
11476 line number information is known.
11477 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11478 PC's for which no line number info is found (line number is zero)
11479 then we didn't find any valid line information.
11480 * symtab.h: Document use of zero line number entry.
11481
11482 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11483
11484 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11485 (have_ptrace_getvrregs): Define for run time checks.
11486 (gdb_vrregset_t): New type for Altivec register handling.
11487 (fetch_register, store_register): Fetch/store altivec register
11488 when needed.
11489 (fetch_altivec_register, store_altivec_register): New functions.
11490 (supply_vrregset, fill_vrregset): New functions.
11491 (fetch_altivec_registers, store_altivec_registers): New functions.
11492 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11493 registers as well.
11494
11495 2002-02-21 Jiri Smid <smid@suse.cz>
11496
11497 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11498
11499 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11500
11501 * Makefile.in (armnbsd-nat.o): Update dependencies.
11502 * armnbsd-nat.c (supply_gregset): New function. Common code to
11503 supply the integer register set.
11504 (supply_fparegset): New function. Similar for FPA registers.
11505 (fetch_regs, fetch_fp_regs): Use them.
11506 (fetch_core_registers): Likewise.
11507 (fetch_elfcore_registers): New function.
11508 (arm_netbsd_elfcore_fns): New core-file type specification.
11509 (_initialize_arm_netbsd_nat): Register it.
11510
11511 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11512
11513 * armnbsd-nat.c: Include gdbcore.h.
11514 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11515 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11516 'void' to declaration, to shut up ARI.
11517 (fetch_core_registers): Make static. Rewrite using supply_register.
11518 (arm_netbsd_core_fns): New core-file type specification.
11519 (_initialize_arm_netbsd_nat): New function.
11520
11521 2002-02-21 Christopher Faylor <cgf@redhat.com>
11522
11523 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11524 value.
11525
11526 2002-02-20 Christopher Faylor <cgf@redhat.com>
11527
11528 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11529 fails.
11530
11531 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11532
11533 * jv-exp.y (parse_number): Change type of implicit longs
11534 to builtin_type_uint64.
11535
11536 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11537
11538 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11539 to be an integer instead of a `union wait'.
11540
11541 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11542
11543 * mips-linux-nat.c: Call the operating system GNU/Linux.
11544 * mips-linux-tdep.c: Likewise.
11545 * mips-tdep.c: Likewise.
11546
11547 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11548
11549 Fix PR gdb/265.
11550 * jv-exp.y (parse_number): Handle 64-bit integers.
11551
11552 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11553
11554 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11555 AC_STDC_HEADERS to AC_HEADER_STDC.
11556 * gdbserver/configure: Regenerated.
11557
11558 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11559
11560 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11561 is defined.
11562 * sparc-tdep.c (get_longjmp_target): Likewise.
11563
11564 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11565
11566 * News: Add news about ARM and Multi-arch. Mention the new target
11567 arm*-*-netbsd*.
11568
11569 2002-02-19 Jim Blandy <jimb@redhat.com>
11570
11571 * stabsread.c (error_type_complaint): Improve error message.
11572
11573 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11574
11575 * gdbserver/README: Update documentation.
11576 * gdbserver/configure.in: Update configury to match documentation.
11577 * gdbserver/Makefile.in: Likewise.
11578 * gdbserver/configure: Regenerated.
11579 * gdbserver/aclocal.m4: New file, generated by aclocal.
11580 * gdbserver/config.in: New file, generated by autoheader.
11581
11582 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11583
11584 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11585 armnbsd-nat.c.
11586
11587 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11588
11589 * arm-tdep.h (enum arm_float_model): New enum.
11590 (struct gdbarch_tdep): Add fp_model.
11591 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11592 up floating-point conversions until we know the floating-point model
11593 in use by the inferior. Don't complain about being unable to
11594 determine the ABI of the inferior when we don't have one.
11595 (arm_extract_return_value): Support different floating-point models.
11596 (arm_store_return_value): Likewise.
11597 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11598 ARM_FLOAT_SOFT.
11599 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11600
11601 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11602
11603 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11604 of ``current_gdbarch''.
11605
11606 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11607
11608 * armnbsd-nat.c : ANSIfy all function declarations.
11609 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11610 (fetch_inferior_registers): Re-implement in terms of above.
11611 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11612 (store_inferior_registers): Re-implement in terms of above.
11613
11614 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11615
11616 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11617 kernel.
11618 * arm-linux-tdep.c: Likewise.
11619 * config/arm/tm-linux.h: Likewise.
11620
11621 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11622
11623 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11624 * config/arm/nbsd.mt (TM_FILE): Delete.
11625 * config/arm/tm-nbsd.h: Delete.
11626
11627 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11628
11629 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11630 Initialize CALL_DUMMY_LENGTH.
11631
11632 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11633
11634 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11635 function.
11636 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11637 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11638 defines one thing and that is incorrect for this port.
11639 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11640
11641 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11642
11643 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11644
11645 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11646
11647 * win32-nat.c (display_selector): New function. Displays information
11648 about the information returned by GetThreadSelectorEntry API function.
11649 (display_selectors): New function. Displays the infomation of
11650 the selector given as argument, or of CS, DS ans FS selectors
11651 if no argument is given.
11652 ( _initialize_inftarg): Add "w32" as info prefix command.
11653 Add "info w32 selector" as command calling display_selectors.
11654
11655 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11656
11657 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11658 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11659 if not defined.
11660
11661 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11662
11663 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11664
11665 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11666
11667 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11668 (arm_fix_call_dummy): Call it.
11669 (arm_call_dummy_breakpoint_offset): Delete.
11670 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11671 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11672
11673 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11674
11675 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11676 Default to func_frame_chain_valid.
11677 * gdbarch.h, gdbarch.c: Re-generate.
11678 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11679
11680 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11681
11682 * ppc-linux-nat.c: Update copyright.
11683 (fetch_register, store_register): Add tid parameter, don't compute
11684 tid here.
11685 (fetch_ppc_registers, store_ppc_registers): Add tid
11686 parameter. Pass it along to callees.
11687 (fetch_inferior_registers, store_inferior_registers): Compute tid
11688 here, and pass it to calleed functions.
11689 (fill_gregset, supply_fpregset): Clean up formatting.
11690
11691 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11692
11693 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11694 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11695
11696 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11697
11698 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11699 * gdbarch.c gdbarch.h: Regenerate.
11700 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11701 function.
11702 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11703 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11704 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11705
11706 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11707 * arm-tdep.c (arm_get_longjmp_target): New function.
11708 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11709 this to a positive value register arm_get_longjmp_target as the
11710 longjmp handler.
11711 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11712 (arm_linux_init_abi): Set up longjmp description in tdep.
11713 * armnbsd-nat.c (get_longjmp_target): Delete.
11714 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11715 description in tdep.
11716 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11717 (get_longjmp_target): Delete declaration.
11718 (GET_LONGJMP_TARGET): Delete.
11719 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11720 (GET_LONGJMP_TARGET): Delete.
11721
11722 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11723
11724 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11725 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11726 of ``current_gdbarch''.
11727
11728 2002-02-17 Tom Tromey <tromey@redhat.com>
11729
11730 * cli/cli-cmds.c (compare_strings): New function.
11731 (complete_command): Only print each unique item once.
11732 * completer.h (complete_line): Declare.
11733 * completer.c (complete_line): New function.
11734 (line_completion_function): Use it.
11735
11736 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11737
11738 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11739 * gdbarch.h, gdbarch.c: Re-generate.
11740
11741 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11744
11745 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11746
11747 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11748 * valops.c (value_arg_coerce): Don't take the address of a reference
11749 to convert an argument to a reference.
11750
11751 2002-02-15 Christopher Faylor <cgf@redhat.com>
11752
11753 * win32-nat.c (get_image_name): New function.
11754 (handle_load_dll): Use get_image_name function.
11755 (get_child_debug_event): Avoid registering debug events until possibly
11756 execed process is started.
11757 (child_create_inferior): Allow invocation via shell so that command
11758 line redirection, etc. works ok.
11759 (_initialize_inftarg): Add new command: "set shell" to control whether
11760 a shell is used to start a process.
11761
11762 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11763
11764 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11765 instead of find_register_by_number.
11766 (cannot_store_register): Likewise.
11767
11768 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11769
11770 * dwarf2read.c: Replace fprintf (stderr, ...) by
11771 fprintf_unfiltered (gdb_stderr, ...).
11772
11773 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11774
11775 * gdbserver/gdbserver.1: Document --attach.
11776
11777 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11778
11779 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11780 descriptions.
11781 * arm-tdep.c (arm_default_arm_le_breakpoint)
11782 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11783 (arm_default_thumb_be_breakpoint): New. Initialize them from
11784 traditional breakpoint defines.
11785 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11786 (arm_gdbarch_init): Initialize new breakpoint variables.
11787 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11788 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11789 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11790 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11791 code out to ...
11792 (arm_netbsd_init_abi_common): ... here; new function.
11793 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11794 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11795 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11796 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11797
11798 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11799
11800 * arm-tdep.h (enum arm_abi): New enum.
11801 (struct gdbarch_tdep): New structure.
11802 (LOWEST_PC): Provide a default.
11803 (arm_gdbarch_register_os_abi): Declare new function.
11804 * arm-tdep.c (arm_abi_names): New array.
11805 (process_note_abi_tag_sections): New function.
11806 (get_elfosabi): New function.
11807 (arm_gdbarch_register_os_abi): New function.
11808 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11809 support for that ABI has been built in, then call the appropriate
11810 configuration routine. Use gdbarch_num_regs() to get the number
11811 of registers.
11812 (arm_dump_tdep): New function.
11813 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11814 place-holder functions.
11815 (_initialize_arm_tdep): Register them.
11816 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11817
11818 * armnbsd-tdep.c: New file.
11819 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11820 * config/arm/nbsd.mt (TDEPFILES): Add it.
11821 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11822
11823 * armnbsd-nat.c: Include regcache.h.
11824 * Makefile.in (armnbsd-nat.o): Update dependency list.
11825
11826 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11827
11828 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11829
11830 * gdbserver/Makefile.in: Fix typos in target rules.
11831
11832 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11833
11834 Fix part of PR gdb/267.
11835 * linespec.c (find_methods): Handle constructors specially for now.
11836
11837 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11838
11839 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11840 handling.
11841 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11842 standard_coerce_float_to_double().
11843
11844 2002-02-14 Christopher Faylor <cgf@redhat.com>
11845
11846 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11847 GDBINIT_FILENAME.
11848
11849 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11850
11851 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11852 find_variant_by_name, because it confuses the multiarch
11853 framework. Return NULL if there isn't an architecture with the
11854 user supplied name, instead of forcing a different one without
11855 recording the change with the multiarch machinery.
11856 (find_variant_by_name): Delete.
11857
11858 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11859
11860 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11861 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11862
11863 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11864
11865 * stack.c (print_frame_info_base): When calling
11866 print_frame_info_listing_hook, set current_source_symtab.
11867
11868 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11869
11870 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11871 and remove unused $(INCLUDE_DIR).
11872 Add regcache.c to OBS.
11873 Add generated register protocol files to clean target.
11874 Update dependencies for new objects, obsolete old target code.
11875
11876 * gdbserver/linux-low.c: Remove all platform-specific code to
11877 new files. Remove various dead code. Update to use regcache
11878 functionality.
11879 * gdbserver/remote-utils.c (fromhex): Add return statement
11880 to quiet warning.
11881 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11882 constant.
11883 (input_interrupt): Add integer parameter to match prototype
11884 of a signal handler.
11885 (outreg): Use register_data ().
11886 (prepare_resume_reply): Use gdbserver_expedite_regs.
11887 * gdbserver/server.c (main): Dynamically allocate own_buf because
11888 PBUFSIZ is no longer constant. Use registers_to_string () and
11889 registers_from_string ().
11890 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11891 for error (), fatal (), and warning (). Update definition of
11892 PBUFSIZ to use regcache functionality. Add include guard.
11893 * gdbserver/utils.c (fatal): Add missing ``const''.
11894 (warning): New function.
11895
11896 * regformats/regdat.sh: Include "regcache.h" in generated files.
11897 Provide init_registers () function.
11898 * regformats/regdef.h: Add prototype for set_register_cache ().
11899 Add include guard.
11900
11901 * gdbserver/linux-arm-low.c: New file.
11902 * gdbserver/linux-i386-low.c: New file.
11903 * gdbserver/linux-ia64-low.c: New file.
11904 * gdbserver/linux-m68k-low.c: New file.
11905 * gdbserver/linux-mips-low.c: New file.
11906 * gdbserver/linux-ppc-low.c: New file.
11907 * gdbserver/linux-sh-low.c: New file.
11908
11909 * gdbserver/regcache.c: New file.
11910 * gdbserver/regcache.h: New file.
11911
11912 * gdbserver/low-linux.c: Removed obsolete file.
11913
11914 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11915
11916 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11917 * config/i386/linux.mt: Likewise.
11918 * config/ia64/linux.mt: Likewise.
11919 * config/m68k/linux.mh: Likewise.
11920 * config/powerpc/linux.mh: Likewise.
11921 * config/mips/linux.mt: Likewise.
11922
11923 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11924
11925 * config/i386/i386lynx.mh: Mark gdbserver variables
11926 as (currently) obsolete for this target.
11927 * config/i386/nbsd.mt: Likewise.
11928 * config/i386/nbsdelf.mt: Likewise.
11929 * config/m32r/m32r.mt: Likewise.
11930 * config/m68k/m68klynx.mh: Likewise.
11931 * config/m68k/nbsd.mt: Likewise.
11932 * config/m68k/sun3os4.mh: Likewise.
11933 * config/mips/vr5000.mt: Likewise.
11934 * config/ns32k/nbsd.mt: Likewise.
11935 * config/pa/hppabsd.mh: Likewise.
11936 * config/pa/hppaosf.mh: Likewise.
11937 * config/powerpc/nbsd.mt: Likewise.
11938 * config/rs6000/rs6000lynx.mh: Likewise.
11939 * config/s390/s390.mt: Likewise.
11940 * config/s390/s390x.mt: Likewise.
11941 * config/sparc/sparclynx.mh: Likewise.
11942 * config/sparc/sun4os4.mh: Likewise.
11943 * config/i386/x86-64linux.mt: Likewise.
11944 * config/sparc/linux.mh: Likewise.
11945
11946 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11947
11948 * configure.tgt: Configure gdbserver only for known working
11949 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11950 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11951 SUBDIRS if it is configured. Update comment for ${nativefile}.
11952 * configure: Regenerated.
11953
11954 2002-02-13 Michael Snyder <msnyder@redhat.com>
11955
11956 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11957
11958 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11959 (default_gcore_mach): Just return 0, work around a problem in bfd.
11960 (default_gcore_target): OK to return NULL if exec_bfd is null.
11961 (make_mem_sec): Use a cast, avoid a warning.
11962
11963 * procfs.c (find_memory_regions_callback): Use a cast instead of
11964 calling host_pointer_to_address (which complains if
11965 sizeof (host pointer) != sizeof (target pointer)).
11966 (procfs_make_note_section): Avoid overflow in psargs string.
11967
11968 * procfs.c (procfs_make_note_section): Make the default
11969 implementation return an error.
11970
11971 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11972
11973 * procfs.c (procfs_make_note_section): Provide a default definition
11974 (for alpha-dec-osf4.0f). Fix typos.
11975
11976 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11977
11978 * linux-proc.c: Add include of regcache.h.
11979 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11980
11981 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11982
11983 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11984 * memattr.c (create_mem_region): Disallow useless empty region.
11985 Regions are half-open intervals, so allow [A..B) [B..C) as
11986 non-overlapping.
11987
11988 2002-02-13 Michael Chastain <mec@shout.net>
11989
11990 * defs.h: Kill CONST_PTR.
11991 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11992 * c-lang.c (c_builtin_types): Likewise.
11993 * ch-lang.c (ch_builtin_types): Likewise.
11994 * f-lang.c (f_builtin_types): Likewise.
11995 * language.c (unknown_builtin_types): Likewise.
11996 * m2-lang.c (m2_builtin_types): Likewise.
11997 * p-lang.c (pascal_builtin_types): Likewise.
11998 * scm-lang.c (c_builtin_types): Likewise.
11999
12000 2002-02-13 Keith Seitz <keiths@redhat.com>
12001
12002 * arm-tdep.h (arm_get_next_pc): Add declaration.
12003
12004 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12005
12006 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12007 with other related struct-returning functions.
12008 (arm_extract_struct_value_address): New function.
12009 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12010 initialize float_format, double_format and long_double_format as
12011 appropriate to the endianness of the target.
12012 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12013 (arm_use_struct_convention): Delete declaration.
12014 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12015
12016 2002-02-13 Keith Seitz <keiths@redhat.com>
12017
12018 * defs.h (core_addr_to_string_nz): New function.
12019
12020 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12021
12022 Apply missing bits of 2002-01-15 patch.
12023 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12024 (fill_fpregset): Use i387_fill_fsave.
12025
12026 2002-02-12 Keith Seitz <keiths@redhat.com>
12027
12028 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12029 (core_addr_to_string_nz): New function.
12030
12031 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12032
12033 * arm-linux-nat.c: Really include arm-tdep.h.
12034 * config/arm/tm-linux.h (struct type, struct value): Declare.
12035
12036 2002-02-11 Michael Snyder <msnyder@redhat.com>
12037
12038 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12039 (gcore section): Ifdef for Solaris and Unixware only.
12040 (procfs_do_thread_registers): Unixware needs one lwpstatus
12041 per thread (not one prstatus or pstatus).
12042 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12043 not over all gdb threads. For unixware, call elfcore_write_pstatus
12044 once before iterating over threads.
12045
12046 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12047
12048 * arm-tdep.h: New file.
12049 * arm-tdep.c: Include arm-tdep.h.
12050 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12051 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12052 (arm_print_float_info, arm_register_type, convert_to_extended)
12053 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12054 (arm_extract_return_value, arm_register_name): Make static.
12055 (arm_software_single_step): Similarly. Fix types in declaration.
12056 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12057 (arm_store_return_value, arm_store_struct_return): New functions.
12058 (arm_gdbarch_init): Register the above functions. Also register
12059 call_dummy_start_offset, sizeof_call_dummy_words,
12060 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12061 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12062 max_register_virtual_size, register_size. Set up
12063 prologue_cache.saved_regs here, rather than ...
12064 (_initialize_arm_tdep): ... here.
12065 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12066 declarations.
12067 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12068 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12069 (arm_print_float_info, arm_register_type, convert_to_extended)
12070 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12071 (arm_extract_return_value, arm_register_name): Delete declarations.
12072 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12073 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12074 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12075 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12076 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12077 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12078 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12079 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12080 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12081 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12082 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12083 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12084 interface.
12085 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12086 * remote-rdi.c remote-rdp.c: Likewise.
12087 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12088 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12089 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12090 definition.
12091
12092 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12093 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12094 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12095 from non-ARM_ prefixed definitions.
12096 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12097 all uses of above.
12098 * remote-rdi.c remote-rdp.c: Likewise.
12099 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12100
12101 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12102
12103 * arm-tdep.c (arm_frameless_function_invocation)
12104 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12105 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12106 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12107 (arm_pop_frame, arm_get_next_pc): Make static.
12108 (arm_gdbarch_init): Register above in gdbarch structure.
12109 (arm_read_fp): Renamed from arm_target_read_fp.
12110 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12111 * config/arm/tm-arm.h (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_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12115 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12116 (arm_pc_is_thumb_dummy): Delete declarations.
12117 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12118 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12119 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12120 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12121
12122 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12123
12124 * symtab.c (compare_search_syms): New function.
12125 (sort_search_symbols): New function.
12126 (search_symbols): Sort symbols after searching rather than
12127 before.
12128
12129 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12130
12131 * NEWS: Linux -> GNU/Linux.
12132
12133 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12134
12135 * gdbarch.sh: For for level one methods, disallow a definition
12136 when partially multi-arched. Add comments explaining rationale.
12137 * gdbarch.h: Re-generate.
12138
12139 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12140
12141 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12142 multi-arch partial.
12143
12144 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12145
12146 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12147 field. Use diff -u.
12148 * gdbarch.c: Re-generate.
12149
12150 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12151
12152 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12153 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12154 partial.
12155
12156 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12157
12158 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12159 multi-arch partial.
12160 (PUSH_ARGUMENTS): Switch to using predefault.
12161 * gdbarch.c: Regenerate.
12162
12163 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12164
12165 * valops.c (PUSH_ARGUMENTS): Delete definition.
12166 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12167 partial. Default to default_push_arguments.
12168 * gdbarch.h, gdbarch.c: Regenerate.
12169
12170 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12171
12172 * defs.h (throw_exception): Rename return_to_top_level. Update
12173 comments.
12174 * utils.c (error_stream, internal_verror, quit): Ditto.
12175 * top.c (throw_exception, catcher): Ditto.
12176 * sparclet-rom.c (sparclet_load): Ditto.
12177 * remote.c (interrupt_query, minitelnet): Ditto.
12178 * remote-sds.c (interrupt_query): Ditto.
12179 * remote-mips.c (mips_error, mips_kill): Ditto.
12180 * ocd.c (interrupt_query): Ditto.
12181 * monitor.c (monitor_interrupt_query): Ditto.
12182 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12183 * target.h: Update comment.
12184
12185 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12186
12187 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12188
12189 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12190 default_double_format.
12191 * gdbarch.h, gdbarch.c: Re-generate.
12192 * findvar.c (floatformat_unknown): Delete variable definition.
12193 * doublest.h (floatformat_unknown): Delete variable declaration.
12194
12195 2002-02-09 Jim Blandy <jimb@redhat.com>
12196
12197 * stabsread.c (read_type): Add code to parse Sun's syntax for
12198 prototyped function types.
12199
12200 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12201
12202 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12203 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12204
12205 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12206
12207 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12208 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12209 now _initialize_xcoffsolib gets called again and overrides the
12210 commands from solib.c in a native configuration.
12211
12212 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12213
12214 * doublest.c (store_typed_floating): Don't try to return a value.
12215 Fixes PR gdb/290.
12216
12217 2002-02-08 Jim Blandy <jimb@redhat.com>
12218
12219 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12220 is prototyped and has no arguments, print its argument list as
12221 `(void)'.
12222
12223 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12224
12225 * MAINTAINERS (write-after-approval): Add myself.
12226 (paper-trail): I've escaped!
12227
12228 2002-02-08 Christopher Faylor <cgf@redhat.com>
12229
12230 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12231 changes.
12232 (_initialize_check_for_gdb_ini): Ditto.
12233
12234 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12235
12236 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12237 xaprintf -> xasprintf.
12238
12239 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12240
12241 * win32-nat.c: Remove use of printf and sprintf functions.
12242
12243 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12244
12245 * arm-tdep.c (arm_frame_chain_valid): Make static.
12246 (arm_push_arguments): Likewise.
12247 (arm_gdbarch_init): New function.
12248 (_initialize_arm_tdep): Call it.
12249 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12250 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12251 (FRAME_CHAIN_VALID): Delete.
12252 (arm_frame_chain_valid): Delete declaration.
12253 (PUSH_ARGUMENTS): Delete.
12254 (arm_push_arguments): Delete declaration.
12255 (CALL_DUMMY_P): Delete.
12256
12257 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12258 Corinna Vinschen <vinschen@redhat.com>
12259
12260 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12261 on builtin float types.
12262
12263 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12264
12265 * utils.c: Include <curses.h> before "bfd.h".
12266 * tui/tui-hooks.c: Likewise.
12267 * tui/tui.c: Likewise.
12268 * tui/tuiCommand.c: Likewise.
12269 * tui/tuiData.c: Likewise.
12270 * tui/tuiDataWin.c: Likewise.
12271 * tui/tuiDisassem.c: Likewise.
12272 * tui/tuiGeneralWin.c: Likewise.
12273 * tui/tuiIO.c: Likewise.
12274 * tui/tuiLayout.c: Likewise.
12275 * tui/tuiRegs.c: Likewise.
12276 * tui/tuiSource.c: Likewise.
12277 * tui/tuiSourceWin.c: Likewise.
12278 * tui/tuiStack.c: Likewise.
12279 * tui/tuiWin.c: Likewise.
12280
12281 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12282
12283 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12284 to include space for pseudoregs as well. Update loops accordingly.
12285 (sh_fp_frame_init_saved_regs): Ditto.
12286 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12287
12288 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12289
12290 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12291 Add Richard Earnshaw to Arm maintainers.
12292
12293 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12294
12295 * defs.h (warning_begin): Delete declaration.
12296
12297 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12298 Delete macro.
12299
12300 2002-02-07 Michael Snyder <msnyder@redhat.com>
12301
12302 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12303 Logic bug, remove misplaced else.
12304
12305 2002-02-07 Klee Dienes <klee@apple.com>
12306
12307 * fork-inferior.c (fork_inferior): Add '!' to the list of
12308 characters that need to be quoted when building a string for the
12309 shell. Quote '!' specifically with a backslash, since CSH chokes
12310 when trying to evaluate "str!str".
12311
12312 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12313
12314 * rdi-share/host.h: Only provide a typedef for bool if it is not
12315 defined.
12316
12317 2002-02-04 Michael Snyder <msnyder@redhat.com>
12318
12319 * breakpoint.h (enum bptype): Add new overlay event bp type.
12320 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12321
12322 * breakpoint.c (create_internal_breakpoint): New function.
12323 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12324 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12325 (create_thread_event_breakpoint): Ditto.
12326 (create_solib_event_breakpoint): Ditto.
12327 (create_overlay_event_breakpoint): New function.
12328 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12329 (update_breakpoints_after_exec): Delete and re-initialize
12330 overlay event breakpoints after an exec. Add FIXME comment
12331 about longjmp breakpoint.
12332 (print_it_typical): Ignore overlay event breakpoints.
12333 (print_one_breakpoint): Ditto.
12334 (mention): Ditto.
12335 (bpstat_what): Do not stop for overlay event breakpoints.
12336 (delete_breakpoint): Don't delete overlay event breakpoints.
12337 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12338 (breakpoint_re_set): Re-create overlay event breakpoint.
12339
12340 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12341 (overlay_manual_command): Disable overlay breakpoints.
12342 (overlay_off_command): Disable overlay breakpoints.
12343
12344 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12345
12346 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12347 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12348 to here from config/tm-arm.h.
12349 (coff_sym_is_thumb): Make static.
12350 (arm_elf_make_msymbol_special): New function.
12351 (arm_coff_make_msymbol_special): New function.
12352 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12353 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12354 (coff_sym_is_thumb): Delete declaration.
12355 (arm_elf_make_msymbol_special): Declare.
12356 (arm_coff_make_msymbol_special): Declare.
12357 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12358 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12359
12360 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12361
12362 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12363
12364 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12365
12366 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12367 * gdbarch.c gdbarch.h: Regenerate.
12368 * arch-utils.c (default_print_float_info): New function.
12369 * arch-utils.h (default_print_float_info): Prototype it.
12370 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12371 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12372 (PRINT_FLOAT_INFO): Document it.
12373
12374 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12375 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12376 (PRINT_FLOAT_INFO): Define.
12377
12378 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12379
12380 * win32-nat.c (_initialize_check_for_gdb_ini):
12381 Add typecast to sprintf argument to suppress a warning.
12382
12383 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12384
12385 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12386 to allow easier handling of pass state.
12387 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12388 that gives exception name and address.
12389 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12390 and set last_sig value to ourstatus->value.sig. Some missing
12391 exceptions added.
12392 (child_continue): Correctly report continue_status.
12393 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12394 TARGET_SIGNAL_0 (new default value).
12395 (child_resume): consider sig argument passed to decide if
12396 the exception should be passed to debuggee or not.
12397
12398 2002-02-05 Michael Snyder <msnyder@redhat.com>
12399
12400 * regcache.c (fetch_register): Call target_fetch_register
12401 only if we don't call FETCH_PSEUDO_REGISTER.
12402 (store_register): Call target_store_register only if we
12403 don't call STORE_PSEUDO_REGISTER.
12404
12405 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12406
12407 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12408 ELF_MAKE_MSYMBOL_SPECIAL.
12409 * gdbarch.c, gdbarch.h: Regenerate.
12410 * arch-utils.c (default_make_msymbol_special): New function.
12411 * arch-utils.h (default_make_msymbol_special): Export.
12412 * elfread.c (elf_symtab_read): Compile use of
12413 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12414 multiarched.
12415 * coffread.c (coff_symtab_read): Ditto, for
12416 COFF_MAKE_MSYMBOL_SPECIAL.
12417
12418 2002-02-05 Jim Blandy <jimb@redhat.com>
12419
12420 * solib-svr4.c (svr4_truncate_ptr): New function.
12421 (svr4_relocate_section_addresses): Do the address arithmetic with
12422 the appropriate truncation for target addresses, even when
12423 CORE_ADDR is larger than a target address.
12424
12425 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12426
12427 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12428 to (int *).
12429
12430 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12431
12432 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12433 code.
12434
12435 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12438
12439 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * gdbserver/linux-low.c: Remove unused include files.
12442
12443 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12446 (read_inferior_memory): Use it.
12447 (write_inferior_memory): Likewise.
12448
12449 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12450
12451 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12452 grubbing through sys_errlist.
12453
12454 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12455
12456 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12457
12458 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12459 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12460
12461 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12462
12463 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12464 (do_sfunc, set_cmd_sfunc): New functions.
12465
12466 * command.h (struct cmd_list_element): Add field func.
12467 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12468 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12469 * cli/cli-decode.h: Ditto.
12470
12471 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12472 (help_all, help_cmd_list): Ditto.
12473 (find_cmd, complete_on_cmdlist): Ditto.
12474 * top.c (execute_command): Ditto.
12475
12476 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12477 function.sfunc.
12478
12479 * infcmd.c (notice_args_read): Fix function signature.
12480
12481 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12482 * cli/cli-decode.c (add_set_cmd): Ditto.
12483 * utils.c (initialize_utils): Ditto.
12484 * maint.c (_initialize_maint_cmds): Ditto.
12485 * infrun.c (_initialize_infrun): Ditto.
12486 * demangle.c (_initialize_demangler): Ditto.
12487 * remote.c (add_packet_config_cmd): Ditto.
12488 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12489 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12490 * proc-api.c (_initialize_proc_api): Ditto.
12491 * kod.c (_initialize_kod): Ditto.
12492 * valprint.c (_initialize_valprint): Ditto.
12493 * top.c (init_main): Ditto.
12494 * infcmd.c (_initialize_infcmd): Ditto.
12495 * corefile.c (_initialize_core): Ditto.
12496 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12497 * arch-utils.c (initialize_current_architecture): Ditto.
12498 (_initialize_gdbarch_utils): Ditto.
12499 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12500
12501 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12502 * wince.c (_initialize_inftarg): Ditto.
12503 * symfile.c (_initialize_symfile): Ditto.
12504 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12505 * language.c (_initialize_language): Ditto.
12506 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12507
12508 2002-02-04 Michael Snyder <msnyder@redhat.com>
12509
12510 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12511
12512 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12513
12514 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12515 Add rules for building the register data files.
12516
12517 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12518
12519 * regformats/regdat.sh: Add braces to the definition of
12520 expedite_regs_${arch}.
12521
12522 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12523
12524 * regformats/regdef.h (struct reg): Add comment describing the
12525 requirements for offset and size fields.
12526
12527 2002-02-04 Andreas Schwab <schwab@suse.de>
12528
12529 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12530 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12531
12532 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12533
12534 * gdbarch.sh (copyright): Update years in generated header.
12535 (SMASH_TEXT_ADDRESS): Add rule.
12536 * gdbarch.h, gdbarch.c: Re-generate.
12537 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12538 * dbxread.c: Likewise.
12539 * dwarfread.c: Likewise.
12540 * elfread.c: Likewise.
12541 * somread.c: Likewise.
12542
12543 * arm-tdep.c (arm_smash_text_address): New function.
12544 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12545
12546 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12547
12548 Add support for hardware watchpoints on win32 native.
12549 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12550 CONTEXT_DEBUG_REGISTERS.
12551 (dr variable): New variable. Static array containing a local copy
12552 of debug registers.
12553 (debug_registers_changed): New variable. Reflects when debug registers
12554 are changed and need to be written to inferior.
12555 (debug_registers_used): New variable. Reflects when any debug register
12556 was set, used when new threads are created.
12557 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12558 i386-nat code.
12559 (thread_rec): Set dr array if id is the thread of current_event .
12560 (child_continue, child_resume): Change the debug registers for all
12561 threads if debug_registers_changed.
12562 (child_add_thread): Change the debug registers if debug_registers_used.
12563 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12564 Link nm.h to new nm-cygwin.h file.
12565 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12566 of hardware registers.
12567
12568 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12569
12570 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12571 Restore behavour broken by 2002-01-20 Andrew Cagney
12572 <ac131313@redhat.com> IEEE_FLOAT removal.
12573
12574 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12575
12576 * c-valprint.c (c_val_print): Pass a proper valaddr to
12577 cp_print_class_method.
12578 * valops.c (search_struct_method): If there is only one method
12579 and args is NULL, return that method.
12580
12581 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12582
12583 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12584 accessing tag_name directly.
12585
12586 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12587
12588 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12589 of accessing tag_name directly.
12590
12591 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12592
12593 PR gdb/280
12594 * gdbtypes.c (replace_type): New function.
12595 * gdbtypes.h (replace_type): Add prototype.
12596 * stabsread.c (read_type): Use replace_type.
12597
12598 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12599
12600 * Makefile.in (memattr.o): Add missing dependencies rule.
12601
12602 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12603
12604 * breakpoint.c (break_at_finish_command): Really export.
12605 (break_at_finish_at_depth_command): Ditto.
12606 (tbreak_at_finish_command): Ditto.
12607 * hppa-tdep.c: Include completer.h.
12608 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12609 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12610
12611 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12612
12613 * utils.c (do_write): New function.
12614 (error_stream): Rewrite combining the code from error_begin and
12615 verror.
12616 (verror): Rewrite using error_stream.
12617 (error_begin): Delete function.
12618
12619 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12620
12621 * utils.c (error_begin): Make static.
12622 * defs.h (error_begin): Delete declaration.
12623
12624 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12625 (decode_line_1): Use cplusplus_error instead of error_begin,
12626 cplusplus_hint and return_to_top_level.
12627 * coffread.c (coff_symfile_read): Use error instead of error_begin
12628 and return_to_top_level.
12629 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12630
12631 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12632
12633 * language.h (type_error, range_error): Make string parameter
12634 constant.
12635 * language.c (warning_pre_print): Delete extern declaration.
12636 * dwarfread.c (warning_pre_print): Ditto.
12637 * language.c (type_error, range_error): Rewrite to use verror and
12638 vwarning instead of warning_begin.
12639
12640 2002-02-01 Michael Snyder <msnyder@redhat.com>
12641
12642 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12643 (set_ignore_count): Move misplaced comment back where it belongs.
12644
12645 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12646
12647 * command.h (NO_FUNCTION): Delete macro.
12648 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12649 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12650 * tracepoint.c (_initialize_tracepoint): Ditto.
12651 * cli/cli-decode.c (add_set_cmd): Ditto.
12652 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12653
12654 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12655
12656 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12657 Update ``this'' pointer when calling virtual functions.
12658
12659 2002-02-01 Michael Snyder <msnyder@redhat.com>
12660
12661 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12662 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12663
12664 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12665
12666 * regformats/reg-arm.dat: New file.
12667 * regformats/reg-i386.dat: New file.
12668 * regformats/reg-ia64.dat: New file.
12669 * regformats/reg-m68k.dat: New file.
12670 * regformats/reg-mips.dat: New file.
12671 * regformats/reg-ppc.dat: New file.
12672 * regformats/reg-sh.dat: New file.
12673 * regformats/regdef.h: New file.
12674 * regformats/regdat.sh: New file.
12675
12676 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12677
12678 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12679 (arm_frame_args_address, arm_frame_locals_address): New functions.
12680 (arm_frame_num_args): New function.
12681 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12682 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12683 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12684
12685 2002-01-31 Michael Snyder <msnyder@redhat.com>
12686
12687 * breakpoint.c (break_at_finish_command): Export.
12688 (break_at_finish_at_depth_command): Export.
12689 (tbreak_at_finish_command): Export.
12690 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12691 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12692 "txbreak" commands, which are HPPA specific.
12693
12694 * printcmd.c (disassemble_command): Remove an ancient
12695 artifact of an old merge.
12696
12697 * symfile.h (enum overlay_debugging_state):
12698 Define enum constant values for overlay mode.
12699 * symfile.c (overlay_debugging): Use enums instead of literals.
12700 (overlay_is_mapped, overlay_auto_command,
12701 overlay_manual_command): Ditto.
12702
12703 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12704 breakpoint_here_p, breakpoint_inserted_here_p,
12705 breakpoint_thread_match, bpstat_stop_status,
12706 describe_other_breakpoints, check_duplicates, clear_command):
12707 Coding standard fixes.
12708
12709 * target.c (target_xfer_memory): Add spaces, coding standard.
12710 (do_xfer_memory): Add missing line to trust-readonly
12711 code: check bfd SEC_READONLY flag for section.
12712
12713 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12714
12715 * PROBLEMS: Fix typo, 5.1->5.1.1.
12716
12717 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12718
12719 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12720 data symbols, since we search based on textlow and texthigh.
12721 (find_pc_sect_symtab): Likewise.
12722
12723 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12724
12725 * defs.h (vwarning): Declare.
12726 * utils.c (vwarning): New function.
12727 (warning): Call vwarning.
12728 (warning_begin): Delete function.
12729
12730 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12731 the warning message.
12732 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12733 warning_begin.
12734
12735 2002-01-30 Michael Snyder <msnyder@redhat.com>
12736
12737 * NEWS: Mention "set trust-readonly-sections" command.
12738 Mention generate-core-file command.
12739
12740 2002-01-15 Michael Snyder <msnyder@redhat.com>
12741
12742 * target.c: New command, "set trust-readonly-sections on".
12743 (do_xfer_memory): Honor the suggestion to trust readonly sections
12744 by reading them from the object file instead of from the target.
12745 (initialize_targets): Register command "set trust-readonly-sections".
12746
12747 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12748
12749 * parse.c (target_map_name_to_register): Simplify, search regs and
12750 pseudo-regs using a single loop.
12751
12752 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12753
12754 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12755
12756 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12757
12758 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12759 * config/i386/i386v42mp.mh: Add i387-nat.o .
12760 * i386v4-nat.c: Include i387-nat.h.
12761 (supply_fpregset): Use i387_supply_fsave.
12762 (fill_fpregset): Use i387_fill_fsave.
12763
12764 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12765
12766 * arm-tdep.c (arm_call_dummy_words): Define.
12767 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12768 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12769 (CALL_DUMMY_WORDS): Define.
12770 (arm_call_dummy_words): Declare.
12771 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12772 (arm_linux_call_dummy_words): Declare.
12773
12774 2002-01-30 Andreas Schwab <schwab@suse.de>
12775
12776 * m68klinux-nat.c: Fix last change to use regcache_collect
12777 instead of referencing registers[] directly.
12778
12779 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12780
12781 * parse.c (target_map_name_to_register): Delete code wrapped in
12782 #ifdef REGISTER_NAME_ALIAS_HOOK.
12783
12784 2002-01-28 Michael Snyder <msnyder@redhat.com>
12785
12786 * regcache.c (legacy_read_register_gen): Need to be able to
12787 read pseudo-register as well as real register.
12788 (legacy_write_register_gen): Ditto.
12789
12790 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12791
12792 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12793 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12794 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12795 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12796 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12797 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12798 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12799 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12800 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12801 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12802 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12803 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12804 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12805 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12806 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12807 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12808 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12809 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12810 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12811 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12812
12813 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12814
12815 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12816 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12817 (initialize_current_architecture): Update target_byte_order using
12818 information from BFD.
12819 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12820 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12821
12822 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12823
12824 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12825 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12826
12827 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12828 #ifdef INVALID_FLOAT.
12829 * infcmd.c (do_registers_info): Ditto.
12830 * values.c (unpack_double): Ditto. Add comment.
12831
12832 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12833 already commented out.
12834
12835 2002-01-26 Andreas Schwab <schwab@suse.de>
12836
12837 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12838 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12839 registers and add support for PTRACE_GETREGS.
12840
12841 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12842
12843 GDB 5.1.1 released from 5.1 branch.
12844 * NEWS: Add 5.1.1 news.
12845 * README: Sync with 5.1 branch.
12846
12847 2002-01-23 Fred Fish <fnf@redhat.com>
12848
12849 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12850 stabstring on initial malloc. Reallocing will copy it for us,
12851 if necessary.
12852
12853 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12854
12855 * Makefile.in (hpread_h): Delete.
12856 (HFILES_NO_SRCDIR): Remove hpread.h.
12857 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12858 (hpread.o): Update dependencies.
12859 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12860
12861 * hp-psymtab-read.c: Remove file.
12862 * hp-symtab-read.c: Remove file.
12863 * hpread.h: Remove file.
12864
12865 * hpread.c: Merge all contents of hp-psymtab-read.c,
12866 hp-symtab-read.c and hpread.h into this file, as it was prior to
12867 January 1999.
12868
12869 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12870 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12871 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12872 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12873
12874 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12875
12876 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12877 fill_gregset): Call gdbarch_tdep() just once, assign result to
12878 variable and use that, instead of calling the function several
12879 times.
12880
12881 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12882
12883 * configure.host: Accept sparcv9 as alias for sparc64.
12884 * configure.tgt: Likewise.
12885
12886 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12887
12888 * solib-aix5.c (build_so_list_from_mapfile)
12889 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12890 arguments is not reversed.
12891 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12892 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12893
12894 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12895
12896 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12897 modified version of obsolete sh_fetch_pseudo_register.
12898 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12899 (sh4_register_read): New function.
12900 (sh_pseudo_register_write): New function. Renamed and modified
12901 version of obsolete sh_store_pseudo_register.
12902 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12903 (sh4_register_write): New function.
12904 (sh_gdbarch_init): Remove setting of gdbarch function
12905 fetch_pseudo_register and store_pseudo_register. Remove setting of
12906 register_convert_to_raw, register_convert_to_virtual,
12907 register_convertible.
12908 (sh_sh4_register_convertible): Delete. No longer needed. All is
12909 taken care by architecture specific functions
12910 register_read/register_write.
12911 (sh_sh4_register_convert_to_virtual): Make static.
12912 (sh_sh4_register_convert_to_raw): Ditto.
12913
12914 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12915
12916 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12917 (floatformat_is_nan, floatformat_mantissa): Ditto.
12918
12919 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12920 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12921 builtin_type_ieee_double_little,
12922 builtin_type_ieee_double_littlebyte_bigword,
12923 builtin_type_m68881_ext, builtin_type_i960_ext,
12924 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12925 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12926 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12927 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12928
12929 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12930
12931 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12932 parameter. Set frameless flag if it exists and depended of
12933 whether the scanned function is frameless or not.
12934 (xstormy16_skip_prologue): If function is frameless, return
12935 result of xstormy16_scan_prologue().
12936 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12937 call.
12938
12939 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12940
12941 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12942 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12943 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12944 sh_sh4_register_byte, sh_sh4_register_raw_size,
12945 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12946 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12947 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12948 sh_store_pseudo_register, sh_do_pseudo_register): Call
12949 gdbarch_tdep() just once, assign result to variable and use that,
12950 instead of calling the function several times.
12951
12952 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12953
12954 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12955 macros instead of LAST_FPU_CTRL_REGNUM.
12956 (store_register): Likewise.
12957
12958 2002-01-21 Jim Blandy <jimb@redhat.com>
12959
12960 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12961 is up-to-date before running the program, not just when a program
12962 exits.
12963
12964 2002-01-21 Fred Fish <fnf@redhat.com>
12965
12966 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12967 when we have found all instructions we are looking for.
12968
12969 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12970
12971 * arm-tdep.c (arm_register_name): New function.
12972 (arm_registers_names): Make static.
12973 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12974 (arm_register_name): Declare.
12975 (REGISTER_NAME): Use it.
12976
12977 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12978 Kevin Buettner <kevinb@redhat.com>
12979
12980 Convert arm targets to new FRAME interface.
12981 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12982 (arm_frame_find_save_regs): Delete.
12983 (arm_frame_init_saved_regs): New.
12984 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12985 Allocate extra_info as required. Convert all uses of fsr.regs
12986 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12987 to use extra_info.
12988 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12989 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12990 (check_prologue_cache, save_prologue_cache): Likewise.
12991 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12992 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12993 (FRAME_FIND_SAVED_REGS): Delete.
12994 (arm_frame_find_saved_regs): Delete prototype.
12995 (arm_frame_init_saved_regs): New prototype.
12996 (FRAME_INIT_SAVED_REGS): Define.
12997
12998 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12999
13000 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13001
13002 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13003
13004 From Jeff Law <law@redhat.com>:
13005 * infttrace.c: Include <sys/pstat.h>.
13006 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13007 exec file if the ttrace equivalent fails.
13008
13009 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13010
13011 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13012 (closeLogFile): Ditto.
13013
13014 2002-01-20 Michael Chastain <mec@shout.net>
13015
13016 * top.c (print_gdb_version): Bump copyright year to 2002.
13017
13018 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13019
13020 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13021 Zannoni and Eli Zaretskii.
13022
13023 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13024
13025 * buildsym.c: Update copyright years.
13026 * c-typeprint.c: Likewise.
13027 * dwarf2read.c: Likewise.
13028 * f-typeprint.c: Likewise.
13029 * gdbtypes.c: Likewise.
13030 * gdbtypes.h: Likewise.
13031 * hp-symtab-read.c: Likewise.
13032 * hpread.c: Likewise.
13033 * mdebugread.c: Likewise.
13034 * p-typeprint.c: Likewise.
13035
13036 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13037
13038 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13039 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13040 byte-order selectable.
13041 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13042 * arch-utils.c: Ditto.
13043 (set_endian): Ditto.
13044 (set_endian_from_file): Ditto.
13045 * gdbserver/low-sim.c (create_inferior): Ditto.
13046 * gdbarch.sh: Ditto.
13047 * gdbarch.h: Re-generate.
13048 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13049 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13050 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13051 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13052 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13053 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13054 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13055 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13056 macro definition.
13057 * config/mips/tm-wince.h: Remove #undef of macro
13058 TARGET_BYTE_ORDER_SELECTABLE.
13059 * config/sh/tm-wince.h: Ditto.
13060
13061 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13062
13063 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13064 member function fields. Add accessor macro
13065 TYPE_FN_FIELD_ARTIFICIAL.
13066 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13067 * c-typeprint.c (c_type_print_base): Skip artificial member
13068 functions.
13069
13070 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13071
13072 * f-typeprint.c: Delete unused function f_type_print_args.
13073 * p-typeprint.c: Delete unused function pascal_type_print_args.
13074
13075 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13076
13077 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13078 comment. Add ``artificial'' to ``union field_location''.
13079
13080 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13081
13082 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13083 * mdebugread.c (parse_symbol): Likewise.
13084 * stabsread.c (define_symbol): Likewise.
13085 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13086 initializing TYPE_FIELD_BITPOS to n (obsolete).
13087 (hpread_doc_function_type): Likewise.
13088 * hpread.c (hpread_function_type): Likewise.
13089
13090 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13091
13092 * configure.in (host_makefile_frag): Only require a host makefile
13093 fragment when a native build.
13094 * configure: Re-generate.
13095
13096 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13097
13098 * doublest.h (floatformat_from_type): Declare.
13099 * doublest.c (floatformat_from_type): New function.
13100 (convert_typed_floating): Use.
13101
13102 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13103 call to function floatformat_from_type.
13104
13105 * gdbarch.sh (IEEE_FLOAT): Delete.
13106 * gdbarch.h, gdbarch.c: Re-generate.
13107 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13108 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13109 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13110 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13111 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13112 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13113 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13114 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13115 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13116 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13117 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13118 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13119
13120 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13121 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13122 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13123 * sh-tdep.c (sh_gdbarch_init): Ditto.
13124 * mips-tdep.c (mips_gdbarch_init): Ditto.
13125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13126 * cris-tdep.c (cris_gdbarch_init): Ditto.
13127
13128 2002-01-20 Jiri Smid <smid@suse.cz>
13129
13130 * configure.host, configure.tgt: Support x86-64.
13131 * NEWS: Note new target x86-64.
13132
13133 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13134 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13135 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13136 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13137 x86-64-linux-nat.o): Fix dependencies.
13138
13139 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13140
13141 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13142 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13143 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13144 * config/sparc/xm-sun4os4.h: Delete file.
13145 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13146
13147 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13148
13149 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13150 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13151 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13152 * config/i386/i386lynx.mh (XM_FILE): Delete.
13153 * config/rs6000/xm-rs6000ly.h: Delete file.
13154 * config/sparc/xm-sparclynx.h: Delete file.
13155 * config/m68k/xm-m68klynx.h: Delete file.
13156 * config/i386/xm-i386lynx.h: Delete file.
13157 * config/xm-lynx.h: Delete file.
13158 * config/djgpp/fnchange.lst: Update.
13159
13160 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13161
13162 * alpha-tdep.c (alpha_register_byte): New function.
13163 (alpha_register_raw_size): Ditto.
13164 (alpha_register_virtual_size): Ditto.
13165 (alpha_skip_prologue_internal): Renamed from
13166 alpha_skip_prologue.
13167 (alpha_skip_prologue): New version that calls
13168 alpha_skip_prologue_internal.
13169 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13170 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13171 second argument from alpha_skip_prologue.
13172 (REGISTER_BYTE): Use alpha_register_byte.
13173 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13174 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13175 (FRAMELESS_FUNCTION_INVOCATION): Use
13176 generic_frameless_function_invocation_not.
13177 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13178 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13179
13180 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13181
13182 * config/mips/xm-news-mips.h: Delete file.
13183 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13184
13185 * config/m88k/xm-m88k.h: Delete file.
13186 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13187 * config/m88k/xm-delta88v4.h: Ditto.
13188 * config/m88k/xm-delta88.h: Ditto.
13189
13190 * config/alpha/xm-fbsd.h: Delete file.
13191 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13192
13193 * config/sparc/xm-sparc.h: Delete file.
13194 * Makefile.in (xm-sun4os4.h): Delete dependency.
13195 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13196 * config/sparc/xm-sun4os4.h: Ditto.
13197 * config/sparc/xm-linux.h: Ditto.
13198
13199 * config/i386/xm-windows.h: Delete file.
13200
13201 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13202
13203 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13204 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13205
13206 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13207
13208 * alpha-tdep.c (alpha_call_dummy_words): New.
13209 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13210 (CALL_DUMMY_P): Define.
13211 (CALL_DUMMY_WORDS): Define.
13212 (SIZEOF_CALL_DUMMY_WORDS): Define.
13213
13214 2002-01-19 Per Bothner <per@bothner.com>
13215
13216 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13217 isn't NULL, which can happen with some gcj-3.x-produced code.
13218
13219 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13220
13221 * alpha-tdep.c (alpha_register_virtual_type): New function.
13222 (alpha_init_frame_pc_first): Ditto.
13223 (alpha_fix_call_dummy): Ditto.
13224 (alpha_store_struct_return): Ditto.
13225 (alpha_extract_struct_value_address): Ditto.
13226 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13227 alpha_register_virtual_type.
13228 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13229 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13230 alpha_extract_struct_value_address.
13231 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13232 (INIT_FRAME_PC): Use init_frame_pc_noop.
13233 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13234
13235 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13236
13237 * i386gnu-nat.c: Include "i386-tdep.h".
13238 (fetch_fpregs): Simplify code dealing with uninitialized floating
13239 point states such that it doesn't require FP7_REGNUM.
13240
13241 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13242
13243 * alpha-tdep.c (frame_extra_info): New.
13244 (alpha_find_saved_regs): Make static. Use
13245 frame->extra_info.
13246 (alpha_frame_init_saved_regs): New function.
13247 (alpha_frame_saved_pc): Use frame->extra_info.
13248 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13249 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13250 (init_extra_frame_info): Rename to...
13251 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13252 (alpha_print_extra_frame_info): New function.
13253 (alpha_frame_locals_address): Ditto.
13254 (alpha_frame_args_address): Ditto.
13255 (alpha_pop_frame): Use frame->extra_info.
13256 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13257 alpha_frame_args_address.
13258 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13259 (alpha_find_saved_regs): Remove prototype.
13260 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13261 (EXTRA_FRAME_INFO): Remove.
13262 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13263 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13264
13265 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13266
13267 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13268 (alpha_cannot_fetch_register): Ditto.
13269 (alpha_cannot_store_register): Ditto.
13270 (alpha_register_convertible): Ditto.
13271 (alpha_use_struct_convention): Ditto.
13272 * config/alpha/tm-alpha.h: Update copyright years.
13273 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13274 (INNER_THAN): Use core_addr_lessthan.
13275 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13276 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13277 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13278 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13279 (FRAME_CHAIN): Remove unnecessary cast.
13280
13281 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13282
13283 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13284 obsolete.
13285
13286 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13287
13288 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13289 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13290 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13291 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13292 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13293 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13294 * x86-64-linux-nat.c: Ditto.
13295
13296 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13297
13298 * alpha-tdep.c (alpha_register_name): New function.
13299 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13300 (REGISTER_NAME): Define.
13301
13302 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13303
13304 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13305
13306 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13307
13308 * alpha-tdep.c: Update copyright years.
13309 (alpha_next_pc): New function.
13310 (alpha_software_single_step): Ditto.
13311 * config/alpha/tm-alpha.h: Add prototype for
13312 alpha_software_single_step.
13313
13314 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13315
13316 * alphabsd-nat.c: Update copyright years.
13317 (fill_gregset): Use regcache_collect.
13318 (fill_fpregset): Likewise.
13319 (fetch_inferior_registers): Only fetch integer registers
13320 if requested to do so.
13321 (store_inferior_registers): Only store integer registers
13322 if requested to do so.
13323
13324 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13325
13326 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13327 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13328 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13329 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13330 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13331 * config/arm/linux.mh (XDEPFILES): Delete.
13332 * config/arm/nbsd.mh (XDEPFILES): Delete.
13333 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13334 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13335 * config/i386/i386m3.mh (XDEPFILES): Delete.
13336 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13337 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13338 * config/i386/fbsd.mh (XDEPFILES): Delete.
13339 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13340 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13341 * config/i386/i386v4.mh (XDEPFILES): Delete.
13342 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13343 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13344 * config/i386/i386aix.mh (XDEPFILES): Delete.
13345 * config/i386/go32.mh (XDEPFILES): Delete.
13346 * config/i386/cygwin.mh (XDEPFILES): Delete.
13347 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13348 * config/i386/i386mach.mh (XDEPFILES): Delete.
13349 * config/i386/i386v32.mh (XDEPFILES): Delete.
13350 * config/i386/linux.mh (XDEPFILES): Delete.
13351 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13352 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13353 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13354 * config/i386/i386sco.mh (XDEPFILES): Delete.
13355 * config/i386/i386v.mh (XDEPFILES): Delete.
13356 * config/i386/nbsd.mh (XDEPFILES): Delete.
13357 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13358 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13359 * config/i386/symmetry.mh (XDEPFILES): Delete.
13360 * config/i386/obsd.mh (XDEPFILES): Delete.
13361 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13362 * config/ia64/linux.mh (XDEPFILES): Delete.
13363 * config/ia64/aix.mh (XDEPFILES): Delete.
13364 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13365 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13366 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13367 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13368 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13369 * config/m68k/linux.mh (XDEPFILES): Delete.
13370 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13371 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13372 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13373 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13374 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13375 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13376 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13377 * config/m88k/delta88.mh (XDEPFILES): Delete.
13378 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13379 * config/m88k/m88k.mh (XDEPFILES): Delete.
13380 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13381 * config/mips/linux.mh (XDEPFILES): Delete.
13382 * config/mips/irix6.mh (XDEPFILES): Delete.
13383 * config/mips/irix5.mh (XDEPFILES): Delete.
13384 * config/mips/irix4.mh (XDEPFILES): Delete.
13385 * config/mips/irix3.mh (XDEPFILES): Delete.
13386 * config/mips/decstation.mh (XDEPFILES): Delete.
13387 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13388 (NATDEPFILES): Move core-aout.o to here.
13389 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13390 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13391 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13392 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13393 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13394 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13395 * config/pa/hpux11.mh (XDEPFILES): Delete.
13396 * config/powerpc/aix.mh (XDEPFILES): Delete.
13397 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13398 * config/powerpc/linux.mh (XDEPFILES): Delete.
13399 * config/romp/rtbsd.mh: Rename XDEPFILES.
13400 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13401 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13402 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13403 * config/s390/s390.mh (XDEPFILES): Delete.
13404 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13405 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13406 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13407 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13408 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13409 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13410 * config/sparc/linux.mh (XDEPFILES): Delete.
13411 * config/vax/vaxult.mh (XDEPFILES): Delete.
13412 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13413 * Makefile.in (DEPFILES): Remove XDEPFILES.
13414
13415 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13416
13417 * utils.c (internal_verror): Fix comments, default is yes not no.
13418 Update queries to match. Default to quit and dump core.
13419
13420 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13421
13422 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13423 copyright.
13424 * defs.h, event-top.c, gdbcmd.h: Ditto.
13425 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13426 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13427 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13428 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13429 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13430 * mi/mi-main.c:Ditto.
13431
13432 * stack.c, symfile.c: Update copyright.
13433
13434 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13435
13436 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13437 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13438 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13439 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13440
13441 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13442
13443 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13444 * gdbserver/low-lynx.c (myattach): Likewise.
13445 * gdbserver/low-nbsd.c (myattach): Likewise.
13446 * gdbserver/low-sim.c (myattach): Likewise.
13447 * gdbserver/low-sparc.c (myattach): Likewise.
13448 * gdbserver/low-sun3.c (myattach): Likewise.
13449
13450 * gdbserver/low-linux.c (myattach): New function.
13451
13452 * gdbserver/server.c (attach_inferior): New function.
13453 (main): Handle "--attach".
13454
13455 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13456
13457 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13458 maintainer.
13459
13460 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13461
13462 * c-typeprint.c (is_type_conversion_operator): Add additional
13463 check for non-conversion operators.
13464
13465 2002-01-15 Michael Snyder <msnyder@redhat.com>
13466
13467 * linux-proc.c: Add "info proc" command, a la procfs.c.
13468 (read_mapping): New function, abstract and re-use code.
13469 (linux_find_memory_regions): Use new func read_mapping.
13470 (linux_info_proc_cmd): New function, implement "info proc".
13471 (_initialize_linux_proc): Add new command "info proc".
13472
13473 2002-01-15 Michael Snyder <msnyder@redhat.com>
13474
13475 * symfile.c (generic_load): Use bfd_map_over_sections method
13476 instead of manipulating bfd structure members directly.
13477 (add_section_size_callback): New function, bfd sections callback
13478 used by generic_load.
13479 (load_sections_callback): New function, bfd sections callback
13480 used by generic_load.
13481
13482 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13483
13484 [Based on work by Jim Blandy]
13485 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13486 (builtin_type_vec128): Export.
13487 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13488 types.
13489 (builtin_type_vec128): New builtin type for 128 bit vector
13490 registers.
13491 (build_gdbtypes): Initialize builtin_type_v16qi and
13492 builtin_type_v8hi. Create the vec128 register builtin type
13493 structure.
13494 (build_builtin_type_vec128): New function.
13495 (_initialize_gdbtypes): Register builtin_type_v16qi and
13496 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13497 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13498 AltiVec register to new builtin type.
13499
13500 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13501
13502 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13503 to make_cv_type.
13504
13505 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13506
13507 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13508 CLEAN_UP_REGISTER_VALUE.
13509 * regcache.c (supply_register): Update only call.
13510
13511 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13512
13513 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13514 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13515 a29k-*-vxworks* targets as obsolete.
13516
13517 2002-01-14 Michael Snyder <msnyder@redhat.com>
13518
13519 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13520 until we can resolve portability issues.
13521 * gregset.h: Remove references to fpxregs.
13522 * gcore.c (gcore_command): Initialize note_sec to NULL.
13523
13524 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13525
13526 * signals.c (target_signal_to_name): Rewrite. Only use
13527 signals[].name when in bounds and non-NULL.
13528
13529 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13530
13531 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13532 * signals.c (target_signal_to_name): Verify that SIG is within the
13533 bounds of the signals array.
13534
13535 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13536
13537 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13538
13539 2002-01-13 Keith Seitz <keiths@redhat.com>
13540
13541 * stack.c (print_frame_info_base): Print the frame's pc
13542 only if when print_frame_info_listing_hook is not defined.
13543
13544 2002-01-13 Keith Seitz <keiths@redhat.com>
13545
13546 * varobj.c (varobj_set_value): Make sure that there were no
13547 errors evaluating the object before attempting to set its
13548 value.
13549 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13550 so this offset adjustment is no longer necessary.
13551 (create_child): Don't set the error flag if the child is
13552 a CPLUS_FAKE_CHILD.
13553 (value_of_child): If value_fetch_lazy fails, return NULL
13554 so that callers will be notified that an error occurred.
13555 (c_value_of_variable): Delay check of variable's validity
13556 until later. We actually want all structs and unions to have
13557 the value "{...}".
13558 Do not return "???" for variables which could not be evaluated.
13559 This error condition must be returned to the caller so that it
13560 can get the error condition from gdb.
13561 (cplus_name_of_child): Adjust index for vptr before figuring
13562 out the name of the child.
13563 (cplus_value_of_child): If a child's (real) parent is not valid,
13564 don't even bother trying to give a value for it. Just return
13565 an error. Change all instances in this function.
13566 (cplus_type_of_child): If our parent is one of the "fake"
13567 parents, we need to get at the type of the real parent, and
13568 derive the child's true type using this information.
13569
13570 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13571
13572 From 2002-01-09 John Marshall <johnm@falch.net>:
13573 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13574 sources.redhat.com, and tweak some related URLs which had
13575 suffered from linkrot.
13576
13577 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13578
13579 From Jeff law:
13580 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13581 structures passed in registers.
13582
13583 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13584
13585 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13586 white space which prevented compilation. Reported by DSK
13587 <dsk@student.unsw.edu.au>.
13588
13589 2002-01-11 Michael Snyder <msnyder@redhat.com>
13590
13591 * symfile.c (build_section_addr_info_from_section_tab):
13592 Use bfd access method instead of manipulating bfd directly.
13593 (syms_from_objfile): Ditto.
13594 (simple_overlay_update_1): Ditto.
13595 (simple_overlay_update): Ditto.
13596 (generic_load): Ditto.
13597 (overlay_unmapped_address): FIXME comment, bfd access methods.
13598 (sections_overlap): FIXME comment, bfd access methods.
13599 (pc_in_mapped_range): FIXME comment, bfd access methods.
13600 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13601 (section_is_mapped): FIXME comment, bfd access methods.
13602 (section_is_overlay): FIXME comment, bfd access methods.
13603
13604 * symfile.c (generic_load): Whitespace and long line cleanups.
13605 Remove duplicate variable, change several local variables to
13606 more appropriate data types.
13607 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13608
13609 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13610
13611 From Peter Schauer:
13612 * language.c (longest_local_hex_string_custom): Use phex_nz to
13613 convert NUM to a hex string.
13614
13615 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13616
13617 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13618 the function.
13619 Update Copyright year.
13620
13621 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13622
13623 * language.c (longest_raw_hex_string): Delete unused function.
13624
13625 2002-01-11 Petr Sorfa <petrs@caldera.com>
13626
13627 * MAINTAINERS (write-after-approval): Add myself.
13628 * dwarf2read.c (read_tag_string_type): Handling of
13629 DW_AT_byte_size.
13630 (read_tag_string_type): FORTRAN fix to prevent propagation of
13631 first string size.
13632 (set_cu_language): Handling of DW_LANG_Fortran95
13633
13634 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13635
13636 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13637 GETPID(inferior_ptid).
13638 (store_inferior_registers): Likewise.
13639
13640 2002-01-10 Jason Merrill <jason@redhat.com>
13641
13642 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13643 Fix DW_OP_minus.
13644
13645 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13646
13647 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13648 and bfd/elf32-sh-nbsd.c.
13649
13650 2002-01-10 Michael Snyder <msnyder@redhat.com>
13651
13652 * NEWS: Mention --pid and corefile/proc-id behavior change.
13653
13654 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13655 * gcore.c: Include cli/cli-decode.h instead of command.h.
13656
13657 * main.c (captured_main): Add new command line option "--pid".
13658 If the second command line argument (following the symbol-file)
13659 begins with a digit, try to attach to it before trying to open
13660 it as a corefile.
13661 (print_gdb_help): Document the "--pid" argument.
13662
13663 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13664
13665 * completer.c (command_completer): New function.
13666
13667 * completer.h <command_completer>: Add prototype.
13668
13669 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13670 completer for the "help" command.
13671
13672 2002-01-09 Jason Merrill <jason@redhat.com>
13673
13674 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13675
13676 2002-01-09 Michael Snyder <msnyder@redhat.com>
13677
13678 * i386-linux-nat.c (fill_fpxregset): Make global.
13679 (store_fpxregset): Ditto.
13680
13681 * gregset.h (gdb_fpxregset_t): Define.
13682 (supply_fpxregset): Prototype.
13683 (fill_fpxregset): Prototype.
13684
13685 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13686
13687 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13688
13689 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13690 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13691 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13692
13693 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13694
13695 * MAINTAINERS: Update target maintainer rules so that any
13696 Maintainer can approve a tested patch for a maintenance-only
13697 target.
13698
13699 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13700
13701 * MAINTAINERS (write-after-approval): Add myself.
13702
13703 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13704 IN_SIGTRAMP.
13705
13706 2002-01-08 Michael Snyder <msnyder@redhat.com>
13707
13708 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13709 real name of the executable, rather than the /proc name.
13710
13711 2002-01-03 Michael Snyder <msnyder@redhat.com>
13712
13713 Implement a "generate-core-file" command in gdb, save target state.
13714 * gcore.c: New file. Implement new command 'generate-core-file'.
13715 Save a corefile image of the current state of the inferior.
13716 * linux-proc.c: Add linux-specific code for saving corefiles.
13717 * target.h (struct target_ops): Add new target vectors for saving
13718 corefiles; to_find_memory_regions and to_make_corefile_notes.
13719 (target_find_memory_regions): New macro.
13720 (target_make_corefile_notes): New macro.
13721 * target.c (update_current_target): Inherit new target methods.
13722 (dummy_find_memory_regions): New place-holder method.
13723 (dummy_make_corefile_notes): New place-holder method.
13724 (init_dummy_target): Initialize new dummy target vectors.
13725 * exec.c (exec_set_find_memory_regions): New function.
13726 Allow the exec_ops vector for memory regions to be taken over.
13727 (exec_make_note_section): New function, target vector method.
13728 * defs.h (exec_set_find_memory_regions): Export prototype.
13729 * procfs.c (proc_find_memory_regions): New function, corefile method.
13730 (procfs_make_note_section): New function, corefile method.
13731 (init_procfs_ops): Set new target vector pointers.
13732 (find_memory_regions_callback): New function.
13733 (procfs_do_thread_registers): New function.
13734 (procfs_corefile_thread_callback): New function.
13735 * sol-thread.c (sol_find_memory_regions): New function.
13736 (sol_make_note_section): New function.
13737 (init_sol_thread_ops): Initialize new target vectors.
13738 * inftarg.c (inftarg_set_find_memory_regions): New function.
13739 Allow to_find_memory_regions vector to be taken over.
13740 (inftarg_set_make_corefile_notes): New function.
13741 Allow to_make_corefile_notes vector to be taken over.
13742 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13743 interface layer if not target_has_execution (may be a corefile).
13744 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13745 * config/sparc/sun4sol2.mh: Ditto.
13746 * config/alpha/alpha-linux.mh: Ditto.
13747 * config/arm/linux.mh: Ditto.
13748 * config/i386/x86-64linux.mh: Ditto.
13749 * config/ia64/linux.mh: Ditto.
13750 * config/m68k/linux.mh: Ditto.
13751 * config/mips/linux.mh: Ditto.
13752 * config/powerpc/linux.mh: Ditto.
13753 * config/sparc/linux.mh: Ditto.
13754
13755 2002-01-07 Michael Snyder <msnyder@redhat.com>
13756
13757 * arm-linux-nat.c: Remove references to regcache.c internal data
13758 (registers[] and register_valid[]).
13759
13760 2002-01-07 Michael Snyder <msnyder@redhat.com>
13761
13762 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13763 so that attaching to a pid will automatically read the process's
13764 symbol file and shlibs.
13765 * Makefile.in: Add rule for linux-proc.o.
13766 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13767 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13768 * config/arm/linux.mh: Ditto.
13769 * config/i386/linux.mh: Ditto.
13770 * config/i386/x86-64linux.mh: Ditto.
13771 * config/ia64/linux.mh: Ditto.
13772 * config/m68k/linux.mh: Ditto.
13773 * config/mips/linux.mh: Ditto.
13774 * config/powerpc/linux.mh: Ditto.
13775 * config/sparc/linux.mh: Ditto.
13776
13777 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13778
13779 * win32-nat.c: Add i386-tdep.h dependency.
13780
13781 2002-01-07 Michael Snyder <msnyder@redhat.com>
13782
13783 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13784 instead of bfd_get_arch_size. Don't bail out just because
13785 there's no exec_bfd.
13786
13787 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13788 * p-valprint.c (pascal_object_print_value): Ditto.
13789 * somread.c (som_symtab_read): Ditto.
13790 * symfile.c (simple_free_overlay_region_table): Ditto.
13791 * valops.c (value_assign): Ditto.
13792
13793 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13794 use tilde_expand and strerror for opening save-tracepoints file.
13795
13796 * thread-db.c (thread_db_new_objfile): Indendation fix.
13797
13798 * infptrace.c (GDB_MAX_ALLOCA): New define.
13799 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13800 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13801 can be overridden with whatever value is appropriate to the host).
13802 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13803 alloca to allocate potentially large buffer.
13804 * rs6000-nat.c (child_xfer_memory): Ditto.
13805 * symm-nat.c (child_xfer_memory): Ditto.
13806 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13807
13808 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13809
13810 From Nick Clifton <nickc@redhat.com>
13811 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13812
13813 2002-01-07 Michael Snyder <msnyder@redhat.com>
13814
13815 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13816 Don't use exec_bfd if it's NULL.
13817
13818 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13819
13820 * valops.c (value_arg_coerce): Fix formatting.
13821
13822 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13823
13824 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13825 * gnu-nat.c: Ditto.
13826
13827 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13828
13829 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13830 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13831 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13832 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13833 z8k-coff have not been multi-arched. Update z8k-coff build
13834 status.
13835
13836 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13837
13838 * MAINTAINERS: Mark a29k target as obsolete.
13839 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13840 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13841 comments.
13842 * NEWS: Note that a29k targets are obsolete.
13843 * a29k-tdep.c: Mark as obsolete.
13844 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13845 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13846 a29k-*-vxworks* targets as obsolete.
13847 * remote-adapt.c: Obsolete.
13848 * remote-eb.c: Obsolete.
13849 * remote-mm.c: Obsolete.
13850 * remote-udi.c: Obsolete.
13851 * config/a29k/a29k-udi.mt: Obsolete.
13852 * config/a29k/a29k.mt: Obsolete.
13853 * config/a29k/tm-a29k.h: Obsolete.
13854 * config/a29k/tm-vx29k.h: Obsolete.
13855 * config/a29k/vx29k.mt: Obsolete.
13856
13857 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13858
13859 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13860 with BFD_ENDIAN_BIG.
13861
13862 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13863
13864 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13865 * configure, config.in: Re-generate.
13866 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13867 * defs.h: Do not include <endian.h>.
13868
13869 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13870
13871 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13872 * config.in: Regenerate.
13873 * configure.in: Update copyright years.
13874 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13875 * configure: Regenerate.
13876 * i386bsd-nat.c: Update copyright years.
13877 (fill_gregset): Use regcache_collect.
13878 (fetch_inferior_registers): Only fetch integer registers
13879 if requested to do so. Add support for XMM registers
13880 using PT_GETXMMREGS.
13881 (store_inferior_registers): Only store integer registers
13882 if requested to do so. Add support for XMM registers
13883 using PT_SETXMMREGS.
13884 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13885 (store_inferior_registers): Remove.
13886 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13887 (fetch_elfcore_registers): New function.
13888 (i386nbsd_elfcore_fns): New.
13889 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13890 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13891 i386bsd-nat.o.
13892 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13893 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13894 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13895 * config/i386/tm-nbsd.h: Update copyright years.
13896 (HAVE_SSE_REGS): Define.
13897 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13898 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13899 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13900 (SIGCONTEXT_PC_OFFSET): Remove.
13901 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13902
13903 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13904
13905 * configure.tgt: Remove powerpc-*-macos* target.
13906 * config/m68k/xm-mpw.h: Delete file.
13907 * config/xm-mpw.h: Delete file.
13908 * ser-mac.c: Delete file.
13909 * mpw-make.sed: Delete file.
13910 * mpw-config.in: Delete file.
13911 * mac-xdep.c: Delete file.
13912 * mac-gdb.r: Delete file.
13913 * mac-defs.h: Delete file.
13914 * mac-nat.c: Delete file.
13915 * config/powerpc/macos.mh: Delete file.
13916 * config/powerpc/macos.mt: Delete file.
13917 * config/powerpc/nm-macos.h: Delete file.
13918 * config/powerpc/tm-macos.h: Delete file.
13919 * source.c (openp, open_source_file): Remove obsolete code.
13920 * top.c (gdb_readline): Ditto.
13921 * utils.c (query): Ditto.
13922 * event-top.c (display_gdb_prompt): Ditto.
13923 * Makefile.in (ser-mac.o): Delete obsolete target.
13924 * NEWS: Update.
13925
13926 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13927
13928 * defs.h (BIG_ENDIAN): Delete macro definition.
13929 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13930 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13931 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13932 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13933 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13934 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13935 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13936 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13937 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13938 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13939 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13940 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13941 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13942 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13943 * gdbarch.c: Re-generate.
13944
13945 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13946
13947 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13948 for core files.
13949
13950 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13951
13952 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13953
13954 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13955
13956 * value.h (value_ptr): Delete typedef.
13957
13958 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13959
13960 * i386nbsd-nat.c: Update copyright years.
13961 Include i386-tdep.h.
13962
13963 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13964
13965 * stabsread.c: Update copyright years.
13966
13967 From Debashis Mahata <debashis.mahata@wipro.com>:
13968 (read_struct_fields): Deal with Sun C compiler erroneous stab
13969 output for structs and unions.
13970 Fix PR gdb/269.
13971
13972 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13973
13974 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13975 prototype.
13976
13977 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13978
13979 * cp-abi.c: Fix whitespace.
13980 (baseclass_offset): New wrapper function.
13981 * cp-abi.h (baseclass_offset): Add prototype.
13982 (struct cp_abi_ops): Add baseclass_offset pointer.
13983
13984 * valops.c (vb_match): Move to...
13985 * gnu-v2-abi.c (vb_match): here.
13986 * valops.c (baseclass_offset): Move to...
13987 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13988
13989 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13990
13991 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13992 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13993 * hpacc-abi.c (init_hpacc_ops): Likewise.
13994
13995 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13996
13997 * valops.c (find_overload_match): Accept obj as a
13998 reference parameter. Update it before returning.
13999 * value.h (find_overload_match): Update prototype.
14000 * eval.c (evaluate_subexp_standard): Pass object to
14001 find_overload_match by reference.
14002
14003 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14004
14005 * valarith.c: Replace value_ptr with struct value pointer. Remove
14006 register attribute from value declarations.
14007 * valops.c: Ditto.
14008 * value.h: Ditto.
14009 * scm-lang.c (scm_lookup_name): Ditto.
14010
14011 2002-01-03 Michael Snyder <msnyder@redhat.com>
14012
14013 Abstract the functionality of iterating over mapped memory
14014 regions into a general purpose iterator function.
14015 * procfs.c (iterate_over_mappings): New function, general purpose
14016 iterator for memory sections.
14017 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14018 (solib_mappings_callback): New function, callback for above.
14019 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14020 (info_mappings_callback): New function, callback for above.
14021
14022 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14023
14024 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14025
14026 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14027 * i386-tdep.c: Include "elf-bfd.h".
14028 (process_note_abi_tag_sections): New function.
14029 (i386_gdbarch_init): Add code to recognize various OS/ABI
14030 combinations.
14031
14032 * maint.c (_initialize_maint_cmds): Add missing \ in
14033 string-literal.
14034
14035 For older changes see ChangeLog-2001
14036 \f
14037 Local Variables:
14038 mode: change-log
14039 left-margin: 8
14040 fill-column: 74
14041 version-control: never
14042 End:
This page took 0.29369 seconds and 5 git commands to generate.