Correct the ChangeLog entry for 2002-10-11 from:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 * values.c (value_change_enclosing_type): Set
4 enclosing_type field correctly also for the case where
5 more memory needs to be allocated.
6
7 2002-11-03 Mark Kettenis <kettenis@gnu.org>
8
9 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
10 of puts_filtered.
11
12 * i387-tdep.c (i387_print_float_info): Replace calls to
13 register_read and deprecated_read_register_gen with calls to
14 frame_register_read, and make the necessary adjustments to the
15 surrounding code.
16
17 2002-11-02 Andrew Cagney <ac131313@redhat.com>
18
19 * gdbarch.sh (register_reggroup_p): Allow default value.
20 * gdbarch.h, gdbarch.c: Regenerate.
21
22 2002-11-02 Andrew Cagney <ac131313@redhat.com>
23
24 * regcache.h: Add coment indicating replacements for deprecated
25 functions.
26
27 2002-11-02 Andrew Cagney <cagney@redhat.com>
28
29 * reggroups.h, reggroups.c: New files.
30 * regcache.c: Include "reggroups.h".
31 (enum regcache_dump_what): Add `regcache_dump_groups'.
32 (regcache_dump): Contract size of the "Type" column. When
33 specified, dump the register's groups.
34 (maintenance_print_register_groups): New function.
35 (_initialize_regcache): Add command `maint print register-groups'.
36 * Makefile.in (COMMON_OBS): Add reggroups.o
37 (SFILES): Add reggroups.c.
38 (reggroups_h): Define.
39 (regcache.o, gdbarch.o): Update dependencies.
40 (reggroups.o): Specify dependencies.
41 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
42 Add opaque declaration for `struct reggroup' in generated .h file.
43 Include "reggroups.h" in generated .c file.
44 gdbarch.h, gdbarch.c: Re-generate.
45
46 2002-11-02 Andrew Cagney <cagney@redhat.com>
47
48 * regcache.h (deprecated_read_register_gen): Rename
49 read_register_gen.
50 (deprecated_write_register_gen): Rename write_register_gen.
51 * i387-tdep.c: Update.
52 * x86-64-linux-nat.c: Update
53 * wince.c: Update.
54 * thread-db.c: Update.
55 * win32-nat.c: Update.
56 * mips-tdep.c: Update.
57 * d10v-tdep.c: Update.
58 * cris-tdep.c: Update.
59 * remote-sim.c: Update.
60 * remote-rdi.c: Update.
61 * remote-rdp.c: Update.
62 * frame.c: Update.
63 * target.c: Update.
64 * blockframe.c: Update.
65 * x86-64-tdep.c: Update.
66 * xstormy16-tdep.c: Update.
67 * sh-tdep.c: Update.
68 * s390-tdep.c: Update.
69 * rs6000-tdep.c: Update.
70 * sparc-tdep.c: Update.
71 * i386-tdep.c: Update.
72 * dwarf2cfi.c: Update.
73 * regcache.c: Update.
74
75 2002-11-01 Joel Brobecker <brobecker@gnat.com>
76
77 New interix-specific files:
78 * config/i386/nm-interix.h: New file.
79 * config/i386/interix.mh: New file.
80 * config/i386/interix.mt: New file.
81 * i386-interix-nat.c: New file.
82 * i386-interix-tdep.c: New file.
83
84 2002-11-01 Andrew Cagney <cagney@redhat.com>
85
86 * frame.h (deprecated_generic_get_saved_register): Rename
87 generic_get_saved_register.
88 * blockframe.c (deprecated_generic_get_saved_register): Update.
89 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
90 (xstormy16_frame_saved_register): Update.
91 * sh-tdep.c (sh_gdbarch_init): Update.
92 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
93 * ia64-tdep.c (ia64_get_saved_register): Update.
94 * cris-tdep.c (cris_gdbarch_init): Update.
95 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
96 * arm-tdep.c (arm_gdbarch_init): Update.
97
98 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
99
100 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
101
102 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
103
104 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
105 trampolines in sigaction.
106
107 2002-10-31 Andrew Cagney <cagney@redhat.com>
108
109 * h8300-tdep.c: Include "gdb_assert.h".
110 (h8300_print_register): Add gdbarch, file and frame parameters.
111 Use frame_read_unsigned_register to read the register's value.
112 Use fprintf_filtered to display output.
113 (h8300_print_registers_info): Replace h8300_do_registers_info.
114 (h8300_gdbarch_init): Set print_registers_info.
115
116 2002-10-31 Andrew Cagney <cagney@redhat.com>
117
118 * frame.c (frame_read_unsigned_register): New function.
119 (frame_read_signed_register): New function.
120 * frame.h (frame_read_unsigned_register): Declare.
121 (frame_read_signed_register): Declare.
122
123 2002-10-31 Andrew Cagney <cagney@redhat.com>
124
125 * h8500-tdep.c (h8500_print_registers_info): New static function,
126 clone of infcmd.c's default_print_registers_info.
127 (h8500_do_registers_info): New funtion.
128 (h8500_print_register_hook): Rename print_register_hook, make
129 static.
130
131 * config/h8500/tm-h8500.h: Update copyright.
132 (DEPRECATED_DO_REGISTERS_INFO): Define.
133 (h8500_do_registers_info: Declare.
134 (PRINT_REGISTER_HOOK): Delete macro.
135 (print_register_hook): Delete function.
136
137 2002-10-31 Andrew Cagney <cagney@redhat.com>
138
139 * z8k-tdep.c (z8k_print_register_hook): Make static.
140 (z8k_print_registers_info): New static function, clone of
141 infcmd.c's default_print_registers_info.
142 (z8k_do_registers_info): New function. Wrap
143 z8k_print_registers_info.
144 * config/z8k/tm-z8k.h: Update copyright.
145 (PRINT_REGISTER_HOOK): Delete macro.
146 (z8k_print_register_hook): Delete declaration.
147 (DEPRECATED_DO_REGISTERS_INFO): Define.
148 (z8k_do_registers_info): Declare.
149
150 2002-10-30 Joel Brobecker <brobecker@gnat.com>
151
152 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
153 as this is already provided by value.h, and was actually causing
154 a compilation error because of a conflict in parameter type
155 declaration due to a missing const keyword.
156 (low_text_segment_addres): Fix a compilation warning.
157
158 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
159
160 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
161 registers without a name.
162 (mips_linux_cannot_store_register): Don't store registers without
163 a name.
164
165 2002-10-28 David Carlton <carlton@math.stanford.edu>
166
167 * symtab.c (find_addr_symbol): Delete. (It was already commented
168 out.)
169 * symtab.h: Delete prototype for find_addr_symbol.
170
171 2002-10-26 Andrew Cagney <cagney@redhat.com>
172
173 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
174 DO_REGISTERS_INFO.
175 gdbarch.h, gdbarch.c: Re-generate.
176 * infcmd.c (default_print_registers_info): Update reference.
177 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
178 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
179 * sh-tdep.c (sh_gdbarch_init): Ditto.
180 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
182
183 2002-10-26 Mark Kettenis <kettenis@gnu.org>
184
185 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
186 cfi_init_extra_frame_info.
187 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
188 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
189
190 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
191 target where necessary. Add more comments and remove the ones
192 that don't provide any useful information.
193
194 * i386-tdep.c (i386_frame_saved_pc): Replace call to
195 deprecated_read_register_dummy with
196 frame_unwind_unsigned_register.
197
198 * i386-tdep.c (i386_extract_struct_value_address): Use
199 regcache_raw_read_unsigned instead of
200 regcache_cooked_read_unsigned since we know that the register
201 we're reading isn't a pseudo register. Rename variable 'val' into
202 the more descriptive 'addr'.
203
204 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
205 (x86_64_push_return_address): Add comment.
206 (x86_64_pop_frame): Make static.
207 (examine_argument): Clarify comment.
208 (x86_64_skip_prologue): Make prolog_expact variable static.
209
210 * dwarf2cfi.c: Fix some formatting problems.
211 (context_cpy, read_encoded_pointer): Clarify comments.
212
213 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
214 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
215 i386 target back into x86_64_gdbarch_init. Add some comments and
216 remove meaningless ones.
217
218 2002-10-25 Andrew Cagney <cagney@redhat.com>
219
220 * complaints.h (struct deprecated_complaint): Rename `struct
221 complaint'.
222 * complaints.c (complain): Update.
223 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
224 incorrect comment indicating that "symfile.h" was being included
225 for the `struct complaint' definition.
226 * remote-vx.c: Update.
227 * objc-lang.c: Update.
228 * xcoffread.c: Update.
229 * hpread.c: Update.
230 * mdebugread.c: Update.
231 * stabsread.c: Update.
232 * dwarf2read.c: Update.
233 * dwarfread.c: Update.
234 * elfread.c: Update.
235 * coffread.c: Update.
236 * stabsread.h: Update.
237 * dbxread.c: Update.
238 * buildsym.c: Update.
239 * gdbtypes.c: Update.
240 * macrotab.c: Update.
241
242 2002-10-25 Mark Kettenis <kettenis@gnu.org>
243
244 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
245 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
246 (x86_64_init_abi): ...new function.
247
248 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
249 * i386v-nat.c: Include "i386-tdep.h".
250
251 2002-10-25 Andrew Cagney <cagney@redhat.com>
252
253 * gdbtypes.c (address_space_name_to_int): Update.
254 (address_space_int_to_name): Update.
255 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
256 multi-arch predicate.
257 (address_class_name_to_type_flags): Ditto.
258 * gdbarch.h, gdbarch.c: Re-generate.
259
260 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
261
262 2002-10-24 Martin M. Hunt <hunt@redhat.com>
263
264 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
265
266 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
267
268 * symtab.h (INIT_SAL): Delete macro.
269 (init_sal): Export.
270 * symtab.c (init_sal): New function.
271
272 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
273 to init_sal function call.
274 (find_sal_from_funcs_and_line): Ditto.
275 (all_sals_for_line): Ditto.
276 * breakpoint.c (create_internal_breakpoint): Ditto.
277 (create_fork_vfork_event_catchpoint): Ditto.
278 (create_exec_event_catchpoint): Ditto.
279 (parse_breakpoint_sals): Ditto.
280 (watch_command_1): Ditto.
281 (handle_gnu_4_16_catch_command): Ditto.
282 (clear_command): Ditto.
283 * hppa-tdep.c (child_enable_exception_callback): Ditto.
284 * infcmd.c (run_stack_dummy): Ditto.
285 * infrun.c (process_event_stop_test): Ditto.
286 (check_sigtramp2): Ditto.
287 (step_over_function): Ditto.
288 * linespec.c (decode_line_2): Ditto.
289 (decode_line_1): Ditto.
290 * source.c (line_info): Ditto.
291 * symtab.c (find_pc_sect_line): Ditto.
292
293 2002-10-24 Michal Ludvig <mludvig@suse.cz>
294
295 * dwarf2cfi.c (struct context)
296 (struct context_reg): Moved to dwarf2cfi.h
297 (context_alloc, frame_state_alloc, context_cpy):
298 Made extern instead of static, removed prototypes.
299 * dwarf2cfi.h (struct context)
300 (struct context_reg): New, moved from dwarf2cfi.c
301 (context_alloc, frame_state_alloc, context_cpy):
302 New prototypes.
303 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
304 Changed from static to extern.
305 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
306 (LINUX_SIGCONTEXT_FP_OFFSET)
307 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
308 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
309 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
310 * x86-64-tdep.c (x86_64_gdbarch_init): Several
311 set_gdbarch_*() calls now use x86-64 specific functions
312 instead of DWARF2 CFI ones.
313 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
314 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
315 (x86_64_init_extra_frame_info): New prototypes.
316
317 2002-10-23 David Carlton <carlton@math.stanford.edu>
318
319 * linespec.c: #include "parser-defs.h".
320 Delete prototype for find_template_name_end.
321 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
322
323 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
324
325 * NEWS: add recent mi fixes.
326 * varobj.c (struct varobj): Add new "updated" flag.
327 (new_variable): Default "updated" flag to 0.
328 (varobj_set_value): Set "updated" flag to 1 if value
329 changes.
330 (varobj_update): Check varobj "updated" flag before
331 comparing old and refreshed values. Fix for
332 PR gdb/702.
333
334 2002-10-23 David Carlton <carlton@math.stanford.edu>
335
336 * parse.c (parse_exp_1): Use BLOCK_START.
337 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
338 SYMBOL_BLOCK_VALUE.
339 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
340
341 2002-10-23 David Carlton <carlton@math.stanford.edu>
342
343 * symtab.c: Delete cplusplus_hint.
344 Delete prototype for find_template_name_end.
345
346 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
347
348 * symtab.h: Update comment.
349
350 2002-10-23 Michael Snyder <msnyder@redhat.com>
351
352 * printcmd.c (address_info): Restore quotes in output.
353 * valops.c (value_of_local): Restore quotes in error message.
354
355 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
356
357 * symtab.c (symbol_demangled_name): New function.
358 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
359 turning most of it into a function.
360 (symbol_demangled_name): Export.
361
362 2002-10-23 Michael Snyder <msnyder@redhat.com>
363
364 * valops.c (value_of_local): Restore quotes in error message.
365
366 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
367
368 * symtab.c (symbol_init_language_specific): New function.
369 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
370 turning most of it into a function.
371 (symbol_init_language_specific): Export.
372
373 2002-10-23 David Carlton <carlton@math.stanford.edu>
374
375 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
376 (dwarf_attr_name): Ditto.
377 (dwarf_type_encoding_name): Ditto.
378 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
379 (process_die): Handle DW_TAG_namespace,
380 DW_TAG_imported_declaration, DW_TAG_imported_module.
381 (read_namespace): New function.
382
383 2002-10-22 Joel Brobecker <brobecker@gnat.com>
384
385 * configure.in: Define NEW_PROC_API on Interix too.
386 * configure: Regenerate.
387
388 2002-10-21 Joel Brobecker <brobecker@gnat.com>
389
390 * configure: Regenerate using the proper version of autoconf.
391
392 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
393
394 * findvar.c (read_var_value): Temporarily disable TLS code, until
395 complete TLS support is added.
396
397 2002-10-21 Jim Blandy <jimb@redhat.com>
398 Elena Zannoni <ezannoni@redhat.com>
399
400 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
401 for thread local storage locations.
402 (struct symbol): Add objfile field.
403 (SYMBOL_OBJFILE): Define.
404 * dwarf2read.c (is_thread_local): New static variable.
405 (new_symbol): If variable is in thread local fill in address class
406 and objfile appropriately.
407 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
408 stack operation.
409 * printcmd.c (address_info): Print the information for thread
410 local storage variable.
411 * findvar.c (read_var_value): In case of thread local variable,
412 defer to the target vector code to compute address.
413
414 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
415
416 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
417 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
418
419 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
420
421 * symtab.h (address_class): Rename
422 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
423 * hpread.c (hpread_process_one_debug_symbol): Ditto.
424 * printcmd.c (address_info): Ditto.
425 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
426
427 2002-10-20 Mark Kettenis <kettenis@gnu.org>
428
429 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
430 DBREG_DRX macro to acces debug registers.
431
432 * Makefile.in (i386obsd-tdep.o): New target.
433
434 * solib-sunos.c: Include "bcache.h" and "regcache.h".
435 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
436
437 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
438 * config/i386/obsd.mt: New file.
439 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
440 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
441 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
442 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
443 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
444 * i386obsd-tdep.c: New file.
445
446 2002-10-19 Adam Fedor <fedor@gnu.org>
447
448 * objc-exp.y (name_not_typename): Fix invalid comment.
449
450 2002-10-20 Mark Kettenis <kettenis@gnu.org>
451
452 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
453 to allocate partial syms and macro byte caches.
454
455 2002-10-18 David Carlton <carlton@math.stanford.edu>
456
457 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
458
459 2002-10-18 Adam Fedor <fedor@gnu.org>
460
461 * stabsread.c (find_name_end): New function.
462 (define_symbol): Use it.
463
464 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
465
466 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
467 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
468 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
469 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
470
471 2002-10-17 David Carlton <carlton@math.stanford.edu>
472
473 * symfile.h: Add opaque declaration for struct obstack.
474 Declare obsavestring to take a const char *.
475 * symfile.c (obsavestring): Make first argument a const char *.
476
477 2002-10-16 Adam Fedor <fedor@gnu.org>
478
479 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
480 names when matching breakpoints in current file.
481
482 2002-10-16 Kevin Buettner <kevinb@redhat.com>
483
484 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
485 (read_tag_pointer_type): Add address class support.
486 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
487 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
488 New methods.
489 * gdbarch.h, gdbarch.c: Regenerate.
490 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
491 (make_type_with_address_space, recursive_type_dump): Add address
492 class support.
493 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
494 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
495 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
496
497 2002-10-16 Klee Dienes <kdienes@apple.com>
498
499 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
500 to get the last character of a char[] buffer, not
501 name[sizeof(vptr_name)-1].
502
503 2002-10-14 Adam Fedor <fedor@gnu.org>
504
505 * symtab.h: New objc_specific struct.
506 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
507 (SYMBOL_DEMANGLED_NAME): Likewise.
508
509 2002-10-14 Adam Fedor <fedor@gnu.org>
510
511 * symfile.c (init_filename_language_table): Add ObjC file extension.
512
513 2002-10-14 Adam Fedor <fedor@gnu.org>
514
515 * utils.c (puts_filtered_tabular): New function.
516 (fprintf_symbol_filtered): Get ObjC demangled name.
517 * defs.h (puts_filtered_tabular): Declared.
518
519 2002-10-14 Kevin Buettner <kevinb@redhat.com>
520
521 * c-lang.h (c_type_print_varspec_prefix): Delete.
522 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
523 ``need_post_space'' parameter. Adjust all callers.
524
525 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
526
527 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
528 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
529 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
530 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
531
532 2002-10-13 Adam Fedor <fedor@gnu.org>
533
534 * source.c (print_source_lines): Update comments.
535
536 2002-10-13 Adam Fedor <fedor@gnu.org>
537
538 * valops.c (value_of_local): New function.
539 (value_of_this): Use it.
540 * value.h (value_of_local): Declared.
541
542 2002-10-13 Adam Fedor <fedor@gnu.org>
543
544 * parse.c: (length_of_subexp, prefixify_subexp): Handle
545 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
546
547 2002-10-12 Adam Fedor <fedor@gnu.org>
548
549 * language.c (binop_result_type): Add language_objc to case.
550 (integral_type): Likewise.
551 (character_type): Likewise.
552 (string_type): Likewise.
553 (boolean_type): Likewise.
554 (structured_type): Likewise.
555 (binop_type_check): Likewise.
556
557 2002-10-11 Adam Fedor <fedor@gnu.org>
558
559 * printcmd.c (address_info): Print 'self' for ObjC.
560
561 2002-10-11 Adam Fedor <fedor@gnu.org>
562
563 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
564 OP_SELF.
565
566 2002-10-11 Adam Fedor <fedor@gnu.org>
567
568 * language.h (CAST_IS_CONVERSION): Add language_objc.
569
570 2002-10-11 Adam Fedor <fedor@gnu.org>
571
572 * defs.h (enum language): Add language_objc.
573
574 2002-10-11 Klee Dienes <kdienes@apple.com>
575
576 * corefile.c (read_memory_typed_address): New function.
577 * gdbcore.h (read_memory_typed_address): Add prototype.
578 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
579 to read a value destined for a CORE_ADDR, not read_memory_integer.
580 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
581 (f77_get_dynamic_lowerbound): Ditto.
582
583 2002-10-11 Martin M. Hunt <hunt@redhat.com>
584
585 * utils.c (string_to_core_addr): After turning string into
586 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
587 which will do necessary sign-extension, etc.
588
589 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
590
591 * c-exp.y (THIS): Delete token and grammar rule.
592 (yylex): Don't return THIS.
593 * cp-valprint.c (vtbl_ptr_name_old): Delete.
594 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
595 * demangle.c (cplus_markers): Update comment. Put '$'
596 first. Remove CPLUS_MARKER.
597 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
598 * jv-exp.y (THIS): Delete token and grammar rule.
599 (yylex): Don't return THIS.
600 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
601 * objc-exp.y (THIS): Delete token and grammar rule.
602 (yylex): Don't return THIS.
603 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
604 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
605 (read_member_functions): Likewise for opname.
606 (read_tilde_fields): Use is_cplus_marker.
607
608 * defs.h (CPLUS_MARKER): Don't define.
609 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
610 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
611 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
612 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
613 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
614
615 * config/i386/tm-i386v4.h: Delete file.
616 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
617 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
618 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
619 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
620 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
621 * config/i386/i386sco5.mt (TM_FILE): Likewise.
622 * config/i386/i386v4.mt (TM_FILE): Likewise.
623 * config/i386/ncr3000.mt (TM_FILE): Likewise.
624
625 2002-10-10 Marko Mlinar <markom@opencores.org>
626
627 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
628 accidentially not commited 2002-10-09
629 * gdbarch.h, gdbarch.c: Re-generate.
630
631 2002-10-09 Marko Mlinar <markom@opencores.org>
632
633 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
634 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
635 * gdbarch.h, gdbarch.c: Re-generate.
636
637 2002-10-08 Petr Sorfa <petrs@caldera.com>
638
639 Revised and re-submitted by John Wolfe <jlw@caldera.com>
640
641 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
642 so we can work on more than one compilation unit at a time. This
643 helps prepare GDB to handle inter-CU die references.
644 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
645 the code to be defined before struct comp_unit_head.
646 (comp_unit_head): Added new members - offset, cu_head,
647 begin_die, next and dwarf2_abbrevs.
648 (dwarf2_abbrevs): Removed single static var; now member of
649 struct comp_unit_head.
650 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
651 members.
652 (psymtab_to_symtab_1): Changed to work with the new
653 struct comp_unit_head.
654 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
655 constructs the dwarf2_abbrevs[] inside the cu_header.
656 (dwarf2_empty_abbrev_table): Now expects a ptr to a
657 dwarf2_abbrev table to clean up.
658 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
659 handling of dwarf2_abbrevs inside the cu_header.
660 (read_partial_die): Now supports the call to the new
661 dwarf2_lookup_abbrev.
662 (read_full_die): Now supports the call to the new
663 dwarf2_lookup_abbrev.
664
665 2002-10-06 Christopher Faylor <cgf@redhat.com>
666
667 * Makefile.in (install-gdbtk): Add missing continuation backslash to
668 insure that shell variables, such as "transformed_name" are propagated
669 to later shell statements in rule.
670
671 2002-10-06 Mark Kettenis <kettenis@gnu.org>
672
673 * config/i386/nm-i386sco.h: Add protection against
674 multiple-inclusion. Include "i386/nm-i386v.h".
675 (REGISTER_U_ADDR): Remove define.
676 (i386_register_u_addr): Remove prototype.
677
678 2002-10-04 Michael Snyder <msnyder@redhat.com>
679
680 * m32r-stub.c (handle_exception): Make sure exception is "trap"
681 before treating it as a single-step event.
682
683 2002-10-03 Adam Fedor <fedor@gnu.org>
684
685 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
686 (objc_demangle): Remove assignment in if statements, Replace
687 free with xfree.
688 (add_msglist): Likewise.
689 (end_msglist): Likewise.
690 (complare_selectors): Likewise.
691 (selectors_info): Likewise.
692 (compare_classes): Likewise.
693 (classes_info): Likewise.
694 (print_object_command): Likewise.
695 (find_objc_msgcall_submethod): Replace PTR with void *.
696 * objc-lang.h: Remove check for __STDC__.
697
698 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
699
700 * ui-out.h (ui_out_field_fmt_int): New prototype.
701 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
702 of field width and alignment.
703 * stack.c (print_frame_info_base): When printing frame level, use
704 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
705 PR gdb/192
706
707 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
708
709 * MAINTAINERS: Add self to Write After Approval list.
710
711 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
712
713 * infcmd.c (interrupt_target_command_wrapper): Delete.
714 (interrupt_target_command): Make non static.
715 (nofp_registers_info): Make static.
716 * stack.c (return_command_wrapper): Delete.
717 (return_command): Make non static.
718
719 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
720
721 * event-top.c (gdb_setup_readline): New function. Code moved from
722 _initialize_event_loop().
723 (_initialize_event_loop): Call gdb_setup_readline().
724
725 2002-10-02 Andrew Cagney <ac131313@redhat.com>
726
727 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
728 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
729 * gdbarch.h, gdbarch.c: Re-generate.
730
731 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
732
733 Fix PR gdb/778
734 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
735 before recursing.
736 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
737 of fill_in_vptr_fieldno.
738
739 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
740
741 * inferior.h (registers_info, stepi_command, nexti_command,
742 continue_command, interrupt_target_command): Export from infcmd.c.
743 * frame.h (args_info, selected_frame_level_changed_hook,
744 return_command): Export from stack.c.
745 * v850ice.c (stepi_command, nexti_command, continue_command): use
746 prototypes from inferior.h.
747 * tracepoint.c (registers_info, args_info, locals_info): Use
748 prototypes from frame.h and inferior.h.
749 * Makefile.in (mi-main.o): Add dependency on frame.h.
750
751 2002-10-02 Andrew Cagney <ac131313@redhat.com>
752
753 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
754 value in register 3 adjusted by ppc_gp0_regnum.
755
756 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
757
758 2002-10-02 Marko Mlinar <markom@opencores.org>
759
760 * MAINTAINERS: Add myself to the Write After Approval list.
761
762 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
763
764 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
765 of the section for the N64 ABI, fixed.
766
767 * config/mips/tm-irix6.h: Include solib.h.
768
769 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
770
771 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
772 GNU operators.
773
774 2002-10-01 Andrew Cagney <ac131313@redhat.com>
775
776 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
777 and that "mi0" syntax has been removed.
778
779 2002-09-30 David Carlton <carlton@math.stanford.edu>
780
781 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
782 * ppc-sysv-tdep.c: #include "gdb_string.h".
783 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
784 pacify GCC.
785
786 2002-10-01 Andrew Cagney <ac131313@redhat.com>
787
788 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
789 "vrsave"'s register number.
790
791 2002-09-30 Andrew Cagney <ac131313@redhat.com>
792
793 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
794 use frame_unwind_signed_register to obtain the PC.
795 (mips_frame_chain): Handle a generic dummy frame.
796 (mips_init_extra_frame_info): When a generic dummy frame, don't
797 re-compute the frame base.
798 (mips_pop_frame): Handle generic dummy frames.
799 (mips_gdbarch_init): When generic dummy frames, set
800 use_generic_dummy_frames, push_dummy_frame to
801 generic_push_dummy_frame, pc_in_call_dummy to
802 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
803 generic_save_dummy_frame_tos.
804
805 2002-09-30 Andrew Cagney <ac131313@redhat.com>
806
807 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
808 against TOP when TOP was explictly set.
809 (generic_push_dummy_frame): Set TOP to zero.
810
811 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
812
813 * event-loop.c (start_event_loop): Rename variable 'result' to
814 'gdb_result', to avoid conflicts with upcoming intepreters changes.
815
816 2002-09-30 Keith Seitz <keiths@redhat.com>
817
818 * gdb-events.sh (selected_thread_changed): New event.
819 * gdb-events.c: Regenerated.
820 * gdb-events.h: Regenerated.
821
822 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
823
824 * MAINTAINERS: Add self to Write After Approval list.
825
826 2002-09-30 Fernando Nasser <fnasser@redhat.com>
827
828 * disasm.c: New file.
829 * disasm.h: New file.
830 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
831 (compare_lines): Ditto.
832 (dump_insns): Ditto.
833 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
834 argument.
835 (do_assembly_only): Ditto.
836 (do_disassembly): Renamed to gdb_disassembly and moved to
837 disasm.c. Sdded uiout argument.
838 * Makefile.in: Add new files. Reorder SFILES list. Update
839 dependencies. Include libgdb.a later in the insight executable.
840
841 2002-09-29 Andrew Cagney <ac131313@redhat.com>
842
843 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
844 bfd/elf64-alpha-fbsd.c.
845
846 2002-09-29 Andrew Cagney <ac131313@redhat.com>
847
848 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
849 i386gnu-tdep.c.
850
851 2002-09-29 Andrew Cagney <ac131313@redhat.com>
852
853 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
854 __FUNCTION__.
855 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
856 function name.
857 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
858 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
859 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
860 (S_msg_sig_post_reply): Ditto.
861
862 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
863
864 * sh-tdep.c (sh_use_struct_convention): Use definition according
865 to ABI.
866 (sh_push_arguments): Store in register with correct endianess.
867 (sh_default_store_return_value): Ditto.
868 (sh_gdbarch_init): Set sizeof long double to 8.
869
870 2002-09-27 Mark Kettenis <kettenis@gnu.org>
871
872 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
873 Fix some whitespace problems.
874
875 2002-09-27 David Carlton <carlton@math.stanford.edu>
876
877 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
878 (mcore-tdep.o): Ditto.
879 (ns32k-tdep.o): Ditto.
880 (ns32knbsd-tdep.o): Ditto.
881 (sh3-rom.o): Ditto.
882 (vax-tdep.o): Ditto.
883 * cris-tdep.c: #include "gdb_string.h"
884 * mcore-tdep.c: Ditto.
885 * ns32k-tdep.c: Ditto.
886 * ns32knbsd-tdep.c: Ditto.
887 * sh3-rom.c: Ditto.
888 * vax-tdep.c: Ditto.
889
890 2002-09-27 David Carlton <carlton@math.stanford.edu>
891
892 * config/djgpp/fnchange.lst: Add entries for
893 gdb/testsuite/gdb.c++/m-static files.
894
895 2002-09-27 Jim Wilson <wilson@redhat.com>
896
897 * MAINTAINERS: Add myself to the Write After Approval list.
898
899 2002-09-26 Martin M. Hunt <hunt@redhat.com>
900
901 * mips-tdep.c (find_proc_desc): Initialize startaddr.
902
903
904 2002-09-26 Andrew Cagney <ac131313@redhat.com>
905
906 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
907 frame.
908
909 2002-09-26 Andrew Cagney <ac131313@redhat.com>
910
911 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
912 (rs6000_struct_return_address): Delete variable.
913 (rs6000_store_struct_return): Update.
914 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
915 deprecated_extract_struct_value_address.
916 (rs6000_frame_align): New function.
917 (rs6000_gdbarch_init): Set frame_align.
918
919 2002-09-26 Andrew Cagney <ac131313@redhat.com>
920
921 From Grace Sainsbury <graces@redhat.com>:
922 * Makefile.in (gdbtk-main.o): New target.
923 (gdb.o): New target.
924 (main_h): Define.
925 (main.o): Update dependencies.
926 (gdb$(EXEEXT)): Add gdb.o.
927 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
928 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
929 (SUBDIR_GDBTK_CLEAN): Set.
930 (install-gdbtk): Install the insight binary.
931 (uninstall-gdbtk): New target.
932 (all-gdbtk, clean-gdbtk): New rule.
933 * top.c (use_windows): Default to zero.
934 * main.c: Include "main.h".
935 (main): Delete.
936 (struct captured_main_args): Delete.
937 (gdb_main): New function.
938 * main.h: New file.
939 * gdb.c: New File.
940
941 2002-09-25 Andrew Cagney <cagney@redhat.com>
942
943 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
944 (frame_map_regnum_to_name): New function.
945 (frame_map_name_to_regnum): New function.
946 * frame.h (frame_map_name_to_regnum): Declare.
947 (frame_map_regnum_to_name): Declare.
948 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
949 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
950 * parse.c: Do not include "builtin-regs.h".
951 (target_map_name_to_register): Delete function.
952 (write_dollar_variable): Use frame_map_name_to_regnum.
953 * parser-defs.h (target_map_name_to_register): Delete declaration.
954 * expprint.c: Include "frame.h".
955 (print_subexp): Use frame_map_regnum_to_name.
956 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
957 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
958
959 2002-09-25 Andrew Cagney <ac131313@redhat.com>
960
961 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
962 wasn't saved, and the next innermost frame is a dummy, return the
963 dummy frame's link register.
964
965 2002-09-24 Jim Blandy <jimb@redhat.com>
966
967 Fix from Paul Breed:
968 * main.c (captured_main): Add a `break' after the case for 'b'.
969
970 2002-09-24 Keith Seitz <keiths@redhat.com>
971
972 * varobj.c (c_type_of_child): Use get_target_type instead
973 of TYPE_TARGET_TYPE.
974
975 2002-09-22 Fernando Nasser <fnasser@redhat.com>
976
977 * source.c (get_current_or_default_source_symtab_and_line): Remove
978 function.
979 (set_default_source_symtab_and_line): New function. Attempts to
980 determine a source file to list lines from if one is not currently
981 defined.
982 (get_current_source_symtab_and_line): Initialize sal.pc and
983 sal.end fields.
984 (set_current_source_symtab_and_line): Mark argument as const.
985 * source.h: Update declarations and comments.
986 * linespec.c (decode_line_1): Replace call to removed routine above.
987 * stack.c (print_frame_info_base): Ditto.
988 * cli/cli-cmds.c (edit_command): Ditto.
989 (list_command): Ditto.
990
991 2002-09-22 Fernando Nasser <fnasser@redhat.com>
992
993 * source.c (get_current_or_default_source_symtab_and_line): Initialize
994 sal.pc and sal.end fields.
995 (get_current_or_default_source_symtab_and_line): Ditto.
996 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
997 so we do not cause a new source symtab to be searched for (reverting an
998 unintentional change from the 2002-09-20 patch).
999 * scm-lang.c (scm_unpac): Ditto.
1000
1001 2002-09-21 Andrew Cagney <cagney@redhat.com>
1002
1003 * complaints.c (symfile_explanations): Remove new-line from
1004 ``isolated_message''.
1005 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1006 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1007
1008 2002-09-20 Nick Clifton <nickc@redhat.com>
1009
1010 * NEWS: Announce that V850EA ISA is no longer supported.
1011 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1012
1013 2002-09-20 David Carlton <carlton@math.stanford.edu>
1014
1015 * Makefile.in (c-lang.o): Correct dependencies.
1016 (utils.o): Gather dependencies.
1017 (charset.o): Move.
1018 * c-lang.c: #include "gdb_string.h"
1019
1020 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1021
1022 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1023 * cli/cli-cmds.c (list_command): New function. Implements the new
1024 cli edit command.
1025 (_init_cli_cmds): Add new command definition.
1026 * gdb.1: Document edit command.
1027 * doc/gdb.texinfo: Document edit command.
1028
1029 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1030
1031 * source.c: Make global variables current_source_symtab and
1032 current_source_line static.
1033 (list_command): Moved to cli/cli-cmds.c.
1034 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1035 (get_first_line_listed): New accessor function.
1036 (get_lines_to_list): New accessor function.
1037 (get_current_source_symtab_and_line): New function. Retrieves the
1038 position in the source code that we consider current.
1039 (get_current_or_default_source_symtab_and_line): New function.
1040 Like the above but attempts to determine a default position if one
1041 is not currently defined.
1042 (set_current_source_symtab_and_line): New function. Sets the source
1043 code position considered current and returns the previously set one.
1044 (clear_current_source_symtab_and_line): Reset stored information about
1045 a current source line.
1046 (_initialize_source): Remove registration for the "list" command and
1047 its alias.
1048 * source.h: Add declarations for the new functions above.
1049 * symtab.h: Remove declarations for the global variables mentioned
1050 above.
1051 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1052 obtain current source line.
1053 * linespec.c (decode_line_1): Ditto.
1054 * macroscope.c (default_macro_scope): Ditto.
1055 * scm-lang.c (scm_unpac): Ditto.
1056 * stack.c (print_frame_info_base): Ditto.
1057 * symfile.c (clear_symtab_users): Ditto.
1058 * symtab.c (decode_line_spec): Ditto.
1059 * cli/cli-cmds.c (list_command): Moved here from source.c.
1060 (ambiguous_line_spec): Moved here from source.c.
1061 (_init_cli_cmds): Add definition for "list" and its alias.
1062 * Makefile.in: Update dependencies.
1063
1064 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1065
1066 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1067 with what gcc thinks is correct.
1068
1069 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1070
1071 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1072 multiple register push instruction.
1073
1074 2002-09-19 Jim Blandy <jimb@redhat.com>
1075
1076 Add support for distinct host and target character sets.
1077 * charset.c, charset.h: New files.
1078 * c-exp.y: #include "charset.h".
1079 (yylex): Convert character and string literals to the target
1080 character set, before returning them as the semantic value of the
1081 token.
1082 * c-lang.c: #include "charset.h".
1083 (c_emit_char): Use charset-specific methods to recognize
1084 characters with backslash escape forms, to decide which characters
1085 to print literally and which to print using numeric escape
1086 sequences, and to convert target characters to host characters
1087 before printing.
1088 * utils.c: #include "charset.h".
1089 (no_control_char_error): New function.
1090 (parse_escape): Use charset-specific methods to recognize
1091 backslash escapes, parse `control character' notation, and convert
1092 characters from the host character set to the target character set.
1093 * configure.in: Set the default host character set.
1094 Check where to find iconv, and what its argument types might be.
1095 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1096 * Makefile.in (SFILES): List charset.c.
1097 (COMMON_OBS): List charset.o.
1098 (charset.o): New rule.
1099 (charset_h): New header dependency variable.
1100 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1101 (LIBICONV): New variable, set by configure.
1102 (CLIBS): Include $(LIBICONV) here.
1103 * aclocal.m4, config.in, configure: Regenerated.
1104
1105 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1106
1107 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1108 bison 1.35 warning.
1109
1110 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1111
1112 * gdb_mbuild.sh: New file.
1113
1114 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1115
1116 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1117
1118 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1119
1120 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1121 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1122 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1123 valops.c, value.h: Revert previous change.
1124
1125 2002-09-18 Michael Snyder <msnyder@redhat.com>
1126
1127 Preliminary support for Objective-C:
1128 * defs.h (language_objc): New enum value.
1129 (puts_filtered_tabular): Declaration only, exported from utils.c.
1130 (skip_quoted): Delete, declared in completer.h.
1131 * c-exp.y: Include completer.h.
1132 * p-exp.y: Ditto.
1133 * jv-exp.y: Ditto.
1134 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1135 New operator enum values.
1136 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1137 * language.c (binop_result_type): Handle language_objc case.
1138 (integral_type, character_type, string_type, boolean_type,
1139 structured_type, binop_type_check): Ditto.
1140 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1141 (struct objc_specific): Add to general_symbol_info.
1142 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1143 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1144 * parser-defs.h (struct objc_class_str): New struct type.
1145 (start_msglist, end_msglist, add_msglist): Declaration only,
1146 exported from objc-lang.c.
1147 * value.h (value_of_local, value_nsstring,
1148 call_function_by_hand_expecting_type): Exported from valops.c.
1149 * valops.c (find_function_addr): Export.
1150 (call_function_by_hand_expecting_type): New function.
1151 (value_of_local): New function.
1152 * symfile.c (init_filename_language_table): Add ".m" extension
1153 for Objective-C.
1154 * utils.c (puts_filtered_tabular): New function.
1155 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1156 (set/show demangle): Extend help-string to refer to ObjC.
1157 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1158 * stabsread.c (symbol_reference_defined): Objective-C symbols
1159 may contain colons: make allowances when scanning stabs strings
1160 for colons.
1161 (objc_find_colon): New function.
1162 * printcmd.c (address_info): If language == objc then print
1163 "self" instead of "this".
1164 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1165 OP_NSSTRING, and OP_SELF.
1166 (prefixify_subexp): Ditto.
1167 * source.c (print_source_lines): Mention objc in comment.
1168 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1169 method names.
1170
1171 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1172
1173 * complaints.h: Update copyright.
1174 (struct complaints): Declare.
1175 (struct complaint): Make `message' constant.
1176 (internal_complaint): Declare.
1177 (complaint): Declare.
1178 (complaint_root): Delete declaration.
1179 (symfile_complaints): Delete declaration.
1180 (struct complaints): Add opaque declaration.
1181 (clear_complaints): Add a complaints parameter.
1182 * complaints.c: Update copyright.
1183 (enum complaint_series): Define.
1184 (complaint_root): Delete.
1185 (struct complaints): Define.
1186 (complaint_sentinel, symfile_complaint_book): New variables.
1187 (symfile_explanations, symfile_complaints): New variables.
1188 New variables.
1189 (get_complaints): New function.
1190 (vcomplaint): New function.
1191 (complaint): New function.
1192 (internal_complaint): New function.
1193 (complain): Call vcomplain with symfile_complaint.
1194 (clear_complaints): Rewrite.
1195 (_initialize_complaints): Use add_setshow_command.
1196 * Makefile.in (complaints.o): Update dependencies.
1197 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1198 to call to clear_complaints.
1199 (new_symfile_objfile, reread_symbols): Ditto.
1200 (oldsyms_complaint): Delete.
1201 (empty_symtab_complaint, unknown_option_complaint): Delete.
1202 (free_named_symtabs): Use complaint instead of complain.
1203
1204 2002-09-18 Michael Snyder <msnyder@redhat.com>
1205
1206 Contributed by Apple Computer, Inc. Merged with current sources
1207 by Adam Fedor <fedor@doc.com> [cagney].
1208
1209 * objc-lang.c: First clean-up round: comments, indentation.
1210 * objc-lang.h: Ditto.
1211 * objc-lang.y: Ditto.
1212
1213 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1214
1215 * maint.c (maintenance_internal_error): Print the parameter as the
1216 error message.
1217 (maintenance_internal_warning): New function.
1218 (_initialize_maint_cmds): Add command `maint internal-warning'.
1219
1220 * defs.h (internal_warning, internal_vwarning): Declare.
1221 * utils.c (struct internal_problem): Define.
1222 (internal_vproblem): New function.
1223 (internal_warning): New function.
1224 (internal_vwarning): New function.
1225 (internal_warning_problem, internal_error_problem): New variables.
1226 (internal_verror): Just call internal_vproblem.
1227
1228 2002-09-18 Michael Snyder <msnyder@redhat.com>
1229
1230 * objc-lang.c: New file, support for Objective-C.
1231 Preliminary check-in, not yet integrated into gdb.
1232 * objc-lang.h: New file.
1233 * objc-exp.y: New file.
1234
1235 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1236
1237 * infrun.c (signal_stop_update): Convert definition to ISO C.
1238 (signal_print_update): Ditto.
1239 (signal_pass_update): Ditto.
1240 * inflow.c (terminal_save_ours): Ditto.
1241
1242 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1243 comments.
1244
1245 * config/djgpp/fnchange.lst: Handle name clashes between
1246 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1247 bfd/coff-tic80.c.
1248
1249 * i386-linux-tdep.h: Fix tipo.
1250
1251 2002-09-18 Adam Fedor <fedor@gnu.org>
1252
1253 * MAINTAINERS: Add myself to the Write After Approval list.
1254
1255 2002-09-18 Jim Blandy <jimb@redhat.com>
1256
1257 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1258 texthigh and textlow to reader-specific structs caused
1259 objfile_relocate to miss them. This is fixable, but the work that
1260 the change was supposed to prepare GDB for never got done anyway.
1261
1262 2002-09-18 David Carlton <carlton@math.stanford.edu>
1263
1264 * MAINTAINERS: Alphabetize Write After Approval list.
1265
1266 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1267
1268 Fix PR gdb/709
1269 * values.c (value_static_field): Call read_var_value.
1270
1271 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1272
1273 * valops.c (hand_function_call): Align the initial stack pointer
1274 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1275 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1276 return value.
1277 * mips-tdep.c (mips_frame_align): New function.
1278 (mips_gdbarch_init): Set frame_align.
1279 * gdbarch.sh (FRAME_ALIGN): New method.
1280 * gdbarch.h, gdbarch.c: Re-generate.
1281
1282 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1283
1284 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1285 registers.
1286
1287 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1288
1289 * NEWS: Mention that MIPS $fp behavior changed.
1290 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1291 reference to FP_REGNUM.
1292 (mipsnbsd_cannot_store_register): Ditto.
1293 * mips-linux-nat.c: Update copyright.
1294 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1295 (mips_linux_cannot_store_register): Ditto.
1296 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1297 * config/mips/tm-mips.h: Update copyright.
1298 (FP_REGNUM): Delete macro.
1299 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1300 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1301 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1302 (mips_r3041_reg_names, mips_r3051_reg_names)
1303 (mips_r3081_reg_names): Replace "fp" with "".
1304 Fix PR gdb/480.
1305
1306 2002-09-17 Theodore A. Roth <troth@verinet.com>
1307
1308 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1309 generic_read_register_dummy() (PR gdb/703).
1310 (avr_push_return_address): #if 0 out unused vars.
1311 (avr_gdbarch_init): Enable use of avr_push_return_address().
1312
1313 2002-09-17 Michael Snyder <msnyder@redhat.com>
1314
1315 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1316 RTE will take care of it.
1317
1318 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1319
1320 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1321 invalid, return SP_REGNUM.
1322
1323 2002-09-17 Michael Snyder <msnyder@redhat.com>
1324
1325 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1326 point registers without sign extension.
1327
1328 2002-09-17 Andrew Cagney <cagney@redhat.com>
1329
1330 * blockframe.c (deprecated_read_register_dummy): Rename
1331 generic_read_register_dummy.
1332 * frame.c (frame_unwind_signed_register): New function.
1333 (frame_unwind_unsigned_register): New function.
1334 * frame.h (frame_unwind_signed_register): Declare.
1335 (frame_unwind_unsigned_register): Declare.
1336 (deprecated_read_register_dummy): Rename
1337 generic_read_register_dummy.
1338
1339 * h8300-tdep.c (h8300_frame_chain): Update.
1340 (h8300_frame_saved_pc): Update.
1341 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1342 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1343 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1344 (s390_frame_chain): Update.
1345 * v850-tdep.c (v850_find_callers_reg): Update.
1346 (v850_frame_saved_pc): Update.
1347 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1348 (m32r_find_callers_reg): Update.
1349 (m32r_frame_saved_pc): Update.
1350 * sh-tdep.c (sh_find_callers_reg): Update.
1351 (sh64_get_saved_pr): Update.
1352 (sh_init_extra_frame_info): Update.
1353 (sh_init_extra_frame_info): Update.
1354 (sh64_init_extra_frame_info): Update.
1355 (sh64_init_extra_frame_info): Update.
1356 * mcore-tdep.c (mcore_find_callers_reg): Update.
1357 (mcore_frame_saved_pc): Update.
1358 (mcore_init_extra_frame_info): Update.
1359 * i386-tdep.c (i386_frame_saved_pc): Update.
1360 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1361 (ia64_init_extra_frame_info): Update.
1362 (ia64_init_extra_frame_info): Update.
1363 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1364 * cris-tdep.c (cris_init_extra_frame_info): Update.
1365 * avr-tdep.c (avr_frame_chain): Update.
1366 (avr_init_extra_frame_info): Update.
1367 (avr_frame_saved_pc): Update.
1368 * arm-tdep.c (arm_find_callers_reg): Update.
1369 (arm_init_extra_frame_info): Update.
1370 (arm_frame_saved_pc): Update.
1371
1372 2002-09-17 Tom Tromey <tromey@redhat.com>
1373
1374 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1375 is "'".
1376
1377 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1378
1379 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1380 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1381 NEXT_PROLOGUE_INSN.
1382 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1383 NEXT_PROLOGUE_INSN.
1384
1385 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1386
1387 * osfsolib.c: Remove file, replaced by solib-osf.c.
1388 * Makefile.in: Remove compilation rules for osfsolib.c.
1389
1390 2002-09-16 David Carlton <carlton@math.stanford.edu>
1391
1392 * cp-valprint.c (cp_print_class_method): Correct args to
1393 check_stub_method_group.
1394
1395 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1396
1397 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1398 `set architecture'. Unify naming convention of functions.
1399 (h8300_skip_prologue): Improve prologue analysis.
1400 (h8300_push_arguments): Rewritten to more closely match GCC's
1401 bizarre argument-passing behavior, along with the comment describing
1402 said behavior.
1403 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1404 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1405 sim, remote-e7000.c, remote-hms.c and remote.c
1406
1407 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1408
1409 * i386-tdep.c (gdb_print_insn_i386): Removed.
1410 (i386_print_insn): New function.
1411 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1412 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1413 tm_print_insn_info.
1414
1415 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1416
1417 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1418 zero.
1419
1420 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1421
1422 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1423 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1424 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1425
1426 2002-09-13 Christopher Faylor <cgf@redhat.com>
1427
1428 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1429
1430 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1431
1432 * gdbtypes.c (check_stub_method): Make static.
1433 (check_stub_method_group): New function.
1434 * gdbtypes.h: Update prototypes.
1435 * cp-support.c: New file.
1436 * cp-support.h: New file.
1437
1438 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1439 (update_method_name_from_physname): New function.
1440 (read_member_functions): Correct method names for operators
1441 and v3 constructors/destructors. Separate v2 constructors and
1442 destructors.
1443 * Makefile.in (stabsread.o): Update dependencies.
1444 (SFILES): Add cp-support.c.
1445 (COMMON_OBS): Add cp-support.o.
1446 (cp_support_h, cp-support.o): Add.
1447
1448 * cp-valprint.c (cp_print_class_method): Call
1449 check_stub_method_group instead of check_stub_method. Remove
1450 extraneous QUITs.
1451 * p-valprint.c (pascal_object_print_class_method): Likewise.
1452 * valops.c (search_struct_method): Likewise.
1453 (find_method_list, value_struct_elt_for_reference): Likewise.
1454
1455 2002-09-13 Andrew Cagney <cagney@redhat.com>
1456
1457 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1458 * gdbarch.h, gdbarch.c: Regenerate.
1459
1460 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1461
1462 * frame.c (find_saved_register): Delete function.
1463 * frame.h (find_saved_register): Delete declaration.
1464 Fix PR gdb/631.
1465
1466 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1467
1468 * mips-tdep.c (read_next_frame_reg): Re-hack using
1469 frame_register_unwind.
1470
1471 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1472
1473 * mips-tdep.c (mips_get_saved_register): Re-hack using
1474 frame_register_unwind.
1475
1476 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1477
1478 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1479 vector. Will be useful for Interix.
1480 * gdbarch.h, gdbarch.c: Regenerate.
1481
1482 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1483 name of the malloc function by NAME_OF_MALLOC.
1484
1485 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1486
1487 * value.h (find_function_in_inferior): Add const keyword to
1488 one of the parameters. Allows us to invoke this function with
1489 a const char *.
1490 * valops.c (find_function_in_inferior): Likewise.
1491
1492 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1493
1494 * exec.c (xfer_memory): Fix compilation warning with old versions
1495 of GCC.
1496 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1497
1498 2002-09-12 David Carlton <carlton@math.stanford.edu>
1499
1500 * symtab.h: Run through gdb_indent.h.
1501 Add 2002 to Copyright year list.
1502
1503 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1504
1505 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1506 mach constants.
1507 * MAINTAINERS: Add myself to write after approval list.
1508
1509 2002-09-11 J. Brobecker <brobecker@gnat.com>
1510
1511 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1512
1513 2002-09-11 J. Brobecker <brobecker@gnat.com>
1514
1515 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1516 Interix.
1517
1518 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1519
1520 * procfs.c (do_detach): Clear current signal, not just fault.
1521 Corrects problem with breakpoint trap signal leaking to detached
1522 process on Tru64.
1523
1524 2002-09-10 Michael Snyder <msnyder@redhat.com>
1525
1526 * buildsym.c (finish_block): Protect against null pointer.
1527
1528 2002-09-10 Andrew Cagney <cagney@redhat.com>
1529
1530 * infcmd.c (default_print_registers_info): Send all output to
1531 ``file'' instead of ``gdb_stdout''.
1532
1533 2002-09-10 Michael Snyder <msnyder@redhat.com>
1534
1535 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1536 LONGEST, and use signed register read (addresses are sign-
1537 extended for mips).
1538
1539 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1540
1541 * event-loop.c (gdb_do_one_event): Make public.
1542 * event-loop.h (gdb_do_one_event): Declare.
1543
1544 2002-09-10 Jeff Law <law@redhat.com>
1545
1546 * infttrace.c (child_resume): Simplify and rework to avoid
1547 TT_PROC_CONTINUE.
1548
1549 2002-09-09 Fred Fish <fnf@intrinsity.com>
1550
1551 * printcmd.c (print_scalar_formatted): "len" is the number of
1552 target bytes, NOT the number of target bits.
1553
1554 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1555
1556 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1557 * top.c (init_main): Set rl_terminal_name.
1558
1559 2002-09-08 Aidan Skinner <aidan@velvet.net>
1560
1561 * ada-lang.c (ada_array_bound, ada_type_match,
1562 _initialize_ada_language): Fix K&R definitions.
1563 * ada-tasks.c (get_current_task): Fix K&R definitions.
1564 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1565
1566 2002-09-07 Christopher Faylor <cgf@redhat.com>
1567
1568 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1569 Add XP.
1570
1571 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1572
1573 * i386-tdep.c (i386_register_virtual_type,
1574 i386_register_convertible, i386_register_convert_to_virtual,
1575 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1576 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1577 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1578 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1579 Don't set push_arguments twice.
1580
1581 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1582 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1583 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1584 sigtramp_end to NULL.
1585 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1586 defines.
1587 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1588
1589 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1590 whitespace.
1591
1592 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1593 * gdbarch.h, gdbarch.c: Re-generate.
1594 * blockframe.c (find_pc_sect_partial_function): Convert to use
1595 SIGTRAMP_START_P predicate.
1596
1597 2002-09-05 Michael Snyder <msnyder@redhat.com>
1598
1599 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1600 generic_dummy_frame method and old method. Also distinguish
1601 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1602 (arm_extract_return_value): Use new regcache method.
1603
1604 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1605 adjustment that doesn't conform to the ABI.
1606 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1607 saved regcache, not from current regcache.
1608
1609 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1610
1611 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1612 * README: Update.
1613
1614 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1615
1616 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1617 if arm_apcs_32 is false.
1618
1619 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1620
1621 GDB 5.3 branch created.
1622
1623 2002-09-03 Theodore A. Roth <troth@verinet.com>
1624
1625 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1626 generic_unwind_get_saved_register.
1627
1628 2002-09-03 David Carlton <carlton@math.stanford.edu>
1629
1630 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1631 argument (PR gdb/653). Update call to smash_to_method_type.
1632 (read_structure_scope): Update call to dwarf2_add_member_fn.
1633
1634 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1635
1636 * x86-64-linux-tdep.c: Include gdb_string.h
1637 * x86-64-linux-nat.c: Ditto.
1638
1639 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1640
1641 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1642 when YYDEBUG is set to 1.
1643 * c-exp.y: Likewise.
1644 * f-exp.y: Likewise.
1645 * jv-exp.y: Likewise.
1646 * m2-exp.y: Likewise.
1647 * p-exp.y: Likewise.
1648
1649 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1650
1651 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1652 dependency list.
1653 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1654 solib_svr4_fetch_link_map_offsets to
1655 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1656 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1657 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1658 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1659 solib-svr4.o, and solib-legacy.o.
1660 * config/i386/tm-nbsd.h: Include solib.h.
1661
1662 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1663
1664 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1665 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1666 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1667 comment noting that this needs its own target configuration.
1668 * config/i386/nbsd.mt: New file.
1669 * config/i386/nbsdaout.mt: Remove.
1670 * config/i386/nbsdelf.mt: Ditto.
1671 * config/i386/tm-nbsdaout.h: Ditto.
1672
1673 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1674
1675 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1676 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1677 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1678 tdep->sigtramp_end.
1679 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1680 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1681 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1682
1683 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1684
1685 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1686 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1687 * i386-tdep.h (i386bsd_init_abi): New prototype.
1688 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1689 function declaration.
1690 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1691 for NetBSD-a.out or NetBSD-ELF.
1692 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1693 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1694 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1695 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1696 and nbsd-tdep.h.
1697 (i386nbsd_pc_in_sigtramp): New function.
1698 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1699 i386nbsd_pc_in_sigtramp.
1700 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1701 and i386nbsdelf_init_abi OS ABI handlers.
1702 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1703 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1704
1705 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1706
1707 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1708 registers if the target really has them.
1709
1710 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1711
1712 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1713 than nbsd-tdep.h.
1714
1715 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1716
1717 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1718 list.
1719 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1720 (alphanbsd_skip_sigtramp_frame): New functions.
1721 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1722 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1723 to alphanbsd_sigcontext_addr.
1724
1725 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1726
1727 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1728 list.
1729 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1730 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1731 nbsd_pc_in_sigtramp.
1732 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1733 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1734 * nbsd-tdep.c: Include gdb_string.h.
1735 (nbsd_pc_in_sigtramp): New function.
1736 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1737 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1738 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1739 ppcnbsd_pc_in_sigtramp.
1740 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1741 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1742 shnbsd_pc_in_sigtramp.
1743 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1744 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1745 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1746
1747 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1748
1749 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1750 watchpoints to NULL.
1751 (insert_breakpoints): set val field of watchpoints if NULL.
1752
1753
1754 2002-08-29 Jim Blandy <jimb@redhat.com>
1755
1756 * symtab.c (lookup_symbol_aux): In the cases where we find a
1757 minimal symbol of an appropriate name and use its address to
1758 select a symtab to read and search, use `name' (as passed to us)
1759 as the demangled name when searching the symtab's global and
1760 static blocks, not the minsym's name.
1761
1762 2002-08-29 Keith Seitz <keiths@redhat.com>
1763
1764 * stack.c (print_frame_info_base): Always set current_source_symtab
1765 and current_source_line.
1766
1767 2002-08-29 Donn Terry <donnte@microsoft.com>
1768
1769 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1770
1771 2002-08-28 Keith Seitz <keiths@redhat.com>
1772
1773 * stack.c (select_frame): Add FIXME concerning selected-frame
1774 events.
1775 (select_frame_command): Send selected-frame-level-changed
1776 event notification, but only if the level actually changed.
1777 (up_silently_base): Add selected-frame-level-changed event
1778 notification.
1779 (down_silently_base): Likewise.
1780
1781 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1782
1783 * Makefile.in: Update dependencies for all gdb/*.c files.
1784
1785 2002-08-27 Tom Tromey <tromey@redhat.com>
1786
1787 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1788 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1789 Update dependencies.
1790 * i387-tdep.c: Include gdb_string.h.
1791 * osabi.c: Likewise.
1792 * i386-linux-nat.c: Likewise.
1793 * lin-lwp.c: Likewise.
1794 * ax-gdb.c: Likewise.
1795 * signals/signals.c: Likewise.
1796 * jv-valprint.c: Likewise.
1797 * p-lang.c: Likewise.
1798 * c-valprint.c: Likewise.
1799 * cp-abi.c: Likewise.
1800
1801 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1802
1803 * cli/cli-script.h (copy_command_lines): Export.
1804 * breakpoint.c: Include cli/cli-script.h.
1805 * Makefile.in (breakpoint.o): Update dependencies.
1806
1807 2002-08-26 Michael Snyder <msnyder@redhat.com>
1808
1809 * breakpoint.c (insert_breakpoints): Protect all references
1810 to 'process_warning'. Shorten long lines.
1811
1812 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1813
1814 * cli/cli-script.c (copy_command_lines): New function.
1815 * defs.h (copy_command_lines): Export.
1816 * testsuite/gdb.base/commands.exp: New tests for commands
1817 attached to a temporary breakpoint, and for commands that
1818 delete the breakpoint they are attached to.
1819
1820 2002-08-26 Michael Snyder <msnyder@redhat.com>
1821
1822 * breakpoint.c (bpstat_stop_status): Instead of copying the
1823 pointer to the breakpoint commands struct, make a new copy
1824 of the struct and point to that.
1825 (bpstat_clear): Free the commands struct.
1826 (bpstat_clear_actions): Free the commands struct.
1827 (bpstat_do_actions): Free the command actions. Also execute
1828 the local cleanups, instead of deleting them.
1829 (delete_breakpoint): Leave the commands field of the bpstat
1830 chain alone -- it will be freed later.
1831
1832 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1833
1834 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1835 deleted in 2002-08-20 commit. This function is still used by
1836 ppc-linux-nat.c.
1837
1838 2002-08-26 Keith Seitz <keiths@redhat.com>
1839
1840 * gdb-events.sh: Add selected-frame-level-changed event.
1841 * gdb-events.c: Regenerated.
1842 * gdb-events.h: Regenerated.
1843
1844 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1845
1846 Fix PR gdb/393:
1847 * inflow.c (terminal_save_ours): New function to save terminal
1848 settings.
1849 * inferior.h (terminal_save_ours): Declare.
1850 * target.c (debug_to_terminal_save_ours): New function.
1851 (cleanup_target): Defaults to_terminal_save_ours.
1852 (update_current_target): Inherit to_terminal_save_ours.
1853 (setup_target_debug): Set to_terminal_save_ours.
1854 * target.h (target_terminal_save_ours): New to save terminal settings.
1855 (target_ops): New member to_terminal_save_ours.
1856 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1857 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1858 * inftarg.c (init_child_ops): Likewise.
1859 * m3-nat.c (init_m3_ops): Likewise.
1860 * procfs.c (init_procfs_ops): Likewise.
1861 * wince.c (init_child_ops): Likewise.
1862 * win32-nat.c (init_child_ops): Likewise.
1863 * sol-thread.c (init_sol_thread_ops): Likewise.
1864
1865 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1866
1867 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1868 use regcache_* functions.
1869 (i386_gdbarch_init): Set store_return_value instead of
1870 deprecated_store_return_value.
1871
1872 * regcache.c (regcache_raw_write_signed,
1873 regcache_raw_write_unsigned): New functions.
1874 * regcache.h (regcache_raw_write_signed,
1875 regcache_raw_write_unsigned): New prototypes.
1876
1877 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1878
1879 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1880 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1881 source file dependencies. Cleanup corresponding generator rules.
1882
1883 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1884
1885 * regcache.h (register_offset_hack): Declare.
1886 (regcache_cooked_read_using_offset_hack): Declare.
1887 (regcache_cooked_write_using_offset_hack): Declare.
1888
1889 * regcache.c (register_offset_hack): New function.
1890 (regcache_cooked_read_using_offset_hack): New function.
1891 (regcache_cooked_write_using_offset_hack): New function.
1892 (regcache_dump): Check that the registers, according to their
1893 offset, are packed hard against each other.
1894 (cooked_xfer_using_offset_hack): New function.
1895
1896 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1897
1898 * regcache.c (struct regcache_descr): Add field register_type.
1899 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1900 in as a parameter
1901 (init_regcache_descr): Initialize register_type. Pass the descr
1902 to init_legacy_regcache_descr. Use register_type instead of
1903 REGISTER_VIRTUAL_TYPE.
1904 (register_type): New function.
1905 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1906 * regcache.h (register_type): Declare.
1907
1908 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1909
1910 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1911 instead of deprecated_store_return_value. Fix fallout from
1912 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1913
1914 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1915
1916 * regcache.c (max_register_size): New function.
1917 (init_legacy_regcache_descr): Ensure that max_register_size is
1918 large enough for REGISTER_VIRTUAL_SIZE.
1919 * regcache.h (max_register_size): Declare.
1920
1921 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1922
1923 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1924 store_return_value.
1925 (e500_extract_return_value): Change type of valbuf pointer to
1926 void.
1927
1928 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1929
1930 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1931 workaround.
1932
1933 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1934 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1935 long long) to prevent compiler warning on 64-bit systems.
1936
1937 2002-08-23 Andrew Cagney <cagney@redhat.com>
1938
1939 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1940 (DEPRECATED_STORE_RETURN_VALUE): New method.
1941 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1942 * gdbarch.h, gdbarch.c: Re-generate.
1943
1944 * values.c (set_return_value): Pass current_regcache to
1945 STORE_RETURN_VALUE.
1946 * arch-utils.h (legacy_store_return_value): Declare.
1947 * arch-utils.c (legacy_store_return_value): New function.
1948 (legacy_extract_return_value): Update parameters.
1949
1950 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1951 STORE_RETURN_VALUE.
1952 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1953 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1954 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1955 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1956 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1957 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1958 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1959 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1960 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1961 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1962
1963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1964 * i386-tdep.c (i386_extract_return_value): Update.
1965 * arch-utils.c (legacy_extract_return_value): Update.
1966 * frv-tdep.c (frv_gdbarch_init): Update.
1967 * cris-tdep.c (cris_gdbarch_init): Update.
1968 * d10v-tdep.c (d10v_gdbarch_init): Update.
1969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1970 * m68k-tdep.c (m68k_gdbarch_init): Update.
1971 * mcore-tdep.c (mcore_gdbarch_init): Update.
1972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1973 * s390-tdep.c (s390_gdbarch_init): Update.
1974 * sparc-tdep.c (sparc_gdbarch_init): Update.
1975 * sh-tdep.c (sh_gdbarch_init): Update.
1976 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1977 * v850-tdep.c (v850_gdbarch_init): Update.
1978 * avr-tdep.c (avr_gdbarch_init): Update.
1979 * ia64-tdep.c (ia64_gdbarch_init): Update.
1980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1981 * vax-tdep.c (vax_gdbarch_init): Update.
1982 * alpha-tdep.c (alpha_gdbarch_init): Update.
1983 * arm-tdep.c (arm_gdbarch_init): Update.
1984 * mips-tdep.c (mips_gdbarch_init): Update.
1985 * i386-tdep.c (i386_gdbarch_init): Update.
1986
1987 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1988
1989 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1990 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1991
1992 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1993
1994 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1995 problems.
1996
1997 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1998
1999 * infrun.c (handle_inferior_event): Move a comment outside of a
2000 function call, in order to avoid indent reformatting this part
2001 of the code in an unreadable way.
2002
2003 2002-08-23 Grace Sainsbury <graces@redhat.com>
2004
2005 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2006 when breakpoints fail. Move general breakpoint error messages to
2007 insert_breakpoints.
2008 * breakpoint.c (insert_breakpoints): Change warnings when
2009 breakpoints are nto inserted to specify the type. Remove call to
2010 memory_error when hardware breakpoints can't be inserted. Remove
2011 multiple calls to warning so all messages are sent to the user at
2012 once.
2013 (delete_breakpoints): Make insert error messsages more explicit.
2014
2015 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2016
2017 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2018 gdbserver/ChangeLog.
2019
2020 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2021
2022 * i386-tdep.c: Include "objfiles.h".
2023 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2024 skip_trampoline_code.
2025 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2026 (CPLUS_MARKER): Define to '.'.
2027
2028 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2029 member.
2030 (linux_corefile_thread_callback): Increase args->num_notes.
2031 (linux_make_note_section): Initialize thread_args.num_notes, and
2032 use it to determine whether notes for any threads were created.
2033
2034 2002-08-23 Donn Terry <donnte@microsoft.com>
2035
2036 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2037 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2038 and PCUNKILL.
2039 (write_with_trace): Conditionalize out the switch branch handling
2040 PCSHOLD if the corresponding macro is not defined. Likewise for
2041 PRSABORT and PRSTOP.
2042 This change will be needed by the Interix port.
2043
2044 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2045
2046 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2047 write_register wherever possible instead of manipulating the
2048 register bytes directly.
2049 Assign VALUE_CONTENTS to a variable and use that.
2050 The GPR numbers are now dependent on the architecture.
2051
2052 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2053
2054 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2055 ev_offset fields.
2056 (skip_prologue): Add support for BookE/e500 instructions.
2057 (e500_extract_return_value): New function.
2058 (frame_get_saved_regs): Add support for saving ev registers and
2059 pseudo gpr's.
2060 (e500_store_return_value): New function.
2061 (rs6000_gdbarch_init): Move up default intializations of
2062 deprecated_extract_return_value and store_return_value. Overwrite
2063 init of store_return_value with e500 specific version.
2064 Set extract_return_value for e500.
2065
2066 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2067
2068 * blockframe.c (generic_call_dummy_register_unwind): Use
2069 regcache_cooked_read to catch cases in which the variable is
2070 stored in a pseudo register.
2071
2072 2002-08-22 Andrew Cagney <cagney@redhat.com>
2073
2074 * NEWS: Mention that the i960 has been made obsolete.
2075 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2076 i960-tdep.c
2077 (remote-nrom.o): Obsolete target.
2078 (remote-nindy.o, i960-tdep.o): Ditto.
2079 * remote-nrom.c: Make file obsolete.
2080 * remote-nindy.c, remote-vx960.c: Ditto.
2081 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2082 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2083 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2084 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2085 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2086 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2087 i960-*-vxworks* obsolete.
2088 * MAINTAINERS: Note that the i960 is obsolete.
2089
2090 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2091
2092 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2093 detach to allow reinitialization.
2094
2095 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2096
2097 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2098 attempt).
2099
2100 2002-08-22 Jim Blandy <jimb@redhat.com>
2101
2102 * coffread.c (coff_symfile_read): Don't try to read the line
2103 number table from disk if the image file doesn't have a symbol
2104 table; we'll never actually look at the info anyway, and Windows
2105 ships DLL's with bogus file offsets for the line number data.
2106
2107 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2108
2109 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2110 an e500 executable.
2111
2112 2002-08-21 Michael Snyder <msnyder@redhat.com>
2113
2114 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2115 (MSYMBOL_SIZE): Replace macro with function.
2116 (DEFAULT_MIPS_TYPE): Delete unused macro.
2117 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2118 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2119
2120 2002-08-21 Jim Blandy <jimb@redhat.com>
2121
2122 * valops.c (value_cast): Simplify and correct logic for doing a
2123 static cast from a pointer to a base class to a pointer to a
2124 derived class.
2125
2126 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2127
2128 * infcmd.c (default_print_registers_info): Replace
2129 do_registers_info.
2130 (registers_info): Use gdbarch_print_registers_info instead of
2131 DO_REGISTERS_INFO.
2132 * inferior.h (default_print_registers_info): Replace
2133 do_registers_info.
2134 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2135 (DO_REGISTERS_INFO): Change to a predicate function.
2136 * gdbarch.h, gdbarch.c: Regenerate.
2137
2138 2002-08-21 Keith Seitz <keiths@redhat.com>
2139
2140 * gdb-events.sh: Add target-changed event.
2141 * gdb-events.c: Regenerated.
2142 * gdb-events.c: Regenerated.
2143 * valops.c (value_assign): Add target-changed event notification
2144 to inlval_register, lval_memory, and lval_reg_frame_relative.
2145
2146 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2147
2148 * NEWS: Add an entry regarding the improvement of the next/step
2149 operation on Alpha Tru64 multi-processor machines.
2150
2151 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2152
2153 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2154 directores.
2155 * Makefile.in: Update all _h macro definitions.
2156 * Makefile.in (install-gdbtk): Move to install section.
2157 (rdi-share/libangsd.a): Move to end of file.
2158
2159 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2160
2161 * frame.c (frame_register_unwind): When a register, set addrp to
2162 the register's byte.
2163
2164 2002-08-20 Michael Snyder <msnyder@redhat.com>
2165
2166 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2167 used locally, so move them from the target machine header to here.
2168 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2169 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2170 Make static.
2171 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2172
2173 2002-08-20 Andrew Cagney <cagney@redhat.com>
2174
2175 * NEWS: Mention that the Apollo line was made obsolete.
2176 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2177 m68*-hp-hpux* obsolete.
2178 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2179 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2180 * buildsym.c (make_blockvector): Make static.
2181 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2182 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2183 (ALLDEPFILES): Remove dstread.c.
2184 (dstread.o): Obsolete make rule.
2185 * dstread.c: Makefile obsolete.
2186 * dst.h: Ditto.
2187 * config/m68k/hp300hpux.mt: Ditto.
2188 * config/m68k/hp300hpux.mh: Ditto.
2189 * config/m68k/hp300bsd.mt: Ditto.
2190 * config/m68k/hp300bsd.mh: Ditto.
2191 * config/m68k/apollo68b.mt: Ditto.
2192 * config/m68k/apollo68v.mh: Ditto.
2193 * config/m68k/apollo68b.mh: Ditto.
2194
2195 2002-08-20 Michael Snyder <msnyder@redhat.com>
2196
2197 * mips-tdep.c (mips_in_return_stub): Make static.
2198 (mips_gdbarch_init): Set in_solib_return_trampoline.
2199 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2200
2201 2002-08-20 Michael Snyder <msnyder@redhat.com>
2202
2203 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2204 * gdbarch.c, gdbarch.h: Regenerate.
2205 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2206 Add.
2207 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2208
2209 2002-08-20 Michael Snyder <msnyder@redhat.com>
2210
2211 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2212 (mips_gdbarch_init): Set skip_trampoline_code,
2213 in_solib_call_trampoline.
2214 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2215 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2216
2217 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2218
2219 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2220
2221 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2222 vector type for ev registers.
2223 (e500_pseudo_register_read): New function.
2224 (e500_pseudo_register_write): New function.
2225 (e500_dwarf2_reg_to_regnum): New function.
2226 (PPC_UISA_NOFP_SPRS): New macro.
2227 (PPC_EV_REGS): New macro.
2228 (PPC_GPRS_PSEUDO_REGS): New macro.
2229 (registers_e500): New register set for e500.
2230 (variants): Add e500 variant.
2231 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2232 before setting architectural dependent variations. Initialize ev
2233 registers numbers. Add case for e500 architecture. Set the
2234 number of pseudo registers.
2235
2236 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2237
2238 * rs6000-tdep.c: Clean up comments.
2239
2240 2002-08-20 Andrew Cagney <cagney@redhat.com>
2241
2242 * h8300-tdep.c: Re-indent file.
2243
2244 2002-08-20 Jim Blandy <jimb@redhat.com>
2245
2246 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2247 default for this.
2248
2249 2002-08-20 Keith Seitz <keiths@redhat.com>
2250
2251 * breakpoints.c (watch_command_1): Use internal breakpoint
2252 when setting a watchpoint_scope breakpoint.
2253
2254 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2255
2256 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2257 (build_builtin_type_vec64i): Ditto.
2258 (build_builtin_type_vec128): Ditto.
2259 (build_builtin_type_vec128i): Ditto.
2260
2261 2002-08-19 Michael Snyder <msnyder@redhat.com>
2262
2263 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2264 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2265 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2266 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2267 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2268 CALL_DUMMY_ADDRESS): Delete.
2269 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2270 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2271 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2272 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2273 push_return_address.
2274 (mips_register_raw_size, mips_eabi_use_struct_convention,
2275 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2276 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2277 mips_init_extra_frame_info, mips_eabi_push_arguments,
2278 mips_n32n64_push_arguments, mips_push_return_address,
2279 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2280 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2281
2282 2002-08-19 Michael Snyder <msnyder@redhat.com>
2283
2284 * mips-tdep.c (mips_frame_num_args): New function.
2285 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2286 frame_saved_pc, frame_args_address, frame_locals_address,
2287 frame_num_args, and frame_args_skip.
2288 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2289 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2290 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2291 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2292
2293 2002-08-20 Michael Snyder <msnyder@redhat.com>
2294
2295 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2296 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2297 * mips-tdep.c (mips_store_struct_return): New function.
2298 (mips_extract_struct_value_address): New function.
2299 (mips_gdbarch_init): Set store_struct_return and
2300 extract_struct_value_address.
2301
2302 2002-08-20 David Carlton <carlton@math.stanford.edu>
2303
2304 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2305 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2306 (read_file_scope): Check that line_header is nonzero before
2307 decoding macro information.
2308
2309 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2310
2311 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2312 flag the general-purpose registers as floating-point on targets
2313 that don't support the floating-point registers.
2314
2315 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2316
2317 * rs6000-tdep.c (altivec_register_p): Delete.
2318 (rs6000_do_altivec_registers): Delete.
2319 (rs6000_altivec_registers_info): Delete.
2320 (rs6000_do_registers_info): Delete.
2321 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2322 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2323
2324 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2325
2326 * infcmd.c (do_registers_info): Print vector registers in hex
2327 format only.
2328 (print_vector_info): Check that printing registers
2329 makes sense.
2330 (print_float_info): Ditto.
2331
2332 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2333
2334 * mips-tdep.c (mips_gdbarch_init): Update.
2335 (mips_o32_extract_return_value): Rewrite.
2336 (mips_o32_store_return_value): Rewrite.
2337 (mips_o32_xfer_return_value): New function.
2338 (mips_xfer_register): Tweak debug print message. Allow for
2339 buf_offset when dumping the value transfered.
2340
2341 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2342
2343 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2344 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2345 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2346 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2347 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2348
2349 2002-08-14 Michael Snyder <msnyder@redhat.com>
2350
2351 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2352
2353 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2354
2355 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2356 register.
2357 (P): New macro to define a register as a pseudo register.
2358 (R, R4, R8, R16, FR32, R64, R0): Updated.
2359 (struct variant): Add new fields for number of pseudo registers
2360 and number of total registers.
2361 (tot_num_registers): New macro replacing....
2362 (num_registers): ...deleted macro.
2363 (num_registers): New function.
2364 (num_pseudo_registers): New function.
2365 (variants): Update all variants to intialize new fields correctly.
2366 Postpone initialization of number of pseudo regs and real regs.
2367 (init_variants): New function.
2368 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2369 registers offsets.
2370
2371 2002-08-19 David Carlton <carlton@math.stanford.edu>
2372
2373 * valops.c (search_struct_field): Change error message to treat
2374 return value of 0 from value_static_field as meaning that field is
2375 optimized out.
2376 (value_struct_elt_for_reference): Ditto.
2377 * values.c (value_static_field): Treat an unresolved location the
2378 same as a nonexistent symbol. Fix PR gdb/635.
2379 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2380 enclosed. Fix PR gdb/574.
2381 * MAINTAINERS: Add self to Write After Approval list.
2382
2383 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2384
2385 * mips-tdep.c (mips_xfer_register): New function.
2386 (mips_n32n64_extract_return_value): Rewrite.
2387 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2388 instead of deprecated_extract_return_value.
2389
2390 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2391
2392 * rs6000-tdep.c (TDEP): Delete macro.
2393 (branch_dest): Replace use of TDEP macro with its body.
2394 (rs6000_pop_frame): Ditto.
2395 (rs6000_push_arguments): Ditto.
2396 (rs6000_skip_trampoline_code): Ditto.
2397 (rs6000_frame_saved_pc): Ditto.
2398 (rs6000_frame_chain): Ditto.
2399 (rs6000_register_name): Ditto.
2400 (rs6000_register_byte): Ditto.
2401 (rs6000_register_raw_size): Ditto.
2402 (rs6000_register_virtual_type): Ditto.
2403 (rs6000_register_convertible): Ditto.
2404 (rs6000_convert_from_func_ptr_addr): Ditto.
2405
2406 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2407
2408 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2409 conditionally.
2410 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2411 MIPS_LINUX_JB_ELEMENT_SIZE.
2412 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2413 for MAX_REGISTER_RAW_SIZE arrays.
2414 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2415 MIPS_LINUX_JB_ELEMENT_SIZE.
2416
2417 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2418
2419 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2420
2421 2002-08-19 Aidan Skinner <aidan@velvet.net>
2422
2423 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2424 ada-valprint.c ada-tasks.c.
2425 (YYFILES): Add ada-exp.y.
2426 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2427 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2428 (ada-exp.tab.o): New target.
2429
2430 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2431
2432 * regcache.c (regcache_xfer_part): New function.
2433 (regcache_raw_read_part): New function.
2434 (regcache_raw_write_part): New function.
2435 (regcache_cooked_read_part): New function.
2436 (regcache_cooked_write_part): New function.
2437 * regcache.h (regcache_raw_read_part): Declare.
2438 (regcache_raw_write_part): Declare.
2439 (regcache_cooked_read_part): Declare.
2440 (regcache_cooked_write_part): Declare.
2441
2442 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2443
2444 * remote.c (remote_open_1): Add async_p.
2445 (remote_async_open_1): Delete.
2446 (open_remote_target): Delete.
2447 (remote_open, extended_remote_open): Update calls to remote_open_1.
2448 (remote_async_open, extended_remote_async_open): Call
2449 remote_open_1 instead of remote_async_open_1.
2450
2451 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2452
2453 * blockframe.c: Fix a few coding standard violations.
2454
2455 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2456
2457 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2458 here from ...
2459 * config/i386/tm-i386sco5.h: ... here. File removed.
2460 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2461
2462 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2463 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2464 (TM_FILE): Set to tm-i386.h.
2465 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2466 * config/i386/tm-i386v.h: Remove file.
2467 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2468 instead of "i386/tm-i386v.h".
2469 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2470 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2471 "i386/tm-i386v.h".
2472 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2473 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2474 "i386/tm-i386.h".
2475
2476 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2477
2478 * config/i386/nm-i386v.h: Add protection against
2479 multiple-inclusion.
2480 (i386_register_u_addr): Remove prototype.
2481 (register_u_addr): New prototype.
2482 (REGISTER_U_ADDR): Redefine accordingly.
2483 * i386v-nat.c: Improve several comments.
2484 (i386_register_u_addr): Change signature and rename to
2485 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2486 ubase variable.
2487
2488 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2489
2490 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2491 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2492 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2493 deprecated_extract_return_value.
2494 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2495 rename mips_o32o64_push_arguments.
2496 (mips_gdbarch_init): Update.
2497 (mips_extract_return_value): Delete.
2498 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2499 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2500 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2501 (mips_n32n64_extract_return_value): Clone
2502 mips_extract_return_value.
2503 (mips_store_return_value): Delete.
2504 (mips_o32_store_return_value): Clone mips_store_return_value.
2505 (mips_o64_store_return_value): Clone mips_store_return_value.
2506 (mips_eabi_store_return_value): Clone mips_store_return_value.
2507 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2508
2509 2002-08-18 Aidan Skinner <aidan@velvet.net>
2510
2511 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2512 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2513
2514 2002-08-18 Aidan Skinner <aidan@velvet.net>
2515
2516 * ada-lang.c: Run through gdb_indent.sh.
2517 * ada-lang.h: Run through gdb_indent.sh.
2518 * ada-tasks.c: Run through gdb_indent.sh.
2519 * ada-typeprint.c: Run through gdb_indent.sh.
2520 * ada-valprint.c: Run through gdb_indent.sh.
2521
2522 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2523
2524 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2525 ABI.
2526
2527 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2528
2529 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2530
2531 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2532 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2533
2534 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2535 write_register_gen instead of write_register_bytes.
2536
2537 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2538 i[3456]-*-osf1mk* configurations have been made obsolete.
2539 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2540 i[3456]86-*-osf1mk* hosts obsolete.
2541 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2542 targets obsolete.
2543 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2544 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2545 config/i386/i386m3.mt, config/i386/nm-m3.h,
2546 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2547 config/i386/i386mk.mh, config/i386/i386mk.mt,
2548 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2549 obsolete.
2550 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2551 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2552 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2553
2554 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2555
2556 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2557 (hppa_value_returned_from_stack): Declare.
2558 (hppa_extract_return_value): Declare.
2559 * config/pa/hppa.mt: New file.
2560 * configure.tgt: Recognize hppa*-*-*.
2561 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2562
2563 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2564
2565 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2566 comment.
2567
2568 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2569
2570 * top.c (gdb_rl_operate_and_get_next): Make sure
2571 operate-and-get-next functions correctly even when the history
2572 list is completely filled.
2573
2574 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2575
2576 * MAINTAINERS (Target Instruction Set Architectures): Rename
2577 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2578 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2579 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2580 already listed under Host/Native.
2581
2582 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2583 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2584 mips*-*-*.
2585
2586 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2587
2588 * config/ia64/ia64.mt: New file.
2589 * config/alpha/alpha.mt: New file.
2590 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2591 ia64-linux-gnu. Mention that ia64-elf is broken.
2592 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2593
2594 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2595
2596 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2597 generic_func_frame_valid instead of func_frame_valid.
2598
2599 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2600
2601 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2602 procfs appears to be broken when debugging on multi-processor
2603 machines. So enable software single stepping in order to avoid
2604 using the procfs interface to do next/step operations, using
2605 internal breakpoints instead.
2606
2607 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2608 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2609 make this pc address equal to the value it would have if the
2610 system stepping capability was used. Also set a new flag used
2611 to ensure that we don't readjust the PC one more time later.
2612
2613 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2614 address by DECR_PC_AFTER_BREAK when software single step is
2615 in use for this architecture, as this has already been taken
2616 care of in handle_inferior_event().
2617
2618 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2619
2620 * infrun.c (handle_inferior_event): Minor reformatting, to make
2621 a rather long condition expression easier to read.
2622
2623 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2624
2625 * Makefile.in (gdbtk.o): Move to end of file.
2626 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2627 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2628 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2629 (gdbtk-wrapper.o, gdbres.o): Ditto.
2630
2631 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2632
2633 * Makefile.in (copying.o): Separate out compile rule.
2634 (hpux-thread.o, procfs.o, signals.o): Ditto.
2635 (v850ice.o, z8k-tdep.o): Ditto.
2636 (tui-file.o): Move to TUI section.
2637 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2638 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2639
2640 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2641
2642 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2643 skip_trampoline_code, for better namespace-proofing.
2644
2645 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2646
2647 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2648
2649 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2650
2651 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2652
2653 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2654 signal, check whether we hit a breakpoint before checking for a
2655 single step breakpoint. Otherwise, GDB fails to notice that a
2656 breakpoint has been hit when stepping onto a breakpoint.
2657
2658 2002-08-16 Keith Seitz <keiths@redhat.com>
2659
2660 * gdb-events.sh (clear_gdb_event_hooks): New function.
2661 * gdb-events.c: Regenerate.
2662 * gdb-events.h: Regenerate.
2663
2664 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2665
2666 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2667 not_a_sw_breakpoint.
2668 * breakpoint.h (bpstat_stop_status): Add parameter names.
2669
2670 2002-08-16 Grace Sainsbury <graces@redhat.com>
2671
2672 * remote.c (remote_insert_hw_breakpoint)
2673 (remote_remove_hw_breakpoint): Fix calculation of length field
2674 for Z-packet.
2675
2676 2002-08-15 Michael Snyder <msnyder@redhat.com>
2677
2678 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2679 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2680 (supply_fpregset): Ditto.
2681
2682 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2683 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2684 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2685 (TARGET_READ_SP): Delete.
2686 (DO_REGISTERS_INFO): Delete.
2687 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2688 Delete.
2689 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2690 from macros to functions.
2691
2692 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2693 (mips_register_convertible, mips_register_convert_to_virtual,
2694 mips_register_convert_to_raw): Make static.
2695 (mips_read_sp): New function.
2696 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2697 (mips_do_registers_info): Make static.
2698 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2699 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2700 (mips_register_convert_from_type, mips_register_convert_to_type):
2701 New functions.
2702 (mips_gdbarch_init): Set up function_start_offset,
2703 register_virtual_size, pc_in_sigtramp.
2704
2705 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2706
2707 * infcmd.c (vector_info): New function.
2708 (_initialize_infcmd): Add command "info vector".
2709 (print_vector_info): New function.
2710
2711 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2712 * gdbarch.h, gdbarch.c: Regenerate.
2713
2714 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2715
2716 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2717 ``print_all''. Only print vector registers when ``print_all''.
2718
2719 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2720
2721 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2722 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2723
2724 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2725 Add `args' parameter.
2726 * gdbarch.h, gdbarch.c: Regenerate.
2727
2728 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2729
2730 * infcmd.c (float_info): Call print_float_info.
2731 (print_float_info): New function. By default, print the
2732 floating-point registers.
2733
2734 * arch-utils.h (default_print_float_info): Delete declaration.
2735 * arch-utils.c (default_print_float_info): Delete function.
2736
2737 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2738
2739 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2740 out define.
2741
2742 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2743 FRAME.
2744
2745 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2746 * configure.host: Make i[3456]86-*-aix host obsolete.
2747 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2748 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2749 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2750 config/i386/xm-i386aix.h: Make files obsolete.
2751 * i386aix-nat.c: Make file obsolete.
2752 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2753 (i386aix-nat.o): Make target obsolete.
2754
2755 * config/i386/nm-gnu.h: Removed.
2756 * config/i386/nm-i386gnu.h: New file.
2757 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2758 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2759 Moved here from ...
2760 * config/i386/tm-i386gnu.h: ... here. Removed.
2761 * config/i386/xm-i386gnu.h: Removed.
2762 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2763 (NAT_FILE): Set to nm-i386gnu.h.
2764 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2765 * i386-tdep.c: New file.
2766 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2767 (i386gnu-tdep.o): Specify dependencies.
2768
2769 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2770
2771 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2772 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2773 Adjust a few comments to reflect reality a bit closer.
2774 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2775 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2776 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2777 target_insert_watchpoint, target_remove_watchpoint):
2778 Move defines to ...
2779 * config/i386/nm-i386sco5.h: ... here.
2780 (kernel_u_size): Add prototype. Improve a few comments and add
2781 protection against multiple inclusion.
2782
2783 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2784 out define.
2785
2786 * uw-thread.c (SP_ARG0): Define if not already defined.
2787 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2788
2789 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2790
2791 * config/i386/tm-i386.h: Don't include "regcache.h".
2792
2793 * i387-tdep.h (i387_print_float_info): New prototype.
2794 * i387-tdep.c (print_i387_value, print_i387_ext,
2795 print_i387_status_word, print_i387_control_word): Add `struct
2796 ui_file *' argument and use it for output.
2797 (i387_print_float_info): Renamed from i387_float_info. Add
2798 `struct gdbarch *' and `struct ui_file *' arguments and use the
2799 latter for output.
2800 * i386-tdep.c: Include "i387-tdep.h".
2801 (i386_gdbarch_init): Set print_float_info.
2802 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2803 (FLOAT_INFO): Remove define.
2804
2805 2002-08-13 Michael Snyder <msnyder@redhat.com>
2806
2807 * mips-tdep.c (mips_push_arguments): Rename to
2808 mips_eabi_push_arguments, and tune for EABI.
2809 (MIPS_REGS_HAVE_HOME_P): Delete.
2810 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2811 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2812 Delete references to mips_regs_have_home_p.
2813
2814 2002-08-14 Keith Seitz <keiths@redhat.com>
2815
2816 * Makefile.in (install-gdbtk): Create insight plugin directory.
2817 Install plugins.tcl file.
2818
2819 2002-08-14 Keith Seitz <keiths@redhat.com>
2820
2821 * configure.in: Move SUBDIRS to near top of the file so that
2822 --enable options may add things to it.
2823 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2824 * configure: Regenerate.
2825
2826 2002-08-13 Michael Snyder <msnyder@redhat.com>
2827
2828 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2829 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2830 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2831
2832 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2833
2834 * vax-tdep.c (vax_get_saved_register): Delete function.
2835 (vax_gdbarch_init): Update.
2836 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2837 (ns32k_gdbarch_init): Update.
2838 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2839 (alpha_gdbarch_init): Update.
2840
2841 2002-08-13 Andrew Cagney <cagney@redhat.com>
2842
2843 * regcache.c (init_regcache_descr): Overallocate the
2844 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2845 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2846 nr_raw_registers.
2847 (set_register_cached): Add range checking assertions. Use
2848 current_regcache.
2849
2850 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2851
2852 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2853 numbers for MMX registers.
2854
2855 2002-08-13 Andrew Cagney <cagney@redhat.com>
2856
2857 * i386-tdep.c (i386_gdbarch_init): Use
2858 generic_unwind_get_saved_register.
2859
2860 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2861
2862 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2863 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2864 target vector.
2865 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2866 Delete. Add comment regarding this now-deleted target method.
2867
2868 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2869
2870 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2871 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2872 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2873 real PC and the page number (if it's within the memory bank window).
2874 (m68hc11_pseudo_register_write): Likewise when saving.
2875 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2876 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2877 (m68hc11_register_raw_size): And use 32-bit for it.
2878 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2879 16K memory bank is used by the prog; also use the virtual pc.
2880
2881 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2882
2883 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2884 (m68hc11_gdbarch_init): Install it in gdbarch.
2885 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2886 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2887 (MSYMBOL_SIZE): New for documentation.
2888 (insn_return_kind): Enum to specify how a function returns.
2889 (frame_extra_info): Cleanup and record the return mode.
2890 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2891 register in address computation.
2892 (m68hc11_get_return_insn): New to obtain the return instruction used
2893 by the function.
2894 (m68hc11_frame_init_saved_regs): Take into account the return
2895 instruction used by the function for far and interrupt functions.
2896 (m68hc11_init_extra_frame_info): Take into account page register.
2897 (m68hc11_frame_args_address): Adjust according to the return mode.
2898 (show_regs): Print page register only when it's used.
2899
2900 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2901
2902 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2903 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2904 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2905 registers.
2906 (m68hc11_register_raw_size): Likewise.
2907
2908 2002-08-13 Andrew Cagney <cagney@redhat.com>
2909
2910 * i386-tdep.c (i386_register_name): Handle mmx registers.
2911 (mmx_regnum_p): New function.
2912 (i386_mmx_names): New array.
2913 (mmx_num_regs): New variable.
2914 (i386_pseudo_register_read): New function.
2915 (i386_pseudo_register_write): New function.
2916 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2917
2918 * regcache.c (regcache_raw_read_unsigned): New function.
2919 (regcache_raw_read_signed): New function.
2920 * regcache.h (regcache_raw_read_unsigned): Declare.
2921 (regcache_raw_read_signed): Declare.
2922
2923 2002-08-13 Andrew Cagney <cagney@redhat.com>
2924
2925 * regcache.c (regcache_raw_read_as_address): Delete function.
2926 (regcache_cooked_read_signed): New function.
2927 (regcache_cooked_read_unsigned): New function.
2928 * regcache.h (regcache_cooked_read_signed): Declare.
2929 (regcache_cooked_read_unsigned): Declare.
2930 (regcache_raw_read_as_address): Delete declaration.
2931
2932 * blockframe.c (generic_read_register_dummy): Use
2933 regcache_cooked_read_unsigned.
2934 * i386-tdep.c (i386_extract_struct_value_address): Use
2935 regcache_cooked_read_unsigned.
2936
2937 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2938
2939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2940 double sizes according to ELF ABI flags.
2941 (gdbarch_tdep): Record elf_flags.
2942
2943 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2944
2945 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2946 (m6812_prolog): They can appear in 68HC12 function prologue.
2947 (m68hc11_frame_chain): Cleanup.
2948
2949 2002-08-12 Andrew Cagney <cagney@redhat.com>
2950
2951 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2952 declarations.
2953 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2954 (i386_linux_register_raw_size): Delete function.
2955 (i386_linux_init_abi): Update.
2956 * i386-tdep.c (i386_register_raw_size): Delete function.
2957 (i386_register_byte): Delete function.
2958 (i386_gdbarch_init): Update.
2959 (i386_register_size): Delete array.
2960 (i386_register_offset): Delete array.
2961
2962 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2963 (REGISTER_RAW_SIZE): Delete macro.
2964 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2965 (REGISTER_BYTE): Delete macro.
2966
2967 2002-08-11 Aidan Skinner <aidan@velvet.net>
2968
2969 * ada-lang.c (ada_lookup_partial_symbol)
2970 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2971 prototype names so that grep ^func works properly.
2972
2973 * ada-lang.c (ada_array_element_type)
2974 (ada_lookup_partial_symbol): Fix typos in parameter list.
2975
2976 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2977 Fix prototype names so that grep ^func works properly.
2978
2979 2002-08-10 Andrew Cagney <cagney@redhat.com>
2980 Elena Zannoni <ezannoni@redhat.com>
2981 Martin M. Hunt <hunt@redhat.com>
2982
2983 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2984 (build_builtin_type_vec128i): Set the vector bit.
2985 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2986 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2987 (build_builtin_type_vec64): New function.
2988 (build_builtin_type_vec64i): New function.
2989 (build_gdbtypes): Initialize builtin_type_vec64 and
2990 builtin_type_vec64i.
2991
2992 2002-08-09 Andrew Cagney <cagney@redhat.com>
2993
2994 * regcache.c (regcache_dump): Compare the register offset
2995 with REGISTER_BYTE.
2996 * arch-utils.c (generic_register_byte): New function.
2997 * arch-utils.h (generic_register_byte): Declare.
2998 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2999 * gdbarch.h, gdbarch.c: Regenerate.
3000
3001 2002-08-09 Andrew Cagney <cagney@redhat.com>
3002
3003 * regcache.c: Include "gdbcmd.h"
3004 (_initialize_regcache): Add commands "maintenance print
3005 registers", "maintenance print raw-registers" and "maintenance
3006 print cooked-registers".
3007 (enum regcache_dump_what): Define.
3008 (dump_endian_bytes): New function.
3009 (regcache_dump): New function.
3010 (regcache_print): New function.
3011 (maintenance_print_registers): New function.
3012 (maintenance_print_raw_registers): New function.
3013 (maintenance_print_cooked_registers): New function.
3014 * Makefile.in (regcache.o): Update dependencies.
3015
3016 2002-08-09 Michael Snyder <msnyder@redhat.com>
3017
3018 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3019 (mips_push_arguments): Correct some comments. Use paddr_nz
3020 for printing addresses in debug output. Replace static
3021 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3022 (mips_n32n64_push_arguments): New function, cloned from
3023 mips_push_arguments and tuned for the n32/n64 ABI.
3024 (mips_push_register): Buffer needs dynamic allocation.
3025 (mips_print_register): Ditto.
3026 (do_gp_register_row): Ditto.
3027 (mips_store_return_value): Ditto.
3028 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3029
3030 2002-08-09 Don Howard <dhoward@redhat.com>
3031
3032 * memattr.c (mem_info_command): Print special case of upper bound
3033 as max CORE_ADDR + 1.
3034
3035 2002-08-08 Michael Snyder <msnyder@redhat.com>
3036
3037 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3038 returns structs by ref if they're too big to fit in two registers.
3039
3040 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3041
3042 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3043 saved regs value.
3044 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3045 mips_find_saved_regs().
3046 (mips_pop_frame): Likewise.
3047
3048 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3049
3050 * blockframe.c (frame_saved_regs_register_unwind): Revise
3051 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3052 frames are in use.
3053
3054 2002-08-09 Grace Sainsbury <graces@redhat.com>
3055
3056 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3057 T-packets; the 'a' is not taken as a register number.
3058 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3059 (remote_stopped_data_address): New functions; add to target
3060 vector.
3061 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3062 prototypes to match other implementations of this
3063 function. replace integer argument with pointer -- the length
3064 field in the Z-packet is the length of what is pointed to or 1 if
3065 pointer is null. Add to target vector.
3066 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3067 target vector.
3068
3069 From Mark Salter:
3070 * remote.c (remote_wait): Add support to extract optional
3071 watchpoint information from T-packet. Ignore unrecognized
3072 optional info in T-packet.
3073 (remote_async_wait): Ditto.
3074
3075 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3076
3077 * cli/cli-dump.c: Change fopen modes to use binary open modes
3078 as defined in include/fopen-bin.h throughout.
3079
3080 2002-08-08 Michael Snyder <msnyder@redhat.com>
3081
3082 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3083
3084 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3085
3086 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3087 assertion failure by returning early after a warning.
3088
3089 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3090
3091 * mips-tdep.c (mips_find_saved_regs): Make static.
3092 (mips_frame_init_saved_regs): New function.
3093 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3094 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3095 (mips_find_saved_regs): Delete declaration.
3096
3097 2002-08-08 Grace Sainsbury <graces@redhat.com>
3098
3099 * remote.c (remote_wait, remote_async_wait): Change
3100 thread_num from int to ULONGEST.
3101 (unpack_varlen_hex): Change result parameter from
3102 int * to ULONGEST *.
3103
3104 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3105
3106 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3107 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3108 powerpc*-*-*.
3109 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3110
3111 2002-08-08 Andrew Cagney <cagney@redhat.com>
3112
3113 * gcore.c (override_derive_stack_segment): Delete variable.
3114 (preempt_derive_stack_segment): Delete function.
3115 (derive_stack_segment): Delete function.
3116 (default_derive_stack_segment): Renamed to derive_stack_segment.
3117 (override_derive_heap_segment): Delete variable.
3118 (preempt_derive_heap_segment): Delete function.
3119 (derive_heap_segment): Delete function.
3120 (default_derive_heap_segment): Rename to derive_heap_segment.
3121
3122 2002-08-06 Michael Snyder <msnyder@redhat.com>
3123
3124 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3125 * mips-tdep.c (mips_EABI_use_struct_convention,
3126 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3127 New functions. (mips_use_struct_convention): Delete.
3128 (mips_gdbarch_init): set use_gdbarch_convention.
3129
3130 2002-08-06 Michael Snyder <msnyder@redhat.com>
3131
3132 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3133 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3134 mips_o32_reg_struct_has_addr): New functions.
3135 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3136
3137 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3138
3139 * regcache.c (pseudo_register): Delete function.
3140 (fetch_register): Delete function.
3141 (store_register): Delete function.
3142 (regcache_raw_read, legacy_read_register_gen): Use
3143 target_fetch_registers instead of fetch_register.
3144 (legacy_write_register_gen, regcache_raw_write): Use
3145 target_store_register instead of store_register.
3146 (write_register_bytes): Ditto.
3147
3148 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3149 (STORE_PSEUDO_REGISTER): Delete.
3150 * gdbarch.h, gdbarch.c: Regenerate.
3151
3152 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3153
3154 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3155 write dump file binary.
3156
3157 2002-08-05 Michael Snyder <msnyder@redhat.com>
3158
3159 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3160 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3161 (mips_gdbarch_init): Set N32 target to be mips64.
3162
3163 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3164
3165 * frame.c (find_saved_register): Break out of loop once saved
3166 register address is found. Don't mention sparc in loop comment
3167 anymore.
3168
3169 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3170
3171 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3172 mips_default_saved_regsize to 8.
3173
3174 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3175
3176 * gcore.c: Do not include <sys/procfs.h>.
3177 * Makefile.in (gcore.o): Update dependencies.
3178
3179 2002-08-06 Andrew Cagney <cagney@redhat.com>
3180
3181 * configure.tgt: Make arc-*-* obsolete.
3182 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3183 * MAINTAINERS: Make arc-elf obsolete.
3184 * arc-tdep.c: Make file obsolete.
3185 * config/arc/arc.mt: Ditto.
3186 * config/arc/tm-arc.h: Ditto.
3187
3188 2002-08-05 Theodore A. Roth <troth@verinet.com>
3189
3190 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3191
3192 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3193
3194 * mcore-tdep.c (mcore_gdbarch_init): Use
3195 generic_unwind_get_saved_register instead of
3196 generic_get_saved_register.
3197 * v850-tdep.c (v850_gdbarch_init): Ditto.
3198 * frv-tdep.c (frv_gdbarch_init): Ditto.
3199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3200 * s390-tdep.c (s390_gdbarch_init): Ditto.
3201 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3202 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3203 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3204
3205 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3206
3207 * objfiles.h: Add missing #include "symfile.h"
3208
3209 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3210
3211 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3212
3213 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3214 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3215 of FIELD_BITSIZE.
3216
3217 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3218
3219 * NEWS: Cleanup and nitpick.
3220
3221 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3222
3223 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3224
3225 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3226
3227 * Makefile.in (gdbtk-bp.o): Update dependencies.
3228 (gdbtk-register.o): Ditto.
3229 (gdbtk-varobj.o): Ditto.
3230
3231 2002-08-03 Andrew Cagney <cagney@redhat.com>
3232
3233 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3234 m68hc11_fetch_pseudo_register.
3235 (m68hc11_pseudo_register_write): Replace
3236 m68hc11_store_pseudo_register.
3237 (m68hc11_gdbarch_init): Update.
3238
3239 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3240
3241 * gdbarch.sh: Include "gdb_string.h".
3242 * gdbarch.c: Regenerate.
3243
3244 * regcache.c: Include "gdb_string.h".
3245 * ax-general.c: Ditto.
3246 * varobj.c: Ditto.
3247 * std-regs.c: Ditto.
3248 * fbsd-proc.c: Ditto.
3249 * thread.c: Ditto.
3250
3251 * Makefile.in (regcache.o): Update dependencies.
3252 (thread.o, gdbarch.o): Ditto.
3253 (ax-general.o, gdbarch.o): Ditto.
3254 (varobj.o, std-regs.o): Ditto.
3255 (fbsd-proc.o): Specify dependencies.
3256
3257 2002-08-02 Andrew Cagney <cagney@redhat.com>
3258
3259 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3260 regnum.
3261 (regcache_cooked_write): Ditto.
3262
3263 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3264
3265 * regcache.c (regcache_cooked_read): New function.
3266 (regcache_cooked_write): New function.
3267 (read_register_gen): Rewrite using regcache_cooked_read.
3268 (write_register_gen): Rewrite using regcache_cooked_write.
3269
3270 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3271 Declare.
3272
3273 2002-08-02 Andrew Cagney <cagney@redhat.com>
3274
3275 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3276 Replace the architecture methods register_read and register_write.
3277 * gdbarch.h, gdbarch.c: Regenerate.
3278 * regcache.c (init_regcache_descr): Update.
3279 (read_register_gen): Update.
3280 (write_register_gen): Update.
3281 (supply_register): Update comment.
3282
3283 * sh-tdep.c (sh_gdbarch_init): Update.
3284 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3285 `regcache' and `gdbarch' parameters. Make `buffer' a void
3286 pointer. Update code.
3287 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3288 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3289 void pointer. Update code.
3290 (sh64_register_write): Delete.
3291 (sh4_register_read): Delete.
3292 (sh64_register_read): Delete.
3293 (sh4_register_write): Delete.
3294 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3295 void pointer, `to' parameter a void pointer.
3296 (sh_sh64_register_convert_to_raw): Ditto.
3297
3298 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3299
3300 * mips-tdep.c (mips_register_virtual_type): Use architecture
3301 invariant return values.
3302
3303 2002-08-01 Andrew Cagney <cagney@redhat.com>
3304
3305 * linux-proc.c: Include "gdb_string.h".
3306 * Makefile.in (linux-proc.o): Update dependency list.
3307
3308 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3309
3310 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3311 comment.
3312
3313 2002-08-01 Grace Sainsbury <graces@redhat.com>
3314
3315 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3316 to_insert_watchpoint, to_remove_watchpoint,
3317 to_stopped_by_watchpoint, to_stopped_data_address,
3318 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3319 target vecctor. Define their corresponding macros so they call
3320 them.
3321
3322 * target.c: Add default and debug versions of for
3323 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3324 to_insert_watchpoint, to_remove_watchpoint,
3325 to_stopped_by_watchpoint, to_stopped_data_address,
3326 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3327
3328 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3329
3330 * mips-tdep.c (mips_register_virtual_type): New function.
3331 (mips_gdbarch_init): Register mips_register_virtual_type()
3332 with gdbarch machinery.
3333 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3334 this file instead of tm-bigmips.h.
3335 (MIPS_REGSIZE): Delete this macro.
3336 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3337 multiarch version in mips-tdep.c will be found.
3338
3339 2002-08-01 Andrew Cagney <cagney@redhat.com>
3340
3341 * NEWS: Menion that CHILL has been made obsolete.
3342
3343 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3344 * stabsread.c (read_range_type): Ditto.
3345 * gdbtypes.h: Ditto.
3346 * language.c (binop_type_check): Ditto.
3347 (binop_result_type): Ditto.
3348 (integral_type): Ditto.
3349 (character_type): Ditto.
3350 (string_type): Ditto.
3351 (boolean_type): Ditto.
3352 (structured_type): Ditto.
3353 (lang_bool_type): Ditto.
3354 (binop_type_check): Ditto.
3355 * language.h (_LANG_chill): Ditto.
3356 * dwarfread.c (set_cu_language): Ditto.
3357 * dwarfread.c (CHILL_PRODUCER): Ditto.
3358 * dwarfread.c (handle_producer): Ditto.
3359 * expression.h (enum exp_opcode): Ditto.
3360 * eval.c: Ditto for comments.
3361 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3362 * expprint.c (print_subexp): Ditto.
3363 (print_subexp): Ditto.
3364 * valops.c (value_cast): Ditto.
3365 (search_struct_field): Ditto.
3366 * value.h (COERCE_VARYING_ARRAY): Ditto.
3367 * symfile.c (init_filename_language_table): Ditto.
3368 (add_psymbol_with_dem_name_to_list): Ditto.
3369 * valarith.c (value_binop): Ditto.
3370 (value_neg): Ditto.
3371 * valops.c (value_slice): Ditto.
3372 * symtab.h (union language_specific): Ditto.
3373 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3374 (SYMBOL_DEMANGLED_NAME): Ditto.
3375 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3376 * defs.h (enum language): Ditto.
3377 * symtab.c (got_symtab): Ditto.
3378 * utils.c (fprintf_symbol_filtered): Ditto.
3379
3380 * ch-typeprint.c: Make file obsolete.
3381 * ch-valprint.c: Make file obsolete.
3382 * ch-lang.h: Make file obsolete.
3383 * ch-exp.c: Make file obsolete.
3384 * ch-lang.c: Make file obsolete.
3385
3386 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3387 CHILL_LIB.
3388 (TARGET_FLAGS_TO_PASS): Ditto.
3389 (CHILLFLAGS): Obsolete.
3390 (CHILL): Obsolete.
3391 (CHILL_FOR_TARGET): Obsolete.
3392 (CHILL_LIB): Obsolete.
3393 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3394 ch-valprint.c.
3395 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3396 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3397 ch-lang.o.
3398 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3399 targets.
3400
3401 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3402
3403 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3404 This does not change anything at the moment, but will be helpful
3405 later when full Ada support is integrated.
3406
3407 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3408
3409 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3410 help message.
3411
3412 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3413
3414 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3415 and save it in a local variable. Use variable in later test.
3416
3417 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3418
3419 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3420 test. (Thanks to Daniel Jacobowitz.)
3421
3422 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3423
3424 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3425 (mips_abi_strings): Add "n64".
3426 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3427
3428 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3429
3430 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3431 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3432
3433 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3434
3435 * utils.c (host_pointer_to_address, address_to_host_pointer):
3436 Use gdb_assert() instead of explicit call to internal_error().
3437
3438 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3439
3440 * Makefile.in (rs6000-nat.o): Update dependencies.
3441
3442 From Nicholas Duffek:
3443 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3444 (aix-thread.o): New rule.
3445 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3446 * config/powerpc/aix432.mh: New file.
3447
3448 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3449
3450 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3451 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3452 (fetch_core_registers, ppc_linux_supply_gregset)
3453 (ppc_linux_supply_fpregset): New functions.
3454 (ppc_linux_regset_core_fns): New.
3455 (_initialize_ppc_linux_tdep): Call add_core_fns.
3456 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3457 and ppc_linux_supply_gregset.
3458 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3459 (supply_fpregset): Call ppc_linux_supply_fpregset.
3460 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3461 corelow.o.
3462 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3463
3464 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3465
3466 * symtab.c (lookup_symbol): Demangle before lowercasing.
3467
3468 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3469
3470 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3471 declaration.
3472 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3473 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3474 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3475 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3476 "gdb_string.h".
3477 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3478 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3479 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3480 (avr-tdep.o, mon960-rom.o): Ditto.
3481 (aout_stabs_gnu_h): Define.
3482 (symtab_h): Remove $(gdb_obstack_h).
3483
3484 2002-07-30 Jim Blandy <jimb@redhat.com>
3485
3486 Patch from David Carlton <carlton@math.stanford.edu>:
3487 * gdbinit.in: Move the `dir' commands that add GDB's own source
3488 directory to the search path to the end, so that the `gdb' source
3489 directory will be searched first.
3490
3491 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3492
3493 * gdb_obstack.h: New file.
3494 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3495 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3496 * objfiles.h: Include "gdb_obstack.h".
3497 * Makefile.in (gdb_obstack_h): Define.
3498 (symtab_h): Add $(gdb_obstack_h).
3499 (objfiles_h): Add $(gdb_obstack_h).
3500
3501 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3502 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3503 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3504 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3505 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3506 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3507 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3508 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3509
3510 * Makefile.in (bcache.o): Update dependencies.
3511 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3512 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3513 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3514 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3515 (stabsread.o, symfile.o, symmisc.o): Ditto.
3516 (symtab.o, typeprint.o, macroexp.o): Ditto.
3517 (macrotab.o, mdebugread.o): Ditto.
3518 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3519 (coff_ecoff_h, aout_aout64_h): Define.
3520 (aout_stabs_gnu_h, libaout_h): Define.
3521
3522 2002-07-29 Andrew Cagney <cagney@redhat.com>
3523
3524 * regcache.c (struct regcache_descr): Rename nr_registers to
3525 nr_cooked_registers. Revise comments describing the structure
3526 member fields.
3527 (init_regcache_descr): Update.
3528 (init_legacy_regcache_descr): Update.
3529 (read_register_gen, write_register_gen): When a cooked register in
3530 the raw register range, directly access the value from the raw
3531 register cache.
3532
3533 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3534
3535 * z8k-tdep.c: Do not include "obstack.h".
3536 * h8300-tdep.c, h8500-tdep.c: Ditto.
3537 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3538 * valprint.c, v850-tdep.c: Ditto.
3539 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3540 * mn10200-tdep.c: Ditto.
3541
3542 * Makefile.in (z8k-tdep.o): Update dependencies.
3543 (m68hc11-tdep.o, valprint.o): Ditto.
3544 (v850-tdep.o, d10v-tdep.o): Ditto.
3545 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3546 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3547 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3548 (sh_opc_h, gdb_sim_sh_h): Define.
3549 (elf_sh_h, elf_bfd_h): Define.
3550 (opcode_m68hc11_h): Define.
3551 (OPCODES_SRC, OPCODES_DIR): define.
3552 (OPCODES): Use $(OPCODES_DIR).
3553 (gdb_sim_d10v_h): Rename sim_d10v_h.
3554 (gdb_sim_arm_h): Rename sim_arm_h.
3555
3556 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3557
3558 * utils.c (host_pointer_to_address, address_to_host_pointer):
3559 Change internal_error() message to indicate function responsible
3560 for the error.
3561
3562 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3563
3564 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3565 calls to local_hex_string_custom().
3566
3567 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3568
3569 * irix5-nat.c: Move IRIX shared library support from here...
3570 * solib-irix.c: ...to here. Revised substantially to work with
3571 generic solib framework.
3572
3573 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3574 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3575 * mips-irix-tdep.c: New file.
3576
3577 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3578 (mips-irix-tdep.o, solib-irix.o): New rules.
3579 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3580 solib-irix.o.
3581 * config/mips/irix6.mt (TDEPFILES): Likewise.
3582 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3583
3584 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3585
3586 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3587 disabled (via ``#if 0'') includes.
3588
3589 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3590
3591 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3592 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3593 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3594 Add support for the fpscr register.
3595 * rs6000-nat.c (regmap, fetch_inferior_registers)
3596 (store_inferior_registers, fetch_core_registers): Likewise.
3597
3598 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3599
3600 * rs6000-nat.c (language.h): Include.
3601 (special_regs): Delete this array.
3602 (regmap): New function.
3603 (fetch_register, store_register): Use regmap() to map gdb
3604 register numbers to ptrace register numbers. Also, use
3605 outputs from regmap() to make decisions regarding type of
3606 ptrace() call to make. In particular, don't compare against
3607 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3608 (fetch_inferior_registers, store_inferior_registers): Where
3609 possible, obtain register numbers from tdep struct. Don't
3610 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3611 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3612 (LAST_UISA_SP_REGNUM): Delete.
3613
3614 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3615
3616 * rs6000-nat.c (ppc-tdep.h): Include.
3617 (fetch_registers, store_register, fetch_core_registers): Don't
3618 access registers[] directly. Instead, use supply_register() or
3619 regcache_collect() as appropriate.
3620 (find_toc_address): Format hex address with local_hex_string().
3621
3622 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3623
3624 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3625 bfd/elf32-frv.c.
3626
3627 2002-07-24 Tom Tromey <tromey@redhat.com>
3628
3629 * jv-exp.y: Marked all strings with _().
3630 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3631 internal_error.
3632 (MethodInvocation, CastExpression, parse_number, yyerror,
3633 java_type_from_name, push_expression_name, yylex): Typo fixes.
3634
3635 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3636
3637 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3638 (tee_file_flush, tee_file_write, tee_file_fputs)
3639 (tee_file_isatty): New.
3640 * ui-file.h (tee_file_new): Add prototype.
3641
3642 2002-07-24 Aidan Skinner <aidan@velvet.net>
3643
3644 * ada-lang.c: Change k&r style function definitions to prototyped
3645 form.
3646 * ada-typeprint.c: Change k&r style function definitions to prototyped
3647 form.
3648 * ada-valprint.c: Change k&r style function definitions to prototyped
3649 form.
3650
3651 2002-07-24 Andrew Cagney <cagney@redhat.com>
3652
3653 * README: Remove reference to remote-bug.
3654 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3655 remote-bug.c.
3656 (m88k-nat.o): Delete rule.
3657 (m88k-tdep.o): Delete rule.
3658 (remote-bug.o): Delete rule.
3659 * MAINTAINERS: Mark as obsolete.
3660 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3661 * m88k-tdep.c: Make file obsolete.
3662 * config/m88k/m88k.mh: Ditto.
3663 * config/m88k/delta88v4.mh: Ditto.
3664 * config/m88k/delta88v4.mt: Ditto.
3665 * config/m88k/delta88.mt: Ditto.
3666 * config/m88k/delta88.mh: Ditto.
3667 * remote-bug.c: Ditto.
3668 * config/m88k/tm-delta88.h: Ditto.
3669 * config/m88k/nm-delta88v4.h: Ditto.
3670 * config/m88k/xm-delta88.h: Ditto.
3671 * config/m88k/xm-dgux.h: Ditto.
3672 * config/m88k/tm-m88k.h: Ditto.
3673 * config/m88k/nm-m88k.h: Ditto.
3674 * config/m88k/tm-delta88v4.h: Ditto.
3675 * m88k-nat.c: Ditto.
3676 * cxux-nat.c: Ditto.
3677 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3678 and m88*-*-* obsolete.
3679 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3680 m88*-*-* obsolete.
3681
3682 2002-07-24 Andrew Cagney <cagney@redhat.com>
3683
3684 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3685 constant. Same for local pointer variables.
3686 (extract_signed_integer): Ditto.
3687 * defs.h (extract_unsigned_integer): Update.
3688 (extract_signed_integer): Update.
3689
3690 2002-07-24 Andrew Cagney <cagney@redhat.com>
3691
3692 * regcache.c (regcache_raw_write): Change buf parameter to a
3693 constant void pointer.
3694 (regcache_raw_read): Change buf parameter to a void pointer.
3695 (legacy_write_register_gen): Change myaddr parameter a constant
3696 void pointer.
3697 (supply_register): Change val parameter to a const void pointer.
3698 * regcache.h (regcache_raw_write): Update declaration.
3699 (regcache_raw_read): Update declaration.
3700 (supply_register): Update declaration.
3701
3702 2002-07-24 Tom Tromey <tromey@redhat.com>
3703
3704 * defs.h (gdb_readline_wrapper): Declare.
3705 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3706 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3707 * top.c (gdb_readline_wrapper): New function.
3708 (command_line_input): Use it.
3709
3710 2002-07-24 Andrew Cagney <cagney@redhat.com>
3711
3712 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3713 regcache_read and regcache_write.
3714 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3715 * regcache.c: Update.
3716 * sh-tdep.c (sh64_push_arguments): Update comment.
3717 (sh_pseudo_register_read): Update.
3718 (sh_pseudo_register_write): Update.
3719 (sh4_register_read): Update.
3720 (sh4_register_write): Update.
3721 (sh64_pseudo_register_read): Update.
3722 (sh64_pseudo_register_write): Update.
3723 (sh64_register_read): Update.
3724 (sh64_register_write): Update.
3725 * i386-tdep.c (i386_extract_return_value): Update.
3726 (i386_extract_struct_value_address): Update.
3727 (i386_extract_return_value): Update.
3728 * blockframe.c (generic_read_register_dummy): Update.
3729 (generic_call_dummy_register_unwind): Update
3730 * infrun.c (write_inferior_status_register): Update.
3731
3732 2002-07-23 Jim Blandy <jimb@redhat.com>
3733
3734 * parser-defs.h (expression_context_pc): Make this extern.
3735 (Thanks to Michael Snyder.)
3736
3737 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3738
3739 GDB 5.2.1 released from 5.2 branch.
3740 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3741 * README: Update to mention 5.2.1.
3742
3743 2002-07-23 Mark Salter <msalter@redhat.com>
3744
3745 * remote.c (remote_read_bytes): Fix check for error.
3746
3747 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3748
3749 * aix-thread.c (language.h): Include.
3750 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3751 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3752 Print newlines at end of debug messages.
3753 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3754 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3755
3756 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3757
3758 * aix-thread.c (ppc-tdep.h): Include.
3759 (special_register_p): New function.
3760 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3761 (store_regs_user_thread): Use register number information from
3762 gdbarch_tdep struct instead of hardcoded offsets relative to
3763 FIRST_UISA_SP_REGNUM.
3764 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3765 special_register_p() instead of using FPLAST_REGNUM and
3766 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3767 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3768 will be MQ's register number.
3769
3770 2002-07-22 Michael Snyder <msnyder@redhat.com>
3771
3772 * aix-thread.c (ops): Rename to aix_thread_ops.
3773 (base_ops): Rename to base_target.
3774 (ops_attach): Rename to aix_thread_attach.
3775 (ops_detach): Rename to aix_thread_detach.
3776 (ops_resume): Rename to aix_thread_detach.
3777 (ops_wait): Rename to aix_thread_wait.
3778 (ops_kill): Rename to aix_thread_kill.
3779 (init_ops): Rename to init_aix_thread_ops.
3780 (ops_fetch_register): Rename to aix_thread_fetch_register.
3781 (ops_store_register): Rename to aix_thread_store_register.
3782 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3783 (ops_thread_alive): Rename to aix_thread_thread_alive.
3784 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3785 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3786 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3787 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3788 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3789 (store_regs_lib): Rename to store_regs_user_thread.
3790 (store_regs_kern): Rename to store_regs_kernel_thread.
3791
3792 2002-07-22 Michael Snyder <msnyder@redhat.com>
3793
3794 * aix-thread.c (ops_prepare_to_store): Eliminate.
3795 (init_ops): Don't initialize ops.prepare_to_store.
3796 (store_regs_kern): Pre-fetch register buffers from child,
3797 because some registers may not be in the cache. Copy
3798 regs from register cache only if they are cached.
3799 (store_regs_lib): Copy regs from register cache only
3800 if they are cached.
3801 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3802 fill_gprs64): Ditto.
3803
3804 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3805
3806 * aix-thread.c (gdb_assert.h): Include.
3807 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3808 register sizes (from register cache) match size of buffer holding
3809 register data.
3810 (fill_sprs32): Change parameter types to match those in the ptrace()
3811 buffer.
3812 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3813 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3814
3815 2002-07-22 Michael Snyder <msnyder@redhat.com>
3816
3817 * aix-thread.c (supply_sprs64): Cosmetic change.
3818 (supply_sprs32): Cosmetic change.
3819 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3820 (fill_sprs64): Use regcache_collect instead of read_register.
3821 (store_regs_lib): Use regcache_collect instead of
3822 read_register. Use fill_sprs32 instead of fill_sprs64,
3823 if debugging a 32-bit architecture.
3824 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3825 out of the register cache, instead of passing a pointer into
3826 the register cache directly to ptrace. Use regcache_collect
3827 insteaad of read_register.
3828 (ops_prepare_to_store): Use target_read_registers instead
3829 of read_register_bytes.
3830
3831 2002-07-20 Aidan Skinner <aidan@velvet.net>
3832
3833 * MAINTAINERS: Add self under write after approval.
3834
3835 2002-07-20 Aidan Skinner <aidan@velvet.net>
3836
3837 * ada-tasks.c: Change k&r style function definitions to prototyped
3838 form.
3839
3840 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3841
3842 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3843 * x86-64-tdep.c: Include "objfiles.h".
3844 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3845 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3846
3847 2002-07-17 Michal Ludvig <michal@suse.cz>
3848
3849 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3850 (update_context): Initialise cfa variable.
3851
3852 2002-07-17 Michael Snyder <msnyder@redhat.com>
3853
3854 * aix-thread.c: Shorten some long lines.
3855 Bring comments into line with code spec.
3856
3857 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3858
3859 * infrun.c: Re-indent using gdb_indent.sh.
3860
3861 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3862
3863 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3864 Leave the indentation temporarily untouched, to minimize the diffs.
3865
3866 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3867
3868 * stabsread.c: Make os9k sections of the code obsolete,
3869 for real this time.
3870 * stabsread.h: Make os9k sections of the code obsolete.
3871
3872 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3873
3874 * linux-low.c (regsets_store_inferior_registers): Add free()
3875 at the end of a loop to prevent memory leak.
3876 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3877 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3878 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3879 line a comment.
3880 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3881
3882 2002-07-17 Jim Blandy <jimb@redhat.com>
3883
3884 * macrocmd.c (info_macro_command): Remove newline from error
3885 message.
3886
3887 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3888
3889 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3890 (sh_gdbarch_init): Use it for sh-dsp.
3891
3892 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3893
3894 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3895 64-bit DWARF2 format.
3896
3897 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3898
3899 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3900 <sys/proc.h> when not available.
3901
3902 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3903
3904 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3905 * stabsread.c: Make os9k sections of the code obsolete.
3906 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3907 * config/i386/i386os9k.mt: Make file obsolete.
3908 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3909 (COMMON_OBS): Remove os9kread.o
3910 (SFILES): Remove os9kread.c.
3911 (os9kread.o, remote-os9k.o): Make target obsolete.
3912 * remote-os9k.c: Make file obsolete.
3913 * os9kread.c: Make file obsolete.
3914 * Makefile.in
3915
3916 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3917
3918 * NEWS: Mention that the FR30 has been made obsolete.
3919 * fr30-tdep.c: Make file obsolete.
3920 * config/fr30/tm-fr30.h: Ditto.
3921 * config/fr30/fr30.mt: Ditto.
3922 * configure.tgt: Make fr30-*-elf obsolete.
3923 * MAINTAINERS: Make fr30-elf obsolete.
3924
3925 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3926
3927 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3928 found is not inside a section.
3929
3930 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3931
3932 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3933 strerror().
3934 (pdc_realloc): Use xrealloc() instead of realloc().
3935
3936 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3937
3938 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3939 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3940 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3941 macros.
3942
3943 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3944
3945 * aix-thread.c (ptrace_check): Eliminate goto.
3946 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3947 problem.
3948
3949 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3950
3951 * aix-thread.c (gdbcmd.h): Include.
3952 (DEBUG, DBG, DBG2, dbg): Eliminate.
3953 (debug_aix_thread): New static global.
3954 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3955 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3956 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3957 invocations to DBG and DBG2 macros to test against
3958 ``debug_aix_thread'' and call fprintf_unfiltered().
3959 (_initialize_aix_thread): Add new command "set debug aix-thread".
3960
3961 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3962
3963 From Gerhard Tonn <TON@de.ibm.com>:
3964 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3965 instead of supply_register.
3966
3967 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3968
3969 * dwarf2cfi.c: Include "gdb_assert.h".
3970 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3971 non-NULL.
3972 (update_context): Do not use __func__. Add missing ``break''.
3973 (update_context): Do not use __func__.
3974
3975 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3976
3977 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3978 and its setting. Set gdbarch instruction printing functions
3979 directly. For non-rs6000 case use new function
3980 gdb_print_insn_powerpc.
3981 (gdb_print_insn_powerpc): New function.
3982
3983 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3984
3985 * NEWS: Mention that the d30v has been marked obsolete.
3986 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3987 * configure.tgt: Mark d30v-*-* as obsolete.
3988 * d30v-tdep.c: Mark file as obsolete.
3989 * config/d30v/d30v.mt: Ditto.
3990 * config/d30v/tm-d30v.h: Ditto.
3991
3992 2002-07-13 Aidan Skinner <aidan@velvet.net>
3993
3994 * ada-tasks.c (add_task_entry): replace calls to
3995 malloc() with xmalloc
3996 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3997
3998 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3999 ada_finish_decode_line_1, all_sals_for_line
4000 ada_breakpoint_rewrite): replace calls to free() with xfree()
4001
4002 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4003
4004 From Nicholas Duffek (with minor changes by Martin Hunt,
4005 Louis Hamilton, and Kevin Buettner):
4006 * aix-thread.c: New file.
4007
4008 2002-07-12 Petr Sorfa <petrs@caldera.com>
4009
4010 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4011 complaint for invalid attribute class or form.
4012 (read_func_scope): DW_AT_frame_base
4013 better handling of DW_AT_block*.
4014 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4015 better handling of DW_AT_block*.
4016 (read_common_block): DW_AT_location
4017 better handling of DW_AT_block*.
4018 (read_partial_die): DW_AT_location better handling
4019 of DW_AT_block*.
4020 (new_symbol): DW_AT_external better handling of
4021 DW_AT_block*. Proper initialization of variable
4022 "addr".
4023 (attr_form_is_block): New function that returns true
4024 if the attribute's form is of DW_FORM_block*.
4025
4026 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4027
4028 * valops.c (find_method_list): Remove comment about
4029 removed STATIC_MEMFUNCP argument.
4030 (value_find_oload_method_list): Likewise.
4031
4032 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4033
4034 From Nicholas Duffek:
4035 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4036 target_new_objfile_hook.
4037
4038 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4039
4040 From Nicholas Duffek:
4041 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4042 csect.
4043
4044 2002-07-12 Andrew Cagney <cagney@redhat.com>
4045
4046 * MAINTAINERS: Mention --enable-sim-build-warnings.
4047 (m68hc11-elf): Disable sim build warnings.
4048 (m32r-elf): Mark as broken obsolete candidate.
4049 (x86_64-linux-gnu): Mark as buildable with -Werror.
4050 (arm-elf): Change -w to ``,'' which enables warnings but not
4051 -Werror.
4052
4053 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4054
4055 * bcache.h: Update copyright.
4056 (struct bstring, struct bcache): Move definition to "bcache.c".
4057 Replaced by opaque declaration.
4058 (bcache_xfree): Replace free_bcache.
4059 (bcache_xmalloc, bcache_memory_used): Declare.
4060
4061 * bcache.c: Update copyright.
4062 (struct bstring, struct bcache): Moved to here from "bcache.h".
4063 Update comments.
4064 (bcache_xmalloc, bcache_memory_used): New functions.
4065 (bcache_xfree): Replace function free_bcache.
4066
4067 * Makefile.in (objfiles.o): Add $(bcache_h).
4068 (objfiles_h): Remove $(bcache_h).
4069 (symfile.o): Add $(bcache_h).
4070
4071 * symmisc.c: Update copyright.
4072 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4073 (print_objfile_statistics): Use bcache_memory_used.
4074
4075 * symfile.c: Include "bcache.h".
4076 (reread_symbols): Use bcache_xfree.
4077 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4078 (add_psymbol_to_list): Pass psymbol_cache by value.
4079 (add_psymbol_with_dem_name_to_list): Ditto.
4080
4081 * objfiles.h: Update copyright.
4082 (struct bcache): Declare opaque. Do not include "bcache.h".
4083 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4084 bcache'' pointers.
4085 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4086
4087 * objfiles.c: Include "bcache.h". Update copyright.
4088 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4089 macro_cache.
4090 (free_objfile): Use bcache_xfree.
4091
4092 2002-07-11 Grace Sainsbury <graces@redhat.com>
4093
4094 * monitor.c (monitor_fetch_register): Make name a constant.
4095 (monitor_store_register): Same.
4096
4097 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4098
4099 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4100 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4101 (finish_block) For non-function blocks, hash the symbol table. For
4102 function blocks, mark the symbol table as unhashed.
4103 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4104 (msymbol_hash_iw): Likewise.
4105 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4106 value.
4107 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4108 (lookup_minimal_symbol): Likewise for both.
4109 * symtab.h (struct block): Add `hashtable' flag. Comment the
4110 hashtable.
4111 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4112 (ALL_BLOCK_SYMBOLS): Update.
4113 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4114 (struct symbol): Add `hash_next' pointer.
4115 * symtab.c (lookup_block_symbol): Search using the hash table when
4116 possible.
4117 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4118 (search_symbols, find_addr_symbol): Likewise.
4119
4120 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4121 (read_dst_symtab): Likewise.
4122 * jv-lang.c (get_java_class_symtab): Likewise.
4123 * mdebugread.c: Include "gdb_assert.h".
4124 (shrink_block): Assert that the block being modified is not hashed.
4125 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4126 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4127 symbols.
4128 (dump_symtab): Recognize hashed blocks.
4129 * printcmd.c (print_frame_args): Assert that function blocks do not
4130 have hashed symbol tables.
4131 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4132 (fill_in_ada_prototype, debug_print_block): Likewise.
4133 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4134
4135 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4136
4137 * stack.c (print_frame): Use result of frame_address_in_block()
4138 instead of fi->pc when evaluating symbols.
4139 (backtrace_command_1): Ditto.
4140
4141 2002-07-11 Andrew Cagney <cagney@redhat.com>
4142
4143 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4144 Make static.
4145
4146 * arm-tdep.c (arm_register_name): Make return type constant.
4147
4148 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4149
4150 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4151 prototype.
4152 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4153 * s390-tdep.c (s390_fp_regnum): Ditto.
4154 (s390_read_fp): Ditto.
4155 (s390_pop_frame): Ditto.
4156 (_initialize_s390_tdep): Ditto.
4157 * remote.c (get_remote_state): Ditto.
4158 * procfs.c (mappingflags): Ditto.
4159 * memattr.c (_initialize_mem): Ditto.
4160 * mcore-tdep.c (mcore_pop_frame): Ditto.
4161 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4162 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4163 * language.c (set_case_str): Ditto.
4164 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4165 * frv-tdep.c (new_variant): Ditto.
4166 (frv_stopped_data_address): Ditto.
4167 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4168 (context_alloc): Ditto.
4169 (frame_state_alloc): Ditto.
4170 (unwind_tmp_obstack_init): Ditto.
4171 (unwind_tmp_obstack_free): Ditto.
4172 (cfi_read_fp): Ditto.
4173 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4174 (cris_pop_frame): Ditto.
4175 * c-lang.c (scanning_macro_expansion): Ditto.
4176 (finished_macro_expansion): Ditto.
4177 (c_preprocess_and_parse): Ditto.
4178 * gdbarch.sh: Ditto.
4179 * gdbarch.h, gdbarch.c: Regenerate.
4180 * config/mn10200/tm-mn10200.h: Adjust indentation.
4181 * target.c: Adjust indentation.
4182 * symtab.h: Adjust indentation.
4183 * stabsread.h: Adjust indentation.
4184 * remote-es.c: Adjust indentation.
4185 * os9kread.c: Adjust indentation.
4186
4187 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4188
4189 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4190 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4191
4192 2002-07-10 Grace Sainsbury <graces@redhat.com>
4193
4194 * NEWS: Mention m68k, mcore multi-arching.
4195 * MAINTAINERS: Change status of m68k, mcore to reflect
4196 multi-arching.
4197
4198 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4199
4200 * valops.c (find_overload_match): Free oload_syms.
4201
4202 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4203
4204 Define HAVE_SYS_PROC_H if sys/proc.h exists
4205 * configure.in: Add check for sys/proc.h
4206 * config.in: Regenerate.
4207 * configure: Regenerate.
4208
4209 2002-07-09 Grace Sainsbury <graces@redhat.com>
4210
4211 * config/m68k/tm-m68k.h: Remove macros wrapped in
4212 #if !GDB_MULTI_ARCH.
4213
4214 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4215
4216 * config.in, configure: Regenerate.
4217
4218 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4219
4220 * dwarf2cfi.c: Include "gcore.h".
4221 (execute_stack_op): Fix implementation of the
4222 DW_OP_deref and DW_OP_deref_size operators by letting do their
4223 lookup in the target.
4224
4225 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4226
4227 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4228 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4229 tdep->sc_sp_offset.
4230
4231 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4232
4233 Fix PR gdb/595, gdb/602
4234 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4235 Don't call value_cast, just read the vtable pointer; update comments
4236 to match.
4237
4238 2002-07-05 Grace Sainsbury <graces@redhat.com>
4239
4240 * config/mcore/tm-mcore.h: Remove file.
4241 * config/mcore/mcore.mt: Remove definition of TM_FILE
4242 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4243
4244 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4245
4246 * i386bsd-tdep.c: Include "gdb_string.h".
4247
4248 2002-07-04 Grace Sainsbury <graces@redhat.com>
4249
4250 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4251 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4252 mcore-tdep.
4253 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4254 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4255 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4256 (RETVAL_REGNUM): Move macros from tm-mcore.h
4257 (mcore_reg_struct_has_addr): New function.
4258 (mcore_gdbarch_init): Added initializations for the macros removed
4259 from tm-mcore.h.
4260
4261 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4262
4263 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4264 traditonal string branding within the ELF header.
4265
4266 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4267
4268 * symtab.c (remove_params): New function.
4269 (make_symbol_overload_list): Use it instead of cplus_demangle.
4270 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4271
4272 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4273
4274 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4275
4276 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4277 New variables.
4278 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4279 and tdep->sigtramp_end.
4280 * i386obsd-nat.c: New file.
4281 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4282
4283 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4284 Don't call get_current_frame().
4285
4286 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4287
4288 * i386-nat.c (child_post_startup_inferior): New function
4289 calling i386_cleanup_dregs if
4290 I386_USE_GENERIC_WATCHPOINTS is defined.
4291 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4292 conditional to acknowledge that i386-nat.c has its
4293 own child_post_startup_inferior function.
4294
4295 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4296
4297 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4298 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4299 instead of MAX_REGISTER_RAW_SIZE.
4300 (i386_extract_return_value, i386_extract_struct_value_address):
4301 Convert to use regcache.
4302 (i386_gdbarch_init): Set max_register_raw_size and
4303 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4304 Set extract_return_value and extract_struct_value_address instead
4305 of their deprecated variants.
4306
4307 Convert i386 target to generic dummy frames.
4308 * i386-tdep.c: Include "symfile.h".
4309 (i386_frameless_signal_p): Consider a function to be frameless if
4310 the pc points at the first instruction of the function.
4311 (i386_frame_chain): Handle (generic) call dummies.
4312 (i386_frame_saved_pc): Likewise.
4313 (i386_frame_init_saved_regs): Remove code dealing with call
4314 dummies on the stack.
4315 (i386_push_dummy_frame): Removed.
4316 (i386_call_dummy_words): Removed.
4317 (i386_fix_call_dummy): Removed.
4318 (i386_push_return_address): New function.
4319 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4320 parameter, and don't call get_current_frame.
4321 (i386_pop_frame): New function.
4322 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4323 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4324 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4325 call_dummy_length to 0, set call_dummy_words to NULL, set
4326 sizeof_call_dummy_words to 0, set fix_call_dummy to
4327 generic_fix_call_dummy, set pc_in_call_dummy to
4328 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4329 generic_push_dummy_frame, set push_return_address to
4330 i386_push_return_address and set frame_chain_valid to
4331 generic_file_frame_chain_valid.
4332
4333 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4334
4335 * gdbarch.sh (struct regcache): Add opaque declaration.
4336 (EXTRACT_RETURN_VALUE): New architecture method.
4337 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4338 * gdbarch.h, gdbarch.c: Regenerate.
4339 * arch-utils.c (legacy_extract_return_value): New function.
4340 * arch-utils.h (legacy_extract_return_value): Declare.
4341 * values.c (value_being_returned): Re-enable code handling
4342 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4343 deprecated_grub_regcache_for_registers call to block handling
4344 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4345 (EXTRACT_RETURN_VALUE): Do not define.
4346
4347 2002-07-03 Grace Sainsbury <graces@redhat.com>
4348
4349 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4350 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4351 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4352 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4353 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4354 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4355 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4356 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4357 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4358 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4359 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4360 argument so the function fits the prototype in the architecture
4361 vector.
4362 (mcore_pop_frame): Remove argument so the function fits the
4363 prototype. Use get_current_frame instead of the argument.
4364 (mcore_push_arguments): Change type of struct_return so the
4365 function can be used in the architecture vector.
4366 (mcore_store_struct_return): Add.
4367 (mcore_frame_init_saved_regs): Add.
4368 (mcore_gdbarch_init): Add function calls to replace the macros
4369 removed from tm-mcore.h
4370
4371 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4372
4373 * infcmd.c (print_return_value): Remove compatibility code calling
4374 deprecated_grub_regcache_for_registers.
4375
4376 * values.c: Include "regcache.h".
4377 (value_being_returned): Update. Use
4378 deprecated_grub_regcache_for_registers to extract the register
4379 buffer address.
4380 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4381 ``struct regcache''.
4382 * Makefile.in (values.o): Add dependency on $(regcache_h).
4383
4384 * inferior.h (run_stack_dummy): Change type of second parameter to
4385 a ``struct regcache''.
4386 * valops.c (hand_function_call): Change type of retbuf to ``struct
4387 regcache''. Allocate using regcache_xmalloc, clean using
4388 make_cleanup_regcache_xfree.
4389 * infcmd.c (run_stack_dummy): Update. Use
4390 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4391
4392 * regcache.c (do_regcache_xfree): New function.
4393 (make_cleanup_regcache_xfree): New function.
4394 * regcache.h (make_cleanup_regcache_xfree): Declare.
4395
4396 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4397
4398 * event-top.c (command_line_handler): Don't read past
4399 beginning of buffer.
4400
4401 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4402
4403 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4404 struct frame_id.
4405 (varobj_create): Store frame_id for root.
4406 (varobj_gen_name): Use xasprintf.
4407 (varobj_update): Save and restore frame using get_frame_id() and
4408 frame_find_by_id().
4409 (create_child): Use xasprintf.
4410 (new_root_variable): Initialize frame_id.
4411 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4412 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4413 to prevent memory leak.
4414
4415 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4416
4417 * valops.c (hand_function_call): Move declaration of retbuf to
4418 start of function, allocate using malloc, add a cleanup but before
4419 the inf_status cleanup, cleanup the buffer. Rename local variable
4420 old_chain to inf_status_cleanup.
4421
4422 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4423
4424 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4425
4426 * cli/cli-decode.c (cmd_func_p): New function.
4427 (cmd_func): New function.
4428
4429 * command.h: Add cmd_func() and cmd_func_p().
4430
4431 2002-07-03 Grace Sainsbury <graces@redhat.com>
4432
4433 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4434 (REGISTER_SIZE): Remove.
4435 (MAX_REGISTER_RAW_SIZE): Remove.
4436 (REGISTER_VIRTUAL_TYPE): Remove.
4437 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4438 (REGISTER_NAME): Remove.
4439 (USE_GENERIC_DUMMY_FRAMES): Remove.
4440 (CALL_DUMMY): Remove.
4441 (CALL_DUMMY_START_OFFSET): Remove.
4442 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4443 (CALL_DUMMY_LOCATION): Remove.
4444 (FIX_CALL_DUMMY): Remove.
4445 (CALL_DUMMY_ADDRESS): Remove.
4446 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4447 (SAVE_DUMMY_FRAME_TOS): Remove.
4448 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4449 (mcore_register_virtual_type): New function.
4450 (mcore_register_byte): New function.
4451 (mcore_register_size): New function.
4452 (mcore_register_name): New function.
4453 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4454 macros removed from tm-mcore.h.
4455 (mcore_dump_tdep): Add.
4456 (_initialize_mcore_tdep): Add gdbarch_register call.
4457
4458 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4459
4460 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4461 frameless_look_for_prologue, such that we actually call this
4462 function.
4463
4464 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4465
4466 * frame.h (frame_address_in_block): New function.
4467
4468 * blockframe.c (frame_address_in_block): New function extracted
4469 from get_frame_block().
4470 (get_frame_block): Use frame_address_in_block().
4471 (block_innermost_frame): Use frame_address_in_block() to match
4472 the frame pc address against the block boundaries rather than
4473 the frame pc directly. This prevents a failure when a frame pc
4474 is actually a return-address pointing immediately after the end
4475 of the given block.
4476
4477 2002-07-02 Grace Sainsbury <graces@redhat.com>
4478
4479 * MAINTAINERS: Add self under write after approval.
4480
4481 2002-07-02 Grace Sainsbury <graces@redhat.com>
4482
4483 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4484 used in architecture vector. The default is
4485 m68k_local_breakpoint_from_pc.
4486 (m68k_local_breakpoint_from_pc): Add.
4487 (enum): Add register numbers from tm-m68k.h.
4488 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4489 vector.
4490 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4491 GDB_MULTI_ARCH_PARTIAL.
4492 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4493 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4494 m68k-tdep.c.
4495 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4496 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4497 to enum in m68k-tdep.c
4498
4499 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4500
4501 * solib-osf.c (open_map): Compute the list of shared libraries
4502 loaded by the inferior, rather than the list of libraries loaded
4503 by GDB itself. Otherwise, GDB ends up reading the symbols from
4504 the wrong shared libraries...
4505
4506 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4507
4508 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4509 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4510 macros.
4511 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4512 Remove functions.
4513 (FRAMELESS_SIGNAL): Remove function.
4514 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4515 i386_linux_saved_pc_after_call): Removed.
4516 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4517 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4518 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4519
4520 * i386-tdep.c (i386_frameless_signal_p): New function.
4521 (i386_frame_chain): Deal with frameless signals.
4522 (i386_sigtramp_saved_sp): New function.
4523 (i386_frame_saved_pc): Deal with frameless signals.
4524 (i386_saved_pc_after_call): Make sure the correct value is
4525 returned just after entry into a sigtramp.
4526 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4527 i386fbsd4_sc_sp_offset): New variables.
4528 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4529 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4530 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4531 similiar to what we already did for sc_pc_offset.
4532 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4533 tdep->sc_sp_offset.
4534
4535 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4536
4537 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4538
4539 * config/i386/tm-x86-64linux.h: New.
4540 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4541 definitions.
4542 * config/i386/nm-x86-64.h: Rename to ...
4543 * config/i386/nm-x86-64linux.h: ... this one.
4544 * config/i386/x86-64linux.mh: Reflect the above change.
4545
4546 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4547
4548 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4549 with sigcontext_addr. Add sc_sp_offset.
4550 (i386bsd_sigtramp_saved_pc): Remove prototype.
4551 (i386bsd_sicontext_addr): Add prototype.
4552 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4553 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4554 (i386_svr4_sigtramp_saved_pc): Removed.
4555 (i386_svr4_sigcontext_addr): New function.
4556 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4557 Initialize tdep->sigcontext_addr instead. Initialize
4558 tdep->sc_pc_offset and tdep->sc_sp_offset.
4559 (i386_gdbarch_init): Likewise.
4560 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4561 any more.
4562 (i386bsd_sigtramp_saved_pc): Remove function.
4563 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4564 Initialize tdep->sigcontext_addr instead. Initialize
4565 tdep->sc_pc_offset.
4566 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4567 of tdep->sigtramp_saved_pc.
4568 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4569 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4570 instead.
4571
4572 * i386-tdep.c (i386_frameless_function_invocation,
4573 i386_frame_num_args, i386_frame_init_saved_regs,
4574 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4575 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4576 i386_extract_return_value, i386_store_return_value,
4577 i386_extract_struct_value_address, i386_register_virtual_type,
4578 i386_register_convertible, i386_register_convert_to_virtual,
4579 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4580 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4581 static.
4582
4583 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4584
4585 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4586
4587 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4588 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4589 this macro. Include "value.h".
4590
4591 2002-06-30 Aidan Skinner <aidan@velvet.net>
4592
4593 * ada-exp.tab.c: remove as it's a generated file
4594 * ada-lex.c: remove as it's a generated file
4595
4596 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4597
4598 * config/i386/tm-i386.h (struct frame_info, struct
4599 frame_saved_regs, struct value, struct type): Remove forward
4600 declarations.
4601
4602 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4603 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4604 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4605 (FILL_FPXREGSET): Define.
4606
4607 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4608
4609 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4610 i[3456]86-*-netbsd* case.
4611 * config/i386/tm-obsd.h: Removed.
4612 * config/i386/obsd.mt: Removed.
4613 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4614 core-aout.o.
4615 (MH_CFLAGS): Add -DYYDEBUG=0.
4616
4617 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4618 i386nbsd_sc_pc_offset on OpenBSD too.
4619
4620 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4621 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4622 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4623 define.
4624 * i386bsd-tdep.c: Include "arch-utils.h".
4625 (i386bsd_aout_in_solib_call_trampoline): New function.
4626 (i386bsd_init_abi): Set in_solib_call_trampoline to
4627 i386bsd_aout_in_solib_call_trampoline.
4628 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4629 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4630
4631 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4632
4633 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4634 (struct obstack, struct bcache): Add opaque declarations.
4635 * Makefile.in (macrotab_h): Update
4636
4637 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4638
4639 * blockframe.c (generic_find_dummy_frame): Change return type to
4640 ``struct regcache''.
4641 (struct dummy_frame): Replace field ``registers'' with regcache, a
4642 struct regcache object.
4643 (generic_find_dummy_frame): Update.
4644 (generic_push_dummy_frame): Update. Use regcache_xfree,
4645 regcache_xmalloc and regcache_cpy.
4646 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4647 regcache_xfree.
4648 (deprecated_generic_find_dummy_frame): Update.
4649 (generic_read_register_dummy): Update. Use
4650 regcache_read_as_address.
4651 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4652 (generic_get_saved_register): Update. Use regcache_read.
4653
4654 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4655
4656 * Makefile.in (objfiles_h): Add $(bcache_h).
4657 * objfiles.h: Include "bcache.h".
4658
4659 * Makefile.in (symtab_h): Remove $(bcache_h).
4660 * symtab.h: Do not include "bcache.h".
4661
4662 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4663
4664 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4665 generic_func_frame_chain_valid.
4666
4667 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4668
4669 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4670 * config/i386/tm-fbsd.h: Likewise.
4671
4672 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4673
4674 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4675 generic_unwind_get_saved_register.
4676
4677 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4678
4679 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4680 * regcache.c (supply_register): Add missing argument to
4681 register_buffer call.
4682
4683 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4684
4685 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4686 Solaris /bin/grep does not not like it. From Peter Schauer.
4687
4688 2002-06-26 Tom Tromey <tromey@redhat.com>
4689
4690 * command.h (add_setshow_cmd): Declare.
4691 (add_setshow_cmd_full): Declare.
4692 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4693 returns void. Use add_setshow_cmd_full.
4694 (add_setshow_cmd_full): New function.
4695 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4696 (add_setshow_boolean_cmd): Likewise.
4697
4698 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4699
4700 * config/vax/tm-vax.h: Protect from multiple inclusion.
4701 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4702 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4703 * config/vax/tm-vaxbsd.h: ...here. New file.
4704 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4705
4706 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4707
4708 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4709 (BELIEVE_PCC_PROMOTION): Remove.
4710 (AP_REGNUM): Move to...
4711 * config/vax/nm-vax.h: ...here.
4712 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4713 (vax_breakpoint_from_pc): New function.
4714 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4715 and gdbarch_believe_pcc_promotion.
4716
4717 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4718
4719 * Makefile.in (vax_tdep_h): Define.
4720 (vax-tdep.o): Use $(vax_tdep_h).
4721 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4722 (vax_dump_tdep): New function.
4723 (_initialize_vax_tdep): Register vax_dump_tdep.
4724 * vax-tdep.h: Include osabi.h.
4725 (struct gdbarch_tdep): New.
4726
4727 2002-06-26 Andrew Cagney <cagney@redhat.com>
4728
4729 * frame.h (deprecated_generic_find_dummy_frame): Rename
4730 generic_find_dummy_frame.
4731 * blockframe.c (generic_find_dummy_frame): Make static.
4732 (deprecated_generic_find_dummy_frame): New function.
4733 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4734 generic_find_dummy_frame with deprecated_find_dummy_frame.
4735 (sh64_nofp_frame_init_saved_regs): Ditto.
4736 (sh_fp_frame_init_saved_regs): Ditto.
4737 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4738 (s390_frame_chain): Ditto.
4739 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4740
4741 2002-06-26 Grace Sainsbury <graces@redhat.com>
4742
4743 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4744 gdbarch vector are at the top.
4745 (NUM_REGS): Remove.
4746 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4747 (FRAME_ARGS_ADDRESS): Remove.
4748 (FRAME_LOCALS_ADDRESS): Remove.
4749 (FRAME_NUM_ARGS): Remove.
4750 (FRAME_ARGS_SKIP): Remove.
4751 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4752 (m68k_gdbarch_init): Add gdbarch initializations for macros
4753 undefined in tm-m68k.h
4754
4755 2002-06-26 Grace Sainsbury <graces@redhat.com>
4756
4757 * monitor.h: Add the function regname to monitor_ops
4758 structure. This way NUM_REGS does not have to be a constant.
4759 * monitor.c (monitor_fetch_register): Added support for regname
4760 function. The function is called if the array regnames is NULL.
4761 (monitor_store_register): Same.
4762 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4763 regnames array.
4764 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4765 cpu32bug_cmds.regname to point to new function.
4766 * abug-rom.c (abug_regname): Same as above.
4767 (init_abug_cmds): Same.
4768 * dbug-rom.c (dbug_regname): Same as above.
4769 (init_dbug_cmds): Same.
4770 * remote-est.c (est_regname): Same.
4771 (init_est_cmds): Same.
4772 * rom68k-rom.c (rom68k_regname): Same.
4773 (init_rom68k_cmds): Same.
4774
4775 2002-06-25 Tom Tromey <tromey@redhat.com>
4776
4777 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4778
4779 2002-06-25 Andrew Cagney <cagney@redhat.com>
4780
4781 * infrun.c (stop_registers): Change variable's type to ``struct
4782 regcache'''.
4783 (xmalloc_inferior_status): Delete function.
4784 (free_inferior_status): Delete function.
4785 (normal_stop): Use regcache_cpy.
4786 (struct inferior_status): Change type of fields ``stop_registers''
4787 and ``registers'' to ``struct regcache''.
4788 (write_inferior_status_register): Use regcache_write.
4789 (save_inferior_status): Instead of calling
4790 xmalloc_inferior_status, allocate the inf_status buffer directly.
4791 Use regcache_dup_no_passthrough and regcache_dup to save the
4792 buffers.
4793 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4794 Replace the stop_registers regcache instead of overriding it. Use
4795 regcache_xfree. Instead of calling free_inferior_status, xfree
4796 the buffer directly.
4797 (discard_inferior_status): Use regcache_xfree. Instead of calling
4798 free_inferior_status, xfree the buffer directly.
4799 (build_infrun): Use regcache_xmalloc.
4800 (_initialize_infrun): Delete redundant call to build_infrun.
4801
4802 * Makefile.in (infcmd.o): Add $(regcache_h).
4803
4804 * infcmd.c: Include "regcache.h".
4805 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4806 obtain the address of `stop_registers' register buffer.
4807 (print_return_value): Ditto.
4808
4809 * inferior.h (struct regcache): Add opaque declaration.
4810 (stop_registers): Change variable's declared type to ``struct
4811 regcache''.
4812
4813 2002-06-24 Tom Tromey <tromey@redhat.com>
4814
4815 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4816 * target.c (initialize_targets): Fixed typo in
4817 trust-readonly-sections `show' documentation.
4818
4819 * main.c: Marked all strings with _().
4820
4821 2002-06-24 Don Howard <dhoward@redhat.com>
4822
4823 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4824 that means max CORE_ADDR+1.
4825 (lookup_mem_region): Ditto.
4826 (mem_info_command): Ditto.
4827
4828 2002-06-24 Grace Sainsbury <graces@redhat.com>
4829
4830 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4831 (REGISTER_BYTES_OK): Remove.
4832 (REGISTER_BYTES): Remove.
4833 (STORE_STRUCT_RETURN): Remove.
4834 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4835 (STORE_RETURN_VALUE): Remove.
4836 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4837 (FRAME_CHAIN): Remove.
4838 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4839 (FRAME_SAVED_PC): Remove.
4840 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4841 (m68k_store_struct_return): Add.
4842 (m68k_deprecated_extract_return_value): Add.
4843 (m68k_deprecated_extract_struct_value_address): Add.
4844 (m68k_store_return_value): Add.
4845 (m68k_frame_chain): Add.
4846 (m68k_frameless_function_invocation): Add.
4847 (m68k_frame_saved_pc): Add.
4848 (m68k_gdbarch_init): added set_gdbarch calls for new
4849 functions and deleted macros.
4850
4851 2002-06-23 Tom Tromey <tromey@redhat.com>
4852
4853 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4854 (ALLDEPFILES): Likewise.
4855 (udiheaders): Removed.
4856 (udip2soc.o): Likewise.
4857 (udi2go32.o): Likewise.
4858 (udr.o): Likewise.
4859 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4860
4861 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4862
4863 * infrun.c (_initialize_infrun): Delete unnecessary call to
4864 build_infrun.
4865
4866 * regcache.h: Update comments describing the regcache_cpy family
4867 of functions.
4868 (regcache_save, regcache_restore): Delete declaration.
4869 (regcache_save_no_passthrough): Delete declaration.
4870 (regcache_restore_no_passthrough): Delete declaration.
4871 * regcache.c (regcache_save): Delete function.
4872 (regcache_save_no_passthrough): Delete function.
4873 (regcache_restore): Delete function.
4874 (regcache_restore_no_passthrough): Delete function.
4875
4876 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4877
4878 * config/m68k/tm-m68k.h: Fix typo.
4879 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4880 (m68k_frame_init_saved_regs): Declare.
4881
4882 2002-06-21 Jim Blandy <jimb@redhat.com>
4883
4884 Remove some vestiges of Harris 88k support.
4885 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4886 register numbering quirk.
4887 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4888 odd symbols occurring in Harris 88k ELF targets.
4889
4890 2002-06-21 Tom Tromey <tromey@redhat.com>
4891
4892 * gdb_locale.h: New file.
4893 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4894 (defs_h): Added gdb_locale.h.
4895 * configure, config.in: Rebuilt.
4896 * configure.in (PACKAGE): Define.
4897 * defs.h: Include gdb_locale.h.
4898 * main.c (captured_main): Call setlocale, bindtextdomain,
4899 textdomain.
4900
4901 2002-06-21 Dave Brolley <brolley@redhat.com>
4902
4903 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4904 * config/frv/frv.mt: New file.
4905 * config/frv/tm-frv.h: New file.
4906 * configure.tgt: Support frv-*-*.
4907 * Makefile.in (frv-tdep.o): New target.
4908 * frv-tdep.c: New file.
4909 * NEWS: Mention frv.
4910
4911 2002-06-21 Dave Brolley <brolley@redhat.com>
4912
4913 * MAINTAINERS: Add self to "Write After Approval" list.
4914
4915 2002-06-21 Grace Sainsbury <graces@redhat.com>
4916
4917 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4918 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4919 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4920 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4921 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4922
4923 * m68k-tdep.c: Include arch-utils.h
4924 (m68k_register_raw_size): Add.
4925 (m68k_register_virtual_size): Add.
4926 (m68k_register_virtual_type): Add.
4927 (m68k_register_name): Add.
4928 (m68k_stack_align): Add.
4929 (m68k_register_byte): Add.
4930 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4931 tm-m68k.h.
4932
4933 2002-06-21 Grace Sainsbury <graces@redhat.com>
4934
4935 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4936 m68k_find_saved_regs.
4937 (m68k_pop_frame): Removed saved_regs structure, and replaced
4938 references to it with frame->saved_regs.
4939 (m68k_gdbarch_init): Added function calls to initialize the
4940 gdbarch structure.
4941 (m68k_fix_call_dummy): Add.
4942 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4943 (CALL_DUMMY): Remove.
4944 (CALL_DUMMY_LENGTH): Remove.
4945 (CALL_DUMMY_START_OFFSET): Remove.
4946 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4947 (FIX_CALL_DUMMY): Remove.
4948 (PUSH_DUMMY_FRAME): Remove.
4949 (POP_FRAME): Remove.
4950
4951 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4952
4953 * parse.c (parse_fprintf): New function used to avoid calls to
4954 fprintf in bison parser generated debug code.
4955 * parser-defs.h: Declaration of new parse_fprintf function.
4956 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4957 Set YYDEBUG to 1 by default.
4958 Set YYFPRINTF as parse_fprintf.
4959
4960 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4961
4962 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4963 encoding anymore.
4964 (pointer_encoding, enum ptr_encoding): New.
4965 (execute_cfa_program): Take care about pointer encoding.
4966 (dwarf2_build_frame_info): Only call parse_frame_info for
4967 .debug_frame and .eh_frame.
4968 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4969 fixed augmentation handling, added relative addressing,
4970 ignore duplicate FDEs. Added comments.
4971 * dwarf2cfi.c: Reindented.
4972
4973 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4974
4975 * event-top.c (command_handler): Don't use space_at_cmd_start
4976 unless there is sbrk() on the host. Assign time and space data
4977 to union fields of the appropriate length.
4978
4979 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4980
4981 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4982 x86_64_register_name. Return type changed to 'const char *'.
4983 (x86_64_register_name2nr): Rename to x86_64_register_number.
4984 (x86_64_gdbarch_init): Update to reflect the change.
4985 * x86-64-tdep.h: Ditto.
4986 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4987 (supply_fpregset): Ditto.
4988
4989 2002-06-19 Andrew Cagney <cagney@redhat.com>
4990
4991 * regcache.h: Update copyright.
4992 (struct regcache, struct gdbarch): Add opaque declarations.
4993 (current_regcache): Declare global variable.
4994 (regcache_read, regcache_write): Add gdbarch parameter.
4995 (regcache_save, regcache_save_no_passthrough)
4996 (regcache_restore, regcache_restore_no_passthrough)
4997 (regcache_dup, regcache_dup_no_passthrough)
4998 (regcache_cpy, regcache_cpy_no_passthrough)
4999 (deprecated_grub_regcache_for_registers)
5000 (deprecated_grub_regcache_for_register_valid)
5001 (regcache_valid_p): Add function declarations.
5002
5003 * regcache.c: Update copyright.
5004 (regcache_descr_handle): New global variable.
5005 (struct regcache_descr): Define.
5006 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5007 (regcache_descr, xfree_regcache_descr): New functions.
5008 (struct regcache): Define.
5009 (regcache_xmalloc, regcache_xfree): New functions.
5010 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5011 (regcache_dup, regcache_dup_no_passthrough): New functions.
5012 (regcache_valid_p, regcache_read_as_address): New functions.
5013 (deprecated_grub_regcache_for_registers): New function.
5014 (deprecated_grub_regcache_for_register_valid): New function.
5015 (current_regcache): New global variable.
5016 (register_buffer): Add regcache parameter. Update calls.
5017 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5018 (read_register_gen, write_register_gen): Update register_buffer
5019 call. Test for legacy_p instead of gdbarch_register_read_p or
5020 gdbarch_register_write_p.
5021 (regcache_collect): Update register_buffer call.
5022 (build_regcache): Rewrite. Use deprecated grub functions.
5023 (regcache_save, regcache_save_no_passthrough): New functions.
5024 (regcache_restore, regcache_restore_no_passthrough): New
5025 functions.
5026 (_initialize_regcache): Create the regcache_data_handle. Swap
5027 current_regcache global variable.
5028
5029 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5030 parameter to regcache_read and regcache_write calls.
5031 (sh4_register_read): Ditto.
5032 (sh64_pseudo_register_read): Ditto.
5033 (sh64_register_read): Ditto.
5034 (sh_pseudo_register_write): Ditto.
5035 (sh4_register_write): Ditto.
5036 (sh64_pseudo_register_write): Ditto.
5037 (sh64_register_write): Ditto.
5038
5039 * defs.h (XCALLOC): Define.
5040
5041 2002-06-19 Grace Sainsbury <graces@redhat.com>
5042
5043 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5044 * m68k-tdep.c (m68k_gdbarch_init): Added.
5045 (m68k_dump_tdep): Added.
5046
5047 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5048
5049 * ada-lang.c (fill_in_ada_prototype): Update comment.
5050
5051 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5052
5053 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5054 MIPS_ABI_LAST.
5055 (mips_abi_string, mips_abi_strings): New.
5056 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5057 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5058 tdep->mips_abi_string. Honor mips_abi_string. Default to
5059 O32 if no ABI is found.
5060 (mips_dump_tdep): Use mips_abi_strings.
5061 (mips_abi_update): New function.
5062 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5063 ``set mips abi'' and ``show mips abi''. Check the size of
5064 mips_abi_strings.
5065
5066 2002-06-19 Andrew Cagney <cagney@redhat.com>
5067
5068 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5069 constant.
5070
5071 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5072
5073 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5074 current frame using only the first stack size adjustment. All
5075 subsequent size adjustments are not considered to be part of
5076 the "static" part of the current frame.
5077 Compute the address of the saved registers relative to the
5078 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5079 in use in this frame.
5080
5081 2002-06-18 Don Howard <dhoward@redhat.com>
5082
5083 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5084 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5085 suggesting this solution.
5086
5087 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5088
5089 * config/romp/xm-rtbsd.h: Delete file.
5090 * config/romp/rtbsd.mh: Delete file.
5091
5092 2002-06-18 Keith Seitz <keiths@redhat.com>
5093
5094 * breakpoint.c (condition_command): Post breakpoint_modify
5095 when a condition is added to an existing breakpoint.
5096 (commands_command): Likewise for commands.
5097 (set_ignore_count): Likewise for ignore counts.
5098 If no tty, do not simply return, still need to send event
5099 notification.
5100 (ignore_command): Only print a newline if the command came
5101 from a tty.
5102 Don't call breakpoints_changed, since this is now properly
5103 handled by set_ignore_count.
5104
5105 2002-06-18 Andrew Cagney <cagney@redhat.com>
5106
5107 * MAINTAINERS: Note that cris-elf target can be compiled with
5108 -Werror.
5109 * cris-tdep.c (cris_register_name): Make return type constant.
5110 (cris_breakpoint_from_pc): Ditto.
5111
5112 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5113
5114 * frame.h (struct frame_info): Change type of context to
5115 'struct context'.
5116
5117 2002-06-17 Andrew Cagney <cagney@redhat.com>
5118
5119 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5120 pointer.
5121 * gdbarch.h, gdbarch.c: Regenerate.
5122 * config/mips/tm-mips.h (mips_register_name): Update.
5123 * i386-tdep.h (i386_register_name): Update.
5124 * mips-tdep.c (mips_register_name): Update
5125 * alpha-tdep.c (alpha_register_name): Update.
5126 * arch-utils.c (legacy_register_name): Update.
5127 * arch-utils.h (legacy_register_name): Update.
5128 * avr-tdep.c (avr_register_name): Update.
5129 * ia64-tdep.c (ia64_register_name): Update.
5130 * i386-tdep.c (i386_register_name): Update.
5131 * sparc-tdep.c (sparc32_register_name): Update.
5132 (sparc64_register_name): Update.
5133 (sparclite_register_name): Update.
5134 (sparclet_register_name): Update.
5135 * sh-tdep.c (sh_generic_register_name): Update.
5136 (sh_sh_register_name): Update.
5137 (sh_sh3_register_name): Update.
5138 (sh_sh3e_register_name): Update.
5139 (sh_sh_dsp_register_name): Update.
5140 (sh_sh3_dsp_register_name): Update.
5141 (sh_sh4_register_name): Update.
5142 (sh_sh64_register_name): Update.
5143 * s390-tdep.c (s390_register_name): Update.
5144 * rs6000-tdep.c (rs6000_register_name): Update.
5145 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5146 (ns32k_register_name_32382): Update.
5147 * d10v-tdep.c (d10v_ts2_register_name): Update.
5148 (d10v_ts3_register_name): Update.
5149 * xstormy16-tdep.c (xstormy16_register_name): Update.
5150 * vax-tdep.c (vax_register_name): Update.
5151 * v850-tdep.c (v850_register_name): Update.
5152 * m68hc11-tdep.c (m68hc11_register_name): Update.
5153 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5154 (am33_register_name): Update.
5155
5156 2002-06-17 Grace Sainsbury <graces@redhat.com>
5157
5158 * m68k-tdep.c: Reindented.
5159
5160 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5161
5162 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5163 list of predefined types.
5164
5165 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5166
5167 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5168 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5169 REGISTER_CONVERT_TO_RAW): Remove defines.
5170 (i386_register_virtual_type, i386_register_convertible,
5171 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5172 Remove prototypes.
5173 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5174 macros mentioned above.
5175
5176 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5177 (i386lynx_saved_pc_after_call): Remove prototype.
5178 * i386ly-tdep.c: Include "i386-tdep.h".
5179 (i386lynx_saved_pc_after_call): Make static. Use
5180 read_memory_nobpt instead of read_memory. Use
5181 read_memory_unsigned_integer instead of read_memory_integer.
5182 (i386lynx_init_abi): New function.
5183 (i386lynx_coff_osabi_sniffer): New function.
5184 (_initialize_i386bsd_tdep): New function.
5185
5186 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5187 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5188 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5189 (i386_fix_call_dummy): Remove prototype.
5190 * i386-tdep.c (i386_call_dummy_words): New variable.
5191 (i386_gdbarch_init): Adjust for removal of the
5192 macros mentioned above.
5193
5194 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5195
5196 * command.h (add_setshow_auto_boolean_cmd): Replace
5197 add_set_auto_boolean_cmd.
5198 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5199 add_set_auto_boolean_cmd.
5200 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5201 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5202 mask-address'' command.
5203 (show_mask_address): Add cmd parameter.
5204 * remote.c (add_packet_config_cmd): Update. Change type of
5205 set_func and show_func to cmd_sfunc_ftype.
5206 (_initialize_remote): Update `set remote Z-packet'
5207 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5208 (show_remote_protocol_e_packet_cmd): Ditto.
5209 (show_remote_protocol_E_packet_cmd): Ditto.
5210 (show_remote_protocol_P_packet_cmd): Ditto.
5211 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5212 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5213 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5214 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5215 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5216 (show_remote_protocol_Z_packet_cmd): Ditto.
5217 (show_remote_protocol_binary_download_cmd): Ditto.
5218 (show_remote_cmd): Pass NULL to all of above.
5219
5220 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5221
5222 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5223 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5224 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5225 POP_FRAME): Remove defines.
5226 (i386_push_arguments, i386_store_struct_return,
5227 i386_extract_return_value, i386_store_return_value,
5228 i386_extract_struct_value_address, i386_push_dummy_frame,
5229 i386_pop_frame): Renove prototypes.
5230 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5231 macros mentioned above.
5232
5233 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5234
5235 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5236 add_set_boolean_cmd.
5237 (add_setshow_cmd): New function.
5238 * command.h (add_setshow_boolean_cmd): Replace
5239 add_set_boolean_cmd.
5240 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5241 and ``set rdiromatzero''.
5242 * maint.c (_initialize_maint_cmds): Update commented out code.
5243 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5244 * target.c (initialize_targets): Update `set
5245 trust-readonly-sections'.
5246 * remote.c (_initialize_remote): Update `set remotebreak'.
5247
5248 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5249
5250 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5251 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5252 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5253 fit into multi-arch framework.
5254 (i386_breakpoint_from_pc): New function.
5255 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5256 above.
5257
5258 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5259 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5260 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5261 (i386_frameless_function_invocation, i386_frame_num_args,
5262 i386_frame_init_saved_regs): Remove prototypes.
5263 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5264 macros mentioned above.
5265
5266 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5267
5268 * cli/cli-decode.c (set_cmd_cfunc): Update.
5269 (set_cmd_sfunc): Update.
5270 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5271 (set_cmd_sfunc, set_cmd_cfunc): Update.
5272 * cli/cli-decode.h: Update.
5273
5274 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5275
5276 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5277 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5278
5279 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5280
5281 * defs.h (auto_boolean): Declare enum.
5282 * command.h (cmd_auto_boolean): Delete enum.
5283 * mips-tdep.c (mask_address_var): Update.
5284 (mips_mask_address_p): Update.
5285 (show_mask_address): Update.
5286 * remote.c (struct packet_config): Update.
5287 (update_packet_config): Update.
5288 (show_packet_config_cmd): Update.
5289 (packet_ok): Update.
5290 (add_packet_config_cmd): Update.
5291 (_initialize_remote):
5292 * command.h: Update.
5293 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5294 (do_setshow_command): Update.
5295 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5296 * cli/cli-decode.h: Update.
5297
5298 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5299
5300 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5301 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5302 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5303 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5304 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5305 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5306
5307 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5308 list of DJGPP COFF targets.
5309
5310 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5311 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5312 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5313 (FP0_REGNUM): Remove define.
5314 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5315 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5316 (i386_register_virtual_size): Remove protoype.
5317 * i386-tdep.c (i386_register_virtual_size): Removed.
5318 (i386_extract_return_value, i386_store_return_value): Use
5319 FP0_REGNUM instead of NUM_FREGS to determine whether the
5320 floating-point registers are available.
5321 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5322 Adjust for removal of macros mentioned above.
5323
5324 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5325
5326 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5327 comments.
5328 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5329 Remove prototypes.
5330 (supply_gregset, fill_gregset): Remove use of register keyword and
5331 remove declaration for regmap. Use I386_NUM_GREGS instead of
5332 NUM_REGS and NUM_FREGS.
5333 (FPREGSET_FSAVE_OFFSET): Remove.
5334 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5335 NUM_FREGS to determine whether the floating-point registers are
5336 available.
5337
5338 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5339 gnu_store_registers): Replace usage of NUM_GREGS with
5340 I386_NUM_GREGS.
5341
5342 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5343 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5344 usage of NUM_GREGS with I386_NUM_GREGS.
5345
5346 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5347
5348 * i386bsd-nat.c: Include "i386-tdep.h".
5349 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5350 I386_NUM_GREGS.
5351
5352 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5353 and associated comment. They no longer make any sense, since we
5354 don't use this file anymore on Linux.
5355
5356 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5357 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5358 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5359 elements in these arrays.
5360 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5361 MAX_NUM_REGS.
5362
5363 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5364
5365 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5366 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5367
5368 2002-06-14 Andrew Cagney <cagney@redhat.com>
5369
5370 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5371 EXTRACT_RETURN_VALUE.
5372 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5373 EXTRACT_STRUCT_VALUE_ADDRESS.
5374 * gdbarch.h, gdbarch.c: Regenerate.
5375
5376 * values.c (value_being_returned): Handle
5377 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5378 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5379
5380 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5381 * arm-tdep.c (arm_gdbarch_init): Update.
5382 * avr-tdep.c (avr_gdbarch_init): Update.
5383 * cris-tdep.c (cris_gdbarch_init): Update.
5384 * d10v-tdep.c (d10v_gdbarch_init): Update.
5385 * ia64-tdep.c (ia64_gdbarch_init): Update.
5386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5388 * s390-tdep.c (s390_gdbarch_init): Update.
5389 * sh-tdep.c (sh_gdbarch_init): Update.
5390 * s390-tdep.c (s390_gdbarch_init): Update.
5391 * sparc-tdep.c (sparc_gdbarch_init): Update.
5392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5393 * v850-tdep.c (v850_gdbarch_init): Update.
5394 * vax-tdep.c (vax_gdbarch_init): Update.
5395 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5397
5398 * config/arc/tm-arc.h: Update.
5399 * config/d30v/tm-d30v.h: Update.
5400 * config/fr30/tm-fr30.h: Update.
5401 * config/h8300/tm-h8300.h: Update.
5402 * config/h8500/tm-h8500.h: Update.
5403 * config/i386/tm-i386.h: Update.
5404 * config/i386/tm-ptx.h: Update.
5405 * config/i386/tm-symmetry.h: Update.
5406 * config/i960/tm-i960.h: Update.
5407 * config/m32r/tm-m32r.h: Update.
5408 * config/m68k/tm-delta68.h: Update.
5409 * config/m68k/tm-linux.h: Update.
5410 * config/m68k/tm-m68k.h: Update.
5411 * config/m88k/tm-m88k.h: Update.
5412 * config/mcore/tm-mcore.h: Update.
5413 * config/mips/tm-mips.h: Update.
5414 * config/mn10200/tm-mn10200.h: Update.
5415 * config/pa/tm-hppa.h: Update.
5416 * config/pa/tm-hppa64.h: Update.
5417 * config/sparc/tm-sp64.h: Update.
5418 * config/sparc/tm-sparc.h: Update.
5419 * config/sparc/tm-sparclet.h: Update.
5420 * config/z8k/tm-z8k.h: Update.
5421
5422 2002-06-14 Andrew Cagney <cagney@redhat.com>
5423
5424 * Makefile.in (i386_linux_tdep_h): Define.
5425 (i386_tdep_h, i387_tdep_h): Define.
5426 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5427 $(i386_tdep_h) and $(i387_tdep_h).
5428 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5429
5430 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5431
5432 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5433 Already covered by the default.
5434
5435 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5436 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5437 (i386_gdbarch_init): Initialize long_double_format and long_double
5438 bit.
5439
5440 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5441 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5442 Move these to ...
5443 * config/i386/i386sol2.mh: ... here.
5444 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5445 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5446 (SIGCONTEXT_PC_OFFSET): Remove define.
5447 (IN_SIGTRAMP): Remove define.
5448 * i386-sol2-tdep.c: New file.
5449
5450 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5451 * config/i386/tm-i386nw.h: Removed.
5452
5453 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5454 USE_STRUCT_CONVENTION): Remove defines.
5455 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5456 (get_longjmp_target): Remove prototype.
5457 (IN_SIGTRAMP): Remove define.
5458 (i386bsd_in_sigtramp): Remove prototype.
5459 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5460 function. Update comment accordingly
5461 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5462 (FRAME_SAVED_PC): Remove define.
5463 (i386bsd_frame_saved_pc): Remove prototype.
5464 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5465 GET_LONGJMP_TARGET): Remove defines.
5466 (get_longjmp_target): Remove prototype.
5467 (IN_SIGTRAMP): Remove define.
5468 (i386bsd_in_sigtramp): Remove prototype.
5469 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5470 function. Update comment accordingly
5471 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5472 (FRAME_SAVED_PC): Remove define.
5473 (i386bsd_frame_saved_pc): Remove prototype.
5474 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5475 Remove prototype.
5476 (USE_STRUCT_CONVENTION): Remove prototype.
5477 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5478 declaration.
5479 (_initialize_i386bsd_nat): Revise logic to determine some
5480 constants at compile time when compiling a native GDB. Warn if
5481 things don't match up with what we expect.
5482 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5483 Remove variables.
5484 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5485 to use date stored in `struct gdbarch_tdep'.
5486 (i386bsd_sigcontext_offset): Remove varaible.
5487 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5488 stored in `struct gdbarch_tdep'.
5489 (i386bsd_frame_saved_pc): Make static.
5490 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5491 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5492 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5493 i386fbsd4_sc_pc_offset): New variables.
5494 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5495 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5496 functions.
5497 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5498 functions.
5499 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5500 Modify the value of i386fbsd_sigtramp_start and
5501 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5502 i386fbsd_sigtramp_end.
5503 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5504 function.
5505
5506 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5507 define to i386-linux-tdep.h.
5508 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5509 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5510 defines.
5511 (i386_linux_register_name, i386_linux_register_byte,
5512 i386_linux_register_raw_size): Remove prototypes.
5513 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5514 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5515 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5516 TARGET_WRITE_PC): Remove defines.
5517 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5518 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5519 i386_linux_write_pc): Remove prototypes.
5520 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5521 (get_longjmp_target): Remove prototype.
5522 * i386-linux-tdep.h: New file.
5523 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5524 * i386-linux-tdep.c: Include "i386-tdep.h" and
5525 "i386-linux-tdep.h".
5526 (i386_linux_register_name, i386_linux_register_byte,
5527 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5528 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5529 Make static.
5530 (i386_linux_init_abi): New function.
5531 (_initialize_i386_linux_tdep): New function.
5532
5533 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5534 (i386_saved_pc_after_call): Remove prototype.
5535 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5536 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5537 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5538 (i386_register_name, i386_stab_reg_to_regnum,
5539 i386_dwarf_reg_to_regnum): Remove prototypes.
5540 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5541 SIZEOF_SSE_REGS): Remove defines.
5542 (REGISTER_BYTES): Remove define.
5543 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5544 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5545 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5546 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5547 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5548 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5549 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5550 (get_longjmp_target): Remove prototype.
5551 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5552 (sigtramp_saved_pc): Remove define.
5553 (i386v4_sigtramp_saved_pc): Remove prototype.
5554 * config/i386/tm-go32.h (FRAME_CHAIN,
5555 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5556 (i386go32_frame_saved_pc): Remove prototype.
5557 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5558 (get_longjmp_target): Remove prototype.
5559 * i386-tdep.h: Include "osabi.h".
5560 (enum i386_abi): Removed.
5561 (enum struct_return): New enum.
5562 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5563 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5564 sc_pc_offset members.
5565 (i386_gdbarch_register_os_abi): Remove prototype.
5566 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5567 I386_SSE_NUM_REGS): New defines.
5568 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5569 I386_SSE_SIZEOF_REGS): New defines.
5570 (i386_register_name, i386_register_byte, i386_register_raw_size):
5571 New prototypes.
5572 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5573 (i386bsd_sigtramp_saved_pc): New prototype.
5574 * i386-tdep.c: Don't include "elf-bfd.h".
5575 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5576 i386_frame_chain, i386_saved_pc_after_call): Make static.
5577 (i386_frame_saved_pc): Rewrite to call architecture dependent
5578 function to deal with signal handlers. Make static.
5579 (i386go32_frame_saved_pc): Removed.
5580 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5581 Removed.
5582 (i386_get_longjmp_target): New function.
5583 (default_struct_convention, pcc_struct_convention,
5584 reg_struct_convention, valid_conventions, struct_convention): New
5585 variables.
5586 (i386_use_struct_convention): New function.
5587 (i386v4_sigtramp_saved_pc): Renamed to
5588 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5589 (i386_pc_in_sigtramp): New function.
5590 (i386_abi_names): Removed.
5591 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5592 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5593 Removed.
5594 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5595 i386_gdbarch_register_os_abi): Removed.
5596 (struct i386_abi_handler): Removed.
5597 (i386_abi_handler_list): Removed.
5598 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5599 functions.
5600 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5601 i386_nw_init_abi): New functions.
5602 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5603 Use set_gdbarch_xxx() calls instead of relying on macros for a
5604 number of calls.
5605 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5606 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5607 Register the various architecture variants defined in this file.
5608
5609 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5610
5611 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5612 (struct main_type): Remove arg_types member. Update comments for
5613 struct field.
5614 (TYPE_ARG_TYPES): Remove.
5615 (TYPE_FN_FIELD_ARGS): Update.
5616 (smash_to_method_type): Update prototype.
5617
5618 * c-typeprint.c (cp_type_print_method_args): Take method type
5619 instead of argument list. Use new argument layout. Simplify.
5620 (c_type_print_args): Use new argument layout. Simplify.
5621 (c_type_print_base): Update call to cp_type_print_method_args.
5622 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5623 argument; use die->type instead. Update call to
5624 smash_to_method_type.
5625 (read_structure_scope): Update call to dwarf2_add_member_fn.
5626 * gdbtypes.c (allocate_stub_method): Update comment.
5627 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5628 Use new argument layout.
5629 (check_stub_method): Use new argument layout. Don't count
5630 void as an argument.
5631 (print_arg_types): Update comments. Use new argument layout.
5632 (recursive_dump_type): Don't print arg_types member.
5633 * hpread.c (hpread_read_struct_type): Use new argument layout.
5634 (fixup_class_method_type): Likewise.
5635 (hpread_type_lookup): Likewise.
5636 * stabsread.c (read_type): Update calls to read_args and
5637 smash_to_method_type.
5638 (read_args): Use new argument layout. Simplify.
5639 * valops.c (typecmp): Use new argument layout. Update parameters
5640 and comments. Simplify.
5641 (hand_function_call): Use new argument layout.
5642 (search_struct_method): Update call to typecmp.
5643 (find_overload_match): Use new argument layout.
5644
5645 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5646
5647 * NEWS: Mention multithreaded debug support for gdbserver.
5648
5649 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5650
5651 * MAINTAINERS: Mention NEWS.
5652
5653 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5654
5655 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5656 (struct mips_objfile_private, compare_pdr_entries): New.
5657 (non_heuristic_proc_desc): Read the ".pdr" section if it
5658 is present.
5659
5660 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5661
5662 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5663 (arm_debug): New static variable.
5664 (_initialize_arm_tdep): Add ``set debug arm'' command.
5665
5666 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5667
5668 * Makefile.in (sim_arm_h): Define.
5669 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5670 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5671 (arm_register_sim_regno): New function, map an internal REGNUM
5672 onto a simulator register number.
5673 (arm_gdbarch_init): Set register_sim_regno.
5674
5675 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5676
5677 * MAINTAINERS: Add self.
5678
5679 2002-06-11 Jim Blandy <jimb@redhat.com>
5680
5681 * source.c (source_info): Mention whether the symtab has
5682 information about preprocessor macros.
5683
5684 Call the command `info macro', not `show macro'.
5685 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5686 Fix error message.
5687 (_initialize_macrocmd): Register `info_macro_command' in
5688 `infolist', not `showlist'.
5689
5690 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5691
5692 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5693 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5694 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5695 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5696 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5697 unconditionally.
5698 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5699 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5700 (_initialize_mips_tdep): Remove dead code.
5701 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5702 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5703 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5704 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5705 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5706 MIPS_LAST_FP_ARG_REGNUM): Remove.
5707
5708 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5709
5710 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5711 (unwind_tmp_obstack_free, parse_frame_info)
5712 (update_context, cfi_read_fp, cfi_write_fp)
5713 (cfi_frame_chain, cfi_init_extra_frame_info)
5714 (cfi_virtual_frame_pointer): Use the above function.
5715 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5716
5717 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5718
5719 * v850-tdep.c (v850_type_is_scalar): New function.
5720 (v850_use_struct_convention): Match current gcc implementation
5721 as close as possible.
5722 (v850_push_arguments): Fix stack_offset handling. Don't write
5723 struct_addr into register. This is done by v850_store_struct_return.
5724 (v850_extract_return_value): Care for structs.
5725 (v850_store_return_value): Ditto.
5726 (v850_store_struct_return): Actually write address.
5727
5728 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5729
5730 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5731 without debug information too.
5732
5733 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5734
5735 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5736 Make multi-arch pure.
5737 * gdbarch.h, gdbarch.c: Re-generate.
5738 * arm-tdep.c (arm_print_float_info): Update.
5739 * arch-utils.h (default_print_float_info): Update.
5740 * arch-utils.c (default_print_float_info): Update.
5741 * infcmd.c (float_info): Update call.
5742
5743 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5744
5745 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5746 the front of the initialize list.
5747
5748 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5749
5750 * infrun.c (struct inferior_status): Replace fields
5751 selected_frame_address and selected_level with field
5752 selected_frame_id.
5753 (save_inferior_status): Update. Use get_frame_id.
5754 (struct restore_selected_frame_args): Delete.
5755 (restore_selected_frame): Update. Use frame_find_by_id.
5756 (restore_inferior_status): Update.
5757
5758 * breakpoint.h (struct breakpoint): Change type of
5759 watchpoint_frame to frame_id.
5760 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5761 call to get_current_frame.
5762 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5763 get_current_frame.
5764 (watchpoint_check): Use frame_find_by_id.
5765
5766 * frame.h (record_selected_frame): Delete declaration.
5767 * stack.c (record_selected_frame): Delete function.
5768
5769 * frame.h (struct frame_id): Define.
5770 (get_frame_id): Declare.
5771 (frame_find_by_id): Declare.
5772 * frame.c (frame_find_by_id): New function.
5773 (get_frame_id): New function.
5774
5775 2002-06-10 Andrey Volkov <avolkov@transas.com>
5776
5777 * ser-e7kpc.c: Fix duplicated define and call of
5778 _initialize_ser_e7000pc
5779
5780 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5781
5782 * signals/signals.c (target_signal_from_host): Fix #ifdef
5783 SIGRTMIN case.
5784 (do_target_signal_to_host): Likewise.
5785
5786 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5787
5788 * mips-tdep.c (mips_find_abi_section): New function.
5789 (mips_gdbarch_init): Call it.
5790
5791 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5792
5793 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5794 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5795 after Andrew's 2002-06-08 gdbarch change.
5796
5797 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5798
5799 * i386-linux-nat.c (suppy_gregset): Don't supply
5800 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5801 register cache.
5802 (fill_gregset): Don't fetch it under the same circumstances.
5803
5804 2002-06-09 Andrew Cagney <cagney@redhat.com>
5805
5806 * Makefile.in (callback_h): Define.
5807 (remote_sim_h): Update path to remote-sim.h.
5808 (remote-rdp.o): Add $(callback_h).
5809 (remote-sim.o): Use $(callback_h).
5810 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5811 * remote-rdp.c: Include "gdb/callback.h".
5812
5813 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5814
5815 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5816 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5817
5818 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5819
5820 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5821 * rdi-share/serpardr.c: Ditto.
5822 * rdi-share/unixcomm.c: Ditto.
5823 * rdi-share/serdrv.c: Ditto.
5824 * rdi-share/hostchan.h: Ditto.
5825 * rdi-share/hostchan.c: Ditto.
5826 * rdi-share/host.h: Ditto.
5827 * rdi-share/devsw.c: Ditto.
5828
5829 * objfiles.h: Change type of obj_private to void pointer.
5830 * pa64solib.c: Update copyright. Don't include "assert.h", use
5831 strcmp instead of STREQ, use LONGEST, do not use PTR
5832 * somsolib.c: Ditto.
5833
5834 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5835 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5836 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5837
5838 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5839
5840 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5841 (default_get_saved_register): Delete function.
5842 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5843 generic_unwind_get_saved_register.
5844 * gdbarch.h, gdbarch.c: Re-generate.
5845
5846 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5847
5848 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5849 generic_func_frame_chain_valid.
5850 * gdbarch.h, gdbarch.c: Re-generate.
5851 * blockframe.c (generic_func_frame_chain_valid): Only check
5852 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5853 passing FP to PC_IN_CALL_DUMMY.
5854 Fix PR gdb/360.
5855
5856 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5857
5858 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5859 (register_gdbarch_data): Initialize init_p.
5860 (gdbarch_data): Initialize data pointer using the init function.
5861 (init_gdbarch_data): Delete function.
5862 (gdbarch_update_p): Update.
5863 (initialize_non_multiarch): Update.
5864 (struct gdbarch): Add field initialized_p.
5865 * gdbarch.h, gdbarch.c: Re-generate.
5866
5867 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5868
5869 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5870 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5871 better do the things actually here.
5872 * x86-64-tdep.c (x86_64_register_name2nr): New.
5873 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5874 (x86_64_gdbarch_init): Respect the above change.
5875 * x86-64-tdep.h (x86_64_register_name2nr)
5876 (x86_64_register_nr2name): Add prototypes.
5877 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5878
5879 2002-06-06 Michael Snyder <msnyder@redhat.com>
5880
5881 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5882 Delete extra braces and re-indent.
5883 (d10v_store_return_value): Char return values
5884 must be shifted over by one byte in R0.
5885 (d10v_extract_return_value): Delete extra braces, re-indent.
5886
5887 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5888
5889 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5890 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5891 (d10v_integer_to_address): Rewrite.
5892 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5893 the d10v specific functions which take care of converting to the
5894 correct space.
5895
5896 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5897
5898 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5899 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5900
5901 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5902
5903 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5904 includes.
5905 * config/tm-linux.h: Ditto.
5906 * config/alpha/tm-alphalinux.h: Ditto.
5907 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5908 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5909 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5910 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5911 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5912 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5913 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5914 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5915 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5916 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5917 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5918 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5919 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5920 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5921 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5922 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5923 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5924 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5925 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5926 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5927 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5928 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5929 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5930 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5931 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5932 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5933 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5934 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5935 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5936 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5937 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5938 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5939 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5940 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5941 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5942 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5943 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5944
5945 2002-05-04 Aidan Skinner <aidan@velvet.net>
5946
5947 * ada-exp.tab.c: New file
5948 * ada-exp.y: New file
5949 * ada-lang.c: New file
5950 * ada-lang.h: New file
5951 * ada-lex.c: New file
5952 * ada-lex.l: New file
5953 * ada-tasks.c: New file
5954 * ada-typeprint.c: New file
5955 * ada-valprint.c: New file
5956
5957 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5958
5959 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5960 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5961
5962 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5963
5964 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5965 insetead of ppc-linux-tdep.o.
5966 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5967 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5968
5969 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5970
5971 2002-05-07 Christian Groessler <chris@groessler.org>
5972 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5973 bit register contents for little endian hosts.
5974
5975 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5976
5977 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5978 any maintainer.
5979
5980 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5981
5982 * gdbarch.h: Regenerate.
5983
5984 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5985
5986 * MAINTAINERS: Add everyone to write-after-approval list.
5987
5988 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5989
5990 * stack.c (frame_info): Use frame_register_unwind instead of
5991 saved_regs. Mention when the SP is on the stack or in a register.
5992
5993 * frame.h (frame_register_unwind_ftype): Define. Document.
5994 (struct frame_info): Add field register_unwind and
5995 register_unwind_cache.
5996 (frame_register_unwind): Declare.
5997 (generic_unwind_get_saved_register): Declare.
5998
5999 * frame.c (frame_register_unwind): New function.
6000 (generic_unwind_get_saved_register): New function.
6001
6002 * blockframe.c (generic_call_dummy_register_unwind): New function.
6003 (frame_saved_regs_register_unwind): New function.
6004 (set_unwind_by_pc): New function.
6005 (create_new_frame): New function.
6006 (get_prev_frame): New function.
6007
6008 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6009
6010 * a29k-share/: Delete directory.
6011 * remote-vx29k.c: Delete file.
6012
6013 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6014
6015 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6016 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6017
6018 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6019
6020 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6021 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6022 (sparc64nbsd-nat.o)
6023 (sparcnbsd-nat.o)
6024 (sparcnbsd-tdep.o): New dependency lists.
6025 * NEWS: Note new UltraSPARC NetBSD native configuration.
6026 * configure.host (sparc64-*-netbsd*): New host.
6027 * configure.tgt (sparc-*-netbsdelf*)
6028 (sparc-*-netbsd*): Set gdb_target to nbsd.
6029 (sparc64-*-netbsd*): New target.
6030 * sparc64nbsd-nat.c: New file.
6031 * sparcnbsd-nat.c: New file.
6032 * sparcnbsd-tdep.c: New file.
6033 * sparcnbsd-tdep.h: New file.
6034 * config/sparc/nbsd.mt: New file.
6035 * config/sparc/nbsd64.mh: New file.
6036 * config/sparc/nbsd64.mt: New file.
6037 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6038 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6039 (HOST_IPC): Remove.
6040 * config/sparc/nbsdaout.mt: Remove.
6041 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6042 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6043 (HOST_IPC): Remove.
6044 * config/sparc/nbsdelf.mt: Remove.
6045 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6046 sparc-nat.c compatiblity defines.
6047 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6048 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6049 * config/sparc/tm-nbsd64.h: New file.
6050 * config/sparc/tm-nbsdaout.h: Remove.
6051 * config/sparc/xm-nbsd.h: Remove.
6052
6053 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6054
6055 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6056 * sparc-tdep.c: Include osabi.h.
6057 (gdbarch_tdep): Add osabi member.
6058 (_initialize_sparc_tdep): Use gdbarch_register.
6059 (sparc_gdbarch_init): Use generic OS ABI framework.
6060 (sparc_dump_tdep): New function.
6061
6062 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6063
6064 * corefile.c (do_captured_read_memory_integer): Return non-zero
6065 result.
6066 (safe_read_memory_integer): Copy result of memory read when
6067 status is non-zero. Also, add comments.
6068
6069 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6070
6071 * Makefile.in (ppc_tdep_h): Define.
6072 (ppc-linux-nat.o)
6073 (ppc-linux-tdep.o)
6074 (rs6000-tdep.o): Use $(ppc_tdep_h).
6075 (ppc-sysv-tdep.o)
6076 (ppcnbsd-nat.o)
6077 (ppcnbsd-tdep.o): New dependency lists.
6078 * ppc-tdep.h: Use generic OS ABI framework.
6079 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6080 (ppc_linux_init_abi): New functions.
6081 (ppc_sysv_abi_broken_use_struct_convention)
6082 (ppc_sysv_abi_use_struct_convention)
6083 (ppc_sysv_abi_push_arguments): Move to...
6084 * ppc-sysv-tdep.c: ...here.
6085 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6086 * rs6000-tdep.c (process_note_abi_tag_sections)
6087 (get_elfosabi): Remove.
6088 (rs6000_gdbarch_init): Use generic OS ABI framework.
6089 (rs6000_dump_tdep): New function.
6090 (_initialize_rs6000_tdep): Use gdbarch_register.
6091 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6092 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6093 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6094 of ppc-linux-tdep.o.
6095 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6096 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6097 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6098 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6099 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6100 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6101
6102 2002-05-29 Jim Blandy <jimb@redhat.com>
6103
6104 * macroscope.c (default_macro_scope): Put `void' in empty argument
6105 list.
6106
6107 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6108
6109 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6110 * arch-utils.c: Include "sim-regno.h".
6111 * gdbarch.sh: Don't include "sim-regno.h".
6112 * gdbarch.h, gdbarch.c: Regenerate.
6113 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6114 here.
6115 * arch-utils.h (legacy_register_sim_regno): To here.
6116 * remote-sim.c (legacy_register_sim_regno): Move function from
6117 here.
6118 * arch-utils.c (legacy_register_sim_regno): To here.
6119
6120 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6121
6122 * sim-regno.h: New file.
6123 * Makefile.in (sim_regno_h): Define.
6124 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6125 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6126 (legacy_register_sim_regno): New function.
6127 (one2one_register_sim_regno): New function.
6128 (gdbsim_fetch_register): Rewrite.
6129 (gdbsim_store_register): Only store a register when
6130 REGISTER_SIM_REGNO is valid.
6131 * d10v-tdep.c: Include "sim-regno.h".
6132 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6133 (d10v_ts3_register_sim_regno): Ditto.
6134 * gdbarch.sh: Include "sim-regno.h".
6135 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6136 * gdbarch.h, gdbarch.c: Regenerate.
6137 * arch-utils.h (default_register_sim_regno): Delete declaration.
6138 * arch-utils.c (default_register_sim_regno): Delete function.
6139
6140 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * ppcnbsd-nat.c: Rewrite.
6143 * ppcnbsd-tdep.c: New file.
6144 * ppcnbsd-tdep.h: New file.
6145 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6146 solib.o, and solib-svr4.o.
6147 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6148 nbsd-tdep.o, and corelow.o.
6149
6150 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6151
6152 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6153 `tr' and `sed'. Mention that `broken' targets are not expected to
6154 build.
6155
6156 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6157
6158 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6159 Let PC point right after the prologue before looking up symbols.
6160
6161 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6162
6163 * i386-tdep.c (i386_register_virtual_type): Return
6164 builtin_type_vec128i for SSE registers.
6165
6166 * gdbtypes.h (builtin_type_vec128i): Declare.
6167
6168 * gdbtypes.c (build_builtin_type_vec128i): New function.
6169 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6170 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6171 (build_gdbtypes): Initialize new builtin vector types.
6172 (_initialize_gdbtypes): Register new vector types with gdbarch.
6173
6174 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6175
6176 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6177 since it has been multi-arch'd.
6178 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6179 Move Alpha and VAX multi-arch news entries to same section
6180 as other multi-arch news.
6181
6182 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6183
6184 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6185 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6186 static. Rename some register numbers to put them in ns32k-tdep
6187 private namespace.
6188 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6189 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6190 functions.
6191 (_initialize_ns32k_tdep): Use gdbarch_register.
6192 * ns32k-tdep.h: New file.
6193 * ns32knbsd-tdep.c: New file.
6194 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6195 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6196 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6197 REGISTER_BYTES, REGISTER_BYTE): Remove.
6198 * config/ns32k/tm-ns32k.h: New file.
6199 * config/ns32k/tm-umax.h: Remove.
6200
6201 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6202
6203 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6204 ns32k_store_struct_return, ns32k_extract_return_value,
6205 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6206 functions.
6207 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6208 ns32k_saved_pc_after_call.
6209 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6210 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6211 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6212 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6213 ns32k_extract_struct_value_address.
6214
6215 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6216
6217 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6218 ns32k_fix_call_dummy): New.
6219 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6220 ns32k_call_dummy_words.
6221 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6222 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6223 CALL_DUMMY_NARGS): Remove.
6224 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6225
6226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6227
6228 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6229 ns32k_frame_saved_pc, ns32k_frame_args_address,
6230 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6231 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6232 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6233 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6234 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6235 (BREAKPOINT): Remove..
6236 (FRAME_CHAIN): Define as ns32k_frame_chain.
6237 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6238 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6239 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6240 (FRAME_FIND_SAVED_REGS): Remove.
6241 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6242 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6243 (POP_FRAME): Define as ns32k_pop_frame.
6244
6245 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 * ns32k-tdep.c (ns32k_register_byte_32082,
6248 ns32k_register_byte_32382, ns32k_register_raw_size,
6249 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6250 functions.
6251 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6252 ns32k_register_byte_32382.
6253 * config/ns32k/tm-umax.h: Update copyright years.
6254 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6255 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6256 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6257 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6258 (ns32k_get_enter_addr): Fix prototype.
6259
6260 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6261
6262 * ns32k-tdep.c: Update copyright years.
6263 (ns32k_register_name_32082): New function.
6264 (ns32k_register_name_32382): Ditto.
6265 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6266 (REGISTER_NAME): Define as ns32k_register_name_32382.
6267 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6268 (REGISTER_NAME): Define as ns32k_register_name_32082.
6269
6270 2002-05-24 Jim Blandy <jimb@redhat.com>
6271
6272 * dwarf2read.c (free_line_header): Use xfree, not free.
6273
6274 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6275
6276 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6277 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6278
6279 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6280
6281 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6282
6283 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6284
6285 From Ross Alexander at NEC Europe:
6286 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6287
6288 2002-05-23 Michael Snyder <msnyder@redhat.com>
6289
6290 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6291 for input, rather than parse_and_eval_address.
6292
6293 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6294
6295 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6296 * Makefile.in (sim_d10v_h): Update definition.
6297
6298 2002-05-24 Andrew Cagney <cagney@redhat.com>
6299
6300 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6301 change `2002-05-22 Michael Snyder' below.
6302 (d10v_push_arguments): Ditto.
6303 (d10v_extract_return_value): Ditto.
6304
6305 2002-05-23 Jim Blandy <jimb@redhat.com>
6306
6307 * macrotab.c (check_for_redefinition): Don't complain if the new
6308 definition is the same as the previous one. Take more arguments
6309 to allow the comparison.
6310 (macro_define_object, macro_define_function): Pass more arguments
6311 to check_for_redefinition.
6312
6313 2002-05-22 Michael Snyder <msnyder@redhat.com>
6314
6315 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6316 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6317 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6318 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6319 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6320 Add a temp variable to save a call (and a memory read).
6321 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6322 if possible (so that PC_IN_CALL_DUMMY will work).
6323
6324 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6325
6326 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6327
6328 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6329
6330 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6331 fde->cie_ptr.
6332 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6333 (dwarf2_build_frame_info): Add offset to fde->initial_location
6334 so that frames of shared libraries are mapped correctly.
6335 (execute_stack_op): Change type of 'result' from ULONGEST to
6336 CORE_ADDR.
6337
6338 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6339
6340 * config/alpha/tm-nbsd.h: Include solib.h.
6341
6342 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6345 assumptions about the host's byte order.
6346
6347 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6348
6349 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6350 to dependency list.
6351 * alphanbsd-tdep.c: Include solib-svr4.h.
6352 * shnbsd-tdep.c: Ditto.
6353
6354 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6355
6356 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6357 nbsd-tdep.h to dependency list.
6358 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6359 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6360 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6361 nbsdaout.mh and nbsdelf.mh consistently.
6362 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6363 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6364 nbsdaout.mt and nbsdelf.mh consistently.
6365 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6366 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6367 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6368 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6369 a.out shared library stuff from here...
6370 * config/nm-nbsdaout.h: ...to here.
6371 * config/tm-nbsd.h: Remove.
6372 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6373 * config/arm/nbsd.mh: Remove.
6374 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6375 nbsd-tdep.o.
6376 * config/arm/nbsdaout.mh: New file.
6377 * config/arm/nbsdelf.mh: New file.
6378 * config/arm/nm-nbsdaout.h: New file.
6379 * config/i386/nbsd.mh: Remove.
6380 * config/i386/nbsd.mt: Remove.
6381 * config/i386/nbsdaout.mh: New file.
6382 * config/i386/nbsdaout.mt: New file.
6383 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6384 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6385 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6386 i386_register_u_addr): Remove.
6387 * config/i386/nm-nbsdaout.h: New file.
6388 * config/i386/nm-nbsdelf.h: Remove.
6389 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6390 (USE_STRUCT_CONVENTION): Remove.
6391 * config/i386/tm-nbsdaout.h: New file.
6392 * config/i386/tm-nbsdelf.h: Remove.
6393 * config/m68k/nbsd.mh: Remove.
6394 * config/m68k/nbsd.mt: Remove.
6395 * config/m68k/nbsdaout.mh: New file.
6396 * config/m68k/nbsdaout.mt: New file.
6397 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6398 * config/m68k/nm-nbsdaout.h: New file.
6399 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6400 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6401 * config/ns32k/nbsd.mh: Remove.
6402 * config/ns32k/nbsd.mt: Remove.
6403 * config/ns32k/nbsdaout.mh: New file.
6404 * config/ns32k/nbsdaout.mt: New file.
6405 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6406 * config/ns32k/nm-nbsdaout.h: New file.
6407 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6408 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6409 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6410 (SVR4_SHARED_LIBS): Remove.
6411 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6412 * config/sparc/nbsd.mh: Remove.
6413 * config/sparc/nbsd.mt: Remove.
6414 * config/sparc/nbsdaout.mh: New file.
6415 * config/sparc/nbsdaout.mt: New file.
6416 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6417 * config/sparc/nbsdelf.mt: New file.
6418 * config/sparc/nm-nbsdaout.h: New file.
6419 * config/sparc/nm-nbsdelf.h: Remove.
6420 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6421 * config/sparc/tm-nbsdaout.h: New file.
6422
6423 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6424
6425 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6426 mipsnbsd-tdep.c
6427 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6428
6429 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6430
6431 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6432 shnbsd-nat.c.
6433 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6434
6435 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6436
6437 * NEWS: Note new MIPS NetBSD native configuration.
6438 * configure.host (mips*-*-netbsd*): New host.
6439 * configure.tgt (mips*-*-netbsd*): New target.
6440 * mipsnbsd-nat.c: New file.
6441 * mipsnbsd-tdep.c: New file.
6442 * mipsnbsd-tdep.h: New file.
6443 * config/mips/nbsd.mh: New file.
6444 * config/mips/nbsd.mt: New file.
6445 * config/mips/nm-nbsd.h: New file.
6446 * config/mips/tm-nbsd.h: New file.
6447
6448 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * Makefile.in (SFILES): Add osabi.c.
6451 (COMMON_OBS): Add osabi.o.
6452 (osabi.o): New dependency list.
6453 * osabi.c: New file.
6454 * osabi.h: New file.
6455 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6456
6457 * Makefile.in (alpha_tdep_h): Define and use instead of
6458 alpha-tdep.h.
6459 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6460 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6461 Remove.
6462 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6463 * alpha-tdep.h: Include osabi.h.
6464 (alpha_abi): Remove.
6465 (gdbarch_tdep): Use generic OS ABI framework.
6466 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6467 gdbarch_register_osabi.
6468 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6469 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6470 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6471
6472 * Makefile.in (sh_tdep_h): Add osabi.h.
6473 * sh-tdep.h (sh_osabi): Remove.
6474 (gdbarch_tdep): Use generic OS ABI framework.
6475 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6476 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6477 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6478 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6479
6480 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6481 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6482 gdbarch_register_osabi.
6483 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6484 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6485 (get_elfosabi): Rename to...
6486 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6487 ABI framework support routines.
6488 (arm_gdbarch_init): Use generic OS ABI framework.
6489 (arm_dump_tdep): Likewise.
6490 (_initialize_arm_tdep): Likewise.
6491 * arm-tdep.h: Include osabi.h.
6492 (arm_abi): Remove.
6493 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6494 osabi member.
6495 (arm_gdbarch_register_os_abi): Remove prototype.
6496 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6497 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6498
6499 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6500 * mips-tdep.c: Include osabi.h.
6501 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6502 OS ABI framework.
6503
6504 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6505
6506 * h8300-tdep.c: Fix formatting.
6507
6508 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6509
6510 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6511 printing vector registers.
6512
6513 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6514
6515 From Fernando Nasser:
6516 * remote.c (remote_async_open_1): Re-throw the exception when the
6517 connection fails.
6518 (remote_cisco_open): Ditto.
6519 (remote_open_1): Ditto.
6520
6521 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6522
6523 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6524 (remote_start_remote): Add uiout parameter. Pass through to
6525 remote_start_remote_dummy.
6526 (remote_open_1): Use catch_exception instead of catch_errors.
6527 (remote_async_open_1): Ditto.
6528 (remote_cisco_open): Ditto.
6529
6530 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6531
6532 * remote.c (remote_start_remote): Replace PTR with void pointer.
6533 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6534 static.
6535
6536 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6537
6538 * gdb_indent.sh: Allow the script to be run in the sim directory.
6539
6540 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6541
6542 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6543 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6544
6545 * corelow.c (core_open): Only call set_gdbarch_from_file if
6546 exec_bfd is NULL.
6547
6548 2002-05-17 Andrey Volkov <avolkov@transas.com>
6549
6550 * h8300-tdep.c: Add support of EXR register
6551 * config/h8300/tm-h8300.h: Ditto.
6552
6553 2002-05-17 Andrey Volkov <avolkov@transas.com>
6554
6555 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6556
6557 2002-05-17 Andrey Volkov <avolkov@transas.com>
6558
6559 * h8300-tdep.c: Change literal regnums to REGNO.
6560
6561 2002-05-17 Jim Blandy <jimb@redhat.com>
6562
6563 * NEWS: Note addition of macro support.
6564
6565 Expand preprocessor macros in C expressions.
6566 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6567 (scan_macro_expansion, scanning_macro_expansion,
6568 finished_macro_expansion): New function declarations.
6569 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6570 variable declarations.
6571 * parser-defs.h (expression_context_pc): New declaration.
6572 * parse.c (expression_context_pc): New variable.
6573 (parse_exp_1): Set expression_context_pc, as well as
6574 expression_context_block.
6575 * c-exp.y (yylex): If we're not already reading the result of a
6576 macro expansion, try to macro-expand the next token. When we're
6577 done scanning a macro expansion, switch back to the mainline text.
6578 Commas and `if's in a macro's expansion don't terminate the input.
6579 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6580 (macro_original_text, macro_expanded_text,
6581 expression_macro_lookup_func, expression_macro_lookup_baton): New
6582 variables.
6583 (scan_macro_expansion, scanning_macro_expansion,
6584 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6585 c_preprocess_and_parse): New functions.
6586 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6587 c_preprocess_and_parse, instead of c_parse.
6588 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6589 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6590
6591 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6592
6593 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6594 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6595 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6596
6597 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6598
6599 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6600
6601 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * Makefile.in (sh_tdep_h): Define and use.
6604 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6605 register enum): Move to...
6606 * * sh-tdep.h: ...here.
6607 * sh-tdep.c: Include sh-tdep.h.
6608 * sh3-rom.c: Likewise.
6609 * shnbsd-tdep.c: Likewise.
6610
6611 2002-05-16 Michael Snyder <msnyder@redhat.com>
6612
6613 * arm-tdep.c: Spelling fix in comment.
6614
6615 2002-05-16 Jim Blandy <jimb@redhat.com>
6616
6617 Add commands for manually expanding macros and showing their
6618 definitions.
6619 * macrocmd.c, macroscope.c, macroscope.h: New files.
6620 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6621 (macroscope_h): New variable.
6622 (HFILES_NO_SRCDIR): Add macroscope.h.
6623 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6624 (macroscope.o, macrocmd.o): New rules.
6625
6626 Teach the Dwarf 2 reader to read macro information.
6627 * dwarf2read.c: #include "macrotab.h".
6628 (dwarf_macinfo_buffer): New variable.
6629 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6630 dwarf_macinfo_size.
6631 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6632 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6633 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6634 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6635 dwarf2_macro_spaces_in_definition): New complaints.
6636 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6637 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6638 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6639 the partial symbol table.
6640 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6641 from what's recorded in the partial symbol table.
6642 (read_file_scope): If the compilation unit has a
6643 `DW_AT_macro_info' attribute, read its macro information.
6644 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6645
6646 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6647
6648 Fix PR gdb/546
6649 * ser-tcp.c: Don't include <netinet/udp.h>.
6650
6651 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6652
6653 * MAINTAINERS: Update my email address.
6654
6655 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6656
6657 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6658 include file of the same name.
6659
6660 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6661
6662 * configure.tgt: Mark v850 as multi-arched.
6663 * config/v850/tm-v850.h: Remove file.
6664 * config/v850/v850.mt: Eliminate TM_FILE.
6665
6666 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6667
6668 * v850-tdep.c: Full multi-arch.
6669 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6670 Define GDB_MULTI_ARCH to 2.
6671
6672 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6673
6674 * p-exp.y (current_type): New static variable.
6675 Carries the type of the expression at the position that is parsed.
6676 (push_current_type, pop_current_type): Two new functions. Used
6677 to store/restore current_type in expression on specific tokens.
6678 (search_field): New static variable. Set to one after parsing a point
6679 as at that point only a FIELDNAME token should be searched.
6680 (FIELDNAME): New token. After a point only a token belonging to
6681 current_type type definition is allowed.
6682 (all over token rules): reset and change current_type according
6683 to rules.
6684 (exp '[' rule): insert implicit array index field if
6685 exp is a pascal string type.
6686
6687 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6688
6689 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6690 frame info. Use frame_info's saved_regs instead of matching member
6691 in extra_frame_info throughout.
6692 (v850_frame_init_saved_regs): New function.
6693 (v850_init_extra_frame_info): Move most functionality into
6694 v850_frame_init_saved_regs().
6695 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6696 (v850_frame_find_saved_regs): Remove declaration.
6697 (FRAME_FIND_SAVED_REGS): Remove definition.
6698 (v850_frame_init_saved_regs): Add declaration.
6699 (FRAME_INIT_SAVED_REGS): Add definition.
6700
6701 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6702
6703 * v850-tdep.c: Begin multi-arch'ing v850.
6704 (v850_target_architecture_hook): Remove function.
6705 (v850_gdbarch_init): New function. Add code previously in
6706 v850_target_architecture_hook().
6707 (_initialize_v850_tdep): Don't set target_architecture_hook.
6708 Call register_gdbarch_init() instead.
6709
6710 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6711
6712 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6713 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6714 (fixup_class_method_type): Likewise.
6715
6716 2002-05-15 Jim Blandy <jimb@redhat.com>
6717
6718 Add macro structures to GDB's symbol tables. Nobody puts anything
6719 in them yet.
6720 * symtab.h (struct symtab): New member: `macro_table'.
6721 * buildsym.h (pending_macros): New global variable.
6722 * buildsym.c: #include "macrotab.h".
6723 (buildsym_init): Initialize `pending_macros'.
6724 (end_symtab): If we found macro information while reading a CU's
6725 debugging info, do build a symtab structure for it. Make the
6726 symtab point to the macro information, and clear the
6727 `pending_macros' pointer which held it while we were reading the
6728 debug info.
6729 (really_free_pendings): Free any pending macro table.
6730 * objfiles.h (struct objfile): New member: `macro_cache'.
6731 * objfiles.c (allocate_objfile): Set allocate and free functions
6732 for the macro cache's objstack.
6733 (free_objfile): Empty the macro cache's obstack.
6734 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6735 set new allocate and free functions for it.
6736 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6737 free functions for the macro cache's objstack. (Why is this
6738 function building its own objfile?)
6739 * symmisc.c (print_objfile_statistics): Print statistics on the
6740 macro bcache.
6741 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6742
6743 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6744
6745 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6746 (REGISTER_U_ADDR): Delete definition.
6747 (arm_register_u_addr): Delete declaration.
6748
6749 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6750
6751 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6752 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6753
6754 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6755
6756 * regcache.c (register_valid): Revise comments refering to "Not
6757 available" and "unavailable".
6758 * frame.c (frame_register_read): Ditto.
6759 * findvar.c (value_of_register): Ditto.
6760
6761 2002-05-15 Andrew Cagney <cagney@redhat.com>
6762
6763 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6764 (remote-sim.o): Update dependencies.
6765 (d10v-tdep.o): Specify dependencies.
6766 (sim_d10v_h): Define.
6767
6768 2002-05-14 Jim Blandy <jimb@redhat.com>
6769
6770 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6771 * macrotab.c (macro_lookup_inclusion, find_definition,
6772 new_macro_table): Same.
6773
6774 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6775 not `! strcmp ()'. This is a dubious improvement.
6776 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6777
6778 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6779 although it's not necessary, to avoid a warning.
6780
6781 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6782
6783 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6784 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6785 TYPE_INSTANCE_FLAGS.
6786 (struct main_type): New.
6787 (struct type): Move most members to struct main_type. Change
6788 cv_type and as_type to new type_chain member. Add instance_flags.
6789 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6790 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6791 (finish_cv_type): Remove prototype.
6792 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6793 Set TYPE_CHAIN.
6794 (alloc_type_instance): New function.
6795 (smash_type): New function.
6796 (make_pointer_type, make_reference_type, make_function_type)
6797 (smash_to_member_type, smash_to_method_type): Call smash_type.
6798 (make_qualified_type): New function.
6799 (make_type_with_address_space): Call make_qualified_type.
6800 (make_cv_type): Likewise.
6801 (finish_cv_type): Remove unnecessary function.
6802 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6803 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6804 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6805 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6806 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6807 * hpread.c (hpread_read_struct_type): Likewise.
6808 * stabsread.c (read_struct_type): Likewise.
6809
6810 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6811
6812 * configure.tgt: Add a catch all sh* target, for cases like
6813 sh[2,3,4]-elf and sh-hms.
6814
6815 2002-05-14 Keith Seitz <keiths@redhat.com>
6816
6817 * event-loop.c (create_file_handler): Don't do anything but
6818 update data when we are given a fd which we are already
6819 monitoring.
6820
6821 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6822
6823 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6824 (update_context): Use __func__ in warnings.
6825
6826 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6827
6828 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6829 and tcp_close to net_open and net_close.
6830 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6831 using UDP if requested. Don't try to disable Nagle on UDP
6832 sockets.
6833 * remote.c (remote_serial_open): New function. Warn about UDP.
6834 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6835
6836 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6837
6838 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6839
6840 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6841
6842 * configure.tgt: Remove sh-hms target.
6843 * MAINTAINERS: Don't list sh-hms as a separate target.
6844
6845 2002-05-13 Jim Blandy <jimb@redhat.com>
6846
6847 Add first preprocessor macro-expansion files.
6848 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6849 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6850 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6851 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6852 (COMMON_OBS): Add macrotab.o, macroexp.o.
6853 (macroexp.o, macrotab.o): New rules.
6854
6855 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6856
6857 * config/m88k/tm-m88k.h: Update copyright.
6858 (m88k_target_write_pc): Declare
6859 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6860 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6861 (SHIFT_INST_REGS): Update definition.
6862 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6863 using old definition of TARGET_WRITE_PC.
6864 * regcache.c (generic_target_write_pc): Delete code handling
6865 NNPC_REGNUM.
6866 * gdbarch.sh (NNPC_REGNUM): Delete.
6867 * gdbarch.h, gdbarch.c: Regenerate.
6868
6869 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6870
6871 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6872 builtin reg number.
6873
6874 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6875
6876 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6877 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6878 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6879 access macros.
6880 * c-typeprint.c (cp_type_print_method_args): Likewise.
6881 (c_type_print_args): Likewise.
6882 * d10v-tdep.c (d10v_push_arguments): Likewise.
6883 (d10v_extract_return_value): Likewise.
6884 * expprint.c (print_subexp): Likewise.
6885 * gdbtypes.c (lookup_primitive_typename): Likewise.
6886 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6887 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6888 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6889 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6890 (TYPE_VECTOR): Likewise.
6891 * hpread.c (hpread_read_struct_type)
6892 (fix_static_member_physnames, fixup_class_method_type)
6893 (hpread_type_lookup): Likewise.
6894 * mdebugread.c (parse_symbol, parse_type): Likewise.
6895 * p-lang.c (is_pascal_string_type): Likewise.
6896 * valops.c (hand_function_call): Likewise.
6897 * x86-64-tdep.c (classify_argument): Likewise.
6898
6899 * hpread.c (hpread_read_function_type)
6900 (hpread_read_doc_function_type): Call replace_type.
6901 * dstread.c (create_new_type): Delete.
6902 (decode_dst_structure, process_dst_function): Call alloc_type.
6903 Use type access macros.
6904
6905 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6906
6907 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6908 the're not supported by the current architecture.
6909 (i387_fill_fxsave): Likewise.
6910
6911 2002-05-12 Fred Fish <fnf@redhat.com>
6912
6913 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6914 sect_index_xxx members to index the first slot in section_offsets
6915 if all of the section_offsets are zero.
6916
6917 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6918
6919 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6920 checked in with last change.
6921
6922 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6923
6924 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6925 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6926 config.sub.
6927
6928 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6929
6930 * Makefile.in: Update dependencies.
6931
6932 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6933
6934 * language.c (local_hex_string_custom): Simplify. Do not depend
6935 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6936
6937 * memattr.c (mem_info_command): Replace calls to
6938 longest_local_hex_string and longest_local_hex_string_custom.
6939 * buildsym.c (make_blockvector): Ditto.
6940 * solib.c (info_sharedlibrary_command): Ditto.
6941 * tracepoint.c (tracepoints_info): Ditto.
6942 * symtab.c (print_msymbol_info): Ditto.
6943
6944 * language.c (local_hex_string): Delete.
6945 (local_hex_string_custom): Delete.
6946 (longest_local_hex_string): Rename to local_hex_string.
6947 (longest_local_hex_string_custom): Rename to
6948 local_hex_string_custom.
6949 * language.h (local_hex_string): Change parameter type to LONGEST.
6950 (local_hex_string_custom): Ditto.
6951 (longest_local_hex_string): Delete declaration.
6952 (longest_local_hex_string_custom): Ditto.
6953
6954 * solib.c: Update copyright.
6955 * memattr.c: Update copyright.
6956
6957 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6958
6959 * arch-utils.h (legacy_register_to_value): Declare.
6960 (legacy_value_to_register): Declare.
6961 (legacy_convert_register_p): Declare.
6962 * arch-utils.c (legacy_register_to_value): New function.
6963 (legacy_value_to_register): New function.
6964 (legacy_convert_register_p): New function.
6965
6966 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6967 (VALUE_TO_REGISTER): Define.
6968 (CONVERT_REGISTER_P): Define.
6969 * gdbarch.h, gdbarch.c: Regenerate.
6970
6971 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6972 VALUE_TO_REGISTER.
6973 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6974 CONVERT_REGISTER_P.
6975
6976 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6977 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6978
6979 * Makefile.in: Update dependencies for valops.c.
6980 * valops.c: Include "gdb_assert.h".
6981 (typecmp): Skip THIS parameter to methods.
6982 (find_method_list): Remove static_memfuncp argument,
6983 update callers. Check for stub methods.
6984 (find_value_oload_method_list): Don't set *static_memfuncp.
6985 (find_overload_match): Don't check for stub methods. Assert
6986 that methods are not stubbed. Handle static methods.
6987 (value_find_oload_method_list): Remove static_memfuncp argument.
6988 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6989 to the argument list for static stub methods.
6990 * value.h (value_find_oload_method_list): Update prototype.
6991
6992 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6993
6994 * arch-utils.h (generic_register_size): Declare.
6995 (generic_register_raw_size, generic_register_virtual_size): Delete
6996 declarations.
6997 * arch-utils.c (generic_register_raw_size): Delete.
6998 (generic_register_size): New function.
6999 (generic_register_virtual_size): Delete.
7000
7001 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7002 default generic_register_size.
7003 * gdbarch.h, gdbarch.c: Re-generate.
7004
7005 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7006 register_virtual_size.
7007 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7008 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7009
7010 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7011
7012 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7013 * gdbarch.h, gdbarch.c: Regenerate.
7014 * gnu-v3-abi.c: Update copyright.
7015 (vtable_address_point_offset): Update.
7016 (gnuv3_rtti_type): Update.
7017 (gnuv3_baseclass_offset): Update.
7018 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7019 (init_fetch_link_map_offsets): Update.
7020 * remote.c (get_remote_state): Update.
7021
7022 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7023
7024 * TODO: Remove value_headof/value_from_vtable_info comment.
7025 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7026 * values.c (value_headof, value_from_vtable_info): Delete.
7027 * value.h (value_from_vtable_info): Delete prototype.
7028
7029 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7030
7031 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7032 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7033 $(gdb_regex_h).
7034 (gdb_assert_h): Define.
7035 (gdb_wait_h): Define.
7036 (gdb_regex_h): Define.
7037
7038 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7039
7040 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7041 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7042
7043 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7044
7045 * nbsd-tdep.c: Fix comment.
7046
7047 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7048
7049 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7050 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7051 (nbsd-tdep.o): New dependency list.
7052 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7053 nbsd-tdep.h.
7054 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7055 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7056 * nbsd-tdep.c: New file.
7057 * nbsd-tdep.h: New file.
7058 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7059 nbsd-tdep.h.
7060 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7061 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7062 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7063 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7064
7065 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7066
7067 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7068 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7069 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7070 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7071 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7072 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7073
7074 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7075
7076 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7077 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7078 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7079 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7080 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7081 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7082 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7083
7084 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7087 fetch_elfcore_registers to...
7088 * i386nbsd-tdep.c: ...here.
7089 (i386nbsd_use_struct_convention): Rename to...
7090 (i386nbsd_aout_use_struct_convention): ...this.
7091 (i386nbsd_supply_reg): New function.
7092 (i386nbsd_fill_reg): New function.
7093 (fetch_core_registers): Use i386nbsd_supply_reg.
7094 (fetch_elfcore_registers): Likewise.
7095 (_initialize_i386nbsd_tdep): New function.
7096 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7097 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7098 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7099 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7100 (i386nbsd_aout_use_struct_convention): ...this.
7101
7102 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7103
7104 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7105 (store_inferior_registers): Use shnbsd_fill_reg.
7106 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7107 sh_nbsd_supply_register): Collapse into...
7108 (shnbsd_supply_reg): ...this.
7109 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7110 (shnbsd_fill_reg): ...this.
7111 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7112 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7113 (fetch_core_registers): Use shnbsd_supply_reg.
7114 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7115 (sh_nbsd_core_fns): Rename to...
7116 (shnbsd_core_fns): ...this.
7117 (sh_nbsd_elfcore_fns): Rename to...
7118 (shnbsd_elfcore_fns): ...this.
7119 (sh_nbsd_init_abi): Rename to...
7120 (shnbsd_init_abi): ...this.
7121 (_initialize_sh_nbsd_tdep): Rename to...
7122 (_initialize_shnbsd_tdep): ...this.
7123 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7124 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7125 sh_nbsd_fill_register): Remove prototypes.
7126 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7127
7128 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7129
7130 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7131 (i387-nat.o): Delete dependency list.
7132 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7133 (x86-64-linux-nat.o): Likewise.
7134 * i387-nat.c: Delete file, moving contents to...
7135 * i387-tdep.c: ...here.
7136 * i387-nat.h: Rename...
7137 * i387-tdep.h: ...to this.
7138 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7139 * i386-linux-nat.c: Likewise.
7140 * i386bsd-nat.c: Likewise.
7141 * i386gnu-nat.c: Likewise.
7142 * i386nbsd-nat.c: Likewise.
7143 * i386v4-nat.c: Likewise.
7144 * x86-64-linux-nat.c: Likewise.
7145 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7146 * config/i386/go32.mh (NATDEPFILES): Likewise.
7147 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7148 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7149 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7150 * config/i386/linux.mh (NATDEPFILES): Likewise.
7151 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7152 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7153 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7154 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7155
7156 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7157
7158 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7159 (alphanbsd-nat.o): Remove dependency list.
7160 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7161 * alphanbsd-nat.c: Delete. Contents moved to...
7162 * alphanbsd-tdep.c: ...here.
7163 (_initialize_alphanbsd_tdep): Register core functions.
7164 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7165
7166 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7167
7168 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7169 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7170 (alphanbsd-nat.o): Likewise.
7171 (alphabsd-tdep.o): New dependency list.
7172 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7173 (fill_gregset): Use alphabsd_fill_reg.
7174 (supply_fpregset): Use alphabsd_supply_fpreg.
7175 (fill_fpregset): Use alphabsd_fill_fpreg.
7176 (fetch_inferior_registers): Use struct reg and struct fpreg
7177 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7178 and alphabsd_supply_fpreg.
7179 (store_inferior_registers): Use struct reg and struct fpreg
7180 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7181 and alphabsd_fill_fpreg.
7182 * alphabsd-tdep.c: New file.
7183 * alphabsd-tdep.h: New file.
7184 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7185 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7186 alphabsd_supply_fpreg.
7187 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7188 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7189
7190 2002-05-11 Eric Christopher <echristo@redhat.com>
7191
7192 * mips-tdep.c (mips_double_register_type): Fix thinko.
7193 (mips_single_register_type): Ditto.
7194 * MAINTAINERS: Add self.
7195
7196 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7197
7198 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7199 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7200 right thing on architectures with different endianness and/or
7201 integer sizes.
7202
7203 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7204
7205 From Christian Limpach <chris@Pin.LU>
7206 * configure.in: Change sed expression which comments out
7207 NATDEPFILES to also comment out continuation lines.
7208 * configure: Regenerate.
7209
7210 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7211
7212 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7213 big patch.
7214
7215 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7216
7217 * sh-tdep.c: Include correct file.
7218
7219 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7220
7221 New support for sh64-elf (sh5) target.
7222
7223 * configure.tgt: For sh64-elf target, default to sh-elf.
7224
7225 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7226 (struct gdbarch_tdep): Add new fields for new registers and ABI
7227 info.
7228
7229 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7230 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7231 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7232 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7233 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7234 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7235 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7236 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7237 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7238 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7239 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7240 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7241 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7242 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7243 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7244 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7245 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7246 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7247 sign_extend, sh64_nofp_frame_init_saved_regs,
7248 sh64_init_extra_frame_info, sh64_get_saved_register,
7249 sh64_extract_struct_value_address, sh64_pop_frame,
7250 sh64_push_arguments, sh64_extract_return_value,
7251 sh64_store_return_value, sh64_show_media_regs,
7252 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7253 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7254 sh_sh64_register_virtual_type,
7255 sh_sh64_register_convert_to_virtual,
7256 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7257 sh64_register_read, sh64_pseudo_register_write,
7258 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7259 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7260 sh64_do_pseudo_register, sh_compact_do_registers_info,
7261 sh64_do_registers_info, sh_gdbarch_init): New functions.
7262
7263 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7264
7265 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7266
7267 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7268
7269 * linespec.c (decode_line_1): Check for a double quote after
7270 a filename correctly.
7271
7272 2002-05-10 Jim Blandy <jimb@redhat.com>
7273
7274 Properly track the size of the current objfile's .debug_line section.
7275 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7276 (DWARF_LINE_SIZE): New macro.
7277 (dwarf2_build_psymtabs_hard): Record the line section's size in
7278 the partial symbol table.
7279 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7280 symbol table.
7281
7282 2002-05-10 Petr Sorfa <petrs@caldera.com>
7283
7284 * ia64-tdep.c: Handle breakpoints on L instruction type
7285 in MLX instruction bundle by moving the breakpoint to
7286 the third slot (X instruction type) as L holds only data.
7287
7288 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7289
7290 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7291 (process_one_symbol): Complain about discarding local symbols
7292 due to a misplaced N_LBRAC entry.
7293
7294 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7295
7296 From Daniel Berlin <dan@cgsoftware.com>
7297 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7298 decrease the depth we are at, in the case of templates.
7299
7300 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7301
7302 * mips-tdep.c (mips_float_register_type): New function.
7303 (mips_double_register_type): New function.
7304 (mips_print_register): Use them.
7305 (do_fp_register_row): Likewise.
7306
7307 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7308
7309 * signals/signals.c (signals): Remove conditional compilation around
7310 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7311 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7312
7313 2002-05-09 Michael Snyder <msnyder@redhat.com>
7314
7315 * remote-rdp.c (remote_rdp_can_run): Remove.
7316
7317 2002-05-09 Tom Tromey <tromey@redhat.com>
7318
7319 * jv-valprint.c (java_val_print): Handle `char' as a special case
7320 of TYPE_CODE_INT.
7321
7322 2002-05-09 Michael Snyder <msnyder@redhat.com>
7323
7324 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7325 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7326 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7327 str r(0123),[sp,#nn].
7328 (arm_skip_prologue): Ditto. Also make disassembly
7329 order-independent by placing it in a loop.
7330
7331 2002-05-06 Michael Snyder <msnyder@redhat.com>
7332
7333 * stabsread.c (read_type): Add recognition for new attribute:
7334 "@V;" means that an array type is actually a vector.
7335 This is analogous to the vector flag that's been added to dwarf2.
7336
7337 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7338
7339 * i386-tdep.h (i386_abi): New enum.
7340 (struct gdbarch_tdep): Replace os_ident member with abi.
7341 (i386_gdbarch_register_os_abi): New prototype.
7342 * i386-tdep.c (i386_abi_names): New array.
7343 (process_note_abi_tag_sections): Removed.
7344 (process_note_sections): New function.
7345 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7346 (struct i386_abi_handler): New struct.
7347 (i386_abi_handler_list): New variable.
7348 (i386_gdbarch_register_os_abi): New function.
7349 (i386_gdbarch_init): Adapt for the changes given above.
7350
7351 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7352
7353 * gregset.h: Say "GNU/Linux".
7354
7355 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7356
7357 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7358 (build_gdbtypes): Build builtin_type_v2_float.
7359 (_initialize_gdbtypes): Register new builtin type.
7360
7361 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7362
7363 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7364 (clear_gdbarch_swap): New function.
7365 (initialize_non_multiarch): Call.
7366 (gdbarch_update_p): Before calling init(), swap out and clear the
7367 existing architecture.
7368 * gdbarch.c: Regenerate.
7369
7370 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7371
7372 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7373 alphanbsd-tdep.c.
7374
7375 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7376
7377 * sh-nbsd-nat.c: Rename to...
7378 * shnbsd-nat.c: ...this.
7379 * sh-nbsd-tdep.c: Rename to...
7380 * shnbsd-tdep.c: ...this.
7381 * sh-nbsd-tdep.h: Rename to...
7382 * shnbsd-tdep.h: ...this.
7383 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7384 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7385
7386 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7387
7388 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7389 concatenation for command help messages.
7390
7391 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7392
7393 * NEWS: Note new sh*-*-netbsdelf* configuration.
7394 * configure.host: Set gdb_host_cpu to sh for all sh*.
7395 (sh*-*-netbsdelf*): New host.
7396 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7397 (sh*-*-netbsdelf*): New target.
7398 * sh-nbsd-nat.c: New file.
7399 * sh-nbsd-tdep.c: New file.
7400 * sh-nbsd-tdep.h: New file.
7401 * config/sh/nbsd.mh: New file.
7402 * config/sh/nbsd.mt: New file.
7403 * config/sh/nm-nbsd.h: New file.
7404 * config/sh/tm-nbsd.h: New file.
7405
7406 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7407
7408 * sh-tdep.c (sh_osabi_names): Declare.
7409 (process_note_abi_tag_sections): New function.
7410 (get_elfosabi): Ditto.
7411 (sh_gdbarch_register_os_abi): Ditto.
7412 (sh_dump_tdep): Ditto.
7413 _initialize_sh_tdep): Use gdbarch_register to register
7414 sh_gdbarch_init and sh_dump_tdep.
7415 * config/sh/tm-sh.h (sh_osabi): Declare.
7416 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7417
7418 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7419
7420 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7421 (thumb_scan_prologue): Ditto.
7422 (arm_find_callers_reg): Ditto.
7423 (arm_frame_chain): Ditto.
7424 (arm_init_extra_frame_info): Ditto.
7425 (arm_frame_saved_pc): Ditto.
7426 (arm_pop_frame): Ditto.
7427 (arm_push_return_address): New function.
7428 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7429 call_dummy_location, call_dummy_breakpoint_offset_p,
7430 call_dummy_breakpoint_offset, call_dummy_p,
7431 call_dummy_stack_adjust_p, call_dummy_words,
7432 sizeof_call_dummy_words, call_dummy_start_offset,
7433 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7434 call_dummy_address, push_return_address and push_dummy_frame for
7435 generic dummy frames.
7436
7437 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7438
7439 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7440 size computation for alloca.
7441 (sh_fp_frame_init_saved_regs): Likewise.
7442
7443 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7444
7445 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7446 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7447 * arm-tdep.c (arm_store_return_value): Use them.
7448 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7449 * remote-rdp.c (remote_rdp_fetch_register): Use
7450 ARM_MAX_REGISTER_RAW_SIZE.
7451 (remote_rdp_store_register): Likewise.
7452
7453 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7454
7455 * dwarf2cfi.c: Code cleanup, removed unused variables,
7456 added default labels to switch {} statements.
7457 * x86-64-tdep.c: Ditto.
7458 * x86-64-linux-nat.c: Ditto.
7459
7460 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7461
7462 * solib.h: Protect against multiple inclusion.
7463
7464 2002-05-06 Jim Blandy <jimb@redhat.com>
7465
7466 Add first preprocessor macro-expansion files.
7467 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7468 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7469 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7470 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7471 (COMMON_OBS): Add macrotab.o, macroexp.o.
7472 (macroexp.o, macrotab.o): New rules.
7473
7474 Separate the job of reading the line number info statement program
7475 header (...expialidocious) out into its own function.
7476 * dwarf2read.c (struct line_head, struct filenames, struct
7477 directories): Replace with...
7478 (struct line_header): New structure, containing the full
7479 contents of the statement program header, including the
7480 include directory and file name tables.
7481 (read_file_scope): If we have line number info, instead of just
7482 calling dwarf_decode_lines to do all the work, call
7483 dwarf_decode_line_header first to get a `struct line_header'
7484 containing the data in the statement program header, and then
7485 pass that to dwarf_decode_lines, which will pick up where that
7486 left off. Be sure to clean up the `struct line_header' object.
7487 (dwarf_decode_line_header, free_line_header, add_include_dir,
7488 add_file_name): New functions.
7489 (dwarf_decode_lines): Move all the code to read the statement
7490 program header into dwarf_decode_line_header. Take the line
7491 header it built as the first argument, instead of the offset to
7492 the compilation unit's line number info. Use the new `struct
7493 line_header' type instead of the old structures. No need to do
7494 cleanups here now, since we don't allocate anything.
7495 (dwarf2_statement_list_fits_in_line_number_section,
7496 dwarf2_line_header_too_long): New complaints.
7497
7498 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7499
7500 * gdbtypes.c (init_vector_type): New function.
7501 (build_builtin_type_vec128): Simplify the representation of SIMD
7502 registers.
7503 (build_gdbtypes): Initialize new builtin vector types.
7504 (_initialize_gdbtypes): Register new vector types with gdbarch.
7505 (builtin_type_v4_float, builtin_type_v4_int32,
7506 builtin_type_v8_int16, builtin_type_v16_int8,
7507 builtin_type_v2_int32, builtin_type_v4_int16,
7508 builtin_type_v8_int8): New (renamed) SIMD types.
7509
7510 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7511
7512 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7513 (i387_fill_fxsave): Likewise.
7514
7515 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7516
7517 * alpha-tdep.c (alpha_extract_return_value): Don't use
7518 non-constant array size in prototype.
7519
7520 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7521
7522 From Brian Taylor <briant at model dot com>:
7523 * ui-out.c (ui_out_field_core_addr): Use the function
7524 longest_local_hex_string_custom'to format addresses > 32 bits
7525 wide.
7526
7527 * ui-out.c (ui_out_field_core_addr): Update comment.
7528
7529 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7530
7531 * stack.c (select_and_print_frame): Make static. Delete the
7532 parameter `level'.
7533 (func_command): Update call.
7534 (select_frame_command): Delete code computing the frame level.
7535 * frame.h (select_and_print_frame): Delete declaration.
7536
7537 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7538
7539 * sparc-tdep.c (sparc_get_saved_register): Comment why
7540 get_prev_frame call is safe.
7541
7542 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7543
7544 * frame.h (select_frame): Delete level parameter.
7545 * stack.c (select_frame): Update. Use frame_relative_level to
7546 obtain the frame's level.
7547 (select_and_print_frame): Update call.
7548 (select_frame_command): Ditto.
7549 (up_silently_base): Ditto.
7550 (down_silently_base): Ditto.
7551 * ocd.c (ocd_start_remote): Ditto.
7552 * remote-rdp.c (remote_rdp_open): Ditto.
7553 * remote-mips.c (mips_initialize): Ditto.
7554 (common_open): Ditto.
7555 * remote-e7000.c (e7000_start_remote): Ditto.
7556 * m3-nat.c (select_thread): Ditto.
7557 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7558 (child_get_current_exception_event): Ditto.
7559 * varobj.c (varobj_create): Ditto.
7560 (varobj_update): Ditto.
7561 (c_value_of_root): Ditto.
7562 * tracepoint.c (finish_tfind_command): Ditto.
7563 * corelow.c (core_open): Ditto.
7564 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7565 * thread.c (info_threads_command): Ditto.
7566 (switch_to_thread): Ditto.
7567 * infrun.c (normal_stop): Ditto.
7568 (restore_selected_frame): Ditto.
7569 (restore_inferior_status): Ditto.
7570 * breakpoint.c (insert_breakpoints): Ditto.
7571 (watchpoint_check): Ditto.
7572 (bpstat_stop_status): Ditto.
7573 (do_enable_breakpoint): Ditto.
7574 * blockframe.c (flush_cached_frames): Ditto.
7575 (reinit_frame_cache): Ditto.
7576
7577 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7578
7579 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7580 maintainer.
7581
7582 2002-05-04 Jim Blandy <jimb@redhat.com>
7583
7584 * gdbtypes.c (replace_type): Doc fix.
7585
7586 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7587
7588 * valprint.c (strcat_longest): Delete commented out function.
7589 Update copyright.
7590
7591 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7592
7593 * MAINTAINERS: Mark a29k as deleted.
7594 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7595 Move new configurations to the top.
7596 * configure.tgt: Remove a29k.
7597 * config/a29k/tm-vx29k.h: Delete.
7598 * config/a29k/vx29k.mt: Delete.
7599 * config/a29k/tm-a29k.h: Delete.
7600 * config/a29k/a29k-udi.mt: Delete.
7601 * config/a29k/a29k.mt: Delete.
7602 * a29k-tdep.c: Delete.
7603 * remote-udi.c: Delete.
7604 * remote-mm.c: Delete.
7605 * remote-eb.c: Delete.
7606 * remote-adapt.c: Delete.
7607 * Makefile.in: Remove obsolete code.
7608 * config/s390/s390x.mt: Ditto.
7609 * config/s390/s390.mt: Ditto.
7610 * config/sparc/sparclynx.mh: Ditto.
7611 * config/sparc/linux.mh: Ditto.
7612 * config/pa/hppaosf.mh: Ditto.
7613 * config/pa/hppabsd.mh: Ditto.
7614 * config/ns32k/nbsd.mt: Ditto.
7615 * config/mips/vr5000.mt: Ditto.
7616 * config/m68k/sun3os4.mh: Ditto.
7617 * config/m68k/nbsd.mt: Ditto.
7618 * config/m68k/m68klynx.mh: Ditto.
7619 * config/m32r/m32r.mt: Ditto.
7620 * config/i386/x86-64linux.mt: Ditto.
7621 * config/i386/nbsdelf.mt: Ditto.
7622 * config/i386/nbsd.mt: Ditto.
7623 * config/i386/i386lynx.mh: Ditto.
7624
7625 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7626
7627 * target.c (debug_print_register): New function. Handle oversize
7628 registers.
7629 (debug_to_fetch_registers): Call.
7630 (debug_to_store_registers): Call.
7631
7632 2002-05-03 Jim Blandy <jimb@redhat.com>
7633
7634 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7635 (read_type): Doc fix.
7636 * gdbtypes.c (replace_type): Doc fix.
7637
7638 * stabsread.c (multiply_defined_struct): New complaint.
7639 (read_struct_type): If the type we were passed isn't empty, or
7640 incomplete, don't read the new struct type into it; complain,
7641 and return the original type unchanged. Take a new `type_code'
7642 argument, which is the type code for the new type.
7643 (read_type): Rather than storing the type's type code here, pass
7644 it as an argument to read_struct_type, and let that take care of
7645 storing it. That way, we don't overwrite the original type code,
7646 so read_struct_type can use it to decide whether we're overwriting
7647 something we shouldn't.
7648 (complain_about_struct_wipeout): New function.
7649
7650 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7651
7652 * gdbarch.sh: Assert that gdbarch is non-NULL.
7653 * gdbarch.c: Regenerate.
7654
7655 2002-05-03 Jason Merrill <jason@redhat.com>
7656
7657 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7658 and return NULL.
7659
7660 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7661
7662 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7663 (x86_64_dwarf2gdb_regno_map_length),
7664 (x86_64_dwarf2_reg_to_regnum): Added.
7665 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7666 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7667 (_initialize_x86_64_tdep): Synced with the change above.
7668 (x86_64_skip_prologue): Reformulated message.
7669
7670 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7671
7672 * f-exp.y: Also use new prev_lexptr variable
7673 to improve error reporting. Based on Michael Snyder
7674 2002-04-24 dated patch to c-exp.y.
7675 * jv-exp.y: Likewise.
7676 * m2-exp.y: Likewise.
7677
7678 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7679
7680 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7681 we are dealing with vectors.
7682
7683 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7684
7685 * config/m68k/tm-nbsd.h: Obvious fix,
7686 correct machine name.
7687
7688 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7689
7690 * p-typeprint.c (pascal_type_print_base): Add support
7691 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7692
7693 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7694
7695 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7696 for fondamental pascal 'char' type.
7697
7698 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7699
7700 * p-lang.h (is_pascal_string_type): Declaration changed,
7701 new sixth argument of type char ** added.
7702 * p-lang.c (is_pascal_string_type): Implementation
7703 changed. Args length_pos, length_size, string_pos, char_size
7704 can now be NULL. New argument arrayname set to the field
7705 name of the char array. Return value set to char array
7706 field index plus one.
7707 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7708 is_pascal_string_type function.
7709
7710 2002-05-02 Andrew Cagney <cagney@redhat.com>
7711
7712 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7713 <cagney@redhat.com> change.
7714 * gdbarch.c: Regenerate.
7715
7716 2002-05-02 Andrew Cagney <cagney@redhat.com>
7717
7718 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7719 before probing for a new one. Detect errorenous gdbarch_init
7720 functions.
7721 * gdbarch.c: Regenerate.
7722
7723 2002-05-01 Andrew Cagney <cagney@redhat.com>
7724
7725 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7726 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7727 * config/v850/tm-v850.h: Ditto. Update copyright.
7728
7729 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7730
7731 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7732 current_gdbarch.
7733
7734 2002-04-30 Michael Snyder <msnyder@redhat.com>
7735
7736 * arm-tdep.c: Whitespace clean-ups.
7737 (arm_skip_prologue): Fix thinko; two lines
7738 should have been removed as part of 4/24 change.
7739
7740 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7741
7742 * rs6000-tdep.c: Added comment describing how fpscr register
7743 numbers were chosen.
7744
7745 2002-04-30 Michael Snyder <msnyder@redhat.com>
7746
7747 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7748
7749 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7750
7751 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7752 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7753 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7754
7755 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7756
7757 From Louis Hamilton <hamilton@redhat.com>:
7758 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7759 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7760 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7761 not bfd-private xcoff data, to determine wordsize.
7762 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7763
7764 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7765
7766 GDB 5.2 released from 5.2 branch.
7767
7768 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7769
7770 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7771 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7772 (x86_64_register_info_table): Added comments with register numbers.
7773
7774 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7775
7776 * rs6000-tdep.c (rs6000_extract_return_value,
7777 rs6000_store_return_value): Handle returning vectors.
7778 (rs6000_gdbarch_init): Use
7779 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7780 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7781 New function.
7782 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7783 vectors.
7784 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7785 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7786
7787 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7788
7789 * hpread.c (hpread_psymtab_to_symtab_1,
7790 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7791 with fprintf_unfiltered (gdb_stderr,...).
7792
7793 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7794
7795 * remote-array.c (printf_monitor, write_monitor,
7796 array_insert_breakpoint, array_remove_breakpoint ):
7797 Replace fprintf (stderr,...
7798 with fprintf_unfiltered (gdb_stderr,....
7799 * remote-es.c: Likewise.
7800 * remote-os9k.c: Likewise.
7801 * remote-st.c: Likewise.
7802
7803 2002-04-28 Andreas Schwab <schwab@suse.de>
7804
7805 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7806 linux-proc.o and gcore.o.
7807
7808 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7809
7810 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7811 code without frame pointers.
7812
7813 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7814
7815 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7816 ON_STACK is needed.
7817
7818 2002-04-26 Ben Elliston <bje@redhat.com>
7819
7820 * target.c (do_xfer_memory): Correct reference to the new option
7821 "trust-readonly-sections".
7822
7823 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7824
7825 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7826 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7827 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7828 vectors.
7829 (read_array_type): Record the fact that this array type is really a
7830 vector (i.e. are passed in by value).
7831
7832 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7835 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7836 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7837 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7838 * alpha-linux-tdep.c: Include frame.h.
7839 (alpha_linux_sigcontext_addr): New function.
7840 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7841 alpha_linux_sigcontext_addr.
7842 * alpha-osf1-tdep.c: Include gdbcore.h.
7843 (alpha_osf1_sigcontext_addr): New function.
7844 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7845 alpha_osf1_sigcontext_addr.
7846 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7847 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7848
7849 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7850
7851 * stack.c (selected_frame_level):
7852 (select_frame): Do not set selected_frame_level.
7853 * frame.h (selected_frame_level): Delete declaration.
7854
7855 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7856
7857 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7858 convert_from_func_ptr-addr when AIX / PowerOpen.
7859
7860 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7861
7862 * valops.c (hand_function_call): Call
7863 generic_save_call_dummy_addr.
7864 * frame.h (generic_save_call_dummy_addr): Declare.
7865 * blockframe.c (struct dummy_frame): Add fields call_lo and
7866 call_hi.
7867 (generic_find_dummy_frame): Check for PC in range call_lo to
7868 call_hi instead of entry_point_address.
7869 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7870 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7871 (generic_save_call_dummy_addr): New function.
7872
7873 2002-04-24 David S. Miller <davem@redhat.com>
7874
7875 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7876 sparc_skip_prologue.
7877 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7878 information to find prologue when possible.
7879 (sparc_prologue_frameless_p): Call examine_prologue directly.
7880 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7881 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7882 second argument.
7883 (SKIP_PROLOGUE): Likewise.
7884
7885 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7886
7887 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7888 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7889 indicate that the condition it was testing is always true.
7890 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7891 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7892 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7893
7894 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7895
7896 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7897 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7898 tdep->jb_pc and tdep->jb_elt_size.
7899 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7900 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7901 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7902 * alpha-nat.c (get_longjmp_target): Remove.
7903 (JB_ELEMENT_SIZE): Ditto.
7904 (JB_PC): Ditto.
7905 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7906 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7907 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7908 to alpha_get_longjmp_target.
7909 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7910 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7911 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7912
7913 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7914
7915 * README: Update to GDB 5.2.
7916
7917 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7918
7919 * gdbarch.sh (LC_ALL): Set to `c'.
7920
7921 2002-04-25 Theodore A. Roth <troth@verinet.com>
7922
7923 * avr-tdep.c: Ran through gdb_indent.sh.
7924
7925 2002-04-25 Theodore A. Roth <troth@verinet.com>
7926
7927 * MAINTAINERS: Add myself as AVR maintainer.
7928 * NEWS: Note new target avr.
7929
7930 2002-04-25 Theodore A. Roth <troth@verinet.com>
7931
7932 * Makefile.in: Add support for AVR target.
7933 * configure.tgt: Add support for AVR target.
7934 * avr-tdep.c: New file
7935 * config/avr/avr.mt: New file.
7936
7937 2002-04-25 Theodore A. Roth <troth@verinet.com>
7938
7939 * MAINTAINERS: Add myself to write-after-approval.
7940
7941 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7942
7943 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7944 with fprintf_unfiltered (gdb_stderr,....
7945
7946 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7947
7948 Fix PR gdb/508.
7949 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7950
7951 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7952
7953 * p-exp.y: Also use new prev_lexptr variable
7954 to improve error reporting. Based on Michael Snyder
7955 2002-04-24 dated patch to c-exp.y.
7956
7957 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7958
7959 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7960 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7961 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7962 to 0.
7963 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7964 and struct value.
7965 (FUNCTION_START_OFFSET): Remove.
7966 (BREAKPOINT): Ditto.
7967
7968 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7971 * NEWS: Ditto.
7972
7973 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7974
7975 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7976 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7977 alpha_linux_pc_in_sigtramp.
7978 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7979 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7980 alpha_osf1_pc_in_sigtramp.
7981 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7982 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7983 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7984 alphafbsd_pc_in_sigtramp.
7985 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7986 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7987 alphanbsd_pc_in_sigtramp.
7988 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7989 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7990
7991 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7992
7993 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7994
7995 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7996
7997 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7998 alphanbsd-tdep.c.
7999 (alphanbsd-nat.o): New dependency list.
8000 (alphanbsd-tdep.o): Ditto.
8001 * NEWS: Note new native NetBSD/alpha configuration.
8002 * alphanbsd-nat.c: New file.
8003 * alphanbsd-tdep.c: Ditto.
8004 * configure.host (alpha*-*-netbsd*): New host.
8005 * configure.tgt (alpha*-*-netbsd*): New target.
8006 * config/alpha/nbsd.mh: New file.
8007 * config/alpha/nbsd.mt: Ditto.
8008 * config/alpha/nm-nbsd.h: Ditto.
8009 * config/alpha/tm-nbsd.h: Ditto.
8010
8011 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8012
8013 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8014 (alpha-osf1-tdep.o): New dependency list.
8015 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8016 and skip_sigtramp_frame members.
8017 * alpha-linux-tdep.c: Include gdbcore.h.
8018 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8019 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8020 * alpha-osf1-tdep.c: New file.
8021 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8022 alpha-osf1-dep.c.
8023 (alpha_frame_past_sigtramp_frame): New function.
8024 (alpha_dynamic_sigtramp_offset): Ditto.
8025 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8026 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8027 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8028 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8029 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8030 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8031 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8032 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8033 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8034 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8035 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8036 to find_solib_trampoline_target.
8037 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8038 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8039 (SKIP_TRAMPOLINE_CODE): Remove.
8040 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8041 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8042 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8043 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8044 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8045 (PROC_SIGTRAMP_MAGIC): Ditto.
8046 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8047 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8048 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8049 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8050 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8051
8052 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8053
8054 * NEWS: Note that Alpha targets are now multi-arch.
8055
8056 2002-04-24 Michael Snyder <msnyder@redhat.com>
8057
8058 * parser-defs.h (prev_lexptr): New external variable.
8059 * parse.c (parse_exp_1): Set prev_lexptr to null before
8060 calling the language-specific parser.
8061 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8062 (yyerror): Use prev_lexptr in error reporting.
8063
8064 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8065
8066 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8067 * gregset.h: If FILL_FPXREGSET is defined, provide
8068 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8069 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8070 is defined, call fill_fpxregset.
8071
8072 2002-04-24 Roland McGrath <roland@frob.com>
8073
8074 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8075 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8076 (supply_gregset, supply_fpregset): New functions.
8077
8078 * gnu-nat.c (gnu_find_memory_regions): New function.
8079 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8080 (gnu_xfer_memory): Add a cast.
8081
8082 2002-04-24 Michael Snyder <msnyder@redhat.com>
8083
8084 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8085 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8086 of argument regs ("str r(0123), [r11, #-nn"]).
8087 (arm_skip_prologue): Better handling for frameless functions.
8088 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8089 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8090
8091 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8092
8093 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8094 NUM_PSEUDO_REGS can be used.
8095
8096 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8097
8098 * arch-utils.h: Update copyright.
8099
8100 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8101 * gdbarch.h, gdbarch.c: Re-generate.
8102
8103 * inferior.h (IN_SIGTRAMP): Delete definition.
8104 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8105 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8106
8107 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8108 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8109 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8110 (find_proc_framesize): Ditto.
8111 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8112 (alpha_init_extra_frame_info): Ditto.
8113 * infrun.c (handle_inferior_event): Ditto.
8114 (handle_inferior_event): Ditto.
8115 (check_sigtramp2): Ditto.
8116 * blockframe.c (create_new_frame): Ditto.
8117 (get_prev_frame): Ditto.
8118 * ppc-linux-tdep.c: Update comments.
8119 * i386-linux-tdep.c: Update comments.
8120 * breakpoint.c (bpstat_what): Update comment.
8121
8122 2002-04-24 David S. Miller <davem@redhat.com>
8123
8124 * i960-tdep.c (register_in_window_p): New function.
8125 (i960_find_saved_register): Use it instead of
8126 REGISTER_IN_WINDOW_P.
8127 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8128
8129 * symtab.h (find_stab_function_addr): Kill extern.
8130 * minsyms.c (find_stab_function_addr): Remove from here...
8131 * dbxread.c: ... to here, and mark it static.
8132
8133 2002-04-20 David S. Miller <davem@redhat.com>
8134
8135 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8136 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8137
8138 2002-04-21 David S. Miller <davem@redhat.com>
8139
8140 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8141 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8142 (vx_write_register): Likewise.
8143
8144 2002-04-23 J. Brobecker <brobecker@gnat.com>
8145
8146 * source.c (is_regular_file): New function.
8147 (openp): Check wether file to open is a regular file
8148 to avoid opening directories.
8149
8150 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8151
8152 * findvar.c (extract_signed_integer): Cast printf argument
8153 to suppress format warning.
8154 (extract_unsigned_integer): Likewise.
8155 * infcmd.c (registers_info): Likewise.
8156 * top.c (get_prompt_1): Likewise.
8157 * valops.c (value_assign): Likewise.
8158 * valprint.c (print_decimal): Likewise.
8159
8160 2002-04-22 H.J. Lu (hjl@gnu.org)
8161
8162 * c-exp.y (typebase): Support
8163
8164 [long|long long|short] [signed|unsigned] [int|]
8165
8166 and
8167
8168 signed [long|long long|short] int
8169
8170 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8173 and vax-tdep.h.
8174 * vax-tdep.h: New file.
8175 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8176 Make several routines static.
8177 (vax_get_saved_register): New function.
8178 (vax_gdbarch_init): New function.
8179 (_initialize_vax_tdep): Register vax_gdbarch_init.
8180 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8181 Remove macros now under the control of gdbarch.
8182
8183 2002-04-22 Michael Snyder <msnyder@redhat.com>
8184
8185 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8186 Some whitespace and coding standards tweaks.
8187
8188 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8189
8190 * vax-tdep.c: Include regcache.h.
8191 (vax_call_dummy_words): New.
8192 (sizeof_vax_call_dummy_words): New.
8193 (vax_fix_call_dummy): New function.
8194 (vax_saved_pc_after_call): Ditto.
8195 * config/vax/tm-vax.h: Don't include regcache.h.
8196 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8197 (CALL_DUMMY): Remove.
8198 (CALL_DUMMY_WORDS): Define.
8199 (SIZEOF_CALL_DUMMY_WORDS): Define.
8200 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8201
8202 2002-04-18 Michael Snyder <msnyder@redhat.com>
8203
8204 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8205
8206 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8207
8208 * vax-tdep.c (vax_frame_chain): New function.
8209 (vax_push_dummy_frame): Ditto.
8210 (vax_pop_frame): Ditto.
8211 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8212 (FRAMELESS_FUNCTION_INVOCATION): Use
8213 generic_frameless_function_invocation_not.
8214 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8215 (POP_FRAME): Use vax_pop_frame.
8216
8217 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8218
8219 * vax-tdep.c (vax_store_struct_return): New function.
8220 (vax_extract_return_value): Ditto.
8221 (vax_store_return_value): Ditto.
8222 (vax_extract_struct_value_address): Ditto.
8223 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8224 vax_store_struct_return.
8225 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8226 (STORE_RETURN_VALUE): Use vax_store_return_value.
8227 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8228
8229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8230
8231 * vax-tdep.c (vax_frame_saved_pc): New function.
8232 (vax_frame_args_address_correct): Ditto.
8233 (vax_frame_args_address): Ditto.
8234 (vax_frame_locals_address): Ditto.
8235 (vax_frame_num_args): Move code to be in proximity to
8236 other frame-related functions.
8237 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8238 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8239 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8240 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8241 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8242
8243 2002-04-22 H.J. Lu (hjl@gnu.org)
8244
8245 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8246 includedir.
8247
8248 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8249
8250 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8251 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8252 (FRAME_INIT_SAVED_REGS): New macro.
8253
8254 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8255
8256 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8257
8258 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8259
8260 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8261 where needed.
8262 (fetch_osf_core_registers): Likewise.
8263 (supply_gregset): Likewise.
8264
8265 2002-04-22 J. Brobecker <brobecker@gnat.com>
8266
8267 * symfile.h (get_section_index): Define.
8268 * symfile.c (get_section_index): New function.
8269 * mdebugread.c (SC_IS_SBSS): New macro.
8270 (SC_IS_BSS): Return true for the scBss storage class only, as
8271 the scSBss storage class refers to the .sbss section.
8272 (parse_partial_symbols): Discard the symbols which associated
8273 section does not exist.
8274 Make sure to use the .sbss section index for symbols which
8275 storage class is scBss, rather than using the .bss section index.
8276
8277 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8278
8279 * vax-tdep.c: Update copyright years.
8280 (vax_register_name): New function.
8281 (vax_register_byte): Ditto.
8282 (vax_register_raw_size): Ditto.
8283 (vax_register_virtual_size): Ditto.
8284 (vax_register_virtual_type): Ditto.
8285 * config/vax/tm-vax.h: Update copyright years.
8286 (REGISTER_NAMES): Remove.
8287 (REGISTER_NAME): Define.
8288 (REGISTER_BYTE): Use vax_register_byte.
8289 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8290 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8291 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8292
8293 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8294
8295 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8296 declaration
8297 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8298
8299 2002-04-21 David S. Miller <davem@redhat.com>
8300
8301 * arch-utils.c (generic_prologue_frameless_p): Kill
8302 SKIP_PROLOGUE_FRAMELESS_P code.
8303 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8304 references.
8305 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8306 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8307 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8308 references.
8309 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8310 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8311 (sparc_gdbarch_init): Pass it to
8312 set_gdbarch_prologue_frameless_p.
8313
8314 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8315
8316 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8317 (alphabsd-nat.o): New dependency list.
8318
8319 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8320
8321 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8322 alphafbsd-tdep.c.
8323 (alpha-linux-tdep.o): New dependency list.
8324 (alphafbsd-tdep.o): Likewise.
8325
8326 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8327
8328 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8329 to here...
8330 * alpha-tdep.c: ...from here.
8331 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8332
8333 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8334
8335 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8336 prototype from here...
8337 * alpha-tdep.h: ...to here.
8338
8339 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8340
8341 * frame.h (selected_frame_level): Document as deprecated.
8342 (frame_relative_level): Declare.
8343 * stack.c (frame_relative_level): New function.
8344 (selected_frame_level): Document as deprecated.
8345 (select_frame): Do not set the selected_frame_level.
8346
8347 * stack.c (frame_info, record_selected_frame): Update.
8348 (frame_command, current_frame_command): Update.
8349 (up_silently_base, up_command, down_silently_base): Update.
8350 (down_command): Update.
8351 * inflow.c (kill_command): Update.
8352 * tracepoint.c (finish_tfind_command): Update.
8353 * corelow.c (core_open): Update.
8354 * thread.c (info_threads_command): Update.
8355 (do_captured_thread_select): Update.
8356 * infcmd.c (finish_command): Update.
8357 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8358
8359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8360
8361 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8362
8363 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8364
8365 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8366 type const.
8367
8368 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8369
8370 * alphafbsd-tdep.c: Update copyright years. Include
8371 alpha-tdep.h.
8372 (alphafbsd_use_struct_convention): Make static.
8373 (alphafbsd_init_abi): New function.
8374 (_initialize_alphafbsd_tdep): New function.
8375 * config/alpha/tm-fbsd.h: Update copyright years.
8376 (USE_STRUCT_CONVENTION): Remove.
8377
8378 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8379
8380 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8381 an Alpha ABI variant.
8382 (alpha_abi_handler_list): Declare.
8383 (alpha_gdbarch_register_os_abi): New function.
8384 (alpha_gdbarch_init): Give registered ABI variant handlers a
8385 chance to tweak the gdbarch once we have set up defaults.
8386 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8387
8388 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8389
8390 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8391 to standard_coerce_float_to_double.
8392 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8393
8394 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8395
8396 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8397 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8398 from gdbarch_tdep rather than a constant.
8399 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8400 the default text address for all Alpha Unix ABIs.
8401 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8402 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8403
8404 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8405
8406 * alpha-tdep.h: New file. Includes several Alpha target constants
8407 taken from...
8408 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8409 let gdbarch deal with.
8410 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8411 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8412 to dependency list.
8413 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8414 Alpha target register names.
8415 * alphabsd-nat.c: Likewise.
8416 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8417 Alpha target register names. Make serveral routines static.
8418 (alpha_get_saved_register): New function.
8419 (alpha_abi_names): New.
8420 (process_note_abi_tag_sections): New function.
8421 (get_elfosabi): New function.
8422 (alpha_gdbarch_init): New function.
8423 (alpha_dump_tdep): New function.
8424 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8425
8426 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8427
8428 * frame.c (find_saved_register): Delete #ifdef
8429 HAVE_REGISTER_WINDOWS code.
8430 * config/sparc/tm-sparc.h: Update comments.
8431 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8432
8433 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8434
8435 * i960-tdep.c (i960_find_saved_register): New function.
8436 (i960_get_saved_register): New function.
8437 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8438 (i960_get_saved_register): Declare.
8439 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8440
8441 2002-04-20 David S. Miller <davem@redhat.com>
8442
8443 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8444
8445 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8446
8447 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8448 instead of NUM_PSEUDO_REGS.
8449
8450 2002-04-20 David S. Miller <davem@redhat.com>
8451
8452 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8453 GDB_MULTI_ARCH_PARTIAL
8454 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8455 define, let tm-sp64.h do it.
8456
8457 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8458
8459 * frame.c (find_saved_register): Avoid a NULL pointer
8460 dereference and actually walk the frame list.
8461
8462 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8463
8464 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8465 sorted in most most-recent-used order. Document.
8466 * gdbarch.h, gdbarch.c: Regenerate.
8467
8468 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8469
8470 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8471 instead of ->prev.
8472 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8473 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8474 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8475 instead of ->prev.
8476
8477 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8478
8479 Fix PR gdb/471.
8480 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8481 (build_builtin_type_vec128): Ditto.
8482 (append_composite_type_field): Fix calculation of type length in
8483 union case.
8484
8485 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8486
8487 * config/djgpp/README: Update.
8488
8489 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8490 compiler warnings.
8491
8492 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8493
8494 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8495 (alpha_setup_arbitrary_frame): ...to this.
8496 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8497 for alpha_setup_arbitrary_frame.
8498
8499 2002-04-18 Andrew Cagney <cagney@redhat.com>
8500
8501 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8502 * gdbarch.h, gdbarch.c: Regenerate.
8503
8504 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8505 * target.h (memory_breakpoint_from_pc): Update declaration.
8506 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8507
8508 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8509 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8510 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8511 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8512 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8513 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8514 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8515 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8516 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8517 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8518 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8519 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8520
8521 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8522 const pointer.
8523 * monitor.c (monitor_insert_breakpoint): Ditto.
8524 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8525
8526 * config/mcore/tm-mcore.h: Update copyright.
8527 * mem-break.c: Ditto.
8528 * xstormy16-tdep.c: Ditto.
8529
8530 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8531
8532 * p-exp.y: Add precedence rule for '^' token.
8533 This removes the shift/reduce conflicts.
8534 Remove the comment concerning these shift/reduce conflicts.
8535
8536 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8537
8538 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8539 (registers_powerpc_nofp): New register set for processors
8540 without floating point unit.
8541
8542 2002-04-18 David S. Miller <davem@redhat.com>
8543
8544 * MAINTAINERS: Add myself to write-after-approval.
8545
8546 2002-04-17 Michael Snyder <msnyder@redhat.com>
8547
8548 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8549
8550 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8551
8552 * rs6000-tdep.c (frame_initial_stack_address): Use
8553 frame_register_read to read the alloca_reg.
8554
8555 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8556
8557 * frame.c (find_saved_register): Find saved registers in the next
8558 not prev frame.
8559 Fix PR gdb/365.
8560
8561 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8562
8563 * gdbarch.sh (LANG): Set to ``c''.
8564
8565 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8566
8567 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8568
8569 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8570
8571 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8572 Update copyright.
8573
8574 * hpread.c (hpread_get_lntt): Add declaration.
8575 Also fix PR gdb/391.
8576
8577 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8578
8579 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8580 * aclocal.m4, configure: Re-generate.
8581 Fix PR gdb/391.
8582
8583 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8584
8585 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8586 instead of tm_print_insn.
8587
8588 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8589
8590 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8591
8592 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8593
8594 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8595 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8596 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8597
8598 2002-04-12 Don Howard <dhoward@redhat.com>
8599
8600 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8601 max_user_call_depth.
8602 (init_cmd_lists): Initialize the new value;
8603 * cli/cli-script.c (execute_user_command): Limit the call depth of
8604 user defined commands. This avoids a core-dump when user commands
8605 are infinitly recursive.
8606
8607 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8608
8609 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8610 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8611 from tdep struct instead of DEFAULT_LR_SAVE.
8612 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8613 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8614 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8615
8616 2002-04-12 Michael Snyder <msnyder@redhat.com>
8617
8618 * Remote.c: Spelling fix.
8619 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8620 If no symbol found for "sbrk", try "_sbrk".
8621 (make_output_phdrs): Use bfd_section_name.
8622 (gcore_copy_callback): Use bfd_section_name.
8623 * eval.c: Indentation fix-ups.
8624 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8625 in case it gets applied to an address that is already
8626 in the instruction space.
8627 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8628 * symfile.c: Fix indentation, long lines.
8629 * source.c: White space fix-up.
8630
8631 2002-04-12 Andrew Cagney <cagney@redhat.com>
8632
8633 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8634 * frame.c (frame_register_read): New function. Return non-zero on
8635 success.
8636 (read_relative_register_raw_bytes_for_frame): Delete.
8637 (read_relative_register_raw_bytes): Delete.
8638 * frame.h (frame_register_read): Declare.
8639 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8640 * sh-tdep.c: Ditto.
8641 * infcmd.c (do_registers_info): Ditto.
8642 * hppa-tdep.c: Ditto.
8643 * rs6000-tdep.c: Ditto.
8644 * h8500-tdep.c: Ditto.
8645 * mips-tdep.c: Ditto.
8646 * h8300-tdep.c: Ditto.
8647 * z8k-tdep.c: Ditto.
8648
8649 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8650
8651 From Jimi X <jimix@watson.ibm.com>:
8652 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8653 64-bit SysV ABI.
8654
8655 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8656
8657 From Jimi X <jimix@watson.ibm.com>:
8658 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8659 bfd info.
8660
8661 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8662
8663 From Jimi X <jimix@watson.ibm.com>:
8664 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8665 register sets for these processor variants.
8666
8667 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8668
8669 * regformats/reg-ppc.dat: Support FPSCR.
8670
8671 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8672
8673 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8674 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8675 Add fpscr as an invalid/unfetchable register.
8676 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8677 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8678 (fill_fpregset): Add support for register fpscr.
8679 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8680 (fill_gregset): Account for the fact that register ``mq'' might
8681 not exist.
8682 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8683 (registers_power): Add fpscr to register set at slot 71.
8684 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8685 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8686
8687 2002-04-11 Michael Snyder <msnyder@redhat.com>
8688
8689 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8690 * configure: Regenerate.
8691 * config.in: Regenerate.
8692 * acconfig.h: Add define for _SYSCALL32.
8693 * core-sol2.c: Remove #define _SYSCALL32.
8694 * solib-legacy.c: Remove #define _SYSCALL32.
8695
8696 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8697
8698 * stack.c (select_frame): Cleanup internal error message, do not
8699 use %p.
8700
8701 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8702
8703 * stack.c (select_frame): Check that selected_frame and the
8704 specified level are as expected.
8705 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8706 Update copyright.
8707 * frame.h (struct frame_info): Add field `level'. Update
8708 copyright.
8709 Work-in-progress PR gdb/464.
8710
8711 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8712
8713 * maint.c (maint_print_section_info): Rename print_section_info.
8714 (print_bfd_section_info, print_objfile_section_info): Update.
8715 * inferior.h (struct gdbarch): Add opaque declaration.
8716 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8717 * gdbarch.h: Regenerate.
8718
8719 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8720
8721 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8722 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8723 (kernel_u_size): Added.
8724 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8725 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8726
8727 2002-04-04 Jim Ingham <jingham@apple.com>
8728
8729 * valarith.c (find_size_for_pointer_math): New function, either returns
8730 the size for a pointer's target, returns 1 for void *, or errors for
8731 incomplete types.
8732 (value_add, value_sub): use find_size_for_pointer_math.
8733
8734 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8735
8736 * linux-low.c (linux_look_up_symbols): New hook.
8737 (linux_target_ops): Add linux_look_up_symbols.
8738 * remote-utils.c (decode_address): New function.
8739 (look_up_one_symbol): New function.
8740 * server.c (handle_query): Call target look_up_symbols hook.
8741 * server.h (look_up_one_symbol): Add prototype.
8742 * target.h (struct target_ops): Add look_up_symbols hook.
8743
8744 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8745
8746 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8747 override FP_REGNUM with frame->fp. Update copyright.
8748 * parse.c (num_std_regs, std_regs): Delete.
8749 (target_map_name_to_register): Do not search std_regs. Update
8750 function description.
8751 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8752 declarations. Update copyright.
8753 Fix PR gdb/251.
8754
8755 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8756
8757 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8758 after the last symbol in a block.
8759
8760 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8761
8762 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8763 is non zero as a found symbol.
8764
8765 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8766
8767 * findvar.c: Include "builtin-regs.h".
8768 (value_of_register): Call value_of_builtin_reg when applicable.
8769 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8770 (target_map_name_to_register): Call
8771 builtin_reg_map_name_to_regnum.
8772 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8773 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8774 (builtin_regs_h): Define.
8775 (builtin-regs.o): New target.
8776 (findvar.o): Add $(builtin_regs_h).
8777 * builtin-regs.c, builtin-regs.h: New files.
8778 * std-regs.c: New file.
8779 Partial fix for PR gdb/251.
8780
8781 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8782
8783 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8784 it's no longer required.
8785
8786 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8787
8788 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8789
8790 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8791
8792 From Jimi X <jimix@watson.ibm.com>:
8793 * rs6000-tdep.c (rs6000_software_single_step): Use
8794 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8795 and size. Use target_insert_breakpoint() and
8796 target_remove_breakpoint() to insert and remove breakpoints
8797 instead of explicit memory reads and writes.
8798
8799 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8800
8801 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8802 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8803 ELF_OBJECT_FORMAT ifdef.
8804
8805 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8806
8807 From Jimi X <jimix@watson.ibm.com>:
8808 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8809
8810 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8811
8812 From Jimi X <jimix@watson.ibm.com>:
8813 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8814 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8815
8816 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8817
8818 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8819 s/asprintf/xasprintf/.
8820 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8821
8822 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8823
8824 I believe Jeff Law denies responsability for this one:
8825 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8826 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8827 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8828 Work-around for PR gdb/366.
8829
8830 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8831
8832 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8833 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8834 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8835
8836 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8837
8838 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8839 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8840 information.
8841
8842 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8843
8844 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8845 maintainer.
8846
8847 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8848
8849 * README (Reporting Bugs in GDB): Document the bug web page as the
8850 prefered way of submitting bugs.
8851 Fix PR gdb/402.
8852
8853 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8854
8855 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8856 -1. Update comment.
8857 * gdbarch.h, gdbarch.c: Re-generate.
8858
8859 2002-04-07 Andreas Schwab <schwab@suse.de>
8860
8861 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8862 buffer to regcache_collect.
8863
8864 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8865
8866 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8867 * gdbarch.c, gdbarch.h: Re-generate.
8868
8869 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8870
8871 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8872 declaration. Fix -Werror.
8873
8874 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8875
8876 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8877 * gdbarch.c: Regenerate.
8878
8879 2002-04-05 Michael Snyder <msnyder@redhat.com>
8880
8881 * breakpoint.c (clear_command): Rewrite middle section to
8882 combine two loops with identical control conditions.
8883 Add a cleanup to eliminate a memory leak.
8884 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8885
8886 2002-04-05 H.J. Lu (hjl@gnu.org)
8887
8888 * solib-svr4.c (bkpt_names): Add "__start".
8889
8890 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8891
8892 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8893 as test for 64 bit target.
8894
8895 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8896
8897 * h8500-tdep.c (h8500_write_fp): Delete function.
8898 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8899 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8900 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8902 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8903 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8904 (s390_write_fp):
8905 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8906 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8907 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8908 (d10v_write_fp): Delete function.
8909 * inferior.h (write_fp, generic_target_write_fp): Delete
8910 declarations.
8911 * regcache.c (generic_target_write_fp): Delete function.
8912 (write_fp): Delete function.
8913 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8914 * gdbarch.h, gdbarch.c: Regenerate.
8915 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8916 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8917 (sparc64_write_fp): Delete declaration.
8918 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8919 (h8500_write_fp): Delete declaration.
8920
8921 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8922
8923 * sparc-tdep.c (sparc64_write_fp): Delete.
8924 (sparc_push_dummy_frame): Replace write_fp call with code to store
8925 the FP directly.
8926 (sparc_gdbarch_init): Do not initialize write_fp.
8927
8928 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8929
8930 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8931 clause.
8932
8933 2002-03-29 Jim Blandy <jimb@redhat.com>
8934
8935 * stack.c (get_selected_block): Add new argument `addr_in_block',
8936 used to return the exact code address we used to select the block,
8937 not just the block.
8938 * blockframe.c (get_frame_block, get_current_block): Same.
8939 * frame.h (get_frame_block, get_current_block,
8940 get_selected_block): Update declarations.
8941 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8942 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8943
8944 2002-04-05 Michael Snyder <msnyder@redhat.com>
8945
8946 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8947 warning message.
8948
8949 2002-04-05 J. Brobecker <brobecker@gnat.com>
8950
8951 * utils.c (xfullpath): New function.
8952 * defs.h (xfullpath): Add declaration.
8953 * source.c (openp): Use xfullpath in place of gdb_realpath to
8954 avoid resolving the basename part of filenames when the
8955 associated file is a symbolic link. This fixes a potential
8956 inconsistency between the filenames known to GDB and the
8957 filenames it prints in the annotations.
8958 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8959 to be able to match a filename with either the real filename, or
8960 the name of any symbolic link to this file.
8961 (lookup_partial_symtab): Ditto.
8962
8963 2002-04-04 Michael Snyder <msnyder@redhat.com>
8964
8965 * breakpoint.c: Add support for hardware breakpoints in overlays.
8966 (overlay_events_enabled): New state variable.
8967 (insert_breakpoints): Use overlay_events_enabled to decide
8968 whether to attempt to set a breakpoint at the overlay load addr.
8969 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8970 (remove_breakpoint): Use overlay_events_enabled to decide
8971 whether breakpoints need to be removed from overlay load addr.
8972 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8973 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8974 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8975 disable_overlay_breakpoints): Update overlay_events_enabled.
8976
8977 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8978
8979 * dwarf2read.c (struct function_range): New.
8980 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8981 (check_cu_functions): New.
8982 (read_file_scope): Initialize global function lists.
8983 Call dwarf_decode_line after processing children.
8984 (read_func_scope): Add to global function list.
8985 (dwarf_decode_lines): Call check_cu_functions everywhere
8986 record_line is called. Call record_line with a linenumber
8987 of 0 to mark sequence ends.
8988
8989 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8990
8991 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8992 change sync with glibc.
8993
8994 2002-04-03 Jim Blandy <jimb@redhat.com>
8995
8996 * configure.in: Call AC_C_INLINE.
8997 * configure: Regenerated.
8998
8999 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9000
9001 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9002 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9003
9004 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9005
9006 * NEWS: Mention gcore support on FreeBSD/i386.
9007
9008 * fbsd-proc.c: New file.
9009 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9010 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9011
9012 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9013 while statement.
9014
9015 2002-03-29 Jim Blandy <jimb@redhat.com>
9016
9017 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9018 unescaped newlines in string literals, but newer ones don't. So
9019 escape them.
9020
9021 2002-03-26 Michael Snyder <msnyder@redhat.com>
9022 Andrew Cagney <cagney@redhat.com>
9023
9024 * cli/cli-dump.c: New file. Dump memory to file,
9025 restore file to memory.
9026 * cli/cli-dump.h: New file.
9027 * Makefile.in: Add rules, dependencies for cli-dump.o.
9028 * NEWS: Mention new commands.
9029
9030 2002-03-28 Michael Snyder <msnyder@redhat.com>
9031
9032 * symfile.c (symbol_file_add): Move test for null symbols to later.
9033
9034 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9035
9036 From veksler at il.ibm.com:
9037 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9038 the xstrduped original path.
9039 Fix PR gdb/417.
9040
9041 2002-03-27 Michael Snyder <msnyder@redhat.com>
9042
9043 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9044 * infcmd.c (_initialize_infcmd): Ditto.
9045 * language.c (_initialize_language): Ditto.
9046 * symfile.c (_initialize_symfile): Ditto.
9047 * top.c (_init_main): Ditto.
9048 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9049
9050 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9051
9052 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9053 vector registers handling.
9054 (skip_prologue): Handle new AltiVec instructions. Fill in new
9055 fields of frame data.
9056 (frame_get_saved_regs): Fill in information for AltiVec registers.
9057
9058 2002-03-27 Jim Blandy <jimb@redhat.com>
9059
9060 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9061 a function; leave this macro here to invoke that function.
9062 (symbol_init_mangled_name): Declaration for that function.
9063 * symtab.c (symbol_init_mangled_name): New function.
9064
9065 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9066
9067 * valarith.c: Replace strerror with safe_strerror.
9068 * tracepoint.c: Ditto.
9069 * lin-lwp.c: Ditto.
9070 * go32-nat.c: Ditto.
9071 * inflow.c: Ditto.
9072 * gnu-nat.c: Ditto.
9073
9074 2002-03-27 Andreas Schwab <schwab@suse.de>
9075
9076 * event-top.c (command_line_handler): Remove useless if.
9077
9078 2002-03-27 Andreas Jaeger <aj@suse.de>
9079
9080 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9081 comment.
9082
9083 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9084
9085 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9086 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9087 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9088 (x86_64_linux_dr_get_status, supply_gregset),
9089 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9090 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9091 (x86_64_register_info_table): Add.
9092 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9093 (x86_64_register_raw_size, x86_64_register_virtual_type),
9094 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9095 general x86_64_register_info_table.
9096 (i386_gdbarch_init): gdbarch_register_bytes is now set
9097 dynamicaly during initialization.
9098 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9099 * gdbserver/linux-x86-64-low.c: Ditto.
9100
9101 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * gdbserver/server.c (main): Call target_signal_to_host_p
9104 and target_signal_to_host on signals received from the remote.
9105 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9106 target_signal_from_host on signals sent to the remote.
9107 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9108 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9109
9110 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9111
9112 * signals/signals.c: Include "server.h" in gdbserver build.
9113 (target_signal_from_name): Don't use STREQ.
9114 (_initialize_signals): Likewise. Don't include function in
9115 gdbserver build.
9116
9117 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9118
9119 * signals.c: Moved to...
9120 * signals/signals.c: Here.
9121 * Makefile (signals.o): Update.
9122
9123 2002-03-26 Jeff Law (law@redhat.com)
9124
9125 * somread.c (som_symtab_read): Remove some commented out code and
9126 updated related comments. Do not set the minimal symbol table to
9127 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9128 in a dynamic executable.
9129 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9130 where we are unable to find the minimal symbol for the given
9131 PC value.
9132
9133 2002-03-25 Jeff Law (law@redhat.com)
9134
9135 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9136
9137 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9138
9139 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9140
9141 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9142
9143 * command.h: Update copyright.
9144 (struct cmd_list_element): Replace definition with opaque
9145 declaration.
9146 (enum cmd_types): Document that it will eventually be moved to
9147 cli/cli-decode.h
9148 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9149 (MALLOCED_REPLACEMENT): Delete macro.
9150 * Makefile.in (cli_decode_h): Add $(command_h).
9151 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9152 * top.c: Include "cli/cli-decode.h".
9153 * completer.c: Include "cli/cli-decode.h".
9154 * maint.c: Include "cli/cli-decode.h".
9155 * cli/cli-decode.h: Include "command.h".
9156 (enum command_class): Delete.
9157 (enum cmd_types): Comment out.
9158 (enum cmd_auto_boolean): Delete.
9159 (enum var_types): Delete.
9160
9161 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9162
9163 * cli/cli-decode.c: Include "gdb_assert.h".
9164 (add_set_or_show_cmd): New static function.
9165 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9166 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9167 all fields, such as func, from the set command.
9168
9169 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9170
9171 * MAINTAINERS (sh-elf): Change warning flag to -w.
9172
9173 2002-03-23 Andrew Cagney <cagney@redhat.com>
9174
9175 * defs.h (error): Add printf format attribute.
9176 * thread-db.c (thread_from_lwp): Fix error format string.
9177 * stack.c (parse_frame_specification): Ditto.
9178 * cli/cli-decode.c (undef_cmd_error): Ditto.
9179 * scm-lang.c (scm_lookup_name): Ditto.
9180 * tracepoint.c (trace_error): Ditto.
9181 * remote-utils.c (usage): Ditto.
9182 * remote.c (compare_sections_command): Ditto.
9183 Fix PR gdb/328.
9184
9185 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9186
9187 * gdbtypes.c (append_composite_type_field): New function.
9188 (init_composite_type): New function.
9189 * gdbtypes.h (append_composite_type_field): Declare.
9190 (init_composite_type): Ditto.
9191
9192 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9193
9194 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9195 function.
9196 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9197 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9198 structure returning convention for SYSV ABI case, but not
9199 for GNU/Linux, FreeBSD, or NetBSD.
9200
9201 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * symtab.h (lookup_block_symbol): Add mangled_name argument
9204 to prototype.
9205
9206 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9207 with new mangled_name argument.
9208 * linespec.c (decode_line_1): Likewise.
9209 * valops (value_of_this): Likewise.
9210 * symtab.c (lookup_transparent_type): Likewise.
9211 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9212 (lookup_symbol): If we are given a mangled name, pass it down
9213 to lookup_symbol_aux.
9214 (lookup_block_symbol): If we are given a mangled name to check
9215 against, only return symbols which match it.
9216
9217 2002-03-22 Christopher Faylor <cgf@redhat.com>
9218
9219 * win32-nat.c (child_create_inferior): Check for proper shell to use
9220 here, in case the user changes it on the fly.
9221 (_initialize_inftarg): Remove shell path considerations.
9222
9223 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9224
9225 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9226 for gdbarch_max_register_raw_size and max_register_virtual_size.
9227 Adjust copyright year.
9228
9229 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9232 in a function to cover the entire beginning of the function
9233 as well if it does not already.
9234
9235 2002-03-21 Tom Rix <trix@redhat.com>
9236
9237 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9238 (rs6000_ptrace64): Renamed from ptrace64.
9239
9240 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9241
9242 * gdbserver/remote-utils.c (remote_open): Don't call
9243 getprotobyname, we're all using TCP here so just use
9244 IPPROTO_TCP.
9245 * gdbserver/gdbreplay.c (remote_open): Ditto.
9246
9247 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9248
9249 * regcache.c (_initialize_regcache): No need to call
9250 build_regcache() at this time; it gets called whenever
9251 the gdbarch changes.
9252
9253 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9254
9255 * sparc-nat.c: Include sys/param.h where possible.
9256
9257 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9258
9259 Fix PR gdb/422.
9260 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9261 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9262 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9263 complex types.
9264 * stabsread.c (rs6000_builtin_type): Likewise.
9265 (read_sun_floating_type): Likewise.
9266
9267 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9268
9269 * stabsread.c (read_member_functions): Remove skip code for duplicate
9270 constructor/destructor methods. Use standard parsing for these
9271 methods and just do not chain them to the list of methods after
9272 parsing.
9273
9274 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9275
9276 * coffread.c: Remove redundant static declarations. Replace
9277 occurrences of `PTR' with `void *'.
9278 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9279 * top.h (quit_cover): Likewise.
9280 * defs.h (catch_errors): Likewise.
9281
9282 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9283
9284 * defs.h (XMALLOC): Define.
9285 * gdb-events.sh (XMALLOC): Delete macro.
9286 * gdb-events.c, gdb-events.h: Regenerate.
9287 * gdbarch.sh (XMALLOC): Delete macro.
9288 * gdbarch.c: Regenerate.
9289 * serial.c (XMALLOC): Delete macro.
9290 * ui-file.c (XMALLOC): Ditto.
9291 * ser-unix.h (XMALLOC): Ditto.
9292 * sh-tdep.c (XMALLOC): Ditto.
9293 * ui-out.c (XMALLOC): Ditto.
9294 * utils.c (XMALLOC): Ditto.
9295 * i386-tdep.c (XMALLOC): Ditto.
9296 * gdb-events.c (XMALLOC): Ditto.
9297 * d10v-tdep.c (XMALLOC): Ditto.
9298 * cli-out.c (XMALLOC): Ditto.
9299
9300 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9301 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9302 * ui-file.c, ui-out.c: Ditto.
9303
9304 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9305
9306 * command.h (struct cmd_list_element): Add field context.
9307 (set_cmd_context, get_cmd_context): Declare.
9308 * cli/cli-decode.h: Ditto.
9309 * cli/cli-decode.c (get_cmd_context): New function.
9310 (set_cmd_context): New function.
9311 (add_cmd): Initialize context.
9312 Part of fixing PR gdb/145 and PR gdb/146.
9313
9314 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9315
9316 * cli/cli-decode.c (cmd_type): New function.
9317 * command.h (cmd_type): Declare.
9318 * infrun.c (set_schedlock_func): Call function cmd_type.
9319 * kod.c (kod_set_os): Call cmd_type.
9320 * cris-tdep.c (cris_version_update): Use function cmd_type.
9321 (cris_mode_update, cris_abi_update): Ditto.
9322
9323 * command.h: (execute_cmd_post_hook): Declare.
9324 (execute_cmd_pre_hook): Declare.
9325 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9326 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9327 functions. Execute pre/post hook while ensuring that afterwords
9328 hook_in is cleared.
9329 * top.c (execute_command): Use execute_cmd_post_hook, and
9330 execute_cmd_pre_hook to execute pre/post commands.
9331 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9332 hook_stop_stub.
9333 (hook_stop_stub): Call execute_cmd_pre_hook.
9334
9335 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9336
9337 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9338 set'' and this leads to a core dump. Move xstrdup of
9339 operating_system to after check that it is not NULL.
9340
9341 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9342
9343 * kod.c (kod_set_os): Remove unnecessary check that
9344 ``command->type'' is set_cmd.
9345
9346 * valprint.c (set_input_radix): Use input_radix.
9347 (set_output_radix): Use output_radix.
9348 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9349 isn't reverted.
9350
9351 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9352
9353 * value.h (struct value): Delete field ``substring_addr''. Change
9354 aligner fields to force_doublest_align, force_longest_align,
9355 force_core_addr_align and force_pointer_aligh.
9356
9357 * value.h (struct value): Fix typo in above change.
9358
9359 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9360
9361 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9362 to fix internal_error from ``maintenance print architecture''.
9363
9364 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9365
9366 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9367 for gcc versions after gcc-2.8.1.
9368
9369 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9370
9371 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9372 for method resolution. Restore adjustment of ``this'' pointer after
9373 calling value_struct_elt, which was accidentally removed during the
9374 HP merge.
9375
9376 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9377
9378 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9379 value_of_register.
9380 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9381 get_saved_register.
9382 * value.h (value_of_register): Update.
9383
9384 2002-03-14 Richard Henderson <rth@redhat.com>
9385
9386 * configure.in: Detect declaration for canonicalize_file_name.
9387 * utils.c (canonicalize_file_name): Declare, if needed.
9388 (gdb_realpath): Prefer realpath if available and usable.
9389 * config.in, configure: Rebuild.
9390
9391 2002-03-14 Richard Henderson <rth@redhat.com>
9392
9393 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9394 a constant array bound.
9395
9396 * MAINTAINERS: Add myself to write-after-approval.
9397
9398 2002-03-14 Michael Snyder <msnyder@redhat.com>
9399
9400 * symfile.c (syms_from_objfile): Return immediately if no syms.
9401 (symbol_file_add): Return immediately if no syms.
9402 (find_sym_fns): Return immediately if no syms.
9403
9404 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9405
9406 * gdbserver/remote-util.c (remote_open): Print remote-side's
9407 IP address when remote debugging over the network.
9408
9409 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9410
9411 * config/sparc/fbsd.mh: Fix copyright.
9412 * config/sparc/fbsd.mt: Likewise.
9413
9414 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9415
9416 * MAINTAINERS: Fix typo in name of gdb warnings option.
9417 (x86-64): Fix formating so that this can be parsed by awk.
9418
9419 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9420
9421 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9422 * defs.h: Include "gdb/signals.h".
9423 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9424
9425 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9426
9427 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9428 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9429 from x86-64-tdep.h
9430
9431 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9432 Don Howard <dhoward@redhat.com>
9433
9434 * mips-tdep.c (ST0_FR): Define.
9435 (mips2_fp_compat): New function, temporarily disabled.
9436 (mips_read_fp_register_single): New function.
9437 (mips_read_fp_register_double): New function.
9438 (mips_print_register): Use them.
9439 (do_fp_register_row): Likewise.
9440
9441 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9442
9443 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9444 approval''.
9445
9446 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9447
9448 * stabsread.c (read_member_functions): Fix is_stub test for
9449 static member functions, improve comment.
9450
9451 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9452
9453 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9454 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9455 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9456 commands that set boolean values.
9457 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9458 (arm_rdi_resume): Always initialize PC.
9459 (arm_rdi_open): Don't use rslt as a boolean.
9460 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9461 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9462 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9463 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9464
9465 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9466
9467 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9468 * configure: Rebuilt.
9469
9470 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9471
9472 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9473 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9474
9475 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9476
9477 * cli/cli-decode.c (set_cmd_completer): New function.
9478 * command.h (set_cmd_completer): Declare.
9479 * cli/cli-decode.h (set_cmd_completer): Ditto.
9480
9481 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9482 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9483 * win32-nat.c (_initialize_inftarg): Ditto.
9484 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9485 * proc-api.c (_initialize_proc_api): Ditto.
9486 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9487 * source.c (_initialize_source): Ditto.
9488 * exec.c (_initialize_exec): Ditto.
9489 * solib.c (_initialize_solib): Ditto.
9490 * top.c (init_main): Ditto.
9491 * tracepoint.c (_initialize_tracepoint): Ditto.
9492 * symfile.c (_initialize_symfile): Ditto.
9493 * printcmd.c (_initialize_printcmd): Ditto.
9494 * infcmd.c (_initialize_infcmd): Ditto.
9495 * corefile.c (_initialize_core): Ditto.
9496
9497 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9498
9499 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9500
9501 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9502
9503 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9504
9505 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9506
9507 * NEWS: Update headings, 5.2 has branched.
9508
9509 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9510
9511 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9512 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9513 (register_addr, REGISTER_RAW_SIZE): Likewise.
9514 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9515 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9516
9517 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9518
9519 * MAINTAINERS (x86-64): Add myself.
9520 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9521 changed value_ptr -> struct value *
9522
9523 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9524
9525 * configure.host (sparc64-*-freebsd): Add.
9526 * configure.tgt: Likewise.
9527 * config/sparc/fbsd.mh: New file.
9528 * config/sparc/fbsd.mt: Likewise.
9529 * config/sparc/nm-fbsd.h: Likewise.
9530 * config/sparc/tm-fbsd.h: Likewise.
9531
9532 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9533
9534 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9535 regformats/reg-s390x.dat.
9536
9537 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9538
9539 * utils.c: Add FIXME explaining true/false problem.
9540
9541 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9542
9543 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9544
9545 2002-02-28 Michael Chastain <mec@shout.net>
9546
9547 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9548
9549 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9550
9551 * gdbserver/linux-s390-low.c: New file.
9552 * regformats/reg-s390.dat: New file.
9553 * regformats/reg-s390x.dat: New file.
9554 * gdbserver/configure.srv: Add S/390.
9555 * gdbserver/Makefile.in: Add S/390.
9556 * configure.tgt: Enable gdbserver for S/390.
9557
9558 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9559
9560 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9561 first line of the doc string for "info dos", except at the end of
9562 the sentence, since the short help stops at the first period.
9563
9564 2002-02-28 Jason Merrill <jason@redhat.com>
9565
9566 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9567
9568 2002-02-27 Fred Fish <fnf@redhat.com>
9569
9570 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9571 comment (dumy -> dummy).
9572
9573 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9574
9575 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9576
9577 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9578
9579 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9580
9581 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9582
9583 * gdbserver/acconfig.h: New file.
9584 * gdbserver/i387-fp.c: New file.
9585 * gdbserver/i387-fp.h: New file.
9586 * gdbserver/linux-x86-64.c: New file.
9587 * regformats/reg-x86-64.dat: New file.
9588 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9589 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9590 * gdbserver/configure.in: Add support for regsets.
9591 * gdbserver/config.in: Regenerate.
9592 * gdbserver/configure: Regenerate.
9593 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9594 * gdbserver/linux-low.h: New file.
9595 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9596 for regsets.
9597 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9598 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9599 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9600 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9601 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9602 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9603 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9604 "i387-fp.h". Add PTRACE_GETREGS and friends.
9605 * gdbserver/regcache.c (supply_register): New function.
9606 (supply_register_by_name): New function.
9607 (collect_register): New function.
9608 (collect_register_by_name): New function.
9609
9610 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9611
9612 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9613 (config.status): Add configure.srv dependency.
9614 (server_h): Add config.h dependency.
9615
9616 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9619 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9620 * gdbserver/configure.srv: Change i386-*-linux* to use
9621 reg-i386-linux.o.
9622
9623 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9624
9625 * x86-64-tdep.c: Re-indent. Update copyright date.
9626
9627 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9628
9629 From Michal Ludvig <mludvig@suse.cz>:
9630 * x86-64-tdep.c (value.h): Delete.
9631 (gdb_assert.h): Include.
9632 (x86_64_register_convert_to_virtual,
9633 x86_64_register_convert_to_raw ): Add check which lets only
9634 floating-point values to be converted.
9635 (value_push): Delete.
9636 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9637 (i386_gdbarch_init): Number of register_bytes fixed.
9638
9639 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9640
9641 * MAINTAINERS: Add x86-64 target.
9642
9643 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9644
9645 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9646 * osfsolib.c (solib_map_sections): Ditto.
9647 * irix5-nat.c (solib_map_sections): Ditto.
9648 * corelow.c (gdb_check_format): Ditto.
9649 * symfile.c (symfile_bfd_open): Ditto.
9650 * solib.c (solib_map_sections): Ditto.
9651 Fix PR gdb/354.
9652
9653 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9654
9655 * remote.c (_initialize_remote): By default, disable ``e'' and
9656 ``E'' step out-of-range packets.
9657
9658 2002-02-26 Andreas Schwab <schwab@suse.de>
9659
9660 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9661 m68k_linux_frame_saved_pc.
9662 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9663 in_sigtramp.
9664 (SIGCONTEXT_PC_OFFSET): Remove.
9665 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9666 m68k_linux_sigtramp_saved_pc): New functions.
9667 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9668 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9669 (UCONTEXT_PC_OFFSET): Define.
9670 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9671 non-RT and RT signal trampolines.
9672
9673 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9674
9675 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9676 (TARGET_NBPG, STACK_END_ADDR): Delete
9677 (VARIABLES_INSIDE_BLOCK): Delete.
9678
9679 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9680
9681 * utils.c (perror_with_name): Make string parameter constant.
9682 (print_sys_errmsg): Ditto.
9683 (query): Ditto.
9684 * defs.h (perror_with_name): Update.
9685 (print_sys_errmsg): Update.
9686 (query): Update.
9687
9688 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9689
9690 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9691 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9692
9693 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9694
9695 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9696 if it already matches the current architecture from the exec file.
9697 Include arch-utils.h for gdbarch_info_init prototype.
9698 * Makefile.in (rs6000-nat.o): Update dependencies.
9699
9700 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9701
9702 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9703 list of exported variables.
9704
9705 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9706
9707 * gdbserver/configure.srv: New file.
9708 * gdbserver/configure.in: Use configure.srv instead
9709 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9710 from it.
9711 * gdbserver/configure: Regenerated.
9712 * gdbserver/terminal.h: New file.
9713 * gdbserver/Makefile.in: Update for configure changes. Remove
9714 more unneeded include paths.
9715
9716 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9717
9718 From wiz at danbala:
9719 * config/sparc/tm-sp64.h: Fix grammar and typos.
9720 Fix PR gdb/287.
9721
9722 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9723
9724 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9725 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9726 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9727 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9728 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9729 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9730 * s390-tdep.c: Ditto.
9731 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9732 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9733 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9734 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9735 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9736 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9737 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9738 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9739 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9740 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9741 Fix PR gdb/378.
9742
9743 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9744
9745 * lin-thread.c: Delete file.
9746 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9747 to gdb_proc_service.h.
9748 * configure: Re-generate.
9749
9750 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9751 * serial.c (serial_open): Delete check for "ocd".
9752 Fix PR gdb/349.
9753
9754 * Makefile.in (linux-thread.o): Delete target.
9755 * linux-thread.c: Delete file.
9756
9757 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9758 renamed SH files to be consistent.
9759
9760 * symtab.c (sort_search_symbols): Use xfree.
9761
9762 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9763
9764 * arm-linux-tdep.c (arm_linux_init_abi): Register
9765 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9766 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9767 definition with undef, since we don't want the sysvr4 definition.
9768 (SKIP_TRAMPOLINE_CODE): Likewise.
9769
9770 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9771
9772 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9773
9774 * configure.in: (AC_CHECK_FUNCS) Added test for
9775 canonicalize_file_name Regenerated.
9776 * config.in, configure: Regenerated.
9777 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9778 defined use canonicalize_file_name.
9779
9780 2002-02-23 Michael Chastain <mec@shout.net>
9781
9782 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9783
9784 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9785
9786 * README: Remove references to cygnus.com.
9787 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9788 dot com'' form. Remove references to cygnus.com and sourceware.
9789
9790 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9791
9792 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9793 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9794 1003.1-2001 no longer allows "head -1".
9795 * gdb/Makefile.in (version.c): Likewise.
9796 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9797 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9798 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9799
9800 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9801
9802 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9803 * command.h (cmd_cfunc_eq): Declare.
9804 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9805
9806 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9807 ``struct cmd_list_element *''.
9808 * cli/cli-cmds.c (is_complete_command): Update. Use
9809 cmd_cfunc_eq.
9810 * top.c (execute_command): Pass the command to
9811 is_complete_command.
9812 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9813
9814 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9815
9816 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9817 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9818 architecture defines.
9819 * s390-tdep.c (s390_gdbarch_init): Likewise.
9820
9821 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9822
9823 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9824 (arm_linux_push_arguments): Likewise.
9825 (arm_linux_init_abi): Register them. Also register linux-specific
9826 call_dummy_words.
9827 (find_minsym_and_objfile): Use strcmp, not STREQ.
9828 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9829 (arm_linux_call_dummy_words): Delete declaration.
9830 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9831 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9832 declarations.
9833 (LOWEST_PC): Delete.
9834
9835 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9836
9837 * maint.c (print_section_info): Do not prepend `0x' to filepos
9838 output, it will be handled by local_hex_string_custom.
9839
9840 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9841
9842 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9843 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9844 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9845
9846 2002-02-22 Jim Blandy <jimb@redhat.com>
9847
9848 Indicate that the bcache functions don't change the strings
9849 they're passed.
9850 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9851 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9852
9853 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9854
9855 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9856
9857 2002-02-21 Christopher Faylor <cgf@redhat.com>
9858
9859 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9860 find the complete path to a loaded DLL.
9861
9862 2002-02-21 Fred Fish <fnf@redhat.com>
9863
9864 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9865 that marks the end of the range of a function, enter a line number
9866 entry that has a line number of zero and a PC offset that matches
9867 the end of the function. This starts a range of PC's for which no
9868 line number information is known.
9869 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9870 PC's for which no line number info is found (line number is zero)
9871 then we didn't find any valid line information.
9872 * symtab.h: Document use of zero line number entry.
9873
9874 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9875
9876 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9877 (have_ptrace_getvrregs): Define for run time checks.
9878 (gdb_vrregset_t): New type for Altivec register handling.
9879 (fetch_register, store_register): Fetch/store altivec register
9880 when needed.
9881 (fetch_altivec_register, store_altivec_register): New functions.
9882 (supply_vrregset, fill_vrregset): New functions.
9883 (fetch_altivec_registers, store_altivec_registers): New functions.
9884 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9885 registers as well.
9886
9887 2002-02-21 Jiri Smid <smid@suse.cz>
9888
9889 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9890
9891 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9892
9893 * Makefile.in (armnbsd-nat.o): Update dependencies.
9894 * armnbsd-nat.c (supply_gregset): New function. Common code to
9895 supply the integer register set.
9896 (supply_fparegset): New function. Similar for FPA registers.
9897 (fetch_regs, fetch_fp_regs): Use them.
9898 (fetch_core_registers): Likewise.
9899 (fetch_elfcore_registers): New function.
9900 (arm_netbsd_elfcore_fns): New core-file type specification.
9901 (_initialize_arm_netbsd_nat): Register it.
9902
9903 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9904
9905 * armnbsd-nat.c: Include gdbcore.h.
9906 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9907 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9908 'void' to declaration, to shut up ARI.
9909 (fetch_core_registers): Make static. Rewrite using supply_register.
9910 (arm_netbsd_core_fns): New core-file type specification.
9911 (_initialize_arm_netbsd_nat): New function.
9912
9913 2002-02-21 Christopher Faylor <cgf@redhat.com>
9914
9915 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9916 value.
9917
9918 2002-02-20 Christopher Faylor <cgf@redhat.com>
9919
9920 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9921 fails.
9922
9923 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * jv-exp.y (parse_number): Change type of implicit longs
9926 to builtin_type_uint64.
9927
9928 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9931 to be an integer instead of a `union wait'.
9932
9933 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * mips-linux-nat.c: Call the operating system GNU/Linux.
9936 * mips-linux-tdep.c: Likewise.
9937 * mips-tdep.c: Likewise.
9938
9939 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9940
9941 Fix PR gdb/265.
9942 * jv-exp.y (parse_number): Handle 64-bit integers.
9943
9944 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9947 AC_STDC_HEADERS to AC_HEADER_STDC.
9948 * gdbserver/configure: Regenerated.
9949
9950 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9951
9952 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9953 is defined.
9954 * sparc-tdep.c (get_longjmp_target): Likewise.
9955
9956 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9957
9958 * News: Add news about ARM and Multi-arch. Mention the new target
9959 arm*-*-netbsd*.
9960
9961 2002-02-19 Jim Blandy <jimb@redhat.com>
9962
9963 * stabsread.c (error_type_complaint): Improve error message.
9964
9965 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * gdbserver/README: Update documentation.
9968 * gdbserver/configure.in: Update configury to match documentation.
9969 * gdbserver/Makefile.in: Likewise.
9970 * gdbserver/configure: Regenerated.
9971 * gdbserver/aclocal.m4: New file, generated by aclocal.
9972 * gdbserver/config.in: New file, generated by autoheader.
9973
9974 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9975
9976 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9977 armnbsd-nat.c.
9978
9979 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9980
9981 * arm-tdep.h (enum arm_float_model): New enum.
9982 (struct gdbarch_tdep): Add fp_model.
9983 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9984 up floating-point conversions until we know the floating-point model
9985 in use by the inferior. Don't complain about being unable to
9986 determine the ABI of the inferior when we don't have one.
9987 (arm_extract_return_value): Support different floating-point models.
9988 (arm_store_return_value): Likewise.
9989 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9990 ARM_FLOAT_SOFT.
9991 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9992
9993 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9994
9995 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9996 of ``current_gdbarch''.
9997
9998 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9999
10000 * armnbsd-nat.c : ANSIfy all function declarations.
10001 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10002 (fetch_inferior_registers): Re-implement in terms of above.
10003 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10004 (store_inferior_registers): Re-implement in terms of above.
10005
10006 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10007
10008 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10009 kernel.
10010 * arm-linux-tdep.c: Likewise.
10011 * config/arm/tm-linux.h: Likewise.
10012
10013 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10014
10015 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10016 * config/arm/nbsd.mt (TM_FILE): Delete.
10017 * config/arm/tm-nbsd.h: Delete.
10018
10019 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10020
10021 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10022 Initialize CALL_DUMMY_LENGTH.
10023
10024 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10025
10026 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10027 function.
10028 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10029 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10030 defines one thing and that is incorrect for this port.
10031 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10032
10033 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10034
10035 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10036
10037 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10038
10039 * win32-nat.c (display_selector): New function. Displays information
10040 about the information returned by GetThreadSelectorEntry API function.
10041 (display_selectors): New function. Displays the infomation of
10042 the selector given as argument, or of CS, DS ans FS selectors
10043 if no argument is given.
10044 ( _initialize_inftarg): Add "w32" as info prefix command.
10045 Add "info w32 selector" as command calling display_selectors.
10046
10047 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10048
10049 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10050 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10051 if not defined.
10052
10053 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10054
10055 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10056
10057 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10058
10059 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10060 (arm_fix_call_dummy): Call it.
10061 (arm_call_dummy_breakpoint_offset): Delete.
10062 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10063 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10064
10065 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10066
10067 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10068 Default to func_frame_chain_valid.
10069 * gdbarch.h, gdbarch.c: Re-generate.
10070 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10071
10072 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10073
10074 * ppc-linux-nat.c: Update copyright.
10075 (fetch_register, store_register): Add tid parameter, don't compute
10076 tid here.
10077 (fetch_ppc_registers, store_ppc_registers): Add tid
10078 parameter. Pass it along to callees.
10079 (fetch_inferior_registers, store_inferior_registers): Compute tid
10080 here, and pass it to calleed functions.
10081 (fill_gregset, supply_fpregset): Clean up formatting.
10082
10083 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10084
10085 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10086 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10087
10088 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10089
10090 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10091 * gdbarch.c gdbarch.h: Regenerate.
10092 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10093 function.
10094 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10095 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10096 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10097
10098 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10099 * arm-tdep.c (arm_get_longjmp_target): New function.
10100 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10101 this to a positive value register arm_get_longjmp_target as the
10102 longjmp handler.
10103 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10104 (arm_linux_init_abi): Set up longjmp description in tdep.
10105 * armnbsd-nat.c (get_longjmp_target): Delete.
10106 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10107 description in tdep.
10108 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10109 (get_longjmp_target): Delete declaration.
10110 (GET_LONGJMP_TARGET): Delete.
10111 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10112 (GET_LONGJMP_TARGET): Delete.
10113
10114 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10115
10116 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10117 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10118 of ``current_gdbarch''.
10119
10120 2002-02-17 Tom Tromey <tromey@redhat.com>
10121
10122 * cli/cli-cmds.c (compare_strings): New function.
10123 (complete_command): Only print each unique item once.
10124 * completer.h (complete_line): Declare.
10125 * completer.c (complete_line): New function.
10126 (line_completion_function): Use it.
10127
10128 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10129
10130 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10131 * gdbarch.h, gdbarch.c: Re-generate.
10132
10133 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10134
10135 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10136
10137 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10138
10139 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10140 * valops.c (value_arg_coerce): Don't take the address of a reference
10141 to convert an argument to a reference.
10142
10143 2002-02-15 Christopher Faylor <cgf@redhat.com>
10144
10145 * win32-nat.c (get_image_name): New function.
10146 (handle_load_dll): Use get_image_name function.
10147 (get_child_debug_event): Avoid registering debug events until possibly
10148 execed process is started.
10149 (child_create_inferior): Allow invocation via shell so that command
10150 line redirection, etc. works ok.
10151 (_initialize_inftarg): Add new command: "set shell" to control whether
10152 a shell is used to start a process.
10153
10154 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10155
10156 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10157 instead of find_register_by_number.
10158 (cannot_store_register): Likewise.
10159
10160 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10161
10162 * dwarf2read.c: Replace fprintf (stderr, ...) by
10163 fprintf_unfiltered (gdb_stderr, ...).
10164
10165 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10166
10167 * gdbserver/gdbserver.1: Document --attach.
10168
10169 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10170
10171 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10172 descriptions.
10173 * arm-tdep.c (arm_default_arm_le_breakpoint)
10174 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10175 (arm_default_thumb_be_breakpoint): New. Initialize them from
10176 traditional breakpoint defines.
10177 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10178 (arm_gdbarch_init): Initialize new breakpoint variables.
10179 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10180 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10181 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10182 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10183 code out to ...
10184 (arm_netbsd_init_abi_common): ... here; new function.
10185 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10186 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10187 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10188 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10189
10190 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10191
10192 * arm-tdep.h (enum arm_abi): New enum.
10193 (struct gdbarch_tdep): New structure.
10194 (LOWEST_PC): Provide a default.
10195 (arm_gdbarch_register_os_abi): Declare new function.
10196 * arm-tdep.c (arm_abi_names): New array.
10197 (process_note_abi_tag_sections): New function.
10198 (get_elfosabi): New function.
10199 (arm_gdbarch_register_os_abi): New function.
10200 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10201 support for that ABI has been built in, then call the appropriate
10202 configuration routine. Use gdbarch_num_regs() to get the number
10203 of registers.
10204 (arm_dump_tdep): New function.
10205 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10206 place-holder functions.
10207 (_initialize_arm_tdep): Register them.
10208 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10209
10210 * armnbsd-tdep.c: New file.
10211 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10212 * config/arm/nbsd.mt (TDEPFILES): Add it.
10213 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10214
10215 * armnbsd-nat.c: Include regcache.h.
10216 * Makefile.in (armnbsd-nat.o): Update dependency list.
10217
10218 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10219
10220 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10221
10222 * gdbserver/Makefile.in: Fix typos in target rules.
10223
10224 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10225
10226 Fix part of PR gdb/267.
10227 * linespec.c (find_methods): Handle constructors specially for now.
10228
10229 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10230
10231 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10232 handling.
10233 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10234 standard_coerce_float_to_double().
10235
10236 2002-02-14 Christopher Faylor <cgf@redhat.com>
10237
10238 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10239 GDBINIT_FILENAME.
10240
10241 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10242
10243 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10244 find_variant_by_name, because it confuses the multiarch
10245 framework. Return NULL if there isn't an architecture with the
10246 user supplied name, instead of forcing a different one without
10247 recording the change with the multiarch machinery.
10248 (find_variant_by_name): Delete.
10249
10250 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10251
10252 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10253 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10254
10255 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10256
10257 * stack.c (print_frame_info_base): When calling
10258 print_frame_info_listing_hook, set current_source_symtab.
10259
10260 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10261
10262 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10263 and remove unused $(INCLUDE_DIR).
10264 Add regcache.c to OBS.
10265 Add generated register protocol files to clean target.
10266 Update dependencies for new objects, obsolete old target code.
10267
10268 * gdbserver/linux-low.c: Remove all platform-specific code to
10269 new files. Remove various dead code. Update to use regcache
10270 functionality.
10271 * gdbserver/remote-utils.c (fromhex): Add return statement
10272 to quiet warning.
10273 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10274 constant.
10275 (input_interrupt): Add integer parameter to match prototype
10276 of a signal handler.
10277 (outreg): Use register_data ().
10278 (prepare_resume_reply): Use gdbserver_expedite_regs.
10279 * gdbserver/server.c (main): Dynamically allocate own_buf because
10280 PBUFSIZ is no longer constant. Use registers_to_string () and
10281 registers_from_string ().
10282 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10283 for error (), fatal (), and warning (). Update definition of
10284 PBUFSIZ to use regcache functionality. Add include guard.
10285 * gdbserver/utils.c (fatal): Add missing ``const''.
10286 (warning): New function.
10287
10288 * regformats/regdat.sh: Include "regcache.h" in generated files.
10289 Provide init_registers () function.
10290 * regformats/regdef.h: Add prototype for set_register_cache ().
10291 Add include guard.
10292
10293 * gdbserver/linux-arm-low.c: New file.
10294 * gdbserver/linux-i386-low.c: New file.
10295 * gdbserver/linux-ia64-low.c: New file.
10296 * gdbserver/linux-m68k-low.c: New file.
10297 * gdbserver/linux-mips-low.c: New file.
10298 * gdbserver/linux-ppc-low.c: New file.
10299 * gdbserver/linux-sh-low.c: New file.
10300
10301 * gdbserver/regcache.c: New file.
10302 * gdbserver/regcache.h: New file.
10303
10304 * gdbserver/low-linux.c: Removed obsolete file.
10305
10306 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10307
10308 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10309 * config/i386/linux.mt: Likewise.
10310 * config/ia64/linux.mt: Likewise.
10311 * config/m68k/linux.mh: Likewise.
10312 * config/powerpc/linux.mh: Likewise.
10313 * config/mips/linux.mt: Likewise.
10314
10315 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10316
10317 * config/i386/i386lynx.mh: Mark gdbserver variables
10318 as (currently) obsolete for this target.
10319 * config/i386/nbsd.mt: Likewise.
10320 * config/i386/nbsdelf.mt: Likewise.
10321 * config/m32r/m32r.mt: Likewise.
10322 * config/m68k/m68klynx.mh: Likewise.
10323 * config/m68k/nbsd.mt: Likewise.
10324 * config/m68k/sun3os4.mh: Likewise.
10325 * config/mips/vr5000.mt: Likewise.
10326 * config/ns32k/nbsd.mt: Likewise.
10327 * config/pa/hppabsd.mh: Likewise.
10328 * config/pa/hppaosf.mh: Likewise.
10329 * config/powerpc/nbsd.mt: Likewise.
10330 * config/rs6000/rs6000lynx.mh: Likewise.
10331 * config/s390/s390.mt: Likewise.
10332 * config/s390/s390x.mt: Likewise.
10333 * config/sparc/sparclynx.mh: Likewise.
10334 * config/sparc/sun4os4.mh: Likewise.
10335 * config/i386/x86-64linux.mt: Likewise.
10336 * config/sparc/linux.mh: Likewise.
10337
10338 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * configure.tgt: Configure gdbserver only for known working
10341 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10342 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10343 SUBDIRS if it is configured. Update comment for ${nativefile}.
10344 * configure: Regenerated.
10345
10346 2002-02-13 Michael Snyder <msnyder@redhat.com>
10347
10348 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10349
10350 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10351 (default_gcore_mach): Just return 0, work around a problem in bfd.
10352 (default_gcore_target): OK to return NULL if exec_bfd is null.
10353 (make_mem_sec): Use a cast, avoid a warning.
10354
10355 * procfs.c (find_memory_regions_callback): Use a cast instead of
10356 calling host_pointer_to_address (which complains if
10357 sizeof (host pointer) != sizeof (target pointer)).
10358 (procfs_make_note_section): Avoid overflow in psargs string.
10359
10360 * procfs.c (procfs_make_note_section): Make the default
10361 implementation return an error.
10362
10363 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10364
10365 * procfs.c (procfs_make_note_section): Provide a default definition
10366 (for alpha-dec-osf4.0f). Fix typos.
10367
10368 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10369
10370 * linux-proc.c: Add include of regcache.h.
10371 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10372
10373 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10374
10375 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10376 * memattr.c (create_mem_region): Disallow useless empty region.
10377 Regions are half-open intervals, so allow [A..B) [B..C) as
10378 non-overlapping.
10379
10380 2002-02-13 Michael Chastain <mec@shout.net>
10381
10382 * defs.h: Kill CONST_PTR.
10383 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10384 * c-lang.c (c_builtin_types): Likewise.
10385 * ch-lang.c (ch_builtin_types): Likewise.
10386 * f-lang.c (f_builtin_types): Likewise.
10387 * language.c (unknown_builtin_types): Likewise.
10388 * m2-lang.c (m2_builtin_types): Likewise.
10389 * p-lang.c (pascal_builtin_types): Likewise.
10390 * scm-lang.c (c_builtin_types): Likewise.
10391
10392 2002-02-13 Keith Seitz <keiths@redhat.com>
10393
10394 * arm-tdep.h (arm_get_next_pc): Add declaration.
10395
10396 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10397
10398 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10399 with other related struct-returning functions.
10400 (arm_extract_struct_value_address): New function.
10401 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10402 initialize float_format, double_format and long_double_format as
10403 appropriate to the endianness of the target.
10404 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10405 (arm_use_struct_convention): Delete declaration.
10406 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10407
10408 2002-02-13 Keith Seitz <keiths@redhat.com>
10409
10410 * defs.h (core_addr_to_string_nz): New function.
10411
10412 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10413
10414 Apply missing bits of 2002-01-15 patch.
10415 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10416 (fill_fpregset): Use i387_fill_fsave.
10417
10418 2002-02-12 Keith Seitz <keiths@redhat.com>
10419
10420 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10421 (core_addr_to_string_nz): New function.
10422
10423 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10424
10425 * arm-linux-nat.c: Really include arm-tdep.h.
10426 * config/arm/tm-linux.h (struct type, struct value): Declare.
10427
10428 2002-02-11 Michael Snyder <msnyder@redhat.com>
10429
10430 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10431 (gcore section): Ifdef for Solaris and Unixware only.
10432 (procfs_do_thread_registers): Unixware needs one lwpstatus
10433 per thread (not one prstatus or pstatus).
10434 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10435 not over all gdb threads. For unixware, call elfcore_write_pstatus
10436 once before iterating over threads.
10437
10438 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10439
10440 * arm-tdep.h: New file.
10441 * arm-tdep.c: Include arm-tdep.h.
10442 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10443 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10444 (arm_print_float_info, arm_register_type, convert_to_extended)
10445 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10446 (arm_extract_return_value, arm_register_name): Make static.
10447 (arm_software_single_step): Similarly. Fix types in declaration.
10448 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10449 (arm_store_return_value, arm_store_struct_return): New functions.
10450 (arm_gdbarch_init): Register the above functions. Also register
10451 call_dummy_start_offset, sizeof_call_dummy_words,
10452 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10453 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10454 max_register_virtual_size, register_size. Set up
10455 prologue_cache.saved_regs here, rather than ...
10456 (_initialize_arm_tdep): ... here.
10457 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10458 declarations.
10459 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10460 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10461 (arm_print_float_info, arm_register_type, convert_to_extended)
10462 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10463 (arm_extract_return_value, arm_register_name): Delete declarations.
10464 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10465 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10466 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10467 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10468 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10469 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10470 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10471 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10472 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10473 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10474 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10475 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10476 interface.
10477 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10478 * remote-rdi.c remote-rdp.c: Likewise.
10479 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10480 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10481 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10482 definition.
10483
10484 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10485 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10486 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10487 from non-ARM_ prefixed definitions.
10488 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10489 all uses of above.
10490 * remote-rdi.c remote-rdp.c: Likewise.
10491 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10492
10493 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10494
10495 * arm-tdep.c (arm_frameless_function_invocation)
10496 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10497 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10498 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10499 (arm_pop_frame, arm_get_next_pc): Make static.
10500 (arm_gdbarch_init): Register above in gdbarch structure.
10501 (arm_read_fp): Renamed from arm_target_read_fp.
10502 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10503 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10504 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10505 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10506 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10507 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10508 (arm_pc_is_thumb_dummy): Delete declarations.
10509 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10510 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10511 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10512 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10513
10514 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10515
10516 * symtab.c (compare_search_syms): New function.
10517 (sort_search_symbols): New function.
10518 (search_symbols): Sort symbols after searching rather than
10519 before.
10520
10521 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10522
10523 * NEWS: Linux -> GNU/Linux.
10524
10525 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10526
10527 * gdbarch.sh: For for level one methods, disallow a definition
10528 when partially multi-arched. Add comments explaining rationale.
10529 * gdbarch.h: Re-generate.
10530
10531 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10532
10533 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10534 multi-arch partial.
10535
10536 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10537
10538 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10539 field. Use diff -u.
10540 * gdbarch.c: Re-generate.
10541
10542 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10543
10544 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10545 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10546 partial.
10547
10548 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10549
10550 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10551 multi-arch partial.
10552 (PUSH_ARGUMENTS): Switch to using predefault.
10553 * gdbarch.c: Regenerate.
10554
10555 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10556
10557 * valops.c (PUSH_ARGUMENTS): Delete definition.
10558 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10559 partial. Default to default_push_arguments.
10560 * gdbarch.h, gdbarch.c: Regenerate.
10561
10562 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10563
10564 * defs.h (throw_exception): Rename return_to_top_level. Update
10565 comments.
10566 * utils.c (error_stream, internal_verror, quit): Ditto.
10567 * top.c (throw_exception, catcher): Ditto.
10568 * sparclet-rom.c (sparclet_load): Ditto.
10569 * remote.c (interrupt_query, minitelnet): Ditto.
10570 * remote-sds.c (interrupt_query): Ditto.
10571 * remote-mips.c (mips_error, mips_kill): Ditto.
10572 * ocd.c (interrupt_query): Ditto.
10573 * monitor.c (monitor_interrupt_query): Ditto.
10574 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10575 * target.h: Update comment.
10576
10577 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10578
10579 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10580
10581 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10582 default_double_format.
10583 * gdbarch.h, gdbarch.c: Re-generate.
10584 * findvar.c (floatformat_unknown): Delete variable definition.
10585 * doublest.h (floatformat_unknown): Delete variable declaration.
10586
10587 2002-02-09 Jim Blandy <jimb@redhat.com>
10588
10589 * stabsread.c (read_type): Add code to parse Sun's syntax for
10590 prototyped function types.
10591
10592 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10593
10594 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10595 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10596
10597 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10598
10599 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10600 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10601 now _initialize_xcoffsolib gets called again and overrides the
10602 commands from solib.c in a native configuration.
10603
10604 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10605
10606 * doublest.c (store_typed_floating): Don't try to return a value.
10607 Fixes PR gdb/290.
10608
10609 2002-02-08 Jim Blandy <jimb@redhat.com>
10610
10611 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10612 is prototyped and has no arguments, print its argument list as
10613 `(void)'.
10614
10615 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10616
10617 * MAINTAINERS (write-after-approval): Add myself.
10618 (paper-trail): I've escaped!
10619
10620 2002-02-08 Christopher Faylor <cgf@redhat.com>
10621
10622 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10623 changes.
10624 (_initialize_check_for_gdb_ini): Ditto.
10625
10626 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10627
10628 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10629 xaprintf -> xasprintf.
10630
10631 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10632
10633 * win32-nat.c: Remove use of printf and sprintf functions.
10634
10635 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10636
10637 * arm-tdep.c (arm_frame_chain_valid): Make static.
10638 (arm_push_arguments): Likewise.
10639 (arm_gdbarch_init): New function.
10640 (_initialize_arm_tdep): Call it.
10641 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10642 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10643 (FRAME_CHAIN_VALID): Delete.
10644 (arm_frame_chain_valid): Delete declaration.
10645 (PUSH_ARGUMENTS): Delete.
10646 (arm_push_arguments): Delete declaration.
10647 (CALL_DUMMY_P): Delete.
10648
10649 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10650 Corinna Vinschen <vinschen@redhat.com>
10651
10652 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10653 on builtin float types.
10654
10655 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * utils.c: Include <curses.h> before "bfd.h".
10658 * tui/tui-hooks.c: Likewise.
10659 * tui/tui.c: Likewise.
10660 * tui/tuiCommand.c: Likewise.
10661 * tui/tuiData.c: Likewise.
10662 * tui/tuiDataWin.c: Likewise.
10663 * tui/tuiDisassem.c: Likewise.
10664 * tui/tuiGeneralWin.c: Likewise.
10665 * tui/tuiIO.c: Likewise.
10666 * tui/tuiLayout.c: Likewise.
10667 * tui/tuiRegs.c: Likewise.
10668 * tui/tuiSource.c: Likewise.
10669 * tui/tuiSourceWin.c: Likewise.
10670 * tui/tuiStack.c: Likewise.
10671 * tui/tuiWin.c: Likewise.
10672
10673 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10674
10675 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10676 to include space for pseudoregs as well. Update loops accordingly.
10677 (sh_fp_frame_init_saved_regs): Ditto.
10678 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10679
10680 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10681
10682 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10683 Add Richard Earnshaw to Arm maintainers.
10684
10685 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10686
10687 * defs.h (warning_begin): Delete declaration.
10688
10689 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10690 Delete macro.
10691
10692 2002-02-07 Michael Snyder <msnyder@redhat.com>
10693
10694 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10695 Logic bug, remove misplaced else.
10696
10697 2002-02-07 Klee Dienes <klee@apple.com>
10698
10699 * fork-inferior.c (fork_inferior): Add '!' to the list of
10700 characters that need to be quoted when building a string for the
10701 shell. Quote '!' specifically with a backslash, since CSH chokes
10702 when trying to evaluate "str!str".
10703
10704 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10705
10706 * rdi-share/host.h: Only provide a typedef for bool if it is not
10707 defined.
10708
10709 2002-02-04 Michael Snyder <msnyder@redhat.com>
10710
10711 * breakpoint.h (enum bptype): Add new overlay event bp type.
10712 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10713
10714 * breakpoint.c (create_internal_breakpoint): New function.
10715 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10716 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10717 (create_thread_event_breakpoint): Ditto.
10718 (create_solib_event_breakpoint): Ditto.
10719 (create_overlay_event_breakpoint): New function.
10720 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10721 (update_breakpoints_after_exec): Delete and re-initialize
10722 overlay event breakpoints after an exec. Add FIXME comment
10723 about longjmp breakpoint.
10724 (print_it_typical): Ignore overlay event breakpoints.
10725 (print_one_breakpoint): Ditto.
10726 (mention): Ditto.
10727 (bpstat_what): Do not stop for overlay event breakpoints.
10728 (delete_breakpoint): Don't delete overlay event breakpoints.
10729 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10730 (breakpoint_re_set): Re-create overlay event breakpoint.
10731
10732 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10733 (overlay_manual_command): Disable overlay breakpoints.
10734 (overlay_off_command): Disable overlay breakpoints.
10735
10736 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10737
10738 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10739 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10740 to here from config/tm-arm.h.
10741 (coff_sym_is_thumb): Make static.
10742 (arm_elf_make_msymbol_special): New function.
10743 (arm_coff_make_msymbol_special): New function.
10744 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10745 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10746 (coff_sym_is_thumb): Delete declaration.
10747 (arm_elf_make_msymbol_special): Declare.
10748 (arm_coff_make_msymbol_special): Declare.
10749 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10750 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10751
10752 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10753
10754 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10755
10756 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10757
10758 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10759 * gdbarch.c gdbarch.h: Regenerate.
10760 * arch-utils.c (default_print_float_info): New function.
10761 * arch-utils.h (default_print_float_info): Prototype it.
10762 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10763 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10764 (PRINT_FLOAT_INFO): Document it.
10765
10766 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10767 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10768 (PRINT_FLOAT_INFO): Define.
10769
10770 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10771
10772 * win32-nat.c (_initialize_check_for_gdb_ini):
10773 Add typecast to sprintf argument to suppress a warning.
10774
10775 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10776
10777 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10778 to allow easier handling of pass state.
10779 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10780 that gives exception name and address.
10781 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10782 and set last_sig value to ourstatus->value.sig. Some missing
10783 exceptions added.
10784 (child_continue): Correctly report continue_status.
10785 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10786 TARGET_SIGNAL_0 (new default value).
10787 (child_resume): consider sig argument passed to decide if
10788 the exception should be passed to debuggee or not.
10789
10790 2002-02-05 Michael Snyder <msnyder@redhat.com>
10791
10792 * regcache.c (fetch_register): Call target_fetch_register
10793 only if we don't call FETCH_PSEUDO_REGISTER.
10794 (store_register): Call target_store_register only if we
10795 don't call STORE_PSEUDO_REGISTER.
10796
10797 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10798
10799 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10800 ELF_MAKE_MSYMBOL_SPECIAL.
10801 * gdbarch.c, gdbarch.h: Regenerate.
10802 * arch-utils.c (default_make_msymbol_special): New function.
10803 * arch-utils.h (default_make_msymbol_special): Export.
10804 * elfread.c (elf_symtab_read): Compile use of
10805 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10806 multiarched.
10807 * coffread.c (coff_symtab_read): Ditto, for
10808 COFF_MAKE_MSYMBOL_SPECIAL.
10809
10810 2002-02-05 Jim Blandy <jimb@redhat.com>
10811
10812 * solib-svr4.c (svr4_truncate_ptr): New function.
10813 (svr4_relocate_section_addresses): Do the address arithmetic with
10814 the appropriate truncation for target addresses, even when
10815 CORE_ADDR is larger than a target address.
10816
10817 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10818
10819 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10820 to (int *).
10821
10822 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10823
10824 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10825 code.
10826
10827 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10828
10829 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10830
10831 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10832
10833 * gdbserver/linux-low.c: Remove unused include files.
10834
10835 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10836
10837 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10838 (read_inferior_memory): Use it.
10839 (write_inferior_memory): Likewise.
10840
10841 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10842
10843 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10844 grubbing through sys_errlist.
10845
10846 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10849
10850 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10851 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10852
10853 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10854
10855 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10856 (do_sfunc, set_cmd_sfunc): New functions.
10857
10858 * command.h (struct cmd_list_element): Add field func.
10859 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10860 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10861 * cli/cli-decode.h: Ditto.
10862
10863 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10864 (help_all, help_cmd_list): Ditto.
10865 (find_cmd, complete_on_cmdlist): Ditto.
10866 * top.c (execute_command): Ditto.
10867
10868 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10869 function.sfunc.
10870
10871 * infcmd.c (notice_args_read): Fix function signature.
10872
10873 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10874 * cli/cli-decode.c (add_set_cmd): Ditto.
10875 * utils.c (initialize_utils): Ditto.
10876 * maint.c (_initialize_maint_cmds): Ditto.
10877 * infrun.c (_initialize_infrun): Ditto.
10878 * demangle.c (_initialize_demangler): Ditto.
10879 * remote.c (add_packet_config_cmd): Ditto.
10880 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10881 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10882 * proc-api.c (_initialize_proc_api): Ditto.
10883 * kod.c (_initialize_kod): Ditto.
10884 * valprint.c (_initialize_valprint): Ditto.
10885 * top.c (init_main): Ditto.
10886 * infcmd.c (_initialize_infcmd): Ditto.
10887 * corefile.c (_initialize_core): Ditto.
10888 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10889 * arch-utils.c (initialize_current_architecture): Ditto.
10890 (_initialize_gdbarch_utils): Ditto.
10891 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10892
10893 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10894 * wince.c (_initialize_inftarg): Ditto.
10895 * symfile.c (_initialize_symfile): Ditto.
10896 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10897 * language.c (_initialize_language): Ditto.
10898 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10899
10900 2002-02-04 Michael Snyder <msnyder@redhat.com>
10901
10902 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10903
10904 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10907 Add rules for building the register data files.
10908
10909 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * regformats/regdat.sh: Add braces to the definition of
10912 expedite_regs_${arch}.
10913
10914 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10915
10916 * regformats/regdef.h (struct reg): Add comment describing the
10917 requirements for offset and size fields.
10918
10919 2002-02-04 Andreas Schwab <schwab@suse.de>
10920
10921 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10922 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10923
10924 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10925
10926 * gdbarch.sh (copyright): Update years in generated header.
10927 (SMASH_TEXT_ADDRESS): Add rule.
10928 * gdbarch.h, gdbarch.c: Re-generate.
10929 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10930 * dbxread.c: Likewise.
10931 * dwarfread.c: Likewise.
10932 * elfread.c: Likewise.
10933 * somread.c: Likewise.
10934
10935 * arm-tdep.c (arm_smash_text_address): New function.
10936 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10937
10938 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10939
10940 Add support for hardware watchpoints on win32 native.
10941 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10942 CONTEXT_DEBUG_REGISTERS.
10943 (dr variable): New variable. Static array containing a local copy
10944 of debug registers.
10945 (debug_registers_changed): New variable. Reflects when debug registers
10946 are changed and need to be written to inferior.
10947 (debug_registers_used): New variable. Reflects when any debug register
10948 was set, used when new threads are created.
10949 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10950 i386-nat code.
10951 (thread_rec): Set dr array if id is the thread of current_event .
10952 (child_continue, child_resume): Change the debug registers for all
10953 threads if debug_registers_changed.
10954 (child_add_thread): Change the debug registers if debug_registers_used.
10955 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10956 Link nm.h to new nm-cygwin.h file.
10957 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10958 of hardware registers.
10959
10960 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10961
10962 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10963 Restore behavour broken by 2002-01-20 Andrew Cagney
10964 <ac131313@redhat.com> IEEE_FLOAT removal.
10965
10966 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10967
10968 * c-valprint.c (c_val_print): Pass a proper valaddr to
10969 cp_print_class_method.
10970 * valops.c (search_struct_method): If there is only one method
10971 and args is NULL, return that method.
10972
10973 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10974
10975 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10976 accessing tag_name directly.
10977
10978 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10979
10980 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10981 of accessing tag_name directly.
10982
10983 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10984
10985 PR gdb/280
10986 * gdbtypes.c (replace_type): New function.
10987 * gdbtypes.h (replace_type): Add prototype.
10988 * stabsread.c (read_type): Use replace_type.
10989
10990 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10991
10992 * Makefile.in (memattr.o): Add missing dependencies rule.
10993
10994 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10995
10996 * breakpoint.c (break_at_finish_command): Really export.
10997 (break_at_finish_at_depth_command): Ditto.
10998 (tbreak_at_finish_command): Ditto.
10999 * hppa-tdep.c: Include completer.h.
11000 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11001 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11002
11003 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11004
11005 * utils.c (do_write): New function.
11006 (error_stream): Rewrite combining the code from error_begin and
11007 verror.
11008 (verror): Rewrite using error_stream.
11009 (error_begin): Delete function.
11010
11011 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11012
11013 * utils.c (error_begin): Make static.
11014 * defs.h (error_begin): Delete declaration.
11015
11016 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11017 (decode_line_1): Use cplusplus_error instead of error_begin,
11018 cplusplus_hint and return_to_top_level.
11019 * coffread.c (coff_symfile_read): Use error instead of error_begin
11020 and return_to_top_level.
11021 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11022
11023 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11024
11025 * language.h (type_error, range_error): Make string parameter
11026 constant.
11027 * language.c (warning_pre_print): Delete extern declaration.
11028 * dwarfread.c (warning_pre_print): Ditto.
11029 * language.c (type_error, range_error): Rewrite to use verror and
11030 vwarning instead of warning_begin.
11031
11032 2002-02-01 Michael Snyder <msnyder@redhat.com>
11033
11034 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11035 (set_ignore_count): Move misplaced comment back where it belongs.
11036
11037 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11038
11039 * command.h (NO_FUNCTION): Delete macro.
11040 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11041 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11042 * tracepoint.c (_initialize_tracepoint): Ditto.
11043 * cli/cli-decode.c (add_set_cmd): Ditto.
11044 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11045
11046 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11047
11048 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11049 Update ``this'' pointer when calling virtual functions.
11050
11051 2002-02-01 Michael Snyder <msnyder@redhat.com>
11052
11053 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11054 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11055
11056 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11057
11058 * regformats/reg-arm.dat: New file.
11059 * regformats/reg-i386.dat: New file.
11060 * regformats/reg-ia64.dat: New file.
11061 * regformats/reg-m68k.dat: New file.
11062 * regformats/reg-mips.dat: New file.
11063 * regformats/reg-ppc.dat: New file.
11064 * regformats/reg-sh.dat: New file.
11065 * regformats/regdef.h: New file.
11066 * regformats/regdat.sh: New file.
11067
11068 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11069
11070 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11071 (arm_frame_args_address, arm_frame_locals_address): New functions.
11072 (arm_frame_num_args): New function.
11073 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11074 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11075 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11076
11077 2002-01-31 Michael Snyder <msnyder@redhat.com>
11078
11079 * breakpoint.c (break_at_finish_command): Export.
11080 (break_at_finish_at_depth_command): Export.
11081 (tbreak_at_finish_command): Export.
11082 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11083 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11084 "txbreak" commands, which are HPPA specific.
11085
11086 * printcmd.c (disassemble_command): Remove an ancient
11087 artifact of an old merge.
11088
11089 * symfile.h (enum overlay_debugging_state):
11090 Define enum constant values for overlay mode.
11091 * symfile.c (overlay_debugging): Use enums instead of literals.
11092 (overlay_is_mapped, overlay_auto_command,
11093 overlay_manual_command): Ditto.
11094
11095 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11096 breakpoint_here_p, breakpoint_inserted_here_p,
11097 breakpoint_thread_match, bpstat_stop_status,
11098 describe_other_breakpoints, check_duplicates, clear_command):
11099 Coding standard fixes.
11100
11101 * target.c (target_xfer_memory): Add spaces, coding standard.
11102 (do_xfer_memory): Add missing line to trust-readonly
11103 code: check bfd SEC_READONLY flag for section.
11104
11105 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11106
11107 * PROBLEMS: Fix typo, 5.1->5.1.1.
11108
11109 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11110
11111 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11112 data symbols, since we search based on textlow and texthigh.
11113 (find_pc_sect_symtab): Likewise.
11114
11115 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11116
11117 * defs.h (vwarning): Declare.
11118 * utils.c (vwarning): New function.
11119 (warning): Call vwarning.
11120 (warning_begin): Delete function.
11121
11122 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11123 the warning message.
11124 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11125 warning_begin.
11126
11127 2002-01-30 Michael Snyder <msnyder@redhat.com>
11128
11129 * NEWS: Mention "set trust-readonly-sections" command.
11130 Mention generate-core-file command.
11131
11132 2002-01-15 Michael Snyder <msnyder@redhat.com>
11133
11134 * target.c: New command, "set trust-readonly-sections on".
11135 (do_xfer_memory): Honor the suggestion to trust readonly sections
11136 by reading them from the object file instead of from the target.
11137 (initialize_targets): Register command "set trust-readonly-sections".
11138
11139 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11140
11141 * parse.c (target_map_name_to_register): Simplify, search regs and
11142 pseudo-regs using a single loop.
11143
11144 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11145
11146 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11147
11148 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11149
11150 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11151 * config/i386/i386v42mp.mh: Add i387-nat.o .
11152 * i386v4-nat.c: Include i387-nat.h.
11153 (supply_fpregset): Use i387_supply_fsave.
11154 (fill_fpregset): Use i387_fill_fsave.
11155
11156 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11157
11158 * arm-tdep.c (arm_call_dummy_words): Define.
11159 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11160 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11161 (CALL_DUMMY_WORDS): Define.
11162 (arm_call_dummy_words): Declare.
11163 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11164 (arm_linux_call_dummy_words): Declare.
11165
11166 2002-01-30 Andreas Schwab <schwab@suse.de>
11167
11168 * m68klinux-nat.c: Fix last change to use regcache_collect
11169 instead of referencing registers[] directly.
11170
11171 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11172
11173 * parse.c (target_map_name_to_register): Delete code wrapped in
11174 #ifdef REGISTER_NAME_ALIAS_HOOK.
11175
11176 2002-01-28 Michael Snyder <msnyder@redhat.com>
11177
11178 * regcache.c (legacy_read_register_gen): Need to be able to
11179 read pseudo-register as well as real register.
11180 (legacy_write_register_gen): Ditto.
11181
11182 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11183
11184 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11185 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11186 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11187 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11188 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11189 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11190 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11191 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11192 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11193 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11194 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11195 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11196 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11197 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11198 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11199 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11200 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11201 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11202 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11203 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11204
11205 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11206
11207 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11208 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11209 (initialize_current_architecture): Update target_byte_order using
11210 information from BFD.
11211 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11212 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11213
11214 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11215
11216 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11217 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11218
11219 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11220 #ifdef INVALID_FLOAT.
11221 * infcmd.c (do_registers_info): Ditto.
11222 * values.c (unpack_double): Ditto. Add comment.
11223
11224 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11225 already commented out.
11226
11227 2002-01-26 Andreas Schwab <schwab@suse.de>
11228
11229 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11230 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11231 registers and add support for PTRACE_GETREGS.
11232
11233 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11234
11235 GDB 5.1.1 released from 5.1 branch.
11236 * NEWS: Add 5.1.1 news.
11237 * README: Sync with 5.1 branch.
11238
11239 2002-01-23 Fred Fish <fnf@redhat.com>
11240
11241 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11242 stabstring on initial malloc. Reallocing will copy it for us,
11243 if necessary.
11244
11245 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11246
11247 * Makefile.in (hpread_h): Delete.
11248 (HFILES_NO_SRCDIR): Remove hpread.h.
11249 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11250 (hpread.o): Update dependencies.
11251 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11252
11253 * hp-psymtab-read.c: Remove file.
11254 * hp-symtab-read.c: Remove file.
11255 * hpread.h: Remove file.
11256
11257 * hpread.c: Merge all contents of hp-psymtab-read.c,
11258 hp-symtab-read.c and hpread.h into this file, as it was prior to
11259 January 1999.
11260
11261 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11262 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11263 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11264 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11265
11266 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11267
11268 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11269 fill_gregset): Call gdbarch_tdep() just once, assign result to
11270 variable and use that, instead of calling the function several
11271 times.
11272
11273 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11274
11275 * configure.host: Accept sparcv9 as alias for sparc64.
11276 * configure.tgt: Likewise.
11277
11278 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11279
11280 * solib-aix5.c (build_so_list_from_mapfile)
11281 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11282 arguments is not reversed.
11283 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11284 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11285
11286 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11287
11288 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11289 modified version of obsolete sh_fetch_pseudo_register.
11290 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11291 (sh4_register_read): New function.
11292 (sh_pseudo_register_write): New function. Renamed and modified
11293 version of obsolete sh_store_pseudo_register.
11294 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11295 (sh4_register_write): New function.
11296 (sh_gdbarch_init): Remove setting of gdbarch function
11297 fetch_pseudo_register and store_pseudo_register. Remove setting of
11298 register_convert_to_raw, register_convert_to_virtual,
11299 register_convertible.
11300 (sh_sh4_register_convertible): Delete. No longer needed. All is
11301 taken care by architecture specific functions
11302 register_read/register_write.
11303 (sh_sh4_register_convert_to_virtual): Make static.
11304 (sh_sh4_register_convert_to_raw): Ditto.
11305
11306 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11307
11308 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11309 (floatformat_is_nan, floatformat_mantissa): Ditto.
11310
11311 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11312 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11313 builtin_type_ieee_double_little,
11314 builtin_type_ieee_double_littlebyte_bigword,
11315 builtin_type_m68881_ext, builtin_type_i960_ext,
11316 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11317 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11318 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11319 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11320
11321 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11322
11323 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11324 parameter. Set frameless flag if it exists and depended of
11325 whether the scanned function is frameless or not.
11326 (xstormy16_skip_prologue): If function is frameless, return
11327 result of xstormy16_scan_prologue().
11328 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11329 call.
11330
11331 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11332
11333 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11334 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11335 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11336 sh_sh4_register_byte, sh_sh4_register_raw_size,
11337 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11338 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11339 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11340 sh_store_pseudo_register, sh_do_pseudo_register): Call
11341 gdbarch_tdep() just once, assign result to variable and use that,
11342 instead of calling the function several times.
11343
11344 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11345
11346 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11347 macros instead of LAST_FPU_CTRL_REGNUM.
11348 (store_register): Likewise.
11349
11350 2002-01-21 Jim Blandy <jimb@redhat.com>
11351
11352 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11353 is up-to-date before running the program, not just when a program
11354 exits.
11355
11356 2002-01-21 Fred Fish <fnf@redhat.com>
11357
11358 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11359 when we have found all instructions we are looking for.
11360
11361 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11362
11363 * arm-tdep.c (arm_register_name): New function.
11364 (arm_registers_names): Make static.
11365 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11366 (arm_register_name): Declare.
11367 (REGISTER_NAME): Use it.
11368
11369 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11370 Kevin Buettner <kevinb@redhat.com>
11371
11372 Convert arm targets to new FRAME interface.
11373 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11374 (arm_frame_find_save_regs): Delete.
11375 (arm_frame_init_saved_regs): New.
11376 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11377 Allocate extra_info as required. Convert all uses of fsr.regs
11378 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11379 to use extra_info.
11380 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11381 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11382 (check_prologue_cache, save_prologue_cache): Likewise.
11383 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11384 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11385 (FRAME_FIND_SAVED_REGS): Delete.
11386 (arm_frame_find_saved_regs): Delete prototype.
11387 (arm_frame_init_saved_regs): New prototype.
11388 (FRAME_INIT_SAVED_REGS): Define.
11389
11390 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11391
11392 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11393
11394 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11395
11396 From Jeff Law <law@redhat.com>:
11397 * infttrace.c: Include <sys/pstat.h>.
11398 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11399 exec file if the ttrace equivalent fails.
11400
11401 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11402
11403 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11404 (closeLogFile): Ditto.
11405
11406 2002-01-20 Michael Chastain <mec@shout.net>
11407
11408 * top.c (print_gdb_version): Bump copyright year to 2002.
11409
11410 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11411
11412 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11413 Zannoni and Eli Zaretskii.
11414
11415 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11416
11417 * buildsym.c: Update copyright years.
11418 * c-typeprint.c: Likewise.
11419 * dwarf2read.c: Likewise.
11420 * f-typeprint.c: Likewise.
11421 * gdbtypes.c: Likewise.
11422 * gdbtypes.h: Likewise.
11423 * hp-symtab-read.c: Likewise.
11424 * hpread.c: Likewise.
11425 * mdebugread.c: Likewise.
11426 * p-typeprint.c: Likewise.
11427
11428 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11429
11430 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11431 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11432 byte-order selectable.
11433 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11434 * arch-utils.c: Ditto.
11435 (set_endian): Ditto.
11436 (set_endian_from_file): Ditto.
11437 * gdbserver/low-sim.c (create_inferior): Ditto.
11438 * gdbarch.sh: Ditto.
11439 * gdbarch.h: Re-generate.
11440 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11441 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11442 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11443 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11444 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11445 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11446 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11447 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11448 macro definition.
11449 * config/mips/tm-wince.h: Remove #undef of macro
11450 TARGET_BYTE_ORDER_SELECTABLE.
11451 * config/sh/tm-wince.h: Ditto.
11452
11453 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11454
11455 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11456 member function fields. Add accessor macro
11457 TYPE_FN_FIELD_ARTIFICIAL.
11458 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11459 * c-typeprint.c (c_type_print_base): Skip artificial member
11460 functions.
11461
11462 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11463
11464 * f-typeprint.c: Delete unused function f_type_print_args.
11465 * p-typeprint.c: Delete unused function pascal_type_print_args.
11466
11467 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11468
11469 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11470 comment. Add ``artificial'' to ``union field_location''.
11471
11472 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11473
11474 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11475 * mdebugread.c (parse_symbol): Likewise.
11476 * stabsread.c (define_symbol): Likewise.
11477 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11478 initializing TYPE_FIELD_BITPOS to n (obsolete).
11479 (hpread_doc_function_type): Likewise.
11480 * hpread.c (hpread_function_type): Likewise.
11481
11482 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11483
11484 * configure.in (host_makefile_frag): Only require a host makefile
11485 fragment when a native build.
11486 * configure: Re-generate.
11487
11488 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11489
11490 * doublest.h (floatformat_from_type): Declare.
11491 * doublest.c (floatformat_from_type): New function.
11492 (convert_typed_floating): Use.
11493
11494 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11495 call to function floatformat_from_type.
11496
11497 * gdbarch.sh (IEEE_FLOAT): Delete.
11498 * gdbarch.h, gdbarch.c: Re-generate.
11499 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11500 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11501 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11502 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11503 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11504 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11505 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11506 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11507 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11508 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11509 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11510 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11511
11512 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11513 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11514 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11515 * sh-tdep.c (sh_gdbarch_init): Ditto.
11516 * mips-tdep.c (mips_gdbarch_init): Ditto.
11517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11518 * cris-tdep.c (cris_gdbarch_init): Ditto.
11519
11520 2002-01-20 Jiri Smid <smid@suse.cz>
11521
11522 * configure.host, configure.tgt: Support x86-64.
11523 * NEWS: Note new target x86-64.
11524
11525 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11526 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11527 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11528 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11529 x86-64-linux-nat.o): Fix dependencies.
11530
11531 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11532
11533 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11534 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11535 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11536 * config/sparc/xm-sun4os4.h: Delete file.
11537 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11538
11539 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11540
11541 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11542 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11543 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11544 * config/i386/i386lynx.mh (XM_FILE): Delete.
11545 * config/rs6000/xm-rs6000ly.h: Delete file.
11546 * config/sparc/xm-sparclynx.h: Delete file.
11547 * config/m68k/xm-m68klynx.h: Delete file.
11548 * config/i386/xm-i386lynx.h: Delete file.
11549 * config/xm-lynx.h: Delete file.
11550 * config/djgpp/fnchange.lst: Update.
11551
11552 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11553
11554 * alpha-tdep.c (alpha_register_byte): New function.
11555 (alpha_register_raw_size): Ditto.
11556 (alpha_register_virtual_size): Ditto.
11557 (alpha_skip_prologue_internal): Renamed from
11558 alpha_skip_prologue.
11559 (alpha_skip_prologue): New version that calls
11560 alpha_skip_prologue_internal.
11561 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11562 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11563 second argument from alpha_skip_prologue.
11564 (REGISTER_BYTE): Use alpha_register_byte.
11565 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11566 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11567 (FRAMELESS_FUNCTION_INVOCATION): Use
11568 generic_frameless_function_invocation_not.
11569 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11570 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11571
11572 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11573
11574 * config/mips/xm-news-mips.h: Delete file.
11575 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11576
11577 * config/m88k/xm-m88k.h: Delete file.
11578 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11579 * config/m88k/xm-delta88v4.h: Ditto.
11580 * config/m88k/xm-delta88.h: Ditto.
11581
11582 * config/alpha/xm-fbsd.h: Delete file.
11583 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11584
11585 * config/sparc/xm-sparc.h: Delete file.
11586 * Makefile.in (xm-sun4os4.h): Delete dependency.
11587 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11588 * config/sparc/xm-sun4os4.h: Ditto.
11589 * config/sparc/xm-linux.h: Ditto.
11590
11591 * config/i386/xm-windows.h: Delete file.
11592
11593 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11594
11595 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11596 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11597
11598 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11599
11600 * alpha-tdep.c (alpha_call_dummy_words): New.
11601 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11602 (CALL_DUMMY_P): Define.
11603 (CALL_DUMMY_WORDS): Define.
11604 (SIZEOF_CALL_DUMMY_WORDS): Define.
11605
11606 2002-01-19 Per Bothner <per@bothner.com>
11607
11608 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11609 isn't NULL, which can happen with some gcj-3.x-produced code.
11610
11611 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11612
11613 * alpha-tdep.c (alpha_register_virtual_type): New function.
11614 (alpha_init_frame_pc_first): Ditto.
11615 (alpha_fix_call_dummy): Ditto.
11616 (alpha_store_struct_return): Ditto.
11617 (alpha_extract_struct_value_address): Ditto.
11618 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11619 alpha_register_virtual_type.
11620 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11621 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11622 alpha_extract_struct_value_address.
11623 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11624 (INIT_FRAME_PC): Use init_frame_pc_noop.
11625 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11626
11627 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11628
11629 * i386gnu-nat.c: Include "i386-tdep.h".
11630 (fetch_fpregs): Simplify code dealing with uninitialized floating
11631 point states such that it doesn't require FP7_REGNUM.
11632
11633 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11634
11635 * alpha-tdep.c (frame_extra_info): New.
11636 (alpha_find_saved_regs): Make static. Use
11637 frame->extra_info.
11638 (alpha_frame_init_saved_regs): New function.
11639 (alpha_frame_saved_pc): Use frame->extra_info.
11640 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11641 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11642 (init_extra_frame_info): Rename to...
11643 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11644 (alpha_print_extra_frame_info): New function.
11645 (alpha_frame_locals_address): Ditto.
11646 (alpha_frame_args_address): Ditto.
11647 (alpha_pop_frame): Use frame->extra_info.
11648 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11649 alpha_frame_args_address.
11650 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11651 (alpha_find_saved_regs): Remove prototype.
11652 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11653 (EXTRA_FRAME_INFO): Remove.
11654 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11655 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11656
11657 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11658
11659 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11660 (alpha_cannot_fetch_register): Ditto.
11661 (alpha_cannot_store_register): Ditto.
11662 (alpha_register_convertible): Ditto.
11663 (alpha_use_struct_convention): Ditto.
11664 * config/alpha/tm-alpha.h: Update copyright years.
11665 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11666 (INNER_THAN): Use core_addr_lessthan.
11667 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11668 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11669 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11670 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11671 (FRAME_CHAIN): Remove unnecessary cast.
11672
11673 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11674
11675 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11676 obsolete.
11677
11678 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11679
11680 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11681 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11682 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11683 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11684 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11685 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11686 * x86-64-linux-nat.c: Ditto.
11687
11688 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11689
11690 * alpha-tdep.c (alpha_register_name): New function.
11691 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11692 (REGISTER_NAME): Define.
11693
11694 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11695
11696 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11697
11698 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11699
11700 * alpha-tdep.c: Update copyright years.
11701 (alpha_next_pc): New function.
11702 (alpha_software_single_step): Ditto.
11703 * config/alpha/tm-alpha.h: Add prototype for
11704 alpha_software_single_step.
11705
11706 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11707
11708 * alphabsd-nat.c: Update copyright years.
11709 (fill_gregset): Use regcache_collect.
11710 (fill_fpregset): Likewise.
11711 (fetch_inferior_registers): Only fetch integer registers
11712 if requested to do so.
11713 (store_inferior_registers): Only store integer registers
11714 if requested to do so.
11715
11716 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11717
11718 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11719 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11720 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11721 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11722 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11723 * config/arm/linux.mh (XDEPFILES): Delete.
11724 * config/arm/nbsd.mh (XDEPFILES): Delete.
11725 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11726 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11727 * config/i386/i386m3.mh (XDEPFILES): Delete.
11728 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11729 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11730 * config/i386/fbsd.mh (XDEPFILES): Delete.
11731 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11732 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11733 * config/i386/i386v4.mh (XDEPFILES): Delete.
11734 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11735 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11736 * config/i386/i386aix.mh (XDEPFILES): Delete.
11737 * config/i386/go32.mh (XDEPFILES): Delete.
11738 * config/i386/cygwin.mh (XDEPFILES): Delete.
11739 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11740 * config/i386/i386mach.mh (XDEPFILES): Delete.
11741 * config/i386/i386v32.mh (XDEPFILES): Delete.
11742 * config/i386/linux.mh (XDEPFILES): Delete.
11743 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11744 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11745 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11746 * config/i386/i386sco.mh (XDEPFILES): Delete.
11747 * config/i386/i386v.mh (XDEPFILES): Delete.
11748 * config/i386/nbsd.mh (XDEPFILES): Delete.
11749 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11750 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11751 * config/i386/symmetry.mh (XDEPFILES): Delete.
11752 * config/i386/obsd.mh (XDEPFILES): Delete.
11753 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11754 * config/ia64/linux.mh (XDEPFILES): Delete.
11755 * config/ia64/aix.mh (XDEPFILES): Delete.
11756 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11757 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11758 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11759 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11760 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11761 * config/m68k/linux.mh (XDEPFILES): Delete.
11762 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11763 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11764 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11765 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11766 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11767 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11768 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11769 * config/m88k/delta88.mh (XDEPFILES): Delete.
11770 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11771 * config/m88k/m88k.mh (XDEPFILES): Delete.
11772 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11773 * config/mips/linux.mh (XDEPFILES): Delete.
11774 * config/mips/irix6.mh (XDEPFILES): Delete.
11775 * config/mips/irix5.mh (XDEPFILES): Delete.
11776 * config/mips/irix4.mh (XDEPFILES): Delete.
11777 * config/mips/irix3.mh (XDEPFILES): Delete.
11778 * config/mips/decstation.mh (XDEPFILES): Delete.
11779 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11780 (NATDEPFILES): Move core-aout.o to here.
11781 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11782 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11783 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11784 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11785 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11786 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11787 * config/pa/hpux11.mh (XDEPFILES): Delete.
11788 * config/powerpc/aix.mh (XDEPFILES): Delete.
11789 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11790 * config/powerpc/linux.mh (XDEPFILES): Delete.
11791 * config/romp/rtbsd.mh: Rename XDEPFILES.
11792 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11793 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11794 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11795 * config/s390/s390.mh (XDEPFILES): Delete.
11796 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11797 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11798 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11799 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11800 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11801 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11802 * config/sparc/linux.mh (XDEPFILES): Delete.
11803 * config/vax/vaxult.mh (XDEPFILES): Delete.
11804 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11805 * Makefile.in (DEPFILES): Remove XDEPFILES.
11806
11807 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11808
11809 * utils.c (internal_verror): Fix comments, default is yes not no.
11810 Update queries to match. Default to quit and dump core.
11811
11812 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11813
11814 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11815 copyright.
11816 * defs.h, event-top.c, gdbcmd.h: Ditto.
11817 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11818 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11819 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11820 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11821 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11822 * mi/mi-main.c:Ditto.
11823
11824 * stack.c, symfile.c: Update copyright.
11825
11826 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11827
11828 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11829 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11830 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11831 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11832
11833 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11834
11835 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11836 * gdbserver/low-lynx.c (myattach): Likewise.
11837 * gdbserver/low-nbsd.c (myattach): Likewise.
11838 * gdbserver/low-sim.c (myattach): Likewise.
11839 * gdbserver/low-sparc.c (myattach): Likewise.
11840 * gdbserver/low-sun3.c (myattach): Likewise.
11841
11842 * gdbserver/low-linux.c (myattach): New function.
11843
11844 * gdbserver/server.c (attach_inferior): New function.
11845 (main): Handle "--attach".
11846
11847 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11848
11849 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11850 maintainer.
11851
11852 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11853
11854 * c-typeprint.c (is_type_conversion_operator): Add additional
11855 check for non-conversion operators.
11856
11857 2002-01-15 Michael Snyder <msnyder@redhat.com>
11858
11859 * linux-proc.c: Add "info proc" command, a la procfs.c.
11860 (read_mapping): New function, abstract and re-use code.
11861 (linux_find_memory_regions): Use new func read_mapping.
11862 (linux_info_proc_cmd): New function, implement "info proc".
11863 (_initialize_linux_proc): Add new command "info proc".
11864
11865 2002-01-15 Michael Snyder <msnyder@redhat.com>
11866
11867 * symfile.c (generic_load): Use bfd_map_over_sections method
11868 instead of manipulating bfd structure members directly.
11869 (add_section_size_callback): New function, bfd sections callback
11870 used by generic_load.
11871 (load_sections_callback): New function, bfd sections callback
11872 used by generic_load.
11873
11874 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11875
11876 [Based on work by Jim Blandy]
11877 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11878 (builtin_type_vec128): Export.
11879 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11880 types.
11881 (builtin_type_vec128): New builtin type for 128 bit vector
11882 registers.
11883 (build_gdbtypes): Initialize builtin_type_v16qi and
11884 builtin_type_v8hi. Create the vec128 register builtin type
11885 structure.
11886 (build_builtin_type_vec128): New function.
11887 (_initialize_gdbtypes): Register builtin_type_v16qi and
11888 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11889 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11890 AltiVec register to new builtin type.
11891
11892 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11893
11894 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11895 to make_cv_type.
11896
11897 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11898
11899 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11900 CLEAN_UP_REGISTER_VALUE.
11901 * regcache.c (supply_register): Update only call.
11902
11903 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11904
11905 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11906 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11907 a29k-*-vxworks* targets as obsolete.
11908
11909 2002-01-14 Michael Snyder <msnyder@redhat.com>
11910
11911 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11912 until we can resolve portability issues.
11913 * gregset.h: Remove references to fpxregs.
11914 * gcore.c (gcore_command): Initialize note_sec to NULL.
11915
11916 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11917
11918 * signals.c (target_signal_to_name): Rewrite. Only use
11919 signals[].name when in bounds and non-NULL.
11920
11921 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11922
11923 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11924 * signals.c (target_signal_to_name): Verify that SIG is within the
11925 bounds of the signals array.
11926
11927 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11928
11929 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11930
11931 2002-01-13 Keith Seitz <keiths@redhat.com>
11932
11933 * stack.c (print_frame_info_base): Print the frame's pc
11934 only if when print_frame_info_listing_hook is not defined.
11935
11936 2002-01-13 Keith Seitz <keiths@redhat.com>
11937
11938 * varobj.c (varobj_set_value): Make sure that there were no
11939 errors evaluating the object before attempting to set its
11940 value.
11941 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11942 so this offset adjustment is no longer necessary.
11943 (create_child): Don't set the error flag if the child is
11944 a CPLUS_FAKE_CHILD.
11945 (value_of_child): If value_fetch_lazy fails, return NULL
11946 so that callers will be notified that an error occurred.
11947 (c_value_of_variable): Delay check of variable's validity
11948 until later. We actually want all structs and unions to have
11949 the value "{...}".
11950 Do not return "???" for variables which could not be evaluated.
11951 This error condition must be returned to the caller so that it
11952 can get the error condition from gdb.
11953 (cplus_name_of_child): Adjust index for vptr before figuring
11954 out the name of the child.
11955 (cplus_value_of_child): If a child's (real) parent is not valid,
11956 don't even bother trying to give a value for it. Just return
11957 an error. Change all instances in this function.
11958 (cplus_type_of_child): If our parent is one of the "fake"
11959 parents, we need to get at the type of the real parent, and
11960 derive the child's true type using this information.
11961
11962 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11963
11964 From 2002-01-09 John Marshall <johnm@falch.net>:
11965 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11966 sources.redhat.com, and tweak some related URLs which had
11967 suffered from linkrot.
11968
11969 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11970
11971 From Jeff law:
11972 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11973 structures passed in registers.
11974
11975 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11976
11977 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11978 white space which prevented compilation. Reported by DSK
11979 <dsk@student.unsw.edu.au>.
11980
11981 2002-01-11 Michael Snyder <msnyder@redhat.com>
11982
11983 * symfile.c (build_section_addr_info_from_section_tab):
11984 Use bfd access method instead of manipulating bfd directly.
11985 (syms_from_objfile): Ditto.
11986 (simple_overlay_update_1): Ditto.
11987 (simple_overlay_update): Ditto.
11988 (generic_load): Ditto.
11989 (overlay_unmapped_address): FIXME comment, bfd access methods.
11990 (sections_overlap): FIXME comment, bfd access methods.
11991 (pc_in_mapped_range): FIXME comment, bfd access methods.
11992 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11993 (section_is_mapped): FIXME comment, bfd access methods.
11994 (section_is_overlay): FIXME comment, bfd access methods.
11995
11996 * symfile.c (generic_load): Whitespace and long line cleanups.
11997 Remove duplicate variable, change several local variables to
11998 more appropriate data types.
11999 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12000
12001 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12002
12003 From Peter Schauer:
12004 * language.c (longest_local_hex_string_custom): Use phex_nz to
12005 convert NUM to a hex string.
12006
12007 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12008
12009 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12010 the function.
12011 Update Copyright year.
12012
12013 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12014
12015 * language.c (longest_raw_hex_string): Delete unused function.
12016
12017 2002-01-11 Petr Sorfa <petrs@caldera.com>
12018
12019 * MAINTAINERS (write-after-approval): Add myself.
12020 * dwarf2read.c (read_tag_string_type): Handling of
12021 DW_AT_byte_size.
12022 (read_tag_string_type): FORTRAN fix to prevent propagation of
12023 first string size.
12024 (set_cu_language): Handling of DW_LANG_Fortran95
12025
12026 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12027
12028 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12029 GETPID(inferior_ptid).
12030 (store_inferior_registers): Likewise.
12031
12032 2002-01-10 Jason Merrill <jason@redhat.com>
12033
12034 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12035 Fix DW_OP_minus.
12036
12037 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12038
12039 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12040 and bfd/elf32-sh-nbsd.c.
12041
12042 2002-01-10 Michael Snyder <msnyder@redhat.com>
12043
12044 * NEWS: Mention --pid and corefile/proc-id behavior change.
12045
12046 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12047 * gcore.c: Include cli/cli-decode.h instead of command.h.
12048
12049 * main.c (captured_main): Add new command line option "--pid".
12050 If the second command line argument (following the symbol-file)
12051 begins with a digit, try to attach to it before trying to open
12052 it as a corefile.
12053 (print_gdb_help): Document the "--pid" argument.
12054
12055 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12056
12057 * completer.c (command_completer): New function.
12058
12059 * completer.h <command_completer>: Add prototype.
12060
12061 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12062 completer for the "help" command.
12063
12064 2002-01-09 Jason Merrill <jason@redhat.com>
12065
12066 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12067
12068 2002-01-09 Michael Snyder <msnyder@redhat.com>
12069
12070 * i386-linux-nat.c (fill_fpxregset): Make global.
12071 (store_fpxregset): Ditto.
12072
12073 * gregset.h (gdb_fpxregset_t): Define.
12074 (supply_fpxregset): Prototype.
12075 (fill_fpxregset): Prototype.
12076
12077 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12078
12079 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12080
12081 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12082 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12083 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12084
12085 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12086
12087 * MAINTAINERS: Update target maintainer rules so that any
12088 Maintainer can approve a tested patch for a maintenance-only
12089 target.
12090
12091 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12092
12093 * MAINTAINERS (write-after-approval): Add myself.
12094
12095 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12096 IN_SIGTRAMP.
12097
12098 2002-01-08 Michael Snyder <msnyder@redhat.com>
12099
12100 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12101 real name of the executable, rather than the /proc name.
12102
12103 2002-01-03 Michael Snyder <msnyder@redhat.com>
12104
12105 Implement a "generate-core-file" command in gdb, save target state.
12106 * gcore.c: New file. Implement new command 'generate-core-file'.
12107 Save a corefile image of the current state of the inferior.
12108 * linux-proc.c: Add linux-specific code for saving corefiles.
12109 * target.h (struct target_ops): Add new target vectors for saving
12110 corefiles; to_find_memory_regions and to_make_corefile_notes.
12111 (target_find_memory_regions): New macro.
12112 (target_make_corefile_notes): New macro.
12113 * target.c (update_current_target): Inherit new target methods.
12114 (dummy_find_memory_regions): New place-holder method.
12115 (dummy_make_corefile_notes): New place-holder method.
12116 (init_dummy_target): Initialize new dummy target vectors.
12117 * exec.c (exec_set_find_memory_regions): New function.
12118 Allow the exec_ops vector for memory regions to be taken over.
12119 (exec_make_note_section): New function, target vector method.
12120 * defs.h (exec_set_find_memory_regions): Export prototype.
12121 * procfs.c (proc_find_memory_regions): New function, corefile method.
12122 (procfs_make_note_section): New function, corefile method.
12123 (init_procfs_ops): Set new target vector pointers.
12124 (find_memory_regions_callback): New function.
12125 (procfs_do_thread_registers): New function.
12126 (procfs_corefile_thread_callback): New function.
12127 * sol-thread.c (sol_find_memory_regions): New function.
12128 (sol_make_note_section): New function.
12129 (init_sol_thread_ops): Initialize new target vectors.
12130 * inftarg.c (inftarg_set_find_memory_regions): New function.
12131 Allow to_find_memory_regions vector to be taken over.
12132 (inftarg_set_make_corefile_notes): New function.
12133 Allow to_make_corefile_notes vector to be taken over.
12134 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12135 interface layer if not target_has_execution (may be a corefile).
12136 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12137 * config/sparc/sun4sol2.mh: Ditto.
12138 * config/alpha/alpha-linux.mh: Ditto.
12139 * config/arm/linux.mh: Ditto.
12140 * config/i386/x86-64linux.mh: Ditto.
12141 * config/ia64/linux.mh: Ditto.
12142 * config/m68k/linux.mh: Ditto.
12143 * config/mips/linux.mh: Ditto.
12144 * config/powerpc/linux.mh: Ditto.
12145 * config/sparc/linux.mh: Ditto.
12146
12147 2002-01-07 Michael Snyder <msnyder@redhat.com>
12148
12149 * arm-linux-nat.c: Remove references to regcache.c internal data
12150 (registers[] and register_valid[]).
12151
12152 2002-01-07 Michael Snyder <msnyder@redhat.com>
12153
12154 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12155 so that attaching to a pid will automatically read the process's
12156 symbol file and shlibs.
12157 * Makefile.in: Add rule for linux-proc.o.
12158 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12159 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12160 * config/arm/linux.mh: Ditto.
12161 * config/i386/linux.mh: Ditto.
12162 * config/i386/x86-64linux.mh: Ditto.
12163 * config/ia64/linux.mh: Ditto.
12164 * config/m68k/linux.mh: Ditto.
12165 * config/mips/linux.mh: Ditto.
12166 * config/powerpc/linux.mh: Ditto.
12167 * config/sparc/linux.mh: Ditto.
12168
12169 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12170
12171 * win32-nat.c: Add i386-tdep.h dependency.
12172
12173 2002-01-07 Michael Snyder <msnyder@redhat.com>
12174
12175 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12176 instead of bfd_get_arch_size. Don't bail out just because
12177 there's no exec_bfd.
12178
12179 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12180 * p-valprint.c (pascal_object_print_value): Ditto.
12181 * somread.c (som_symtab_read): Ditto.
12182 * symfile.c (simple_free_overlay_region_table): Ditto.
12183 * valops.c (value_assign): Ditto.
12184
12185 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12186 use tilde_expand and strerror for opening save-tracepoints file.
12187
12188 * thread-db.c (thread_db_new_objfile): Indendation fix.
12189
12190 * infptrace.c (GDB_MAX_ALLOCA): New define.
12191 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12192 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12193 can be overridden with whatever value is appropriate to the host).
12194 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12195 alloca to allocate potentially large buffer.
12196 * rs6000-nat.c (child_xfer_memory): Ditto.
12197 * symm-nat.c (child_xfer_memory): Ditto.
12198 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12199
12200 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12201
12202 From Nick Clifton <nickc@redhat.com>
12203 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12204
12205 2002-01-07 Michael Snyder <msnyder@redhat.com>
12206
12207 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12208 Don't use exec_bfd if it's NULL.
12209
12210 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12211
12212 * valops.c (value_arg_coerce): Fix formatting.
12213
12214 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12215
12216 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12217 * gnu-nat.c: Ditto.
12218
12219 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12220
12221 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12222 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12223 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12224 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12225 z8k-coff have not been multi-arched. Update z8k-coff build
12226 status.
12227
12228 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12229
12230 * MAINTAINERS: Mark a29k target as obsolete.
12231 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12232 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12233 comments.
12234 * NEWS: Note that a29k targets are obsolete.
12235 * a29k-tdep.c: Mark as obsolete.
12236 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12237 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12238 a29k-*-vxworks* targets as obsolete.
12239 * remote-adapt.c: Obsolete.
12240 * remote-eb.c: Obsolete.
12241 * remote-mm.c: Obsolete.
12242 * remote-udi.c: Obsolete.
12243 * config/a29k/a29k-udi.mt: Obsolete.
12244 * config/a29k/a29k.mt: Obsolete.
12245 * config/a29k/tm-a29k.h: Obsolete.
12246 * config/a29k/tm-vx29k.h: Obsolete.
12247 * config/a29k/vx29k.mt: Obsolete.
12248
12249 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12250
12251 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12252 with BFD_ENDIAN_BIG.
12253
12254 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12255
12256 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12257 * configure, config.in: Re-generate.
12258 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12259 * defs.h: Do not include <endian.h>.
12260
12261 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12262
12263 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12264 * config.in: Regenerate.
12265 * configure.in: Update copyright years.
12266 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12267 * configure: Regenerate.
12268 * i386bsd-nat.c: Update copyright years.
12269 (fill_gregset): Use regcache_collect.
12270 (fetch_inferior_registers): Only fetch integer registers
12271 if requested to do so. Add support for XMM registers
12272 using PT_GETXMMREGS.
12273 (store_inferior_registers): Only store integer registers
12274 if requested to do so. Add support for XMM registers
12275 using PT_SETXMMREGS.
12276 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12277 (store_inferior_registers): Remove.
12278 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12279 (fetch_elfcore_registers): New function.
12280 (i386nbsd_elfcore_fns): New.
12281 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12282 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12283 i386bsd-nat.o.
12284 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12285 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12286 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12287 * config/i386/tm-nbsd.h: Update copyright years.
12288 (HAVE_SSE_REGS): Define.
12289 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12290 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12291 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12292 (SIGCONTEXT_PC_OFFSET): Remove.
12293 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12294
12295 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12296
12297 * configure.tgt: Remove powerpc-*-macos* target.
12298 * config/m68k/xm-mpw.h: Delete file.
12299 * config/xm-mpw.h: Delete file.
12300 * ser-mac.c: Delete file.
12301 * mpw-make.sed: Delete file.
12302 * mpw-config.in: Delete file.
12303 * mac-xdep.c: Delete file.
12304 * mac-gdb.r: Delete file.
12305 * mac-defs.h: Delete file.
12306 * mac-nat.c: Delete file.
12307 * config/powerpc/macos.mh: Delete file.
12308 * config/powerpc/macos.mt: Delete file.
12309 * config/powerpc/nm-macos.h: Delete file.
12310 * config/powerpc/tm-macos.h: Delete file.
12311 * source.c (openp, open_source_file): Remove obsolete code.
12312 * top.c (gdb_readline): Ditto.
12313 * utils.c (query): Ditto.
12314 * event-top.c (display_gdb_prompt): Ditto.
12315 * Makefile.in (ser-mac.o): Delete obsolete target.
12316 * NEWS: Update.
12317
12318 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12319
12320 * defs.h (BIG_ENDIAN): Delete macro definition.
12321 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12322 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12323 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12324 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12325 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12326 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12327 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12328 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12329 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12330 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12331 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12332 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12333 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12334 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12335 * gdbarch.c: Re-generate.
12336
12337 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12338
12339 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12340 for core files.
12341
12342 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12343
12344 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12345
12346 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12347
12348 * value.h (value_ptr): Delete typedef.
12349
12350 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12351
12352 * i386nbsd-nat.c: Update copyright years.
12353 Include i386-tdep.h.
12354
12355 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12356
12357 * stabsread.c: Update copyright years.
12358
12359 From Debashis Mahata <debashis.mahata@wipro.com>:
12360 (read_struct_fields): Deal with Sun C compiler erroneous stab
12361 output for structs and unions.
12362 Fix PR gdb/269.
12363
12364 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12365
12366 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12367 prototype.
12368
12369 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12370
12371 * cp-abi.c: Fix whitespace.
12372 (baseclass_offset): New wrapper function.
12373 * cp-abi.h (baseclass_offset): Add prototype.
12374 (struct cp_abi_ops): Add baseclass_offset pointer.
12375
12376 * valops.c (vb_match): Move to...
12377 * gnu-v2-abi.c (vb_match): here.
12378 * valops.c (baseclass_offset): Move to...
12379 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12380
12381 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12382
12383 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12384 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12385 * hpacc-abi.c (init_hpacc_ops): Likewise.
12386
12387 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12388
12389 * valops.c (find_overload_match): Accept obj as a
12390 reference parameter. Update it before returning.
12391 * value.h (find_overload_match): Update prototype.
12392 * eval.c (evaluate_subexp_standard): Pass object to
12393 find_overload_match by reference.
12394
12395 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12396
12397 * valarith.c: Replace value_ptr with struct value pointer. Remove
12398 register attribute from value declarations.
12399 * valops.c: Ditto.
12400 * value.h: Ditto.
12401 * scm-lang.c (scm_lookup_name): Ditto.
12402
12403 2002-01-03 Michael Snyder <msnyder@redhat.com>
12404
12405 Abstract the functionality of iterating over mapped memory
12406 regions into a general purpose iterator function.
12407 * procfs.c (iterate_over_mappings): New function, general purpose
12408 iterator for memory sections.
12409 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12410 (solib_mappings_callback): New function, callback for above.
12411 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12412 (info_mappings_callback): New function, callback for above.
12413
12414 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12415
12416 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12417
12418 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12419 * i386-tdep.c: Include "elf-bfd.h".
12420 (process_note_abi_tag_sections): New function.
12421 (i386_gdbarch_init): Add code to recognize various OS/ABI
12422 combinations.
12423
12424 * maint.c (_initialize_maint_cmds): Add missing \ in
12425 string-literal.
12426
12427 For older changes see ChangeLog-2001
12428 \f
12429 Local Variables:
12430 mode: change-log
12431 left-margin: 8
12432 fill-column: 74
12433 version-control: never
12434 End:
This page took 0.634235 seconds and 5 git commands to generate.