2002-11-05 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
4 * gdbarch.h, gdbarch.c: Regnerate.
5 * frame.h (frame_register): Declare.
6 * frame.c (frame_register): New function.
7 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
8 GET_SAVED_REGISTER, otherwize call
9 generic_unwind_get_saved_register.
10 (frame_register_read): Use frame_register instead of
11 get_saved_register.
12
13 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
14
15 * event-loop.c (start_event_loop): Add comment.
16 Update copyright.
17
18 2002-11-05 Andrew Cagney <ac131313@redhat.com>
19
20 * infcmd.c (default_print_registers_info): Do not call
21 PRINT_REGISTER_HOOK.
22
23 2002-11-05 Andrew Cagney <ac131313@redhat.com>
24
25 * sparc-tdep.c (sparc_print_register_hook): Make static.
26 (sparc_print_registers_info): New function.
27 (sparc_do_registers_info): New function.
28 (sparclet_print_registers_info): New function.
29 (sparclet_do_registers_info): New function.
30 (do_sparc_print_registers_info): New function.
31 (sparc_print_registers): New static function, clone of infcmd.c's
32 default_print_registers_info.
33 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
34 (sparclet_do_registers_info): Declare.
35 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
36 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
37 Re-define.
38 (sparc_do_registers_info): Declare.
39 (PRINT_REGISTER_HOOK): Delete macro.
40 (sparc_print_register_hook): Delete declaration.
41
42 2002-11-05 David Carlton <carlton@math.stanford.edu>
43
44 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
45 functions.
46 (lookup_symbol_aux_local): New function.
47 (lookup_symbol_aux_symtabs): New function.
48 (lookup_symbol_aux_psymtabs): New function.
49
50 2002-11-05 David Carlton <carlton@math.stanford.edu>
51
52 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
53 previous values of 'objfile' and 'block'.
54
55 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
56
57 * values.c (value_change_enclosing_type): Set
58 enclosing_type field correctly also for the case where
59 more memory needs to be allocated.
60
61 2002-11-03 Mark Kettenis <kettenis@gnu.org>
62
63 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
64 of puts_filtered.
65
66 * i387-tdep.c (i387_print_float_info): Replace calls to
67 register_read and deprecated_read_register_gen with calls to
68 frame_register_read, and make the necessary adjustments to the
69 surrounding code.
70
71 2002-11-02 Andrew Cagney <ac131313@redhat.com>
72
73 * gdbarch.sh (register_reggroup_p): Allow default value.
74 * gdbarch.h, gdbarch.c: Regenerate.
75
76 2002-11-02 Andrew Cagney <ac131313@redhat.com>
77
78 * regcache.h: Add coment indicating replacements for deprecated
79 functions.
80
81 2002-11-02 Andrew Cagney <cagney@redhat.com>
82
83 * reggroups.h, reggroups.c: New files.
84 * regcache.c: Include "reggroups.h".
85 (enum regcache_dump_what): Add `regcache_dump_groups'.
86 (regcache_dump): Contract size of the "Type" column. When
87 specified, dump the register's groups.
88 (maintenance_print_register_groups): New function.
89 (_initialize_regcache): Add command `maint print register-groups'.
90 * Makefile.in (COMMON_OBS): Add reggroups.o
91 (SFILES): Add reggroups.c.
92 (reggroups_h): Define.
93 (regcache.o, gdbarch.o): Update dependencies.
94 (reggroups.o): Specify dependencies.
95 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
96 Add opaque declaration for `struct reggroup' in generated .h file.
97 Include "reggroups.h" in generated .c file.
98 gdbarch.h, gdbarch.c: Re-generate.
99
100 2002-11-02 Andrew Cagney <cagney@redhat.com>
101
102 * regcache.h (deprecated_read_register_gen): Rename
103 read_register_gen.
104 (deprecated_write_register_gen): Rename write_register_gen.
105 * i387-tdep.c: Update.
106 * x86-64-linux-nat.c: Update
107 * wince.c: Update.
108 * thread-db.c: Update.
109 * win32-nat.c: Update.
110 * mips-tdep.c: Update.
111 * d10v-tdep.c: Update.
112 * cris-tdep.c: Update.
113 * remote-sim.c: Update.
114 * remote-rdi.c: Update.
115 * remote-rdp.c: Update.
116 * frame.c: Update.
117 * target.c: Update.
118 * blockframe.c: Update.
119 * x86-64-tdep.c: Update.
120 * xstormy16-tdep.c: Update.
121 * sh-tdep.c: Update.
122 * s390-tdep.c: Update.
123 * rs6000-tdep.c: Update.
124 * sparc-tdep.c: Update.
125 * i386-tdep.c: Update.
126 * dwarf2cfi.c: Update.
127 * regcache.c: Update.
128
129 2002-11-01 Joel Brobecker <brobecker@gnat.com>
130
131 New interix-specific files:
132 * config/i386/nm-interix.h: New file.
133 * config/i386/interix.mh: New file.
134 * config/i386/interix.mt: New file.
135 * i386-interix-nat.c: New file.
136 * i386-interix-tdep.c: New file.
137
138 2002-11-01 Andrew Cagney <cagney@redhat.com>
139
140 * frame.h (deprecated_generic_get_saved_register): Rename
141 generic_get_saved_register.
142 * blockframe.c (deprecated_generic_get_saved_register): Update.
143 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
144 (xstormy16_frame_saved_register): Update.
145 * sh-tdep.c (sh_gdbarch_init): Update.
146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
147 * ia64-tdep.c (ia64_get_saved_register): Update.
148 * cris-tdep.c (cris_gdbarch_init): Update.
149 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
150 * arm-tdep.c (arm_gdbarch_init): Update.
151
152 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
153
154 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
155
156 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
157
158 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
159 trampolines in sigaction.
160
161 2002-10-31 Andrew Cagney <cagney@redhat.com>
162
163 * h8300-tdep.c: Include "gdb_assert.h".
164 (h8300_print_register): Add gdbarch, file and frame parameters.
165 Use frame_read_unsigned_register to read the register's value.
166 Use fprintf_filtered to display output.
167 (h8300_print_registers_info): Replace h8300_do_registers_info.
168 (h8300_gdbarch_init): Set print_registers_info.
169
170 2002-10-31 Andrew Cagney <cagney@redhat.com>
171
172 * frame.c (frame_read_unsigned_register): New function.
173 (frame_read_signed_register): New function.
174 * frame.h (frame_read_unsigned_register): Declare.
175 (frame_read_signed_register): Declare.
176
177 2002-10-31 Andrew Cagney <cagney@redhat.com>
178
179 * h8500-tdep.c (h8500_print_registers_info): New static function,
180 clone of infcmd.c's default_print_registers_info.
181 (h8500_do_registers_info): New funtion.
182 (h8500_print_register_hook): Rename print_register_hook, make
183 static.
184
185 * config/h8500/tm-h8500.h: Update copyright.
186 (DEPRECATED_DO_REGISTERS_INFO): Define.
187 (h8500_do_registers_info: Declare.
188 (PRINT_REGISTER_HOOK): Delete macro.
189 (print_register_hook): Delete function.
190
191 2002-10-31 Andrew Cagney <cagney@redhat.com>
192
193 * z8k-tdep.c (z8k_print_register_hook): Make static.
194 (z8k_print_registers_info): New static function, clone of
195 infcmd.c's default_print_registers_info.
196 (z8k_do_registers_info): New function. Wrap
197 z8k_print_registers_info.
198 * config/z8k/tm-z8k.h: Update copyright.
199 (PRINT_REGISTER_HOOK): Delete macro.
200 (z8k_print_register_hook): Delete declaration.
201 (DEPRECATED_DO_REGISTERS_INFO): Define.
202 (z8k_do_registers_info): Declare.
203
204 2002-10-30 Joel Brobecker <brobecker@gnat.com>
205
206 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
207 as this is already provided by value.h, and was actually causing
208 a compilation error because of a conflict in parameter type
209 declaration due to a missing const keyword.
210 (low_text_segment_addres): Fix a compilation warning.
211
212 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
213
214 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
215 registers without a name.
216 (mips_linux_cannot_store_register): Don't store registers without
217 a name.
218
219 2002-10-28 David Carlton <carlton@math.stanford.edu>
220
221 * symtab.c (find_addr_symbol): Delete. (It was already commented
222 out.)
223 * symtab.h: Delete prototype for find_addr_symbol.
224
225 2002-10-26 Andrew Cagney <cagney@redhat.com>
226
227 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
228 DO_REGISTERS_INFO.
229 gdbarch.h, gdbarch.c: Re-generate.
230 * infcmd.c (default_print_registers_info): Update reference.
231 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
232 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
233 * sh-tdep.c (sh_gdbarch_init): Ditto.
234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
235 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
236
237 2002-10-26 Mark Kettenis <kettenis@gnu.org>
238
239 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
240 cfi_init_extra_frame_info.
241 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
242 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
243
244 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
245 target where necessary. Add more comments and remove the ones
246 that don't provide any useful information.
247
248 * i386-tdep.c (i386_frame_saved_pc): Replace call to
249 deprecated_read_register_dummy with
250 frame_unwind_unsigned_register.
251
252 * i386-tdep.c (i386_extract_struct_value_address): Use
253 regcache_raw_read_unsigned instead of
254 regcache_cooked_read_unsigned since we know that the register
255 we're reading isn't a pseudo register. Rename variable 'val' into
256 the more descriptive 'addr'.
257
258 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
259 (x86_64_push_return_address): Add comment.
260 (x86_64_pop_frame): Make static.
261 (examine_argument): Clarify comment.
262 (x86_64_skip_prologue): Make prolog_expact variable static.
263
264 * dwarf2cfi.c: Fix some formatting problems.
265 (context_cpy, read_encoded_pointer): Clarify comments.
266
267 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
268 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
269 i386 target back into x86_64_gdbarch_init. Add some comments and
270 remove meaningless ones.
271
272 2002-10-25 Andrew Cagney <cagney@redhat.com>
273
274 * complaints.h (struct deprecated_complaint): Rename `struct
275 complaint'.
276 * complaints.c (complain): Update.
277 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
278 incorrect comment indicating that "symfile.h" was being included
279 for the `struct complaint' definition.
280 * remote-vx.c: Update.
281 * objc-lang.c: Update.
282 * xcoffread.c: Update.
283 * hpread.c: Update.
284 * mdebugread.c: Update.
285 * stabsread.c: Update.
286 * dwarf2read.c: Update.
287 * dwarfread.c: Update.
288 * elfread.c: Update.
289 * coffread.c: Update.
290 * stabsread.h: Update.
291 * dbxread.c: Update.
292 * buildsym.c: Update.
293 * gdbtypes.c: Update.
294 * macrotab.c: Update.
295
296 2002-10-25 Mark Kettenis <kettenis@gnu.org>
297
298 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
299 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
300 (x86_64_init_abi): ...new function.
301
302 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
303 * i386v-nat.c: Include "i386-tdep.h".
304
305 2002-10-25 Andrew Cagney <cagney@redhat.com>
306
307 * gdbtypes.c (address_space_name_to_int): Update.
308 (address_space_int_to_name): Update.
309 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
310 multi-arch predicate.
311 (address_class_name_to_type_flags): Ditto.
312 * gdbarch.h, gdbarch.c: Re-generate.
313
314 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
315
316 2002-10-24 Martin M. Hunt <hunt@redhat.com>
317
318 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
319
320 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
321
322 * symtab.h (INIT_SAL): Delete macro.
323 (init_sal): Export.
324 * symtab.c (init_sal): New function.
325
326 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
327 to init_sal function call.
328 (find_sal_from_funcs_and_line): Ditto.
329 (all_sals_for_line): Ditto.
330 * breakpoint.c (create_internal_breakpoint): Ditto.
331 (create_fork_vfork_event_catchpoint): Ditto.
332 (create_exec_event_catchpoint): Ditto.
333 (parse_breakpoint_sals): Ditto.
334 (watch_command_1): Ditto.
335 (handle_gnu_4_16_catch_command): Ditto.
336 (clear_command): Ditto.
337 * hppa-tdep.c (child_enable_exception_callback): Ditto.
338 * infcmd.c (run_stack_dummy): Ditto.
339 * infrun.c (process_event_stop_test): Ditto.
340 (check_sigtramp2): Ditto.
341 (step_over_function): Ditto.
342 * linespec.c (decode_line_2): Ditto.
343 (decode_line_1): Ditto.
344 * source.c (line_info): Ditto.
345 * symtab.c (find_pc_sect_line): Ditto.
346
347 2002-10-24 Michal Ludvig <mludvig@suse.cz>
348
349 * dwarf2cfi.c (struct context)
350 (struct context_reg): Moved to dwarf2cfi.h
351 (context_alloc, frame_state_alloc, context_cpy):
352 Made extern instead of static, removed prototypes.
353 * dwarf2cfi.h (struct context)
354 (struct context_reg): New, moved from dwarf2cfi.c
355 (context_alloc, frame_state_alloc, context_cpy):
356 New prototypes.
357 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
358 Changed from static to extern.
359 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
360 (LINUX_SIGCONTEXT_FP_OFFSET)
361 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
362 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
363 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
364 * x86-64-tdep.c (x86_64_gdbarch_init): Several
365 set_gdbarch_*() calls now use x86-64 specific functions
366 instead of DWARF2 CFI ones.
367 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
368 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
369 (x86_64_init_extra_frame_info): New prototypes.
370
371 2002-10-23 David Carlton <carlton@math.stanford.edu>
372
373 * linespec.c: #include "parser-defs.h".
374 Delete prototype for find_template_name_end.
375 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
376
377 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
378
379 * NEWS: add recent mi fixes.
380 * varobj.c (struct varobj): Add new "updated" flag.
381 (new_variable): Default "updated" flag to 0.
382 (varobj_set_value): Set "updated" flag to 1 if value
383 changes.
384 (varobj_update): Check varobj "updated" flag before
385 comparing old and refreshed values. Fix for
386 PR gdb/702.
387
388 2002-10-23 David Carlton <carlton@math.stanford.edu>
389
390 * parse.c (parse_exp_1): Use BLOCK_START.
391 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
392 SYMBOL_BLOCK_VALUE.
393 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
394
395 2002-10-23 David Carlton <carlton@math.stanford.edu>
396
397 * symtab.c: Delete cplusplus_hint.
398 Delete prototype for find_template_name_end.
399
400 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
401
402 * symtab.h: Update comment.
403
404 2002-10-23 Michael Snyder <msnyder@redhat.com>
405
406 * printcmd.c (address_info): Restore quotes in output.
407 * valops.c (value_of_local): Restore quotes in error message.
408
409 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
410
411 * symtab.c (symbol_demangled_name): New function.
412 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
413 turning most of it into a function.
414 (symbol_demangled_name): Export.
415
416 2002-10-23 Michael Snyder <msnyder@redhat.com>
417
418 * valops.c (value_of_local): Restore quotes in error message.
419
420 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
421
422 * symtab.c (symbol_init_language_specific): New function.
423 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
424 turning most of it into a function.
425 (symbol_init_language_specific): Export.
426
427 2002-10-23 David Carlton <carlton@math.stanford.edu>
428
429 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
430 (dwarf_attr_name): Ditto.
431 (dwarf_type_encoding_name): Ditto.
432 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
433 (process_die): Handle DW_TAG_namespace,
434 DW_TAG_imported_declaration, DW_TAG_imported_module.
435 (read_namespace): New function.
436
437 2002-10-22 Joel Brobecker <brobecker@gnat.com>
438
439 * configure.in: Define NEW_PROC_API on Interix too.
440 * configure: Regenerate.
441
442 2002-10-21 Joel Brobecker <brobecker@gnat.com>
443
444 * configure: Regenerate using the proper version of autoconf.
445
446 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
447
448 * findvar.c (read_var_value): Temporarily disable TLS code, until
449 complete TLS support is added.
450
451 2002-10-21 Jim Blandy <jimb@redhat.com>
452 Elena Zannoni <ezannoni@redhat.com>
453
454 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
455 for thread local storage locations.
456 (struct symbol): Add objfile field.
457 (SYMBOL_OBJFILE): Define.
458 * dwarf2read.c (is_thread_local): New static variable.
459 (new_symbol): If variable is in thread local fill in address class
460 and objfile appropriately.
461 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
462 stack operation.
463 * printcmd.c (address_info): Print the information for thread
464 local storage variable.
465 * findvar.c (read_var_value): In case of thread local variable,
466 defer to the target vector code to compute address.
467
468 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
469
470 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
471 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
472
473 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
474
475 * symtab.h (address_class): Rename
476 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
477 * hpread.c (hpread_process_one_debug_symbol): Ditto.
478 * printcmd.c (address_info): Ditto.
479 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
480
481 2002-10-20 Mark Kettenis <kettenis@gnu.org>
482
483 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
484 DBREG_DRX macro to acces debug registers.
485
486 * Makefile.in (i386obsd-tdep.o): New target.
487
488 * solib-sunos.c: Include "bcache.h" and "regcache.h".
489 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
490
491 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
492 * config/i386/obsd.mt: New file.
493 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
494 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
495 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
496 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
497 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
498 * i386obsd-tdep.c: New file.
499
500 2002-10-19 Adam Fedor <fedor@gnu.org>
501
502 * objc-exp.y (name_not_typename): Fix invalid comment.
503
504 2002-10-20 Mark Kettenis <kettenis@gnu.org>
505
506 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
507 to allocate partial syms and macro byte caches.
508
509 2002-10-18 David Carlton <carlton@math.stanford.edu>
510
511 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
512
513 2002-10-18 Adam Fedor <fedor@gnu.org>
514
515 * stabsread.c (find_name_end): New function.
516 (define_symbol): Use it.
517
518 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
519
520 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
521 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
522 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
523 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
524
525 2002-10-17 David Carlton <carlton@math.stanford.edu>
526
527 * symfile.h: Add opaque declaration for struct obstack.
528 Declare obsavestring to take a const char *.
529 * symfile.c (obsavestring): Make first argument a const char *.
530
531 2002-10-16 Adam Fedor <fedor@gnu.org>
532
533 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
534 names when matching breakpoints in current file.
535
536 2002-10-16 Kevin Buettner <kevinb@redhat.com>
537
538 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
539 (read_tag_pointer_type): Add address class support.
540 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
541 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
542 New methods.
543 * gdbarch.h, gdbarch.c: Regenerate.
544 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
545 (make_type_with_address_space, recursive_type_dump): Add address
546 class support.
547 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
548 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
549 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
550
551 2002-10-16 Klee Dienes <kdienes@apple.com>
552
553 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
554 to get the last character of a char[] buffer, not
555 name[sizeof(vptr_name)-1].
556
557 2002-10-14 Adam Fedor <fedor@gnu.org>
558
559 * symtab.h: New objc_specific struct.
560 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
561 (SYMBOL_DEMANGLED_NAME): Likewise.
562
563 2002-10-14 Adam Fedor <fedor@gnu.org>
564
565 * symfile.c (init_filename_language_table): Add ObjC file extension.
566
567 2002-10-14 Adam Fedor <fedor@gnu.org>
568
569 * utils.c (puts_filtered_tabular): New function.
570 (fprintf_symbol_filtered): Get ObjC demangled name.
571 * defs.h (puts_filtered_tabular): Declared.
572
573 2002-10-14 Kevin Buettner <kevinb@redhat.com>
574
575 * c-lang.h (c_type_print_varspec_prefix): Delete.
576 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
577 ``need_post_space'' parameter. Adjust all callers.
578
579 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
580
581 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
582 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
583 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
584 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
585
586 2002-10-13 Adam Fedor <fedor@gnu.org>
587
588 * source.c (print_source_lines): Update comments.
589
590 2002-10-13 Adam Fedor <fedor@gnu.org>
591
592 * valops.c (value_of_local): New function.
593 (value_of_this): Use it.
594 * value.h (value_of_local): Declared.
595
596 2002-10-13 Adam Fedor <fedor@gnu.org>
597
598 * parse.c: (length_of_subexp, prefixify_subexp): Handle
599 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
600
601 2002-10-12 Adam Fedor <fedor@gnu.org>
602
603 * language.c (binop_result_type): Add language_objc to case.
604 (integral_type): Likewise.
605 (character_type): Likewise.
606 (string_type): Likewise.
607 (boolean_type): Likewise.
608 (structured_type): Likewise.
609 (binop_type_check): Likewise.
610
611 2002-10-11 Adam Fedor <fedor@gnu.org>
612
613 * printcmd.c (address_info): Print 'self' for ObjC.
614
615 2002-10-11 Adam Fedor <fedor@gnu.org>
616
617 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
618 OP_SELF.
619
620 2002-10-11 Adam Fedor <fedor@gnu.org>
621
622 * language.h (CAST_IS_CONVERSION): Add language_objc.
623
624 2002-10-11 Adam Fedor <fedor@gnu.org>
625
626 * defs.h (enum language): Add language_objc.
627
628 2002-10-11 Klee Dienes <kdienes@apple.com>
629
630 * corefile.c (read_memory_typed_address): New function.
631 * gdbcore.h (read_memory_typed_address): Add prototype.
632 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
633 to read a value destined for a CORE_ADDR, not read_memory_integer.
634 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
635 (f77_get_dynamic_lowerbound): Ditto.
636
637 2002-10-11 Martin M. Hunt <hunt@redhat.com>
638
639 * utils.c (string_to_core_addr): After turning string into
640 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
641 which will do necessary sign-extension, etc.
642
643 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
644
645 * c-exp.y (THIS): Delete token and grammar rule.
646 (yylex): Don't return THIS.
647 * cp-valprint.c (vtbl_ptr_name_old): Delete.
648 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
649 * demangle.c (cplus_markers): Update comment. Put '$'
650 first. Remove CPLUS_MARKER.
651 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
652 * jv-exp.y (THIS): Delete token and grammar rule.
653 (yylex): Don't return THIS.
654 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
655 * objc-exp.y (THIS): Delete token and grammar rule.
656 (yylex): Don't return THIS.
657 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
658 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
659 (read_member_functions): Likewise for opname.
660 (read_tilde_fields): Use is_cplus_marker.
661
662 * defs.h (CPLUS_MARKER): Don't define.
663 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
664 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
665 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
666 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
667 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
668
669 * config/i386/tm-i386v4.h: Delete file.
670 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
671 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
672 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
673 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
674 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
675 * config/i386/i386sco5.mt (TM_FILE): Likewise.
676 * config/i386/i386v4.mt (TM_FILE): Likewise.
677 * config/i386/ncr3000.mt (TM_FILE): Likewise.
678
679 2002-10-10 Marko Mlinar <markom@opencores.org>
680
681 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
682 accidentially not commited 2002-10-09
683 * gdbarch.h, gdbarch.c: Re-generate.
684
685 2002-10-09 Marko Mlinar <markom@opencores.org>
686
687 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
688 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
689 * gdbarch.h, gdbarch.c: Re-generate.
690
691 2002-10-08 Petr Sorfa <petrs@caldera.com>
692
693 Revised and re-submitted by John Wolfe <jlw@caldera.com>
694
695 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
696 so we can work on more than one compilation unit at a time. This
697 helps prepare GDB to handle inter-CU die references.
698 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
699 the code to be defined before struct comp_unit_head.
700 (comp_unit_head): Added new members - offset, cu_head,
701 begin_die, next and dwarf2_abbrevs.
702 (dwarf2_abbrevs): Removed single static var; now member of
703 struct comp_unit_head.
704 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
705 members.
706 (psymtab_to_symtab_1): Changed to work with the new
707 struct comp_unit_head.
708 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
709 constructs the dwarf2_abbrevs[] inside the cu_header.
710 (dwarf2_empty_abbrev_table): Now expects a ptr to a
711 dwarf2_abbrev table to clean up.
712 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
713 handling of dwarf2_abbrevs inside the cu_header.
714 (read_partial_die): Now supports the call to the new
715 dwarf2_lookup_abbrev.
716 (read_full_die): Now supports the call to the new
717 dwarf2_lookup_abbrev.
718
719 2002-10-06 Christopher Faylor <cgf@redhat.com>
720
721 * Makefile.in (install-gdbtk): Add missing continuation backslash to
722 insure that shell variables, such as "transformed_name" are propagated
723 to later shell statements in rule.
724
725 2002-10-06 Mark Kettenis <kettenis@gnu.org>
726
727 * config/i386/nm-i386sco.h: Add protection against
728 multiple-inclusion. Include "i386/nm-i386v.h".
729 (REGISTER_U_ADDR): Remove define.
730 (i386_register_u_addr): Remove prototype.
731
732 2002-10-04 Michael Snyder <msnyder@redhat.com>
733
734 * m32r-stub.c (handle_exception): Make sure exception is "trap"
735 before treating it as a single-step event.
736
737 2002-10-03 Adam Fedor <fedor@gnu.org>
738
739 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
740 (objc_demangle): Remove assignment in if statements, Replace
741 free with xfree.
742 (add_msglist): Likewise.
743 (end_msglist): Likewise.
744 (complare_selectors): Likewise.
745 (selectors_info): Likewise.
746 (compare_classes): Likewise.
747 (classes_info): Likewise.
748 (print_object_command): Likewise.
749 (find_objc_msgcall_submethod): Replace PTR with void *.
750 * objc-lang.h: Remove check for __STDC__.
751
752 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
753
754 * ui-out.h (ui_out_field_fmt_int): New prototype.
755 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
756 of field width and alignment.
757 * stack.c (print_frame_info_base): When printing frame level, use
758 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
759 PR gdb/192
760
761 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
762
763 * MAINTAINERS: Add self to Write After Approval list.
764
765 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
766
767 * infcmd.c (interrupt_target_command_wrapper): Delete.
768 (interrupt_target_command): Make non static.
769 (nofp_registers_info): Make static.
770 * stack.c (return_command_wrapper): Delete.
771 (return_command): Make non static.
772
773 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
774
775 * event-top.c (gdb_setup_readline): New function. Code moved from
776 _initialize_event_loop().
777 (_initialize_event_loop): Call gdb_setup_readline().
778
779 2002-10-02 Andrew Cagney <ac131313@redhat.com>
780
781 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
782 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
783 * gdbarch.h, gdbarch.c: Re-generate.
784
785 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
786
787 Fix PR gdb/778
788 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
789 before recursing.
790 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
791 of fill_in_vptr_fieldno.
792
793 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
794
795 * inferior.h (registers_info, stepi_command, nexti_command,
796 continue_command, interrupt_target_command): Export from infcmd.c.
797 * frame.h (args_info, selected_frame_level_changed_hook,
798 return_command): Export from stack.c.
799 * v850ice.c (stepi_command, nexti_command, continue_command): use
800 prototypes from inferior.h.
801 * tracepoint.c (registers_info, args_info, locals_info): Use
802 prototypes from frame.h and inferior.h.
803 * Makefile.in (mi-main.o): Add dependency on frame.h.
804
805 2002-10-02 Andrew Cagney <ac131313@redhat.com>
806
807 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
808 value in register 3 adjusted by ppc_gp0_regnum.
809
810 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
811
812 2002-10-02 Marko Mlinar <markom@opencores.org>
813
814 * MAINTAINERS: Add myself to the Write After Approval list.
815
816 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
817
818 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
819 of the section for the N64 ABI, fixed.
820
821 * config/mips/tm-irix6.h: Include solib.h.
822
823 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
824
825 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
826 GNU operators.
827
828 2002-10-01 Andrew Cagney <ac131313@redhat.com>
829
830 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
831 and that "mi0" syntax has been removed.
832
833 2002-09-30 David Carlton <carlton@math.stanford.edu>
834
835 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
836 * ppc-sysv-tdep.c: #include "gdb_string.h".
837 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
838 pacify GCC.
839
840 2002-10-01 Andrew Cagney <ac131313@redhat.com>
841
842 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
843 "vrsave"'s register number.
844
845 2002-09-30 Andrew Cagney <ac131313@redhat.com>
846
847 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
848 use frame_unwind_signed_register to obtain the PC.
849 (mips_frame_chain): Handle a generic dummy frame.
850 (mips_init_extra_frame_info): When a generic dummy frame, don't
851 re-compute the frame base.
852 (mips_pop_frame): Handle generic dummy frames.
853 (mips_gdbarch_init): When generic dummy frames, set
854 use_generic_dummy_frames, push_dummy_frame to
855 generic_push_dummy_frame, pc_in_call_dummy to
856 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
857 generic_save_dummy_frame_tos.
858
859 2002-09-30 Andrew Cagney <ac131313@redhat.com>
860
861 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
862 against TOP when TOP was explictly set.
863 (generic_push_dummy_frame): Set TOP to zero.
864
865 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
866
867 * event-loop.c (start_event_loop): Rename variable 'result' to
868 'gdb_result', to avoid conflicts with upcoming intepreters changes.
869
870 2002-09-30 Keith Seitz <keiths@redhat.com>
871
872 * gdb-events.sh (selected_thread_changed): New event.
873 * gdb-events.c: Regenerated.
874 * gdb-events.h: Regenerated.
875
876 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
877
878 * MAINTAINERS: Add self to Write After Approval list.
879
880 2002-09-30 Fernando Nasser <fnasser@redhat.com>
881
882 * disasm.c: New file.
883 * disasm.h: New file.
884 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
885 (compare_lines): Ditto.
886 (dump_insns): Ditto.
887 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
888 argument.
889 (do_assembly_only): Ditto.
890 (do_disassembly): Renamed to gdb_disassembly and moved to
891 disasm.c. Sdded uiout argument.
892 * Makefile.in: Add new files. Reorder SFILES list. Update
893 dependencies. Include libgdb.a later in the insight executable.
894
895 2002-09-29 Andrew Cagney <ac131313@redhat.com>
896
897 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
898 bfd/elf64-alpha-fbsd.c.
899
900 2002-09-29 Andrew Cagney <ac131313@redhat.com>
901
902 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
903 i386gnu-tdep.c.
904
905 2002-09-29 Andrew Cagney <ac131313@redhat.com>
906
907 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
908 __FUNCTION__.
909 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
910 function name.
911 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
912 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
913 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
914 (S_msg_sig_post_reply): Ditto.
915
916 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
917
918 * sh-tdep.c (sh_use_struct_convention): Use definition according
919 to ABI.
920 (sh_push_arguments): Store in register with correct endianess.
921 (sh_default_store_return_value): Ditto.
922 (sh_gdbarch_init): Set sizeof long double to 8.
923
924 2002-09-27 Mark Kettenis <kettenis@gnu.org>
925
926 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
927 Fix some whitespace problems.
928
929 2002-09-27 David Carlton <carlton@math.stanford.edu>
930
931 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
932 (mcore-tdep.o): Ditto.
933 (ns32k-tdep.o): Ditto.
934 (ns32knbsd-tdep.o): Ditto.
935 (sh3-rom.o): Ditto.
936 (vax-tdep.o): Ditto.
937 * cris-tdep.c: #include "gdb_string.h"
938 * mcore-tdep.c: Ditto.
939 * ns32k-tdep.c: Ditto.
940 * ns32knbsd-tdep.c: Ditto.
941 * sh3-rom.c: Ditto.
942 * vax-tdep.c: Ditto.
943
944 2002-09-27 David Carlton <carlton@math.stanford.edu>
945
946 * config/djgpp/fnchange.lst: Add entries for
947 gdb/testsuite/gdb.c++/m-static files.
948
949 2002-09-27 Jim Wilson <wilson@redhat.com>
950
951 * MAINTAINERS: Add myself to the Write After Approval list.
952
953 2002-09-26 Martin M. Hunt <hunt@redhat.com>
954
955 * mips-tdep.c (find_proc_desc): Initialize startaddr.
956
957
958 2002-09-26 Andrew Cagney <ac131313@redhat.com>
959
960 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
961 frame.
962
963 2002-09-26 Andrew Cagney <ac131313@redhat.com>
964
965 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
966 (rs6000_struct_return_address): Delete variable.
967 (rs6000_store_struct_return): Update.
968 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
969 deprecated_extract_struct_value_address.
970 (rs6000_frame_align): New function.
971 (rs6000_gdbarch_init): Set frame_align.
972
973 2002-09-26 Andrew Cagney <ac131313@redhat.com>
974
975 From Grace Sainsbury <graces@redhat.com>:
976 * Makefile.in (gdbtk-main.o): New target.
977 (gdb.o): New target.
978 (main_h): Define.
979 (main.o): Update dependencies.
980 (gdb$(EXEEXT)): Add gdb.o.
981 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
982 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
983 (SUBDIR_GDBTK_CLEAN): Set.
984 (install-gdbtk): Install the insight binary.
985 (uninstall-gdbtk): New target.
986 (all-gdbtk, clean-gdbtk): New rule.
987 * top.c (use_windows): Default to zero.
988 * main.c: Include "main.h".
989 (main): Delete.
990 (struct captured_main_args): Delete.
991 (gdb_main): New function.
992 * main.h: New file.
993 * gdb.c: New File.
994
995 2002-09-25 Andrew Cagney <cagney@redhat.com>
996
997 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
998 (frame_map_regnum_to_name): New function.
999 (frame_map_name_to_regnum): New function.
1000 * frame.h (frame_map_name_to_regnum): Declare.
1001 (frame_map_regnum_to_name): Declare.
1002 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1003 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1004 * parse.c: Do not include "builtin-regs.h".
1005 (target_map_name_to_register): Delete function.
1006 (write_dollar_variable): Use frame_map_name_to_regnum.
1007 * parser-defs.h (target_map_name_to_register): Delete declaration.
1008 * expprint.c: Include "frame.h".
1009 (print_subexp): Use frame_map_regnum_to_name.
1010 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1011 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1012
1013 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1014
1015 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1016 wasn't saved, and the next innermost frame is a dummy, return the
1017 dummy frame's link register.
1018
1019 2002-09-24 Jim Blandy <jimb@redhat.com>
1020
1021 Fix from Paul Breed:
1022 * main.c (captured_main): Add a `break' after the case for 'b'.
1023
1024 2002-09-24 Keith Seitz <keiths@redhat.com>
1025
1026 * varobj.c (c_type_of_child): Use get_target_type instead
1027 of TYPE_TARGET_TYPE.
1028
1029 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1030
1031 * source.c (get_current_or_default_source_symtab_and_line): Remove
1032 function.
1033 (set_default_source_symtab_and_line): New function. Attempts to
1034 determine a source file to list lines from if one is not currently
1035 defined.
1036 (get_current_source_symtab_and_line): Initialize sal.pc and
1037 sal.end fields.
1038 (set_current_source_symtab_and_line): Mark argument as const.
1039 * source.h: Update declarations and comments.
1040 * linespec.c (decode_line_1): Replace call to removed routine above.
1041 * stack.c (print_frame_info_base): Ditto.
1042 * cli/cli-cmds.c (edit_command): Ditto.
1043 (list_command): Ditto.
1044
1045 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1046
1047 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1048 sal.pc and sal.end fields.
1049 (get_current_or_default_source_symtab_and_line): Ditto.
1050 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1051 so we do not cause a new source symtab to be searched for (reverting an
1052 unintentional change from the 2002-09-20 patch).
1053 * scm-lang.c (scm_unpac): Ditto.
1054
1055 2002-09-21 Andrew Cagney <cagney@redhat.com>
1056
1057 * complaints.c (symfile_explanations): Remove new-line from
1058 ``isolated_message''.
1059 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1060 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1061
1062 2002-09-20 Nick Clifton <nickc@redhat.com>
1063
1064 * NEWS: Announce that V850EA ISA is no longer supported.
1065 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1066
1067 2002-09-20 David Carlton <carlton@math.stanford.edu>
1068
1069 * Makefile.in (c-lang.o): Correct dependencies.
1070 (utils.o): Gather dependencies.
1071 (charset.o): Move.
1072 * c-lang.c: #include "gdb_string.h"
1073
1074 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1075
1076 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1077 * cli/cli-cmds.c (list_command): New function. Implements the new
1078 cli edit command.
1079 (_init_cli_cmds): Add new command definition.
1080 * gdb.1: Document edit command.
1081 * doc/gdb.texinfo: Document edit command.
1082
1083 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1084
1085 * source.c: Make global variables current_source_symtab and
1086 current_source_line static.
1087 (list_command): Moved to cli/cli-cmds.c.
1088 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1089 (get_first_line_listed): New accessor function.
1090 (get_lines_to_list): New accessor function.
1091 (get_current_source_symtab_and_line): New function. Retrieves the
1092 position in the source code that we consider current.
1093 (get_current_or_default_source_symtab_and_line): New function.
1094 Like the above but attempts to determine a default position if one
1095 is not currently defined.
1096 (set_current_source_symtab_and_line): New function. Sets the source
1097 code position considered current and returns the previously set one.
1098 (clear_current_source_symtab_and_line): Reset stored information about
1099 a current source line.
1100 (_initialize_source): Remove registration for the "list" command and
1101 its alias.
1102 * source.h: Add declarations for the new functions above.
1103 * symtab.h: Remove declarations for the global variables mentioned
1104 above.
1105 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1106 obtain current source line.
1107 * linespec.c (decode_line_1): Ditto.
1108 * macroscope.c (default_macro_scope): Ditto.
1109 * scm-lang.c (scm_unpac): Ditto.
1110 * stack.c (print_frame_info_base): Ditto.
1111 * symfile.c (clear_symtab_users): Ditto.
1112 * symtab.c (decode_line_spec): Ditto.
1113 * cli/cli-cmds.c (list_command): Moved here from source.c.
1114 (ambiguous_line_spec): Moved here from source.c.
1115 (_init_cli_cmds): Add definition for "list" and its alias.
1116 * Makefile.in: Update dependencies.
1117
1118 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1119
1120 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1121 with what gcc thinks is correct.
1122
1123 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1124
1125 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1126 multiple register push instruction.
1127
1128 2002-09-19 Jim Blandy <jimb@redhat.com>
1129
1130 Add support for distinct host and target character sets.
1131 * charset.c, charset.h: New files.
1132 * c-exp.y: #include "charset.h".
1133 (yylex): Convert character and string literals to the target
1134 character set, before returning them as the semantic value of the
1135 token.
1136 * c-lang.c: #include "charset.h".
1137 (c_emit_char): Use charset-specific methods to recognize
1138 characters with backslash escape forms, to decide which characters
1139 to print literally and which to print using numeric escape
1140 sequences, and to convert target characters to host characters
1141 before printing.
1142 * utils.c: #include "charset.h".
1143 (no_control_char_error): New function.
1144 (parse_escape): Use charset-specific methods to recognize
1145 backslash escapes, parse `control character' notation, and convert
1146 characters from the host character set to the target character set.
1147 * configure.in: Set the default host character set.
1148 Check where to find iconv, and what its argument types might be.
1149 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1150 * Makefile.in (SFILES): List charset.c.
1151 (COMMON_OBS): List charset.o.
1152 (charset.o): New rule.
1153 (charset_h): New header dependency variable.
1154 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1155 (LIBICONV): New variable, set by configure.
1156 (CLIBS): Include $(LIBICONV) here.
1157 * aclocal.m4, config.in, configure: Regenerated.
1158
1159 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1160
1161 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1162 bison 1.35 warning.
1163
1164 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1165
1166 * gdb_mbuild.sh: New file.
1167
1168 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1169
1170 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1171
1172 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1173
1174 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1175 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1176 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1177 valops.c, value.h: Revert previous change.
1178
1179 2002-09-18 Michael Snyder <msnyder@redhat.com>
1180
1181 Preliminary support for Objective-C:
1182 * defs.h (language_objc): New enum value.
1183 (puts_filtered_tabular): Declaration only, exported from utils.c.
1184 (skip_quoted): Delete, declared in completer.h.
1185 * c-exp.y: Include completer.h.
1186 * p-exp.y: Ditto.
1187 * jv-exp.y: Ditto.
1188 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1189 New operator enum values.
1190 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1191 * language.c (binop_result_type): Handle language_objc case.
1192 (integral_type, character_type, string_type, boolean_type,
1193 structured_type, binop_type_check): Ditto.
1194 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1195 (struct objc_specific): Add to general_symbol_info.
1196 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1197 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1198 * parser-defs.h (struct objc_class_str): New struct type.
1199 (start_msglist, end_msglist, add_msglist): Declaration only,
1200 exported from objc-lang.c.
1201 * value.h (value_of_local, value_nsstring,
1202 call_function_by_hand_expecting_type): Exported from valops.c.
1203 * valops.c (find_function_addr): Export.
1204 (call_function_by_hand_expecting_type): New function.
1205 (value_of_local): New function.
1206 * symfile.c (init_filename_language_table): Add ".m" extension
1207 for Objective-C.
1208 * utils.c (puts_filtered_tabular): New function.
1209 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1210 (set/show demangle): Extend help-string to refer to ObjC.
1211 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1212 * stabsread.c (symbol_reference_defined): Objective-C symbols
1213 may contain colons: make allowances when scanning stabs strings
1214 for colons.
1215 (objc_find_colon): New function.
1216 * printcmd.c (address_info): If language == objc then print
1217 "self" instead of "this".
1218 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1219 OP_NSSTRING, and OP_SELF.
1220 (prefixify_subexp): Ditto.
1221 * source.c (print_source_lines): Mention objc in comment.
1222 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1223 method names.
1224
1225 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1226
1227 * complaints.h: Update copyright.
1228 (struct complaints): Declare.
1229 (struct complaint): Make `message' constant.
1230 (internal_complaint): Declare.
1231 (complaint): Declare.
1232 (complaint_root): Delete declaration.
1233 (symfile_complaints): Delete declaration.
1234 (struct complaints): Add opaque declaration.
1235 (clear_complaints): Add a complaints parameter.
1236 * complaints.c: Update copyright.
1237 (enum complaint_series): Define.
1238 (complaint_root): Delete.
1239 (struct complaints): Define.
1240 (complaint_sentinel, symfile_complaint_book): New variables.
1241 (symfile_explanations, symfile_complaints): New variables.
1242 New variables.
1243 (get_complaints): New function.
1244 (vcomplaint): New function.
1245 (complaint): New function.
1246 (internal_complaint): New function.
1247 (complain): Call vcomplain with symfile_complaint.
1248 (clear_complaints): Rewrite.
1249 (_initialize_complaints): Use add_setshow_command.
1250 * Makefile.in (complaints.o): Update dependencies.
1251 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1252 to call to clear_complaints.
1253 (new_symfile_objfile, reread_symbols): Ditto.
1254 (oldsyms_complaint): Delete.
1255 (empty_symtab_complaint, unknown_option_complaint): Delete.
1256 (free_named_symtabs): Use complaint instead of complain.
1257
1258 2002-09-18 Michael Snyder <msnyder@redhat.com>
1259
1260 Contributed by Apple Computer, Inc. Merged with current sources
1261 by Adam Fedor <fedor@doc.com> [cagney].
1262
1263 * objc-lang.c: First clean-up round: comments, indentation.
1264 * objc-lang.h: Ditto.
1265 * objc-lang.y: Ditto.
1266
1267 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1268
1269 * maint.c (maintenance_internal_error): Print the parameter as the
1270 error message.
1271 (maintenance_internal_warning): New function.
1272 (_initialize_maint_cmds): Add command `maint internal-warning'.
1273
1274 * defs.h (internal_warning, internal_vwarning): Declare.
1275 * utils.c (struct internal_problem): Define.
1276 (internal_vproblem): New function.
1277 (internal_warning): New function.
1278 (internal_vwarning): New function.
1279 (internal_warning_problem, internal_error_problem): New variables.
1280 (internal_verror): Just call internal_vproblem.
1281
1282 2002-09-18 Michael Snyder <msnyder@redhat.com>
1283
1284 * objc-lang.c: New file, support for Objective-C.
1285 Preliminary check-in, not yet integrated into gdb.
1286 * objc-lang.h: New file.
1287 * objc-exp.y: New file.
1288
1289 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1290
1291 * infrun.c (signal_stop_update): Convert definition to ISO C.
1292 (signal_print_update): Ditto.
1293 (signal_pass_update): Ditto.
1294 * inflow.c (terminal_save_ours): Ditto.
1295
1296 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1297 comments.
1298
1299 * config/djgpp/fnchange.lst: Handle name clashes between
1300 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1301 bfd/coff-tic80.c.
1302
1303 * i386-linux-tdep.h: Fix tipo.
1304
1305 2002-09-18 Adam Fedor <fedor@gnu.org>
1306
1307 * MAINTAINERS: Add myself to the Write After Approval list.
1308
1309 2002-09-18 Jim Blandy <jimb@redhat.com>
1310
1311 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1312 texthigh and textlow to reader-specific structs caused
1313 objfile_relocate to miss them. This is fixable, but the work that
1314 the change was supposed to prepare GDB for never got done anyway.
1315
1316 2002-09-18 David Carlton <carlton@math.stanford.edu>
1317
1318 * MAINTAINERS: Alphabetize Write After Approval list.
1319
1320 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1321
1322 Fix PR gdb/709
1323 * values.c (value_static_field): Call read_var_value.
1324
1325 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1326
1327 * valops.c (hand_function_call): Align the initial stack pointer
1328 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1329 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1330 return value.
1331 * mips-tdep.c (mips_frame_align): New function.
1332 (mips_gdbarch_init): Set frame_align.
1333 * gdbarch.sh (FRAME_ALIGN): New method.
1334 * gdbarch.h, gdbarch.c: Re-generate.
1335
1336 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1337
1338 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1339 registers.
1340
1341 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1342
1343 * NEWS: Mention that MIPS $fp behavior changed.
1344 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1345 reference to FP_REGNUM.
1346 (mipsnbsd_cannot_store_register): Ditto.
1347 * mips-linux-nat.c: Update copyright.
1348 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1349 (mips_linux_cannot_store_register): Ditto.
1350 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1351 * config/mips/tm-mips.h: Update copyright.
1352 (FP_REGNUM): Delete macro.
1353 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1354 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1355 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1356 (mips_r3041_reg_names, mips_r3051_reg_names)
1357 (mips_r3081_reg_names): Replace "fp" with "".
1358 Fix PR gdb/480.
1359
1360 2002-09-17 Theodore A. Roth <troth@verinet.com>
1361
1362 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1363 generic_read_register_dummy() (PR gdb/703).
1364 (avr_push_return_address): #if 0 out unused vars.
1365 (avr_gdbarch_init): Enable use of avr_push_return_address().
1366
1367 2002-09-17 Michael Snyder <msnyder@redhat.com>
1368
1369 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1370 RTE will take care of it.
1371
1372 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1373
1374 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1375 invalid, return SP_REGNUM.
1376
1377 2002-09-17 Michael Snyder <msnyder@redhat.com>
1378
1379 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1380 point registers without sign extension.
1381
1382 2002-09-17 Andrew Cagney <cagney@redhat.com>
1383
1384 * blockframe.c (deprecated_read_register_dummy): Rename
1385 generic_read_register_dummy.
1386 * frame.c (frame_unwind_signed_register): New function.
1387 (frame_unwind_unsigned_register): New function.
1388 * frame.h (frame_unwind_signed_register): Declare.
1389 (frame_unwind_unsigned_register): Declare.
1390 (deprecated_read_register_dummy): Rename
1391 generic_read_register_dummy.
1392
1393 * h8300-tdep.c (h8300_frame_chain): Update.
1394 (h8300_frame_saved_pc): Update.
1395 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1396 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1397 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1398 (s390_frame_chain): Update.
1399 * v850-tdep.c (v850_find_callers_reg): Update.
1400 (v850_frame_saved_pc): Update.
1401 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1402 (m32r_find_callers_reg): Update.
1403 (m32r_frame_saved_pc): Update.
1404 * sh-tdep.c (sh_find_callers_reg): Update.
1405 (sh64_get_saved_pr): Update.
1406 (sh_init_extra_frame_info): Update.
1407 (sh_init_extra_frame_info): Update.
1408 (sh64_init_extra_frame_info): Update.
1409 (sh64_init_extra_frame_info): Update.
1410 * mcore-tdep.c (mcore_find_callers_reg): Update.
1411 (mcore_frame_saved_pc): Update.
1412 (mcore_init_extra_frame_info): Update.
1413 * i386-tdep.c (i386_frame_saved_pc): Update.
1414 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1415 (ia64_init_extra_frame_info): Update.
1416 (ia64_init_extra_frame_info): Update.
1417 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1418 * cris-tdep.c (cris_init_extra_frame_info): Update.
1419 * avr-tdep.c (avr_frame_chain): Update.
1420 (avr_init_extra_frame_info): Update.
1421 (avr_frame_saved_pc): Update.
1422 * arm-tdep.c (arm_find_callers_reg): Update.
1423 (arm_init_extra_frame_info): Update.
1424 (arm_frame_saved_pc): Update.
1425
1426 2002-09-17 Tom Tromey <tromey@redhat.com>
1427
1428 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1429 is "'".
1430
1431 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1432
1433 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1434 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1435 NEXT_PROLOGUE_INSN.
1436 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1437 NEXT_PROLOGUE_INSN.
1438
1439 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1440
1441 * osfsolib.c: Remove file, replaced by solib-osf.c.
1442 * Makefile.in: Remove compilation rules for osfsolib.c.
1443
1444 2002-09-16 David Carlton <carlton@math.stanford.edu>
1445
1446 * cp-valprint.c (cp_print_class_method): Correct args to
1447 check_stub_method_group.
1448
1449 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1450
1451 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1452 `set architecture'. Unify naming convention of functions.
1453 (h8300_skip_prologue): Improve prologue analysis.
1454 (h8300_push_arguments): Rewritten to more closely match GCC's
1455 bizarre argument-passing behavior, along with the comment describing
1456 said behavior.
1457 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1458 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1459 sim, remote-e7000.c, remote-hms.c and remote.c
1460
1461 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1462
1463 * i386-tdep.c (gdb_print_insn_i386): Removed.
1464 (i386_print_insn): New function.
1465 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1466 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1467 tm_print_insn_info.
1468
1469 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1470
1471 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1472 zero.
1473
1474 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1475
1476 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1477 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1478 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1479
1480 2002-09-13 Christopher Faylor <cgf@redhat.com>
1481
1482 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1483
1484 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * gdbtypes.c (check_stub_method): Make static.
1487 (check_stub_method_group): New function.
1488 * gdbtypes.h: Update prototypes.
1489 * cp-support.c: New file.
1490 * cp-support.h: New file.
1491
1492 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1493 (update_method_name_from_physname): New function.
1494 (read_member_functions): Correct method names for operators
1495 and v3 constructors/destructors. Separate v2 constructors and
1496 destructors.
1497 * Makefile.in (stabsread.o): Update dependencies.
1498 (SFILES): Add cp-support.c.
1499 (COMMON_OBS): Add cp-support.o.
1500 (cp_support_h, cp-support.o): Add.
1501
1502 * cp-valprint.c (cp_print_class_method): Call
1503 check_stub_method_group instead of check_stub_method. Remove
1504 extraneous QUITs.
1505 * p-valprint.c (pascal_object_print_class_method): Likewise.
1506 * valops.c (search_struct_method): Likewise.
1507 (find_method_list, value_struct_elt_for_reference): Likewise.
1508
1509 2002-09-13 Andrew Cagney <cagney@redhat.com>
1510
1511 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1512 * gdbarch.h, gdbarch.c: Regenerate.
1513
1514 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1515
1516 * frame.c (find_saved_register): Delete function.
1517 * frame.h (find_saved_register): Delete declaration.
1518 Fix PR gdb/631.
1519
1520 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1521
1522 * mips-tdep.c (read_next_frame_reg): Re-hack using
1523 frame_register_unwind.
1524
1525 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1526
1527 * mips-tdep.c (mips_get_saved_register): Re-hack using
1528 frame_register_unwind.
1529
1530 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1531
1532 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1533 vector. Will be useful for Interix.
1534 * gdbarch.h, gdbarch.c: Regenerate.
1535
1536 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1537 name of the malloc function by NAME_OF_MALLOC.
1538
1539 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1540
1541 * value.h (find_function_in_inferior): Add const keyword to
1542 one of the parameters. Allows us to invoke this function with
1543 a const char *.
1544 * valops.c (find_function_in_inferior): Likewise.
1545
1546 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1547
1548 * exec.c (xfer_memory): Fix compilation warning with old versions
1549 of GCC.
1550 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1551
1552 2002-09-12 David Carlton <carlton@math.stanford.edu>
1553
1554 * symtab.h: Run through gdb_indent.h.
1555 Add 2002 to Copyright year list.
1556
1557 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1558
1559 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1560 mach constants.
1561 * MAINTAINERS: Add myself to write after approval list.
1562
1563 2002-09-11 J. Brobecker <brobecker@gnat.com>
1564
1565 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1566
1567 2002-09-11 J. Brobecker <brobecker@gnat.com>
1568
1569 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1570 Interix.
1571
1572 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1573
1574 * procfs.c (do_detach): Clear current signal, not just fault.
1575 Corrects problem with breakpoint trap signal leaking to detached
1576 process on Tru64.
1577
1578 2002-09-10 Michael Snyder <msnyder@redhat.com>
1579
1580 * buildsym.c (finish_block): Protect against null pointer.
1581
1582 2002-09-10 Andrew Cagney <cagney@redhat.com>
1583
1584 * infcmd.c (default_print_registers_info): Send all output to
1585 ``file'' instead of ``gdb_stdout''.
1586
1587 2002-09-10 Michael Snyder <msnyder@redhat.com>
1588
1589 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1590 LONGEST, and use signed register read (addresses are sign-
1591 extended for mips).
1592
1593 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1594
1595 * event-loop.c (gdb_do_one_event): Make public.
1596 * event-loop.h (gdb_do_one_event): Declare.
1597
1598 2002-09-10 Jeff Law <law@redhat.com>
1599
1600 * infttrace.c (child_resume): Simplify and rework to avoid
1601 TT_PROC_CONTINUE.
1602
1603 2002-09-09 Fred Fish <fnf@intrinsity.com>
1604
1605 * printcmd.c (print_scalar_formatted): "len" is the number of
1606 target bytes, NOT the number of target bits.
1607
1608 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1609
1610 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1611 * top.c (init_main): Set rl_terminal_name.
1612
1613 2002-09-08 Aidan Skinner <aidan@velvet.net>
1614
1615 * ada-lang.c (ada_array_bound, ada_type_match,
1616 _initialize_ada_language): Fix K&R definitions.
1617 * ada-tasks.c (get_current_task): Fix K&R definitions.
1618 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1619
1620 2002-09-07 Christopher Faylor <cgf@redhat.com>
1621
1622 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1623 Add XP.
1624
1625 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1626
1627 * i386-tdep.c (i386_register_virtual_type,
1628 i386_register_convertible, i386_register_convert_to_virtual,
1629 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1630 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1631 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1632 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1633 Don't set push_arguments twice.
1634
1635 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1636 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1637 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1638 sigtramp_end to NULL.
1639 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1640 defines.
1641 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1642
1643 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1644 whitespace.
1645
1646 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1647 * gdbarch.h, gdbarch.c: Re-generate.
1648 * blockframe.c (find_pc_sect_partial_function): Convert to use
1649 SIGTRAMP_START_P predicate.
1650
1651 2002-09-05 Michael Snyder <msnyder@redhat.com>
1652
1653 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1654 generic_dummy_frame method and old method. Also distinguish
1655 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1656 (arm_extract_return_value): Use new regcache method.
1657
1658 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1659 adjustment that doesn't conform to the ABI.
1660 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1661 saved regcache, not from current regcache.
1662
1663 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1664
1665 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1666 * README: Update.
1667
1668 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1669
1670 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1671 if arm_apcs_32 is false.
1672
1673 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1674
1675 GDB 5.3 branch created.
1676
1677 2002-09-03 Theodore A. Roth <troth@verinet.com>
1678
1679 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1680 generic_unwind_get_saved_register.
1681
1682 2002-09-03 David Carlton <carlton@math.stanford.edu>
1683
1684 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1685 argument (PR gdb/653). Update call to smash_to_method_type.
1686 (read_structure_scope): Update call to dwarf2_add_member_fn.
1687
1688 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1689
1690 * x86-64-linux-tdep.c: Include gdb_string.h
1691 * x86-64-linux-nat.c: Ditto.
1692
1693 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1694
1695 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1696 when YYDEBUG is set to 1.
1697 * c-exp.y: Likewise.
1698 * f-exp.y: Likewise.
1699 * jv-exp.y: Likewise.
1700 * m2-exp.y: Likewise.
1701 * p-exp.y: Likewise.
1702
1703 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1704
1705 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1706 dependency list.
1707 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1708 solib_svr4_fetch_link_map_offsets to
1709 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1710 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1711 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1712 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1713 solib-svr4.o, and solib-legacy.o.
1714 * config/i386/tm-nbsd.h: Include solib.h.
1715
1716 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1717
1718 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1719 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1720 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1721 comment noting that this needs its own target configuration.
1722 * config/i386/nbsd.mt: New file.
1723 * config/i386/nbsdaout.mt: Remove.
1724 * config/i386/nbsdelf.mt: Ditto.
1725 * config/i386/tm-nbsdaout.h: Ditto.
1726
1727 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1728
1729 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1730 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1731 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1732 tdep->sigtramp_end.
1733 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1734 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1735 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1736
1737 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1738
1739 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1740 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1741 * i386-tdep.h (i386bsd_init_abi): New prototype.
1742 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1743 function declaration.
1744 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1745 for NetBSD-a.out or NetBSD-ELF.
1746 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1747 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1748 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1749 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1750 and nbsd-tdep.h.
1751 (i386nbsd_pc_in_sigtramp): New function.
1752 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1753 i386nbsd_pc_in_sigtramp.
1754 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1755 and i386nbsdelf_init_abi OS ABI handlers.
1756 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1757 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1758
1759 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1760
1761 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1762 registers if the target really has them.
1763
1764 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1765
1766 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1767 than nbsd-tdep.h.
1768
1769 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1770
1771 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1772 list.
1773 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1774 (alphanbsd_skip_sigtramp_frame): New functions.
1775 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1776 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1777 to alphanbsd_sigcontext_addr.
1778
1779 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1780
1781 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1782 list.
1783 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1784 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1785 nbsd_pc_in_sigtramp.
1786 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1787 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1788 * nbsd-tdep.c: Include gdb_string.h.
1789 (nbsd_pc_in_sigtramp): New function.
1790 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1791 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1792 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1793 ppcnbsd_pc_in_sigtramp.
1794 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1795 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1796 shnbsd_pc_in_sigtramp.
1797 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1798 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1799 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1800
1801 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1802
1803 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1804 watchpoints to NULL.
1805 (insert_breakpoints): set val field of watchpoints if NULL.
1806
1807
1808 2002-08-29 Jim Blandy <jimb@redhat.com>
1809
1810 * symtab.c (lookup_symbol_aux): In the cases where we find a
1811 minimal symbol of an appropriate name and use its address to
1812 select a symtab to read and search, use `name' (as passed to us)
1813 as the demangled name when searching the symtab's global and
1814 static blocks, not the minsym's name.
1815
1816 2002-08-29 Keith Seitz <keiths@redhat.com>
1817
1818 * stack.c (print_frame_info_base): Always set current_source_symtab
1819 and current_source_line.
1820
1821 2002-08-29 Donn Terry <donnte@microsoft.com>
1822
1823 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1824
1825 2002-08-28 Keith Seitz <keiths@redhat.com>
1826
1827 * stack.c (select_frame): Add FIXME concerning selected-frame
1828 events.
1829 (select_frame_command): Send selected-frame-level-changed
1830 event notification, but only if the level actually changed.
1831 (up_silently_base): Add selected-frame-level-changed event
1832 notification.
1833 (down_silently_base): Likewise.
1834
1835 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1836
1837 * Makefile.in: Update dependencies for all gdb/*.c files.
1838
1839 2002-08-27 Tom Tromey <tromey@redhat.com>
1840
1841 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1842 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1843 Update dependencies.
1844 * i387-tdep.c: Include gdb_string.h.
1845 * osabi.c: Likewise.
1846 * i386-linux-nat.c: Likewise.
1847 * lin-lwp.c: Likewise.
1848 * ax-gdb.c: Likewise.
1849 * signals/signals.c: Likewise.
1850 * jv-valprint.c: Likewise.
1851 * p-lang.c: Likewise.
1852 * c-valprint.c: Likewise.
1853 * cp-abi.c: Likewise.
1854
1855 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1856
1857 * cli/cli-script.h (copy_command_lines): Export.
1858 * breakpoint.c: Include cli/cli-script.h.
1859 * Makefile.in (breakpoint.o): Update dependencies.
1860
1861 2002-08-26 Michael Snyder <msnyder@redhat.com>
1862
1863 * breakpoint.c (insert_breakpoints): Protect all references
1864 to 'process_warning'. Shorten long lines.
1865
1866 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1867
1868 * cli/cli-script.c (copy_command_lines): New function.
1869 * defs.h (copy_command_lines): Export.
1870 * testsuite/gdb.base/commands.exp: New tests for commands
1871 attached to a temporary breakpoint, and for commands that
1872 delete the breakpoint they are attached to.
1873
1874 2002-08-26 Michael Snyder <msnyder@redhat.com>
1875
1876 * breakpoint.c (bpstat_stop_status): Instead of copying the
1877 pointer to the breakpoint commands struct, make a new copy
1878 of the struct and point to that.
1879 (bpstat_clear): Free the commands struct.
1880 (bpstat_clear_actions): Free the commands struct.
1881 (bpstat_do_actions): Free the command actions. Also execute
1882 the local cleanups, instead of deleting them.
1883 (delete_breakpoint): Leave the commands field of the bpstat
1884 chain alone -- it will be freed later.
1885
1886 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1887
1888 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1889 deleted in 2002-08-20 commit. This function is still used by
1890 ppc-linux-nat.c.
1891
1892 2002-08-26 Keith Seitz <keiths@redhat.com>
1893
1894 * gdb-events.sh: Add selected-frame-level-changed event.
1895 * gdb-events.c: Regenerated.
1896 * gdb-events.h: Regenerated.
1897
1898 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1899
1900 Fix PR gdb/393:
1901 * inflow.c (terminal_save_ours): New function to save terminal
1902 settings.
1903 * inferior.h (terminal_save_ours): Declare.
1904 * target.c (debug_to_terminal_save_ours): New function.
1905 (cleanup_target): Defaults to_terminal_save_ours.
1906 (update_current_target): Inherit to_terminal_save_ours.
1907 (setup_target_debug): Set to_terminal_save_ours.
1908 * target.h (target_terminal_save_ours): New to save terminal settings.
1909 (target_ops): New member to_terminal_save_ours.
1910 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1911 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1912 * inftarg.c (init_child_ops): Likewise.
1913 * m3-nat.c (init_m3_ops): Likewise.
1914 * procfs.c (init_procfs_ops): Likewise.
1915 * wince.c (init_child_ops): Likewise.
1916 * win32-nat.c (init_child_ops): Likewise.
1917 * sol-thread.c (init_sol_thread_ops): Likewise.
1918
1919 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1920
1921 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1922 use regcache_* functions.
1923 (i386_gdbarch_init): Set store_return_value instead of
1924 deprecated_store_return_value.
1925
1926 * regcache.c (regcache_raw_write_signed,
1927 regcache_raw_write_unsigned): New functions.
1928 * regcache.h (regcache_raw_write_signed,
1929 regcache_raw_write_unsigned): New prototypes.
1930
1931 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1932
1933 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1934 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1935 source file dependencies. Cleanup corresponding generator rules.
1936
1937 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1938
1939 * regcache.h (register_offset_hack): Declare.
1940 (regcache_cooked_read_using_offset_hack): Declare.
1941 (regcache_cooked_write_using_offset_hack): Declare.
1942
1943 * regcache.c (register_offset_hack): New function.
1944 (regcache_cooked_read_using_offset_hack): New function.
1945 (regcache_cooked_write_using_offset_hack): New function.
1946 (regcache_dump): Check that the registers, according to their
1947 offset, are packed hard against each other.
1948 (cooked_xfer_using_offset_hack): New function.
1949
1950 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1951
1952 * regcache.c (struct regcache_descr): Add field register_type.
1953 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1954 in as a parameter
1955 (init_regcache_descr): Initialize register_type. Pass the descr
1956 to init_legacy_regcache_descr. Use register_type instead of
1957 REGISTER_VIRTUAL_TYPE.
1958 (register_type): New function.
1959 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1960 * regcache.h (register_type): Declare.
1961
1962 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1963
1964 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1965 instead of deprecated_store_return_value. Fix fallout from
1966 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1967
1968 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1969
1970 * regcache.c (max_register_size): New function.
1971 (init_legacy_regcache_descr): Ensure that max_register_size is
1972 large enough for REGISTER_VIRTUAL_SIZE.
1973 * regcache.h (max_register_size): Declare.
1974
1975 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1976
1977 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1978 store_return_value.
1979 (e500_extract_return_value): Change type of valbuf pointer to
1980 void.
1981
1982 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1983
1984 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1985 workaround.
1986
1987 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1988 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1989 long long) to prevent compiler warning on 64-bit systems.
1990
1991 2002-08-23 Andrew Cagney <cagney@redhat.com>
1992
1993 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1994 (DEPRECATED_STORE_RETURN_VALUE): New method.
1995 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1996 * gdbarch.h, gdbarch.c: Re-generate.
1997
1998 * values.c (set_return_value): Pass current_regcache to
1999 STORE_RETURN_VALUE.
2000 * arch-utils.h (legacy_store_return_value): Declare.
2001 * arch-utils.c (legacy_store_return_value): New function.
2002 (legacy_extract_return_value): Update parameters.
2003
2004 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2005 STORE_RETURN_VALUE.
2006 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2007 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2008 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2009 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2010 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2011 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2012 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2013 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2014 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2015 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2016
2017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2018 * i386-tdep.c (i386_extract_return_value): Update.
2019 * arch-utils.c (legacy_extract_return_value): Update.
2020 * frv-tdep.c (frv_gdbarch_init): Update.
2021 * cris-tdep.c (cris_gdbarch_init): Update.
2022 * d10v-tdep.c (d10v_gdbarch_init): Update.
2023 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2024 * m68k-tdep.c (m68k_gdbarch_init): Update.
2025 * mcore-tdep.c (mcore_gdbarch_init): Update.
2026 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2027 * s390-tdep.c (s390_gdbarch_init): Update.
2028 * sparc-tdep.c (sparc_gdbarch_init): Update.
2029 * sh-tdep.c (sh_gdbarch_init): Update.
2030 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2031 * v850-tdep.c (v850_gdbarch_init): Update.
2032 * avr-tdep.c (avr_gdbarch_init): Update.
2033 * ia64-tdep.c (ia64_gdbarch_init): Update.
2034 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2035 * vax-tdep.c (vax_gdbarch_init): Update.
2036 * alpha-tdep.c (alpha_gdbarch_init): Update.
2037 * arm-tdep.c (arm_gdbarch_init): Update.
2038 * mips-tdep.c (mips_gdbarch_init): Update.
2039 * i386-tdep.c (i386_gdbarch_init): Update.
2040
2041 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2042
2043 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2044 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2045
2046 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2047
2048 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2049 problems.
2050
2051 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2052
2053 * infrun.c (handle_inferior_event): Move a comment outside of a
2054 function call, in order to avoid indent reformatting this part
2055 of the code in an unreadable way.
2056
2057 2002-08-23 Grace Sainsbury <graces@redhat.com>
2058
2059 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2060 when breakpoints fail. Move general breakpoint error messages to
2061 insert_breakpoints.
2062 * breakpoint.c (insert_breakpoints): Change warnings when
2063 breakpoints are nto inserted to specify the type. Remove call to
2064 memory_error when hardware breakpoints can't be inserted. Remove
2065 multiple calls to warning so all messages are sent to the user at
2066 once.
2067 (delete_breakpoints): Make insert error messsages more explicit.
2068
2069 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2070
2071 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2072 gdbserver/ChangeLog.
2073
2074 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2075
2076 * i386-tdep.c: Include "objfiles.h".
2077 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2078 skip_trampoline_code.
2079 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2080 (CPLUS_MARKER): Define to '.'.
2081
2082 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2083 member.
2084 (linux_corefile_thread_callback): Increase args->num_notes.
2085 (linux_make_note_section): Initialize thread_args.num_notes, and
2086 use it to determine whether notes for any threads were created.
2087
2088 2002-08-23 Donn Terry <donnte@microsoft.com>
2089
2090 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2091 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2092 and PCUNKILL.
2093 (write_with_trace): Conditionalize out the switch branch handling
2094 PCSHOLD if the corresponding macro is not defined. Likewise for
2095 PRSABORT and PRSTOP.
2096 This change will be needed by the Interix port.
2097
2098 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2099
2100 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2101 write_register wherever possible instead of manipulating the
2102 register bytes directly.
2103 Assign VALUE_CONTENTS to a variable and use that.
2104 The GPR numbers are now dependent on the architecture.
2105
2106 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2107
2108 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2109 ev_offset fields.
2110 (skip_prologue): Add support for BookE/e500 instructions.
2111 (e500_extract_return_value): New function.
2112 (frame_get_saved_regs): Add support for saving ev registers and
2113 pseudo gpr's.
2114 (e500_store_return_value): New function.
2115 (rs6000_gdbarch_init): Move up default intializations of
2116 deprecated_extract_return_value and store_return_value. Overwrite
2117 init of store_return_value with e500 specific version.
2118 Set extract_return_value for e500.
2119
2120 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2121
2122 * blockframe.c (generic_call_dummy_register_unwind): Use
2123 regcache_cooked_read to catch cases in which the variable is
2124 stored in a pseudo register.
2125
2126 2002-08-22 Andrew Cagney <cagney@redhat.com>
2127
2128 * NEWS: Mention that the i960 has been made obsolete.
2129 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2130 i960-tdep.c
2131 (remote-nrom.o): Obsolete target.
2132 (remote-nindy.o, i960-tdep.o): Ditto.
2133 * remote-nrom.c: Make file obsolete.
2134 * remote-nindy.c, remote-vx960.c: Ditto.
2135 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2136 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2137 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2138 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2139 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2140 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2141 i960-*-vxworks* obsolete.
2142 * MAINTAINERS: Note that the i960 is obsolete.
2143
2144 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2145
2146 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2147 detach to allow reinitialization.
2148
2149 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2150
2151 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2152 attempt).
2153
2154 2002-08-22 Jim Blandy <jimb@redhat.com>
2155
2156 * coffread.c (coff_symfile_read): Don't try to read the line
2157 number table from disk if the image file doesn't have a symbol
2158 table; we'll never actually look at the info anyway, and Windows
2159 ships DLL's with bogus file offsets for the line number data.
2160
2161 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2162
2163 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2164 an e500 executable.
2165
2166 2002-08-21 Michael Snyder <msnyder@redhat.com>
2167
2168 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2169 (MSYMBOL_SIZE): Replace macro with function.
2170 (DEFAULT_MIPS_TYPE): Delete unused macro.
2171 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2172 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2173
2174 2002-08-21 Jim Blandy <jimb@redhat.com>
2175
2176 * valops.c (value_cast): Simplify and correct logic for doing a
2177 static cast from a pointer to a base class to a pointer to a
2178 derived class.
2179
2180 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2181
2182 * infcmd.c (default_print_registers_info): Replace
2183 do_registers_info.
2184 (registers_info): Use gdbarch_print_registers_info instead of
2185 DO_REGISTERS_INFO.
2186 * inferior.h (default_print_registers_info): Replace
2187 do_registers_info.
2188 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2189 (DO_REGISTERS_INFO): Change to a predicate function.
2190 * gdbarch.h, gdbarch.c: Regenerate.
2191
2192 2002-08-21 Keith Seitz <keiths@redhat.com>
2193
2194 * gdb-events.sh: Add target-changed event.
2195 * gdb-events.c: Regenerated.
2196 * gdb-events.c: Regenerated.
2197 * valops.c (value_assign): Add target-changed event notification
2198 to inlval_register, lval_memory, and lval_reg_frame_relative.
2199
2200 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2201
2202 * NEWS: Add an entry regarding the improvement of the next/step
2203 operation on Alpha Tru64 multi-processor machines.
2204
2205 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2206
2207 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2208 directores.
2209 * Makefile.in: Update all _h macro definitions.
2210 * Makefile.in (install-gdbtk): Move to install section.
2211 (rdi-share/libangsd.a): Move to end of file.
2212
2213 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2214
2215 * frame.c (frame_register_unwind): When a register, set addrp to
2216 the register's byte.
2217
2218 2002-08-20 Michael Snyder <msnyder@redhat.com>
2219
2220 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2221 used locally, so move them from the target machine header to here.
2222 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2223 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2224 Make static.
2225 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2226
2227 2002-08-20 Andrew Cagney <cagney@redhat.com>
2228
2229 * NEWS: Mention that the Apollo line was made obsolete.
2230 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2231 m68*-hp-hpux* obsolete.
2232 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2233 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2234 * buildsym.c (make_blockvector): Make static.
2235 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2236 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2237 (ALLDEPFILES): Remove dstread.c.
2238 (dstread.o): Obsolete make rule.
2239 * dstread.c: Makefile obsolete.
2240 * dst.h: Ditto.
2241 * config/m68k/hp300hpux.mt: Ditto.
2242 * config/m68k/hp300hpux.mh: Ditto.
2243 * config/m68k/hp300bsd.mt: Ditto.
2244 * config/m68k/hp300bsd.mh: Ditto.
2245 * config/m68k/apollo68b.mt: Ditto.
2246 * config/m68k/apollo68v.mh: Ditto.
2247 * config/m68k/apollo68b.mh: Ditto.
2248
2249 2002-08-20 Michael Snyder <msnyder@redhat.com>
2250
2251 * mips-tdep.c (mips_in_return_stub): Make static.
2252 (mips_gdbarch_init): Set in_solib_return_trampoline.
2253 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2254
2255 2002-08-20 Michael Snyder <msnyder@redhat.com>
2256
2257 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2258 * gdbarch.c, gdbarch.h: Regenerate.
2259 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2260 Add.
2261 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2262
2263 2002-08-20 Michael Snyder <msnyder@redhat.com>
2264
2265 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2266 (mips_gdbarch_init): Set skip_trampoline_code,
2267 in_solib_call_trampoline.
2268 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2269 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2270
2271 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2272
2273 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2274
2275 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2276 vector type for ev registers.
2277 (e500_pseudo_register_read): New function.
2278 (e500_pseudo_register_write): New function.
2279 (e500_dwarf2_reg_to_regnum): New function.
2280 (PPC_UISA_NOFP_SPRS): New macro.
2281 (PPC_EV_REGS): New macro.
2282 (PPC_GPRS_PSEUDO_REGS): New macro.
2283 (registers_e500): New register set for e500.
2284 (variants): Add e500 variant.
2285 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2286 before setting architectural dependent variations. Initialize ev
2287 registers numbers. Add case for e500 architecture. Set the
2288 number of pseudo registers.
2289
2290 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2291
2292 * rs6000-tdep.c: Clean up comments.
2293
2294 2002-08-20 Andrew Cagney <cagney@redhat.com>
2295
2296 * h8300-tdep.c: Re-indent file.
2297
2298 2002-08-20 Jim Blandy <jimb@redhat.com>
2299
2300 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2301 default for this.
2302
2303 2002-08-20 Keith Seitz <keiths@redhat.com>
2304
2305 * breakpoints.c (watch_command_1): Use internal breakpoint
2306 when setting a watchpoint_scope breakpoint.
2307
2308 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2309
2310 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2311 (build_builtin_type_vec64i): Ditto.
2312 (build_builtin_type_vec128): Ditto.
2313 (build_builtin_type_vec128i): Ditto.
2314
2315 2002-08-19 Michael Snyder <msnyder@redhat.com>
2316
2317 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2318 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2319 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2320 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2321 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2322 CALL_DUMMY_ADDRESS): Delete.
2323 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2324 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2325 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2326 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2327 push_return_address.
2328 (mips_register_raw_size, mips_eabi_use_struct_convention,
2329 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2330 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2331 mips_init_extra_frame_info, mips_eabi_push_arguments,
2332 mips_n32n64_push_arguments, mips_push_return_address,
2333 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2334 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2335
2336 2002-08-19 Michael Snyder <msnyder@redhat.com>
2337
2338 * mips-tdep.c (mips_frame_num_args): New function.
2339 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2340 frame_saved_pc, frame_args_address, frame_locals_address,
2341 frame_num_args, and frame_args_skip.
2342 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2343 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2344 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2345 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2346
2347 2002-08-20 Michael Snyder <msnyder@redhat.com>
2348
2349 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2350 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2351 * mips-tdep.c (mips_store_struct_return): New function.
2352 (mips_extract_struct_value_address): New function.
2353 (mips_gdbarch_init): Set store_struct_return and
2354 extract_struct_value_address.
2355
2356 2002-08-20 David Carlton <carlton@math.stanford.edu>
2357
2358 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2359 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2360 (read_file_scope): Check that line_header is nonzero before
2361 decoding macro information.
2362
2363 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2364
2365 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2366 flag the general-purpose registers as floating-point on targets
2367 that don't support the floating-point registers.
2368
2369 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2370
2371 * rs6000-tdep.c (altivec_register_p): Delete.
2372 (rs6000_do_altivec_registers): Delete.
2373 (rs6000_altivec_registers_info): Delete.
2374 (rs6000_do_registers_info): Delete.
2375 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2376 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2377
2378 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2379
2380 * infcmd.c (do_registers_info): Print vector registers in hex
2381 format only.
2382 (print_vector_info): Check that printing registers
2383 makes sense.
2384 (print_float_info): Ditto.
2385
2386 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2387
2388 * mips-tdep.c (mips_gdbarch_init): Update.
2389 (mips_o32_extract_return_value): Rewrite.
2390 (mips_o32_store_return_value): Rewrite.
2391 (mips_o32_xfer_return_value): New function.
2392 (mips_xfer_register): Tweak debug print message. Allow for
2393 buf_offset when dumping the value transfered.
2394
2395 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2396
2397 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2398 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2399 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2400 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2401 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2402
2403 2002-08-14 Michael Snyder <msnyder@redhat.com>
2404
2405 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2406
2407 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2408
2409 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2410 register.
2411 (P): New macro to define a register as a pseudo register.
2412 (R, R4, R8, R16, FR32, R64, R0): Updated.
2413 (struct variant): Add new fields for number of pseudo registers
2414 and number of total registers.
2415 (tot_num_registers): New macro replacing....
2416 (num_registers): ...deleted macro.
2417 (num_registers): New function.
2418 (num_pseudo_registers): New function.
2419 (variants): Update all variants to intialize new fields correctly.
2420 Postpone initialization of number of pseudo regs and real regs.
2421 (init_variants): New function.
2422 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2423 registers offsets.
2424
2425 2002-08-19 David Carlton <carlton@math.stanford.edu>
2426
2427 * valops.c (search_struct_field): Change error message to treat
2428 return value of 0 from value_static_field as meaning that field is
2429 optimized out.
2430 (value_struct_elt_for_reference): Ditto.
2431 * values.c (value_static_field): Treat an unresolved location the
2432 same as a nonexistent symbol. Fix PR gdb/635.
2433 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2434 enclosed. Fix PR gdb/574.
2435 * MAINTAINERS: Add self to Write After Approval list.
2436
2437 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2438
2439 * mips-tdep.c (mips_xfer_register): New function.
2440 (mips_n32n64_extract_return_value): Rewrite.
2441 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2442 instead of deprecated_extract_return_value.
2443
2444 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2445
2446 * rs6000-tdep.c (TDEP): Delete macro.
2447 (branch_dest): Replace use of TDEP macro with its body.
2448 (rs6000_pop_frame): Ditto.
2449 (rs6000_push_arguments): Ditto.
2450 (rs6000_skip_trampoline_code): Ditto.
2451 (rs6000_frame_saved_pc): Ditto.
2452 (rs6000_frame_chain): Ditto.
2453 (rs6000_register_name): Ditto.
2454 (rs6000_register_byte): Ditto.
2455 (rs6000_register_raw_size): Ditto.
2456 (rs6000_register_virtual_type): Ditto.
2457 (rs6000_register_convertible): Ditto.
2458 (rs6000_convert_from_func_ptr_addr): Ditto.
2459
2460 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2461
2462 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2463 conditionally.
2464 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2465 MIPS_LINUX_JB_ELEMENT_SIZE.
2466 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2467 for MAX_REGISTER_RAW_SIZE arrays.
2468 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2469 MIPS_LINUX_JB_ELEMENT_SIZE.
2470
2471 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2472
2473 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2474
2475 2002-08-19 Aidan Skinner <aidan@velvet.net>
2476
2477 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2478 ada-valprint.c ada-tasks.c.
2479 (YYFILES): Add ada-exp.y.
2480 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2481 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2482 (ada-exp.tab.o): New target.
2483
2484 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2485
2486 * regcache.c (regcache_xfer_part): New function.
2487 (regcache_raw_read_part): New function.
2488 (regcache_raw_write_part): New function.
2489 (regcache_cooked_read_part): New function.
2490 (regcache_cooked_write_part): New function.
2491 * regcache.h (regcache_raw_read_part): Declare.
2492 (regcache_raw_write_part): Declare.
2493 (regcache_cooked_read_part): Declare.
2494 (regcache_cooked_write_part): Declare.
2495
2496 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2497
2498 * remote.c (remote_open_1): Add async_p.
2499 (remote_async_open_1): Delete.
2500 (open_remote_target): Delete.
2501 (remote_open, extended_remote_open): Update calls to remote_open_1.
2502 (remote_async_open, extended_remote_async_open): Call
2503 remote_open_1 instead of remote_async_open_1.
2504
2505 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2506
2507 * blockframe.c: Fix a few coding standard violations.
2508
2509 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2510
2511 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2512 here from ...
2513 * config/i386/tm-i386sco5.h: ... here. File removed.
2514 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2515
2516 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2517 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2518 (TM_FILE): Set to tm-i386.h.
2519 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2520 * config/i386/tm-i386v.h: Remove file.
2521 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2522 instead of "i386/tm-i386v.h".
2523 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2524 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2525 "i386/tm-i386v.h".
2526 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2527 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2528 "i386/tm-i386.h".
2529
2530 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2531
2532 * config/i386/nm-i386v.h: Add protection against
2533 multiple-inclusion.
2534 (i386_register_u_addr): Remove prototype.
2535 (register_u_addr): New prototype.
2536 (REGISTER_U_ADDR): Redefine accordingly.
2537 * i386v-nat.c: Improve several comments.
2538 (i386_register_u_addr): Change signature and rename to
2539 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2540 ubase variable.
2541
2542 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2543
2544 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2545 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2546 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2547 deprecated_extract_return_value.
2548 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2549 rename mips_o32o64_push_arguments.
2550 (mips_gdbarch_init): Update.
2551 (mips_extract_return_value): Delete.
2552 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2553 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2554 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2555 (mips_n32n64_extract_return_value): Clone
2556 mips_extract_return_value.
2557 (mips_store_return_value): Delete.
2558 (mips_o32_store_return_value): Clone mips_store_return_value.
2559 (mips_o64_store_return_value): Clone mips_store_return_value.
2560 (mips_eabi_store_return_value): Clone mips_store_return_value.
2561 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2562
2563 2002-08-18 Aidan Skinner <aidan@velvet.net>
2564
2565 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2566 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2567
2568 2002-08-18 Aidan Skinner <aidan@velvet.net>
2569
2570 * ada-lang.c: Run through gdb_indent.sh.
2571 * ada-lang.h: Run through gdb_indent.sh.
2572 * ada-tasks.c: Run through gdb_indent.sh.
2573 * ada-typeprint.c: Run through gdb_indent.sh.
2574 * ada-valprint.c: Run through gdb_indent.sh.
2575
2576 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2577
2578 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2579 ABI.
2580
2581 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2582
2583 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2584
2585 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2586 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2587
2588 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2589 write_register_gen instead of write_register_bytes.
2590
2591 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2592 i[3456]-*-osf1mk* configurations have been made obsolete.
2593 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2594 i[3456]86-*-osf1mk* hosts obsolete.
2595 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2596 targets obsolete.
2597 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2598 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2599 config/i386/i386m3.mt, config/i386/nm-m3.h,
2600 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2601 config/i386/i386mk.mh, config/i386/i386mk.mt,
2602 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2603 obsolete.
2604 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2605 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2606 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2607
2608 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2609
2610 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2611 (hppa_value_returned_from_stack): Declare.
2612 (hppa_extract_return_value): Declare.
2613 * config/pa/hppa.mt: New file.
2614 * configure.tgt: Recognize hppa*-*-*.
2615 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2616
2617 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2618
2619 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2620 comment.
2621
2622 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2623
2624 * top.c (gdb_rl_operate_and_get_next): Make sure
2625 operate-and-get-next functions correctly even when the history
2626 list is completely filled.
2627
2628 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2629
2630 * MAINTAINERS (Target Instruction Set Architectures): Rename
2631 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2632 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2633 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2634 already listed under Host/Native.
2635
2636 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2637 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2638 mips*-*-*.
2639
2640 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2641
2642 * config/ia64/ia64.mt: New file.
2643 * config/alpha/alpha.mt: New file.
2644 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2645 ia64-linux-gnu. Mention that ia64-elf is broken.
2646 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2647
2648 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2649
2650 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2651 generic_func_frame_valid instead of func_frame_valid.
2652
2653 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2654
2655 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2656 procfs appears to be broken when debugging on multi-processor
2657 machines. So enable software single stepping in order to avoid
2658 using the procfs interface to do next/step operations, using
2659 internal breakpoints instead.
2660
2661 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2662 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2663 make this pc address equal to the value it would have if the
2664 system stepping capability was used. Also set a new flag used
2665 to ensure that we don't readjust the PC one more time later.
2666
2667 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2668 address by DECR_PC_AFTER_BREAK when software single step is
2669 in use for this architecture, as this has already been taken
2670 care of in handle_inferior_event().
2671
2672 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2673
2674 * infrun.c (handle_inferior_event): Minor reformatting, to make
2675 a rather long condition expression easier to read.
2676
2677 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2678
2679 * Makefile.in (gdbtk.o): Move to end of file.
2680 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2681 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2682 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2683 (gdbtk-wrapper.o, gdbres.o): Ditto.
2684
2685 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2686
2687 * Makefile.in (copying.o): Separate out compile rule.
2688 (hpux-thread.o, procfs.o, signals.o): Ditto.
2689 (v850ice.o, z8k-tdep.o): Ditto.
2690 (tui-file.o): Move to TUI section.
2691 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2692 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2693
2694 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2695
2696 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2697 skip_trampoline_code, for better namespace-proofing.
2698
2699 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2700
2701 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2702
2703 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2704
2705 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2706
2707 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2708 signal, check whether we hit a breakpoint before checking for a
2709 single step breakpoint. Otherwise, GDB fails to notice that a
2710 breakpoint has been hit when stepping onto a breakpoint.
2711
2712 2002-08-16 Keith Seitz <keiths@redhat.com>
2713
2714 * gdb-events.sh (clear_gdb_event_hooks): New function.
2715 * gdb-events.c: Regenerate.
2716 * gdb-events.h: Regenerate.
2717
2718 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2719
2720 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2721 not_a_sw_breakpoint.
2722 * breakpoint.h (bpstat_stop_status): Add parameter names.
2723
2724 2002-08-16 Grace Sainsbury <graces@redhat.com>
2725
2726 * remote.c (remote_insert_hw_breakpoint)
2727 (remote_remove_hw_breakpoint): Fix calculation of length field
2728 for Z-packet.
2729
2730 2002-08-15 Michael Snyder <msnyder@redhat.com>
2731
2732 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2733 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2734 (supply_fpregset): Ditto.
2735
2736 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2737 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2738 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2739 (TARGET_READ_SP): Delete.
2740 (DO_REGISTERS_INFO): Delete.
2741 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2742 Delete.
2743 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2744 from macros to functions.
2745
2746 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2747 (mips_register_convertible, mips_register_convert_to_virtual,
2748 mips_register_convert_to_raw): Make static.
2749 (mips_read_sp): New function.
2750 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2751 (mips_do_registers_info): Make static.
2752 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2753 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2754 (mips_register_convert_from_type, mips_register_convert_to_type):
2755 New functions.
2756 (mips_gdbarch_init): Set up function_start_offset,
2757 register_virtual_size, pc_in_sigtramp.
2758
2759 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2760
2761 * infcmd.c (vector_info): New function.
2762 (_initialize_infcmd): Add command "info vector".
2763 (print_vector_info): New function.
2764
2765 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2766 * gdbarch.h, gdbarch.c: Regenerate.
2767
2768 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2769
2770 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2771 ``print_all''. Only print vector registers when ``print_all''.
2772
2773 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2774
2775 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2776 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2777
2778 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2779 Add `args' parameter.
2780 * gdbarch.h, gdbarch.c: Regenerate.
2781
2782 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2783
2784 * infcmd.c (float_info): Call print_float_info.
2785 (print_float_info): New function. By default, print the
2786 floating-point registers.
2787
2788 * arch-utils.h (default_print_float_info): Delete declaration.
2789 * arch-utils.c (default_print_float_info): Delete function.
2790
2791 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2792
2793 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2794 out define.
2795
2796 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2797 FRAME.
2798
2799 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2800 * configure.host: Make i[3456]86-*-aix host obsolete.
2801 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2802 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2803 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2804 config/i386/xm-i386aix.h: Make files obsolete.
2805 * i386aix-nat.c: Make file obsolete.
2806 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2807 (i386aix-nat.o): Make target obsolete.
2808
2809 * config/i386/nm-gnu.h: Removed.
2810 * config/i386/nm-i386gnu.h: New file.
2811 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2812 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2813 Moved here from ...
2814 * config/i386/tm-i386gnu.h: ... here. Removed.
2815 * config/i386/xm-i386gnu.h: Removed.
2816 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2817 (NAT_FILE): Set to nm-i386gnu.h.
2818 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2819 * i386-tdep.c: New file.
2820 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2821 (i386gnu-tdep.o): Specify dependencies.
2822
2823 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2824
2825 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2826 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2827 Adjust a few comments to reflect reality a bit closer.
2828 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2829 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2830 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2831 target_insert_watchpoint, target_remove_watchpoint):
2832 Move defines to ...
2833 * config/i386/nm-i386sco5.h: ... here.
2834 (kernel_u_size): Add prototype. Improve a few comments and add
2835 protection against multiple inclusion.
2836
2837 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2838 out define.
2839
2840 * uw-thread.c (SP_ARG0): Define if not already defined.
2841 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2842
2843 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2844
2845 * config/i386/tm-i386.h: Don't include "regcache.h".
2846
2847 * i387-tdep.h (i387_print_float_info): New prototype.
2848 * i387-tdep.c (print_i387_value, print_i387_ext,
2849 print_i387_status_word, print_i387_control_word): Add `struct
2850 ui_file *' argument and use it for output.
2851 (i387_print_float_info): Renamed from i387_float_info. Add
2852 `struct gdbarch *' and `struct ui_file *' arguments and use the
2853 latter for output.
2854 * i386-tdep.c: Include "i387-tdep.h".
2855 (i386_gdbarch_init): Set print_float_info.
2856 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2857 (FLOAT_INFO): Remove define.
2858
2859 2002-08-13 Michael Snyder <msnyder@redhat.com>
2860
2861 * mips-tdep.c (mips_push_arguments): Rename to
2862 mips_eabi_push_arguments, and tune for EABI.
2863 (MIPS_REGS_HAVE_HOME_P): Delete.
2864 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2865 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2866 Delete references to mips_regs_have_home_p.
2867
2868 2002-08-14 Keith Seitz <keiths@redhat.com>
2869
2870 * Makefile.in (install-gdbtk): Create insight plugin directory.
2871 Install plugins.tcl file.
2872
2873 2002-08-14 Keith Seitz <keiths@redhat.com>
2874
2875 * configure.in: Move SUBDIRS to near top of the file so that
2876 --enable options may add things to it.
2877 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2878 * configure: Regenerate.
2879
2880 2002-08-13 Michael Snyder <msnyder@redhat.com>
2881
2882 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2883 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2884 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2885
2886 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2887
2888 * vax-tdep.c (vax_get_saved_register): Delete function.
2889 (vax_gdbarch_init): Update.
2890 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2891 (ns32k_gdbarch_init): Update.
2892 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2893 (alpha_gdbarch_init): Update.
2894
2895 2002-08-13 Andrew Cagney <cagney@redhat.com>
2896
2897 * regcache.c (init_regcache_descr): Overallocate the
2898 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2899 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2900 nr_raw_registers.
2901 (set_register_cached): Add range checking assertions. Use
2902 current_regcache.
2903
2904 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2905
2906 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2907 numbers for MMX registers.
2908
2909 2002-08-13 Andrew Cagney <cagney@redhat.com>
2910
2911 * i386-tdep.c (i386_gdbarch_init): Use
2912 generic_unwind_get_saved_register.
2913
2914 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2915
2916 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2917 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2918 target vector.
2919 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2920 Delete. Add comment regarding this now-deleted target method.
2921
2922 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2923
2924 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2925 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2926 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2927 real PC and the page number (if it's within the memory bank window).
2928 (m68hc11_pseudo_register_write): Likewise when saving.
2929 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2930 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2931 (m68hc11_register_raw_size): And use 32-bit for it.
2932 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2933 16K memory bank is used by the prog; also use the virtual pc.
2934
2935 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2936
2937 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2938 (m68hc11_gdbarch_init): Install it in gdbarch.
2939 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2940 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2941 (MSYMBOL_SIZE): New for documentation.
2942 (insn_return_kind): Enum to specify how a function returns.
2943 (frame_extra_info): Cleanup and record the return mode.
2944 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2945 register in address computation.
2946 (m68hc11_get_return_insn): New to obtain the return instruction used
2947 by the function.
2948 (m68hc11_frame_init_saved_regs): Take into account the return
2949 instruction used by the function for far and interrupt functions.
2950 (m68hc11_init_extra_frame_info): Take into account page register.
2951 (m68hc11_frame_args_address): Adjust according to the return mode.
2952 (show_regs): Print page register only when it's used.
2953
2954 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2955
2956 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2957 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2958 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2959 registers.
2960 (m68hc11_register_raw_size): Likewise.
2961
2962 2002-08-13 Andrew Cagney <cagney@redhat.com>
2963
2964 * i386-tdep.c (i386_register_name): Handle mmx registers.
2965 (mmx_regnum_p): New function.
2966 (i386_mmx_names): New array.
2967 (mmx_num_regs): New variable.
2968 (i386_pseudo_register_read): New function.
2969 (i386_pseudo_register_write): New function.
2970 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2971
2972 * regcache.c (regcache_raw_read_unsigned): New function.
2973 (regcache_raw_read_signed): New function.
2974 * regcache.h (regcache_raw_read_unsigned): Declare.
2975 (regcache_raw_read_signed): Declare.
2976
2977 2002-08-13 Andrew Cagney <cagney@redhat.com>
2978
2979 * regcache.c (regcache_raw_read_as_address): Delete function.
2980 (regcache_cooked_read_signed): New function.
2981 (regcache_cooked_read_unsigned): New function.
2982 * regcache.h (regcache_cooked_read_signed): Declare.
2983 (regcache_cooked_read_unsigned): Declare.
2984 (regcache_raw_read_as_address): Delete declaration.
2985
2986 * blockframe.c (generic_read_register_dummy): Use
2987 regcache_cooked_read_unsigned.
2988 * i386-tdep.c (i386_extract_struct_value_address): Use
2989 regcache_cooked_read_unsigned.
2990
2991 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2992
2993 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2994 double sizes according to ELF ABI flags.
2995 (gdbarch_tdep): Record elf_flags.
2996
2997 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2998
2999 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3000 (m6812_prolog): They can appear in 68HC12 function prologue.
3001 (m68hc11_frame_chain): Cleanup.
3002
3003 2002-08-12 Andrew Cagney <cagney@redhat.com>
3004
3005 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3006 declarations.
3007 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3008 (i386_linux_register_raw_size): Delete function.
3009 (i386_linux_init_abi): Update.
3010 * i386-tdep.c (i386_register_raw_size): Delete function.
3011 (i386_register_byte): Delete function.
3012 (i386_gdbarch_init): Update.
3013 (i386_register_size): Delete array.
3014 (i386_register_offset): Delete array.
3015
3016 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3017 (REGISTER_RAW_SIZE): Delete macro.
3018 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3019 (REGISTER_BYTE): Delete macro.
3020
3021 2002-08-11 Aidan Skinner <aidan@velvet.net>
3022
3023 * ada-lang.c (ada_lookup_partial_symbol)
3024 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3025 prototype names so that grep ^func works properly.
3026
3027 * ada-lang.c (ada_array_element_type)
3028 (ada_lookup_partial_symbol): Fix typos in parameter list.
3029
3030 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3031 Fix prototype names so that grep ^func works properly.
3032
3033 2002-08-10 Andrew Cagney <cagney@redhat.com>
3034 Elena Zannoni <ezannoni@redhat.com>
3035 Martin M. Hunt <hunt@redhat.com>
3036
3037 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3038 (build_builtin_type_vec128i): Set the vector bit.
3039 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3040 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3041 (build_builtin_type_vec64): New function.
3042 (build_builtin_type_vec64i): New function.
3043 (build_gdbtypes): Initialize builtin_type_vec64 and
3044 builtin_type_vec64i.
3045
3046 2002-08-09 Andrew Cagney <cagney@redhat.com>
3047
3048 * regcache.c (regcache_dump): Compare the register offset
3049 with REGISTER_BYTE.
3050 * arch-utils.c (generic_register_byte): New function.
3051 * arch-utils.h (generic_register_byte): Declare.
3052 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3053 * gdbarch.h, gdbarch.c: Regenerate.
3054
3055 2002-08-09 Andrew Cagney <cagney@redhat.com>
3056
3057 * regcache.c: Include "gdbcmd.h"
3058 (_initialize_regcache): Add commands "maintenance print
3059 registers", "maintenance print raw-registers" and "maintenance
3060 print cooked-registers".
3061 (enum regcache_dump_what): Define.
3062 (dump_endian_bytes): New function.
3063 (regcache_dump): New function.
3064 (regcache_print): New function.
3065 (maintenance_print_registers): New function.
3066 (maintenance_print_raw_registers): New function.
3067 (maintenance_print_cooked_registers): New function.
3068 * Makefile.in (regcache.o): Update dependencies.
3069
3070 2002-08-09 Michael Snyder <msnyder@redhat.com>
3071
3072 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3073 (mips_push_arguments): Correct some comments. Use paddr_nz
3074 for printing addresses in debug output. Replace static
3075 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3076 (mips_n32n64_push_arguments): New function, cloned from
3077 mips_push_arguments and tuned for the n32/n64 ABI.
3078 (mips_push_register): Buffer needs dynamic allocation.
3079 (mips_print_register): Ditto.
3080 (do_gp_register_row): Ditto.
3081 (mips_store_return_value): Ditto.
3082 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3083
3084 2002-08-09 Don Howard <dhoward@redhat.com>
3085
3086 * memattr.c (mem_info_command): Print special case of upper bound
3087 as max CORE_ADDR + 1.
3088
3089 2002-08-08 Michael Snyder <msnyder@redhat.com>
3090
3091 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3092 returns structs by ref if they're too big to fit in two registers.
3093
3094 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3095
3096 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3097 saved regs value.
3098 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3099 mips_find_saved_regs().
3100 (mips_pop_frame): Likewise.
3101
3102 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3103
3104 * blockframe.c (frame_saved_regs_register_unwind): Revise
3105 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3106 frames are in use.
3107
3108 2002-08-09 Grace Sainsbury <graces@redhat.com>
3109
3110 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3111 T-packets; the 'a' is not taken as a register number.
3112 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3113 (remote_stopped_data_address): New functions; add to target
3114 vector.
3115 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3116 prototypes to match other implementations of this
3117 function. replace integer argument with pointer -- the length
3118 field in the Z-packet is the length of what is pointed to or 1 if
3119 pointer is null. Add to target vector.
3120 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3121 target vector.
3122
3123 From Mark Salter:
3124 * remote.c (remote_wait): Add support to extract optional
3125 watchpoint information from T-packet. Ignore unrecognized
3126 optional info in T-packet.
3127 (remote_async_wait): Ditto.
3128
3129 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3130
3131 * cli/cli-dump.c: Change fopen modes to use binary open modes
3132 as defined in include/fopen-bin.h throughout.
3133
3134 2002-08-08 Michael Snyder <msnyder@redhat.com>
3135
3136 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3137
3138 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3139
3140 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3141 assertion failure by returning early after a warning.
3142
3143 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3144
3145 * mips-tdep.c (mips_find_saved_regs): Make static.
3146 (mips_frame_init_saved_regs): New function.
3147 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3148 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3149 (mips_find_saved_regs): Delete declaration.
3150
3151 2002-08-08 Grace Sainsbury <graces@redhat.com>
3152
3153 * remote.c (remote_wait, remote_async_wait): Change
3154 thread_num from int to ULONGEST.
3155 (unpack_varlen_hex): Change result parameter from
3156 int * to ULONGEST *.
3157
3158 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3159
3160 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3161 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3162 powerpc*-*-*.
3163 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3164
3165 2002-08-08 Andrew Cagney <cagney@redhat.com>
3166
3167 * gcore.c (override_derive_stack_segment): Delete variable.
3168 (preempt_derive_stack_segment): Delete function.
3169 (derive_stack_segment): Delete function.
3170 (default_derive_stack_segment): Renamed to derive_stack_segment.
3171 (override_derive_heap_segment): Delete variable.
3172 (preempt_derive_heap_segment): Delete function.
3173 (derive_heap_segment): Delete function.
3174 (default_derive_heap_segment): Rename to derive_heap_segment.
3175
3176 2002-08-06 Michael Snyder <msnyder@redhat.com>
3177
3178 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3179 * mips-tdep.c (mips_EABI_use_struct_convention,
3180 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3181 New functions. (mips_use_struct_convention): Delete.
3182 (mips_gdbarch_init): set use_gdbarch_convention.
3183
3184 2002-08-06 Michael Snyder <msnyder@redhat.com>
3185
3186 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3187 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3188 mips_o32_reg_struct_has_addr): New functions.
3189 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3190
3191 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3192
3193 * regcache.c (pseudo_register): Delete function.
3194 (fetch_register): Delete function.
3195 (store_register): Delete function.
3196 (regcache_raw_read, legacy_read_register_gen): Use
3197 target_fetch_registers instead of fetch_register.
3198 (legacy_write_register_gen, regcache_raw_write): Use
3199 target_store_register instead of store_register.
3200 (write_register_bytes): Ditto.
3201
3202 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3203 (STORE_PSEUDO_REGISTER): Delete.
3204 * gdbarch.h, gdbarch.c: Regenerate.
3205
3206 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3207
3208 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3209 write dump file binary.
3210
3211 2002-08-05 Michael Snyder <msnyder@redhat.com>
3212
3213 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3214 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3215 (mips_gdbarch_init): Set N32 target to be mips64.
3216
3217 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3218
3219 * frame.c (find_saved_register): Break out of loop once saved
3220 register address is found. Don't mention sparc in loop comment
3221 anymore.
3222
3223 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3224
3225 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3226 mips_default_saved_regsize to 8.
3227
3228 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3229
3230 * gcore.c: Do not include <sys/procfs.h>.
3231 * Makefile.in (gcore.o): Update dependencies.
3232
3233 2002-08-06 Andrew Cagney <cagney@redhat.com>
3234
3235 * configure.tgt: Make arc-*-* obsolete.
3236 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3237 * MAINTAINERS: Make arc-elf obsolete.
3238 * arc-tdep.c: Make file obsolete.
3239 * config/arc/arc.mt: Ditto.
3240 * config/arc/tm-arc.h: Ditto.
3241
3242 2002-08-05 Theodore A. Roth <troth@verinet.com>
3243
3244 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3245
3246 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3247
3248 * mcore-tdep.c (mcore_gdbarch_init): Use
3249 generic_unwind_get_saved_register instead of
3250 generic_get_saved_register.
3251 * v850-tdep.c (v850_gdbarch_init): Ditto.
3252 * frv-tdep.c (frv_gdbarch_init): Ditto.
3253 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3254 * s390-tdep.c (s390_gdbarch_init): Ditto.
3255 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3256 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3257 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3258
3259 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3260
3261 * objfiles.h: Add missing #include "symfile.h"
3262
3263 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3264
3265 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3266
3267 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3268 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3269 of FIELD_BITSIZE.
3270
3271 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3272
3273 * NEWS: Cleanup and nitpick.
3274
3275 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3276
3277 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3278
3279 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3280
3281 * Makefile.in (gdbtk-bp.o): Update dependencies.
3282 (gdbtk-register.o): Ditto.
3283 (gdbtk-varobj.o): Ditto.
3284
3285 2002-08-03 Andrew Cagney <cagney@redhat.com>
3286
3287 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3288 m68hc11_fetch_pseudo_register.
3289 (m68hc11_pseudo_register_write): Replace
3290 m68hc11_store_pseudo_register.
3291 (m68hc11_gdbarch_init): Update.
3292
3293 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3294
3295 * gdbarch.sh: Include "gdb_string.h".
3296 * gdbarch.c: Regenerate.
3297
3298 * regcache.c: Include "gdb_string.h".
3299 * ax-general.c: Ditto.
3300 * varobj.c: Ditto.
3301 * std-regs.c: Ditto.
3302 * fbsd-proc.c: Ditto.
3303 * thread.c: Ditto.
3304
3305 * Makefile.in (regcache.o): Update dependencies.
3306 (thread.o, gdbarch.o): Ditto.
3307 (ax-general.o, gdbarch.o): Ditto.
3308 (varobj.o, std-regs.o): Ditto.
3309 (fbsd-proc.o): Specify dependencies.
3310
3311 2002-08-02 Andrew Cagney <cagney@redhat.com>
3312
3313 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3314 regnum.
3315 (regcache_cooked_write): Ditto.
3316
3317 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3318
3319 * regcache.c (regcache_cooked_read): New function.
3320 (regcache_cooked_write): New function.
3321 (read_register_gen): Rewrite using regcache_cooked_read.
3322 (write_register_gen): Rewrite using regcache_cooked_write.
3323
3324 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3325 Declare.
3326
3327 2002-08-02 Andrew Cagney <cagney@redhat.com>
3328
3329 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3330 Replace the architecture methods register_read and register_write.
3331 * gdbarch.h, gdbarch.c: Regenerate.
3332 * regcache.c (init_regcache_descr): Update.
3333 (read_register_gen): Update.
3334 (write_register_gen): Update.
3335 (supply_register): Update comment.
3336
3337 * sh-tdep.c (sh_gdbarch_init): Update.
3338 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3339 `regcache' and `gdbarch' parameters. Make `buffer' a void
3340 pointer. Update code.
3341 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3342 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3343 void pointer. Update code.
3344 (sh64_register_write): Delete.
3345 (sh4_register_read): Delete.
3346 (sh64_register_read): Delete.
3347 (sh4_register_write): Delete.
3348 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3349 void pointer, `to' parameter a void pointer.
3350 (sh_sh64_register_convert_to_raw): Ditto.
3351
3352 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3353
3354 * mips-tdep.c (mips_register_virtual_type): Use architecture
3355 invariant return values.
3356
3357 2002-08-01 Andrew Cagney <cagney@redhat.com>
3358
3359 * linux-proc.c: Include "gdb_string.h".
3360 * Makefile.in (linux-proc.o): Update dependency list.
3361
3362 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3363
3364 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3365 comment.
3366
3367 2002-08-01 Grace Sainsbury <graces@redhat.com>
3368
3369 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3370 to_insert_watchpoint, to_remove_watchpoint,
3371 to_stopped_by_watchpoint, to_stopped_data_address,
3372 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3373 target vecctor. Define their corresponding macros so they call
3374 them.
3375
3376 * target.c: Add default and debug versions of for
3377 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3378 to_insert_watchpoint, to_remove_watchpoint,
3379 to_stopped_by_watchpoint, to_stopped_data_address,
3380 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3381
3382 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3383
3384 * mips-tdep.c (mips_register_virtual_type): New function.
3385 (mips_gdbarch_init): Register mips_register_virtual_type()
3386 with gdbarch machinery.
3387 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3388 this file instead of tm-bigmips.h.
3389 (MIPS_REGSIZE): Delete this macro.
3390 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3391 multiarch version in mips-tdep.c will be found.
3392
3393 2002-08-01 Andrew Cagney <cagney@redhat.com>
3394
3395 * NEWS: Menion that CHILL has been made obsolete.
3396
3397 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3398 * stabsread.c (read_range_type): Ditto.
3399 * gdbtypes.h: Ditto.
3400 * language.c (binop_type_check): Ditto.
3401 (binop_result_type): Ditto.
3402 (integral_type): Ditto.
3403 (character_type): Ditto.
3404 (string_type): Ditto.
3405 (boolean_type): Ditto.
3406 (structured_type): Ditto.
3407 (lang_bool_type): Ditto.
3408 (binop_type_check): Ditto.
3409 * language.h (_LANG_chill): Ditto.
3410 * dwarfread.c (set_cu_language): Ditto.
3411 * dwarfread.c (CHILL_PRODUCER): Ditto.
3412 * dwarfread.c (handle_producer): Ditto.
3413 * expression.h (enum exp_opcode): Ditto.
3414 * eval.c: Ditto for comments.
3415 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3416 * expprint.c (print_subexp): Ditto.
3417 (print_subexp): Ditto.
3418 * valops.c (value_cast): Ditto.
3419 (search_struct_field): Ditto.
3420 * value.h (COERCE_VARYING_ARRAY): Ditto.
3421 * symfile.c (init_filename_language_table): Ditto.
3422 (add_psymbol_with_dem_name_to_list): Ditto.
3423 * valarith.c (value_binop): Ditto.
3424 (value_neg): Ditto.
3425 * valops.c (value_slice): Ditto.
3426 * symtab.h (union language_specific): Ditto.
3427 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3428 (SYMBOL_DEMANGLED_NAME): Ditto.
3429 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3430 * defs.h (enum language): Ditto.
3431 * symtab.c (got_symtab): Ditto.
3432 * utils.c (fprintf_symbol_filtered): Ditto.
3433
3434 * ch-typeprint.c: Make file obsolete.
3435 * ch-valprint.c: Make file obsolete.
3436 * ch-lang.h: Make file obsolete.
3437 * ch-exp.c: Make file obsolete.
3438 * ch-lang.c: Make file obsolete.
3439
3440 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3441 CHILL_LIB.
3442 (TARGET_FLAGS_TO_PASS): Ditto.
3443 (CHILLFLAGS): Obsolete.
3444 (CHILL): Obsolete.
3445 (CHILL_FOR_TARGET): Obsolete.
3446 (CHILL_LIB): Obsolete.
3447 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3448 ch-valprint.c.
3449 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3450 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3451 ch-lang.o.
3452 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3453 targets.
3454
3455 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3456
3457 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3458 This does not change anything at the moment, but will be helpful
3459 later when full Ada support is integrated.
3460
3461 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3462
3463 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3464 help message.
3465
3466 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3467
3468 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3469 and save it in a local variable. Use variable in later test.
3470
3471 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3472
3473 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3474 test. (Thanks to Daniel Jacobowitz.)
3475
3476 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3477
3478 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3479 (mips_abi_strings): Add "n64".
3480 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3481
3482 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3483
3484 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3485 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3486
3487 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3488
3489 * utils.c (host_pointer_to_address, address_to_host_pointer):
3490 Use gdb_assert() instead of explicit call to internal_error().
3491
3492 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3493
3494 * Makefile.in (rs6000-nat.o): Update dependencies.
3495
3496 From Nicholas Duffek:
3497 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3498 (aix-thread.o): New rule.
3499 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3500 * config/powerpc/aix432.mh: New file.
3501
3502 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3503
3504 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3505 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3506 (fetch_core_registers, ppc_linux_supply_gregset)
3507 (ppc_linux_supply_fpregset): New functions.
3508 (ppc_linux_regset_core_fns): New.
3509 (_initialize_ppc_linux_tdep): Call add_core_fns.
3510 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3511 and ppc_linux_supply_gregset.
3512 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3513 (supply_fpregset): Call ppc_linux_supply_fpregset.
3514 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3515 corelow.o.
3516 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3517
3518 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3519
3520 * symtab.c (lookup_symbol): Demangle before lowercasing.
3521
3522 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3523
3524 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3525 declaration.
3526 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3527 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3528 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3529 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3530 "gdb_string.h".
3531 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3532 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3533 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3534 (avr-tdep.o, mon960-rom.o): Ditto.
3535 (aout_stabs_gnu_h): Define.
3536 (symtab_h): Remove $(gdb_obstack_h).
3537
3538 2002-07-30 Jim Blandy <jimb@redhat.com>
3539
3540 Patch from David Carlton <carlton@math.stanford.edu>:
3541 * gdbinit.in: Move the `dir' commands that add GDB's own source
3542 directory to the search path to the end, so that the `gdb' source
3543 directory will be searched first.
3544
3545 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3546
3547 * gdb_obstack.h: New file.
3548 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3549 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3550 * objfiles.h: Include "gdb_obstack.h".
3551 * Makefile.in (gdb_obstack_h): Define.
3552 (symtab_h): Add $(gdb_obstack_h).
3553 (objfiles_h): Add $(gdb_obstack_h).
3554
3555 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3556 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3557 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3558 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3559 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3560 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3561 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3562 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3563
3564 * Makefile.in (bcache.o): Update dependencies.
3565 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3566 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3567 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3568 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3569 (stabsread.o, symfile.o, symmisc.o): Ditto.
3570 (symtab.o, typeprint.o, macroexp.o): Ditto.
3571 (macrotab.o, mdebugread.o): Ditto.
3572 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3573 (coff_ecoff_h, aout_aout64_h): Define.
3574 (aout_stabs_gnu_h, libaout_h): Define.
3575
3576 2002-07-29 Andrew Cagney <cagney@redhat.com>
3577
3578 * regcache.c (struct regcache_descr): Rename nr_registers to
3579 nr_cooked_registers. Revise comments describing the structure
3580 member fields.
3581 (init_regcache_descr): Update.
3582 (init_legacy_regcache_descr): Update.
3583 (read_register_gen, write_register_gen): When a cooked register in
3584 the raw register range, directly access the value from the raw
3585 register cache.
3586
3587 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3588
3589 * z8k-tdep.c: Do not include "obstack.h".
3590 * h8300-tdep.c, h8500-tdep.c: Ditto.
3591 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3592 * valprint.c, v850-tdep.c: Ditto.
3593 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3594 * mn10200-tdep.c: Ditto.
3595
3596 * Makefile.in (z8k-tdep.o): Update dependencies.
3597 (m68hc11-tdep.o, valprint.o): Ditto.
3598 (v850-tdep.o, d10v-tdep.o): Ditto.
3599 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3600 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3601 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3602 (sh_opc_h, gdb_sim_sh_h): Define.
3603 (elf_sh_h, elf_bfd_h): Define.
3604 (opcode_m68hc11_h): Define.
3605 (OPCODES_SRC, OPCODES_DIR): define.
3606 (OPCODES): Use $(OPCODES_DIR).
3607 (gdb_sim_d10v_h): Rename sim_d10v_h.
3608 (gdb_sim_arm_h): Rename sim_arm_h.
3609
3610 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3611
3612 * utils.c (host_pointer_to_address, address_to_host_pointer):
3613 Change internal_error() message to indicate function responsible
3614 for the error.
3615
3616 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3617
3618 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3619 calls to local_hex_string_custom().
3620
3621 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3622
3623 * irix5-nat.c: Move IRIX shared library support from here...
3624 * solib-irix.c: ...to here. Revised substantially to work with
3625 generic solib framework.
3626
3627 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3628 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3629 * mips-irix-tdep.c: New file.
3630
3631 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3632 (mips-irix-tdep.o, solib-irix.o): New rules.
3633 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3634 solib-irix.o.
3635 * config/mips/irix6.mt (TDEPFILES): Likewise.
3636 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3637
3638 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3639
3640 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3641 disabled (via ``#if 0'') includes.
3642
3643 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3644
3645 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3646 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3647 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3648 Add support for the fpscr register.
3649 * rs6000-nat.c (regmap, fetch_inferior_registers)
3650 (store_inferior_registers, fetch_core_registers): Likewise.
3651
3652 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3653
3654 * rs6000-nat.c (language.h): Include.
3655 (special_regs): Delete this array.
3656 (regmap): New function.
3657 (fetch_register, store_register): Use regmap() to map gdb
3658 register numbers to ptrace register numbers. Also, use
3659 outputs from regmap() to make decisions regarding type of
3660 ptrace() call to make. In particular, don't compare against
3661 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3662 (fetch_inferior_registers, store_inferior_registers): Where
3663 possible, obtain register numbers from tdep struct. Don't
3664 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3665 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3666 (LAST_UISA_SP_REGNUM): Delete.
3667
3668 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3669
3670 * rs6000-nat.c (ppc-tdep.h): Include.
3671 (fetch_registers, store_register, fetch_core_registers): Don't
3672 access registers[] directly. Instead, use supply_register() or
3673 regcache_collect() as appropriate.
3674 (find_toc_address): Format hex address with local_hex_string().
3675
3676 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3677
3678 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3679 bfd/elf32-frv.c.
3680
3681 2002-07-24 Tom Tromey <tromey@redhat.com>
3682
3683 * jv-exp.y: Marked all strings with _().
3684 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3685 internal_error.
3686 (MethodInvocation, CastExpression, parse_number, yyerror,
3687 java_type_from_name, push_expression_name, yylex): Typo fixes.
3688
3689 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3690
3691 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3692 (tee_file_flush, tee_file_write, tee_file_fputs)
3693 (tee_file_isatty): New.
3694 * ui-file.h (tee_file_new): Add prototype.
3695
3696 2002-07-24 Aidan Skinner <aidan@velvet.net>
3697
3698 * ada-lang.c: Change k&r style function definitions to prototyped
3699 form.
3700 * ada-typeprint.c: Change k&r style function definitions to prototyped
3701 form.
3702 * ada-valprint.c: Change k&r style function definitions to prototyped
3703 form.
3704
3705 2002-07-24 Andrew Cagney <cagney@redhat.com>
3706
3707 * README: Remove reference to remote-bug.
3708 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3709 remote-bug.c.
3710 (m88k-nat.o): Delete rule.
3711 (m88k-tdep.o): Delete rule.
3712 (remote-bug.o): Delete rule.
3713 * MAINTAINERS: Mark as obsolete.
3714 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3715 * m88k-tdep.c: Make file obsolete.
3716 * config/m88k/m88k.mh: Ditto.
3717 * config/m88k/delta88v4.mh: Ditto.
3718 * config/m88k/delta88v4.mt: Ditto.
3719 * config/m88k/delta88.mt: Ditto.
3720 * config/m88k/delta88.mh: Ditto.
3721 * remote-bug.c: Ditto.
3722 * config/m88k/tm-delta88.h: Ditto.
3723 * config/m88k/nm-delta88v4.h: Ditto.
3724 * config/m88k/xm-delta88.h: Ditto.
3725 * config/m88k/xm-dgux.h: Ditto.
3726 * config/m88k/tm-m88k.h: Ditto.
3727 * config/m88k/nm-m88k.h: Ditto.
3728 * config/m88k/tm-delta88v4.h: Ditto.
3729 * m88k-nat.c: Ditto.
3730 * cxux-nat.c: Ditto.
3731 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3732 and m88*-*-* obsolete.
3733 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3734 m88*-*-* obsolete.
3735
3736 2002-07-24 Andrew Cagney <cagney@redhat.com>
3737
3738 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3739 constant. Same for local pointer variables.
3740 (extract_signed_integer): Ditto.
3741 * defs.h (extract_unsigned_integer): Update.
3742 (extract_signed_integer): Update.
3743
3744 2002-07-24 Andrew Cagney <cagney@redhat.com>
3745
3746 * regcache.c (regcache_raw_write): Change buf parameter to a
3747 constant void pointer.
3748 (regcache_raw_read): Change buf parameter to a void pointer.
3749 (legacy_write_register_gen): Change myaddr parameter a constant
3750 void pointer.
3751 (supply_register): Change val parameter to a const void pointer.
3752 * regcache.h (regcache_raw_write): Update declaration.
3753 (regcache_raw_read): Update declaration.
3754 (supply_register): Update declaration.
3755
3756 2002-07-24 Tom Tromey <tromey@redhat.com>
3757
3758 * defs.h (gdb_readline_wrapper): Declare.
3759 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3760 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3761 * top.c (gdb_readline_wrapper): New function.
3762 (command_line_input): Use it.
3763
3764 2002-07-24 Andrew Cagney <cagney@redhat.com>
3765
3766 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3767 regcache_read and regcache_write.
3768 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3769 * regcache.c: Update.
3770 * sh-tdep.c (sh64_push_arguments): Update comment.
3771 (sh_pseudo_register_read): Update.
3772 (sh_pseudo_register_write): Update.
3773 (sh4_register_read): Update.
3774 (sh4_register_write): Update.
3775 (sh64_pseudo_register_read): Update.
3776 (sh64_pseudo_register_write): Update.
3777 (sh64_register_read): Update.
3778 (sh64_register_write): Update.
3779 * i386-tdep.c (i386_extract_return_value): Update.
3780 (i386_extract_struct_value_address): Update.
3781 (i386_extract_return_value): Update.
3782 * blockframe.c (generic_read_register_dummy): Update.
3783 (generic_call_dummy_register_unwind): Update
3784 * infrun.c (write_inferior_status_register): Update.
3785
3786 2002-07-23 Jim Blandy <jimb@redhat.com>
3787
3788 * parser-defs.h (expression_context_pc): Make this extern.
3789 (Thanks to Michael Snyder.)
3790
3791 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3792
3793 GDB 5.2.1 released from 5.2 branch.
3794 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3795 * README: Update to mention 5.2.1.
3796
3797 2002-07-23 Mark Salter <msalter@redhat.com>
3798
3799 * remote.c (remote_read_bytes): Fix check for error.
3800
3801 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3802
3803 * aix-thread.c (language.h): Include.
3804 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3805 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3806 Print newlines at end of debug messages.
3807 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3808 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3809
3810 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3811
3812 * aix-thread.c (ppc-tdep.h): Include.
3813 (special_register_p): New function.
3814 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3815 (store_regs_user_thread): Use register number information from
3816 gdbarch_tdep struct instead of hardcoded offsets relative to
3817 FIRST_UISA_SP_REGNUM.
3818 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3819 special_register_p() instead of using FPLAST_REGNUM and
3820 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3821 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3822 will be MQ's register number.
3823
3824 2002-07-22 Michael Snyder <msnyder@redhat.com>
3825
3826 * aix-thread.c (ops): Rename to aix_thread_ops.
3827 (base_ops): Rename to base_target.
3828 (ops_attach): Rename to aix_thread_attach.
3829 (ops_detach): Rename to aix_thread_detach.
3830 (ops_resume): Rename to aix_thread_detach.
3831 (ops_wait): Rename to aix_thread_wait.
3832 (ops_kill): Rename to aix_thread_kill.
3833 (init_ops): Rename to init_aix_thread_ops.
3834 (ops_fetch_register): Rename to aix_thread_fetch_register.
3835 (ops_store_register): Rename to aix_thread_store_register.
3836 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3837 (ops_thread_alive): Rename to aix_thread_thread_alive.
3838 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3839 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3840 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3841 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3842 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3843 (store_regs_lib): Rename to store_regs_user_thread.
3844 (store_regs_kern): Rename to store_regs_kernel_thread.
3845
3846 2002-07-22 Michael Snyder <msnyder@redhat.com>
3847
3848 * aix-thread.c (ops_prepare_to_store): Eliminate.
3849 (init_ops): Don't initialize ops.prepare_to_store.
3850 (store_regs_kern): Pre-fetch register buffers from child,
3851 because some registers may not be in the cache. Copy
3852 regs from register cache only if they are cached.
3853 (store_regs_lib): Copy regs from register cache only
3854 if they are cached.
3855 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3856 fill_gprs64): Ditto.
3857
3858 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3859
3860 * aix-thread.c (gdb_assert.h): Include.
3861 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3862 register sizes (from register cache) match size of buffer holding
3863 register data.
3864 (fill_sprs32): Change parameter types to match those in the ptrace()
3865 buffer.
3866 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3867 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3868
3869 2002-07-22 Michael Snyder <msnyder@redhat.com>
3870
3871 * aix-thread.c (supply_sprs64): Cosmetic change.
3872 (supply_sprs32): Cosmetic change.
3873 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3874 (fill_sprs64): Use regcache_collect instead of read_register.
3875 (store_regs_lib): Use regcache_collect instead of
3876 read_register. Use fill_sprs32 instead of fill_sprs64,
3877 if debugging a 32-bit architecture.
3878 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3879 out of the register cache, instead of passing a pointer into
3880 the register cache directly to ptrace. Use regcache_collect
3881 insteaad of read_register.
3882 (ops_prepare_to_store): Use target_read_registers instead
3883 of read_register_bytes.
3884
3885 2002-07-20 Aidan Skinner <aidan@velvet.net>
3886
3887 * MAINTAINERS: Add self under write after approval.
3888
3889 2002-07-20 Aidan Skinner <aidan@velvet.net>
3890
3891 * ada-tasks.c: Change k&r style function definitions to prototyped
3892 form.
3893
3894 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3895
3896 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3897 * x86-64-tdep.c: Include "objfiles.h".
3898 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3899 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3900
3901 2002-07-17 Michal Ludvig <michal@suse.cz>
3902
3903 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3904 (update_context): Initialise cfa variable.
3905
3906 2002-07-17 Michael Snyder <msnyder@redhat.com>
3907
3908 * aix-thread.c: Shorten some long lines.
3909 Bring comments into line with code spec.
3910
3911 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3912
3913 * infrun.c: Re-indent using gdb_indent.sh.
3914
3915 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3916
3917 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3918 Leave the indentation temporarily untouched, to minimize the diffs.
3919
3920 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3921
3922 * stabsread.c: Make os9k sections of the code obsolete,
3923 for real this time.
3924 * stabsread.h: Make os9k sections of the code obsolete.
3925
3926 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3927
3928 * linux-low.c (regsets_store_inferior_registers): Add free()
3929 at the end of a loop to prevent memory leak.
3930 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3931 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3932 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3933 line a comment.
3934 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3935
3936 2002-07-17 Jim Blandy <jimb@redhat.com>
3937
3938 * macrocmd.c (info_macro_command): Remove newline from error
3939 message.
3940
3941 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3942
3943 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3944 (sh_gdbarch_init): Use it for sh-dsp.
3945
3946 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3947
3948 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3949 64-bit DWARF2 format.
3950
3951 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3952
3953 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3954 <sys/proc.h> when not available.
3955
3956 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3957
3958 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3959 * stabsread.c: Make os9k sections of the code obsolete.
3960 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3961 * config/i386/i386os9k.mt: Make file obsolete.
3962 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3963 (COMMON_OBS): Remove os9kread.o
3964 (SFILES): Remove os9kread.c.
3965 (os9kread.o, remote-os9k.o): Make target obsolete.
3966 * remote-os9k.c: Make file obsolete.
3967 * os9kread.c: Make file obsolete.
3968 * Makefile.in
3969
3970 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3971
3972 * NEWS: Mention that the FR30 has been made obsolete.
3973 * fr30-tdep.c: Make file obsolete.
3974 * config/fr30/tm-fr30.h: Ditto.
3975 * config/fr30/fr30.mt: Ditto.
3976 * configure.tgt: Make fr30-*-elf obsolete.
3977 * MAINTAINERS: Make fr30-elf obsolete.
3978
3979 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3980
3981 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3982 found is not inside a section.
3983
3984 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3985
3986 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3987 strerror().
3988 (pdc_realloc): Use xrealloc() instead of realloc().
3989
3990 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3991
3992 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3993 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3994 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3995 macros.
3996
3997 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3998
3999 * aix-thread.c (ptrace_check): Eliminate goto.
4000 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4001 problem.
4002
4003 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4004
4005 * aix-thread.c (gdbcmd.h): Include.
4006 (DEBUG, DBG, DBG2, dbg): Eliminate.
4007 (debug_aix_thread): New static global.
4008 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4009 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4010 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4011 invocations to DBG and DBG2 macros to test against
4012 ``debug_aix_thread'' and call fprintf_unfiltered().
4013 (_initialize_aix_thread): Add new command "set debug aix-thread".
4014
4015 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4016
4017 From Gerhard Tonn <TON@de.ibm.com>:
4018 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4019 instead of supply_register.
4020
4021 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4022
4023 * dwarf2cfi.c: Include "gdb_assert.h".
4024 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4025 non-NULL.
4026 (update_context): Do not use __func__. Add missing ``break''.
4027 (update_context): Do not use __func__.
4028
4029 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4030
4031 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4032 and its setting. Set gdbarch instruction printing functions
4033 directly. For non-rs6000 case use new function
4034 gdb_print_insn_powerpc.
4035 (gdb_print_insn_powerpc): New function.
4036
4037 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4038
4039 * NEWS: Mention that the d30v has been marked obsolete.
4040 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4041 * configure.tgt: Mark d30v-*-* as obsolete.
4042 * d30v-tdep.c: Mark file as obsolete.
4043 * config/d30v/d30v.mt: Ditto.
4044 * config/d30v/tm-d30v.h: Ditto.
4045
4046 2002-07-13 Aidan Skinner <aidan@velvet.net>
4047
4048 * ada-tasks.c (add_task_entry): replace calls to
4049 malloc() with xmalloc
4050 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4051
4052 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4053 ada_finish_decode_line_1, all_sals_for_line
4054 ada_breakpoint_rewrite): replace calls to free() with xfree()
4055
4056 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4057
4058 From Nicholas Duffek (with minor changes by Martin Hunt,
4059 Louis Hamilton, and Kevin Buettner):
4060 * aix-thread.c: New file.
4061
4062 2002-07-12 Petr Sorfa <petrs@caldera.com>
4063
4064 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4065 complaint for invalid attribute class or form.
4066 (read_func_scope): DW_AT_frame_base
4067 better handling of DW_AT_block*.
4068 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4069 better handling of DW_AT_block*.
4070 (read_common_block): DW_AT_location
4071 better handling of DW_AT_block*.
4072 (read_partial_die): DW_AT_location better handling
4073 of DW_AT_block*.
4074 (new_symbol): DW_AT_external better handling of
4075 DW_AT_block*. Proper initialization of variable
4076 "addr".
4077 (attr_form_is_block): New function that returns true
4078 if the attribute's form is of DW_FORM_block*.
4079
4080 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4081
4082 * valops.c (find_method_list): Remove comment about
4083 removed STATIC_MEMFUNCP argument.
4084 (value_find_oload_method_list): Likewise.
4085
4086 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4087
4088 From Nicholas Duffek:
4089 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4090 target_new_objfile_hook.
4091
4092 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4093
4094 From Nicholas Duffek:
4095 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4096 csect.
4097
4098 2002-07-12 Andrew Cagney <cagney@redhat.com>
4099
4100 * MAINTAINERS: Mention --enable-sim-build-warnings.
4101 (m68hc11-elf): Disable sim build warnings.
4102 (m32r-elf): Mark as broken obsolete candidate.
4103 (x86_64-linux-gnu): Mark as buildable with -Werror.
4104 (arm-elf): Change -w to ``,'' which enables warnings but not
4105 -Werror.
4106
4107 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4108
4109 * bcache.h: Update copyright.
4110 (struct bstring, struct bcache): Move definition to "bcache.c".
4111 Replaced by opaque declaration.
4112 (bcache_xfree): Replace free_bcache.
4113 (bcache_xmalloc, bcache_memory_used): Declare.
4114
4115 * bcache.c: Update copyright.
4116 (struct bstring, struct bcache): Moved to here from "bcache.h".
4117 Update comments.
4118 (bcache_xmalloc, bcache_memory_used): New functions.
4119 (bcache_xfree): Replace function free_bcache.
4120
4121 * Makefile.in (objfiles.o): Add $(bcache_h).
4122 (objfiles_h): Remove $(bcache_h).
4123 (symfile.o): Add $(bcache_h).
4124
4125 * symmisc.c: Update copyright.
4126 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4127 (print_objfile_statistics): Use bcache_memory_used.
4128
4129 * symfile.c: Include "bcache.h".
4130 (reread_symbols): Use bcache_xfree.
4131 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4132 (add_psymbol_to_list): Pass psymbol_cache by value.
4133 (add_psymbol_with_dem_name_to_list): Ditto.
4134
4135 * objfiles.h: Update copyright.
4136 (struct bcache): Declare opaque. Do not include "bcache.h".
4137 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4138 bcache'' pointers.
4139 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4140
4141 * objfiles.c: Include "bcache.h". Update copyright.
4142 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4143 macro_cache.
4144 (free_objfile): Use bcache_xfree.
4145
4146 2002-07-11 Grace Sainsbury <graces@redhat.com>
4147
4148 * monitor.c (monitor_fetch_register): Make name a constant.
4149 (monitor_store_register): Same.
4150
4151 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4152
4153 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4154 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4155 (finish_block) For non-function blocks, hash the symbol table. For
4156 function blocks, mark the symbol table as unhashed.
4157 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4158 (msymbol_hash_iw): Likewise.
4159 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4160 value.
4161 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4162 (lookup_minimal_symbol): Likewise for both.
4163 * symtab.h (struct block): Add `hashtable' flag. Comment the
4164 hashtable.
4165 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4166 (ALL_BLOCK_SYMBOLS): Update.
4167 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4168 (struct symbol): Add `hash_next' pointer.
4169 * symtab.c (lookup_block_symbol): Search using the hash table when
4170 possible.
4171 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4172 (search_symbols, find_addr_symbol): Likewise.
4173
4174 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4175 (read_dst_symtab): Likewise.
4176 * jv-lang.c (get_java_class_symtab): Likewise.
4177 * mdebugread.c: Include "gdb_assert.h".
4178 (shrink_block): Assert that the block being modified is not hashed.
4179 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4180 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4181 symbols.
4182 (dump_symtab): Recognize hashed blocks.
4183 * printcmd.c (print_frame_args): Assert that function blocks do not
4184 have hashed symbol tables.
4185 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4186 (fill_in_ada_prototype, debug_print_block): Likewise.
4187 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4188
4189 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4190
4191 * stack.c (print_frame): Use result of frame_address_in_block()
4192 instead of fi->pc when evaluating symbols.
4193 (backtrace_command_1): Ditto.
4194
4195 2002-07-11 Andrew Cagney <cagney@redhat.com>
4196
4197 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4198 Make static.
4199
4200 * arm-tdep.c (arm_register_name): Make return type constant.
4201
4202 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4203
4204 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4205 prototype.
4206 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4207 * s390-tdep.c (s390_fp_regnum): Ditto.
4208 (s390_read_fp): Ditto.
4209 (s390_pop_frame): Ditto.
4210 (_initialize_s390_tdep): Ditto.
4211 * remote.c (get_remote_state): Ditto.
4212 * procfs.c (mappingflags): Ditto.
4213 * memattr.c (_initialize_mem): Ditto.
4214 * mcore-tdep.c (mcore_pop_frame): Ditto.
4215 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4216 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4217 * language.c (set_case_str): Ditto.
4218 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4219 * frv-tdep.c (new_variant): Ditto.
4220 (frv_stopped_data_address): Ditto.
4221 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4222 (context_alloc): Ditto.
4223 (frame_state_alloc): Ditto.
4224 (unwind_tmp_obstack_init): Ditto.
4225 (unwind_tmp_obstack_free): Ditto.
4226 (cfi_read_fp): Ditto.
4227 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4228 (cris_pop_frame): Ditto.
4229 * c-lang.c (scanning_macro_expansion): Ditto.
4230 (finished_macro_expansion): Ditto.
4231 (c_preprocess_and_parse): Ditto.
4232 * gdbarch.sh: Ditto.
4233 * gdbarch.h, gdbarch.c: Regenerate.
4234 * config/mn10200/tm-mn10200.h: Adjust indentation.
4235 * target.c: Adjust indentation.
4236 * symtab.h: Adjust indentation.
4237 * stabsread.h: Adjust indentation.
4238 * remote-es.c: Adjust indentation.
4239 * os9kread.c: Adjust indentation.
4240
4241 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4242
4243 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4244 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4245
4246 2002-07-10 Grace Sainsbury <graces@redhat.com>
4247
4248 * NEWS: Mention m68k, mcore multi-arching.
4249 * MAINTAINERS: Change status of m68k, mcore to reflect
4250 multi-arching.
4251
4252 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4253
4254 * valops.c (find_overload_match): Free oload_syms.
4255
4256 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4257
4258 Define HAVE_SYS_PROC_H if sys/proc.h exists
4259 * configure.in: Add check for sys/proc.h
4260 * config.in: Regenerate.
4261 * configure: Regenerate.
4262
4263 2002-07-09 Grace Sainsbury <graces@redhat.com>
4264
4265 * config/m68k/tm-m68k.h: Remove macros wrapped in
4266 #if !GDB_MULTI_ARCH.
4267
4268 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4269
4270 * config.in, configure: Regenerate.
4271
4272 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4273
4274 * dwarf2cfi.c: Include "gcore.h".
4275 (execute_stack_op): Fix implementation of the
4276 DW_OP_deref and DW_OP_deref_size operators by letting do their
4277 lookup in the target.
4278
4279 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4280
4281 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4282 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4283 tdep->sc_sp_offset.
4284
4285 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4286
4287 Fix PR gdb/595, gdb/602
4288 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4289 Don't call value_cast, just read the vtable pointer; update comments
4290 to match.
4291
4292 2002-07-05 Grace Sainsbury <graces@redhat.com>
4293
4294 * config/mcore/tm-mcore.h: Remove file.
4295 * config/mcore/mcore.mt: Remove definition of TM_FILE
4296 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4297
4298 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4299
4300 * i386bsd-tdep.c: Include "gdb_string.h".
4301
4302 2002-07-04 Grace Sainsbury <graces@redhat.com>
4303
4304 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4305 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4306 mcore-tdep.
4307 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4308 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4309 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4310 (RETVAL_REGNUM): Move macros from tm-mcore.h
4311 (mcore_reg_struct_has_addr): New function.
4312 (mcore_gdbarch_init): Added initializations for the macros removed
4313 from tm-mcore.h.
4314
4315 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4316
4317 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4318 traditonal string branding within the ELF header.
4319
4320 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4321
4322 * symtab.c (remove_params): New function.
4323 (make_symbol_overload_list): Use it instead of cplus_demangle.
4324 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4325
4326 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4327
4328 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4329
4330 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4331 New variables.
4332 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4333 and tdep->sigtramp_end.
4334 * i386obsd-nat.c: New file.
4335 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4336
4337 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4338 Don't call get_current_frame().
4339
4340 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4341
4342 * i386-nat.c (child_post_startup_inferior): New function
4343 calling i386_cleanup_dregs if
4344 I386_USE_GENERIC_WATCHPOINTS is defined.
4345 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4346 conditional to acknowledge that i386-nat.c has its
4347 own child_post_startup_inferior function.
4348
4349 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4350
4351 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4352 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4353 instead of MAX_REGISTER_RAW_SIZE.
4354 (i386_extract_return_value, i386_extract_struct_value_address):
4355 Convert to use regcache.
4356 (i386_gdbarch_init): Set max_register_raw_size and
4357 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4358 Set extract_return_value and extract_struct_value_address instead
4359 of their deprecated variants.
4360
4361 Convert i386 target to generic dummy frames.
4362 * i386-tdep.c: Include "symfile.h".
4363 (i386_frameless_signal_p): Consider a function to be frameless if
4364 the pc points at the first instruction of the function.
4365 (i386_frame_chain): Handle (generic) call dummies.
4366 (i386_frame_saved_pc): Likewise.
4367 (i386_frame_init_saved_regs): Remove code dealing with call
4368 dummies on the stack.
4369 (i386_push_dummy_frame): Removed.
4370 (i386_call_dummy_words): Removed.
4371 (i386_fix_call_dummy): Removed.
4372 (i386_push_return_address): New function.
4373 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4374 parameter, and don't call get_current_frame.
4375 (i386_pop_frame): New function.
4376 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4377 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4378 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4379 call_dummy_length to 0, set call_dummy_words to NULL, set
4380 sizeof_call_dummy_words to 0, set fix_call_dummy to
4381 generic_fix_call_dummy, set pc_in_call_dummy to
4382 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4383 generic_push_dummy_frame, set push_return_address to
4384 i386_push_return_address and set frame_chain_valid to
4385 generic_file_frame_chain_valid.
4386
4387 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4388
4389 * gdbarch.sh (struct regcache): Add opaque declaration.
4390 (EXTRACT_RETURN_VALUE): New architecture method.
4391 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4392 * gdbarch.h, gdbarch.c: Regenerate.
4393 * arch-utils.c (legacy_extract_return_value): New function.
4394 * arch-utils.h (legacy_extract_return_value): Declare.
4395 * values.c (value_being_returned): Re-enable code handling
4396 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4397 deprecated_grub_regcache_for_registers call to block handling
4398 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4399 (EXTRACT_RETURN_VALUE): Do not define.
4400
4401 2002-07-03 Grace Sainsbury <graces@redhat.com>
4402
4403 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4404 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4405 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4406 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4407 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4408 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4409 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4410 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4411 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4412 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4413 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4414 argument so the function fits the prototype in the architecture
4415 vector.
4416 (mcore_pop_frame): Remove argument so the function fits the
4417 prototype. Use get_current_frame instead of the argument.
4418 (mcore_push_arguments): Change type of struct_return so the
4419 function can be used in the architecture vector.
4420 (mcore_store_struct_return): Add.
4421 (mcore_frame_init_saved_regs): Add.
4422 (mcore_gdbarch_init): Add function calls to replace the macros
4423 removed from tm-mcore.h
4424
4425 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4426
4427 * infcmd.c (print_return_value): Remove compatibility code calling
4428 deprecated_grub_regcache_for_registers.
4429
4430 * values.c: Include "regcache.h".
4431 (value_being_returned): Update. Use
4432 deprecated_grub_regcache_for_registers to extract the register
4433 buffer address.
4434 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4435 ``struct regcache''.
4436 * Makefile.in (values.o): Add dependency on $(regcache_h).
4437
4438 * inferior.h (run_stack_dummy): Change type of second parameter to
4439 a ``struct regcache''.
4440 * valops.c (hand_function_call): Change type of retbuf to ``struct
4441 regcache''. Allocate using regcache_xmalloc, clean using
4442 make_cleanup_regcache_xfree.
4443 * infcmd.c (run_stack_dummy): Update. Use
4444 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4445
4446 * regcache.c (do_regcache_xfree): New function.
4447 (make_cleanup_regcache_xfree): New function.
4448 * regcache.h (make_cleanup_regcache_xfree): Declare.
4449
4450 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4451
4452 * event-top.c (command_line_handler): Don't read past
4453 beginning of buffer.
4454
4455 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4456
4457 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4458 struct frame_id.
4459 (varobj_create): Store frame_id for root.
4460 (varobj_gen_name): Use xasprintf.
4461 (varobj_update): Save and restore frame using get_frame_id() and
4462 frame_find_by_id().
4463 (create_child): Use xasprintf.
4464 (new_root_variable): Initialize frame_id.
4465 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4466 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4467 to prevent memory leak.
4468
4469 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4470
4471 * valops.c (hand_function_call): Move declaration of retbuf to
4472 start of function, allocate using malloc, add a cleanup but before
4473 the inf_status cleanup, cleanup the buffer. Rename local variable
4474 old_chain to inf_status_cleanup.
4475
4476 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4477
4478 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4479
4480 * cli/cli-decode.c (cmd_func_p): New function.
4481 (cmd_func): New function.
4482
4483 * command.h: Add cmd_func() and cmd_func_p().
4484
4485 2002-07-03 Grace Sainsbury <graces@redhat.com>
4486
4487 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4488 (REGISTER_SIZE): Remove.
4489 (MAX_REGISTER_RAW_SIZE): Remove.
4490 (REGISTER_VIRTUAL_TYPE): Remove.
4491 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4492 (REGISTER_NAME): Remove.
4493 (USE_GENERIC_DUMMY_FRAMES): Remove.
4494 (CALL_DUMMY): Remove.
4495 (CALL_DUMMY_START_OFFSET): Remove.
4496 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4497 (CALL_DUMMY_LOCATION): Remove.
4498 (FIX_CALL_DUMMY): Remove.
4499 (CALL_DUMMY_ADDRESS): Remove.
4500 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4501 (SAVE_DUMMY_FRAME_TOS): Remove.
4502 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4503 (mcore_register_virtual_type): New function.
4504 (mcore_register_byte): New function.
4505 (mcore_register_size): New function.
4506 (mcore_register_name): New function.
4507 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4508 macros removed from tm-mcore.h.
4509 (mcore_dump_tdep): Add.
4510 (_initialize_mcore_tdep): Add gdbarch_register call.
4511
4512 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4513
4514 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4515 frameless_look_for_prologue, such that we actually call this
4516 function.
4517
4518 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4519
4520 * frame.h (frame_address_in_block): New function.
4521
4522 * blockframe.c (frame_address_in_block): New function extracted
4523 from get_frame_block().
4524 (get_frame_block): Use frame_address_in_block().
4525 (block_innermost_frame): Use frame_address_in_block() to match
4526 the frame pc address against the block boundaries rather than
4527 the frame pc directly. This prevents a failure when a frame pc
4528 is actually a return-address pointing immediately after the end
4529 of the given block.
4530
4531 2002-07-02 Grace Sainsbury <graces@redhat.com>
4532
4533 * MAINTAINERS: Add self under write after approval.
4534
4535 2002-07-02 Grace Sainsbury <graces@redhat.com>
4536
4537 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4538 used in architecture vector. The default is
4539 m68k_local_breakpoint_from_pc.
4540 (m68k_local_breakpoint_from_pc): Add.
4541 (enum): Add register numbers from tm-m68k.h.
4542 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4543 vector.
4544 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4545 GDB_MULTI_ARCH_PARTIAL.
4546 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4547 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4548 m68k-tdep.c.
4549 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4550 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4551 to enum in m68k-tdep.c
4552
4553 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4554
4555 * solib-osf.c (open_map): Compute the list of shared libraries
4556 loaded by the inferior, rather than the list of libraries loaded
4557 by GDB itself. Otherwise, GDB ends up reading the symbols from
4558 the wrong shared libraries...
4559
4560 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4561
4562 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4563 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4564 macros.
4565 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4566 Remove functions.
4567 (FRAMELESS_SIGNAL): Remove function.
4568 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4569 i386_linux_saved_pc_after_call): Removed.
4570 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4571 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4572 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4573
4574 * i386-tdep.c (i386_frameless_signal_p): New function.
4575 (i386_frame_chain): Deal with frameless signals.
4576 (i386_sigtramp_saved_sp): New function.
4577 (i386_frame_saved_pc): Deal with frameless signals.
4578 (i386_saved_pc_after_call): Make sure the correct value is
4579 returned just after entry into a sigtramp.
4580 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4581 i386fbsd4_sc_sp_offset): New variables.
4582 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4583 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4584 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4585 similiar to what we already did for sc_pc_offset.
4586 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4587 tdep->sc_sp_offset.
4588
4589 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4590
4591 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4592
4593 * config/i386/tm-x86-64linux.h: New.
4594 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4595 definitions.
4596 * config/i386/nm-x86-64.h: Rename to ...
4597 * config/i386/nm-x86-64linux.h: ... this one.
4598 * config/i386/x86-64linux.mh: Reflect the above change.
4599
4600 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4601
4602 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4603 with sigcontext_addr. Add sc_sp_offset.
4604 (i386bsd_sigtramp_saved_pc): Remove prototype.
4605 (i386bsd_sicontext_addr): Add prototype.
4606 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4607 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4608 (i386_svr4_sigtramp_saved_pc): Removed.
4609 (i386_svr4_sigcontext_addr): New function.
4610 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4611 Initialize tdep->sigcontext_addr instead. Initialize
4612 tdep->sc_pc_offset and tdep->sc_sp_offset.
4613 (i386_gdbarch_init): Likewise.
4614 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4615 any more.
4616 (i386bsd_sigtramp_saved_pc): Remove function.
4617 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4618 Initialize tdep->sigcontext_addr instead. Initialize
4619 tdep->sc_pc_offset.
4620 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4621 of tdep->sigtramp_saved_pc.
4622 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4623 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4624 instead.
4625
4626 * i386-tdep.c (i386_frameless_function_invocation,
4627 i386_frame_num_args, i386_frame_init_saved_regs,
4628 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4629 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4630 i386_extract_return_value, i386_store_return_value,
4631 i386_extract_struct_value_address, i386_register_virtual_type,
4632 i386_register_convertible, i386_register_convert_to_virtual,
4633 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4634 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4635 static.
4636
4637 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4638
4639 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4640
4641 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4642 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4643 this macro. Include "value.h".
4644
4645 2002-06-30 Aidan Skinner <aidan@velvet.net>
4646
4647 * ada-exp.tab.c: remove as it's a generated file
4648 * ada-lex.c: remove as it's a generated file
4649
4650 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4651
4652 * config/i386/tm-i386.h (struct frame_info, struct
4653 frame_saved_regs, struct value, struct type): Remove forward
4654 declarations.
4655
4656 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4657 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4658 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4659 (FILL_FPXREGSET): Define.
4660
4661 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4662
4663 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4664 i[3456]86-*-netbsd* case.
4665 * config/i386/tm-obsd.h: Removed.
4666 * config/i386/obsd.mt: Removed.
4667 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4668 core-aout.o.
4669 (MH_CFLAGS): Add -DYYDEBUG=0.
4670
4671 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4672 i386nbsd_sc_pc_offset on OpenBSD too.
4673
4674 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4675 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4676 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4677 define.
4678 * i386bsd-tdep.c: Include "arch-utils.h".
4679 (i386bsd_aout_in_solib_call_trampoline): New function.
4680 (i386bsd_init_abi): Set in_solib_call_trampoline to
4681 i386bsd_aout_in_solib_call_trampoline.
4682 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4683 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4684
4685 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4686
4687 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4688 (struct obstack, struct bcache): Add opaque declarations.
4689 * Makefile.in (macrotab_h): Update
4690
4691 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4692
4693 * blockframe.c (generic_find_dummy_frame): Change return type to
4694 ``struct regcache''.
4695 (struct dummy_frame): Replace field ``registers'' with regcache, a
4696 struct regcache object.
4697 (generic_find_dummy_frame): Update.
4698 (generic_push_dummy_frame): Update. Use regcache_xfree,
4699 regcache_xmalloc and regcache_cpy.
4700 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4701 regcache_xfree.
4702 (deprecated_generic_find_dummy_frame): Update.
4703 (generic_read_register_dummy): Update. Use
4704 regcache_read_as_address.
4705 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4706 (generic_get_saved_register): Update. Use regcache_read.
4707
4708 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4709
4710 * Makefile.in (objfiles_h): Add $(bcache_h).
4711 * objfiles.h: Include "bcache.h".
4712
4713 * Makefile.in (symtab_h): Remove $(bcache_h).
4714 * symtab.h: Do not include "bcache.h".
4715
4716 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4717
4718 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4719 generic_func_frame_chain_valid.
4720
4721 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4722
4723 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4724 * config/i386/tm-fbsd.h: Likewise.
4725
4726 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4727
4728 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4729 generic_unwind_get_saved_register.
4730
4731 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4732
4733 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4734 * regcache.c (supply_register): Add missing argument to
4735 register_buffer call.
4736
4737 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4738
4739 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4740 Solaris /bin/grep does not not like it. From Peter Schauer.
4741
4742 2002-06-26 Tom Tromey <tromey@redhat.com>
4743
4744 * command.h (add_setshow_cmd): Declare.
4745 (add_setshow_cmd_full): Declare.
4746 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4747 returns void. Use add_setshow_cmd_full.
4748 (add_setshow_cmd_full): New function.
4749 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4750 (add_setshow_boolean_cmd): Likewise.
4751
4752 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4753
4754 * config/vax/tm-vax.h: Protect from multiple inclusion.
4755 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4756 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4757 * config/vax/tm-vaxbsd.h: ...here. New file.
4758 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4759
4760 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4761
4762 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4763 (BELIEVE_PCC_PROMOTION): Remove.
4764 (AP_REGNUM): Move to...
4765 * config/vax/nm-vax.h: ...here.
4766 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4767 (vax_breakpoint_from_pc): New function.
4768 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4769 and gdbarch_believe_pcc_promotion.
4770
4771 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4772
4773 * Makefile.in (vax_tdep_h): Define.
4774 (vax-tdep.o): Use $(vax_tdep_h).
4775 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4776 (vax_dump_tdep): New function.
4777 (_initialize_vax_tdep): Register vax_dump_tdep.
4778 * vax-tdep.h: Include osabi.h.
4779 (struct gdbarch_tdep): New.
4780
4781 2002-06-26 Andrew Cagney <cagney@redhat.com>
4782
4783 * frame.h (deprecated_generic_find_dummy_frame): Rename
4784 generic_find_dummy_frame.
4785 * blockframe.c (generic_find_dummy_frame): Make static.
4786 (deprecated_generic_find_dummy_frame): New function.
4787 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4788 generic_find_dummy_frame with deprecated_find_dummy_frame.
4789 (sh64_nofp_frame_init_saved_regs): Ditto.
4790 (sh_fp_frame_init_saved_regs): Ditto.
4791 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4792 (s390_frame_chain): Ditto.
4793 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4794
4795 2002-06-26 Grace Sainsbury <graces@redhat.com>
4796
4797 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4798 gdbarch vector are at the top.
4799 (NUM_REGS): Remove.
4800 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4801 (FRAME_ARGS_ADDRESS): Remove.
4802 (FRAME_LOCALS_ADDRESS): Remove.
4803 (FRAME_NUM_ARGS): Remove.
4804 (FRAME_ARGS_SKIP): Remove.
4805 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4806 (m68k_gdbarch_init): Add gdbarch initializations for macros
4807 undefined in tm-m68k.h
4808
4809 2002-06-26 Grace Sainsbury <graces@redhat.com>
4810
4811 * monitor.h: Add the function regname to monitor_ops
4812 structure. This way NUM_REGS does not have to be a constant.
4813 * monitor.c (monitor_fetch_register): Added support for regname
4814 function. The function is called if the array regnames is NULL.
4815 (monitor_store_register): Same.
4816 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4817 regnames array.
4818 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4819 cpu32bug_cmds.regname to point to new function.
4820 * abug-rom.c (abug_regname): Same as above.
4821 (init_abug_cmds): Same.
4822 * dbug-rom.c (dbug_regname): Same as above.
4823 (init_dbug_cmds): Same.
4824 * remote-est.c (est_regname): Same.
4825 (init_est_cmds): Same.
4826 * rom68k-rom.c (rom68k_regname): Same.
4827 (init_rom68k_cmds): Same.
4828
4829 2002-06-25 Tom Tromey <tromey@redhat.com>
4830
4831 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4832
4833 2002-06-25 Andrew Cagney <cagney@redhat.com>
4834
4835 * infrun.c (stop_registers): Change variable's type to ``struct
4836 regcache'''.
4837 (xmalloc_inferior_status): Delete function.
4838 (free_inferior_status): Delete function.
4839 (normal_stop): Use regcache_cpy.
4840 (struct inferior_status): Change type of fields ``stop_registers''
4841 and ``registers'' to ``struct regcache''.
4842 (write_inferior_status_register): Use regcache_write.
4843 (save_inferior_status): Instead of calling
4844 xmalloc_inferior_status, allocate the inf_status buffer directly.
4845 Use regcache_dup_no_passthrough and regcache_dup to save the
4846 buffers.
4847 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4848 Replace the stop_registers regcache instead of overriding it. Use
4849 regcache_xfree. Instead of calling free_inferior_status, xfree
4850 the buffer directly.
4851 (discard_inferior_status): Use regcache_xfree. Instead of calling
4852 free_inferior_status, xfree the buffer directly.
4853 (build_infrun): Use regcache_xmalloc.
4854 (_initialize_infrun): Delete redundant call to build_infrun.
4855
4856 * Makefile.in (infcmd.o): Add $(regcache_h).
4857
4858 * infcmd.c: Include "regcache.h".
4859 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4860 obtain the address of `stop_registers' register buffer.
4861 (print_return_value): Ditto.
4862
4863 * inferior.h (struct regcache): Add opaque declaration.
4864 (stop_registers): Change variable's declared type to ``struct
4865 regcache''.
4866
4867 2002-06-24 Tom Tromey <tromey@redhat.com>
4868
4869 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4870 * target.c (initialize_targets): Fixed typo in
4871 trust-readonly-sections `show' documentation.
4872
4873 * main.c: Marked all strings with _().
4874
4875 2002-06-24 Don Howard <dhoward@redhat.com>
4876
4877 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4878 that means max CORE_ADDR+1.
4879 (lookup_mem_region): Ditto.
4880 (mem_info_command): Ditto.
4881
4882 2002-06-24 Grace Sainsbury <graces@redhat.com>
4883
4884 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4885 (REGISTER_BYTES_OK): Remove.
4886 (REGISTER_BYTES): Remove.
4887 (STORE_STRUCT_RETURN): Remove.
4888 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4889 (STORE_RETURN_VALUE): Remove.
4890 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4891 (FRAME_CHAIN): Remove.
4892 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4893 (FRAME_SAVED_PC): Remove.
4894 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4895 (m68k_store_struct_return): Add.
4896 (m68k_deprecated_extract_return_value): Add.
4897 (m68k_deprecated_extract_struct_value_address): Add.
4898 (m68k_store_return_value): Add.
4899 (m68k_frame_chain): Add.
4900 (m68k_frameless_function_invocation): Add.
4901 (m68k_frame_saved_pc): Add.
4902 (m68k_gdbarch_init): added set_gdbarch calls for new
4903 functions and deleted macros.
4904
4905 2002-06-23 Tom Tromey <tromey@redhat.com>
4906
4907 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4908 (ALLDEPFILES): Likewise.
4909 (udiheaders): Removed.
4910 (udip2soc.o): Likewise.
4911 (udi2go32.o): Likewise.
4912 (udr.o): Likewise.
4913 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4914
4915 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4916
4917 * infrun.c (_initialize_infrun): Delete unnecessary call to
4918 build_infrun.
4919
4920 * regcache.h: Update comments describing the regcache_cpy family
4921 of functions.
4922 (regcache_save, regcache_restore): Delete declaration.
4923 (regcache_save_no_passthrough): Delete declaration.
4924 (regcache_restore_no_passthrough): Delete declaration.
4925 * regcache.c (regcache_save): Delete function.
4926 (regcache_save_no_passthrough): Delete function.
4927 (regcache_restore): Delete function.
4928 (regcache_restore_no_passthrough): Delete function.
4929
4930 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4931
4932 * config/m68k/tm-m68k.h: Fix typo.
4933 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4934 (m68k_frame_init_saved_regs): Declare.
4935
4936 2002-06-21 Jim Blandy <jimb@redhat.com>
4937
4938 Remove some vestiges of Harris 88k support.
4939 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4940 register numbering quirk.
4941 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4942 odd symbols occurring in Harris 88k ELF targets.
4943
4944 2002-06-21 Tom Tromey <tromey@redhat.com>
4945
4946 * gdb_locale.h: New file.
4947 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4948 (defs_h): Added gdb_locale.h.
4949 * configure, config.in: Rebuilt.
4950 * configure.in (PACKAGE): Define.
4951 * defs.h: Include gdb_locale.h.
4952 * main.c (captured_main): Call setlocale, bindtextdomain,
4953 textdomain.
4954
4955 2002-06-21 Dave Brolley <brolley@redhat.com>
4956
4957 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4958 * config/frv/frv.mt: New file.
4959 * config/frv/tm-frv.h: New file.
4960 * configure.tgt: Support frv-*-*.
4961 * Makefile.in (frv-tdep.o): New target.
4962 * frv-tdep.c: New file.
4963 * NEWS: Mention frv.
4964
4965 2002-06-21 Dave Brolley <brolley@redhat.com>
4966
4967 * MAINTAINERS: Add self to "Write After Approval" list.
4968
4969 2002-06-21 Grace Sainsbury <graces@redhat.com>
4970
4971 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4972 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4973 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4974 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4975 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4976
4977 * m68k-tdep.c: Include arch-utils.h
4978 (m68k_register_raw_size): Add.
4979 (m68k_register_virtual_size): Add.
4980 (m68k_register_virtual_type): Add.
4981 (m68k_register_name): Add.
4982 (m68k_stack_align): Add.
4983 (m68k_register_byte): Add.
4984 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4985 tm-m68k.h.
4986
4987 2002-06-21 Grace Sainsbury <graces@redhat.com>
4988
4989 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4990 m68k_find_saved_regs.
4991 (m68k_pop_frame): Removed saved_regs structure, and replaced
4992 references to it with frame->saved_regs.
4993 (m68k_gdbarch_init): Added function calls to initialize the
4994 gdbarch structure.
4995 (m68k_fix_call_dummy): Add.
4996 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4997 (CALL_DUMMY): Remove.
4998 (CALL_DUMMY_LENGTH): Remove.
4999 (CALL_DUMMY_START_OFFSET): Remove.
5000 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5001 (FIX_CALL_DUMMY): Remove.
5002 (PUSH_DUMMY_FRAME): Remove.
5003 (POP_FRAME): Remove.
5004
5005 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5006
5007 * parse.c (parse_fprintf): New function used to avoid calls to
5008 fprintf in bison parser generated debug code.
5009 * parser-defs.h: Declaration of new parse_fprintf function.
5010 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5011 Set YYDEBUG to 1 by default.
5012 Set YYFPRINTF as parse_fprintf.
5013
5014 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5015
5016 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5017 encoding anymore.
5018 (pointer_encoding, enum ptr_encoding): New.
5019 (execute_cfa_program): Take care about pointer encoding.
5020 (dwarf2_build_frame_info): Only call parse_frame_info for
5021 .debug_frame and .eh_frame.
5022 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5023 fixed augmentation handling, added relative addressing,
5024 ignore duplicate FDEs. Added comments.
5025 * dwarf2cfi.c: Reindented.
5026
5027 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5028
5029 * event-top.c (command_handler): Don't use space_at_cmd_start
5030 unless there is sbrk() on the host. Assign time and space data
5031 to union fields of the appropriate length.
5032
5033 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5034
5035 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5036 x86_64_register_name. Return type changed to 'const char *'.
5037 (x86_64_register_name2nr): Rename to x86_64_register_number.
5038 (x86_64_gdbarch_init): Update to reflect the change.
5039 * x86-64-tdep.h: Ditto.
5040 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5041 (supply_fpregset): Ditto.
5042
5043 2002-06-19 Andrew Cagney <cagney@redhat.com>
5044
5045 * regcache.h: Update copyright.
5046 (struct regcache, struct gdbarch): Add opaque declarations.
5047 (current_regcache): Declare global variable.
5048 (regcache_read, regcache_write): Add gdbarch parameter.
5049 (regcache_save, regcache_save_no_passthrough)
5050 (regcache_restore, regcache_restore_no_passthrough)
5051 (regcache_dup, regcache_dup_no_passthrough)
5052 (regcache_cpy, regcache_cpy_no_passthrough)
5053 (deprecated_grub_regcache_for_registers)
5054 (deprecated_grub_regcache_for_register_valid)
5055 (regcache_valid_p): Add function declarations.
5056
5057 * regcache.c: Update copyright.
5058 (regcache_descr_handle): New global variable.
5059 (struct regcache_descr): Define.
5060 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5061 (regcache_descr, xfree_regcache_descr): New functions.
5062 (struct regcache): Define.
5063 (regcache_xmalloc, regcache_xfree): New functions.
5064 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5065 (regcache_dup, regcache_dup_no_passthrough): New functions.
5066 (regcache_valid_p, regcache_read_as_address): New functions.
5067 (deprecated_grub_regcache_for_registers): New function.
5068 (deprecated_grub_regcache_for_register_valid): New function.
5069 (current_regcache): New global variable.
5070 (register_buffer): Add regcache parameter. Update calls.
5071 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5072 (read_register_gen, write_register_gen): Update register_buffer
5073 call. Test for legacy_p instead of gdbarch_register_read_p or
5074 gdbarch_register_write_p.
5075 (regcache_collect): Update register_buffer call.
5076 (build_regcache): Rewrite. Use deprecated grub functions.
5077 (regcache_save, regcache_save_no_passthrough): New functions.
5078 (regcache_restore, regcache_restore_no_passthrough): New
5079 functions.
5080 (_initialize_regcache): Create the regcache_data_handle. Swap
5081 current_regcache global variable.
5082
5083 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5084 parameter to regcache_read and regcache_write calls.
5085 (sh4_register_read): Ditto.
5086 (sh64_pseudo_register_read): Ditto.
5087 (sh64_register_read): Ditto.
5088 (sh_pseudo_register_write): Ditto.
5089 (sh4_register_write): Ditto.
5090 (sh64_pseudo_register_write): Ditto.
5091 (sh64_register_write): Ditto.
5092
5093 * defs.h (XCALLOC): Define.
5094
5095 2002-06-19 Grace Sainsbury <graces@redhat.com>
5096
5097 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5098 * m68k-tdep.c (m68k_gdbarch_init): Added.
5099 (m68k_dump_tdep): Added.
5100
5101 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5102
5103 * ada-lang.c (fill_in_ada_prototype): Update comment.
5104
5105 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5106
5107 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5108 MIPS_ABI_LAST.
5109 (mips_abi_string, mips_abi_strings): New.
5110 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5111 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5112 tdep->mips_abi_string. Honor mips_abi_string. Default to
5113 O32 if no ABI is found.
5114 (mips_dump_tdep): Use mips_abi_strings.
5115 (mips_abi_update): New function.
5116 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5117 ``set mips abi'' and ``show mips abi''. Check the size of
5118 mips_abi_strings.
5119
5120 2002-06-19 Andrew Cagney <cagney@redhat.com>
5121
5122 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5123 constant.
5124
5125 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5126
5127 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5128 current frame using only the first stack size adjustment. All
5129 subsequent size adjustments are not considered to be part of
5130 the "static" part of the current frame.
5131 Compute the address of the saved registers relative to the
5132 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5133 in use in this frame.
5134
5135 2002-06-18 Don Howard <dhoward@redhat.com>
5136
5137 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5138 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5139 suggesting this solution.
5140
5141 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5142
5143 * config/romp/xm-rtbsd.h: Delete file.
5144 * config/romp/rtbsd.mh: Delete file.
5145
5146 2002-06-18 Keith Seitz <keiths@redhat.com>
5147
5148 * breakpoint.c (condition_command): Post breakpoint_modify
5149 when a condition is added to an existing breakpoint.
5150 (commands_command): Likewise for commands.
5151 (set_ignore_count): Likewise for ignore counts.
5152 If no tty, do not simply return, still need to send event
5153 notification.
5154 (ignore_command): Only print a newline if the command came
5155 from a tty.
5156 Don't call breakpoints_changed, since this is now properly
5157 handled by set_ignore_count.
5158
5159 2002-06-18 Andrew Cagney <cagney@redhat.com>
5160
5161 * MAINTAINERS: Note that cris-elf target can be compiled with
5162 -Werror.
5163 * cris-tdep.c (cris_register_name): Make return type constant.
5164 (cris_breakpoint_from_pc): Ditto.
5165
5166 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5167
5168 * frame.h (struct frame_info): Change type of context to
5169 'struct context'.
5170
5171 2002-06-17 Andrew Cagney <cagney@redhat.com>
5172
5173 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5174 pointer.
5175 * gdbarch.h, gdbarch.c: Regenerate.
5176 * config/mips/tm-mips.h (mips_register_name): Update.
5177 * i386-tdep.h (i386_register_name): Update.
5178 * mips-tdep.c (mips_register_name): Update
5179 * alpha-tdep.c (alpha_register_name): Update.
5180 * arch-utils.c (legacy_register_name): Update.
5181 * arch-utils.h (legacy_register_name): Update.
5182 * avr-tdep.c (avr_register_name): Update.
5183 * ia64-tdep.c (ia64_register_name): Update.
5184 * i386-tdep.c (i386_register_name): Update.
5185 * sparc-tdep.c (sparc32_register_name): Update.
5186 (sparc64_register_name): Update.
5187 (sparclite_register_name): Update.
5188 (sparclet_register_name): Update.
5189 * sh-tdep.c (sh_generic_register_name): Update.
5190 (sh_sh_register_name): Update.
5191 (sh_sh3_register_name): Update.
5192 (sh_sh3e_register_name): Update.
5193 (sh_sh_dsp_register_name): Update.
5194 (sh_sh3_dsp_register_name): Update.
5195 (sh_sh4_register_name): Update.
5196 (sh_sh64_register_name): Update.
5197 * s390-tdep.c (s390_register_name): Update.
5198 * rs6000-tdep.c (rs6000_register_name): Update.
5199 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5200 (ns32k_register_name_32382): Update.
5201 * d10v-tdep.c (d10v_ts2_register_name): Update.
5202 (d10v_ts3_register_name): Update.
5203 * xstormy16-tdep.c (xstormy16_register_name): Update.
5204 * vax-tdep.c (vax_register_name): Update.
5205 * v850-tdep.c (v850_register_name): Update.
5206 * m68hc11-tdep.c (m68hc11_register_name): Update.
5207 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5208 (am33_register_name): Update.
5209
5210 2002-06-17 Grace Sainsbury <graces@redhat.com>
5211
5212 * m68k-tdep.c: Reindented.
5213
5214 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5215
5216 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5217 list of predefined types.
5218
5219 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5220
5221 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5222 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5223 REGISTER_CONVERT_TO_RAW): Remove defines.
5224 (i386_register_virtual_type, i386_register_convertible,
5225 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5226 Remove prototypes.
5227 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5228 macros mentioned above.
5229
5230 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5231 (i386lynx_saved_pc_after_call): Remove prototype.
5232 * i386ly-tdep.c: Include "i386-tdep.h".
5233 (i386lynx_saved_pc_after_call): Make static. Use
5234 read_memory_nobpt instead of read_memory. Use
5235 read_memory_unsigned_integer instead of read_memory_integer.
5236 (i386lynx_init_abi): New function.
5237 (i386lynx_coff_osabi_sniffer): New function.
5238 (_initialize_i386bsd_tdep): New function.
5239
5240 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5241 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5242 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5243 (i386_fix_call_dummy): Remove prototype.
5244 * i386-tdep.c (i386_call_dummy_words): New variable.
5245 (i386_gdbarch_init): Adjust for removal of the
5246 macros mentioned above.
5247
5248 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5249
5250 * command.h (add_setshow_auto_boolean_cmd): Replace
5251 add_set_auto_boolean_cmd.
5252 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5253 add_set_auto_boolean_cmd.
5254 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5255 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5256 mask-address'' command.
5257 (show_mask_address): Add cmd parameter.
5258 * remote.c (add_packet_config_cmd): Update. Change type of
5259 set_func and show_func to cmd_sfunc_ftype.
5260 (_initialize_remote): Update `set remote Z-packet'
5261 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5262 (show_remote_protocol_e_packet_cmd): Ditto.
5263 (show_remote_protocol_E_packet_cmd): Ditto.
5264 (show_remote_protocol_P_packet_cmd): Ditto.
5265 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5266 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5267 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5268 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5269 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5270 (show_remote_protocol_Z_packet_cmd): Ditto.
5271 (show_remote_protocol_binary_download_cmd): Ditto.
5272 (show_remote_cmd): Pass NULL to all of above.
5273
5274 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5275
5276 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5277 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5278 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5279 POP_FRAME): Remove defines.
5280 (i386_push_arguments, i386_store_struct_return,
5281 i386_extract_return_value, i386_store_return_value,
5282 i386_extract_struct_value_address, i386_push_dummy_frame,
5283 i386_pop_frame): Renove prototypes.
5284 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5285 macros mentioned above.
5286
5287 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5288
5289 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5290 add_set_boolean_cmd.
5291 (add_setshow_cmd): New function.
5292 * command.h (add_setshow_boolean_cmd): Replace
5293 add_set_boolean_cmd.
5294 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5295 and ``set rdiromatzero''.
5296 * maint.c (_initialize_maint_cmds): Update commented out code.
5297 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5298 * target.c (initialize_targets): Update `set
5299 trust-readonly-sections'.
5300 * remote.c (_initialize_remote): Update `set remotebreak'.
5301
5302 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5303
5304 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5305 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5306 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5307 fit into multi-arch framework.
5308 (i386_breakpoint_from_pc): New function.
5309 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5310 above.
5311
5312 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5313 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5314 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5315 (i386_frameless_function_invocation, i386_frame_num_args,
5316 i386_frame_init_saved_regs): Remove prototypes.
5317 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5318 macros mentioned above.
5319
5320 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5321
5322 * cli/cli-decode.c (set_cmd_cfunc): Update.
5323 (set_cmd_sfunc): Update.
5324 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5325 (set_cmd_sfunc, set_cmd_cfunc): Update.
5326 * cli/cli-decode.h: Update.
5327
5328 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5329
5330 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5331 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5332
5333 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5334
5335 * defs.h (auto_boolean): Declare enum.
5336 * command.h (cmd_auto_boolean): Delete enum.
5337 * mips-tdep.c (mask_address_var): Update.
5338 (mips_mask_address_p): Update.
5339 (show_mask_address): Update.
5340 * remote.c (struct packet_config): Update.
5341 (update_packet_config): Update.
5342 (show_packet_config_cmd): Update.
5343 (packet_ok): Update.
5344 (add_packet_config_cmd): Update.
5345 (_initialize_remote):
5346 * command.h: Update.
5347 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5348 (do_setshow_command): Update.
5349 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5350 * cli/cli-decode.h: Update.
5351
5352 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5353
5354 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5355 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5356 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5357 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5358 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5359 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5360
5361 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5362 list of DJGPP COFF targets.
5363
5364 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5365 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5366 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5367 (FP0_REGNUM): Remove define.
5368 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5369 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5370 (i386_register_virtual_size): Remove protoype.
5371 * i386-tdep.c (i386_register_virtual_size): Removed.
5372 (i386_extract_return_value, i386_store_return_value): Use
5373 FP0_REGNUM instead of NUM_FREGS to determine whether the
5374 floating-point registers are available.
5375 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5376 Adjust for removal of macros mentioned above.
5377
5378 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5379
5380 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5381 comments.
5382 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5383 Remove prototypes.
5384 (supply_gregset, fill_gregset): Remove use of register keyword and
5385 remove declaration for regmap. Use I386_NUM_GREGS instead of
5386 NUM_REGS and NUM_FREGS.
5387 (FPREGSET_FSAVE_OFFSET): Remove.
5388 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5389 NUM_FREGS to determine whether the floating-point registers are
5390 available.
5391
5392 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5393 gnu_store_registers): Replace usage of NUM_GREGS with
5394 I386_NUM_GREGS.
5395
5396 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5397 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5398 usage of NUM_GREGS with I386_NUM_GREGS.
5399
5400 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5401
5402 * i386bsd-nat.c: Include "i386-tdep.h".
5403 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5404 I386_NUM_GREGS.
5405
5406 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5407 and associated comment. They no longer make any sense, since we
5408 don't use this file anymore on Linux.
5409
5410 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5411 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5412 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5413 elements in these arrays.
5414 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5415 MAX_NUM_REGS.
5416
5417 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5418
5419 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5420 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5421
5422 2002-06-14 Andrew Cagney <cagney@redhat.com>
5423
5424 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5425 EXTRACT_RETURN_VALUE.
5426 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5427 EXTRACT_STRUCT_VALUE_ADDRESS.
5428 * gdbarch.h, gdbarch.c: Regenerate.
5429
5430 * values.c (value_being_returned): Handle
5431 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5432 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5433
5434 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5435 * arm-tdep.c (arm_gdbarch_init): Update.
5436 * avr-tdep.c (avr_gdbarch_init): Update.
5437 * cris-tdep.c (cris_gdbarch_init): Update.
5438 * d10v-tdep.c (d10v_gdbarch_init): Update.
5439 * ia64-tdep.c (ia64_gdbarch_init): Update.
5440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5441 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5442 * s390-tdep.c (s390_gdbarch_init): Update.
5443 * sh-tdep.c (sh_gdbarch_init): Update.
5444 * s390-tdep.c (s390_gdbarch_init): Update.
5445 * sparc-tdep.c (sparc_gdbarch_init): Update.
5446 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5447 * v850-tdep.c (v850_gdbarch_init): Update.
5448 * vax-tdep.c (vax_gdbarch_init): Update.
5449 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5450 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5451
5452 * config/arc/tm-arc.h: Update.
5453 * config/d30v/tm-d30v.h: Update.
5454 * config/fr30/tm-fr30.h: Update.
5455 * config/h8300/tm-h8300.h: Update.
5456 * config/h8500/tm-h8500.h: Update.
5457 * config/i386/tm-i386.h: Update.
5458 * config/i386/tm-ptx.h: Update.
5459 * config/i386/tm-symmetry.h: Update.
5460 * config/i960/tm-i960.h: Update.
5461 * config/m32r/tm-m32r.h: Update.
5462 * config/m68k/tm-delta68.h: Update.
5463 * config/m68k/tm-linux.h: Update.
5464 * config/m68k/tm-m68k.h: Update.
5465 * config/m88k/tm-m88k.h: Update.
5466 * config/mcore/tm-mcore.h: Update.
5467 * config/mips/tm-mips.h: Update.
5468 * config/mn10200/tm-mn10200.h: Update.
5469 * config/pa/tm-hppa.h: Update.
5470 * config/pa/tm-hppa64.h: Update.
5471 * config/sparc/tm-sp64.h: Update.
5472 * config/sparc/tm-sparc.h: Update.
5473 * config/sparc/tm-sparclet.h: Update.
5474 * config/z8k/tm-z8k.h: Update.
5475
5476 2002-06-14 Andrew Cagney <cagney@redhat.com>
5477
5478 * Makefile.in (i386_linux_tdep_h): Define.
5479 (i386_tdep_h, i387_tdep_h): Define.
5480 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5481 $(i386_tdep_h) and $(i387_tdep_h).
5482 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5483
5484 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5485
5486 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5487 Already covered by the default.
5488
5489 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5490 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5491 (i386_gdbarch_init): Initialize long_double_format and long_double
5492 bit.
5493
5494 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5495 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5496 Move these to ...
5497 * config/i386/i386sol2.mh: ... here.
5498 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5499 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5500 (SIGCONTEXT_PC_OFFSET): Remove define.
5501 (IN_SIGTRAMP): Remove define.
5502 * i386-sol2-tdep.c: New file.
5503
5504 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5505 * config/i386/tm-i386nw.h: Removed.
5506
5507 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5508 USE_STRUCT_CONVENTION): Remove defines.
5509 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5510 (get_longjmp_target): Remove prototype.
5511 (IN_SIGTRAMP): Remove define.
5512 (i386bsd_in_sigtramp): Remove prototype.
5513 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5514 function. Update comment accordingly
5515 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5516 (FRAME_SAVED_PC): Remove define.
5517 (i386bsd_frame_saved_pc): Remove prototype.
5518 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5519 GET_LONGJMP_TARGET): Remove defines.
5520 (get_longjmp_target): Remove prototype.
5521 (IN_SIGTRAMP): Remove define.
5522 (i386bsd_in_sigtramp): Remove prototype.
5523 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5524 function. Update comment accordingly
5525 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5526 (FRAME_SAVED_PC): Remove define.
5527 (i386bsd_frame_saved_pc): Remove prototype.
5528 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5529 Remove prototype.
5530 (USE_STRUCT_CONVENTION): Remove prototype.
5531 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5532 declaration.
5533 (_initialize_i386bsd_nat): Revise logic to determine some
5534 constants at compile time when compiling a native GDB. Warn if
5535 things don't match up with what we expect.
5536 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5537 Remove variables.
5538 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5539 to use date stored in `struct gdbarch_tdep'.
5540 (i386bsd_sigcontext_offset): Remove varaible.
5541 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5542 stored in `struct gdbarch_tdep'.
5543 (i386bsd_frame_saved_pc): Make static.
5544 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5545 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5546 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5547 i386fbsd4_sc_pc_offset): New variables.
5548 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5549 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5550 functions.
5551 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5552 functions.
5553 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5554 Modify the value of i386fbsd_sigtramp_start and
5555 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5556 i386fbsd_sigtramp_end.
5557 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5558 function.
5559
5560 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5561 define to i386-linux-tdep.h.
5562 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5563 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5564 defines.
5565 (i386_linux_register_name, i386_linux_register_byte,
5566 i386_linux_register_raw_size): Remove prototypes.
5567 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5568 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5569 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5570 TARGET_WRITE_PC): Remove defines.
5571 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5572 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5573 i386_linux_write_pc): Remove prototypes.
5574 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5575 (get_longjmp_target): Remove prototype.
5576 * i386-linux-tdep.h: New file.
5577 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5578 * i386-linux-tdep.c: Include "i386-tdep.h" and
5579 "i386-linux-tdep.h".
5580 (i386_linux_register_name, i386_linux_register_byte,
5581 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5582 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5583 Make static.
5584 (i386_linux_init_abi): New function.
5585 (_initialize_i386_linux_tdep): New function.
5586
5587 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5588 (i386_saved_pc_after_call): Remove prototype.
5589 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5590 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5591 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5592 (i386_register_name, i386_stab_reg_to_regnum,
5593 i386_dwarf_reg_to_regnum): Remove prototypes.
5594 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5595 SIZEOF_SSE_REGS): Remove defines.
5596 (REGISTER_BYTES): Remove define.
5597 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5598 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5599 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5600 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5601 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5602 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5603 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5604 (get_longjmp_target): Remove prototype.
5605 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5606 (sigtramp_saved_pc): Remove define.
5607 (i386v4_sigtramp_saved_pc): Remove prototype.
5608 * config/i386/tm-go32.h (FRAME_CHAIN,
5609 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5610 (i386go32_frame_saved_pc): Remove prototype.
5611 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5612 (get_longjmp_target): Remove prototype.
5613 * i386-tdep.h: Include "osabi.h".
5614 (enum i386_abi): Removed.
5615 (enum struct_return): New enum.
5616 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5617 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5618 sc_pc_offset members.
5619 (i386_gdbarch_register_os_abi): Remove prototype.
5620 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5621 I386_SSE_NUM_REGS): New defines.
5622 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5623 I386_SSE_SIZEOF_REGS): New defines.
5624 (i386_register_name, i386_register_byte, i386_register_raw_size):
5625 New prototypes.
5626 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5627 (i386bsd_sigtramp_saved_pc): New prototype.
5628 * i386-tdep.c: Don't include "elf-bfd.h".
5629 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5630 i386_frame_chain, i386_saved_pc_after_call): Make static.
5631 (i386_frame_saved_pc): Rewrite to call architecture dependent
5632 function to deal with signal handlers. Make static.
5633 (i386go32_frame_saved_pc): Removed.
5634 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5635 Removed.
5636 (i386_get_longjmp_target): New function.
5637 (default_struct_convention, pcc_struct_convention,
5638 reg_struct_convention, valid_conventions, struct_convention): New
5639 variables.
5640 (i386_use_struct_convention): New function.
5641 (i386v4_sigtramp_saved_pc): Renamed to
5642 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5643 (i386_pc_in_sigtramp): New function.
5644 (i386_abi_names): Removed.
5645 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5646 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5647 Removed.
5648 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5649 i386_gdbarch_register_os_abi): Removed.
5650 (struct i386_abi_handler): Removed.
5651 (i386_abi_handler_list): Removed.
5652 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5653 functions.
5654 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5655 i386_nw_init_abi): New functions.
5656 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5657 Use set_gdbarch_xxx() calls instead of relying on macros for a
5658 number of calls.
5659 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5660 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5661 Register the various architecture variants defined in this file.
5662
5663 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5664
5665 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5666 (struct main_type): Remove arg_types member. Update comments for
5667 struct field.
5668 (TYPE_ARG_TYPES): Remove.
5669 (TYPE_FN_FIELD_ARGS): Update.
5670 (smash_to_method_type): Update prototype.
5671
5672 * c-typeprint.c (cp_type_print_method_args): Take method type
5673 instead of argument list. Use new argument layout. Simplify.
5674 (c_type_print_args): Use new argument layout. Simplify.
5675 (c_type_print_base): Update call to cp_type_print_method_args.
5676 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5677 argument; use die->type instead. Update call to
5678 smash_to_method_type.
5679 (read_structure_scope): Update call to dwarf2_add_member_fn.
5680 * gdbtypes.c (allocate_stub_method): Update comment.
5681 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5682 Use new argument layout.
5683 (check_stub_method): Use new argument layout. Don't count
5684 void as an argument.
5685 (print_arg_types): Update comments. Use new argument layout.
5686 (recursive_dump_type): Don't print arg_types member.
5687 * hpread.c (hpread_read_struct_type): Use new argument layout.
5688 (fixup_class_method_type): Likewise.
5689 (hpread_type_lookup): Likewise.
5690 * stabsread.c (read_type): Update calls to read_args and
5691 smash_to_method_type.
5692 (read_args): Use new argument layout. Simplify.
5693 * valops.c (typecmp): Use new argument layout. Update parameters
5694 and comments. Simplify.
5695 (hand_function_call): Use new argument layout.
5696 (search_struct_method): Update call to typecmp.
5697 (find_overload_match): Use new argument layout.
5698
5699 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5700
5701 * NEWS: Mention multithreaded debug support for gdbserver.
5702
5703 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5704
5705 * MAINTAINERS: Mention NEWS.
5706
5707 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5708
5709 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5710 (struct mips_objfile_private, compare_pdr_entries): New.
5711 (non_heuristic_proc_desc): Read the ".pdr" section if it
5712 is present.
5713
5714 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5715
5716 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5717 (arm_debug): New static variable.
5718 (_initialize_arm_tdep): Add ``set debug arm'' command.
5719
5720 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5721
5722 * Makefile.in (sim_arm_h): Define.
5723 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5724 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5725 (arm_register_sim_regno): New function, map an internal REGNUM
5726 onto a simulator register number.
5727 (arm_gdbarch_init): Set register_sim_regno.
5728
5729 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5730
5731 * MAINTAINERS: Add self.
5732
5733 2002-06-11 Jim Blandy <jimb@redhat.com>
5734
5735 * source.c (source_info): Mention whether the symtab has
5736 information about preprocessor macros.
5737
5738 Call the command `info macro', not `show macro'.
5739 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5740 Fix error message.
5741 (_initialize_macrocmd): Register `info_macro_command' in
5742 `infolist', not `showlist'.
5743
5744 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5745
5746 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5747 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5748 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5749 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5750 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5751 unconditionally.
5752 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5753 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5754 (_initialize_mips_tdep): Remove dead code.
5755 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5756 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5757 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5758 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5759 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5760 MIPS_LAST_FP_ARG_REGNUM): Remove.
5761
5762 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5763
5764 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5765 (unwind_tmp_obstack_free, parse_frame_info)
5766 (update_context, cfi_read_fp, cfi_write_fp)
5767 (cfi_frame_chain, cfi_init_extra_frame_info)
5768 (cfi_virtual_frame_pointer): Use the above function.
5769 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5770
5771 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5772
5773 * v850-tdep.c (v850_type_is_scalar): New function.
5774 (v850_use_struct_convention): Match current gcc implementation
5775 as close as possible.
5776 (v850_push_arguments): Fix stack_offset handling. Don't write
5777 struct_addr into register. This is done by v850_store_struct_return.
5778 (v850_extract_return_value): Care for structs.
5779 (v850_store_return_value): Ditto.
5780 (v850_store_struct_return): Actually write address.
5781
5782 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5783
5784 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5785 without debug information too.
5786
5787 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5788
5789 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5790 Make multi-arch pure.
5791 * gdbarch.h, gdbarch.c: Re-generate.
5792 * arm-tdep.c (arm_print_float_info): Update.
5793 * arch-utils.h (default_print_float_info): Update.
5794 * arch-utils.c (default_print_float_info): Update.
5795 * infcmd.c (float_info): Update call.
5796
5797 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5798
5799 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5800 the front of the initialize list.
5801
5802 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5803
5804 * infrun.c (struct inferior_status): Replace fields
5805 selected_frame_address and selected_level with field
5806 selected_frame_id.
5807 (save_inferior_status): Update. Use get_frame_id.
5808 (struct restore_selected_frame_args): Delete.
5809 (restore_selected_frame): Update. Use frame_find_by_id.
5810 (restore_inferior_status): Update.
5811
5812 * breakpoint.h (struct breakpoint): Change type of
5813 watchpoint_frame to frame_id.
5814 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5815 call to get_current_frame.
5816 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5817 get_current_frame.
5818 (watchpoint_check): Use frame_find_by_id.
5819
5820 * frame.h (record_selected_frame): Delete declaration.
5821 * stack.c (record_selected_frame): Delete function.
5822
5823 * frame.h (struct frame_id): Define.
5824 (get_frame_id): Declare.
5825 (frame_find_by_id): Declare.
5826 * frame.c (frame_find_by_id): New function.
5827 (get_frame_id): New function.
5828
5829 2002-06-10 Andrey Volkov <avolkov@transas.com>
5830
5831 * ser-e7kpc.c: Fix duplicated define and call of
5832 _initialize_ser_e7000pc
5833
5834 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5835
5836 * signals/signals.c (target_signal_from_host): Fix #ifdef
5837 SIGRTMIN case.
5838 (do_target_signal_to_host): Likewise.
5839
5840 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5841
5842 * mips-tdep.c (mips_find_abi_section): New function.
5843 (mips_gdbarch_init): Call it.
5844
5845 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5846
5847 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5848 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5849 after Andrew's 2002-06-08 gdbarch change.
5850
5851 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5852
5853 * i386-linux-nat.c (suppy_gregset): Don't supply
5854 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5855 register cache.
5856 (fill_gregset): Don't fetch it under the same circumstances.
5857
5858 2002-06-09 Andrew Cagney <cagney@redhat.com>
5859
5860 * Makefile.in (callback_h): Define.
5861 (remote_sim_h): Update path to remote-sim.h.
5862 (remote-rdp.o): Add $(callback_h).
5863 (remote-sim.o): Use $(callback_h).
5864 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5865 * remote-rdp.c: Include "gdb/callback.h".
5866
5867 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5868
5869 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5870 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5871
5872 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5873
5874 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5875 * rdi-share/serpardr.c: Ditto.
5876 * rdi-share/unixcomm.c: Ditto.
5877 * rdi-share/serdrv.c: Ditto.
5878 * rdi-share/hostchan.h: Ditto.
5879 * rdi-share/hostchan.c: Ditto.
5880 * rdi-share/host.h: Ditto.
5881 * rdi-share/devsw.c: Ditto.
5882
5883 * objfiles.h: Change type of obj_private to void pointer.
5884 * pa64solib.c: Update copyright. Don't include "assert.h", use
5885 strcmp instead of STREQ, use LONGEST, do not use PTR
5886 * somsolib.c: Ditto.
5887
5888 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5889 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5890 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5891
5892 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5893
5894 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5895 (default_get_saved_register): Delete function.
5896 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5897 generic_unwind_get_saved_register.
5898 * gdbarch.h, gdbarch.c: Re-generate.
5899
5900 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5901
5902 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5903 generic_func_frame_chain_valid.
5904 * gdbarch.h, gdbarch.c: Re-generate.
5905 * blockframe.c (generic_func_frame_chain_valid): Only check
5906 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5907 passing FP to PC_IN_CALL_DUMMY.
5908 Fix PR gdb/360.
5909
5910 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5911
5912 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5913 (register_gdbarch_data): Initialize init_p.
5914 (gdbarch_data): Initialize data pointer using the init function.
5915 (init_gdbarch_data): Delete function.
5916 (gdbarch_update_p): Update.
5917 (initialize_non_multiarch): Update.
5918 (struct gdbarch): Add field initialized_p.
5919 * gdbarch.h, gdbarch.c: Re-generate.
5920
5921 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5922
5923 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5924 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5925 better do the things actually here.
5926 * x86-64-tdep.c (x86_64_register_name2nr): New.
5927 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5928 (x86_64_gdbarch_init): Respect the above change.
5929 * x86-64-tdep.h (x86_64_register_name2nr)
5930 (x86_64_register_nr2name): Add prototypes.
5931 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5932
5933 2002-06-06 Michael Snyder <msnyder@redhat.com>
5934
5935 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5936 Delete extra braces and re-indent.
5937 (d10v_store_return_value): Char return values
5938 must be shifted over by one byte in R0.
5939 (d10v_extract_return_value): Delete extra braces, re-indent.
5940
5941 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5942
5943 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5944 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5945 (d10v_integer_to_address): Rewrite.
5946 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5947 the d10v specific functions which take care of converting to the
5948 correct space.
5949
5950 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5951
5952 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5953 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5954
5955 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5956
5957 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5958 includes.
5959 * config/tm-linux.h: Ditto.
5960 * config/alpha/tm-alphalinux.h: Ditto.
5961 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5962 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5963 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5964 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5965 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5966 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5967 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5968 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5969 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5970 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5971 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5972 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5973 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5974 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5975 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5976 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5977 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5978 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5979 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5980 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5981 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5982 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5983 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5984 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5985 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5986 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5987 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5988 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5989 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5990 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5991 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5992 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5993 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5994 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5995 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5996 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5997 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5998
5999 2002-05-04 Aidan Skinner <aidan@velvet.net>
6000
6001 * ada-exp.tab.c: New file
6002 * ada-exp.y: New file
6003 * ada-lang.c: New file
6004 * ada-lang.h: New file
6005 * ada-lex.c: New file
6006 * ada-lex.l: New file
6007 * ada-tasks.c: New file
6008 * ada-typeprint.c: New file
6009 * ada-valprint.c: New file
6010
6011 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6012
6013 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6014 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6015
6016 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6017
6018 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6019 insetead of ppc-linux-tdep.o.
6020 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6021 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6022
6023 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6024
6025 2002-05-07 Christian Groessler <chris@groessler.org>
6026 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6027 bit register contents for little endian hosts.
6028
6029 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6030
6031 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6032 any maintainer.
6033
6034 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6035
6036 * gdbarch.h: Regenerate.
6037
6038 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6039
6040 * MAINTAINERS: Add everyone to write-after-approval list.
6041
6042 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6043
6044 * stack.c (frame_info): Use frame_register_unwind instead of
6045 saved_regs. Mention when the SP is on the stack or in a register.
6046
6047 * frame.h (frame_register_unwind_ftype): Define. Document.
6048 (struct frame_info): Add field register_unwind and
6049 register_unwind_cache.
6050 (frame_register_unwind): Declare.
6051 (generic_unwind_get_saved_register): Declare.
6052
6053 * frame.c (frame_register_unwind): New function.
6054 (generic_unwind_get_saved_register): New function.
6055
6056 * blockframe.c (generic_call_dummy_register_unwind): New function.
6057 (frame_saved_regs_register_unwind): New function.
6058 (set_unwind_by_pc): New function.
6059 (create_new_frame): New function.
6060 (get_prev_frame): New function.
6061
6062 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6063
6064 * a29k-share/: Delete directory.
6065 * remote-vx29k.c: Delete file.
6066
6067 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6068
6069 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6070 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6071
6072 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6073
6074 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6075 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6076 (sparc64nbsd-nat.o)
6077 (sparcnbsd-nat.o)
6078 (sparcnbsd-tdep.o): New dependency lists.
6079 * NEWS: Note new UltraSPARC NetBSD native configuration.
6080 * configure.host (sparc64-*-netbsd*): New host.
6081 * configure.tgt (sparc-*-netbsdelf*)
6082 (sparc-*-netbsd*): Set gdb_target to nbsd.
6083 (sparc64-*-netbsd*): New target.
6084 * sparc64nbsd-nat.c: New file.
6085 * sparcnbsd-nat.c: New file.
6086 * sparcnbsd-tdep.c: New file.
6087 * sparcnbsd-tdep.h: New file.
6088 * config/sparc/nbsd.mt: New file.
6089 * config/sparc/nbsd64.mh: New file.
6090 * config/sparc/nbsd64.mt: New file.
6091 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6092 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6093 (HOST_IPC): Remove.
6094 * config/sparc/nbsdaout.mt: Remove.
6095 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6096 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6097 (HOST_IPC): Remove.
6098 * config/sparc/nbsdelf.mt: Remove.
6099 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6100 sparc-nat.c compatiblity defines.
6101 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6102 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6103 * config/sparc/tm-nbsd64.h: New file.
6104 * config/sparc/tm-nbsdaout.h: Remove.
6105 * config/sparc/xm-nbsd.h: Remove.
6106
6107 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6110 * sparc-tdep.c: Include osabi.h.
6111 (gdbarch_tdep): Add osabi member.
6112 (_initialize_sparc_tdep): Use gdbarch_register.
6113 (sparc_gdbarch_init): Use generic OS ABI framework.
6114 (sparc_dump_tdep): New function.
6115
6116 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6117
6118 * corefile.c (do_captured_read_memory_integer): Return non-zero
6119 result.
6120 (safe_read_memory_integer): Copy result of memory read when
6121 status is non-zero. Also, add comments.
6122
6123 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6124
6125 * Makefile.in (ppc_tdep_h): Define.
6126 (ppc-linux-nat.o)
6127 (ppc-linux-tdep.o)
6128 (rs6000-tdep.o): Use $(ppc_tdep_h).
6129 (ppc-sysv-tdep.o)
6130 (ppcnbsd-nat.o)
6131 (ppcnbsd-tdep.o): New dependency lists.
6132 * ppc-tdep.h: Use generic OS ABI framework.
6133 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6134 (ppc_linux_init_abi): New functions.
6135 (ppc_sysv_abi_broken_use_struct_convention)
6136 (ppc_sysv_abi_use_struct_convention)
6137 (ppc_sysv_abi_push_arguments): Move to...
6138 * ppc-sysv-tdep.c: ...here.
6139 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6140 * rs6000-tdep.c (process_note_abi_tag_sections)
6141 (get_elfosabi): Remove.
6142 (rs6000_gdbarch_init): Use generic OS ABI framework.
6143 (rs6000_dump_tdep): New function.
6144 (_initialize_rs6000_tdep): Use gdbarch_register.
6145 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6146 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6147 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6148 of ppc-linux-tdep.o.
6149 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6150 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6151 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6152 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6153 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6154 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6155
6156 2002-05-29 Jim Blandy <jimb@redhat.com>
6157
6158 * macroscope.c (default_macro_scope): Put `void' in empty argument
6159 list.
6160
6161 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6162
6163 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6164 * arch-utils.c: Include "sim-regno.h".
6165 * gdbarch.sh: Don't include "sim-regno.h".
6166 * gdbarch.h, gdbarch.c: Regenerate.
6167 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6168 here.
6169 * arch-utils.h (legacy_register_sim_regno): To here.
6170 * remote-sim.c (legacy_register_sim_regno): Move function from
6171 here.
6172 * arch-utils.c (legacy_register_sim_regno): To here.
6173
6174 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6175
6176 * sim-regno.h: New file.
6177 * Makefile.in (sim_regno_h): Define.
6178 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6179 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6180 (legacy_register_sim_regno): New function.
6181 (one2one_register_sim_regno): New function.
6182 (gdbsim_fetch_register): Rewrite.
6183 (gdbsim_store_register): Only store a register when
6184 REGISTER_SIM_REGNO is valid.
6185 * d10v-tdep.c: Include "sim-regno.h".
6186 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6187 (d10v_ts3_register_sim_regno): Ditto.
6188 * gdbarch.sh: Include "sim-regno.h".
6189 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6190 * gdbarch.h, gdbarch.c: Regenerate.
6191 * arch-utils.h (default_register_sim_regno): Delete declaration.
6192 * arch-utils.c (default_register_sim_regno): Delete function.
6193
6194 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6195
6196 * ppcnbsd-nat.c: Rewrite.
6197 * ppcnbsd-tdep.c: New file.
6198 * ppcnbsd-tdep.h: New file.
6199 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6200 solib.o, and solib-svr4.o.
6201 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6202 nbsd-tdep.o, and corelow.o.
6203
6204 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6205
6206 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6207 `tr' and `sed'. Mention that `broken' targets are not expected to
6208 build.
6209
6210 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6211
6212 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6213 Let PC point right after the prologue before looking up symbols.
6214
6215 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6216
6217 * i386-tdep.c (i386_register_virtual_type): Return
6218 builtin_type_vec128i for SSE registers.
6219
6220 * gdbtypes.h (builtin_type_vec128i): Declare.
6221
6222 * gdbtypes.c (build_builtin_type_vec128i): New function.
6223 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6224 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6225 (build_gdbtypes): Initialize new builtin vector types.
6226 (_initialize_gdbtypes): Register new vector types with gdbarch.
6227
6228 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6229
6230 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6231 since it has been multi-arch'd.
6232 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6233 Move Alpha and VAX multi-arch news entries to same section
6234 as other multi-arch news.
6235
6236 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6237
6238 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6239 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6240 static. Rename some register numbers to put them in ns32k-tdep
6241 private namespace.
6242 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6243 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6244 functions.
6245 (_initialize_ns32k_tdep): Use gdbarch_register.
6246 * ns32k-tdep.h: New file.
6247 * ns32knbsd-tdep.c: New file.
6248 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6249 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6250 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6251 REGISTER_BYTES, REGISTER_BYTE): Remove.
6252 * config/ns32k/tm-ns32k.h: New file.
6253 * config/ns32k/tm-umax.h: Remove.
6254
6255 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6256
6257 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6258 ns32k_store_struct_return, ns32k_extract_return_value,
6259 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6260 functions.
6261 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6262 ns32k_saved_pc_after_call.
6263 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6264 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6265 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6266 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6267 ns32k_extract_struct_value_address.
6268
6269 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6270
6271 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6272 ns32k_fix_call_dummy): New.
6273 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6274 ns32k_call_dummy_words.
6275 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6276 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6277 CALL_DUMMY_NARGS): Remove.
6278 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6279
6280 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6281
6282 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6283 ns32k_frame_saved_pc, ns32k_frame_args_address,
6284 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6285 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6286 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6287 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6288 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6289 (BREAKPOINT): Remove..
6290 (FRAME_CHAIN): Define as ns32k_frame_chain.
6291 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6292 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6293 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6294 (FRAME_FIND_SAVED_REGS): Remove.
6295 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6296 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6297 (POP_FRAME): Define as ns32k_pop_frame.
6298
6299 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6300
6301 * ns32k-tdep.c (ns32k_register_byte_32082,
6302 ns32k_register_byte_32382, ns32k_register_raw_size,
6303 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6304 functions.
6305 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6306 ns32k_register_byte_32382.
6307 * config/ns32k/tm-umax.h: Update copyright years.
6308 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6309 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6310 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6311 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6312 (ns32k_get_enter_addr): Fix prototype.
6313
6314 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * ns32k-tdep.c: Update copyright years.
6317 (ns32k_register_name_32082): New function.
6318 (ns32k_register_name_32382): Ditto.
6319 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6320 (REGISTER_NAME): Define as ns32k_register_name_32382.
6321 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6322 (REGISTER_NAME): Define as ns32k_register_name_32082.
6323
6324 2002-05-24 Jim Blandy <jimb@redhat.com>
6325
6326 * dwarf2read.c (free_line_header): Use xfree, not free.
6327
6328 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6329
6330 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6331 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6332
6333 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6334
6335 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6336
6337 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6338
6339 From Ross Alexander at NEC Europe:
6340 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6341
6342 2002-05-23 Michael Snyder <msnyder@redhat.com>
6343
6344 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6345 for input, rather than parse_and_eval_address.
6346
6347 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6348
6349 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6350 * Makefile.in (sim_d10v_h): Update definition.
6351
6352 2002-05-24 Andrew Cagney <cagney@redhat.com>
6353
6354 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6355 change `2002-05-22 Michael Snyder' below.
6356 (d10v_push_arguments): Ditto.
6357 (d10v_extract_return_value): Ditto.
6358
6359 2002-05-23 Jim Blandy <jimb@redhat.com>
6360
6361 * macrotab.c (check_for_redefinition): Don't complain if the new
6362 definition is the same as the previous one. Take more arguments
6363 to allow the comparison.
6364 (macro_define_object, macro_define_function): Pass more arguments
6365 to check_for_redefinition.
6366
6367 2002-05-22 Michael Snyder <msnyder@redhat.com>
6368
6369 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6370 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6371 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6372 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6373 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6374 Add a temp variable to save a call (and a memory read).
6375 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6376 if possible (so that PC_IN_CALL_DUMMY will work).
6377
6378 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6379
6380 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6381
6382 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6383
6384 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6385 fde->cie_ptr.
6386 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6387 (dwarf2_build_frame_info): Add offset to fde->initial_location
6388 so that frames of shared libraries are mapped correctly.
6389 (execute_stack_op): Change type of 'result' from ULONGEST to
6390 CORE_ADDR.
6391
6392 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6393
6394 * config/alpha/tm-nbsd.h: Include solib.h.
6395
6396 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6397
6398 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6399 assumptions about the host's byte order.
6400
6401 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6402
6403 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6404 to dependency list.
6405 * alphanbsd-tdep.c: Include solib-svr4.h.
6406 * shnbsd-tdep.c: Ditto.
6407
6408 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6409
6410 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6411 nbsd-tdep.h to dependency list.
6412 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6413 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6414 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6415 nbsdaout.mh and nbsdelf.mh consistently.
6416 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6417 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6418 nbsdaout.mt and nbsdelf.mh consistently.
6419 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6420 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6421 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6422 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6423 a.out shared library stuff from here...
6424 * config/nm-nbsdaout.h: ...to here.
6425 * config/tm-nbsd.h: Remove.
6426 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6427 * config/arm/nbsd.mh: Remove.
6428 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6429 nbsd-tdep.o.
6430 * config/arm/nbsdaout.mh: New file.
6431 * config/arm/nbsdelf.mh: New file.
6432 * config/arm/nm-nbsdaout.h: New file.
6433 * config/i386/nbsd.mh: Remove.
6434 * config/i386/nbsd.mt: Remove.
6435 * config/i386/nbsdaout.mh: New file.
6436 * config/i386/nbsdaout.mt: New file.
6437 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6438 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6439 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6440 i386_register_u_addr): Remove.
6441 * config/i386/nm-nbsdaout.h: New file.
6442 * config/i386/nm-nbsdelf.h: Remove.
6443 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6444 (USE_STRUCT_CONVENTION): Remove.
6445 * config/i386/tm-nbsdaout.h: New file.
6446 * config/i386/tm-nbsdelf.h: Remove.
6447 * config/m68k/nbsd.mh: Remove.
6448 * config/m68k/nbsd.mt: Remove.
6449 * config/m68k/nbsdaout.mh: New file.
6450 * config/m68k/nbsdaout.mt: New file.
6451 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6452 * config/m68k/nm-nbsdaout.h: New file.
6453 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6454 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6455 * config/ns32k/nbsd.mh: Remove.
6456 * config/ns32k/nbsd.mt: Remove.
6457 * config/ns32k/nbsdaout.mh: New file.
6458 * config/ns32k/nbsdaout.mt: New file.
6459 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6460 * config/ns32k/nm-nbsdaout.h: New file.
6461 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6462 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6463 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6464 (SVR4_SHARED_LIBS): Remove.
6465 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6466 * config/sparc/nbsd.mh: Remove.
6467 * config/sparc/nbsd.mt: Remove.
6468 * config/sparc/nbsdaout.mh: New file.
6469 * config/sparc/nbsdaout.mt: New file.
6470 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6471 * config/sparc/nbsdelf.mt: New file.
6472 * config/sparc/nm-nbsdaout.h: New file.
6473 * config/sparc/nm-nbsdelf.h: Remove.
6474 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6475 * config/sparc/tm-nbsdaout.h: New file.
6476
6477 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6478
6479 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6480 mipsnbsd-tdep.c
6481 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6482
6483 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6484
6485 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6486 shnbsd-nat.c.
6487 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6488
6489 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6490
6491 * NEWS: Note new MIPS NetBSD native configuration.
6492 * configure.host (mips*-*-netbsd*): New host.
6493 * configure.tgt (mips*-*-netbsd*): New target.
6494 * mipsnbsd-nat.c: New file.
6495 * mipsnbsd-tdep.c: New file.
6496 * mipsnbsd-tdep.h: New file.
6497 * config/mips/nbsd.mh: New file.
6498 * config/mips/nbsd.mt: New file.
6499 * config/mips/nm-nbsd.h: New file.
6500 * config/mips/tm-nbsd.h: New file.
6501
6502 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6503
6504 * Makefile.in (SFILES): Add osabi.c.
6505 (COMMON_OBS): Add osabi.o.
6506 (osabi.o): New dependency list.
6507 * osabi.c: New file.
6508 * osabi.h: New file.
6509 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6510
6511 * Makefile.in (alpha_tdep_h): Define and use instead of
6512 alpha-tdep.h.
6513 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6514 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6515 Remove.
6516 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6517 * alpha-tdep.h: Include osabi.h.
6518 (alpha_abi): Remove.
6519 (gdbarch_tdep): Use generic OS ABI framework.
6520 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6521 gdbarch_register_osabi.
6522 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6523 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6524 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6525
6526 * Makefile.in (sh_tdep_h): Add osabi.h.
6527 * sh-tdep.h (sh_osabi): Remove.
6528 (gdbarch_tdep): Use generic OS ABI framework.
6529 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6530 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6531 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6532 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6533
6534 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6535 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6536 gdbarch_register_osabi.
6537 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6538 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6539 (get_elfosabi): Rename to...
6540 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6541 ABI framework support routines.
6542 (arm_gdbarch_init): Use generic OS ABI framework.
6543 (arm_dump_tdep): Likewise.
6544 (_initialize_arm_tdep): Likewise.
6545 * arm-tdep.h: Include osabi.h.
6546 (arm_abi): Remove.
6547 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6548 osabi member.
6549 (arm_gdbarch_register_os_abi): Remove prototype.
6550 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6551 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6552
6553 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6554 * mips-tdep.c: Include osabi.h.
6555 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6556 OS ABI framework.
6557
6558 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6559
6560 * h8300-tdep.c: Fix formatting.
6561
6562 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6563
6564 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6565 printing vector registers.
6566
6567 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6568
6569 From Fernando Nasser:
6570 * remote.c (remote_async_open_1): Re-throw the exception when the
6571 connection fails.
6572 (remote_cisco_open): Ditto.
6573 (remote_open_1): Ditto.
6574
6575 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6576
6577 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6578 (remote_start_remote): Add uiout parameter. Pass through to
6579 remote_start_remote_dummy.
6580 (remote_open_1): Use catch_exception instead of catch_errors.
6581 (remote_async_open_1): Ditto.
6582 (remote_cisco_open): Ditto.
6583
6584 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6585
6586 * remote.c (remote_start_remote): Replace PTR with void pointer.
6587 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6588 static.
6589
6590 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6591
6592 * gdb_indent.sh: Allow the script to be run in the sim directory.
6593
6594 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6595
6596 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6597 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6598
6599 * corelow.c (core_open): Only call set_gdbarch_from_file if
6600 exec_bfd is NULL.
6601
6602 2002-05-17 Andrey Volkov <avolkov@transas.com>
6603
6604 * h8300-tdep.c: Add support of EXR register
6605 * config/h8300/tm-h8300.h: Ditto.
6606
6607 2002-05-17 Andrey Volkov <avolkov@transas.com>
6608
6609 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6610
6611 2002-05-17 Andrey Volkov <avolkov@transas.com>
6612
6613 * h8300-tdep.c: Change literal regnums to REGNO.
6614
6615 2002-05-17 Jim Blandy <jimb@redhat.com>
6616
6617 * NEWS: Note addition of macro support.
6618
6619 Expand preprocessor macros in C expressions.
6620 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6621 (scan_macro_expansion, scanning_macro_expansion,
6622 finished_macro_expansion): New function declarations.
6623 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6624 variable declarations.
6625 * parser-defs.h (expression_context_pc): New declaration.
6626 * parse.c (expression_context_pc): New variable.
6627 (parse_exp_1): Set expression_context_pc, as well as
6628 expression_context_block.
6629 * c-exp.y (yylex): If we're not already reading the result of a
6630 macro expansion, try to macro-expand the next token. When we're
6631 done scanning a macro expansion, switch back to the mainline text.
6632 Commas and `if's in a macro's expansion don't terminate the input.
6633 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6634 (macro_original_text, macro_expanded_text,
6635 expression_macro_lookup_func, expression_macro_lookup_baton): New
6636 variables.
6637 (scan_macro_expansion, scanning_macro_expansion,
6638 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6639 c_preprocess_and_parse): New functions.
6640 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6641 c_preprocess_and_parse, instead of c_parse.
6642 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6643 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6644
6645 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6646
6647 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6648 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6649 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6650
6651 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6652
6653 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6654
6655 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6656
6657 * Makefile.in (sh_tdep_h): Define and use.
6658 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6659 register enum): Move to...
6660 * * sh-tdep.h: ...here.
6661 * sh-tdep.c: Include sh-tdep.h.
6662 * sh3-rom.c: Likewise.
6663 * shnbsd-tdep.c: Likewise.
6664
6665 2002-05-16 Michael Snyder <msnyder@redhat.com>
6666
6667 * arm-tdep.c: Spelling fix in comment.
6668
6669 2002-05-16 Jim Blandy <jimb@redhat.com>
6670
6671 Add commands for manually expanding macros and showing their
6672 definitions.
6673 * macrocmd.c, macroscope.c, macroscope.h: New files.
6674 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6675 (macroscope_h): New variable.
6676 (HFILES_NO_SRCDIR): Add macroscope.h.
6677 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6678 (macroscope.o, macrocmd.o): New rules.
6679
6680 Teach the Dwarf 2 reader to read macro information.
6681 * dwarf2read.c: #include "macrotab.h".
6682 (dwarf_macinfo_buffer): New variable.
6683 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6684 dwarf_macinfo_size.
6685 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6686 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6687 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6688 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6689 dwarf2_macro_spaces_in_definition): New complaints.
6690 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6691 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6692 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6693 the partial symbol table.
6694 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6695 from what's recorded in the partial symbol table.
6696 (read_file_scope): If the compilation unit has a
6697 `DW_AT_macro_info' attribute, read its macro information.
6698 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6699
6700 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6701
6702 Fix PR gdb/546
6703 * ser-tcp.c: Don't include <netinet/udp.h>.
6704
6705 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6706
6707 * MAINTAINERS: Update my email address.
6708
6709 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6710
6711 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6712 include file of the same name.
6713
6714 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6715
6716 * configure.tgt: Mark v850 as multi-arched.
6717 * config/v850/tm-v850.h: Remove file.
6718 * config/v850/v850.mt: Eliminate TM_FILE.
6719
6720 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6721
6722 * v850-tdep.c: Full multi-arch.
6723 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6724 Define GDB_MULTI_ARCH to 2.
6725
6726 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6727
6728 * p-exp.y (current_type): New static variable.
6729 Carries the type of the expression at the position that is parsed.
6730 (push_current_type, pop_current_type): Two new functions. Used
6731 to store/restore current_type in expression on specific tokens.
6732 (search_field): New static variable. Set to one after parsing a point
6733 as at that point only a FIELDNAME token should be searched.
6734 (FIELDNAME): New token. After a point only a token belonging to
6735 current_type type definition is allowed.
6736 (all over token rules): reset and change current_type according
6737 to rules.
6738 (exp '[' rule): insert implicit array index field if
6739 exp is a pascal string type.
6740
6741 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6742
6743 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6744 frame info. Use frame_info's saved_regs instead of matching member
6745 in extra_frame_info throughout.
6746 (v850_frame_init_saved_regs): New function.
6747 (v850_init_extra_frame_info): Move most functionality into
6748 v850_frame_init_saved_regs().
6749 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6750 (v850_frame_find_saved_regs): Remove declaration.
6751 (FRAME_FIND_SAVED_REGS): Remove definition.
6752 (v850_frame_init_saved_regs): Add declaration.
6753 (FRAME_INIT_SAVED_REGS): Add definition.
6754
6755 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6756
6757 * v850-tdep.c: Begin multi-arch'ing v850.
6758 (v850_target_architecture_hook): Remove function.
6759 (v850_gdbarch_init): New function. Add code previously in
6760 v850_target_architecture_hook().
6761 (_initialize_v850_tdep): Don't set target_architecture_hook.
6762 Call register_gdbarch_init() instead.
6763
6764 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6765
6766 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6767 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6768 (fixup_class_method_type): Likewise.
6769
6770 2002-05-15 Jim Blandy <jimb@redhat.com>
6771
6772 Add macro structures to GDB's symbol tables. Nobody puts anything
6773 in them yet.
6774 * symtab.h (struct symtab): New member: `macro_table'.
6775 * buildsym.h (pending_macros): New global variable.
6776 * buildsym.c: #include "macrotab.h".
6777 (buildsym_init): Initialize `pending_macros'.
6778 (end_symtab): If we found macro information while reading a CU's
6779 debugging info, do build a symtab structure for it. Make the
6780 symtab point to the macro information, and clear the
6781 `pending_macros' pointer which held it while we were reading the
6782 debug info.
6783 (really_free_pendings): Free any pending macro table.
6784 * objfiles.h (struct objfile): New member: `macro_cache'.
6785 * objfiles.c (allocate_objfile): Set allocate and free functions
6786 for the macro cache's objstack.
6787 (free_objfile): Empty the macro cache's obstack.
6788 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6789 set new allocate and free functions for it.
6790 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6791 free functions for the macro cache's objstack. (Why is this
6792 function building its own objfile?)
6793 * symmisc.c (print_objfile_statistics): Print statistics on the
6794 macro bcache.
6795 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6796
6797 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6798
6799 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6800 (REGISTER_U_ADDR): Delete definition.
6801 (arm_register_u_addr): Delete declaration.
6802
6803 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6804
6805 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6806 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6807
6808 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6809
6810 * regcache.c (register_valid): Revise comments refering to "Not
6811 available" and "unavailable".
6812 * frame.c (frame_register_read): Ditto.
6813 * findvar.c (value_of_register): Ditto.
6814
6815 2002-05-15 Andrew Cagney <cagney@redhat.com>
6816
6817 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6818 (remote-sim.o): Update dependencies.
6819 (d10v-tdep.o): Specify dependencies.
6820 (sim_d10v_h): Define.
6821
6822 2002-05-14 Jim Blandy <jimb@redhat.com>
6823
6824 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6825 * macrotab.c (macro_lookup_inclusion, find_definition,
6826 new_macro_table): Same.
6827
6828 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6829 not `! strcmp ()'. This is a dubious improvement.
6830 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6831
6832 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6833 although it's not necessary, to avoid a warning.
6834
6835 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6836
6837 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6838 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6839 TYPE_INSTANCE_FLAGS.
6840 (struct main_type): New.
6841 (struct type): Move most members to struct main_type. Change
6842 cv_type and as_type to new type_chain member. Add instance_flags.
6843 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6844 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6845 (finish_cv_type): Remove prototype.
6846 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6847 Set TYPE_CHAIN.
6848 (alloc_type_instance): New function.
6849 (smash_type): New function.
6850 (make_pointer_type, make_reference_type, make_function_type)
6851 (smash_to_member_type, smash_to_method_type): Call smash_type.
6852 (make_qualified_type): New function.
6853 (make_type_with_address_space): Call make_qualified_type.
6854 (make_cv_type): Likewise.
6855 (finish_cv_type): Remove unnecessary function.
6856 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6857 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6858 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6859 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6860 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6861 * hpread.c (hpread_read_struct_type): Likewise.
6862 * stabsread.c (read_struct_type): Likewise.
6863
6864 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6865
6866 * configure.tgt: Add a catch all sh* target, for cases like
6867 sh[2,3,4]-elf and sh-hms.
6868
6869 2002-05-14 Keith Seitz <keiths@redhat.com>
6870
6871 * event-loop.c (create_file_handler): Don't do anything but
6872 update data when we are given a fd which we are already
6873 monitoring.
6874
6875 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6876
6877 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6878 (update_context): Use __func__ in warnings.
6879
6880 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6883 and tcp_close to net_open and net_close.
6884 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6885 using UDP if requested. Don't try to disable Nagle on UDP
6886 sockets.
6887 * remote.c (remote_serial_open): New function. Warn about UDP.
6888 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6889
6890 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6891
6892 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6893
6894 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6895
6896 * configure.tgt: Remove sh-hms target.
6897 * MAINTAINERS: Don't list sh-hms as a separate target.
6898
6899 2002-05-13 Jim Blandy <jimb@redhat.com>
6900
6901 Add first preprocessor macro-expansion files.
6902 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6903 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6904 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6905 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6906 (COMMON_OBS): Add macrotab.o, macroexp.o.
6907 (macroexp.o, macrotab.o): New rules.
6908
6909 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6910
6911 * config/m88k/tm-m88k.h: Update copyright.
6912 (m88k_target_write_pc): Declare
6913 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6914 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6915 (SHIFT_INST_REGS): Update definition.
6916 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6917 using old definition of TARGET_WRITE_PC.
6918 * regcache.c (generic_target_write_pc): Delete code handling
6919 NNPC_REGNUM.
6920 * gdbarch.sh (NNPC_REGNUM): Delete.
6921 * gdbarch.h, gdbarch.c: Regenerate.
6922
6923 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6924
6925 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6926 builtin reg number.
6927
6928 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6929
6930 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6931 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6932 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6933 access macros.
6934 * c-typeprint.c (cp_type_print_method_args): Likewise.
6935 (c_type_print_args): Likewise.
6936 * d10v-tdep.c (d10v_push_arguments): Likewise.
6937 (d10v_extract_return_value): Likewise.
6938 * expprint.c (print_subexp): Likewise.
6939 * gdbtypes.c (lookup_primitive_typename): Likewise.
6940 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6941 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6942 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6943 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6944 (TYPE_VECTOR): Likewise.
6945 * hpread.c (hpread_read_struct_type)
6946 (fix_static_member_physnames, fixup_class_method_type)
6947 (hpread_type_lookup): Likewise.
6948 * mdebugread.c (parse_symbol, parse_type): Likewise.
6949 * p-lang.c (is_pascal_string_type): Likewise.
6950 * valops.c (hand_function_call): Likewise.
6951 * x86-64-tdep.c (classify_argument): Likewise.
6952
6953 * hpread.c (hpread_read_function_type)
6954 (hpread_read_doc_function_type): Call replace_type.
6955 * dstread.c (create_new_type): Delete.
6956 (decode_dst_structure, process_dst_function): Call alloc_type.
6957 Use type access macros.
6958
6959 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6960
6961 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6962 the're not supported by the current architecture.
6963 (i387_fill_fxsave): Likewise.
6964
6965 2002-05-12 Fred Fish <fnf@redhat.com>
6966
6967 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6968 sect_index_xxx members to index the first slot in section_offsets
6969 if all of the section_offsets are zero.
6970
6971 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6972
6973 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6974 checked in with last change.
6975
6976 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6977
6978 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6979 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6980 config.sub.
6981
6982 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6983
6984 * Makefile.in: Update dependencies.
6985
6986 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6987
6988 * language.c (local_hex_string_custom): Simplify. Do not depend
6989 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6990
6991 * memattr.c (mem_info_command): Replace calls to
6992 longest_local_hex_string and longest_local_hex_string_custom.
6993 * buildsym.c (make_blockvector): Ditto.
6994 * solib.c (info_sharedlibrary_command): Ditto.
6995 * tracepoint.c (tracepoints_info): Ditto.
6996 * symtab.c (print_msymbol_info): Ditto.
6997
6998 * language.c (local_hex_string): Delete.
6999 (local_hex_string_custom): Delete.
7000 (longest_local_hex_string): Rename to local_hex_string.
7001 (longest_local_hex_string_custom): Rename to
7002 local_hex_string_custom.
7003 * language.h (local_hex_string): Change parameter type to LONGEST.
7004 (local_hex_string_custom): Ditto.
7005 (longest_local_hex_string): Delete declaration.
7006 (longest_local_hex_string_custom): Ditto.
7007
7008 * solib.c: Update copyright.
7009 * memattr.c: Update copyright.
7010
7011 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7012
7013 * arch-utils.h (legacy_register_to_value): Declare.
7014 (legacy_value_to_register): Declare.
7015 (legacy_convert_register_p): Declare.
7016 * arch-utils.c (legacy_register_to_value): New function.
7017 (legacy_value_to_register): New function.
7018 (legacy_convert_register_p): New function.
7019
7020 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7021 (VALUE_TO_REGISTER): Define.
7022 (CONVERT_REGISTER_P): Define.
7023 * gdbarch.h, gdbarch.c: Regenerate.
7024
7025 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7026 VALUE_TO_REGISTER.
7027 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7028 CONVERT_REGISTER_P.
7029
7030 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7031 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7032
7033 * Makefile.in: Update dependencies for valops.c.
7034 * valops.c: Include "gdb_assert.h".
7035 (typecmp): Skip THIS parameter to methods.
7036 (find_method_list): Remove static_memfuncp argument,
7037 update callers. Check for stub methods.
7038 (find_value_oload_method_list): Don't set *static_memfuncp.
7039 (find_overload_match): Don't check for stub methods. Assert
7040 that methods are not stubbed. Handle static methods.
7041 (value_find_oload_method_list): Remove static_memfuncp argument.
7042 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7043 to the argument list for static stub methods.
7044 * value.h (value_find_oload_method_list): Update prototype.
7045
7046 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7047
7048 * arch-utils.h (generic_register_size): Declare.
7049 (generic_register_raw_size, generic_register_virtual_size): Delete
7050 declarations.
7051 * arch-utils.c (generic_register_raw_size): Delete.
7052 (generic_register_size): New function.
7053 (generic_register_virtual_size): Delete.
7054
7055 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7056 default generic_register_size.
7057 * gdbarch.h, gdbarch.c: Re-generate.
7058
7059 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7060 register_virtual_size.
7061 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7062 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7063
7064 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7065
7066 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7067 * gdbarch.h, gdbarch.c: Regenerate.
7068 * gnu-v3-abi.c: Update copyright.
7069 (vtable_address_point_offset): Update.
7070 (gnuv3_rtti_type): Update.
7071 (gnuv3_baseclass_offset): Update.
7072 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7073 (init_fetch_link_map_offsets): Update.
7074 * remote.c (get_remote_state): Update.
7075
7076 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7077
7078 * TODO: Remove value_headof/value_from_vtable_info comment.
7079 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7080 * values.c (value_headof, value_from_vtable_info): Delete.
7081 * value.h (value_from_vtable_info): Delete prototype.
7082
7083 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7084
7085 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7086 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7087 $(gdb_regex_h).
7088 (gdb_assert_h): Define.
7089 (gdb_wait_h): Define.
7090 (gdb_regex_h): Define.
7091
7092 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7093
7094 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7095 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7096
7097 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * nbsd-tdep.c: Fix comment.
7100
7101 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7102
7103 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7104 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7105 (nbsd-tdep.o): New dependency list.
7106 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7107 nbsd-tdep.h.
7108 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7109 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7110 * nbsd-tdep.c: New file.
7111 * nbsd-tdep.h: New file.
7112 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7113 nbsd-tdep.h.
7114 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7115 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7116 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7117 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7118
7119 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7120
7121 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7122 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7123 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7124 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7125 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7126 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7127
7128 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7129
7130 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7131 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7132 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7133 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7134 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7135 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7136 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7137
7138 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7139
7140 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7141 fetch_elfcore_registers to...
7142 * i386nbsd-tdep.c: ...here.
7143 (i386nbsd_use_struct_convention): Rename to...
7144 (i386nbsd_aout_use_struct_convention): ...this.
7145 (i386nbsd_supply_reg): New function.
7146 (i386nbsd_fill_reg): New function.
7147 (fetch_core_registers): Use i386nbsd_supply_reg.
7148 (fetch_elfcore_registers): Likewise.
7149 (_initialize_i386nbsd_tdep): New function.
7150 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7151 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7152 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7153 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7154 (i386nbsd_aout_use_struct_convention): ...this.
7155
7156 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7157
7158 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7159 (store_inferior_registers): Use shnbsd_fill_reg.
7160 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7161 sh_nbsd_supply_register): Collapse into...
7162 (shnbsd_supply_reg): ...this.
7163 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7164 (shnbsd_fill_reg): ...this.
7165 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7166 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7167 (fetch_core_registers): Use shnbsd_supply_reg.
7168 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7169 (sh_nbsd_core_fns): Rename to...
7170 (shnbsd_core_fns): ...this.
7171 (sh_nbsd_elfcore_fns): Rename to...
7172 (shnbsd_elfcore_fns): ...this.
7173 (sh_nbsd_init_abi): Rename to...
7174 (shnbsd_init_abi): ...this.
7175 (_initialize_sh_nbsd_tdep): Rename to...
7176 (_initialize_shnbsd_tdep): ...this.
7177 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7178 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7179 sh_nbsd_fill_register): Remove prototypes.
7180 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7181
7182 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7183
7184 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7185 (i387-nat.o): Delete dependency list.
7186 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7187 (x86-64-linux-nat.o): Likewise.
7188 * i387-nat.c: Delete file, moving contents to...
7189 * i387-tdep.c: ...here.
7190 * i387-nat.h: Rename...
7191 * i387-tdep.h: ...to this.
7192 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7193 * i386-linux-nat.c: Likewise.
7194 * i386bsd-nat.c: Likewise.
7195 * i386gnu-nat.c: Likewise.
7196 * i386nbsd-nat.c: Likewise.
7197 * i386v4-nat.c: Likewise.
7198 * x86-64-linux-nat.c: Likewise.
7199 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7200 * config/i386/go32.mh (NATDEPFILES): Likewise.
7201 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7202 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7203 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7204 * config/i386/linux.mh (NATDEPFILES): Likewise.
7205 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7206 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7207 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7208 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7209
7210 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7211
7212 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7213 (alphanbsd-nat.o): Remove dependency list.
7214 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7215 * alphanbsd-nat.c: Delete. Contents moved to...
7216 * alphanbsd-tdep.c: ...here.
7217 (_initialize_alphanbsd_tdep): Register core functions.
7218 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7219
7220 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7221
7222 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7223 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7224 (alphanbsd-nat.o): Likewise.
7225 (alphabsd-tdep.o): New dependency list.
7226 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7227 (fill_gregset): Use alphabsd_fill_reg.
7228 (supply_fpregset): Use alphabsd_supply_fpreg.
7229 (fill_fpregset): Use alphabsd_fill_fpreg.
7230 (fetch_inferior_registers): Use struct reg and struct fpreg
7231 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7232 and alphabsd_supply_fpreg.
7233 (store_inferior_registers): Use struct reg and struct fpreg
7234 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7235 and alphabsd_fill_fpreg.
7236 * alphabsd-tdep.c: New file.
7237 * alphabsd-tdep.h: New file.
7238 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7239 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7240 alphabsd_supply_fpreg.
7241 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7242 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7243
7244 2002-05-11 Eric Christopher <echristo@redhat.com>
7245
7246 * mips-tdep.c (mips_double_register_type): Fix thinko.
7247 (mips_single_register_type): Ditto.
7248 * MAINTAINERS: Add self.
7249
7250 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7251
7252 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7253 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7254 right thing on architectures with different endianness and/or
7255 integer sizes.
7256
7257 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7258
7259 From Christian Limpach <chris@Pin.LU>
7260 * configure.in: Change sed expression which comments out
7261 NATDEPFILES to also comment out continuation lines.
7262 * configure: Regenerate.
7263
7264 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7265
7266 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7267 big patch.
7268
7269 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7270
7271 * sh-tdep.c: Include correct file.
7272
7273 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7274
7275 New support for sh64-elf (sh5) target.
7276
7277 * configure.tgt: For sh64-elf target, default to sh-elf.
7278
7279 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7280 (struct gdbarch_tdep): Add new fields for new registers and ABI
7281 info.
7282
7283 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7284 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7285 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7286 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7287 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7288 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7289 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7290 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7291 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7292 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7293 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7294 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7295 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7296 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7297 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7298 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7299 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7300 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7301 sign_extend, sh64_nofp_frame_init_saved_regs,
7302 sh64_init_extra_frame_info, sh64_get_saved_register,
7303 sh64_extract_struct_value_address, sh64_pop_frame,
7304 sh64_push_arguments, sh64_extract_return_value,
7305 sh64_store_return_value, sh64_show_media_regs,
7306 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7307 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7308 sh_sh64_register_virtual_type,
7309 sh_sh64_register_convert_to_virtual,
7310 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7311 sh64_register_read, sh64_pseudo_register_write,
7312 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7313 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7314 sh64_do_pseudo_register, sh_compact_do_registers_info,
7315 sh64_do_registers_info, sh_gdbarch_init): New functions.
7316
7317 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7318
7319 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7320
7321 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7322
7323 * linespec.c (decode_line_1): Check for a double quote after
7324 a filename correctly.
7325
7326 2002-05-10 Jim Blandy <jimb@redhat.com>
7327
7328 Properly track the size of the current objfile's .debug_line section.
7329 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7330 (DWARF_LINE_SIZE): New macro.
7331 (dwarf2_build_psymtabs_hard): Record the line section's size in
7332 the partial symbol table.
7333 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7334 symbol table.
7335
7336 2002-05-10 Petr Sorfa <petrs@caldera.com>
7337
7338 * ia64-tdep.c: Handle breakpoints on L instruction type
7339 in MLX instruction bundle by moving the breakpoint to
7340 the third slot (X instruction type) as L holds only data.
7341
7342 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7343
7344 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7345 (process_one_symbol): Complain about discarding local symbols
7346 due to a misplaced N_LBRAC entry.
7347
7348 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7349
7350 From Daniel Berlin <dan@cgsoftware.com>
7351 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7352 decrease the depth we are at, in the case of templates.
7353
7354 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7355
7356 * mips-tdep.c (mips_float_register_type): New function.
7357 (mips_double_register_type): New function.
7358 (mips_print_register): Use them.
7359 (do_fp_register_row): Likewise.
7360
7361 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7362
7363 * signals/signals.c (signals): Remove conditional compilation around
7364 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7365 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7366
7367 2002-05-09 Michael Snyder <msnyder@redhat.com>
7368
7369 * remote-rdp.c (remote_rdp_can_run): Remove.
7370
7371 2002-05-09 Tom Tromey <tromey@redhat.com>
7372
7373 * jv-valprint.c (java_val_print): Handle `char' as a special case
7374 of TYPE_CODE_INT.
7375
7376 2002-05-09 Michael Snyder <msnyder@redhat.com>
7377
7378 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7379 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7380 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7381 str r(0123),[sp,#nn].
7382 (arm_skip_prologue): Ditto. Also make disassembly
7383 order-independent by placing it in a loop.
7384
7385 2002-05-06 Michael Snyder <msnyder@redhat.com>
7386
7387 * stabsread.c (read_type): Add recognition for new attribute:
7388 "@V;" means that an array type is actually a vector.
7389 This is analogous to the vector flag that's been added to dwarf2.
7390
7391 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7392
7393 * i386-tdep.h (i386_abi): New enum.
7394 (struct gdbarch_tdep): Replace os_ident member with abi.
7395 (i386_gdbarch_register_os_abi): New prototype.
7396 * i386-tdep.c (i386_abi_names): New array.
7397 (process_note_abi_tag_sections): Removed.
7398 (process_note_sections): New function.
7399 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7400 (struct i386_abi_handler): New struct.
7401 (i386_abi_handler_list): New variable.
7402 (i386_gdbarch_register_os_abi): New function.
7403 (i386_gdbarch_init): Adapt for the changes given above.
7404
7405 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7406
7407 * gregset.h: Say "GNU/Linux".
7408
7409 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7410
7411 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7412 (build_gdbtypes): Build builtin_type_v2_float.
7413 (_initialize_gdbtypes): Register new builtin type.
7414
7415 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7416
7417 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7418 (clear_gdbarch_swap): New function.
7419 (initialize_non_multiarch): Call.
7420 (gdbarch_update_p): Before calling init(), swap out and clear the
7421 existing architecture.
7422 * gdbarch.c: Regenerate.
7423
7424 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7425
7426 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7427 alphanbsd-tdep.c.
7428
7429 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7430
7431 * sh-nbsd-nat.c: Rename to...
7432 * shnbsd-nat.c: ...this.
7433 * sh-nbsd-tdep.c: Rename to...
7434 * shnbsd-tdep.c: ...this.
7435 * sh-nbsd-tdep.h: Rename to...
7436 * shnbsd-tdep.h: ...this.
7437 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7438 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7439
7440 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7441
7442 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7443 concatenation for command help messages.
7444
7445 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * NEWS: Note new sh*-*-netbsdelf* configuration.
7448 * configure.host: Set gdb_host_cpu to sh for all sh*.
7449 (sh*-*-netbsdelf*): New host.
7450 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7451 (sh*-*-netbsdelf*): New target.
7452 * sh-nbsd-nat.c: New file.
7453 * sh-nbsd-tdep.c: New file.
7454 * sh-nbsd-tdep.h: New file.
7455 * config/sh/nbsd.mh: New file.
7456 * config/sh/nbsd.mt: New file.
7457 * config/sh/nm-nbsd.h: New file.
7458 * config/sh/tm-nbsd.h: New file.
7459
7460 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7461
7462 * sh-tdep.c (sh_osabi_names): Declare.
7463 (process_note_abi_tag_sections): New function.
7464 (get_elfosabi): Ditto.
7465 (sh_gdbarch_register_os_abi): Ditto.
7466 (sh_dump_tdep): Ditto.
7467 _initialize_sh_tdep): Use gdbarch_register to register
7468 sh_gdbarch_init and sh_dump_tdep.
7469 * config/sh/tm-sh.h (sh_osabi): Declare.
7470 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7471
7472 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7473
7474 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7475 (thumb_scan_prologue): Ditto.
7476 (arm_find_callers_reg): Ditto.
7477 (arm_frame_chain): Ditto.
7478 (arm_init_extra_frame_info): Ditto.
7479 (arm_frame_saved_pc): Ditto.
7480 (arm_pop_frame): Ditto.
7481 (arm_push_return_address): New function.
7482 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7483 call_dummy_location, call_dummy_breakpoint_offset_p,
7484 call_dummy_breakpoint_offset, call_dummy_p,
7485 call_dummy_stack_adjust_p, call_dummy_words,
7486 sizeof_call_dummy_words, call_dummy_start_offset,
7487 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7488 call_dummy_address, push_return_address and push_dummy_frame for
7489 generic dummy frames.
7490
7491 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7492
7493 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7494 size computation for alloca.
7495 (sh_fp_frame_init_saved_regs): Likewise.
7496
7497 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7498
7499 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7500 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7501 * arm-tdep.c (arm_store_return_value): Use them.
7502 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7503 * remote-rdp.c (remote_rdp_fetch_register): Use
7504 ARM_MAX_REGISTER_RAW_SIZE.
7505 (remote_rdp_store_register): Likewise.
7506
7507 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7508
7509 * dwarf2cfi.c: Code cleanup, removed unused variables,
7510 added default labels to switch {} statements.
7511 * x86-64-tdep.c: Ditto.
7512 * x86-64-linux-nat.c: Ditto.
7513
7514 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7515
7516 * solib.h: Protect against multiple inclusion.
7517
7518 2002-05-06 Jim Blandy <jimb@redhat.com>
7519
7520 Add first preprocessor macro-expansion files.
7521 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7522 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7523 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7524 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7525 (COMMON_OBS): Add macrotab.o, macroexp.o.
7526 (macroexp.o, macrotab.o): New rules.
7527
7528 Separate the job of reading the line number info statement program
7529 header (...expialidocious) out into its own function.
7530 * dwarf2read.c (struct line_head, struct filenames, struct
7531 directories): Replace with...
7532 (struct line_header): New structure, containing the full
7533 contents of the statement program header, including the
7534 include directory and file name tables.
7535 (read_file_scope): If we have line number info, instead of just
7536 calling dwarf_decode_lines to do all the work, call
7537 dwarf_decode_line_header first to get a `struct line_header'
7538 containing the data in the statement program header, and then
7539 pass that to dwarf_decode_lines, which will pick up where that
7540 left off. Be sure to clean up the `struct line_header' object.
7541 (dwarf_decode_line_header, free_line_header, add_include_dir,
7542 add_file_name): New functions.
7543 (dwarf_decode_lines): Move all the code to read the statement
7544 program header into dwarf_decode_line_header. Take the line
7545 header it built as the first argument, instead of the offset to
7546 the compilation unit's line number info. Use the new `struct
7547 line_header' type instead of the old structures. No need to do
7548 cleanups here now, since we don't allocate anything.
7549 (dwarf2_statement_list_fits_in_line_number_section,
7550 dwarf2_line_header_too_long): New complaints.
7551
7552 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7553
7554 * gdbtypes.c (init_vector_type): New function.
7555 (build_builtin_type_vec128): Simplify the representation of SIMD
7556 registers.
7557 (build_gdbtypes): Initialize new builtin vector types.
7558 (_initialize_gdbtypes): Register new vector types with gdbarch.
7559 (builtin_type_v4_float, builtin_type_v4_int32,
7560 builtin_type_v8_int16, builtin_type_v16_int8,
7561 builtin_type_v2_int32, builtin_type_v4_int16,
7562 builtin_type_v8_int8): New (renamed) SIMD types.
7563
7564 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7565
7566 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7567 (i387_fill_fxsave): Likewise.
7568
7569 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7570
7571 * alpha-tdep.c (alpha_extract_return_value): Don't use
7572 non-constant array size in prototype.
7573
7574 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7575
7576 From Brian Taylor <briant at model dot com>:
7577 * ui-out.c (ui_out_field_core_addr): Use the function
7578 longest_local_hex_string_custom'to format addresses > 32 bits
7579 wide.
7580
7581 * ui-out.c (ui_out_field_core_addr): Update comment.
7582
7583 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7584
7585 * stack.c (select_and_print_frame): Make static. Delete the
7586 parameter `level'.
7587 (func_command): Update call.
7588 (select_frame_command): Delete code computing the frame level.
7589 * frame.h (select_and_print_frame): Delete declaration.
7590
7591 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7592
7593 * sparc-tdep.c (sparc_get_saved_register): Comment why
7594 get_prev_frame call is safe.
7595
7596 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7597
7598 * frame.h (select_frame): Delete level parameter.
7599 * stack.c (select_frame): Update. Use frame_relative_level to
7600 obtain the frame's level.
7601 (select_and_print_frame): Update call.
7602 (select_frame_command): Ditto.
7603 (up_silently_base): Ditto.
7604 (down_silently_base): Ditto.
7605 * ocd.c (ocd_start_remote): Ditto.
7606 * remote-rdp.c (remote_rdp_open): Ditto.
7607 * remote-mips.c (mips_initialize): Ditto.
7608 (common_open): Ditto.
7609 * remote-e7000.c (e7000_start_remote): Ditto.
7610 * m3-nat.c (select_thread): Ditto.
7611 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7612 (child_get_current_exception_event): Ditto.
7613 * varobj.c (varobj_create): Ditto.
7614 (varobj_update): Ditto.
7615 (c_value_of_root): Ditto.
7616 * tracepoint.c (finish_tfind_command): Ditto.
7617 * corelow.c (core_open): Ditto.
7618 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7619 * thread.c (info_threads_command): Ditto.
7620 (switch_to_thread): Ditto.
7621 * infrun.c (normal_stop): Ditto.
7622 (restore_selected_frame): Ditto.
7623 (restore_inferior_status): Ditto.
7624 * breakpoint.c (insert_breakpoints): Ditto.
7625 (watchpoint_check): Ditto.
7626 (bpstat_stop_status): Ditto.
7627 (do_enable_breakpoint): Ditto.
7628 * blockframe.c (flush_cached_frames): Ditto.
7629 (reinit_frame_cache): Ditto.
7630
7631 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7632
7633 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7634 maintainer.
7635
7636 2002-05-04 Jim Blandy <jimb@redhat.com>
7637
7638 * gdbtypes.c (replace_type): Doc fix.
7639
7640 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7641
7642 * valprint.c (strcat_longest): Delete commented out function.
7643 Update copyright.
7644
7645 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7646
7647 * MAINTAINERS: Mark a29k as deleted.
7648 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7649 Move new configurations to the top.
7650 * configure.tgt: Remove a29k.
7651 * config/a29k/tm-vx29k.h: Delete.
7652 * config/a29k/vx29k.mt: Delete.
7653 * config/a29k/tm-a29k.h: Delete.
7654 * config/a29k/a29k-udi.mt: Delete.
7655 * config/a29k/a29k.mt: Delete.
7656 * a29k-tdep.c: Delete.
7657 * remote-udi.c: Delete.
7658 * remote-mm.c: Delete.
7659 * remote-eb.c: Delete.
7660 * remote-adapt.c: Delete.
7661 * Makefile.in: Remove obsolete code.
7662 * config/s390/s390x.mt: Ditto.
7663 * config/s390/s390.mt: Ditto.
7664 * config/sparc/sparclynx.mh: Ditto.
7665 * config/sparc/linux.mh: Ditto.
7666 * config/pa/hppaosf.mh: Ditto.
7667 * config/pa/hppabsd.mh: Ditto.
7668 * config/ns32k/nbsd.mt: Ditto.
7669 * config/mips/vr5000.mt: Ditto.
7670 * config/m68k/sun3os4.mh: Ditto.
7671 * config/m68k/nbsd.mt: Ditto.
7672 * config/m68k/m68klynx.mh: Ditto.
7673 * config/m32r/m32r.mt: Ditto.
7674 * config/i386/x86-64linux.mt: Ditto.
7675 * config/i386/nbsdelf.mt: Ditto.
7676 * config/i386/nbsd.mt: Ditto.
7677 * config/i386/i386lynx.mh: Ditto.
7678
7679 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7680
7681 * target.c (debug_print_register): New function. Handle oversize
7682 registers.
7683 (debug_to_fetch_registers): Call.
7684 (debug_to_store_registers): Call.
7685
7686 2002-05-03 Jim Blandy <jimb@redhat.com>
7687
7688 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7689 (read_type): Doc fix.
7690 * gdbtypes.c (replace_type): Doc fix.
7691
7692 * stabsread.c (multiply_defined_struct): New complaint.
7693 (read_struct_type): If the type we were passed isn't empty, or
7694 incomplete, don't read the new struct type into it; complain,
7695 and return the original type unchanged. Take a new `type_code'
7696 argument, which is the type code for the new type.
7697 (read_type): Rather than storing the type's type code here, pass
7698 it as an argument to read_struct_type, and let that take care of
7699 storing it. That way, we don't overwrite the original type code,
7700 so read_struct_type can use it to decide whether we're overwriting
7701 something we shouldn't.
7702 (complain_about_struct_wipeout): New function.
7703
7704 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7705
7706 * gdbarch.sh: Assert that gdbarch is non-NULL.
7707 * gdbarch.c: Regenerate.
7708
7709 2002-05-03 Jason Merrill <jason@redhat.com>
7710
7711 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7712 and return NULL.
7713
7714 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7715
7716 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7717 (x86_64_dwarf2gdb_regno_map_length),
7718 (x86_64_dwarf2_reg_to_regnum): Added.
7719 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7720 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7721 (_initialize_x86_64_tdep): Synced with the change above.
7722 (x86_64_skip_prologue): Reformulated message.
7723
7724 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7725
7726 * f-exp.y: Also use new prev_lexptr variable
7727 to improve error reporting. Based on Michael Snyder
7728 2002-04-24 dated patch to c-exp.y.
7729 * jv-exp.y: Likewise.
7730 * m2-exp.y: Likewise.
7731
7732 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7733
7734 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7735 we are dealing with vectors.
7736
7737 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7738
7739 * config/m68k/tm-nbsd.h: Obvious fix,
7740 correct machine name.
7741
7742 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7743
7744 * p-typeprint.c (pascal_type_print_base): Add support
7745 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7746
7747 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7748
7749 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7750 for fondamental pascal 'char' type.
7751
7752 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7753
7754 * p-lang.h (is_pascal_string_type): Declaration changed,
7755 new sixth argument of type char ** added.
7756 * p-lang.c (is_pascal_string_type): Implementation
7757 changed. Args length_pos, length_size, string_pos, char_size
7758 can now be NULL. New argument arrayname set to the field
7759 name of the char array. Return value set to char array
7760 field index plus one.
7761 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7762 is_pascal_string_type function.
7763
7764 2002-05-02 Andrew Cagney <cagney@redhat.com>
7765
7766 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7767 <cagney@redhat.com> change.
7768 * gdbarch.c: Regenerate.
7769
7770 2002-05-02 Andrew Cagney <cagney@redhat.com>
7771
7772 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7773 before probing for a new one. Detect errorenous gdbarch_init
7774 functions.
7775 * gdbarch.c: Regenerate.
7776
7777 2002-05-01 Andrew Cagney <cagney@redhat.com>
7778
7779 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7780 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7781 * config/v850/tm-v850.h: Ditto. Update copyright.
7782
7783 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7784
7785 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7786 current_gdbarch.
7787
7788 2002-04-30 Michael Snyder <msnyder@redhat.com>
7789
7790 * arm-tdep.c: Whitespace clean-ups.
7791 (arm_skip_prologue): Fix thinko; two lines
7792 should have been removed as part of 4/24 change.
7793
7794 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7795
7796 * rs6000-tdep.c: Added comment describing how fpscr register
7797 numbers were chosen.
7798
7799 2002-04-30 Michael Snyder <msnyder@redhat.com>
7800
7801 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7802
7803 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7804
7805 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7806 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7807 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7808
7809 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7810
7811 From Louis Hamilton <hamilton@redhat.com>:
7812 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7813 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7814 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7815 not bfd-private xcoff data, to determine wordsize.
7816 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7817
7818 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7819
7820 GDB 5.2 released from 5.2 branch.
7821
7822 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7823
7824 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7825 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7826 (x86_64_register_info_table): Added comments with register numbers.
7827
7828 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7829
7830 * rs6000-tdep.c (rs6000_extract_return_value,
7831 rs6000_store_return_value): Handle returning vectors.
7832 (rs6000_gdbarch_init): Use
7833 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7834 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7835 New function.
7836 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7837 vectors.
7838 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7839 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7840
7841 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7842
7843 * hpread.c (hpread_psymtab_to_symtab_1,
7844 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7845 with fprintf_unfiltered (gdb_stderr,...).
7846
7847 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7848
7849 * remote-array.c (printf_monitor, write_monitor,
7850 array_insert_breakpoint, array_remove_breakpoint ):
7851 Replace fprintf (stderr,...
7852 with fprintf_unfiltered (gdb_stderr,....
7853 * remote-es.c: Likewise.
7854 * remote-os9k.c: Likewise.
7855 * remote-st.c: Likewise.
7856
7857 2002-04-28 Andreas Schwab <schwab@suse.de>
7858
7859 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7860 linux-proc.o and gcore.o.
7861
7862 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7863
7864 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7865 code without frame pointers.
7866
7867 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7868
7869 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7870 ON_STACK is needed.
7871
7872 2002-04-26 Ben Elliston <bje@redhat.com>
7873
7874 * target.c (do_xfer_memory): Correct reference to the new option
7875 "trust-readonly-sections".
7876
7877 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7878
7879 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7880 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7881 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7882 vectors.
7883 (read_array_type): Record the fact that this array type is really a
7884 vector (i.e. are passed in by value).
7885
7886 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7887
7888 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7889 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7890 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7891 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7892 * alpha-linux-tdep.c: Include frame.h.
7893 (alpha_linux_sigcontext_addr): New function.
7894 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7895 alpha_linux_sigcontext_addr.
7896 * alpha-osf1-tdep.c: Include gdbcore.h.
7897 (alpha_osf1_sigcontext_addr): New function.
7898 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7899 alpha_osf1_sigcontext_addr.
7900 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7901 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7902
7903 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7904
7905 * stack.c (selected_frame_level):
7906 (select_frame): Do not set selected_frame_level.
7907 * frame.h (selected_frame_level): Delete declaration.
7908
7909 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7910
7911 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7912 convert_from_func_ptr-addr when AIX / PowerOpen.
7913
7914 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7915
7916 * valops.c (hand_function_call): Call
7917 generic_save_call_dummy_addr.
7918 * frame.h (generic_save_call_dummy_addr): Declare.
7919 * blockframe.c (struct dummy_frame): Add fields call_lo and
7920 call_hi.
7921 (generic_find_dummy_frame): Check for PC in range call_lo to
7922 call_hi instead of entry_point_address.
7923 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7924 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7925 (generic_save_call_dummy_addr): New function.
7926
7927 2002-04-24 David S. Miller <davem@redhat.com>
7928
7929 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7930 sparc_skip_prologue.
7931 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7932 information to find prologue when possible.
7933 (sparc_prologue_frameless_p): Call examine_prologue directly.
7934 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7935 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7936 second argument.
7937 (SKIP_PROLOGUE): Likewise.
7938
7939 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7940
7941 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7942 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7943 indicate that the condition it was testing is always true.
7944 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7945 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7946 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7947
7948 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7949
7950 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7951 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7952 tdep->jb_pc and tdep->jb_elt_size.
7953 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7954 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7955 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7956 * alpha-nat.c (get_longjmp_target): Remove.
7957 (JB_ELEMENT_SIZE): Ditto.
7958 (JB_PC): Ditto.
7959 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7960 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7961 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7962 to alpha_get_longjmp_target.
7963 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7964 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7965 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7966
7967 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7968
7969 * README: Update to GDB 5.2.
7970
7971 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7972
7973 * gdbarch.sh (LC_ALL): Set to `c'.
7974
7975 2002-04-25 Theodore A. Roth <troth@verinet.com>
7976
7977 * avr-tdep.c: Ran through gdb_indent.sh.
7978
7979 2002-04-25 Theodore A. Roth <troth@verinet.com>
7980
7981 * MAINTAINERS: Add myself as AVR maintainer.
7982 * NEWS: Note new target avr.
7983
7984 2002-04-25 Theodore A. Roth <troth@verinet.com>
7985
7986 * Makefile.in: Add support for AVR target.
7987 * configure.tgt: Add support for AVR target.
7988 * avr-tdep.c: New file
7989 * config/avr/avr.mt: New file.
7990
7991 2002-04-25 Theodore A. Roth <troth@verinet.com>
7992
7993 * MAINTAINERS: Add myself to write-after-approval.
7994
7995 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7996
7997 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7998 with fprintf_unfiltered (gdb_stderr,....
7999
8000 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8001
8002 Fix PR gdb/508.
8003 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8004
8005 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8006
8007 * p-exp.y: Also use new prev_lexptr variable
8008 to improve error reporting. Based on Michael Snyder
8009 2002-04-24 dated patch to c-exp.y.
8010
8011 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8012
8013 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8014 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8015 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8016 to 0.
8017 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8018 and struct value.
8019 (FUNCTION_START_OFFSET): Remove.
8020 (BREAKPOINT): Ditto.
8021
8022 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8023
8024 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8025 * NEWS: Ditto.
8026
8027 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8028
8029 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8030 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8031 alpha_linux_pc_in_sigtramp.
8032 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8033 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8034 alpha_osf1_pc_in_sigtramp.
8035 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8036 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8037 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8038 alphafbsd_pc_in_sigtramp.
8039 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8040 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8041 alphanbsd_pc_in_sigtramp.
8042 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8043 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8044
8045 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8046
8047 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8048
8049 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8050
8051 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8052 alphanbsd-tdep.c.
8053 (alphanbsd-nat.o): New dependency list.
8054 (alphanbsd-tdep.o): Ditto.
8055 * NEWS: Note new native NetBSD/alpha configuration.
8056 * alphanbsd-nat.c: New file.
8057 * alphanbsd-tdep.c: Ditto.
8058 * configure.host (alpha*-*-netbsd*): New host.
8059 * configure.tgt (alpha*-*-netbsd*): New target.
8060 * config/alpha/nbsd.mh: New file.
8061 * config/alpha/nbsd.mt: Ditto.
8062 * config/alpha/nm-nbsd.h: Ditto.
8063 * config/alpha/tm-nbsd.h: Ditto.
8064
8065 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8066
8067 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8068 (alpha-osf1-tdep.o): New dependency list.
8069 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8070 and skip_sigtramp_frame members.
8071 * alpha-linux-tdep.c: Include gdbcore.h.
8072 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8073 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8074 * alpha-osf1-tdep.c: New file.
8075 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8076 alpha-osf1-dep.c.
8077 (alpha_frame_past_sigtramp_frame): New function.
8078 (alpha_dynamic_sigtramp_offset): Ditto.
8079 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8080 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8081 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8082 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8083 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8084 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8085 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8086 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8087 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8088 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8089 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8090 to find_solib_trampoline_target.
8091 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8092 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8093 (SKIP_TRAMPOLINE_CODE): Remove.
8094 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8095 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8096 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8097 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8098 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8099 (PROC_SIGTRAMP_MAGIC): Ditto.
8100 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8101 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8102 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8103 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8104 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8105
8106 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8107
8108 * NEWS: Note that Alpha targets are now multi-arch.
8109
8110 2002-04-24 Michael Snyder <msnyder@redhat.com>
8111
8112 * parser-defs.h (prev_lexptr): New external variable.
8113 * parse.c (parse_exp_1): Set prev_lexptr to null before
8114 calling the language-specific parser.
8115 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8116 (yyerror): Use prev_lexptr in error reporting.
8117
8118 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8119
8120 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8121 * gregset.h: If FILL_FPXREGSET is defined, provide
8122 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8123 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8124 is defined, call fill_fpxregset.
8125
8126 2002-04-24 Roland McGrath <roland@frob.com>
8127
8128 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8129 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8130 (supply_gregset, supply_fpregset): New functions.
8131
8132 * gnu-nat.c (gnu_find_memory_regions): New function.
8133 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8134 (gnu_xfer_memory): Add a cast.
8135
8136 2002-04-24 Michael Snyder <msnyder@redhat.com>
8137
8138 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8139 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8140 of argument regs ("str r(0123), [r11, #-nn"]).
8141 (arm_skip_prologue): Better handling for frameless functions.
8142 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8143 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8144
8145 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8146
8147 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8148 NUM_PSEUDO_REGS can be used.
8149
8150 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8151
8152 * arch-utils.h: Update copyright.
8153
8154 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8155 * gdbarch.h, gdbarch.c: Re-generate.
8156
8157 * inferior.h (IN_SIGTRAMP): Delete definition.
8158 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8159 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8160
8161 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8162 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8163 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8164 (find_proc_framesize): Ditto.
8165 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8166 (alpha_init_extra_frame_info): Ditto.
8167 * infrun.c (handle_inferior_event): Ditto.
8168 (handle_inferior_event): Ditto.
8169 (check_sigtramp2): Ditto.
8170 * blockframe.c (create_new_frame): Ditto.
8171 (get_prev_frame): Ditto.
8172 * ppc-linux-tdep.c: Update comments.
8173 * i386-linux-tdep.c: Update comments.
8174 * breakpoint.c (bpstat_what): Update comment.
8175
8176 2002-04-24 David S. Miller <davem@redhat.com>
8177
8178 * i960-tdep.c (register_in_window_p): New function.
8179 (i960_find_saved_register): Use it instead of
8180 REGISTER_IN_WINDOW_P.
8181 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8182
8183 * symtab.h (find_stab_function_addr): Kill extern.
8184 * minsyms.c (find_stab_function_addr): Remove from here...
8185 * dbxread.c: ... to here, and mark it static.
8186
8187 2002-04-20 David S. Miller <davem@redhat.com>
8188
8189 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8190 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8191
8192 2002-04-21 David S. Miller <davem@redhat.com>
8193
8194 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8195 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8196 (vx_write_register): Likewise.
8197
8198 2002-04-23 J. Brobecker <brobecker@gnat.com>
8199
8200 * source.c (is_regular_file): New function.
8201 (openp): Check wether file to open is a regular file
8202 to avoid opening directories.
8203
8204 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8205
8206 * findvar.c (extract_signed_integer): Cast printf argument
8207 to suppress format warning.
8208 (extract_unsigned_integer): Likewise.
8209 * infcmd.c (registers_info): Likewise.
8210 * top.c (get_prompt_1): Likewise.
8211 * valops.c (value_assign): Likewise.
8212 * valprint.c (print_decimal): Likewise.
8213
8214 2002-04-22 H.J. Lu (hjl@gnu.org)
8215
8216 * c-exp.y (typebase): Support
8217
8218 [long|long long|short] [signed|unsigned] [int|]
8219
8220 and
8221
8222 signed [long|long long|short] int
8223
8224 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8225
8226 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8227 and vax-tdep.h.
8228 * vax-tdep.h: New file.
8229 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8230 Make several routines static.
8231 (vax_get_saved_register): New function.
8232 (vax_gdbarch_init): New function.
8233 (_initialize_vax_tdep): Register vax_gdbarch_init.
8234 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8235 Remove macros now under the control of gdbarch.
8236
8237 2002-04-22 Michael Snyder <msnyder@redhat.com>
8238
8239 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8240 Some whitespace and coding standards tweaks.
8241
8242 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8243
8244 * vax-tdep.c: Include regcache.h.
8245 (vax_call_dummy_words): New.
8246 (sizeof_vax_call_dummy_words): New.
8247 (vax_fix_call_dummy): New function.
8248 (vax_saved_pc_after_call): Ditto.
8249 * config/vax/tm-vax.h: Don't include regcache.h.
8250 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8251 (CALL_DUMMY): Remove.
8252 (CALL_DUMMY_WORDS): Define.
8253 (SIZEOF_CALL_DUMMY_WORDS): Define.
8254 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8255
8256 2002-04-18 Michael Snyder <msnyder@redhat.com>
8257
8258 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8259
8260 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8261
8262 * vax-tdep.c (vax_frame_chain): New function.
8263 (vax_push_dummy_frame): Ditto.
8264 (vax_pop_frame): Ditto.
8265 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8266 (FRAMELESS_FUNCTION_INVOCATION): Use
8267 generic_frameless_function_invocation_not.
8268 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8269 (POP_FRAME): Use vax_pop_frame.
8270
8271 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8272
8273 * vax-tdep.c (vax_store_struct_return): New function.
8274 (vax_extract_return_value): Ditto.
8275 (vax_store_return_value): Ditto.
8276 (vax_extract_struct_value_address): Ditto.
8277 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8278 vax_store_struct_return.
8279 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8280 (STORE_RETURN_VALUE): Use vax_store_return_value.
8281 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8282
8283 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8284
8285 * vax-tdep.c (vax_frame_saved_pc): New function.
8286 (vax_frame_args_address_correct): Ditto.
8287 (vax_frame_args_address): Ditto.
8288 (vax_frame_locals_address): Ditto.
8289 (vax_frame_num_args): Move code to be in proximity to
8290 other frame-related functions.
8291 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8292 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8293 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8294 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8295 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8296
8297 2002-04-22 H.J. Lu (hjl@gnu.org)
8298
8299 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8300 includedir.
8301
8302 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8303
8304 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8305 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8306 (FRAME_INIT_SAVED_REGS): New macro.
8307
8308 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8309
8310 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8311
8312 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8313
8314 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8315 where needed.
8316 (fetch_osf_core_registers): Likewise.
8317 (supply_gregset): Likewise.
8318
8319 2002-04-22 J. Brobecker <brobecker@gnat.com>
8320
8321 * symfile.h (get_section_index): Define.
8322 * symfile.c (get_section_index): New function.
8323 * mdebugread.c (SC_IS_SBSS): New macro.
8324 (SC_IS_BSS): Return true for the scBss storage class only, as
8325 the scSBss storage class refers to the .sbss section.
8326 (parse_partial_symbols): Discard the symbols which associated
8327 section does not exist.
8328 Make sure to use the .sbss section index for symbols which
8329 storage class is scBss, rather than using the .bss section index.
8330
8331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8332
8333 * vax-tdep.c: Update copyright years.
8334 (vax_register_name): New function.
8335 (vax_register_byte): Ditto.
8336 (vax_register_raw_size): Ditto.
8337 (vax_register_virtual_size): Ditto.
8338 (vax_register_virtual_type): Ditto.
8339 * config/vax/tm-vax.h: Update copyright years.
8340 (REGISTER_NAMES): Remove.
8341 (REGISTER_NAME): Define.
8342 (REGISTER_BYTE): Use vax_register_byte.
8343 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8344 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8345 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8346
8347 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8348
8349 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8350 declaration
8351 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8352
8353 2002-04-21 David S. Miller <davem@redhat.com>
8354
8355 * arch-utils.c (generic_prologue_frameless_p): Kill
8356 SKIP_PROLOGUE_FRAMELESS_P code.
8357 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8358 references.
8359 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8360 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8361 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8362 references.
8363 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8364 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8365 (sparc_gdbarch_init): Pass it to
8366 set_gdbarch_prologue_frameless_p.
8367
8368 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8369
8370 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8371 (alphabsd-nat.o): New dependency list.
8372
8373 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8374
8375 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8376 alphafbsd-tdep.c.
8377 (alpha-linux-tdep.o): New dependency list.
8378 (alphafbsd-tdep.o): Likewise.
8379
8380 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8381
8382 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8383 to here...
8384 * alpha-tdep.c: ...from here.
8385 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8386
8387 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8388
8389 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8390 prototype from here...
8391 * alpha-tdep.h: ...to here.
8392
8393 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8394
8395 * frame.h (selected_frame_level): Document as deprecated.
8396 (frame_relative_level): Declare.
8397 * stack.c (frame_relative_level): New function.
8398 (selected_frame_level): Document as deprecated.
8399 (select_frame): Do not set the selected_frame_level.
8400
8401 * stack.c (frame_info, record_selected_frame): Update.
8402 (frame_command, current_frame_command): Update.
8403 (up_silently_base, up_command, down_silently_base): Update.
8404 (down_command): Update.
8405 * inflow.c (kill_command): Update.
8406 * tracepoint.c (finish_tfind_command): Update.
8407 * corelow.c (core_open): Update.
8408 * thread.c (info_threads_command): Update.
8409 (do_captured_thread_select): Update.
8410 * infcmd.c (finish_command): Update.
8411 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8412
8413 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8414
8415 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8416
8417 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8418
8419 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8420 type const.
8421
8422 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8423
8424 * alphafbsd-tdep.c: Update copyright years. Include
8425 alpha-tdep.h.
8426 (alphafbsd_use_struct_convention): Make static.
8427 (alphafbsd_init_abi): New function.
8428 (_initialize_alphafbsd_tdep): New function.
8429 * config/alpha/tm-fbsd.h: Update copyright years.
8430 (USE_STRUCT_CONVENTION): Remove.
8431
8432 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8433
8434 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8435 an Alpha ABI variant.
8436 (alpha_abi_handler_list): Declare.
8437 (alpha_gdbarch_register_os_abi): New function.
8438 (alpha_gdbarch_init): Give registered ABI variant handlers a
8439 chance to tweak the gdbarch once we have set up defaults.
8440 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8441
8442 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8443
8444 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8445 to standard_coerce_float_to_double.
8446 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8447
8448 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8449
8450 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8451 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8452 from gdbarch_tdep rather than a constant.
8453 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8454 the default text address for all Alpha Unix ABIs.
8455 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8456 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8457
8458 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8459
8460 * alpha-tdep.h: New file. Includes several Alpha target constants
8461 taken from...
8462 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8463 let gdbarch deal with.
8464 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8465 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8466 to dependency list.
8467 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8468 Alpha target register names.
8469 * alphabsd-nat.c: Likewise.
8470 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8471 Alpha target register names. Make serveral routines static.
8472 (alpha_get_saved_register): New function.
8473 (alpha_abi_names): New.
8474 (process_note_abi_tag_sections): New function.
8475 (get_elfosabi): New function.
8476 (alpha_gdbarch_init): New function.
8477 (alpha_dump_tdep): New function.
8478 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8479
8480 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8481
8482 * frame.c (find_saved_register): Delete #ifdef
8483 HAVE_REGISTER_WINDOWS code.
8484 * config/sparc/tm-sparc.h: Update comments.
8485 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8486
8487 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8488
8489 * i960-tdep.c (i960_find_saved_register): New function.
8490 (i960_get_saved_register): New function.
8491 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8492 (i960_get_saved_register): Declare.
8493 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8494
8495 2002-04-20 David S. Miller <davem@redhat.com>
8496
8497 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8498
8499 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8500
8501 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8502 instead of NUM_PSEUDO_REGS.
8503
8504 2002-04-20 David S. Miller <davem@redhat.com>
8505
8506 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8507 GDB_MULTI_ARCH_PARTIAL
8508 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8509 define, let tm-sp64.h do it.
8510
8511 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8512
8513 * frame.c (find_saved_register): Avoid a NULL pointer
8514 dereference and actually walk the frame list.
8515
8516 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8517
8518 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8519 sorted in most most-recent-used order. Document.
8520 * gdbarch.h, gdbarch.c: Regenerate.
8521
8522 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8523
8524 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8525 instead of ->prev.
8526 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8527 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8528 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8529 instead of ->prev.
8530
8531 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8532
8533 Fix PR gdb/471.
8534 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8535 (build_builtin_type_vec128): Ditto.
8536 (append_composite_type_field): Fix calculation of type length in
8537 union case.
8538
8539 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8540
8541 * config/djgpp/README: Update.
8542
8543 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8544 compiler warnings.
8545
8546 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8547
8548 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8549 (alpha_setup_arbitrary_frame): ...to this.
8550 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8551 for alpha_setup_arbitrary_frame.
8552
8553 2002-04-18 Andrew Cagney <cagney@redhat.com>
8554
8555 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8556 * gdbarch.h, gdbarch.c: Regenerate.
8557
8558 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8559 * target.h (memory_breakpoint_from_pc): Update declaration.
8560 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8561
8562 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8563 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8564 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8565 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8566 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8567 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8568 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8569 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8570 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8571 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8572 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8573 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8574
8575 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8576 const pointer.
8577 * monitor.c (monitor_insert_breakpoint): Ditto.
8578 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8579
8580 * config/mcore/tm-mcore.h: Update copyright.
8581 * mem-break.c: Ditto.
8582 * xstormy16-tdep.c: Ditto.
8583
8584 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8585
8586 * p-exp.y: Add precedence rule for '^' token.
8587 This removes the shift/reduce conflicts.
8588 Remove the comment concerning these shift/reduce conflicts.
8589
8590 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8591
8592 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8593 (registers_powerpc_nofp): New register set for processors
8594 without floating point unit.
8595
8596 2002-04-18 David S. Miller <davem@redhat.com>
8597
8598 * MAINTAINERS: Add myself to write-after-approval.
8599
8600 2002-04-17 Michael Snyder <msnyder@redhat.com>
8601
8602 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8603
8604 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8605
8606 * rs6000-tdep.c (frame_initial_stack_address): Use
8607 frame_register_read to read the alloca_reg.
8608
8609 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8610
8611 * frame.c (find_saved_register): Find saved registers in the next
8612 not prev frame.
8613 Fix PR gdb/365.
8614
8615 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8616
8617 * gdbarch.sh (LANG): Set to ``c''.
8618
8619 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8620
8621 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8622
8623 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8624
8625 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8626 Update copyright.
8627
8628 * hpread.c (hpread_get_lntt): Add declaration.
8629 Also fix PR gdb/391.
8630
8631 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8632
8633 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8634 * aclocal.m4, configure: Re-generate.
8635 Fix PR gdb/391.
8636
8637 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8638
8639 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8640 instead of tm_print_insn.
8641
8642 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8643
8644 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8645
8646 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8647
8648 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8649 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8650 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8651
8652 2002-04-12 Don Howard <dhoward@redhat.com>
8653
8654 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8655 max_user_call_depth.
8656 (init_cmd_lists): Initialize the new value;
8657 * cli/cli-script.c (execute_user_command): Limit the call depth of
8658 user defined commands. This avoids a core-dump when user commands
8659 are infinitly recursive.
8660
8661 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8662
8663 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8664 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8665 from tdep struct instead of DEFAULT_LR_SAVE.
8666 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8667 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8668 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8669
8670 2002-04-12 Michael Snyder <msnyder@redhat.com>
8671
8672 * Remote.c: Spelling fix.
8673 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8674 If no symbol found for "sbrk", try "_sbrk".
8675 (make_output_phdrs): Use bfd_section_name.
8676 (gcore_copy_callback): Use bfd_section_name.
8677 * eval.c: Indentation fix-ups.
8678 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8679 in case it gets applied to an address that is already
8680 in the instruction space.
8681 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8682 * symfile.c: Fix indentation, long lines.
8683 * source.c: White space fix-up.
8684
8685 2002-04-12 Andrew Cagney <cagney@redhat.com>
8686
8687 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8688 * frame.c (frame_register_read): New function. Return non-zero on
8689 success.
8690 (read_relative_register_raw_bytes_for_frame): Delete.
8691 (read_relative_register_raw_bytes): Delete.
8692 * frame.h (frame_register_read): Declare.
8693 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8694 * sh-tdep.c: Ditto.
8695 * infcmd.c (do_registers_info): Ditto.
8696 * hppa-tdep.c: Ditto.
8697 * rs6000-tdep.c: Ditto.
8698 * h8500-tdep.c: Ditto.
8699 * mips-tdep.c: Ditto.
8700 * h8300-tdep.c: Ditto.
8701 * z8k-tdep.c: Ditto.
8702
8703 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8704
8705 From Jimi X <jimix@watson.ibm.com>:
8706 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8707 64-bit SysV ABI.
8708
8709 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8710
8711 From Jimi X <jimix@watson.ibm.com>:
8712 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8713 bfd info.
8714
8715 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8716
8717 From Jimi X <jimix@watson.ibm.com>:
8718 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8719 register sets for these processor variants.
8720
8721 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8722
8723 * regformats/reg-ppc.dat: Support FPSCR.
8724
8725 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8726
8727 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8728 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8729 Add fpscr as an invalid/unfetchable register.
8730 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8731 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8732 (fill_fpregset): Add support for register fpscr.
8733 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8734 (fill_gregset): Account for the fact that register ``mq'' might
8735 not exist.
8736 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8737 (registers_power): Add fpscr to register set at slot 71.
8738 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8739 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8740
8741 2002-04-11 Michael Snyder <msnyder@redhat.com>
8742
8743 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8744 * configure: Regenerate.
8745 * config.in: Regenerate.
8746 * acconfig.h: Add define for _SYSCALL32.
8747 * core-sol2.c: Remove #define _SYSCALL32.
8748 * solib-legacy.c: Remove #define _SYSCALL32.
8749
8750 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8751
8752 * stack.c (select_frame): Cleanup internal error message, do not
8753 use %p.
8754
8755 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8756
8757 * stack.c (select_frame): Check that selected_frame and the
8758 specified level are as expected.
8759 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8760 Update copyright.
8761 * frame.h (struct frame_info): Add field `level'. Update
8762 copyright.
8763 Work-in-progress PR gdb/464.
8764
8765 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8766
8767 * maint.c (maint_print_section_info): Rename print_section_info.
8768 (print_bfd_section_info, print_objfile_section_info): Update.
8769 * inferior.h (struct gdbarch): Add opaque declaration.
8770 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8771 * gdbarch.h: Regenerate.
8772
8773 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8774
8775 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8776 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8777 (kernel_u_size): Added.
8778 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8779 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8780
8781 2002-04-04 Jim Ingham <jingham@apple.com>
8782
8783 * valarith.c (find_size_for_pointer_math): New function, either returns
8784 the size for a pointer's target, returns 1 for void *, or errors for
8785 incomplete types.
8786 (value_add, value_sub): use find_size_for_pointer_math.
8787
8788 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8789
8790 * linux-low.c (linux_look_up_symbols): New hook.
8791 (linux_target_ops): Add linux_look_up_symbols.
8792 * remote-utils.c (decode_address): New function.
8793 (look_up_one_symbol): New function.
8794 * server.c (handle_query): Call target look_up_symbols hook.
8795 * server.h (look_up_one_symbol): Add prototype.
8796 * target.h (struct target_ops): Add look_up_symbols hook.
8797
8798 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8799
8800 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8801 override FP_REGNUM with frame->fp. Update copyright.
8802 * parse.c (num_std_regs, std_regs): Delete.
8803 (target_map_name_to_register): Do not search std_regs. Update
8804 function description.
8805 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8806 declarations. Update copyright.
8807 Fix PR gdb/251.
8808
8809 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8810
8811 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8812 after the last symbol in a block.
8813
8814 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8815
8816 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8817 is non zero as a found symbol.
8818
8819 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8820
8821 * findvar.c: Include "builtin-regs.h".
8822 (value_of_register): Call value_of_builtin_reg when applicable.
8823 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8824 (target_map_name_to_register): Call
8825 builtin_reg_map_name_to_regnum.
8826 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8827 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8828 (builtin_regs_h): Define.
8829 (builtin-regs.o): New target.
8830 (findvar.o): Add $(builtin_regs_h).
8831 * builtin-regs.c, builtin-regs.h: New files.
8832 * std-regs.c: New file.
8833 Partial fix for PR gdb/251.
8834
8835 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8836
8837 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8838 it's no longer required.
8839
8840 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8841
8842 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8843
8844 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8845
8846 From Jimi X <jimix@watson.ibm.com>:
8847 * rs6000-tdep.c (rs6000_software_single_step): Use
8848 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8849 and size. Use target_insert_breakpoint() and
8850 target_remove_breakpoint() to insert and remove breakpoints
8851 instead of explicit memory reads and writes.
8852
8853 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8854
8855 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8856 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8857 ELF_OBJECT_FORMAT ifdef.
8858
8859 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8860
8861 From Jimi X <jimix@watson.ibm.com>:
8862 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8863
8864 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8865
8866 From Jimi X <jimix@watson.ibm.com>:
8867 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8868 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8869
8870 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8871
8872 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8873 s/asprintf/xasprintf/.
8874 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8875
8876 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8877
8878 I believe Jeff Law denies responsability for this one:
8879 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8880 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8881 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8882 Work-around for PR gdb/366.
8883
8884 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8885
8886 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8887 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8888 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8889
8890 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8891
8892 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8893 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8894 information.
8895
8896 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8897
8898 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8899 maintainer.
8900
8901 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8902
8903 * README (Reporting Bugs in GDB): Document the bug web page as the
8904 prefered way of submitting bugs.
8905 Fix PR gdb/402.
8906
8907 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8908
8909 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8910 -1. Update comment.
8911 * gdbarch.h, gdbarch.c: Re-generate.
8912
8913 2002-04-07 Andreas Schwab <schwab@suse.de>
8914
8915 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8916 buffer to regcache_collect.
8917
8918 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8919
8920 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8921 * gdbarch.c, gdbarch.h: Re-generate.
8922
8923 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8924
8925 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8926 declaration. Fix -Werror.
8927
8928 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8931 * gdbarch.c: Regenerate.
8932
8933 2002-04-05 Michael Snyder <msnyder@redhat.com>
8934
8935 * breakpoint.c (clear_command): Rewrite middle section to
8936 combine two loops with identical control conditions.
8937 Add a cleanup to eliminate a memory leak.
8938 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8939
8940 2002-04-05 H.J. Lu (hjl@gnu.org)
8941
8942 * solib-svr4.c (bkpt_names): Add "__start".
8943
8944 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8945
8946 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8947 as test for 64 bit target.
8948
8949 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8950
8951 * h8500-tdep.c (h8500_write_fp): Delete function.
8952 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8953 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8954 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8956 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8957 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8958 (s390_write_fp):
8959 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8960 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8961 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8962 (d10v_write_fp): Delete function.
8963 * inferior.h (write_fp, generic_target_write_fp): Delete
8964 declarations.
8965 * regcache.c (generic_target_write_fp): Delete function.
8966 (write_fp): Delete function.
8967 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8968 * gdbarch.h, gdbarch.c: Regenerate.
8969 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8970 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8971 (sparc64_write_fp): Delete declaration.
8972 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8973 (h8500_write_fp): Delete declaration.
8974
8975 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8976
8977 * sparc-tdep.c (sparc64_write_fp): Delete.
8978 (sparc_push_dummy_frame): Replace write_fp call with code to store
8979 the FP directly.
8980 (sparc_gdbarch_init): Do not initialize write_fp.
8981
8982 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8983
8984 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8985 clause.
8986
8987 2002-03-29 Jim Blandy <jimb@redhat.com>
8988
8989 * stack.c (get_selected_block): Add new argument `addr_in_block',
8990 used to return the exact code address we used to select the block,
8991 not just the block.
8992 * blockframe.c (get_frame_block, get_current_block): Same.
8993 * frame.h (get_frame_block, get_current_block,
8994 get_selected_block): Update declarations.
8995 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8996 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8997
8998 2002-04-05 Michael Snyder <msnyder@redhat.com>
8999
9000 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9001 warning message.
9002
9003 2002-04-05 J. Brobecker <brobecker@gnat.com>
9004
9005 * utils.c (xfullpath): New function.
9006 * defs.h (xfullpath): Add declaration.
9007 * source.c (openp): Use xfullpath in place of gdb_realpath to
9008 avoid resolving the basename part of filenames when the
9009 associated file is a symbolic link. This fixes a potential
9010 inconsistency between the filenames known to GDB and the
9011 filenames it prints in the annotations.
9012 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9013 to be able to match a filename with either the real filename, or
9014 the name of any symbolic link to this file.
9015 (lookup_partial_symtab): Ditto.
9016
9017 2002-04-04 Michael Snyder <msnyder@redhat.com>
9018
9019 * breakpoint.c: Add support for hardware breakpoints in overlays.
9020 (overlay_events_enabled): New state variable.
9021 (insert_breakpoints): Use overlay_events_enabled to decide
9022 whether to attempt to set a breakpoint at the overlay load addr.
9023 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9024 (remove_breakpoint): Use overlay_events_enabled to decide
9025 whether breakpoints need to be removed from overlay load addr.
9026 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9027 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9028 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9029 disable_overlay_breakpoints): Update overlay_events_enabled.
9030
9031 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9032
9033 * dwarf2read.c (struct function_range): New.
9034 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9035 (check_cu_functions): New.
9036 (read_file_scope): Initialize global function lists.
9037 Call dwarf_decode_line after processing children.
9038 (read_func_scope): Add to global function list.
9039 (dwarf_decode_lines): Call check_cu_functions everywhere
9040 record_line is called. Call record_line with a linenumber
9041 of 0 to mark sequence ends.
9042
9043 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9044
9045 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9046 change sync with glibc.
9047
9048 2002-04-03 Jim Blandy <jimb@redhat.com>
9049
9050 * configure.in: Call AC_C_INLINE.
9051 * configure: Regenerated.
9052
9053 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9054
9055 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9056 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9057
9058 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9059
9060 * NEWS: Mention gcore support on FreeBSD/i386.
9061
9062 * fbsd-proc.c: New file.
9063 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9064 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9065
9066 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9067 while statement.
9068
9069 2002-03-29 Jim Blandy <jimb@redhat.com>
9070
9071 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9072 unescaped newlines in string literals, but newer ones don't. So
9073 escape them.
9074
9075 2002-03-26 Michael Snyder <msnyder@redhat.com>
9076 Andrew Cagney <cagney@redhat.com>
9077
9078 * cli/cli-dump.c: New file. Dump memory to file,
9079 restore file to memory.
9080 * cli/cli-dump.h: New file.
9081 * Makefile.in: Add rules, dependencies for cli-dump.o.
9082 * NEWS: Mention new commands.
9083
9084 2002-03-28 Michael Snyder <msnyder@redhat.com>
9085
9086 * symfile.c (symbol_file_add): Move test for null symbols to later.
9087
9088 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9089
9090 From veksler at il.ibm.com:
9091 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9092 the xstrduped original path.
9093 Fix PR gdb/417.
9094
9095 2002-03-27 Michael Snyder <msnyder@redhat.com>
9096
9097 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9098 * infcmd.c (_initialize_infcmd): Ditto.
9099 * language.c (_initialize_language): Ditto.
9100 * symfile.c (_initialize_symfile): Ditto.
9101 * top.c (_init_main): Ditto.
9102 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9103
9104 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9105
9106 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9107 vector registers handling.
9108 (skip_prologue): Handle new AltiVec instructions. Fill in new
9109 fields of frame data.
9110 (frame_get_saved_regs): Fill in information for AltiVec registers.
9111
9112 2002-03-27 Jim Blandy <jimb@redhat.com>
9113
9114 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9115 a function; leave this macro here to invoke that function.
9116 (symbol_init_mangled_name): Declaration for that function.
9117 * symtab.c (symbol_init_mangled_name): New function.
9118
9119 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9120
9121 * valarith.c: Replace strerror with safe_strerror.
9122 * tracepoint.c: Ditto.
9123 * lin-lwp.c: Ditto.
9124 * go32-nat.c: Ditto.
9125 * inflow.c: Ditto.
9126 * gnu-nat.c: Ditto.
9127
9128 2002-03-27 Andreas Schwab <schwab@suse.de>
9129
9130 * event-top.c (command_line_handler): Remove useless if.
9131
9132 2002-03-27 Andreas Jaeger <aj@suse.de>
9133
9134 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9135 comment.
9136
9137 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9138
9139 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9140 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9141 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9142 (x86_64_linux_dr_get_status, supply_gregset),
9143 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9144 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9145 (x86_64_register_info_table): Add.
9146 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9147 (x86_64_register_raw_size, x86_64_register_virtual_type),
9148 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9149 general x86_64_register_info_table.
9150 (i386_gdbarch_init): gdbarch_register_bytes is now set
9151 dynamicaly during initialization.
9152 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9153 * gdbserver/linux-x86-64-low.c: Ditto.
9154
9155 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9156
9157 * gdbserver/server.c (main): Call target_signal_to_host_p
9158 and target_signal_to_host on signals received from the remote.
9159 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9160 target_signal_from_host on signals sent to the remote.
9161 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9162 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9163
9164 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * signals/signals.c: Include "server.h" in gdbserver build.
9167 (target_signal_from_name): Don't use STREQ.
9168 (_initialize_signals): Likewise. Don't include function in
9169 gdbserver build.
9170
9171 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9172
9173 * signals.c: Moved to...
9174 * signals/signals.c: Here.
9175 * Makefile (signals.o): Update.
9176
9177 2002-03-26 Jeff Law (law@redhat.com)
9178
9179 * somread.c (som_symtab_read): Remove some commented out code and
9180 updated related comments. Do not set the minimal symbol table to
9181 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9182 in a dynamic executable.
9183 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9184 where we are unable to find the minimal symbol for the given
9185 PC value.
9186
9187 2002-03-25 Jeff Law (law@redhat.com)
9188
9189 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9190
9191 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9192
9193 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9194
9195 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9196
9197 * command.h: Update copyright.
9198 (struct cmd_list_element): Replace definition with opaque
9199 declaration.
9200 (enum cmd_types): Document that it will eventually be moved to
9201 cli/cli-decode.h
9202 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9203 (MALLOCED_REPLACEMENT): Delete macro.
9204 * Makefile.in (cli_decode_h): Add $(command_h).
9205 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9206 * top.c: Include "cli/cli-decode.h".
9207 * completer.c: Include "cli/cli-decode.h".
9208 * maint.c: Include "cli/cli-decode.h".
9209 * cli/cli-decode.h: Include "command.h".
9210 (enum command_class): Delete.
9211 (enum cmd_types): Comment out.
9212 (enum cmd_auto_boolean): Delete.
9213 (enum var_types): Delete.
9214
9215 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9216
9217 * cli/cli-decode.c: Include "gdb_assert.h".
9218 (add_set_or_show_cmd): New static function.
9219 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9220 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9221 all fields, such as func, from the set command.
9222
9223 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9224
9225 * MAINTAINERS (sh-elf): Change warning flag to -w.
9226
9227 2002-03-23 Andrew Cagney <cagney@redhat.com>
9228
9229 * defs.h (error): Add printf format attribute.
9230 * thread-db.c (thread_from_lwp): Fix error format string.
9231 * stack.c (parse_frame_specification): Ditto.
9232 * cli/cli-decode.c (undef_cmd_error): Ditto.
9233 * scm-lang.c (scm_lookup_name): Ditto.
9234 * tracepoint.c (trace_error): Ditto.
9235 * remote-utils.c (usage): Ditto.
9236 * remote.c (compare_sections_command): Ditto.
9237 Fix PR gdb/328.
9238
9239 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9240
9241 * gdbtypes.c (append_composite_type_field): New function.
9242 (init_composite_type): New function.
9243 * gdbtypes.h (append_composite_type_field): Declare.
9244 (init_composite_type): Ditto.
9245
9246 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9247
9248 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9249 function.
9250 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9251 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9252 structure returning convention for SYSV ABI case, but not
9253 for GNU/Linux, FreeBSD, or NetBSD.
9254
9255 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9256
9257 * symtab.h (lookup_block_symbol): Add mangled_name argument
9258 to prototype.
9259
9260 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9261 with new mangled_name argument.
9262 * linespec.c (decode_line_1): Likewise.
9263 * valops (value_of_this): Likewise.
9264 * symtab.c (lookup_transparent_type): Likewise.
9265 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9266 (lookup_symbol): If we are given a mangled name, pass it down
9267 to lookup_symbol_aux.
9268 (lookup_block_symbol): If we are given a mangled name to check
9269 against, only return symbols which match it.
9270
9271 2002-03-22 Christopher Faylor <cgf@redhat.com>
9272
9273 * win32-nat.c (child_create_inferior): Check for proper shell to use
9274 here, in case the user changes it on the fly.
9275 (_initialize_inftarg): Remove shell path considerations.
9276
9277 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9278
9279 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9280 for gdbarch_max_register_raw_size and max_register_virtual_size.
9281 Adjust copyright year.
9282
9283 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9284
9285 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9286 in a function to cover the entire beginning of the function
9287 as well if it does not already.
9288
9289 2002-03-21 Tom Rix <trix@redhat.com>
9290
9291 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9292 (rs6000_ptrace64): Renamed from ptrace64.
9293
9294 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9295
9296 * gdbserver/remote-utils.c (remote_open): Don't call
9297 getprotobyname, we're all using TCP here so just use
9298 IPPROTO_TCP.
9299 * gdbserver/gdbreplay.c (remote_open): Ditto.
9300
9301 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9302
9303 * regcache.c (_initialize_regcache): No need to call
9304 build_regcache() at this time; it gets called whenever
9305 the gdbarch changes.
9306
9307 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9308
9309 * sparc-nat.c: Include sys/param.h where possible.
9310
9311 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9312
9313 Fix PR gdb/422.
9314 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9315 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9316 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9317 complex types.
9318 * stabsread.c (rs6000_builtin_type): Likewise.
9319 (read_sun_floating_type): Likewise.
9320
9321 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9322
9323 * stabsread.c (read_member_functions): Remove skip code for duplicate
9324 constructor/destructor methods. Use standard parsing for these
9325 methods and just do not chain them to the list of methods after
9326 parsing.
9327
9328 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9329
9330 * coffread.c: Remove redundant static declarations. Replace
9331 occurrences of `PTR' with `void *'.
9332 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9333 * top.h (quit_cover): Likewise.
9334 * defs.h (catch_errors): Likewise.
9335
9336 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9337
9338 * defs.h (XMALLOC): Define.
9339 * gdb-events.sh (XMALLOC): Delete macro.
9340 * gdb-events.c, gdb-events.h: Regenerate.
9341 * gdbarch.sh (XMALLOC): Delete macro.
9342 * gdbarch.c: Regenerate.
9343 * serial.c (XMALLOC): Delete macro.
9344 * ui-file.c (XMALLOC): Ditto.
9345 * ser-unix.h (XMALLOC): Ditto.
9346 * sh-tdep.c (XMALLOC): Ditto.
9347 * ui-out.c (XMALLOC): Ditto.
9348 * utils.c (XMALLOC): Ditto.
9349 * i386-tdep.c (XMALLOC): Ditto.
9350 * gdb-events.c (XMALLOC): Ditto.
9351 * d10v-tdep.c (XMALLOC): Ditto.
9352 * cli-out.c (XMALLOC): Ditto.
9353
9354 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9355 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9356 * ui-file.c, ui-out.c: Ditto.
9357
9358 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9359
9360 * command.h (struct cmd_list_element): Add field context.
9361 (set_cmd_context, get_cmd_context): Declare.
9362 * cli/cli-decode.h: Ditto.
9363 * cli/cli-decode.c (get_cmd_context): New function.
9364 (set_cmd_context): New function.
9365 (add_cmd): Initialize context.
9366 Part of fixing PR gdb/145 and PR gdb/146.
9367
9368 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9369
9370 * cli/cli-decode.c (cmd_type): New function.
9371 * command.h (cmd_type): Declare.
9372 * infrun.c (set_schedlock_func): Call function cmd_type.
9373 * kod.c (kod_set_os): Call cmd_type.
9374 * cris-tdep.c (cris_version_update): Use function cmd_type.
9375 (cris_mode_update, cris_abi_update): Ditto.
9376
9377 * command.h: (execute_cmd_post_hook): Declare.
9378 (execute_cmd_pre_hook): Declare.
9379 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9380 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9381 functions. Execute pre/post hook while ensuring that afterwords
9382 hook_in is cleared.
9383 * top.c (execute_command): Use execute_cmd_post_hook, and
9384 execute_cmd_pre_hook to execute pre/post commands.
9385 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9386 hook_stop_stub.
9387 (hook_stop_stub): Call execute_cmd_pre_hook.
9388
9389 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9390
9391 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9392 set'' and this leads to a core dump. Move xstrdup of
9393 operating_system to after check that it is not NULL.
9394
9395 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9396
9397 * kod.c (kod_set_os): Remove unnecessary check that
9398 ``command->type'' is set_cmd.
9399
9400 * valprint.c (set_input_radix): Use input_radix.
9401 (set_output_radix): Use output_radix.
9402 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9403 isn't reverted.
9404
9405 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9406
9407 * value.h (struct value): Delete field ``substring_addr''. Change
9408 aligner fields to force_doublest_align, force_longest_align,
9409 force_core_addr_align and force_pointer_aligh.
9410
9411 * value.h (struct value): Fix typo in above change.
9412
9413 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9414
9415 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9416 to fix internal_error from ``maintenance print architecture''.
9417
9418 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9419
9420 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9421 for gcc versions after gcc-2.8.1.
9422
9423 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9424
9425 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9426 for method resolution. Restore adjustment of ``this'' pointer after
9427 calling value_struct_elt, which was accidentally removed during the
9428 HP merge.
9429
9430 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9431
9432 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9433 value_of_register.
9434 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9435 get_saved_register.
9436 * value.h (value_of_register): Update.
9437
9438 2002-03-14 Richard Henderson <rth@redhat.com>
9439
9440 * configure.in: Detect declaration for canonicalize_file_name.
9441 * utils.c (canonicalize_file_name): Declare, if needed.
9442 (gdb_realpath): Prefer realpath if available and usable.
9443 * config.in, configure: Rebuild.
9444
9445 2002-03-14 Richard Henderson <rth@redhat.com>
9446
9447 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9448 a constant array bound.
9449
9450 * MAINTAINERS: Add myself to write-after-approval.
9451
9452 2002-03-14 Michael Snyder <msnyder@redhat.com>
9453
9454 * symfile.c (syms_from_objfile): Return immediately if no syms.
9455 (symbol_file_add): Return immediately if no syms.
9456 (find_sym_fns): Return immediately if no syms.
9457
9458 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9459
9460 * gdbserver/remote-util.c (remote_open): Print remote-side's
9461 IP address when remote debugging over the network.
9462
9463 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9464
9465 * config/sparc/fbsd.mh: Fix copyright.
9466 * config/sparc/fbsd.mt: Likewise.
9467
9468 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9469
9470 * MAINTAINERS: Fix typo in name of gdb warnings option.
9471 (x86-64): Fix formating so that this can be parsed by awk.
9472
9473 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9474
9475 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9476 * defs.h: Include "gdb/signals.h".
9477 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9478
9479 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9480
9481 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9482 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9483 from x86-64-tdep.h
9484
9485 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9486 Don Howard <dhoward@redhat.com>
9487
9488 * mips-tdep.c (ST0_FR): Define.
9489 (mips2_fp_compat): New function, temporarily disabled.
9490 (mips_read_fp_register_single): New function.
9491 (mips_read_fp_register_double): New function.
9492 (mips_print_register): Use them.
9493 (do_fp_register_row): Likewise.
9494
9495 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9496
9497 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9498 approval''.
9499
9500 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9501
9502 * stabsread.c (read_member_functions): Fix is_stub test for
9503 static member functions, improve comment.
9504
9505 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9508 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9509 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9510 commands that set boolean values.
9511 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9512 (arm_rdi_resume): Always initialize PC.
9513 (arm_rdi_open): Don't use rslt as a boolean.
9514 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9515 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9516 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9517 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9518
9519 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9520
9521 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9522 * configure: Rebuilt.
9523
9524 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9525
9526 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9527 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9528
9529 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9530
9531 * cli/cli-decode.c (set_cmd_completer): New function.
9532 * command.h (set_cmd_completer): Declare.
9533 * cli/cli-decode.h (set_cmd_completer): Ditto.
9534
9535 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9536 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9537 * win32-nat.c (_initialize_inftarg): Ditto.
9538 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9539 * proc-api.c (_initialize_proc_api): Ditto.
9540 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9541 * source.c (_initialize_source): Ditto.
9542 * exec.c (_initialize_exec): Ditto.
9543 * solib.c (_initialize_solib): Ditto.
9544 * top.c (init_main): Ditto.
9545 * tracepoint.c (_initialize_tracepoint): Ditto.
9546 * symfile.c (_initialize_symfile): Ditto.
9547 * printcmd.c (_initialize_printcmd): Ditto.
9548 * infcmd.c (_initialize_infcmd): Ditto.
9549 * corefile.c (_initialize_core): Ditto.
9550
9551 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9552
9553 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9554
9555 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9556
9557 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9558
9559 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9560
9561 * NEWS: Update headings, 5.2 has branched.
9562
9563 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9564
9565 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9566 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9567 (register_addr, REGISTER_RAW_SIZE): Likewise.
9568 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9569 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9570
9571 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9572
9573 * MAINTAINERS (x86-64): Add myself.
9574 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9575 changed value_ptr -> struct value *
9576
9577 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9578
9579 * configure.host (sparc64-*-freebsd): Add.
9580 * configure.tgt: Likewise.
9581 * config/sparc/fbsd.mh: New file.
9582 * config/sparc/fbsd.mt: Likewise.
9583 * config/sparc/nm-fbsd.h: Likewise.
9584 * config/sparc/tm-fbsd.h: Likewise.
9585
9586 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9587
9588 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9589 regformats/reg-s390x.dat.
9590
9591 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9592
9593 * utils.c: Add FIXME explaining true/false problem.
9594
9595 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9596
9597 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9598
9599 2002-02-28 Michael Chastain <mec@shout.net>
9600
9601 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9602
9603 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9604
9605 * gdbserver/linux-s390-low.c: New file.
9606 * regformats/reg-s390.dat: New file.
9607 * regformats/reg-s390x.dat: New file.
9608 * gdbserver/configure.srv: Add S/390.
9609 * gdbserver/Makefile.in: Add S/390.
9610 * configure.tgt: Enable gdbserver for S/390.
9611
9612 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9613
9614 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9615 first line of the doc string for "info dos", except at the end of
9616 the sentence, since the short help stops at the first period.
9617
9618 2002-02-28 Jason Merrill <jason@redhat.com>
9619
9620 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9621
9622 2002-02-27 Fred Fish <fnf@redhat.com>
9623
9624 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9625 comment (dumy -> dummy).
9626
9627 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9628
9629 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9630
9631 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9632
9633 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9634
9635 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9636
9637 * gdbserver/acconfig.h: New file.
9638 * gdbserver/i387-fp.c: New file.
9639 * gdbserver/i387-fp.h: New file.
9640 * gdbserver/linux-x86-64.c: New file.
9641 * regformats/reg-x86-64.dat: New file.
9642 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9643 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9644 * gdbserver/configure.in: Add support for regsets.
9645 * gdbserver/config.in: Regenerate.
9646 * gdbserver/configure: Regenerate.
9647 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9648 * gdbserver/linux-low.h: New file.
9649 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9650 for regsets.
9651 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9652 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9653 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9654 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9655 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9656 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9657 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9658 "i387-fp.h". Add PTRACE_GETREGS and friends.
9659 * gdbserver/regcache.c (supply_register): New function.
9660 (supply_register_by_name): New function.
9661 (collect_register): New function.
9662 (collect_register_by_name): New function.
9663
9664 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9665
9666 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9667 (config.status): Add configure.srv dependency.
9668 (server_h): Add config.h dependency.
9669
9670 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9671
9672 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9673 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9674 * gdbserver/configure.srv: Change i386-*-linux* to use
9675 reg-i386-linux.o.
9676
9677 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9678
9679 * x86-64-tdep.c: Re-indent. Update copyright date.
9680
9681 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9682
9683 From Michal Ludvig <mludvig@suse.cz>:
9684 * x86-64-tdep.c (value.h): Delete.
9685 (gdb_assert.h): Include.
9686 (x86_64_register_convert_to_virtual,
9687 x86_64_register_convert_to_raw ): Add check which lets only
9688 floating-point values to be converted.
9689 (value_push): Delete.
9690 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9691 (i386_gdbarch_init): Number of register_bytes fixed.
9692
9693 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9694
9695 * MAINTAINERS: Add x86-64 target.
9696
9697 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9698
9699 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9700 * osfsolib.c (solib_map_sections): Ditto.
9701 * irix5-nat.c (solib_map_sections): Ditto.
9702 * corelow.c (gdb_check_format): Ditto.
9703 * symfile.c (symfile_bfd_open): Ditto.
9704 * solib.c (solib_map_sections): Ditto.
9705 Fix PR gdb/354.
9706
9707 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9708
9709 * remote.c (_initialize_remote): By default, disable ``e'' and
9710 ``E'' step out-of-range packets.
9711
9712 2002-02-26 Andreas Schwab <schwab@suse.de>
9713
9714 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9715 m68k_linux_frame_saved_pc.
9716 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9717 in_sigtramp.
9718 (SIGCONTEXT_PC_OFFSET): Remove.
9719 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9720 m68k_linux_sigtramp_saved_pc): New functions.
9721 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9722 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9723 (UCONTEXT_PC_OFFSET): Define.
9724 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9725 non-RT and RT signal trampolines.
9726
9727 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9728
9729 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9730 (TARGET_NBPG, STACK_END_ADDR): Delete
9731 (VARIABLES_INSIDE_BLOCK): Delete.
9732
9733 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9734
9735 * utils.c (perror_with_name): Make string parameter constant.
9736 (print_sys_errmsg): Ditto.
9737 (query): Ditto.
9738 * defs.h (perror_with_name): Update.
9739 (print_sys_errmsg): Update.
9740 (query): Update.
9741
9742 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9743
9744 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9745 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9746
9747 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9748
9749 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9750 if it already matches the current architecture from the exec file.
9751 Include arch-utils.h for gdbarch_info_init prototype.
9752 * Makefile.in (rs6000-nat.o): Update dependencies.
9753
9754 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9755
9756 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9757 list of exported variables.
9758
9759 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * gdbserver/configure.srv: New file.
9762 * gdbserver/configure.in: Use configure.srv instead
9763 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9764 from it.
9765 * gdbserver/configure: Regenerated.
9766 * gdbserver/terminal.h: New file.
9767 * gdbserver/Makefile.in: Update for configure changes. Remove
9768 more unneeded include paths.
9769
9770 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9771
9772 From wiz at danbala:
9773 * config/sparc/tm-sp64.h: Fix grammar and typos.
9774 Fix PR gdb/287.
9775
9776 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9777
9778 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9779 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9780 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9781 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9782 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9783 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9784 * s390-tdep.c: Ditto.
9785 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9786 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9787 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9788 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9789 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9790 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9791 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9792 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9793 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9794 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9795 Fix PR gdb/378.
9796
9797 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9798
9799 * lin-thread.c: Delete file.
9800 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9801 to gdb_proc_service.h.
9802 * configure: Re-generate.
9803
9804 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9805 * serial.c (serial_open): Delete check for "ocd".
9806 Fix PR gdb/349.
9807
9808 * Makefile.in (linux-thread.o): Delete target.
9809 * linux-thread.c: Delete file.
9810
9811 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9812 renamed SH files to be consistent.
9813
9814 * symtab.c (sort_search_symbols): Use xfree.
9815
9816 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9817
9818 * arm-linux-tdep.c (arm_linux_init_abi): Register
9819 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9820 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9821 definition with undef, since we don't want the sysvr4 definition.
9822 (SKIP_TRAMPOLINE_CODE): Likewise.
9823
9824 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9825
9826 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9827
9828 * configure.in: (AC_CHECK_FUNCS) Added test for
9829 canonicalize_file_name Regenerated.
9830 * config.in, configure: Regenerated.
9831 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9832 defined use canonicalize_file_name.
9833
9834 2002-02-23 Michael Chastain <mec@shout.net>
9835
9836 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9837
9838 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9839
9840 * README: Remove references to cygnus.com.
9841 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9842 dot com'' form. Remove references to cygnus.com and sourceware.
9843
9844 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9845
9846 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9847 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9848 1003.1-2001 no longer allows "head -1".
9849 * gdb/Makefile.in (version.c): Likewise.
9850 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9851 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9852 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9853
9854 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9855
9856 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9857 * command.h (cmd_cfunc_eq): Declare.
9858 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9859
9860 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9861 ``struct cmd_list_element *''.
9862 * cli/cli-cmds.c (is_complete_command): Update. Use
9863 cmd_cfunc_eq.
9864 * top.c (execute_command): Pass the command to
9865 is_complete_command.
9866 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9867
9868 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9869
9870 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9871 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9872 architecture defines.
9873 * s390-tdep.c (s390_gdbarch_init): Likewise.
9874
9875 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9876
9877 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9878 (arm_linux_push_arguments): Likewise.
9879 (arm_linux_init_abi): Register them. Also register linux-specific
9880 call_dummy_words.
9881 (find_minsym_and_objfile): Use strcmp, not STREQ.
9882 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9883 (arm_linux_call_dummy_words): Delete declaration.
9884 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9885 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9886 declarations.
9887 (LOWEST_PC): Delete.
9888
9889 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9890
9891 * maint.c (print_section_info): Do not prepend `0x' to filepos
9892 output, it will be handled by local_hex_string_custom.
9893
9894 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9895
9896 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9897 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9898 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9899
9900 2002-02-22 Jim Blandy <jimb@redhat.com>
9901
9902 Indicate that the bcache functions don't change the strings
9903 they're passed.
9904 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9905 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9906
9907 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9908
9909 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9910
9911 2002-02-21 Christopher Faylor <cgf@redhat.com>
9912
9913 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9914 find the complete path to a loaded DLL.
9915
9916 2002-02-21 Fred Fish <fnf@redhat.com>
9917
9918 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9919 that marks the end of the range of a function, enter a line number
9920 entry that has a line number of zero and a PC offset that matches
9921 the end of the function. This starts a range of PC's for which no
9922 line number information is known.
9923 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9924 PC's for which no line number info is found (line number is zero)
9925 then we didn't find any valid line information.
9926 * symtab.h: Document use of zero line number entry.
9927
9928 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9929
9930 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9931 (have_ptrace_getvrregs): Define for run time checks.
9932 (gdb_vrregset_t): New type for Altivec register handling.
9933 (fetch_register, store_register): Fetch/store altivec register
9934 when needed.
9935 (fetch_altivec_register, store_altivec_register): New functions.
9936 (supply_vrregset, fill_vrregset): New functions.
9937 (fetch_altivec_registers, store_altivec_registers): New functions.
9938 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9939 registers as well.
9940
9941 2002-02-21 Jiri Smid <smid@suse.cz>
9942
9943 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9944
9945 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9946
9947 * Makefile.in (armnbsd-nat.o): Update dependencies.
9948 * armnbsd-nat.c (supply_gregset): New function. Common code to
9949 supply the integer register set.
9950 (supply_fparegset): New function. Similar for FPA registers.
9951 (fetch_regs, fetch_fp_regs): Use them.
9952 (fetch_core_registers): Likewise.
9953 (fetch_elfcore_registers): New function.
9954 (arm_netbsd_elfcore_fns): New core-file type specification.
9955 (_initialize_arm_netbsd_nat): Register it.
9956
9957 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9958
9959 * armnbsd-nat.c: Include gdbcore.h.
9960 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9961 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9962 'void' to declaration, to shut up ARI.
9963 (fetch_core_registers): Make static. Rewrite using supply_register.
9964 (arm_netbsd_core_fns): New core-file type specification.
9965 (_initialize_arm_netbsd_nat): New function.
9966
9967 2002-02-21 Christopher Faylor <cgf@redhat.com>
9968
9969 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9970 value.
9971
9972 2002-02-20 Christopher Faylor <cgf@redhat.com>
9973
9974 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9975 fails.
9976
9977 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9978
9979 * jv-exp.y (parse_number): Change type of implicit longs
9980 to builtin_type_uint64.
9981
9982 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9985 to be an integer instead of a `union wait'.
9986
9987 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * mips-linux-nat.c: Call the operating system GNU/Linux.
9990 * mips-linux-tdep.c: Likewise.
9991 * mips-tdep.c: Likewise.
9992
9993 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9994
9995 Fix PR gdb/265.
9996 * jv-exp.y (parse_number): Handle 64-bit integers.
9997
9998 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9999
10000 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10001 AC_STDC_HEADERS to AC_HEADER_STDC.
10002 * gdbserver/configure: Regenerated.
10003
10004 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10005
10006 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10007 is defined.
10008 * sparc-tdep.c (get_longjmp_target): Likewise.
10009
10010 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10011
10012 * News: Add news about ARM and Multi-arch. Mention the new target
10013 arm*-*-netbsd*.
10014
10015 2002-02-19 Jim Blandy <jimb@redhat.com>
10016
10017 * stabsread.c (error_type_complaint): Improve error message.
10018
10019 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10020
10021 * gdbserver/README: Update documentation.
10022 * gdbserver/configure.in: Update configury to match documentation.
10023 * gdbserver/Makefile.in: Likewise.
10024 * gdbserver/configure: Regenerated.
10025 * gdbserver/aclocal.m4: New file, generated by aclocal.
10026 * gdbserver/config.in: New file, generated by autoheader.
10027
10028 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10029
10030 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10031 armnbsd-nat.c.
10032
10033 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10034
10035 * arm-tdep.h (enum arm_float_model): New enum.
10036 (struct gdbarch_tdep): Add fp_model.
10037 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10038 up floating-point conversions until we know the floating-point model
10039 in use by the inferior. Don't complain about being unable to
10040 determine the ABI of the inferior when we don't have one.
10041 (arm_extract_return_value): Support different floating-point models.
10042 (arm_store_return_value): Likewise.
10043 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10044 ARM_FLOAT_SOFT.
10045 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10046
10047 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10048
10049 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10050 of ``current_gdbarch''.
10051
10052 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10053
10054 * armnbsd-nat.c : ANSIfy all function declarations.
10055 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10056 (fetch_inferior_registers): Re-implement in terms of above.
10057 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10058 (store_inferior_registers): Re-implement in terms of above.
10059
10060 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10061
10062 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10063 kernel.
10064 * arm-linux-tdep.c: Likewise.
10065 * config/arm/tm-linux.h: Likewise.
10066
10067 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10068
10069 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10070 * config/arm/nbsd.mt (TM_FILE): Delete.
10071 * config/arm/tm-nbsd.h: Delete.
10072
10073 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10074
10075 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10076 Initialize CALL_DUMMY_LENGTH.
10077
10078 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10079
10080 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10081 function.
10082 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10083 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10084 defines one thing and that is incorrect for this port.
10085 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10086
10087 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10088
10089 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10090
10091 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10092
10093 * win32-nat.c (display_selector): New function. Displays information
10094 about the information returned by GetThreadSelectorEntry API function.
10095 (display_selectors): New function. Displays the infomation of
10096 the selector given as argument, or of CS, DS ans FS selectors
10097 if no argument is given.
10098 ( _initialize_inftarg): Add "w32" as info prefix command.
10099 Add "info w32 selector" as command calling display_selectors.
10100
10101 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10102
10103 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10104 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10105 if not defined.
10106
10107 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10108
10109 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10110
10111 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10112
10113 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10114 (arm_fix_call_dummy): Call it.
10115 (arm_call_dummy_breakpoint_offset): Delete.
10116 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10117 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10118
10119 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10120
10121 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10122 Default to func_frame_chain_valid.
10123 * gdbarch.h, gdbarch.c: Re-generate.
10124 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10125
10126 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10127
10128 * ppc-linux-nat.c: Update copyright.
10129 (fetch_register, store_register): Add tid parameter, don't compute
10130 tid here.
10131 (fetch_ppc_registers, store_ppc_registers): Add tid
10132 parameter. Pass it along to callees.
10133 (fetch_inferior_registers, store_inferior_registers): Compute tid
10134 here, and pass it to calleed functions.
10135 (fill_gregset, supply_fpregset): Clean up formatting.
10136
10137 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10138
10139 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10140 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10141
10142 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10143
10144 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10145 * gdbarch.c gdbarch.h: Regenerate.
10146 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10147 function.
10148 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10149 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10150 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10151
10152 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10153 * arm-tdep.c (arm_get_longjmp_target): New function.
10154 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10155 this to a positive value register arm_get_longjmp_target as the
10156 longjmp handler.
10157 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10158 (arm_linux_init_abi): Set up longjmp description in tdep.
10159 * armnbsd-nat.c (get_longjmp_target): Delete.
10160 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10161 description in tdep.
10162 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10163 (get_longjmp_target): Delete declaration.
10164 (GET_LONGJMP_TARGET): Delete.
10165 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10166 (GET_LONGJMP_TARGET): Delete.
10167
10168 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10169
10170 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10171 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10172 of ``current_gdbarch''.
10173
10174 2002-02-17 Tom Tromey <tromey@redhat.com>
10175
10176 * cli/cli-cmds.c (compare_strings): New function.
10177 (complete_command): Only print each unique item once.
10178 * completer.h (complete_line): Declare.
10179 * completer.c (complete_line): New function.
10180 (line_completion_function): Use it.
10181
10182 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10183
10184 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10185 * gdbarch.h, gdbarch.c: Re-generate.
10186
10187 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10188
10189 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10190
10191 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10192
10193 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10194 * valops.c (value_arg_coerce): Don't take the address of a reference
10195 to convert an argument to a reference.
10196
10197 2002-02-15 Christopher Faylor <cgf@redhat.com>
10198
10199 * win32-nat.c (get_image_name): New function.
10200 (handle_load_dll): Use get_image_name function.
10201 (get_child_debug_event): Avoid registering debug events until possibly
10202 execed process is started.
10203 (child_create_inferior): Allow invocation via shell so that command
10204 line redirection, etc. works ok.
10205 (_initialize_inftarg): Add new command: "set shell" to control whether
10206 a shell is used to start a process.
10207
10208 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10209
10210 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10211 instead of find_register_by_number.
10212 (cannot_store_register): Likewise.
10213
10214 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10215
10216 * dwarf2read.c: Replace fprintf (stderr, ...) by
10217 fprintf_unfiltered (gdb_stderr, ...).
10218
10219 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10220
10221 * gdbserver/gdbserver.1: Document --attach.
10222
10223 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10224
10225 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10226 descriptions.
10227 * arm-tdep.c (arm_default_arm_le_breakpoint)
10228 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10229 (arm_default_thumb_be_breakpoint): New. Initialize them from
10230 traditional breakpoint defines.
10231 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10232 (arm_gdbarch_init): Initialize new breakpoint variables.
10233 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10234 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10235 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10236 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10237 code out to ...
10238 (arm_netbsd_init_abi_common): ... here; new function.
10239 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10240 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10241 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10242 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10243
10244 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10245
10246 * arm-tdep.h (enum arm_abi): New enum.
10247 (struct gdbarch_tdep): New structure.
10248 (LOWEST_PC): Provide a default.
10249 (arm_gdbarch_register_os_abi): Declare new function.
10250 * arm-tdep.c (arm_abi_names): New array.
10251 (process_note_abi_tag_sections): New function.
10252 (get_elfosabi): New function.
10253 (arm_gdbarch_register_os_abi): New function.
10254 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10255 support for that ABI has been built in, then call the appropriate
10256 configuration routine. Use gdbarch_num_regs() to get the number
10257 of registers.
10258 (arm_dump_tdep): New function.
10259 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10260 place-holder functions.
10261 (_initialize_arm_tdep): Register them.
10262 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10263
10264 * armnbsd-tdep.c: New file.
10265 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10266 * config/arm/nbsd.mt (TDEPFILES): Add it.
10267 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10268
10269 * armnbsd-nat.c: Include regcache.h.
10270 * Makefile.in (armnbsd-nat.o): Update dependency list.
10271
10272 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10273
10274 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * gdbserver/Makefile.in: Fix typos in target rules.
10277
10278 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10279
10280 Fix part of PR gdb/267.
10281 * linespec.c (find_methods): Handle constructors specially for now.
10282
10283 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10284
10285 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10286 handling.
10287 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10288 standard_coerce_float_to_double().
10289
10290 2002-02-14 Christopher Faylor <cgf@redhat.com>
10291
10292 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10293 GDBINIT_FILENAME.
10294
10295 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10296
10297 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10298 find_variant_by_name, because it confuses the multiarch
10299 framework. Return NULL if there isn't an architecture with the
10300 user supplied name, instead of forcing a different one without
10301 recording the change with the multiarch machinery.
10302 (find_variant_by_name): Delete.
10303
10304 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10305
10306 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10307 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10308
10309 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10310
10311 * stack.c (print_frame_info_base): When calling
10312 print_frame_info_listing_hook, set current_source_symtab.
10313
10314 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10315
10316 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10317 and remove unused $(INCLUDE_DIR).
10318 Add regcache.c to OBS.
10319 Add generated register protocol files to clean target.
10320 Update dependencies for new objects, obsolete old target code.
10321
10322 * gdbserver/linux-low.c: Remove all platform-specific code to
10323 new files. Remove various dead code. Update to use regcache
10324 functionality.
10325 * gdbserver/remote-utils.c (fromhex): Add return statement
10326 to quiet warning.
10327 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10328 constant.
10329 (input_interrupt): Add integer parameter to match prototype
10330 of a signal handler.
10331 (outreg): Use register_data ().
10332 (prepare_resume_reply): Use gdbserver_expedite_regs.
10333 * gdbserver/server.c (main): Dynamically allocate own_buf because
10334 PBUFSIZ is no longer constant. Use registers_to_string () and
10335 registers_from_string ().
10336 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10337 for error (), fatal (), and warning (). Update definition of
10338 PBUFSIZ to use regcache functionality. Add include guard.
10339 * gdbserver/utils.c (fatal): Add missing ``const''.
10340 (warning): New function.
10341
10342 * regformats/regdat.sh: Include "regcache.h" in generated files.
10343 Provide init_registers () function.
10344 * regformats/regdef.h: Add prototype for set_register_cache ().
10345 Add include guard.
10346
10347 * gdbserver/linux-arm-low.c: New file.
10348 * gdbserver/linux-i386-low.c: New file.
10349 * gdbserver/linux-ia64-low.c: New file.
10350 * gdbserver/linux-m68k-low.c: New file.
10351 * gdbserver/linux-mips-low.c: New file.
10352 * gdbserver/linux-ppc-low.c: New file.
10353 * gdbserver/linux-sh-low.c: New file.
10354
10355 * gdbserver/regcache.c: New file.
10356 * gdbserver/regcache.h: New file.
10357
10358 * gdbserver/low-linux.c: Removed obsolete file.
10359
10360 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10361
10362 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10363 * config/i386/linux.mt: Likewise.
10364 * config/ia64/linux.mt: Likewise.
10365 * config/m68k/linux.mh: Likewise.
10366 * config/powerpc/linux.mh: Likewise.
10367 * config/mips/linux.mt: Likewise.
10368
10369 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10370
10371 * config/i386/i386lynx.mh: Mark gdbserver variables
10372 as (currently) obsolete for this target.
10373 * config/i386/nbsd.mt: Likewise.
10374 * config/i386/nbsdelf.mt: Likewise.
10375 * config/m32r/m32r.mt: Likewise.
10376 * config/m68k/m68klynx.mh: Likewise.
10377 * config/m68k/nbsd.mt: Likewise.
10378 * config/m68k/sun3os4.mh: Likewise.
10379 * config/mips/vr5000.mt: Likewise.
10380 * config/ns32k/nbsd.mt: Likewise.
10381 * config/pa/hppabsd.mh: Likewise.
10382 * config/pa/hppaosf.mh: Likewise.
10383 * config/powerpc/nbsd.mt: Likewise.
10384 * config/rs6000/rs6000lynx.mh: Likewise.
10385 * config/s390/s390.mt: Likewise.
10386 * config/s390/s390x.mt: Likewise.
10387 * config/sparc/sparclynx.mh: Likewise.
10388 * config/sparc/sun4os4.mh: Likewise.
10389 * config/i386/x86-64linux.mt: Likewise.
10390 * config/sparc/linux.mh: Likewise.
10391
10392 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10393
10394 * configure.tgt: Configure gdbserver only for known working
10395 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10396 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10397 SUBDIRS if it is configured. Update comment for ${nativefile}.
10398 * configure: Regenerated.
10399
10400 2002-02-13 Michael Snyder <msnyder@redhat.com>
10401
10402 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10403
10404 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10405 (default_gcore_mach): Just return 0, work around a problem in bfd.
10406 (default_gcore_target): OK to return NULL if exec_bfd is null.
10407 (make_mem_sec): Use a cast, avoid a warning.
10408
10409 * procfs.c (find_memory_regions_callback): Use a cast instead of
10410 calling host_pointer_to_address (which complains if
10411 sizeof (host pointer) != sizeof (target pointer)).
10412 (procfs_make_note_section): Avoid overflow in psargs string.
10413
10414 * procfs.c (procfs_make_note_section): Make the default
10415 implementation return an error.
10416
10417 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10418
10419 * procfs.c (procfs_make_note_section): Provide a default definition
10420 (for alpha-dec-osf4.0f). Fix typos.
10421
10422 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10423
10424 * linux-proc.c: Add include of regcache.h.
10425 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10426
10427 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10428
10429 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10430 * memattr.c (create_mem_region): Disallow useless empty region.
10431 Regions are half-open intervals, so allow [A..B) [B..C) as
10432 non-overlapping.
10433
10434 2002-02-13 Michael Chastain <mec@shout.net>
10435
10436 * defs.h: Kill CONST_PTR.
10437 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10438 * c-lang.c (c_builtin_types): Likewise.
10439 * ch-lang.c (ch_builtin_types): Likewise.
10440 * f-lang.c (f_builtin_types): Likewise.
10441 * language.c (unknown_builtin_types): Likewise.
10442 * m2-lang.c (m2_builtin_types): Likewise.
10443 * p-lang.c (pascal_builtin_types): Likewise.
10444 * scm-lang.c (c_builtin_types): Likewise.
10445
10446 2002-02-13 Keith Seitz <keiths@redhat.com>
10447
10448 * arm-tdep.h (arm_get_next_pc): Add declaration.
10449
10450 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10451
10452 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10453 with other related struct-returning functions.
10454 (arm_extract_struct_value_address): New function.
10455 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10456 initialize float_format, double_format and long_double_format as
10457 appropriate to the endianness of the target.
10458 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10459 (arm_use_struct_convention): Delete declaration.
10460 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10461
10462 2002-02-13 Keith Seitz <keiths@redhat.com>
10463
10464 * defs.h (core_addr_to_string_nz): New function.
10465
10466 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10467
10468 Apply missing bits of 2002-01-15 patch.
10469 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10470 (fill_fpregset): Use i387_fill_fsave.
10471
10472 2002-02-12 Keith Seitz <keiths@redhat.com>
10473
10474 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10475 (core_addr_to_string_nz): New function.
10476
10477 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10478
10479 * arm-linux-nat.c: Really include arm-tdep.h.
10480 * config/arm/tm-linux.h (struct type, struct value): Declare.
10481
10482 2002-02-11 Michael Snyder <msnyder@redhat.com>
10483
10484 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10485 (gcore section): Ifdef for Solaris and Unixware only.
10486 (procfs_do_thread_registers): Unixware needs one lwpstatus
10487 per thread (not one prstatus or pstatus).
10488 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10489 not over all gdb threads. For unixware, call elfcore_write_pstatus
10490 once before iterating over threads.
10491
10492 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10493
10494 * arm-tdep.h: New file.
10495 * arm-tdep.c: Include arm-tdep.h.
10496 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10497 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10498 (arm_print_float_info, arm_register_type, convert_to_extended)
10499 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10500 (arm_extract_return_value, arm_register_name): Make static.
10501 (arm_software_single_step): Similarly. Fix types in declaration.
10502 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10503 (arm_store_return_value, arm_store_struct_return): New functions.
10504 (arm_gdbarch_init): Register the above functions. Also register
10505 call_dummy_start_offset, sizeof_call_dummy_words,
10506 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10507 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10508 max_register_virtual_size, register_size. Set up
10509 prologue_cache.saved_regs here, rather than ...
10510 (_initialize_arm_tdep): ... here.
10511 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10512 declarations.
10513 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10514 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10515 (arm_print_float_info, arm_register_type, convert_to_extended)
10516 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10517 (arm_extract_return_value, arm_register_name): Delete declarations.
10518 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10519 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10520 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10521 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10522 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10523 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10524 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10525 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10526 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10527 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10528 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10529 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10530 interface.
10531 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10532 * remote-rdi.c remote-rdp.c: Likewise.
10533 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10534 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10535 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10536 definition.
10537
10538 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10539 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10540 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10541 from non-ARM_ prefixed definitions.
10542 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10543 all uses of above.
10544 * remote-rdi.c remote-rdp.c: Likewise.
10545 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10546
10547 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10548
10549 * arm-tdep.c (arm_frameless_function_invocation)
10550 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10551 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10552 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10553 (arm_pop_frame, arm_get_next_pc): Make static.
10554 (arm_gdbarch_init): Register above in gdbarch structure.
10555 (arm_read_fp): Renamed from arm_target_read_fp.
10556 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10557 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10558 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10559 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10560 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10561 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10562 (arm_pc_is_thumb_dummy): Delete declarations.
10563 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10564 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10565 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10566 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10567
10568 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10569
10570 * symtab.c (compare_search_syms): New function.
10571 (sort_search_symbols): New function.
10572 (search_symbols): Sort symbols after searching rather than
10573 before.
10574
10575 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10576
10577 * NEWS: Linux -> GNU/Linux.
10578
10579 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10580
10581 * gdbarch.sh: For for level one methods, disallow a definition
10582 when partially multi-arched. Add comments explaining rationale.
10583 * gdbarch.h: Re-generate.
10584
10585 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10586
10587 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10588 multi-arch partial.
10589
10590 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10591
10592 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10593 field. Use diff -u.
10594 * gdbarch.c: Re-generate.
10595
10596 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10597
10598 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10599 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10600 partial.
10601
10602 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10603
10604 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10605 multi-arch partial.
10606 (PUSH_ARGUMENTS): Switch to using predefault.
10607 * gdbarch.c: Regenerate.
10608
10609 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10610
10611 * valops.c (PUSH_ARGUMENTS): Delete definition.
10612 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10613 partial. Default to default_push_arguments.
10614 * gdbarch.h, gdbarch.c: Regenerate.
10615
10616 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10617
10618 * defs.h (throw_exception): Rename return_to_top_level. Update
10619 comments.
10620 * utils.c (error_stream, internal_verror, quit): Ditto.
10621 * top.c (throw_exception, catcher): Ditto.
10622 * sparclet-rom.c (sparclet_load): Ditto.
10623 * remote.c (interrupt_query, minitelnet): Ditto.
10624 * remote-sds.c (interrupt_query): Ditto.
10625 * remote-mips.c (mips_error, mips_kill): Ditto.
10626 * ocd.c (interrupt_query): Ditto.
10627 * monitor.c (monitor_interrupt_query): Ditto.
10628 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10629 * target.h: Update comment.
10630
10631 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10632
10633 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10634
10635 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10636 default_double_format.
10637 * gdbarch.h, gdbarch.c: Re-generate.
10638 * findvar.c (floatformat_unknown): Delete variable definition.
10639 * doublest.h (floatformat_unknown): Delete variable declaration.
10640
10641 2002-02-09 Jim Blandy <jimb@redhat.com>
10642
10643 * stabsread.c (read_type): Add code to parse Sun's syntax for
10644 prototyped function types.
10645
10646 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10647
10648 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10649 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10650
10651 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10652
10653 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10654 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10655 now _initialize_xcoffsolib gets called again and overrides the
10656 commands from solib.c in a native configuration.
10657
10658 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10659
10660 * doublest.c (store_typed_floating): Don't try to return a value.
10661 Fixes PR gdb/290.
10662
10663 2002-02-08 Jim Blandy <jimb@redhat.com>
10664
10665 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10666 is prototyped and has no arguments, print its argument list as
10667 `(void)'.
10668
10669 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10670
10671 * MAINTAINERS (write-after-approval): Add myself.
10672 (paper-trail): I've escaped!
10673
10674 2002-02-08 Christopher Faylor <cgf@redhat.com>
10675
10676 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10677 changes.
10678 (_initialize_check_for_gdb_ini): Ditto.
10679
10680 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10681
10682 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10683 xaprintf -> xasprintf.
10684
10685 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10686
10687 * win32-nat.c: Remove use of printf and sprintf functions.
10688
10689 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10690
10691 * arm-tdep.c (arm_frame_chain_valid): Make static.
10692 (arm_push_arguments): Likewise.
10693 (arm_gdbarch_init): New function.
10694 (_initialize_arm_tdep): Call it.
10695 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10696 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10697 (FRAME_CHAIN_VALID): Delete.
10698 (arm_frame_chain_valid): Delete declaration.
10699 (PUSH_ARGUMENTS): Delete.
10700 (arm_push_arguments): Delete declaration.
10701 (CALL_DUMMY_P): Delete.
10702
10703 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10704 Corinna Vinschen <vinschen@redhat.com>
10705
10706 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10707 on builtin float types.
10708
10709 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10710
10711 * utils.c: Include <curses.h> before "bfd.h".
10712 * tui/tui-hooks.c: Likewise.
10713 * tui/tui.c: Likewise.
10714 * tui/tuiCommand.c: Likewise.
10715 * tui/tuiData.c: Likewise.
10716 * tui/tuiDataWin.c: Likewise.
10717 * tui/tuiDisassem.c: Likewise.
10718 * tui/tuiGeneralWin.c: Likewise.
10719 * tui/tuiIO.c: Likewise.
10720 * tui/tuiLayout.c: Likewise.
10721 * tui/tuiRegs.c: Likewise.
10722 * tui/tuiSource.c: Likewise.
10723 * tui/tuiSourceWin.c: Likewise.
10724 * tui/tuiStack.c: Likewise.
10725 * tui/tuiWin.c: Likewise.
10726
10727 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10728
10729 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10730 to include space for pseudoregs as well. Update loops accordingly.
10731 (sh_fp_frame_init_saved_regs): Ditto.
10732 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10733
10734 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10735
10736 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10737 Add Richard Earnshaw to Arm maintainers.
10738
10739 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10740
10741 * defs.h (warning_begin): Delete declaration.
10742
10743 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10744 Delete macro.
10745
10746 2002-02-07 Michael Snyder <msnyder@redhat.com>
10747
10748 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10749 Logic bug, remove misplaced else.
10750
10751 2002-02-07 Klee Dienes <klee@apple.com>
10752
10753 * fork-inferior.c (fork_inferior): Add '!' to the list of
10754 characters that need to be quoted when building a string for the
10755 shell. Quote '!' specifically with a backslash, since CSH chokes
10756 when trying to evaluate "str!str".
10757
10758 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10759
10760 * rdi-share/host.h: Only provide a typedef for bool if it is not
10761 defined.
10762
10763 2002-02-04 Michael Snyder <msnyder@redhat.com>
10764
10765 * breakpoint.h (enum bptype): Add new overlay event bp type.
10766 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10767
10768 * breakpoint.c (create_internal_breakpoint): New function.
10769 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10770 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10771 (create_thread_event_breakpoint): Ditto.
10772 (create_solib_event_breakpoint): Ditto.
10773 (create_overlay_event_breakpoint): New function.
10774 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10775 (update_breakpoints_after_exec): Delete and re-initialize
10776 overlay event breakpoints after an exec. Add FIXME comment
10777 about longjmp breakpoint.
10778 (print_it_typical): Ignore overlay event breakpoints.
10779 (print_one_breakpoint): Ditto.
10780 (mention): Ditto.
10781 (bpstat_what): Do not stop for overlay event breakpoints.
10782 (delete_breakpoint): Don't delete overlay event breakpoints.
10783 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10784 (breakpoint_re_set): Re-create overlay event breakpoint.
10785
10786 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10787 (overlay_manual_command): Disable overlay breakpoints.
10788 (overlay_off_command): Disable overlay breakpoints.
10789
10790 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10791
10792 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10793 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10794 to here from config/tm-arm.h.
10795 (coff_sym_is_thumb): Make static.
10796 (arm_elf_make_msymbol_special): New function.
10797 (arm_coff_make_msymbol_special): New function.
10798 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10799 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10800 (coff_sym_is_thumb): Delete declaration.
10801 (arm_elf_make_msymbol_special): Declare.
10802 (arm_coff_make_msymbol_special): Declare.
10803 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10804 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10805
10806 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10807
10808 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10809
10810 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10811
10812 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10813 * gdbarch.c gdbarch.h: Regenerate.
10814 * arch-utils.c (default_print_float_info): New function.
10815 * arch-utils.h (default_print_float_info): Prototype it.
10816 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10817 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10818 (PRINT_FLOAT_INFO): Document it.
10819
10820 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10821 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10822 (PRINT_FLOAT_INFO): Define.
10823
10824 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10825
10826 * win32-nat.c (_initialize_check_for_gdb_ini):
10827 Add typecast to sprintf argument to suppress a warning.
10828
10829 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10830
10831 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10832 to allow easier handling of pass state.
10833 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10834 that gives exception name and address.
10835 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10836 and set last_sig value to ourstatus->value.sig. Some missing
10837 exceptions added.
10838 (child_continue): Correctly report continue_status.
10839 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10840 TARGET_SIGNAL_0 (new default value).
10841 (child_resume): consider sig argument passed to decide if
10842 the exception should be passed to debuggee or not.
10843
10844 2002-02-05 Michael Snyder <msnyder@redhat.com>
10845
10846 * regcache.c (fetch_register): Call target_fetch_register
10847 only if we don't call FETCH_PSEUDO_REGISTER.
10848 (store_register): Call target_store_register only if we
10849 don't call STORE_PSEUDO_REGISTER.
10850
10851 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10852
10853 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10854 ELF_MAKE_MSYMBOL_SPECIAL.
10855 * gdbarch.c, gdbarch.h: Regenerate.
10856 * arch-utils.c (default_make_msymbol_special): New function.
10857 * arch-utils.h (default_make_msymbol_special): Export.
10858 * elfread.c (elf_symtab_read): Compile use of
10859 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10860 multiarched.
10861 * coffread.c (coff_symtab_read): Ditto, for
10862 COFF_MAKE_MSYMBOL_SPECIAL.
10863
10864 2002-02-05 Jim Blandy <jimb@redhat.com>
10865
10866 * solib-svr4.c (svr4_truncate_ptr): New function.
10867 (svr4_relocate_section_addresses): Do the address arithmetic with
10868 the appropriate truncation for target addresses, even when
10869 CORE_ADDR is larger than a target address.
10870
10871 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10872
10873 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10874 to (int *).
10875
10876 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10877
10878 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10879 code.
10880
10881 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10882
10883 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10884
10885 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10886
10887 * gdbserver/linux-low.c: Remove unused include files.
10888
10889 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10890
10891 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10892 (read_inferior_memory): Use it.
10893 (write_inferior_memory): Likewise.
10894
10895 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10896
10897 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10898 grubbing through sys_errlist.
10899
10900 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10901
10902 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10903
10904 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10905 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10906
10907 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10908
10909 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10910 (do_sfunc, set_cmd_sfunc): New functions.
10911
10912 * command.h (struct cmd_list_element): Add field func.
10913 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10914 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10915 * cli/cli-decode.h: Ditto.
10916
10917 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10918 (help_all, help_cmd_list): Ditto.
10919 (find_cmd, complete_on_cmdlist): Ditto.
10920 * top.c (execute_command): Ditto.
10921
10922 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10923 function.sfunc.
10924
10925 * infcmd.c (notice_args_read): Fix function signature.
10926
10927 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10928 * cli/cli-decode.c (add_set_cmd): Ditto.
10929 * utils.c (initialize_utils): Ditto.
10930 * maint.c (_initialize_maint_cmds): Ditto.
10931 * infrun.c (_initialize_infrun): Ditto.
10932 * demangle.c (_initialize_demangler): Ditto.
10933 * remote.c (add_packet_config_cmd): Ditto.
10934 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10935 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10936 * proc-api.c (_initialize_proc_api): Ditto.
10937 * kod.c (_initialize_kod): Ditto.
10938 * valprint.c (_initialize_valprint): Ditto.
10939 * top.c (init_main): Ditto.
10940 * infcmd.c (_initialize_infcmd): Ditto.
10941 * corefile.c (_initialize_core): Ditto.
10942 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10943 * arch-utils.c (initialize_current_architecture): Ditto.
10944 (_initialize_gdbarch_utils): Ditto.
10945 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10946
10947 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10948 * wince.c (_initialize_inftarg): Ditto.
10949 * symfile.c (_initialize_symfile): Ditto.
10950 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10951 * language.c (_initialize_language): Ditto.
10952 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10953
10954 2002-02-04 Michael Snyder <msnyder@redhat.com>
10955
10956 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10957
10958 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10961 Add rules for building the register data files.
10962
10963 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10964
10965 * regformats/regdat.sh: Add braces to the definition of
10966 expedite_regs_${arch}.
10967
10968 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10969
10970 * regformats/regdef.h (struct reg): Add comment describing the
10971 requirements for offset and size fields.
10972
10973 2002-02-04 Andreas Schwab <schwab@suse.de>
10974
10975 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10976 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10977
10978 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10979
10980 * gdbarch.sh (copyright): Update years in generated header.
10981 (SMASH_TEXT_ADDRESS): Add rule.
10982 * gdbarch.h, gdbarch.c: Re-generate.
10983 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10984 * dbxread.c: Likewise.
10985 * dwarfread.c: Likewise.
10986 * elfread.c: Likewise.
10987 * somread.c: Likewise.
10988
10989 * arm-tdep.c (arm_smash_text_address): New function.
10990 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10991
10992 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10993
10994 Add support for hardware watchpoints on win32 native.
10995 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10996 CONTEXT_DEBUG_REGISTERS.
10997 (dr variable): New variable. Static array containing a local copy
10998 of debug registers.
10999 (debug_registers_changed): New variable. Reflects when debug registers
11000 are changed and need to be written to inferior.
11001 (debug_registers_used): New variable. Reflects when any debug register
11002 was set, used when new threads are created.
11003 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11004 i386-nat code.
11005 (thread_rec): Set dr array if id is the thread of current_event .
11006 (child_continue, child_resume): Change the debug registers for all
11007 threads if debug_registers_changed.
11008 (child_add_thread): Change the debug registers if debug_registers_used.
11009 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11010 Link nm.h to new nm-cygwin.h file.
11011 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11012 of hardware registers.
11013
11014 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11015
11016 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11017 Restore behavour broken by 2002-01-20 Andrew Cagney
11018 <ac131313@redhat.com> IEEE_FLOAT removal.
11019
11020 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11021
11022 * c-valprint.c (c_val_print): Pass a proper valaddr to
11023 cp_print_class_method.
11024 * valops.c (search_struct_method): If there is only one method
11025 and args is NULL, return that method.
11026
11027 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11028
11029 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11030 accessing tag_name directly.
11031
11032 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11035 of accessing tag_name directly.
11036
11037 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11038
11039 PR gdb/280
11040 * gdbtypes.c (replace_type): New function.
11041 * gdbtypes.h (replace_type): Add prototype.
11042 * stabsread.c (read_type): Use replace_type.
11043
11044 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11045
11046 * Makefile.in (memattr.o): Add missing dependencies rule.
11047
11048 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11049
11050 * breakpoint.c (break_at_finish_command): Really export.
11051 (break_at_finish_at_depth_command): Ditto.
11052 (tbreak_at_finish_command): Ditto.
11053 * hppa-tdep.c: Include completer.h.
11054 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11055 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11056
11057 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11058
11059 * utils.c (do_write): New function.
11060 (error_stream): Rewrite combining the code from error_begin and
11061 verror.
11062 (verror): Rewrite using error_stream.
11063 (error_begin): Delete function.
11064
11065 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11066
11067 * utils.c (error_begin): Make static.
11068 * defs.h (error_begin): Delete declaration.
11069
11070 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11071 (decode_line_1): Use cplusplus_error instead of error_begin,
11072 cplusplus_hint and return_to_top_level.
11073 * coffread.c (coff_symfile_read): Use error instead of error_begin
11074 and return_to_top_level.
11075 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11076
11077 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11078
11079 * language.h (type_error, range_error): Make string parameter
11080 constant.
11081 * language.c (warning_pre_print): Delete extern declaration.
11082 * dwarfread.c (warning_pre_print): Ditto.
11083 * language.c (type_error, range_error): Rewrite to use verror and
11084 vwarning instead of warning_begin.
11085
11086 2002-02-01 Michael Snyder <msnyder@redhat.com>
11087
11088 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11089 (set_ignore_count): Move misplaced comment back where it belongs.
11090
11091 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11092
11093 * command.h (NO_FUNCTION): Delete macro.
11094 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11095 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11096 * tracepoint.c (_initialize_tracepoint): Ditto.
11097 * cli/cli-decode.c (add_set_cmd): Ditto.
11098 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11099
11100 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11101
11102 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11103 Update ``this'' pointer when calling virtual functions.
11104
11105 2002-02-01 Michael Snyder <msnyder@redhat.com>
11106
11107 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11108 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11109
11110 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11111
11112 * regformats/reg-arm.dat: New file.
11113 * regformats/reg-i386.dat: New file.
11114 * regformats/reg-ia64.dat: New file.
11115 * regformats/reg-m68k.dat: New file.
11116 * regformats/reg-mips.dat: New file.
11117 * regformats/reg-ppc.dat: New file.
11118 * regformats/reg-sh.dat: New file.
11119 * regformats/regdef.h: New file.
11120 * regformats/regdat.sh: New file.
11121
11122 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11123
11124 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11125 (arm_frame_args_address, arm_frame_locals_address): New functions.
11126 (arm_frame_num_args): New function.
11127 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11128 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11129 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11130
11131 2002-01-31 Michael Snyder <msnyder@redhat.com>
11132
11133 * breakpoint.c (break_at_finish_command): Export.
11134 (break_at_finish_at_depth_command): Export.
11135 (tbreak_at_finish_command): Export.
11136 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11137 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11138 "txbreak" commands, which are HPPA specific.
11139
11140 * printcmd.c (disassemble_command): Remove an ancient
11141 artifact of an old merge.
11142
11143 * symfile.h (enum overlay_debugging_state):
11144 Define enum constant values for overlay mode.
11145 * symfile.c (overlay_debugging): Use enums instead of literals.
11146 (overlay_is_mapped, overlay_auto_command,
11147 overlay_manual_command): Ditto.
11148
11149 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11150 breakpoint_here_p, breakpoint_inserted_here_p,
11151 breakpoint_thread_match, bpstat_stop_status,
11152 describe_other_breakpoints, check_duplicates, clear_command):
11153 Coding standard fixes.
11154
11155 * target.c (target_xfer_memory): Add spaces, coding standard.
11156 (do_xfer_memory): Add missing line to trust-readonly
11157 code: check bfd SEC_READONLY flag for section.
11158
11159 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11160
11161 * PROBLEMS: Fix typo, 5.1->5.1.1.
11162
11163 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11164
11165 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11166 data symbols, since we search based on textlow and texthigh.
11167 (find_pc_sect_symtab): Likewise.
11168
11169 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11170
11171 * defs.h (vwarning): Declare.
11172 * utils.c (vwarning): New function.
11173 (warning): Call vwarning.
11174 (warning_begin): Delete function.
11175
11176 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11177 the warning message.
11178 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11179 warning_begin.
11180
11181 2002-01-30 Michael Snyder <msnyder@redhat.com>
11182
11183 * NEWS: Mention "set trust-readonly-sections" command.
11184 Mention generate-core-file command.
11185
11186 2002-01-15 Michael Snyder <msnyder@redhat.com>
11187
11188 * target.c: New command, "set trust-readonly-sections on".
11189 (do_xfer_memory): Honor the suggestion to trust readonly sections
11190 by reading them from the object file instead of from the target.
11191 (initialize_targets): Register command "set trust-readonly-sections".
11192
11193 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11194
11195 * parse.c (target_map_name_to_register): Simplify, search regs and
11196 pseudo-regs using a single loop.
11197
11198 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11199
11200 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11201
11202 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11203
11204 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11205 * config/i386/i386v42mp.mh: Add i387-nat.o .
11206 * i386v4-nat.c: Include i387-nat.h.
11207 (supply_fpregset): Use i387_supply_fsave.
11208 (fill_fpregset): Use i387_fill_fsave.
11209
11210 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11211
11212 * arm-tdep.c (arm_call_dummy_words): Define.
11213 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11214 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11215 (CALL_DUMMY_WORDS): Define.
11216 (arm_call_dummy_words): Declare.
11217 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11218 (arm_linux_call_dummy_words): Declare.
11219
11220 2002-01-30 Andreas Schwab <schwab@suse.de>
11221
11222 * m68klinux-nat.c: Fix last change to use regcache_collect
11223 instead of referencing registers[] directly.
11224
11225 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11226
11227 * parse.c (target_map_name_to_register): Delete code wrapped in
11228 #ifdef REGISTER_NAME_ALIAS_HOOK.
11229
11230 2002-01-28 Michael Snyder <msnyder@redhat.com>
11231
11232 * regcache.c (legacy_read_register_gen): Need to be able to
11233 read pseudo-register as well as real register.
11234 (legacy_write_register_gen): Ditto.
11235
11236 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11237
11238 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11239 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11240 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11241 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11242 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11243 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11244 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11245 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11246 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11247 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11248 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11249 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11250 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11251 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11252 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11253 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11254 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11255 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11256 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11257 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11258
11259 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11260
11261 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11262 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11263 (initialize_current_architecture): Update target_byte_order using
11264 information from BFD.
11265 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11266 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11267
11268 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11269
11270 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11271 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11272
11273 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11274 #ifdef INVALID_FLOAT.
11275 * infcmd.c (do_registers_info): Ditto.
11276 * values.c (unpack_double): Ditto. Add comment.
11277
11278 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11279 already commented out.
11280
11281 2002-01-26 Andreas Schwab <schwab@suse.de>
11282
11283 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11284 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11285 registers and add support for PTRACE_GETREGS.
11286
11287 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11288
11289 GDB 5.1.1 released from 5.1 branch.
11290 * NEWS: Add 5.1.1 news.
11291 * README: Sync with 5.1 branch.
11292
11293 2002-01-23 Fred Fish <fnf@redhat.com>
11294
11295 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11296 stabstring on initial malloc. Reallocing will copy it for us,
11297 if necessary.
11298
11299 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11300
11301 * Makefile.in (hpread_h): Delete.
11302 (HFILES_NO_SRCDIR): Remove hpread.h.
11303 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11304 (hpread.o): Update dependencies.
11305 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11306
11307 * hp-psymtab-read.c: Remove file.
11308 * hp-symtab-read.c: Remove file.
11309 * hpread.h: Remove file.
11310
11311 * hpread.c: Merge all contents of hp-psymtab-read.c,
11312 hp-symtab-read.c and hpread.h into this file, as it was prior to
11313 January 1999.
11314
11315 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11316 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11317 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11318 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11319
11320 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11321
11322 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11323 fill_gregset): Call gdbarch_tdep() just once, assign result to
11324 variable and use that, instead of calling the function several
11325 times.
11326
11327 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11328
11329 * configure.host: Accept sparcv9 as alias for sparc64.
11330 * configure.tgt: Likewise.
11331
11332 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11333
11334 * solib-aix5.c (build_so_list_from_mapfile)
11335 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11336 arguments is not reversed.
11337 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11338 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11339
11340 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11341
11342 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11343 modified version of obsolete sh_fetch_pseudo_register.
11344 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11345 (sh4_register_read): New function.
11346 (sh_pseudo_register_write): New function. Renamed and modified
11347 version of obsolete sh_store_pseudo_register.
11348 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11349 (sh4_register_write): New function.
11350 (sh_gdbarch_init): Remove setting of gdbarch function
11351 fetch_pseudo_register and store_pseudo_register. Remove setting of
11352 register_convert_to_raw, register_convert_to_virtual,
11353 register_convertible.
11354 (sh_sh4_register_convertible): Delete. No longer needed. All is
11355 taken care by architecture specific functions
11356 register_read/register_write.
11357 (sh_sh4_register_convert_to_virtual): Make static.
11358 (sh_sh4_register_convert_to_raw): Ditto.
11359
11360 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11361
11362 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11363 (floatformat_is_nan, floatformat_mantissa): Ditto.
11364
11365 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11366 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11367 builtin_type_ieee_double_little,
11368 builtin_type_ieee_double_littlebyte_bigword,
11369 builtin_type_m68881_ext, builtin_type_i960_ext,
11370 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11371 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11372 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11373 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11374
11375 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11376
11377 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11378 parameter. Set frameless flag if it exists and depended of
11379 whether the scanned function is frameless or not.
11380 (xstormy16_skip_prologue): If function is frameless, return
11381 result of xstormy16_scan_prologue().
11382 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11383 call.
11384
11385 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11386
11387 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11388 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11389 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11390 sh_sh4_register_byte, sh_sh4_register_raw_size,
11391 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11392 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11393 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11394 sh_store_pseudo_register, sh_do_pseudo_register): Call
11395 gdbarch_tdep() just once, assign result to variable and use that,
11396 instead of calling the function several times.
11397
11398 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11399
11400 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11401 macros instead of LAST_FPU_CTRL_REGNUM.
11402 (store_register): Likewise.
11403
11404 2002-01-21 Jim Blandy <jimb@redhat.com>
11405
11406 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11407 is up-to-date before running the program, not just when a program
11408 exits.
11409
11410 2002-01-21 Fred Fish <fnf@redhat.com>
11411
11412 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11413 when we have found all instructions we are looking for.
11414
11415 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11416
11417 * arm-tdep.c (arm_register_name): New function.
11418 (arm_registers_names): Make static.
11419 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11420 (arm_register_name): Declare.
11421 (REGISTER_NAME): Use it.
11422
11423 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11424 Kevin Buettner <kevinb@redhat.com>
11425
11426 Convert arm targets to new FRAME interface.
11427 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11428 (arm_frame_find_save_regs): Delete.
11429 (arm_frame_init_saved_regs): New.
11430 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11431 Allocate extra_info as required. Convert all uses of fsr.regs
11432 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11433 to use extra_info.
11434 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11435 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11436 (check_prologue_cache, save_prologue_cache): Likewise.
11437 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11438 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11439 (FRAME_FIND_SAVED_REGS): Delete.
11440 (arm_frame_find_saved_regs): Delete prototype.
11441 (arm_frame_init_saved_regs): New prototype.
11442 (FRAME_INIT_SAVED_REGS): Define.
11443
11444 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11445
11446 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11447
11448 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11449
11450 From Jeff Law <law@redhat.com>:
11451 * infttrace.c: Include <sys/pstat.h>.
11452 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11453 exec file if the ttrace equivalent fails.
11454
11455 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11456
11457 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11458 (closeLogFile): Ditto.
11459
11460 2002-01-20 Michael Chastain <mec@shout.net>
11461
11462 * top.c (print_gdb_version): Bump copyright year to 2002.
11463
11464 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11465
11466 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11467 Zannoni and Eli Zaretskii.
11468
11469 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11470
11471 * buildsym.c: Update copyright years.
11472 * c-typeprint.c: Likewise.
11473 * dwarf2read.c: Likewise.
11474 * f-typeprint.c: Likewise.
11475 * gdbtypes.c: Likewise.
11476 * gdbtypes.h: Likewise.
11477 * hp-symtab-read.c: Likewise.
11478 * hpread.c: Likewise.
11479 * mdebugread.c: Likewise.
11480 * p-typeprint.c: Likewise.
11481
11482 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11483
11484 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11485 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11486 byte-order selectable.
11487 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11488 * arch-utils.c: Ditto.
11489 (set_endian): Ditto.
11490 (set_endian_from_file): Ditto.
11491 * gdbserver/low-sim.c (create_inferior): Ditto.
11492 * gdbarch.sh: Ditto.
11493 * gdbarch.h: Re-generate.
11494 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11495 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11496 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11497 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11498 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11499 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11500 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11501 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11502 macro definition.
11503 * config/mips/tm-wince.h: Remove #undef of macro
11504 TARGET_BYTE_ORDER_SELECTABLE.
11505 * config/sh/tm-wince.h: Ditto.
11506
11507 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11508
11509 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11510 member function fields. Add accessor macro
11511 TYPE_FN_FIELD_ARTIFICIAL.
11512 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11513 * c-typeprint.c (c_type_print_base): Skip artificial member
11514 functions.
11515
11516 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11517
11518 * f-typeprint.c: Delete unused function f_type_print_args.
11519 * p-typeprint.c: Delete unused function pascal_type_print_args.
11520
11521 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11522
11523 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11524 comment. Add ``artificial'' to ``union field_location''.
11525
11526 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11527
11528 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11529 * mdebugread.c (parse_symbol): Likewise.
11530 * stabsread.c (define_symbol): Likewise.
11531 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11532 initializing TYPE_FIELD_BITPOS to n (obsolete).
11533 (hpread_doc_function_type): Likewise.
11534 * hpread.c (hpread_function_type): Likewise.
11535
11536 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11537
11538 * configure.in (host_makefile_frag): Only require a host makefile
11539 fragment when a native build.
11540 * configure: Re-generate.
11541
11542 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11543
11544 * doublest.h (floatformat_from_type): Declare.
11545 * doublest.c (floatformat_from_type): New function.
11546 (convert_typed_floating): Use.
11547
11548 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11549 call to function floatformat_from_type.
11550
11551 * gdbarch.sh (IEEE_FLOAT): Delete.
11552 * gdbarch.h, gdbarch.c: Re-generate.
11553 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11554 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11555 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11556 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11557 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11558 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11559 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11560 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11561 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11562 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11563 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11564 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11565
11566 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11567 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11568 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11569 * sh-tdep.c (sh_gdbarch_init): Ditto.
11570 * mips-tdep.c (mips_gdbarch_init): Ditto.
11571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11572 * cris-tdep.c (cris_gdbarch_init): Ditto.
11573
11574 2002-01-20 Jiri Smid <smid@suse.cz>
11575
11576 * configure.host, configure.tgt: Support x86-64.
11577 * NEWS: Note new target x86-64.
11578
11579 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11580 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11581 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11582 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11583 x86-64-linux-nat.o): Fix dependencies.
11584
11585 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11586
11587 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11588 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11589 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11590 * config/sparc/xm-sun4os4.h: Delete file.
11591 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11592
11593 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11594
11595 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11596 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11597 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11598 * config/i386/i386lynx.mh (XM_FILE): Delete.
11599 * config/rs6000/xm-rs6000ly.h: Delete file.
11600 * config/sparc/xm-sparclynx.h: Delete file.
11601 * config/m68k/xm-m68klynx.h: Delete file.
11602 * config/i386/xm-i386lynx.h: Delete file.
11603 * config/xm-lynx.h: Delete file.
11604 * config/djgpp/fnchange.lst: Update.
11605
11606 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11607
11608 * alpha-tdep.c (alpha_register_byte): New function.
11609 (alpha_register_raw_size): Ditto.
11610 (alpha_register_virtual_size): Ditto.
11611 (alpha_skip_prologue_internal): Renamed from
11612 alpha_skip_prologue.
11613 (alpha_skip_prologue): New version that calls
11614 alpha_skip_prologue_internal.
11615 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11616 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11617 second argument from alpha_skip_prologue.
11618 (REGISTER_BYTE): Use alpha_register_byte.
11619 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11620 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11621 (FRAMELESS_FUNCTION_INVOCATION): Use
11622 generic_frameless_function_invocation_not.
11623 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11624 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11625
11626 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11627
11628 * config/mips/xm-news-mips.h: Delete file.
11629 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11630
11631 * config/m88k/xm-m88k.h: Delete file.
11632 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11633 * config/m88k/xm-delta88v4.h: Ditto.
11634 * config/m88k/xm-delta88.h: Ditto.
11635
11636 * config/alpha/xm-fbsd.h: Delete file.
11637 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11638
11639 * config/sparc/xm-sparc.h: Delete file.
11640 * Makefile.in (xm-sun4os4.h): Delete dependency.
11641 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11642 * config/sparc/xm-sun4os4.h: Ditto.
11643 * config/sparc/xm-linux.h: Ditto.
11644
11645 * config/i386/xm-windows.h: Delete file.
11646
11647 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11648
11649 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11650 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11651
11652 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11653
11654 * alpha-tdep.c (alpha_call_dummy_words): New.
11655 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11656 (CALL_DUMMY_P): Define.
11657 (CALL_DUMMY_WORDS): Define.
11658 (SIZEOF_CALL_DUMMY_WORDS): Define.
11659
11660 2002-01-19 Per Bothner <per@bothner.com>
11661
11662 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11663 isn't NULL, which can happen with some gcj-3.x-produced code.
11664
11665 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11666
11667 * alpha-tdep.c (alpha_register_virtual_type): New function.
11668 (alpha_init_frame_pc_first): Ditto.
11669 (alpha_fix_call_dummy): Ditto.
11670 (alpha_store_struct_return): Ditto.
11671 (alpha_extract_struct_value_address): Ditto.
11672 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11673 alpha_register_virtual_type.
11674 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11675 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11676 alpha_extract_struct_value_address.
11677 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11678 (INIT_FRAME_PC): Use init_frame_pc_noop.
11679 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11680
11681 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11682
11683 * i386gnu-nat.c: Include "i386-tdep.h".
11684 (fetch_fpregs): Simplify code dealing with uninitialized floating
11685 point states such that it doesn't require FP7_REGNUM.
11686
11687 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11688
11689 * alpha-tdep.c (frame_extra_info): New.
11690 (alpha_find_saved_regs): Make static. Use
11691 frame->extra_info.
11692 (alpha_frame_init_saved_regs): New function.
11693 (alpha_frame_saved_pc): Use frame->extra_info.
11694 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11695 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11696 (init_extra_frame_info): Rename to...
11697 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11698 (alpha_print_extra_frame_info): New function.
11699 (alpha_frame_locals_address): Ditto.
11700 (alpha_frame_args_address): Ditto.
11701 (alpha_pop_frame): Use frame->extra_info.
11702 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11703 alpha_frame_args_address.
11704 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11705 (alpha_find_saved_regs): Remove prototype.
11706 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11707 (EXTRA_FRAME_INFO): Remove.
11708 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11709 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11710
11711 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11712
11713 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11714 (alpha_cannot_fetch_register): Ditto.
11715 (alpha_cannot_store_register): Ditto.
11716 (alpha_register_convertible): Ditto.
11717 (alpha_use_struct_convention): Ditto.
11718 * config/alpha/tm-alpha.h: Update copyright years.
11719 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11720 (INNER_THAN): Use core_addr_lessthan.
11721 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11722 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11723 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11724 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11725 (FRAME_CHAIN): Remove unnecessary cast.
11726
11727 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11728
11729 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11730 obsolete.
11731
11732 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11733
11734 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11735 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11736 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11737 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11738 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11739 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11740 * x86-64-linux-nat.c: Ditto.
11741
11742 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11743
11744 * alpha-tdep.c (alpha_register_name): New function.
11745 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11746 (REGISTER_NAME): Define.
11747
11748 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11749
11750 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11751
11752 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11753
11754 * alpha-tdep.c: Update copyright years.
11755 (alpha_next_pc): New function.
11756 (alpha_software_single_step): Ditto.
11757 * config/alpha/tm-alpha.h: Add prototype for
11758 alpha_software_single_step.
11759
11760 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11761
11762 * alphabsd-nat.c: Update copyright years.
11763 (fill_gregset): Use regcache_collect.
11764 (fill_fpregset): Likewise.
11765 (fetch_inferior_registers): Only fetch integer registers
11766 if requested to do so.
11767 (store_inferior_registers): Only store integer registers
11768 if requested to do so.
11769
11770 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11771
11772 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11773 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11774 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11775 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11776 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11777 * config/arm/linux.mh (XDEPFILES): Delete.
11778 * config/arm/nbsd.mh (XDEPFILES): Delete.
11779 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11780 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11781 * config/i386/i386m3.mh (XDEPFILES): Delete.
11782 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11783 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11784 * config/i386/fbsd.mh (XDEPFILES): Delete.
11785 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11786 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11787 * config/i386/i386v4.mh (XDEPFILES): Delete.
11788 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11789 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11790 * config/i386/i386aix.mh (XDEPFILES): Delete.
11791 * config/i386/go32.mh (XDEPFILES): Delete.
11792 * config/i386/cygwin.mh (XDEPFILES): Delete.
11793 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11794 * config/i386/i386mach.mh (XDEPFILES): Delete.
11795 * config/i386/i386v32.mh (XDEPFILES): Delete.
11796 * config/i386/linux.mh (XDEPFILES): Delete.
11797 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11798 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11799 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11800 * config/i386/i386sco.mh (XDEPFILES): Delete.
11801 * config/i386/i386v.mh (XDEPFILES): Delete.
11802 * config/i386/nbsd.mh (XDEPFILES): Delete.
11803 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11804 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11805 * config/i386/symmetry.mh (XDEPFILES): Delete.
11806 * config/i386/obsd.mh (XDEPFILES): Delete.
11807 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11808 * config/ia64/linux.mh (XDEPFILES): Delete.
11809 * config/ia64/aix.mh (XDEPFILES): Delete.
11810 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11811 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11812 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11813 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11814 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11815 * config/m68k/linux.mh (XDEPFILES): Delete.
11816 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11817 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11818 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11819 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11820 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11821 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11822 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11823 * config/m88k/delta88.mh (XDEPFILES): Delete.
11824 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11825 * config/m88k/m88k.mh (XDEPFILES): Delete.
11826 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11827 * config/mips/linux.mh (XDEPFILES): Delete.
11828 * config/mips/irix6.mh (XDEPFILES): Delete.
11829 * config/mips/irix5.mh (XDEPFILES): Delete.
11830 * config/mips/irix4.mh (XDEPFILES): Delete.
11831 * config/mips/irix3.mh (XDEPFILES): Delete.
11832 * config/mips/decstation.mh (XDEPFILES): Delete.
11833 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11834 (NATDEPFILES): Move core-aout.o to here.
11835 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11836 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11837 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11838 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11839 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11840 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11841 * config/pa/hpux11.mh (XDEPFILES): Delete.
11842 * config/powerpc/aix.mh (XDEPFILES): Delete.
11843 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11844 * config/powerpc/linux.mh (XDEPFILES): Delete.
11845 * config/romp/rtbsd.mh: Rename XDEPFILES.
11846 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11847 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11848 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11849 * config/s390/s390.mh (XDEPFILES): Delete.
11850 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11851 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11852 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11853 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11854 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11855 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11856 * config/sparc/linux.mh (XDEPFILES): Delete.
11857 * config/vax/vaxult.mh (XDEPFILES): Delete.
11858 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11859 * Makefile.in (DEPFILES): Remove XDEPFILES.
11860
11861 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11862
11863 * utils.c (internal_verror): Fix comments, default is yes not no.
11864 Update queries to match. Default to quit and dump core.
11865
11866 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11867
11868 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11869 copyright.
11870 * defs.h, event-top.c, gdbcmd.h: Ditto.
11871 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11872 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11873 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11874 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11875 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11876 * mi/mi-main.c:Ditto.
11877
11878 * stack.c, symfile.c: Update copyright.
11879
11880 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11881
11882 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11883 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11884 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11885 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11886
11887 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11888
11889 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11890 * gdbserver/low-lynx.c (myattach): Likewise.
11891 * gdbserver/low-nbsd.c (myattach): Likewise.
11892 * gdbserver/low-sim.c (myattach): Likewise.
11893 * gdbserver/low-sparc.c (myattach): Likewise.
11894 * gdbserver/low-sun3.c (myattach): Likewise.
11895
11896 * gdbserver/low-linux.c (myattach): New function.
11897
11898 * gdbserver/server.c (attach_inferior): New function.
11899 (main): Handle "--attach".
11900
11901 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11902
11903 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11904 maintainer.
11905
11906 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * c-typeprint.c (is_type_conversion_operator): Add additional
11909 check for non-conversion operators.
11910
11911 2002-01-15 Michael Snyder <msnyder@redhat.com>
11912
11913 * linux-proc.c: Add "info proc" command, a la procfs.c.
11914 (read_mapping): New function, abstract and re-use code.
11915 (linux_find_memory_regions): Use new func read_mapping.
11916 (linux_info_proc_cmd): New function, implement "info proc".
11917 (_initialize_linux_proc): Add new command "info proc".
11918
11919 2002-01-15 Michael Snyder <msnyder@redhat.com>
11920
11921 * symfile.c (generic_load): Use bfd_map_over_sections method
11922 instead of manipulating bfd structure members directly.
11923 (add_section_size_callback): New function, bfd sections callback
11924 used by generic_load.
11925 (load_sections_callback): New function, bfd sections callback
11926 used by generic_load.
11927
11928 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11929
11930 [Based on work by Jim Blandy]
11931 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11932 (builtin_type_vec128): Export.
11933 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11934 types.
11935 (builtin_type_vec128): New builtin type for 128 bit vector
11936 registers.
11937 (build_gdbtypes): Initialize builtin_type_v16qi and
11938 builtin_type_v8hi. Create the vec128 register builtin type
11939 structure.
11940 (build_builtin_type_vec128): New function.
11941 (_initialize_gdbtypes): Register builtin_type_v16qi and
11942 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11943 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11944 AltiVec register to new builtin type.
11945
11946 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11947
11948 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11949 to make_cv_type.
11950
11951 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11952
11953 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11954 CLEAN_UP_REGISTER_VALUE.
11955 * regcache.c (supply_register): Update only call.
11956
11957 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11958
11959 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11960 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11961 a29k-*-vxworks* targets as obsolete.
11962
11963 2002-01-14 Michael Snyder <msnyder@redhat.com>
11964
11965 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11966 until we can resolve portability issues.
11967 * gregset.h: Remove references to fpxregs.
11968 * gcore.c (gcore_command): Initialize note_sec to NULL.
11969
11970 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11971
11972 * signals.c (target_signal_to_name): Rewrite. Only use
11973 signals[].name when in bounds and non-NULL.
11974
11975 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11976
11977 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11978 * signals.c (target_signal_to_name): Verify that SIG is within the
11979 bounds of the signals array.
11980
11981 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11982
11983 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11984
11985 2002-01-13 Keith Seitz <keiths@redhat.com>
11986
11987 * stack.c (print_frame_info_base): Print the frame's pc
11988 only if when print_frame_info_listing_hook is not defined.
11989
11990 2002-01-13 Keith Seitz <keiths@redhat.com>
11991
11992 * varobj.c (varobj_set_value): Make sure that there were no
11993 errors evaluating the object before attempting to set its
11994 value.
11995 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11996 so this offset adjustment is no longer necessary.
11997 (create_child): Don't set the error flag if the child is
11998 a CPLUS_FAKE_CHILD.
11999 (value_of_child): If value_fetch_lazy fails, return NULL
12000 so that callers will be notified that an error occurred.
12001 (c_value_of_variable): Delay check of variable's validity
12002 until later. We actually want all structs and unions to have
12003 the value "{...}".
12004 Do not return "???" for variables which could not be evaluated.
12005 This error condition must be returned to the caller so that it
12006 can get the error condition from gdb.
12007 (cplus_name_of_child): Adjust index for vptr before figuring
12008 out the name of the child.
12009 (cplus_value_of_child): If a child's (real) parent is not valid,
12010 don't even bother trying to give a value for it. Just return
12011 an error. Change all instances in this function.
12012 (cplus_type_of_child): If our parent is one of the "fake"
12013 parents, we need to get at the type of the real parent, and
12014 derive the child's true type using this information.
12015
12016 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12017
12018 From 2002-01-09 John Marshall <johnm@falch.net>:
12019 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12020 sources.redhat.com, and tweak some related URLs which had
12021 suffered from linkrot.
12022
12023 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12024
12025 From Jeff law:
12026 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12027 structures passed in registers.
12028
12029 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12030
12031 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12032 white space which prevented compilation. Reported by DSK
12033 <dsk@student.unsw.edu.au>.
12034
12035 2002-01-11 Michael Snyder <msnyder@redhat.com>
12036
12037 * symfile.c (build_section_addr_info_from_section_tab):
12038 Use bfd access method instead of manipulating bfd directly.
12039 (syms_from_objfile): Ditto.
12040 (simple_overlay_update_1): Ditto.
12041 (simple_overlay_update): Ditto.
12042 (generic_load): Ditto.
12043 (overlay_unmapped_address): FIXME comment, bfd access methods.
12044 (sections_overlap): FIXME comment, bfd access methods.
12045 (pc_in_mapped_range): FIXME comment, bfd access methods.
12046 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12047 (section_is_mapped): FIXME comment, bfd access methods.
12048 (section_is_overlay): FIXME comment, bfd access methods.
12049
12050 * symfile.c (generic_load): Whitespace and long line cleanups.
12051 Remove duplicate variable, change several local variables to
12052 more appropriate data types.
12053 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12054
12055 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12056
12057 From Peter Schauer:
12058 * language.c (longest_local_hex_string_custom): Use phex_nz to
12059 convert NUM to a hex string.
12060
12061 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12062
12063 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12064 the function.
12065 Update Copyright year.
12066
12067 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12068
12069 * language.c (longest_raw_hex_string): Delete unused function.
12070
12071 2002-01-11 Petr Sorfa <petrs@caldera.com>
12072
12073 * MAINTAINERS (write-after-approval): Add myself.
12074 * dwarf2read.c (read_tag_string_type): Handling of
12075 DW_AT_byte_size.
12076 (read_tag_string_type): FORTRAN fix to prevent propagation of
12077 first string size.
12078 (set_cu_language): Handling of DW_LANG_Fortran95
12079
12080 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12081
12082 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12083 GETPID(inferior_ptid).
12084 (store_inferior_registers): Likewise.
12085
12086 2002-01-10 Jason Merrill <jason@redhat.com>
12087
12088 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12089 Fix DW_OP_minus.
12090
12091 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12092
12093 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12094 and bfd/elf32-sh-nbsd.c.
12095
12096 2002-01-10 Michael Snyder <msnyder@redhat.com>
12097
12098 * NEWS: Mention --pid and corefile/proc-id behavior change.
12099
12100 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12101 * gcore.c: Include cli/cli-decode.h instead of command.h.
12102
12103 * main.c (captured_main): Add new command line option "--pid".
12104 If the second command line argument (following the symbol-file)
12105 begins with a digit, try to attach to it before trying to open
12106 it as a corefile.
12107 (print_gdb_help): Document the "--pid" argument.
12108
12109 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12110
12111 * completer.c (command_completer): New function.
12112
12113 * completer.h <command_completer>: Add prototype.
12114
12115 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12116 completer for the "help" command.
12117
12118 2002-01-09 Jason Merrill <jason@redhat.com>
12119
12120 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12121
12122 2002-01-09 Michael Snyder <msnyder@redhat.com>
12123
12124 * i386-linux-nat.c (fill_fpxregset): Make global.
12125 (store_fpxregset): Ditto.
12126
12127 * gregset.h (gdb_fpxregset_t): Define.
12128 (supply_fpxregset): Prototype.
12129 (fill_fpxregset): Prototype.
12130
12131 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12132
12133 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12134
12135 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12136 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12137 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12138
12139 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12140
12141 * MAINTAINERS: Update target maintainer rules so that any
12142 Maintainer can approve a tested patch for a maintenance-only
12143 target.
12144
12145 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12146
12147 * MAINTAINERS (write-after-approval): Add myself.
12148
12149 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12150 IN_SIGTRAMP.
12151
12152 2002-01-08 Michael Snyder <msnyder@redhat.com>
12153
12154 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12155 real name of the executable, rather than the /proc name.
12156
12157 2002-01-03 Michael Snyder <msnyder@redhat.com>
12158
12159 Implement a "generate-core-file" command in gdb, save target state.
12160 * gcore.c: New file. Implement new command 'generate-core-file'.
12161 Save a corefile image of the current state of the inferior.
12162 * linux-proc.c: Add linux-specific code for saving corefiles.
12163 * target.h (struct target_ops): Add new target vectors for saving
12164 corefiles; to_find_memory_regions and to_make_corefile_notes.
12165 (target_find_memory_regions): New macro.
12166 (target_make_corefile_notes): New macro.
12167 * target.c (update_current_target): Inherit new target methods.
12168 (dummy_find_memory_regions): New place-holder method.
12169 (dummy_make_corefile_notes): New place-holder method.
12170 (init_dummy_target): Initialize new dummy target vectors.
12171 * exec.c (exec_set_find_memory_regions): New function.
12172 Allow the exec_ops vector for memory regions to be taken over.
12173 (exec_make_note_section): New function, target vector method.
12174 * defs.h (exec_set_find_memory_regions): Export prototype.
12175 * procfs.c (proc_find_memory_regions): New function, corefile method.
12176 (procfs_make_note_section): New function, corefile method.
12177 (init_procfs_ops): Set new target vector pointers.
12178 (find_memory_regions_callback): New function.
12179 (procfs_do_thread_registers): New function.
12180 (procfs_corefile_thread_callback): New function.
12181 * sol-thread.c (sol_find_memory_regions): New function.
12182 (sol_make_note_section): New function.
12183 (init_sol_thread_ops): Initialize new target vectors.
12184 * inftarg.c (inftarg_set_find_memory_regions): New function.
12185 Allow to_find_memory_regions vector to be taken over.
12186 (inftarg_set_make_corefile_notes): New function.
12187 Allow to_make_corefile_notes vector to be taken over.
12188 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12189 interface layer if not target_has_execution (may be a corefile).
12190 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12191 * config/sparc/sun4sol2.mh: Ditto.
12192 * config/alpha/alpha-linux.mh: Ditto.
12193 * config/arm/linux.mh: Ditto.
12194 * config/i386/x86-64linux.mh: Ditto.
12195 * config/ia64/linux.mh: Ditto.
12196 * config/m68k/linux.mh: Ditto.
12197 * config/mips/linux.mh: Ditto.
12198 * config/powerpc/linux.mh: Ditto.
12199 * config/sparc/linux.mh: Ditto.
12200
12201 2002-01-07 Michael Snyder <msnyder@redhat.com>
12202
12203 * arm-linux-nat.c: Remove references to regcache.c internal data
12204 (registers[] and register_valid[]).
12205
12206 2002-01-07 Michael Snyder <msnyder@redhat.com>
12207
12208 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12209 so that attaching to a pid will automatically read the process's
12210 symbol file and shlibs.
12211 * Makefile.in: Add rule for linux-proc.o.
12212 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12213 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12214 * config/arm/linux.mh: Ditto.
12215 * config/i386/linux.mh: Ditto.
12216 * config/i386/x86-64linux.mh: Ditto.
12217 * config/ia64/linux.mh: Ditto.
12218 * config/m68k/linux.mh: Ditto.
12219 * config/mips/linux.mh: Ditto.
12220 * config/powerpc/linux.mh: Ditto.
12221 * config/sparc/linux.mh: Ditto.
12222
12223 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12224
12225 * win32-nat.c: Add i386-tdep.h dependency.
12226
12227 2002-01-07 Michael Snyder <msnyder@redhat.com>
12228
12229 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12230 instead of bfd_get_arch_size. Don't bail out just because
12231 there's no exec_bfd.
12232
12233 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12234 * p-valprint.c (pascal_object_print_value): Ditto.
12235 * somread.c (som_symtab_read): Ditto.
12236 * symfile.c (simple_free_overlay_region_table): Ditto.
12237 * valops.c (value_assign): Ditto.
12238
12239 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12240 use tilde_expand and strerror for opening save-tracepoints file.
12241
12242 * thread-db.c (thread_db_new_objfile): Indendation fix.
12243
12244 * infptrace.c (GDB_MAX_ALLOCA): New define.
12245 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12246 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12247 can be overridden with whatever value is appropriate to the host).
12248 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12249 alloca to allocate potentially large buffer.
12250 * rs6000-nat.c (child_xfer_memory): Ditto.
12251 * symm-nat.c (child_xfer_memory): Ditto.
12252 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12253
12254 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12255
12256 From Nick Clifton <nickc@redhat.com>
12257 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12258
12259 2002-01-07 Michael Snyder <msnyder@redhat.com>
12260
12261 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12262 Don't use exec_bfd if it's NULL.
12263
12264 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12265
12266 * valops.c (value_arg_coerce): Fix formatting.
12267
12268 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12269
12270 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12271 * gnu-nat.c: Ditto.
12272
12273 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12274
12275 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12276 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12277 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12278 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12279 z8k-coff have not been multi-arched. Update z8k-coff build
12280 status.
12281
12282 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12283
12284 * MAINTAINERS: Mark a29k target as obsolete.
12285 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12286 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12287 comments.
12288 * NEWS: Note that a29k targets are obsolete.
12289 * a29k-tdep.c: Mark as obsolete.
12290 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12291 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12292 a29k-*-vxworks* targets as obsolete.
12293 * remote-adapt.c: Obsolete.
12294 * remote-eb.c: Obsolete.
12295 * remote-mm.c: Obsolete.
12296 * remote-udi.c: Obsolete.
12297 * config/a29k/a29k-udi.mt: Obsolete.
12298 * config/a29k/a29k.mt: Obsolete.
12299 * config/a29k/tm-a29k.h: Obsolete.
12300 * config/a29k/tm-vx29k.h: Obsolete.
12301 * config/a29k/vx29k.mt: Obsolete.
12302
12303 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12304
12305 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12306 with BFD_ENDIAN_BIG.
12307
12308 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12309
12310 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12311 * configure, config.in: Re-generate.
12312 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12313 * defs.h: Do not include <endian.h>.
12314
12315 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12316
12317 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12318 * config.in: Regenerate.
12319 * configure.in: Update copyright years.
12320 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12321 * configure: Regenerate.
12322 * i386bsd-nat.c: Update copyright years.
12323 (fill_gregset): Use regcache_collect.
12324 (fetch_inferior_registers): Only fetch integer registers
12325 if requested to do so. Add support for XMM registers
12326 using PT_GETXMMREGS.
12327 (store_inferior_registers): Only store integer registers
12328 if requested to do so. Add support for XMM registers
12329 using PT_SETXMMREGS.
12330 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12331 (store_inferior_registers): Remove.
12332 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12333 (fetch_elfcore_registers): New function.
12334 (i386nbsd_elfcore_fns): New.
12335 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12336 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12337 i386bsd-nat.o.
12338 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12339 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12340 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12341 * config/i386/tm-nbsd.h: Update copyright years.
12342 (HAVE_SSE_REGS): Define.
12343 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12344 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12345 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12346 (SIGCONTEXT_PC_OFFSET): Remove.
12347 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12348
12349 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12350
12351 * configure.tgt: Remove powerpc-*-macos* target.
12352 * config/m68k/xm-mpw.h: Delete file.
12353 * config/xm-mpw.h: Delete file.
12354 * ser-mac.c: Delete file.
12355 * mpw-make.sed: Delete file.
12356 * mpw-config.in: Delete file.
12357 * mac-xdep.c: Delete file.
12358 * mac-gdb.r: Delete file.
12359 * mac-defs.h: Delete file.
12360 * mac-nat.c: Delete file.
12361 * config/powerpc/macos.mh: Delete file.
12362 * config/powerpc/macos.mt: Delete file.
12363 * config/powerpc/nm-macos.h: Delete file.
12364 * config/powerpc/tm-macos.h: Delete file.
12365 * source.c (openp, open_source_file): Remove obsolete code.
12366 * top.c (gdb_readline): Ditto.
12367 * utils.c (query): Ditto.
12368 * event-top.c (display_gdb_prompt): Ditto.
12369 * Makefile.in (ser-mac.o): Delete obsolete target.
12370 * NEWS: Update.
12371
12372 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12373
12374 * defs.h (BIG_ENDIAN): Delete macro definition.
12375 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12376 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12377 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12378 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12379 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12380 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12381 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12382 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12383 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12384 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12385 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12386 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12387 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12388 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12389 * gdbarch.c: Re-generate.
12390
12391 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12392
12393 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12394 for core files.
12395
12396 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12397
12398 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12399
12400 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12401
12402 * value.h (value_ptr): Delete typedef.
12403
12404 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12405
12406 * i386nbsd-nat.c: Update copyright years.
12407 Include i386-tdep.h.
12408
12409 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12410
12411 * stabsread.c: Update copyright years.
12412
12413 From Debashis Mahata <debashis.mahata@wipro.com>:
12414 (read_struct_fields): Deal with Sun C compiler erroneous stab
12415 output for structs and unions.
12416 Fix PR gdb/269.
12417
12418 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12419
12420 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12421 prototype.
12422
12423 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12424
12425 * cp-abi.c: Fix whitespace.
12426 (baseclass_offset): New wrapper function.
12427 * cp-abi.h (baseclass_offset): Add prototype.
12428 (struct cp_abi_ops): Add baseclass_offset pointer.
12429
12430 * valops.c (vb_match): Move to...
12431 * gnu-v2-abi.c (vb_match): here.
12432 * valops.c (baseclass_offset): Move to...
12433 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12434
12435 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12436
12437 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12438 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12439 * hpacc-abi.c (init_hpacc_ops): Likewise.
12440
12441 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12442
12443 * valops.c (find_overload_match): Accept obj as a
12444 reference parameter. Update it before returning.
12445 * value.h (find_overload_match): Update prototype.
12446 * eval.c (evaluate_subexp_standard): Pass object to
12447 find_overload_match by reference.
12448
12449 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12450
12451 * valarith.c: Replace value_ptr with struct value pointer. Remove
12452 register attribute from value declarations.
12453 * valops.c: Ditto.
12454 * value.h: Ditto.
12455 * scm-lang.c (scm_lookup_name): Ditto.
12456
12457 2002-01-03 Michael Snyder <msnyder@redhat.com>
12458
12459 Abstract the functionality of iterating over mapped memory
12460 regions into a general purpose iterator function.
12461 * procfs.c (iterate_over_mappings): New function, general purpose
12462 iterator for memory sections.
12463 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12464 (solib_mappings_callback): New function, callback for above.
12465 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12466 (info_mappings_callback): New function, callback for above.
12467
12468 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12469
12470 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12471
12472 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12473 * i386-tdep.c: Include "elf-bfd.h".
12474 (process_note_abi_tag_sections): New function.
12475 (i386_gdbarch_init): Add code to recognize various OS/ABI
12476 combinations.
12477
12478 * maint.c (_initialize_maint_cmds): Add missing \ in
12479 string-literal.
12480
12481 For older changes see ChangeLog-2001
12482 \f
12483 Local Variables:
12484 mode: change-log
12485 left-margin: 8
12486 fill-column: 74
12487 version-control: never
12488 End:
This page took 0.289993 seconds and 5 git commands to generate.