* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-11 Kevin Buettner <kevinb@redhat.com>
2
3 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
4 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
5 ``char *'' for return and parameter types.
6 * gdbarch.h, gdbarch.c: Regenerate.
7 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
8 return type from ``char *'' to ``const char *''.
9 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
10 const.
11
12 2002-12-11 Mark Kettenis <kettenis@gnu.org>
13
14 * i386-tdep.c: Include "dummy-frame.h".
15 (i386_frame_chain, i386_frame_saved_pc): Replace
16 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
17 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
18
19 2002-12-10 Andrew Cagney <cagney@redhat.com>
20
21 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
22 Change to a function with predicate.
23 * gdbarch.h, gdbarch.c: Re-generate.
24 * frame.c (get_prev_frame): Update. Test
25 DEPRECATED_INIT_FRAME_PC_P.
26 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
27 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
28 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
29 * alpha-tdep.c (alpha_gdbarch_init): Update.
30 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
31 * mips-tdep.c (mips_gdbarch_init): Update.
32 * i386-interix-tdep.c (i386_interix_init_abi): Update.
33 * arm-tdep.c: Update comments.
34 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
35 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
36 * frv-tdep.c (frv_gdbarch_init): Ditto.
37 * x86-64-tdep.c (x86_64_init_abi): Ditto.
38 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
39 * s390-tdep.c (s390_gdbarch_init): Ditto.
40 * v850-tdep.c (v850_gdbarch_init): Ditto.
41 * vax-tdep.c (vax_gdbarch_init): Ditto.
42 * sh-tdep.c (sh_gdbarch_init): Ditto.
43 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
44 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
45 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
46 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
47 * i386-tdep.c (i386_gdbarch_init): Ditto.
48 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
49 * cris-tdep.c (cris_gdbarch_init): Ditto.
50 * avr-tdep.c (avr_gdbarch_init): Ditto.
51 * arm-tdep.c (arm_gdbarch_init): Ditto.
52 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
53 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
54
55 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
56
57 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
58 CHILD_FOLLOW_FORK.
59 * hppah-nat.c (saved_vfork_pid): Add.
60 (child_post_follow_vfork): Remove.
61 (child_follow_fork): New function.
62 (child_wait): Call detach_breakpoints after receiving the child vfork.
63 Call child_resume directly instead of going through resume ().
64 Make sure we have the exec before reporting the vfork.
65 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
66 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
67 (follow_fork): New function. Call target_follow_fork.
68 (follow_inferior_reset_breakpoints): New function broken out from
69 old follow_inferior_fork.
70 (resume): Remove hack to follow exec after vfork.
71 * inftarg.c (child_post_follow_vfork): Remove.
72 (child_follow_fork): New function.
73 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
74 * target.c (cleanup_target): Replace to_post_follow_vfork with
75 to_follow_fork.
76 (update_current_target): Likewise.
77 (setup_target_debug): Likewise.
78 (debug_to_post_follow_vfork): Remove.
79 (debug_to_follow_fork): New function.
80 * target.h (struct target_ops): Replace to_post_folow_vfork with
81 to_follow_fork.
82 (child_post_follow_vfork): Remove prototype.
83 (child_follow_fork): Add prototype.
84 (target_post_follow_vfork): Remove macro.
85 (target_follow_fork): Add macro.
86
87 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
88
89 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
90 (child_post_follow_vfork): Cancel pending exec event if we follow
91 the parent.
92 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
93 events have been processed. Return a fake TARGET_WAITKIND_EXECD
94 event at the following wait call if necessary.
95 * infrun.c (follow_vfork): Don't follow_exec here.
96 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
97 case about HP/UX 10.20. Remove code pushed down to
98 hppah-nat.c:child_wait.
99 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
100 vfork_in_flight is set.
101
102 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
103
104 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
105 for the parent's fork event.
106 * infrun.c (handle_inferior_event): Only expect one fork event.
107 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
108 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
109
110 2002-12-10 Andrew Cagney <ac131313@redhat.com>
111
112 * PROBLEMS: Delete reference to PR gdb/725.
113
114 * MAINTAINERS (gdb.c++): Add David Carlton.
115
116 2002-12-09 David Carlton <carlton@math.stanford.edu>
117
118 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
119 * cli/cli-cmds.c: Ditto.
120
121 2002-12-09 Andrew Cagney <cagney@redhat.com>
122
123 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
124 function address in <>.
125 * gdbarch.c: Re-generate.
126
127 2002-12-09 David Carlton <carlton@math.stanford.edu>
128
129 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
130
131 2002-12-09 David Carlton <carlton@math.stanford.edu>
132
133 * linespec.c (symtab_from_filename): New function.
134 (decode_line_1): Move code into symtab_from_filename.
135
136 2002-12-09 Kevin Buettner <kevinb@redhat.com>
137
138 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
139
140 2002-12-07 Andrew Cagney <ac131313@redhat.com>
141
142 * f-valprint.c (info_common_command): Use get_frame_pc.
143 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
144 * ax-gdb.c (agent_command): Ditto.
145 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
146 (rs6000_pop_frame): Ditto.
147 (rs6000_frameless_function_invocation): Ditto.
148 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
149 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
150 * macroscope.c (default_macro_scope): Ditto.
151 * stack.c (print_frame_info_base): Ditto.
152 (print_frame, frame_info, print_frame_label_vars): Ditto.
153 (return_command, func_command, get_frame_language): Ditto.
154 * infcmd.c (finish_command): Ditto.
155 * dummy-frame.c (cached_find_dummy_frame): Ditto.
156 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
157 (break_at_finish_at_depth_command_1): Ditto.
158 (break_at_finish_command_1): Ditto.
159 (until_break_command, get_catch_sals): Ditto.
160 * blockframe.c (func_frame_chain_valid): Ditto.
161 (frameless_look_for_prologue): Ditto.
162 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
163
164 2002-12-08 Andrew Cagney <ac131313@redhat.com>
165
166 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
167 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
168
169 2002-12-08 Andrew Cagney <ac131313@redhat.com>
170
171 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
172 to pure functions.
173 * gdbarch.h, gdbarch.c: Re-generate.
174 * frame.c (get_prev_frame): Explictly assign prev's pc with value
175 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
176
177 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
178 declaration to a function returning a CORE_ADDR.
179 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
180 * arch-utils.c (init_frame_pc_noop): Return the PC value.
181 (init_frame_pc_default): Ditto.
182 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
183 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
184 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
185 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
186 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
187 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
188
189 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
190 to init_frame_pc_noop.
191 (i386_interix_init_frame_pc): Delete function.
192 * z8k-tdep.c (init_frame_pc): Delete function.
193 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
194 (INIT_FRAME_PC_FIRST): Ditto.
195 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
196 (INIT_FRAME_PC_FIRST): Ditto.
197 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
198 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
199 init_frame_pc_noop.
200 (INIT_FRAME_PC_FIRST): Convert to an expression.
201 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
202
203 2002-12-08 Andrew Cagney <ac131313@redhat.com>
204
205 * blockframe.c: Use get_frame_base instead of directly accessing
206 the `struct frame_info' member frame.
207 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
208 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
209
210 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
211
212 * Makefile.in (readline_h): Define.
213 (completer.o): Depend on readline_h.
214 (corelow.o): Ditto.
215 (event-top.o): Ditto.
216 (exec.o): Ditto.
217 (solib.o): Ditto.
218 (source.o): Ditto.
219 (symfile.o): Ditto.
220 (symmisc.o): Ditto.
221 (top.o): Ditto.
222 (tracepoint.o): Ditto.
223 (utils.o): Ditto.
224 (cli-dump.o): Ditto.
225 (tui-hooks.o): Ditto.
226 (tuiWin.o): Ditto.
227
228 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
229
230 More cleanup from import of readline 4.3.
231 * completer.h (complete_line, readline_line_completion_function):
232 Update prototypes.
233 (line_completion_function): Removed, not used outside of completer.c.
234 * completer.c (readline_line_completion_function,
235 complete_function, line_completion_function): Use const for first
236 parameter.
237 (line_completion_function): Make static.
238 (filename_completer): filename_completion_function is now called
239 rl_filename_completion_function
240 * corelow.c: Include <readline/readline.h>.
241 * exec.c: Ditto.
242 * solib.c: Ditto.
243 * source.c: Ditto.
244 * symfile.c: Ditto.
245 * symmisc.c: Ditto.
246 * top.c (init_main): No need to coerce
247 readline_line_completion_function anymore.
248 * cli/cli-dump.c: Include <readline/readline.h>.
249
250 2002-12-08 Andrew Cagney <ac131313@redhat.com>
251
252 * stack.c (frame_info): Use get_prev_frame.
253 * blockframe.c (frame_address_in_block): Ditto.
254 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
255 (rs6000_frameless_function_invocation): Ditto.
256 (rs6000_frame_saved_pc): Ditto.
257 (rs6000_frame_chain): Ditto.
258 * arch-utils.c (init_frame_pc_default): Ditto.
259
260 2002-12-08 Andrew Cagney <ac131313@redhat.com>
261
262 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
263 Delete redundant definition.
264
265 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
266
267 Import of readline 4.3:
268 * cli/cli-cmds.c: Include readline/tilde.h.
269 * cli/cli-setshow.c: Ditto.
270 * defs.h: Don't declare tilde_expand anymore, since readline
271 exports it.
272
273 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
274
275 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
276 -Werror on this file.
277
278 2002-12-07 Andrew Cagney <ac131313@redhat.com>
279
280 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
281 the format name.
282 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
283 * gdbarch.c: Regenerate.
284
285 2002-12-06 Andrew Cagney <ac131313@redhat.com>
286
287 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
288 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
289 provide a default value.
290 * gdbarch.h, gdbarch.c: Regenerate.
291 * frame.c (get_prev_frame): Update. Check
292 DEPRECATED_INIT_FRAME_PC_FIRST_P.
293 * s390-tdep.c (s390_gdbarch_init): Update.
294 * mips-tdep.c (mips_gdbarch_init): Update.
295 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
296 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
297 * alpha-tdep.c (alpha_gdbarch_init): Update.
298
299 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
300
301 * ia64-linux-nat.c: Include gdb_string.h.
302 * alpha-nat.c: Ditto.
303 * ppc-linux-nat.c: Ditto.
304 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
305 Update dependencies.
306
307 2002-12-05 Andrew Cagney <ac131313@redhat.com>
308
309 * gdbthread.h: Include "frame.h".
310 (struct thread_info): Replace step_frame_address with
311 step_frame_id.
312 * inferior.h: Include "frame.h".
313 (step_frame_id): Replace external variable step_frame_address.
314 * gdbthread.h (save_infrun_state): Replace step_frame_address
315 parameter with step_frame_id parameter.
316 (load_infrun_state): Ditto.
317 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
318 * infcmd.c (step_frame_id, step_1, step_once): Update.
319 * thread.c (load_infrun_state, save_infrun_state): Update.
320 * infrun.c (clear_proceed_status, save_inferior_status): Update.
321 (handle_inferior_event, step_over_function): Update.
322 (normal_stop, context_switch, restore_inferior_status): Update.
323 (struct inferior_status): Replace step_frame_address with
324 step_frame_id.
325
326 2002-12-05 David Carlton <carlton@math.stanford.edu>
327
328 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
329 DW_TAG_member as well as a declaration as being a C++ static data
330 member.
331 (read_structure_scope): Combine tests for DW_TAG_member and
332 DW_TAG_variable.
333
334 2002-12-05 David Carlton <carlton@math.stanford.edu>
335
336 * linespec.c (decode_compound): New function.
337 (decode_line_1): Move code into decode_compound.
338
339 2002-12-05 David Carlton <carlton@math.stanford.edu>
340
341 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
342 argument.
343 (lookup_symbol_aux): Do the 'field_of_this' check before checking
344 the static block. See PR gdb/804.
345
346 2002-12-05 David Carlton <carlton@math.stanford.edu>
347
348 * symtab.c (lookup_symbol_aux_block): New function.
349 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
350
351 2002-12-05 Andrew Cagney <ac131313@redhat.com>
352
353 * gdbarch.sh: Dump the predicate function and macro values.
354 (read): Print error on standard error.
355 * gdbarch.c: Regenerate.
356
357 2002-12-04 Kevin Buettner <kevinb@redhat.com>
358
359 * Makefile.in (mips_tdep_h): Define.
360 (mips-tdep.o): Add mips_tdep_h to dependency list.
361 * mips-tdep.h: New file.
362 * mips-tdep.c (mips-tdep.h): Include.
363 (enum mips_abi): Move to mips-tdep.h.
364 (mips_abi): New function.
365
366 2002-12-04 David Carlton <carlton@math.stanford.edu>
367
368 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
369
370 2002-12-04 David Carlton <carlton@math.stanford.edu>
371
372 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
373 function.
374 (lookup_symbol_aux_minsyms): New function.
375
376 2002-12-04 J. Brobecker <brobecker@gnat.com>
377
378 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
379
380 2002-12-04 J. Brobecker <brobecker@gnat.com>
381
382 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
383 which is an obsolete macro name.
384
385 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
386
387 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
388 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
389
390 2002-12-03 H.J. Lu (hjl@gnu.org)
391
392 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
393 (create_breakpoints): Make sure the addr_string field is not
394 NULL.
395
396 2002-12-03 Andrew Cagney <ac131313@redhat.com>
397
398 * sparc-nat.c (fetch_inferior_registers)
399 (store_inferior_registers): Add comment on problem of LWP vs
400 threads.
401
402 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
403 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
404 (lin_lwp_store_registers): Remove.
405 (init_lin_lwp_ops): Use fetch_inferior_registers
406 and store_inferior_registers directly.
407 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
408 (store_inferior_registers): Likewise.
409 Fix PR gdb/725.
410
411 2002-12-03 Andrew Cagney <ac131313@redhat.com>
412
413 * frame.h (get_frame_id): Convert to a function.
414 (null_frame_id, frame_id_p): Declare.
415 (frame_id_eq, frame_id_inner): Declare.
416 (frame_id_build): New function.
417 * frame.c (get_frame_id): Update. Use null_frame_id.
418 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
419 frame_id_inner.
420 (null_frame_id, frame_id_p): Define.
421 (frame_id_eq, frame_id_inner): Define.
422 (frame_id_build): New function.
423 * varobj.c (varobj_create): Update.
424 (varobj_update): Update.
425 * valops.c (value_assign): Update.
426 (new_root_variable): Update.
427 * infrun.c (save_inferior_status): Update.
428 * breakpoint.c (watch_command_1): Update.
429
430 2002-12-03 J. Brobecker <brobecker@gnat.com>
431
432 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
433 (SNAP2): Likewise.
434
435 2002-12-03 Andrew Cagney <cagney@redhat.com>
436
437 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
438 patch.
439
440 * PROBLEMS: Mention PR gdb/725.
441
442 2002-12-03 Andreas Schwab <schwab@suse.de>
443
444 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
445
446 2002-12-02 Adam Fedor <fedor@gnu.org>
447 Klee Dienes <kdienes@apple.com>
448
449 * objc-lang.c (objc_printstr): Add width arg to match
450 printstr prototype.
451 (compare_selectors): Add 'const' to arg types.
452 (compare_classes): Likewise.
453 (find_imps): Cast msym pointer to avoid compiler warning.
454 (print_object_command): Validate the address before
455 passing it to the print routine.
456 (find_objc_msgcall_submethod): Change function argument to
457 return an int.
458 * objc-lang.h: Add 'extern' to all function declarations.
459 (value_nsstring): Add declaration.
460
461 2002-12-02 J. Brobecker <brobecker@gnat.com>
462
463 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
464 Fixes a build failure on HP/UX.
465
466 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
467 failure on HP/UX.
468 (hpread_has_name): Advance declaration to avoid a compilation warning.
469 (pst_syms_count): Add missing variable type. By change, the compiler
470 was defaulting to int, which seems a good choice. Fixes a compilation
471 warning.
472 (pst_syms_size): Likewise.
473
474 2002-12-02 J. Brobecker <brobecker@gnat.com>
475
476 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
477 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
478 later to set the proper gdbarch methods depending on the osabi.
479 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
480
481 2002-12-02 J. Brobecker <brobecker@gnat.com>
482
483 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
484 * osabi.c (gdb_osabi_name): Add strings images for the two new
485 enum values.
486 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
487
488 2002-12-02 Andrew Cagney <ac131313@redhat.com>
489
490 * MAINTAINERS (Java): Global maintainers are responible for Java.
491 (Past Maintainers): Mention both Anthony Green and Per Bothner as
492 part Java maintainers.
493
494 2002-12-02 J. Brobecker <brobecker@gnat.com>
495
496 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
497 Fixes a compilation failure on AiX.
498
499 2002-12-02 J. Brobecker <brobecker@gnat.com>
500
501 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
502 why aix-thread.o is not listed.
503
504 2002-12-01 Andrew Cagney <ac131313@redhat.com>
505
506 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
507 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
508 * gdbarch.h, gdbarch.c: Re-generate.
509 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
510 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
511 * config/pa/tm-hppa.h, frame.h: Update.
512 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
513 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
514 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
515 * cris-tdep.c, alpha-tdep.c: Update.
516 * frame.c (set_unwind_by_pc, create_new_frame): Use either
517 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
518 (get_prev_frame): Ditto.
519
520 2002-11-30 Andrew Cagney <cagney@redhat.com>
521
522 * exec.c (xfer_memory): Replace boolean with int.
523 * p-exp.y: Use 0 instead of false.
524 * corelow.c (gdb_check_format): Change return type to int from
525 boolean.
526 * utils.c: Don't include <curses.h> or <term.h> first.
527
528 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
529
530 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
531 (m68hc11_register_byte): Remove.
532 (m68hc11_gdbarch_init): Don't set the above.
533
534 2002-11-29 Andrew Cagney <cagney@redhat.com>
535
536 * remote-mips.c (mips_initialize): Force a selected frame rebuild
537 by calling get_selected_frame.
538 * ocd.c (ocd_start_remote): Use get_selected frame instead of
539 set_current_frame, create_new_frame, select_frame and
540 get_current_frame.
541 * remote-e7000.c (e7000_start_remote): Ditto.
542 * remote-mips.c (common_open): Ditto
543 * remote-rdp.c (remote_rdp_open): Ditto.
544
545 2002-11-29 Andreas Schwab <schwab@suse.de>
546
547 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
548 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
549 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
550 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
551 read_memory_unsigned_integer instead of read_memory_integer when
552 dealing with addresses and instruction opcodes.
553 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
554 (m68k_linux_frame_saved_pc): Likewise.
555
556 2002-11-29 Andrew Cagney <ac131313@redhat.com>
557
558 * stack.c (selected_frame, select_frame): Move from here ...
559 * frame.c (selected_frame, select_frame): ... to here. Include
560 "language.h".
561 * Makefile.in (frame.o): Update dependencies.
562 * frame.c (get_selected_frame): New function.
563 * frame.h (get_selected_frame): Declare.
564 (deprecated_selected_frame): Rename selected_frame.
565 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
566 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
567 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
568 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
569 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
570 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
571 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
572 * z8k-tdep.c, cli/cli-cmds.c: Update.
573
574 2002-11-29 Andrew Cagney <ac131313@redhat.com>
575
576 * frame.h (get_selected_block): Add comments.
577
578 2002-11-28 Andrew Cagney <ac131313@redhat.com>
579
580 * frame.c (pc_notcurrent): New function.
581 (find_frame_sal): New function.
582 * frame.h (find_frame_sal): Declare.
583 (struct symtab_and_line): Add opaque declaration.
584 * stack.c (print_frame_info_base): Use find_frame_sal instead of
585 find_pc_line.
586 (frame_info): Ditto.
587 * ada-lang.c (find_printable_frame): Ditto.
588
589 2002-11-28 J. Brobecker <brobecker@gnat.com>
590
591 * configure.in: Check that the pthdebug library is recent enough
592 before enabling thread support on native AiX.
593 * configure: Regenerate.
594
595 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
596 from the list of object files as it is now appended by configure
597 if thread support is enabled.
598 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
599 if thread support is enabled.
600
601 2002-11-28 Andrew Cagney <cagney@redhat.com>
602
603 * stack.c (get_selected_block): In-line get_current_block.
604 * frame.h (get_current_block): Delete declaration.
605 * blockframe.c (get_current_block): Delete function.
606
607 2002-11-28 Andrew Cagney <ac131313@redhat.com>
608
609 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
610 USE_GENERIC_DUMMY_FRAMES.
611 * gdbarch.h, gdbarch.c: Regenerate.
612 * valops.c, frame.c: Update.
613 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
614 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
615 * config/pa/tm-hppa.h, blockframe.c: Update.
616 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
617 * m68k-tdep.c, alpha-tdep.c: Ditto.
618
619 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
620 * mips-tdep.c: Ditto.
621
622 2002-11-27 Andrew Cagney <ac131313@redhat.com>
623
624 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
625 (USE_GENERIC_DUMMY_FRAMES): Default to true.
626 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
627 * gdbarch.c, gdbarch.h: Re-generate.
628 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
629 (CALL_DUMMY_LOCATION): Delete macro definition.
630 (PC_IN_CALL_DUMMY): Delete macro definitions.
631
632 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
633 default is already generic_pc_in_call_dummy.
634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
635 * v850-tdep.c (v850_gdbarch_init): Ditto.
636 * sh-tdep.c (sh_gdbarch_init): Ditto.
637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
638 * mips-tdep.c (mips_gdbarch_init): Ditto.
639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
641 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
642 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
643 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
644 * avr-tdep.c (avr_gdbarch_init): Ditto.
645
646 * arm-tdep.c (arm_gdbarch_init): Do not set
647 use_generic_dummy_frames, default is already 1.
648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
649 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
650 * v850-tdep.c (v850_gdbarch_init): Ditto.
651 * sh-tdep.c (sh_gdbarch_init): Ditto.
652 * s390-tdep.c (s390_gdbarch_init): Ditto.
653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
654 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
655 * mips-tdep.c (mips_gdbarch_init): Ditto.
656 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
658 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
659 * i386-tdep.c (i386_gdbarch_init): Ditto.
660 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
661 * frv-tdep.c (frv_gdbarch_init): Ditto.
662 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
663 * cris-tdep.c (cris_gdbarch_init): Ditto.
664 * avr-tdep.c (avr_gdbarch_init): Ditto.
665
666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
667 call_dummy_location, default is already AT_ENTRY_POINT.
668 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
669 * v850-tdep.c (v850_gdbarch_init): Ditto.
670 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
671 * sh-tdep.c (sh_gdbarch_init): Ditto.
672 * s390-tdep.c (s390_gdbarch_init): Ditto.
673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
674 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
675 * mips-tdep.c (mips_gdbarch_init): Ditto.
676 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
678 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
679 * i386-tdep.c (i386_gdbarch_init): Ditto.
680 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
681 * frv-tdep.c (frv_gdbarch_init): Ditto.
682 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
683 * cris-tdep.c (cris_gdbarch_init): Ditto.
684 * avr-tdep.c (avr_gdbarch_init): Ditto.
685 * arm-tdep.c (arm_gdbarch_init): Ditto.
686 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
687
688 2002-11-28 Andrew Cagney <cagney@redhat.com>
689
690 * frame.h: Update comments on set_current_frame, create_new_frame,
691 flush_cached_frames, reinit_frame_cache, select_frame and
692 selected_frame.
693
694 2002-11-27 Andrew Cagney <cagney@redhat.com>
695
696 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
697 deprecated pc_in_call_dummy function.
698 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
699 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
700 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
701 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
702 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
703
704 2002-11-26 Martin M. Hunt <hunt@redhat.com>
705
706 * Makefile.in: Remove Tix dependencies.
707 * acinclude.m4: Ditto.
708 * aclocal.m4: Ditto.
709 * configure.in: Ditto.
710 * configure: Regenerated.
711
712 2002-11-26 Andrew Cagney <ac131313@redhat.com>
713
714 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
715 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
716 * gdbarch.c: Re-generate.
717
718 2002-11-26 Andrew Cagney <ac131313@redhat.com>
719
720 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
721 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
722 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
723 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
724 pc_in_call_dummy_at_entry_point.
725 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
726 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
727 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
728 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
729 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
730 pc_in_call_dummy_on_stack.
731 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
732 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
733 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
734 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
735 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
736
737 2002-11-26 Andrew Cagney <ac131313@redhat.com>
738
739 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
740 pc_in_call_dummy_before_text_end
741 (deprecated_pc_in_call_dummy_after_text_end): Rename
742 pc_in_call_dummy_after_text_end.
743 (deprecated_pc_in_call_dummy_on_stack): Rename
744 pc_in_call_dummy_on_stack.
745 (deprecated_pc_in_call_dummy_at_entry_point): Rename
746 pc_in_call_dummy_at_entry_point.
747 * m68k-tdep.c (m68k_gdbarch_init): Update.
748 * s390-tdep.c (s390_gdbarch_init): Update.
749 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
750 * vax-tdep.c (vax_gdbarch_init): Update.
751 * sparc-tdep.c (sparc_gdbarch_init): Update.
752 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
753 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
754 * i386-tdep.c (i386_gdbarch_init): Update.
755 * frv-tdep.c (frv_gdbarch_init): Update.
756 * cris-tdep.c (cris_gdbarch_init): Update.
757 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
758 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
759 (deprecated_pc_in_call_dummy_after_text_end)
760 (deprecated_pc_in_call_dummy_on_stack)
761 (deprecated_pc_in_call_dummy_at_entry_point): Update.
762 * alpha-tdep.c (alpha_gdbarch_init): Update.
763
764 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
765
766 * acconfig.h (HAVE_PREAD64): Add.
767 * configure.in: Check for pread64.
768 * config.in: Regenerated.
769 * configure: Regenerated.
770 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
771 * linux-proc.c (linux_proc_xfer_memory): New function.
772 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
773
774 2002-11-25 David Carlton <carlton@math.stanford.edu>
775
776 * dwarf2read.c (scan_partial_symbols): Descend into namespace
777 pdi's with no name.
778
779 2002-11-25 Andrew Cagney <ac131313@redhat.com>
780
781 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
782 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
783
784 2002-11-25 Jim Blandy <jimb@redhat.com>
785
786 * symfile.c (init_objfile_sect_indices): New function.
787 (default_symfile_offsets): Move the section-index-initializing
788 stuff into init_objfile_sect_indices, and call that.
789
790 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
791 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
792
793 * symfile.c (syms_from_objfile): Adjust indentation.
794
795 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
796 || info_verbose isn't true.
797
798 2002-11-24 Andrew Cagney <ac131313@redhat.com>
799
800 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
801 default to get_frame_base.
802 * gdbarch.h, gdbarch.c: Regenerate.
803 * arch-utils.c (default_frame_address): Delete function.
804 * arch-utils.h (default_frame_address): Delete declaration
805
806 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
807
808 * varobj.c (find_frame_addr_in_frame_chain):
809 Use get_frame_base instead of FRAME_FP,
810 obvious fix.
811
812 2002-11-19 Andrew Cagney <ac131313@redhat.com>
813
814 * frame.h (FRAME_FP): Delete macro.
815 (get_frame_base): New function declaration.
816 * frame.c (get_frame_base): New function.
817 (get_frame_id): Use ->frame.
818 (frame_find_by_id): Rewrite to use get_frame_id.
819 * blockframe.c: Use get_frame_base instead of FRAME_FP.
820 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
821 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
822 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
823 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
824 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
825 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
826
827 2002-11-24 Andrew Cagney <ac131313@redhat.com>
828
829 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
830
831 2002-11-24 Andrew Cagney <ac131313@redhat.com>
832
833 * frame.c (set_unwind_by_pc): Revert change below, use
834 PC_IN_CALL_DUMMY.
835 (get_prev_frame): Ditto.
836
837 2002-11-24 Andrew Cagney <ac131313@redhat.com>
838
839 * dummy-frame.c (pc_in_dummy_frame): New function.
840 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
841 (find_dummy_frame): Update comment.
842 (generic_pop_current_frame): Use get_frame_type.
843 * dummy-frame.h (pc_in_dummy_frame): Declare.
844 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
845 (create_new_frame): Use pc_in_dummy_frame.
846 (get_prev_frame): Use pc_in_dummy_frame.
847 (frame_saved_regs_register_unwind): Use get_prev_frame.
848 (deprecated_generic_get_saved_register): Use get_prev_frame.
849
850 2002-11-23 Andrew Cagney <ac131313@redhat.com>
851
852 * blockframe.c (find_frame_addr_in_frame_chain): Move function
853 from here ...
854 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
855 (varobj_create): Note that frame ID should be used.
856 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
857
858 2002-11-23 Andrew Cagney <ac131313@redhat.com>
859
860 * breakpoint.c: Include "gdb_assert.h".
861 (deprecated_frame_in_dummy): Assert that generic dummy frames are
862 not being used.
863 * Makefile.in (breakpoint.o): Update dependencies.
864 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
865 deprecated_frame_in_dummy.
866 * stack.c (print_frame_info_base): Ditto.
867 (frame_info): Ditto.
868 (print_frame_info_base): Ditto. Delete dead code.
869
870 2002-11-23 Andreas Schwab <schwab@suse.de>
871
872 * Makefile.in (m68k_tdep_h): Define.
873 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
874 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
875 * m68k-tdep.c: Move register number enum ...
876 * m68k-tdep.h: ... to this new file and rename the constants from
877 E_* to M68K_*. All uses changed.
878 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
879 * abug-rom.c: Include "m68k-tdep.h". Use
880 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
881 * cpu32bug-rom.c: Likewise.
882 * dbug-rom.c: Likewise.
883 * m68k-tdep.c: Likewise.
884 * m68klinux-nat.c: Likewise.
885 * remote-est.c: Likewise.
886 * rom68k-rom.c: Likewise.
887 * config/m68k/tm-linux.h: Likewise.
888
889 2002-11-23 Andrew Cagney <ac131313@redhat.com>
890
891 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
892 dummy frame initialization code.
893 * mips-tdep.c (mips_gdbarch_init): Ditto.
894
895 2002-11-22 Christopher Faylor <cgf@redhat.com>
896
897 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
898 attach will hang.
899
900 2002-11-22 Andrew Cagney <ac131313@redhat.com>
901
902 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
903 to default_frame_address.
904 * gdbarch.h, gdbarch.c: Re-generate.
905
906 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
907 or frame_locals_address to default_frame_address.
908 * m68k-tdep.c (m68k_gdbarch_init): Update.
909 * i386-tdep.c (i386_gdbarch_init): Update.
910 * frv-tdep.c (frv_gdbarch_init): Update.
911 * sh-tdep.c (sh_gdbarch_init): Update.
912 * v850-tdep.c (v850_gdbarch_init): Update.
913 * sparc-tdep.c (sparc_gdbarch_init): Update.
914 * mips-tdep.c (mips_gdbarch_init): Update.
915 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
916 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
918
919 * cris-tdep.c (cris_frame_args_address): Delete function.
920 (cris_frame_locals_address): Delete function.
921 (cris_gdbarch_init): Do not set frame_args_address or
922 frame_locals_address.
923
924 2002-11-22 Michael Snyder <msnyder@redhat.com>
925
926 * thread-db.c (thread_db_load): Tell the user what's going on
927 if dlopen fails on libthread_db.
928
929 2002-11-23 Andreas Schwab <schwab@suse.de>
930
931 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
932 invariant return values.
933
934 2002-11-22 Andreas Schwab <schwab@suse.de>
935
936 * valops.c (value_slice): Move declaration of `offset' to avoid
937 warning.
938
939 2002-11-22 Christopher Faylor <cgf@redhat.com>
940
941 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
942 (struct so_stuff): Add end_addr field.
943 (register_loaded_dll): Calculate and store end address of loaded dll.
944 (solib_address): New function.
945 (child_solib_loaded_library_pathname): Pass carefully constructed
946 section info to safe_symbol_file_add rather than ignoring it.
947 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
948 DLL is loaded.
949 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
950 (child_create_inferior): Fix a compiler warning.
951 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
952 (solib_address): Declare new function.
953
954 2002-11-22 Andreas Schwab <schwab@suse.de>
955
956 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
957 and FPS registers.
958
959 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
960
961 * maint.c (_initialize_maint_cmds): Fix typo. From
962 Francesco Potorti` <pot@gnu.org>.
963
964 2002-11-21 Andrew Cagney <cagney@redhat.com>
965
966 * mips-tdep.c (mips_dump_tdep): Delete references to
967 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
968 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
969 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
970 * printcmd.c (build_address_symbolic): Delete calls to
971 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
972 (address_info): Ditto.
973 Fix PR gdb/773.
974
975 2002-11-19 Klee Dienes <kdienes@apple.com>
976 Adam Fedor <fedor@gnu.org>
977
978 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
979 the ability to explicitly specify the quote characters and word
980 break characters; if NULL is specified for either, use the old
981 behavior of using the characters used by the completer.
982 (skip_chars): New function. Convenience wrapper around
983 skip_quoted_chars to provide the original skip_chars behavior.
984 * completer.h (skip_quoted_chars): Add prototype.
985
986 2002-11-19 Andrew Cagney <ac131313@redhat.com>
987
988 Problems reported by Paul Eggert.
989 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
990
991 2002-11-19 Andreas Schwab <schwab@suse.de>
992
993 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
994 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
995 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
996 (m68k_linux_frame_saved_pc): Move to ...
997 * m68klinux-tdep.c: ... here. New file.
998 * Makefile.in (m68klinux-tdep.o): Add dependencies.
999 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1000
1001 2002-11-19 Adam Fedor <fedor@gnu.org>
1002
1003 * objc-exp.y: Revert to old skip_quoted usage.
1004
1005 2002-11-19 Adam Fedor <fedor@gnu.org>
1006
1007 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1008 (objc_lang_h): Define.
1009 (YYFILES): Add objc-exp.tab.c.
1010 (local-maintainer-clean): Remove objc-exp.tab.c.
1011 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1012
1013 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1014
1015 * p-exp.y (typecast rule): Add automatic dereference of
1016 pascal classes if needed.
1017 (THIS): Set current_type.
1018 Automatically dereference pascal classes.
1019 (typebase rule): Add ^typebase recognition.
1020
1021 2002-11-18 Adam Fedor <fedor@gnu.org>
1022
1023 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1024 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1025 (op_name): Handle OP_OBJC_SELF.
1026 * Makefile.in (expprint.o): Add additional depends.
1027
1028 2002-11-18 Adam Fedor <fedor@gnu.org>
1029
1030 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1031 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1032 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1033 * objc-exp.y: Likewise.
1034
1035 2002-11-18 Adam Fedor <fedor@gnu.org>
1036
1037 * gdb/parser-defs.h: (struct objc_class_str): New structure
1038 for parsing ObjC classes.
1039
1040 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1041
1042 * stack.c (frame_relative_level): Copy function from here ...
1043 * frame.c (frame_relative_level): ...to here.
1044
1045 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1046
1047 * frame.h (enum frame_type): Define.
1048 (get_frame_type): Declare.
1049 (struct frame_info): Add field `type'. Delete field
1050 signal_handler_caller.
1051 (deprecated_set_frame_signal_handler_caller): Declare.
1052 * frame.c (get_frame_type): New function.
1053 (deprecated_set_frame_type): New function.
1054 (create_new_frame): Set the frame's type.
1055 (get_prev_frame): Similar.
1056 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1057 * s390-tdep.c: Ditto.
1058 * m68klinux-nat.c: Ditto.
1059 * ns32k-tdep.c: Ditto.
1060 * x86-64-linux-tdep.c: Ditto.
1061 * vax-tdep.c: Ditto.
1062 * rs6000-tdep.c: Ditto.
1063 * ppc-linux-tdep.c: Ditto.
1064 * i386-interix-tdep.c: Ditto.
1065 * mips-tdep.c: Ditto.
1066 * m68k-tdep.c: Ditto.
1067 * hppa-tdep.c: Ditto.
1068 * ia64-tdep.c: Ditto.
1069 * cris-tdep.c: Ditto.
1070 * arm-tdep.c: Ditto.
1071 * alpha-tdep.c: Ditto.
1072 * i386-tdep.c: Ditto.
1073 * stack.c: Ditto.
1074 * ada-lang.c: Ditto.
1075 * blockframe.c: Update.
1076 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1077 deprecated_set_frame_type instead of signal_handler_caller.
1078 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1079 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1080 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1081
1082 2002-11-18 Klee Dienes <kdienes@apple.com>
1083
1084 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1085
1086 2002-11-18 Klee Dienes <kdienes@apple.com>
1087
1088 * buildsym.c (pop_context): Add comment.
1089
1090 2002-11-18 Klee Dienes <kdienes@apple.com>
1091
1092 * buildsym.h (pop_context): Convert to function, defined in
1093 buildsym.c.
1094 * buildsym.c: Include gdb_assert.h.
1095 (pop_context): Implement as C function. Add check for stack
1096 underflow.
1097 * dbxread.c (process_one_symbol): Complain and stop processing
1098 that symbol if we are already at the top of the context stack for
1099 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1100 when processing N_RBRAC.
1101
1102 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1103
1104 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1105 define.
1106 (struct target_waitstatus): Add opaque definition.
1107 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1108 * exec.c (init_exec_ops): Likewise.
1109 * fork-child.c (clone_and_follow_inferior): Remove.
1110 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1111 * inferior.h (clone_and_follow_inferior): Remove prototype.
1112 * infrun.c (follow_fork_mode_both): Remove.
1113 (follow_fork_mode_kind_names): Remove commented out "both".
1114 (follow_inferior_fork): Remove follow_fork_mode_both support.
1115 * inftarg.c (child_clone_and_follow_inferior): Remove.
1116 (child_post_follow_inferior_by_clone): Remove.
1117 (init_child_ops): Don't set to_clone_and_follow_inferior
1118 or to_post_follow_inferior_by_clone.
1119 * target.c (default_clone_and_follow_inferior): Remove.
1120 (cleanup_target): Don't set to_clone_and_follow_inferior
1121 or to_post_follow_inferior_by_clone.
1122 (find_default_clone_and_follow_inferior): Remove.
1123 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1124 (debug_to_clone_and_follow_inferior): Remove.
1125 (debug_to_post_follow_inferior_by_clone): Remove.
1126 (setup_target_debug): Don't set to_clone_and_follow_inferior
1127 or to_post_follow_inferior_by_clone.
1128 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1129 and to_post_follow_inferior_by_clone.
1130 (child_clone_and_follow_inferior): Remove prototype.
1131 (child_post_follow_inferior_by_clone): Remove prototype.
1132 (target_clone_and_follow_inferior): Remove macro.
1133 (target_post_follow_inferior_by_clone): Remove macro.
1134 (find_default_clone_and_follow_inferior): Remove prototype.
1135
1136 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1137
1138 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1139 inferior_has_vforked, and inferior_has_execd instead of
1140 target_has_forked, target_has_vforked, and target_has_execd.
1141 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1142 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1143 (CHILD_WAIT): Define.
1144 (child_wait): Add prototype.
1145 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1146 Add prototype.
1147 (hpux_has_vforked): Likewise, from child_has_vforked.
1148 (hpux_has_execd): Likewise, from child_has_execd.
1149 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1150 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1151 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1152 and hpux_has_syscall_event instead of the target hooks.
1153 * infrun.c (inferior_has_forked, inferior_has_vforked)
1154 (inferior_has_execd): New functions.
1155 * inftarg.c (not_same_real_pid): Remove.
1156 (child_wait): Remove references to not_same_real_pid,
1157 target_has_forked, target_has_vforked, target_has_execd,
1158 and target_has_syscall_event.
1159 (child_has_forked, child_has_vforked, child_has_execd)
1160 (child_has_syscall_event): Remove.
1161 (init_child_ops): Remove references to child_has_forked,
1162 child_has_vforked, child_has_execd, and child_has_syscall_event.
1163 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1164 (hpux_has_vforked): Likewise, from child_has_vforked.
1165 (hpux_has_execd): Likewise, from child_has_execd.
1166 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1167 * target.c (cleanup_target): Remove references to
1168 to_has_forked, to_has_vforked, to_has_execd, and
1169 to_has_syscall_event.
1170 (update_current_target): Likewise.
1171 (setup_target_debug): Likewise.
1172 (debug_to_has_forked): Remove.
1173 (debug_to_has_vforked): Remove.
1174 (debug_to_has_execd): Remove.
1175 (debug_to_has_syscall_event): Remove.
1176 * target.h (struct target_ops): Remove to_has_forked.
1177 to_has_vforked, to_has_execd, and to_has_syscall_event.
1178 (child_has_forked, child_has_vforked, child_has_execd)
1179 (child_has_syscall_event): Remove prototypes.
1180 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1181 prototypes.
1182 (target_has_forked, target_has_vforked, target_has_execd)
1183 (target_has_syscall_event): Remove macros.
1184
1185 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1186
1187 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1188 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1189 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1190 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1191 * target.c (cleanup_target): Remove reference to
1192 to_can_follow_vfork_prior_to_exec.
1193 (update_current_target): Likewise.
1194 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1195 (setup_target_debug): Remove reference to
1196 to_can_follow_vfork_prior_to_exec.
1197 * target.h (struct target_ops): Remove
1198 to_can_follow_vfork_prior_to_exec.
1199 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1200 (target_can_follow_vfork_prior_to_exec): Remove definition.
1201 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1202 define.
1203 * infrun.c (follow_vfork_when_exec): Remove.
1204 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1205 (follow_exec): Likewise.
1206 (handle_inferior_event): Likewise.
1207 (keep_going): Likewise.
1208
1209 2002-11-15 Andrew Cagney <cagney@redhat.com>
1210
1211 * frame.c (generic_unwind_get_saved_register): Make static.
1212 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1213 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1214 defaults to generic_unwind_get_saved_register.
1215 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1216 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1217 * frv-tdep.c (frv_gdbarch_init): Ditto.
1218 * i386-tdep.c (i386_gdbarch_init): Ditto.
1219 * s390-tdep.c (s390_gdbarch_init): Ditto.
1220 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1221 * v850-tdep.c (v850_gdbarch_init): Ditto.
1222 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1223 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1224 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1225
1226 2002-11-15 Andrew Cagney <cagney@redhat.com>
1227
1228 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1229 i386-tdep.c.
1230
1231 2002-11-15 Andrew Cagney <cagney@redhat.com>
1232
1233 * frame.h (sigtramp_saved_pc): Delete declaration.
1234 * blockframe.c (sigtramp_saved_pc): Delete function.
1235 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1236 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1237 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1238 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1239
1240 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1241
1242 * frame.c (frame_pc_unwind): New function.
1243 (frame_saved_regs_pc_unwind): New function.
1244 (frame_register_unwind): Pass unwind_cache instead of
1245 register_unwind_cache.
1246 (set_unwind_by_pc): Add unwind_pc parameter, set.
1247 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1248 (get_prev_frame): Ditto.
1249 * frame.h (frame_pc_unwind_ftype): Declare.
1250 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1251 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1252 (frame_pc_unwind): Declare.
1253 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1254 (struct dummy_frame): Add comment mentioning that values are for
1255 previous frame.
1256 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1257 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1258 (generic_file_frame_chain_valid): Ditto.
1259 * stack.c (frame_info): Ditto.
1260
1261 2002-11-15 David Carlton <carlton@math.stanford.edu>
1262
1263 * linespec.c (locate_first_half): New function.
1264 (decode_line_1): Move code into locate_first_half.
1265
1266 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1267
1268 * complaints.h: Add comment explaining how to eliminate a
1269 deprecated_complain call.
1270 * complaints.h: Fix spelling errors.
1271
1272 2002-11-15 David Carlton <carlton@math.stanford.edu>
1273
1274 * printcmd.c: Remove #include "disasm.h".
1275
1276 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1277
1278 * frame.h: Move the most relevant interface functions to the start
1279 of the file.
1280
1281 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1282
1283 * regcache.h (deprecated_registers): Rename registers.
1284 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1285 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1286 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1287 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1288 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1289 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1290 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1291 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1292 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1293 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1294 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1295 * v850ice.c: Update.
1296
1297 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1298
1299 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1300 NULL buffer.
1301
1302 2002-11-13 Andrew Cagney <cagney@redhat.com>
1303
1304 * regcache.h (deprecated_read_register_bytes): Rename
1305 read_register_bytes.
1306 (deprecated_write_register_bytes): Rename write_register_bytes.
1307 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1308 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1309 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1310 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1311 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1312 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1313 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1314 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1315 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1316 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1317 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1318 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1319 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1320 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1321
1322 2002-11-13 Jim Blandy <jimb@redhat.com>
1323
1324 * findvar.c (read_var_value): Doc fix.
1325
1326 2002-11-13 Andrew Cagney <cagney@redhat.com>
1327
1328 * regcache.c (struct regcache): Replace passthough_p with
1329 readonly_p.
1330 (regcache_xmalloc): Initialize readonly_p.
1331 (build_regcache): Initialize readonly_p.
1332 (regcache_save): New function.
1333 (regcache_restore): New function.
1334 (regcache_cpy): Re-implement using regcache_save and
1335 regcache_restore.
1336 (regcache_raw_read): Update.
1337 (regcache_cooked_read): When a read-only cache, checked for cached
1338 pseudo register values.
1339 (regcache_raw_write): Assert that the cache is not read-only.
1340 Remove code handling a non-passthrough cache.
1341 * regcache.h (regcache_save): Declare.
1342 (regcache_restore): Declare.
1343
1344 2002-11-13 Andrew Cagney <cagney@redhat.com>
1345
1346 * regcache.c (struct regcache_descr): Add fields
1347 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1348 (init_legacy_regcache_descr): Compute the size of a cooked
1349 register cache and then assign that to sizeof_raw_registers. Set
1350 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1351 (init_legacy_regcache_descr): Ditto.
1352
1353 2002-11-13 Andrew Cagney <cagney@redhat.com>
1354
1355 * regcache.c (register_buffer): Move to near start of file, update
1356 description.
1357 (regcache_raw_read): Use.
1358 (regcache_raw_write): Use.
1359 (struct regcache): Rename raw_registers to registers and
1360 raw_register_valid_p to register_valid_p.
1361 (regcache_xmalloc): Update.
1362 (regcache_xfree): Update.
1363 (register_buffer): Update.
1364 (regcache_cpy): Update.
1365 (regcache_cpy_no_passthrough): Update.
1366 (regcache_valid_p): Update.
1367 (deprecated_grub_regcache_for_registers): Update.
1368 (deprecated_grub_regcache_for_register_valid): Update.
1369 (set_register_cached): Update.
1370 (regcache_raw_write): Update.
1371
1372 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1373
1374 * p-exp.y (name_not_typename): Use copy_name to
1375 set current_type variable for fields of THIS.
1376
1377 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1378
1379 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1380 * monitor.c (init_base_monitor_ops): Likewise.
1381 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1382 * remote-array.c (init_array_ops): Likewise.
1383 * remote-e7000.c (init_e7000_ops): Likewise.
1384 * remote-es.c (init_es1800_ops): Likewise.
1385 (init_es1800_child_ops): Likewise.
1386 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1387 * remote-sim.c (init_gdbsim_ops): Likewise.
1388 * remote-st.c (init_st2000_ops): Likewise.
1389 * sol-thread.c (init_sol_core_ops): Likewise.
1390 (init_sol_thread_ops): Likewise.
1391 * v850ice.c (init_850ice_ops): Likewise.
1392 * win32-nat.c (init_child_ops): Likewise.
1393 * wince.c (init_child_ops): Likewise.
1394
1395 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1396
1397 * utils.c (gdb_realpath): Make rp a constant pointer.
1398
1399 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1400
1401 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1402 a constant buffer; cannonicalize_file_name(); realpath() with a
1403 pathconf() defined buffer, xstrdup().
1404
1405 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1406
1407 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1408 to hang2.C; hang3.c to hang3.C.
1409
1410 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1411
1412 * findvar.c (read_var_value): Reenable TLS code.
1413
1414 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1415 Jim Blandy <jimb@redhat.com>
1416
1417 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1418 * target.c (update_current_target): Add
1419 to_get_thread_local_address.
1420 * target.h (to_get_thread_local_address): Export.
1421 (target_get_thread_local_address): Define.
1422 (target_get_thread_local_address_p): Define.
1423 * thread-db.c: Include solib-svr4.h.
1424 (td_thr_tls_get_addr_p): Define.
1425 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1426 (thread_db_get_thread_local_address): New function.
1427 (init_thread_db_ops): Initialize to_get_thread_local_address.
1428 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1429 * configure: Regenerate.
1430 * config.in: Regenerate.
1431
1432 2002-11-11 David Carlton <carlton@math.stanford.edu>
1433
1434 * linespec.c (set_flags): New function.
1435 (decode_line_1): Move code into set_flags.
1436
1437 2002-11-11 David Carlton <carlton@math.stanford.edu>
1438
1439 * linespec.c (decode_line_1): Move chunks of code to separate
1440 functions.
1441 (initialize_defaults): New function.
1442 (decode_indirect): New function.
1443
1444 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1445
1446 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1447 instead of void_code_ptr.
1448 (sigtramp_saved_pc): Ditto.
1449
1450 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1451 i386_fp_regnum_p.
1452
1453 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1454
1455 * gdbtypes.h (struct main_type): Move artificial flag out of
1456 loc. New member of ``struct field'' named static_kind. Reduce
1457 overloaded meaning of bitsize.
1458 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1459 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1460 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1461
1462 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1463 new fields.
1464 (template_to_fixed_record_type, template_to_static_fixed_type)
1465 (to_record_with_fixed_variant_part): Likewise.
1466 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1467 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1468 * dwarfread.c (struct_type, enum_type): Likewise.
1469 * hpread.c (hpread_read_enum_type)
1470 (hpread_read_function_type, hpread_read_doc_function_type)
1471 (hpread_read_struct_type): Likewise.
1472 * mdebugread.c (parse_symbol): Likewise.
1473
1474 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1475
1476 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1477 * stack.c (print_frame_info_base): Update.
1478 (print_frame_info_base, frame_info): Update.
1479 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1480 (sparc_frame_saved_pc): Update.
1481 * ada-lang.c (find_printable_frame): Update.
1482 * breakpoint.c (deprecated_frame_in_dummy): Update.
1483
1484 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1485
1486 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1487 defined.
1488 (regmap): Extend to cover all registers.
1489 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1490 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1491 definitions.
1492 (fetch_register, sore_register): Simplify.
1493 (old_fetch_inferior_registers, old_store_inferior_registers):
1494 Remove functions.
1495 (cannot_fetch_register, cannot_store_register): Change
1496 implementation to use regmap array to decide which registers
1497 cannot be fetched/stored. This removes $orig_eax from the
1498 registers that cannot be fetched/stored.
1499 (fetch_inferior_registers): Call fetch_register directly instead
1500 of calling old_fetch_inferior_registers.
1501 (store_inferior_registers): Call store_register directly instead
1502 of calling old_store_inferior_registers.
1503 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1504 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1505 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1506
1507 2002-11-09 Klee Dienes <kdienes@apple.com>
1508
1509 * i387-tdep.c (i387_supply_register): When called with NULL as a
1510 buffer, mark the register as not provided (to mirror the behavior
1511 of supply_register).
1512 (i387_supply_fxsave): Ditto.
1513 (i387_supply_fsave): Ditto (inherits the behavior from
1514 i387_supply_register).
1515
1516 2002-11-09 Klee Dienes <kdienes@apple.com>
1517
1518 * blockframe.c (sigtramp_saved_pc): Use
1519 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1520 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1521 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1522
1523 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1524
1525 * frame.c (get_prev_frame): Test prev_p to identify a previously
1526 unwound frame. Initialize prev_p.
1527 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1528 comment.
1529
1530 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1531
1532 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1533 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1534 more comments. Zap dead code.
1535
1536 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1537
1538 * infcmd.c (print_vector_info, print_float_info): Move code that
1539 checks whether the target has any registers and whether there is a
1540 selected frame up, such that it is also used if a target provides
1541 multi-arch definitions of these functions.
1542
1543 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1544
1545 * Makefile.in (DESTDIR): Define.
1546 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1547 prefix.
1548
1549 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1550 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1551
1552 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1553
1554 * i386-linux-tdep.c: Include "reggroups.h".
1555 (i386_linux_register_reggroup_p): New function.
1556 (i386_linux_init_abi): Set register_reggroup_p to
1557 i386_linux_register_reggroup_p.
1558 * i386-tdep.h (i386_register_reggroup_p): Declare.
1559 * i386-tdep.c: Include "reggroups.h".
1560 (i386_init_reggroups): New function.
1561 (i386_add_reggroups): New function.
1562 (i386_register_reggroup_p): New function.
1563 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1564 (_initialize_i386_tdep): Call i386_init_reggroups.
1565 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1566 specific reggroups.
1567
1568 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1569
1570 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1571 request that's available in *BSD.
1572
1573 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1574
1575 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1576 FDOFF_REGNUM.
1577
1578 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1579
1580 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1581 * dummy-frame.c (find_dummy_frame): Rename
1582 generic_find_dummy_frame, make static. Return the dummy frame
1583 instead of the regcache.
1584 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1585 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1586 (dummy_frame_register_unwind): Rename
1587 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1588 * dummy-frame.h (dummy_frame_register_unwind): Rename
1589 generic_call_dummy_register_unwind.
1590
1591 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1592
1593 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1594 except the inclusion of "i386/tm-i386.h", to...
1595 * config/i386/nm-i386v42mp.h: ...here.
1596 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1597
1598 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1599
1600 * Makefile.in (frame.o): Update dependencies.
1601 * blockframe.c (current_frame, frame_obstack_alloc)
1602 (frame_saved_regs_zalloc, get_current_frame)
1603 (set_current_frame, create_new_frame)
1604 (set_unwind_by_pc, get_next_frame)
1605 (flush_cached_frames, reinit_frame_cache)
1606 (frame_saved_regs_register_unwind)
1607 (deprecated_generic_get_saved_register)
1608 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1609 (_initialize_blockframe): Move frame code from here...
1610 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1611 "annotate.h" and "dummy-frame.h".
1612 (_initialize_frame): New function.
1613
1614 2002-11-08 Jim Blandy <jimb@redhat.com>
1615
1616 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1617 when we finish a function a context.
1618 * buildsym.h (outermost_context_p): New macro.
1619 (Bug analyzed by David Edelsohn.)
1620
1621 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1622
1623 * blockframe.c: Include "dummy-frame.h".
1624 (struct dummy_frame, dummy_frame_stack)
1625 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1626 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1627 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1628 (generic_save_call_dummy_addr, generic_pop_current_frame)
1629 (generic_pop_dummy_frame, generic_fix_call_dummy)
1630 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1631 dummy frame code from here...
1632 * dummy-frame.c: ...to here. New file.
1633 * dummy-frame.h: New file.
1634 (generic_call_dummy_register_unwind): Declare.
1635 (generic_find_dummy_frame): Declare.
1636 * Makefile.in (SFILES): Add dummy-frame.c.
1637 (dummy-frame.o): Specify dependencies.
1638 (dummy_frame_h): Define.
1639 (COMMON_OBS): Add dummy-frame.o.
1640 (blockframe.o): Update dependencies.
1641
1642 2002-11-08 Jim Blandy <jimb@redhat.com>
1643
1644 * dwarf2read.c (read_func_scope): Restore local_symbols and
1645 param_symbols after we finish the function context. (Based on a
1646 patch from David Edelsohn.)
1647
1648 2002-11-08 David Carlton <carlton@math.stanford.edu>
1649
1650 * linespec.c (symbol_found): New function.
1651 (minsym_found): New function.
1652 (decode_line_1): Separate out some code into separate functions.
1653
1654 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1655
1656 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1657 the benefit of the interix target.
1658 * i386-tdep.h (i386_frameless_signal_p): Declare.
1659
1660 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1661
1662 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1663 declaration that snuck in from change below.
1664
1665 2002-11-06 Andrew Cagney <cagney@redhat.com>
1666
1667 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1668 all callers.
1669 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1670 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1671 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1672 (i386_mxcsr_regnum_p): new function. Use instead of
1673 MXCSR_REGNUM_P.
1674 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1675 (i386_sse_regnum_p): Declare.
1676 (i386_mxcsr_regnum_p): Declare.
1677 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1678 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1679 (IS_FP_REGNUM): Update definition.
1680 (IS_FPU_CTRL_REGNUM): Update definition..
1681 (IS_SSE_REGNUM): Update definition..
1682 * i386v-nat.c (register_u_addr): Update.
1683 * go32-nat.c (fetch_register): Update.
1684 (store_register): Update.
1685
1686 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1687
1688 Preparation work to convert the hppa targets to multiarch partial.
1689
1690 * hppa-tdep.c: Add new functions replacing macro bodies from
1691 config/pa/tm-hppa.h. These function will be used to initialize
1692 the gdbarch structure. Import some comments from tm-hppa.h,
1693 and place them where appropriate, to avoid loosing them when
1694 we cleanup this file.
1695 (hppa_reg_struct_has_addr): New function.
1696 (hppa_inner_than): New function.
1697 (hppa_stack_align): New function.
1698 (hppa_pc_requires_run_before_use): New function.
1699 (hppa_instruction_nullified): New function.
1700 (hppa_register_byte): New function.
1701 (hppa_register_virtual_type): New function.
1702 (hppa_store_struct_return): New function.
1703 (hppa_cannot_store_register): New function.
1704 (hppa_frame_args_address): New function.
1705 (hppa_frame_locals_address): New function.
1706 (hppa_smash_text_address): New function.
1707 (hppa_coerce_float_to_double): New function. Requires the inclusion
1708 of "language.h".
1709
1710 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1711
1712 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1713 gdbarch-eligible macro to a call to the new associated function
1714 created in hppa-tdep.c.
1715 (INNER_THAN): Likewise.
1716 (STACK_ALIGN): Likewise.
1717 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1718 (INSTRUCTION_NULLIFIED): Likewise.
1719 (REGISTER_BYTE): Likewise.
1720 (REGISTER_VIRTUAL_TYPE): Likewise.
1721 (STORE_STRUCT_RETURN): Likewise.
1722 (CANNOT_STORE_REGISTER): Likewise.
1723 (FRAME_ARGS_ADDRESS): Likewise.
1724 (FRAME_LOCALS_ADDRESS): Likewise.
1725 (SMASH_TEXT_ADDRESS): Likewise.
1726 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1727 (ABOUT_TO_RETURN): Delete, as no longer used.
1728
1729 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1730
1731 * printcmd.c (disassemble_command): Remove obsolete function.
1732 (_initialize_printcmd): Do not create disassemble command here.
1733 * cli/cli-cmds.c (disassemble_command): New function. Implements
1734 disassemble command.
1735 (init_cli_cmds): Create disassemble command here instead.
1736
1737 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1738
1739 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1740
1741 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1742
1743 * regcache.h (regcache_cooked_read_using_offset_hack)
1744 (regcache_cooked_write_using_offset_hack): Delete declarations.
1745 (register_changed): Delete declaration.
1746 * regcache.c (regcache_cooked_read_using_offset_hack)
1747 (regcache_cooked_write_using_offset_hack): Delete functions.
1748 (cooked_xfer_using_offset_hack): Delete function.
1749 (register_changed): Delete function.
1750
1751 2002-11-07 Jim Blandy <jimb@redhat.com>
1752
1753 * macroscope.c: #include "complaints.h".
1754 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1755 but not in the macro table.
1756 * Makefile.in (macroscope.o): Record dependency.
1757
1758 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1759
1760 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1761
1762 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1763
1764 * regcache.c (deprecated_registers_fetched): Update.
1765 * regcache.h (deprecated_registers_fetched): Rename
1766 registers_fetched.
1767 * remote-vxsparc.c (vx_read_register): Update.
1768 * remote-vxmips.c (vx_read_register): Update.
1769 * remote-vx68.c (vx_read_register): Update.
1770 * irix5-nat.c (fetch_core_registers): Update.
1771 * mipsm3-nat.c (fetch_inferior_registers): Update.
1772 * sun3-nat.c (fetch_inferior_registers): Update.
1773 * symm-nat.c (fetch_inferior_registers): Update.
1774 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1775 (fetch_core_registers): Update.
1776 (fetch_kcore_registers): Update.
1777 * mips-nat.c (fetch_inferior_registers): Update.
1778 * corelow.c (get_core_registers): Update.
1779 * a68v-nat.c (fetch_inferior_registers): Update.
1780
1781 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1782
1783 Put in place the framework necessary for multiarching the hppa targets.
1784 * hppa-tdep.c (hppa_gdbarch_init): New function.
1785 (hppa_dump_tdep): New function.
1786 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1787 tdep structure dumper.
1788 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1789 until the multi-arching conversion has partially been completed.
1790
1791 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1792
1793 * valops.c (value_assign): Merge lval_register case into
1794 lval_reg_frame_relative. Use frame_register and
1795 regcache_cooked_write instead of get_saved_register and
1796 write_register_bytes. After flushing the register cache, try to
1797 re-select the selected frame.
1798
1799 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1800
1801 * regcache.h (deprecated_register_valid): Rename register_valid.
1802 * regcache.c: Update.
1803 * ia64-aix-nat.c: Update.
1804 * i386gnu-nat.c: Update.
1805 * alpha-nat.c: Update.
1806 * sparc-nat.c: Update.
1807 * lynx-nat.c: Update.
1808 * remote-mips.c: Update.
1809
1810 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1811
1812 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1813 to end of file, to be more consistent with the pratice followed
1814 by other targets.
1815
1816 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1817
1818 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1819 (print_float_info): Print registers in float_reggroup.
1820 (print_vector_info): Print registers in vector_reggroup.
1821 (default_print_registers_info): When all, print registers in
1822 all_reggroup. Otherwize, print registers in general_reggroup.
1823 (registers_info): Rewrite. Add support for register groups.
1824 Eliminate a goto.
1825
1826 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1827
1828 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1829 ages.
1830 (symtab_symbol_info): Remove eons old ifdeffed out code.
1831 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1832 command.
1833
1834 2002-11-06 Theodore A. Roth <troth@openavr.org>
1835
1836 * c-exp.y: Add missing semi-colons.
1837 * f-exp.y: Add missing semi-colons.
1838 * m2-exp.y: Add missing semi-colons.
1839 * p-exp.y: Add missing semi-colons.
1840 Add empty action to start rule to avoid a type clash error when
1841 building with bison >= 1.50.
1842
1843 2002-11-06 Jim Blandy <jimb@redhat.com>
1844
1845 * macrotab.h (struct macro_source_file): Doc fix.
1846
1847 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1848
1849 * varobj.c (child_exists, cplus_number_of_children): Change
1850 STREQ macro references to strcmp.
1851 (cplus_name_of_child): Change code to handle the fact that
1852 fields are not necessarily contiguous with regards to their
1853 access control. This is a fix for PR gdb/792.
1854
1855 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1856
1857 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1858 * gdbarch.h, gdbarch.c: Regnerate.
1859 * frame.h (frame_register): Declare.
1860 * frame.c (frame_register): New function.
1861 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1862 GET_SAVED_REGISTER, otherwize call
1863 generic_unwind_get_saved_register.
1864 (frame_register_read): Use frame_register instead of
1865 get_saved_register.
1866
1867 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1868
1869 From Jim Ingham <jingham@apple.com>:
1870 * event-top.c (gdb_disable_readline): New function.
1871 (_initialize_event_loop): Move comment.
1872
1873 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1874
1875 * event-loop.c (start_event_loop): Add comment.
1876 Update copyright.
1877
1878 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1879
1880 * infcmd.c (default_print_registers_info): Do not call
1881 PRINT_REGISTER_HOOK.
1882
1883 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1884
1885 * sparc-tdep.c (sparc_print_register_hook): Make static.
1886 (sparc_print_registers_info): New function.
1887 (sparc_do_registers_info): New function.
1888 (sparclet_print_registers_info): New function.
1889 (sparclet_do_registers_info): New function.
1890 (do_sparc_print_registers_info): New function.
1891 (sparc_print_registers): New static function, clone of infcmd.c's
1892 default_print_registers_info.
1893 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1894 (sparclet_do_registers_info): Declare.
1895 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1896 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1897 Re-define.
1898 (sparc_do_registers_info): Declare.
1899 (PRINT_REGISTER_HOOK): Delete macro.
1900 (sparc_print_register_hook): Delete declaration.
1901
1902 2002-11-05 David Carlton <carlton@math.stanford.edu>
1903
1904 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1905 functions.
1906 (lookup_symbol_aux_local): New function.
1907 (lookup_symbol_aux_symtabs): New function.
1908 (lookup_symbol_aux_psymtabs): New function.
1909
1910 2002-11-05 David Carlton <carlton@math.stanford.edu>
1911
1912 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1913 previous values of 'objfile' and 'block'.
1914
1915 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1916
1917 * values.c (value_change_enclosing_type): Set
1918 enclosing_type field correctly also for the case where
1919 more memory needs to be allocated.
1920
1921 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1922
1923 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1924 of puts_filtered.
1925
1926 * i387-tdep.c (i387_print_float_info): Replace calls to
1927 register_read and deprecated_read_register_gen with calls to
1928 frame_register_read, and make the necessary adjustments to the
1929 surrounding code.
1930
1931 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1932
1933 * gdbarch.sh (register_reggroup_p): Allow default value.
1934 * gdbarch.h, gdbarch.c: Regenerate.
1935
1936 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1937
1938 * regcache.h: Add coment indicating replacements for deprecated
1939 functions.
1940
1941 2002-11-02 Andrew Cagney <cagney@redhat.com>
1942
1943 * reggroups.h, reggroups.c: New files.
1944 * regcache.c: Include "reggroups.h".
1945 (enum regcache_dump_what): Add `regcache_dump_groups'.
1946 (regcache_dump): Contract size of the "Type" column. When
1947 specified, dump the register's groups.
1948 (maintenance_print_register_groups): New function.
1949 (_initialize_regcache): Add command `maint print register-groups'.
1950 * Makefile.in (COMMON_OBS): Add reggroups.o
1951 (SFILES): Add reggroups.c.
1952 (reggroups_h): Define.
1953 (regcache.o, gdbarch.o): Update dependencies.
1954 (reggroups.o): Specify dependencies.
1955 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1956 Add opaque declaration for `struct reggroup' in generated .h file.
1957 Include "reggroups.h" in generated .c file.
1958 gdbarch.h, gdbarch.c: Re-generate.
1959
1960 2002-11-02 Andrew Cagney <cagney@redhat.com>
1961
1962 * regcache.h (deprecated_read_register_gen): Rename
1963 read_register_gen.
1964 (deprecated_write_register_gen): Rename write_register_gen.
1965 * i387-tdep.c: Update.
1966 * x86-64-linux-nat.c: Update
1967 * wince.c: Update.
1968 * thread-db.c: Update.
1969 * win32-nat.c: Update.
1970 * mips-tdep.c: Update.
1971 * d10v-tdep.c: Update.
1972 * cris-tdep.c: Update.
1973 * remote-sim.c: Update.
1974 * remote-rdi.c: Update.
1975 * remote-rdp.c: Update.
1976 * frame.c: Update.
1977 * target.c: Update.
1978 * blockframe.c: Update.
1979 * x86-64-tdep.c: Update.
1980 * xstormy16-tdep.c: Update.
1981 * sh-tdep.c: Update.
1982 * s390-tdep.c: Update.
1983 * rs6000-tdep.c: Update.
1984 * sparc-tdep.c: Update.
1985 * i386-tdep.c: Update.
1986 * dwarf2cfi.c: Update.
1987 * regcache.c: Update.
1988
1989 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1990
1991 New interix-specific files:
1992 * config/i386/nm-interix.h: New file.
1993 * config/i386/interix.mh: New file.
1994 * config/i386/interix.mt: New file.
1995 * i386-interix-nat.c: New file.
1996 * i386-interix-tdep.c: New file.
1997
1998 2002-11-01 Andrew Cagney <cagney@redhat.com>
1999
2000 * frame.h (deprecated_generic_get_saved_register): Rename
2001 generic_get_saved_register.
2002 * blockframe.c (deprecated_generic_get_saved_register): Update.
2003 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2004 (xstormy16_frame_saved_register): Update.
2005 * sh-tdep.c (sh_gdbarch_init): Update.
2006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2007 * ia64-tdep.c (ia64_get_saved_register): Update.
2008 * cris-tdep.c (cris_gdbarch_init): Update.
2009 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2010 * arm-tdep.c (arm_gdbarch_init): Update.
2011
2012 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2015
2016 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2017
2018 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2019 trampolines in sigaction.
2020
2021 2002-10-31 Andrew Cagney <cagney@redhat.com>
2022
2023 * h8300-tdep.c: Include "gdb_assert.h".
2024 (h8300_print_register): Add gdbarch, file and frame parameters.
2025 Use frame_read_unsigned_register to read the register's value.
2026 Use fprintf_filtered to display output.
2027 (h8300_print_registers_info): Replace h8300_do_registers_info.
2028 (h8300_gdbarch_init): Set print_registers_info.
2029
2030 2002-10-31 Andrew Cagney <cagney@redhat.com>
2031
2032 * frame.c (frame_read_unsigned_register): New function.
2033 (frame_read_signed_register): New function.
2034 * frame.h (frame_read_unsigned_register): Declare.
2035 (frame_read_signed_register): Declare.
2036
2037 2002-10-31 Andrew Cagney <cagney@redhat.com>
2038
2039 * h8500-tdep.c (h8500_print_registers_info): New static function,
2040 clone of infcmd.c's default_print_registers_info.
2041 (h8500_do_registers_info): New funtion.
2042 (h8500_print_register_hook): Rename print_register_hook, make
2043 static.
2044
2045 * config/h8500/tm-h8500.h: Update copyright.
2046 (DEPRECATED_DO_REGISTERS_INFO): Define.
2047 (h8500_do_registers_info: Declare.
2048 (PRINT_REGISTER_HOOK): Delete macro.
2049 (print_register_hook): Delete function.
2050
2051 2002-10-31 Andrew Cagney <cagney@redhat.com>
2052
2053 * z8k-tdep.c (z8k_print_register_hook): Make static.
2054 (z8k_print_registers_info): New static function, clone of
2055 infcmd.c's default_print_registers_info.
2056 (z8k_do_registers_info): New function. Wrap
2057 z8k_print_registers_info.
2058 * config/z8k/tm-z8k.h: Update copyright.
2059 (PRINT_REGISTER_HOOK): Delete macro.
2060 (z8k_print_register_hook): Delete declaration.
2061 (DEPRECATED_DO_REGISTERS_INFO): Define.
2062 (z8k_do_registers_info): Declare.
2063
2064 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2065
2066 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2067 as this is already provided by value.h, and was actually causing
2068 a compilation error because of a conflict in parameter type
2069 declaration due to a missing const keyword.
2070 (low_text_segment_addres): Fix a compilation warning.
2071
2072 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2073
2074 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2075 registers without a name.
2076 (mips_linux_cannot_store_register): Don't store registers without
2077 a name.
2078
2079 2002-10-28 David Carlton <carlton@math.stanford.edu>
2080
2081 * symtab.c (find_addr_symbol): Delete. (It was already commented
2082 out.)
2083 * symtab.h: Delete prototype for find_addr_symbol.
2084
2085 2002-10-26 Andrew Cagney <cagney@redhat.com>
2086
2087 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2088 DO_REGISTERS_INFO.
2089 gdbarch.h, gdbarch.c: Re-generate.
2090 * infcmd.c (default_print_registers_info): Update reference.
2091 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2092 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2093 * sh-tdep.c (sh_gdbarch_init): Ditto.
2094 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2095 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2096
2097 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2098
2099 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2100 cfi_init_extra_frame_info.
2101 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2102 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2103
2104 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2105 target where necessary. Add more comments and remove the ones
2106 that don't provide any useful information.
2107
2108 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2109 deprecated_read_register_dummy with
2110 frame_unwind_unsigned_register.
2111
2112 * i386-tdep.c (i386_extract_struct_value_address): Use
2113 regcache_raw_read_unsigned instead of
2114 regcache_cooked_read_unsigned since we know that the register
2115 we're reading isn't a pseudo register. Rename variable 'val' into
2116 the more descriptive 'addr'.
2117
2118 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2119 (x86_64_push_return_address): Add comment.
2120 (x86_64_pop_frame): Make static.
2121 (examine_argument): Clarify comment.
2122 (x86_64_skip_prologue): Make prolog_expact variable static.
2123
2124 * dwarf2cfi.c: Fix some formatting problems.
2125 (context_cpy, read_encoded_pointer): Clarify comments.
2126
2127 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2128 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2129 i386 target back into x86_64_gdbarch_init. Add some comments and
2130 remove meaningless ones.
2131
2132 2002-10-25 Andrew Cagney <cagney@redhat.com>
2133
2134 * complaints.h (struct deprecated_complaint): Rename `struct
2135 complaint'.
2136 * complaints.c (complain): Update.
2137 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2138 incorrect comment indicating that "symfile.h" was being included
2139 for the `struct complaint' definition.
2140 * remote-vx.c: Update.
2141 * objc-lang.c: Update.
2142 * xcoffread.c: Update.
2143 * hpread.c: Update.
2144 * mdebugread.c: Update.
2145 * stabsread.c: Update.
2146 * dwarf2read.c: Update.
2147 * dwarfread.c: Update.
2148 * elfread.c: Update.
2149 * coffread.c: Update.
2150 * stabsread.h: Update.
2151 * dbxread.c: Update.
2152 * buildsym.c: Update.
2153 * gdbtypes.c: Update.
2154 * macrotab.c: Update.
2155
2156 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2157
2158 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2159 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2160 (x86_64_init_abi): ...new function.
2161
2162 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2163 * i386v-nat.c: Include "i386-tdep.h".
2164
2165 2002-10-25 Andrew Cagney <cagney@redhat.com>
2166
2167 * gdbtypes.c (address_space_name_to_int): Update.
2168 (address_space_int_to_name): Update.
2169 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2170 multi-arch predicate.
2171 (address_class_name_to_type_flags): Ditto.
2172 * gdbarch.h, gdbarch.c: Re-generate.
2173
2174 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2175
2176 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2177
2178 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2179
2180 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2181
2182 * symtab.h (INIT_SAL): Delete macro.
2183 (init_sal): Export.
2184 * symtab.c (init_sal): New function.
2185
2186 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2187 to init_sal function call.
2188 (find_sal_from_funcs_and_line): Ditto.
2189 (all_sals_for_line): Ditto.
2190 * breakpoint.c (create_internal_breakpoint): Ditto.
2191 (create_fork_vfork_event_catchpoint): Ditto.
2192 (create_exec_event_catchpoint): Ditto.
2193 (parse_breakpoint_sals): Ditto.
2194 (watch_command_1): Ditto.
2195 (handle_gnu_4_16_catch_command): Ditto.
2196 (clear_command): Ditto.
2197 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2198 * infcmd.c (run_stack_dummy): Ditto.
2199 * infrun.c (process_event_stop_test): Ditto.
2200 (check_sigtramp2): Ditto.
2201 (step_over_function): Ditto.
2202 * linespec.c (decode_line_2): Ditto.
2203 (decode_line_1): Ditto.
2204 * source.c (line_info): Ditto.
2205 * symtab.c (find_pc_sect_line): Ditto.
2206
2207 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2208
2209 * dwarf2cfi.c (struct context)
2210 (struct context_reg): Moved to dwarf2cfi.h
2211 (context_alloc, frame_state_alloc, context_cpy):
2212 Made extern instead of static, removed prototypes.
2213 * dwarf2cfi.h (struct context)
2214 (struct context_reg): New, moved from dwarf2cfi.c
2215 (context_alloc, frame_state_alloc, context_cpy):
2216 New prototypes.
2217 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2218 Changed from static to extern.
2219 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2220 (LINUX_SIGCONTEXT_FP_OFFSET)
2221 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2222 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2223 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2224 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2225 set_gdbarch_*() calls now use x86-64 specific functions
2226 instead of DWARF2 CFI ones.
2227 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2228 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2229 (x86_64_init_extra_frame_info): New prototypes.
2230
2231 2002-10-23 David Carlton <carlton@math.stanford.edu>
2232
2233 * linespec.c: #include "parser-defs.h".
2234 Delete prototype for find_template_name_end.
2235 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2236
2237 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2238
2239 * NEWS: add recent mi fixes.
2240 * varobj.c (struct varobj): Add new "updated" flag.
2241 (new_variable): Default "updated" flag to 0.
2242 (varobj_set_value): Set "updated" flag to 1 if value
2243 changes.
2244 (varobj_update): Check varobj "updated" flag before
2245 comparing old and refreshed values. Fix for
2246 PR gdb/702.
2247
2248 2002-10-23 David Carlton <carlton@math.stanford.edu>
2249
2250 * parse.c (parse_exp_1): Use BLOCK_START.
2251 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2252 SYMBOL_BLOCK_VALUE.
2253 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2254
2255 2002-10-23 David Carlton <carlton@math.stanford.edu>
2256
2257 * symtab.c: Delete cplusplus_hint.
2258 Delete prototype for find_template_name_end.
2259
2260 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2261
2262 * symtab.h: Update comment.
2263
2264 2002-10-23 Michael Snyder <msnyder@redhat.com>
2265
2266 * printcmd.c (address_info): Restore quotes in output.
2267 * valops.c (value_of_local): Restore quotes in error message.
2268
2269 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2270
2271 * symtab.c (symbol_demangled_name): New function.
2272 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2273 turning most of it into a function.
2274 (symbol_demangled_name): Export.
2275
2276 2002-10-23 Michael Snyder <msnyder@redhat.com>
2277
2278 * valops.c (value_of_local): Restore quotes in error message.
2279
2280 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2281
2282 * symtab.c (symbol_init_language_specific): New function.
2283 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2284 turning most of it into a function.
2285 (symbol_init_language_specific): Export.
2286
2287 2002-10-23 David Carlton <carlton@math.stanford.edu>
2288
2289 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2290 (dwarf_attr_name): Ditto.
2291 (dwarf_type_encoding_name): Ditto.
2292 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2293 (process_die): Handle DW_TAG_namespace,
2294 DW_TAG_imported_declaration, DW_TAG_imported_module.
2295 (read_namespace): New function.
2296
2297 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2298
2299 * configure.in: Define NEW_PROC_API on Interix too.
2300 * configure: Regenerate.
2301
2302 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2303
2304 * configure: Regenerate using the proper version of autoconf.
2305
2306 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2307
2308 * findvar.c (read_var_value): Temporarily disable TLS code, until
2309 complete TLS support is added.
2310
2311 2002-10-21 Jim Blandy <jimb@redhat.com>
2312 Elena Zannoni <ezannoni@redhat.com>
2313
2314 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2315 for thread local storage locations.
2316 (struct symbol): Add objfile field.
2317 (SYMBOL_OBJFILE): Define.
2318 * dwarf2read.c (is_thread_local): New static variable.
2319 (new_symbol): If variable is in thread local fill in address class
2320 and objfile appropriately.
2321 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2322 stack operation.
2323 * printcmd.c (address_info): Print the information for thread
2324 local storage variable.
2325 * findvar.c (read_var_value): In case of thread local variable,
2326 defer to the target vector code to compute address.
2327
2328 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2329
2330 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2331 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2332
2333 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2334
2335 * symtab.h (address_class): Rename
2336 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2337 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2338 * printcmd.c (address_info): Ditto.
2339 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2340
2341 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2342
2343 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2344 DBREG_DRX macro to acces debug registers.
2345
2346 * Makefile.in (i386obsd-tdep.o): New target.
2347
2348 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2349 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2350
2351 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2352 * config/i386/obsd.mt: New file.
2353 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2354 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2355 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2356 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2357 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2358 * i386obsd-tdep.c: New file.
2359
2360 2002-10-19 Adam Fedor <fedor@gnu.org>
2361
2362 * objc-exp.y (name_not_typename): Fix invalid comment.
2363
2364 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2365
2366 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2367 to allocate partial syms and macro byte caches.
2368
2369 2002-10-18 David Carlton <carlton@math.stanford.edu>
2370
2371 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2372
2373 2002-10-18 Adam Fedor <fedor@gnu.org>
2374
2375 * stabsread.c (find_name_end): New function.
2376 (define_symbol): Use it.
2377
2378 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2379
2380 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2381 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2382 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2383 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2384
2385 2002-10-17 David Carlton <carlton@math.stanford.edu>
2386
2387 * symfile.h: Add opaque declaration for struct obstack.
2388 Declare obsavestring to take a const char *.
2389 * symfile.c (obsavestring): Make first argument a const char *.
2390
2391 2002-10-16 Adam Fedor <fedor@gnu.org>
2392
2393 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2394 names when matching breakpoints in current file.
2395
2396 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2397
2398 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2399 (read_tag_pointer_type): Add address class support.
2400 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2401 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2402 New methods.
2403 * gdbarch.h, gdbarch.c: Regenerate.
2404 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2405 (make_type_with_address_space, recursive_type_dump): Add address
2406 class support.
2407 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2408 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2409 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2410
2411 2002-10-16 Klee Dienes <kdienes@apple.com>
2412
2413 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2414 to get the last character of a char[] buffer, not
2415 name[sizeof(vptr_name)-1].
2416
2417 2002-10-14 Adam Fedor <fedor@gnu.org>
2418
2419 * symtab.h: New objc_specific struct.
2420 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2421 (SYMBOL_DEMANGLED_NAME): Likewise.
2422
2423 2002-10-14 Adam Fedor <fedor@gnu.org>
2424
2425 * symfile.c (init_filename_language_table): Add ObjC file extension.
2426
2427 2002-10-14 Adam Fedor <fedor@gnu.org>
2428
2429 * utils.c (puts_filtered_tabular): New function.
2430 (fprintf_symbol_filtered): Get ObjC demangled name.
2431 * defs.h (puts_filtered_tabular): Declared.
2432
2433 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2434
2435 * c-lang.h (c_type_print_varspec_prefix): Delete.
2436 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2437 ``need_post_space'' parameter. Adjust all callers.
2438
2439 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2440
2441 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2442 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2443 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2444 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2445
2446 2002-10-13 Adam Fedor <fedor@gnu.org>
2447
2448 * source.c (print_source_lines): Update comments.
2449
2450 2002-10-13 Adam Fedor <fedor@gnu.org>
2451
2452 * valops.c (value_of_local): New function.
2453 (value_of_this): Use it.
2454 * value.h (value_of_local): Declared.
2455
2456 2002-10-13 Adam Fedor <fedor@gnu.org>
2457
2458 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2459 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2460
2461 2002-10-12 Adam Fedor <fedor@gnu.org>
2462
2463 * language.c (binop_result_type): Add language_objc to case.
2464 (integral_type): Likewise.
2465 (character_type): Likewise.
2466 (string_type): Likewise.
2467 (boolean_type): Likewise.
2468 (structured_type): Likewise.
2469 (binop_type_check): Likewise.
2470
2471 2002-10-11 Adam Fedor <fedor@gnu.org>
2472
2473 * printcmd.c (address_info): Print 'self' for ObjC.
2474
2475 2002-10-11 Adam Fedor <fedor@gnu.org>
2476
2477 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2478 OP_SELF.
2479
2480 2002-10-11 Adam Fedor <fedor@gnu.org>
2481
2482 * language.h (CAST_IS_CONVERSION): Add language_objc.
2483
2484 2002-10-11 Adam Fedor <fedor@gnu.org>
2485
2486 * defs.h (enum language): Add language_objc.
2487
2488 2002-10-11 Klee Dienes <kdienes@apple.com>
2489
2490 * corefile.c (read_memory_typed_address): New function.
2491 * gdbcore.h (read_memory_typed_address): Add prototype.
2492 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2493 to read a value destined for a CORE_ADDR, not read_memory_integer.
2494 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2495 (f77_get_dynamic_lowerbound): Ditto.
2496
2497 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2498
2499 * utils.c (string_to_core_addr): After turning string into
2500 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2501 which will do necessary sign-extension, etc.
2502
2503 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2504
2505 * c-exp.y (THIS): Delete token and grammar rule.
2506 (yylex): Don't return THIS.
2507 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2508 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2509 * demangle.c (cplus_markers): Update comment. Put '$'
2510 first. Remove CPLUS_MARKER.
2511 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2512 * jv-exp.y (THIS): Delete token and grammar rule.
2513 (yylex): Don't return THIS.
2514 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2515 * objc-exp.y (THIS): Delete token and grammar rule.
2516 (yylex): Don't return THIS.
2517 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2518 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2519 (read_member_functions): Likewise for opname.
2520 (read_tilde_fields): Use is_cplus_marker.
2521
2522 * defs.h (CPLUS_MARKER): Don't define.
2523 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2524 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2525 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2526 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2527 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2528
2529 * config/i386/tm-i386v4.h: Delete file.
2530 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2531 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2532 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2533 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2534 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2535 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2536 * config/i386/i386v4.mt (TM_FILE): Likewise.
2537 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2538
2539 2002-10-10 Marko Mlinar <markom@opencores.org>
2540
2541 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2542 accidentially not commited 2002-10-09
2543 * gdbarch.h, gdbarch.c: Re-generate.
2544
2545 2002-10-09 Marko Mlinar <markom@opencores.org>
2546
2547 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2548 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2549 * gdbarch.h, gdbarch.c: Re-generate.
2550
2551 2002-10-08 Petr Sorfa <petrs@caldera.com>
2552
2553 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2554
2555 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2556 so we can work on more than one compilation unit at a time. This
2557 helps prepare GDB to handle inter-CU die references.
2558 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2559 the code to be defined before struct comp_unit_head.
2560 (comp_unit_head): Added new members - offset, cu_head,
2561 begin_die, next and dwarf2_abbrevs.
2562 (dwarf2_abbrevs): Removed single static var; now member of
2563 struct comp_unit_head.
2564 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2565 members.
2566 (psymtab_to_symtab_1): Changed to work with the new
2567 struct comp_unit_head.
2568 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2569 constructs the dwarf2_abbrevs[] inside the cu_header.
2570 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2571 dwarf2_abbrev table to clean up.
2572 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2573 handling of dwarf2_abbrevs inside the cu_header.
2574 (read_partial_die): Now supports the call to the new
2575 dwarf2_lookup_abbrev.
2576 (read_full_die): Now supports the call to the new
2577 dwarf2_lookup_abbrev.
2578
2579 2002-10-06 Christopher Faylor <cgf@redhat.com>
2580
2581 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2582 insure that shell variables, such as "transformed_name" are propagated
2583 to later shell statements in rule.
2584
2585 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2586
2587 * config/i386/nm-i386sco.h: Add protection against
2588 multiple-inclusion. Include "i386/nm-i386v.h".
2589 (REGISTER_U_ADDR): Remove define.
2590 (i386_register_u_addr): Remove prototype.
2591
2592 2002-10-04 Michael Snyder <msnyder@redhat.com>
2593
2594 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2595 before treating it as a single-step event.
2596
2597 2002-10-03 Adam Fedor <fedor@gnu.org>
2598
2599 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2600 (objc_demangle): Remove assignment in if statements, Replace
2601 free with xfree.
2602 (add_msglist): Likewise.
2603 (end_msglist): Likewise.
2604 (complare_selectors): Likewise.
2605 (selectors_info): Likewise.
2606 (compare_classes): Likewise.
2607 (classes_info): Likewise.
2608 (print_object_command): Likewise.
2609 (find_objc_msgcall_submethod): Replace PTR with void *.
2610 * objc-lang.h: Remove check for __STDC__.
2611
2612 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2613
2614 * ui-out.h (ui_out_field_fmt_int): New prototype.
2615 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2616 of field width and alignment.
2617 * stack.c (print_frame_info_base): When printing frame level, use
2618 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2619 PR gdb/192
2620
2621 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2622
2623 * MAINTAINERS: Add self to Write After Approval list.
2624
2625 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2626
2627 * infcmd.c (interrupt_target_command_wrapper): Delete.
2628 (interrupt_target_command): Make non static.
2629 (nofp_registers_info): Make static.
2630 * stack.c (return_command_wrapper): Delete.
2631 (return_command): Make non static.
2632
2633 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2634
2635 * event-top.c (gdb_setup_readline): New function. Code moved from
2636 _initialize_event_loop().
2637 (_initialize_event_loop): Call gdb_setup_readline().
2638
2639 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2640
2641 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2642 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2643 * gdbarch.h, gdbarch.c: Re-generate.
2644
2645 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2646
2647 Fix PR gdb/778
2648 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2649 before recursing.
2650 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2651 of fill_in_vptr_fieldno.
2652
2653 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2654
2655 * inferior.h (registers_info, stepi_command, nexti_command,
2656 continue_command, interrupt_target_command): Export from infcmd.c.
2657 * frame.h (args_info, selected_frame_level_changed_hook,
2658 return_command): Export from stack.c.
2659 * v850ice.c (stepi_command, nexti_command, continue_command): use
2660 prototypes from inferior.h.
2661 * tracepoint.c (registers_info, args_info, locals_info): Use
2662 prototypes from frame.h and inferior.h.
2663 * Makefile.in (mi-main.o): Add dependency on frame.h.
2664
2665 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2666
2667 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2668 value in register 3 adjusted by ppc_gp0_regnum.
2669
2670 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2671
2672 2002-10-02 Marko Mlinar <markom@opencores.org>
2673
2674 * MAINTAINERS: Add myself to the Write After Approval list.
2675
2676 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2677
2678 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2679 of the section for the N64 ABI, fixed.
2680
2681 * config/mips/tm-irix6.h: Include solib.h.
2682
2683 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2684
2685 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2686 GNU operators.
2687
2688 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2689
2690 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2691 and that "mi0" syntax has been removed.
2692
2693 2002-09-30 David Carlton <carlton@math.stanford.edu>
2694
2695 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2696 * ppc-sysv-tdep.c: #include "gdb_string.h".
2697 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2698 pacify GCC.
2699
2700 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2701
2702 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2703 "vrsave"'s register number.
2704
2705 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2706
2707 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2708 use frame_unwind_signed_register to obtain the PC.
2709 (mips_frame_chain): Handle a generic dummy frame.
2710 (mips_init_extra_frame_info): When a generic dummy frame, don't
2711 re-compute the frame base.
2712 (mips_pop_frame): Handle generic dummy frames.
2713 (mips_gdbarch_init): When generic dummy frames, set
2714 use_generic_dummy_frames, push_dummy_frame to
2715 generic_push_dummy_frame, pc_in_call_dummy to
2716 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2717 generic_save_dummy_frame_tos.
2718
2719 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2720
2721 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2722 against TOP when TOP was explictly set.
2723 (generic_push_dummy_frame): Set TOP to zero.
2724
2725 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * event-loop.c (start_event_loop): Rename variable 'result' to
2728 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2729
2730 2002-09-30 Keith Seitz <keiths@redhat.com>
2731
2732 * gdb-events.sh (selected_thread_changed): New event.
2733 * gdb-events.c: Regenerated.
2734 * gdb-events.h: Regenerated.
2735
2736 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2737
2738 * MAINTAINERS: Add self to Write After Approval list.
2739
2740 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2741
2742 * disasm.c: New file.
2743 * disasm.h: New file.
2744 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2745 (compare_lines): Ditto.
2746 (dump_insns): Ditto.
2747 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2748 argument.
2749 (do_assembly_only): Ditto.
2750 (do_disassembly): Renamed to gdb_disassembly and moved to
2751 disasm.c. Sdded uiout argument.
2752 * Makefile.in: Add new files. Reorder SFILES list. Update
2753 dependencies. Include libgdb.a later in the insight executable.
2754
2755 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2756
2757 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2758 bfd/elf64-alpha-fbsd.c.
2759
2760 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2761
2762 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2763 i386gnu-tdep.c.
2764
2765 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2766
2767 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2768 __FUNCTION__.
2769 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2770 function name.
2771 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2772 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2773 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2774 (S_msg_sig_post_reply): Ditto.
2775
2776 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2777
2778 * sh-tdep.c (sh_use_struct_convention): Use definition according
2779 to ABI.
2780 (sh_push_arguments): Store in register with correct endianess.
2781 (sh_default_store_return_value): Ditto.
2782 (sh_gdbarch_init): Set sizeof long double to 8.
2783
2784 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2785
2786 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2787 Fix some whitespace problems.
2788
2789 2002-09-27 David Carlton <carlton@math.stanford.edu>
2790
2791 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2792 (mcore-tdep.o): Ditto.
2793 (ns32k-tdep.o): Ditto.
2794 (ns32knbsd-tdep.o): Ditto.
2795 (sh3-rom.o): Ditto.
2796 (vax-tdep.o): Ditto.
2797 * cris-tdep.c: #include "gdb_string.h"
2798 * mcore-tdep.c: Ditto.
2799 * ns32k-tdep.c: Ditto.
2800 * ns32knbsd-tdep.c: Ditto.
2801 * sh3-rom.c: Ditto.
2802 * vax-tdep.c: Ditto.
2803
2804 2002-09-27 David Carlton <carlton@math.stanford.edu>
2805
2806 * config/djgpp/fnchange.lst: Add entries for
2807 gdb/testsuite/gdb.c++/m-static files.
2808
2809 2002-09-27 Jim Wilson <wilson@redhat.com>
2810
2811 * MAINTAINERS: Add myself to the Write After Approval list.
2812
2813 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2814
2815 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2816
2817
2818 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2819
2820 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2821 frame.
2822
2823 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2824
2825 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2826 (rs6000_struct_return_address): Delete variable.
2827 (rs6000_store_struct_return): Update.
2828 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2829 deprecated_extract_struct_value_address.
2830 (rs6000_frame_align): New function.
2831 (rs6000_gdbarch_init): Set frame_align.
2832
2833 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2834
2835 From Grace Sainsbury <graces@redhat.com>:
2836 * Makefile.in (gdbtk-main.o): New target.
2837 (gdb.o): New target.
2838 (main_h): Define.
2839 (main.o): Update dependencies.
2840 (gdb$(EXEEXT)): Add gdb.o.
2841 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2842 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2843 (SUBDIR_GDBTK_CLEAN): Set.
2844 (install-gdbtk): Install the insight binary.
2845 (uninstall-gdbtk): New target.
2846 (all-gdbtk, clean-gdbtk): New rule.
2847 * top.c (use_windows): Default to zero.
2848 * main.c: Include "main.h".
2849 (main): Delete.
2850 (struct captured_main_args): Delete.
2851 (gdb_main): New function.
2852 * main.h: New file.
2853 * gdb.c: New File.
2854
2855 2002-09-25 Andrew Cagney <cagney@redhat.com>
2856
2857 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2858 (frame_map_regnum_to_name): New function.
2859 (frame_map_name_to_regnum): New function.
2860 * frame.h (frame_map_name_to_regnum): Declare.
2861 (frame_map_regnum_to_name): Declare.
2862 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2863 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2864 * parse.c: Do not include "builtin-regs.h".
2865 (target_map_name_to_register): Delete function.
2866 (write_dollar_variable): Use frame_map_name_to_regnum.
2867 * parser-defs.h (target_map_name_to_register): Delete declaration.
2868 * expprint.c: Include "frame.h".
2869 (print_subexp): Use frame_map_regnum_to_name.
2870 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2871 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2872
2873 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2874
2875 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2876 wasn't saved, and the next innermost frame is a dummy, return the
2877 dummy frame's link register.
2878
2879 2002-09-24 Jim Blandy <jimb@redhat.com>
2880
2881 Fix from Paul Breed:
2882 * main.c (captured_main): Add a `break' after the case for 'b'.
2883
2884 2002-09-24 Keith Seitz <keiths@redhat.com>
2885
2886 * varobj.c (c_type_of_child): Use get_target_type instead
2887 of TYPE_TARGET_TYPE.
2888
2889 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2890
2891 * source.c (get_current_or_default_source_symtab_and_line): Remove
2892 function.
2893 (set_default_source_symtab_and_line): New function. Attempts to
2894 determine a source file to list lines from if one is not currently
2895 defined.
2896 (get_current_source_symtab_and_line): Initialize sal.pc and
2897 sal.end fields.
2898 (set_current_source_symtab_and_line): Mark argument as const.
2899 * source.h: Update declarations and comments.
2900 * linespec.c (decode_line_1): Replace call to removed routine above.
2901 * stack.c (print_frame_info_base): Ditto.
2902 * cli/cli-cmds.c (edit_command): Ditto.
2903 (list_command): Ditto.
2904
2905 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2906
2907 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2908 sal.pc and sal.end fields.
2909 (get_current_or_default_source_symtab_and_line): Ditto.
2910 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2911 so we do not cause a new source symtab to be searched for (reverting an
2912 unintentional change from the 2002-09-20 patch).
2913 * scm-lang.c (scm_unpac): Ditto.
2914
2915 2002-09-21 Andrew Cagney <cagney@redhat.com>
2916
2917 * complaints.c (symfile_explanations): Remove new-line from
2918 ``isolated_message''.
2919 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2920 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2921
2922 2002-09-20 Nick Clifton <nickc@redhat.com>
2923
2924 * NEWS: Announce that V850EA ISA is no longer supported.
2925 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2926
2927 2002-09-20 David Carlton <carlton@math.stanford.edu>
2928
2929 * Makefile.in (c-lang.o): Correct dependencies.
2930 (utils.o): Gather dependencies.
2931 (charset.o): Move.
2932 * c-lang.c: #include "gdb_string.h"
2933
2934 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2935
2936 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2937 * cli/cli-cmds.c (list_command): New function. Implements the new
2938 cli edit command.
2939 (_init_cli_cmds): Add new command definition.
2940 * gdb.1: Document edit command.
2941 * doc/gdb.texinfo: Document edit command.
2942
2943 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2944
2945 * source.c: Make global variables current_source_symtab and
2946 current_source_line static.
2947 (list_command): Moved to cli/cli-cmds.c.
2948 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2949 (get_first_line_listed): New accessor function.
2950 (get_lines_to_list): New accessor function.
2951 (get_current_source_symtab_and_line): New function. Retrieves the
2952 position in the source code that we consider current.
2953 (get_current_or_default_source_symtab_and_line): New function.
2954 Like the above but attempts to determine a default position if one
2955 is not currently defined.
2956 (set_current_source_symtab_and_line): New function. Sets the source
2957 code position considered current and returns the previously set one.
2958 (clear_current_source_symtab_and_line): Reset stored information about
2959 a current source line.
2960 (_initialize_source): Remove registration for the "list" command and
2961 its alias.
2962 * source.h: Add declarations for the new functions above.
2963 * symtab.h: Remove declarations for the global variables mentioned
2964 above.
2965 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2966 obtain current source line.
2967 * linespec.c (decode_line_1): Ditto.
2968 * macroscope.c (default_macro_scope): Ditto.
2969 * scm-lang.c (scm_unpac): Ditto.
2970 * stack.c (print_frame_info_base): Ditto.
2971 * symfile.c (clear_symtab_users): Ditto.
2972 * symtab.c (decode_line_spec): Ditto.
2973 * cli/cli-cmds.c (list_command): Moved here from source.c.
2974 (ambiguous_line_spec): Moved here from source.c.
2975 (_init_cli_cmds): Add definition for "list" and its alias.
2976 * Makefile.in: Update dependencies.
2977
2978 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2979
2980 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2981 with what gcc thinks is correct.
2982
2983 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2984
2985 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2986 multiple register push instruction.
2987
2988 2002-09-19 Jim Blandy <jimb@redhat.com>
2989
2990 Add support for distinct host and target character sets.
2991 * charset.c, charset.h: New files.
2992 * c-exp.y: #include "charset.h".
2993 (yylex): Convert character and string literals to the target
2994 character set, before returning them as the semantic value of the
2995 token.
2996 * c-lang.c: #include "charset.h".
2997 (c_emit_char): Use charset-specific methods to recognize
2998 characters with backslash escape forms, to decide which characters
2999 to print literally and which to print using numeric escape
3000 sequences, and to convert target characters to host characters
3001 before printing.
3002 * utils.c: #include "charset.h".
3003 (no_control_char_error): New function.
3004 (parse_escape): Use charset-specific methods to recognize
3005 backslash escapes, parse `control character' notation, and convert
3006 characters from the host character set to the target character set.
3007 * configure.in: Set the default host character set.
3008 Check where to find iconv, and what its argument types might be.
3009 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3010 * Makefile.in (SFILES): List charset.c.
3011 (COMMON_OBS): List charset.o.
3012 (charset.o): New rule.
3013 (charset_h): New header dependency variable.
3014 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3015 (LIBICONV): New variable, set by configure.
3016 (CLIBS): Include $(LIBICONV) here.
3017 * aclocal.m4, config.in, configure: Regenerated.
3018
3019 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3020
3021 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3022 bison 1.35 warning.
3023
3024 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3025
3026 * gdb_mbuild.sh: New file.
3027
3028 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3029
3030 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3031
3032 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3033
3034 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3035 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3036 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3037 valops.c, value.h: Revert previous change.
3038
3039 2002-09-18 Michael Snyder <msnyder@redhat.com>
3040
3041 Preliminary support for Objective-C:
3042 * defs.h (language_objc): New enum value.
3043 (puts_filtered_tabular): Declaration only, exported from utils.c.
3044 (skip_quoted): Delete, declared in completer.h.
3045 * c-exp.y: Include completer.h.
3046 * p-exp.y: Ditto.
3047 * jv-exp.y: Ditto.
3048 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3049 New operator enum values.
3050 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3051 * language.c (binop_result_type): Handle language_objc case.
3052 (integral_type, character_type, string_type, boolean_type,
3053 structured_type, binop_type_check): Ditto.
3054 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3055 (struct objc_specific): Add to general_symbol_info.
3056 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3057 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3058 * parser-defs.h (struct objc_class_str): New struct type.
3059 (start_msglist, end_msglist, add_msglist): Declaration only,
3060 exported from objc-lang.c.
3061 * value.h (value_of_local, value_nsstring,
3062 call_function_by_hand_expecting_type): Exported from valops.c.
3063 * valops.c (find_function_addr): Export.
3064 (call_function_by_hand_expecting_type): New function.
3065 (value_of_local): New function.
3066 * symfile.c (init_filename_language_table): Add ".m" extension
3067 for Objective-C.
3068 * utils.c (puts_filtered_tabular): New function.
3069 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3070 (set/show demangle): Extend help-string to refer to ObjC.
3071 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3072 * stabsread.c (symbol_reference_defined): Objective-C symbols
3073 may contain colons: make allowances when scanning stabs strings
3074 for colons.
3075 (objc_find_colon): New function.
3076 * printcmd.c (address_info): If language == objc then print
3077 "self" instead of "this".
3078 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3079 OP_NSSTRING, and OP_SELF.
3080 (prefixify_subexp): Ditto.
3081 * source.c (print_source_lines): Mention objc in comment.
3082 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3083 method names.
3084
3085 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3086
3087 * complaints.h: Update copyright.
3088 (struct complaints): Declare.
3089 (struct complaint): Make `message' constant.
3090 (internal_complaint): Declare.
3091 (complaint): Declare.
3092 (complaint_root): Delete declaration.
3093 (symfile_complaints): Delete declaration.
3094 (struct complaints): Add opaque declaration.
3095 (clear_complaints): Add a complaints parameter.
3096 * complaints.c: Update copyright.
3097 (enum complaint_series): Define.
3098 (complaint_root): Delete.
3099 (struct complaints): Define.
3100 (complaint_sentinel, symfile_complaint_book): New variables.
3101 (symfile_explanations, symfile_complaints): New variables.
3102 New variables.
3103 (get_complaints): New function.
3104 (vcomplaint): New function.
3105 (complaint): New function.
3106 (internal_complaint): New function.
3107 (complain): Call vcomplain with symfile_complaint.
3108 (clear_complaints): Rewrite.
3109 (_initialize_complaints): Use add_setshow_command.
3110 * Makefile.in (complaints.o): Update dependencies.
3111 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3112 to call to clear_complaints.
3113 (new_symfile_objfile, reread_symbols): Ditto.
3114 (oldsyms_complaint): Delete.
3115 (empty_symtab_complaint, unknown_option_complaint): Delete.
3116 (free_named_symtabs): Use complaint instead of complain.
3117
3118 2002-09-18 Michael Snyder <msnyder@redhat.com>
3119
3120 Contributed by Apple Computer, Inc. Merged with current sources
3121 by Adam Fedor <fedor@doc.com> [cagney].
3122
3123 * objc-lang.c: First clean-up round: comments, indentation.
3124 * objc-lang.h: Ditto.
3125 * objc-lang.y: Ditto.
3126
3127 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3128
3129 * maint.c (maintenance_internal_error): Print the parameter as the
3130 error message.
3131 (maintenance_internal_warning): New function.
3132 (_initialize_maint_cmds): Add command `maint internal-warning'.
3133
3134 * defs.h (internal_warning, internal_vwarning): Declare.
3135 * utils.c (struct internal_problem): Define.
3136 (internal_vproblem): New function.
3137 (internal_warning): New function.
3138 (internal_vwarning): New function.
3139 (internal_warning_problem, internal_error_problem): New variables.
3140 (internal_verror): Just call internal_vproblem.
3141
3142 2002-09-18 Michael Snyder <msnyder@redhat.com>
3143
3144 * objc-lang.c: New file, support for Objective-C.
3145 Preliminary check-in, not yet integrated into gdb.
3146 * objc-lang.h: New file.
3147 * objc-exp.y: New file.
3148
3149 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3150
3151 * infrun.c (signal_stop_update): Convert definition to ISO C.
3152 (signal_print_update): Ditto.
3153 (signal_pass_update): Ditto.
3154 * inflow.c (terminal_save_ours): Ditto.
3155
3156 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3157 comments.
3158
3159 * config/djgpp/fnchange.lst: Handle name clashes between
3160 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3161 bfd/coff-tic80.c.
3162
3163 * i386-linux-tdep.h: Fix tipo.
3164
3165 2002-09-18 Adam Fedor <fedor@gnu.org>
3166
3167 * MAINTAINERS: Add myself to the Write After Approval list.
3168
3169 2002-09-18 Jim Blandy <jimb@redhat.com>
3170
3171 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3172 texthigh and textlow to reader-specific structs caused
3173 objfile_relocate to miss them. This is fixable, but the work that
3174 the change was supposed to prepare GDB for never got done anyway.
3175
3176 2002-09-18 David Carlton <carlton@math.stanford.edu>
3177
3178 * MAINTAINERS: Alphabetize Write After Approval list.
3179
3180 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3181
3182 Fix PR gdb/709
3183 * values.c (value_static_field): Call read_var_value.
3184
3185 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3186
3187 * valops.c (hand_function_call): Align the initial stack pointer
3188 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3189 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3190 return value.
3191 * mips-tdep.c (mips_frame_align): New function.
3192 (mips_gdbarch_init): Set frame_align.
3193 * gdbarch.sh (FRAME_ALIGN): New method.
3194 * gdbarch.h, gdbarch.c: Re-generate.
3195
3196 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3197
3198 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3199 registers.
3200
3201 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3202
3203 * NEWS: Mention that MIPS $fp behavior changed.
3204 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3205 reference to FP_REGNUM.
3206 (mipsnbsd_cannot_store_register): Ditto.
3207 * mips-linux-nat.c: Update copyright.
3208 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3209 (mips_linux_cannot_store_register): Ditto.
3210 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3211 * config/mips/tm-mips.h: Update copyright.
3212 (FP_REGNUM): Delete macro.
3213 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3214 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3215 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3216 (mips_r3041_reg_names, mips_r3051_reg_names)
3217 (mips_r3081_reg_names): Replace "fp" with "".
3218 Fix PR gdb/480.
3219
3220 2002-09-17 Theodore A. Roth <troth@verinet.com>
3221
3222 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3223 generic_read_register_dummy() (PR gdb/703).
3224 (avr_push_return_address): #if 0 out unused vars.
3225 (avr_gdbarch_init): Enable use of avr_push_return_address().
3226
3227 2002-09-17 Michael Snyder <msnyder@redhat.com>
3228
3229 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3230 RTE will take care of it.
3231
3232 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3233
3234 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3235 invalid, return SP_REGNUM.
3236
3237 2002-09-17 Michael Snyder <msnyder@redhat.com>
3238
3239 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3240 point registers without sign extension.
3241
3242 2002-09-17 Andrew Cagney <cagney@redhat.com>
3243
3244 * blockframe.c (deprecated_read_register_dummy): Rename
3245 generic_read_register_dummy.
3246 * frame.c (frame_unwind_signed_register): New function.
3247 (frame_unwind_unsigned_register): New function.
3248 * frame.h (frame_unwind_signed_register): Declare.
3249 (frame_unwind_unsigned_register): Declare.
3250 (deprecated_read_register_dummy): Rename
3251 generic_read_register_dummy.
3252
3253 * h8300-tdep.c (h8300_frame_chain): Update.
3254 (h8300_frame_saved_pc): Update.
3255 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3256 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3257 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3258 (s390_frame_chain): Update.
3259 * v850-tdep.c (v850_find_callers_reg): Update.
3260 (v850_frame_saved_pc): Update.
3261 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3262 (m32r_find_callers_reg): Update.
3263 (m32r_frame_saved_pc): Update.
3264 * sh-tdep.c (sh_find_callers_reg): Update.
3265 (sh64_get_saved_pr): Update.
3266 (sh_init_extra_frame_info): Update.
3267 (sh_init_extra_frame_info): Update.
3268 (sh64_init_extra_frame_info): Update.
3269 (sh64_init_extra_frame_info): Update.
3270 * mcore-tdep.c (mcore_find_callers_reg): Update.
3271 (mcore_frame_saved_pc): Update.
3272 (mcore_init_extra_frame_info): Update.
3273 * i386-tdep.c (i386_frame_saved_pc): Update.
3274 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3275 (ia64_init_extra_frame_info): Update.
3276 (ia64_init_extra_frame_info): Update.
3277 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3278 * cris-tdep.c (cris_init_extra_frame_info): Update.
3279 * avr-tdep.c (avr_frame_chain): Update.
3280 (avr_init_extra_frame_info): Update.
3281 (avr_frame_saved_pc): Update.
3282 * arm-tdep.c (arm_find_callers_reg): Update.
3283 (arm_init_extra_frame_info): Update.
3284 (arm_frame_saved_pc): Update.
3285
3286 2002-09-17 Tom Tromey <tromey@redhat.com>
3287
3288 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3289 is "'".
3290
3291 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3292
3293 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3294 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3295 NEXT_PROLOGUE_INSN.
3296 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3297 NEXT_PROLOGUE_INSN.
3298
3299 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3300
3301 * osfsolib.c: Remove file, replaced by solib-osf.c.
3302 * Makefile.in: Remove compilation rules for osfsolib.c.
3303
3304 2002-09-16 David Carlton <carlton@math.stanford.edu>
3305
3306 * cp-valprint.c (cp_print_class_method): Correct args to
3307 check_stub_method_group.
3308
3309 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3310
3311 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3312 `set architecture'. Unify naming convention of functions.
3313 (h8300_skip_prologue): Improve prologue analysis.
3314 (h8300_push_arguments): Rewritten to more closely match GCC's
3315 bizarre argument-passing behavior, along with the comment describing
3316 said behavior.
3317 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3318 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3319 sim, remote-e7000.c, remote-hms.c and remote.c
3320
3321 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3322
3323 * i386-tdep.c (gdb_print_insn_i386): Removed.
3324 (i386_print_insn): New function.
3325 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3326 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3327 tm_print_insn_info.
3328
3329 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3330
3331 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3332 zero.
3333
3334 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3335
3336 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3337 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3338 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3339
3340 2002-09-13 Christopher Faylor <cgf@redhat.com>
3341
3342 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3343
3344 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3345
3346 * gdbtypes.c (check_stub_method): Make static.
3347 (check_stub_method_group): New function.
3348 * gdbtypes.h: Update prototypes.
3349 * cp-support.c: New file.
3350 * cp-support.h: New file.
3351
3352 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3353 (update_method_name_from_physname): New function.
3354 (read_member_functions): Correct method names for operators
3355 and v3 constructors/destructors. Separate v2 constructors and
3356 destructors.
3357 * Makefile.in (stabsread.o): Update dependencies.
3358 (SFILES): Add cp-support.c.
3359 (COMMON_OBS): Add cp-support.o.
3360 (cp_support_h, cp-support.o): Add.
3361
3362 * cp-valprint.c (cp_print_class_method): Call
3363 check_stub_method_group instead of check_stub_method. Remove
3364 extraneous QUITs.
3365 * p-valprint.c (pascal_object_print_class_method): Likewise.
3366 * valops.c (search_struct_method): Likewise.
3367 (find_method_list, value_struct_elt_for_reference): Likewise.
3368
3369 2002-09-13 Andrew Cagney <cagney@redhat.com>
3370
3371 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3372 * gdbarch.h, gdbarch.c: Regenerate.
3373
3374 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3375
3376 * frame.c (find_saved_register): Delete function.
3377 * frame.h (find_saved_register): Delete declaration.
3378 Fix PR gdb/631.
3379
3380 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3381
3382 * mips-tdep.c (read_next_frame_reg): Re-hack using
3383 frame_register_unwind.
3384
3385 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3386
3387 * mips-tdep.c (mips_get_saved_register): Re-hack using
3388 frame_register_unwind.
3389
3390 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3391
3392 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3393 vector. Will be useful for Interix.
3394 * gdbarch.h, gdbarch.c: Regenerate.
3395
3396 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3397 name of the malloc function by NAME_OF_MALLOC.
3398
3399 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3400
3401 * value.h (find_function_in_inferior): Add const keyword to
3402 one of the parameters. Allows us to invoke this function with
3403 a const char *.
3404 * valops.c (find_function_in_inferior): Likewise.
3405
3406 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3407
3408 * exec.c (xfer_memory): Fix compilation warning with old versions
3409 of GCC.
3410 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3411
3412 2002-09-12 David Carlton <carlton@math.stanford.edu>
3413
3414 * symtab.h: Run through gdb_indent.h.
3415 Add 2002 to Copyright year list.
3416
3417 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3418
3419 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3420 mach constants.
3421 * MAINTAINERS: Add myself to write after approval list.
3422
3423 2002-09-11 J. Brobecker <brobecker@gnat.com>
3424
3425 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3426
3427 2002-09-11 J. Brobecker <brobecker@gnat.com>
3428
3429 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3430 Interix.
3431
3432 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3433
3434 * procfs.c (do_detach): Clear current signal, not just fault.
3435 Corrects problem with breakpoint trap signal leaking to detached
3436 process on Tru64.
3437
3438 2002-09-10 Michael Snyder <msnyder@redhat.com>
3439
3440 * buildsym.c (finish_block): Protect against null pointer.
3441
3442 2002-09-10 Andrew Cagney <cagney@redhat.com>
3443
3444 * infcmd.c (default_print_registers_info): Send all output to
3445 ``file'' instead of ``gdb_stdout''.
3446
3447 2002-09-10 Michael Snyder <msnyder@redhat.com>
3448
3449 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3450 LONGEST, and use signed register read (addresses are sign-
3451 extended for mips).
3452
3453 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3454
3455 * event-loop.c (gdb_do_one_event): Make public.
3456 * event-loop.h (gdb_do_one_event): Declare.
3457
3458 2002-09-10 Jeff Law <law@redhat.com>
3459
3460 * infttrace.c (child_resume): Simplify and rework to avoid
3461 TT_PROC_CONTINUE.
3462
3463 2002-09-09 Fred Fish <fnf@intrinsity.com>
3464
3465 * printcmd.c (print_scalar_formatted): "len" is the number of
3466 target bytes, NOT the number of target bits.
3467
3468 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3469
3470 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3471 * top.c (init_main): Set rl_terminal_name.
3472
3473 2002-09-08 Aidan Skinner <aidan@velvet.net>
3474
3475 * ada-lang.c (ada_array_bound, ada_type_match,
3476 _initialize_ada_language): Fix K&R definitions.
3477 * ada-tasks.c (get_current_task): Fix K&R definitions.
3478 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3479
3480 2002-09-07 Christopher Faylor <cgf@redhat.com>
3481
3482 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3483 Add XP.
3484
3485 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3486
3487 * i386-tdep.c (i386_register_virtual_type,
3488 i386_register_convertible, i386_register_convert_to_virtual,
3489 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3490 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3491 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3492 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3493 Don't set push_arguments twice.
3494
3495 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3496 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3497 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3498 sigtramp_end to NULL.
3499 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3500 defines.
3501 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3502
3503 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3504 whitespace.
3505
3506 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3507 * gdbarch.h, gdbarch.c: Re-generate.
3508 * blockframe.c (find_pc_sect_partial_function): Convert to use
3509 SIGTRAMP_START_P predicate.
3510
3511 2002-09-05 Michael Snyder <msnyder@redhat.com>
3512
3513 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3514 generic_dummy_frame method and old method. Also distinguish
3515 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3516 (arm_extract_return_value): Use new regcache method.
3517
3518 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3519 adjustment that doesn't conform to the ABI.
3520 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3521 saved regcache, not from current regcache.
3522
3523 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3524
3525 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3526 * README: Update.
3527
3528 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3529
3530 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3531 if arm_apcs_32 is false.
3532
3533 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3534
3535 GDB 5.3 branch created.
3536
3537 2002-09-03 Theodore A. Roth <troth@verinet.com>
3538
3539 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3540 generic_unwind_get_saved_register.
3541
3542 2002-09-03 David Carlton <carlton@math.stanford.edu>
3543
3544 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3545 argument (PR gdb/653). Update call to smash_to_method_type.
3546 (read_structure_scope): Update call to dwarf2_add_member_fn.
3547
3548 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3549
3550 * x86-64-linux-tdep.c: Include gdb_string.h
3551 * x86-64-linux-nat.c: Ditto.
3552
3553 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3554
3555 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3556 when YYDEBUG is set to 1.
3557 * c-exp.y: Likewise.
3558 * f-exp.y: Likewise.
3559 * jv-exp.y: Likewise.
3560 * m2-exp.y: Likewise.
3561 * p-exp.y: Likewise.
3562
3563 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3564
3565 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3566 dependency list.
3567 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3568 solib_svr4_fetch_link_map_offsets to
3569 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3570 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3571 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3572 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3573 solib-svr4.o, and solib-legacy.o.
3574 * config/i386/tm-nbsd.h: Include solib.h.
3575
3576 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3577
3578 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3579 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3580 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3581 comment noting that this needs its own target configuration.
3582 * config/i386/nbsd.mt: New file.
3583 * config/i386/nbsdaout.mt: Remove.
3584 * config/i386/nbsdelf.mt: Ditto.
3585 * config/i386/tm-nbsdaout.h: Ditto.
3586
3587 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3588
3589 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3590 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3591 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3592 tdep->sigtramp_end.
3593 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3594 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3595 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3596
3597 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3598
3599 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3600 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3601 * i386-tdep.h (i386bsd_init_abi): New prototype.
3602 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3603 function declaration.
3604 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3605 for NetBSD-a.out or NetBSD-ELF.
3606 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3607 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3608 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3609 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3610 and nbsd-tdep.h.
3611 (i386nbsd_pc_in_sigtramp): New function.
3612 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3613 i386nbsd_pc_in_sigtramp.
3614 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3615 and i386nbsdelf_init_abi OS ABI handlers.
3616 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3617 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3618
3619 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3620
3621 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3622 registers if the target really has them.
3623
3624 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3625
3626 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3627 than nbsd-tdep.h.
3628
3629 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3630
3631 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3632 list.
3633 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3634 (alphanbsd_skip_sigtramp_frame): New functions.
3635 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3636 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3637 to alphanbsd_sigcontext_addr.
3638
3639 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3640
3641 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3642 list.
3643 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3644 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3645 nbsd_pc_in_sigtramp.
3646 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3647 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3648 * nbsd-tdep.c: Include gdb_string.h.
3649 (nbsd_pc_in_sigtramp): New function.
3650 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3651 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3652 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3653 ppcnbsd_pc_in_sigtramp.
3654 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3655 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3656 shnbsd_pc_in_sigtramp.
3657 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3658 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3659 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3660
3661 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3662
3663 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3664 watchpoints to NULL.
3665 (insert_breakpoints): set val field of watchpoints if NULL.
3666
3667
3668 2002-08-29 Jim Blandy <jimb@redhat.com>
3669
3670 * symtab.c (lookup_symbol_aux): In the cases where we find a
3671 minimal symbol of an appropriate name and use its address to
3672 select a symtab to read and search, use `name' (as passed to us)
3673 as the demangled name when searching the symtab's global and
3674 static blocks, not the minsym's name.
3675
3676 2002-08-29 Keith Seitz <keiths@redhat.com>
3677
3678 * stack.c (print_frame_info_base): Always set current_source_symtab
3679 and current_source_line.
3680
3681 2002-08-29 Donn Terry <donnte@microsoft.com>
3682
3683 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3684
3685 2002-08-28 Keith Seitz <keiths@redhat.com>
3686
3687 * stack.c (select_frame): Add FIXME concerning selected-frame
3688 events.
3689 (select_frame_command): Send selected-frame-level-changed
3690 event notification, but only if the level actually changed.
3691 (up_silently_base): Add selected-frame-level-changed event
3692 notification.
3693 (down_silently_base): Likewise.
3694
3695 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3696
3697 * Makefile.in: Update dependencies for all gdb/*.c files.
3698
3699 2002-08-27 Tom Tromey <tromey@redhat.com>
3700
3701 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3702 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3703 Update dependencies.
3704 * i387-tdep.c: Include gdb_string.h.
3705 * osabi.c: Likewise.
3706 * i386-linux-nat.c: Likewise.
3707 * lin-lwp.c: Likewise.
3708 * ax-gdb.c: Likewise.
3709 * signals/signals.c: Likewise.
3710 * jv-valprint.c: Likewise.
3711 * p-lang.c: Likewise.
3712 * c-valprint.c: Likewise.
3713 * cp-abi.c: Likewise.
3714
3715 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3716
3717 * cli/cli-script.h (copy_command_lines): Export.
3718 * breakpoint.c: Include cli/cli-script.h.
3719 * Makefile.in (breakpoint.o): Update dependencies.
3720
3721 2002-08-26 Michael Snyder <msnyder@redhat.com>
3722
3723 * breakpoint.c (insert_breakpoints): Protect all references
3724 to 'process_warning'. Shorten long lines.
3725
3726 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3727
3728 * cli/cli-script.c (copy_command_lines): New function.
3729 * defs.h (copy_command_lines): Export.
3730 * testsuite/gdb.base/commands.exp: New tests for commands
3731 attached to a temporary breakpoint, and for commands that
3732 delete the breakpoint they are attached to.
3733
3734 2002-08-26 Michael Snyder <msnyder@redhat.com>
3735
3736 * breakpoint.c (bpstat_stop_status): Instead of copying the
3737 pointer to the breakpoint commands struct, make a new copy
3738 of the struct and point to that.
3739 (bpstat_clear): Free the commands struct.
3740 (bpstat_clear_actions): Free the commands struct.
3741 (bpstat_do_actions): Free the command actions. Also execute
3742 the local cleanups, instead of deleting them.
3743 (delete_breakpoint): Leave the commands field of the bpstat
3744 chain alone -- it will be freed later.
3745
3746 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3747
3748 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3749 deleted in 2002-08-20 commit. This function is still used by
3750 ppc-linux-nat.c.
3751
3752 2002-08-26 Keith Seitz <keiths@redhat.com>
3753
3754 * gdb-events.sh: Add selected-frame-level-changed event.
3755 * gdb-events.c: Regenerated.
3756 * gdb-events.h: Regenerated.
3757
3758 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3759
3760 Fix PR gdb/393:
3761 * inflow.c (terminal_save_ours): New function to save terminal
3762 settings.
3763 * inferior.h (terminal_save_ours): Declare.
3764 * target.c (debug_to_terminal_save_ours): New function.
3765 (cleanup_target): Defaults to_terminal_save_ours.
3766 (update_current_target): Inherit to_terminal_save_ours.
3767 (setup_target_debug): Set to_terminal_save_ours.
3768 * target.h (target_terminal_save_ours): New to save terminal settings.
3769 (target_ops): New member to_terminal_save_ours.
3770 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3771 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3772 * inftarg.c (init_child_ops): Likewise.
3773 * m3-nat.c (init_m3_ops): Likewise.
3774 * procfs.c (init_procfs_ops): Likewise.
3775 * wince.c (init_child_ops): Likewise.
3776 * win32-nat.c (init_child_ops): Likewise.
3777 * sol-thread.c (init_sol_thread_ops): Likewise.
3778
3779 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3780
3781 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3782 use regcache_* functions.
3783 (i386_gdbarch_init): Set store_return_value instead of
3784 deprecated_store_return_value.
3785
3786 * regcache.c (regcache_raw_write_signed,
3787 regcache_raw_write_unsigned): New functions.
3788 * regcache.h (regcache_raw_write_signed,
3789 regcache_raw_write_unsigned): New prototypes.
3790
3791 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3792
3793 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3794 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3795 source file dependencies. Cleanup corresponding generator rules.
3796
3797 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3798
3799 * regcache.h (register_offset_hack): Declare.
3800 (regcache_cooked_read_using_offset_hack): Declare.
3801 (regcache_cooked_write_using_offset_hack): Declare.
3802
3803 * regcache.c (register_offset_hack): New function.
3804 (regcache_cooked_read_using_offset_hack): New function.
3805 (regcache_cooked_write_using_offset_hack): New function.
3806 (regcache_dump): Check that the registers, according to their
3807 offset, are packed hard against each other.
3808 (cooked_xfer_using_offset_hack): New function.
3809
3810 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3811
3812 * regcache.c (struct regcache_descr): Add field register_type.
3813 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3814 in as a parameter
3815 (init_regcache_descr): Initialize register_type. Pass the descr
3816 to init_legacy_regcache_descr. Use register_type instead of
3817 REGISTER_VIRTUAL_TYPE.
3818 (register_type): New function.
3819 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3820 * regcache.h (register_type): Declare.
3821
3822 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3823
3824 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3825 instead of deprecated_store_return_value. Fix fallout from
3826 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3827
3828 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3829
3830 * regcache.c (max_register_size): New function.
3831 (init_legacy_regcache_descr): Ensure that max_register_size is
3832 large enough for REGISTER_VIRTUAL_SIZE.
3833 * regcache.h (max_register_size): Declare.
3834
3835 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3836
3837 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3838 store_return_value.
3839 (e500_extract_return_value): Change type of valbuf pointer to
3840 void.
3841
3842 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3843
3844 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3845 workaround.
3846
3847 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3848 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3849 long long) to prevent compiler warning on 64-bit systems.
3850
3851 2002-08-23 Andrew Cagney <cagney@redhat.com>
3852
3853 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3854 (DEPRECATED_STORE_RETURN_VALUE): New method.
3855 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3856 * gdbarch.h, gdbarch.c: Re-generate.
3857
3858 * values.c (set_return_value): Pass current_regcache to
3859 STORE_RETURN_VALUE.
3860 * arch-utils.h (legacy_store_return_value): Declare.
3861 * arch-utils.c (legacy_store_return_value): New function.
3862 (legacy_extract_return_value): Update parameters.
3863
3864 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3865 STORE_RETURN_VALUE.
3866 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3867 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3868 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3869 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3870 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3871 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3872 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3873 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3874 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3875 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3876
3877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3878 * i386-tdep.c (i386_extract_return_value): Update.
3879 * arch-utils.c (legacy_extract_return_value): Update.
3880 * frv-tdep.c (frv_gdbarch_init): Update.
3881 * cris-tdep.c (cris_gdbarch_init): Update.
3882 * d10v-tdep.c (d10v_gdbarch_init): Update.
3883 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3884 * m68k-tdep.c (m68k_gdbarch_init): Update.
3885 * mcore-tdep.c (mcore_gdbarch_init): Update.
3886 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3887 * s390-tdep.c (s390_gdbarch_init): Update.
3888 * sparc-tdep.c (sparc_gdbarch_init): Update.
3889 * sh-tdep.c (sh_gdbarch_init): Update.
3890 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3891 * v850-tdep.c (v850_gdbarch_init): Update.
3892 * avr-tdep.c (avr_gdbarch_init): Update.
3893 * ia64-tdep.c (ia64_gdbarch_init): Update.
3894 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3895 * vax-tdep.c (vax_gdbarch_init): Update.
3896 * alpha-tdep.c (alpha_gdbarch_init): Update.
3897 * arm-tdep.c (arm_gdbarch_init): Update.
3898 * mips-tdep.c (mips_gdbarch_init): Update.
3899 * i386-tdep.c (i386_gdbarch_init): Update.
3900
3901 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3902
3903 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3904 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3905
3906 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3907
3908 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3909 problems.
3910
3911 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3912
3913 * infrun.c (handle_inferior_event): Move a comment outside of a
3914 function call, in order to avoid indent reformatting this part
3915 of the code in an unreadable way.
3916
3917 2002-08-23 Grace Sainsbury <graces@redhat.com>
3918
3919 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3920 when breakpoints fail. Move general breakpoint error messages to
3921 insert_breakpoints.
3922 * breakpoint.c (insert_breakpoints): Change warnings when
3923 breakpoints are nto inserted to specify the type. Remove call to
3924 memory_error when hardware breakpoints can't be inserted. Remove
3925 multiple calls to warning so all messages are sent to the user at
3926 once.
3927 (delete_breakpoints): Make insert error messsages more explicit.
3928
3929 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3930
3931 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3932 gdbserver/ChangeLog.
3933
3934 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3935
3936 * i386-tdep.c: Include "objfiles.h".
3937 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3938 skip_trampoline_code.
3939 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3940 (CPLUS_MARKER): Define to '.'.
3941
3942 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3943 member.
3944 (linux_corefile_thread_callback): Increase args->num_notes.
3945 (linux_make_note_section): Initialize thread_args.num_notes, and
3946 use it to determine whether notes for any threads were created.
3947
3948 2002-08-23 Donn Terry <donnte@microsoft.com>
3949
3950 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3951 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3952 and PCUNKILL.
3953 (write_with_trace): Conditionalize out the switch branch handling
3954 PCSHOLD if the corresponding macro is not defined. Likewise for
3955 PRSABORT and PRSTOP.
3956 This change will be needed by the Interix port.
3957
3958 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3959
3960 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3961 write_register wherever possible instead of manipulating the
3962 register bytes directly.
3963 Assign VALUE_CONTENTS to a variable and use that.
3964 The GPR numbers are now dependent on the architecture.
3965
3966 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3967
3968 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3969 ev_offset fields.
3970 (skip_prologue): Add support for BookE/e500 instructions.
3971 (e500_extract_return_value): New function.
3972 (frame_get_saved_regs): Add support for saving ev registers and
3973 pseudo gpr's.
3974 (e500_store_return_value): New function.
3975 (rs6000_gdbarch_init): Move up default intializations of
3976 deprecated_extract_return_value and store_return_value. Overwrite
3977 init of store_return_value with e500 specific version.
3978 Set extract_return_value for e500.
3979
3980 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3981
3982 * blockframe.c (generic_call_dummy_register_unwind): Use
3983 regcache_cooked_read to catch cases in which the variable is
3984 stored in a pseudo register.
3985
3986 2002-08-22 Andrew Cagney <cagney@redhat.com>
3987
3988 * NEWS: Mention that the i960 has been made obsolete.
3989 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3990 i960-tdep.c
3991 (remote-nrom.o): Obsolete target.
3992 (remote-nindy.o, i960-tdep.o): Ditto.
3993 * remote-nrom.c: Make file obsolete.
3994 * remote-nindy.c, remote-vx960.c: Ditto.
3995 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3996 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3997 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3998 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3999 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4000 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4001 i960-*-vxworks* obsolete.
4002 * MAINTAINERS: Note that the i960 is obsolete.
4003
4004 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4005
4006 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4007 detach to allow reinitialization.
4008
4009 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4010
4011 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4012 attempt).
4013
4014 2002-08-22 Jim Blandy <jimb@redhat.com>
4015
4016 * coffread.c (coff_symfile_read): Don't try to read the line
4017 number table from disk if the image file doesn't have a symbol
4018 table; we'll never actually look at the info anyway, and Windows
4019 ships DLL's with bogus file offsets for the line number data.
4020
4021 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4022
4023 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4024 an e500 executable.
4025
4026 2002-08-21 Michael Snyder <msnyder@redhat.com>
4027
4028 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4029 (MSYMBOL_SIZE): Replace macro with function.
4030 (DEFAULT_MIPS_TYPE): Delete unused macro.
4031 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4032 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4033
4034 2002-08-21 Jim Blandy <jimb@redhat.com>
4035
4036 * valops.c (value_cast): Simplify and correct logic for doing a
4037 static cast from a pointer to a base class to a pointer to a
4038 derived class.
4039
4040 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4041
4042 * infcmd.c (default_print_registers_info): Replace
4043 do_registers_info.
4044 (registers_info): Use gdbarch_print_registers_info instead of
4045 DO_REGISTERS_INFO.
4046 * inferior.h (default_print_registers_info): Replace
4047 do_registers_info.
4048 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4049 (DO_REGISTERS_INFO): Change to a predicate function.
4050 * gdbarch.h, gdbarch.c: Regenerate.
4051
4052 2002-08-21 Keith Seitz <keiths@redhat.com>
4053
4054 * gdb-events.sh: Add target-changed event.
4055 * gdb-events.c: Regenerated.
4056 * gdb-events.c: Regenerated.
4057 * valops.c (value_assign): Add target-changed event notification
4058 to inlval_register, lval_memory, and lval_reg_frame_relative.
4059
4060 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4061
4062 * NEWS: Add an entry regarding the improvement of the next/step
4063 operation on Alpha Tru64 multi-processor machines.
4064
4065 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4066
4067 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4068 directores.
4069 * Makefile.in: Update all _h macro definitions.
4070 * Makefile.in (install-gdbtk): Move to install section.
4071 (rdi-share/libangsd.a): Move to end of file.
4072
4073 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4074
4075 * frame.c (frame_register_unwind): When a register, set addrp to
4076 the register's byte.
4077
4078 2002-08-20 Michael Snyder <msnyder@redhat.com>
4079
4080 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4081 used locally, so move them from the target machine header to here.
4082 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4083 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4084 Make static.
4085 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4086
4087 2002-08-20 Andrew Cagney <cagney@redhat.com>
4088
4089 * NEWS: Mention that the Apollo line was made obsolete.
4090 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4091 m68*-hp-hpux* obsolete.
4092 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4093 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4094 * buildsym.c (make_blockvector): Make static.
4095 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4096 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4097 (ALLDEPFILES): Remove dstread.c.
4098 (dstread.o): Obsolete make rule.
4099 * dstread.c: Makefile obsolete.
4100 * dst.h: Ditto.
4101 * config/m68k/hp300hpux.mt: Ditto.
4102 * config/m68k/hp300hpux.mh: Ditto.
4103 * config/m68k/hp300bsd.mt: Ditto.
4104 * config/m68k/hp300bsd.mh: Ditto.
4105 * config/m68k/apollo68b.mt: Ditto.
4106 * config/m68k/apollo68v.mh: Ditto.
4107 * config/m68k/apollo68b.mh: Ditto.
4108
4109 2002-08-20 Michael Snyder <msnyder@redhat.com>
4110
4111 * mips-tdep.c (mips_in_return_stub): Make static.
4112 (mips_gdbarch_init): Set in_solib_return_trampoline.
4113 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4114
4115 2002-08-20 Michael Snyder <msnyder@redhat.com>
4116
4117 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4118 * gdbarch.c, gdbarch.h: Regenerate.
4119 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4120 Add.
4121 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4122
4123 2002-08-20 Michael Snyder <msnyder@redhat.com>
4124
4125 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4126 (mips_gdbarch_init): Set skip_trampoline_code,
4127 in_solib_call_trampoline.
4128 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4129 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4130
4131 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4132
4133 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4134
4135 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4136 vector type for ev registers.
4137 (e500_pseudo_register_read): New function.
4138 (e500_pseudo_register_write): New function.
4139 (e500_dwarf2_reg_to_regnum): New function.
4140 (PPC_UISA_NOFP_SPRS): New macro.
4141 (PPC_EV_REGS): New macro.
4142 (PPC_GPRS_PSEUDO_REGS): New macro.
4143 (registers_e500): New register set for e500.
4144 (variants): Add e500 variant.
4145 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4146 before setting architectural dependent variations. Initialize ev
4147 registers numbers. Add case for e500 architecture. Set the
4148 number of pseudo registers.
4149
4150 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4151
4152 * rs6000-tdep.c: Clean up comments.
4153
4154 2002-08-20 Andrew Cagney <cagney@redhat.com>
4155
4156 * h8300-tdep.c: Re-indent file.
4157
4158 2002-08-20 Jim Blandy <jimb@redhat.com>
4159
4160 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4161 default for this.
4162
4163 2002-08-20 Keith Seitz <keiths@redhat.com>
4164
4165 * breakpoints.c (watch_command_1): Use internal breakpoint
4166 when setting a watchpoint_scope breakpoint.
4167
4168 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4169
4170 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4171 (build_builtin_type_vec64i): Ditto.
4172 (build_builtin_type_vec128): Ditto.
4173 (build_builtin_type_vec128i): Ditto.
4174
4175 2002-08-19 Michael Snyder <msnyder@redhat.com>
4176
4177 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4178 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4179 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4180 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4181 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4182 CALL_DUMMY_ADDRESS): Delete.
4183 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4184 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4185 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4186 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4187 push_return_address.
4188 (mips_register_raw_size, mips_eabi_use_struct_convention,
4189 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4190 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4191 mips_init_extra_frame_info, mips_eabi_push_arguments,
4192 mips_n32n64_push_arguments, mips_push_return_address,
4193 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4194 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4195
4196 2002-08-19 Michael Snyder <msnyder@redhat.com>
4197
4198 * mips-tdep.c (mips_frame_num_args): New function.
4199 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4200 frame_saved_pc, frame_args_address, frame_locals_address,
4201 frame_num_args, and frame_args_skip.
4202 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4203 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4204 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4205 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4206
4207 2002-08-20 Michael Snyder <msnyder@redhat.com>
4208
4209 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4210 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4211 * mips-tdep.c (mips_store_struct_return): New function.
4212 (mips_extract_struct_value_address): New function.
4213 (mips_gdbarch_init): Set store_struct_return and
4214 extract_struct_value_address.
4215
4216 2002-08-20 David Carlton <carlton@math.stanford.edu>
4217
4218 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4219 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4220 (read_file_scope): Check that line_header is nonzero before
4221 decoding macro information.
4222
4223 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4224
4225 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4226 flag the general-purpose registers as floating-point on targets
4227 that don't support the floating-point registers.
4228
4229 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4230
4231 * rs6000-tdep.c (altivec_register_p): Delete.
4232 (rs6000_do_altivec_registers): Delete.
4233 (rs6000_altivec_registers_info): Delete.
4234 (rs6000_do_registers_info): Delete.
4235 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4236 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4237
4238 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4239
4240 * infcmd.c (do_registers_info): Print vector registers in hex
4241 format only.
4242 (print_vector_info): Check that printing registers
4243 makes sense.
4244 (print_float_info): Ditto.
4245
4246 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4247
4248 * mips-tdep.c (mips_gdbarch_init): Update.
4249 (mips_o32_extract_return_value): Rewrite.
4250 (mips_o32_store_return_value): Rewrite.
4251 (mips_o32_xfer_return_value): New function.
4252 (mips_xfer_register): Tweak debug print message. Allow for
4253 buf_offset when dumping the value transfered.
4254
4255 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4256
4257 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4258 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4259 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4260 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4261 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4262
4263 2002-08-14 Michael Snyder <msnyder@redhat.com>
4264
4265 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4266
4267 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4268
4269 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4270 register.
4271 (P): New macro to define a register as a pseudo register.
4272 (R, R4, R8, R16, FR32, R64, R0): Updated.
4273 (struct variant): Add new fields for number of pseudo registers
4274 and number of total registers.
4275 (tot_num_registers): New macro replacing....
4276 (num_registers): ...deleted macro.
4277 (num_registers): New function.
4278 (num_pseudo_registers): New function.
4279 (variants): Update all variants to intialize new fields correctly.
4280 Postpone initialization of number of pseudo regs and real regs.
4281 (init_variants): New function.
4282 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4283 registers offsets.
4284
4285 2002-08-19 David Carlton <carlton@math.stanford.edu>
4286
4287 * valops.c (search_struct_field): Change error message to treat
4288 return value of 0 from value_static_field as meaning that field is
4289 optimized out.
4290 (value_struct_elt_for_reference): Ditto.
4291 * values.c (value_static_field): Treat an unresolved location the
4292 same as a nonexistent symbol. Fix PR gdb/635.
4293 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4294 enclosed. Fix PR gdb/574.
4295 * MAINTAINERS: Add self to Write After Approval list.
4296
4297 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4298
4299 * mips-tdep.c (mips_xfer_register): New function.
4300 (mips_n32n64_extract_return_value): Rewrite.
4301 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4302 instead of deprecated_extract_return_value.
4303
4304 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4305
4306 * rs6000-tdep.c (TDEP): Delete macro.
4307 (branch_dest): Replace use of TDEP macro with its body.
4308 (rs6000_pop_frame): Ditto.
4309 (rs6000_push_arguments): Ditto.
4310 (rs6000_skip_trampoline_code): Ditto.
4311 (rs6000_frame_saved_pc): Ditto.
4312 (rs6000_frame_chain): Ditto.
4313 (rs6000_register_name): Ditto.
4314 (rs6000_register_byte): Ditto.
4315 (rs6000_register_raw_size): Ditto.
4316 (rs6000_register_virtual_type): Ditto.
4317 (rs6000_register_convertible): Ditto.
4318 (rs6000_convert_from_func_ptr_addr): Ditto.
4319
4320 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4321
4322 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4323 conditionally.
4324 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4325 MIPS_LINUX_JB_ELEMENT_SIZE.
4326 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4327 for MAX_REGISTER_RAW_SIZE arrays.
4328 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4329 MIPS_LINUX_JB_ELEMENT_SIZE.
4330
4331 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4332
4333 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4334
4335 2002-08-19 Aidan Skinner <aidan@velvet.net>
4336
4337 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4338 ada-valprint.c ada-tasks.c.
4339 (YYFILES): Add ada-exp.y.
4340 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4341 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4342 (ada-exp.tab.o): New target.
4343
4344 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4345
4346 * regcache.c (regcache_xfer_part): New function.
4347 (regcache_raw_read_part): New function.
4348 (regcache_raw_write_part): New function.
4349 (regcache_cooked_read_part): New function.
4350 (regcache_cooked_write_part): New function.
4351 * regcache.h (regcache_raw_read_part): Declare.
4352 (regcache_raw_write_part): Declare.
4353 (regcache_cooked_read_part): Declare.
4354 (regcache_cooked_write_part): Declare.
4355
4356 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4357
4358 * remote.c (remote_open_1): Add async_p.
4359 (remote_async_open_1): Delete.
4360 (open_remote_target): Delete.
4361 (remote_open, extended_remote_open): Update calls to remote_open_1.
4362 (remote_async_open, extended_remote_async_open): Call
4363 remote_open_1 instead of remote_async_open_1.
4364
4365 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4366
4367 * blockframe.c: Fix a few coding standard violations.
4368
4369 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4370
4371 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4372 here from ...
4373 * config/i386/tm-i386sco5.h: ... here. File removed.
4374 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4375
4376 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4377 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4378 (TM_FILE): Set to tm-i386.h.
4379 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4380 * config/i386/tm-i386v.h: Remove file.
4381 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4382 instead of "i386/tm-i386v.h".
4383 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4384 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4385 "i386/tm-i386v.h".
4386 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4387 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4388 "i386/tm-i386.h".
4389
4390 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4391
4392 * config/i386/nm-i386v.h: Add protection against
4393 multiple-inclusion.
4394 (i386_register_u_addr): Remove prototype.
4395 (register_u_addr): New prototype.
4396 (REGISTER_U_ADDR): Redefine accordingly.
4397 * i386v-nat.c: Improve several comments.
4398 (i386_register_u_addr): Change signature and rename to
4399 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4400 ubase variable.
4401
4402 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4403
4404 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4405 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4406 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4407 deprecated_extract_return_value.
4408 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4409 rename mips_o32o64_push_arguments.
4410 (mips_gdbarch_init): Update.
4411 (mips_extract_return_value): Delete.
4412 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4413 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4414 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4415 (mips_n32n64_extract_return_value): Clone
4416 mips_extract_return_value.
4417 (mips_store_return_value): Delete.
4418 (mips_o32_store_return_value): Clone mips_store_return_value.
4419 (mips_o64_store_return_value): Clone mips_store_return_value.
4420 (mips_eabi_store_return_value): Clone mips_store_return_value.
4421 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4422
4423 2002-08-18 Aidan Skinner <aidan@velvet.net>
4424
4425 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4426 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4427
4428 2002-08-18 Aidan Skinner <aidan@velvet.net>
4429
4430 * ada-lang.c: Run through gdb_indent.sh.
4431 * ada-lang.h: Run through gdb_indent.sh.
4432 * ada-tasks.c: Run through gdb_indent.sh.
4433 * ada-typeprint.c: Run through gdb_indent.sh.
4434 * ada-valprint.c: Run through gdb_indent.sh.
4435
4436 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4437
4438 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4439 ABI.
4440
4441 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4442
4443 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4444
4445 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4446 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4447
4448 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4449 write_register_gen instead of write_register_bytes.
4450
4451 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4452 i[3456]-*-osf1mk* configurations have been made obsolete.
4453 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4454 i[3456]86-*-osf1mk* hosts obsolete.
4455 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4456 targets obsolete.
4457 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4458 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4459 config/i386/i386m3.mt, config/i386/nm-m3.h,
4460 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4461 config/i386/i386mk.mh, config/i386/i386mk.mt,
4462 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4463 obsolete.
4464 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4465 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4466 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4467
4468 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4469
4470 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4471 (hppa_value_returned_from_stack): Declare.
4472 (hppa_extract_return_value): Declare.
4473 * config/pa/hppa.mt: New file.
4474 * configure.tgt: Recognize hppa*-*-*.
4475 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4476
4477 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4478
4479 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4480 comment.
4481
4482 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4483
4484 * top.c (gdb_rl_operate_and_get_next): Make sure
4485 operate-and-get-next functions correctly even when the history
4486 list is completely filled.
4487
4488 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4489
4490 * MAINTAINERS (Target Instruction Set Architectures): Rename
4491 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4492 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4493 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4494 already listed under Host/Native.
4495
4496 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4497 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4498 mips*-*-*.
4499
4500 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4501
4502 * config/ia64/ia64.mt: New file.
4503 * config/alpha/alpha.mt: New file.
4504 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4505 ia64-linux-gnu. Mention that ia64-elf is broken.
4506 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4507
4508 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4509
4510 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4511 generic_func_frame_valid instead of func_frame_valid.
4512
4513 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4514
4515 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4516 procfs appears to be broken when debugging on multi-processor
4517 machines. So enable software single stepping in order to avoid
4518 using the procfs interface to do next/step operations, using
4519 internal breakpoints instead.
4520
4521 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4522 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4523 make this pc address equal to the value it would have if the
4524 system stepping capability was used. Also set a new flag used
4525 to ensure that we don't readjust the PC one more time later.
4526
4527 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4528 address by DECR_PC_AFTER_BREAK when software single step is
4529 in use for this architecture, as this has already been taken
4530 care of in handle_inferior_event().
4531
4532 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4533
4534 * infrun.c (handle_inferior_event): Minor reformatting, to make
4535 a rather long condition expression easier to read.
4536
4537 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4538
4539 * Makefile.in (gdbtk.o): Move to end of file.
4540 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4541 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4542 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4543 (gdbtk-wrapper.o, gdbres.o): Ditto.
4544
4545 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4546
4547 * Makefile.in (copying.o): Separate out compile rule.
4548 (hpux-thread.o, procfs.o, signals.o): Ditto.
4549 (v850ice.o, z8k-tdep.o): Ditto.
4550 (tui-file.o): Move to TUI section.
4551 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4552 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4553
4554 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4555
4556 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4557 skip_trampoline_code, for better namespace-proofing.
4558
4559 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4560
4561 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4562
4563 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4564
4565 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4566
4567 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4568 signal, check whether we hit a breakpoint before checking for a
4569 single step breakpoint. Otherwise, GDB fails to notice that a
4570 breakpoint has been hit when stepping onto a breakpoint.
4571
4572 2002-08-16 Keith Seitz <keiths@redhat.com>
4573
4574 * gdb-events.sh (clear_gdb_event_hooks): New function.
4575 * gdb-events.c: Regenerate.
4576 * gdb-events.h: Regenerate.
4577
4578 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4579
4580 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4581 not_a_sw_breakpoint.
4582 * breakpoint.h (bpstat_stop_status): Add parameter names.
4583
4584 2002-08-16 Grace Sainsbury <graces@redhat.com>
4585
4586 * remote.c (remote_insert_hw_breakpoint)
4587 (remote_remove_hw_breakpoint): Fix calculation of length field
4588 for Z-packet.
4589
4590 2002-08-15 Michael Snyder <msnyder@redhat.com>
4591
4592 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4593 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4594 (supply_fpregset): Ditto.
4595
4596 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4597 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4598 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4599 (TARGET_READ_SP): Delete.
4600 (DO_REGISTERS_INFO): Delete.
4601 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4602 Delete.
4603 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4604 from macros to functions.
4605
4606 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4607 (mips_register_convertible, mips_register_convert_to_virtual,
4608 mips_register_convert_to_raw): Make static.
4609 (mips_read_sp): New function.
4610 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4611 (mips_do_registers_info): Make static.
4612 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4613 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4614 (mips_register_convert_from_type, mips_register_convert_to_type):
4615 New functions.
4616 (mips_gdbarch_init): Set up function_start_offset,
4617 register_virtual_size, pc_in_sigtramp.
4618
4619 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4620
4621 * infcmd.c (vector_info): New function.
4622 (_initialize_infcmd): Add command "info vector".
4623 (print_vector_info): New function.
4624
4625 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4626 * gdbarch.h, gdbarch.c: Regenerate.
4627
4628 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4629
4630 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4631 ``print_all''. Only print vector registers when ``print_all''.
4632
4633 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4634
4635 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4636 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4637
4638 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4639 Add `args' parameter.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641
4642 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4643
4644 * infcmd.c (float_info): Call print_float_info.
4645 (print_float_info): New function. By default, print the
4646 floating-point registers.
4647
4648 * arch-utils.h (default_print_float_info): Delete declaration.
4649 * arch-utils.c (default_print_float_info): Delete function.
4650
4651 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4652
4653 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4654 out define.
4655
4656 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4657 FRAME.
4658
4659 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4660 * configure.host: Make i[3456]86-*-aix host obsolete.
4661 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4662 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4663 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4664 config/i386/xm-i386aix.h: Make files obsolete.
4665 * i386aix-nat.c: Make file obsolete.
4666 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4667 (i386aix-nat.o): Make target obsolete.
4668
4669 * config/i386/nm-gnu.h: Removed.
4670 * config/i386/nm-i386gnu.h: New file.
4671 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4672 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4673 Moved here from ...
4674 * config/i386/tm-i386gnu.h: ... here. Removed.
4675 * config/i386/xm-i386gnu.h: Removed.
4676 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4677 (NAT_FILE): Set to nm-i386gnu.h.
4678 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4679 * i386-tdep.c: New file.
4680 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4681 (i386gnu-tdep.o): Specify dependencies.
4682
4683 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4684
4685 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4686 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4687 Adjust a few comments to reflect reality a bit closer.
4688 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4689 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4690 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4691 target_insert_watchpoint, target_remove_watchpoint):
4692 Move defines to ...
4693 * config/i386/nm-i386sco5.h: ... here.
4694 (kernel_u_size): Add prototype. Improve a few comments and add
4695 protection against multiple inclusion.
4696
4697 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4698 out define.
4699
4700 * uw-thread.c (SP_ARG0): Define if not already defined.
4701 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4702
4703 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4704
4705 * config/i386/tm-i386.h: Don't include "regcache.h".
4706
4707 * i387-tdep.h (i387_print_float_info): New prototype.
4708 * i387-tdep.c (print_i387_value, print_i387_ext,
4709 print_i387_status_word, print_i387_control_word): Add `struct
4710 ui_file *' argument and use it for output.
4711 (i387_print_float_info): Renamed from i387_float_info. Add
4712 `struct gdbarch *' and `struct ui_file *' arguments and use the
4713 latter for output.
4714 * i386-tdep.c: Include "i387-tdep.h".
4715 (i386_gdbarch_init): Set print_float_info.
4716 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4717 (FLOAT_INFO): Remove define.
4718
4719 2002-08-13 Michael Snyder <msnyder@redhat.com>
4720
4721 * mips-tdep.c (mips_push_arguments): Rename to
4722 mips_eabi_push_arguments, and tune for EABI.
4723 (MIPS_REGS_HAVE_HOME_P): Delete.
4724 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4725 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4726 Delete references to mips_regs_have_home_p.
4727
4728 2002-08-14 Keith Seitz <keiths@redhat.com>
4729
4730 * Makefile.in (install-gdbtk): Create insight plugin directory.
4731 Install plugins.tcl file.
4732
4733 2002-08-14 Keith Seitz <keiths@redhat.com>
4734
4735 * configure.in: Move SUBDIRS to near top of the file so that
4736 --enable options may add things to it.
4737 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4738 * configure: Regenerate.
4739
4740 2002-08-13 Michael Snyder <msnyder@redhat.com>
4741
4742 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4743 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4744 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4745
4746 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4747
4748 * vax-tdep.c (vax_get_saved_register): Delete function.
4749 (vax_gdbarch_init): Update.
4750 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4751 (ns32k_gdbarch_init): Update.
4752 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4753 (alpha_gdbarch_init): Update.
4754
4755 2002-08-13 Andrew Cagney <cagney@redhat.com>
4756
4757 * regcache.c (init_regcache_descr): Overallocate the
4758 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4759 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4760 nr_raw_registers.
4761 (set_register_cached): Add range checking assertions. Use
4762 current_regcache.
4763
4764 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4765
4766 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4767 numbers for MMX registers.
4768
4769 2002-08-13 Andrew Cagney <cagney@redhat.com>
4770
4771 * i386-tdep.c (i386_gdbarch_init): Use
4772 generic_unwind_get_saved_register.
4773
4774 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4775
4776 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4777 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4778 target vector.
4779 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4780 Delete. Add comment regarding this now-deleted target method.
4781
4782 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4783
4784 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4785 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4786 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4787 real PC and the page number (if it's within the memory bank window).
4788 (m68hc11_pseudo_register_write): Likewise when saving.
4789 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4790 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4791 (m68hc11_register_raw_size): And use 32-bit for it.
4792 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4793 16K memory bank is used by the prog; also use the virtual pc.
4794
4795 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4796
4797 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4798 (m68hc11_gdbarch_init): Install it in gdbarch.
4799 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4800 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4801 (MSYMBOL_SIZE): New for documentation.
4802 (insn_return_kind): Enum to specify how a function returns.
4803 (frame_extra_info): Cleanup and record the return mode.
4804 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4805 register in address computation.
4806 (m68hc11_get_return_insn): New to obtain the return instruction used
4807 by the function.
4808 (m68hc11_frame_init_saved_regs): Take into account the return
4809 instruction used by the function for far and interrupt functions.
4810 (m68hc11_init_extra_frame_info): Take into account page register.
4811 (m68hc11_frame_args_address): Adjust according to the return mode.
4812 (show_regs): Print page register only when it's used.
4813
4814 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4815
4816 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4817 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4818 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4819 registers.
4820 (m68hc11_register_raw_size): Likewise.
4821
4822 2002-08-13 Andrew Cagney <cagney@redhat.com>
4823
4824 * i386-tdep.c (i386_register_name): Handle mmx registers.
4825 (mmx_regnum_p): New function.
4826 (i386_mmx_names): New array.
4827 (mmx_num_regs): New variable.
4828 (i386_pseudo_register_read): New function.
4829 (i386_pseudo_register_write): New function.
4830 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4831
4832 * regcache.c (regcache_raw_read_unsigned): New function.
4833 (regcache_raw_read_signed): New function.
4834 * regcache.h (regcache_raw_read_unsigned): Declare.
4835 (regcache_raw_read_signed): Declare.
4836
4837 2002-08-13 Andrew Cagney <cagney@redhat.com>
4838
4839 * regcache.c (regcache_raw_read_as_address): Delete function.
4840 (regcache_cooked_read_signed): New function.
4841 (regcache_cooked_read_unsigned): New function.
4842 * regcache.h (regcache_cooked_read_signed): Declare.
4843 (regcache_cooked_read_unsigned): Declare.
4844 (regcache_raw_read_as_address): Delete declaration.
4845
4846 * blockframe.c (generic_read_register_dummy): Use
4847 regcache_cooked_read_unsigned.
4848 * i386-tdep.c (i386_extract_struct_value_address): Use
4849 regcache_cooked_read_unsigned.
4850
4851 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4852
4853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4854 double sizes according to ELF ABI flags.
4855 (gdbarch_tdep): Record elf_flags.
4856
4857 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4858
4859 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4860 (m6812_prolog): They can appear in 68HC12 function prologue.
4861 (m68hc11_frame_chain): Cleanup.
4862
4863 2002-08-12 Andrew Cagney <cagney@redhat.com>
4864
4865 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4866 declarations.
4867 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4868 (i386_linux_register_raw_size): Delete function.
4869 (i386_linux_init_abi): Update.
4870 * i386-tdep.c (i386_register_raw_size): Delete function.
4871 (i386_register_byte): Delete function.
4872 (i386_gdbarch_init): Update.
4873 (i386_register_size): Delete array.
4874 (i386_register_offset): Delete array.
4875
4876 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4877 (REGISTER_RAW_SIZE): Delete macro.
4878 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4879 (REGISTER_BYTE): Delete macro.
4880
4881 2002-08-11 Aidan Skinner <aidan@velvet.net>
4882
4883 * ada-lang.c (ada_lookup_partial_symbol)
4884 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4885 prototype names so that grep ^func works properly.
4886
4887 * ada-lang.c (ada_array_element_type)
4888 (ada_lookup_partial_symbol): Fix typos in parameter list.
4889
4890 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4891 Fix prototype names so that grep ^func works properly.
4892
4893 2002-08-10 Andrew Cagney <cagney@redhat.com>
4894 Elena Zannoni <ezannoni@redhat.com>
4895 Martin M. Hunt <hunt@redhat.com>
4896
4897 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4898 (build_builtin_type_vec128i): Set the vector bit.
4899 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4900 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4901 (build_builtin_type_vec64): New function.
4902 (build_builtin_type_vec64i): New function.
4903 (build_gdbtypes): Initialize builtin_type_vec64 and
4904 builtin_type_vec64i.
4905
4906 2002-08-09 Andrew Cagney <cagney@redhat.com>
4907
4908 * regcache.c (regcache_dump): Compare the register offset
4909 with REGISTER_BYTE.
4910 * arch-utils.c (generic_register_byte): New function.
4911 * arch-utils.h (generic_register_byte): Declare.
4912 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4913 * gdbarch.h, gdbarch.c: Regenerate.
4914
4915 2002-08-09 Andrew Cagney <cagney@redhat.com>
4916
4917 * regcache.c: Include "gdbcmd.h"
4918 (_initialize_regcache): Add commands "maintenance print
4919 registers", "maintenance print raw-registers" and "maintenance
4920 print cooked-registers".
4921 (enum regcache_dump_what): Define.
4922 (dump_endian_bytes): New function.
4923 (regcache_dump): New function.
4924 (regcache_print): New function.
4925 (maintenance_print_registers): New function.
4926 (maintenance_print_raw_registers): New function.
4927 (maintenance_print_cooked_registers): New function.
4928 * Makefile.in (regcache.o): Update dependencies.
4929
4930 2002-08-09 Michael Snyder <msnyder@redhat.com>
4931
4932 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4933 (mips_push_arguments): Correct some comments. Use paddr_nz
4934 for printing addresses in debug output. Replace static
4935 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4936 (mips_n32n64_push_arguments): New function, cloned from
4937 mips_push_arguments and tuned for the n32/n64 ABI.
4938 (mips_push_register): Buffer needs dynamic allocation.
4939 (mips_print_register): Ditto.
4940 (do_gp_register_row): Ditto.
4941 (mips_store_return_value): Ditto.
4942 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4943
4944 2002-08-09 Don Howard <dhoward@redhat.com>
4945
4946 * memattr.c (mem_info_command): Print special case of upper bound
4947 as max CORE_ADDR + 1.
4948
4949 2002-08-08 Michael Snyder <msnyder@redhat.com>
4950
4951 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4952 returns structs by ref if they're too big to fit in two registers.
4953
4954 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4955
4956 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4957 saved regs value.
4958 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4959 mips_find_saved_regs().
4960 (mips_pop_frame): Likewise.
4961
4962 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4963
4964 * blockframe.c (frame_saved_regs_register_unwind): Revise
4965 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4966 frames are in use.
4967
4968 2002-08-09 Grace Sainsbury <graces@redhat.com>
4969
4970 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4971 T-packets; the 'a' is not taken as a register number.
4972 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4973 (remote_stopped_data_address): New functions; add to target
4974 vector.
4975 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4976 prototypes to match other implementations of this
4977 function. replace integer argument with pointer -- the length
4978 field in the Z-packet is the length of what is pointed to or 1 if
4979 pointer is null. Add to target vector.
4980 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4981 target vector.
4982
4983 From Mark Salter:
4984 * remote.c (remote_wait): Add support to extract optional
4985 watchpoint information from T-packet. Ignore unrecognized
4986 optional info in T-packet.
4987 (remote_async_wait): Ditto.
4988
4989 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4990
4991 * cli/cli-dump.c: Change fopen modes to use binary open modes
4992 as defined in include/fopen-bin.h throughout.
4993
4994 2002-08-08 Michael Snyder <msnyder@redhat.com>
4995
4996 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4997
4998 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4999
5000 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5001 assertion failure by returning early after a warning.
5002
5003 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5004
5005 * mips-tdep.c (mips_find_saved_regs): Make static.
5006 (mips_frame_init_saved_regs): New function.
5007 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5008 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5009 (mips_find_saved_regs): Delete declaration.
5010
5011 2002-08-08 Grace Sainsbury <graces@redhat.com>
5012
5013 * remote.c (remote_wait, remote_async_wait): Change
5014 thread_num from int to ULONGEST.
5015 (unpack_varlen_hex): Change result parameter from
5016 int * to ULONGEST *.
5017
5018 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5019
5020 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5021 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5022 powerpc*-*-*.
5023 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5024
5025 2002-08-08 Andrew Cagney <cagney@redhat.com>
5026
5027 * gcore.c (override_derive_stack_segment): Delete variable.
5028 (preempt_derive_stack_segment): Delete function.
5029 (derive_stack_segment): Delete function.
5030 (default_derive_stack_segment): Renamed to derive_stack_segment.
5031 (override_derive_heap_segment): Delete variable.
5032 (preempt_derive_heap_segment): Delete function.
5033 (derive_heap_segment): Delete function.
5034 (default_derive_heap_segment): Rename to derive_heap_segment.
5035
5036 2002-08-06 Michael Snyder <msnyder@redhat.com>
5037
5038 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5039 * mips-tdep.c (mips_EABI_use_struct_convention,
5040 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5041 New functions. (mips_use_struct_convention): Delete.
5042 (mips_gdbarch_init): set use_gdbarch_convention.
5043
5044 2002-08-06 Michael Snyder <msnyder@redhat.com>
5045
5046 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5047 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5048 mips_o32_reg_struct_has_addr): New functions.
5049 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5050
5051 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5052
5053 * regcache.c (pseudo_register): Delete function.
5054 (fetch_register): Delete function.
5055 (store_register): Delete function.
5056 (regcache_raw_read, legacy_read_register_gen): Use
5057 target_fetch_registers instead of fetch_register.
5058 (legacy_write_register_gen, regcache_raw_write): Use
5059 target_store_register instead of store_register.
5060 (write_register_bytes): Ditto.
5061
5062 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5063 (STORE_PSEUDO_REGISTER): Delete.
5064 * gdbarch.h, gdbarch.c: Regenerate.
5065
5066 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5067
5068 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5069 write dump file binary.
5070
5071 2002-08-05 Michael Snyder <msnyder@redhat.com>
5072
5073 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5074 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5075 (mips_gdbarch_init): Set N32 target to be mips64.
5076
5077 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5078
5079 * frame.c (find_saved_register): Break out of loop once saved
5080 register address is found. Don't mention sparc in loop comment
5081 anymore.
5082
5083 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5084
5085 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5086 mips_default_saved_regsize to 8.
5087
5088 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5089
5090 * gcore.c: Do not include <sys/procfs.h>.
5091 * Makefile.in (gcore.o): Update dependencies.
5092
5093 2002-08-06 Andrew Cagney <cagney@redhat.com>
5094
5095 * configure.tgt: Make arc-*-* obsolete.
5096 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5097 * MAINTAINERS: Make arc-elf obsolete.
5098 * arc-tdep.c: Make file obsolete.
5099 * config/arc/arc.mt: Ditto.
5100 * config/arc/tm-arc.h: Ditto.
5101
5102 2002-08-05 Theodore A. Roth <troth@verinet.com>
5103
5104 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5105
5106 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5107
5108 * mcore-tdep.c (mcore_gdbarch_init): Use
5109 generic_unwind_get_saved_register instead of
5110 generic_get_saved_register.
5111 * v850-tdep.c (v850_gdbarch_init): Ditto.
5112 * frv-tdep.c (frv_gdbarch_init): Ditto.
5113 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5114 * s390-tdep.c (s390_gdbarch_init): Ditto.
5115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5116 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5117 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5118
5119 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5120
5121 * objfiles.h: Add missing #include "symfile.h"
5122
5123 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5124
5125 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5126
5127 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5128 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5129 of FIELD_BITSIZE.
5130
5131 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5132
5133 * NEWS: Cleanup and nitpick.
5134
5135 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5136
5137 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5138
5139 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5140
5141 * Makefile.in (gdbtk-bp.o): Update dependencies.
5142 (gdbtk-register.o): Ditto.
5143 (gdbtk-varobj.o): Ditto.
5144
5145 2002-08-03 Andrew Cagney <cagney@redhat.com>
5146
5147 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5148 m68hc11_fetch_pseudo_register.
5149 (m68hc11_pseudo_register_write): Replace
5150 m68hc11_store_pseudo_register.
5151 (m68hc11_gdbarch_init): Update.
5152
5153 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5154
5155 * gdbarch.sh: Include "gdb_string.h".
5156 * gdbarch.c: Regenerate.
5157
5158 * regcache.c: Include "gdb_string.h".
5159 * ax-general.c: Ditto.
5160 * varobj.c: Ditto.
5161 * std-regs.c: Ditto.
5162 * fbsd-proc.c: Ditto.
5163 * thread.c: Ditto.
5164
5165 * Makefile.in (regcache.o): Update dependencies.
5166 (thread.o, gdbarch.o): Ditto.
5167 (ax-general.o, gdbarch.o): Ditto.
5168 (varobj.o, std-regs.o): Ditto.
5169 (fbsd-proc.o): Specify dependencies.
5170
5171 2002-08-02 Andrew Cagney <cagney@redhat.com>
5172
5173 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5174 regnum.
5175 (regcache_cooked_write): Ditto.
5176
5177 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5178
5179 * regcache.c (regcache_cooked_read): New function.
5180 (regcache_cooked_write): New function.
5181 (read_register_gen): Rewrite using regcache_cooked_read.
5182 (write_register_gen): Rewrite using regcache_cooked_write.
5183
5184 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5185 Declare.
5186
5187 2002-08-02 Andrew Cagney <cagney@redhat.com>
5188
5189 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5190 Replace the architecture methods register_read and register_write.
5191 * gdbarch.h, gdbarch.c: Regenerate.
5192 * regcache.c (init_regcache_descr): Update.
5193 (read_register_gen): Update.
5194 (write_register_gen): Update.
5195 (supply_register): Update comment.
5196
5197 * sh-tdep.c (sh_gdbarch_init): Update.
5198 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5199 `regcache' and `gdbarch' parameters. Make `buffer' a void
5200 pointer. Update code.
5201 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5202 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5203 void pointer. Update code.
5204 (sh64_register_write): Delete.
5205 (sh4_register_read): Delete.
5206 (sh64_register_read): Delete.
5207 (sh4_register_write): Delete.
5208 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5209 void pointer, `to' parameter a void pointer.
5210 (sh_sh64_register_convert_to_raw): Ditto.
5211
5212 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5213
5214 * mips-tdep.c (mips_register_virtual_type): Use architecture
5215 invariant return values.
5216
5217 2002-08-01 Andrew Cagney <cagney@redhat.com>
5218
5219 * linux-proc.c: Include "gdb_string.h".
5220 * Makefile.in (linux-proc.o): Update dependency list.
5221
5222 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5223
5224 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5225 comment.
5226
5227 2002-08-01 Grace Sainsbury <graces@redhat.com>
5228
5229 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5230 to_insert_watchpoint, to_remove_watchpoint,
5231 to_stopped_by_watchpoint, to_stopped_data_address,
5232 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5233 target vecctor. Define their corresponding macros so they call
5234 them.
5235
5236 * target.c: Add default and debug versions of for
5237 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5238 to_insert_watchpoint, to_remove_watchpoint,
5239 to_stopped_by_watchpoint, to_stopped_data_address,
5240 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5241
5242 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5243
5244 * mips-tdep.c (mips_register_virtual_type): New function.
5245 (mips_gdbarch_init): Register mips_register_virtual_type()
5246 with gdbarch machinery.
5247 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5248 this file instead of tm-bigmips.h.
5249 (MIPS_REGSIZE): Delete this macro.
5250 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5251 multiarch version in mips-tdep.c will be found.
5252
5253 2002-08-01 Andrew Cagney <cagney@redhat.com>
5254
5255 * NEWS: Menion that CHILL has been made obsolete.
5256
5257 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5258 * stabsread.c (read_range_type): Ditto.
5259 * gdbtypes.h: Ditto.
5260 * language.c (binop_type_check): Ditto.
5261 (binop_result_type): Ditto.
5262 (integral_type): Ditto.
5263 (character_type): Ditto.
5264 (string_type): Ditto.
5265 (boolean_type): Ditto.
5266 (structured_type): Ditto.
5267 (lang_bool_type): Ditto.
5268 (binop_type_check): Ditto.
5269 * language.h (_LANG_chill): Ditto.
5270 * dwarfread.c (set_cu_language): Ditto.
5271 * dwarfread.c (CHILL_PRODUCER): Ditto.
5272 * dwarfread.c (handle_producer): Ditto.
5273 * expression.h (enum exp_opcode): Ditto.
5274 * eval.c: Ditto for comments.
5275 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5276 * expprint.c (print_subexp): Ditto.
5277 (print_subexp): Ditto.
5278 * valops.c (value_cast): Ditto.
5279 (search_struct_field): Ditto.
5280 * value.h (COERCE_VARYING_ARRAY): Ditto.
5281 * symfile.c (init_filename_language_table): Ditto.
5282 (add_psymbol_with_dem_name_to_list): Ditto.
5283 * valarith.c (value_binop): Ditto.
5284 (value_neg): Ditto.
5285 * valops.c (value_slice): Ditto.
5286 * symtab.h (union language_specific): Ditto.
5287 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5288 (SYMBOL_DEMANGLED_NAME): Ditto.
5289 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5290 * defs.h (enum language): Ditto.
5291 * symtab.c (got_symtab): Ditto.
5292 * utils.c (fprintf_symbol_filtered): Ditto.
5293
5294 * ch-typeprint.c: Make file obsolete.
5295 * ch-valprint.c: Make file obsolete.
5296 * ch-lang.h: Make file obsolete.
5297 * ch-exp.c: Make file obsolete.
5298 * ch-lang.c: Make file obsolete.
5299
5300 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5301 CHILL_LIB.
5302 (TARGET_FLAGS_TO_PASS): Ditto.
5303 (CHILLFLAGS): Obsolete.
5304 (CHILL): Obsolete.
5305 (CHILL_FOR_TARGET): Obsolete.
5306 (CHILL_LIB): Obsolete.
5307 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5308 ch-valprint.c.
5309 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5310 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5311 ch-lang.o.
5312 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5313 targets.
5314
5315 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5316
5317 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5318 This does not change anything at the moment, but will be helpful
5319 later when full Ada support is integrated.
5320
5321 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5322
5323 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5324 help message.
5325
5326 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5327
5328 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5329 and save it in a local variable. Use variable in later test.
5330
5331 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5332
5333 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5334 test. (Thanks to Daniel Jacobowitz.)
5335
5336 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5337
5338 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5339 (mips_abi_strings): Add "n64".
5340 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5341
5342 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5343
5344 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5345 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5346
5347 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5348
5349 * utils.c (host_pointer_to_address, address_to_host_pointer):
5350 Use gdb_assert() instead of explicit call to internal_error().
5351
5352 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5353
5354 * Makefile.in (rs6000-nat.o): Update dependencies.
5355
5356 From Nicholas Duffek:
5357 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5358 (aix-thread.o): New rule.
5359 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5360 * config/powerpc/aix432.mh: New file.
5361
5362 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5363
5364 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5365 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5366 (fetch_core_registers, ppc_linux_supply_gregset)
5367 (ppc_linux_supply_fpregset): New functions.
5368 (ppc_linux_regset_core_fns): New.
5369 (_initialize_ppc_linux_tdep): Call add_core_fns.
5370 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5371 and ppc_linux_supply_gregset.
5372 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5373 (supply_fpregset): Call ppc_linux_supply_fpregset.
5374 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5375 corelow.o.
5376 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5377
5378 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5379
5380 * symtab.c (lookup_symbol): Demangle before lowercasing.
5381
5382 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5383
5384 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5385 declaration.
5386 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5387 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5388 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5389 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5390 "gdb_string.h".
5391 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5392 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5393 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5394 (avr-tdep.o, mon960-rom.o): Ditto.
5395 (aout_stabs_gnu_h): Define.
5396 (symtab_h): Remove $(gdb_obstack_h).
5397
5398 2002-07-30 Jim Blandy <jimb@redhat.com>
5399
5400 Patch from David Carlton <carlton@math.stanford.edu>:
5401 * gdbinit.in: Move the `dir' commands that add GDB's own source
5402 directory to the search path to the end, so that the `gdb' source
5403 directory will be searched first.
5404
5405 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5406
5407 * gdb_obstack.h: New file.
5408 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5409 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5410 * objfiles.h: Include "gdb_obstack.h".
5411 * Makefile.in (gdb_obstack_h): Define.
5412 (symtab_h): Add $(gdb_obstack_h).
5413 (objfiles_h): Add $(gdb_obstack_h).
5414
5415 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5416 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5417 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5418 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5419 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5420 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5421 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5422 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5423
5424 * Makefile.in (bcache.o): Update dependencies.
5425 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5426 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5427 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5428 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5429 (stabsread.o, symfile.o, symmisc.o): Ditto.
5430 (symtab.o, typeprint.o, macroexp.o): Ditto.
5431 (macrotab.o, mdebugread.o): Ditto.
5432 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5433 (coff_ecoff_h, aout_aout64_h): Define.
5434 (aout_stabs_gnu_h, libaout_h): Define.
5435
5436 2002-07-29 Andrew Cagney <cagney@redhat.com>
5437
5438 * regcache.c (struct regcache_descr): Rename nr_registers to
5439 nr_cooked_registers. Revise comments describing the structure
5440 member fields.
5441 (init_regcache_descr): Update.
5442 (init_legacy_regcache_descr): Update.
5443 (read_register_gen, write_register_gen): When a cooked register in
5444 the raw register range, directly access the value from the raw
5445 register cache.
5446
5447 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5448
5449 * z8k-tdep.c: Do not include "obstack.h".
5450 * h8300-tdep.c, h8500-tdep.c: Ditto.
5451 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5452 * valprint.c, v850-tdep.c: Ditto.
5453 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5454 * mn10200-tdep.c: Ditto.
5455
5456 * Makefile.in (z8k-tdep.o): Update dependencies.
5457 (m68hc11-tdep.o, valprint.o): Ditto.
5458 (v850-tdep.o, d10v-tdep.o): Ditto.
5459 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5460 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5461 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5462 (sh_opc_h, gdb_sim_sh_h): Define.
5463 (elf_sh_h, elf_bfd_h): Define.
5464 (opcode_m68hc11_h): Define.
5465 (OPCODES_SRC, OPCODES_DIR): define.
5466 (OPCODES): Use $(OPCODES_DIR).
5467 (gdb_sim_d10v_h): Rename sim_d10v_h.
5468 (gdb_sim_arm_h): Rename sim_arm_h.
5469
5470 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5471
5472 * utils.c (host_pointer_to_address, address_to_host_pointer):
5473 Change internal_error() message to indicate function responsible
5474 for the error.
5475
5476 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5477
5478 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5479 calls to local_hex_string_custom().
5480
5481 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5482
5483 * irix5-nat.c: Move IRIX shared library support from here...
5484 * solib-irix.c: ...to here. Revised substantially to work with
5485 generic solib framework.
5486
5487 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5488 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5489 * mips-irix-tdep.c: New file.
5490
5491 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5492 (mips-irix-tdep.o, solib-irix.o): New rules.
5493 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5494 solib-irix.o.
5495 * config/mips/irix6.mt (TDEPFILES): Likewise.
5496 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5497
5498 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5499
5500 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5501 disabled (via ``#if 0'') includes.
5502
5503 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5504
5505 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5506 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5507 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5508 Add support for the fpscr register.
5509 * rs6000-nat.c (regmap, fetch_inferior_registers)
5510 (store_inferior_registers, fetch_core_registers): Likewise.
5511
5512 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5513
5514 * rs6000-nat.c (language.h): Include.
5515 (special_regs): Delete this array.
5516 (regmap): New function.
5517 (fetch_register, store_register): Use regmap() to map gdb
5518 register numbers to ptrace register numbers. Also, use
5519 outputs from regmap() to make decisions regarding type of
5520 ptrace() call to make. In particular, don't compare against
5521 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5522 (fetch_inferior_registers, store_inferior_registers): Where
5523 possible, obtain register numbers from tdep struct. Don't
5524 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5525 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5526 (LAST_UISA_SP_REGNUM): Delete.
5527
5528 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5529
5530 * rs6000-nat.c (ppc-tdep.h): Include.
5531 (fetch_registers, store_register, fetch_core_registers): Don't
5532 access registers[] directly. Instead, use supply_register() or
5533 regcache_collect() as appropriate.
5534 (find_toc_address): Format hex address with local_hex_string().
5535
5536 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5537
5538 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5539 bfd/elf32-frv.c.
5540
5541 2002-07-24 Tom Tromey <tromey@redhat.com>
5542
5543 * jv-exp.y: Marked all strings with _().
5544 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5545 internal_error.
5546 (MethodInvocation, CastExpression, parse_number, yyerror,
5547 java_type_from_name, push_expression_name, yylex): Typo fixes.
5548
5549 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5550
5551 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5552 (tee_file_flush, tee_file_write, tee_file_fputs)
5553 (tee_file_isatty): New.
5554 * ui-file.h (tee_file_new): Add prototype.
5555
5556 2002-07-24 Aidan Skinner <aidan@velvet.net>
5557
5558 * ada-lang.c: Change k&r style function definitions to prototyped
5559 form.
5560 * ada-typeprint.c: Change k&r style function definitions to prototyped
5561 form.
5562 * ada-valprint.c: Change k&r style function definitions to prototyped
5563 form.
5564
5565 2002-07-24 Andrew Cagney <cagney@redhat.com>
5566
5567 * README: Remove reference to remote-bug.
5568 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5569 remote-bug.c.
5570 (m88k-nat.o): Delete rule.
5571 (m88k-tdep.o): Delete rule.
5572 (remote-bug.o): Delete rule.
5573 * MAINTAINERS: Mark as obsolete.
5574 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5575 * m88k-tdep.c: Make file obsolete.
5576 * config/m88k/m88k.mh: Ditto.
5577 * config/m88k/delta88v4.mh: Ditto.
5578 * config/m88k/delta88v4.mt: Ditto.
5579 * config/m88k/delta88.mt: Ditto.
5580 * config/m88k/delta88.mh: Ditto.
5581 * remote-bug.c: Ditto.
5582 * config/m88k/tm-delta88.h: Ditto.
5583 * config/m88k/nm-delta88v4.h: Ditto.
5584 * config/m88k/xm-delta88.h: Ditto.
5585 * config/m88k/xm-dgux.h: Ditto.
5586 * config/m88k/tm-m88k.h: Ditto.
5587 * config/m88k/nm-m88k.h: Ditto.
5588 * config/m88k/tm-delta88v4.h: Ditto.
5589 * m88k-nat.c: Ditto.
5590 * cxux-nat.c: Ditto.
5591 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5592 and m88*-*-* obsolete.
5593 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5594 m88*-*-* obsolete.
5595
5596 2002-07-24 Andrew Cagney <cagney@redhat.com>
5597
5598 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5599 constant. Same for local pointer variables.
5600 (extract_signed_integer): Ditto.
5601 * defs.h (extract_unsigned_integer): Update.
5602 (extract_signed_integer): Update.
5603
5604 2002-07-24 Andrew Cagney <cagney@redhat.com>
5605
5606 * regcache.c (regcache_raw_write): Change buf parameter to a
5607 constant void pointer.
5608 (regcache_raw_read): Change buf parameter to a void pointer.
5609 (legacy_write_register_gen): Change myaddr parameter a constant
5610 void pointer.
5611 (supply_register): Change val parameter to a const void pointer.
5612 * regcache.h (regcache_raw_write): Update declaration.
5613 (regcache_raw_read): Update declaration.
5614 (supply_register): Update declaration.
5615
5616 2002-07-24 Tom Tromey <tromey@redhat.com>
5617
5618 * defs.h (gdb_readline_wrapper): Declare.
5619 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5620 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5621 * top.c (gdb_readline_wrapper): New function.
5622 (command_line_input): Use it.
5623
5624 2002-07-24 Andrew Cagney <cagney@redhat.com>
5625
5626 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5627 regcache_read and regcache_write.
5628 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5629 * regcache.c: Update.
5630 * sh-tdep.c (sh64_push_arguments): Update comment.
5631 (sh_pseudo_register_read): Update.
5632 (sh_pseudo_register_write): Update.
5633 (sh4_register_read): Update.
5634 (sh4_register_write): Update.
5635 (sh64_pseudo_register_read): Update.
5636 (sh64_pseudo_register_write): Update.
5637 (sh64_register_read): Update.
5638 (sh64_register_write): Update.
5639 * i386-tdep.c (i386_extract_return_value): Update.
5640 (i386_extract_struct_value_address): Update.
5641 (i386_extract_return_value): Update.
5642 * blockframe.c (generic_read_register_dummy): Update.
5643 (generic_call_dummy_register_unwind): Update
5644 * infrun.c (write_inferior_status_register): Update.
5645
5646 2002-07-23 Jim Blandy <jimb@redhat.com>
5647
5648 * parser-defs.h (expression_context_pc): Make this extern.
5649 (Thanks to Michael Snyder.)
5650
5651 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5652
5653 GDB 5.2.1 released from 5.2 branch.
5654 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5655 * README: Update to mention 5.2.1.
5656
5657 2002-07-23 Mark Salter <msalter@redhat.com>
5658
5659 * remote.c (remote_read_bytes): Fix check for error.
5660
5661 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5662
5663 * aix-thread.c (language.h): Include.
5664 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5665 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5666 Print newlines at end of debug messages.
5667 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5668 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5669
5670 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5671
5672 * aix-thread.c (ppc-tdep.h): Include.
5673 (special_register_p): New function.
5674 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5675 (store_regs_user_thread): Use register number information from
5676 gdbarch_tdep struct instead of hardcoded offsets relative to
5677 FIRST_UISA_SP_REGNUM.
5678 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5679 special_register_p() instead of using FPLAST_REGNUM and
5680 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5681 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5682 will be MQ's register number.
5683
5684 2002-07-22 Michael Snyder <msnyder@redhat.com>
5685
5686 * aix-thread.c (ops): Rename to aix_thread_ops.
5687 (base_ops): Rename to base_target.
5688 (ops_attach): Rename to aix_thread_attach.
5689 (ops_detach): Rename to aix_thread_detach.
5690 (ops_resume): Rename to aix_thread_detach.
5691 (ops_wait): Rename to aix_thread_wait.
5692 (ops_kill): Rename to aix_thread_kill.
5693 (init_ops): Rename to init_aix_thread_ops.
5694 (ops_fetch_register): Rename to aix_thread_fetch_register.
5695 (ops_store_register): Rename to aix_thread_store_register.
5696 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5697 (ops_thread_alive): Rename to aix_thread_thread_alive.
5698 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5699 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5700 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5701 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5702 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5703 (store_regs_lib): Rename to store_regs_user_thread.
5704 (store_regs_kern): Rename to store_regs_kernel_thread.
5705
5706 2002-07-22 Michael Snyder <msnyder@redhat.com>
5707
5708 * aix-thread.c (ops_prepare_to_store): Eliminate.
5709 (init_ops): Don't initialize ops.prepare_to_store.
5710 (store_regs_kern): Pre-fetch register buffers from child,
5711 because some registers may not be in the cache. Copy
5712 regs from register cache only if they are cached.
5713 (store_regs_lib): Copy regs from register cache only
5714 if they are cached.
5715 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5716 fill_gprs64): Ditto.
5717
5718 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5719
5720 * aix-thread.c (gdb_assert.h): Include.
5721 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5722 register sizes (from register cache) match size of buffer holding
5723 register data.
5724 (fill_sprs32): Change parameter types to match those in the ptrace()
5725 buffer.
5726 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5727 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5728
5729 2002-07-22 Michael Snyder <msnyder@redhat.com>
5730
5731 * aix-thread.c (supply_sprs64): Cosmetic change.
5732 (supply_sprs32): Cosmetic change.
5733 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5734 (fill_sprs64): Use regcache_collect instead of read_register.
5735 (store_regs_lib): Use regcache_collect instead of
5736 read_register. Use fill_sprs32 instead of fill_sprs64,
5737 if debugging a 32-bit architecture.
5738 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5739 out of the register cache, instead of passing a pointer into
5740 the register cache directly to ptrace. Use regcache_collect
5741 insteaad of read_register.
5742 (ops_prepare_to_store): Use target_read_registers instead
5743 of read_register_bytes.
5744
5745 2002-07-20 Aidan Skinner <aidan@velvet.net>
5746
5747 * MAINTAINERS: Add self under write after approval.
5748
5749 2002-07-20 Aidan Skinner <aidan@velvet.net>
5750
5751 * ada-tasks.c: Change k&r style function definitions to prototyped
5752 form.
5753
5754 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5755
5756 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5757 * x86-64-tdep.c: Include "objfiles.h".
5758 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5759 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5760
5761 2002-07-17 Michal Ludvig <michal@suse.cz>
5762
5763 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5764 (update_context): Initialise cfa variable.
5765
5766 2002-07-17 Michael Snyder <msnyder@redhat.com>
5767
5768 * aix-thread.c: Shorten some long lines.
5769 Bring comments into line with code spec.
5770
5771 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5772
5773 * infrun.c: Re-indent using gdb_indent.sh.
5774
5775 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5776
5777 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5778 Leave the indentation temporarily untouched, to minimize the diffs.
5779
5780 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5781
5782 * stabsread.c: Make os9k sections of the code obsolete,
5783 for real this time.
5784 * stabsread.h: Make os9k sections of the code obsolete.
5785
5786 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5787
5788 * linux-low.c (regsets_store_inferior_registers): Add free()
5789 at the end of a loop to prevent memory leak.
5790 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5791 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5792 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5793 line a comment.
5794 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5795
5796 2002-07-17 Jim Blandy <jimb@redhat.com>
5797
5798 * macrocmd.c (info_macro_command): Remove newline from error
5799 message.
5800
5801 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5802
5803 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5804 (sh_gdbarch_init): Use it for sh-dsp.
5805
5806 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5807
5808 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5809 64-bit DWARF2 format.
5810
5811 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5812
5813 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5814 <sys/proc.h> when not available.
5815
5816 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5817
5818 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5819 * stabsread.c: Make os9k sections of the code obsolete.
5820 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5821 * config/i386/i386os9k.mt: Make file obsolete.
5822 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5823 (COMMON_OBS): Remove os9kread.o
5824 (SFILES): Remove os9kread.c.
5825 (os9kread.o, remote-os9k.o): Make target obsolete.
5826 * remote-os9k.c: Make file obsolete.
5827 * os9kread.c: Make file obsolete.
5828 * Makefile.in
5829
5830 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5831
5832 * NEWS: Mention that the FR30 has been made obsolete.
5833 * fr30-tdep.c: Make file obsolete.
5834 * config/fr30/tm-fr30.h: Ditto.
5835 * config/fr30/fr30.mt: Ditto.
5836 * configure.tgt: Make fr30-*-elf obsolete.
5837 * MAINTAINERS: Make fr30-elf obsolete.
5838
5839 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5840
5841 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5842 found is not inside a section.
5843
5844 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5845
5846 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5847 strerror().
5848 (pdc_realloc): Use xrealloc() instead of realloc().
5849
5850 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5851
5852 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5853 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5854 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5855 macros.
5856
5857 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5858
5859 * aix-thread.c (ptrace_check): Eliminate goto.
5860 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5861 problem.
5862
5863 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5864
5865 * aix-thread.c (gdbcmd.h): Include.
5866 (DEBUG, DBG, DBG2, dbg): Eliminate.
5867 (debug_aix_thread): New static global.
5868 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5869 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5870 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5871 invocations to DBG and DBG2 macros to test against
5872 ``debug_aix_thread'' and call fprintf_unfiltered().
5873 (_initialize_aix_thread): Add new command "set debug aix-thread".
5874
5875 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5876
5877 From Gerhard Tonn <TON@de.ibm.com>:
5878 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5879 instead of supply_register.
5880
5881 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5882
5883 * dwarf2cfi.c: Include "gdb_assert.h".
5884 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5885 non-NULL.
5886 (update_context): Do not use __func__. Add missing ``break''.
5887 (update_context): Do not use __func__.
5888
5889 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5890
5891 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5892 and its setting. Set gdbarch instruction printing functions
5893 directly. For non-rs6000 case use new function
5894 gdb_print_insn_powerpc.
5895 (gdb_print_insn_powerpc): New function.
5896
5897 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5898
5899 * NEWS: Mention that the d30v has been marked obsolete.
5900 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5901 * configure.tgt: Mark d30v-*-* as obsolete.
5902 * d30v-tdep.c: Mark file as obsolete.
5903 * config/d30v/d30v.mt: Ditto.
5904 * config/d30v/tm-d30v.h: Ditto.
5905
5906 2002-07-13 Aidan Skinner <aidan@velvet.net>
5907
5908 * ada-tasks.c (add_task_entry): replace calls to
5909 malloc() with xmalloc
5910 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5911
5912 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5913 ada_finish_decode_line_1, all_sals_for_line
5914 ada_breakpoint_rewrite): replace calls to free() with xfree()
5915
5916 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5917
5918 From Nicholas Duffek (with minor changes by Martin Hunt,
5919 Louis Hamilton, and Kevin Buettner):
5920 * aix-thread.c: New file.
5921
5922 2002-07-12 Petr Sorfa <petrs@caldera.com>
5923
5924 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5925 complaint for invalid attribute class or form.
5926 (read_func_scope): DW_AT_frame_base
5927 better handling of DW_AT_block*.
5928 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5929 better handling of DW_AT_block*.
5930 (read_common_block): DW_AT_location
5931 better handling of DW_AT_block*.
5932 (read_partial_die): DW_AT_location better handling
5933 of DW_AT_block*.
5934 (new_symbol): DW_AT_external better handling of
5935 DW_AT_block*. Proper initialization of variable
5936 "addr".
5937 (attr_form_is_block): New function that returns true
5938 if the attribute's form is of DW_FORM_block*.
5939
5940 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5941
5942 * valops.c (find_method_list): Remove comment about
5943 removed STATIC_MEMFUNCP argument.
5944 (value_find_oload_method_list): Likewise.
5945
5946 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5947
5948 From Nicholas Duffek:
5949 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5950 target_new_objfile_hook.
5951
5952 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5953
5954 From Nicholas Duffek:
5955 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5956 csect.
5957
5958 2002-07-12 Andrew Cagney <cagney@redhat.com>
5959
5960 * MAINTAINERS: Mention --enable-sim-build-warnings.
5961 (m68hc11-elf): Disable sim build warnings.
5962 (m32r-elf): Mark as broken obsolete candidate.
5963 (x86_64-linux-gnu): Mark as buildable with -Werror.
5964 (arm-elf): Change -w to ``,'' which enables warnings but not
5965 -Werror.
5966
5967 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5968
5969 * bcache.h: Update copyright.
5970 (struct bstring, struct bcache): Move definition to "bcache.c".
5971 Replaced by opaque declaration.
5972 (bcache_xfree): Replace free_bcache.
5973 (bcache_xmalloc, bcache_memory_used): Declare.
5974
5975 * bcache.c: Update copyright.
5976 (struct bstring, struct bcache): Moved to here from "bcache.h".
5977 Update comments.
5978 (bcache_xmalloc, bcache_memory_used): New functions.
5979 (bcache_xfree): Replace function free_bcache.
5980
5981 * Makefile.in (objfiles.o): Add $(bcache_h).
5982 (objfiles_h): Remove $(bcache_h).
5983 (symfile.o): Add $(bcache_h).
5984
5985 * symmisc.c: Update copyright.
5986 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5987 (print_objfile_statistics): Use bcache_memory_used.
5988
5989 * symfile.c: Include "bcache.h".
5990 (reread_symbols): Use bcache_xfree.
5991 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5992 (add_psymbol_to_list): Pass psymbol_cache by value.
5993 (add_psymbol_with_dem_name_to_list): Ditto.
5994
5995 * objfiles.h: Update copyright.
5996 (struct bcache): Declare opaque. Do not include "bcache.h".
5997 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5998 bcache'' pointers.
5999 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6000
6001 * objfiles.c: Include "bcache.h". Update copyright.
6002 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6003 macro_cache.
6004 (free_objfile): Use bcache_xfree.
6005
6006 2002-07-11 Grace Sainsbury <graces@redhat.com>
6007
6008 * monitor.c (monitor_fetch_register): Make name a constant.
6009 (monitor_store_register): Same.
6010
6011 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6012
6013 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6014 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6015 (finish_block) For non-function blocks, hash the symbol table. For
6016 function blocks, mark the symbol table as unhashed.
6017 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6018 (msymbol_hash_iw): Likewise.
6019 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6020 value.
6021 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6022 (lookup_minimal_symbol): Likewise for both.
6023 * symtab.h (struct block): Add `hashtable' flag. Comment the
6024 hashtable.
6025 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6026 (ALL_BLOCK_SYMBOLS): Update.
6027 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6028 (struct symbol): Add `hash_next' pointer.
6029 * symtab.c (lookup_block_symbol): Search using the hash table when
6030 possible.
6031 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6032 (search_symbols, find_addr_symbol): Likewise.
6033
6034 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6035 (read_dst_symtab): Likewise.
6036 * jv-lang.c (get_java_class_symtab): Likewise.
6037 * mdebugread.c: Include "gdb_assert.h".
6038 (shrink_block): Assert that the block being modified is not hashed.
6039 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6040 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6041 symbols.
6042 (dump_symtab): Recognize hashed blocks.
6043 * printcmd.c (print_frame_args): Assert that function blocks do not
6044 have hashed symbol tables.
6045 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6046 (fill_in_ada_prototype, debug_print_block): Likewise.
6047 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6048
6049 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6050
6051 * stack.c (print_frame): Use result of frame_address_in_block()
6052 instead of fi->pc when evaluating symbols.
6053 (backtrace_command_1): Ditto.
6054
6055 2002-07-11 Andrew Cagney <cagney@redhat.com>
6056
6057 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6058 Make static.
6059
6060 * arm-tdep.c (arm_register_name): Make return type constant.
6061
6062 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6063
6064 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6065 prototype.
6066 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6067 * s390-tdep.c (s390_fp_regnum): Ditto.
6068 (s390_read_fp): Ditto.
6069 (s390_pop_frame): Ditto.
6070 (_initialize_s390_tdep): Ditto.
6071 * remote.c (get_remote_state): Ditto.
6072 * procfs.c (mappingflags): Ditto.
6073 * memattr.c (_initialize_mem): Ditto.
6074 * mcore-tdep.c (mcore_pop_frame): Ditto.
6075 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6076 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6077 * language.c (set_case_str): Ditto.
6078 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6079 * frv-tdep.c (new_variant): Ditto.
6080 (frv_stopped_data_address): Ditto.
6081 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6082 (context_alloc): Ditto.
6083 (frame_state_alloc): Ditto.
6084 (unwind_tmp_obstack_init): Ditto.
6085 (unwind_tmp_obstack_free): Ditto.
6086 (cfi_read_fp): Ditto.
6087 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6088 (cris_pop_frame): Ditto.
6089 * c-lang.c (scanning_macro_expansion): Ditto.
6090 (finished_macro_expansion): Ditto.
6091 (c_preprocess_and_parse): Ditto.
6092 * gdbarch.sh: Ditto.
6093 * gdbarch.h, gdbarch.c: Regenerate.
6094 * config/mn10200/tm-mn10200.h: Adjust indentation.
6095 * target.c: Adjust indentation.
6096 * symtab.h: Adjust indentation.
6097 * stabsread.h: Adjust indentation.
6098 * remote-es.c: Adjust indentation.
6099 * os9kread.c: Adjust indentation.
6100
6101 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6102
6103 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6104 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6105
6106 2002-07-10 Grace Sainsbury <graces@redhat.com>
6107
6108 * NEWS: Mention m68k, mcore multi-arching.
6109 * MAINTAINERS: Change status of m68k, mcore to reflect
6110 multi-arching.
6111
6112 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6113
6114 * valops.c (find_overload_match): Free oload_syms.
6115
6116 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6117
6118 Define HAVE_SYS_PROC_H if sys/proc.h exists
6119 * configure.in: Add check for sys/proc.h
6120 * config.in: Regenerate.
6121 * configure: Regenerate.
6122
6123 2002-07-09 Grace Sainsbury <graces@redhat.com>
6124
6125 * config/m68k/tm-m68k.h: Remove macros wrapped in
6126 #if !GDB_MULTI_ARCH.
6127
6128 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6129
6130 * config.in, configure: Regenerate.
6131
6132 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6133
6134 * dwarf2cfi.c: Include "gcore.h".
6135 (execute_stack_op): Fix implementation of the
6136 DW_OP_deref and DW_OP_deref_size operators by letting do their
6137 lookup in the target.
6138
6139 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6140
6141 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6142 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6143 tdep->sc_sp_offset.
6144
6145 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6146
6147 Fix PR gdb/595, gdb/602
6148 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6149 Don't call value_cast, just read the vtable pointer; update comments
6150 to match.
6151
6152 2002-07-05 Grace Sainsbury <graces@redhat.com>
6153
6154 * config/mcore/tm-mcore.h: Remove file.
6155 * config/mcore/mcore.mt: Remove definition of TM_FILE
6156 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6157
6158 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6159
6160 * i386bsd-tdep.c: Include "gdb_string.h".
6161
6162 2002-07-04 Grace Sainsbury <graces@redhat.com>
6163
6164 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6165 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6166 mcore-tdep.
6167 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6168 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6169 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6170 (RETVAL_REGNUM): Move macros from tm-mcore.h
6171 (mcore_reg_struct_has_addr): New function.
6172 (mcore_gdbarch_init): Added initializations for the macros removed
6173 from tm-mcore.h.
6174
6175 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6176
6177 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6178 traditonal string branding within the ELF header.
6179
6180 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6181
6182 * symtab.c (remove_params): New function.
6183 (make_symbol_overload_list): Use it instead of cplus_demangle.
6184 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6185
6186 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6187
6188 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6189
6190 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6191 New variables.
6192 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6193 and tdep->sigtramp_end.
6194 * i386obsd-nat.c: New file.
6195 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6196
6197 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6198 Don't call get_current_frame().
6199
6200 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6201
6202 * i386-nat.c (child_post_startup_inferior): New function
6203 calling i386_cleanup_dregs if
6204 I386_USE_GENERIC_WATCHPOINTS is defined.
6205 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6206 conditional to acknowledge that i386-nat.c has its
6207 own child_post_startup_inferior function.
6208
6209 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6210
6211 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6212 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6213 instead of MAX_REGISTER_RAW_SIZE.
6214 (i386_extract_return_value, i386_extract_struct_value_address):
6215 Convert to use regcache.
6216 (i386_gdbarch_init): Set max_register_raw_size and
6217 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6218 Set extract_return_value and extract_struct_value_address instead
6219 of their deprecated variants.
6220
6221 Convert i386 target to generic dummy frames.
6222 * i386-tdep.c: Include "symfile.h".
6223 (i386_frameless_signal_p): Consider a function to be frameless if
6224 the pc points at the first instruction of the function.
6225 (i386_frame_chain): Handle (generic) call dummies.
6226 (i386_frame_saved_pc): Likewise.
6227 (i386_frame_init_saved_regs): Remove code dealing with call
6228 dummies on the stack.
6229 (i386_push_dummy_frame): Removed.
6230 (i386_call_dummy_words): Removed.
6231 (i386_fix_call_dummy): Removed.
6232 (i386_push_return_address): New function.
6233 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6234 parameter, and don't call get_current_frame.
6235 (i386_pop_frame): New function.
6236 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6237 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6238 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6239 call_dummy_length to 0, set call_dummy_words to NULL, set
6240 sizeof_call_dummy_words to 0, set fix_call_dummy to
6241 generic_fix_call_dummy, set pc_in_call_dummy to
6242 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6243 generic_push_dummy_frame, set push_return_address to
6244 i386_push_return_address and set frame_chain_valid to
6245 generic_file_frame_chain_valid.
6246
6247 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6248
6249 * gdbarch.sh (struct regcache): Add opaque declaration.
6250 (EXTRACT_RETURN_VALUE): New architecture method.
6251 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6252 * gdbarch.h, gdbarch.c: Regenerate.
6253 * arch-utils.c (legacy_extract_return_value): New function.
6254 * arch-utils.h (legacy_extract_return_value): Declare.
6255 * values.c (value_being_returned): Re-enable code handling
6256 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6257 deprecated_grub_regcache_for_registers call to block handling
6258 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6259 (EXTRACT_RETURN_VALUE): Do not define.
6260
6261 2002-07-03 Grace Sainsbury <graces@redhat.com>
6262
6263 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6264 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6265 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6266 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6267 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6268 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6269 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6270 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6271 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6272 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6273 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6274 argument so the function fits the prototype in the architecture
6275 vector.
6276 (mcore_pop_frame): Remove argument so the function fits the
6277 prototype. Use get_current_frame instead of the argument.
6278 (mcore_push_arguments): Change type of struct_return so the
6279 function can be used in the architecture vector.
6280 (mcore_store_struct_return): Add.
6281 (mcore_frame_init_saved_regs): Add.
6282 (mcore_gdbarch_init): Add function calls to replace the macros
6283 removed from tm-mcore.h
6284
6285 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6286
6287 * infcmd.c (print_return_value): Remove compatibility code calling
6288 deprecated_grub_regcache_for_registers.
6289
6290 * values.c: Include "regcache.h".
6291 (value_being_returned): Update. Use
6292 deprecated_grub_regcache_for_registers to extract the register
6293 buffer address.
6294 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6295 ``struct regcache''.
6296 * Makefile.in (values.o): Add dependency on $(regcache_h).
6297
6298 * inferior.h (run_stack_dummy): Change type of second parameter to
6299 a ``struct regcache''.
6300 * valops.c (hand_function_call): Change type of retbuf to ``struct
6301 regcache''. Allocate using regcache_xmalloc, clean using
6302 make_cleanup_regcache_xfree.
6303 * infcmd.c (run_stack_dummy): Update. Use
6304 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6305
6306 * regcache.c (do_regcache_xfree): New function.
6307 (make_cleanup_regcache_xfree): New function.
6308 * regcache.h (make_cleanup_regcache_xfree): Declare.
6309
6310 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6311
6312 * event-top.c (command_line_handler): Don't read past
6313 beginning of buffer.
6314
6315 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6316
6317 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6318 struct frame_id.
6319 (varobj_create): Store frame_id for root.
6320 (varobj_gen_name): Use xasprintf.
6321 (varobj_update): Save and restore frame using get_frame_id() and
6322 frame_find_by_id().
6323 (create_child): Use xasprintf.
6324 (new_root_variable): Initialize frame_id.
6325 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6326 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6327 to prevent memory leak.
6328
6329 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6330
6331 * valops.c (hand_function_call): Move declaration of retbuf to
6332 start of function, allocate using malloc, add a cleanup but before
6333 the inf_status cleanup, cleanup the buffer. Rename local variable
6334 old_chain to inf_status_cleanup.
6335
6336 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6337
6338 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6339
6340 * cli/cli-decode.c (cmd_func_p): New function.
6341 (cmd_func): New function.
6342
6343 * command.h: Add cmd_func() and cmd_func_p().
6344
6345 2002-07-03 Grace Sainsbury <graces@redhat.com>
6346
6347 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6348 (REGISTER_SIZE): Remove.
6349 (MAX_REGISTER_RAW_SIZE): Remove.
6350 (REGISTER_VIRTUAL_TYPE): Remove.
6351 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6352 (REGISTER_NAME): Remove.
6353 (USE_GENERIC_DUMMY_FRAMES): Remove.
6354 (CALL_DUMMY): Remove.
6355 (CALL_DUMMY_START_OFFSET): Remove.
6356 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6357 (CALL_DUMMY_LOCATION): Remove.
6358 (FIX_CALL_DUMMY): Remove.
6359 (CALL_DUMMY_ADDRESS): Remove.
6360 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6361 (SAVE_DUMMY_FRAME_TOS): Remove.
6362 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6363 (mcore_register_virtual_type): New function.
6364 (mcore_register_byte): New function.
6365 (mcore_register_size): New function.
6366 (mcore_register_name): New function.
6367 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6368 macros removed from tm-mcore.h.
6369 (mcore_dump_tdep): Add.
6370 (_initialize_mcore_tdep): Add gdbarch_register call.
6371
6372 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6373
6374 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6375 frameless_look_for_prologue, such that we actually call this
6376 function.
6377
6378 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6379
6380 * frame.h (frame_address_in_block): New function.
6381
6382 * blockframe.c (frame_address_in_block): New function extracted
6383 from get_frame_block().
6384 (get_frame_block): Use frame_address_in_block().
6385 (block_innermost_frame): Use frame_address_in_block() to match
6386 the frame pc address against the block boundaries rather than
6387 the frame pc directly. This prevents a failure when a frame pc
6388 is actually a return-address pointing immediately after the end
6389 of the given block.
6390
6391 2002-07-02 Grace Sainsbury <graces@redhat.com>
6392
6393 * MAINTAINERS: Add self under write after approval.
6394
6395 2002-07-02 Grace Sainsbury <graces@redhat.com>
6396
6397 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6398 used in architecture vector. The default is
6399 m68k_local_breakpoint_from_pc.
6400 (m68k_local_breakpoint_from_pc): Add.
6401 (enum): Add register numbers from tm-m68k.h.
6402 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6403 vector.
6404 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6405 GDB_MULTI_ARCH_PARTIAL.
6406 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6407 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6408 m68k-tdep.c.
6409 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6410 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6411 to enum in m68k-tdep.c
6412
6413 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6414
6415 * solib-osf.c (open_map): Compute the list of shared libraries
6416 loaded by the inferior, rather than the list of libraries loaded
6417 by GDB itself. Otherwise, GDB ends up reading the symbols from
6418 the wrong shared libraries...
6419
6420 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6421
6422 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6423 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6424 macros.
6425 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6426 Remove functions.
6427 (FRAMELESS_SIGNAL): Remove function.
6428 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6429 i386_linux_saved_pc_after_call): Removed.
6430 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6431 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6432 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6433
6434 * i386-tdep.c (i386_frameless_signal_p): New function.
6435 (i386_frame_chain): Deal with frameless signals.
6436 (i386_sigtramp_saved_sp): New function.
6437 (i386_frame_saved_pc): Deal with frameless signals.
6438 (i386_saved_pc_after_call): Make sure the correct value is
6439 returned just after entry into a sigtramp.
6440 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6441 i386fbsd4_sc_sp_offset): New variables.
6442 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6443 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6444 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6445 similiar to what we already did for sc_pc_offset.
6446 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6447 tdep->sc_sp_offset.
6448
6449 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6450
6451 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6452
6453 * config/i386/tm-x86-64linux.h: New.
6454 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6455 definitions.
6456 * config/i386/nm-x86-64.h: Rename to ...
6457 * config/i386/nm-x86-64linux.h: ... this one.
6458 * config/i386/x86-64linux.mh: Reflect the above change.
6459
6460 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6461
6462 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6463 with sigcontext_addr. Add sc_sp_offset.
6464 (i386bsd_sigtramp_saved_pc): Remove prototype.
6465 (i386bsd_sicontext_addr): Add prototype.
6466 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6467 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6468 (i386_svr4_sigtramp_saved_pc): Removed.
6469 (i386_svr4_sigcontext_addr): New function.
6470 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6471 Initialize tdep->sigcontext_addr instead. Initialize
6472 tdep->sc_pc_offset and tdep->sc_sp_offset.
6473 (i386_gdbarch_init): Likewise.
6474 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6475 any more.
6476 (i386bsd_sigtramp_saved_pc): Remove function.
6477 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6478 Initialize tdep->sigcontext_addr instead. Initialize
6479 tdep->sc_pc_offset.
6480 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6481 of tdep->sigtramp_saved_pc.
6482 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6483 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6484 instead.
6485
6486 * i386-tdep.c (i386_frameless_function_invocation,
6487 i386_frame_num_args, i386_frame_init_saved_regs,
6488 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6489 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6490 i386_extract_return_value, i386_store_return_value,
6491 i386_extract_struct_value_address, i386_register_virtual_type,
6492 i386_register_convertible, i386_register_convert_to_virtual,
6493 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6494 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6495 static.
6496
6497 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6498
6499 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6500
6501 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6502 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6503 this macro. Include "value.h".
6504
6505 2002-06-30 Aidan Skinner <aidan@velvet.net>
6506
6507 * ada-exp.tab.c: remove as it's a generated file
6508 * ada-lex.c: remove as it's a generated file
6509
6510 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6511
6512 * config/i386/tm-i386.h (struct frame_info, struct
6513 frame_saved_regs, struct value, struct type): Remove forward
6514 declarations.
6515
6516 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6517 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6518 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6519 (FILL_FPXREGSET): Define.
6520
6521 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6522
6523 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6524 i[3456]86-*-netbsd* case.
6525 * config/i386/tm-obsd.h: Removed.
6526 * config/i386/obsd.mt: Removed.
6527 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6528 core-aout.o.
6529 (MH_CFLAGS): Add -DYYDEBUG=0.
6530
6531 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6532 i386nbsd_sc_pc_offset on OpenBSD too.
6533
6534 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6535 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6536 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6537 define.
6538 * i386bsd-tdep.c: Include "arch-utils.h".
6539 (i386bsd_aout_in_solib_call_trampoline): New function.
6540 (i386bsd_init_abi): Set in_solib_call_trampoline to
6541 i386bsd_aout_in_solib_call_trampoline.
6542 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6543 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6544
6545 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6546
6547 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6548 (struct obstack, struct bcache): Add opaque declarations.
6549 * Makefile.in (macrotab_h): Update
6550
6551 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6552
6553 * blockframe.c (generic_find_dummy_frame): Change return type to
6554 ``struct regcache''.
6555 (struct dummy_frame): Replace field ``registers'' with regcache, a
6556 struct regcache object.
6557 (generic_find_dummy_frame): Update.
6558 (generic_push_dummy_frame): Update. Use regcache_xfree,
6559 regcache_xmalloc and regcache_cpy.
6560 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6561 regcache_xfree.
6562 (deprecated_generic_find_dummy_frame): Update.
6563 (generic_read_register_dummy): Update. Use
6564 regcache_read_as_address.
6565 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6566 (generic_get_saved_register): Update. Use regcache_read.
6567
6568 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6569
6570 * Makefile.in (objfiles_h): Add $(bcache_h).
6571 * objfiles.h: Include "bcache.h".
6572
6573 * Makefile.in (symtab_h): Remove $(bcache_h).
6574 * symtab.h: Do not include "bcache.h".
6575
6576 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6577
6578 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6579 generic_func_frame_chain_valid.
6580
6581 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6582
6583 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6584 * config/i386/tm-fbsd.h: Likewise.
6585
6586 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6587
6588 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6589 generic_unwind_get_saved_register.
6590
6591 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6592
6593 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6594 * regcache.c (supply_register): Add missing argument to
6595 register_buffer call.
6596
6597 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6598
6599 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6600 Solaris /bin/grep does not not like it. From Peter Schauer.
6601
6602 2002-06-26 Tom Tromey <tromey@redhat.com>
6603
6604 * command.h (add_setshow_cmd): Declare.
6605 (add_setshow_cmd_full): Declare.
6606 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6607 returns void. Use add_setshow_cmd_full.
6608 (add_setshow_cmd_full): New function.
6609 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6610 (add_setshow_boolean_cmd): Likewise.
6611
6612 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6613
6614 * config/vax/tm-vax.h: Protect from multiple inclusion.
6615 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6616 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6617 * config/vax/tm-vaxbsd.h: ...here. New file.
6618 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6619
6620 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6623 (BELIEVE_PCC_PROMOTION): Remove.
6624 (AP_REGNUM): Move to...
6625 * config/vax/nm-vax.h: ...here.
6626 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6627 (vax_breakpoint_from_pc): New function.
6628 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6629 and gdbarch_believe_pcc_promotion.
6630
6631 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6632
6633 * Makefile.in (vax_tdep_h): Define.
6634 (vax-tdep.o): Use $(vax_tdep_h).
6635 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6636 (vax_dump_tdep): New function.
6637 (_initialize_vax_tdep): Register vax_dump_tdep.
6638 * vax-tdep.h: Include osabi.h.
6639 (struct gdbarch_tdep): New.
6640
6641 2002-06-26 Andrew Cagney <cagney@redhat.com>
6642
6643 * frame.h (deprecated_generic_find_dummy_frame): Rename
6644 generic_find_dummy_frame.
6645 * blockframe.c (generic_find_dummy_frame): Make static.
6646 (deprecated_generic_find_dummy_frame): New function.
6647 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6648 generic_find_dummy_frame with deprecated_find_dummy_frame.
6649 (sh64_nofp_frame_init_saved_regs): Ditto.
6650 (sh_fp_frame_init_saved_regs): Ditto.
6651 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6652 (s390_frame_chain): Ditto.
6653 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6654
6655 2002-06-26 Grace Sainsbury <graces@redhat.com>
6656
6657 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6658 gdbarch vector are at the top.
6659 (NUM_REGS): Remove.
6660 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6661 (FRAME_ARGS_ADDRESS): Remove.
6662 (FRAME_LOCALS_ADDRESS): Remove.
6663 (FRAME_NUM_ARGS): Remove.
6664 (FRAME_ARGS_SKIP): Remove.
6665 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6666 (m68k_gdbarch_init): Add gdbarch initializations for macros
6667 undefined in tm-m68k.h
6668
6669 2002-06-26 Grace Sainsbury <graces@redhat.com>
6670
6671 * monitor.h: Add the function regname to monitor_ops
6672 structure. This way NUM_REGS does not have to be a constant.
6673 * monitor.c (monitor_fetch_register): Added support for regname
6674 function. The function is called if the array regnames is NULL.
6675 (monitor_store_register): Same.
6676 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6677 regnames array.
6678 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6679 cpu32bug_cmds.regname to point to new function.
6680 * abug-rom.c (abug_regname): Same as above.
6681 (init_abug_cmds): Same.
6682 * dbug-rom.c (dbug_regname): Same as above.
6683 (init_dbug_cmds): Same.
6684 * remote-est.c (est_regname): Same.
6685 (init_est_cmds): Same.
6686 * rom68k-rom.c (rom68k_regname): Same.
6687 (init_rom68k_cmds): Same.
6688
6689 2002-06-25 Tom Tromey <tromey@redhat.com>
6690
6691 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6692
6693 2002-06-25 Andrew Cagney <cagney@redhat.com>
6694
6695 * infrun.c (stop_registers): Change variable's type to ``struct
6696 regcache'''.
6697 (xmalloc_inferior_status): Delete function.
6698 (free_inferior_status): Delete function.
6699 (normal_stop): Use regcache_cpy.
6700 (struct inferior_status): Change type of fields ``stop_registers''
6701 and ``registers'' to ``struct regcache''.
6702 (write_inferior_status_register): Use regcache_write.
6703 (save_inferior_status): Instead of calling
6704 xmalloc_inferior_status, allocate the inf_status buffer directly.
6705 Use regcache_dup_no_passthrough and regcache_dup to save the
6706 buffers.
6707 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6708 Replace the stop_registers regcache instead of overriding it. Use
6709 regcache_xfree. Instead of calling free_inferior_status, xfree
6710 the buffer directly.
6711 (discard_inferior_status): Use regcache_xfree. Instead of calling
6712 free_inferior_status, xfree the buffer directly.
6713 (build_infrun): Use regcache_xmalloc.
6714 (_initialize_infrun): Delete redundant call to build_infrun.
6715
6716 * Makefile.in (infcmd.o): Add $(regcache_h).
6717
6718 * infcmd.c: Include "regcache.h".
6719 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6720 obtain the address of `stop_registers' register buffer.
6721 (print_return_value): Ditto.
6722
6723 * inferior.h (struct regcache): Add opaque declaration.
6724 (stop_registers): Change variable's declared type to ``struct
6725 regcache''.
6726
6727 2002-06-24 Tom Tromey <tromey@redhat.com>
6728
6729 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6730 * target.c (initialize_targets): Fixed typo in
6731 trust-readonly-sections `show' documentation.
6732
6733 * main.c: Marked all strings with _().
6734
6735 2002-06-24 Don Howard <dhoward@redhat.com>
6736
6737 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6738 that means max CORE_ADDR+1.
6739 (lookup_mem_region): Ditto.
6740 (mem_info_command): Ditto.
6741
6742 2002-06-24 Grace Sainsbury <graces@redhat.com>
6743
6744 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6745 (REGISTER_BYTES_OK): Remove.
6746 (REGISTER_BYTES): Remove.
6747 (STORE_STRUCT_RETURN): Remove.
6748 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6749 (STORE_RETURN_VALUE): Remove.
6750 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6751 (FRAME_CHAIN): Remove.
6752 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6753 (FRAME_SAVED_PC): Remove.
6754 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6755 (m68k_store_struct_return): Add.
6756 (m68k_deprecated_extract_return_value): Add.
6757 (m68k_deprecated_extract_struct_value_address): Add.
6758 (m68k_store_return_value): Add.
6759 (m68k_frame_chain): Add.
6760 (m68k_frameless_function_invocation): Add.
6761 (m68k_frame_saved_pc): Add.
6762 (m68k_gdbarch_init): added set_gdbarch calls for new
6763 functions and deleted macros.
6764
6765 2002-06-23 Tom Tromey <tromey@redhat.com>
6766
6767 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6768 (ALLDEPFILES): Likewise.
6769 (udiheaders): Removed.
6770 (udip2soc.o): Likewise.
6771 (udi2go32.o): Likewise.
6772 (udr.o): Likewise.
6773 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6774
6775 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6776
6777 * infrun.c (_initialize_infrun): Delete unnecessary call to
6778 build_infrun.
6779
6780 * regcache.h: Update comments describing the regcache_cpy family
6781 of functions.
6782 (regcache_save, regcache_restore): Delete declaration.
6783 (regcache_save_no_passthrough): Delete declaration.
6784 (regcache_restore_no_passthrough): Delete declaration.
6785 * regcache.c (regcache_save): Delete function.
6786 (regcache_save_no_passthrough): Delete function.
6787 (regcache_restore): Delete function.
6788 (regcache_restore_no_passthrough): Delete function.
6789
6790 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6791
6792 * config/m68k/tm-m68k.h: Fix typo.
6793 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6794 (m68k_frame_init_saved_regs): Declare.
6795
6796 2002-06-21 Jim Blandy <jimb@redhat.com>
6797
6798 Remove some vestiges of Harris 88k support.
6799 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6800 register numbering quirk.
6801 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6802 odd symbols occurring in Harris 88k ELF targets.
6803
6804 2002-06-21 Tom Tromey <tromey@redhat.com>
6805
6806 * gdb_locale.h: New file.
6807 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6808 (defs_h): Added gdb_locale.h.
6809 * configure, config.in: Rebuilt.
6810 * configure.in (PACKAGE): Define.
6811 * defs.h: Include gdb_locale.h.
6812 * main.c (captured_main): Call setlocale, bindtextdomain,
6813 textdomain.
6814
6815 2002-06-21 Dave Brolley <brolley@redhat.com>
6816
6817 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6818 * config/frv/frv.mt: New file.
6819 * config/frv/tm-frv.h: New file.
6820 * configure.tgt: Support frv-*-*.
6821 * Makefile.in (frv-tdep.o): New target.
6822 * frv-tdep.c: New file.
6823 * NEWS: Mention frv.
6824
6825 2002-06-21 Dave Brolley <brolley@redhat.com>
6826
6827 * MAINTAINERS: Add self to "Write After Approval" list.
6828
6829 2002-06-21 Grace Sainsbury <graces@redhat.com>
6830
6831 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6832 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6833 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6834 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6835 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6836
6837 * m68k-tdep.c: Include arch-utils.h
6838 (m68k_register_raw_size): Add.
6839 (m68k_register_virtual_size): Add.
6840 (m68k_register_virtual_type): Add.
6841 (m68k_register_name): Add.
6842 (m68k_stack_align): Add.
6843 (m68k_register_byte): Add.
6844 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6845 tm-m68k.h.
6846
6847 2002-06-21 Grace Sainsbury <graces@redhat.com>
6848
6849 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6850 m68k_find_saved_regs.
6851 (m68k_pop_frame): Removed saved_regs structure, and replaced
6852 references to it with frame->saved_regs.
6853 (m68k_gdbarch_init): Added function calls to initialize the
6854 gdbarch structure.
6855 (m68k_fix_call_dummy): Add.
6856 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6857 (CALL_DUMMY): Remove.
6858 (CALL_DUMMY_LENGTH): Remove.
6859 (CALL_DUMMY_START_OFFSET): Remove.
6860 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6861 (FIX_CALL_DUMMY): Remove.
6862 (PUSH_DUMMY_FRAME): Remove.
6863 (POP_FRAME): Remove.
6864
6865 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6866
6867 * parse.c (parse_fprintf): New function used to avoid calls to
6868 fprintf in bison parser generated debug code.
6869 * parser-defs.h: Declaration of new parse_fprintf function.
6870 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6871 Set YYDEBUG to 1 by default.
6872 Set YYFPRINTF as parse_fprintf.
6873
6874 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6875
6876 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6877 encoding anymore.
6878 (pointer_encoding, enum ptr_encoding): New.
6879 (execute_cfa_program): Take care about pointer encoding.
6880 (dwarf2_build_frame_info): Only call parse_frame_info for
6881 .debug_frame and .eh_frame.
6882 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6883 fixed augmentation handling, added relative addressing,
6884 ignore duplicate FDEs. Added comments.
6885 * dwarf2cfi.c: Reindented.
6886
6887 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6888
6889 * event-top.c (command_handler): Don't use space_at_cmd_start
6890 unless there is sbrk() on the host. Assign time and space data
6891 to union fields of the appropriate length.
6892
6893 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6894
6895 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6896 x86_64_register_name. Return type changed to 'const char *'.
6897 (x86_64_register_name2nr): Rename to x86_64_register_number.
6898 (x86_64_gdbarch_init): Update to reflect the change.
6899 * x86-64-tdep.h: Ditto.
6900 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6901 (supply_fpregset): Ditto.
6902
6903 2002-06-19 Andrew Cagney <cagney@redhat.com>
6904
6905 * regcache.h: Update copyright.
6906 (struct regcache, struct gdbarch): Add opaque declarations.
6907 (current_regcache): Declare global variable.
6908 (regcache_read, regcache_write): Add gdbarch parameter.
6909 (regcache_save, regcache_save_no_passthrough)
6910 (regcache_restore, regcache_restore_no_passthrough)
6911 (regcache_dup, regcache_dup_no_passthrough)
6912 (regcache_cpy, regcache_cpy_no_passthrough)
6913 (deprecated_grub_regcache_for_registers)
6914 (deprecated_grub_regcache_for_register_valid)
6915 (regcache_valid_p): Add function declarations.
6916
6917 * regcache.c: Update copyright.
6918 (regcache_descr_handle): New global variable.
6919 (struct regcache_descr): Define.
6920 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6921 (regcache_descr, xfree_regcache_descr): New functions.
6922 (struct regcache): Define.
6923 (regcache_xmalloc, regcache_xfree): New functions.
6924 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6925 (regcache_dup, regcache_dup_no_passthrough): New functions.
6926 (regcache_valid_p, regcache_read_as_address): New functions.
6927 (deprecated_grub_regcache_for_registers): New function.
6928 (deprecated_grub_regcache_for_register_valid): New function.
6929 (current_regcache): New global variable.
6930 (register_buffer): Add regcache parameter. Update calls.
6931 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6932 (read_register_gen, write_register_gen): Update register_buffer
6933 call. Test for legacy_p instead of gdbarch_register_read_p or
6934 gdbarch_register_write_p.
6935 (regcache_collect): Update register_buffer call.
6936 (build_regcache): Rewrite. Use deprecated grub functions.
6937 (regcache_save, regcache_save_no_passthrough): New functions.
6938 (regcache_restore, regcache_restore_no_passthrough): New
6939 functions.
6940 (_initialize_regcache): Create the regcache_data_handle. Swap
6941 current_regcache global variable.
6942
6943 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6944 parameter to regcache_read and regcache_write calls.
6945 (sh4_register_read): Ditto.
6946 (sh64_pseudo_register_read): Ditto.
6947 (sh64_register_read): Ditto.
6948 (sh_pseudo_register_write): Ditto.
6949 (sh4_register_write): Ditto.
6950 (sh64_pseudo_register_write): Ditto.
6951 (sh64_register_write): Ditto.
6952
6953 * defs.h (XCALLOC): Define.
6954
6955 2002-06-19 Grace Sainsbury <graces@redhat.com>
6956
6957 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6958 * m68k-tdep.c (m68k_gdbarch_init): Added.
6959 (m68k_dump_tdep): Added.
6960
6961 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6962
6963 * ada-lang.c (fill_in_ada_prototype): Update comment.
6964
6965 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6966
6967 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6968 MIPS_ABI_LAST.
6969 (mips_abi_string, mips_abi_strings): New.
6970 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6971 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6972 tdep->mips_abi_string. Honor mips_abi_string. Default to
6973 O32 if no ABI is found.
6974 (mips_dump_tdep): Use mips_abi_strings.
6975 (mips_abi_update): New function.
6976 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6977 ``set mips abi'' and ``show mips abi''. Check the size of
6978 mips_abi_strings.
6979
6980 2002-06-19 Andrew Cagney <cagney@redhat.com>
6981
6982 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6983 constant.
6984
6985 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6986
6987 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6988 current frame using only the first stack size adjustment. All
6989 subsequent size adjustments are not considered to be part of
6990 the "static" part of the current frame.
6991 Compute the address of the saved registers relative to the
6992 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6993 in use in this frame.
6994
6995 2002-06-18 Don Howard <dhoward@redhat.com>
6996
6997 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6998 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6999 suggesting this solution.
7000
7001 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7002
7003 * config/romp/xm-rtbsd.h: Delete file.
7004 * config/romp/rtbsd.mh: Delete file.
7005
7006 2002-06-18 Keith Seitz <keiths@redhat.com>
7007
7008 * breakpoint.c (condition_command): Post breakpoint_modify
7009 when a condition is added to an existing breakpoint.
7010 (commands_command): Likewise for commands.
7011 (set_ignore_count): Likewise for ignore counts.
7012 If no tty, do not simply return, still need to send event
7013 notification.
7014 (ignore_command): Only print a newline if the command came
7015 from a tty.
7016 Don't call breakpoints_changed, since this is now properly
7017 handled by set_ignore_count.
7018
7019 2002-06-18 Andrew Cagney <cagney@redhat.com>
7020
7021 * MAINTAINERS: Note that cris-elf target can be compiled with
7022 -Werror.
7023 * cris-tdep.c (cris_register_name): Make return type constant.
7024 (cris_breakpoint_from_pc): Ditto.
7025
7026 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7027
7028 * frame.h (struct frame_info): Change type of context to
7029 'struct context'.
7030
7031 2002-06-17 Andrew Cagney <cagney@redhat.com>
7032
7033 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7034 pointer.
7035 * gdbarch.h, gdbarch.c: Regenerate.
7036 * config/mips/tm-mips.h (mips_register_name): Update.
7037 * i386-tdep.h (i386_register_name): Update.
7038 * mips-tdep.c (mips_register_name): Update
7039 * alpha-tdep.c (alpha_register_name): Update.
7040 * arch-utils.c (legacy_register_name): Update.
7041 * arch-utils.h (legacy_register_name): Update.
7042 * avr-tdep.c (avr_register_name): Update.
7043 * ia64-tdep.c (ia64_register_name): Update.
7044 * i386-tdep.c (i386_register_name): Update.
7045 * sparc-tdep.c (sparc32_register_name): Update.
7046 (sparc64_register_name): Update.
7047 (sparclite_register_name): Update.
7048 (sparclet_register_name): Update.
7049 * sh-tdep.c (sh_generic_register_name): Update.
7050 (sh_sh_register_name): Update.
7051 (sh_sh3_register_name): Update.
7052 (sh_sh3e_register_name): Update.
7053 (sh_sh_dsp_register_name): Update.
7054 (sh_sh3_dsp_register_name): Update.
7055 (sh_sh4_register_name): Update.
7056 (sh_sh64_register_name): Update.
7057 * s390-tdep.c (s390_register_name): Update.
7058 * rs6000-tdep.c (rs6000_register_name): Update.
7059 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7060 (ns32k_register_name_32382): Update.
7061 * d10v-tdep.c (d10v_ts2_register_name): Update.
7062 (d10v_ts3_register_name): Update.
7063 * xstormy16-tdep.c (xstormy16_register_name): Update.
7064 * vax-tdep.c (vax_register_name): Update.
7065 * v850-tdep.c (v850_register_name): Update.
7066 * m68hc11-tdep.c (m68hc11_register_name): Update.
7067 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7068 (am33_register_name): Update.
7069
7070 2002-06-17 Grace Sainsbury <graces@redhat.com>
7071
7072 * m68k-tdep.c: Reindented.
7073
7074 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7075
7076 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7077 list of predefined types.
7078
7079 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7080
7081 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7082 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7083 REGISTER_CONVERT_TO_RAW): Remove defines.
7084 (i386_register_virtual_type, i386_register_convertible,
7085 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7086 Remove prototypes.
7087 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7088 macros mentioned above.
7089
7090 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7091 (i386lynx_saved_pc_after_call): Remove prototype.
7092 * i386ly-tdep.c: Include "i386-tdep.h".
7093 (i386lynx_saved_pc_after_call): Make static. Use
7094 read_memory_nobpt instead of read_memory. Use
7095 read_memory_unsigned_integer instead of read_memory_integer.
7096 (i386lynx_init_abi): New function.
7097 (i386lynx_coff_osabi_sniffer): New function.
7098 (_initialize_i386bsd_tdep): New function.
7099
7100 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7101 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7102 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7103 (i386_fix_call_dummy): Remove prototype.
7104 * i386-tdep.c (i386_call_dummy_words): New variable.
7105 (i386_gdbarch_init): Adjust for removal of the
7106 macros mentioned above.
7107
7108 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7109
7110 * command.h (add_setshow_auto_boolean_cmd): Replace
7111 add_set_auto_boolean_cmd.
7112 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7113 add_set_auto_boolean_cmd.
7114 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7115 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7116 mask-address'' command.
7117 (show_mask_address): Add cmd parameter.
7118 * remote.c (add_packet_config_cmd): Update. Change type of
7119 set_func and show_func to cmd_sfunc_ftype.
7120 (_initialize_remote): Update `set remote Z-packet'
7121 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7122 (show_remote_protocol_e_packet_cmd): Ditto.
7123 (show_remote_protocol_E_packet_cmd): Ditto.
7124 (show_remote_protocol_P_packet_cmd): Ditto.
7125 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7126 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7127 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7128 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7129 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7130 (show_remote_protocol_Z_packet_cmd): Ditto.
7131 (show_remote_protocol_binary_download_cmd): Ditto.
7132 (show_remote_cmd): Pass NULL to all of above.
7133
7134 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7135
7136 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7137 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7138 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7139 POP_FRAME): Remove defines.
7140 (i386_push_arguments, i386_store_struct_return,
7141 i386_extract_return_value, i386_store_return_value,
7142 i386_extract_struct_value_address, i386_push_dummy_frame,
7143 i386_pop_frame): Renove prototypes.
7144 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7145 macros mentioned above.
7146
7147 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7148
7149 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7150 add_set_boolean_cmd.
7151 (add_setshow_cmd): New function.
7152 * command.h (add_setshow_boolean_cmd): Replace
7153 add_set_boolean_cmd.
7154 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7155 and ``set rdiromatzero''.
7156 * maint.c (_initialize_maint_cmds): Update commented out code.
7157 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7158 * target.c (initialize_targets): Update `set
7159 trust-readonly-sections'.
7160 * remote.c (_initialize_remote): Update `set remotebreak'.
7161
7162 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7163
7164 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7165 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7166 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7167 fit into multi-arch framework.
7168 (i386_breakpoint_from_pc): New function.
7169 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7170 above.
7171
7172 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7173 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7174 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7175 (i386_frameless_function_invocation, i386_frame_num_args,
7176 i386_frame_init_saved_regs): Remove prototypes.
7177 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7178 macros mentioned above.
7179
7180 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7181
7182 * cli/cli-decode.c (set_cmd_cfunc): Update.
7183 (set_cmd_sfunc): Update.
7184 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7185 (set_cmd_sfunc, set_cmd_cfunc): Update.
7186 * cli/cli-decode.h: Update.
7187
7188 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7189
7190 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7191 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7192
7193 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7194
7195 * defs.h (auto_boolean): Declare enum.
7196 * command.h (cmd_auto_boolean): Delete enum.
7197 * mips-tdep.c (mask_address_var): Update.
7198 (mips_mask_address_p): Update.
7199 (show_mask_address): Update.
7200 * remote.c (struct packet_config): Update.
7201 (update_packet_config): Update.
7202 (show_packet_config_cmd): Update.
7203 (packet_ok): Update.
7204 (add_packet_config_cmd): Update.
7205 (_initialize_remote):
7206 * command.h: Update.
7207 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7208 (do_setshow_command): Update.
7209 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7210 * cli/cli-decode.h: Update.
7211
7212 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7213
7214 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7215 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7216 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7217 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7218 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7219 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7220
7221 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7222 list of DJGPP COFF targets.
7223
7224 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7225 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7226 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7227 (FP0_REGNUM): Remove define.
7228 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7229 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7230 (i386_register_virtual_size): Remove protoype.
7231 * i386-tdep.c (i386_register_virtual_size): Removed.
7232 (i386_extract_return_value, i386_store_return_value): Use
7233 FP0_REGNUM instead of NUM_FREGS to determine whether the
7234 floating-point registers are available.
7235 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7236 Adjust for removal of macros mentioned above.
7237
7238 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7239
7240 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7241 comments.
7242 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7243 Remove prototypes.
7244 (supply_gregset, fill_gregset): Remove use of register keyword and
7245 remove declaration for regmap. Use I386_NUM_GREGS instead of
7246 NUM_REGS and NUM_FREGS.
7247 (FPREGSET_FSAVE_OFFSET): Remove.
7248 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7249 NUM_FREGS to determine whether the floating-point registers are
7250 available.
7251
7252 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7253 gnu_store_registers): Replace usage of NUM_GREGS with
7254 I386_NUM_GREGS.
7255
7256 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7257 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7258 usage of NUM_GREGS with I386_NUM_GREGS.
7259
7260 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7261
7262 * i386bsd-nat.c: Include "i386-tdep.h".
7263 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7264 I386_NUM_GREGS.
7265
7266 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7267 and associated comment. They no longer make any sense, since we
7268 don't use this file anymore on Linux.
7269
7270 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7271 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7272 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7273 elements in these arrays.
7274 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7275 MAX_NUM_REGS.
7276
7277 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7278
7279 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7280 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7281
7282 2002-06-14 Andrew Cagney <cagney@redhat.com>
7283
7284 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7285 EXTRACT_RETURN_VALUE.
7286 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7287 EXTRACT_STRUCT_VALUE_ADDRESS.
7288 * gdbarch.h, gdbarch.c: Regenerate.
7289
7290 * values.c (value_being_returned): Handle
7291 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7292 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7293
7294 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7295 * arm-tdep.c (arm_gdbarch_init): Update.
7296 * avr-tdep.c (avr_gdbarch_init): Update.
7297 * cris-tdep.c (cris_gdbarch_init): Update.
7298 * d10v-tdep.c (d10v_gdbarch_init): Update.
7299 * ia64-tdep.c (ia64_gdbarch_init): Update.
7300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7302 * s390-tdep.c (s390_gdbarch_init): Update.
7303 * sh-tdep.c (sh_gdbarch_init): Update.
7304 * s390-tdep.c (s390_gdbarch_init): Update.
7305 * sparc-tdep.c (sparc_gdbarch_init): Update.
7306 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7307 * v850-tdep.c (v850_gdbarch_init): Update.
7308 * vax-tdep.c (vax_gdbarch_init): Update.
7309 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7311
7312 * config/arc/tm-arc.h: Update.
7313 * config/d30v/tm-d30v.h: Update.
7314 * config/fr30/tm-fr30.h: Update.
7315 * config/h8300/tm-h8300.h: Update.
7316 * config/h8500/tm-h8500.h: Update.
7317 * config/i386/tm-i386.h: Update.
7318 * config/i386/tm-ptx.h: Update.
7319 * config/i386/tm-symmetry.h: Update.
7320 * config/i960/tm-i960.h: Update.
7321 * config/m32r/tm-m32r.h: Update.
7322 * config/m68k/tm-delta68.h: Update.
7323 * config/m68k/tm-linux.h: Update.
7324 * config/m68k/tm-m68k.h: Update.
7325 * config/m88k/tm-m88k.h: Update.
7326 * config/mcore/tm-mcore.h: Update.
7327 * config/mips/tm-mips.h: Update.
7328 * config/mn10200/tm-mn10200.h: Update.
7329 * config/pa/tm-hppa.h: Update.
7330 * config/pa/tm-hppa64.h: Update.
7331 * config/sparc/tm-sp64.h: Update.
7332 * config/sparc/tm-sparc.h: Update.
7333 * config/sparc/tm-sparclet.h: Update.
7334 * config/z8k/tm-z8k.h: Update.
7335
7336 2002-06-14 Andrew Cagney <cagney@redhat.com>
7337
7338 * Makefile.in (i386_linux_tdep_h): Define.
7339 (i386_tdep_h, i387_tdep_h): Define.
7340 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7341 $(i386_tdep_h) and $(i387_tdep_h).
7342 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7343
7344 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7345
7346 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7347 Already covered by the default.
7348
7349 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7350 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7351 (i386_gdbarch_init): Initialize long_double_format and long_double
7352 bit.
7353
7354 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7355 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7356 Move these to ...
7357 * config/i386/i386sol2.mh: ... here.
7358 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7359 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7360 (SIGCONTEXT_PC_OFFSET): Remove define.
7361 (IN_SIGTRAMP): Remove define.
7362 * i386-sol2-tdep.c: New file.
7363
7364 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7365 * config/i386/tm-i386nw.h: Removed.
7366
7367 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7368 USE_STRUCT_CONVENTION): Remove defines.
7369 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7370 (get_longjmp_target): Remove prototype.
7371 (IN_SIGTRAMP): Remove define.
7372 (i386bsd_in_sigtramp): Remove prototype.
7373 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7374 function. Update comment accordingly
7375 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7376 (FRAME_SAVED_PC): Remove define.
7377 (i386bsd_frame_saved_pc): Remove prototype.
7378 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7379 GET_LONGJMP_TARGET): Remove defines.
7380 (get_longjmp_target): Remove prototype.
7381 (IN_SIGTRAMP): Remove define.
7382 (i386bsd_in_sigtramp): Remove prototype.
7383 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7384 function. Update comment accordingly
7385 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7386 (FRAME_SAVED_PC): Remove define.
7387 (i386bsd_frame_saved_pc): Remove prototype.
7388 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7389 Remove prototype.
7390 (USE_STRUCT_CONVENTION): Remove prototype.
7391 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7392 declaration.
7393 (_initialize_i386bsd_nat): Revise logic to determine some
7394 constants at compile time when compiling a native GDB. Warn if
7395 things don't match up with what we expect.
7396 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7397 Remove variables.
7398 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7399 to use date stored in `struct gdbarch_tdep'.
7400 (i386bsd_sigcontext_offset): Remove varaible.
7401 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7402 stored in `struct gdbarch_tdep'.
7403 (i386bsd_frame_saved_pc): Make static.
7404 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7405 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7406 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7407 i386fbsd4_sc_pc_offset): New variables.
7408 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7409 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7410 functions.
7411 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7412 functions.
7413 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7414 Modify the value of i386fbsd_sigtramp_start and
7415 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7416 i386fbsd_sigtramp_end.
7417 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7418 function.
7419
7420 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7421 define to i386-linux-tdep.h.
7422 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7423 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7424 defines.
7425 (i386_linux_register_name, i386_linux_register_byte,
7426 i386_linux_register_raw_size): Remove prototypes.
7427 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7428 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7429 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7430 TARGET_WRITE_PC): Remove defines.
7431 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7432 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7433 i386_linux_write_pc): Remove prototypes.
7434 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7435 (get_longjmp_target): Remove prototype.
7436 * i386-linux-tdep.h: New file.
7437 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7438 * i386-linux-tdep.c: Include "i386-tdep.h" and
7439 "i386-linux-tdep.h".
7440 (i386_linux_register_name, i386_linux_register_byte,
7441 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7442 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7443 Make static.
7444 (i386_linux_init_abi): New function.
7445 (_initialize_i386_linux_tdep): New function.
7446
7447 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7448 (i386_saved_pc_after_call): Remove prototype.
7449 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7450 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7451 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7452 (i386_register_name, i386_stab_reg_to_regnum,
7453 i386_dwarf_reg_to_regnum): Remove prototypes.
7454 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7455 SIZEOF_SSE_REGS): Remove defines.
7456 (REGISTER_BYTES): Remove define.
7457 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7458 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7459 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7460 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7461 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7462 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7463 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7464 (get_longjmp_target): Remove prototype.
7465 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7466 (sigtramp_saved_pc): Remove define.
7467 (i386v4_sigtramp_saved_pc): Remove prototype.
7468 * config/i386/tm-go32.h (FRAME_CHAIN,
7469 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7470 (i386go32_frame_saved_pc): Remove prototype.
7471 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7472 (get_longjmp_target): Remove prototype.
7473 * i386-tdep.h: Include "osabi.h".
7474 (enum i386_abi): Removed.
7475 (enum struct_return): New enum.
7476 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7477 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7478 sc_pc_offset members.
7479 (i386_gdbarch_register_os_abi): Remove prototype.
7480 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7481 I386_SSE_NUM_REGS): New defines.
7482 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7483 I386_SSE_SIZEOF_REGS): New defines.
7484 (i386_register_name, i386_register_byte, i386_register_raw_size):
7485 New prototypes.
7486 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7487 (i386bsd_sigtramp_saved_pc): New prototype.
7488 * i386-tdep.c: Don't include "elf-bfd.h".
7489 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7490 i386_frame_chain, i386_saved_pc_after_call): Make static.
7491 (i386_frame_saved_pc): Rewrite to call architecture dependent
7492 function to deal with signal handlers. Make static.
7493 (i386go32_frame_saved_pc): Removed.
7494 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7495 Removed.
7496 (i386_get_longjmp_target): New function.
7497 (default_struct_convention, pcc_struct_convention,
7498 reg_struct_convention, valid_conventions, struct_convention): New
7499 variables.
7500 (i386_use_struct_convention): New function.
7501 (i386v4_sigtramp_saved_pc): Renamed to
7502 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7503 (i386_pc_in_sigtramp): New function.
7504 (i386_abi_names): Removed.
7505 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7506 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7507 Removed.
7508 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7509 i386_gdbarch_register_os_abi): Removed.
7510 (struct i386_abi_handler): Removed.
7511 (i386_abi_handler_list): Removed.
7512 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7513 functions.
7514 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7515 i386_nw_init_abi): New functions.
7516 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7517 Use set_gdbarch_xxx() calls instead of relying on macros for a
7518 number of calls.
7519 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7520 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7521 Register the various architecture variants defined in this file.
7522
7523 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7524
7525 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7526 (struct main_type): Remove arg_types member. Update comments for
7527 struct field.
7528 (TYPE_ARG_TYPES): Remove.
7529 (TYPE_FN_FIELD_ARGS): Update.
7530 (smash_to_method_type): Update prototype.
7531
7532 * c-typeprint.c (cp_type_print_method_args): Take method type
7533 instead of argument list. Use new argument layout. Simplify.
7534 (c_type_print_args): Use new argument layout. Simplify.
7535 (c_type_print_base): Update call to cp_type_print_method_args.
7536 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7537 argument; use die->type instead. Update call to
7538 smash_to_method_type.
7539 (read_structure_scope): Update call to dwarf2_add_member_fn.
7540 * gdbtypes.c (allocate_stub_method): Update comment.
7541 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7542 Use new argument layout.
7543 (check_stub_method): Use new argument layout. Don't count
7544 void as an argument.
7545 (print_arg_types): Update comments. Use new argument layout.
7546 (recursive_dump_type): Don't print arg_types member.
7547 * hpread.c (hpread_read_struct_type): Use new argument layout.
7548 (fixup_class_method_type): Likewise.
7549 (hpread_type_lookup): Likewise.
7550 * stabsread.c (read_type): Update calls to read_args and
7551 smash_to_method_type.
7552 (read_args): Use new argument layout. Simplify.
7553 * valops.c (typecmp): Use new argument layout. Update parameters
7554 and comments. Simplify.
7555 (hand_function_call): Use new argument layout.
7556 (search_struct_method): Update call to typecmp.
7557 (find_overload_match): Use new argument layout.
7558
7559 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7560
7561 * NEWS: Mention multithreaded debug support for gdbserver.
7562
7563 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7564
7565 * MAINTAINERS: Mention NEWS.
7566
7567 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7568
7569 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7570 (struct mips_objfile_private, compare_pdr_entries): New.
7571 (non_heuristic_proc_desc): Read the ".pdr" section if it
7572 is present.
7573
7574 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7575
7576 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7577 (arm_debug): New static variable.
7578 (_initialize_arm_tdep): Add ``set debug arm'' command.
7579
7580 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7581
7582 * Makefile.in (sim_arm_h): Define.
7583 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7584 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7585 (arm_register_sim_regno): New function, map an internal REGNUM
7586 onto a simulator register number.
7587 (arm_gdbarch_init): Set register_sim_regno.
7588
7589 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7590
7591 * MAINTAINERS: Add self.
7592
7593 2002-06-11 Jim Blandy <jimb@redhat.com>
7594
7595 * source.c (source_info): Mention whether the symtab has
7596 information about preprocessor macros.
7597
7598 Call the command `info macro', not `show macro'.
7599 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7600 Fix error message.
7601 (_initialize_macrocmd): Register `info_macro_command' in
7602 `infolist', not `showlist'.
7603
7604 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7605
7606 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7607 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7608 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7609 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7610 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7611 unconditionally.
7612 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7613 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7614 (_initialize_mips_tdep): Remove dead code.
7615 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7616 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7617 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7618 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7619 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7620 MIPS_LAST_FP_ARG_REGNUM): Remove.
7621
7622 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7623
7624 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7625 (unwind_tmp_obstack_free, parse_frame_info)
7626 (update_context, cfi_read_fp, cfi_write_fp)
7627 (cfi_frame_chain, cfi_init_extra_frame_info)
7628 (cfi_virtual_frame_pointer): Use the above function.
7629 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7630
7631 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7632
7633 * v850-tdep.c (v850_type_is_scalar): New function.
7634 (v850_use_struct_convention): Match current gcc implementation
7635 as close as possible.
7636 (v850_push_arguments): Fix stack_offset handling. Don't write
7637 struct_addr into register. This is done by v850_store_struct_return.
7638 (v850_extract_return_value): Care for structs.
7639 (v850_store_return_value): Ditto.
7640 (v850_store_struct_return): Actually write address.
7641
7642 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7643
7644 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7645 without debug information too.
7646
7647 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7648
7649 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7650 Make multi-arch pure.
7651 * gdbarch.h, gdbarch.c: Re-generate.
7652 * arm-tdep.c (arm_print_float_info): Update.
7653 * arch-utils.h (default_print_float_info): Update.
7654 * arch-utils.c (default_print_float_info): Update.
7655 * infcmd.c (float_info): Update call.
7656
7657 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7658
7659 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7660 the front of the initialize list.
7661
7662 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7663
7664 * infrun.c (struct inferior_status): Replace fields
7665 selected_frame_address and selected_level with field
7666 selected_frame_id.
7667 (save_inferior_status): Update. Use get_frame_id.
7668 (struct restore_selected_frame_args): Delete.
7669 (restore_selected_frame): Update. Use frame_find_by_id.
7670 (restore_inferior_status): Update.
7671
7672 * breakpoint.h (struct breakpoint): Change type of
7673 watchpoint_frame to frame_id.
7674 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7675 call to get_current_frame.
7676 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7677 get_current_frame.
7678 (watchpoint_check): Use frame_find_by_id.
7679
7680 * frame.h (record_selected_frame): Delete declaration.
7681 * stack.c (record_selected_frame): Delete function.
7682
7683 * frame.h (struct frame_id): Define.
7684 (get_frame_id): Declare.
7685 (frame_find_by_id): Declare.
7686 * frame.c (frame_find_by_id): New function.
7687 (get_frame_id): New function.
7688
7689 2002-06-10 Andrey Volkov <avolkov@transas.com>
7690
7691 * ser-e7kpc.c: Fix duplicated define and call of
7692 _initialize_ser_e7000pc
7693
7694 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7695
7696 * signals/signals.c (target_signal_from_host): Fix #ifdef
7697 SIGRTMIN case.
7698 (do_target_signal_to_host): Likewise.
7699
7700 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7701
7702 * mips-tdep.c (mips_find_abi_section): New function.
7703 (mips_gdbarch_init): Call it.
7704
7705 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7706
7707 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7708 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7709 after Andrew's 2002-06-08 gdbarch change.
7710
7711 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7712
7713 * i386-linux-nat.c (suppy_gregset): Don't supply
7714 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7715 register cache.
7716 (fill_gregset): Don't fetch it under the same circumstances.
7717
7718 2002-06-09 Andrew Cagney <cagney@redhat.com>
7719
7720 * Makefile.in (callback_h): Define.
7721 (remote_sim_h): Update path to remote-sim.h.
7722 (remote-rdp.o): Add $(callback_h).
7723 (remote-sim.o): Use $(callback_h).
7724 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7725 * remote-rdp.c: Include "gdb/callback.h".
7726
7727 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7728
7729 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7730 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7731
7732 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7733
7734 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7735 * rdi-share/serpardr.c: Ditto.
7736 * rdi-share/unixcomm.c: Ditto.
7737 * rdi-share/serdrv.c: Ditto.
7738 * rdi-share/hostchan.h: Ditto.
7739 * rdi-share/hostchan.c: Ditto.
7740 * rdi-share/host.h: Ditto.
7741 * rdi-share/devsw.c: Ditto.
7742
7743 * objfiles.h: Change type of obj_private to void pointer.
7744 * pa64solib.c: Update copyright. Don't include "assert.h", use
7745 strcmp instead of STREQ, use LONGEST, do not use PTR
7746 * somsolib.c: Ditto.
7747
7748 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7749 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7750 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7751
7752 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7753
7754 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7755 (default_get_saved_register): Delete function.
7756 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7757 generic_unwind_get_saved_register.
7758 * gdbarch.h, gdbarch.c: Re-generate.
7759
7760 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7761
7762 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7763 generic_func_frame_chain_valid.
7764 * gdbarch.h, gdbarch.c: Re-generate.
7765 * blockframe.c (generic_func_frame_chain_valid): Only check
7766 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7767 passing FP to PC_IN_CALL_DUMMY.
7768 Fix PR gdb/360.
7769
7770 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7771
7772 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7773 (register_gdbarch_data): Initialize init_p.
7774 (gdbarch_data): Initialize data pointer using the init function.
7775 (init_gdbarch_data): Delete function.
7776 (gdbarch_update_p): Update.
7777 (initialize_non_multiarch): Update.
7778 (struct gdbarch): Add field initialized_p.
7779 * gdbarch.h, gdbarch.c: Re-generate.
7780
7781 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7782
7783 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7784 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7785 better do the things actually here.
7786 * x86-64-tdep.c (x86_64_register_name2nr): New.
7787 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7788 (x86_64_gdbarch_init): Respect the above change.
7789 * x86-64-tdep.h (x86_64_register_name2nr)
7790 (x86_64_register_nr2name): Add prototypes.
7791 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7792
7793 2002-06-06 Michael Snyder <msnyder@redhat.com>
7794
7795 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7796 Delete extra braces and re-indent.
7797 (d10v_store_return_value): Char return values
7798 must be shifted over by one byte in R0.
7799 (d10v_extract_return_value): Delete extra braces, re-indent.
7800
7801 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7802
7803 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7804 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7805 (d10v_integer_to_address): Rewrite.
7806 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7807 the d10v specific functions which take care of converting to the
7808 correct space.
7809
7810 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7811
7812 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7813 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7814
7815 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7816
7817 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7818 includes.
7819 * config/tm-linux.h: Ditto.
7820 * config/alpha/tm-alphalinux.h: Ditto.
7821 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7822 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7823 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7824 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7825 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7826 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7827 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7828 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7829 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7830 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7831 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7832 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7833 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7834 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7835 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7836 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7837 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7838 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7839 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7840 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7841 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7842 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7843 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7844 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7845 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7846 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7847 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7848 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7849 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7850 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7851 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7852 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7853 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7854 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7855 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7856 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7857 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7858
7859 2002-05-04 Aidan Skinner <aidan@velvet.net>
7860
7861 * ada-exp.tab.c: New file
7862 * ada-exp.y: New file
7863 * ada-lang.c: New file
7864 * ada-lang.h: New file
7865 * ada-lex.c: New file
7866 * ada-lex.l: New file
7867 * ada-tasks.c: New file
7868 * ada-typeprint.c: New file
7869 * ada-valprint.c: New file
7870
7871 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7872
7873 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7874 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7875
7876 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7877
7878 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7879 insetead of ppc-linux-tdep.o.
7880 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7881 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7882
7883 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7884
7885 2002-05-07 Christian Groessler <chris@groessler.org>
7886 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7887 bit register contents for little endian hosts.
7888
7889 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7890
7891 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7892 any maintainer.
7893
7894 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7895
7896 * gdbarch.h: Regenerate.
7897
7898 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7899
7900 * MAINTAINERS: Add everyone to write-after-approval list.
7901
7902 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7903
7904 * stack.c (frame_info): Use frame_register_unwind instead of
7905 saved_regs. Mention when the SP is on the stack or in a register.
7906
7907 * frame.h (frame_register_unwind_ftype): Define. Document.
7908 (struct frame_info): Add field register_unwind and
7909 register_unwind_cache.
7910 (frame_register_unwind): Declare.
7911 (generic_unwind_get_saved_register): Declare.
7912
7913 * frame.c (frame_register_unwind): New function.
7914 (generic_unwind_get_saved_register): New function.
7915
7916 * blockframe.c (generic_call_dummy_register_unwind): New function.
7917 (frame_saved_regs_register_unwind): New function.
7918 (set_unwind_by_pc): New function.
7919 (create_new_frame): New function.
7920 (get_prev_frame): New function.
7921
7922 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7923
7924 * a29k-share/: Delete directory.
7925 * remote-vx29k.c: Delete file.
7926
7927 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7928
7929 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7930 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7931
7932 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7935 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7936 (sparc64nbsd-nat.o)
7937 (sparcnbsd-nat.o)
7938 (sparcnbsd-tdep.o): New dependency lists.
7939 * NEWS: Note new UltraSPARC NetBSD native configuration.
7940 * configure.host (sparc64-*-netbsd*): New host.
7941 * configure.tgt (sparc-*-netbsdelf*)
7942 (sparc-*-netbsd*): Set gdb_target to nbsd.
7943 (sparc64-*-netbsd*): New target.
7944 * sparc64nbsd-nat.c: New file.
7945 * sparcnbsd-nat.c: New file.
7946 * sparcnbsd-tdep.c: New file.
7947 * sparcnbsd-tdep.h: New file.
7948 * config/sparc/nbsd.mt: New file.
7949 * config/sparc/nbsd64.mh: New file.
7950 * config/sparc/nbsd64.mt: New file.
7951 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7952 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7953 (HOST_IPC): Remove.
7954 * config/sparc/nbsdaout.mt: Remove.
7955 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7956 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7957 (HOST_IPC): Remove.
7958 * config/sparc/nbsdelf.mt: Remove.
7959 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7960 sparc-nat.c compatiblity defines.
7961 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7962 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7963 * config/sparc/tm-nbsd64.h: New file.
7964 * config/sparc/tm-nbsdaout.h: Remove.
7965 * config/sparc/xm-nbsd.h: Remove.
7966
7967 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7968
7969 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7970 * sparc-tdep.c: Include osabi.h.
7971 (gdbarch_tdep): Add osabi member.
7972 (_initialize_sparc_tdep): Use gdbarch_register.
7973 (sparc_gdbarch_init): Use generic OS ABI framework.
7974 (sparc_dump_tdep): New function.
7975
7976 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7977
7978 * corefile.c (do_captured_read_memory_integer): Return non-zero
7979 result.
7980 (safe_read_memory_integer): Copy result of memory read when
7981 status is non-zero. Also, add comments.
7982
7983 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7984
7985 * Makefile.in (ppc_tdep_h): Define.
7986 (ppc-linux-nat.o)
7987 (ppc-linux-tdep.o)
7988 (rs6000-tdep.o): Use $(ppc_tdep_h).
7989 (ppc-sysv-tdep.o)
7990 (ppcnbsd-nat.o)
7991 (ppcnbsd-tdep.o): New dependency lists.
7992 * ppc-tdep.h: Use generic OS ABI framework.
7993 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7994 (ppc_linux_init_abi): New functions.
7995 (ppc_sysv_abi_broken_use_struct_convention)
7996 (ppc_sysv_abi_use_struct_convention)
7997 (ppc_sysv_abi_push_arguments): Move to...
7998 * ppc-sysv-tdep.c: ...here.
7999 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8000 * rs6000-tdep.c (process_note_abi_tag_sections)
8001 (get_elfosabi): Remove.
8002 (rs6000_gdbarch_init): Use generic OS ABI framework.
8003 (rs6000_dump_tdep): New function.
8004 (_initialize_rs6000_tdep): Use gdbarch_register.
8005 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8006 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8007 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8008 of ppc-linux-tdep.o.
8009 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8010 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8011 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8012 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8013 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8014 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8015
8016 2002-05-29 Jim Blandy <jimb@redhat.com>
8017
8018 * macroscope.c (default_macro_scope): Put `void' in empty argument
8019 list.
8020
8021 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8022
8023 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8024 * arch-utils.c: Include "sim-regno.h".
8025 * gdbarch.sh: Don't include "sim-regno.h".
8026 * gdbarch.h, gdbarch.c: Regenerate.
8027 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8028 here.
8029 * arch-utils.h (legacy_register_sim_regno): To here.
8030 * remote-sim.c (legacy_register_sim_regno): Move function from
8031 here.
8032 * arch-utils.c (legacy_register_sim_regno): To here.
8033
8034 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8035
8036 * sim-regno.h: New file.
8037 * Makefile.in (sim_regno_h): Define.
8038 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8039 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8040 (legacy_register_sim_regno): New function.
8041 (one2one_register_sim_regno): New function.
8042 (gdbsim_fetch_register): Rewrite.
8043 (gdbsim_store_register): Only store a register when
8044 REGISTER_SIM_REGNO is valid.
8045 * d10v-tdep.c: Include "sim-regno.h".
8046 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8047 (d10v_ts3_register_sim_regno): Ditto.
8048 * gdbarch.sh: Include "sim-regno.h".
8049 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8050 * gdbarch.h, gdbarch.c: Regenerate.
8051 * arch-utils.h (default_register_sim_regno): Delete declaration.
8052 * arch-utils.c (default_register_sim_regno): Delete function.
8053
8054 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8055
8056 * ppcnbsd-nat.c: Rewrite.
8057 * ppcnbsd-tdep.c: New file.
8058 * ppcnbsd-tdep.h: New file.
8059 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8060 solib.o, and solib-svr4.o.
8061 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8062 nbsd-tdep.o, and corelow.o.
8063
8064 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8065
8066 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8067 `tr' and `sed'. Mention that `broken' targets are not expected to
8068 build.
8069
8070 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8071
8072 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8073 Let PC point right after the prologue before looking up symbols.
8074
8075 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8076
8077 * i386-tdep.c (i386_register_virtual_type): Return
8078 builtin_type_vec128i for SSE registers.
8079
8080 * gdbtypes.h (builtin_type_vec128i): Declare.
8081
8082 * gdbtypes.c (build_builtin_type_vec128i): New function.
8083 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8084 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8085 (build_gdbtypes): Initialize new builtin vector types.
8086 (_initialize_gdbtypes): Register new vector types with gdbarch.
8087
8088 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8091 since it has been multi-arch'd.
8092 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8093 Move Alpha and VAX multi-arch news entries to same section
8094 as other multi-arch news.
8095
8096 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8097
8098 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8099 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8100 static. Rename some register numbers to put them in ns32k-tdep
8101 private namespace.
8102 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8103 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8104 functions.
8105 (_initialize_ns32k_tdep): Use gdbarch_register.
8106 * ns32k-tdep.h: New file.
8107 * ns32knbsd-tdep.c: New file.
8108 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8109 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8110 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8111 REGISTER_BYTES, REGISTER_BYTE): Remove.
8112 * config/ns32k/tm-ns32k.h: New file.
8113 * config/ns32k/tm-umax.h: Remove.
8114
8115 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8116
8117 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8118 ns32k_store_struct_return, ns32k_extract_return_value,
8119 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8120 functions.
8121 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8122 ns32k_saved_pc_after_call.
8123 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8124 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8125 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8126 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8127 ns32k_extract_struct_value_address.
8128
8129 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8130
8131 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8132 ns32k_fix_call_dummy): New.
8133 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8134 ns32k_call_dummy_words.
8135 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8136 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8137 CALL_DUMMY_NARGS): Remove.
8138 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8139
8140 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8141
8142 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8143 ns32k_frame_saved_pc, ns32k_frame_args_address,
8144 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8145 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8146 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8147 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8148 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8149 (BREAKPOINT): Remove..
8150 (FRAME_CHAIN): Define as ns32k_frame_chain.
8151 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8152 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8153 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8154 (FRAME_FIND_SAVED_REGS): Remove.
8155 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8156 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8157 (POP_FRAME): Define as ns32k_pop_frame.
8158
8159 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8160
8161 * ns32k-tdep.c (ns32k_register_byte_32082,
8162 ns32k_register_byte_32382, ns32k_register_raw_size,
8163 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8164 functions.
8165 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8166 ns32k_register_byte_32382.
8167 * config/ns32k/tm-umax.h: Update copyright years.
8168 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8169 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8170 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8171 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8172 (ns32k_get_enter_addr): Fix prototype.
8173
8174 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8175
8176 * ns32k-tdep.c: Update copyright years.
8177 (ns32k_register_name_32082): New function.
8178 (ns32k_register_name_32382): Ditto.
8179 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8180 (REGISTER_NAME): Define as ns32k_register_name_32382.
8181 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8182 (REGISTER_NAME): Define as ns32k_register_name_32082.
8183
8184 2002-05-24 Jim Blandy <jimb@redhat.com>
8185
8186 * dwarf2read.c (free_line_header): Use xfree, not free.
8187
8188 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8189
8190 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8191 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8192
8193 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8194
8195 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8196
8197 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8198
8199 From Ross Alexander at NEC Europe:
8200 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8201
8202 2002-05-23 Michael Snyder <msnyder@redhat.com>
8203
8204 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8205 for input, rather than parse_and_eval_address.
8206
8207 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8208
8209 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8210 * Makefile.in (sim_d10v_h): Update definition.
8211
8212 2002-05-24 Andrew Cagney <cagney@redhat.com>
8213
8214 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8215 change `2002-05-22 Michael Snyder' below.
8216 (d10v_push_arguments): Ditto.
8217 (d10v_extract_return_value): Ditto.
8218
8219 2002-05-23 Jim Blandy <jimb@redhat.com>
8220
8221 * macrotab.c (check_for_redefinition): Don't complain if the new
8222 definition is the same as the previous one. Take more arguments
8223 to allow the comparison.
8224 (macro_define_object, macro_define_function): Pass more arguments
8225 to check_for_redefinition.
8226
8227 2002-05-22 Michael Snyder <msnyder@redhat.com>
8228
8229 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8230 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8231 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8232 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8233 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8234 Add a temp variable to save a call (and a memory read).
8235 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8236 if possible (so that PC_IN_CALL_DUMMY will work).
8237
8238 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8239
8240 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8241
8242 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8243
8244 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8245 fde->cie_ptr.
8246 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8247 (dwarf2_build_frame_info): Add offset to fde->initial_location
8248 so that frames of shared libraries are mapped correctly.
8249 (execute_stack_op): Change type of 'result' from ULONGEST to
8250 CORE_ADDR.
8251
8252 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8253
8254 * config/alpha/tm-nbsd.h: Include solib.h.
8255
8256 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8257
8258 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8259 assumptions about the host's byte order.
8260
8261 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8264 to dependency list.
8265 * alphanbsd-tdep.c: Include solib-svr4.h.
8266 * shnbsd-tdep.c: Ditto.
8267
8268 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8269
8270 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8271 nbsd-tdep.h to dependency list.
8272 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8273 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8274 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8275 nbsdaout.mh and nbsdelf.mh consistently.
8276 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8277 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8278 nbsdaout.mt and nbsdelf.mh consistently.
8279 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8280 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8281 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8282 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8283 a.out shared library stuff from here...
8284 * config/nm-nbsdaout.h: ...to here.
8285 * config/tm-nbsd.h: Remove.
8286 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8287 * config/arm/nbsd.mh: Remove.
8288 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8289 nbsd-tdep.o.
8290 * config/arm/nbsdaout.mh: New file.
8291 * config/arm/nbsdelf.mh: New file.
8292 * config/arm/nm-nbsdaout.h: New file.
8293 * config/i386/nbsd.mh: Remove.
8294 * config/i386/nbsd.mt: Remove.
8295 * config/i386/nbsdaout.mh: New file.
8296 * config/i386/nbsdaout.mt: New file.
8297 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8298 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8299 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8300 i386_register_u_addr): Remove.
8301 * config/i386/nm-nbsdaout.h: New file.
8302 * config/i386/nm-nbsdelf.h: Remove.
8303 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8304 (USE_STRUCT_CONVENTION): Remove.
8305 * config/i386/tm-nbsdaout.h: New file.
8306 * config/i386/tm-nbsdelf.h: Remove.
8307 * config/m68k/nbsd.mh: Remove.
8308 * config/m68k/nbsd.mt: Remove.
8309 * config/m68k/nbsdaout.mh: New file.
8310 * config/m68k/nbsdaout.mt: New file.
8311 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8312 * config/m68k/nm-nbsdaout.h: New file.
8313 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8314 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8315 * config/ns32k/nbsd.mh: Remove.
8316 * config/ns32k/nbsd.mt: Remove.
8317 * config/ns32k/nbsdaout.mh: New file.
8318 * config/ns32k/nbsdaout.mt: New file.
8319 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8320 * config/ns32k/nm-nbsdaout.h: New file.
8321 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8322 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8323 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8324 (SVR4_SHARED_LIBS): Remove.
8325 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8326 * config/sparc/nbsd.mh: Remove.
8327 * config/sparc/nbsd.mt: Remove.
8328 * config/sparc/nbsdaout.mh: New file.
8329 * config/sparc/nbsdaout.mt: New file.
8330 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8331 * config/sparc/nbsdelf.mt: New file.
8332 * config/sparc/nm-nbsdaout.h: New file.
8333 * config/sparc/nm-nbsdelf.h: Remove.
8334 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8335 * config/sparc/tm-nbsdaout.h: New file.
8336
8337 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8338
8339 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8340 mipsnbsd-tdep.c
8341 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8342
8343 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8344
8345 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8346 shnbsd-nat.c.
8347 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8348
8349 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8350
8351 * NEWS: Note new MIPS NetBSD native configuration.
8352 * configure.host (mips*-*-netbsd*): New host.
8353 * configure.tgt (mips*-*-netbsd*): New target.
8354 * mipsnbsd-nat.c: New file.
8355 * mipsnbsd-tdep.c: New file.
8356 * mipsnbsd-tdep.h: New file.
8357 * config/mips/nbsd.mh: New file.
8358 * config/mips/nbsd.mt: New file.
8359 * config/mips/nm-nbsd.h: New file.
8360 * config/mips/tm-nbsd.h: New file.
8361
8362 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8363
8364 * Makefile.in (SFILES): Add osabi.c.
8365 (COMMON_OBS): Add osabi.o.
8366 (osabi.o): New dependency list.
8367 * osabi.c: New file.
8368 * osabi.h: New file.
8369 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8370
8371 * Makefile.in (alpha_tdep_h): Define and use instead of
8372 alpha-tdep.h.
8373 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8374 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8375 Remove.
8376 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8377 * alpha-tdep.h: Include osabi.h.
8378 (alpha_abi): Remove.
8379 (gdbarch_tdep): Use generic OS ABI framework.
8380 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8381 gdbarch_register_osabi.
8382 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8383 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8384 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8385
8386 * Makefile.in (sh_tdep_h): Add osabi.h.
8387 * sh-tdep.h (sh_osabi): Remove.
8388 (gdbarch_tdep): Use generic OS ABI framework.
8389 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8390 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8391 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8392 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8393
8394 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8395 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8396 gdbarch_register_osabi.
8397 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8398 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8399 (get_elfosabi): Rename to...
8400 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8401 ABI framework support routines.
8402 (arm_gdbarch_init): Use generic OS ABI framework.
8403 (arm_dump_tdep): Likewise.
8404 (_initialize_arm_tdep): Likewise.
8405 * arm-tdep.h: Include osabi.h.
8406 (arm_abi): Remove.
8407 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8408 osabi member.
8409 (arm_gdbarch_register_os_abi): Remove prototype.
8410 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8411 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8412
8413 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8414 * mips-tdep.c: Include osabi.h.
8415 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8416 OS ABI framework.
8417
8418 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8419
8420 * h8300-tdep.c: Fix formatting.
8421
8422 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8423
8424 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8425 printing vector registers.
8426
8427 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8428
8429 From Fernando Nasser:
8430 * remote.c (remote_async_open_1): Re-throw the exception when the
8431 connection fails.
8432 (remote_cisco_open): Ditto.
8433 (remote_open_1): Ditto.
8434
8435 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8436
8437 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8438 (remote_start_remote): Add uiout parameter. Pass through to
8439 remote_start_remote_dummy.
8440 (remote_open_1): Use catch_exception instead of catch_errors.
8441 (remote_async_open_1): Ditto.
8442 (remote_cisco_open): Ditto.
8443
8444 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8445
8446 * remote.c (remote_start_remote): Replace PTR with void pointer.
8447 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8448 static.
8449
8450 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8451
8452 * gdb_indent.sh: Allow the script to be run in the sim directory.
8453
8454 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8455
8456 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8457 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8458
8459 * corelow.c (core_open): Only call set_gdbarch_from_file if
8460 exec_bfd is NULL.
8461
8462 2002-05-17 Andrey Volkov <avolkov@transas.com>
8463
8464 * h8300-tdep.c: Add support of EXR register
8465 * config/h8300/tm-h8300.h: Ditto.
8466
8467 2002-05-17 Andrey Volkov <avolkov@transas.com>
8468
8469 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8470
8471 2002-05-17 Andrey Volkov <avolkov@transas.com>
8472
8473 * h8300-tdep.c: Change literal regnums to REGNO.
8474
8475 2002-05-17 Jim Blandy <jimb@redhat.com>
8476
8477 * NEWS: Note addition of macro support.
8478
8479 Expand preprocessor macros in C expressions.
8480 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8481 (scan_macro_expansion, scanning_macro_expansion,
8482 finished_macro_expansion): New function declarations.
8483 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8484 variable declarations.
8485 * parser-defs.h (expression_context_pc): New declaration.
8486 * parse.c (expression_context_pc): New variable.
8487 (parse_exp_1): Set expression_context_pc, as well as
8488 expression_context_block.
8489 * c-exp.y (yylex): If we're not already reading the result of a
8490 macro expansion, try to macro-expand the next token. When we're
8491 done scanning a macro expansion, switch back to the mainline text.
8492 Commas and `if's in a macro's expansion don't terminate the input.
8493 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8494 (macro_original_text, macro_expanded_text,
8495 expression_macro_lookup_func, expression_macro_lookup_baton): New
8496 variables.
8497 (scan_macro_expansion, scanning_macro_expansion,
8498 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8499 c_preprocess_and_parse): New functions.
8500 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8501 c_preprocess_and_parse, instead of c_parse.
8502 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8503 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8504
8505 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8506
8507 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8508 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8509 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8510
8511 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8512
8513 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8514
8515 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8516
8517 * Makefile.in (sh_tdep_h): Define and use.
8518 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8519 register enum): Move to...
8520 * * sh-tdep.h: ...here.
8521 * sh-tdep.c: Include sh-tdep.h.
8522 * sh3-rom.c: Likewise.
8523 * shnbsd-tdep.c: Likewise.
8524
8525 2002-05-16 Michael Snyder <msnyder@redhat.com>
8526
8527 * arm-tdep.c: Spelling fix in comment.
8528
8529 2002-05-16 Jim Blandy <jimb@redhat.com>
8530
8531 Add commands for manually expanding macros and showing their
8532 definitions.
8533 * macrocmd.c, macroscope.c, macroscope.h: New files.
8534 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8535 (macroscope_h): New variable.
8536 (HFILES_NO_SRCDIR): Add macroscope.h.
8537 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8538 (macroscope.o, macrocmd.o): New rules.
8539
8540 Teach the Dwarf 2 reader to read macro information.
8541 * dwarf2read.c: #include "macrotab.h".
8542 (dwarf_macinfo_buffer): New variable.
8543 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8544 dwarf_macinfo_size.
8545 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8546 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8547 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8548 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8549 dwarf2_macro_spaces_in_definition): New complaints.
8550 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8551 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8552 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8553 the partial symbol table.
8554 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8555 from what's recorded in the partial symbol table.
8556 (read_file_scope): If the compilation unit has a
8557 `DW_AT_macro_info' attribute, read its macro information.
8558 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8559
8560 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8561
8562 Fix PR gdb/546
8563 * ser-tcp.c: Don't include <netinet/udp.h>.
8564
8565 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8566
8567 * MAINTAINERS: Update my email address.
8568
8569 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8570
8571 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8572 include file of the same name.
8573
8574 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8575
8576 * configure.tgt: Mark v850 as multi-arched.
8577 * config/v850/tm-v850.h: Remove file.
8578 * config/v850/v850.mt: Eliminate TM_FILE.
8579
8580 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8581
8582 * v850-tdep.c: Full multi-arch.
8583 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8584 Define GDB_MULTI_ARCH to 2.
8585
8586 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8587
8588 * p-exp.y (current_type): New static variable.
8589 Carries the type of the expression at the position that is parsed.
8590 (push_current_type, pop_current_type): Two new functions. Used
8591 to store/restore current_type in expression on specific tokens.
8592 (search_field): New static variable. Set to one after parsing a point
8593 as at that point only a FIELDNAME token should be searched.
8594 (FIELDNAME): New token. After a point only a token belonging to
8595 current_type type definition is allowed.
8596 (all over token rules): reset and change current_type according
8597 to rules.
8598 (exp '[' rule): insert implicit array index field if
8599 exp is a pascal string type.
8600
8601 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8602
8603 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8604 frame info. Use frame_info's saved_regs instead of matching member
8605 in extra_frame_info throughout.
8606 (v850_frame_init_saved_regs): New function.
8607 (v850_init_extra_frame_info): Move most functionality into
8608 v850_frame_init_saved_regs().
8609 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8610 (v850_frame_find_saved_regs): Remove declaration.
8611 (FRAME_FIND_SAVED_REGS): Remove definition.
8612 (v850_frame_init_saved_regs): Add declaration.
8613 (FRAME_INIT_SAVED_REGS): Add definition.
8614
8615 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8616
8617 * v850-tdep.c: Begin multi-arch'ing v850.
8618 (v850_target_architecture_hook): Remove function.
8619 (v850_gdbarch_init): New function. Add code previously in
8620 v850_target_architecture_hook().
8621 (_initialize_v850_tdep): Don't set target_architecture_hook.
8622 Call register_gdbarch_init() instead.
8623
8624 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8625
8626 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8627 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8628 (fixup_class_method_type): Likewise.
8629
8630 2002-05-15 Jim Blandy <jimb@redhat.com>
8631
8632 Add macro structures to GDB's symbol tables. Nobody puts anything
8633 in them yet.
8634 * symtab.h (struct symtab): New member: `macro_table'.
8635 * buildsym.h (pending_macros): New global variable.
8636 * buildsym.c: #include "macrotab.h".
8637 (buildsym_init): Initialize `pending_macros'.
8638 (end_symtab): If we found macro information while reading a CU's
8639 debugging info, do build a symtab structure for it. Make the
8640 symtab point to the macro information, and clear the
8641 `pending_macros' pointer which held it while we were reading the
8642 debug info.
8643 (really_free_pendings): Free any pending macro table.
8644 * objfiles.h (struct objfile): New member: `macro_cache'.
8645 * objfiles.c (allocate_objfile): Set allocate and free functions
8646 for the macro cache's objstack.
8647 (free_objfile): Empty the macro cache's obstack.
8648 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8649 set new allocate and free functions for it.
8650 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8651 free functions for the macro cache's objstack. (Why is this
8652 function building its own objfile?)
8653 * symmisc.c (print_objfile_statistics): Print statistics on the
8654 macro bcache.
8655 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8656
8657 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8658
8659 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8660 (REGISTER_U_ADDR): Delete definition.
8661 (arm_register_u_addr): Delete declaration.
8662
8663 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8664
8665 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8666 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8667
8668 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8669
8670 * regcache.c (register_valid): Revise comments refering to "Not
8671 available" and "unavailable".
8672 * frame.c (frame_register_read): Ditto.
8673 * findvar.c (value_of_register): Ditto.
8674
8675 2002-05-15 Andrew Cagney <cagney@redhat.com>
8676
8677 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8678 (remote-sim.o): Update dependencies.
8679 (d10v-tdep.o): Specify dependencies.
8680 (sim_d10v_h): Define.
8681
8682 2002-05-14 Jim Blandy <jimb@redhat.com>
8683
8684 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8685 * macrotab.c (macro_lookup_inclusion, find_definition,
8686 new_macro_table): Same.
8687
8688 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8689 not `! strcmp ()'. This is a dubious improvement.
8690 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8691
8692 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8693 although it's not necessary, to avoid a warning.
8694
8695 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8696
8697 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8698 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8699 TYPE_INSTANCE_FLAGS.
8700 (struct main_type): New.
8701 (struct type): Move most members to struct main_type. Change
8702 cv_type and as_type to new type_chain member. Add instance_flags.
8703 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8704 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8705 (finish_cv_type): Remove prototype.
8706 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8707 Set TYPE_CHAIN.
8708 (alloc_type_instance): New function.
8709 (smash_type): New function.
8710 (make_pointer_type, make_reference_type, make_function_type)
8711 (smash_to_member_type, smash_to_method_type): Call smash_type.
8712 (make_qualified_type): New function.
8713 (make_type_with_address_space): Call make_qualified_type.
8714 (make_cv_type): Likewise.
8715 (finish_cv_type): Remove unnecessary function.
8716 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8717 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8718 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8719 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8720 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8721 * hpread.c (hpread_read_struct_type): Likewise.
8722 * stabsread.c (read_struct_type): Likewise.
8723
8724 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8725
8726 * configure.tgt: Add a catch all sh* target, for cases like
8727 sh[2,3,4]-elf and sh-hms.
8728
8729 2002-05-14 Keith Seitz <keiths@redhat.com>
8730
8731 * event-loop.c (create_file_handler): Don't do anything but
8732 update data when we are given a fd which we are already
8733 monitoring.
8734
8735 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8736
8737 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8738 (update_context): Use __func__ in warnings.
8739
8740 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8743 and tcp_close to net_open and net_close.
8744 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8745 using UDP if requested. Don't try to disable Nagle on UDP
8746 sockets.
8747 * remote.c (remote_serial_open): New function. Warn about UDP.
8748 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8749
8750 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8751
8752 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8753
8754 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8755
8756 * configure.tgt: Remove sh-hms target.
8757 * MAINTAINERS: Don't list sh-hms as a separate target.
8758
8759 2002-05-13 Jim Blandy <jimb@redhat.com>
8760
8761 Add first preprocessor macro-expansion files.
8762 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8763 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8764 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8765 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8766 (COMMON_OBS): Add macrotab.o, macroexp.o.
8767 (macroexp.o, macrotab.o): New rules.
8768
8769 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8770
8771 * config/m88k/tm-m88k.h: Update copyright.
8772 (m88k_target_write_pc): Declare
8773 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8774 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8775 (SHIFT_INST_REGS): Update definition.
8776 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8777 using old definition of TARGET_WRITE_PC.
8778 * regcache.c (generic_target_write_pc): Delete code handling
8779 NNPC_REGNUM.
8780 * gdbarch.sh (NNPC_REGNUM): Delete.
8781 * gdbarch.h, gdbarch.c: Regenerate.
8782
8783 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8784
8785 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8786 builtin reg number.
8787
8788 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8789
8790 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8791 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8792 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8793 access macros.
8794 * c-typeprint.c (cp_type_print_method_args): Likewise.
8795 (c_type_print_args): Likewise.
8796 * d10v-tdep.c (d10v_push_arguments): Likewise.
8797 (d10v_extract_return_value): Likewise.
8798 * expprint.c (print_subexp): Likewise.
8799 * gdbtypes.c (lookup_primitive_typename): Likewise.
8800 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8801 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8802 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8803 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8804 (TYPE_VECTOR): Likewise.
8805 * hpread.c (hpread_read_struct_type)
8806 (fix_static_member_physnames, fixup_class_method_type)
8807 (hpread_type_lookup): Likewise.
8808 * mdebugread.c (parse_symbol, parse_type): Likewise.
8809 * p-lang.c (is_pascal_string_type): Likewise.
8810 * valops.c (hand_function_call): Likewise.
8811 * x86-64-tdep.c (classify_argument): Likewise.
8812
8813 * hpread.c (hpread_read_function_type)
8814 (hpread_read_doc_function_type): Call replace_type.
8815 * dstread.c (create_new_type): Delete.
8816 (decode_dst_structure, process_dst_function): Call alloc_type.
8817 Use type access macros.
8818
8819 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8820
8821 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8822 the're not supported by the current architecture.
8823 (i387_fill_fxsave): Likewise.
8824
8825 2002-05-12 Fred Fish <fnf@redhat.com>
8826
8827 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8828 sect_index_xxx members to index the first slot in section_offsets
8829 if all of the section_offsets are zero.
8830
8831 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8832
8833 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8834 checked in with last change.
8835
8836 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8837
8838 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8839 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8840 config.sub.
8841
8842 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8843
8844 * Makefile.in: Update dependencies.
8845
8846 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8847
8848 * language.c (local_hex_string_custom): Simplify. Do not depend
8849 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8850
8851 * memattr.c (mem_info_command): Replace calls to
8852 longest_local_hex_string and longest_local_hex_string_custom.
8853 * buildsym.c (make_blockvector): Ditto.
8854 * solib.c (info_sharedlibrary_command): Ditto.
8855 * tracepoint.c (tracepoints_info): Ditto.
8856 * symtab.c (print_msymbol_info): Ditto.
8857
8858 * language.c (local_hex_string): Delete.
8859 (local_hex_string_custom): Delete.
8860 (longest_local_hex_string): Rename to local_hex_string.
8861 (longest_local_hex_string_custom): Rename to
8862 local_hex_string_custom.
8863 * language.h (local_hex_string): Change parameter type to LONGEST.
8864 (local_hex_string_custom): Ditto.
8865 (longest_local_hex_string): Delete declaration.
8866 (longest_local_hex_string_custom): Ditto.
8867
8868 * solib.c: Update copyright.
8869 * memattr.c: Update copyright.
8870
8871 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8872
8873 * arch-utils.h (legacy_register_to_value): Declare.
8874 (legacy_value_to_register): Declare.
8875 (legacy_convert_register_p): Declare.
8876 * arch-utils.c (legacy_register_to_value): New function.
8877 (legacy_value_to_register): New function.
8878 (legacy_convert_register_p): New function.
8879
8880 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8881 (VALUE_TO_REGISTER): Define.
8882 (CONVERT_REGISTER_P): Define.
8883 * gdbarch.h, gdbarch.c: Regenerate.
8884
8885 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8886 VALUE_TO_REGISTER.
8887 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8888 CONVERT_REGISTER_P.
8889
8890 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8891 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8892
8893 * Makefile.in: Update dependencies for valops.c.
8894 * valops.c: Include "gdb_assert.h".
8895 (typecmp): Skip THIS parameter to methods.
8896 (find_method_list): Remove static_memfuncp argument,
8897 update callers. Check for stub methods.
8898 (find_value_oload_method_list): Don't set *static_memfuncp.
8899 (find_overload_match): Don't check for stub methods. Assert
8900 that methods are not stubbed. Handle static methods.
8901 (value_find_oload_method_list): Remove static_memfuncp argument.
8902 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8903 to the argument list for static stub methods.
8904 * value.h (value_find_oload_method_list): Update prototype.
8905
8906 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8907
8908 * arch-utils.h (generic_register_size): Declare.
8909 (generic_register_raw_size, generic_register_virtual_size): Delete
8910 declarations.
8911 * arch-utils.c (generic_register_raw_size): Delete.
8912 (generic_register_size): New function.
8913 (generic_register_virtual_size): Delete.
8914
8915 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8916 default generic_register_size.
8917 * gdbarch.h, gdbarch.c: Re-generate.
8918
8919 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8920 register_virtual_size.
8921 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8922 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8923
8924 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8925
8926 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8927 * gdbarch.h, gdbarch.c: Regenerate.
8928 * gnu-v3-abi.c: Update copyright.
8929 (vtable_address_point_offset): Update.
8930 (gnuv3_rtti_type): Update.
8931 (gnuv3_baseclass_offset): Update.
8932 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8933 (init_fetch_link_map_offsets): Update.
8934 * remote.c (get_remote_state): Update.
8935
8936 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8937
8938 * TODO: Remove value_headof/value_from_vtable_info comment.
8939 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8940 * values.c (value_headof, value_from_vtable_info): Delete.
8941 * value.h (value_from_vtable_info): Delete prototype.
8942
8943 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8944
8945 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8946 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8947 $(gdb_regex_h).
8948 (gdb_assert_h): Define.
8949 (gdb_wait_h): Define.
8950 (gdb_regex_h): Define.
8951
8952 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8953
8954 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8955 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8956
8957 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8958
8959 * nbsd-tdep.c: Fix comment.
8960
8961 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8962
8963 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8964 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8965 (nbsd-tdep.o): New dependency list.
8966 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8967 nbsd-tdep.h.
8968 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8969 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8970 * nbsd-tdep.c: New file.
8971 * nbsd-tdep.h: New file.
8972 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8973 nbsd-tdep.h.
8974 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8975 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8976 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8977 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8978
8979 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8980
8981 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8982 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8983 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8984 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8985 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8986 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8987
8988 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8989
8990 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8991 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8992 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8993 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8994 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8995 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8996 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8997
8998 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8999
9000 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9001 fetch_elfcore_registers to...
9002 * i386nbsd-tdep.c: ...here.
9003 (i386nbsd_use_struct_convention): Rename to...
9004 (i386nbsd_aout_use_struct_convention): ...this.
9005 (i386nbsd_supply_reg): New function.
9006 (i386nbsd_fill_reg): New function.
9007 (fetch_core_registers): Use i386nbsd_supply_reg.
9008 (fetch_elfcore_registers): Likewise.
9009 (_initialize_i386nbsd_tdep): New function.
9010 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9011 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9012 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9013 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9014 (i386nbsd_aout_use_struct_convention): ...this.
9015
9016 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9017
9018 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9019 (store_inferior_registers): Use shnbsd_fill_reg.
9020 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9021 sh_nbsd_supply_register): Collapse into...
9022 (shnbsd_supply_reg): ...this.
9023 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9024 (shnbsd_fill_reg): ...this.
9025 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9026 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9027 (fetch_core_registers): Use shnbsd_supply_reg.
9028 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9029 (sh_nbsd_core_fns): Rename to...
9030 (shnbsd_core_fns): ...this.
9031 (sh_nbsd_elfcore_fns): Rename to...
9032 (shnbsd_elfcore_fns): ...this.
9033 (sh_nbsd_init_abi): Rename to...
9034 (shnbsd_init_abi): ...this.
9035 (_initialize_sh_nbsd_tdep): Rename to...
9036 (_initialize_shnbsd_tdep): ...this.
9037 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9038 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9039 sh_nbsd_fill_register): Remove prototypes.
9040 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9041
9042 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9043
9044 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9045 (i387-nat.o): Delete dependency list.
9046 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9047 (x86-64-linux-nat.o): Likewise.
9048 * i387-nat.c: Delete file, moving contents to...
9049 * i387-tdep.c: ...here.
9050 * i387-nat.h: Rename...
9051 * i387-tdep.h: ...to this.
9052 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9053 * i386-linux-nat.c: Likewise.
9054 * i386bsd-nat.c: Likewise.
9055 * i386gnu-nat.c: Likewise.
9056 * i386nbsd-nat.c: Likewise.
9057 * i386v4-nat.c: Likewise.
9058 * x86-64-linux-nat.c: Likewise.
9059 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9060 * config/i386/go32.mh (NATDEPFILES): Likewise.
9061 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9062 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9063 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9064 * config/i386/linux.mh (NATDEPFILES): Likewise.
9065 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9066 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9067 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9068 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9069
9070 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9071
9072 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9073 (alphanbsd-nat.o): Remove dependency list.
9074 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9075 * alphanbsd-nat.c: Delete. Contents moved to...
9076 * alphanbsd-tdep.c: ...here.
9077 (_initialize_alphanbsd_tdep): Register core functions.
9078 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9079
9080 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9081
9082 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9083 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9084 (alphanbsd-nat.o): Likewise.
9085 (alphabsd-tdep.o): New dependency list.
9086 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9087 (fill_gregset): Use alphabsd_fill_reg.
9088 (supply_fpregset): Use alphabsd_supply_fpreg.
9089 (fill_fpregset): Use alphabsd_fill_fpreg.
9090 (fetch_inferior_registers): Use struct reg and struct fpreg
9091 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9092 and alphabsd_supply_fpreg.
9093 (store_inferior_registers): Use struct reg and struct fpreg
9094 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9095 and alphabsd_fill_fpreg.
9096 * alphabsd-tdep.c: New file.
9097 * alphabsd-tdep.h: New file.
9098 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9099 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9100 alphabsd_supply_fpreg.
9101 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9102 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9103
9104 2002-05-11 Eric Christopher <echristo@redhat.com>
9105
9106 * mips-tdep.c (mips_double_register_type): Fix thinko.
9107 (mips_single_register_type): Ditto.
9108 * MAINTAINERS: Add self.
9109
9110 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9111
9112 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9113 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9114 right thing on architectures with different endianness and/or
9115 integer sizes.
9116
9117 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9118
9119 From Christian Limpach <chris@Pin.LU>
9120 * configure.in: Change sed expression which comments out
9121 NATDEPFILES to also comment out continuation lines.
9122 * configure: Regenerate.
9123
9124 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9125
9126 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9127 big patch.
9128
9129 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9130
9131 * sh-tdep.c: Include correct file.
9132
9133 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9134
9135 New support for sh64-elf (sh5) target.
9136
9137 * configure.tgt: For sh64-elf target, default to sh-elf.
9138
9139 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9140 (struct gdbarch_tdep): Add new fields for new registers and ABI
9141 info.
9142
9143 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9144 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9145 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9146 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9147 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9148 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9149 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9150 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9151 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9152 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9153 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9154 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9155 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9156 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9157 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9158 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9159 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9160 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9161 sign_extend, sh64_nofp_frame_init_saved_regs,
9162 sh64_init_extra_frame_info, sh64_get_saved_register,
9163 sh64_extract_struct_value_address, sh64_pop_frame,
9164 sh64_push_arguments, sh64_extract_return_value,
9165 sh64_store_return_value, sh64_show_media_regs,
9166 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9167 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9168 sh_sh64_register_virtual_type,
9169 sh_sh64_register_convert_to_virtual,
9170 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9171 sh64_register_read, sh64_pseudo_register_write,
9172 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9173 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9174 sh64_do_pseudo_register, sh_compact_do_registers_info,
9175 sh64_do_registers_info, sh_gdbarch_init): New functions.
9176
9177 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9178
9179 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9180
9181 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9182
9183 * linespec.c (decode_line_1): Check for a double quote after
9184 a filename correctly.
9185
9186 2002-05-10 Jim Blandy <jimb@redhat.com>
9187
9188 Properly track the size of the current objfile's .debug_line section.
9189 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9190 (DWARF_LINE_SIZE): New macro.
9191 (dwarf2_build_psymtabs_hard): Record the line section's size in
9192 the partial symbol table.
9193 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9194 symbol table.
9195
9196 2002-05-10 Petr Sorfa <petrs@caldera.com>
9197
9198 * ia64-tdep.c: Handle breakpoints on L instruction type
9199 in MLX instruction bundle by moving the breakpoint to
9200 the third slot (X instruction type) as L holds only data.
9201
9202 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9203
9204 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9205 (process_one_symbol): Complain about discarding local symbols
9206 due to a misplaced N_LBRAC entry.
9207
9208 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9209
9210 From Daniel Berlin <dan@cgsoftware.com>
9211 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9212 decrease the depth we are at, in the case of templates.
9213
9214 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9215
9216 * mips-tdep.c (mips_float_register_type): New function.
9217 (mips_double_register_type): New function.
9218 (mips_print_register): Use them.
9219 (do_fp_register_row): Likewise.
9220
9221 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9222
9223 * signals/signals.c (signals): Remove conditional compilation around
9224 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9225 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9226
9227 2002-05-09 Michael Snyder <msnyder@redhat.com>
9228
9229 * remote-rdp.c (remote_rdp_can_run): Remove.
9230
9231 2002-05-09 Tom Tromey <tromey@redhat.com>
9232
9233 * jv-valprint.c (java_val_print): Handle `char' as a special case
9234 of TYPE_CODE_INT.
9235
9236 2002-05-09 Michael Snyder <msnyder@redhat.com>
9237
9238 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9239 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9240 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9241 str r(0123),[sp,#nn].
9242 (arm_skip_prologue): Ditto. Also make disassembly
9243 order-independent by placing it in a loop.
9244
9245 2002-05-06 Michael Snyder <msnyder@redhat.com>
9246
9247 * stabsread.c (read_type): Add recognition for new attribute:
9248 "@V;" means that an array type is actually a vector.
9249 This is analogous to the vector flag that's been added to dwarf2.
9250
9251 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9252
9253 * i386-tdep.h (i386_abi): New enum.
9254 (struct gdbarch_tdep): Replace os_ident member with abi.
9255 (i386_gdbarch_register_os_abi): New prototype.
9256 * i386-tdep.c (i386_abi_names): New array.
9257 (process_note_abi_tag_sections): Removed.
9258 (process_note_sections): New function.
9259 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9260 (struct i386_abi_handler): New struct.
9261 (i386_abi_handler_list): New variable.
9262 (i386_gdbarch_register_os_abi): New function.
9263 (i386_gdbarch_init): Adapt for the changes given above.
9264
9265 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * gregset.h: Say "GNU/Linux".
9268
9269 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9270
9271 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9272 (build_gdbtypes): Build builtin_type_v2_float.
9273 (_initialize_gdbtypes): Register new builtin type.
9274
9275 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9276
9277 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9278 (clear_gdbarch_swap): New function.
9279 (initialize_non_multiarch): Call.
9280 (gdbarch_update_p): Before calling init(), swap out and clear the
9281 existing architecture.
9282 * gdbarch.c: Regenerate.
9283
9284 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9285
9286 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9287 alphanbsd-tdep.c.
9288
9289 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9290
9291 * sh-nbsd-nat.c: Rename to...
9292 * shnbsd-nat.c: ...this.
9293 * sh-nbsd-tdep.c: Rename to...
9294 * shnbsd-tdep.c: ...this.
9295 * sh-nbsd-tdep.h: Rename to...
9296 * shnbsd-tdep.h: ...this.
9297 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9298 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9299
9300 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9301
9302 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9303 concatenation for command help messages.
9304
9305 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9306
9307 * NEWS: Note new sh*-*-netbsdelf* configuration.
9308 * configure.host: Set gdb_host_cpu to sh for all sh*.
9309 (sh*-*-netbsdelf*): New host.
9310 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9311 (sh*-*-netbsdelf*): New target.
9312 * sh-nbsd-nat.c: New file.
9313 * sh-nbsd-tdep.c: New file.
9314 * sh-nbsd-tdep.h: New file.
9315 * config/sh/nbsd.mh: New file.
9316 * config/sh/nbsd.mt: New file.
9317 * config/sh/nm-nbsd.h: New file.
9318 * config/sh/tm-nbsd.h: New file.
9319
9320 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9321
9322 * sh-tdep.c (sh_osabi_names): Declare.
9323 (process_note_abi_tag_sections): New function.
9324 (get_elfosabi): Ditto.
9325 (sh_gdbarch_register_os_abi): Ditto.
9326 (sh_dump_tdep): Ditto.
9327 _initialize_sh_tdep): Use gdbarch_register to register
9328 sh_gdbarch_init and sh_dump_tdep.
9329 * config/sh/tm-sh.h (sh_osabi): Declare.
9330 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9331
9332 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9333
9334 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9335 (thumb_scan_prologue): Ditto.
9336 (arm_find_callers_reg): Ditto.
9337 (arm_frame_chain): Ditto.
9338 (arm_init_extra_frame_info): Ditto.
9339 (arm_frame_saved_pc): Ditto.
9340 (arm_pop_frame): Ditto.
9341 (arm_push_return_address): New function.
9342 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9343 call_dummy_location, call_dummy_breakpoint_offset_p,
9344 call_dummy_breakpoint_offset, call_dummy_p,
9345 call_dummy_stack_adjust_p, call_dummy_words,
9346 sizeof_call_dummy_words, call_dummy_start_offset,
9347 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9348 call_dummy_address, push_return_address and push_dummy_frame for
9349 generic dummy frames.
9350
9351 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9352
9353 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9354 size computation for alloca.
9355 (sh_fp_frame_init_saved_regs): Likewise.
9356
9357 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9358
9359 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9360 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9361 * arm-tdep.c (arm_store_return_value): Use them.
9362 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9363 * remote-rdp.c (remote_rdp_fetch_register): Use
9364 ARM_MAX_REGISTER_RAW_SIZE.
9365 (remote_rdp_store_register): Likewise.
9366
9367 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9368
9369 * dwarf2cfi.c: Code cleanup, removed unused variables,
9370 added default labels to switch {} statements.
9371 * x86-64-tdep.c: Ditto.
9372 * x86-64-linux-nat.c: Ditto.
9373
9374 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9375
9376 * solib.h: Protect against multiple inclusion.
9377
9378 2002-05-06 Jim Blandy <jimb@redhat.com>
9379
9380 Add first preprocessor macro-expansion files.
9381 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9382 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9383 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9384 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9385 (COMMON_OBS): Add macrotab.o, macroexp.o.
9386 (macroexp.o, macrotab.o): New rules.
9387
9388 Separate the job of reading the line number info statement program
9389 header (...expialidocious) out into its own function.
9390 * dwarf2read.c (struct line_head, struct filenames, struct
9391 directories): Replace with...
9392 (struct line_header): New structure, containing the full
9393 contents of the statement program header, including the
9394 include directory and file name tables.
9395 (read_file_scope): If we have line number info, instead of just
9396 calling dwarf_decode_lines to do all the work, call
9397 dwarf_decode_line_header first to get a `struct line_header'
9398 containing the data in the statement program header, and then
9399 pass that to dwarf_decode_lines, which will pick up where that
9400 left off. Be sure to clean up the `struct line_header' object.
9401 (dwarf_decode_line_header, free_line_header, add_include_dir,
9402 add_file_name): New functions.
9403 (dwarf_decode_lines): Move all the code to read the statement
9404 program header into dwarf_decode_line_header. Take the line
9405 header it built as the first argument, instead of the offset to
9406 the compilation unit's line number info. Use the new `struct
9407 line_header' type instead of the old structures. No need to do
9408 cleanups here now, since we don't allocate anything.
9409 (dwarf2_statement_list_fits_in_line_number_section,
9410 dwarf2_line_header_too_long): New complaints.
9411
9412 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9413
9414 * gdbtypes.c (init_vector_type): New function.
9415 (build_builtin_type_vec128): Simplify the representation of SIMD
9416 registers.
9417 (build_gdbtypes): Initialize new builtin vector types.
9418 (_initialize_gdbtypes): Register new vector types with gdbarch.
9419 (builtin_type_v4_float, builtin_type_v4_int32,
9420 builtin_type_v8_int16, builtin_type_v16_int8,
9421 builtin_type_v2_int32, builtin_type_v4_int16,
9422 builtin_type_v8_int8): New (renamed) SIMD types.
9423
9424 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9425
9426 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9427 (i387_fill_fxsave): Likewise.
9428
9429 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9430
9431 * alpha-tdep.c (alpha_extract_return_value): Don't use
9432 non-constant array size in prototype.
9433
9434 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9435
9436 From Brian Taylor <briant at model dot com>:
9437 * ui-out.c (ui_out_field_core_addr): Use the function
9438 longest_local_hex_string_custom'to format addresses > 32 bits
9439 wide.
9440
9441 * ui-out.c (ui_out_field_core_addr): Update comment.
9442
9443 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9444
9445 * stack.c (select_and_print_frame): Make static. Delete the
9446 parameter `level'.
9447 (func_command): Update call.
9448 (select_frame_command): Delete code computing the frame level.
9449 * frame.h (select_and_print_frame): Delete declaration.
9450
9451 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9452
9453 * sparc-tdep.c (sparc_get_saved_register): Comment why
9454 get_prev_frame call is safe.
9455
9456 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9457
9458 * frame.h (select_frame): Delete level parameter.
9459 * stack.c (select_frame): Update. Use frame_relative_level to
9460 obtain the frame's level.
9461 (select_and_print_frame): Update call.
9462 (select_frame_command): Ditto.
9463 (up_silently_base): Ditto.
9464 (down_silently_base): Ditto.
9465 * ocd.c (ocd_start_remote): Ditto.
9466 * remote-rdp.c (remote_rdp_open): Ditto.
9467 * remote-mips.c (mips_initialize): Ditto.
9468 (common_open): Ditto.
9469 * remote-e7000.c (e7000_start_remote): Ditto.
9470 * m3-nat.c (select_thread): Ditto.
9471 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9472 (child_get_current_exception_event): Ditto.
9473 * varobj.c (varobj_create): Ditto.
9474 (varobj_update): Ditto.
9475 (c_value_of_root): Ditto.
9476 * tracepoint.c (finish_tfind_command): Ditto.
9477 * corelow.c (core_open): Ditto.
9478 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9479 * thread.c (info_threads_command): Ditto.
9480 (switch_to_thread): Ditto.
9481 * infrun.c (normal_stop): Ditto.
9482 (restore_selected_frame): Ditto.
9483 (restore_inferior_status): Ditto.
9484 * breakpoint.c (insert_breakpoints): Ditto.
9485 (watchpoint_check): Ditto.
9486 (bpstat_stop_status): Ditto.
9487 (do_enable_breakpoint): Ditto.
9488 * blockframe.c (flush_cached_frames): Ditto.
9489 (reinit_frame_cache): Ditto.
9490
9491 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9492
9493 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9494 maintainer.
9495
9496 2002-05-04 Jim Blandy <jimb@redhat.com>
9497
9498 * gdbtypes.c (replace_type): Doc fix.
9499
9500 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9501
9502 * valprint.c (strcat_longest): Delete commented out function.
9503 Update copyright.
9504
9505 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9506
9507 * MAINTAINERS: Mark a29k as deleted.
9508 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9509 Move new configurations to the top.
9510 * configure.tgt: Remove a29k.
9511 * config/a29k/tm-vx29k.h: Delete.
9512 * config/a29k/vx29k.mt: Delete.
9513 * config/a29k/tm-a29k.h: Delete.
9514 * config/a29k/a29k-udi.mt: Delete.
9515 * config/a29k/a29k.mt: Delete.
9516 * a29k-tdep.c: Delete.
9517 * remote-udi.c: Delete.
9518 * remote-mm.c: Delete.
9519 * remote-eb.c: Delete.
9520 * remote-adapt.c: Delete.
9521 * Makefile.in: Remove obsolete code.
9522 * config/s390/s390x.mt: Ditto.
9523 * config/s390/s390.mt: Ditto.
9524 * config/sparc/sparclynx.mh: Ditto.
9525 * config/sparc/linux.mh: Ditto.
9526 * config/pa/hppaosf.mh: Ditto.
9527 * config/pa/hppabsd.mh: Ditto.
9528 * config/ns32k/nbsd.mt: Ditto.
9529 * config/mips/vr5000.mt: Ditto.
9530 * config/m68k/sun3os4.mh: Ditto.
9531 * config/m68k/nbsd.mt: Ditto.
9532 * config/m68k/m68klynx.mh: Ditto.
9533 * config/m32r/m32r.mt: Ditto.
9534 * config/i386/x86-64linux.mt: Ditto.
9535 * config/i386/nbsdelf.mt: Ditto.
9536 * config/i386/nbsd.mt: Ditto.
9537 * config/i386/i386lynx.mh: Ditto.
9538
9539 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9540
9541 * target.c (debug_print_register): New function. Handle oversize
9542 registers.
9543 (debug_to_fetch_registers): Call.
9544 (debug_to_store_registers): Call.
9545
9546 2002-05-03 Jim Blandy <jimb@redhat.com>
9547
9548 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9549 (read_type): Doc fix.
9550 * gdbtypes.c (replace_type): Doc fix.
9551
9552 * stabsread.c (multiply_defined_struct): New complaint.
9553 (read_struct_type): If the type we were passed isn't empty, or
9554 incomplete, don't read the new struct type into it; complain,
9555 and return the original type unchanged. Take a new `type_code'
9556 argument, which is the type code for the new type.
9557 (read_type): Rather than storing the type's type code here, pass
9558 it as an argument to read_struct_type, and let that take care of
9559 storing it. That way, we don't overwrite the original type code,
9560 so read_struct_type can use it to decide whether we're overwriting
9561 something we shouldn't.
9562 (complain_about_struct_wipeout): New function.
9563
9564 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9565
9566 * gdbarch.sh: Assert that gdbarch is non-NULL.
9567 * gdbarch.c: Regenerate.
9568
9569 2002-05-03 Jason Merrill <jason@redhat.com>
9570
9571 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9572 and return NULL.
9573
9574 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9575
9576 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9577 (x86_64_dwarf2gdb_regno_map_length),
9578 (x86_64_dwarf2_reg_to_regnum): Added.
9579 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9580 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9581 (_initialize_x86_64_tdep): Synced with the change above.
9582 (x86_64_skip_prologue): Reformulated message.
9583
9584 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9585
9586 * f-exp.y: Also use new prev_lexptr variable
9587 to improve error reporting. Based on Michael Snyder
9588 2002-04-24 dated patch to c-exp.y.
9589 * jv-exp.y: Likewise.
9590 * m2-exp.y: Likewise.
9591
9592 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9593
9594 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9595 we are dealing with vectors.
9596
9597 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9598
9599 * config/m68k/tm-nbsd.h: Obvious fix,
9600 correct machine name.
9601
9602 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9603
9604 * p-typeprint.c (pascal_type_print_base): Add support
9605 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9606
9607 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9608
9609 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9610 for fondamental pascal 'char' type.
9611
9612 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9613
9614 * p-lang.h (is_pascal_string_type): Declaration changed,
9615 new sixth argument of type char ** added.
9616 * p-lang.c (is_pascal_string_type): Implementation
9617 changed. Args length_pos, length_size, string_pos, char_size
9618 can now be NULL. New argument arrayname set to the field
9619 name of the char array. Return value set to char array
9620 field index plus one.
9621 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9622 is_pascal_string_type function.
9623
9624 2002-05-02 Andrew Cagney <cagney@redhat.com>
9625
9626 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9627 <cagney@redhat.com> change.
9628 * gdbarch.c: Regenerate.
9629
9630 2002-05-02 Andrew Cagney <cagney@redhat.com>
9631
9632 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9633 before probing for a new one. Detect errorenous gdbarch_init
9634 functions.
9635 * gdbarch.c: Regenerate.
9636
9637 2002-05-01 Andrew Cagney <cagney@redhat.com>
9638
9639 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9640 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9641 * config/v850/tm-v850.h: Ditto. Update copyright.
9642
9643 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9644
9645 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9646 current_gdbarch.
9647
9648 2002-04-30 Michael Snyder <msnyder@redhat.com>
9649
9650 * arm-tdep.c: Whitespace clean-ups.
9651 (arm_skip_prologue): Fix thinko; two lines
9652 should have been removed as part of 4/24 change.
9653
9654 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9655
9656 * rs6000-tdep.c: Added comment describing how fpscr register
9657 numbers were chosen.
9658
9659 2002-04-30 Michael Snyder <msnyder@redhat.com>
9660
9661 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9662
9663 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9664
9665 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9666 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9667 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9668
9669 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9670
9671 From Louis Hamilton <hamilton@redhat.com>:
9672 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9673 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9674 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9675 not bfd-private xcoff data, to determine wordsize.
9676 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9677
9678 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9679
9680 GDB 5.2 released from 5.2 branch.
9681
9682 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9683
9684 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9685 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9686 (x86_64_register_info_table): Added comments with register numbers.
9687
9688 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9689
9690 * rs6000-tdep.c (rs6000_extract_return_value,
9691 rs6000_store_return_value): Handle returning vectors.
9692 (rs6000_gdbarch_init): Use
9693 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9694 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9695 New function.
9696 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9697 vectors.
9698 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9699 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9700
9701 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9702
9703 * hpread.c (hpread_psymtab_to_symtab_1,
9704 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9705 with fprintf_unfiltered (gdb_stderr,...).
9706
9707 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9708
9709 * remote-array.c (printf_monitor, write_monitor,
9710 array_insert_breakpoint, array_remove_breakpoint ):
9711 Replace fprintf (stderr,...
9712 with fprintf_unfiltered (gdb_stderr,....
9713 * remote-es.c: Likewise.
9714 * remote-os9k.c: Likewise.
9715 * remote-st.c: Likewise.
9716
9717 2002-04-28 Andreas Schwab <schwab@suse.de>
9718
9719 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9720 linux-proc.o and gcore.o.
9721
9722 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9723
9724 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9725 code without frame pointers.
9726
9727 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9728
9729 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9730 ON_STACK is needed.
9731
9732 2002-04-26 Ben Elliston <bje@redhat.com>
9733
9734 * target.c (do_xfer_memory): Correct reference to the new option
9735 "trust-readonly-sections".
9736
9737 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9738
9739 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9740 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9741 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9742 vectors.
9743 (read_array_type): Record the fact that this array type is really a
9744 vector (i.e. are passed in by value).
9745
9746 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9747
9748 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9749 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9750 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9751 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9752 * alpha-linux-tdep.c: Include frame.h.
9753 (alpha_linux_sigcontext_addr): New function.
9754 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9755 alpha_linux_sigcontext_addr.
9756 * alpha-osf1-tdep.c: Include gdbcore.h.
9757 (alpha_osf1_sigcontext_addr): New function.
9758 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9759 alpha_osf1_sigcontext_addr.
9760 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9761 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9762
9763 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9764
9765 * stack.c (selected_frame_level):
9766 (select_frame): Do not set selected_frame_level.
9767 * frame.h (selected_frame_level): Delete declaration.
9768
9769 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9770
9771 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9772 convert_from_func_ptr-addr when AIX / PowerOpen.
9773
9774 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9775
9776 * valops.c (hand_function_call): Call
9777 generic_save_call_dummy_addr.
9778 * frame.h (generic_save_call_dummy_addr): Declare.
9779 * blockframe.c (struct dummy_frame): Add fields call_lo and
9780 call_hi.
9781 (generic_find_dummy_frame): Check for PC in range call_lo to
9782 call_hi instead of entry_point_address.
9783 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9784 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9785 (generic_save_call_dummy_addr): New function.
9786
9787 2002-04-24 David S. Miller <davem@redhat.com>
9788
9789 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9790 sparc_skip_prologue.
9791 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9792 information to find prologue when possible.
9793 (sparc_prologue_frameless_p): Call examine_prologue directly.
9794 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9795 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9796 second argument.
9797 (SKIP_PROLOGUE): Likewise.
9798
9799 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9800
9801 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9802 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9803 indicate that the condition it was testing is always true.
9804 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9805 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9806 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9807
9808 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9809
9810 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9811 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9812 tdep->jb_pc and tdep->jb_elt_size.
9813 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9814 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9815 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9816 * alpha-nat.c (get_longjmp_target): Remove.
9817 (JB_ELEMENT_SIZE): Ditto.
9818 (JB_PC): Ditto.
9819 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9820 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9821 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9822 to alpha_get_longjmp_target.
9823 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9824 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9825 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9826
9827 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9828
9829 * README: Update to GDB 5.2.
9830
9831 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9832
9833 * gdbarch.sh (LC_ALL): Set to `c'.
9834
9835 2002-04-25 Theodore A. Roth <troth@verinet.com>
9836
9837 * avr-tdep.c: Ran through gdb_indent.sh.
9838
9839 2002-04-25 Theodore A. Roth <troth@verinet.com>
9840
9841 * MAINTAINERS: Add myself as AVR maintainer.
9842 * NEWS: Note new target avr.
9843
9844 2002-04-25 Theodore A. Roth <troth@verinet.com>
9845
9846 * Makefile.in: Add support for AVR target.
9847 * configure.tgt: Add support for AVR target.
9848 * avr-tdep.c: New file
9849 * config/avr/avr.mt: New file.
9850
9851 2002-04-25 Theodore A. Roth <troth@verinet.com>
9852
9853 * MAINTAINERS: Add myself to write-after-approval.
9854
9855 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9856
9857 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9858 with fprintf_unfiltered (gdb_stderr,....
9859
9860 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9861
9862 Fix PR gdb/508.
9863 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9864
9865 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9866
9867 * p-exp.y: Also use new prev_lexptr variable
9868 to improve error reporting. Based on Michael Snyder
9869 2002-04-24 dated patch to c-exp.y.
9870
9871 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9872
9873 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9874 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9875 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9876 to 0.
9877 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9878 and struct value.
9879 (FUNCTION_START_OFFSET): Remove.
9880 (BREAKPOINT): Ditto.
9881
9882 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9883
9884 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9885 * NEWS: Ditto.
9886
9887 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9888
9889 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9890 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9891 alpha_linux_pc_in_sigtramp.
9892 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9893 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9894 alpha_osf1_pc_in_sigtramp.
9895 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9896 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9897 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9898 alphafbsd_pc_in_sigtramp.
9899 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9900 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9901 alphanbsd_pc_in_sigtramp.
9902 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9903 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9904
9905 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9906
9907 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9908
9909 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9910
9911 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9912 alphanbsd-tdep.c.
9913 (alphanbsd-nat.o): New dependency list.
9914 (alphanbsd-tdep.o): Ditto.
9915 * NEWS: Note new native NetBSD/alpha configuration.
9916 * alphanbsd-nat.c: New file.
9917 * alphanbsd-tdep.c: Ditto.
9918 * configure.host (alpha*-*-netbsd*): New host.
9919 * configure.tgt (alpha*-*-netbsd*): New target.
9920 * config/alpha/nbsd.mh: New file.
9921 * config/alpha/nbsd.mt: Ditto.
9922 * config/alpha/nm-nbsd.h: Ditto.
9923 * config/alpha/tm-nbsd.h: Ditto.
9924
9925 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9926
9927 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9928 (alpha-osf1-tdep.o): New dependency list.
9929 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9930 and skip_sigtramp_frame members.
9931 * alpha-linux-tdep.c: Include gdbcore.h.
9932 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9933 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9934 * alpha-osf1-tdep.c: New file.
9935 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9936 alpha-osf1-dep.c.
9937 (alpha_frame_past_sigtramp_frame): New function.
9938 (alpha_dynamic_sigtramp_offset): Ditto.
9939 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9940 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9941 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9942 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9943 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9944 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9945 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9946 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9947 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9948 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9949 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9950 to find_solib_trampoline_target.
9951 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9952 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9953 (SKIP_TRAMPOLINE_CODE): Remove.
9954 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9955 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9956 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9957 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9958 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9959 (PROC_SIGTRAMP_MAGIC): Ditto.
9960 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9961 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9962 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9963 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9964 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9965
9966 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9967
9968 * NEWS: Note that Alpha targets are now multi-arch.
9969
9970 2002-04-24 Michael Snyder <msnyder@redhat.com>
9971
9972 * parser-defs.h (prev_lexptr): New external variable.
9973 * parse.c (parse_exp_1): Set prev_lexptr to null before
9974 calling the language-specific parser.
9975 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9976 (yyerror): Use prev_lexptr in error reporting.
9977
9978 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9981 * gregset.h: If FILL_FPXREGSET is defined, provide
9982 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9983 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9984 is defined, call fill_fpxregset.
9985
9986 2002-04-24 Roland McGrath <roland@frob.com>
9987
9988 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9989 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9990 (supply_gregset, supply_fpregset): New functions.
9991
9992 * gnu-nat.c (gnu_find_memory_regions): New function.
9993 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9994 (gnu_xfer_memory): Add a cast.
9995
9996 2002-04-24 Michael Snyder <msnyder@redhat.com>
9997
9998 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9999 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10000 of argument regs ("str r(0123), [r11, #-nn"]).
10001 (arm_skip_prologue): Better handling for frameless functions.
10002 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10003 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10004
10005 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10006
10007 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10008 NUM_PSEUDO_REGS can be used.
10009
10010 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10011
10012 * arch-utils.h: Update copyright.
10013
10014 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10015 * gdbarch.h, gdbarch.c: Re-generate.
10016
10017 * inferior.h (IN_SIGTRAMP): Delete definition.
10018 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10019 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10020
10021 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10022 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10023 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10024 (find_proc_framesize): Ditto.
10025 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10026 (alpha_init_extra_frame_info): Ditto.
10027 * infrun.c (handle_inferior_event): Ditto.
10028 (handle_inferior_event): Ditto.
10029 (check_sigtramp2): Ditto.
10030 * blockframe.c (create_new_frame): Ditto.
10031 (get_prev_frame): Ditto.
10032 * ppc-linux-tdep.c: Update comments.
10033 * i386-linux-tdep.c: Update comments.
10034 * breakpoint.c (bpstat_what): Update comment.
10035
10036 2002-04-24 David S. Miller <davem@redhat.com>
10037
10038 * i960-tdep.c (register_in_window_p): New function.
10039 (i960_find_saved_register): Use it instead of
10040 REGISTER_IN_WINDOW_P.
10041 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10042
10043 * symtab.h (find_stab_function_addr): Kill extern.
10044 * minsyms.c (find_stab_function_addr): Remove from here...
10045 * dbxread.c: ... to here, and mark it static.
10046
10047 2002-04-20 David S. Miller <davem@redhat.com>
10048
10049 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10050 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10051
10052 2002-04-21 David S. Miller <davem@redhat.com>
10053
10054 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10055 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10056 (vx_write_register): Likewise.
10057
10058 2002-04-23 J. Brobecker <brobecker@gnat.com>
10059
10060 * source.c (is_regular_file): New function.
10061 (openp): Check wether file to open is a regular file
10062 to avoid opening directories.
10063
10064 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10065
10066 * findvar.c (extract_signed_integer): Cast printf argument
10067 to suppress format warning.
10068 (extract_unsigned_integer): Likewise.
10069 * infcmd.c (registers_info): Likewise.
10070 * top.c (get_prompt_1): Likewise.
10071 * valops.c (value_assign): Likewise.
10072 * valprint.c (print_decimal): Likewise.
10073
10074 2002-04-22 H.J. Lu (hjl@gnu.org)
10075
10076 * c-exp.y (typebase): Support
10077
10078 [long|long long|short] [signed|unsigned] [int|]
10079
10080 and
10081
10082 signed [long|long long|short] int
10083
10084 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10085
10086 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10087 and vax-tdep.h.
10088 * vax-tdep.h: New file.
10089 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10090 Make several routines static.
10091 (vax_get_saved_register): New function.
10092 (vax_gdbarch_init): New function.
10093 (_initialize_vax_tdep): Register vax_gdbarch_init.
10094 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10095 Remove macros now under the control of gdbarch.
10096
10097 2002-04-22 Michael Snyder <msnyder@redhat.com>
10098
10099 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10100 Some whitespace and coding standards tweaks.
10101
10102 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10103
10104 * vax-tdep.c: Include regcache.h.
10105 (vax_call_dummy_words): New.
10106 (sizeof_vax_call_dummy_words): New.
10107 (vax_fix_call_dummy): New function.
10108 (vax_saved_pc_after_call): Ditto.
10109 * config/vax/tm-vax.h: Don't include regcache.h.
10110 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10111 (CALL_DUMMY): Remove.
10112 (CALL_DUMMY_WORDS): Define.
10113 (SIZEOF_CALL_DUMMY_WORDS): Define.
10114 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10115
10116 2002-04-18 Michael Snyder <msnyder@redhat.com>
10117
10118 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10119
10120 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10121
10122 * vax-tdep.c (vax_frame_chain): New function.
10123 (vax_push_dummy_frame): Ditto.
10124 (vax_pop_frame): Ditto.
10125 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10126 (FRAMELESS_FUNCTION_INVOCATION): Use
10127 generic_frameless_function_invocation_not.
10128 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10129 (POP_FRAME): Use vax_pop_frame.
10130
10131 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10132
10133 * vax-tdep.c (vax_store_struct_return): New function.
10134 (vax_extract_return_value): Ditto.
10135 (vax_store_return_value): Ditto.
10136 (vax_extract_struct_value_address): Ditto.
10137 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10138 vax_store_struct_return.
10139 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10140 (STORE_RETURN_VALUE): Use vax_store_return_value.
10141 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10142
10143 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10144
10145 * vax-tdep.c (vax_frame_saved_pc): New function.
10146 (vax_frame_args_address_correct): Ditto.
10147 (vax_frame_args_address): Ditto.
10148 (vax_frame_locals_address): Ditto.
10149 (vax_frame_num_args): Move code to be in proximity to
10150 other frame-related functions.
10151 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10152 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10153 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10154 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10155 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10156
10157 2002-04-22 H.J. Lu (hjl@gnu.org)
10158
10159 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10160 includedir.
10161
10162 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10163
10164 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10165 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10166 (FRAME_INIT_SAVED_REGS): New macro.
10167
10168 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10169
10170 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10171
10172 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10173
10174 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10175 where needed.
10176 (fetch_osf_core_registers): Likewise.
10177 (supply_gregset): Likewise.
10178
10179 2002-04-22 J. Brobecker <brobecker@gnat.com>
10180
10181 * symfile.h (get_section_index): Define.
10182 * symfile.c (get_section_index): New function.
10183 * mdebugread.c (SC_IS_SBSS): New macro.
10184 (SC_IS_BSS): Return true for the scBss storage class only, as
10185 the scSBss storage class refers to the .sbss section.
10186 (parse_partial_symbols): Discard the symbols which associated
10187 section does not exist.
10188 Make sure to use the .sbss section index for symbols which
10189 storage class is scBss, rather than using the .bss section index.
10190
10191 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10192
10193 * vax-tdep.c: Update copyright years.
10194 (vax_register_name): New function.
10195 (vax_register_byte): Ditto.
10196 (vax_register_raw_size): Ditto.
10197 (vax_register_virtual_size): Ditto.
10198 (vax_register_virtual_type): Ditto.
10199 * config/vax/tm-vax.h: Update copyright years.
10200 (REGISTER_NAMES): Remove.
10201 (REGISTER_NAME): Define.
10202 (REGISTER_BYTE): Use vax_register_byte.
10203 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10204 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10205 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10206
10207 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10208
10209 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10210 declaration
10211 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10212
10213 2002-04-21 David S. Miller <davem@redhat.com>
10214
10215 * arch-utils.c (generic_prologue_frameless_p): Kill
10216 SKIP_PROLOGUE_FRAMELESS_P code.
10217 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10218 references.
10219 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10220 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10221 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10222 references.
10223 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10224 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10225 (sparc_gdbarch_init): Pass it to
10226 set_gdbarch_prologue_frameless_p.
10227
10228 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10229
10230 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10231 (alphabsd-nat.o): New dependency list.
10232
10233 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10234
10235 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10236 alphafbsd-tdep.c.
10237 (alpha-linux-tdep.o): New dependency list.
10238 (alphafbsd-tdep.o): Likewise.
10239
10240 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10241
10242 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10243 to here...
10244 * alpha-tdep.c: ...from here.
10245 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10246
10247 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10248
10249 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10250 prototype from here...
10251 * alpha-tdep.h: ...to here.
10252
10253 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10254
10255 * frame.h (selected_frame_level): Document as deprecated.
10256 (frame_relative_level): Declare.
10257 * stack.c (frame_relative_level): New function.
10258 (selected_frame_level): Document as deprecated.
10259 (select_frame): Do not set the selected_frame_level.
10260
10261 * stack.c (frame_info, record_selected_frame): Update.
10262 (frame_command, current_frame_command): Update.
10263 (up_silently_base, up_command, down_silently_base): Update.
10264 (down_command): Update.
10265 * inflow.c (kill_command): Update.
10266 * tracepoint.c (finish_tfind_command): Update.
10267 * corelow.c (core_open): Update.
10268 * thread.c (info_threads_command): Update.
10269 (do_captured_thread_select): Update.
10270 * infcmd.c (finish_command): Update.
10271 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10272
10273 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10274
10275 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10276
10277 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10278
10279 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10280 type const.
10281
10282 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10283
10284 * alphafbsd-tdep.c: Update copyright years. Include
10285 alpha-tdep.h.
10286 (alphafbsd_use_struct_convention): Make static.
10287 (alphafbsd_init_abi): New function.
10288 (_initialize_alphafbsd_tdep): New function.
10289 * config/alpha/tm-fbsd.h: Update copyright years.
10290 (USE_STRUCT_CONVENTION): Remove.
10291
10292 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10293
10294 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10295 an Alpha ABI variant.
10296 (alpha_abi_handler_list): Declare.
10297 (alpha_gdbarch_register_os_abi): New function.
10298 (alpha_gdbarch_init): Give registered ABI variant handlers a
10299 chance to tweak the gdbarch once we have set up defaults.
10300 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10301
10302 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10303
10304 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10305 to standard_coerce_float_to_double.
10306 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10307
10308 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10309
10310 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10311 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10312 from gdbarch_tdep rather than a constant.
10313 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10314 the default text address for all Alpha Unix ABIs.
10315 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10316 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10317
10318 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10319
10320 * alpha-tdep.h: New file. Includes several Alpha target constants
10321 taken from...
10322 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10323 let gdbarch deal with.
10324 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10325 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10326 to dependency list.
10327 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10328 Alpha target register names.
10329 * alphabsd-nat.c: Likewise.
10330 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10331 Alpha target register names. Make serveral routines static.
10332 (alpha_get_saved_register): New function.
10333 (alpha_abi_names): New.
10334 (process_note_abi_tag_sections): New function.
10335 (get_elfosabi): New function.
10336 (alpha_gdbarch_init): New function.
10337 (alpha_dump_tdep): New function.
10338 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10339
10340 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10341
10342 * frame.c (find_saved_register): Delete #ifdef
10343 HAVE_REGISTER_WINDOWS code.
10344 * config/sparc/tm-sparc.h: Update comments.
10345 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10346
10347 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10348
10349 * i960-tdep.c (i960_find_saved_register): New function.
10350 (i960_get_saved_register): New function.
10351 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10352 (i960_get_saved_register): Declare.
10353 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10354
10355 2002-04-20 David S. Miller <davem@redhat.com>
10356
10357 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10358
10359 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10360
10361 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10362 instead of NUM_PSEUDO_REGS.
10363
10364 2002-04-20 David S. Miller <davem@redhat.com>
10365
10366 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10367 GDB_MULTI_ARCH_PARTIAL
10368 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10369 define, let tm-sp64.h do it.
10370
10371 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10372
10373 * frame.c (find_saved_register): Avoid a NULL pointer
10374 dereference and actually walk the frame list.
10375
10376 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10377
10378 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10379 sorted in most most-recent-used order. Document.
10380 * gdbarch.h, gdbarch.c: Regenerate.
10381
10382 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10383
10384 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10385 instead of ->prev.
10386 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10387 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10388 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10389 instead of ->prev.
10390
10391 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10392
10393 Fix PR gdb/471.
10394 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10395 (build_builtin_type_vec128): Ditto.
10396 (append_composite_type_field): Fix calculation of type length in
10397 union case.
10398
10399 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10400
10401 * config/djgpp/README: Update.
10402
10403 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10404 compiler warnings.
10405
10406 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10407
10408 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10409 (alpha_setup_arbitrary_frame): ...to this.
10410 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10411 for alpha_setup_arbitrary_frame.
10412
10413 2002-04-18 Andrew Cagney <cagney@redhat.com>
10414
10415 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10416 * gdbarch.h, gdbarch.c: Regenerate.
10417
10418 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10419 * target.h (memory_breakpoint_from_pc): Update declaration.
10420 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10421
10422 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10423 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10424 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10425 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10426 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10427 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10428 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10429 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10430 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10431 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10432 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10433 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10434
10435 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10436 const pointer.
10437 * monitor.c (monitor_insert_breakpoint): Ditto.
10438 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10439
10440 * config/mcore/tm-mcore.h: Update copyright.
10441 * mem-break.c: Ditto.
10442 * xstormy16-tdep.c: Ditto.
10443
10444 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10445
10446 * p-exp.y: Add precedence rule for '^' token.
10447 This removes the shift/reduce conflicts.
10448 Remove the comment concerning these shift/reduce conflicts.
10449
10450 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10451
10452 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10453 (registers_powerpc_nofp): New register set for processors
10454 without floating point unit.
10455
10456 2002-04-18 David S. Miller <davem@redhat.com>
10457
10458 * MAINTAINERS: Add myself to write-after-approval.
10459
10460 2002-04-17 Michael Snyder <msnyder@redhat.com>
10461
10462 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10463
10464 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10465
10466 * rs6000-tdep.c (frame_initial_stack_address): Use
10467 frame_register_read to read the alloca_reg.
10468
10469 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10470
10471 * frame.c (find_saved_register): Find saved registers in the next
10472 not prev frame.
10473 Fix PR gdb/365.
10474
10475 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10476
10477 * gdbarch.sh (LANG): Set to ``c''.
10478
10479 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10480
10481 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10482
10483 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10484
10485 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10486 Update copyright.
10487
10488 * hpread.c (hpread_get_lntt): Add declaration.
10489 Also fix PR gdb/391.
10490
10491 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10492
10493 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10494 * aclocal.m4, configure: Re-generate.
10495 Fix PR gdb/391.
10496
10497 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10498
10499 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10500 instead of tm_print_insn.
10501
10502 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10503
10504 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10505
10506 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10507
10508 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10509 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10510 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10511
10512 2002-04-12 Don Howard <dhoward@redhat.com>
10513
10514 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10515 max_user_call_depth.
10516 (init_cmd_lists): Initialize the new value;
10517 * cli/cli-script.c (execute_user_command): Limit the call depth of
10518 user defined commands. This avoids a core-dump when user commands
10519 are infinitly recursive.
10520
10521 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10522
10523 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10524 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10525 from tdep struct instead of DEFAULT_LR_SAVE.
10526 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10527 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10528 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10529
10530 2002-04-12 Michael Snyder <msnyder@redhat.com>
10531
10532 * Remote.c: Spelling fix.
10533 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10534 If no symbol found for "sbrk", try "_sbrk".
10535 (make_output_phdrs): Use bfd_section_name.
10536 (gcore_copy_callback): Use bfd_section_name.
10537 * eval.c: Indentation fix-ups.
10538 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10539 in case it gets applied to an address that is already
10540 in the instruction space.
10541 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10542 * symfile.c: Fix indentation, long lines.
10543 * source.c: White space fix-up.
10544
10545 2002-04-12 Andrew Cagney <cagney@redhat.com>
10546
10547 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10548 * frame.c (frame_register_read): New function. Return non-zero on
10549 success.
10550 (read_relative_register_raw_bytes_for_frame): Delete.
10551 (read_relative_register_raw_bytes): Delete.
10552 * frame.h (frame_register_read): Declare.
10553 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10554 * sh-tdep.c: Ditto.
10555 * infcmd.c (do_registers_info): Ditto.
10556 * hppa-tdep.c: Ditto.
10557 * rs6000-tdep.c: Ditto.
10558 * h8500-tdep.c: Ditto.
10559 * mips-tdep.c: Ditto.
10560 * h8300-tdep.c: Ditto.
10561 * z8k-tdep.c: Ditto.
10562
10563 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10564
10565 From Jimi X <jimix@watson.ibm.com>:
10566 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10567 64-bit SysV ABI.
10568
10569 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10570
10571 From Jimi X <jimix@watson.ibm.com>:
10572 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10573 bfd info.
10574
10575 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10576
10577 From Jimi X <jimix@watson.ibm.com>:
10578 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10579 register sets for these processor variants.
10580
10581 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * regformats/reg-ppc.dat: Support FPSCR.
10584
10585 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10586
10587 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10588 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10589 Add fpscr as an invalid/unfetchable register.
10590 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10591 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10592 (fill_fpregset): Add support for register fpscr.
10593 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10594 (fill_gregset): Account for the fact that register ``mq'' might
10595 not exist.
10596 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10597 (registers_power): Add fpscr to register set at slot 71.
10598 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10599 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10600
10601 2002-04-11 Michael Snyder <msnyder@redhat.com>
10602
10603 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10604 * configure: Regenerate.
10605 * config.in: Regenerate.
10606 * acconfig.h: Add define for _SYSCALL32.
10607 * core-sol2.c: Remove #define _SYSCALL32.
10608 * solib-legacy.c: Remove #define _SYSCALL32.
10609
10610 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10611
10612 * stack.c (select_frame): Cleanup internal error message, do not
10613 use %p.
10614
10615 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10616
10617 * stack.c (select_frame): Check that selected_frame and the
10618 specified level are as expected.
10619 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10620 Update copyright.
10621 * frame.h (struct frame_info): Add field `level'. Update
10622 copyright.
10623 Work-in-progress PR gdb/464.
10624
10625 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10626
10627 * maint.c (maint_print_section_info): Rename print_section_info.
10628 (print_bfd_section_info, print_objfile_section_info): Update.
10629 * inferior.h (struct gdbarch): Add opaque declaration.
10630 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10631 * gdbarch.h: Regenerate.
10632
10633 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10634
10635 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10636 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10637 (kernel_u_size): Added.
10638 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10639 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10640
10641 2002-04-04 Jim Ingham <jingham@apple.com>
10642
10643 * valarith.c (find_size_for_pointer_math): New function, either returns
10644 the size for a pointer's target, returns 1 for void *, or errors for
10645 incomplete types.
10646 (value_add, value_sub): use find_size_for_pointer_math.
10647
10648 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10649
10650 * linux-low.c (linux_look_up_symbols): New hook.
10651 (linux_target_ops): Add linux_look_up_symbols.
10652 * remote-utils.c (decode_address): New function.
10653 (look_up_one_symbol): New function.
10654 * server.c (handle_query): Call target look_up_symbols hook.
10655 * server.h (look_up_one_symbol): Add prototype.
10656 * target.h (struct target_ops): Add look_up_symbols hook.
10657
10658 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10659
10660 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10661 override FP_REGNUM with frame->fp. Update copyright.
10662 * parse.c (num_std_regs, std_regs): Delete.
10663 (target_map_name_to_register): Do not search std_regs. Update
10664 function description.
10665 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10666 declarations. Update copyright.
10667 Fix PR gdb/251.
10668
10669 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10670
10671 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10672 after the last symbol in a block.
10673
10674 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10675
10676 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10677 is non zero as a found symbol.
10678
10679 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10680
10681 * findvar.c: Include "builtin-regs.h".
10682 (value_of_register): Call value_of_builtin_reg when applicable.
10683 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10684 (target_map_name_to_register): Call
10685 builtin_reg_map_name_to_regnum.
10686 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10687 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10688 (builtin_regs_h): Define.
10689 (builtin-regs.o): New target.
10690 (findvar.o): Add $(builtin_regs_h).
10691 * builtin-regs.c, builtin-regs.h: New files.
10692 * std-regs.c: New file.
10693 Partial fix for PR gdb/251.
10694
10695 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10696
10697 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10698 it's no longer required.
10699
10700 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10701
10702 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10703
10704 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10705
10706 From Jimi X <jimix@watson.ibm.com>:
10707 * rs6000-tdep.c (rs6000_software_single_step): Use
10708 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10709 and size. Use target_insert_breakpoint() and
10710 target_remove_breakpoint() to insert and remove breakpoints
10711 instead of explicit memory reads and writes.
10712
10713 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10714
10715 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10716 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10717 ELF_OBJECT_FORMAT ifdef.
10718
10719 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10720
10721 From Jimi X <jimix@watson.ibm.com>:
10722 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10723
10724 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10725
10726 From Jimi X <jimix@watson.ibm.com>:
10727 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10728 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10729
10730 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10731
10732 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10733 s/asprintf/xasprintf/.
10734 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10735
10736 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10737
10738 I believe Jeff Law denies responsability for this one:
10739 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10740 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10741 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10742 Work-around for PR gdb/366.
10743
10744 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10745
10746 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10747 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10748 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10749
10750 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10751
10752 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10753 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10754 information.
10755
10756 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10757
10758 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10759 maintainer.
10760
10761 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10762
10763 * README (Reporting Bugs in GDB): Document the bug web page as the
10764 prefered way of submitting bugs.
10765 Fix PR gdb/402.
10766
10767 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10768
10769 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10770 -1. Update comment.
10771 * gdbarch.h, gdbarch.c: Re-generate.
10772
10773 2002-04-07 Andreas Schwab <schwab@suse.de>
10774
10775 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10776 buffer to regcache_collect.
10777
10778 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10779
10780 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10781 * gdbarch.c, gdbarch.h: Re-generate.
10782
10783 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10784
10785 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10786 declaration. Fix -Werror.
10787
10788 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10791 * gdbarch.c: Regenerate.
10792
10793 2002-04-05 Michael Snyder <msnyder@redhat.com>
10794
10795 * breakpoint.c (clear_command): Rewrite middle section to
10796 combine two loops with identical control conditions.
10797 Add a cleanup to eliminate a memory leak.
10798 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10799
10800 2002-04-05 H.J. Lu (hjl@gnu.org)
10801
10802 * solib-svr4.c (bkpt_names): Add "__start".
10803
10804 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10805
10806 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10807 as test for 64 bit target.
10808
10809 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10810
10811 * h8500-tdep.c (h8500_write_fp): Delete function.
10812 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10813 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10814 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10816 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10817 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10818 (s390_write_fp):
10819 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10820 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10821 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10822 (d10v_write_fp): Delete function.
10823 * inferior.h (write_fp, generic_target_write_fp): Delete
10824 declarations.
10825 * regcache.c (generic_target_write_fp): Delete function.
10826 (write_fp): Delete function.
10827 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10828 * gdbarch.h, gdbarch.c: Regenerate.
10829 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10830 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10831 (sparc64_write_fp): Delete declaration.
10832 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10833 (h8500_write_fp): Delete declaration.
10834
10835 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10836
10837 * sparc-tdep.c (sparc64_write_fp): Delete.
10838 (sparc_push_dummy_frame): Replace write_fp call with code to store
10839 the FP directly.
10840 (sparc_gdbarch_init): Do not initialize write_fp.
10841
10842 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10843
10844 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10845 clause.
10846
10847 2002-03-29 Jim Blandy <jimb@redhat.com>
10848
10849 * stack.c (get_selected_block): Add new argument `addr_in_block',
10850 used to return the exact code address we used to select the block,
10851 not just the block.
10852 * blockframe.c (get_frame_block, get_current_block): Same.
10853 * frame.h (get_frame_block, get_current_block,
10854 get_selected_block): Update declarations.
10855 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10856 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10857
10858 2002-04-05 Michael Snyder <msnyder@redhat.com>
10859
10860 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10861 warning message.
10862
10863 2002-04-05 J. Brobecker <brobecker@gnat.com>
10864
10865 * utils.c (xfullpath): New function.
10866 * defs.h (xfullpath): Add declaration.
10867 * source.c (openp): Use xfullpath in place of gdb_realpath to
10868 avoid resolving the basename part of filenames when the
10869 associated file is a symbolic link. This fixes a potential
10870 inconsistency between the filenames known to GDB and the
10871 filenames it prints in the annotations.
10872 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10873 to be able to match a filename with either the real filename, or
10874 the name of any symbolic link to this file.
10875 (lookup_partial_symtab): Ditto.
10876
10877 2002-04-04 Michael Snyder <msnyder@redhat.com>
10878
10879 * breakpoint.c: Add support for hardware breakpoints in overlays.
10880 (overlay_events_enabled): New state variable.
10881 (insert_breakpoints): Use overlay_events_enabled to decide
10882 whether to attempt to set a breakpoint at the overlay load addr.
10883 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10884 (remove_breakpoint): Use overlay_events_enabled to decide
10885 whether breakpoints need to be removed from overlay load addr.
10886 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10887 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10888 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10889 disable_overlay_breakpoints): Update overlay_events_enabled.
10890
10891 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10892
10893 * dwarf2read.c (struct function_range): New.
10894 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10895 (check_cu_functions): New.
10896 (read_file_scope): Initialize global function lists.
10897 Call dwarf_decode_line after processing children.
10898 (read_func_scope): Add to global function list.
10899 (dwarf_decode_lines): Call check_cu_functions everywhere
10900 record_line is called. Call record_line with a linenumber
10901 of 0 to mark sequence ends.
10902
10903 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10904
10905 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10906 change sync with glibc.
10907
10908 2002-04-03 Jim Blandy <jimb@redhat.com>
10909
10910 * configure.in: Call AC_C_INLINE.
10911 * configure: Regenerated.
10912
10913 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10914
10915 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10916 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10917
10918 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10919
10920 * NEWS: Mention gcore support on FreeBSD/i386.
10921
10922 * fbsd-proc.c: New file.
10923 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10924 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10925
10926 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10927 while statement.
10928
10929 2002-03-29 Jim Blandy <jimb@redhat.com>
10930
10931 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10932 unescaped newlines in string literals, but newer ones don't. So
10933 escape them.
10934
10935 2002-03-26 Michael Snyder <msnyder@redhat.com>
10936 Andrew Cagney <cagney@redhat.com>
10937
10938 * cli/cli-dump.c: New file. Dump memory to file,
10939 restore file to memory.
10940 * cli/cli-dump.h: New file.
10941 * Makefile.in: Add rules, dependencies for cli-dump.o.
10942 * NEWS: Mention new commands.
10943
10944 2002-03-28 Michael Snyder <msnyder@redhat.com>
10945
10946 * symfile.c (symbol_file_add): Move test for null symbols to later.
10947
10948 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10949
10950 From veksler at il.ibm.com:
10951 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10952 the xstrduped original path.
10953 Fix PR gdb/417.
10954
10955 2002-03-27 Michael Snyder <msnyder@redhat.com>
10956
10957 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10958 * infcmd.c (_initialize_infcmd): Ditto.
10959 * language.c (_initialize_language): Ditto.
10960 * symfile.c (_initialize_symfile): Ditto.
10961 * top.c (_init_main): Ditto.
10962 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10963
10964 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10965
10966 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10967 vector registers handling.
10968 (skip_prologue): Handle new AltiVec instructions. Fill in new
10969 fields of frame data.
10970 (frame_get_saved_regs): Fill in information for AltiVec registers.
10971
10972 2002-03-27 Jim Blandy <jimb@redhat.com>
10973
10974 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10975 a function; leave this macro here to invoke that function.
10976 (symbol_init_mangled_name): Declaration for that function.
10977 * symtab.c (symbol_init_mangled_name): New function.
10978
10979 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10980
10981 * valarith.c: Replace strerror with safe_strerror.
10982 * tracepoint.c: Ditto.
10983 * lin-lwp.c: Ditto.
10984 * go32-nat.c: Ditto.
10985 * inflow.c: Ditto.
10986 * gnu-nat.c: Ditto.
10987
10988 2002-03-27 Andreas Schwab <schwab@suse.de>
10989
10990 * event-top.c (command_line_handler): Remove useless if.
10991
10992 2002-03-27 Andreas Jaeger <aj@suse.de>
10993
10994 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10995 comment.
10996
10997 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10998
10999 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11000 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11001 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11002 (x86_64_linux_dr_get_status, supply_gregset),
11003 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11004 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11005 (x86_64_register_info_table): Add.
11006 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11007 (x86_64_register_raw_size, x86_64_register_virtual_type),
11008 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11009 general x86_64_register_info_table.
11010 (i386_gdbarch_init): gdbarch_register_bytes is now set
11011 dynamicaly during initialization.
11012 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11013 * gdbserver/linux-x86-64-low.c: Ditto.
11014
11015 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * gdbserver/server.c (main): Call target_signal_to_host_p
11018 and target_signal_to_host on signals received from the remote.
11019 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11020 target_signal_from_host on signals sent to the remote.
11021 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11022 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11023
11024 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * signals/signals.c: Include "server.h" in gdbserver build.
11027 (target_signal_from_name): Don't use STREQ.
11028 (_initialize_signals): Likewise. Don't include function in
11029 gdbserver build.
11030
11031 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11032
11033 * signals.c: Moved to...
11034 * signals/signals.c: Here.
11035 * Makefile (signals.o): Update.
11036
11037 2002-03-26 Jeff Law (law@redhat.com)
11038
11039 * somread.c (som_symtab_read): Remove some commented out code and
11040 updated related comments. Do not set the minimal symbol table to
11041 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11042 in a dynamic executable.
11043 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11044 where we are unable to find the minimal symbol for the given
11045 PC value.
11046
11047 2002-03-25 Jeff Law (law@redhat.com)
11048
11049 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11050
11051 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11052
11053 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11054
11055 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11056
11057 * command.h: Update copyright.
11058 (struct cmd_list_element): Replace definition with opaque
11059 declaration.
11060 (enum cmd_types): Document that it will eventually be moved to
11061 cli/cli-decode.h
11062 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11063 (MALLOCED_REPLACEMENT): Delete macro.
11064 * Makefile.in (cli_decode_h): Add $(command_h).
11065 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11066 * top.c: Include "cli/cli-decode.h".
11067 * completer.c: Include "cli/cli-decode.h".
11068 * maint.c: Include "cli/cli-decode.h".
11069 * cli/cli-decode.h: Include "command.h".
11070 (enum command_class): Delete.
11071 (enum cmd_types): Comment out.
11072 (enum cmd_auto_boolean): Delete.
11073 (enum var_types): Delete.
11074
11075 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11076
11077 * cli/cli-decode.c: Include "gdb_assert.h".
11078 (add_set_or_show_cmd): New static function.
11079 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11080 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11081 all fields, such as func, from the set command.
11082
11083 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11084
11085 * MAINTAINERS (sh-elf): Change warning flag to -w.
11086
11087 2002-03-23 Andrew Cagney <cagney@redhat.com>
11088
11089 * defs.h (error): Add printf format attribute.
11090 * thread-db.c (thread_from_lwp): Fix error format string.
11091 * stack.c (parse_frame_specification): Ditto.
11092 * cli/cli-decode.c (undef_cmd_error): Ditto.
11093 * scm-lang.c (scm_lookup_name): Ditto.
11094 * tracepoint.c (trace_error): Ditto.
11095 * remote-utils.c (usage): Ditto.
11096 * remote.c (compare_sections_command): Ditto.
11097 Fix PR gdb/328.
11098
11099 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11100
11101 * gdbtypes.c (append_composite_type_field): New function.
11102 (init_composite_type): New function.
11103 * gdbtypes.h (append_composite_type_field): Declare.
11104 (init_composite_type): Ditto.
11105
11106 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11107
11108 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11109 function.
11110 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11111 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11112 structure returning convention for SYSV ABI case, but not
11113 for GNU/Linux, FreeBSD, or NetBSD.
11114
11115 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11116
11117 * symtab.h (lookup_block_symbol): Add mangled_name argument
11118 to prototype.
11119
11120 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11121 with new mangled_name argument.
11122 * linespec.c (decode_line_1): Likewise.
11123 * valops (value_of_this): Likewise.
11124 * symtab.c (lookup_transparent_type): Likewise.
11125 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11126 (lookup_symbol): If we are given a mangled name, pass it down
11127 to lookup_symbol_aux.
11128 (lookup_block_symbol): If we are given a mangled name to check
11129 against, only return symbols which match it.
11130
11131 2002-03-22 Christopher Faylor <cgf@redhat.com>
11132
11133 * win32-nat.c (child_create_inferior): Check for proper shell to use
11134 here, in case the user changes it on the fly.
11135 (_initialize_inftarg): Remove shell path considerations.
11136
11137 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11138
11139 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11140 for gdbarch_max_register_raw_size and max_register_virtual_size.
11141 Adjust copyright year.
11142
11143 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11144
11145 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11146 in a function to cover the entire beginning of the function
11147 as well if it does not already.
11148
11149 2002-03-21 Tom Rix <trix@redhat.com>
11150
11151 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11152 (rs6000_ptrace64): Renamed from ptrace64.
11153
11154 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11155
11156 * gdbserver/remote-utils.c (remote_open): Don't call
11157 getprotobyname, we're all using TCP here so just use
11158 IPPROTO_TCP.
11159 * gdbserver/gdbreplay.c (remote_open): Ditto.
11160
11161 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11162
11163 * regcache.c (_initialize_regcache): No need to call
11164 build_regcache() at this time; it gets called whenever
11165 the gdbarch changes.
11166
11167 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11168
11169 * sparc-nat.c: Include sys/param.h where possible.
11170
11171 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11172
11173 Fix PR gdb/422.
11174 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11175 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11176 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11177 complex types.
11178 * stabsread.c (rs6000_builtin_type): Likewise.
11179 (read_sun_floating_type): Likewise.
11180
11181 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11182
11183 * stabsread.c (read_member_functions): Remove skip code for duplicate
11184 constructor/destructor methods. Use standard parsing for these
11185 methods and just do not chain them to the list of methods after
11186 parsing.
11187
11188 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11189
11190 * coffread.c: Remove redundant static declarations. Replace
11191 occurrences of `PTR' with `void *'.
11192 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11193 * top.h (quit_cover): Likewise.
11194 * defs.h (catch_errors): Likewise.
11195
11196 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11197
11198 * defs.h (XMALLOC): Define.
11199 * gdb-events.sh (XMALLOC): Delete macro.
11200 * gdb-events.c, gdb-events.h: Regenerate.
11201 * gdbarch.sh (XMALLOC): Delete macro.
11202 * gdbarch.c: Regenerate.
11203 * serial.c (XMALLOC): Delete macro.
11204 * ui-file.c (XMALLOC): Ditto.
11205 * ser-unix.h (XMALLOC): Ditto.
11206 * sh-tdep.c (XMALLOC): Ditto.
11207 * ui-out.c (XMALLOC): Ditto.
11208 * utils.c (XMALLOC): Ditto.
11209 * i386-tdep.c (XMALLOC): Ditto.
11210 * gdb-events.c (XMALLOC): Ditto.
11211 * d10v-tdep.c (XMALLOC): Ditto.
11212 * cli-out.c (XMALLOC): Ditto.
11213
11214 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11215 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11216 * ui-file.c, ui-out.c: Ditto.
11217
11218 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11219
11220 * command.h (struct cmd_list_element): Add field context.
11221 (set_cmd_context, get_cmd_context): Declare.
11222 * cli/cli-decode.h: Ditto.
11223 * cli/cli-decode.c (get_cmd_context): New function.
11224 (set_cmd_context): New function.
11225 (add_cmd): Initialize context.
11226 Part of fixing PR gdb/145 and PR gdb/146.
11227
11228 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11229
11230 * cli/cli-decode.c (cmd_type): New function.
11231 * command.h (cmd_type): Declare.
11232 * infrun.c (set_schedlock_func): Call function cmd_type.
11233 * kod.c (kod_set_os): Call cmd_type.
11234 * cris-tdep.c (cris_version_update): Use function cmd_type.
11235 (cris_mode_update, cris_abi_update): Ditto.
11236
11237 * command.h: (execute_cmd_post_hook): Declare.
11238 (execute_cmd_pre_hook): Declare.
11239 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11240 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11241 functions. Execute pre/post hook while ensuring that afterwords
11242 hook_in is cleared.
11243 * top.c (execute_command): Use execute_cmd_post_hook, and
11244 execute_cmd_pre_hook to execute pre/post commands.
11245 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11246 hook_stop_stub.
11247 (hook_stop_stub): Call execute_cmd_pre_hook.
11248
11249 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11250
11251 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11252 set'' and this leads to a core dump. Move xstrdup of
11253 operating_system to after check that it is not NULL.
11254
11255 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11256
11257 * kod.c (kod_set_os): Remove unnecessary check that
11258 ``command->type'' is set_cmd.
11259
11260 * valprint.c (set_input_radix): Use input_radix.
11261 (set_output_radix): Use output_radix.
11262 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11263 isn't reverted.
11264
11265 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11266
11267 * value.h (struct value): Delete field ``substring_addr''. Change
11268 aligner fields to force_doublest_align, force_longest_align,
11269 force_core_addr_align and force_pointer_aligh.
11270
11271 * value.h (struct value): Fix typo in above change.
11272
11273 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11274
11275 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11276 to fix internal_error from ``maintenance print architecture''.
11277
11278 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11279
11280 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11281 for gcc versions after gcc-2.8.1.
11282
11283 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11284
11285 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11286 for method resolution. Restore adjustment of ``this'' pointer after
11287 calling value_struct_elt, which was accidentally removed during the
11288 HP merge.
11289
11290 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11291
11292 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11293 value_of_register.
11294 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11295 get_saved_register.
11296 * value.h (value_of_register): Update.
11297
11298 2002-03-14 Richard Henderson <rth@redhat.com>
11299
11300 * configure.in: Detect declaration for canonicalize_file_name.
11301 * utils.c (canonicalize_file_name): Declare, if needed.
11302 (gdb_realpath): Prefer realpath if available and usable.
11303 * config.in, configure: Rebuild.
11304
11305 2002-03-14 Richard Henderson <rth@redhat.com>
11306
11307 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11308 a constant array bound.
11309
11310 * MAINTAINERS: Add myself to write-after-approval.
11311
11312 2002-03-14 Michael Snyder <msnyder@redhat.com>
11313
11314 * symfile.c (syms_from_objfile): Return immediately if no syms.
11315 (symbol_file_add): Return immediately if no syms.
11316 (find_sym_fns): Return immediately if no syms.
11317
11318 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11319
11320 * gdbserver/remote-util.c (remote_open): Print remote-side's
11321 IP address when remote debugging over the network.
11322
11323 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11324
11325 * config/sparc/fbsd.mh: Fix copyright.
11326 * config/sparc/fbsd.mt: Likewise.
11327
11328 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11329
11330 * MAINTAINERS: Fix typo in name of gdb warnings option.
11331 (x86-64): Fix formating so that this can be parsed by awk.
11332
11333 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11334
11335 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11336 * defs.h: Include "gdb/signals.h".
11337 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11338
11339 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11340
11341 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11342 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11343 from x86-64-tdep.h
11344
11345 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11346 Don Howard <dhoward@redhat.com>
11347
11348 * mips-tdep.c (ST0_FR): Define.
11349 (mips2_fp_compat): New function, temporarily disabled.
11350 (mips_read_fp_register_single): New function.
11351 (mips_read_fp_register_double): New function.
11352 (mips_print_register): Use them.
11353 (do_fp_register_row): Likewise.
11354
11355 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11356
11357 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11358 approval''.
11359
11360 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11361
11362 * stabsread.c (read_member_functions): Fix is_stub test for
11363 static member functions, improve comment.
11364
11365 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11366
11367 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11368 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11369 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11370 commands that set boolean values.
11371 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11372 (arm_rdi_resume): Always initialize PC.
11373 (arm_rdi_open): Don't use rslt as a boolean.
11374 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11375 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11376 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11377 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11378
11379 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11380
11381 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11382 * configure: Rebuilt.
11383
11384 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11385
11386 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11387 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11388
11389 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11390
11391 * cli/cli-decode.c (set_cmd_completer): New function.
11392 * command.h (set_cmd_completer): Declare.
11393 * cli/cli-decode.h (set_cmd_completer): Ditto.
11394
11395 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11396 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11397 * win32-nat.c (_initialize_inftarg): Ditto.
11398 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11399 * proc-api.c (_initialize_proc_api): Ditto.
11400 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11401 * source.c (_initialize_source): Ditto.
11402 * exec.c (_initialize_exec): Ditto.
11403 * solib.c (_initialize_solib): Ditto.
11404 * top.c (init_main): Ditto.
11405 * tracepoint.c (_initialize_tracepoint): Ditto.
11406 * symfile.c (_initialize_symfile): Ditto.
11407 * printcmd.c (_initialize_printcmd): Ditto.
11408 * infcmd.c (_initialize_infcmd): Ditto.
11409 * corefile.c (_initialize_core): Ditto.
11410
11411 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11412
11413 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11414
11415 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11416
11417 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11418
11419 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11420
11421 * NEWS: Update headings, 5.2 has branched.
11422
11423 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11424
11425 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11426 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11427 (register_addr, REGISTER_RAW_SIZE): Likewise.
11428 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11429 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11430
11431 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11432
11433 * MAINTAINERS (x86-64): Add myself.
11434 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11435 changed value_ptr -> struct value *
11436
11437 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11438
11439 * configure.host (sparc64-*-freebsd): Add.
11440 * configure.tgt: Likewise.
11441 * config/sparc/fbsd.mh: New file.
11442 * config/sparc/fbsd.mt: Likewise.
11443 * config/sparc/nm-fbsd.h: Likewise.
11444 * config/sparc/tm-fbsd.h: Likewise.
11445
11446 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11447
11448 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11449 regformats/reg-s390x.dat.
11450
11451 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11452
11453 * utils.c: Add FIXME explaining true/false problem.
11454
11455 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11456
11457 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11458
11459 2002-02-28 Michael Chastain <mec@shout.net>
11460
11461 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11462
11463 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * gdbserver/linux-s390-low.c: New file.
11466 * regformats/reg-s390.dat: New file.
11467 * regformats/reg-s390x.dat: New file.
11468 * gdbserver/configure.srv: Add S/390.
11469 * gdbserver/Makefile.in: Add S/390.
11470 * configure.tgt: Enable gdbserver for S/390.
11471
11472 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11473
11474 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11475 first line of the doc string for "info dos", except at the end of
11476 the sentence, since the short help stops at the first period.
11477
11478 2002-02-28 Jason Merrill <jason@redhat.com>
11479
11480 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11481
11482 2002-02-27 Fred Fish <fnf@redhat.com>
11483
11484 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11485 comment (dumy -> dummy).
11486
11487 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11488
11489 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11490
11491 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11492
11493 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11494
11495 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11496
11497 * gdbserver/acconfig.h: New file.
11498 * gdbserver/i387-fp.c: New file.
11499 * gdbserver/i387-fp.h: New file.
11500 * gdbserver/linux-x86-64.c: New file.
11501 * regformats/reg-x86-64.dat: New file.
11502 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11503 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11504 * gdbserver/configure.in: Add support for regsets.
11505 * gdbserver/config.in: Regenerate.
11506 * gdbserver/configure: Regenerate.
11507 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11508 * gdbserver/linux-low.h: New file.
11509 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11510 for regsets.
11511 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11512 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11513 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11514 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11515 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11516 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11517 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11518 "i387-fp.h". Add PTRACE_GETREGS and friends.
11519 * gdbserver/regcache.c (supply_register): New function.
11520 (supply_register_by_name): New function.
11521 (collect_register): New function.
11522 (collect_register_by_name): New function.
11523
11524 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11525
11526 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11527 (config.status): Add configure.srv dependency.
11528 (server_h): Add config.h dependency.
11529
11530 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11531
11532 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11533 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11534 * gdbserver/configure.srv: Change i386-*-linux* to use
11535 reg-i386-linux.o.
11536
11537 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11538
11539 * x86-64-tdep.c: Re-indent. Update copyright date.
11540
11541 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11542
11543 From Michal Ludvig <mludvig@suse.cz>:
11544 * x86-64-tdep.c (value.h): Delete.
11545 (gdb_assert.h): Include.
11546 (x86_64_register_convert_to_virtual,
11547 x86_64_register_convert_to_raw ): Add check which lets only
11548 floating-point values to be converted.
11549 (value_push): Delete.
11550 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11551 (i386_gdbarch_init): Number of register_bytes fixed.
11552
11553 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11554
11555 * MAINTAINERS: Add x86-64 target.
11556
11557 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11558
11559 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11560 * osfsolib.c (solib_map_sections): Ditto.
11561 * irix5-nat.c (solib_map_sections): Ditto.
11562 * corelow.c (gdb_check_format): Ditto.
11563 * symfile.c (symfile_bfd_open): Ditto.
11564 * solib.c (solib_map_sections): Ditto.
11565 Fix PR gdb/354.
11566
11567 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11568
11569 * remote.c (_initialize_remote): By default, disable ``e'' and
11570 ``E'' step out-of-range packets.
11571
11572 2002-02-26 Andreas Schwab <schwab@suse.de>
11573
11574 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11575 m68k_linux_frame_saved_pc.
11576 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11577 in_sigtramp.
11578 (SIGCONTEXT_PC_OFFSET): Remove.
11579 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11580 m68k_linux_sigtramp_saved_pc): New functions.
11581 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11582 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11583 (UCONTEXT_PC_OFFSET): Define.
11584 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11585 non-RT and RT signal trampolines.
11586
11587 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11588
11589 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11590 (TARGET_NBPG, STACK_END_ADDR): Delete
11591 (VARIABLES_INSIDE_BLOCK): Delete.
11592
11593 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11594
11595 * utils.c (perror_with_name): Make string parameter constant.
11596 (print_sys_errmsg): Ditto.
11597 (query): Ditto.
11598 * defs.h (perror_with_name): Update.
11599 (print_sys_errmsg): Update.
11600 (query): Update.
11601
11602 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11603
11604 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11605 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11606
11607 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11608
11609 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11610 if it already matches the current architecture from the exec file.
11611 Include arch-utils.h for gdbarch_info_init prototype.
11612 * Makefile.in (rs6000-nat.o): Update dependencies.
11613
11614 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11615
11616 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11617 list of exported variables.
11618
11619 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11620
11621 * gdbserver/configure.srv: New file.
11622 * gdbserver/configure.in: Use configure.srv instead
11623 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11624 from it.
11625 * gdbserver/configure: Regenerated.
11626 * gdbserver/terminal.h: New file.
11627 * gdbserver/Makefile.in: Update for configure changes. Remove
11628 more unneeded include paths.
11629
11630 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11631
11632 From wiz at danbala:
11633 * config/sparc/tm-sp64.h: Fix grammar and typos.
11634 Fix PR gdb/287.
11635
11636 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11637
11638 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11639 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11640 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11641 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11642 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11643 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11644 * s390-tdep.c: Ditto.
11645 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11646 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11647 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11648 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11649 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11650 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11651 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11652 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11653 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11654 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11655 Fix PR gdb/378.
11656
11657 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11658
11659 * lin-thread.c: Delete file.
11660 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11661 to gdb_proc_service.h.
11662 * configure: Re-generate.
11663
11664 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11665 * serial.c (serial_open): Delete check for "ocd".
11666 Fix PR gdb/349.
11667
11668 * Makefile.in (linux-thread.o): Delete target.
11669 * linux-thread.c: Delete file.
11670
11671 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11672 renamed SH files to be consistent.
11673
11674 * symtab.c (sort_search_symbols): Use xfree.
11675
11676 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11677
11678 * arm-linux-tdep.c (arm_linux_init_abi): Register
11679 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11680 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11681 definition with undef, since we don't want the sysvr4 definition.
11682 (SKIP_TRAMPOLINE_CODE): Likewise.
11683
11684 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11685
11686 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11687
11688 * configure.in: (AC_CHECK_FUNCS) Added test for
11689 canonicalize_file_name Regenerated.
11690 * config.in, configure: Regenerated.
11691 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11692 defined use canonicalize_file_name.
11693
11694 2002-02-23 Michael Chastain <mec@shout.net>
11695
11696 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11697
11698 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11699
11700 * README: Remove references to cygnus.com.
11701 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11702 dot com'' form. Remove references to cygnus.com and sourceware.
11703
11704 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11705
11706 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11707 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11708 1003.1-2001 no longer allows "head -1".
11709 * gdb/Makefile.in (version.c): Likewise.
11710 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11711 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11712 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11713
11714 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11715
11716 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11717 * command.h (cmd_cfunc_eq): Declare.
11718 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11719
11720 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11721 ``struct cmd_list_element *''.
11722 * cli/cli-cmds.c (is_complete_command): Update. Use
11723 cmd_cfunc_eq.
11724 * top.c (execute_command): Pass the command to
11725 is_complete_command.
11726 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11727
11728 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11729
11730 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11731 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11732 architecture defines.
11733 * s390-tdep.c (s390_gdbarch_init): Likewise.
11734
11735 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11736
11737 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11738 (arm_linux_push_arguments): Likewise.
11739 (arm_linux_init_abi): Register them. Also register linux-specific
11740 call_dummy_words.
11741 (find_minsym_and_objfile): Use strcmp, not STREQ.
11742 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11743 (arm_linux_call_dummy_words): Delete declaration.
11744 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11745 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11746 declarations.
11747 (LOWEST_PC): Delete.
11748
11749 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11750
11751 * maint.c (print_section_info): Do not prepend `0x' to filepos
11752 output, it will be handled by local_hex_string_custom.
11753
11754 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11755
11756 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11757 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11758 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11759
11760 2002-02-22 Jim Blandy <jimb@redhat.com>
11761
11762 Indicate that the bcache functions don't change the strings
11763 they're passed.
11764 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11765 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11766
11767 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11768
11769 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11770
11771 2002-02-21 Christopher Faylor <cgf@redhat.com>
11772
11773 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11774 find the complete path to a loaded DLL.
11775
11776 2002-02-21 Fred Fish <fnf@redhat.com>
11777
11778 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11779 that marks the end of the range of a function, enter a line number
11780 entry that has a line number of zero and a PC offset that matches
11781 the end of the function. This starts a range of PC's for which no
11782 line number information is known.
11783 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11784 PC's for which no line number info is found (line number is zero)
11785 then we didn't find any valid line information.
11786 * symtab.h: Document use of zero line number entry.
11787
11788 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11789
11790 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11791 (have_ptrace_getvrregs): Define for run time checks.
11792 (gdb_vrregset_t): New type for Altivec register handling.
11793 (fetch_register, store_register): Fetch/store altivec register
11794 when needed.
11795 (fetch_altivec_register, store_altivec_register): New functions.
11796 (supply_vrregset, fill_vrregset): New functions.
11797 (fetch_altivec_registers, store_altivec_registers): New functions.
11798 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11799 registers as well.
11800
11801 2002-02-21 Jiri Smid <smid@suse.cz>
11802
11803 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11804
11805 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11806
11807 * Makefile.in (armnbsd-nat.o): Update dependencies.
11808 * armnbsd-nat.c (supply_gregset): New function. Common code to
11809 supply the integer register set.
11810 (supply_fparegset): New function. Similar for FPA registers.
11811 (fetch_regs, fetch_fp_regs): Use them.
11812 (fetch_core_registers): Likewise.
11813 (fetch_elfcore_registers): New function.
11814 (arm_netbsd_elfcore_fns): New core-file type specification.
11815 (_initialize_arm_netbsd_nat): Register it.
11816
11817 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11818
11819 * armnbsd-nat.c: Include gdbcore.h.
11820 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11821 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11822 'void' to declaration, to shut up ARI.
11823 (fetch_core_registers): Make static. Rewrite using supply_register.
11824 (arm_netbsd_core_fns): New core-file type specification.
11825 (_initialize_arm_netbsd_nat): New function.
11826
11827 2002-02-21 Christopher Faylor <cgf@redhat.com>
11828
11829 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11830 value.
11831
11832 2002-02-20 Christopher Faylor <cgf@redhat.com>
11833
11834 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11835 fails.
11836
11837 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11838
11839 * jv-exp.y (parse_number): Change type of implicit longs
11840 to builtin_type_uint64.
11841
11842 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11843
11844 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11845 to be an integer instead of a `union wait'.
11846
11847 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11848
11849 * mips-linux-nat.c: Call the operating system GNU/Linux.
11850 * mips-linux-tdep.c: Likewise.
11851 * mips-tdep.c: Likewise.
11852
11853 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11854
11855 Fix PR gdb/265.
11856 * jv-exp.y (parse_number): Handle 64-bit integers.
11857
11858 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11859
11860 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11861 AC_STDC_HEADERS to AC_HEADER_STDC.
11862 * gdbserver/configure: Regenerated.
11863
11864 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11865
11866 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11867 is defined.
11868 * sparc-tdep.c (get_longjmp_target): Likewise.
11869
11870 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11871
11872 * News: Add news about ARM and Multi-arch. Mention the new target
11873 arm*-*-netbsd*.
11874
11875 2002-02-19 Jim Blandy <jimb@redhat.com>
11876
11877 * stabsread.c (error_type_complaint): Improve error message.
11878
11879 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11880
11881 * gdbserver/README: Update documentation.
11882 * gdbserver/configure.in: Update configury to match documentation.
11883 * gdbserver/Makefile.in: Likewise.
11884 * gdbserver/configure: Regenerated.
11885 * gdbserver/aclocal.m4: New file, generated by aclocal.
11886 * gdbserver/config.in: New file, generated by autoheader.
11887
11888 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11889
11890 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11891 armnbsd-nat.c.
11892
11893 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11894
11895 * arm-tdep.h (enum arm_float_model): New enum.
11896 (struct gdbarch_tdep): Add fp_model.
11897 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11898 up floating-point conversions until we know the floating-point model
11899 in use by the inferior. Don't complain about being unable to
11900 determine the ABI of the inferior when we don't have one.
11901 (arm_extract_return_value): Support different floating-point models.
11902 (arm_store_return_value): Likewise.
11903 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11904 ARM_FLOAT_SOFT.
11905 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11906
11907 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11908
11909 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11910 of ``current_gdbarch''.
11911
11912 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11913
11914 * armnbsd-nat.c : ANSIfy all function declarations.
11915 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11916 (fetch_inferior_registers): Re-implement in terms of above.
11917 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11918 (store_inferior_registers): Re-implement in terms of above.
11919
11920 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11921
11922 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11923 kernel.
11924 * arm-linux-tdep.c: Likewise.
11925 * config/arm/tm-linux.h: Likewise.
11926
11927 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11928
11929 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11930 * config/arm/nbsd.mt (TM_FILE): Delete.
11931 * config/arm/tm-nbsd.h: Delete.
11932
11933 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11934
11935 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11936 Initialize CALL_DUMMY_LENGTH.
11937
11938 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11939
11940 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11941 function.
11942 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11943 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11944 defines one thing and that is incorrect for this port.
11945 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11946
11947 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11948
11949 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11950
11951 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11952
11953 * win32-nat.c (display_selector): New function. Displays information
11954 about the information returned by GetThreadSelectorEntry API function.
11955 (display_selectors): New function. Displays the infomation of
11956 the selector given as argument, or of CS, DS ans FS selectors
11957 if no argument is given.
11958 ( _initialize_inftarg): Add "w32" as info prefix command.
11959 Add "info w32 selector" as command calling display_selectors.
11960
11961 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11962
11963 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11964 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11965 if not defined.
11966
11967 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11968
11969 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11970
11971 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11972
11973 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11974 (arm_fix_call_dummy): Call it.
11975 (arm_call_dummy_breakpoint_offset): Delete.
11976 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11977 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11978
11979 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11980
11981 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11982 Default to func_frame_chain_valid.
11983 * gdbarch.h, gdbarch.c: Re-generate.
11984 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11985
11986 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11987
11988 * ppc-linux-nat.c: Update copyright.
11989 (fetch_register, store_register): Add tid parameter, don't compute
11990 tid here.
11991 (fetch_ppc_registers, store_ppc_registers): Add tid
11992 parameter. Pass it along to callees.
11993 (fetch_inferior_registers, store_inferior_registers): Compute tid
11994 here, and pass it to calleed functions.
11995 (fill_gregset, supply_fpregset): Clean up formatting.
11996
11997 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11998
11999 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12000 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12001
12002 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12003
12004 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12005 * gdbarch.c gdbarch.h: Regenerate.
12006 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12007 function.
12008 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12009 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12010 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12011
12012 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12013 * arm-tdep.c (arm_get_longjmp_target): New function.
12014 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12015 this to a positive value register arm_get_longjmp_target as the
12016 longjmp handler.
12017 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12018 (arm_linux_init_abi): Set up longjmp description in tdep.
12019 * armnbsd-nat.c (get_longjmp_target): Delete.
12020 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12021 description in tdep.
12022 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12023 (get_longjmp_target): Delete declaration.
12024 (GET_LONGJMP_TARGET): Delete.
12025 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12026 (GET_LONGJMP_TARGET): Delete.
12027
12028 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12029
12030 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12031 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12032 of ``current_gdbarch''.
12033
12034 2002-02-17 Tom Tromey <tromey@redhat.com>
12035
12036 * cli/cli-cmds.c (compare_strings): New function.
12037 (complete_command): Only print each unique item once.
12038 * completer.h (complete_line): Declare.
12039 * completer.c (complete_line): New function.
12040 (line_completion_function): Use it.
12041
12042 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12043
12044 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12045 * gdbarch.h, gdbarch.c: Re-generate.
12046
12047 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12050
12051 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12052
12053 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12054 * valops.c (value_arg_coerce): Don't take the address of a reference
12055 to convert an argument to a reference.
12056
12057 2002-02-15 Christopher Faylor <cgf@redhat.com>
12058
12059 * win32-nat.c (get_image_name): New function.
12060 (handle_load_dll): Use get_image_name function.
12061 (get_child_debug_event): Avoid registering debug events until possibly
12062 execed process is started.
12063 (child_create_inferior): Allow invocation via shell so that command
12064 line redirection, etc. works ok.
12065 (_initialize_inftarg): Add new command: "set shell" to control whether
12066 a shell is used to start a process.
12067
12068 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12069
12070 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12071 instead of find_register_by_number.
12072 (cannot_store_register): Likewise.
12073
12074 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12075
12076 * dwarf2read.c: Replace fprintf (stderr, ...) by
12077 fprintf_unfiltered (gdb_stderr, ...).
12078
12079 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12080
12081 * gdbserver/gdbserver.1: Document --attach.
12082
12083 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12084
12085 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12086 descriptions.
12087 * arm-tdep.c (arm_default_arm_le_breakpoint)
12088 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12089 (arm_default_thumb_be_breakpoint): New. Initialize them from
12090 traditional breakpoint defines.
12091 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12092 (arm_gdbarch_init): Initialize new breakpoint variables.
12093 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12094 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12095 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12096 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12097 code out to ...
12098 (arm_netbsd_init_abi_common): ... here; new function.
12099 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12100 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12101 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12102 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12103
12104 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12105
12106 * arm-tdep.h (enum arm_abi): New enum.
12107 (struct gdbarch_tdep): New structure.
12108 (LOWEST_PC): Provide a default.
12109 (arm_gdbarch_register_os_abi): Declare new function.
12110 * arm-tdep.c (arm_abi_names): New array.
12111 (process_note_abi_tag_sections): New function.
12112 (get_elfosabi): New function.
12113 (arm_gdbarch_register_os_abi): New function.
12114 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12115 support for that ABI has been built in, then call the appropriate
12116 configuration routine. Use gdbarch_num_regs() to get the number
12117 of registers.
12118 (arm_dump_tdep): New function.
12119 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12120 place-holder functions.
12121 (_initialize_arm_tdep): Register them.
12122 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12123
12124 * armnbsd-tdep.c: New file.
12125 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12126 * config/arm/nbsd.mt (TDEPFILES): Add it.
12127 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12128
12129 * armnbsd-nat.c: Include regcache.h.
12130 * Makefile.in (armnbsd-nat.o): Update dependency list.
12131
12132 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12133
12134 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * gdbserver/Makefile.in: Fix typos in target rules.
12137
12138 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12139
12140 Fix part of PR gdb/267.
12141 * linespec.c (find_methods): Handle constructors specially for now.
12142
12143 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12144
12145 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12146 handling.
12147 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12148 standard_coerce_float_to_double().
12149
12150 2002-02-14 Christopher Faylor <cgf@redhat.com>
12151
12152 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12153 GDBINIT_FILENAME.
12154
12155 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12156
12157 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12158 find_variant_by_name, because it confuses the multiarch
12159 framework. Return NULL if there isn't an architecture with the
12160 user supplied name, instead of forcing a different one without
12161 recording the change with the multiarch machinery.
12162 (find_variant_by_name): Delete.
12163
12164 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12165
12166 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12167 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12168
12169 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12170
12171 * stack.c (print_frame_info_base): When calling
12172 print_frame_info_listing_hook, set current_source_symtab.
12173
12174 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12175
12176 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12177 and remove unused $(INCLUDE_DIR).
12178 Add regcache.c to OBS.
12179 Add generated register protocol files to clean target.
12180 Update dependencies for new objects, obsolete old target code.
12181
12182 * gdbserver/linux-low.c: Remove all platform-specific code to
12183 new files. Remove various dead code. Update to use regcache
12184 functionality.
12185 * gdbserver/remote-utils.c (fromhex): Add return statement
12186 to quiet warning.
12187 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12188 constant.
12189 (input_interrupt): Add integer parameter to match prototype
12190 of a signal handler.
12191 (outreg): Use register_data ().
12192 (prepare_resume_reply): Use gdbserver_expedite_regs.
12193 * gdbserver/server.c (main): Dynamically allocate own_buf because
12194 PBUFSIZ is no longer constant. Use registers_to_string () and
12195 registers_from_string ().
12196 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12197 for error (), fatal (), and warning (). Update definition of
12198 PBUFSIZ to use regcache functionality. Add include guard.
12199 * gdbserver/utils.c (fatal): Add missing ``const''.
12200 (warning): New function.
12201
12202 * regformats/regdat.sh: Include "regcache.h" in generated files.
12203 Provide init_registers () function.
12204 * regformats/regdef.h: Add prototype for set_register_cache ().
12205 Add include guard.
12206
12207 * gdbserver/linux-arm-low.c: New file.
12208 * gdbserver/linux-i386-low.c: New file.
12209 * gdbserver/linux-ia64-low.c: New file.
12210 * gdbserver/linux-m68k-low.c: New file.
12211 * gdbserver/linux-mips-low.c: New file.
12212 * gdbserver/linux-ppc-low.c: New file.
12213 * gdbserver/linux-sh-low.c: New file.
12214
12215 * gdbserver/regcache.c: New file.
12216 * gdbserver/regcache.h: New file.
12217
12218 * gdbserver/low-linux.c: Removed obsolete file.
12219
12220 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12221
12222 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12223 * config/i386/linux.mt: Likewise.
12224 * config/ia64/linux.mt: Likewise.
12225 * config/m68k/linux.mh: Likewise.
12226 * config/powerpc/linux.mh: Likewise.
12227 * config/mips/linux.mt: Likewise.
12228
12229 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12230
12231 * config/i386/i386lynx.mh: Mark gdbserver variables
12232 as (currently) obsolete for this target.
12233 * config/i386/nbsd.mt: Likewise.
12234 * config/i386/nbsdelf.mt: Likewise.
12235 * config/m32r/m32r.mt: Likewise.
12236 * config/m68k/m68klynx.mh: Likewise.
12237 * config/m68k/nbsd.mt: Likewise.
12238 * config/m68k/sun3os4.mh: Likewise.
12239 * config/mips/vr5000.mt: Likewise.
12240 * config/ns32k/nbsd.mt: Likewise.
12241 * config/pa/hppabsd.mh: Likewise.
12242 * config/pa/hppaosf.mh: Likewise.
12243 * config/powerpc/nbsd.mt: Likewise.
12244 * config/rs6000/rs6000lynx.mh: Likewise.
12245 * config/s390/s390.mt: Likewise.
12246 * config/s390/s390x.mt: Likewise.
12247 * config/sparc/sparclynx.mh: Likewise.
12248 * config/sparc/sun4os4.mh: Likewise.
12249 * config/i386/x86-64linux.mt: Likewise.
12250 * config/sparc/linux.mh: Likewise.
12251
12252 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12253
12254 * configure.tgt: Configure gdbserver only for known working
12255 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12256 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12257 SUBDIRS if it is configured. Update comment for ${nativefile}.
12258 * configure: Regenerated.
12259
12260 2002-02-13 Michael Snyder <msnyder@redhat.com>
12261
12262 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12263
12264 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12265 (default_gcore_mach): Just return 0, work around a problem in bfd.
12266 (default_gcore_target): OK to return NULL if exec_bfd is null.
12267 (make_mem_sec): Use a cast, avoid a warning.
12268
12269 * procfs.c (find_memory_regions_callback): Use a cast instead of
12270 calling host_pointer_to_address (which complains if
12271 sizeof (host pointer) != sizeof (target pointer)).
12272 (procfs_make_note_section): Avoid overflow in psargs string.
12273
12274 * procfs.c (procfs_make_note_section): Make the default
12275 implementation return an error.
12276
12277 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12278
12279 * procfs.c (procfs_make_note_section): Provide a default definition
12280 (for alpha-dec-osf4.0f). Fix typos.
12281
12282 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12283
12284 * linux-proc.c: Add include of regcache.h.
12285 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12286
12287 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12288
12289 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12290 * memattr.c (create_mem_region): Disallow useless empty region.
12291 Regions are half-open intervals, so allow [A..B) [B..C) as
12292 non-overlapping.
12293
12294 2002-02-13 Michael Chastain <mec@shout.net>
12295
12296 * defs.h: Kill CONST_PTR.
12297 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12298 * c-lang.c (c_builtin_types): Likewise.
12299 * ch-lang.c (ch_builtin_types): Likewise.
12300 * f-lang.c (f_builtin_types): Likewise.
12301 * language.c (unknown_builtin_types): Likewise.
12302 * m2-lang.c (m2_builtin_types): Likewise.
12303 * p-lang.c (pascal_builtin_types): Likewise.
12304 * scm-lang.c (c_builtin_types): Likewise.
12305
12306 2002-02-13 Keith Seitz <keiths@redhat.com>
12307
12308 * arm-tdep.h (arm_get_next_pc): Add declaration.
12309
12310 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12311
12312 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12313 with other related struct-returning functions.
12314 (arm_extract_struct_value_address): New function.
12315 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12316 initialize float_format, double_format and long_double_format as
12317 appropriate to the endianness of the target.
12318 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12319 (arm_use_struct_convention): Delete declaration.
12320 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12321
12322 2002-02-13 Keith Seitz <keiths@redhat.com>
12323
12324 * defs.h (core_addr_to_string_nz): New function.
12325
12326 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12327
12328 Apply missing bits of 2002-01-15 patch.
12329 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12330 (fill_fpregset): Use i387_fill_fsave.
12331
12332 2002-02-12 Keith Seitz <keiths@redhat.com>
12333
12334 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12335 (core_addr_to_string_nz): New function.
12336
12337 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12338
12339 * arm-linux-nat.c: Really include arm-tdep.h.
12340 * config/arm/tm-linux.h (struct type, struct value): Declare.
12341
12342 2002-02-11 Michael Snyder <msnyder@redhat.com>
12343
12344 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12345 (gcore section): Ifdef for Solaris and Unixware only.
12346 (procfs_do_thread_registers): Unixware needs one lwpstatus
12347 per thread (not one prstatus or pstatus).
12348 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12349 not over all gdb threads. For unixware, call elfcore_write_pstatus
12350 once before iterating over threads.
12351
12352 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12353
12354 * arm-tdep.h: New file.
12355 * arm-tdep.c: Include arm-tdep.h.
12356 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12357 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12358 (arm_print_float_info, arm_register_type, convert_to_extended)
12359 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12360 (arm_extract_return_value, arm_register_name): Make static.
12361 (arm_software_single_step): Similarly. Fix types in declaration.
12362 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12363 (arm_store_return_value, arm_store_struct_return): New functions.
12364 (arm_gdbarch_init): Register the above functions. Also register
12365 call_dummy_start_offset, sizeof_call_dummy_words,
12366 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12367 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12368 max_register_virtual_size, register_size. Set up
12369 prologue_cache.saved_regs here, rather than ...
12370 (_initialize_arm_tdep): ... here.
12371 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12372 declarations.
12373 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12374 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12375 (arm_print_float_info, arm_register_type, convert_to_extended)
12376 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12377 (arm_extract_return_value, arm_register_name): Delete declarations.
12378 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12379 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12380 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12381 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12382 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12383 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12384 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12385 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12386 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12387 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12388 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12389 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12390 interface.
12391 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12392 * remote-rdi.c remote-rdp.c: Likewise.
12393 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12394 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12395 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12396 definition.
12397
12398 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12399 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12400 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12401 from non-ARM_ prefixed definitions.
12402 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12403 all uses of above.
12404 * remote-rdi.c remote-rdp.c: Likewise.
12405 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12406
12407 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12408
12409 * arm-tdep.c (arm_frameless_function_invocation)
12410 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12411 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12412 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12413 (arm_pop_frame, arm_get_next_pc): Make static.
12414 (arm_gdbarch_init): Register above in gdbarch structure.
12415 (arm_read_fp): Renamed from arm_target_read_fp.
12416 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12417 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12418 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12419 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12420 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12421 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12422 (arm_pc_is_thumb_dummy): Delete declarations.
12423 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12424 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12425 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12426 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12427
12428 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12429
12430 * symtab.c (compare_search_syms): New function.
12431 (sort_search_symbols): New function.
12432 (search_symbols): Sort symbols after searching rather than
12433 before.
12434
12435 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12436
12437 * NEWS: Linux -> GNU/Linux.
12438
12439 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12440
12441 * gdbarch.sh: For for level one methods, disallow a definition
12442 when partially multi-arched. Add comments explaining rationale.
12443 * gdbarch.h: Re-generate.
12444
12445 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12446
12447 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12448 multi-arch partial.
12449
12450 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12451
12452 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12453 field. Use diff -u.
12454 * gdbarch.c: Re-generate.
12455
12456 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12457
12458 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12459 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12460 partial.
12461
12462 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12463
12464 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12465 multi-arch partial.
12466 (PUSH_ARGUMENTS): Switch to using predefault.
12467 * gdbarch.c: Regenerate.
12468
12469 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12470
12471 * valops.c (PUSH_ARGUMENTS): Delete definition.
12472 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12473 partial. Default to default_push_arguments.
12474 * gdbarch.h, gdbarch.c: Regenerate.
12475
12476 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12477
12478 * defs.h (throw_exception): Rename return_to_top_level. Update
12479 comments.
12480 * utils.c (error_stream, internal_verror, quit): Ditto.
12481 * top.c (throw_exception, catcher): Ditto.
12482 * sparclet-rom.c (sparclet_load): Ditto.
12483 * remote.c (interrupt_query, minitelnet): Ditto.
12484 * remote-sds.c (interrupt_query): Ditto.
12485 * remote-mips.c (mips_error, mips_kill): Ditto.
12486 * ocd.c (interrupt_query): Ditto.
12487 * monitor.c (monitor_interrupt_query): Ditto.
12488 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12489 * target.h: Update comment.
12490
12491 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12492
12493 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12494
12495 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12496 default_double_format.
12497 * gdbarch.h, gdbarch.c: Re-generate.
12498 * findvar.c (floatformat_unknown): Delete variable definition.
12499 * doublest.h (floatformat_unknown): Delete variable declaration.
12500
12501 2002-02-09 Jim Blandy <jimb@redhat.com>
12502
12503 * stabsread.c (read_type): Add code to parse Sun's syntax for
12504 prototyped function types.
12505
12506 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12507
12508 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12509 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12510
12511 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12512
12513 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12514 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12515 now _initialize_xcoffsolib gets called again and overrides the
12516 commands from solib.c in a native configuration.
12517
12518 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12519
12520 * doublest.c (store_typed_floating): Don't try to return a value.
12521 Fixes PR gdb/290.
12522
12523 2002-02-08 Jim Blandy <jimb@redhat.com>
12524
12525 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12526 is prototyped and has no arguments, print its argument list as
12527 `(void)'.
12528
12529 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12530
12531 * MAINTAINERS (write-after-approval): Add myself.
12532 (paper-trail): I've escaped!
12533
12534 2002-02-08 Christopher Faylor <cgf@redhat.com>
12535
12536 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12537 changes.
12538 (_initialize_check_for_gdb_ini): Ditto.
12539
12540 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12541
12542 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12543 xaprintf -> xasprintf.
12544
12545 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12546
12547 * win32-nat.c: Remove use of printf and sprintf functions.
12548
12549 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12550
12551 * arm-tdep.c (arm_frame_chain_valid): Make static.
12552 (arm_push_arguments): Likewise.
12553 (arm_gdbarch_init): New function.
12554 (_initialize_arm_tdep): Call it.
12555 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12556 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12557 (FRAME_CHAIN_VALID): Delete.
12558 (arm_frame_chain_valid): Delete declaration.
12559 (PUSH_ARGUMENTS): Delete.
12560 (arm_push_arguments): Delete declaration.
12561 (CALL_DUMMY_P): Delete.
12562
12563 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12564 Corinna Vinschen <vinschen@redhat.com>
12565
12566 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12567 on builtin float types.
12568
12569 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12570
12571 * utils.c: Include <curses.h> before "bfd.h".
12572 * tui/tui-hooks.c: Likewise.
12573 * tui/tui.c: Likewise.
12574 * tui/tuiCommand.c: Likewise.
12575 * tui/tuiData.c: Likewise.
12576 * tui/tuiDataWin.c: Likewise.
12577 * tui/tuiDisassem.c: Likewise.
12578 * tui/tuiGeneralWin.c: Likewise.
12579 * tui/tuiIO.c: Likewise.
12580 * tui/tuiLayout.c: Likewise.
12581 * tui/tuiRegs.c: Likewise.
12582 * tui/tuiSource.c: Likewise.
12583 * tui/tuiSourceWin.c: Likewise.
12584 * tui/tuiStack.c: Likewise.
12585 * tui/tuiWin.c: Likewise.
12586
12587 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12588
12589 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12590 to include space for pseudoregs as well. Update loops accordingly.
12591 (sh_fp_frame_init_saved_regs): Ditto.
12592 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12593
12594 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12595
12596 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12597 Add Richard Earnshaw to Arm maintainers.
12598
12599 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12600
12601 * defs.h (warning_begin): Delete declaration.
12602
12603 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12604 Delete macro.
12605
12606 2002-02-07 Michael Snyder <msnyder@redhat.com>
12607
12608 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12609 Logic bug, remove misplaced else.
12610
12611 2002-02-07 Klee Dienes <klee@apple.com>
12612
12613 * fork-inferior.c (fork_inferior): Add '!' to the list of
12614 characters that need to be quoted when building a string for the
12615 shell. Quote '!' specifically with a backslash, since CSH chokes
12616 when trying to evaluate "str!str".
12617
12618 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12619
12620 * rdi-share/host.h: Only provide a typedef for bool if it is not
12621 defined.
12622
12623 2002-02-04 Michael Snyder <msnyder@redhat.com>
12624
12625 * breakpoint.h (enum bptype): Add new overlay event bp type.
12626 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12627
12628 * breakpoint.c (create_internal_breakpoint): New function.
12629 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12630 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12631 (create_thread_event_breakpoint): Ditto.
12632 (create_solib_event_breakpoint): Ditto.
12633 (create_overlay_event_breakpoint): New function.
12634 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12635 (update_breakpoints_after_exec): Delete and re-initialize
12636 overlay event breakpoints after an exec. Add FIXME comment
12637 about longjmp breakpoint.
12638 (print_it_typical): Ignore overlay event breakpoints.
12639 (print_one_breakpoint): Ditto.
12640 (mention): Ditto.
12641 (bpstat_what): Do not stop for overlay event breakpoints.
12642 (delete_breakpoint): Don't delete overlay event breakpoints.
12643 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12644 (breakpoint_re_set): Re-create overlay event breakpoint.
12645
12646 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12647 (overlay_manual_command): Disable overlay breakpoints.
12648 (overlay_off_command): Disable overlay breakpoints.
12649
12650 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12651
12652 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12653 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12654 to here from config/tm-arm.h.
12655 (coff_sym_is_thumb): Make static.
12656 (arm_elf_make_msymbol_special): New function.
12657 (arm_coff_make_msymbol_special): New function.
12658 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12659 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12660 (coff_sym_is_thumb): Delete declaration.
12661 (arm_elf_make_msymbol_special): Declare.
12662 (arm_coff_make_msymbol_special): Declare.
12663 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12664 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12665
12666 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12667
12668 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12669
12670 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12671
12672 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12673 * gdbarch.c gdbarch.h: Regenerate.
12674 * arch-utils.c (default_print_float_info): New function.
12675 * arch-utils.h (default_print_float_info): Prototype it.
12676 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12677 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12678 (PRINT_FLOAT_INFO): Document it.
12679
12680 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12681 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12682 (PRINT_FLOAT_INFO): Define.
12683
12684 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12685
12686 * win32-nat.c (_initialize_check_for_gdb_ini):
12687 Add typecast to sprintf argument to suppress a warning.
12688
12689 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12690
12691 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12692 to allow easier handling of pass state.
12693 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12694 that gives exception name and address.
12695 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12696 and set last_sig value to ourstatus->value.sig. Some missing
12697 exceptions added.
12698 (child_continue): Correctly report continue_status.
12699 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12700 TARGET_SIGNAL_0 (new default value).
12701 (child_resume): consider sig argument passed to decide if
12702 the exception should be passed to debuggee or not.
12703
12704 2002-02-05 Michael Snyder <msnyder@redhat.com>
12705
12706 * regcache.c (fetch_register): Call target_fetch_register
12707 only if we don't call FETCH_PSEUDO_REGISTER.
12708 (store_register): Call target_store_register only if we
12709 don't call STORE_PSEUDO_REGISTER.
12710
12711 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12712
12713 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12714 ELF_MAKE_MSYMBOL_SPECIAL.
12715 * gdbarch.c, gdbarch.h: Regenerate.
12716 * arch-utils.c (default_make_msymbol_special): New function.
12717 * arch-utils.h (default_make_msymbol_special): Export.
12718 * elfread.c (elf_symtab_read): Compile use of
12719 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12720 multiarched.
12721 * coffread.c (coff_symtab_read): Ditto, for
12722 COFF_MAKE_MSYMBOL_SPECIAL.
12723
12724 2002-02-05 Jim Blandy <jimb@redhat.com>
12725
12726 * solib-svr4.c (svr4_truncate_ptr): New function.
12727 (svr4_relocate_section_addresses): Do the address arithmetic with
12728 the appropriate truncation for target addresses, even when
12729 CORE_ADDR is larger than a target address.
12730
12731 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12732
12733 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12734 to (int *).
12735
12736 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12737
12738 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12739 code.
12740
12741 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12742
12743 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12744
12745 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12746
12747 * gdbserver/linux-low.c: Remove unused include files.
12748
12749 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12750
12751 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12752 (read_inferior_memory): Use it.
12753 (write_inferior_memory): Likewise.
12754
12755 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12756
12757 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12758 grubbing through sys_errlist.
12759
12760 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12761
12762 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12763
12764 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12765 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12766
12767 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12768
12769 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12770 (do_sfunc, set_cmd_sfunc): New functions.
12771
12772 * command.h (struct cmd_list_element): Add field func.
12773 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12774 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12775 * cli/cli-decode.h: Ditto.
12776
12777 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12778 (help_all, help_cmd_list): Ditto.
12779 (find_cmd, complete_on_cmdlist): Ditto.
12780 * top.c (execute_command): Ditto.
12781
12782 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12783 function.sfunc.
12784
12785 * infcmd.c (notice_args_read): Fix function signature.
12786
12787 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12788 * cli/cli-decode.c (add_set_cmd): Ditto.
12789 * utils.c (initialize_utils): Ditto.
12790 * maint.c (_initialize_maint_cmds): Ditto.
12791 * infrun.c (_initialize_infrun): Ditto.
12792 * demangle.c (_initialize_demangler): Ditto.
12793 * remote.c (add_packet_config_cmd): Ditto.
12794 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12795 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12796 * proc-api.c (_initialize_proc_api): Ditto.
12797 * kod.c (_initialize_kod): Ditto.
12798 * valprint.c (_initialize_valprint): Ditto.
12799 * top.c (init_main): Ditto.
12800 * infcmd.c (_initialize_infcmd): Ditto.
12801 * corefile.c (_initialize_core): Ditto.
12802 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12803 * arch-utils.c (initialize_current_architecture): Ditto.
12804 (_initialize_gdbarch_utils): Ditto.
12805 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12806
12807 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12808 * wince.c (_initialize_inftarg): Ditto.
12809 * symfile.c (_initialize_symfile): Ditto.
12810 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12811 * language.c (_initialize_language): Ditto.
12812 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12813
12814 2002-02-04 Michael Snyder <msnyder@redhat.com>
12815
12816 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12817
12818 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12819
12820 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12821 Add rules for building the register data files.
12822
12823 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12824
12825 * regformats/regdat.sh: Add braces to the definition of
12826 expedite_regs_${arch}.
12827
12828 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12829
12830 * regformats/regdef.h (struct reg): Add comment describing the
12831 requirements for offset and size fields.
12832
12833 2002-02-04 Andreas Schwab <schwab@suse.de>
12834
12835 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12836 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12837
12838 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12839
12840 * gdbarch.sh (copyright): Update years in generated header.
12841 (SMASH_TEXT_ADDRESS): Add rule.
12842 * gdbarch.h, gdbarch.c: Re-generate.
12843 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12844 * dbxread.c: Likewise.
12845 * dwarfread.c: Likewise.
12846 * elfread.c: Likewise.
12847 * somread.c: Likewise.
12848
12849 * arm-tdep.c (arm_smash_text_address): New function.
12850 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12851
12852 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12853
12854 Add support for hardware watchpoints on win32 native.
12855 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12856 CONTEXT_DEBUG_REGISTERS.
12857 (dr variable): New variable. Static array containing a local copy
12858 of debug registers.
12859 (debug_registers_changed): New variable. Reflects when debug registers
12860 are changed and need to be written to inferior.
12861 (debug_registers_used): New variable. Reflects when any debug register
12862 was set, used when new threads are created.
12863 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12864 i386-nat code.
12865 (thread_rec): Set dr array if id is the thread of current_event .
12866 (child_continue, child_resume): Change the debug registers for all
12867 threads if debug_registers_changed.
12868 (child_add_thread): Change the debug registers if debug_registers_used.
12869 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12870 Link nm.h to new nm-cygwin.h file.
12871 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12872 of hardware registers.
12873
12874 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12875
12876 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12877 Restore behavour broken by 2002-01-20 Andrew Cagney
12878 <ac131313@redhat.com> IEEE_FLOAT removal.
12879
12880 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12881
12882 * c-valprint.c (c_val_print): Pass a proper valaddr to
12883 cp_print_class_method.
12884 * valops.c (search_struct_method): If there is only one method
12885 and args is NULL, return that method.
12886
12887 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12888
12889 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12890 accessing tag_name directly.
12891
12892 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12893
12894 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12895 of accessing tag_name directly.
12896
12897 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12898
12899 PR gdb/280
12900 * gdbtypes.c (replace_type): New function.
12901 * gdbtypes.h (replace_type): Add prototype.
12902 * stabsread.c (read_type): Use replace_type.
12903
12904 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12905
12906 * Makefile.in (memattr.o): Add missing dependencies rule.
12907
12908 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12909
12910 * breakpoint.c (break_at_finish_command): Really export.
12911 (break_at_finish_at_depth_command): Ditto.
12912 (tbreak_at_finish_command): Ditto.
12913 * hppa-tdep.c: Include completer.h.
12914 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12915 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12916
12917 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12918
12919 * utils.c (do_write): New function.
12920 (error_stream): Rewrite combining the code from error_begin and
12921 verror.
12922 (verror): Rewrite using error_stream.
12923 (error_begin): Delete function.
12924
12925 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12926
12927 * utils.c (error_begin): Make static.
12928 * defs.h (error_begin): Delete declaration.
12929
12930 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12931 (decode_line_1): Use cplusplus_error instead of error_begin,
12932 cplusplus_hint and return_to_top_level.
12933 * coffread.c (coff_symfile_read): Use error instead of error_begin
12934 and return_to_top_level.
12935 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12936
12937 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12938
12939 * language.h (type_error, range_error): Make string parameter
12940 constant.
12941 * language.c (warning_pre_print): Delete extern declaration.
12942 * dwarfread.c (warning_pre_print): Ditto.
12943 * language.c (type_error, range_error): Rewrite to use verror and
12944 vwarning instead of warning_begin.
12945
12946 2002-02-01 Michael Snyder <msnyder@redhat.com>
12947
12948 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12949 (set_ignore_count): Move misplaced comment back where it belongs.
12950
12951 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12952
12953 * command.h (NO_FUNCTION): Delete macro.
12954 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12955 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12956 * tracepoint.c (_initialize_tracepoint): Ditto.
12957 * cli/cli-decode.c (add_set_cmd): Ditto.
12958 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12959
12960 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12961
12962 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12963 Update ``this'' pointer when calling virtual functions.
12964
12965 2002-02-01 Michael Snyder <msnyder@redhat.com>
12966
12967 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12968 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12969
12970 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12971
12972 * regformats/reg-arm.dat: New file.
12973 * regformats/reg-i386.dat: New file.
12974 * regformats/reg-ia64.dat: New file.
12975 * regformats/reg-m68k.dat: New file.
12976 * regformats/reg-mips.dat: New file.
12977 * regformats/reg-ppc.dat: New file.
12978 * regformats/reg-sh.dat: New file.
12979 * regformats/regdef.h: New file.
12980 * regformats/regdat.sh: New file.
12981
12982 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12983
12984 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12985 (arm_frame_args_address, arm_frame_locals_address): New functions.
12986 (arm_frame_num_args): New function.
12987 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12988 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12989 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12990
12991 2002-01-31 Michael Snyder <msnyder@redhat.com>
12992
12993 * breakpoint.c (break_at_finish_command): Export.
12994 (break_at_finish_at_depth_command): Export.
12995 (tbreak_at_finish_command): Export.
12996 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12997 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12998 "txbreak" commands, which are HPPA specific.
12999
13000 * printcmd.c (disassemble_command): Remove an ancient
13001 artifact of an old merge.
13002
13003 * symfile.h (enum overlay_debugging_state):
13004 Define enum constant values for overlay mode.
13005 * symfile.c (overlay_debugging): Use enums instead of literals.
13006 (overlay_is_mapped, overlay_auto_command,
13007 overlay_manual_command): Ditto.
13008
13009 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13010 breakpoint_here_p, breakpoint_inserted_here_p,
13011 breakpoint_thread_match, bpstat_stop_status,
13012 describe_other_breakpoints, check_duplicates, clear_command):
13013 Coding standard fixes.
13014
13015 * target.c (target_xfer_memory): Add spaces, coding standard.
13016 (do_xfer_memory): Add missing line to trust-readonly
13017 code: check bfd SEC_READONLY flag for section.
13018
13019 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13020
13021 * PROBLEMS: Fix typo, 5.1->5.1.1.
13022
13023 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13024
13025 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13026 data symbols, since we search based on textlow and texthigh.
13027 (find_pc_sect_symtab): Likewise.
13028
13029 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13030
13031 * defs.h (vwarning): Declare.
13032 * utils.c (vwarning): New function.
13033 (warning): Call vwarning.
13034 (warning_begin): Delete function.
13035
13036 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13037 the warning message.
13038 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13039 warning_begin.
13040
13041 2002-01-30 Michael Snyder <msnyder@redhat.com>
13042
13043 * NEWS: Mention "set trust-readonly-sections" command.
13044 Mention generate-core-file command.
13045
13046 2002-01-15 Michael Snyder <msnyder@redhat.com>
13047
13048 * target.c: New command, "set trust-readonly-sections on".
13049 (do_xfer_memory): Honor the suggestion to trust readonly sections
13050 by reading them from the object file instead of from the target.
13051 (initialize_targets): Register command "set trust-readonly-sections".
13052
13053 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13054
13055 * parse.c (target_map_name_to_register): Simplify, search regs and
13056 pseudo-regs using a single loop.
13057
13058 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13059
13060 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13061
13062 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13063
13064 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13065 * config/i386/i386v42mp.mh: Add i387-nat.o .
13066 * i386v4-nat.c: Include i387-nat.h.
13067 (supply_fpregset): Use i387_supply_fsave.
13068 (fill_fpregset): Use i387_fill_fsave.
13069
13070 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13071
13072 * arm-tdep.c (arm_call_dummy_words): Define.
13073 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13074 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13075 (CALL_DUMMY_WORDS): Define.
13076 (arm_call_dummy_words): Declare.
13077 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13078 (arm_linux_call_dummy_words): Declare.
13079
13080 2002-01-30 Andreas Schwab <schwab@suse.de>
13081
13082 * m68klinux-nat.c: Fix last change to use regcache_collect
13083 instead of referencing registers[] directly.
13084
13085 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13086
13087 * parse.c (target_map_name_to_register): Delete code wrapped in
13088 #ifdef REGISTER_NAME_ALIAS_HOOK.
13089
13090 2002-01-28 Michael Snyder <msnyder@redhat.com>
13091
13092 * regcache.c (legacy_read_register_gen): Need to be able to
13093 read pseudo-register as well as real register.
13094 (legacy_write_register_gen): Ditto.
13095
13096 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13097
13098 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13099 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13100 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13101 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13102 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13103 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13104 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13105 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13106 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13107 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13108 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13109 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13110 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13111 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13112 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13113 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13114 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13115 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13116 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13117 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13118
13119 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13120
13121 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13122 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13123 (initialize_current_architecture): Update target_byte_order using
13124 information from BFD.
13125 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13126 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13127
13128 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13129
13130 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13131 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13132
13133 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13134 #ifdef INVALID_FLOAT.
13135 * infcmd.c (do_registers_info): Ditto.
13136 * values.c (unpack_double): Ditto. Add comment.
13137
13138 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13139 already commented out.
13140
13141 2002-01-26 Andreas Schwab <schwab@suse.de>
13142
13143 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13144 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13145 registers and add support for PTRACE_GETREGS.
13146
13147 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13148
13149 GDB 5.1.1 released from 5.1 branch.
13150 * NEWS: Add 5.1.1 news.
13151 * README: Sync with 5.1 branch.
13152
13153 2002-01-23 Fred Fish <fnf@redhat.com>
13154
13155 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13156 stabstring on initial malloc. Reallocing will copy it for us,
13157 if necessary.
13158
13159 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13160
13161 * Makefile.in (hpread_h): Delete.
13162 (HFILES_NO_SRCDIR): Remove hpread.h.
13163 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13164 (hpread.o): Update dependencies.
13165 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13166
13167 * hp-psymtab-read.c: Remove file.
13168 * hp-symtab-read.c: Remove file.
13169 * hpread.h: Remove file.
13170
13171 * hpread.c: Merge all contents of hp-psymtab-read.c,
13172 hp-symtab-read.c and hpread.h into this file, as it was prior to
13173 January 1999.
13174
13175 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13176 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13177 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13178 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13179
13180 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13181
13182 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13183 fill_gregset): Call gdbarch_tdep() just once, assign result to
13184 variable and use that, instead of calling the function several
13185 times.
13186
13187 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13188
13189 * configure.host: Accept sparcv9 as alias for sparc64.
13190 * configure.tgt: Likewise.
13191
13192 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13193
13194 * solib-aix5.c (build_so_list_from_mapfile)
13195 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13196 arguments is not reversed.
13197 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13198 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13199
13200 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13201
13202 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13203 modified version of obsolete sh_fetch_pseudo_register.
13204 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13205 (sh4_register_read): New function.
13206 (sh_pseudo_register_write): New function. Renamed and modified
13207 version of obsolete sh_store_pseudo_register.
13208 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13209 (sh4_register_write): New function.
13210 (sh_gdbarch_init): Remove setting of gdbarch function
13211 fetch_pseudo_register and store_pseudo_register. Remove setting of
13212 register_convert_to_raw, register_convert_to_virtual,
13213 register_convertible.
13214 (sh_sh4_register_convertible): Delete. No longer needed. All is
13215 taken care by architecture specific functions
13216 register_read/register_write.
13217 (sh_sh4_register_convert_to_virtual): Make static.
13218 (sh_sh4_register_convert_to_raw): Ditto.
13219
13220 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13221
13222 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13223 (floatformat_is_nan, floatformat_mantissa): Ditto.
13224
13225 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13226 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13227 builtin_type_ieee_double_little,
13228 builtin_type_ieee_double_littlebyte_bigword,
13229 builtin_type_m68881_ext, builtin_type_i960_ext,
13230 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13231 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13232 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13233 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13234
13235 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13236
13237 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13238 parameter. Set frameless flag if it exists and depended of
13239 whether the scanned function is frameless or not.
13240 (xstormy16_skip_prologue): If function is frameless, return
13241 result of xstormy16_scan_prologue().
13242 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13243 call.
13244
13245 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13246
13247 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13248 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13249 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13250 sh_sh4_register_byte, sh_sh4_register_raw_size,
13251 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13252 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13253 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13254 sh_store_pseudo_register, sh_do_pseudo_register): Call
13255 gdbarch_tdep() just once, assign result to variable and use that,
13256 instead of calling the function several times.
13257
13258 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13259
13260 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13261 macros instead of LAST_FPU_CTRL_REGNUM.
13262 (store_register): Likewise.
13263
13264 2002-01-21 Jim Blandy <jimb@redhat.com>
13265
13266 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13267 is up-to-date before running the program, not just when a program
13268 exits.
13269
13270 2002-01-21 Fred Fish <fnf@redhat.com>
13271
13272 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13273 when we have found all instructions we are looking for.
13274
13275 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13276
13277 * arm-tdep.c (arm_register_name): New function.
13278 (arm_registers_names): Make static.
13279 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13280 (arm_register_name): Declare.
13281 (REGISTER_NAME): Use it.
13282
13283 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13284 Kevin Buettner <kevinb@redhat.com>
13285
13286 Convert arm targets to new FRAME interface.
13287 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13288 (arm_frame_find_save_regs): Delete.
13289 (arm_frame_init_saved_regs): New.
13290 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13291 Allocate extra_info as required. Convert all uses of fsr.regs
13292 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13293 to use extra_info.
13294 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13295 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13296 (check_prologue_cache, save_prologue_cache): Likewise.
13297 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13298 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13299 (FRAME_FIND_SAVED_REGS): Delete.
13300 (arm_frame_find_saved_regs): Delete prototype.
13301 (arm_frame_init_saved_regs): New prototype.
13302 (FRAME_INIT_SAVED_REGS): Define.
13303
13304 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13305
13306 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13307
13308 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13309
13310 From Jeff Law <law@redhat.com>:
13311 * infttrace.c: Include <sys/pstat.h>.
13312 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13313 exec file if the ttrace equivalent fails.
13314
13315 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13316
13317 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13318 (closeLogFile): Ditto.
13319
13320 2002-01-20 Michael Chastain <mec@shout.net>
13321
13322 * top.c (print_gdb_version): Bump copyright year to 2002.
13323
13324 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13325
13326 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13327 Zannoni and Eli Zaretskii.
13328
13329 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13330
13331 * buildsym.c: Update copyright years.
13332 * c-typeprint.c: Likewise.
13333 * dwarf2read.c: Likewise.
13334 * f-typeprint.c: Likewise.
13335 * gdbtypes.c: Likewise.
13336 * gdbtypes.h: Likewise.
13337 * hp-symtab-read.c: Likewise.
13338 * hpread.c: Likewise.
13339 * mdebugread.c: Likewise.
13340 * p-typeprint.c: Likewise.
13341
13342 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13343
13344 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13345 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13346 byte-order selectable.
13347 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13348 * arch-utils.c: Ditto.
13349 (set_endian): Ditto.
13350 (set_endian_from_file): Ditto.
13351 * gdbserver/low-sim.c (create_inferior): Ditto.
13352 * gdbarch.sh: Ditto.
13353 * gdbarch.h: Re-generate.
13354 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13355 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13356 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13357 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13358 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13359 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13360 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13361 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13362 macro definition.
13363 * config/mips/tm-wince.h: Remove #undef of macro
13364 TARGET_BYTE_ORDER_SELECTABLE.
13365 * config/sh/tm-wince.h: Ditto.
13366
13367 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13368
13369 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13370 member function fields. Add accessor macro
13371 TYPE_FN_FIELD_ARTIFICIAL.
13372 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13373 * c-typeprint.c (c_type_print_base): Skip artificial member
13374 functions.
13375
13376 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13377
13378 * f-typeprint.c: Delete unused function f_type_print_args.
13379 * p-typeprint.c: Delete unused function pascal_type_print_args.
13380
13381 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13382
13383 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13384 comment. Add ``artificial'' to ``union field_location''.
13385
13386 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13387
13388 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13389 * mdebugread.c (parse_symbol): Likewise.
13390 * stabsread.c (define_symbol): Likewise.
13391 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13392 initializing TYPE_FIELD_BITPOS to n (obsolete).
13393 (hpread_doc_function_type): Likewise.
13394 * hpread.c (hpread_function_type): Likewise.
13395
13396 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13397
13398 * configure.in (host_makefile_frag): Only require a host makefile
13399 fragment when a native build.
13400 * configure: Re-generate.
13401
13402 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13403
13404 * doublest.h (floatformat_from_type): Declare.
13405 * doublest.c (floatformat_from_type): New function.
13406 (convert_typed_floating): Use.
13407
13408 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13409 call to function floatformat_from_type.
13410
13411 * gdbarch.sh (IEEE_FLOAT): Delete.
13412 * gdbarch.h, gdbarch.c: Re-generate.
13413 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13414 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13415 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13416 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13417 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13418 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13419 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13420 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13421 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13422 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13423 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13424 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13425
13426 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13427 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13428 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13429 * sh-tdep.c (sh_gdbarch_init): Ditto.
13430 * mips-tdep.c (mips_gdbarch_init): Ditto.
13431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13432 * cris-tdep.c (cris_gdbarch_init): Ditto.
13433
13434 2002-01-20 Jiri Smid <smid@suse.cz>
13435
13436 * configure.host, configure.tgt: Support x86-64.
13437 * NEWS: Note new target x86-64.
13438
13439 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13440 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13441 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13442 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13443 x86-64-linux-nat.o): Fix dependencies.
13444
13445 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13446
13447 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13448 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13449 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13450 * config/sparc/xm-sun4os4.h: Delete file.
13451 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13452
13453 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13454
13455 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13456 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13457 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13458 * config/i386/i386lynx.mh (XM_FILE): Delete.
13459 * config/rs6000/xm-rs6000ly.h: Delete file.
13460 * config/sparc/xm-sparclynx.h: Delete file.
13461 * config/m68k/xm-m68klynx.h: Delete file.
13462 * config/i386/xm-i386lynx.h: Delete file.
13463 * config/xm-lynx.h: Delete file.
13464 * config/djgpp/fnchange.lst: Update.
13465
13466 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13467
13468 * alpha-tdep.c (alpha_register_byte): New function.
13469 (alpha_register_raw_size): Ditto.
13470 (alpha_register_virtual_size): Ditto.
13471 (alpha_skip_prologue_internal): Renamed from
13472 alpha_skip_prologue.
13473 (alpha_skip_prologue): New version that calls
13474 alpha_skip_prologue_internal.
13475 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13476 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13477 second argument from alpha_skip_prologue.
13478 (REGISTER_BYTE): Use alpha_register_byte.
13479 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13480 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13481 (FRAMELESS_FUNCTION_INVOCATION): Use
13482 generic_frameless_function_invocation_not.
13483 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13484 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13485
13486 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13487
13488 * config/mips/xm-news-mips.h: Delete file.
13489 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13490
13491 * config/m88k/xm-m88k.h: Delete file.
13492 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13493 * config/m88k/xm-delta88v4.h: Ditto.
13494 * config/m88k/xm-delta88.h: Ditto.
13495
13496 * config/alpha/xm-fbsd.h: Delete file.
13497 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13498
13499 * config/sparc/xm-sparc.h: Delete file.
13500 * Makefile.in (xm-sun4os4.h): Delete dependency.
13501 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13502 * config/sparc/xm-sun4os4.h: Ditto.
13503 * config/sparc/xm-linux.h: Ditto.
13504
13505 * config/i386/xm-windows.h: Delete file.
13506
13507 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13508
13509 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13510 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13511
13512 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13513
13514 * alpha-tdep.c (alpha_call_dummy_words): New.
13515 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13516 (CALL_DUMMY_P): Define.
13517 (CALL_DUMMY_WORDS): Define.
13518 (SIZEOF_CALL_DUMMY_WORDS): Define.
13519
13520 2002-01-19 Per Bothner <per@bothner.com>
13521
13522 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13523 isn't NULL, which can happen with some gcj-3.x-produced code.
13524
13525 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13526
13527 * alpha-tdep.c (alpha_register_virtual_type): New function.
13528 (alpha_init_frame_pc_first): Ditto.
13529 (alpha_fix_call_dummy): Ditto.
13530 (alpha_store_struct_return): Ditto.
13531 (alpha_extract_struct_value_address): Ditto.
13532 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13533 alpha_register_virtual_type.
13534 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13535 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13536 alpha_extract_struct_value_address.
13537 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13538 (INIT_FRAME_PC): Use init_frame_pc_noop.
13539 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13540
13541 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13542
13543 * i386gnu-nat.c: Include "i386-tdep.h".
13544 (fetch_fpregs): Simplify code dealing with uninitialized floating
13545 point states such that it doesn't require FP7_REGNUM.
13546
13547 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13548
13549 * alpha-tdep.c (frame_extra_info): New.
13550 (alpha_find_saved_regs): Make static. Use
13551 frame->extra_info.
13552 (alpha_frame_init_saved_regs): New function.
13553 (alpha_frame_saved_pc): Use frame->extra_info.
13554 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13555 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13556 (init_extra_frame_info): Rename to...
13557 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13558 (alpha_print_extra_frame_info): New function.
13559 (alpha_frame_locals_address): Ditto.
13560 (alpha_frame_args_address): Ditto.
13561 (alpha_pop_frame): Use frame->extra_info.
13562 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13563 alpha_frame_args_address.
13564 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13565 (alpha_find_saved_regs): Remove prototype.
13566 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13567 (EXTRA_FRAME_INFO): Remove.
13568 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13569 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13570
13571 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13572
13573 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13574 (alpha_cannot_fetch_register): Ditto.
13575 (alpha_cannot_store_register): Ditto.
13576 (alpha_register_convertible): Ditto.
13577 (alpha_use_struct_convention): Ditto.
13578 * config/alpha/tm-alpha.h: Update copyright years.
13579 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13580 (INNER_THAN): Use core_addr_lessthan.
13581 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13582 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13583 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13584 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13585 (FRAME_CHAIN): Remove unnecessary cast.
13586
13587 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13588
13589 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13590 obsolete.
13591
13592 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13593
13594 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13595 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13596 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13597 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13598 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13599 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13600 * x86-64-linux-nat.c: Ditto.
13601
13602 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13603
13604 * alpha-tdep.c (alpha_register_name): New function.
13605 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13606 (REGISTER_NAME): Define.
13607
13608 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13609
13610 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13611
13612 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13613
13614 * alpha-tdep.c: Update copyright years.
13615 (alpha_next_pc): New function.
13616 (alpha_software_single_step): Ditto.
13617 * config/alpha/tm-alpha.h: Add prototype for
13618 alpha_software_single_step.
13619
13620 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13621
13622 * alphabsd-nat.c: Update copyright years.
13623 (fill_gregset): Use regcache_collect.
13624 (fill_fpregset): Likewise.
13625 (fetch_inferior_registers): Only fetch integer registers
13626 if requested to do so.
13627 (store_inferior_registers): Only store integer registers
13628 if requested to do so.
13629
13630 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13631
13632 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13633 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13634 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13635 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13636 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13637 * config/arm/linux.mh (XDEPFILES): Delete.
13638 * config/arm/nbsd.mh (XDEPFILES): Delete.
13639 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13640 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13641 * config/i386/i386m3.mh (XDEPFILES): Delete.
13642 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13643 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13644 * config/i386/fbsd.mh (XDEPFILES): Delete.
13645 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13646 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13647 * config/i386/i386v4.mh (XDEPFILES): Delete.
13648 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13649 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13650 * config/i386/i386aix.mh (XDEPFILES): Delete.
13651 * config/i386/go32.mh (XDEPFILES): Delete.
13652 * config/i386/cygwin.mh (XDEPFILES): Delete.
13653 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13654 * config/i386/i386mach.mh (XDEPFILES): Delete.
13655 * config/i386/i386v32.mh (XDEPFILES): Delete.
13656 * config/i386/linux.mh (XDEPFILES): Delete.
13657 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13658 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13659 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13660 * config/i386/i386sco.mh (XDEPFILES): Delete.
13661 * config/i386/i386v.mh (XDEPFILES): Delete.
13662 * config/i386/nbsd.mh (XDEPFILES): Delete.
13663 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13664 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13665 * config/i386/symmetry.mh (XDEPFILES): Delete.
13666 * config/i386/obsd.mh (XDEPFILES): Delete.
13667 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13668 * config/ia64/linux.mh (XDEPFILES): Delete.
13669 * config/ia64/aix.mh (XDEPFILES): Delete.
13670 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13671 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13672 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13673 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13674 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13675 * config/m68k/linux.mh (XDEPFILES): Delete.
13676 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13677 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13678 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13679 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13680 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13681 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13682 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13683 * config/m88k/delta88.mh (XDEPFILES): Delete.
13684 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13685 * config/m88k/m88k.mh (XDEPFILES): Delete.
13686 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13687 * config/mips/linux.mh (XDEPFILES): Delete.
13688 * config/mips/irix6.mh (XDEPFILES): Delete.
13689 * config/mips/irix5.mh (XDEPFILES): Delete.
13690 * config/mips/irix4.mh (XDEPFILES): Delete.
13691 * config/mips/irix3.mh (XDEPFILES): Delete.
13692 * config/mips/decstation.mh (XDEPFILES): Delete.
13693 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13694 (NATDEPFILES): Move core-aout.o to here.
13695 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13696 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13697 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13698 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13699 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13700 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13701 * config/pa/hpux11.mh (XDEPFILES): Delete.
13702 * config/powerpc/aix.mh (XDEPFILES): Delete.
13703 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13704 * config/powerpc/linux.mh (XDEPFILES): Delete.
13705 * config/romp/rtbsd.mh: Rename XDEPFILES.
13706 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13707 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13708 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13709 * config/s390/s390.mh (XDEPFILES): Delete.
13710 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13711 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13712 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13713 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13714 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13715 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13716 * config/sparc/linux.mh (XDEPFILES): Delete.
13717 * config/vax/vaxult.mh (XDEPFILES): Delete.
13718 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13719 * Makefile.in (DEPFILES): Remove XDEPFILES.
13720
13721 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13722
13723 * utils.c (internal_verror): Fix comments, default is yes not no.
13724 Update queries to match. Default to quit and dump core.
13725
13726 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13727
13728 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13729 copyright.
13730 * defs.h, event-top.c, gdbcmd.h: Ditto.
13731 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13732 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13733 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13734 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13735 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13736 * mi/mi-main.c:Ditto.
13737
13738 * stack.c, symfile.c: Update copyright.
13739
13740 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13741
13742 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13743 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13744 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13745 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13746
13747 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13748
13749 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13750 * gdbserver/low-lynx.c (myattach): Likewise.
13751 * gdbserver/low-nbsd.c (myattach): Likewise.
13752 * gdbserver/low-sim.c (myattach): Likewise.
13753 * gdbserver/low-sparc.c (myattach): Likewise.
13754 * gdbserver/low-sun3.c (myattach): Likewise.
13755
13756 * gdbserver/low-linux.c (myattach): New function.
13757
13758 * gdbserver/server.c (attach_inferior): New function.
13759 (main): Handle "--attach".
13760
13761 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13762
13763 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13764 maintainer.
13765
13766 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13767
13768 * c-typeprint.c (is_type_conversion_operator): Add additional
13769 check for non-conversion operators.
13770
13771 2002-01-15 Michael Snyder <msnyder@redhat.com>
13772
13773 * linux-proc.c: Add "info proc" command, a la procfs.c.
13774 (read_mapping): New function, abstract and re-use code.
13775 (linux_find_memory_regions): Use new func read_mapping.
13776 (linux_info_proc_cmd): New function, implement "info proc".
13777 (_initialize_linux_proc): Add new command "info proc".
13778
13779 2002-01-15 Michael Snyder <msnyder@redhat.com>
13780
13781 * symfile.c (generic_load): Use bfd_map_over_sections method
13782 instead of manipulating bfd structure members directly.
13783 (add_section_size_callback): New function, bfd sections callback
13784 used by generic_load.
13785 (load_sections_callback): New function, bfd sections callback
13786 used by generic_load.
13787
13788 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13789
13790 [Based on work by Jim Blandy]
13791 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13792 (builtin_type_vec128): Export.
13793 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13794 types.
13795 (builtin_type_vec128): New builtin type for 128 bit vector
13796 registers.
13797 (build_gdbtypes): Initialize builtin_type_v16qi and
13798 builtin_type_v8hi. Create the vec128 register builtin type
13799 structure.
13800 (build_builtin_type_vec128): New function.
13801 (_initialize_gdbtypes): Register builtin_type_v16qi and
13802 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13803 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13804 AltiVec register to new builtin type.
13805
13806 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13807
13808 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13809 to make_cv_type.
13810
13811 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13812
13813 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13814 CLEAN_UP_REGISTER_VALUE.
13815 * regcache.c (supply_register): Update only call.
13816
13817 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13818
13819 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13820 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13821 a29k-*-vxworks* targets as obsolete.
13822
13823 2002-01-14 Michael Snyder <msnyder@redhat.com>
13824
13825 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13826 until we can resolve portability issues.
13827 * gregset.h: Remove references to fpxregs.
13828 * gcore.c (gcore_command): Initialize note_sec to NULL.
13829
13830 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13831
13832 * signals.c (target_signal_to_name): Rewrite. Only use
13833 signals[].name when in bounds and non-NULL.
13834
13835 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13836
13837 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13838 * signals.c (target_signal_to_name): Verify that SIG is within the
13839 bounds of the signals array.
13840
13841 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13842
13843 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13844
13845 2002-01-13 Keith Seitz <keiths@redhat.com>
13846
13847 * stack.c (print_frame_info_base): Print the frame's pc
13848 only if when print_frame_info_listing_hook is not defined.
13849
13850 2002-01-13 Keith Seitz <keiths@redhat.com>
13851
13852 * varobj.c (varobj_set_value): Make sure that there were no
13853 errors evaluating the object before attempting to set its
13854 value.
13855 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13856 so this offset adjustment is no longer necessary.
13857 (create_child): Don't set the error flag if the child is
13858 a CPLUS_FAKE_CHILD.
13859 (value_of_child): If value_fetch_lazy fails, return NULL
13860 so that callers will be notified that an error occurred.
13861 (c_value_of_variable): Delay check of variable's validity
13862 until later. We actually want all structs and unions to have
13863 the value "{...}".
13864 Do not return "???" for variables which could not be evaluated.
13865 This error condition must be returned to the caller so that it
13866 can get the error condition from gdb.
13867 (cplus_name_of_child): Adjust index for vptr before figuring
13868 out the name of the child.
13869 (cplus_value_of_child): If a child's (real) parent is not valid,
13870 don't even bother trying to give a value for it. Just return
13871 an error. Change all instances in this function.
13872 (cplus_type_of_child): If our parent is one of the "fake"
13873 parents, we need to get at the type of the real parent, and
13874 derive the child's true type using this information.
13875
13876 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13877
13878 From 2002-01-09 John Marshall <johnm@falch.net>:
13879 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13880 sources.redhat.com, and tweak some related URLs which had
13881 suffered from linkrot.
13882
13883 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13884
13885 From Jeff law:
13886 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13887 structures passed in registers.
13888
13889 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13890
13891 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13892 white space which prevented compilation. Reported by DSK
13893 <dsk@student.unsw.edu.au>.
13894
13895 2002-01-11 Michael Snyder <msnyder@redhat.com>
13896
13897 * symfile.c (build_section_addr_info_from_section_tab):
13898 Use bfd access method instead of manipulating bfd directly.
13899 (syms_from_objfile): Ditto.
13900 (simple_overlay_update_1): Ditto.
13901 (simple_overlay_update): Ditto.
13902 (generic_load): Ditto.
13903 (overlay_unmapped_address): FIXME comment, bfd access methods.
13904 (sections_overlap): FIXME comment, bfd access methods.
13905 (pc_in_mapped_range): FIXME comment, bfd access methods.
13906 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13907 (section_is_mapped): FIXME comment, bfd access methods.
13908 (section_is_overlay): FIXME comment, bfd access methods.
13909
13910 * symfile.c (generic_load): Whitespace and long line cleanups.
13911 Remove duplicate variable, change several local variables to
13912 more appropriate data types.
13913 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13914
13915 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13916
13917 From Peter Schauer:
13918 * language.c (longest_local_hex_string_custom): Use phex_nz to
13919 convert NUM to a hex string.
13920
13921 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13922
13923 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13924 the function.
13925 Update Copyright year.
13926
13927 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13928
13929 * language.c (longest_raw_hex_string): Delete unused function.
13930
13931 2002-01-11 Petr Sorfa <petrs@caldera.com>
13932
13933 * MAINTAINERS (write-after-approval): Add myself.
13934 * dwarf2read.c (read_tag_string_type): Handling of
13935 DW_AT_byte_size.
13936 (read_tag_string_type): FORTRAN fix to prevent propagation of
13937 first string size.
13938 (set_cu_language): Handling of DW_LANG_Fortran95
13939
13940 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13941
13942 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13943 GETPID(inferior_ptid).
13944 (store_inferior_registers): Likewise.
13945
13946 2002-01-10 Jason Merrill <jason@redhat.com>
13947
13948 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13949 Fix DW_OP_minus.
13950
13951 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13952
13953 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13954 and bfd/elf32-sh-nbsd.c.
13955
13956 2002-01-10 Michael Snyder <msnyder@redhat.com>
13957
13958 * NEWS: Mention --pid and corefile/proc-id behavior change.
13959
13960 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13961 * gcore.c: Include cli/cli-decode.h instead of command.h.
13962
13963 * main.c (captured_main): Add new command line option "--pid".
13964 If the second command line argument (following the symbol-file)
13965 begins with a digit, try to attach to it before trying to open
13966 it as a corefile.
13967 (print_gdb_help): Document the "--pid" argument.
13968
13969 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13970
13971 * completer.c (command_completer): New function.
13972
13973 * completer.h <command_completer>: Add prototype.
13974
13975 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13976 completer for the "help" command.
13977
13978 2002-01-09 Jason Merrill <jason@redhat.com>
13979
13980 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13981
13982 2002-01-09 Michael Snyder <msnyder@redhat.com>
13983
13984 * i386-linux-nat.c (fill_fpxregset): Make global.
13985 (store_fpxregset): Ditto.
13986
13987 * gregset.h (gdb_fpxregset_t): Define.
13988 (supply_fpxregset): Prototype.
13989 (fill_fpxregset): Prototype.
13990
13991 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13992
13993 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13994
13995 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13996 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13997 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13998
13999 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14000
14001 * MAINTAINERS: Update target maintainer rules so that any
14002 Maintainer can approve a tested patch for a maintenance-only
14003 target.
14004
14005 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14006
14007 * MAINTAINERS (write-after-approval): Add myself.
14008
14009 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14010 IN_SIGTRAMP.
14011
14012 2002-01-08 Michael Snyder <msnyder@redhat.com>
14013
14014 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14015 real name of the executable, rather than the /proc name.
14016
14017 2002-01-03 Michael Snyder <msnyder@redhat.com>
14018
14019 Implement a "generate-core-file" command in gdb, save target state.
14020 * gcore.c: New file. Implement new command 'generate-core-file'.
14021 Save a corefile image of the current state of the inferior.
14022 * linux-proc.c: Add linux-specific code for saving corefiles.
14023 * target.h (struct target_ops): Add new target vectors for saving
14024 corefiles; to_find_memory_regions and to_make_corefile_notes.
14025 (target_find_memory_regions): New macro.
14026 (target_make_corefile_notes): New macro.
14027 * target.c (update_current_target): Inherit new target methods.
14028 (dummy_find_memory_regions): New place-holder method.
14029 (dummy_make_corefile_notes): New place-holder method.
14030 (init_dummy_target): Initialize new dummy target vectors.
14031 * exec.c (exec_set_find_memory_regions): New function.
14032 Allow the exec_ops vector for memory regions to be taken over.
14033 (exec_make_note_section): New function, target vector method.
14034 * defs.h (exec_set_find_memory_regions): Export prototype.
14035 * procfs.c (proc_find_memory_regions): New function, corefile method.
14036 (procfs_make_note_section): New function, corefile method.
14037 (init_procfs_ops): Set new target vector pointers.
14038 (find_memory_regions_callback): New function.
14039 (procfs_do_thread_registers): New function.
14040 (procfs_corefile_thread_callback): New function.
14041 * sol-thread.c (sol_find_memory_regions): New function.
14042 (sol_make_note_section): New function.
14043 (init_sol_thread_ops): Initialize new target vectors.
14044 * inftarg.c (inftarg_set_find_memory_regions): New function.
14045 Allow to_find_memory_regions vector to be taken over.
14046 (inftarg_set_make_corefile_notes): New function.
14047 Allow to_make_corefile_notes vector to be taken over.
14048 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14049 interface layer if not target_has_execution (may be a corefile).
14050 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14051 * config/sparc/sun4sol2.mh: Ditto.
14052 * config/alpha/alpha-linux.mh: Ditto.
14053 * config/arm/linux.mh: Ditto.
14054 * config/i386/x86-64linux.mh: Ditto.
14055 * config/ia64/linux.mh: Ditto.
14056 * config/m68k/linux.mh: Ditto.
14057 * config/mips/linux.mh: Ditto.
14058 * config/powerpc/linux.mh: Ditto.
14059 * config/sparc/linux.mh: Ditto.
14060
14061 2002-01-07 Michael Snyder <msnyder@redhat.com>
14062
14063 * arm-linux-nat.c: Remove references to regcache.c internal data
14064 (registers[] and register_valid[]).
14065
14066 2002-01-07 Michael Snyder <msnyder@redhat.com>
14067
14068 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14069 so that attaching to a pid will automatically read the process's
14070 symbol file and shlibs.
14071 * Makefile.in: Add rule for linux-proc.o.
14072 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14073 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14074 * config/arm/linux.mh: Ditto.
14075 * config/i386/linux.mh: Ditto.
14076 * config/i386/x86-64linux.mh: Ditto.
14077 * config/ia64/linux.mh: Ditto.
14078 * config/m68k/linux.mh: Ditto.
14079 * config/mips/linux.mh: Ditto.
14080 * config/powerpc/linux.mh: Ditto.
14081 * config/sparc/linux.mh: Ditto.
14082
14083 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14084
14085 * win32-nat.c: Add i386-tdep.h dependency.
14086
14087 2002-01-07 Michael Snyder <msnyder@redhat.com>
14088
14089 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14090 instead of bfd_get_arch_size. Don't bail out just because
14091 there's no exec_bfd.
14092
14093 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14094 * p-valprint.c (pascal_object_print_value): Ditto.
14095 * somread.c (som_symtab_read): Ditto.
14096 * symfile.c (simple_free_overlay_region_table): Ditto.
14097 * valops.c (value_assign): Ditto.
14098
14099 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14100 use tilde_expand and strerror for opening save-tracepoints file.
14101
14102 * thread-db.c (thread_db_new_objfile): Indendation fix.
14103
14104 * infptrace.c (GDB_MAX_ALLOCA): New define.
14105 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14106 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14107 can be overridden with whatever value is appropriate to the host).
14108 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14109 alloca to allocate potentially large buffer.
14110 * rs6000-nat.c (child_xfer_memory): Ditto.
14111 * symm-nat.c (child_xfer_memory): Ditto.
14112 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14113
14114 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14115
14116 From Nick Clifton <nickc@redhat.com>
14117 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14118
14119 2002-01-07 Michael Snyder <msnyder@redhat.com>
14120
14121 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14122 Don't use exec_bfd if it's NULL.
14123
14124 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14125
14126 * valops.c (value_arg_coerce): Fix formatting.
14127
14128 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14129
14130 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14131 * gnu-nat.c: Ditto.
14132
14133 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14134
14135 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14136 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14137 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14138 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14139 z8k-coff have not been multi-arched. Update z8k-coff build
14140 status.
14141
14142 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14143
14144 * MAINTAINERS: Mark a29k target as obsolete.
14145 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14146 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14147 comments.
14148 * NEWS: Note that a29k targets are obsolete.
14149 * a29k-tdep.c: Mark as obsolete.
14150 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14151 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14152 a29k-*-vxworks* targets as obsolete.
14153 * remote-adapt.c: Obsolete.
14154 * remote-eb.c: Obsolete.
14155 * remote-mm.c: Obsolete.
14156 * remote-udi.c: Obsolete.
14157 * config/a29k/a29k-udi.mt: Obsolete.
14158 * config/a29k/a29k.mt: Obsolete.
14159 * config/a29k/tm-a29k.h: Obsolete.
14160 * config/a29k/tm-vx29k.h: Obsolete.
14161 * config/a29k/vx29k.mt: Obsolete.
14162
14163 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14164
14165 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14166 with BFD_ENDIAN_BIG.
14167
14168 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14169
14170 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14171 * configure, config.in: Re-generate.
14172 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14173 * defs.h: Do not include <endian.h>.
14174
14175 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14176
14177 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14178 * config.in: Regenerate.
14179 * configure.in: Update copyright years.
14180 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14181 * configure: Regenerate.
14182 * i386bsd-nat.c: Update copyright years.
14183 (fill_gregset): Use regcache_collect.
14184 (fetch_inferior_registers): Only fetch integer registers
14185 if requested to do so. Add support for XMM registers
14186 using PT_GETXMMREGS.
14187 (store_inferior_registers): Only store integer registers
14188 if requested to do so. Add support for XMM registers
14189 using PT_SETXMMREGS.
14190 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14191 (store_inferior_registers): Remove.
14192 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14193 (fetch_elfcore_registers): New function.
14194 (i386nbsd_elfcore_fns): New.
14195 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14196 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14197 i386bsd-nat.o.
14198 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14199 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14200 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14201 * config/i386/tm-nbsd.h: Update copyright years.
14202 (HAVE_SSE_REGS): Define.
14203 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14204 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14205 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14206 (SIGCONTEXT_PC_OFFSET): Remove.
14207 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14208
14209 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14210
14211 * configure.tgt: Remove powerpc-*-macos* target.
14212 * config/m68k/xm-mpw.h: Delete file.
14213 * config/xm-mpw.h: Delete file.
14214 * ser-mac.c: Delete file.
14215 * mpw-make.sed: Delete file.
14216 * mpw-config.in: Delete file.
14217 * mac-xdep.c: Delete file.
14218 * mac-gdb.r: Delete file.
14219 * mac-defs.h: Delete file.
14220 * mac-nat.c: Delete file.
14221 * config/powerpc/macos.mh: Delete file.
14222 * config/powerpc/macos.mt: Delete file.
14223 * config/powerpc/nm-macos.h: Delete file.
14224 * config/powerpc/tm-macos.h: Delete file.
14225 * source.c (openp, open_source_file): Remove obsolete code.
14226 * top.c (gdb_readline): Ditto.
14227 * utils.c (query): Ditto.
14228 * event-top.c (display_gdb_prompt): Ditto.
14229 * Makefile.in (ser-mac.o): Delete obsolete target.
14230 * NEWS: Update.
14231
14232 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14233
14234 * defs.h (BIG_ENDIAN): Delete macro definition.
14235 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14236 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14237 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14238 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14239 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14240 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14241 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14242 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14243 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14244 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14245 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14246 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14247 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14248 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14249 * gdbarch.c: Re-generate.
14250
14251 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14252
14253 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14254 for core files.
14255
14256 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14257
14258 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14259
14260 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14261
14262 * value.h (value_ptr): Delete typedef.
14263
14264 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14265
14266 * i386nbsd-nat.c: Update copyright years.
14267 Include i386-tdep.h.
14268
14269 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14270
14271 * stabsread.c: Update copyright years.
14272
14273 From Debashis Mahata <debashis.mahata@wipro.com>:
14274 (read_struct_fields): Deal with Sun C compiler erroneous stab
14275 output for structs and unions.
14276 Fix PR gdb/269.
14277
14278 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14279
14280 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14281 prototype.
14282
14283 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14284
14285 * cp-abi.c: Fix whitespace.
14286 (baseclass_offset): New wrapper function.
14287 * cp-abi.h (baseclass_offset): Add prototype.
14288 (struct cp_abi_ops): Add baseclass_offset pointer.
14289
14290 * valops.c (vb_match): Move to...
14291 * gnu-v2-abi.c (vb_match): here.
14292 * valops.c (baseclass_offset): Move to...
14293 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14294
14295 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14296
14297 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14298 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14299 * hpacc-abi.c (init_hpacc_ops): Likewise.
14300
14301 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14302
14303 * valops.c (find_overload_match): Accept obj as a
14304 reference parameter. Update it before returning.
14305 * value.h (find_overload_match): Update prototype.
14306 * eval.c (evaluate_subexp_standard): Pass object to
14307 find_overload_match by reference.
14308
14309 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14310
14311 * valarith.c: Replace value_ptr with struct value pointer. Remove
14312 register attribute from value declarations.
14313 * valops.c: Ditto.
14314 * value.h: Ditto.
14315 * scm-lang.c (scm_lookup_name): Ditto.
14316
14317 2002-01-03 Michael Snyder <msnyder@redhat.com>
14318
14319 Abstract the functionality of iterating over mapped memory
14320 regions into a general purpose iterator function.
14321 * procfs.c (iterate_over_mappings): New function, general purpose
14322 iterator for memory sections.
14323 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14324 (solib_mappings_callback): New function, callback for above.
14325 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14326 (info_mappings_callback): New function, callback for above.
14327
14328 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14329
14330 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14331
14332 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14333 * i386-tdep.c: Include "elf-bfd.h".
14334 (process_note_abi_tag_sections): New function.
14335 (i386_gdbarch_init): Add code to recognize various OS/ABI
14336 combinations.
14337
14338 * maint.c (_initialize_maint_cmds): Add missing \ in
14339 string-literal.
14340
14341 For older changes see ChangeLog-2001
14342 \f
14343 Local Variables:
14344 mode: change-log
14345 left-margin: 8
14346 fill-column: 74
14347 version-control: never
14348 End:
This page took 0.459718 seconds and 4 git commands to generate.