* x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab91194c
MK
12002-10-26 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
4 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
5 i386 target back into x86_64_gdbarch_init. Add some comments and
6 remove meaningless ones.
7
72367fb4
AC
82002-10-25 Andrew Cagney <cagney@redhat.com>
9
10 * complaints.h (struct deprecated_complaint): Rename `struct
11 complaint'.
12 * complaints.c (complain): Update.
13 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
14 incorrect comment indicating that "symfile.h" was being included
15 for the `struct complaint' definition.
16 * remote-vx.c: Update.
17 * objc-lang.c: Update.
18 * xcoffread.c: Update.
19 * hpread.c: Update.
20 * mdebugread.c: Update.
21 * stabsread.c: Update.
22 * dwarf2read.c: Update.
23 * dwarfread.c: Update.
24 * elfread.c: Update.
25 * coffread.c: Update.
26 * stabsread.h: Update.
27 * dbxread.c: Update.
28 * buildsym.c: Update.
29 * gdbtypes.c: Update.
30 * macrotab.c: Update.
31
1f2baacc
MK
322002-10-25 Mark Kettenis <kettenis@gnu.org>
33
0c1a73d6
MK
34 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
35 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
36 (x86_64_init_abi): ...new function.
37
6aee4d54 38 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
39 * i386v-nat.c: Include "i386-tdep.h".
40
8f9cbe01
AC
412002-10-25 Andrew Cagney <cagney@redhat.com>
42
5f11f355
AC
43 * gdbtypes.c (address_space_name_to_int): Update.
44 (address_space_int_to_name): Update.
45 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
46 multi-arch predicate.
47 (address_class_name_to_type_flags): Ditto.
48 * gdbarch.h, gdbarch.c: Re-generate.
49
8f9cbe01
AC
50 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
51
e8d96a5d
MH
522002-10-24 Martin M. Hunt <hunt@redhat.com>
53
54 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
55
fe39c653
EZ
562002-10-24 Elena Zannoni <ezannoni@redhat.com>
57
58 * symtab.h (INIT_SAL): Delete macro.
59 (init_sal): Export.
60 * symtab.c (init_sal): New function.
61
62 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
63 to init_sal function call.
64 (find_sal_from_funcs_and_line): Ditto.
65 (all_sals_for_line): Ditto.
66 * breakpoint.c (create_internal_breakpoint): Ditto.
67 (create_fork_vfork_event_catchpoint): Ditto.
68 (create_exec_event_catchpoint): Ditto.
69 (parse_breakpoint_sals): Ditto.
70 (watch_command_1): Ditto.
71 (handle_gnu_4_16_catch_command): Ditto.
72 (clear_command): Ditto.
73 * hppa-tdep.c (child_enable_exception_callback): Ditto.
74 * infcmd.c (run_stack_dummy): Ditto.
75 * infrun.c (process_event_stop_test): Ditto.
76 (check_sigtramp2): Ditto.
77 (step_over_function): Ditto.
78 * linespec.c (decode_line_2): Ditto.
79 (decode_line_1): Ditto.
80 * source.c (line_info): Ditto.
81 * symtab.c (find_pc_sect_line): Ditto.
82
baed091b
ML
832002-10-24 Michal Ludvig <mludvig@suse.cz>
84
85 * dwarf2cfi.c (struct context)
86 (struct context_reg): Moved to dwarf2cfi.h
87 (context_alloc, frame_state_alloc, context_cpy):
88 Made extern instead of static, removed prototypes.
89 * dwarf2cfi.h (struct context)
90 (struct context_reg): New, moved from dwarf2cfi.c
91 (context_alloc, frame_state_alloc, context_cpy):
92 New prototypes.
93 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
94 Changed from static to extern.
95 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
96 (LINUX_SIGCONTEXT_FP_OFFSET)
97 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
98 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
99 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
100 * x86-64-tdep.c (x86_64_gdbarch_init): Several
101 set_gdbarch_*() calls now use x86-64 specific functions
102 instead of DWARF2 CFI ones.
103 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
104 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
105 (x86_64_init_extra_frame_info): New prototypes.
106
c38da1af
DC
1072002-10-23 David Carlton <carlton@math.stanford.edu>
108
109 * linespec.c: #include "parser-defs.h".
110 Delete prototype for find_template_name_end.
111 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
112
fb9b6b35
JJ
1132002-10-23 Jeff Johnston <jjohnstn@redhat.com>
114
115 * NEWS: add recent mi fixes.
116 * varobj.c (struct varobj): Add new "updated" flag.
117 (new_variable): Default "updated" flag to 0.
118 (varobj_set_value): Set "updated" flag to 1 if value
119 changes.
120 (varobj_update): Check varobj "updated" flag before
121 comparing old and refreshed values. Fix for
122 PR gdb/702.
123
8da065d5
DC
1242002-10-23 David Carlton <carlton@math.stanford.edu>
125
126 * parse.c (parse_exp_1): Use BLOCK_START.
127 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
128 SYMBOL_BLOCK_VALUE.
129 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
130
87f2f08c
DC
1312002-10-23 David Carlton <carlton@math.stanford.edu>
132
133 * symtab.c: Delete cplusplus_hint.
134 Delete prototype for find_template_name_end.
135
88cda038
EZ
1362002-10-23 Elena Zannoni <ezannoni@redhat.com>
137
138 * symtab.h: Update comment.
139
2625d86c
MS
1402002-10-23 Michael Snyder <msnyder@redhat.com>
141
142 * printcmd.c (address_info): Restore quotes in output.
143 * valops.c (value_of_local): Restore quotes in error message.
144
9cc0d196
EZ
1452002-10-23 Elena Zannoni <ezannoni@redhat.com>
146
147 * symtab.c (symbol_demangled_name): New function.
148 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
149 turning most of it into a function.
150 (symbol_demangled_name): Export.
151
19de93d0
MS
1522002-10-23 Michael Snyder <msnyder@redhat.com>
153
154 * valops.c (value_of_local): Restore quotes in error message.
155
89aad1f9
EZ
1562002-10-23 Elena Zannoni <ezannoni@redhat.com>
157
158 * symtab.c (symbol_init_language_specific): New function.
159 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
160 turning most of it into a function.
161 (symbol_init_language_specific): Export.
162
d9fa45fe
DC
1632002-10-23 David Carlton <carlton@math.stanford.edu>
164
165 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
166 (dwarf_attr_name): Ditto.
167 (dwarf_type_encoding_name): Ditto.
168 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
169 (process_die): Handle DW_TAG_namespace,
170 DW_TAG_imported_declaration, DW_TAG_imported_module.
171 (read_namespace): New function.
172
1045b512
JB
1732002-10-22 Joel Brobecker <brobecker@gnat.com>
174
175 * configure.in: Define NEW_PROC_API on Interix too.
176 * configure: Regenerate.
177
1782002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
179
180 * configure: Regenerate using the proper version of autoconf.
181
3987b9d4
EZ
1822002-10-21 Elena Zannoni <ezannoni@redhat.com>
183
184 * findvar.c (read_var_value): Temporarily disable TLS code, until
185 complete TLS support is added.
186
9d774e44
EZ
1872002-10-21 Jim Blandy <jimb@redhat.com>
188 Elena Zannoni <ezannoni@redhat.com>
189
190 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
191 for thread local storage locations.
192 (struct symbol): Add objfile field.
193 (SYMBOL_OBJFILE): Define.
194 * dwarf2read.c (is_thread_local): New static variable.
195 (new_symbol): If variable is in thread local fill in address class
196 and objfile appropriately.
197 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
198 stack operation.
199 * printcmd.c (address_info): Print the information for thread
200 local storage variable.
201 * findvar.c (read_var_value): In case of thread local variable,
202 defer to the target vector code to compute address.
203
bc4a16ae
EZ
2042002-10-21 Elena Zannoni <ezannoni@redhat.com>
205
206 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
207 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
208
407caf07
EZ
2092002-10-21 Elena Zannoni <ezannoni@redhat.com>
210
211 * symtab.h (address_class): Rename
212 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
213 * hpread.c (hpread_process_one_debug_symbol): Ditto.
214 * printcmd.c (address_info): Ditto.
215 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
216
005328e3
MK
2172002-10-20 Mark Kettenis <kettenis@gnu.org>
218
afdb036a
MK
219 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
220 DBREG_DRX macro to acces debug registers.
221
ca02e098
MK
222 * Makefile.in (i386obsd-tdep.o): New target.
223
03cc47f7
MK
224 * solib-sunos.c: Include "bcache.h" and "regcache.h".
225 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
226
005328e3
MK
227 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
228 * config/i386/obsd.mt: New file.
229 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
230 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
231 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
232 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
233 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
234 * i386obsd-tdep.c: New file.
235
9c96f9f2
AF
2362002-10-19 Adam Fedor <fedor@gnu.org>
237
238 * objc-exp.y (name_not_typename): Fix invalid comment.
239
ce1ed485
MK
2402002-10-20 Mark Kettenis <kettenis@gnu.org>
241
242 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
243 to allocate partial syms and macro byte caches.
244
1efc7aaa
DC
2452002-10-18 David Carlton <carlton@math.stanford.edu>
246
247 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
248
7e1d63ec
AF
2492002-10-18 Adam Fedor <fedor@gnu.org>
250
251 * stabsread.c (find_name_end): New function.
252 (define_symbol): Use it.
253
6e8d29a9
DJ
2542002-10-18 Daniel Jacobowitz <drow@mvista.com>
255
256 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
257 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
258 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
259 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
260
1efc7aaa 2612002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
262
263 * symfile.h: Add opaque declaration for struct obstack.
264 Declare obsavestring to take a const char *.
265 * symfile.c (obsavestring): Make first argument a const char *.
266
1aeae86e
AF
2672002-10-16 Adam Fedor <fedor@gnu.org>
268
269 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
270 names when matching breakpoints in current file.
271
8b2dbe47
KB
2722002-10-16 Kevin Buettner <kevinb@redhat.com>
273
274 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
275 (read_tag_pointer_type): Add address class support.
276 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
277 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
278 New methods.
279 * gdbarch.h, gdbarch.c: Regenerate.
280 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
281 (make_type_with_address_space, recursive_type_dump): Add address
282 class support.
283 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
284 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
285 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
286
74451869
KD
2872002-10-16 Klee Dienes <kdienes@apple.com>
288
289 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
290 to get the last character of a char[] buffer, not
291 name[sizeof(vptr_name)-1].
292
ff4cb3e8
AF
2932002-10-14 Adam Fedor <fedor@gnu.org>
294
295 * symtab.h: New objc_specific struct.
296 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
297 (SYMBOL_DEMANGLED_NAME): Likewise.
298
da2cf7e0
AF
2992002-10-14 Adam Fedor <fedor@gnu.org>
300
301 * symfile.c (init_filename_language_table): Add ObjC file extension.
302
4a351cef
AF
3032002-10-14 Adam Fedor <fedor@gnu.org>
304
305 * utils.c (puts_filtered_tabular): New function.
306 (fprintf_symbol_filtered): Get ObjC demangled name.
307 * defs.h (puts_filtered_tabular): Declared.
308
9750e763
KB
3092002-10-14 Kevin Buettner <kevinb@redhat.com>
310
311 * c-lang.h (c_type_print_varspec_prefix): Delete.
312 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
313 ``need_post_space'' parameter. Adjust all callers.
314
eee771c1
DJ
3152002-10-14 Daniel Jacobowitz <drow@mvista.com>
316
317 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
318 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
319 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
320 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
321
46c82446
AF
3222002-10-13 Adam Fedor <fedor@gnu.org>
323
324 * source.c (print_source_lines): Update comments.
325
d069f99d
AF
3262002-10-13 Adam Fedor <fedor@gnu.org>
327
328 * valops.c (value_of_local): New function.
329 (value_of_this): Use it.
330 * value.h (value_of_local): Declared.
331
53c551b7
AF
3322002-10-13 Adam Fedor <fedor@gnu.org>
333
334 * parse.c: (length_of_subexp, prefixify_subexp): Handle
335 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
336
eb392fbf
AF
3372002-10-12 Adam Fedor <fedor@gnu.org>
338
339 * language.c (binop_result_type): Add language_objc to case.
340 (integral_type): Likewise.
341 (character_type): Likewise.
342 (string_type): Likewise.
343 (boolean_type): Likewise.
344 (structured_type): Likewise.
345 (binop_type_check): Likewise.
346
e2b23ee9
AF
3472002-10-11 Adam Fedor <fedor@gnu.org>
348
349 * printcmd.c (address_info): Print 'self' for ObjC.
350
b01ab485
AF
3512002-10-11 Adam Fedor <fedor@gnu.org>
352
353 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
354 OP_SELF.
355
806e6073
AF
3562002-10-11 Adam Fedor <fedor@gnu.org>
357
358 * language.h (CAST_IS_CONVERSION): Add language_objc.
359
50f85cdf
AF
3602002-10-11 Adam Fedor <fedor@gnu.org>
361
362 * defs.h (enum language): Add language_objc.
363
0d540cdf
KD
3642002-10-11 Klee Dienes <kdienes@apple.com>
365
366 * findvar.c (read_memory_typed_address): New function.
367 * gdbcore.h (read_memory_typed_address): Add prototype.
368 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
369 to read a value destined for a CORE_ADDR, not read_memory_integer.
370 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
371 (f77_get_dynamic_lowerbound): Ditto.
372
d5dc7960
MH
3732002-10-11 Martin M. Hunt <hunt@redhat.com>
374
375 * utils.c (string_to_core_addr): After turning string into
376 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
377 which will do necessary sign-extension, etc.
378
8343f86c
DJ
3792002-10-11 Daniel Jacobowitz <drow@mvista.com>
380
381 * c-exp.y (THIS): Delete token and grammar rule.
382 (yylex): Don't return THIS.
383 * cp-valprint.c (vtbl_ptr_name_old): Delete.
384 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
385 * demangle.c (cplus_markers): Update comment. Put '$'
386 first. Remove CPLUS_MARKER.
387 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
388 * jv-exp.y (THIS): Delete token and grammar rule.
389 (yylex): Don't return THIS.
390 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
391 * objc-exp.y (THIS): Delete token and grammar rule.
392 (yylex): Don't return THIS.
393 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
394 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
395 (read_member_functions): Likewise for opname.
396 (read_tilde_fields): Use is_cplus_marker.
397
398 * defs.h (CPLUS_MARKER): Don't define.
399 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
400 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
401 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
402 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
403 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
404
405 * config/i386/tm-i386v4.h: Delete file.
406 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
407 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
408 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
409 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
410 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
411 * config/i386/i386sco5.mt (TM_FILE): Likewise.
412 * config/i386/i386v4.mt (TM_FILE): Likewise.
413 * config/i386/ncr3000.mt (TM_FILE): Likewise.
414
967c0d83
MM
4152002-10-10 Marko Mlinar <markom@opencores.org>
416
417 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
418 accidentially not commited 2002-10-09
419 * gdbarch.h, gdbarch.c: Re-generate.
420
f74fa174
MM
4212002-10-09 Marko Mlinar <markom@opencores.org>
422
423 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
424 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
425 * gdbarch.h, gdbarch.c: Re-generate.
426
57349743
JB
4272002-10-08 Petr Sorfa <petrs@caldera.com>
428
429 Revised and re-submitted by John Wolfe <jlw@caldera.com>
430
431 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
432 so we can work on more than one compilation unit at a time. This
433 helps prepare GDB to handle inter-CU die references.
434 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
435 the code to be defined before struct comp_unit_head.
436 (comp_unit_head): Added new members - offset, cu_head,
437 begin_die, next and dwarf2_abbrevs.
438 (dwarf2_abbrevs): Removed single static var; now member of
439 struct comp_unit_head.
440 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
441 members.
442 (psymtab_to_symtab_1): Changed to work with the new
443 struct comp_unit_head.
444 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
445 constructs the dwarf2_abbrevs[] inside the cu_header.
446 (dwarf2_empty_abbrev_table): Now expects a ptr to a
447 dwarf2_abbrev table to clean up.
448 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
449 handling of dwarf2_abbrevs inside the cu_header.
450 (read_partial_die): Now supports the call to the new
451 dwarf2_lookup_abbrev.
452 (read_full_die): Now supports the call to the new
453 dwarf2_lookup_abbrev.
454
4092aadb
CF
4552002-10-06 Christopher Faylor <cgf@redhat.com>
456
457 * Makefile.in (install-gdbtk): Add missing continuation backslash to
458 insure that shell variables, such as "transformed_name" are propagated
459 to later shell statements in rule.
460
af0b2512
MK
4612002-10-06 Mark Kettenis <kettenis@gnu.org>
462
463 * config/i386/nm-i386sco.h: Add protection against
464 multiple-inclusion. Include "i386/nm-i386v.h".
465 (REGISTER_U_ADDR): Remove define.
466 (i386_register_u_addr): Remove prototype.
467
d6020d45
MS
4682002-10-04 Michael Snyder <msnyder@redhat.com>
469
470 * m32r-stub.c (handle_exception): Make sure exception is "trap"
471 before treating it as a single-step event.
472
7248f48e
AF
4732002-10-03 Adam Fedor <fedor@gnu.org>
474
475 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
476 (objc_demangle): Remove assignment in if statements, Replace
477 free with xfree.
478 (add_msglist): Likewise.
479 (end_msglist): Likewise.
480 (complare_selectors): Likewise.
481 (selectors_info): Likewise.
482 (compare_classes): Likewise.
483 (classes_info): Likewise.
484 (print_object_command): Likewise.
485 (find_objc_msgcall_submethod): Replace PTR with void *.
486 * objc-lang.h: Remove check for __STDC__.
487
52c6a6ac
JJ
4882002-10-03 Jeff Johnston <jjohnstn@redhat.com>
489
490 * ui-out.h (ui_out_field_fmt_int): New prototype.
491 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
492 of field width and alignment.
493 * stack.c (print_frame_info_base): When printing frame level, use
494 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
495 PR gdb/192
496
7e3cec17
JJ
4972002-10-03 Jeff Johnston <jjohnstn@redhat.com>
498
499 * MAINTAINERS: Add self to Write After Approval list.
500
a58dd373
EZ
5012002-10-02 Elena Zannoni <ezannoni@redhat.com>
502
503 * infcmd.c (interrupt_target_command_wrapper): Delete.
504 (interrupt_target_command): Make non static.
505 (nofp_registers_info): Make static.
506 * stack.c (return_command_wrapper): Delete.
507 (return_command): Make non static.
508
cee6ddeb
EZ
5092002-10-02 Elena Zannoni <ezannoni@redhat.com>
510
511 * event-top.c (gdb_setup_readline): New function. Code moved from
512 _initialize_event_loop().
513 (_initialize_event_loop): Call gdb_setup_readline().
514
c4ed33b9
AC
5152002-10-02 Andrew Cagney <ac131313@redhat.com>
516
517 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
518 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
519 * gdbarch.h, gdbarch.c: Re-generate.
520
cef4f5dd
DJ
5212002-10-02 Daniel Jacobowitz <drow@mvista.com>
522
523 Fix PR gdb/778
524 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
525 before recursing.
526 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
527 of fill_in_vptr_fieldno.
528
36dc181b 5292002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 530
36dc181b
EZ
531 * inferior.h (registers_info, stepi_command, nexti_command,
532 continue_command, interrupt_target_command): Export from infcmd.c.
533 * frame.h (args_info, selected_frame_level_changed_hook,
534 return_command): Export from stack.c.
535 * v850ice.c (stepi_command, nexti_command, continue_command): use
536 prototypes from inferior.h.
537 * tracepoint.c (registers_info, args_info, locals_info): Use
538 prototypes from frame.h and inferior.h.
539 * Makefile.in (mi-main.o): Add dependency on frame.h.
540
6f99cb26
AC
5412002-10-02 Andrew Cagney <ac131313@redhat.com>
542
da3eff49
AC
543 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
544 value in register 3 adjusted by ppc_gp0_regnum.
545
6f99cb26
AC
546 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
547
da615bee
MM
5482002-10-02 Marko Mlinar <markom@opencores.org>
549
550 * MAINTAINERS: Add myself to the Write After Approval list.
551
d154bee2
AO
5522002-10-01 Alexandre Oliva <aoliva@redhat.com>
553
62a49b2c
AO
554 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
555 of the section for the N64 ABI, fixed.
556
d154bee2
AO
557 * config/mips/tm-irix6.h: Include solib.h.
558
ed348acc
EZ
5592002-10-01 Elena Zannoni <ezannoni@redhat.com>
560
561 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
562 GNU operators.
563
da0f9dcd
AC
5642002-10-01 Andrew Cagney <ac131313@redhat.com>
565
566 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
567 and that "mi0" syntax has been removed.
568
bdf64bac
DC
5692002-09-30 David Carlton <carlton@math.stanford.edu>
570
571 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
572 * ppc-sysv-tdep.c: #include "gdb_string.h".
573 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
574 pacify GCC.
575
54c2a1e6
AC
5762002-10-01 Andrew Cagney <ac131313@redhat.com>
577
578 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
579 "vrsave"'s register number.
580
cedea778
AC
5812002-09-30 Andrew Cagney <ac131313@redhat.com>
582
583 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
584 use frame_unwind_signed_register to obtain the PC.
585 (mips_frame_chain): Handle a generic dummy frame.
586 (mips_init_extra_frame_info): When a generic dummy frame, don't
587 re-compute the frame base.
588 (mips_pop_frame): Handle generic dummy frames.
589 (mips_gdbarch_init): When generic dummy frames, set
590 use_generic_dummy_frames, push_dummy_frame to
591 generic_push_dummy_frame, pc_in_call_dummy to
592 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
593 generic_save_dummy_frame_tos.
594
68315eb8
AC
5952002-09-30 Andrew Cagney <ac131313@redhat.com>
596
597 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
598 against TOP when TOP was explictly set.
599 (generic_push_dummy_frame): Set TOP to zero.
600
3b8630c3
EZ
6012002-09-30 Elena Zannoni <ezannoni@redhat.com>
602
603 * event-loop.c (start_event_loop): Rename variable 'result' to
604 'gdb_result', to avoid conflicts with upcoming intepreters changes.
605
28ee05e9
KS
6062002-09-30 Keith Seitz <keiths@redhat.com>
607
608 * gdb-events.sh (selected_thread_changed): New event.
609 * gdb-events.c: Regenerated.
610 * gdb-events.h: Regenerated.
611
6eecb1c8
HPN
6122002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
613
614 * MAINTAINERS: Add self to Write After Approval list.
615
92df71f0
FN
6162002-09-30 Fernando Nasser <fnasser@redhat.com>
617
3b8630c3
EZ
618 * disasm.c: New file.
619 * disasm.h: New file.
92df71f0
FN
620 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
621 (compare_lines): Ditto.
622 (dump_insns): Ditto.
3b8630c3
EZ
623 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
624 argument.
92df71f0 625 (do_assembly_only): Ditto.
3b8630c3
EZ
626 (do_disassembly): Renamed to gdb_disassembly and moved to
627 disasm.c. Sdded uiout argument.
628 * Makefile.in: Add new files. Reorder SFILES list. Update
629 dependencies. Include libgdb.a later in the insight executable.
92df71f0 630
0c22854d
AC
6312002-09-29 Andrew Cagney <ac131313@redhat.com>
632
633 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
634 bfd/elf64-alpha-fbsd.c.
635
e67f2023
AC
6362002-09-29 Andrew Cagney <ac131313@redhat.com>
637
638 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
639 i386gnu-tdep.c.
640
89396210
AC
6412002-09-29 Andrew Cagney <ac131313@redhat.com>
642
643 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
644 __FUNCTION__.
645 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
646 function name.
647 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
648 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
649 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
650 (S_msg_sig_post_reply): Ditto.
651
7079c36c
CV
6522002-09-28 Corinna Vinschen <vinschen@redhat.com>
653
89396210
AC
654 * sh-tdep.c (sh_use_struct_convention): Use definition according
655 to ABI.
7079c36c
CV
656 (sh_push_arguments): Store in register with correct endianess.
657 (sh_default_store_return_value): Ditto.
658 (sh_gdbarch_init): Set sizeof long double to 8.
659
975ac915
MK
6602002-09-27 Mark Kettenis <kettenis@gnu.org>
661
662 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
663 Fix some whitespace problems.
664
9bbe19fb
DC
6652002-09-27 David Carlton <carlton@math.stanford.edu>
666
667 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
668 (mcore-tdep.o): Ditto.
669 (ns32k-tdep.o): Ditto.
670 (ns32knbsd-tdep.o): Ditto.
671 (sh3-rom.o): Ditto.
672 (vax-tdep.o): Ditto.
673 * cris-tdep.c: #include "gdb_string.h"
674 * mcore-tdep.c: Ditto.
675 * ns32k-tdep.c: Ditto.
676 * ns32knbsd-tdep.c: Ditto.
677 * sh3-rom.c: Ditto.
678 * vax-tdep.c: Ditto.
679
43b2fdc7
DC
6802002-09-27 David Carlton <carlton@math.stanford.edu>
681
682 * config/djgpp/fnchange.lst: Add entries for
683 gdb/testsuite/gdb.c++/m-static files.
684
e8cfbbd9
JW
6852002-09-27 Jim Wilson <wilson@redhat.com>
686
687 * MAINTAINERS: Add myself to the Write After Approval list.
688
43b2fdc7 6892002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
690
691 * mips-tdep.c (find_proc_desc): Initialize startaddr.
692
693
9f3b7f07
AC
6942002-09-26 Andrew Cagney <ac131313@redhat.com>
695
696 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
697 frame.
698
11269d7e
AC
6992002-09-26 Andrew Cagney <ac131313@redhat.com>
700
701 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
702 (rs6000_struct_return_address): Delete variable.
703 (rs6000_store_struct_return): Update.
704 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
705 deprecated_extract_struct_value_address.
706 (rs6000_frame_align): New function.
707 (rs6000_gdbarch_init): Set frame_align.
708
f15ab4a7
AC
7092002-09-26 Andrew Cagney <ac131313@redhat.com>
710
711 From Grace Sainsbury <graces@redhat.com>:
712 * Makefile.in (gdbtk-main.o): New target.
713 (gdb.o): New target.
714 (main_h): Define.
715 (main.o): Update dependencies.
716 (gdb$(EXEEXT)): Add gdb.o.
717 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
718 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
719 (SUBDIR_GDBTK_CLEAN): Set.
720 (install-gdbtk): Install the insight binary.
721 (uninstall-gdbtk): New target.
722 (all-gdbtk, clean-gdbtk): New rule.
723 * top.c (use_windows): Default to zero.
724 * main.c: Include "main.h".
725 (main): Delete.
726 (struct captured_main_args): Delete.
727 (gdb_main): New function.
728 * main.h: New file.
729 * gdb.c: New File.
730
e36180d7
AC
7312002-09-25 Andrew Cagney <cagney@redhat.com>
732
733 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
734 (frame_map_regnum_to_name): New function.
735 (frame_map_name_to_regnum): New function.
736 * frame.h (frame_map_name_to_regnum): Declare.
737 (frame_map_regnum_to_name): Declare.
738 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
739 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
740 * parse.c: Do not include "builtin-regs.h".
741 (target_map_name_to_register): Delete function.
742 (write_dollar_variable): Use frame_map_name_to_regnum.
743 * parser-defs.h (target_map_name_to_register): Delete declaration.
744 * expprint.c: Include "frame.h".
745 (print_subexp): Use frame_map_regnum_to_name.
746 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
747 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
748
8b69000d
AC
7492002-09-25 Andrew Cagney <ac131313@redhat.com>
750
751 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
752 wasn't saved, and the next innermost frame is a dummy, return the
753 dummy frame's link register.
754
046ca86a
JB
7552002-09-24 Jim Blandy <jimb@redhat.com>
756
757 Fix from Paul Breed:
758 * main.c (captured_main): Add a `break' after the case for 'b'.
759
94b66fa7
KS
7602002-09-24 Keith Seitz <keiths@redhat.com>
761
762 * varobj.c (c_type_of_child): Use get_target_type instead
763 of TYPE_TARGET_TYPE.
764
c214a6fd
FN
7652002-09-22 Fernando Nasser <fnasser@redhat.com>
766
53cb0458
FN
767 * source.c (get_current_or_default_source_symtab_and_line): Remove
768 function.
769 (set_default_source_symtab_and_line): New function. Attempts to
770 determine a source file to list lines from if one is not currently
771 defined.
772 (get_current_source_symtab_and_line): Initialize sal.pc and
773 sal.end fields.
774 (set_current_source_symtab_and_line): Mark argument as const.
775 * source.h: Update declarations and comments.
776 * linespec.c (decode_line_1): Replace call to removed routine above.
777 * stack.c (print_frame_info_base): Ditto.
778 * cli/cli-cmds.c (edit_command): Ditto.
779 (list_command): Ditto.
780
7812002-09-22 Fernando Nasser <fnasser@redhat.com>
782
d6020d45 783 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 784 sal.pc and sal.end fields.
c214a6fd
FN
785 (get_current_or_default_source_symtab_and_line): Ditto.
786 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
787 so we do not cause a new source symtab to be searched for (reverting an
788 unintentional change from the 2002-09-20 patch).
789 * scm-lang.c (scm_unpac): Ditto.
790
cc3b68a5
AC
7912002-09-21 Andrew Cagney <cagney@redhat.com>
792
793 * complaints.c (symfile_explanations): Remove new-line from
794 ``isolated_message''.
795 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
796 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
797
5835abe7
NC
7982002-09-20 Nick Clifton <nickc@redhat.com>
799
800 * NEWS: Announce that V850EA ISA is no longer supported.
801 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
802
a15ef5f5
DC
8032002-09-20 David Carlton <carlton@math.stanford.edu>
804
06ba1b39
DC
805 * Makefile.in (c-lang.o): Correct dependencies.
806 (utils.o): Gather dependencies.
807 (charset.o): Move.
a15ef5f5
DC
808 * c-lang.c: #include "gdb_string.h"
809
87885426
FN
8102002-09-20 Fernando Nasser <fnasser@redhat.com>
811
812 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
813 * cli/cli-cmds.c (list_command): New function. Implements the new
814 cli edit command.
815 (_init_cli_cmds): Add new command definition.
816 * gdb.1: Document edit command.
817 * doc/gdb.texinfo: Document edit command.
818
8192002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
820
821 * source.c: Make global variables current_source_symtab and
822 current_source_line static.
823 (list_command): Moved to cli/cli-cmds.c.
824 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
825 (get_first_line_listed): New accessor function.
826 (get_lines_to_list): New accessor function.
827 (get_current_source_symtab_and_line): New function. Retrieves the
828 position in the source code that we consider current.
829 (get_current_or_default_source_symtab_and_line): New function.
830 Like the above but attempts to determine a default position if one
831 is not currently defined.
832 (set_current_source_symtab_and_line): New function. Sets the source
833 code position considered current and returns the previously set one.
834 (clear_current_source_symtab_and_line): Reset stored information about
835 a current source line.
836 (_initialize_source): Remove registration for the "list" command and
837 its alias.
838 * source.h: Add declarations for the new functions above.
839 * symtab.h: Remove declarations for the global variables mentioned
840 above.
841 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
842 obtain current source line.
843 * linespec.c (decode_line_1): Ditto.
844 * macroscope.c (default_macro_scope): Ditto.
845 * scm-lang.c (scm_unpac): Ditto.
846 * stack.c (print_frame_info_base): Ditto.
847 * symfile.c (clear_symtab_users): Ditto.
848 * symtab.c (decode_line_spec): Ditto.
849 * cli/cli-cmds.c (list_command): Moved here from source.c.
850 (ambiguous_line_spec): Moved here from source.c.
851 (_init_cli_cmds): Add definition for "list" and its alias.
852 * Makefile.in: Update dependencies.
853
ddd216ea
CV
8542002-09-20 Corinna Vinschen <vinschen@redhat.com>
855
856 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
857 with what gcc thinks is correct.
858
6d305052
CV
8592002-09-20 Corinna Vinschen <vinschen@redhat.com>
860
861 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
862 multiple register push instruction.
863
234b45d4
KB
8642002-09-19 Jim Blandy <jimb@redhat.com>
865
866 Add support for distinct host and target character sets.
867 * charset.c, charset.h: New files.
868 * c-exp.y: #include "charset.h".
869 (yylex): Convert character and string literals to the target
870 character set, before returning them as the semantic value of the
871 token.
872 * c-lang.c: #include "charset.h".
873 (c_emit_char): Use charset-specific methods to recognize
874 characters with backslash escape forms, to decide which characters
875 to print literally and which to print using numeric escape
876 sequences, and to convert target characters to host characters
877 before printing.
878 * utils.c: #include "charset.h".
879 (no_control_char_error): New function.
880 (parse_escape): Use charset-specific methods to recognize
881 backslash escapes, parse `control character' notation, and convert
882 characters from the host character set to the target character set.
883 * configure.in: Set the default host character set.
884 Check where to find iconv, and what its argument types might be.
885 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
886 * Makefile.in (SFILES): List charset.c.
887 (COMMON_OBS): List charset.o.
888 (charset.o): New rule.
889 (charset_h): New header dependency variable.
890 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
891 (LIBICONV): New variable, set by configure.
892 (CLIBS): Include $(LIBICONV) here.
893 * aclocal.m4, config.in, configure: Regenerated.
894
525d6a61
JB
8952002-09-19 Joel Brobecker <brobecker@gnat.com>
896
897 * ada-exp.y: Add missing semicolons to end rules. Fixes a
898 bison 1.35 warning.
899
3ed93867
RE
9002002-09-19 Richard Earnshaw <rearnsha@arm.com>
901
902 * gdb_mbuild.sh: New file.
903
437666f8
AC
9042002-09-19 Andrew Cagney <ac131313@redhat.com>
905
906 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
907
389e51db
AC
9082002-09-18 Andrew Cagney <ac131313@redhat.com>
909
910 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
911 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
912 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
913 valops.c, value.h: Revert previous change.
914
3b4efeaa
MS
9152002-09-18 Michael Snyder <msnyder@redhat.com>
916
917 Preliminary support for Objective-C:
918 * defs.h (language_objc): New enum value.
919 (puts_filtered_tabular): Declaration only, exported from utils.c.
920 (skip_quoted): Delete, declared in completer.h.
921 * c-exp.y: Include completer.h.
922 * p-exp.y: Ditto.
923 * jv-exp.y: Ditto.
924 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
925 New operator enum values.
926 * language.h (CAST_IS_CONVERSION): Test for language_objc.
927 * language.c (binop_result_type): Handle language_objc case.
928 (integral_type, character_type, string_type, boolean_type,
929 structured_type, binop_type_check): Ditto.
930 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
931 (struct objc_specific): Add to general_symbol_info.
932 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
933 (SYMBOL_DEMANGLED_NAME): Handle objc case.
934 * parser-defs.h (struct objc_class_str): New struct type.
935 (start_msglist, end_msglist, add_msglist): Declaration only,
936 exported from objc-lang.c.
937 * value.h (value_of_local, value_nsstring,
938 call_function_by_hand_expecting_type): Exported from valops.c.
939 * valops.c (find_function_addr): Export.
940 (call_function_by_hand_expecting_type): New function.
941 (value_of_local): New function.
942 * symfile.c (init_filename_language_table): Add ".m" extension
943 for Objective-C.
944 * utils.c (puts_filtered_tabular): New function.
945 (fprintf_symbol_filtered): Add objc demangling support (disabled).
946 (set/show demangle): Extend help-string to refer to ObjC.
947 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
948 * stabsread.c (symbol_reference_defined): Objective-C symbols
949 may contain colons: make allowances when scanning stabs strings
950 for colons.
951 (objc_find_colon): New function.
952 * printcmd.c (address_info): If language == objc then print
953 "self" instead of "this".
954 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
955 OP_NSSTRING, and OP_SELF.
956 (prefixify_subexp): Ditto.
957 * source.c (print_source_lines): Mention objc in comment.
958 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
959 method names.
960
b9caf505
AC
9612002-09-18 Andrew Cagney <ac131313@redhat.com>
962
963 * complaints.h: Update copyright.
964 (struct complaints): Declare.
965 (struct complaint): Make `message' constant.
966 (internal_complaint): Declare.
967 (complaint): Declare.
968 (complaint_root): Delete declaration.
969 (symfile_complaints): Delete declaration.
970 (struct complaints): Add opaque declaration.
971 (clear_complaints): Add a complaints parameter.
972 * complaints.c: Update copyright.
973 (enum complaint_series): Define.
974 (complaint_root): Delete.
975 (struct complaints): Define.
976 (complaint_sentinel, symfile_complaint_book): New variables.
977 (symfile_explanations, symfile_complaints): New variables.
978 New variables.
979 (get_complaints): New function.
980 (vcomplaint): New function.
981 (complaint): New function.
982 (internal_complaint): New function.
983 (complain): Call vcomplain with symfile_complaint.
984 (clear_complaints): Rewrite.
985 (_initialize_complaints): Use add_setshow_command.
986 * Makefile.in (complaints.o): Update dependencies.
987 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
988 to call to clear_complaints.
989 (new_symfile_objfile, reread_symbols): Ditto.
990 (oldsyms_complaint): Delete.
991 (empty_symtab_complaint, unknown_option_complaint): Delete.
992 (free_named_symtabs): Use complaint instead of complain.
993
d2e6263c
MS
9942002-09-18 Michael Snyder <msnyder@redhat.com>
995
5fb2031a
AC
996 Contributed by Apple Computer, Inc. Merged with current sources
997 by Adam Fedor <fedor@doc.com> [cagney].
998
d2e6263c
MS
999 * objc-lang.c: First clean-up round: comments, indentation.
1000 * objc-lang.h: Ditto.
1001 * objc-lang.y: Ditto.
1002
dec43320
AC
10032002-09-18 Andrew Cagney <ac131313@redhat.com>
1004
1005 * maint.c (maintenance_internal_error): Print the parameter as the
1006 error message.
1007 (maintenance_internal_warning): New function.
1008 (_initialize_maint_cmds): Add command `maint internal-warning'.
1009
1010 * defs.h (internal_warning, internal_vwarning): Declare.
1011 * utils.c (struct internal_problem): Define.
1012 (internal_vproblem): New function.
1013 (internal_warning): New function.
1014 (internal_vwarning): New function.
1015 (internal_warning_problem, internal_error_problem): New variables.
1016 (internal_verror): Just call internal_vproblem.
1017
b81654f1
MS
10182002-09-18 Michael Snyder <msnyder@redhat.com>
1019
1020 * objc-lang.c: New file, support for Objective-C.
1021 Preliminary check-in, not yet integrated into gdb.
1022 * objc-lang.h: New file.
1023 * objc-exp.y: New file.
1024
0542c381
AC
10252002-09-18 Andrew Cagney <ac131313@redhat.com>
1026
7bda5e4a
AC
1027 * infrun.c (signal_stop_update): Convert definition to ISO C.
1028 (signal_print_update): Ditto.
1029 (signal_pass_update): Ditto.
1030 * inflow.c (terminal_save_ours): Ditto.
1031
5247b418
AC
1032 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1033 comments.
1034
fc60962c
AC
1035 * config/djgpp/fnchange.lst: Handle name clashes between
1036 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1037 bfd/coff-tic80.c.
1038
0542c381
AC
1039 * i386-linux-tdep.h: Fix tipo.
1040
5b924b9b
AF
10412002-09-18 Adam Fedor <fedor@gnu.org>
1042
1043 * MAINTAINERS: Add myself to the Write After Approval list.
1044
5afc051b
JB
10452002-09-18 Jim Blandy <jimb@redhat.com>
1046
1047 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1048 texthigh and textlow to reader-specific structs caused
1049 objfile_relocate to miss them. This is fixable, but the work that
1050 the change was supposed to prepare GDB for never got done anyway.
1051
eb944380
DC
10522002-09-18 David Carlton <carlton@math.stanford.edu>
1053
1054 * MAINTAINERS: Alphabetize Write After Approval list.
1055
948e66d9
DJ
10562002-09-18 Daniel Jacobowitz <drow@mvista.com>
1057
1058 Fix PR gdb/709
1059 * values.c (value_static_field): Call read_var_value.
1060
dc604539
AC
10612002-09-18 Andrew Cagney <ac131313@redhat.com>
1062
1063 * valops.c (hand_function_call): Align the initial stack pointer
1064 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1065 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1066 return value.
1067 * mips-tdep.c (mips_frame_align): New function.
1068 (mips_gdbarch_init): Set frame_align.
1069 * gdbarch.sh (FRAME_ALIGN): New method.
1070 * gdbarch.h, gdbarch.c: Re-generate.
1071
cb7e422f
ML
10722002-09-18 Michal Ludvig <mludvig@suse.cz>
1073
1074 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1075 registers.
1076
a094c6fb
AC
10772002-09-17 Andrew Cagney <ac131313@redhat.com>
1078
1079 * NEWS: Mention that MIPS $fp behavior changed.
1080 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1081 reference to FP_REGNUM.
1082 (mipsnbsd_cannot_store_register): Ditto.
1083 * mips-linux-nat.c: Update copyright.
1084 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1085 (mips_linux_cannot_store_register): Ditto.
1086 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1087 * config/mips/tm-mips.h: Update copyright.
1088 (FP_REGNUM): Delete macro.
1089 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1090 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1091 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1092 (mips_r3041_reg_names, mips_r3051_reg_names)
1093 (mips_r3081_reg_names): Replace "fp" with "".
1094 Fix PR gdb/480.
1095
45cf40d1
TR
10962002-09-17 Theodore A. Roth <troth@verinet.com>
1097
1098 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1099 generic_read_register_dummy() (PR gdb/703).
1100 (avr_push_return_address): #if 0 out unused vars.
1101 (avr_gdbarch_init): Enable use of avr_push_return_address().
1102
c7e701b5
MS
11032002-09-17 Michael Snyder <msnyder@redhat.com>
1104
d76ba2a5 1105 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1106 RTE will take care of it.
1107
20bcf01c
AC
11082002-09-17 Andrew Cagney <ac131313@redhat.com>
1109
1110 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1111 invalid, return SP_REGNUM.
1112
009a9971 11132002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1114
1115 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1116 point registers without sign extension.
1117
135c175f
AC
11182002-09-17 Andrew Cagney <cagney@redhat.com>
1119
1120 * blockframe.c (deprecated_read_register_dummy): Rename
1121 generic_read_register_dummy.
1122 * frame.c (frame_unwind_signed_register): New function.
1123 (frame_unwind_unsigned_register): New function.
1124 * frame.h (frame_unwind_signed_register): Declare.
1125 (frame_unwind_unsigned_register): Declare.
1126 (deprecated_read_register_dummy): Rename
1127 generic_read_register_dummy.
1128
1129 * h8300-tdep.c (h8300_frame_chain): Update.
1130 (h8300_frame_saved_pc): Update.
1131 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1132 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1133 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1134 (s390_frame_chain): Update.
1135 * v850-tdep.c (v850_find_callers_reg): Update.
1136 (v850_frame_saved_pc): Update.
1137 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1138 (m32r_find_callers_reg): Update.
1139 (m32r_frame_saved_pc): Update.
1140 * sh-tdep.c (sh_find_callers_reg): Update.
1141 (sh64_get_saved_pr): Update.
1142 (sh_init_extra_frame_info): Update.
1143 (sh_init_extra_frame_info): Update.
1144 (sh64_init_extra_frame_info): Update.
1145 (sh64_init_extra_frame_info): Update.
1146 * mcore-tdep.c (mcore_find_callers_reg): Update.
1147 (mcore_frame_saved_pc): Update.
1148 (mcore_init_extra_frame_info): Update.
1149 * i386-tdep.c (i386_frame_saved_pc): Update.
1150 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1151 (ia64_init_extra_frame_info): Update.
1152 (ia64_init_extra_frame_info): Update.
1153 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1154 * cris-tdep.c (cris_init_extra_frame_info): Update.
1155 * avr-tdep.c (avr_frame_chain): Update.
1156 (avr_init_extra_frame_info): Update.
1157 (avr_frame_saved_pc): Update.
1158 * arm-tdep.c (arm_find_callers_reg): Update.
1159 (arm_init_extra_frame_info): Update.
1160 (arm_frame_saved_pc): Update.
1161
a741e514
TT
11622002-09-17 Tom Tromey <tromey@redhat.com>
1163
1164 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1165 is "'".
1166
d1a8e808
CV
11672002-09-17 Corinna Vinschen <vinschen@redhat.com>
1168
1169 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1170 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1171 NEXT_PROLOGUE_INSN.
1172 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1173 NEXT_PROLOGUE_INSN.
1174
d9025a18
JB
11752002-09-16 Joel Brobecker <brobecker@gnat.com>
1176
1177 * osfsolib.c: Remove file, replaced by solib-osf.c.
1178 * Makefile.in: Remove compilation rules for osfsolib.c.
1179
1b2ef1b6
DC
11802002-09-16 David Carlton <carlton@math.stanford.edu>
1181
1182 * cp-valprint.c (cp_print_class_method): Correct args to
1183 check_stub_method_group.
1184
928e48af
CV
11852002-09-16 Corinna Vinschen <vinschen@redhat.com>
1186
1187 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1188 `set architecture'. Unify naming convention of functions.
1189 (h8300_skip_prologue): Improve prologue analysis.
1190 (h8300_push_arguments): Rewritten to more closely match GCC's
1191 bizarre argument-passing behavior, along with the comment describing
1192 said behavior.
1193 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1194 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1195 sim, remote-e7000.c, remote-hms.c and remote.c
1196
5e3397bb
MK
11972002-09-15 Mark Kettenis <kettenis@gnu.org>
1198
1199 * i386-tdep.c (gdb_print_insn_i386): Removed.
1200 (i386_print_insn): New function.
1201 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1202 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1203 tm_print_insn_info.
1204
f710f4fc
MK
12052002-09-14 Mark Kettenis <kettenis@gnu.org>
1206
1207 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1208 zero.
1209
db54fef4
CV
12102002-09-14 Corinna Vinschen <vinschen@redhat.com>
1211
1212 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1213 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1214 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1215
2becadee
CF
12162002-09-13 Christopher Faylor <cgf@redhat.com>
1217
1218 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1219
de17c821
DJ
12202002-09-13 Daniel Jacobowitz <drow@mvista.com>
1221
1222 * gdbtypes.c (check_stub_method): Make static.
1223 (check_stub_method_group): New function.
1224 * gdbtypes.h: Update prototypes.
1225 * cp-support.c: New file.
1226 * cp-support.h: New file.
1227
1228 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1229 (update_method_name_from_physname): New function.
1230 (read_member_functions): Correct method names for operators
1231 and v3 constructors/destructors. Separate v2 constructors and
1232 destructors.
1233 * Makefile.in (stabsread.o): Update dependencies.
1234 (SFILES): Add cp-support.c.
1235 (COMMON_OBS): Add cp-support.o.
1236 (cp_support_h, cp-support.o): Add.
1237
1238 * cp-valprint.c (cp_print_class_method): Call
1239 check_stub_method_group instead of check_stub_method. Remove
1240 extraneous QUITs.
1241 * p-valprint.c (pascal_object_print_class_method): Likewise.
1242 * valops.c (search_struct_method): Likewise.
1243 (find_method_list, value_struct_elt_for_reference): Likewise.
1244
e76cff22
AC
12452002-09-13 Andrew Cagney <cagney@redhat.com>
1246
1247 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1248 * gdbarch.h, gdbarch.c: Regenerate.
1249
905abb3f
AC
12502002-09-13 Andrew Cagney <ac131313@redhat.com>
1251
1252 * frame.c (find_saved_register): Delete function.
1253 * frame.h (find_saved_register): Delete declaration.
1254 Fix PR gdb/631.
1255
64159455
AC
1256Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1257
1258 * mips-tdep.c (read_next_frame_reg): Re-hack using
1259 frame_register_unwind.
1260
795e1e11
AC
1261Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1262
1263 * mips-tdep.c (mips_get_saved_register): Re-hack using
1264 frame_register_unwind.
1265
5720643c
JB
12662002-09-12 Joel Brobecker <brobecker@gnat.com>
1267
1268 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1269 vector. Will be useful for Interix.
1270 * gdbarch.h, gdbarch.c: Regenerate.
1271
1272 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1273 name of the malloc function by NAME_OF_MALLOC.
1274
3bada2a2
JB
12752002-09-12 Joel Brobecker <brobecker@gnat.com>
1276
1277 * value.h (find_function_in_inferior): Add const keyword to
1278 one of the parameters. Allows us to invoke this function with
1279 a const char *.
1280 * valops.c (find_function_in_inferior): Likewise.
1281
3db26b01
JB
12822002-09-12 Joel Brobecker <brobecker@gnat.com>
1283
1284 * exec.c (xfer_memory): Fix compilation warning with old versions
1285 of GCC.
1286 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1287
17c5ed2c
DC
12882002-09-12 David Carlton <carlton@math.stanford.edu>
1289
1290 * symtab.h: Run through gdb_indent.h.
1291 Add 2002 to Copyright year list.
1292
ecd1107e
AM
12932002-09-12 Alan Modra <amodra@bigpond.net.au>
1294
1295 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1296 mach constants.
1297 * MAINTAINERS: Add myself to write after approval list.
1298
e64f66d1
JB
12992002-09-11 J. Brobecker <brobecker@gnat.com>
1300
1301 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1302
f9395794
JB
13032002-09-11 J. Brobecker <brobecker@gnat.com>
1304
1305 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1306 Interix.
1307
1a303dec
MS
13082002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1309
1310 * procfs.c (do_detach): Clear current signal, not just fault.
1311 Corrects problem with breakpoint trap signal leaking to detached
1312 process on Tru64.
1313
c0219d42
MS
13142002-09-10 Michael Snyder <msnyder@redhat.com>
1315
1316 * buildsym.c (finish_block): Protect against null pointer.
1317
9d84ac84
AC
13182002-09-10 Andrew Cagney <cagney@redhat.com>
1319
1320 * infcmd.c (default_print_registers_info): Send all output to
1321 ``file'' instead of ``gdb_stdout''.
1322
77d8f2b4
MS
13232002-09-10 Michael Snyder <msnyder@redhat.com>
1324
1325 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1326 LONGEST, and use signed register read (addresses are sign-
1327 extended for mips).
1328
99656a61
SC
13292002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1330
1331 * event-loop.c (gdb_do_one_event): Make public.
1332 * event-loop.h (gdb_do_one_event): Declare.
1333
da12f4d8
JL
13342002-09-10 Jeff Law <law@redhat.com>
1335
1336 * infttrace.c (child_resume): Simplify and rework to avoid
1337 TT_PROC_CONTINUE.
1338
d0aee0c4
FF
13392002-09-09 Fred Fish <fnf@intrinsity.com>
1340
1341 * printcmd.c (print_scalar_formatted): "len" is the number of
1342 target bytes, NOT the number of target bits.
1343
7cb3ec5e
EZ
13442002-09-09 Elena Zannoni <ezannoni@redhat.com>
1345
1346 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1347 * top.c (init_main): Set rl_terminal_name.
1348
4dc81987
AS
13492002-09-08 Aidan Skinner <aidan@velvet.net>
1350
1351 * ada-lang.c (ada_array_bound, ada_type_match,
1352 _initialize_ada_language): Fix K&R definitions.
1353 * ada-tasks.c (get_current_task): Fix K&R definitions.
1354 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1355
842330b4
CF
13562002-09-07 Christopher Faylor <cgf@redhat.com>
1357
1358 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1359 Add XP.
1360
43156d82
MK
13612002-09-06 Mark Kettenis <kettenis@gnu.org>
1362
66da5fd8
MK
1363 * i386-tdep.c (i386_register_virtual_type,
1364 i386_register_convertible, i386_register_convert_to_virtual,
1365 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1366 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1367 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1368 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1369 Don't set push_arguments twice.
1370
4b218c18
MK
1371 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1372 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1373 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1374 sigtramp_end to NULL.
1375 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1376 defines.
1377 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1378
4cc314d5
MK
1379 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1380 whitespace.
1381
43156d82
MK
1382 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1383 * gdbarch.h, gdbarch.c: Re-generate.
1384 * blockframe.c (find_pc_sect_partial_function): Convert to use
1385 SIGTRAMP_START_P predicate.
1386
6672060b
MS
13872002-09-05 Michael Snyder <msnyder@redhat.com>
1388
a90c3637
MS
1389 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1390 generic_dummy_frame method and old method. Also distinguish
1391 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1392 (arm_extract_return_value): Use new regcache method.
a90c3637 1393
6672060b
MS
1394 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1395 adjustment that doesn't conform to the ABI.
1396 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1397 saved regcache, not from current regcache.
1398
299ffc64
AC
13992002-09-05 Andrew Cagney <ac131313@redhat.com>
1400
1401 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1402 * README: Update.
1403
a3a2ee65
JT
14042002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1405
1406 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1407 if arm_apcs_32 is false.
1408
2bc7eea9
AC
14092002-09-04 Andrew Cagney <ac131313@redhat.com>
1410
1411 GDB 5.3 branch created.
1412
8a55a7c5
TR
14132002-09-03 Theodore A. Roth <troth@verinet.com>
1414
1415 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1416 generic_unwind_get_saved_register.
1417
e26fb1d7
DC
14182002-09-03 David Carlton <carlton@math.stanford.edu>
1419
1420 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1421 argument (PR gdb/653). Update call to smash_to_method_type.
1422 (read_structure_scope): Update call to dwarf2_add_member_fn.
1423
30d52491
ML
14242002-09-03 Michal Ludvig <mludvig@suse.cz>
1425
1426 * x86-64-linux-tdep.c: Include gdb_string.h
1427 * x86-64-linux-nat.c: Ditto.
1428
06891d83
JT
14292002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1430
1431 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1432 when YYDEBUG is set to 1.
1433 * c-exp.y: Likewise.
1434 * f-exp.y: Likewise.
1435 * jv-exp.y: Likewise.
1436 * m2-exp.y: Likewise.
1437 * p-exp.y: Likewise.
1438
7d400e77
JT
14392002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1440
1441 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1442 dependency list.
1443 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1444 solib_svr4_fetch_link_map_offsets to
1445 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1446 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1447 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1448 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1449 solib-svr4.o, and solib-legacy.o.
1450 * config/i386/tm-nbsd.h: Include solib.h.
1451
704a27c4
JT
14522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1453
1454 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1455 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1456 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1457 comment noting that this needs its own target configuration.
1458 * config/i386/nbsd.mt: New file.
1459 * config/i386/nbsdaout.mt: Remove.
1460 * config/i386/nbsdelf.mt: Ditto.
1461 * config/i386/tm-nbsdaout.h: Ditto.
1462
d66198e1
JT
14632002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1464
1465 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1466 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1467 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1468 tdep->sigtramp_end.
1469 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1470 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1471 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1472
3cac699e
JT
14732002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1474
1475 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1476 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1477 * i386-tdep.h (i386bsd_init_abi): New prototype.
1478 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1479 function declaration.
1480 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1481 for NetBSD-a.out or NetBSD-ELF.
1482 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1483 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1484 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1485 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1486 and nbsd-tdep.h.
1487 (i386nbsd_pc_in_sigtramp): New function.
1488 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1489 i386nbsd_pc_in_sigtramp.
1490 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1491 and i386nbsdelf_init_abi OS ABI handlers.
1492 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1493 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1494
7010ca0a
MK
14952002-09-02 Mark Kettenis <kettenis@gnu.org>
1496
1497 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1498 registers if the target really has them.
1499
6dd93b72
JT
15002002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1501
1502 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1503 than nbsd-tdep.h.
1504
2ca8ae21
JT
15052002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1506
1507 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1508 list.
1509 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1510 (alphanbsd_skip_sigtramp_frame): New functions.
1511 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1512 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1513 to alphanbsd_sigcontext_addr.
1514
3d9b49b0
JT
15152002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1516
1517 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1518 list.
1519 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1520 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1521 nbsd_pc_in_sigtramp.
1522 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1523 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1524 * nbsd-tdep.c: Include gdb_string.h.
1525 (nbsd_pc_in_sigtramp): New function.
1526 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1527 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1528 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1529 ppcnbsd_pc_in_sigtramp.
1530 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1531 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1532 shnbsd_pc_in_sigtramp.
1533 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1534 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1535 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1536
c860120c
PM
15372002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1538
1539 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1540 watchpoints to NULL.
1541 (insert_breakpoints): set val field of watchpoints if NULL.
1542
1543
c7612d53
JB
15442002-08-29 Jim Blandy <jimb@redhat.com>
1545
1546 * symtab.c (lookup_symbol_aux): In the cases where we find a
1547 minimal symbol of an appropriate name and use its address to
1548 select a symtab to read and search, use `name' (as passed to us)
1549 as the demangled name when searching the symtab's global and
1550 static blocks, not the minsym's name.
1551
66609862
KS
15522002-08-29 Keith Seitz <keiths@redhat.com>
1553
1554 * stack.c (print_frame_info_base): Always set current_source_symtab
1555 and current_source_line.
1556
151fefe2
JB
15572002-08-29 Donn Terry <donnte@microsoft.com>
1558
1559 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1560
bfb3754e
KS
15612002-08-28 Keith Seitz <keiths@redhat.com>
1562
1563 * stack.c (select_frame): Add FIXME concerning selected-frame
1564 events.
1565 (select_frame_command): Send selected-frame-level-changed
1566 event notification, but only if the level actually changed.
1567 (up_silently_base): Add selected-frame-level-changed event
1568 notification.
1569 (down_silently_base): Likewise.
1570
e822a2a0
AC
15712002-08-28 Andrew Cagney <ac131313@redhat.com>
1572
1573 * Makefile.in: Update dependencies for all gdb/*.c files.
1574
309367d4
TT
15752002-08-27 Tom Tromey <tromey@redhat.com>
1576
1577 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1578 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1579 Update dependencies.
1580 * i387-tdep.c: Include gdb_string.h.
1581 * osabi.c: Likewise.
1582 * i386-linux-nat.c: Likewise.
1583 * lin-lwp.c: Likewise.
1584 * ax-gdb.c: Likewise.
1585 * signals/signals.c: Likewise.
1586 * jv-valprint.c: Likewise.
1587 * p-lang.c: Likewise.
1588 * c-valprint.c: Likewise.
1589 * cp-abi.c: Likewise.
1590
e1507482
EZ
15912002-08-27 Elena Zannoni <ezannoni@redhat.com>
1592
1593 * cli/cli-script.h (copy_command_lines): Export.
1594 * breakpoint.c: Include cli/cli-script.h.
1595 * Makefile.in (breakpoint.o): Update dependencies.
1596
c6510018
MS
15972002-08-26 Michael Snyder <msnyder@redhat.com>
1598
1599 * breakpoint.c (insert_breakpoints): Protect all references
1600 to 'process_warning'. Shorten long lines.
1601
c2b8ed2c
MS
16022002-08-26 Joel Brobecker <brobecker@gnat.com>
1603
1604 * cli/cli-script.c (copy_command_lines): New function.
1605 * defs.h (copy_command_lines): Export.
1606 * testsuite/gdb.base/commands.exp: New tests for commands
1607 attached to a temporary breakpoint, and for commands that
1608 delete the breakpoint they are attached to.
1609
16102002-08-26 Michael Snyder <msnyder@redhat.com>
1611
1612 * breakpoint.c (bpstat_stop_status): Instead of copying the
1613 pointer to the breakpoint commands struct, make a new copy
1614 of the struct and point to that.
1615 (bpstat_clear): Free the commands struct.
1616 (bpstat_clear_actions): Free the commands struct.
1617 (bpstat_do_actions): Free the command actions. Also execute
1618 the local cleanups, instead of deleting them.
1619 (delete_breakpoint): Leave the commands field of the bpstat
1620 chain alone -- it will be freed later.
1621
64b84175
KB
16222002-08-26 Kevin Buettner <kevinb@redhat.com>
1623
1624 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1625 deleted in 2002-08-20 commit. This function is still used by
1626 ppc-linux-nat.c.
1627
55970da6
KS
16282002-08-26 Keith Seitz <keiths@redhat.com>
1629
1630 * gdb-events.sh: Add selected-frame-level-changed event.
1631 * gdb-events.c: Regenerated.
1632 * gdb-events.h: Regenerated.
1633
a790ad35
SC
16342002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1635
1636 Fix PR gdb/393:
1637 * inflow.c (terminal_save_ours): New function to save terminal
1638 settings.
1639 * inferior.h (terminal_save_ours): Declare.
1640 * target.c (debug_to_terminal_save_ours): New function.
1641 (cleanup_target): Defaults to_terminal_save_ours.
1642 (update_current_target): Inherit to_terminal_save_ours.
1643 (setup_target_debug): Set to_terminal_save_ours.
1644 * target.h (target_terminal_save_ours): New to save terminal settings.
1645 (target_ops): New member to_terminal_save_ours.
1646 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1647 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1648 * inftarg.c (init_child_ops): Likewise.
1649 * m3-nat.c (init_m3_ops): Likewise.
1650 * procfs.c (init_procfs_ops): Likewise.
1651 * wince.c (init_child_ops): Likewise.
1652 * win32-nat.c (init_child_ops): Likewise.
1653 * sol-thread.c (init_sol_thread_ops): Likewise.
1654
c00dcbe9
MK
16552002-08-26 Mark Kettenis <kettenis@gnu.org>
1656
3d7f4f49
MK
1657 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1658 use regcache_* functions.
1659 (i386_gdbarch_init): Set store_return_value instead of
1660 deprecated_store_return_value.
1661
c00dcbe9
MK
1662 * regcache.c (regcache_raw_write_signed,
1663 regcache_raw_write_unsigned): New functions.
1664 * regcache.h (regcache_raw_write_signed,
1665 regcache_raw_write_unsigned): New prototypes.
1666
0e0d15ca
AC
16672002-08-25 Andrew Cagney <ac131313@redhat.com>
1668
1669 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1670 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1671 source file dependencies. Cleanup corresponding generator rules.
1672
d3b22ed5
AC
16732002-08-25 Andrew Cagney <ac131313@redhat.com>
1674
1675 * regcache.h (register_offset_hack): Declare.
1676 (regcache_cooked_read_using_offset_hack): Declare.
1677 (regcache_cooked_write_using_offset_hack): Declare.
1678
1679 * regcache.c (register_offset_hack): New function.
1680 (regcache_cooked_read_using_offset_hack): New function.
1681 (regcache_cooked_write_using_offset_hack): New function.
1682 (regcache_dump): Check that the registers, according to their
1683 offset, are packed hard against each other.
1684 (cooked_xfer_using_offset_hack): New function.
1685
bb425013
AC
16862002-08-25 Andrew Cagney <ac131313@redhat.com>
1687
1688 * regcache.c (struct regcache_descr): Add field register_type.
1689 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1690 in as a parameter
1691 (init_regcache_descr): Initialize register_type. Pass the descr
1692 to init_legacy_regcache_descr. Use register_type instead of
1693 REGISTER_VIRTUAL_TYPE.
1694 (register_type): New function.
1695 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1696 * regcache.h (register_type): Declare.
1697
d0403e00
AC
16982002-08-25 Andrew Cagney <ac131313@redhat.com>
1699
1700 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1701 instead of deprecated_store_return_value. Fix fallout from
1702 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1703
0ed04cce
AC
17042002-08-25 Andrew Cagney <ac131313@redhat.com>
1705
1706 * regcache.c (max_register_size): New function.
1707 (init_legacy_regcache_descr): Ensure that max_register_size is
1708 large enough for REGISTER_VIRTUAL_SIZE.
1709 * regcache.h (max_register_size): Declare.
1710
46d79c04
AC
17112002-08-24 Andrew Cagney <ac131313@redhat.com>
1712
1713 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1714 store_return_value.
1715 (e500_extract_return_value): Change type of valbuf pointer to
1716 void.
1717
853c7bd0
MK
17182002-08-24 Mark Kettenis <kettenis@gnu.org>
1719
cd87e769
MK
1720 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1721 workaround.
1722
853c7bd0
MK
1723 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1724 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1725 long long) to prevent compiler warning on 64-bit systems.
1726
ebba8386
AC
17272002-08-23 Andrew Cagney <cagney@redhat.com>
1728
1729 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1730 (DEPRECATED_STORE_RETURN_VALUE): New method.
1731 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1732 * gdbarch.h, gdbarch.c: Re-generate.
1733
1734 * values.c (set_return_value): Pass current_regcache to
1735 STORE_RETURN_VALUE.
1736 * arch-utils.h (legacy_store_return_value): Declare.
1737 * arch-utils.c (legacy_store_return_value): New function.
1738 (legacy_extract_return_value): Update parameters.
1739
1740 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1741 STORE_RETURN_VALUE.
1742 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1743 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1744 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1745 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1746 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1747 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1748 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1749 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1750 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1751 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1752
1753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1754 * i386-tdep.c (i386_extract_return_value): Update.
1755 * arch-utils.c (legacy_extract_return_value): Update.
1756 * frv-tdep.c (frv_gdbarch_init): Update.
1757 * cris-tdep.c (cris_gdbarch_init): Update.
1758 * d10v-tdep.c (d10v_gdbarch_init): Update.
1759 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1760 * m68k-tdep.c (m68k_gdbarch_init): Update.
1761 * mcore-tdep.c (mcore_gdbarch_init): Update.
1762 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1763 * s390-tdep.c (s390_gdbarch_init): Update.
1764 * sparc-tdep.c (sparc_gdbarch_init): Update.
1765 * sh-tdep.c (sh_gdbarch_init): Update.
1766 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1767 * v850-tdep.c (v850_gdbarch_init): Update.
1768 * avr-tdep.c (avr_gdbarch_init): Update.
1769 * ia64-tdep.c (ia64_gdbarch_init): Update.
1770 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1771 * vax-tdep.c (vax_gdbarch_init): Update.
1772 * alpha-tdep.c (alpha_gdbarch_init): Update.
1773 * arm-tdep.c (arm_gdbarch_init): Update.
1774 * mips-tdep.c (mips_gdbarch_init): Update.
1775 * i386-tdep.c (i386_gdbarch_init): Update.
1776
5bd8c6d0
AC
17772002-08-23 Andrew Cagney <ac131313@redhat.com>
1778
1779 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1780 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1781
e73e1724
MK
17822002-08-24 Mark Kettenis <kettenis@gnu.org>
1783
1784 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1785 problems.
1786
3e6564e1
JB
17872002-08-23 Joel Brobecker <brobecker@gnat.com>
1788
1789 * infrun.c (handle_inferior_event): Move a comment outside of a
1790 function call, in order to avoid indent reformatting this part
1791 of the code in an unreadable way.
1792
81d0cc19
GS
17932002-08-23 Grace Sainsbury <graces@redhat.com>
1794
1795 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1796 when breakpoints fail. Move general breakpoint error messages to
1797 insert_breakpoints.
1798 * breakpoint.c (insert_breakpoints): Change warnings when
1799 breakpoints are nto inserted to specify the type. Remove call to
1800 memory_error when hardware breakpoints can't be inserted. Remove
1801 multiple calls to warning so all messages are sent to the user at
1802 once.
1803 (delete_breakpoints): Make insert error messsages more explicit.
1804
17574093
DJ
18052002-08-23 Daniel Jacobowitz <drow@mvista.com>
1806
1807 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1808 gdbserver/ChangeLog.
1809
8acc2935
MK
18102002-08-23 Mark Kettenis <kettenis@gnu.org>
1811
dfe01d39
MK
1812 * i386-tdep.c: Include "objfiles.h".
1813 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1814 skip_trampoline_code.
1815 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1816 (CPLUS_MARKER): Define to '.'.
1817
8acc2935
MK
1818 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1819 member.
1820 (linux_corefile_thread_callback): Increase args->num_notes.
1821 (linux_make_note_section): Initialize thread_args.num_notes, and
1822 use it to determine whether notes for any threads were created.
1823
151fefe2 18242002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1825
1826 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1827 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1828 and PCUNKILL.
1829 (write_with_trace): Conditionalize out the switch branch handling
1830 PCSHOLD if the corresponding macro is not defined. Likewise for
1831 PRSABORT and PRSTOP.
1832 This change will be needed by the Interix port.
1833
e1507482
EZ
18342002-08-22 Elena Zannoni <ezannoni@redhat.com>
1835
1836 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1837 write_register wherever possible instead of manipulating the
1838 register bytes directly.
1839 Assign VALUE_CONTENTS to a variable and use that.
1840 The GPR numbers are now dependent on the architecture.
1841
96ff0de4
EZ
18422002-08-22 Elena Zannoni <ezannoni@redhat.com>
1843
1844 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1845 ev_offset fields.
1846 (skip_prologue): Add support for BookE/e500 instructions.
1847 (e500_extract_return_value): New function.
1848 (frame_get_saved_regs): Add support for saving ev registers and
1849 pseudo gpr's.
1850 (e500_store_return_value): New function.
1851 (rs6000_gdbarch_init): Move up default intializations of
1852 deprecated_extract_return_value and store_return_value. Overwrite
1853 init of store_return_value with e500 specific version.
1854 Set extract_return_value for e500.
1855
fbefca5b
EZ
18562002-08-22 Elena Zannoni <ezannoni@redhat.com>
1857
1858 * blockframe.c (generic_call_dummy_register_unwind): Use
1859 regcache_cooked_read to catch cases in which the variable is
1860 stored in a pseudo register.
1861
4d210288
AC
18622002-08-22 Andrew Cagney <cagney@redhat.com>
1863
1864 * NEWS: Mention that the i960 has been made obsolete.
1865 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1866 i960-tdep.c
1867 (remote-nrom.o): Obsolete target.
1868 (remote-nindy.o, i960-tdep.o): Ditto.
1869 * remote-nrom.c: Make file obsolete.
1870 * remote-nindy.c, remote-vx960.c: Ditto.
1871 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1872 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1873 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1874 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1875 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1876 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1877 i960-*-vxworks* obsolete.
1878 * MAINTAINERS: Note that the i960 is obsolete.
1879
6c0c456d
CV
18802002-08-21 Corinna Vinschen <vinschen@redhat.com
1881
1882 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1883 detach to allow reinitialization.
1884
9f9d12b3
AC
18852002-08-22 Andrew Cagney <ac131313@redhat.com>
1886
1887 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1888 attempt).
1889
ebeb39fe
JB
18902002-08-22 Jim Blandy <jimb@redhat.com>
1891
1892 * coffread.c (coff_symfile_read): Don't try to read the line
1893 number table from disk if the image file doesn't have a symbol
1894 table; we'll never actually look at the info anyway, and Windows
1895 ships DLL's with bogus file offsets for the line number data.
1896
5bf1c677
EZ
18972002-08-21 Elena Zannoni <ezannoni@redhat.com>
1898
1899 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1900 an e500 executable.
1901
71b8ef93
MS
19022002-08-21 Michael Snyder <msnyder@redhat.com>
1903
1904 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1905 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1906 (DEFAULT_MIPS_TYPE): Delete unused macro.
1907 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1908 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1909
d174216d
JB
19102002-08-21 Jim Blandy <jimb@redhat.com>
1911
1912 * valops.c (value_cast): Simplify and correct logic for doing a
1913 static cast from a pointer to a base class to a pointer to a
1914 derived class.
1915
0ab7a791
AC
19162002-08-21 Andrew Cagney <ac131313@redhat.com>
1917
1918 * infcmd.c (default_print_registers_info): Replace
1919 do_registers_info.
1920 (registers_info): Use gdbarch_print_registers_info instead of
1921 DO_REGISTERS_INFO.
1922 * inferior.h (default_print_registers_info): Replace
1923 do_registers_info.
1924 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1925 (DO_REGISTERS_INFO): Change to a predicate function.
1926 * gdbarch.h, gdbarch.c: Regenerate.
1927
e23792cc
KS
19282002-08-21 Keith Seitz <keiths@redhat.com>
1929
1930 * gdb-events.sh: Add target-changed event.
1931 * gdb-events.c: Regenerated.
1932 * gdb-events.c: Regenerated.
1933 * valops.c (value_assign): Add target-changed event notification
1934 to inlval_register, lval_memory, and lval_reg_frame_relative.
1935
9fb14e79
JB
19362002-08-21 Joel Brobecker <brobecker@gnat.com>
1937
1938 * NEWS: Add an entry regarding the improvement of the next/step
1939 operation on Alpha Tru64 multi-processor machines.
1940
6d39a69f
AC
19412002-08-21 Andrew Cagney <ac131313@redhat.com>
1942
72acd513
AC
1943 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1944 directores.
342af04b 1945 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1946 * Makefile.in (install-gdbtk): Move to install section.
1947 (rdi-share/libangsd.a): Move to end of file.
1948
fa5f27c7
AC
19492002-08-19 Andrew Cagney <ac131313@redhat.com>
1950
1951 * frame.c (frame_register_unwind): When a register, set addrp to
1952 the register's byte.
1953
5a89d8aa
MS
19542002-08-20 Michael Snyder <msnyder@redhat.com>
1955
1956 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1957 used locally, so move them from the target machine header to here.
1958 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1959 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1960 Make static.
1961 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1962
822e978b
AC
19632002-08-20 Andrew Cagney <cagney@redhat.com>
1964
1965 * NEWS: Mention that the Apollo line was made obsolete.
1966 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1967 m68*-hp-hpux* obsolete.
1968 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1969 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1970 * buildsym.c (make_blockvector): Make static.
1971 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1972 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1973 (ALLDEPFILES): Remove dstread.c.
1974 (dstread.o): Obsolete make rule.
1975 * dstread.c: Makefile obsolete.
1976 * dst.h: Ditto.
1977 * config/m68k/hp300hpux.mt: Ditto.
1978 * config/m68k/hp300hpux.mh: Ditto.
1979 * config/m68k/hp300bsd.mt: Ditto.
1980 * config/m68k/hp300bsd.mh: Ditto.
1981 * config/m68k/apollo68b.mt: Ditto.
1982 * config/m68k/apollo68v.mh: Ditto.
1983 * config/m68k/apollo68b.mh: Ditto.
1984
e41b17f0
MS
19852002-08-20 Michael Snyder <msnyder@redhat.com>
1986
1987 * mips-tdep.c (mips_in_return_stub): Make static.
1988 (mips_gdbarch_init): Set in_solib_return_trampoline.
1989 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1990
d50355b6
MS
19912002-08-20 Michael Snyder <msnyder@redhat.com>
1992
1993 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1994 * gdbarch.c, gdbarch.h: Regenerate.
1995 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1996 Add.
1997 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1998
757a7cc6
MS
19992002-08-20 Michael Snyder <msnyder@redhat.com>
2000
2001 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2002 (mips_gdbarch_init): Set skip_trampoline_code,
2003 in_solib_call_trampoline.
2004 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2005 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2006
c8001721
EZ
20072002-08-20 Elena Zannoni <ezannoni@redhat.com>
2008
2009 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2010
2011 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2012 vector type for ev registers.
2013 (e500_pseudo_register_read): New function.
2014 (e500_pseudo_register_write): New function.
2015 (e500_dwarf2_reg_to_regnum): New function.
2016 (PPC_UISA_NOFP_SPRS): New macro.
2017 (PPC_EV_REGS): New macro.
2018 (PPC_GPRS_PSEUDO_REGS): New macro.
2019 (registers_e500): New register set for e500.
2020 (variants): Add e500 variant.
2021 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2022 before setting architectural dependent variations. Initialize ev
2023 registers numbers. Add case for e500 architecture. Set the
2024 number of pseudo registers.
2025
64366f1c
EZ
20262002-08-20 Elena Zannoni <ezannoni@redhat.com>
2027
2028 * rs6000-tdep.c: Clean up comments.
2029
7e78f0ca
AC
20302002-08-20 Andrew Cagney <cagney@redhat.com>
2031
2032 * h8300-tdep.c: Re-indent file.
2033
697f7479
JB
20342002-08-20 Jim Blandy <jimb@redhat.com>
2035
2036 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2037 default for this.
697f7479 2038
e86ae29f
KS
20392002-08-20 Keith Seitz <keiths@redhat.com>
2040
2041 * breakpoints.c (watch_command_1): Use internal breakpoint
2042 when setting a watchpoint_scope breakpoint.
2043
216b504f
EZ
20442002-08-20 Elena Zannoni <ezannoni@redhat.com>
2045
2046 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2047 (build_builtin_type_vec64i): Ditto.
2048 (build_builtin_type_vec128): Ditto.
2049 (build_builtin_type_vec128i): Ditto.
2050
f7ab6ec6
MS
20512002-08-19 Michael Snyder <msnyder@redhat.com>
2052
2053 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2054 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2055 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2056 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2057 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2058 CALL_DUMMY_ADDRESS): Delete.
2059 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2060 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2061 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2062 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2063 push_return_address.
2064 (mips_register_raw_size, mips_eabi_use_struct_convention,
2065 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2066 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2067 mips_init_extra_frame_info, mips_eabi_push_arguments,
2068 mips_n32n64_push_arguments, mips_push_return_address,
2069 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2070 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2071
b5d1566e
MS
20722002-08-19 Michael Snyder <msnyder@redhat.com>
2073
2074 * mips-tdep.c (mips_frame_num_args): New function.
2075 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2076 frame_saved_pc, frame_args_address, frame_locals_address,
2077 frame_num_args, and frame_args_skip.
2078 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2079 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2080 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2081 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2082
2f1488ce
MS
20832002-08-20 Michael Snyder <msnyder@redhat.com>
2084
2085 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2086 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2087 * mips-tdep.c (mips_store_struct_return): New function.
2088 (mips_extract_struct_value_address): New function.
2089 (mips_gdbarch_init): Set store_struct_return and
2090 extract_struct_value_address.
2091
41ff2da1
DC
20922002-08-20 David Carlton <carlton@math.stanford.edu>
2093
2094 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2095 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2096 (read_file_scope): Check that line_header is nonzero before
2097 decoding macro information.
2098
e5451d58
MK
20992002-08-20 Mark Kettenis <kettenis@gnu.org>
2100
2101 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2102 flag the general-purpose registers as floating-point on targets
2103 that don't support the floating-point registers.
2104
4a6daafa
EZ
21052002-08-20 Elena Zannoni <ezannoni@redhat.com>
2106
2107 * rs6000-tdep.c (altivec_register_p): Delete.
2108 (rs6000_do_altivec_registers): Delete.
2109 (rs6000_altivec_registers_info): Delete.
2110 (rs6000_do_registers_info): Delete.
2111 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2112 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2113
ab4327e0
EZ
21142002-08-20 Elena Zannoni <ezannoni@redhat.com>
2115
2116 * infcmd.c (do_registers_info): Print vector registers in hex
2117 format only.
2118 (print_vector_info): Check that printing registers
2119 makes sense.
2120 (print_float_info): Ditto.
2121
cb1d2653
AC
21222002-08-20 Andrew Cagney <ac131313@redhat.com>
2123
2124 * mips-tdep.c (mips_gdbarch_init): Update.
2125 (mips_o32_extract_return_value): Rewrite.
2126 (mips_o32_store_return_value): Rewrite.
2127 (mips_o32_xfer_return_value): New function.
2128 (mips_xfer_register): Tweak debug print message. Allow for
2129 buf_offset when dumping the value transfered.
2130
dfc3d9b2
AC
21312002-08-20 Andrew Cagney <ac131313@redhat.com>
2132
2133 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2134 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2135 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2136 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2137 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2138
7807aa61
MS
21392002-08-14 Michael Snyder <msnyder@redhat.com>
2140
2141 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2142
489461e2
EZ
21432002-08-19 Elena Zannoni <ezannoni@redhat.com>
2144
2145 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2146 register.
2147 (P): New macro to define a register as a pseudo register.
2148 (R, R4, R8, R16, FR32, R64, R0): Updated.
2149 (struct variant): Add new fields for number of pseudo registers
2150 and number of total registers.
2151 (tot_num_registers): New macro replacing....
2152 (num_registers): ...deleted macro.
2153 (num_registers): New function.
2154 (num_pseudo_registers): New function.
2155 (variants): Update all variants to intialize new fields correctly.
2156 Postpone initialization of number of pseudo regs and real regs.
2157 (init_variants): New function.
2158 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2159 registers offsets.
2160
fcaffe4c
DC
21612002-08-19 David Carlton <carlton@math.stanford.edu>
2162
2c2738a0
DC
2163 * valops.c (search_struct_field): Change error message to treat
2164 return value of 0 from value_static_field as meaning that field is
2165 optimized out.
2166 (value_struct_elt_for_reference): Ditto.
2167 * values.c (value_static_field): Treat an unresolved location the
2168 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2169 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2170 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2171 * MAINTAINERS: Add self to Write After Approval list.
2172
88658117
AC
21732002-08-19 Andrew Cagney <ac131313@redhat.com>
2174
2175 * mips-tdep.c (mips_xfer_register): New function.
2176 (mips_n32n64_extract_return_value): Rewrite.
2177 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2178 instead of deprecated_extract_return_value.
2179
21283beb
EZ
21802002-08-19 Elena Zannoni <ezannoni@redhat.com>
2181
2182 * rs6000-tdep.c (TDEP): Delete macro.
2183 (branch_dest): Replace use of TDEP macro with its body.
2184 (rs6000_pop_frame): Ditto.
2185 (rs6000_push_arguments): Ditto.
2186 (rs6000_skip_trampoline_code): Ditto.
2187 (rs6000_frame_saved_pc): Ditto.
2188 (rs6000_frame_chain): Ditto.
2189 (rs6000_register_name): Ditto.
2190 (rs6000_register_byte): Ditto.
2191 (rs6000_register_raw_size): Ditto.
2192 (rs6000_register_virtual_type): Ditto.
2193 (rs6000_register_convertible): Ditto.
2194 (rs6000_convert_from_func_ptr_addr): Ditto.
2195
bf072999
DJ
21962002-08-19 Daniel Jacobowitz <drow@mvista.com>
2197
2198 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2199 conditionally.
2200 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2201 MIPS_LINUX_JB_ELEMENT_SIZE.
2202 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2203 for MAX_REGISTER_RAW_SIZE arrays.
2204 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2205 MIPS_LINUX_JB_ELEMENT_SIZE.
2206
9b949a49
PM
22072002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2208
2209 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2210
6d3e79c6
AS
22112002-08-19 Aidan Skinner <aidan@velvet.net>
2212
2213 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2214 ada-valprint.c ada-tasks.c.
2215 (YYFILES): Add ada-exp.y.
2216 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2217 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2218 (ada-exp.tab.o): New target.
2219
06c0b04e
AC
22202002-08-18 Andrew Cagney <ac131313@redhat.com>
2221
2222 * regcache.c (regcache_xfer_part): New function.
2223 (regcache_raw_read_part): New function.
2224 (regcache_raw_write_part): New function.
2225 (regcache_cooked_read_part): New function.
2226 (regcache_cooked_write_part): New function.
2227 * regcache.h (regcache_raw_read_part): Declare.
2228 (regcache_raw_write_part): Declare.
2229 (regcache_cooked_read_part): Declare.
2230 (regcache_cooked_write_part): Declare.
2231
92d1e331
DJ
22322002-08-18 Daniel Jacobowitz <drow@mvista.com>
2233
2234 * remote.c (remote_open_1): Add async_p.
2235 (remote_async_open_1): Delete.
2236 (open_remote_target): Delete.
2237 (remote_open, extended_remote_open): Update calls to remote_open_1.
2238 (remote_async_open, extended_remote_async_open): Call
2239 remote_open_1 instead of remote_async_open_1.
2240
247055de
MK
22412002-08-19 Mark Kettenis <kettenis@gnu.org>
2242
2243 * blockframe.c: Fix a few coding standard violations.
2244
641eda39
MK
22452002-08-19 Mark Kettenis <kettenis@gnu.org>
2246
0b717710
MK
2247 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2248 here from ...
2249 * config/i386/tm-i386sco5.h: ... here. File removed.
2250 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2251
26d28e12 2252 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2253 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2254 (TM_FILE): Set to tm-i386.h.
2255 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2256 * config/i386/tm-i386v.h: Remove file.
2257 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2258 instead of "i386/tm-i386v.h".
2259 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2260 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2261 "i386/tm-i386v.h".
2262 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2263 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2264 "i386/tm-i386.h".
2265
d4e0bab4
MK
22662002-08-18 Mark Kettenis <kettenis@gnu.org>
2267
2268 * config/i386/nm-i386v.h: Add protection against
2269 multiple-inclusion.
2270 (i386_register_u_addr): Remove prototype.
2271 (register_u_addr): New prototype.
2272 (REGISTER_U_ADDR): Redefine accordingly.
2273 * i386v-nat.c: Improve several comments.
2274 (i386_register_u_addr): Change signature and rename to
2275 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2276 ubase variable.
2277
46cac009
AC
22782002-08-18 Andrew Cagney <ac131313@redhat.com>
2279
2280 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2281 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2282 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2283 deprecated_extract_return_value.
2284 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2285 rename mips_o32o64_push_arguments.
2286 (mips_gdbarch_init): Update.
2287 (mips_extract_return_value): Delete.
2288 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2289 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2290 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2291 (mips_n32n64_extract_return_value): Clone
2292 mips_extract_return_value.
2293 (mips_store_return_value): Delete.
2294 (mips_o32_store_return_value): Clone mips_store_return_value.
2295 (mips_o64_store_return_value): Clone mips_store_return_value.
2296 (mips_eabi_store_return_value): Clone mips_store_return_value.
2297 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2298
d2e4a39e
AS
22992002-08-18 Aidan Skinner <aidan@velvet.net>
2300
0c30c098
AS
2301 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2302 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2303
23042002-08-18 Aidan Skinner <aidan@velvet.net>
2305
2306 * ada-lang.c: Run through gdb_indent.sh.
2307 * ada-lang.h: Run through gdb_indent.sh.
2308 * ada-tasks.c: Run through gdb_indent.sh.
2309 * ada-typeprint.c: Run through gdb_indent.sh.
2310 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2311
01fc4e33
AC
23122002-08-18 Andrew Cagney <ac131313@redhat.com>
2313
2314 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2315 ABI.
2316
d8ee244c
MK
23172002-08-18 Mark Kettenis <kettenis@gnu.org>
2318
c38d8261
MK
2319 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2320
222db64c
MK
2321 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2322 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2323
c2848c82
MK
2324 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2325 write_register_gen instead of write_register_bytes.
2326
d8ee244c
MK
2327 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2328 i[3456]-*-osf1mk* configurations have been made obsolete.
2329 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2330 i[3456]86-*-osf1mk* hosts obsolete.
2331 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2332 targets obsolete.
2333 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2334 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2335 config/i386/i386m3.mt, config/i386/nm-m3.h,
2336 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2337 config/i386/i386mk.mh, config/i386/i386mk.mt,
2338 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2339 obsolete.
2340 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2341 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2342 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2343
61d8d407
AC
23442002-08-18 Andrew Cagney <ac131313@redhat.com>
2345
2346 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2347 (hppa_value_returned_from_stack): Declare.
2348 (hppa_extract_return_value): Declare.
2349 * config/pa/hppa.mt: New file.
2350 * configure.tgt: Recognize hppa*-*-*.
2351 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2352
0c52bd59
MK
23532002-08-18 Mark Kettenis <kettenis@gnu.org>
2354
2355 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2356 comment.
2357
b5686e99
MK
23582002-08-17 Mark Kettenis <kettenis@gnu.org>
2359
2360 * top.c (gdb_rl_operate_and_get_next): Make sure
2361 operate-and-get-next functions correctly even when the history
2362 list is completely filled.
2363
c1bab85b
AC
23642002-08-18 Andrew Cagney <ac131313@redhat.com>
2365
2366 * MAINTAINERS (Target Instruction Set Architectures): Rename
2367 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2368 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2369 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2370 already listed under Host/Native.
2371
2372 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2373 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2374 mips*-*-*.
2375
32089c7c
AC
23762002-08-17 Andrew Cagney <ac131313@redhat.com>
2377
2378 * config/ia64/ia64.mt: New file.
2379 * config/alpha/alpha.mt: New file.
2380 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2381 ia64-linux-gnu. Mention that ia64-elf is broken.
2382 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2383
b4671f85
MK
23842002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2385
2386 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2387 generic_func_frame_valid instead of func_frame_valid.
2388
c8edd8b4
JB
23892002-08-16 Joel Brobecker <brobecker@gnat.com>
2390
2391 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2392 procfs appears to be broken when debugging on multi-processor
2393 machines. So enable software single stepping in order to avoid
2394 using the procfs interface to do next/step operations, using
2395 internal breakpoints instead.
2396
2397 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2398 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2399 make this pc address equal to the value it would have if the
2400 system stepping capability was used. Also set a new flag used
2401 to ensure that we don't readjust the PC one more time later.
2402
2403 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2404 address by DECR_PC_AFTER_BREAK when software single step is
2405 in use for this architecture, as this has already been taken
2406 care of in handle_inferior_event().
2407
238617f6
JB
24082002-08-16 Joel Brobecker <brobecker@gnat.com>
2409
2410 * infrun.c (handle_inferior_event): Minor reformatting, to make
2411 a rather long condition expression easier to read.
2412
541a7aac
AC
24132002-08-16 Andrew Cagney <ac131313@redhat.com>
2414
2415 * Makefile.in (gdbtk.o): Move to end of file.
2416 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2417 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2418 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2419 (gdbtk-wrapper.o, gdbres.o): Ditto.
2420
f92d4a7b
AC
24212002-08-16 Andrew Cagney <ac131313@redhat.com>
2422
2423 * Makefile.in (copying.o): Separate out compile rule.
2424 (hpux-thread.o, procfs.o, signals.o): Ditto.
2425 (v850ice.o, z8k-tdep.o): Ditto.
2426 (tui-file.o): Move to TUI section.
2427 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2428 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2429
1cce71eb
JB
24302002-08-16 Joel Brobecker <brobecker@gnat.com>
2431
2432 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2433 skip_trampoline_code, for better namespace-proofing.
2434
2435 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2436
0851f23d
JB
24372002-08-16 Joel Brobecker <brobecker@gnat.com>
2438
2439 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2440
f8d40ec8
JB
24412002-08-16 Joel Brobecker <brobecker@gnat.com>
2442
2443 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2444 signal, check whether we hit a breakpoint before checking for a
2445 single step breakpoint. Otherwise, GDB fails to notice that a
2446 breakpoint has been hit when stepping onto a breakpoint.
2447
63d022e0
KS
24482002-08-16 Keith Seitz <keiths@redhat.com>
2449
2450 * gdb-events.sh (clear_gdb_event_hooks): New function.
2451 * gdb-events.c: Regenerate.
2452 * gdb-events.h: Regenerate.
2453
6e31adb3
AC
24542002-08-16 Andrew Cagney <ac131313@redhat.com>
2455
2456 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2457 not_a_sw_breakpoint.
2458 * breakpoint.h (bpstat_stop_status): Add parameter names.
2459
c8189ed1
GS
24602002-08-16 Grace Sainsbury <graces@redhat.com>
2461
2462 * remote.c (remote_insert_hw_breakpoint)
2463 (remote_remove_hw_breakpoint): Fix calculation of length field
2464 for Z-packet.
2465
d05285fa
MS
24662002-08-15 Michael Snyder <msnyder@redhat.com>
2467
466d7106
MS
2468 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2469 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2470 (supply_fpregset): Ditto.
2471
d05285fa
MS
2472 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2473 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2474 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2475 (TARGET_READ_SP): Delete.
bf1f5b4c 2476 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2477 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2478 Delete.
2479 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2480 from macros to functions.
bf1f5b4c 2481
d05285fa
MS
2482 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2483 (mips_register_convertible, mips_register_convert_to_virtual,
2484 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2485 (mips_read_sp): New function.
2486 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2487 (mips_do_registers_info): Make static.
2488 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2489 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2490 (mips_register_convert_from_type, mips_register_convert_to_type):
2491 New functions.
2492 (mips_gdbarch_init): Set up function_start_offset,
2493 register_virtual_size, pc_in_sigtramp.
d05285fa 2494
e76f1f2e
AC
24952002-08-15 Andrew Cagney <ac131313@redhat.com>
2496
2497 * infcmd.c (vector_info): New function.
2498 (_initialize_infcmd): Add command "info vector".
2499 (print_vector_info): New function.
2500
2501 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2502 * gdbarch.h, gdbarch.c: Regenerate.
2503
4782dc19
AC
25042002-08-15 Andrew Cagney <ac131313@redhat.com>
2505
2506 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2507 ``print_all''. Only print vector registers when ``print_all''.
2508
23e3a7ac
AC
25092002-08-15 Andrew Cagney <ac131313@redhat.com>
2510
8e186fd6
AC
2511 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2512 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2513
23e3a7ac
AC
2514 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2515 Add `args' parameter.
2516 * gdbarch.h, gdbarch.c: Regenerate.
2517
2518 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2519
2520 * infcmd.c (float_info): Call print_float_info.
2521 (print_float_info): New function. By default, print the
2522 floating-point registers.
2523
2524 * arch-utils.h (default_print_float_info): Delete declaration.
2525 * arch-utils.c (default_print_float_info): Delete function.
2526
e0ca2bb9
MK
25272002-08-16 Mark Kettenis <kettenis@gnu.org>
2528
3f733acc
MK
2529 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2530 out define.
2531
7d8d2918
MK
2532 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2533 FRAME.
2534
1c7cc583
MK
2535 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2536 * configure.host: Make i[3456]86-*-aix host obsolete.
2537 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2538 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2539 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2540 config/i386/xm-i386aix.h: Make files obsolete.
2541 * i386aix-nat.c: Make file obsolete.
2542 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2543 (i386aix-nat.o): Make target obsolete.
2544
e0ca2bb9
MK
2545 * config/i386/nm-gnu.h: Removed.
2546 * config/i386/nm-i386gnu.h: New file.
2547 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2548 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2549 Moved here from ...
2550 * config/i386/tm-i386gnu.h: ... here. Removed.
2551 * config/i386/xm-i386gnu.h: Removed.
2552 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2553 (NAT_FILE): Set to nm-i386gnu.h.
2554 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2555 * i386-tdep.c: New file.
2556 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2557 (i386gnu-tdep.o): Specify dependencies.
2558
16057ec7 25592002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2560
6b99ee2e
MK
2561 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2562 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2563 Adjust a few comments to reflect reality a bit closer.
2564 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2565 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2566 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2567 target_insert_watchpoint, target_remove_watchpoint):
2568 Move defines to ...
2569 * config/i386/nm-i386sco5.h: ... here.
2570 (kernel_u_size): Add prototype. Improve a few comments and add
2571 protection against multiple inclusion.
2572
d9a6f65c
MK
2573 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2574 out define.
2575
047eff6a
MK
2576 * uw-thread.c (SP_ARG0): Define if not already defined.
2577 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2578
dcdb1290
MK
2579 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2580
5d2d0b2a
MK
2581 * config/i386/tm-i386.h: Don't include "regcache.h".
2582
61113f8b
MK
2583 * i387-tdep.h (i387_print_float_info): New prototype.
2584 * i387-tdep.c (print_i387_value, print_i387_ext,
2585 print_i387_status_word, print_i387_control_word): Add `struct
2586 ui_file *' argument and use it for output.
2587 (i387_print_float_info): Renamed from i387_float_info. Add
2588 `struct gdbarch *' and `struct ui_file *' arguments and use the
2589 latter for output.
2590 * i386-tdep.c: Include "i387-tdep.h".
2591 (i386_gdbarch_init): Set print_float_info.
2592 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2593 (FLOAT_INFO): Remove define.
2594
46e0f506
MS
25952002-08-13 Michael Snyder <msnyder@redhat.com>
2596
2597 * mips-tdep.c (mips_push_arguments): Rename to
2598 mips_eabi_push_arguments, and tune for EABI.
2599 (MIPS_REGS_HAVE_HOME_P): Delete.
2600 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2601 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2602 Delete references to mips_regs_have_home_p.
2603
409268de
KS
26042002-08-14 Keith Seitz <keiths@redhat.com>
2605
2606 * Makefile.in (install-gdbtk): Create insight plugin directory.
2607 Install plugins.tcl file.
2608
ffc6a242
KS
26092002-08-14 Keith Seitz <keiths@redhat.com>
2610
2611 * configure.in: Move SUBDIRS to near top of the file so that
2612 --enable options may add things to it.
2613 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2614 * configure: Regenerate.
2615
ebafbe83
MS
26162002-08-13 Michael Snyder <msnyder@redhat.com>
2617
2618 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2619 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2620 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2621
32f6f25d
AC
26222002-08-13 Andrew Cagney <ac131313@redhat.com>
2623
2624 * vax-tdep.c (vax_get_saved_register): Delete function.
2625 (vax_gdbarch_init): Update.
2626 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2627 (ns32k_gdbarch_init): Update.
2628 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2629 (alpha_gdbarch_init): Update.
2630
53826de9
AC
26312002-08-13 Andrew Cagney <cagney@redhat.com>
2632
2633 * regcache.c (init_regcache_descr): Overallocate the
2634 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2635 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2636 nr_raw_registers.
2637 (set_register_cached): Add range checking assertions. Use
2638 current_regcache.
2639
16057ec7 26402002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2641
2642 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2643 numbers for MMX registers.
2644
7b4c2dce
AC
26452002-08-13 Andrew Cagney <cagney@redhat.com>
2646
2647 * i386-tdep.c (i386_gdbarch_init): Use
2648 generic_unwind_get_saved_register.
2649
1e03ad20
KB
26502002-08-13 Kevin Buettner <kevinb@redhat.com>
2651
2652 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2653 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2654 target vector.
2655 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2656 Delete. Add comment regarding this now-deleted target method.
2657
548bcbec
SC
26582002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2659
2660 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2661 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2662 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2663 real PC and the page number (if it's within the memory bank window).
2664 (m68hc11_pseudo_register_write): Likewise when saving.
2665 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2666 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2667 (m68hc11_register_raw_size): And use 32-bit for it.
2668 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2669 16K memory bank is used by the prog; also use the virtual pc.
2670
7df11f59
SC
26712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2672
2673 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2674 (m68hc11_gdbarch_init): Install it in gdbarch.
2675 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2676 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2677 (MSYMBOL_SIZE): New for documentation.
2678 (insn_return_kind): Enum to specify how a function returns.
2679 (frame_extra_info): Cleanup and record the return mode.
2680 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2681 register in address computation.
2682 (m68hc11_get_return_insn): New to obtain the return instruction used
2683 by the function.
2684 (m68hc11_frame_init_saved_regs): Take into account the return
2685 instruction used by the function for far and interrupt functions.
2686 (m68hc11_init_extra_frame_info): Take into account page register.
2687 (m68hc11_frame_args_address): Adjust according to the return mode.
2688 (show_regs): Print page register only when it's used.
2689
5706502a
SC
26902002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2691
2692 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2693 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2694 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2695 registers.
2696 (m68hc11_register_raw_size): Likewise.
2697
28fc6740
AC
26982002-08-13 Andrew Cagney <cagney@redhat.com>
2699
2700 * i386-tdep.c (i386_register_name): Handle mmx registers.
2701 (mmx_regnum_p): New function.
2702 (i386_mmx_names): New array.
2703 (mmx_num_regs): New variable.
2704 (i386_pseudo_register_read): New function.
2705 (i386_pseudo_register_write): New function.
2706 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2707
2708 * regcache.c (regcache_raw_read_unsigned): New function.
2709 (regcache_raw_read_signed): New function.
2710 * regcache.h (regcache_raw_read_unsigned): Declare.
2711 (regcache_raw_read_signed): Declare.
2712
a378f419
AC
27132002-08-13 Andrew Cagney <cagney@redhat.com>
2714
2715 * regcache.c (regcache_raw_read_as_address): Delete function.
2716 (regcache_cooked_read_signed): New function.
2717 (regcache_cooked_read_unsigned): New function.
2718 * regcache.h (regcache_cooked_read_signed): Declare.
2719 (regcache_cooked_read_unsigned): Declare.
2720 (regcache_raw_read_as_address): Delete declaration.
2721
2722 * blockframe.c (generic_read_register_dummy): Use
2723 regcache_cooked_read_unsigned.
2724 * i386-tdep.c (i386_extract_struct_value_address): Use
2725 regcache_cooked_read_unsigned.
2726
81967506
SC
27272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2728
2729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2730 double sizes according to ELF ABI flags.
2731 (gdbarch_tdep): Record elf_flags.
2732
ffe1f3ee
SC
27332002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2734
2735 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2736 (m6812_prolog): They can appear in 68HC12 function prologue.
2737 (m68hc11_frame_chain): Cleanup.
2738
98216c5d
AC
27392002-08-12 Andrew Cagney <cagney@redhat.com>
2740
2741 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2742 declarations.
2743 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2744 (i386_linux_register_raw_size): Delete function.
2745 (i386_linux_init_abi): Update.
2746 * i386-tdep.c (i386_register_raw_size): Delete function.
2747 (i386_register_byte): Delete function.
2748 (i386_gdbarch_init): Update.
2749 (i386_register_size): Delete array.
2750 (i386_register_offset): Delete array.
2751
2752 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2753 (REGISTER_RAW_SIZE): Delete macro.
2754 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2755 (REGISTER_BYTE): Delete macro.
2756
3b19021e
AS
27572002-08-11 Aidan Skinner <aidan@velvet.net>
2758
2759 * ada-lang.c (ada_lookup_partial_symbol)
2760 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2761 prototype names so that grep ^func works properly.
2762
2763 * ada-lang.c (ada_array_element_type)
2764 (ada_lookup_partial_symbol): Fix typos in parameter list.
2765
2766 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2767 Fix prototype names so that grep ^func works properly.
2768
b063e7a2
AC
27692002-08-10 Andrew Cagney <cagney@redhat.com>
2770 Elena Zannoni <ezannoni@redhat.com>
2771 Martin M. Hunt <hunt@redhat.com>
2772
2773 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2774 (build_builtin_type_vec128i): Set the vector bit.
2775 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2776 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2777 (build_builtin_type_vec64): New function.
2778 (build_builtin_type_vec64i): New function.
2779 (build_gdbtypes): Initialize builtin_type_vec64 and
2780 builtin_type_vec64i.
2781
a7e3c2ad
AC
27822002-08-09 Andrew Cagney <cagney@redhat.com>
2783
2784 * regcache.c (regcache_dump): Compare the register offset
2785 with REGISTER_BYTE.
2786 * arch-utils.c (generic_register_byte): New function.
2787 * arch-utils.h (generic_register_byte): Declare.
2788 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2789 * gdbarch.h, gdbarch.c: Regenerate.
2790
af030b9a
AC
27912002-08-09 Andrew Cagney <cagney@redhat.com>
2792
2793 * regcache.c: Include "gdbcmd.h"
2794 (_initialize_regcache): Add commands "maintenance print
2795 registers", "maintenance print raw-registers" and "maintenance
2796 print cooked-registers".
2797 (enum regcache_dump_what): Define.
2798 (dump_endian_bytes): New function.
2799 (regcache_dump): New function.
2800 (regcache_print): New function.
2801 (maintenance_print_registers): New function.
2802 (maintenance_print_raw_registers): New function.
2803 (maintenance_print_cooked_registers): New function.
2804 * Makefile.in (regcache.o): Update dependencies.
2805
cb3d25d1
MS
28062002-08-09 Michael Snyder <msnyder@redhat.com>
2807
2808 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2809 (mips_push_arguments): Correct some comments. Use paddr_nz
2810 for printing addresses in debug output. Replace static
2811 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2812 (mips_n32n64_push_arguments): New function, cloned from
2813 mips_push_arguments and tuned for the n32/n64 ABI.
2814 (mips_push_register): Buffer needs dynamic allocation.
2815 (mips_print_register): Ditto.
2816 (do_gp_register_row): Ditto.
2817 (mips_store_return_value): Ditto.
2818 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2819
2163ab9d
DH
28202002-08-09 Don Howard <dhoward@redhat.com>
2821
2822 * memattr.c (mem_info_command): Print special case of upper bound
2823 as max CORE_ADDR + 1.
2824
b78bcb18
MS
28252002-08-08 Michael Snyder <msnyder@redhat.com>
2826
2827 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2828 returns structs by ref if they're too big to fit in two registers.
2829
ffabd70d
KB
28302002-08-09 Kevin Buettner <kevinb@redhat.com>
2831
2832 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2833 saved regs value.
2834 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2835 mips_find_saved_regs().
2836 (mips_pop_frame): Likewise.
2837
fbcdb4a3
KB
28382002-08-09 Kevin Buettner <kevinb@redhat.com>
2839
2840 * blockframe.c (frame_saved_regs_register_unwind): Revise
2841 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2842 frames are in use.
2843
3c3bea1c
GS
28442002-08-09 Grace Sainsbury <graces@redhat.com>
2845
2846 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2847 T-packets; the 'a' is not taken as a register number.
2848 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2849 (remote_stopped_data_address): New functions; add to target
2850 vector.
2851 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2852 prototypes to match other implementations of this
2853 function. replace integer argument with pointer -- the length
2854 field in the Z-packet is the length of what is pointed to or 1 if
2855 pointer is null. Add to target vector.
2856 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2857 target vector.
2858
2859 From Mark Salter:
2860 * remote.c (remote_wait): Add support to extract optional
2861 watchpoint information from T-packet. Ignore unrecognized
2862 optional info in T-packet.
2863 (remote_async_wait): Ditto.
2864
5d1d95de
CV
28652002-08-09 Corinna Vinschen <vinschen@redhat.com>
2866
2867 * cli/cli-dump.c: Change fopen modes to use binary open modes
2868 as defined in include/fopen-bin.h throughout.
2869
c86b5b38
MS
28702002-08-08 Michael Snyder <msnyder@redhat.com>
2871
2872 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2873
b30590dc
KB
28742002-08-08 Kevin Buettner <kevinb@redhat.com>
2875
2876 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2877 assertion failure by returning early after a warning.
2878
498868ed
KB
28792002-08-08 Kevin Buettner <kevinb@redhat.com>
2880
2881 * mips-tdep.c (mips_find_saved_regs): Make static.
2882 (mips_frame_init_saved_regs): New function.
2883 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2884 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2885 (mips_find_saved_regs): Delete declaration.
2886
b2dd6311
GS
28872002-08-08 Grace Sainsbury <graces@redhat.com>
2888
3c3bea1c
GS
2889 * remote.c (remote_wait, remote_async_wait): Change
2890 thread_num from int to ULONGEST.
2891 (unpack_varlen_hex): Change result parameter from
2892 int * to ULONGEST *.
b2dd6311 2893
ea47855f
AC
28942002-08-08 Andrew Cagney <ac131313@redhat.com>
2895
2896 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2897 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2898 powerpc*-*-*.
2899 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2900
69db8bae
AC
29012002-08-08 Andrew Cagney <cagney@redhat.com>
2902
2903 * gcore.c (override_derive_stack_segment): Delete variable.
2904 (preempt_derive_stack_segment): Delete function.
2905 (derive_stack_segment): Delete function.
2906 (default_derive_stack_segment): Renamed to derive_stack_segment.
2907 (override_derive_heap_segment): Delete variable.
2908 (preempt_derive_heap_segment): Delete function.
2909 (derive_heap_segment): Delete function.
2910 (default_derive_heap_segment): Rename to derive_heap_segment.
2911
cb811fe7
MS
29122002-08-06 Michael Snyder <msnyder@redhat.com>
2913
2914 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2915 * mips-tdep.c (mips_EABI_use_struct_convention,
2916 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2917 New functions. (mips_use_struct_convention): Delete.
2918 (mips_gdbarch_init): set use_gdbarch_convention.
2919
8b389c40
MS
29202002-08-06 Michael Snyder <msnyder@redhat.com>
2921
2922 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2923 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2924 mips_o32_reg_struct_has_addr): New functions.
2925 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2926
5c27f28a
AC
29272002-08-07 Andrew Cagney <ac131313@redhat.com>
2928
2929 * regcache.c (pseudo_register): Delete function.
2930 (fetch_register): Delete function.
2931 (store_register): Delete function.
2932 (regcache_raw_read, legacy_read_register_gen): Use
2933 target_fetch_registers instead of fetch_register.
2934 (legacy_write_register_gen, regcache_raw_write): Use
2935 target_store_register instead of store_register.
2936 (write_register_bytes): Ditto.
2937
2938 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2939 (STORE_PSEUDO_REGISTER): Delete.
2940 * gdbarch.h, gdbarch.c: Regenerate.
2941
5b331675
CV
29422002-08-06 Corinna Vinschen <vinschen@redhat.com>
2943
2944 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2945 write dump file binary.
2946
6acdf5c7
MS
29472002-08-05 Michael Snyder <msnyder@redhat.com>
2948
2949 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2950 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2951 (mips_gdbarch_init): Set N32 target to be mips64.
2952
b2f01c35
KB
29532002-08-06 Kevin Buettner <kevinb@redhat.com>
2954
2955 * frame.c (find_saved_register): Break out of loop once saved
2956 register address is found. Don't mention sparc in loop comment
2957 anymore.
2958
63db5580
KB
29592002-08-06 Kevin Buettner <kevinb@redhat.com>
2960
2961 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2962 mips_default_saved_regsize to 8.
2963
5e34e75e
AC
29642002-08-06 Andrew Cagney <ac131313@redhat.com>
2965
2966 * gcore.c: Do not include <sys/procfs.h>.
2967 * Makefile.in (gcore.o): Update dependencies.
2968
eb4c54a2
AC
29692002-08-06 Andrew Cagney <cagney@redhat.com>
2970
2971 * configure.tgt: Make arc-*-* obsolete.
2972 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2973 * MAINTAINERS: Make arc-elf obsolete.
2974 * arc-tdep.c: Make file obsolete.
2975 * config/arc/arc.mt: Ditto.
2976 * config/arc/tm-arc.h: Ditto.
2977
ced15480
TR
29782002-08-05 Theodore A. Roth <troth@verinet.com>
2979
c1bab85b 2980 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2981
b4743822
AC
29822002-08-05 Andrew Cagney <ac131313@redhat.com>
2983
2984 * mcore-tdep.c (mcore_gdbarch_init): Use
2985 generic_unwind_get_saved_register instead of
2986 generic_get_saved_register.
2987 * v850-tdep.c (v850_gdbarch_init): Ditto.
2988 * frv-tdep.c (frv_gdbarch_init): Ditto.
2989 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2990 * s390-tdep.c (s390_gdbarch_init): Ditto.
2991 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2992 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2993 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2994
3956d554
JB
29952002-08-05 Joel Brobecker <brobecker@gnat.com>
2996
2997 * objfiles.h: Add missing #include "symfile.h"
2998
2999 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3000
8249c0d6
AC
30012002-08-04 Andrew Cagney <ac131313@redhat.com>
3002
3003 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3004 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3005 of FIELD_BITSIZE.
3006
b9d14705
DJ
30072002-08-04 Daniel Jacobowitz <drow@mvista.com>
3008
3009 * NEWS: Cleanup and nitpick.
3010
dd73b9bb
AC
30112002-08-03 Andrew Cagney <ac131313@redhat.com>
3012
3013 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3014
043a27f8
AC
30152002-08-03 Andrew Cagney <ac131313@redhat.com>
3016
3017 * Makefile.in (gdbtk-bp.o): Update dependencies.
3018 (gdbtk-register.o): Ditto.
3019 (gdbtk-varobj.o): Ditto.
3020
46ce284d
AC
30212002-08-03 Andrew Cagney <cagney@redhat.com>
3022
3023 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3024 m68hc11_fetch_pseudo_register.
3025 (m68hc11_pseudo_register_write): Replace
3026 m68hc11_store_pseudo_register.
3027 (m68hc11_gdbarch_init): Update.
3028
b66d6d2e
AC
3029Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3030
3031 * gdbarch.sh: Include "gdb_string.h".
3032 * gdbarch.c: Regenerate.
3033
3034 * regcache.c: Include "gdb_string.h".
3035 * ax-general.c: Ditto.
3036 * varobj.c: Ditto.
3037 * std-regs.c: Ditto.
3038 * fbsd-proc.c: Ditto.
3039 * thread.c: Ditto.
3040
3041 * Makefile.in (regcache.o): Update dependencies.
3042 (thread.o, gdbarch.o): Ditto.
3043 (ax-general.o, gdbarch.o): Ditto.
3044 (varobj.o, std-regs.o): Ditto.
3045 (fbsd-proc.o): Specify dependencies.
3046
29e1842b
AC
30472002-08-02 Andrew Cagney <cagney@redhat.com>
3048
3049 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3050 regnum.
3051 (regcache_cooked_write): Ditto.
3052
68365089
AC
30532002-08-02 Andrew Cagney <ac131313@redhat.com>
3054
3055 * regcache.c (regcache_cooked_read): New function.
3056 (regcache_cooked_write): New function.
3057 (read_register_gen): Rewrite using regcache_cooked_read.
3058 (write_register_gen): Rewrite using regcache_cooked_write.
3059
3060 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3061 Declare.
3062
d8124050
AC
30632002-08-02 Andrew Cagney <cagney@redhat.com>
3064
3065 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3066 Replace the architecture methods register_read and register_write.
3067 * gdbarch.h, gdbarch.c: Regenerate.
3068 * regcache.c (init_regcache_descr): Update.
3069 (read_register_gen): Update.
3070 (write_register_gen): Update.
3071 (supply_register): Update comment.
3072
3073 * sh-tdep.c (sh_gdbarch_init): Update.
3074 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3075 `regcache' and `gdbarch' parameters. Make `buffer' a void
3076 pointer. Update code.
3077 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3078 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3079 void pointer. Update code.
3080 (sh64_register_write): Delete.
3081 (sh4_register_read): Delete.
3082 (sh64_register_read): Delete.
3083 (sh4_register_write): Delete.
3084 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3085 void pointer, `to' parameter a void pointer.
3086 (sh_sh64_register_convert_to_raw): Ditto.
3087
a6425924
KB
30882002-08-01 Kevin Buettner <kevinb@redhat.com>
3089
3090 * mips-tdep.c (mips_register_virtual_type): Use architecture
3091 invariant return values.
3092
ff5922b5
AC
30932002-08-01 Andrew Cagney <cagney@redhat.com>
3094
3095 * linux-proc.c: Include "gdb_string.h".
3096 * Makefile.in (linux-proc.o): Update dependency list.
3097
32a6503c
KB
30982002-08-01 Kevin Buettner <kevinb@redhat.com>
3099
3100 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3101 comment.
3102
ccaa32c7
GS
31032002-08-01 Grace Sainsbury <graces@redhat.com>
3104
3105 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3106 to_insert_watchpoint, to_remove_watchpoint,
3107 to_stopped_by_watchpoint, to_stopped_data_address,
3108 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3109 target vecctor. Define their corresponding macros so they call
3110 them.
3111
3112 * target.c: Add default and debug versions of for
3113 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3114 to_insert_watchpoint, to_remove_watchpoint,
3115 to_stopped_by_watchpoint, to_stopped_data_address,
3116 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3117
78fde5f8
KB
31182002-08-01 Kevin Buettner <kevinb@redhat.com>
3119
3120 * mips-tdep.c (mips_register_virtual_type): New function.
3121 (mips_gdbarch_init): Register mips_register_virtual_type()
3122 with gdbarch machinery.
3123 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3124 this file instead of tm-bigmips.h.
3125 (MIPS_REGSIZE): Delete this macro.
3126 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3127 multiarch version in mips-tdep.c will be found.
3128
db034ac5
AC
31292002-08-01 Andrew Cagney <cagney@redhat.com>
3130
3131 * NEWS: Menion that CHILL has been made obsolete.
3132
3133 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3134 * stabsread.c (read_range_type): Ditto.
3135 * gdbtypes.h: Ditto.
3136 * language.c (binop_type_check): Ditto.
3137 (binop_result_type): Ditto.
3138 (integral_type): Ditto.
3139 (character_type): Ditto.
3140 (string_type): Ditto.
3141 (boolean_type): Ditto.
3142 (structured_type): Ditto.
3143 (lang_bool_type): Ditto.
3144 (binop_type_check): Ditto.
3145 * language.h (_LANG_chill): Ditto.
3146 * dwarfread.c (set_cu_language): Ditto.
3147 * dwarfread.c (CHILL_PRODUCER): Ditto.
3148 * dwarfread.c (handle_producer): Ditto.
3149 * expression.h (enum exp_opcode): Ditto.
3150 * eval.c: Ditto for comments.
3151 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3152 * expprint.c (print_subexp): Ditto.
3153 (print_subexp): Ditto.
3154 * valops.c (value_cast): Ditto.
3155 (search_struct_field): Ditto.
3156 * value.h (COERCE_VARYING_ARRAY): Ditto.
3157 * symfile.c (init_filename_language_table): Ditto.
3158 (add_psymbol_with_dem_name_to_list): Ditto.
3159 * valarith.c (value_binop): Ditto.
3160 (value_neg): Ditto.
3161 * valops.c (value_slice): Ditto.
3162 * symtab.h (union language_specific): Ditto.
3163 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3164 (SYMBOL_DEMANGLED_NAME): Ditto.
3165 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3166 * defs.h (enum language): Ditto.
3167 * symtab.c (got_symtab): Ditto.
3168 * utils.c (fprintf_symbol_filtered): Ditto.
3169
3170 * ch-typeprint.c: Make file obsolete.
3171 * ch-valprint.c: Make file obsolete.
3172 * ch-lang.h: Make file obsolete.
3173 * ch-exp.c: Make file obsolete.
3174 * ch-lang.c: Make file obsolete.
3175
3176 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3177 CHILL_LIB.
3178 (TARGET_FLAGS_TO_PASS): Ditto.
3179 (CHILLFLAGS): Obsolete.
3180 (CHILL): Obsolete.
3181 (CHILL_FOR_TARGET): Obsolete.
3182 (CHILL_LIB): Obsolete.
3183 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3184 ch-valprint.c.
3185 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3186 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3187 ch-lang.o.
3188 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3189 targets.
3190
8aaf0b47
JB
31912002-07-31 Joel Brobecker <brobecker@gnat.com>
3192
3193 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3194 This does not change anything at the moment, but will be helpful
3195 later when full Ada support is integrated.
3196
f3a7b3a5
KB
31972002-07-31 Kevin Buettner <kevinb@redhat.com>
3198
3199 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3200 help message.
3201
fb850278
KB
32022002-07-31 Kevin Buettner <kevinb@redhat.com>
3203
3204 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3205 and save it in a local variable. Use variable in later test.
3206
e3bddbfa
KB
32072002-07-31 Kevin Buettner <kevinb@redhat.com>
3208
3209 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3210 test. (Thanks to Daniel Jacobowitz.)
3211
28d169de
KB
32122002-07-31 Kevin Buettner <kevinb@redhat.com>
3213
3214 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3215 (mips_abi_strings): Add "n64".
3216 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3217
7fe7e44e
KB
32182002-07-31 Kevin Buettner <kevinb@redhat.com>
3219
3220 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3221 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3222
c6caf090
KB
32232002-07-31 Kevin Buettner <kevinb@redhat.com>
3224
3225 * utils.c (host_pointer_to_address, address_to_host_pointer):
3226 Use gdb_assert() instead of explicit call to internal_error().
3227
c41669e0
KB
32282002-07-30 Kevin Buettner <kevinb@redhat.com>
3229
3230 * Makefile.in (rs6000-nat.o): Update dependencies.
3231
3232 From Nicholas Duffek:
3233 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3234 (aix-thread.o): New rule.
3235 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3236 * config/powerpc/aix432.mh: New file.
3237
2fda4977
DJ
32382002-07-30 Daniel Jacobowitz <drow@mvista.com>
3239
3240 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3241 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3242 (fetch_core_registers, ppc_linux_supply_gregset)
3243 (ppc_linux_supply_fpregset): New functions.
3244 (ppc_linux_regset_core_fns): New.
3245 (_initialize_ppc_linux_tdep): Call add_core_fns.
3246 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3247 and ppc_linux_supply_gregset.
3248 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3249 (supply_fpregset): Call ppc_linux_supply_fpregset.
3250 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3251 corelow.o.
3252 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3253
729051e6
DJ
32542002-07-30 Daniel Jacobowitz <drow@mvista.com>
3255
3256 * symtab.c (lookup_symbol): Demangle before lowercasing.
3257
5f8a3188
AC
32582002-07-30 Andrew Cagney <ac131313@redhat.com>
3259
3260 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3261 declaration.
3262 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3263 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3264 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3265 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3266 "gdb_string.h".
3267 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3268 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3269 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3270 (avr-tdep.o, mon960-rom.o): Ditto.
3271 (aout_stabs_gnu_h): Define.
3272 (symtab_h): Remove $(gdb_obstack_h).
3273
67f07146
JB
32742002-07-30 Jim Blandy <jimb@redhat.com>
3275
3276 Patch from David Carlton <carlton@math.stanford.edu>:
3277 * gdbinit.in: Move the `dir' commands that add GDB's own source
3278 directory to the search path to the end, so that the `gdb' source
3279 directory will be searched first.
3280
04ea0df1
AC
32812002-07-29 Andrew Cagney <ac131313@redhat.com>
3282
3283 * gdb_obstack.h: New file.
3284 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3285 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3286 * objfiles.h: Include "gdb_obstack.h".
3287 * Makefile.in (gdb_obstack_h): Define.
3288 (symtab_h): Add $(gdb_obstack_h).
3289 (objfiles_h): Add $(gdb_obstack_h).
3290
3291 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3292 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3293 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3294 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3295 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3296 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3297 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3298 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3299
3300 * Makefile.in (bcache.o): Update dependencies.
3301 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3302 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3303 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3304 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3305 (stabsread.o, symfile.o, symmisc.o): Ditto.
3306 (symtab.o, typeprint.o, macroexp.o): Ditto.
3307 (macrotab.o, mdebugread.o): Ditto.
3308 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3309 (coff_ecoff_h, aout_aout64_h): Define.
3310 (aout_stabs_gnu_h, libaout_h): Define.
3311
d138e37a
AC
33122002-07-29 Andrew Cagney <cagney@redhat.com>
3313
3314 * regcache.c (struct regcache_descr): Rename nr_registers to
3315 nr_cooked_registers. Revise comments describing the structure
3316 member fields.
3317 (init_regcache_descr): Update.
3318 (init_legacy_regcache_descr): Update.
3319 (read_register_gen, write_register_gen): When a cooked register in
3320 the raw register range, directly access the value from the raw
3321 register cache.
3322
460e6ec3
AC
33232002-07-29 Andrew Cagney <ac131313@redhat.com>
3324
3325 * z8k-tdep.c: Do not include "obstack.h".
3326 * h8300-tdep.c, h8500-tdep.c: Ditto.
3327 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3328 * valprint.c, v850-tdep.c: Ditto.
3329 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3330 * mn10200-tdep.c: Ditto.
3331
3332 * Makefile.in (z8k-tdep.o): Update dependencies.
3333 (m68hc11-tdep.o, valprint.o): Ditto.
3334 (v850-tdep.o, d10v-tdep.o): Ditto.
3335 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3336 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3337 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3338 (sh_opc_h, gdb_sim_sh_h): Define.
3339 (elf_sh_h, elf_bfd_h): Define.
3340 (opcode_m68hc11_h): Define.
3341 (OPCODES_SRC, OPCODES_DIR): define.
3342 (OPCODES): Use $(OPCODES_DIR).
3343 (gdb_sim_d10v_h): Rename sim_d10v_h.
3344 (gdb_sim_arm_h): Rename sim_arm_h.
3345
790c9cf0
KB
33462002-07-26 Kevin Buettner <kevinb@redhat.com>
3347
3348 * utils.c (host_pointer_to_address, address_to_host_pointer):
3349 Change internal_error() message to indicate function responsible
3350 for the error.
3351
9647fa49
KB
33522002-07-26 Kevin Buettner <kevinb@redhat.com>
3353
3354 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3355 calls to local_hex_string_custom().
3356
dabbe2c0
KB
33572002-07-26 Kevin Buettner <kevinb@redhat.com>
3358
3359 * irix5-nat.c: Move IRIX shared library support from here...
3360 * solib-irix.c: ...to here. Revised substantially to work with
3361 generic solib framework.
3362
b96d0a4e
KB
3363 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3364 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3365 * mips-irix-tdep.c: New file.
3366
313fb2f6
KB
3367 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3368 (mips-irix-tdep.o, solib-irix.o): New rules.
3369 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3370 solib-irix.o.
3371 * config/mips/irix6.mt (TDEPFILES): Likewise.
3372 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3373
ab2eaf26
KB
33742002-07-26 Kevin Buettner <kevinb@redhat.com>
3375
177e4768 3376 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3377 disabled (via ``#if 0'') includes.
3378
7244546a
KB
33792002-07-26 Kevin Buettner <kevinb@redhat.com>
3380
3381 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3382 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3383 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3384 Add support for the fpscr register.
3385 * rs6000-nat.c (regmap, fetch_inferior_registers)
3386 (store_inferior_registers, fetch_core_registers): Likewise.
3387
dd7be90a
KB
33882002-07-26 Kevin Buettner <kevinb@redhat.com>
3389
3390 * rs6000-nat.c (language.h): Include.
3391 (special_regs): Delete this array.
3392 (regmap): New function.
3393 (fetch_register, store_register): Use regmap() to map gdb
3394 register numbers to ptrace register numbers. Also, use
3395 outputs from regmap() to make decisions regarding type of
3396 ptrace() call to make. In particular, don't compare against
3397 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3398 (fetch_inferior_registers, store_inferior_registers): Where
3399 possible, obtain register numbers from tdep struct. Don't
3400 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3401 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3402 (LAST_UISA_SP_REGNUM): Delete.
3403
11bf77db
KB
34042002-07-25 Kevin Buettner <kevinb@redhat.com>
3405
3406 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3407 (fetch_registers, store_register, fetch_core_registers): Don't
3408 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3409 regcache_collect() as appropriate.
3410 (find_toc_address): Format hex address with local_hex_string().
3411
06afebeb
AC
34122002-07-25 Andrew Cagney <ac131313@redhat.com>
3413
3414 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3415 bfd/elf32-frv.c.
3416
8c554d79
TT
34172002-07-24 Tom Tromey <tromey@redhat.com>
3418
3419 * jv-exp.y: Marked all strings with _().
3420 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3421 internal_error.
3422 (MethodInvocation, CastExpression, parse_number, yyerror,
3423 java_type_from_name, push_expression_name, yylex): Typo fixes.
3424
e4c242d9
DJ
34252002-07-24 Daniel Jacobowitz <drow@mvista.com>
3426
3427 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3428 (tee_file_flush, tee_file_write, tee_file_fputs)
3429 (tee_file_isatty): New.
3430 * ui-file.h (tee_file_new): Add prototype.
3431
ebf56fd3
AS
34322002-07-24 Aidan Skinner <aidan@velvet.net>
3433
3434 * ada-lang.c: Change k&r style function definitions to prototyped
3435 form.
3436 * ada-typeprint.c: Change k&r style function definitions to prototyped
3437 form.
3438 * ada-valprint.c: Change k&r style function definitions to prototyped
3439 form.
3440
7fb623f7
AC
34412002-07-24 Andrew Cagney <cagney@redhat.com>
3442
3443 * README: Remove reference to remote-bug.
3444 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3445 remote-bug.c.
3446 (m88k-nat.o): Delete rule.
3447 (m88k-tdep.o): Delete rule.
3448 (remote-bug.o): Delete rule.
3449 * MAINTAINERS: Mark as obsolete.
3450 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3451 * m88k-tdep.c: Make file obsolete.
3452 * config/m88k/m88k.mh: Ditto.
3453 * config/m88k/delta88v4.mh: Ditto.
3454 * config/m88k/delta88v4.mt: Ditto.
3455 * config/m88k/delta88.mt: Ditto.
3456 * config/m88k/delta88.mh: Ditto.
3457 * remote-bug.c: Ditto.
3458 * config/m88k/tm-delta88.h: Ditto.
3459 * config/m88k/nm-delta88v4.h: Ditto.
3460 * config/m88k/xm-delta88.h: Ditto.
3461 * config/m88k/xm-dgux.h: Ditto.
3462 * config/m88k/tm-m88k.h: Ditto.
3463 * config/m88k/nm-m88k.h: Ditto.
3464 * config/m88k/tm-delta88v4.h: Ditto.
3465 * m88k-nat.c: Ditto.
3466 * cxux-nat.c: Ditto.
3467 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3468 and m88*-*-* obsolete.
3469 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3470 m88*-*-* obsolete.
3471
37611a2b
AC
34722002-07-24 Andrew Cagney <cagney@redhat.com>
3473
3474 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3475 constant. Same for local pointer variables.
3476 (extract_signed_integer): Ditto.
3477 * defs.h (extract_unsigned_integer): Update.
3478 (extract_signed_integer): Update.
3479
1aaa5f99
AC
34802002-07-24 Andrew Cagney <cagney@redhat.com>
3481
3482 * regcache.c (regcache_raw_write): Change buf parameter to a
3483 constant void pointer.
3484 (regcache_raw_read): Change buf parameter to a void pointer.
3485 (legacy_write_register_gen): Change myaddr parameter a constant
3486 void pointer.
3487 (supply_register): Change val parameter to a const void pointer.
3488 * regcache.h (regcache_raw_write): Update declaration.
3489 (regcache_raw_read): Update declaration.
3490 (supply_register): Update declaration.
3491
b4f5539f
TT
34922002-07-24 Tom Tromey <tromey@redhat.com>
3493
3494 * defs.h (gdb_readline_wrapper): Declare.
3495 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3496 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3497 * top.c (gdb_readline_wrapper): New function.
3498 (command_line_input): Use it.
3499
0818c12a
AC
35002002-07-24 Andrew Cagney <cagney@redhat.com>
3501
3502 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3503 regcache_read and regcache_write.
3504 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3505 * regcache.c: Update.
3506 * sh-tdep.c (sh64_push_arguments): Update comment.
3507 (sh_pseudo_register_read): Update.
3508 (sh_pseudo_register_write): Update.
3509 (sh4_register_read): Update.
3510 (sh4_register_write): Update.
3511 (sh64_pseudo_register_read): Update.
3512 (sh64_pseudo_register_write): Update.
3513 (sh64_register_read): Update.
3514 (sh64_register_write): Update.
3515 * i386-tdep.c (i386_extract_return_value): Update.
3516 (i386_extract_struct_value_address): Update.
3517 (i386_extract_return_value): Update.
3518 * blockframe.c (generic_read_register_dummy): Update.
3519 (generic_call_dummy_register_unwind): Update
3520 * infrun.c (write_inferior_status_register): Update.
3521
f7321c06
JB
35222002-07-23 Jim Blandy <jimb@redhat.com>
3523
3524 * parser-defs.h (expression_context_pc): Make this extern.
3525 (Thanks to Michael Snyder.)
3526
2037aebb
AC
35272002-07-23 Andrew Cagney <ac131313@redhat.com>
3528
3529 GDB 5.2.1 released from 5.2 branch.
3530 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3531 * README: Update to mention 5.2.1.
3532
66504d44
MS
35332002-07-23 Mark Salter <msalter@redhat.com>
3534
3535 * remote.c (remote_read_bytes): Fix check for error.
3536
27bae383
KB
35372002-07-22 Kevin Buettner <kevinb@redhat.com>
3538
3539 * aix-thread.c (language.h): Include.
3540 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3541 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3542 Print newlines at end of debug messages.
3543 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3544 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3545
35462002-07-22 Kevin Buettner <kevinb@redhat.com>
3547
3548 * aix-thread.c (ppc-tdep.h): Include.
3549 (special_register_p): New function.
3550 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3551 (store_regs_user_thread): Use register number information from
3552 gdbarch_tdep struct instead of hardcoded offsets relative to
3553 FIRST_UISA_SP_REGNUM.
3554 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3555 special_register_p() instead of using FPLAST_REGNUM and
3556 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3557 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3558 will be MQ's register number.
3559
35602002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3561
3562 * aix-thread.c (ops): Rename to aix_thread_ops.
3563 (base_ops): Rename to base_target.
3564 (ops_attach): Rename to aix_thread_attach.
3565 (ops_detach): Rename to aix_thread_detach.
3566 (ops_resume): Rename to aix_thread_detach.
3567 (ops_wait): Rename to aix_thread_wait.
3568 (ops_kill): Rename to aix_thread_kill.
3569 (init_ops): Rename to init_aix_thread_ops.
3570 (ops_fetch_register): Rename to aix_thread_fetch_register.
3571 (ops_store_register): Rename to aix_thread_store_register.
3572 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3573 (ops_thread_alive): Rename to aix_thread_thread_alive.
3574 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3575 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3576 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3577 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3578 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3579 (store_regs_lib): Rename to store_regs_user_thread.
3580 (store_regs_kern): Rename to store_regs_kernel_thread.
3581
27bae383 35822002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3583
3584 * aix-thread.c (ops_prepare_to_store): Eliminate.
3585 (init_ops): Don't initialize ops.prepare_to_store.
3586 (store_regs_kern): Pre-fetch register buffers from child,
3587 because some registers may not be in the cache. Copy
3588 regs from register cache only if they are cached.
3589 (store_regs_lib): Copy regs from register cache only
3590 if they are cached.
3591 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3592 fill_gprs64): Ditto.
3593
61c5da0b
KB
35942002-07-22 Kevin Buettner <kevinb@redhat.com>
3595
3596 * aix-thread.c (gdb_assert.h): Include.
3597 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3598 register sizes (from register cache) match size of buffer holding
3599 register data.
3600 (fill_sprs32): Change parameter types to match those in the ptrace()
3601 buffer.
3602 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3603 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3604
36052002-07-22 Michael Snyder <msnyder@redhat.com>
3606
3607 * aix-thread.c (supply_sprs64): Cosmetic change.
3608 (supply_sprs32): Cosmetic change.
3609 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3610 (fill_sprs64): Use regcache_collect instead of read_register.
3611 (store_regs_lib): Use regcache_collect instead of
3612 read_register. Use fill_sprs32 instead of fill_sprs64,
3613 if debugging a 32-bit architecture.
3614 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3615 out of the register cache, instead of passing a pointer into
3616 the register cache directly to ptrace. Use regcache_collect
3617 insteaad of read_register.
3618 (ops_prepare_to_store): Use target_read_registers instead
3619 of read_register_bytes.
3620
36479eb1
AS
36212002-07-20 Aidan Skinner <aidan@velvet.net>
3622
3623 * MAINTAINERS: Add self under write after approval.
3624
80ae6ee2
AS
36252002-07-20 Aidan Skinner <aidan@velvet.net>
3626
3627 * ada-tasks.c: Change k&r style function definitions to prototyped
3628 form.
3629
8a8ab2b9
AC
36302002-07-19 Andrew Cagney <ac131313@redhat.com>
3631
3632 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3633 * x86-64-tdep.c: Include "objfiles.h".
3634 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3635 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3636
fb16b900
ML
36372002-07-17 Michal Ludvig <michal@suse.cz>
3638
3639 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3640 (update_context): Initialise cfa variable.
3641
0fe7bf7b
MS
36422002-07-17 Michael Snyder <msnyder@redhat.com>
3643
3644 * aix-thread.c: Shorten some long lines.
3645 Bring comments into line with code spec.
3646
488f131b
JB
36472002-07-18 Joel Brobecker <brobecker@gnat.com>
3648
3649 * infrun.c: Re-indent using gdb_indent.sh.
3650
46c415d2
JB
36512002-07-18 Joel Brobecker <brobecker@gnat.com>
3652
3653 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3654 Leave the indentation temporarily untouched, to minimize the diffs.
3655
cdecafbe
EZ
36562002-07-18 Elena Zannoni <ezannoni@redhat.com>
3657
3658 * stabsread.c: Make os9k sections of the code obsolete,
3659 for real this time.
3660 * stabsread.h: Make os9k sections of the code obsolete.
3661
7b6aa020
ML
36622002-07-18 Michal Ludvig <mludvig@suse.cz>
3663
09ec9b38
ML
3664 * linux-low.c (regsets_store_inferior_registers): Add free()
3665 at the end of a loop to prevent memory leak.
3666 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3667 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3668 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3669 line a comment.
4894ac5d 3670 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3671
233282cd
JB
36722002-07-17 Jim Blandy <jimb@redhat.com>
3673
3674 * macrocmd.c (info_macro_command): Remove newline from error
3675 message.
3676
7b6aa020 36772002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3678
3679 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3680 (sh_gdbarch_init): Use it for sh-dsp.
3681
f7ef9339
KB
36822002-07-16 Kevin Buettner <kevinb@redhat.com>
3683
3684 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3685 64-bit DWARF2 format.
3686
8dd72958
JB
36872002-07-16 Joel Brobecker <brobecker@gnat.com>
3688
3689 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3690 <sys/proc.h> when not available.
3691
a99a9e1b
AC
36922002-07-16 Andrew Cagney <ac131313@redhat.com>
3693
3694 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3695 * stabsread.c: Make os9k sections of the code obsolete.
3696 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3697 * config/i386/i386os9k.mt: Make file obsolete.
3698 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3699 (COMMON_OBS): Remove os9kread.o
3700 (SFILES): Remove os9kread.c.
3701 (os9kread.o, remote-os9k.o): Make target obsolete.
3702 * remote-os9k.c: Make file obsolete.
3703 * os9kread.c: Make file obsolete.
3704 * Makefile.in
3705
7a3085c1
AC
37062002-07-16 Andrew Cagney <ac131313@redhat.com>
3707
3708 * NEWS: Mention that the FR30 has been made obsolete.
3709 * fr30-tdep.c: Make file obsolete.
3710 * config/fr30/tm-fr30.h: Ditto.
3711 * config/fr30/fr30.mt: Ditto.
3712 * configure.tgt: Make fr30-*-elf obsolete.
3713 * MAINTAINERS: Make fr30-elf obsolete.
3714
28a93f5a
PM
37152002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3716
3717 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3718 found is not inside a section.
3719
be006b8b
KB
37202002-07-15 Kevin Buettner <kevinb@redhat.com>
3721
3722 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3723 strerror().
3724 (pdc_realloc): Use xrealloc() instead of realloc().
3725
14fa3751
KB
37262002-07-15 Kevin Buettner <kevinb@redhat.com>
3727
3728 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3729 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3730 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3731 macros.
3732
42cc437f
KB
37332002-07-15 Kevin Buettner <kevinb@redhat.com>
3734
3735 * aix-thread.c (ptrace_check): Eliminate goto.
3736 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3737 problem.
3738
8e2c28d4
KB
37392002-07-15 Kevin Buettner <kevinb@redhat.com>
3740
3741 * aix-thread.c (gdbcmd.h): Include.
3742 (DEBUG, DBG, DBG2, dbg): Eliminate.
3743 (debug_aix_thread): New static global.
3744 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3745 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3746 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3747 invocations to DBG and DBG2 macros to test against
3748 ``debug_aix_thread'' and call fprintf_unfiltered().
3749 (_initialize_aix_thread): Add new command "set debug aix-thread".
3750
30413464
AC
37512002-07-15 Andrew Cagney <ac131313@redhat.com>
3752
3753 From Gerhard Tonn <TON@de.ibm.com>:
3754 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3755 instead of supply_register.
3756
7c43edc1
AC
37572002-07-15 Andrew Cagney <ac131313@redhat.com>
3758
3759 * dwarf2cfi.c: Include "gdb_assert.h".
3760 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3761 non-NULL.
3762 (update_context): Do not use __func__. Add missing ``break''.
3763 (update_context): Do not use __func__.
3764
9364a0ef
EZ
37652002-07-15 Elena Zannoni <ezannoni@redhat.com>
3766
3767 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3768 and its setting. Set gdbarch instruction printing functions
3769 directly. For non-rs6000 case use new function
3770 gdb_print_insn_powerpc.
3771 (gdb_print_insn_powerpc): New function.
3772
3fbeef0b
AC
37732002-07-13 Andrew Cagney <ac131313@redhat.com>
3774
92eb23c5 3775 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3776 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3777 * configure.tgt: Mark d30v-*-* as obsolete.
3778 * d30v-tdep.c: Mark file as obsolete.
3779 * config/d30v/d30v.mt: Ditto.
3780 * config/d30v/tm-d30v.h: Ditto.
3781
aacb1f0a
AS
37822002-07-13 Aidan Skinner <aidan@velvet.net>
3783
3784 * ada-tasks.c (add_task_entry): replace calls to
3785 malloc() with xmalloc
3786 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3787
3788 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3789 ada_finish_decode_line_1, all_sals_for_line
3790 ada_breakpoint_rewrite): replace calls to free() with xfree()
3791
c11d79f2
KB
37922002-07-12 Kevin Buettner <kevinb@redhat.com>
3793
3794 From Nicholas Duffek (with minor changes by Martin Hunt,
3795 Louis Hamilton, and Kevin Buettner):
3796 * aix-thread.c: New file.
3797
8e19ed76
PS
37982002-07-12 Petr Sorfa <petrs@caldera.com>
3799
3800 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3801 complaint for invalid attribute class or form.
3802 (read_func_scope): DW_AT_frame_base
3803 better handling of DW_AT_block*.
3804 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3805 better handling of DW_AT_block*.
3806 (read_common_block): DW_AT_location
3807 better handling of DW_AT_block*.
3808 (read_partial_die): DW_AT_location better handling
3809 of DW_AT_block*.
3810 (new_symbol): DW_AT_external better handling of
3811 DW_AT_block*. Proper initialization of variable
3812 "addr".
3813 (attr_form_is_block): New function that returns true
3814 if the attribute's form is of DW_FORM_block*.
3815
295401f7
DJ
38162002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3817
3818 * valops.c (find_method_list): Remove comment about
3819 removed STATIC_MEMFUNCP argument.
3820 (value_find_oload_method_list): Likewise.
3821
e42dc924
KB
38222002-07-12 Kevin Buettner <kevinb@redhat.com>
3823
3824 From Nicholas Duffek:
3825 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3826 target_new_objfile_hook.
3827
6904b546
KB
38282002-07-12 Kevin Buettner <kevinb@redhat.com>
3829
3830 From Nicholas Duffek:
3831 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3832 csect.
3833
53fe9346
AC
38342002-07-12 Andrew Cagney <cagney@redhat.com>
3835
3836 * MAINTAINERS: Mention --enable-sim-build-warnings.
3837 (m68hc11-elf): Disable sim build warnings.
3838 (m32r-elf): Mark as broken obsolete candidate.
3839 (x86_64-linux-gnu): Mark as buildable with -Werror.
3840 (arm-elf): Change -w to ``,'' which enables warnings but not
3841 -Werror.
3842
af5f3db6
AC
38432002-07-12 Andrew Cagney <ac131313@redhat.com>
3844
3845 * bcache.h: Update copyright.
3846 (struct bstring, struct bcache): Move definition to "bcache.c".
3847 Replaced by opaque declaration.
3848 (bcache_xfree): Replace free_bcache.
3849 (bcache_xmalloc, bcache_memory_used): Declare.
3850
3851 * bcache.c: Update copyright.
3852 (struct bstring, struct bcache): Moved to here from "bcache.h".
3853 Update comments.
3854 (bcache_xmalloc, bcache_memory_used): New functions.
3855 (bcache_xfree): Replace function free_bcache.
3856
3857 * Makefile.in (objfiles.o): Add $(bcache_h).
3858 (objfiles_h): Remove $(bcache_h).
3859 (symfile.o): Add $(bcache_h).
3860
3861 * symmisc.c: Update copyright.
3862 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3863 (print_objfile_statistics): Use bcache_memory_used.
3864
3865 * symfile.c: Include "bcache.h".
3866 (reread_symbols): Use bcache_xfree.
3867 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3868 (add_psymbol_to_list): Pass psymbol_cache by value.
3869 (add_psymbol_with_dem_name_to_list): Ditto.
3870
3871 * objfiles.h: Update copyright.
3872 (struct bcache): Declare opaque. Do not include "bcache.h".
3873 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3874 bcache'' pointers.
3875 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3876
3877 * objfiles.c: Include "bcache.h". Update copyright.
3878 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3879 macro_cache.
3880 (free_objfile): Use bcache_xfree.
3881
444199e7
GS
38822002-07-11 Grace Sainsbury <graces@redhat.com>
3883
3884 * monitor.c (monitor_fetch_register): Make name a constant.
3885 (monitor_store_register): Same.
3886
261397f8
DJ
38872002-07-11 Daniel Jacobowitz <drow@mvista.com>
3888
3889 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3890 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3891 (finish_block) For non-function blocks, hash the symbol table. For
3892 function blocks, mark the symbol table as unhashed.
3893 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3894 (msymbol_hash_iw): Likewise.
3895 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3896 value.
3897 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3898 (lookup_minimal_symbol): Likewise for both.
3899 * symtab.h (struct block): Add `hashtable' flag. Comment the
3900 hashtable.
3901 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3902 (ALL_BLOCK_SYMBOLS): Update.
3903 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3904 (struct symbol): Add `hash_next' pointer.
3905 * symtab.c (lookup_block_symbol): Search using the hash table when
3906 possible.
3907 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3908 (search_symbols, find_addr_symbol): Likewise.
3909
3910 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3911 (read_dst_symtab): Likewise.
3912 * jv-lang.c (get_java_class_symtab): Likewise.
3913 * mdebugread.c: Include "gdb_assert.h".
3914 (shrink_block): Assert that the block being modified is not hashed.
3915 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3916 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3917 symbols.
3918 (dump_symtab): Recognize hashed blocks.
3919 * printcmd.c (print_frame_args): Assert that function blocks do not
3920 have hashed symbol tables.
3921 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3922 (fill_in_ada_prototype, debug_print_block): Likewise.
3923 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3924
6f0eaa01
CV
39252002-07-11 Corinna Vinschen <vinschen@redhat.com>
3926
3927 * stack.c (print_frame): Use result of frame_address_in_block()
3928 instead of fi->pc when evaluating symbols.
3929 (backtrace_command_1): Ditto.
3930
a208b0cb
AC
39312002-07-11 Andrew Cagney <cagney@redhat.com>
3932
3933 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3934 Make static.
3935
3936 * arm-tdep.c (arm_register_name): Make return type constant.
3937
a6b6b089
AC
39382002-07-10 Andrew Cagney <ac131313@redhat.com>
3939
5ae5f592
AC
3940 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3941 prototype.
3942 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3943 * s390-tdep.c (s390_fp_regnum): Ditto.
3944 (s390_read_fp): Ditto.
3945 (s390_pop_frame): Ditto.
3946 (_initialize_s390_tdep): Ditto.
3947 * remote.c (get_remote_state): Ditto.
3948 * procfs.c (mappingflags): Ditto.
3949 * memattr.c (_initialize_mem): Ditto.
3950 * mcore-tdep.c (mcore_pop_frame): Ditto.
3951 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3952 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3953 * language.c (set_case_str): Ditto.
3954 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3955 * frv-tdep.c (new_variant): Ditto.
3956 (frv_stopped_data_address): Ditto.
3957 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3958 (context_alloc): Ditto.
3959 (frame_state_alloc): Ditto.
3960 (unwind_tmp_obstack_init): Ditto.
3961 (unwind_tmp_obstack_free): Ditto.
3962 (cfi_read_fp): Ditto.
3963 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3964 (cris_pop_frame): Ditto.
3965 * c-lang.c (scanning_macro_expansion): Ditto.
3966 (finished_macro_expansion): Ditto.
3967 (c_preprocess_and_parse): Ditto.
3968 * gdbarch.sh: Ditto.
3969 * gdbarch.h, gdbarch.c: Regenerate.
3970 * config/mn10200/tm-mn10200.h: Adjust indentation.
3971 * target.c: Adjust indentation.
3972 * symtab.h: Adjust indentation.
3973 * stabsread.h: Adjust indentation.
3974 * remote-es.c: Adjust indentation.
3975 * os9kread.c: Adjust indentation.
3976
39772002-07-10 Andrew Cagney <ac131313@redhat.com>
3978
a6b6b089
AC
3979 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3980 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3981
a1789893
GS
39822002-07-10 Grace Sainsbury <graces@redhat.com>
3983
3984 * NEWS: Mention m68k, mcore multi-arching.
3985 * MAINTAINERS: Change status of m68k, mcore to reflect
3986 multi-arching.
3987
02f0d45d
DJ
39882002-07-10 Daniel Jacobowitz <drow@mvista.com>
3989
3990 * valops.c (find_overload_match): Free oload_syms.
3991
f15f768e
JB
39922002-07-09 Joel Brobecker <brobecker@gnat.com>
3993
3994 Define HAVE_SYS_PROC_H if sys/proc.h exists
3995 * configure.in: Add check for sys/proc.h
3996 * config.in: Regenerate.
3997 * configure: Regenerate.
3998
902a7139
GS
39992002-07-09 Grace Sainsbury <graces@redhat.com>
4000
4001 * config/m68k/tm-m68k.h: Remove macros wrapped in
4002 #if !GDB_MULTI_ARCH.
4003
a534e424
AC
40042002-07-08 Andrew Cagney <ac131313@redhat.com>
4005
4006 * config.in, configure: Regenerate.
4007
9b94f7bf
MK
40082002-07-08 Mark Kettenis <kettenis@gnu.org>
4009
4010 * dwarf2cfi.c: Include "gcore.h".
4011 (execute_stack_op): Fix implementation of the
4012 DW_OP_deref and DW_OP_deref_size operators by letting do their
4013 lookup in the target.
4014
1d34db41
MK
40152002-07-07 Mark Kettenis <kettenis@gnu.org>
4016
4017 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4018 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4019 tdep->sc_sp_offset.
4020
79d5b63a
DJ
40212002-07-05 Daniel Jacobowitz <drow@mvista.com>
4022
4023 Fix PR gdb/595, gdb/602
4024 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4025 Don't call value_cast, just read the vtable pointer; update comments
4026 to match.
4027
3bb912e8
GS
40282002-07-05 Grace Sainsbury <graces@redhat.com>
4029
4030 * config/mcore/tm-mcore.h: Remove file.
4031 * config/mcore/mcore.mt: Remove definition of TM_FILE
4032 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4033
ca39387d
MK
40342002-07-05 Mark Kettenis <kettenis@gnu.org>
4035
4036 * i386bsd-tdep.c: Include "gdb_string.h".
4037
efdc1108
GS
40382002-07-04 Grace Sainsbury <graces@redhat.com>
4039
4040 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4041 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4042 mcore-tdep.
4043 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4044 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4045 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4046 (RETVAL_REGNUM): Move macros from tm-mcore.h
4047 (mcore_reg_struct_has_addr): New function.
4048 (mcore_gdbarch_init): Added initializations for the macros removed
4049 from tm-mcore.h.
4050
bb21884d
MK
40512002-07-04 Mark Kettenis <kettenis@gnu.org>
4052
4053 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4054 traditonal string branding within the ELF header.
4055
228c6d41
DJ
40562002-07-04 Daniel Jacobowitz <drow@mvista.com>
4057
4058 * symtab.c (remove_params): New function.
4059 (make_symbol_overload_list): Use it instead of cplus_demangle.
4060 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4061
2404952e
MK
40622002-07-04 Mark Kettenis <kettenis@gnu.org>
4063
e5e4acad
MK
4064 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4065
baadce09
MK
4066 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4067 New variables.
4068 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4069 and tdep->sigtramp_end.
4070 * i386obsd-nat.c: New file.
4071 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4072
2404952e
MK
4073 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4074 Don't call get_current_frame().
4075
9b4f1ba7
PM
40762002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4077
4078 * i386-nat.c (child_post_startup_inferior): New function
4079 calling i386_cleanup_dregs if
4080 I386_USE_GENERIC_WATCHPOINTS is defined.
4081 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4082 conditional to acknowledge that i386-nat.c has its
4083 own child_post_startup_inferior function.
4084
c0d1d883
MK
40852002-07-04 Mark Kettenis <kettenis@gnu.org>
4086
00f8375e
MK
4087 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4088 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4089 instead of MAX_REGISTER_RAW_SIZE.
4090 (i386_extract_return_value, i386_extract_struct_value_address):
4091 Convert to use regcache.
4092 (i386_gdbarch_init): Set max_register_raw_size and
4093 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4094 Set extract_return_value and extract_struct_value_address instead
4095 of their deprecated variants.
4096
c0d1d883
MK
4097 Convert i386 target to generic dummy frames.
4098 * i386-tdep.c: Include "symfile.h".
4099 (i386_frameless_signal_p): Consider a function to be frameless if
4100 the pc points at the first instruction of the function.
4101 (i386_frame_chain): Handle (generic) call dummies.
4102 (i386_frame_saved_pc): Likewise.
4103 (i386_frame_init_saved_regs): Remove code dealing with call
4104 dummies on the stack.
4105 (i386_push_dummy_frame): Removed.
4106 (i386_call_dummy_words): Removed.
4107 (i386_fix_call_dummy): Removed.
4108 (i386_push_return_address): New function.
4109 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4110 parameter, and don't call get_current_frame.
4111 (i386_pop_frame): New function.
4112 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4113 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4114 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4115 call_dummy_length to 0, set call_dummy_words to NULL, set
4116 sizeof_call_dummy_words to 0, set fix_call_dummy to
4117 generic_fix_call_dummy, set pc_in_call_dummy to
4118 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4119 generic_push_dummy_frame, set push_return_address to
4120 i386_push_return_address and set frame_chain_valid to
4121 generic_file_frame_chain_valid.
4122
049ee0e4
AC
41232002-07-03 Andrew Cagney <ac131313@redhat.com>
4124
4125 * gdbarch.sh (struct regcache): Add opaque declaration.
4126 (EXTRACT_RETURN_VALUE): New architecture method.
4127 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4128 * gdbarch.h, gdbarch.c: Regenerate.
4129 * arch-utils.c (legacy_extract_return_value): New function.
4130 * arch-utils.h (legacy_extract_return_value): Declare.
4131 * values.c (value_being_returned): Re-enable code handling
4132 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4133 deprecated_grub_regcache_for_registers call to block handling
4134 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4135 (EXTRACT_RETURN_VALUE): Do not define.
4136
4e0d9804
GS
41372002-07-03 Grace Sainsbury <graces@redhat.com>
4138
4139 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4140 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4141 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4142 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4143 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4144 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4145 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4146 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4147 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4148 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4149 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4150 argument so the function fits the prototype in the architecture
4151 vector.
4152 (mcore_pop_frame): Remove argument so the function fits the
4153 prototype. Use get_current_frame instead of the argument.
4154 (mcore_push_arguments): Change type of struct_return so the
4155 function can be used in the architecture vector.
4156 (mcore_store_struct_return): Add.
4157 (mcore_frame_init_saved_regs): Add.
4158 (mcore_gdbarch_init): Add function calls to replace the macros
4159 removed from tm-mcore.h
4160
36160dc4
AC
41612002-07-03 Andrew Cagney <ac131313@redhat.com>
4162
4163 * infcmd.c (print_return_value): Remove compatibility code calling
4164 deprecated_grub_regcache_for_registers.
4165
4166 * values.c: Include "regcache.h".
4167 (value_being_returned): Update. Use
4168 deprecated_grub_regcache_for_registers to extract the register
4169 buffer address.
4170 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4171 ``struct regcache''.
4172 * Makefile.in (values.o): Add dependency on $(regcache_h).
4173
4174 * inferior.h (run_stack_dummy): Change type of second parameter to
4175 a ``struct regcache''.
4176 * valops.c (hand_function_call): Change type of retbuf to ``struct
4177 regcache''. Allocate using regcache_xmalloc, clean using
4178 make_cleanup_regcache_xfree.
4179 * infcmd.c (run_stack_dummy): Update. Use
4180 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4181
4182 * regcache.c (do_regcache_xfree): New function.
4183 (make_cleanup_regcache_xfree): New function.
4184 * regcache.h (make_cleanup_regcache_xfree): Declare.
4185
e64d9b3d
MH
41862002-07-03 Martin M. Hunt <hunt@redhat.com>
4187
4dd79c29
MH
4188 * event-top.c (command_line_handler): Don't read past
4189 beginning of buffer.
e64d9b3d 4190
4dd79c29
MH
41912002-07-03 Martin M. Hunt <hunt@redhat.com>
4192
e64d9b3d
MH
4193 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4194 struct frame_id.
4195 (varobj_create): Store frame_id for root.
4196 (varobj_gen_name): Use xasprintf.
4197 (varobj_update): Save and restore frame using get_frame_id() and
4198 frame_find_by_id().
4199 (create_child): Use xasprintf.
4200 (new_root_variable): Initialize frame_id.
4201 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4202 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4203 to prevent memory leak.
4204
26e6c56a
AC
42052002-07-03 Andrew Cagney <ac131313@redhat.com>
4206
4207 * valops.c (hand_function_call): Move declaration of retbuf to
4208 start of function, allocate using malloc, add a cleanup but before
4209 the inf_status cleanup, cleanup the buffer. Rename local variable
4210 old_chain to inf_status_cleanup.
4211
f436dd25
MH
42122002-07-03 Martin M. Hunt <hunt@redhat.com>
4213
4214 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4215
4216 * cli/cli-decode.c (cmd_func_p): New function.
4217 (cmd_func): New function.
4218
4219 * command.h: Add cmd_func() and cmd_func_p().
4220
4cfe2084
GS
42212002-07-03 Grace Sainsbury <graces@redhat.com>
4222
4223 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4224 (REGISTER_SIZE): Remove.
4225 (MAX_REGISTER_RAW_SIZE): Remove.
4226 (REGISTER_VIRTUAL_TYPE): Remove.
4227 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4228 (REGISTER_NAME): Remove.
4229 (USE_GENERIC_DUMMY_FRAMES): Remove.
4230 (CALL_DUMMY): Remove.
4231 (CALL_DUMMY_START_OFFSET): Remove.
4232 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4233 (CALL_DUMMY_LOCATION): Remove.
4234 (FIX_CALL_DUMMY): Remove.
4235 (CALL_DUMMY_ADDRESS): Remove.
4236 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4237 (SAVE_DUMMY_FRAME_TOS): Remove.
4238 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4239 (mcore_register_virtual_type): New function.
4240 (mcore_register_byte): New function.
4241 (mcore_register_size): New function.
4242 (mcore_register_name): New function.
4243 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4244 macros removed from tm-mcore.h.
4245 (mcore_dump_tdep): Add.
4246 (_initialize_mcore_tdep): Add gdbarch_register call.
4247
4fd667e9
MK
42482002-07-03 Mark Kettenis <kettenis@gnu.org>
4249
4250 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4251 frameless_look_for_prologue, such that we actually call this
4252 function.
4253
42f99ac2
JB
42542002-07-02 Joel Brobecker <brobecker@gnat.com>
4255
4256 * frame.h (frame_address_in_block): New function.
4257
4258 * blockframe.c (frame_address_in_block): New function extracted
4259 from get_frame_block().
4260 (get_frame_block): Use frame_address_in_block().
4261 (block_innermost_frame): Use frame_address_in_block() to match
4262 the frame pc address against the block boundaries rather than
4263 the frame pc directly. This prevents a failure when a frame pc
4264 is actually a return-address pointing immediately after the end
4265 of the given block.
4266
103a1597 42672002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4268
4269 * MAINTAINERS: Add self under write after approval.
4270
42712002-07-02 Grace Sainsbury <graces@redhat.com>
4272
103a1597
GS
4273 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4274 used in architecture vector. The default is
4275 m68k_local_breakpoint_from_pc.
4276 (m68k_local_breakpoint_from_pc): Add.
4277 (enum): Add register numbers from tm-m68k.h.
4278 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4279 vector.
4280 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4281 GDB_MULTI_ARCH_PARTIAL.
4282 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4283 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4284 m68k-tdep.c.
4285 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4286 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4287 to enum in m68k-tdep.c
4288
7a5a0534
JB
42892002-07-02 Joel Brobecker <brobecker@gnat.com>
4290
4291 * solib-osf.c (open_map): Compute the list of shared libraries
4292 loaded by the inferior, rather than the list of libraries loaded
4293 by GDB itself. Otherwise, GDB ends up reading the symbols from
4294 the wrong shared libraries...
4295
6f558d74
MK
42962002-07-02 Mark Kettenis <kettenis@gnu.org>
4297
b7d15bf7
MK
4298 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4299 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4300 macros.
4301 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4302 Remove functions.
4303 (FRAMELESS_SIGNAL): Remove function.
4304 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4305 i386_linux_saved_pc_after_call): Removed.
4306 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4307 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4308 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4309
6bff26de
MK
4310 * i386-tdep.c (i386_frameless_signal_p): New function.
4311 (i386_frame_chain): Deal with frameless signals.
4312 (i386_sigtramp_saved_sp): New function.
4313 (i386_frame_saved_pc): Deal with frameless signals.
4314 (i386_saved_pc_after_call): Make sure the correct value is
4315 returned just after entry into a sigtramp.
4316 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4317 i386fbsd4_sc_sp_offset): New variables.
4318 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4319 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4320 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4321 similiar to what we already did for sc_pc_offset.
4322 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4323 tdep->sc_sp_offset.
4324
6f558d74
MK
4325 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4326
145564b7
ML
43272002-07-02 Michal Ludvig <mludvig@suse.cz>
4328
4329 * config/i386/tm-x86-64linux.h: New.
4330 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4331 definitions.
4332 * config/i386/nm-x86-64.h: Rename to ...
4333 * config/i386/nm-x86-64linux.h: ... this one.
4334 * config/i386/x86-64linux.mh: Reflect the above change.
4335
3a1e71e3
MK
43362002-07-01 Mark Kettenis <kettenis@gnu.org>
4337
21d0e8a4
MK
4338 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4339 with sigcontext_addr. Add sc_sp_offset.
4340 (i386bsd_sigtramp_saved_pc): Remove prototype.
4341 (i386bsd_sicontext_addr): Add prototype.
4342 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4343 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4344 (i386_svr4_sigtramp_saved_pc): Removed.
4345 (i386_svr4_sigcontext_addr): New function.
4346 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4347 Initialize tdep->sigcontext_addr instead. Initialize
4348 tdep->sc_pc_offset and tdep->sc_sp_offset.
4349 (i386_gdbarch_init): Likewise.
4350 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4351 any more.
4352 (i386bsd_sigtramp_saved_pc): Remove function.
4353 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4354 Initialize tdep->sigcontext_addr instead. Initialize
4355 tdep->sc_pc_offset.
4356 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4357 of tdep->sigtramp_saved_pc.
4358 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4359 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4360 instead.
4361
3a1e71e3
MK
4362 * i386-tdep.c (i386_frameless_function_invocation,
4363 i386_frame_num_args, i386_frame_init_saved_regs,
4364 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4365 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4366 i386_extract_return_value, i386_store_return_value,
4367 i386_extract_struct_value_address, i386_register_virtual_type,
4368 i386_register_convertible, i386_register_convert_to_virtual,
4369 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4370 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4371 static.
4372
52e9098c
MK
43732002-07-01 Mark Kettenis <kettenis@gnu.org>
4374
77b13a25
MK
4375 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4376
52e9098c
MK
4377 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4378 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4379 this macro. Include "value.h".
4380
1b372fff
AS
43812002-06-30 Aidan Skinner <aidan@velvet.net>
4382
4383 * ada-exp.tab.c: remove as it's a generated file
4384 * ada-lex.c: remove as it's a generated file
4385
9c5045b5
MK
43862002-06-30 Mark Kettenis <kettenis@gnu.org>
4387
4a93c5bb
MK
4388 * config/i386/tm-i386.h (struct frame_info, struct
4389 frame_saved_regs, struct value, struct type): Remove forward
4390 declarations.
4391
322d4fe0
MK
4392 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4393 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4394 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4395 (FILL_FPXREGSET): Define.
4396
fdd8263d
MK
4397 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4398
482e577b
MK
4399 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4400 i[3456]86-*-netbsd* case.
4401 * config/i386/tm-obsd.h: Removed.
4402 * config/i386/obsd.mt: Removed.
4403 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4404 core-aout.o.
4405 (MH_CFLAGS): Add -DYYDEBUG=0.
4406
6916549a
MK
4407 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4408 i386nbsd_sc_pc_offset on OpenBSD too.
4409
9c5045b5
MK
4410 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4411 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4412 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4413 define.
4414 * i386bsd-tdep.c: Include "arch-utils.h".
4415 (i386bsd_aout_in_solib_call_trampoline): New function.
4416 (i386bsd_init_abi): Set in_solib_call_trampoline to
4417 i386bsd_aout_in_solib_call_trampoline.
4418 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4419 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4420
aa84d1bb
AC
44212002-06-28 Andrew Cagney <ac131313@redhat.com>
4422
4423 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4424 (struct obstack, struct bcache): Add opaque declarations.
4425 * Makefile.in (macrotab_h): Update
4426
b4d83933
AC
44272002-06-28 Andrew Cagney <ac131313@redhat.com>
4428
4429 * blockframe.c (generic_find_dummy_frame): Change return type to
4430 ``struct regcache''.
4431 (struct dummy_frame): Replace field ``registers'' with regcache, a
4432 struct regcache object.
4433 (generic_find_dummy_frame): Update.
4434 (generic_push_dummy_frame): Update. Use regcache_xfree,
4435 regcache_xmalloc and regcache_cpy.
4436 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4437 regcache_xfree.
4438 (deprecated_generic_find_dummy_frame): Update.
4439 (generic_read_register_dummy): Update. Use
4440 regcache_read_as_address.
4441 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4442 (generic_get_saved_register): Update. Use regcache_read.
4443
08c0b5bc
AC
44442002-06-28 Andrew Cagney <ac131313@redhat.com>
4445
4446 * Makefile.in (objfiles_h): Add $(bcache_h).
4447 * objfiles.h: Include "bcache.h".
4448
4449 * Makefile.in (symtab_h): Remove $(bcache_h).
4450 * symtab.h: Do not include "bcache.h".
4451
1f89801a
AC
44522002-06-28 Andrew Cagney <ac131313@redhat.com>
4453
4454 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4455 generic_func_frame_chain_valid.
4456
b9644b58
DB
44572002-06-28 David O'Brien <obrien@FreeBSD.org>
4458
4459 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4460 * config/i386/tm-fbsd.h: Likewise.
4461
dd486634
AC
44622002-06-28 Andrew Cagney <ac131313@redhat.com>
4463
4464 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4465 generic_unwind_get_saved_register.
4466
0b434a00
AC
44672002-06-27 Andrew Cagney <ac131313@redhat.com>
4468
4469 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4470 * regcache.c (supply_register): Add missing argument to
4471 register_buffer call.
4472
f30e5a77
AC
44732002-06-27 Andrew Cagney <ac131313@redhat.com>
4474
4475 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4476 Solaris /bin/grep does not not like it. From Peter Schauer.
4477
9f064c95
TT
44782002-06-26 Tom Tromey <tromey@redhat.com>
4479
4480 * command.h (add_setshow_cmd): Declare.
4481 (add_setshow_cmd_full): Declare.
4482 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4483 returns void. Use add_setshow_cmd_full.
4484 (add_setshow_cmd_full): New function.
4485 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4486 (add_setshow_boolean_cmd): Likewise.
4487
099c7589
JT
44882002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4489
4490 * config/vax/tm-vax.h: Protect from multiple inclusion.
4491 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4492 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4493 * config/vax/tm-vaxbsd.h: ...here. New file.
4494 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4495
1d049c5e
JT
44962002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4497
4498 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4499 (BELIEVE_PCC_PROMOTION): Remove.
4500 (AP_REGNUM): Move to...
4501 * config/vax/nm-vax.h: ...here.
4502 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4503 (vax_breakpoint_from_pc): New function.
4504 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4505 and gdbarch_believe_pcc_promotion.
4506
4791e091
JT
45072002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4508
4509 * Makefile.in (vax_tdep_h): Define.
4510 (vax-tdep.o): Use $(vax_tdep_h).
4511 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4512 (vax_dump_tdep): New function.
4513 (_initialize_vax_tdep): Register vax_dump_tdep.
4514 * vax-tdep.h: Include osabi.h.
4515 (struct gdbarch_tdep): New.
4516
da130f98
AC
45172002-06-26 Andrew Cagney <cagney@redhat.com>
4518
4519 * frame.h (deprecated_generic_find_dummy_frame): Rename
4520 generic_find_dummy_frame.
4521 * blockframe.c (generic_find_dummy_frame): Make static.
4522 (deprecated_generic_find_dummy_frame): New function.
4523 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4524 generic_find_dummy_frame with deprecated_find_dummy_frame.
4525 (sh64_nofp_frame_init_saved_regs): Ditto.
4526 (sh_fp_frame_init_saved_regs): Ditto.
4527 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4528 (s390_frame_chain): Ditto.
4529 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4530
6300c360
GS
45312002-06-26 Grace Sainsbury <graces@redhat.com>
4532
4533 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4534 gdbarch vector are at the top.
4535 (NUM_REGS): Remove.
4536 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4537 (FRAME_ARGS_ADDRESS): Remove.
4538 (FRAME_LOCALS_ADDRESS): Remove.
4539 (FRAME_NUM_ARGS): Remove.
4540 (FRAME_ARGS_SKIP): Remove.
4541 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4542 (m68k_gdbarch_init): Add gdbarch initializations for macros
4543 undefined in tm-m68k.h
4544
1c617db8
GS
45452002-06-26 Grace Sainsbury <graces@redhat.com>
4546
4547 * monitor.h: Add the function regname to monitor_ops
4548 structure. This way NUM_REGS does not have to be a constant.
4549 * monitor.c (monitor_fetch_register): Added support for regname
4550 function. The function is called if the array regnames is NULL.
4551 (monitor_store_register): Same.
da130f98
AC
4552 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4553 regnames array.
1c617db8
GS
4554 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4555 cpu32bug_cmds.regname to point to new function.
4556 * abug-rom.c (abug_regname): Same as above.
4557 (init_abug_cmds): Same.
4558 * dbug-rom.c (dbug_regname): Same as above.
4559 (init_dbug_cmds): Same.
4560 * remote-est.c (est_regname): Same.
4561 (init_est_cmds): Same.
4562 * rom68k-rom.c (rom68k_regname): Same.
4563 (init_rom68k_cmds): Same.
4564
ea9365bb
TT
45652002-06-25 Tom Tromey <tromey@redhat.com>
4566
4567 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4568
72cec141
AC
45692002-06-25 Andrew Cagney <cagney@redhat.com>
4570
4571 * infrun.c (stop_registers): Change variable's type to ``struct
4572 regcache'''.
4573 (xmalloc_inferior_status): Delete function.
4574 (free_inferior_status): Delete function.
4575 (normal_stop): Use regcache_cpy.
4576 (struct inferior_status): Change type of fields ``stop_registers''
4577 and ``registers'' to ``struct regcache''.
4578 (write_inferior_status_register): Use regcache_write.
4579 (save_inferior_status): Instead of calling
4580 xmalloc_inferior_status, allocate the inf_status buffer directly.
4581 Use regcache_dup_no_passthrough and regcache_dup to save the
4582 buffers.
4583 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4584 Replace the stop_registers regcache instead of overriding it. Use
4585 regcache_xfree. Instead of calling free_inferior_status, xfree
4586 the buffer directly.
4587 (discard_inferior_status): Use regcache_xfree. Instead of calling
4588 free_inferior_status, xfree the buffer directly.
4589 (build_infrun): Use regcache_xmalloc.
4590 (_initialize_infrun): Delete redundant call to build_infrun.
4591
4592 * Makefile.in (infcmd.o): Add $(regcache_h).
4593
4594 * infcmd.c: Include "regcache.h".
4595 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4596 obtain the address of `stop_registers' register buffer.
4597 (print_return_value): Ditto.
4598
4599 * inferior.h (struct regcache): Add opaque declaration.
4600 (stop_registers): Change variable's declared type to ``struct
4601 regcache''.
4602
defc6f8c
TT
46032002-06-24 Tom Tromey <tromey@redhat.com>
4604
c0e624e7
TT
4605 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4606 * target.c (initialize_targets): Fixed typo in
4607 trust-readonly-sections `show' documentation.
4608
defc6f8c
TT
4609 * main.c: Marked all strings with _().
4610
2b236d82
DH
46112002-06-24 Don Howard <dhoward@redhat.com>
4612
4613 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4614 that means max CORE_ADDR+1.
4615 (lookup_mem_region): Ditto.
4616 (mem_info_command): Ditto.
4617
942dc0e9
GS
46182002-06-24 Grace Sainsbury <graces@redhat.com>
4619
4620 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4621 (REGISTER_BYTES_OK): Remove.
4622 (REGISTER_BYTES): Remove.
4623 (STORE_STRUCT_RETURN): Remove.
4624 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4625 (STORE_RETURN_VALUE): Remove.
4626 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4627 (FRAME_CHAIN): Remove.
4628 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4629 (FRAME_SAVED_PC): Remove.
4630 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4631 (m68k_store_struct_return): Add.
4632 (m68k_deprecated_extract_return_value): Add.
4633 (m68k_deprecated_extract_struct_value_address): Add.
4634 (m68k_store_return_value): Add.
4635 (m68k_frame_chain): Add.
4636 (m68k_frameless_function_invocation): Add.
4637 (m68k_frame_saved_pc): Add.
4638 (m68k_gdbarch_init): added set_gdbarch calls for new
4639 functions and deleted macros.
4640
03c30d4d
TT
46412002-06-23 Tom Tromey <tromey@redhat.com>
4642
4643 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4644 (ALLDEPFILES): Likewise.
4645 (udiheaders): Removed.
4646 (udip2soc.o): Likewise.
4647 (udi2go32.o): Likewise.
4648 (udr.o): Likewise.
4649 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4650
37e71372
AC
46512002-06-22 Andrew Cagney <ac131313@redhat.com>
4652
06a6ac57
AC
4653 * infrun.c (_initialize_infrun): Delete unnecessary call to
4654 build_infrun.
4655
37e71372
AC
4656 * regcache.h: Update comments describing the regcache_cpy family
4657 of functions.
4658 (regcache_save, regcache_restore): Delete declaration.
4659 (regcache_save_no_passthrough): Delete declaration.
4660 (regcache_restore_no_passthrough): Delete declaration.
4661 * regcache.c (regcache_save): Delete function.
4662 (regcache_save_no_passthrough): Delete function.
4663 (regcache_restore): Delete function.
4664 (regcache_restore_no_passthrough): Delete function.
4665
78f6d055
AC
46662002-06-21 Andrew Cagney <ac131313@redhat.com>
4667
4668 * config/m68k/tm-m68k.h: Fix typo.
4669 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4670 (m68k_frame_init_saved_regs): Declare.
4671
78b119cb
JB
46722002-06-21 Jim Blandy <jimb@redhat.com>
4673
4674 Remove some vestiges of Harris 88k support.
4675 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4676 register numbering quirk.
4677 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4678 odd symbols occurring in Harris 88k ELF targets.
4679
0fbb3da7
TT
46802002-06-21 Tom Tromey <tromey@redhat.com>
4681
4682 * gdb_locale.h: New file.
4683 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4684 (defs_h): Added gdb_locale.h.
4685 * configure, config.in: Rebuilt.
4686 * configure.in (PACKAGE): Define.
4687 * defs.h: Include gdb_locale.h.
4688 * main.c (captured_main): Call setlocale, bindtextdomain,
4689 textdomain.
4690
456f8b9d
DB
46912002-06-21 Dave Brolley <brolley@redhat.com>
4692
4693 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4694 * config/frv/frv.mt: New file.
4695 * config/frv/tm-frv.h: New file.
4696 * configure.tgt: Support frv-*-*.
4697 * Makefile.in (frv-tdep.o): New target.
4698 * frv-tdep.c: New file.
4699 * NEWS: Mention frv.
4700
cdd463f9
DB
47012002-06-21 Dave Brolley <brolley@redhat.com>
4702
4703 * MAINTAINERS: Add self to "Write After Approval" list.
4704
5d3ed2e3
GS
47052002-06-21 Grace Sainsbury <graces@redhat.com>
4706
4707 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4708 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4709 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4710 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4711 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4712
4713 * m68k-tdep.c: Include arch-utils.h
4714 (m68k_register_raw_size): Add.
4715 (m68k_register_virtual_size): Add.
4716 (m68k_register_virtual_type): Add.
4717 (m68k_register_name): Add.
4718 (m68k_stack_align): Add.
4719 (m68k_register_byte): Add.
4720 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4721 tm-m68k.h.
4722
7f8e7424
GS
47232002-06-21 Grace Sainsbury <graces@redhat.com>
4724
a2c6a6d5 4725 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4726 m68k_find_saved_regs.
4727 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4728 references to it with frame->saved_regs.
7f8e7424
GS
4729 (m68k_gdbarch_init): Added function calls to initialize the
4730 gdbarch structure.
a2c6a6d5
GS
4731 (m68k_fix_call_dummy): Add.
4732 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4733 (CALL_DUMMY): Remove.
4734 (CALL_DUMMY_LENGTH): Remove.
4735 (CALL_DUMMY_START_OFFSET): Remove.
4736 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4737 (FIX_CALL_DUMMY): Remove.
4738 (PUSH_DUMMY_FRAME): Remove.
4739 (POP_FRAME): Remove.
7f8e7424 4740
f461f5cf
PM
47412002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4742
4743 * parse.c (parse_fprintf): New function used to avoid calls to
4744 fprintf in bison parser generated debug code.
4745 * parser-defs.h: Declaration of new parse_fprintf function.
4746 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4747 Set YYDEBUG to 1 by default.
4748 Set YYFPRINTF as parse_fprintf.
4749
7f0c12ed
ML
47502002-06-21 Michal Ludvig <mludvig@suse.cz>
4751
4752 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4753 encoding anymore.
4754 (pointer_encoding, enum ptr_encoding): New.
4755 (execute_cfa_program): Take care about pointer encoding.
4756 (dwarf2_build_frame_info): Only call parse_frame_info for
4757 .debug_frame and .eh_frame.
4758 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4759 fixed augmentation handling, added relative addressing,
4760 ignore duplicate FDEs. Added comments.
19d833a2 4761 * dwarf2cfi.c: Reindented.
7f0c12ed 4762
87c4a039
EZ
47632002-06-20 Elena Zannoni <ezannoni@redhat.com>
4764
4765 * event-top.c (command_handler): Don't use space_at_cmd_start
4766 unless there is sbrk() on the host. Assign time and space data
4767 to union fields of the appropriate length.
4768
1cf877ad
ML
47692002-06-20 Michal Ludvig <mludvig@suse.cz>
4770
4771 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4772 x86_64_register_name. Return type changed to 'const char *'.
4773 (x86_64_register_name2nr): Rename to x86_64_register_number.
4774 (x86_64_gdbarch_init): Update to reflect the change.
4775 * x86-64-tdep.h: Ditto.
4776 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4777 (supply_fpregset): Ditto.
4778
3fadccb3
AC
47792002-06-19 Andrew Cagney <cagney@redhat.com>
4780
4781 * regcache.h: Update copyright.
4782 (struct regcache, struct gdbarch): Add opaque declarations.
4783 (current_regcache): Declare global variable.
4784 (regcache_read, regcache_write): Add gdbarch parameter.
4785 (regcache_save, regcache_save_no_passthrough)
4786 (regcache_restore, regcache_restore_no_passthrough)
4787 (regcache_dup, regcache_dup_no_passthrough)
4788 (regcache_cpy, regcache_cpy_no_passthrough)
4789 (deprecated_grub_regcache_for_registers)
4790 (deprecated_grub_regcache_for_register_valid)
4791 (regcache_valid_p): Add function declarations.
4792
4793 * regcache.c: Update copyright.
4794 (regcache_descr_handle): New global variable.
4795 (struct regcache_descr): Define.
4796 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4797 (regcache_descr, xfree_regcache_descr): New functions.
4798 (struct regcache): Define.
4799 (regcache_xmalloc, regcache_xfree): New functions.
4800 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4801 (regcache_dup, regcache_dup_no_passthrough): New functions.
4802 (regcache_valid_p, regcache_read_as_address): New functions.
4803 (deprecated_grub_regcache_for_registers): New function.
4804 (deprecated_grub_regcache_for_register_valid): New function.
4805 (current_regcache): New global variable.
4806 (register_buffer): Add regcache parameter. Update calls.
4807 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4808 (read_register_gen, write_register_gen): Update register_buffer
4809 call. Test for legacy_p instead of gdbarch_register_read_p or
4810 gdbarch_register_write_p.
4811 (regcache_collect): Update register_buffer call.
4812 (build_regcache): Rewrite. Use deprecated grub functions.
4813 (regcache_save, regcache_save_no_passthrough): New functions.
4814 (regcache_restore, regcache_restore_no_passthrough): New
4815 functions.
4816 (_initialize_regcache): Create the regcache_data_handle. Swap
4817 current_regcache global variable.
4818
4819 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4820 parameter to regcache_read and regcache_write calls.
4821 (sh4_register_read): Ditto.
4822 (sh64_pseudo_register_read): Ditto.
4823 (sh64_register_read): Ditto.
4824 (sh_pseudo_register_write): Ditto.
4825 (sh4_register_write): Ditto.
4826 (sh64_pseudo_register_write): Ditto.
4827 (sh64_register_write): Ditto.
4828
4829 * defs.h (XCALLOC): Define.
4830
152d9db6
GS
48312002-06-19 Grace Sainsbury <graces@redhat.com>
4832
4833 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4834 * m68k-tdep.c (m68k_gdbarch_init): Added.
4835 (m68k_dump_tdep): Added.
4836
170911c7
DJ
48372002-06-19 Daniel Jacobowitz <drow@mvista.com>
4838
4839 * ada-lang.c (fill_in_ada_prototype): Update comment.
4840
2e4ebe70
DJ
48412002-06-19 Daniel Jacobowitz <drow@mvista.com>
4842
4843 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4844 MIPS_ABI_LAST.
4845 (mips_abi_string, mips_abi_strings): New.
4846 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4847 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4848 tdep->mips_abi_string. Honor mips_abi_string. Default to
4849 O32 if no ABI is found.
4850 (mips_dump_tdep): Use mips_abi_strings.
4851 (mips_abi_update): New function.
4852 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4853 ``set mips abi'' and ``show mips abi''. Check the size of
4854 mips_abi_strings.
4855
16775908
AC
48562002-06-19 Andrew Cagney <cagney@redhat.com>
4857
4858 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4859 constant.
4860
5051bfa4 48612002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4862
5051bfa4
JB
4863 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4864 current frame using only the first stack size adjustment. All
4865 subsequent size adjustments are not considered to be part of
4866 the "static" part of the current frame.
4867 Compute the address of the saved registers relative to the
4868 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4869 in use in this frame.
4870
56468235
DH
48712002-06-18 Don Howard <dhoward@redhat.com>
4872
4873 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4874 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4875 suggesting this solution.
4876
0b624158
AC
48772002-06-18 Andrew Cagney <ac131313@redhat.com>
4878
4879 * config/romp/xm-rtbsd.h: Delete file.
4880 * config/romp/rtbsd.mh: Delete file.
4881
221ea385
KS
48822002-06-18 Keith Seitz <keiths@redhat.com>
4883
4884 * breakpoint.c (condition_command): Post breakpoint_modify
4885 when a condition is added to an existing breakpoint.
4886 (commands_command): Likewise for commands.
4887 (set_ignore_count): Likewise for ignore counts.
4888 If no tty, do not simply return, still need to send event
4889 notification.
4890 (ignore_command): Only print a newline if the command came
4891 from a tty.
4892 Don't call breakpoints_changed, since this is now properly
4893 handled by set_ignore_count.
4894
5402eed1
AC
48952002-06-18 Andrew Cagney <cagney@redhat.com>
4896
4897 * MAINTAINERS: Note that cris-elf target can be compiled with
4898 -Werror.
4899 * cris-tdep.c (cris_register_name): Make return type constant.
4900 (cris_breakpoint_from_pc): Ditto.
4901
cc22880b
ML
49022002-06-18 Michal Ludvig <mludvig@suse.cz>
4903
4904 * frame.h (struct frame_info): Change type of context to
4905 'struct context'.
4906
fa88f677
AC
49072002-06-17 Andrew Cagney <cagney@redhat.com>
4908
4909 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4910 pointer.
4911 * gdbarch.h, gdbarch.c: Regenerate.
4912 * config/mips/tm-mips.h (mips_register_name): Update.
4913 * i386-tdep.h (i386_register_name): Update.
4914 * mips-tdep.c (mips_register_name): Update
4915 * alpha-tdep.c (alpha_register_name): Update.
4916 * arch-utils.c (legacy_register_name): Update.
4917 * arch-utils.h (legacy_register_name): Update.
4918 * avr-tdep.c (avr_register_name): Update.
4919 * ia64-tdep.c (ia64_register_name): Update.
4920 * i386-tdep.c (i386_register_name): Update.
4921 * sparc-tdep.c (sparc32_register_name): Update.
4922 (sparc64_register_name): Update.
4923 (sparclite_register_name): Update.
4924 (sparclet_register_name): Update.
4925 * sh-tdep.c (sh_generic_register_name): Update.
4926 (sh_sh_register_name): Update.
4927 (sh_sh3_register_name): Update.
4928 (sh_sh3e_register_name): Update.
4929 (sh_sh_dsp_register_name): Update.
4930 (sh_sh3_dsp_register_name): Update.
4931 (sh_sh4_register_name): Update.
4932 (sh_sh64_register_name): Update.
4933 * s390-tdep.c (s390_register_name): Update.
4934 * rs6000-tdep.c (rs6000_register_name): Update.
4935 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4936 (ns32k_register_name_32382): Update.
4937 * d10v-tdep.c (d10v_ts2_register_name): Update.
4938 (d10v_ts3_register_name): Update.
4939 * xstormy16-tdep.c (xstormy16_register_name): Update.
4940 * vax-tdep.c (vax_register_name): Update.
4941 * v850-tdep.c (v850_register_name): Update.
4942 * m68hc11-tdep.c (m68hc11_register_name): Update.
4943 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4944 (am33_register_name): Update.
4945
ea1e7ef6
GS
49462002-06-17 Grace Sainsbury <graces@redhat.com>
4947
4948 * m68k-tdep.c: Reindented.
4949
9b02dd1b
AC
49502002-06-17 Andrew Cagney <ac131313@redhat.com>
4951
4952 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4953 list of predefined types.
4954
8758dec1
MK
49552002-06-16 Mark Kettenis <kettenis@gnu.org>
4956
b6197528
MK
4957 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4958 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4959 REGISTER_CONVERT_TO_RAW): Remove defines.
4960 (i386_register_virtual_type, i386_register_convertible,
4961 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4962 Remove prototypes.
4963 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4964 macros mentioned above.
4965
82b47e62
MK
4966 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4967 (i386lynx_saved_pc_after_call): Remove prototype.
4968 * i386ly-tdep.c: Include "i386-tdep.h".
4969 (i386lynx_saved_pc_after_call): Make static. Use
4970 read_memory_nobpt instead of read_memory. Use
4971 read_memory_unsigned_integer instead of read_memory_integer.
4972 (i386lynx_init_abi): New function.
4973 (i386lynx_coff_osabi_sniffer): New function.
4974 (_initialize_i386bsd_tdep): New function.
4975
8758dec1
MK
4976 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4977 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4978 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4979 (i386_fix_call_dummy): Remove prototype.
4980 * i386-tdep.c (i386_call_dummy_words): New variable.
4981 (i386_gdbarch_init): Adjust for removal of the
4982 macros mentioned above.
4983
e9e68a56
AC
49842002-06-15 Andrew Cagney <ac131313@redhat.com>
4985
4986 * command.h (add_setshow_auto_boolean_cmd): Replace
4987 add_set_auto_boolean_cmd.
4988 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4989 add_set_auto_boolean_cmd.
4990 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4991 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4992 mask-address'' command.
4993 (show_mask_address): Add cmd parameter.
4994 * remote.c (add_packet_config_cmd): Update. Change type of
4995 set_func and show_func to cmd_sfunc_ftype.
4996 (_initialize_remote): Update `set remote Z-packet'
4997 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4998 (show_remote_protocol_e_packet_cmd): Ditto.
4999 (show_remote_protocol_E_packet_cmd): Ditto.
5000 (show_remote_protocol_P_packet_cmd): Ditto.
5001 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5002 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5003 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5004 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5005 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5006 (show_remote_protocol_Z_packet_cmd): Ditto.
5007 (show_remote_protocol_binary_download_cmd): Ditto.
5008 (show_remote_cmd): Pass NULL to all of above.
5009
fc08ec52
MK
50102002-06-15 Mark Kettenis <kettenis@gnu.org>
5011
5012 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5013 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5014 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5015 POP_FRAME): Remove defines.
5016 (i386_push_arguments, i386_store_struct_return,
5017 i386_extract_return_value, i386_store_return_value,
5018 i386_extract_struct_value_address, i386_push_dummy_frame,
5019 i386_pop_frame): Renove prototypes.
5020 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5021 macros mentioned above.
5022
e707bbc2
AC
50232002-06-15 Andrew Cagney <ac131313@redhat.com>
5024
5025 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5026 add_set_boolean_cmd.
5027 (add_setshow_cmd): New function.
5028 * command.h (add_setshow_boolean_cmd): Replace
5029 add_set_boolean_cmd.
5030 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5031 and ``set rdiromatzero''.
5032 * maint.c (_initialize_maint_cmds): Update commented out code.
5033 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5034 * target.c (initialize_targets): Update `set
5035 trust-readonly-sections'.
5036 * remote.c (_initialize_remote): Update `set remotebreak'.
5037
42fdc8df
MK
50382002-06-15 Mark Kettenis <kettenis@gnu.org>
5039
93924b6b
MK
5040 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5041 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5042 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5043 fit into multi-arch framework.
5044 (i386_breakpoint_from_pc): New function.
5045 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5046 above.
5047
42fdc8df
MK
5048 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5049 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5050 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5051 (i386_frameless_function_invocation, i386_frame_num_args,
5052 i386_frame_init_saved_regs): Remove prototypes.
5053 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5054 macros mentioned above.
5055
9773a94b
AC
50562002-06-15 Andrew Cagney <ac131313@redhat.com>
5057
5058 * cli/cli-decode.c (set_cmd_cfunc): Update.
5059 (set_cmd_sfunc): Update.
5060 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5061 (set_cmd_sfunc, set_cmd_cfunc): Update.
5062 * cli/cli-decode.h: Update.
5063
6e157172
MK
50642002-06-15 Mark Kettenis <kettenis@gnu.org>
5065
5066 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5067 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5068
7f19b9a2
AC
50692002-06-15 Andrew Cagney <ac131313@redhat.com>
5070
5071 * defs.h (auto_boolean): Declare enum.
5072 * command.h (cmd_auto_boolean): Delete enum.
5073 * mips-tdep.c (mask_address_var): Update.
5074 (mips_mask_address_p): Update.
5075 (show_mask_address): Update.
5076 * remote.c (struct packet_config): Update.
5077 (update_packet_config): Update.
5078 (show_packet_config_cmd): Update.
5079 (packet_ok): Update.
5080 (add_packet_config_cmd): Update.
5081 (_initialize_remote):
5082 * command.h: Update.
5083 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5084 (do_setshow_command): Update.
5085 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5086 * cli/cli-decode.h: Update.
5087
1cf88de5
MK
50882002-06-15 Mark Kettenis <kettenis@gnu.org>
5089
22ba8cf2
MK
5090 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5091 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5092 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5093 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5094 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5095 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5096
762c5349
MK
5097 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5098 list of DJGPP COFF targets.
5099
091198bb
MK
5100 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5101 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5102 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5103 (FP0_REGNUM): Remove define.
5104 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5105 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5106 (i386_register_virtual_size): Remove protoype.
5107 * i386-tdep.c (i386_register_virtual_size): Removed.
5108 (i386_extract_return_value, i386_store_return_value): Use
5109 FP0_REGNUM instead of NUM_FREGS to determine whether the
5110 floating-point registers are available.
5111 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5112 Adjust for removal of macros mentioned above.
5113
51142002-06-15 Mark Kettenis <kettenis@gnu.org>
5115
fcc9bf01
MK
5116 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5117 comments.
5118 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5119 Remove prototypes.
5120 (supply_gregset, fill_gregset): Remove use of register keyword and
5121 remove declaration for regmap. Use I386_NUM_GREGS instead of
5122 NUM_REGS and NUM_FREGS.
5123 (FPREGSET_FSAVE_OFFSET): Remove.
5124 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5125 NUM_FREGS to determine whether the floating-point registers are
5126 available.
5127
65e78234
MK
5128 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5129 gnu_store_registers): Replace usage of NUM_GREGS with
5130 I386_NUM_GREGS.
5131
98df6387
MK
5132 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5133 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5134 usage of NUM_GREGS with I386_NUM_GREGS.
5135
099a9414
MK
5136 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5137
57976e88
MK
5138 * i386bsd-nat.c: Include "i386-tdep.h".
5139 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5140 I386_NUM_GREGS.
5141
b335f4a6
MK
5142 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5143 and associated comment. They no longer make any sense, since we
5144 don't use this file anymore on Linux.
5145
1cf88de5
MK
5146 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5147 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5148 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5149 elements in these arrays.
5150 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5151 MAX_NUM_REGS.
5152
daa66587
MK
51532002-06-15 Mark Kettenis <kettenis@gnu.org>
5154
5155 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5156 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5157
26e9b323
AC
51582002-06-14 Andrew Cagney <cagney@redhat.com>
5159
5160 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5161 EXTRACT_RETURN_VALUE.
5162 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5163 EXTRACT_STRUCT_VALUE_ADDRESS.
5164 * gdbarch.h, gdbarch.c: Regenerate.
5165
5166 * values.c (value_being_returned): Handle
5167 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5168 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5169
5170 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5171 * arm-tdep.c (arm_gdbarch_init): Update.
5172 * avr-tdep.c (avr_gdbarch_init): Update.
5173 * cris-tdep.c (cris_gdbarch_init): Update.
5174 * d10v-tdep.c (d10v_gdbarch_init): Update.
5175 * ia64-tdep.c (ia64_gdbarch_init): Update.
5176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5178 * s390-tdep.c (s390_gdbarch_init): Update.
5179 * sh-tdep.c (sh_gdbarch_init): Update.
5180 * s390-tdep.c (s390_gdbarch_init): Update.
5181 * sparc-tdep.c (sparc_gdbarch_init): Update.
5182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5183 * v850-tdep.c (v850_gdbarch_init): Update.
5184 * vax-tdep.c (vax_gdbarch_init): Update.
5185 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5187
5188 * config/arc/tm-arc.h: Update.
5189 * config/d30v/tm-d30v.h: Update.
5190 * config/fr30/tm-fr30.h: Update.
5191 * config/h8300/tm-h8300.h: Update.
5192 * config/h8500/tm-h8500.h: Update.
5193 * config/i386/tm-i386.h: Update.
5194 * config/i386/tm-ptx.h: Update.
5195 * config/i386/tm-symmetry.h: Update.
5196 * config/i960/tm-i960.h: Update.
5197 * config/m32r/tm-m32r.h: Update.
5198 * config/m68k/tm-delta68.h: Update.
5199 * config/m68k/tm-linux.h: Update.
5200 * config/m68k/tm-m68k.h: Update.
5201 * config/m88k/tm-m88k.h: Update.
5202 * config/mcore/tm-mcore.h: Update.
5203 * config/mips/tm-mips.h: Update.
5204 * config/mn10200/tm-mn10200.h: Update.
5205 * config/pa/tm-hppa.h: Update.
5206 * config/pa/tm-hppa64.h: Update.
5207 * config/sparc/tm-sp64.h: Update.
5208 * config/sparc/tm-sparc.h: Update.
5209 * config/sparc/tm-sparclet.h: Update.
5210 * config/z8k/tm-z8k.h: Update.
5211
5179e78f
AC
52122002-06-14 Andrew Cagney <cagney@redhat.com>
5213
5214 * Makefile.in (i386_linux_tdep_h): Define.
5215 (i386_tdep_h, i387_tdep_h): Define.
5216 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5217 $(i386_tdep_h) and $(i387_tdep_h).
5218 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5219
8201327c
MK
52202002-06-14 Mark Kettenis <kettenis@gnu.org>
5221
edf393ac
MK
5222 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5223 Already covered by the default.
5224
896fb97d
MK
5225 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5226 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5227 (i386_gdbarch_init): Initialize long_double_format and long_double
5228 bit.
5229
8201327c
MK
5230 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5231 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5232 Move these to ...
5233 * config/i386/i386sol2.mh: ... here.
5234 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5235 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5236 (SIGCONTEXT_PC_OFFSET): Remove define.
5237 (IN_SIGTRAMP): Remove define.
5238 * i386-sol2-tdep.c: New file.
5239
5240 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5241 * config/i386/tm-i386nw.h: Removed.
5242
5243 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5244 USE_STRUCT_CONVENTION): Remove defines.
5245 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5246 (get_longjmp_target): Remove prototype.
5247 (IN_SIGTRAMP): Remove define.
5248 (i386bsd_in_sigtramp): Remove prototype.
5249 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5250 function. Update comment accordingly
5251 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5252 (FRAME_SAVED_PC): Remove define.
5253 (i386bsd_frame_saved_pc): Remove prototype.
5254 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5255 GET_LONGJMP_TARGET): Remove defines.
5256 (get_longjmp_target): Remove prototype.
5257 (IN_SIGTRAMP): Remove define.
5258 (i386bsd_in_sigtramp): Remove prototype.
5259 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5260 function. Update comment accordingly
5261 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5262 (FRAME_SAVED_PC): Remove define.
5263 (i386bsd_frame_saved_pc): Remove prototype.
5264 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5265 Remove prototype.
5266 (USE_STRUCT_CONVENTION): Remove prototype.
5267 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5268 declaration.
5269 (_initialize_i386bsd_nat): Revise logic to determine some
5270 constants at compile time when compiling a native GDB. Warn if
5271 things don't match up with what we expect.
5272 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5273 Remove variables.
5274 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5275 to use date stored in `struct gdbarch_tdep'.
5276 (i386bsd_sigcontext_offset): Remove varaible.
5277 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5278 stored in `struct gdbarch_tdep'.
5279 (i386bsd_frame_saved_pc): Make static.
5280 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5281 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5282 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5283 i386fbsd4_sc_pc_offset): New variables.
5284 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5285 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5286 functions.
5287 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5288 functions.
5289 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5290 Modify the value of i386fbsd_sigtramp_start and
5291 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5292 i386fbsd_sigtramp_end.
5293 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5294 function.
5295
5296 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5297 define to i386-linux-tdep.h.
5298 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5299 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5300 defines.
5301 (i386_linux_register_name, i386_linux_register_byte,
5302 i386_linux_register_raw_size): Remove prototypes.
5303 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5304 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5305 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5306 TARGET_WRITE_PC): Remove defines.
5307 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5308 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5309 i386_linux_write_pc): Remove prototypes.
5310 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5311 (get_longjmp_target): Remove prototype.
5312 * i386-linux-tdep.h: New file.
5313 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5314 * i386-linux-tdep.c: Include "i386-tdep.h" and
5315 "i386-linux-tdep.h".
5316 (i386_linux_register_name, i386_linux_register_byte,
5317 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5318 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5319 Make static.
5320 (i386_linux_init_abi): New function.
5321 (_initialize_i386_linux_tdep): New function.
5322
5323 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5324 (i386_saved_pc_after_call): Remove prototype.
5325 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5326 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5327 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5328 (i386_register_name, i386_stab_reg_to_regnum,
5329 i386_dwarf_reg_to_regnum): Remove prototypes.
5330 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5331 SIZEOF_SSE_REGS): Remove defines.
5332 (REGISTER_BYTES): Remove define.
5333 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5334 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5335 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5336 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5337 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5338 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5339 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5340 (get_longjmp_target): Remove prototype.
5341 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5342 (sigtramp_saved_pc): Remove define.
5343 (i386v4_sigtramp_saved_pc): Remove prototype.
5344 * config/i386/tm-go32.h (FRAME_CHAIN,
5345 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5346 (i386go32_frame_saved_pc): Remove prototype.
5347 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5348 (get_longjmp_target): Remove prototype.
5349 * i386-tdep.h: Include "osabi.h".
5350 (enum i386_abi): Removed.
5351 (enum struct_return): New enum.
5352 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5353 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5354 sc_pc_offset members.
5355 (i386_gdbarch_register_os_abi): Remove prototype.
5356 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5357 I386_SSE_NUM_REGS): New defines.
5358 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5359 I386_SSE_SIZEOF_REGS): New defines.
5360 (i386_register_name, i386_register_byte, i386_register_raw_size):
5361 New prototypes.
5362 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5363 (i386bsd_sigtramp_saved_pc): New prototype.
5364 * i386-tdep.c: Don't include "elf-bfd.h".
5365 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5366 i386_frame_chain, i386_saved_pc_after_call): Make static.
5367 (i386_frame_saved_pc): Rewrite to call architecture dependent
5368 function to deal with signal handlers. Make static.
5369 (i386go32_frame_saved_pc): Removed.
5370 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5371 Removed.
5372 (i386_get_longjmp_target): New function.
5373 (default_struct_convention, pcc_struct_convention,
5374 reg_struct_convention, valid_conventions, struct_convention): New
5375 variables.
5376 (i386_use_struct_convention): New function.
5377 (i386v4_sigtramp_saved_pc): Renamed to
5378 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5379 (i386_pc_in_sigtramp): New function.
5380 (i386_abi_names): Removed.
5381 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5382 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5383 Removed.
5384 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5385 i386_gdbarch_register_os_abi): Removed.
5386 (struct i386_abi_handler): Removed.
5387 (i386_abi_handler_list): Removed.
5388 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5389 functions.
5390 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5391 i386_nw_init_abi): New functions.
5392 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5393 Use set_gdbarch_xxx() calls instead of relying on macros for a
5394 number of calls.
5395 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5396 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5397 Register the various architecture variants defined in this file.
5398
ad2f7632
DJ
53992002-06-14 Daniel Jacobowitz <drow@mvista.com>
5400
5401 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5402 (struct main_type): Remove arg_types member. Update comments for
5403 struct field.
5404 (TYPE_ARG_TYPES): Remove.
5405 (TYPE_FN_FIELD_ARGS): Update.
5406 (smash_to_method_type): Update prototype.
5407
5408 * c-typeprint.c (cp_type_print_method_args): Take method type
5409 instead of argument list. Use new argument layout. Simplify.
5410 (c_type_print_args): Use new argument layout. Simplify.
5411 (c_type_print_base): Update call to cp_type_print_method_args.
5412 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5413 argument; use die->type instead. Update call to
5414 smash_to_method_type.
5415 (read_structure_scope): Update call to dwarf2_add_member_fn.
5416 * gdbtypes.c (allocate_stub_method): Update comment.
5417 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5418 Use new argument layout.
5419 (check_stub_method): Use new argument layout. Don't count
5420 void as an argument.
5421 (print_arg_types): Update comments. Use new argument layout.
5422 (recursive_dump_type): Don't print arg_types member.
5423 * hpread.c (hpread_read_struct_type): Use new argument layout.
5424 (fixup_class_method_type): Likewise.
5425 (hpread_type_lookup): Likewise.
5426 * stabsread.c (read_type): Update calls to read_args and
5427 smash_to_method_type.
5428 (read_args): Use new argument layout. Simplify.
5429 * valops.c (typecmp): Use new argument layout. Update parameters
5430 and comments. Simplify.
5431 (hand_function_call): Use new argument layout.
5432 (search_struct_method): Update call to typecmp.
5433 (find_overload_match): Use new argument layout.
5434
6da02953
DJ
54352002-06-13 Daniel Jacobowitz <drow@mvista.com>
5436
5437 * NEWS: Mention multithreaded debug support for gdbserver.
5438
519b2366
DJ
54392002-06-13 Daniel Jacobowitz <drow@mvista.com>
5440
5441 * MAINTAINERS: Mention NEWS.
5442
6c0d6680
DJ
54432002-06-13 Daniel Jacobowitz <drow@mvista.com>
5444
5445 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5446 (struct mips_objfile_private, compare_pdr_entries): New.
5447 (non_heuristic_proc_desc): Read the ".pdr" section if it
5448 is present.
5449
6529d2dd
AC
54502002-06-12 Andrew Cagney <ac131313@redhat.com>
5451
5452 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5453 (arm_debug): New static variable.
5454 (_initialize_arm_tdep): Add ``set debug arm'' command.
5455
26216b98
AC
54562002-06-12 Andrew Cagney <ac131313@redhat.com>
5457
5458 * Makefile.in (sim_arm_h): Define.
5459 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5460 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5461 (arm_register_sim_regno): New function, map an internal REGNUM
5462 onto a simulator register number.
5463 (arm_gdbarch_init): Set register_sim_regno.
5464
814b3ba0
AH
54652002-06-09 Aldy Hernandez <aldyh@redhat.com>
5466
5467 * MAINTAINERS: Add self.
5468
475b0867
JB
54692002-06-11 Jim Blandy <jimb@redhat.com>
5470
919d772c
JB
5471 * source.c (source_info): Mention whether the symtab has
5472 information about preprocessor macros.
5473
475b0867
JB
5474 Call the command `info macro', not `show macro'.
5475 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5476 Fix error message.
5477 (_initialize_macrocmd): Register `info_macro_command' in
5478 `infolist', not `showlist'.
5479
9e364162
DJ
54802002-06-11 Daniel Jacobowitz <drow@mvista.com>
5481
5482 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5483 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5484 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5485 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5486 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5487 unconditionally.
5488 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5489 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5490 (_initialize_mips_tdep): Remove dead code.
5491 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5492 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5493 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5494 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5495 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5496 MIPS_LAST_FP_ARG_REGNUM): Remove.
5497
23aa4c72
ML
54982002-06-11 Michal Ludvig <mludvig@suse.cz>
5499
5500 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5501 (unwind_tmp_obstack_free, parse_frame_info)
5502 (update_context, cfi_read_fp, cfi_write_fp)
5503 (cfi_frame_chain, cfi_init_extra_frame_info)
5504 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5505 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5506
70eb15a4
CV
55072002-06-11 Corinna Vinschen <vinschen@redhat.com>
5508
5509 * v850-tdep.c (v850_type_is_scalar): New function.
5510 (v850_use_struct_convention): Match current gcc implementation
5511 as close as possible.
5512 (v850_push_arguments): Fix stack_offset handling. Don't write
5513 struct_addr into register. This is done by v850_store_struct_return.
5514 (v850_extract_return_value): Care for structs.
5515 (v850_store_return_value): Ditto.
5516 (v850_store_struct_return): Actually write address.
5517
482a4d06
ML
55182002-06-11 Michal Ludvig <mludvig@suse.cz>
5519
5520 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5521 without debug information too.
5522
d855c300
AC
55232002-06-10 Andrew Cagney <ac131313@redhat.com>
5524
5525 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5526 Make multi-arch pure.
5527 * gdbarch.h, gdbarch.c: Re-generate.
5528 * arm-tdep.c (arm_print_float_info): Update.
5529 * arch-utils.h (default_print_float_info): Update.
5530 * arch-utils.c (default_print_float_info): Update.
5531 * infcmd.c (float_info): Update call.
5532
dd12a101
AC
55332002-06-10 Andrew Cagney <ac131313@redhat.com>
5534
5535 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5536 the front of the initialize list.
5537
101dcfbe
AC
55382002-06-10 Andrew Cagney <ac131313@redhat.com>
5539
5540 * infrun.c (struct inferior_status): Replace fields
5541 selected_frame_address and selected_level with field
5542 selected_frame_id.
5543 (save_inferior_status): Update. Use get_frame_id.
5544 (struct restore_selected_frame_args): Delete.
5545 (restore_selected_frame): Update. Use frame_find_by_id.
5546 (restore_inferior_status): Update.
5547
5548 * breakpoint.h (struct breakpoint): Change type of
5549 watchpoint_frame to frame_id.
5550 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5551 call to get_current_frame.
5552 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5553 get_current_frame.
5554 (watchpoint_check): Use frame_find_by_id.
5555
5556 * frame.h (record_selected_frame): Delete declaration.
5557 * stack.c (record_selected_frame): Delete function.
5558
5559 * frame.h (struct frame_id): Define.
5560 (get_frame_id): Declare.
5561 (frame_find_by_id): Declare.
5562 * frame.c (frame_find_by_id): New function.
5563 (get_frame_id): New function.
5564
304270b6
AV
55652002-06-10 Andrey Volkov <avolkov@transas.com>
5566
5567 * ser-e7kpc.c: Fix duplicated define and call of
5568 _initialize_ser_e7000pc
5569
2f2cf184
DJ
55702002-06-09 Daniel Jacobowitz <drow@mvista.com>
5571
5572 * signals/signals.c (target_signal_from_host): Fix #ifdef
5573 SIGRTMIN case.
5574 (do_target_signal_to_host): Likewise.
5575
caaa3122
DJ
55762002-06-09 Daniel Jacobowitz <drow@mvista.com>
5577
5578 * mips-tdep.c (mips_find_abi_section): New function.
5579 (mips_gdbarch_init): Call it.
5580
6ac5df3a
MK
55812002-06-09 Mark Kettenis <kettenis@gnu.org>
5582
5583 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5584 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5585 after Andrew's 2002-06-08 gdbarch change.
5586
82ea117a
MK
55872002-06-09 Mark Kettenis <kettenis@gnu.org>
5588
5589 * i386-linux-nat.c (suppy_gregset): Don't supply
5590 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5591 register cache.
5592 (fill_gregset): Don't fetch it under the same circumstances.
5593
3c25f8c7
AC
55942002-06-09 Andrew Cagney <cagney@redhat.com>
5595
5596 * Makefile.in (callback_h): Define.
5597 (remote_sim_h): Update path to remote-sim.h.
5598 (remote-rdp.o): Add $(callback_h).
5599 (remote-sim.o): Use $(callback_h).
5600 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5601 * remote-rdp.c: Include "gdb/callback.h".
5602
1029b7fa
MK
56032002-06-09 Mark Kettenis <kettenis@gnu.org>
5604
5605 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5606 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5607
616675d3
AC
56082002-06-08 Andrew Cagney <ac131313@redhat.com>
5609
a3efda28
AC
5610 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5611 * rdi-share/serpardr.c: Ditto.
5612 * rdi-share/unixcomm.c: Ditto.
5613 * rdi-share/serdrv.c: Ditto.
5614 * rdi-share/hostchan.h: Ditto.
5615 * rdi-share/hostchan.c: Ditto.
5616 * rdi-share/host.h: Ditto.
5617 * rdi-share/devsw.c: Ditto.
5618
c5f10366
AC
5619 * objfiles.h: Change type of obj_private to void pointer.
5620 * pa64solib.c: Update copyright. Don't include "assert.h", use
5621 strcmp instead of STREQ, use LONGEST, do not use PTR
5622 * somsolib.c: Ditto.
5623
616675d3
AC
5624 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5625 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5626 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5627
e4b415d9
AC
56282002-06-08 Andrew Cagney <ac131313@redhat.com>
5629
5630 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5631 (default_get_saved_register): Delete function.
5632 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5633 generic_unwind_get_saved_register.
5634 * gdbarch.h, gdbarch.c: Re-generate.
5635
ca0d0b52
AC
56362002-06-08 Andrew Cagney <ac131313@redhat.com>
5637
5638 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5639 generic_func_frame_chain_valid.
5640 * gdbarch.h, gdbarch.c: Re-generate.
5641 * blockframe.c (generic_func_frame_chain_valid): Only check
5642 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5643 passing FP to PC_IN_CALL_DUMMY.
5644 Fix PR gdb/360.
5645
76860b5f
AC
56462002-06-08 Andrew Cagney <ac131313@redhat.com>
5647
5648 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5649 (register_gdbarch_data): Initialize init_p.
5650 (gdbarch_data): Initialize data pointer using the init function.
5651 (init_gdbarch_data): Delete function.
5652 (gdbarch_update_p): Update.
5653 (initialize_non_multiarch): Update.
5654 (struct gdbarch): Add field initialized_p.
5655 * gdbarch.h, gdbarch.c: Re-generate.
5656
8dda9770
ML
56572002-06-07 Michal Ludvig <mludvig@suse.cz>
5658
5659 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5660 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5661 better do the things actually here.
5662 * x86-64-tdep.c (x86_64_register_name2nr): New.
5663 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5664 (x86_64_gdbarch_init): Respect the above change.
5665 * x86-64-tdep.h (x86_64_register_name2nr)
5666 (x86_64_register_nr2name): Add prototypes.
5667 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5668
3d79a47c
MS
56692002-06-06 Michael Snyder <msnyder@redhat.com>
5670
7bd91a28
MS
5671 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5672 Delete extra braces and re-indent.
5673 (d10v_store_return_value): Char return values
3d79a47c
MS
5674 must be shifted over by one byte in R0.
5675 (d10v_extract_return_value): Delete extra braces, re-indent.
5676
095a4c96
EZ
56772002-06-06 Elena Zannoni <ezannoni@redhat.com>
5678
5679 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5680 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5681 (d10v_integer_to_address): Rewrite.
5682 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5683 the d10v specific functions which take care of converting to the
5684 correct space.
5685
e8a77ca4
EZ
56862002-06-06 Elena Zannoni <ezannoni@redhat.com>
5687
5688 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5689 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5690
4f2e4a4f
AC
56912002-06-02 Andrew Cagney <ac131313@redhat.com>
5692
5693 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5694 includes.
5695 * config/tm-linux.h: Ditto.
5696 * config/alpha/tm-alphalinux.h: Ditto.
5697 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5698 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5699 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5700 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5701 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5702 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5703 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5704 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5705 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5706 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5707 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5708 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5709 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5710 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5711 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5712 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5713 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5714 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5715 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5716 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5717 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5718 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5719 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5720 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5721 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5722 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5723 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5724 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5725 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5726 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5727 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5728 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5729 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5730 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5731 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5732 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5733 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5734
ae2ab2ce
AS
57352002-05-04 Aidan Skinner <aidan@velvet.net>
5736
5737 * ada-exp.tab.c: New file
5738 * ada-exp.y: New file
5739 * ada-lang.c: New file
5740 * ada-lang.h: New file
5741 * ada-lex.c: New file
5742 * ada-lex.l: New file
5743 * ada-tasks.c: New file
5744 * ada-typeprint.c: New file
5745 * ada-valprint.c: New file
5746
0ddd0135
JT
57472002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5748
5749 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5750 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5751
750fbacc
JT
57522002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5753
5754 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5755 insetead of ppc-linux-tdep.o.
5756 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5757 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5758
df94e18a
AC
57592002-06-02 Andrew Cagney <ac131313@redhat.com>
5760
5761 2002-05-07 Christian Groessler <chris@groessler.org>
5762 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5763 bit register contents for little endian hosts.
5764
1a38ab75
AC
57652002-06-01 Andrew Cagney <ac131313@redhat.com>
5766
5767 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5768 any maintainer.
5769
8b1632ac
AC
57702002-06-01 Andrew Cagney <ac131313@redhat.com>
5771
5772 * gdbarch.h: Regenerate.
5773
627054c8
AC
57742002-06-01 Andrew Cagney <ac131313@redhat.com>
5775
5776 * MAINTAINERS: Add everyone to write-after-approval list.
5777
4f460812
AC
57782002-06-01 Andrew Cagney <ac131313@redhat.com>
5779
5780 * stack.c (frame_info): Use frame_register_unwind instead of
5781 saved_regs. Mention when the SP is on the stack or in a register.
5782
5783 * frame.h (frame_register_unwind_ftype): Define. Document.
5784 (struct frame_info): Add field register_unwind and
5785 register_unwind_cache.
5786 (frame_register_unwind): Declare.
5787 (generic_unwind_get_saved_register): Declare.
5788
5789 * frame.c (frame_register_unwind): New function.
5790 (generic_unwind_get_saved_register): New function.
5791
5792 * blockframe.c (generic_call_dummy_register_unwind): New function.
5793 (frame_saved_regs_register_unwind): New function.
5794 (set_unwind_by_pc): New function.
5795 (create_new_frame): New function.
5796 (get_prev_frame): New function.
5797
de888f76
AC
57982002-05-30 Andrew Cagney <ac131313@redhat.com>
5799
5800 * a29k-share/: Delete directory.
5801 * remote-vx29k.c: Delete file.
5802
2f2c3626
JT
58032002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5804
5805 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5806 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5807
9ce5c36a
JT
58082002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5809
5810 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5811 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5812 (sparc64nbsd-nat.o)
5813 (sparcnbsd-nat.o)
5814 (sparcnbsd-tdep.o): New dependency lists.
5815 * NEWS: Note new UltraSPARC NetBSD native configuration.
5816 * configure.host (sparc64-*-netbsd*): New host.
5817 * configure.tgt (sparc-*-netbsdelf*)
5818 (sparc-*-netbsd*): Set gdb_target to nbsd.
5819 (sparc64-*-netbsd*): New target.
5820 * sparc64nbsd-nat.c: New file.
5821 * sparcnbsd-nat.c: New file.
5822 * sparcnbsd-tdep.c: New file.
5823 * sparcnbsd-tdep.h: New file.
5824 * config/sparc/nbsd.mt: New file.
5825 * config/sparc/nbsd64.mh: New file.
5826 * config/sparc/nbsd64.mt: New file.
5827 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5828 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5829 (HOST_IPC): Remove.
5830 * config/sparc/nbsdaout.mt: Remove.
5831 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5832 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5833 (HOST_IPC): Remove.
5834 * config/sparc/nbsdelf.mt: Remove.
5835 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5836 sparc-nat.c compatiblity defines.
5837 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5838 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5839 * config/sparc/tm-nbsd64.h: New file.
5840 * config/sparc/tm-nbsdaout.h: Remove.
5841 * config/sparc/xm-nbsd.h: Remove.
5842
ef3cf062
JT
58432002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5844
5845 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5846 * sparc-tdep.c: Include osabi.h.
5847 (gdbarch_tdep): Add osabi member.
5848 (_initialize_sparc_tdep): Use gdbarch_register.
5849 (sparc_gdbarch_init): Use generic OS ABI framework.
5850 (sparc_dump_tdep): New function.
5851
ee8ff470
KB
58522002-05-30 Kevin Buettner <kevinb@redhat.com>
5853
5854 * corefile.c (do_captured_read_memory_integer): Return non-zero
5855 result.
5856 (safe_read_memory_integer): Copy result of memory read when
5857 status is non-zero. Also, add comments.
5858
7b112f9c
JT
58592002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5860
5861 * Makefile.in (ppc_tdep_h): Define.
5862 (ppc-linux-nat.o)
5863 (ppc-linux-tdep.o)
5864 (rs6000-tdep.o): Use $(ppc_tdep_h).
5865 (ppc-sysv-tdep.o)
5866 (ppcnbsd-nat.o)
5867 (ppcnbsd-tdep.o): New dependency lists.
5868 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5869 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5870 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5871 (ppc_sysv_abi_broken_use_struct_convention)
5872 (ppc_sysv_abi_use_struct_convention)
5873 (ppc_sysv_abi_push_arguments): Move to...
5874 * ppc-sysv-tdep.c: ...here.
5875 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5876 * rs6000-tdep.c (process_note_abi_tag_sections)
5877 (get_elfosabi): Remove.
5878 (rs6000_gdbarch_init): Use generic OS ABI framework.
5879 (rs6000_dump_tdep): New function.
5880 (_initialize_rs6000_tdep): Use gdbarch_register.
5881 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5882 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5883 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5884 of ppc-linux-tdep.o.
5885 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5886 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5887 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5888 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5889 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5890 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5891
480dd42a
JB
58922002-05-29 Jim Blandy <jimb@redhat.com>
5893
5894 * macroscope.c (default_macro_scope): Put `void' in empty argument
5895 list.
5896
4182591f
AC
58972002-05-29 Andrew Cagney <ac131313@redhat.com>
5898
5899 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5900 * arch-utils.c: Include "sim-regno.h".
5901 * gdbarch.sh: Don't include "sim-regno.h".
5902 * gdbarch.h, gdbarch.c: Regenerate.
5903 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5904 here.
5905 * arch-utils.h (legacy_register_sim_regno): To here.
5906 * remote-sim.c (legacy_register_sim_regno): Move function from
5907 here.
5908 * arch-utils.c (legacy_register_sim_regno): To here.
5909
8238d0bf
AC
59102002-05-28 Andrew Cagney <ac131313@redhat.com>
5911
5912 * sim-regno.h: New file.
5913 * Makefile.in (sim_regno_h): Define.
5914 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5915 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5916 (legacy_register_sim_regno): New function.
5917 (one2one_register_sim_regno): New function.
5918 (gdbsim_fetch_register): Rewrite.
5919 (gdbsim_store_register): Only store a register when
5920 REGISTER_SIM_REGNO is valid.
5921 * d10v-tdep.c: Include "sim-regno.h".
5922 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5923 (d10v_ts3_register_sim_regno): Ditto.
5924 * gdbarch.sh: Include "sim-regno.h".
5925 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5926 * gdbarch.h, gdbarch.c: Regenerate.
5927 * arch-utils.h (default_register_sim_regno): Delete declaration.
5928 * arch-utils.c (default_register_sim_regno): Delete function.
5929
485721b1
JT
59302002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5931
5932 * ppcnbsd-nat.c: Rewrite.
5933 * ppcnbsd-tdep.c: New file.
5934 * ppcnbsd-tdep.h: New file.
5935 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5936 solib.o, and solib-svr4.o.
5937 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5938 nbsd-tdep.o, and corelow.o.
5939
697f244d
AC
59402002-05-28 Andrew Cagney <ac131313@redhat.com>
5941
5942 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5943 `tr' and `sed'. Mention that `broken' targets are not expected to
5944 build.
5945
f08caad1 59462002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5947
5948 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5949 Let PC point right after the prologue before looking up symbols.
5950
3139facc
MH
59512002-05-27 Martin M. Hunt <hunt@redhat.com>
5952
5953 * i386-tdep.c (i386_register_virtual_type): Return
5954 builtin_type_vec128i for SSE registers.
5955
5956 * gdbtypes.h (builtin_type_vec128i): Declare.
5957
5958 * gdbtypes.c (build_builtin_type_vec128i): New function.
5959 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5960 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5961 (build_gdbtypes): Initialize new builtin vector types.
5962 (_initialize_gdbtypes): Register new vector types with gdbarch.
5963
6e3ba3b8
JT
59642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5965
5966 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5967 since it has been multi-arch'd.
5968 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5969 Move Alpha and VAX multi-arch news entries to same section
5970 as other multi-arch news.
5971
93d5585d
JT
59722002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5973
5974 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5975 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5976 static. Rename some register numbers to put them in ns32k-tdep
5977 private namespace.
5978 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5979 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5980 functions.
5981 (_initialize_ns32k_tdep): Use gdbarch_register.
5982 * ns32k-tdep.h: New file.
5983 * ns32knbsd-tdep.c: New file.
5984 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5985 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5986 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5987 REGISTER_BYTES, REGISTER_BYTE): Remove.
5988 * config/ns32k/tm-ns32k.h: New file.
5989 * config/ns32k/tm-umax.h: Remove.
5990
efb2c70e
JT
59912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5992
5993 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5994 ns32k_store_struct_return, ns32k_extract_return_value,
5995 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5996 functions.
5997 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5998 ns32k_saved_pc_after_call.
5999 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6000 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6001 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6002 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6003 ns32k_extract_struct_value_address.
6004
7bcc927b
JT
60052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6006
6007 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6008 ns32k_fix_call_dummy): New.
6009 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6010 ns32k_call_dummy_words.
6011 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6012 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6013 CALL_DUMMY_NARGS): Remove.
6014 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6015
78f9d765
JT
60162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6017
6018 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6019 ns32k_frame_saved_pc, ns32k_frame_args_address,
6020 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6021 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6022 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6023 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6024 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6025 (BREAKPOINT): Remove..
6026 (FRAME_CHAIN): Define as ns32k_frame_chain.
6027 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6028 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6029 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6030 (FRAME_FIND_SAVED_REGS): Remove.
6031 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6032 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6033 (POP_FRAME): Define as ns32k_pop_frame.
6034
f2c762e0
JT
60352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6036
6037 * ns32k-tdep.c (ns32k_register_byte_32082,
6038 ns32k_register_byte_32382, ns32k_register_raw_size,
6039 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6040 functions.
6041 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6042 ns32k_register_byte_32382.
6043 * config/ns32k/tm-umax.h: Update copyright years.
6044 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6045 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6046 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6047 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6048 (ns32k_get_enter_addr): Fix prototype.
6049
af137673
JT
60502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6051
6052 * ns32k-tdep.c: Update copyright years.
6053 (ns32k_register_name_32082): New function.
6054 (ns32k_register_name_32382): Ditto.
6055 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6056 (REGISTER_NAME): Define as ns32k_register_name_32382.
6057 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6058 (REGISTER_NAME): Define as ns32k_register_name_32082.
6059
a8bc7b56
JB
60602002-05-24 Jim Blandy <jimb@redhat.com>
6061
6062 * dwarf2read.c (free_line_header): Use xfree, not free.
6063
83a45910
JT
60642002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6065
6066 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6067 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6068
0db71247
AC
60692002-05-23 Andrew Cagney <ac131313@redhat.com>
6070
6071 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6072
b9e5e4dd
AC
60732002-05-23 Andrew Cagney <ac131313@redhat.com>
6074
6075 From Ross Alexander at NEC Europe:
6076 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6077
de530e84
MS
60782002-05-23 Michael Snyder <msnyder@redhat.com>
6079
6080 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6081 for input, rather than parse_and_eval_address.
6082
b91b96f4
AC
60832002-05-23 Andrew Cagney <ac131313@redhat.com>
6084
6085 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6086 * Makefile.in (sim_d10v_h): Update definition.
6087
8b279e7a
AC
60882002-05-24 Andrew Cagney <cagney@redhat.com>
6089
6090 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6091 change `2002-05-22 Michael Snyder' below.
6092 (d10v_push_arguments): Ditto.
6093 (d10v_extract_return_value): Ditto.
6094
0a3d0425
JB
60952002-05-23 Jim Blandy <jimb@redhat.com>
6096
6097 * macrotab.c (check_for_redefinition): Don't complain if the new
6098 definition is the same as the previous one. Take more arguments
6099 to allow the comparison.
6100 (macro_define_object, macro_define_function): Pass more arguments
6101 to check_for_redefinition.
6102
78eac43e
MS
61032002-05-22 Michael Snyder <msnyder@redhat.com>
6104
6105 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6106 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6107 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6108 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6109 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6110 Add a temp variable to save a call (and a memory read).
6111 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6112 if possible (so that PC_IN_CALL_DUMMY will work).
6113
9bc1edb8
CV
61142002-05-22 Corinna Vinschen <vinschen@redhat.com>
6115
6116 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6117
005ef3d2
ML
61182002-05-22 Michal Ludvig <mludvig@suse.cz>
6119
6120 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6121 fde->cie_ptr.
6122 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6123 (dwarf2_build_frame_info): Add offset to fde->initial_location
6124 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6125 (execute_stack_op): Change type of 'result' from ULONGEST to
6126 CORE_ADDR.
005ef3d2 6127
fcf4f891
JT
61282002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6129
6130 * config/alpha/tm-nbsd.h: Include solib.h.
6131
cfef91e4
JT
61322002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6133
6134 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6135 assumptions about the host's byte order.
6136
9964235a
JT
61372002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6138
6139 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6140 to dependency list.
6141 * alphanbsd-tdep.c: Include solib-svr4.h.
6142 * shnbsd-tdep.c: Ditto.
6143
9eeef8ef
JT
61442002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6145
6146 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6147 nbsd-tdep.h to dependency list.
6148 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6149 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6150 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6151 nbsdaout.mh and nbsdelf.mh consistently.
6152 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6153 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6154 nbsdaout.mt and nbsdelf.mh consistently.
6155 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6156 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6157 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6158 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6159 a.out shared library stuff from here...
6160 * config/nm-nbsdaout.h: ...to here.
6161 * config/tm-nbsd.h: Remove.
6162 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6163 * config/arm/nbsd.mh: Remove.
6164 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6165 nbsd-tdep.o.
6166 * config/arm/nbsdaout.mh: New file.
6167 * config/arm/nbsdelf.mh: New file.
6168 * config/arm/nm-nbsdaout.h: New file.
6169 * config/i386/nbsd.mh: Remove.
6170 * config/i386/nbsd.mt: Remove.
6171 * config/i386/nbsdaout.mh: New file.
6172 * config/i386/nbsdaout.mt: New file.
6173 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6174 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6175 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6176 i386_register_u_addr): Remove.
6177 * config/i386/nm-nbsdaout.h: New file.
6178 * config/i386/nm-nbsdelf.h: Remove.
6179 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6180 (USE_STRUCT_CONVENTION): Remove.
6181 * config/i386/tm-nbsdaout.h: New file.
6182 * config/i386/tm-nbsdelf.h: Remove.
6183 * config/m68k/nbsd.mh: Remove.
6184 * config/m68k/nbsd.mt: Remove.
6185 * config/m68k/nbsdaout.mh: New file.
6186 * config/m68k/nbsdaout.mt: New file.
6187 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6188 * config/m68k/nm-nbsdaout.h: New file.
6189 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6190 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6191 * config/ns32k/nbsd.mh: Remove.
6192 * config/ns32k/nbsd.mt: Remove.
6193 * config/ns32k/nbsdaout.mh: New file.
6194 * config/ns32k/nbsdaout.mt: New file.
6195 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6196 * config/ns32k/nm-nbsdaout.h: New file.
6197 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6198 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6199 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6200 (SVR4_SHARED_LIBS): Remove.
6201 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6202 * config/sparc/nbsd.mh: Remove.
6203 * config/sparc/nbsd.mt: Remove.
6204 * config/sparc/nbsdaout.mh: New file.
6205 * config/sparc/nbsdaout.mt: New file.
6206 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6207 * config/sparc/nbsdelf.mt: New file.
6208 * config/sparc/nm-nbsdaout.h: New file.
6209 * config/sparc/nm-nbsdelf.h: Remove.
6210 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6211 * config/sparc/tm-nbsdaout.h: New file.
6212
257ce470
JT
62132002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6214
6215 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6216 mipsnbsd-tdep.c
6217 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6218
76a6d5fe
JT
62192002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6220
6221 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6222 shnbsd-nat.c.
6223 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6224
45888261
JT
62252002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6226
6227 * NEWS: Note new MIPS NetBSD native configuration.
6228 * configure.host (mips*-*-netbsd*): New host.
6229 * configure.tgt (mips*-*-netbsd*): New target.
6230 * mipsnbsd-nat.c: New file.
6231 * mipsnbsd-tdep.c: New file.
6232 * mipsnbsd-tdep.h: New file.
6233 * config/mips/nbsd.mh: New file.
6234 * config/mips/nbsd.mt: New file.
6235 * config/mips/nm-nbsd.h: New file.
6236 * config/mips/tm-nbsd.h: New file.
6237
70f80edf
JT
62382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6239
6240 * Makefile.in (SFILES): Add osabi.c.
6241 (COMMON_OBS): Add osabi.o.
6242 (osabi.o): New dependency list.
6243 * osabi.c: New file.
6244 * osabi.h: New file.
6245 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6246
6247 * Makefile.in (alpha_tdep_h): Define and use instead of
6248 alpha-tdep.h.
6249 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6250 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6251 Remove.
6252 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6253 * alpha-tdep.h: Include osabi.h.
6254 (alpha_abi): Remove.
6255 (gdbarch_tdep): Use generic OS ABI framework.
6256 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6257 gdbarch_register_osabi.
6258 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6259 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6260 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6261
6262 * Makefile.in (sh_tdep_h): Add osabi.h.
6263 * sh-tdep.h (sh_osabi): Remove.
6264 (gdbarch_tdep): Use generic OS ABI framework.
6265 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6266 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6267 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6268 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6269
6270 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6271 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6272 gdbarch_register_osabi.
6273 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6274 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6275 (get_elfosabi): Rename to...
6276 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6277 ABI framework support routines.
6278 (arm_gdbarch_init): Use generic OS ABI framework.
6279 (arm_dump_tdep): Likewise.
6280 (_initialize_arm_tdep): Likewise.
6281 * arm-tdep.h: Include osabi.h.
6282 (arm_abi): Remove.
6283 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6284 osabi member.
6285 (arm_gdbarch_register_os_abi): Remove prototype.
6286 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6287 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6288
6289 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6290 * mips-tdep.c: Include osabi.h.
6291 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6292 OS ABI framework.
6293
d194345b
KH
62942002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6295
6296 * h8300-tdep.c: Fix formatting.
6297
70c6b0d1
EZ
62982002-05-20 Elena Zannoni <ezannoni@redhat.com>
6299
6300 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6301 printing vector registers.
6302
165b8e33
AC
63032002-05-19 Andrew Cagney <ac131313@redhat.com>
6304
6305 From Fernando Nasser:
6306 * remote.c (remote_async_open_1): Re-throw the exception when the
6307 connection fails.
6308 (remote_cisco_open): Ditto.
6309 (remote_open_1): Ditto.
6310
36918e70
AC
63112002-05-19 Andrew Cagney <ac131313@redhat.com>
6312
6313 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6314 (remote_start_remote): Add uiout parameter. Pass through to
6315 remote_start_remote_dummy.
6316 (remote_open_1): Use catch_exception instead of catch_errors.
6317 (remote_async_open_1): Ditto.
6318 (remote_cisco_open): Ditto.
6319
ae44c0c4
AC
63202002-05-19 Andrew Cagney <ac131313@redhat.com>
6321
6322 * remote.c (remote_start_remote): Replace PTR with void pointer.
6323 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6324 static.
6325
8efe637d
AC
63262002-05-18 Andrew Cagney <ac131313@redhat.com>
6327
6328 * gdb_indent.sh: Allow the script to be run in the sim directory.
6329
2f1b5984
MK
63302002-05-18 Mark Kettenis <kettenis@gnu.org>
6331
f0f625e2
MK
6332 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6333 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6334
2f1b5984
MK
6335 * corelow.c (core_open): Only call set_gdbarch_from_file if
6336 exec_bfd is NULL.
6337
fc974602
AV
63382002-05-17 Andrey Volkov <avolkov@transas.com>
6339
6340 * h8300-tdep.c: Add support of EXR register
6341 * config/h8300/tm-h8300.h: Ditto.
6342
906709f4
AV
63432002-05-17 Andrey Volkov <avolkov@transas.com>
6344
6345 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6346
6e591d68
AV
63472002-05-17 Andrey Volkov <avolkov@transas.com>
6348
6349 * h8300-tdep.c: Change literal regnums to REGNO.
6350
84f0252a
JB
63512002-05-17 Jim Blandy <jimb@redhat.com>
6352
e0e9281e
JB
6353 * NEWS: Note addition of macro support.
6354
84f0252a
JB
6355 Expand preprocessor macros in C expressions.
6356 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6357 (scan_macro_expansion, scanning_macro_expansion,
6358 finished_macro_expansion): New function declarations.
6359 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6360 variable declarations.
6361 * parser-defs.h (expression_context_pc): New declaration.
6362 * parse.c (expression_context_pc): New variable.
6363 (parse_exp_1): Set expression_context_pc, as well as
6364 expression_context_block.
6365 * c-exp.y (yylex): If we're not already reading the result of a
6366 macro expansion, try to macro-expand the next token. When we're
6367 done scanning a macro expansion, switch back to the mainline text.
6368 Commas and `if's in a macro's expansion don't terminate the input.
6369 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6370 (macro_original_text, macro_expanded_text,
6371 expression_macro_lookup_func, expression_macro_lookup_baton): New
6372 variables.
6373 (scan_macro_expansion, scanning_macro_expansion,
6374 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6375 c_preprocess_and_parse): New functions.
6376 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6377 c_preprocess_and_parse, instead of c_parse.
6378 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6379 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6380
1c509ca8
JR
6381Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6382
6383 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6384 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6385 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6386
2250ee0c
CV
63872002-05-17 Corinna Vinschen <vinschen@redhat.com>
6388
6389 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6390
ab3b8126
JT
63912002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6392
6393 * Makefile.in (sh_tdep_h): Define and use.
6394 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6395 register enum): Move to...
6396 * * sh-tdep.h: ...here.
6397 * sh-tdep.c: Include sh-tdep.h.
6398 * sh3-rom.c: Likewise.
6399 * shnbsd-tdep.c: Likewise.
6400
ed9d4749
MS
64012002-05-16 Michael Snyder <msnyder@redhat.com>
6402
6403 * arm-tdep.c: Spelling fix in comment.
6404
2e276125
JB
64052002-05-16 Jim Blandy <jimb@redhat.com>
6406
6821892e
JB
6407 Add commands for manually expanding macros and showing their
6408 definitions.
6409 * macrocmd.c, macroscope.c, macroscope.h: New files.
6410 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6411 (macroscope_h): New variable.
6412 (HFILES_NO_SRCDIR): Add macroscope.h.
6413 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6414 (macroscope.o, macrocmd.o): New rules.
6415
2e276125
JB
6416 Teach the Dwarf 2 reader to read macro information.
6417 * dwarf2read.c: #include "macrotab.h".
6418 (dwarf_macinfo_buffer): New variable.
6419 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6420 dwarf_macinfo_size.
6421 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6422 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6423 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6424 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6425 dwarf2_macro_spaces_in_definition): New complaints.
6426 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6427 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6428 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6429 the partial symbol table.
6430 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6431 from what's recorded in the partial symbol table.
6432 (read_file_scope): If the compilation unit has a
6433 `DW_AT_macro_info' attribute, read its macro information.
6434 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6435
2f53fe6c
DJ
64362002-05-16 Daniel Jacobowitz <drow@mvista.com>
6437
6438 Fix PR gdb/546
6439 * ser-tcp.c: Don't include <netinet/udp.h>.
6440
2be99286
SC
64412002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6442
6443 * MAINTAINERS: Update my email address.
6444
c9af212b 64452002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6446
6447 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6448 include file of the same name.
6449
bf5f1a52
CV
64502002-05-16 Corinna Vinschen <vinschen@redhat.com>
6451
6452 * configure.tgt: Mark v850 as multi-arched.
6453 * config/v850/tm-v850.h: Remove file.
6454 * config/v850/v850.mt: Eliminate TM_FILE.
6455
435e042a
CV
64562002-05-16 Corinna Vinschen <vinschen@redhat.com>
6457
6458 * v850-tdep.c: Full multi-arch.
6459 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6460 Define GDB_MULTI_ARCH to 2.
6461
9819c6c8
PM
64622002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6463
6464 * p-exp.y (current_type): New static variable.
6465 Carries the type of the expression at the position that is parsed.
6466 (push_current_type, pop_current_type): Two new functions. Used
6467 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6468 (search_field): New static variable. Set to one after parsing a point
6469 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6470 (FIELDNAME): New token. After a point only a token belonging to
6471 current_type type definition is allowed.
6472 (all over token rules): reset and change current_type according
6473 to rules.
6474 (exp '[' rule): insert implicit array index field if
6475 exp is a pascal string type.
6476
3a06899a
CV
64772002-05-16 Corinna Vinschen <vinschen@redhat.com>
6478
6479 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6480 frame info. Use frame_info's saved_regs instead of matching member
6481 in extra_frame_info throughout.
6482 (v850_frame_init_saved_regs): New function.
6483 (v850_init_extra_frame_info): Move most functionality into
6484 v850_frame_init_saved_regs().
6485 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6486 (v850_frame_find_saved_regs): Remove declaration.
6487 (FRAME_FIND_SAVED_REGS): Remove definition.
6488 (v850_frame_init_saved_regs): Add declaration.
6489 (FRAME_INIT_SAVED_REGS): Add definition.
6490
6ed14b0e
CV
64912002-05-16 Corinna Vinschen <vinschen@redhat.com>
6492
6493 * v850-tdep.c: Begin multi-arch'ing v850.
6494 (v850_target_architecture_hook): Remove function.
6495 (v850_gdbarch_init): New function. Add code previously in
6496 v850_target_architecture_hook().
6497 (_initialize_v850_tdep): Don't set target_architecture_hook.
6498 Call register_gdbarch_init() instead.
6499
42725910
DJ
65002002-05-16 Daniel Jacobowitz <drow@mvista.com>
6501
6502 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6503 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6504 (fixup_class_method_type): Likewise.
6505
99d9066e
JB
65062002-05-15 Jim Blandy <jimb@redhat.com>
6507
6508 Add macro structures to GDB's symbol tables. Nobody puts anything
6509 in them yet.
6510 * symtab.h (struct symtab): New member: `macro_table'.
6511 * buildsym.h (pending_macros): New global variable.
6512 * buildsym.c: #include "macrotab.h".
6513 (buildsym_init): Initialize `pending_macros'.
6514 (end_symtab): If we found macro information while reading a CU's
6515 debugging info, do build a symtab structure for it. Make the
6516 symtab point to the macro information, and clear the
6517 `pending_macros' pointer which held it while we were reading the
6518 debug info.
6519 (really_free_pendings): Free any pending macro table.
6520 * objfiles.h (struct objfile): New member: `macro_cache'.
6521 * objfiles.c (allocate_objfile): Set allocate and free functions
6522 for the macro cache's objstack.
6523 (free_objfile): Empty the macro cache's obstack.
6524 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6525 set new allocate and free functions for it.
6526 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6527 free functions for the macro cache's objstack. (Why is this
6528 function building its own objfile?)
6529 * symmisc.c (print_objfile_statistics): Print statistics on the
6530 macro bcache.
6531 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6532
c899585b
RE
65332002-05-15 Richard Earnshaw <rearnsha@arm.com>
6534
6535 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6536 (REGISTER_U_ADDR): Delete definition.
6537 (arm_register_u_addr): Delete declaration.
6538
a6cdd8c5
RE
65392002-05-15 Richard Earnshaw <rearnsha@arm.com>
6540
6541 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6542 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6543
c97dcfc7
AC
65442002-05-14 Andrew Cagney <ac131313@redhat.com>
6545
6546 * regcache.c (register_valid): Revise comments refering to "Not
6547 available" and "unavailable".
6548 * frame.c (frame_register_read): Ditto.
6549 * findvar.c (value_of_register): Ditto.
6550
93021b7d
AC
65512002-05-15 Andrew Cagney <cagney@redhat.com>
6552
6553 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6554 (remote-sim.o): Update dependencies.
6555 (d10v-tdep.o): Specify dependencies.
6556 (sim_d10v_h): Define.
6557
a86bc61c
JB
65582002-05-14 Jim Blandy <jimb@redhat.com>
6559
6560 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6561 * macrotab.c (macro_lookup_inclusion, find_definition,
6562 new_macro_table): Same.
6563
6564 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6565 not `! strcmp ()'. This is a dubious improvement.
6566 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6567
6568 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6569 although it's not necessary, to avoid a warning.
6570
2fdde8f8
DJ
65712002-05-14 Daniel Jacobowitz <drow@mvista.com>
6572
6573 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6574 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6575 TYPE_INSTANCE_FLAGS.
6576 (struct main_type): New.
6577 (struct type): Move most members to struct main_type. Change
6578 cv_type and as_type to new type_chain member. Add instance_flags.
6579 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6580 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6581 (finish_cv_type): Remove prototype.
6582 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6583 Set TYPE_CHAIN.
6584 (alloc_type_instance): New function.
6585 (smash_type): New function.
6586 (make_pointer_type, make_reference_type, make_function_type)
6587 (smash_to_member_type, smash_to_method_type): Call smash_type.
6588 (make_qualified_type): New function.
6589 (make_type_with_address_space): Call make_qualified_type.
6590 (make_cv_type): Likewise.
6591 (finish_cv_type): Remove unnecessary function.
6592 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6593 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6594 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6595 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6596 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6597 * hpread.c (hpread_read_struct_type): Likewise.
6598 * stabsread.c (read_struct_type): Likewise.
6599
843fedf4
EZ
66002002-05-14 Elena Zannoni <ezannoni@redhat.com>
6601
6602 * configure.tgt: Add a catch all sh* target, for cases like
6603 sh[2,3,4]-elf and sh-hms.
6604
05a6c72c
KS
66052002-05-14 Keith Seitz <keiths@redhat.com>
6606
6607 * event-loop.c (create_file_handler): Don't do anything but
6608 update data when we are given a fd which we are already
6609 monitoring.
6610
5d085aaf
ML
66112002-05-14 Michal Ludvig <mludvig@suse.cz>
6612
6613 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6614 (update_context): Use __func__ in warnings.
6615
9db8d71f
DJ
66162002-05-14 Daniel Jacobowitz <drow@mvista.com>
6617
6618 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6619 and tcp_close to net_open and net_close.
6620 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6621 using UDP if requested. Don't try to disable Nagle on UDP
6622 sockets.
6623 * remote.c (remote_serial_open): New function. Warn about UDP.
6624 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6625
5dbc6baa
EZ
66262002-05-13 Elena Zannoni <ezannoni@redhat.com>
6627
6628 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6629
cc3023f7
EZ
66302002-05-13 Elena Zannoni <ezannoni@redhat.com>
6631
6632 * configure.tgt: Remove sh-hms target.
6633 * MAINTAINERS: Don't list sh-hms as a separate target.
6634
ec2bcbe7
JB
66352002-05-13 Jim Blandy <jimb@redhat.com>
6636
6637 Add first preprocessor macro-expansion files.
6638 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6639 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6640 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6641 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6642 (COMMON_OBS): Add macrotab.o, macroexp.o.
6643 (macroexp.o, macrotab.o): New rules.
6644
6d531722
AC
66452002-05-13 Andrew Cagney <ac131313@redhat.com>
6646
6647 * config/m88k/tm-m88k.h: Update copyright.
6648 (m88k_target_write_pc): Declare
6649 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6650 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6651 (SHIFT_INST_REGS): Update definition.
6652 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6653 using old definition of TARGET_WRITE_PC.
6654 * regcache.c (generic_target_write_pc): Delete code handling
6655 NNPC_REGNUM.
6656 * gdbarch.sh (NNPC_REGNUM): Delete.
6657 * gdbarch.h, gdbarch.c: Regenerate.
6658
3e3f2739
RE
66592002-05-13 Richard Earnshaw <rearnsha@arm.com>
6660
6661 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6662 builtin reg number.
6663
0004e5a2
DJ
66642002-05-13 Daniel Jacobowitz <drow@mvista.com>
6665
6666 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6667 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6668 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6669 access macros.
6670 * c-typeprint.c (cp_type_print_method_args): Likewise.
6671 (c_type_print_args): Likewise.
6672 * d10v-tdep.c (d10v_push_arguments): Likewise.
6673 (d10v_extract_return_value): Likewise.
6674 * expprint.c (print_subexp): Likewise.
6675 * gdbtypes.c (lookup_primitive_typename): Likewise.
6676 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6677 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6678 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6679 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6680 (TYPE_VECTOR): Likewise.
6681 * hpread.c (hpread_read_struct_type)
6682 (fix_static_member_physnames, fixup_class_method_type)
6683 (hpread_type_lookup): Likewise.
6684 * mdebugread.c (parse_symbol, parse_type): Likewise.
6685 * p-lang.c (is_pascal_string_type): Likewise.
6686 * valops.c (hand_function_call): Likewise.
6687 * x86-64-tdep.c (classify_argument): Likewise.
6688
6689 * hpread.c (hpread_read_function_type)
6690 (hpread_read_doc_function_type): Call replace_type.
6691 * dstread.c (create_new_type): Delete.
6692 (decode_dst_structure, process_dst_function): Call alloc_type.
6693 Use type access macros.
6694
dff95cc7
MK
66952002-05-12 Mark Kettenis <kettenis@gnu.org>
6696
6697 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6698 the're not supported by the current architecture.
6699 (i387_fill_fxsave): Likewise.
6700
bbcd32ad
FF
67012002-05-12 Fred Fish <fnf@redhat.com>
6702
6703 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6704 sect_index_xxx members to index the first slot in section_offsets
6705 if all of the section_offsets are zero.
6706
89cf4787
MK
67072002-05-12 Mark Kettenis <kettenis@gnu.org>
6708
6709 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6710 checked in with last change.
6711
1f77ffc5
MK
67122002-05-12 Mark Kettenis <kettenis@gnu.org>
6713
6714 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6715 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6716 config.sub.
6717
89b8b4a9
DJ
67182002-05-12 Daniel Jacobowitz <drow@mvista.com>
6719
6720 * Makefile.in: Update dependencies.
6721
14a5e767
AC
67222002-05-11 Andrew Cagney <ac131313@redhat.com>
6723
6724 * language.c (local_hex_string_custom): Simplify. Do not depend
6725 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6726
6727 * memattr.c (mem_info_command): Replace calls to
6728 longest_local_hex_string and longest_local_hex_string_custom.
6729 * buildsym.c (make_blockvector): Ditto.
6730 * solib.c (info_sharedlibrary_command): Ditto.
6731 * tracepoint.c (tracepoints_info): Ditto.
6732 * symtab.c (print_msymbol_info): Ditto.
6733
6734 * language.c (local_hex_string): Delete.
6735 (local_hex_string_custom): Delete.
6736 (longest_local_hex_string): Rename to local_hex_string.
6737 (longest_local_hex_string_custom): Rename to
6738 local_hex_string_custom.
6739 * language.h (local_hex_string): Change parameter type to LONGEST.
6740 (local_hex_string_custom): Ditto.
6741 (longest_local_hex_string): Delete declaration.
6742 (longest_local_hex_string_custom): Ditto.
6743
6744 * solib.c: Update copyright.
6745 * memattr.c: Update copyright.
6746
13d01224
AC
67472002-05-11 Andrew Cagney <ac131313@redhat.com>
6748
6749 * arch-utils.h (legacy_register_to_value): Declare.
6750 (legacy_value_to_register): Declare.
6751 (legacy_convert_register_p): Declare.
6752 * arch-utils.c (legacy_register_to_value): New function.
6753 (legacy_value_to_register): New function.
6754 (legacy_convert_register_p): New function.
6755
6756 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6757 (VALUE_TO_REGISTER): Define.
6758 (CONVERT_REGISTER_P): Define.
6759 * gdbarch.h, gdbarch.c: Regenerate.
6760
6761 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6762 VALUE_TO_REGISTER.
6763 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6764 CONVERT_REGISTER_P.
6765
4a1970e4
DJ
67662005-05-11 Daniel Jacobowitz <drow@mvista.com>
6767 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6768
6769 * Makefile.in: Update dependencies for valops.c.
6770 * valops.c: Include "gdb_assert.h".
6771 (typecmp): Skip THIS parameter to methods.
6772 (find_method_list): Remove static_memfuncp argument,
6773 update callers. Check for stub methods.
6774 (find_value_oload_method_list): Don't set *static_memfuncp.
6775 (find_overload_match): Don't check for stub methods. Assert
6776 that methods are not stubbed. Handle static methods.
6777 (value_find_oload_method_list): Remove static_memfuncp argument.
6778 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6779 to the argument list for static stub methods.
6780 * value.h (value_find_oload_method_list): Update prototype.
6781
b2e75d78
AC
67822002-05-11 Andrew Cagney <ac131313@redhat.com>
6783
6784 * arch-utils.h (generic_register_size): Declare.
6785 (generic_register_raw_size, generic_register_virtual_size): Delete
6786 declarations.
6787 * arch-utils.c (generic_register_raw_size): Delete.
6788 (generic_register_size): New function.
6789 (generic_register_virtual_size): Delete.
6790
6791 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6792 default generic_register_size.
6793 * gdbarch.h, gdbarch.c: Re-generate.
6794
6795 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6796 register_virtual_size.
6797 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6798 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6799
451fbdda
AC
68002002-05-11 Andrew Cagney <ac131313@redhat.com>
6801
6802 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6803 * gdbarch.h, gdbarch.c: Regenerate.
6804 * gnu-v3-abi.c: Update copyright.
6805 (vtable_address_point_offset): Update.
6806 (gnuv3_rtti_type): Update.
6807 (gnuv3_baseclass_offset): Update.
6808 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6809 (init_fetch_link_map_offsets): Update.
6810 * remote.c (get_remote_state): Update.
6811
6d2f5cea
DJ
68122002-05-11 Daniel Jacobowitz <drow@mvista.com>
6813
6814 * TODO: Remove value_headof/value_from_vtable_info comment.
6815 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6816 * values.c (value_headof, value_from_vtable_info): Delete.
6817 * value.h (value_from_vtable_info): Delete prototype.
6818
d2324da4
AC
68192002-05-11 Andrew Cagney <ac131313@redhat.com>
6820
6821 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6822 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6823 $(gdb_regex_h).
6824 (gdb_assert_h): Define.
6825 (gdb_wait_h): Define.
6826 (gdb_regex_h): Define.
6827
5c717440
DJ
68282002-05-11 Daniel Jacobowitz <drow@mvista.com>
6829
6830 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6831 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6832
6c7861b3
JT
68332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6834
6835 * nbsd-tdep.c: Fix comment.
6836
ea5bc2a6
JT
68372002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6838
6839 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6840 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6841 (nbsd-tdep.o): New dependency list.
6842 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6843 nbsd-tdep.h.
6844 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6845 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6846 * nbsd-tdep.c: New file.
6847 * nbsd-tdep.h: New file.
6848 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6849 nbsd-tdep.h.
6850 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6851 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6852 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6853 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6854
b28da865
JT
68552002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6856
6857 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6858 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6859 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6860 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6861 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6862 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6863
4b8ff1fa
JT
68642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6867 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6868 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6869 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6870 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6871 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6872 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6873
dfe6eb1f
JT
68742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6875
6876 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6877 fetch_elfcore_registers to...
6878 * i386nbsd-tdep.c: ...here.
6879 (i386nbsd_use_struct_convention): Rename to...
6880 (i386nbsd_aout_use_struct_convention): ...this.
6881 (i386nbsd_supply_reg): New function.
6882 (i386nbsd_fill_reg): New function.
6883 (fetch_core_registers): Use i386nbsd_supply_reg.
6884 (fetch_elfcore_registers): Likewise.
6885 (_initialize_i386nbsd_tdep): New function.
6886 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6887 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6888 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6889 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6890 (i386nbsd_aout_use_struct_convention): ...this.
6891
20cb8cda
JT
68922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6893
6894 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6895 (store_inferior_registers): Use shnbsd_fill_reg.
6896 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6897 sh_nbsd_supply_register): Collapse into...
6898 (shnbsd_supply_reg): ...this.
6899 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6900 (shnbsd_fill_reg): ...this.
6901 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6902 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6903 (fetch_core_registers): Use shnbsd_supply_reg.
6904 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6905 (sh_nbsd_core_fns): Rename to...
6906 (shnbsd_core_fns): ...this.
6907 (sh_nbsd_elfcore_fns): Rename to...
6908 (shnbsd_elfcore_fns): ...this.
6909 (sh_nbsd_init_abi): Rename to...
6910 (shnbsd_init_abi): ...this.
6911 (_initialize_sh_nbsd_tdep): Rename to...
6912 (_initialize_shnbsd_tdep): ...this.
6913 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6914 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6915 sh_nbsd_fill_register): Remove prototypes.
6916 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6917
e750d25e
JT
69182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6919
6920 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6921 (i387-nat.o): Delete dependency list.
6922 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6923 (x86-64-linux-nat.o): Likewise.
6924 * i387-nat.c: Delete file, moving contents to...
6925 * i387-tdep.c: ...here.
6926 * i387-nat.h: Rename...
6927 * i387-tdep.h: ...to this.
6928 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6929 * i386-linux-nat.c: Likewise.
6930 * i386bsd-nat.c: Likewise.
6931 * i386gnu-nat.c: Likewise.
6932 * i386nbsd-nat.c: Likewise.
6933 * i386v4-nat.c: Likewise.
6934 * x86-64-linux-nat.c: Likewise.
6935 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6936 * config/i386/go32.mh (NATDEPFILES): Likewise.
6937 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6938 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6939 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6940 * config/i386/linux.mh (NATDEPFILES): Likewise.
6941 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6942 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6943 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6944 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6945
1aee598a
JT
69462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6947
6948 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6949 (alphanbsd-nat.o): Remove dependency list.
6950 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6951 * alphanbsd-nat.c: Delete. Contents moved to...
6952 * alphanbsd-tdep.c: ...here.
6953 (_initialize_alphanbsd_tdep): Register core functions.
6954 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6955
12bcb0fe
JT
69562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6957
6958 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6959 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6960 (alphanbsd-nat.o): Likewise.
6961 (alphabsd-tdep.o): New dependency list.
6962 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6963 (fill_gregset): Use alphabsd_fill_reg.
6964 (supply_fpregset): Use alphabsd_supply_fpreg.
6965 (fill_fpregset): Use alphabsd_fill_fpreg.
6966 (fetch_inferior_registers): Use struct reg and struct fpreg
6967 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6968 and alphabsd_supply_fpreg.
6969 (store_inferior_registers): Use struct reg and struct fpreg
6970 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6971 and alphabsd_fill_fpreg.
6972 * alphabsd-tdep.c: New file.
6973 * alphabsd-tdep.h: New file.
6974 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6975 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6976 alphabsd_supply_fpreg.
6977 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6978 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6979
361d1df0
EC
69802002-05-11 Eric Christopher <echristo@redhat.com>
6981
6982 * mips-tdep.c (mips_double_register_type): Fix thinko.
6983 (mips_single_register_type): Ditto.
6984 * MAINTAINERS: Add self.
6985
92dd7cee
MK
69862002-05-11 Mark Kettenis <kettenis@gnu.org>
6987
6988 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6989 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6990 right thing on architectures with different endianness and/or
6991 integer sizes.
6992
e27da16d
JT
69932002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6994
6995 From Christian Limpach <chris@Pin.LU>
6996 * configure.in: Change sed expression which comments out
6997 NATDEPFILES to also comment out continuation lines.
6998 * configure: Regenerate.
6999
ddde02bd
EZ
70002002-05-10 Elena Zannoni <ezannoni@redhat.com>
7001
7002 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7003 big patch.
7004
1c922164
EZ
70052002-05-10 Elena Zannoni <ezannoni@redhat.com>
7006
7007 * sh-tdep.c: Include correct file.
7008
283150cd
EZ
70092002-05-10 Elena Zannoni <ezannoni@redhat.com>
7010
7011 New support for sh64-elf (sh5) target.
7012
7013 * configure.tgt: For sh64-elf target, default to sh-elf.
7014
7015 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7016 (struct gdbarch_tdep): Add new fields for new registers and ABI
7017 info.
361d1df0 7018
283150cd
EZ
7019 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7020 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7021 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7022 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7023 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7024 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7025 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7026 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7027 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7028 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7029 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7030 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7031 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7032 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7033 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7034 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7035 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7036 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7037 sign_extend, sh64_nofp_frame_init_saved_regs,
7038 sh64_init_extra_frame_info, sh64_get_saved_register,
7039 sh64_extract_struct_value_address, sh64_pop_frame,
7040 sh64_push_arguments, sh64_extract_return_value,
7041 sh64_store_return_value, sh64_show_media_regs,
7042 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7043 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7044 sh_sh64_register_virtual_type,
7045 sh_sh64_register_convert_to_virtual,
7046 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7047 sh64_register_read, sh64_pseudo_register_write,
7048 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7049 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7050 sh64_do_pseudo_register, sh_compact_do_registers_info,
7051 sh64_do_registers_info, sh_gdbarch_init): New functions.
7052
3117ed25
EZ
70532002-05-10 Elena Zannoni <ezannoni@redhat.com>
7054
7055 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7056
2654e6d4
DJ
70572002-05-10 Daniel Jacobowitz <drow@mvista.com>
7058
7059 * linespec.c (decode_line_1): Check for a double quote after
7060 a filename correctly.
7061
9ab3e532
JB
70622002-05-10 Jim Blandy <jimb@redhat.com>
7063
7064 Properly track the size of the current objfile's .debug_line section.
7065 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7066 (DWARF_LINE_SIZE): New macro.
7067 (dwarf2_build_psymtabs_hard): Record the line section's size in
7068 the partial symbol table.
7069 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7070 symbol table.
7071
126fa72d
PS
70722002-05-10 Petr Sorfa <petrs@caldera.com>
7073
7074 * ia64-tdep.c: Handle breakpoints on L instruction type
7075 in MLX instruction bundle by moving the breakpoint to
7076 the third slot (X instruction type) as L holds only data.
7077
1f077a3e
KB
70782002-05-10 Kevin Buettner <kevinb@redhat.com>
7079
7080 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7081 (process_one_symbol): Complain about discarding local symbols
7082 due to a misplaced N_LBRAC entry.
7083
8120c9d5 70842002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7085
7086 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7087 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7088 decrease the depth we are at, in the case of templates.
361d1df0 7089
67b2c998
DJ
70902002-05-09 Daniel Jacobowitz <drow@mvista.com>
7091
7092 * mips-tdep.c (mips_float_register_type): New function.
7093 (mips_double_register_type): New function.
7094 (mips_print_register): Use them.
7095 (do_fp_register_row): Likewise.
7096
fd326606
DJ
70972002-05-09 Daniel Jacobowitz <drow@mvista.com>
7098
6609d9af 7099 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7100 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7101 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7102
bef35864
MS
71032002-05-09 Michael Snyder <msnyder@redhat.com>
7104
7105 * remote-rdp.c (remote_rdp_can_run): Remove.
7106
c55a3f73
TT
71072002-05-09 Tom Tromey <tromey@redhat.com>
7108
7109 * jv-valprint.c (java_val_print): Handle `char' as a special case
7110 of TYPE_CODE_INT.
7111
b8d5e71d
MS
71122002-05-09 Michael Snyder <msnyder@redhat.com>
7113
7114 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7115 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7116 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7117 str r(0123),[sp,#nn].
361d1df0 7118 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7119 order-independent by placing it in a loop.
7120
e2cd42dd
MS
71212002-05-06 Michael Snyder <msnyder@redhat.com>
7122
7123 * stabsread.c (read_type): Add recognition for new attribute:
7124 "@V;" means that an array type is actually a vector.
7125 This is analogous to the vector flag that's been added to dwarf2.
7126
3ce1502b
MK
71272002-05-09 Mark Kettenis <kettenis@gnu.org>
7128
7129 * i386-tdep.h (i386_abi): New enum.
7130 (struct gdbarch_tdep): Replace os_ident member with abi.
7131 (i386_gdbarch_register_os_abi): New prototype.
7132 * i386-tdep.c (i386_abi_names): New array.
7133 (process_note_abi_tag_sections): Removed.
7134 (process_note_sections): New function.
7135 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7136 (struct i386_abi_handler): New struct.
7137 (i386_abi_handler_list): New variable.
7138 (i386_gdbarch_register_os_abi): New function.
7139 (i386_gdbarch_init): Adapt for the changes given above.
7140
084c156a
DJ
71412002-05-08 Daniel Jacobowitz <drow@mvista.com>
7142
7143 * gregset.h: Say "GNU/Linux".
7144
6599f021
EZ
71452002-05-08 Elena Zannoni <ezannoni@redhat.com>
7146
7147 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7148 (build_gdbtypes): Build builtin_type_v2_float.
7149 (_initialize_gdbtypes): Register new builtin type.
7150
40af4b0c
AC
71512002-05-08 Andrew Cagney <ac131313@redhat.com>
7152
7153 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7154 (clear_gdbarch_swap): New function.
7155 (initialize_non_multiarch): Call.
7156 (gdbarch_update_p): Before calling init(), swap out and clear the
7157 existing architecture.
7158 * gdbarch.c: Regenerate.
7159
4fe84f46
JT
71602002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7163 alphanbsd-tdep.c.
7164
4015edd1
JT
71652002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7166
7167 * sh-nbsd-nat.c: Rename to...
7168 * shnbsd-nat.c: ...this.
7169 * sh-nbsd-tdep.c: Rename to...
7170 * shnbsd-tdep.c: ...this.
7171 * sh-nbsd-tdep.h: Rename to...
7172 * shnbsd-tdep.h: ...this.
7173 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7174 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7175
0e2bd219
RE
71762002-05-08 Richard Earnshaw <rearnsha@arm.com>
7177
7178 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7179 concatenation for command help messages.
7180
13a38d45
JT
71812002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7182
7183 * NEWS: Note new sh*-*-netbsdelf* configuration.
7184 * configure.host: Set gdb_host_cpu to sh for all sh*.
7185 (sh*-*-netbsdelf*): New host.
7186 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7187 (sh*-*-netbsdelf*): New target.
7188 * sh-nbsd-nat.c: New file.
7189 * sh-nbsd-tdep.c: New file.
7190 * sh-nbsd-tdep.h: New file.
7191 * config/sh/nbsd.mh: New file.
7192 * config/sh/nbsd.mt: New file.
7193 * config/sh/nm-nbsd.h: New file.
7194 * config/sh/tm-nbsd.h: New file.
7195
d658f924
JT
71962002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7197
7198 * sh-tdep.c (sh_osabi_names): Declare.
7199 (process_note_abi_tag_sections): New function.
7200 (get_elfosabi): Ditto.
7201 (sh_gdbarch_register_os_abi): Ditto.
7202 (sh_dump_tdep): Ditto.
7203 _initialize_sh_tdep): Use gdbarch_register to register
7204 sh_gdbarch_init and sh_dump_tdep.
7205 * config/sh/tm-sh.h (sh_osabi): Declare.
7206 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7207
848cfffb
AC
72082002-05-07 Andrew Cagney <ac131313@redhat.com>
7209
7210 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7211 (thumb_scan_prologue): Ditto.
7212 (arm_find_callers_reg): Ditto.
7213 (arm_frame_chain): Ditto.
7214 (arm_init_extra_frame_info): Ditto.
7215 (arm_frame_saved_pc): Ditto.
7216 (arm_pop_frame): Ditto.
7217 (arm_push_return_address): New function.
7218 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7219 call_dummy_location, call_dummy_breakpoint_offset_p,
7220 call_dummy_breakpoint_offset, call_dummy_p,
7221 call_dummy_stack_adjust_p, call_dummy_words,
7222 sizeof_call_dummy_words, call_dummy_start_offset,
7223 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7224 call_dummy_address, push_return_address and push_dummy_frame for
7225 generic dummy frames.
7226
e7d717c0
JT
72272002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7228
7229 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7230 size computation for alloca.
7231 (sh_fp_frame_init_saved_regs): Likewise.
7232
7bbcf283
RE
72332002-05-07 Richard Earnshaw <rearnsha@arm.com>
7234
7235 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7236 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7237 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7238 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7239 * remote-rdp.c (remote_rdp_fetch_register): Use
7240 ARM_MAX_REGISTER_RAW_SIZE.
7241 (remote_rdp_store_register): Likewise.
7242
4657573b
ML
72432002-05-07 Michal Ludvig <mludvig@suse.cz>
7244
361d1df0 7245 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7246 added default labels to switch {} statements.
7247 * x86-64-tdep.c: Ditto.
7248 * x86-64-linux-nat.c: Ditto.
7249
010f3b2f
JT
72502002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * solib.h: Protect against multiple inclusion.
7253
debd256d
JB
72542002-05-06 Jim Blandy <jimb@redhat.com>
7255
9ab3e532
JB
7256 Add first preprocessor macro-expansion files.
7257 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7258 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7259 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7260 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7261 (COMMON_OBS): Add macrotab.o, macroexp.o.
7262 (macroexp.o, macrotab.o): New rules.
7263
debd256d
JB
7264 Separate the job of reading the line number info statement program
7265 header (...expialidocious) out into its own function.
7266 * dwarf2read.c (struct line_head, struct filenames, struct
7267 directories): Replace with...
7268 (struct line_header): New structure, containing the full
7269 contents of the statement program header, including the
7270 include directory and file name tables.
7271 (read_file_scope): If we have line number info, instead of just
7272 calling dwarf_decode_lines to do all the work, call
7273 dwarf_decode_line_header first to get a `struct line_header'
7274 containing the data in the statement program header, and then
7275 pass that to dwarf_decode_lines, which will pick up where that
7276 left off. Be sure to clean up the `struct line_header' object.
7277 (dwarf_decode_line_header, free_line_header, add_include_dir,
7278 add_file_name): New functions.
7279 (dwarf_decode_lines): Move all the code to read the statement
7280 program header into dwarf_decode_line_header. Take the line
7281 header it built as the first argument, instead of the offset to
7282 the compilation unit's line number info. Use the new `struct
7283 line_header' type instead of the old structures. No need to do
7284 cleanups here now, since we don't allocate anything.
7285 (dwarf2_statement_list_fits_in_line_number_section,
7286 dwarf2_line_header_too_long): New complaints.
7287
ac3aafc7
EZ
72882002-05-06 Elena Zannoni <ezannoni@redhat.com>
7289
7290 * gdbtypes.c (init_vector_type): New function.
7291 (build_builtin_type_vec128): Simplify the representation of SIMD
7292 registers.
7293 (build_gdbtypes): Initialize new builtin vector types.
7294 (_initialize_gdbtypes): Register new vector types with gdbarch.
7295 (builtin_type_v4_float, builtin_type_v4_int32,
7296 builtin_type_v8_int16, builtin_type_v16_int8,
7297 builtin_type_v2_int32, builtin_type_v4_int16,
7298 builtin_type_v8_int8): New (renamed) SIMD types.
7299
13e49980
MK
73002002-05-06 Mark Kettenis <kettenis@gnu.org>
7301
7302 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7303 (i387_fill_fxsave): Likewise.
7304
997b20b8
AO
73052002-05-05 Alexandre Oliva <aoliva@redhat.com>
7306
7307 * alpha-tdep.c (alpha_extract_return_value): Don't use
7308 non-constant array size in prototype.
7309
535c96ce
AC
73102002-05-04 Andrew Cagney <ac131313@redhat.com>
7311
7312 From Brian Taylor <briant at model dot com>:
7313 * ui-out.c (ui_out_field_core_addr): Use the function
7314 longest_local_hex_string_custom'to format addresses > 32 bits
7315 wide.
7316
7317 * ui-out.c (ui_out_field_core_addr): Update comment.
7318
bedfa57b
AC
73192002-05-04 Andrew Cagney <ac131313@redhat.com>
7320
7321 * stack.c (select_and_print_frame): Make static. Delete the
7322 parameter `level'.
7323 (func_command): Update call.
7324 (select_frame_command): Delete code computing the frame level.
7325 * frame.h (select_and_print_frame): Delete declaration.
7326
f621c63e
AC
73272002-05-04 Andrew Cagney <ac131313@redhat.com>
7328
7329 * sparc-tdep.c (sparc_get_saved_register): Comment why
7330 get_prev_frame call is safe.
7331
0f7d239c
AC
73322002-05-04 Andrew Cagney <ac131313@redhat.com>
7333
7334 * frame.h (select_frame): Delete level parameter.
7335 * stack.c (select_frame): Update. Use frame_relative_level to
7336 obtain the frame's level.
7337 (select_and_print_frame): Update call.
7338 (select_frame_command): Ditto.
7339 (up_silently_base): Ditto.
7340 (down_silently_base): Ditto.
7341 * ocd.c (ocd_start_remote): Ditto.
7342 * remote-rdp.c (remote_rdp_open): Ditto.
7343 * remote-mips.c (mips_initialize): Ditto.
7344 (common_open): Ditto.
7345 * remote-e7000.c (e7000_start_remote): Ditto.
7346 * m3-nat.c (select_thread): Ditto.
7347 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7348 (child_get_current_exception_event): Ditto.
7349 * varobj.c (varobj_create): Ditto.
7350 (varobj_update): Ditto.
7351 (c_value_of_root): Ditto.
7352 * tracepoint.c (finish_tfind_command): Ditto.
7353 * corelow.c (core_open): Ditto.
7354 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7355 * thread.c (info_threads_command): Ditto.
7356 (switch_to_thread): Ditto.
7357 * infrun.c (normal_stop): Ditto.
7358 (restore_selected_frame): Ditto.
7359 (restore_inferior_status): Ditto.
7360 * breakpoint.c (insert_breakpoints): Ditto.
7361 (watchpoint_check): Ditto.
7362 (bpstat_stop_status): Ditto.
7363 (do_enable_breakpoint): Ditto.
7364 * blockframe.c (flush_cached_frames): Ditto.
7365 (reinit_frame_cache): Ditto.
7366
71d6c7b1
AC
73672002-05-04 Andrew Cagney <ac131313@redhat.com>
7368
7369 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7370 maintainer.
7371
cda6c68a
JB
73722002-05-04 Jim Blandy <jimb@redhat.com>
7373
7374 * gdbtypes.c (replace_type): Doc fix.
7375
5c1c87f0
AC
73762002-05-04 Andrew Cagney <ac131313@redhat.com>
7377
7378 * valprint.c (strcat_longest): Delete commented out function.
7379 Update copyright.
7380
cd9bfe15
AC
73812002-05-04 Andrew Cagney <ac131313@redhat.com>
7382
7383 * MAINTAINERS: Mark a29k as deleted.
7384 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7385 Move new configurations to the top.
7386 * configure.tgt: Remove a29k.
7387 * config/a29k/tm-vx29k.h: Delete.
7388 * config/a29k/vx29k.mt: Delete.
7389 * config/a29k/tm-a29k.h: Delete.
7390 * config/a29k/a29k-udi.mt: Delete.
7391 * config/a29k/a29k.mt: Delete.
7392 * a29k-tdep.c: Delete.
7393 * remote-udi.c: Delete.
7394 * remote-mm.c: Delete.
7395 * remote-eb.c: Delete.
7396 * remote-adapt.c: Delete.
7397 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7398 * config/s390/s390x.mt: Ditto.
7399 * config/s390/s390.mt: Ditto.
7400 * config/sparc/sparclynx.mh: Ditto.
7401 * config/sparc/linux.mh: Ditto.
7402 * config/pa/hppaosf.mh: Ditto.
7403 * config/pa/hppabsd.mh: Ditto.
7404 * config/ns32k/nbsd.mt: Ditto.
7405 * config/mips/vr5000.mt: Ditto.
7406 * config/m68k/sun3os4.mh: Ditto.
7407 * config/m68k/nbsd.mt: Ditto.
7408 * config/m68k/m68klynx.mh: Ditto.
7409 * config/m32r/m32r.mt: Ditto.
7410 * config/i386/x86-64linux.mt: Ditto.
7411 * config/i386/nbsdelf.mt: Ditto.
7412 * config/i386/nbsd.mt: Ditto.
7413 * config/i386/i386lynx.mh: Ditto.
7414
bf0c5130
AC
74152002-05-04 Andrew Cagney <ac131313@redhat.com>
7416
7417 * target.c (debug_print_register): New function. Handle oversize
7418 registers.
7419 (debug_to_fetch_registers): Call.
7420 (debug_to_store_registers): Call.
7421
2ae1c2d2
JB
74222002-05-03 Jim Blandy <jimb@redhat.com>
7423
13a393b0
JB
7424 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7425 (read_type): Doc fix.
7426 * gdbtypes.c (replace_type): Doc fix.
7427
2ae1c2d2
JB
7428 * stabsread.c (multiply_defined_struct): New complaint.
7429 (read_struct_type): If the type we were passed isn't empty, or
7430 incomplete, don't read the new struct type into it; complain,
7431 and return the original type unchanged. Take a new `type_code'
7432 argument, which is the type code for the new type.
7433 (read_type): Rather than storing the type's type code here, pass
7434 it as an argument to read_struct_type, and let that take care of
7435 storing it. That way, we don't overwrite the original type code,
7436 so read_struct_type can use it to decide whether we're overwriting
7437 something we shouldn't.
7438 (complain_about_struct_wipeout): New function.
7439
8de9bdc4
AC
74402002-05-03 Andrew Cagney <ac131313@redhat.com>
7441
7442 * gdbarch.sh: Assert that gdbarch is non-NULL.
7443 * gdbarch.c: Regenerate.
7444
f773fdbb
JM
74452002-05-03 Jason Merrill <jason@redhat.com>
7446
7447 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7448 and return NULL.
7449
0e04a514
ML
74502002-05-03 Michal Ludvig <mludvig@suse.cz>
7451
7452 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7453 (x86_64_dwarf2gdb_regno_map_length),
7454 (x86_64_dwarf2_reg_to_regnum): Added.
7455 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7456 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7457 (_initialize_x86_64_tdep): Synced with the change above.
7458 (x86_64_skip_prologue): Reformulated message.
7459
065432a8
PM
74602002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7461
7462 * f-exp.y: Also use new prev_lexptr variable
7463 to improve error reporting. Based on Michael Snyder
7464 2002-04-24 dated patch to c-exp.y.
7465 * jv-exp.y: Likewise.
7466 * m2-exp.y: Likewise.
7467
a3162708
EZ
74682002-05-02 Elena Zannoni <ezannoni@redhat.com>
7469
7470 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7471 we are dealing with vectors.
7472
03620c38
PM
74732002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7474
7475 * config/m68k/tm-nbsd.h: Obvious fix,
7476 correct machine name.
7477
6604db2e
PM
74782002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7479
7480 * p-typeprint.c (pascal_type_print_base): Add support
7481 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7482
0906b739
PM
74832002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7484
7485 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7486 for fondamental pascal 'char' type.
7487
e2625b33
PM
74882002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7489
7490 * p-lang.h (is_pascal_string_type): Declaration changed,
7491 new sixth argument of type char ** added.
361d1df0 7492 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7493 changed. Args length_pos, length_size, string_pos, char_size
7494 can now be NULL. New argument arrayname set to the field
7495 name of the char array. Return value set to char array
7496 field index plus one.
361d1df0 7497 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7498 is_pascal_string_type function.
7499
cf17c188
AC
75002002-05-02 Andrew Cagney <cagney@redhat.com>
7501
7502 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7503 <cagney@redhat.com> change.
7504 * gdbarch.c: Regenerate.
7505
52bca491
AC
75062002-05-02 Andrew Cagney <cagney@redhat.com>
7507
7508 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7509 before probing for a new one. Detect errorenous gdbarch_init
7510 functions.
7511 * gdbarch.c: Regenerate.
7512
d5e72505
AC
75132002-05-01 Andrew Cagney <cagney@redhat.com>
7514
7515 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7516 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7517 * config/v850/tm-v850.h: Ditto. Update copyright.
7518
af566d9f
AC
75192002-04-30 Andrew Cagney <ac131313@redhat.com>
7520
7521 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7522 current_gdbarch.
7523
880d85fa
MS
75242002-04-30 Michael Snyder <msnyder@redhat.com>
7525
94c30b78
MS
7526 * arm-tdep.c: Whitespace clean-ups.
7527 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7528 should have been removed as part of 4/24 change.
7529
6f5987a6
KB
75302002-04-30 Kevin Buettner <kevinb@redhat.com>
7531
7532 * rs6000-tdep.c: Added comment describing how fpscr register
7533 numbers were chosen.
7534
1a113c93
MS
75352002-04-30 Michael Snyder <msnyder@redhat.com>
7536
7537 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7538
9a6f53fe
EZ
75392002-04-29 Elena Zannoni <ezannoni@redhat.com>
7540
7541 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7542 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7543 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7544
11ed25ac
KB
75452002-04-29 Kevin Buettner <kevinb@redhat.com>
7546
7547 From Louis Hamilton <hamilton@redhat.com>:
7548 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7549 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7550 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7551 not bfd-private xcoff data, to determine wordsize.
7552 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7553
ae232405
AC
75542002-04-29 Andrew Cagney <ac131313@redhat.com>
7555
7556 GDB 5.2 released from 5.2 branch.
7557
91fd20f7
ML
75582002-04-29 Michal Ludvig <mludvig@suse.cz>
7559
7560 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7561 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7562 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7563
2dc5091b
EZ
75642002-04-29 Elena Zannoni <ezannoni@redhat.com>
7565
7566 * rs6000-tdep.c (rs6000_extract_return_value,
7567 rs6000_store_return_value): Handle returning vectors.
7568 (rs6000_gdbarch_init): Use
7569 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7570 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7571 New function.
7572 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7573 vectors.
7574 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7575 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7576
2b9848d8
PM
75772002-04-24 Pierre Muller <ics.u-strasbg.fr>
7578
7579 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7580 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7581 with fprintf_unfiltered (gdb_stderr,...).
7582
f8d17dc5
PM
75832002-04-24 Pierre Muller <ics.u-strasbg.fr>
7584
7585 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7586 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7587 Replace fprintf (stderr,...
7588 with fprintf_unfiltered (gdb_stderr,....
7589 * remote-es.c: Likewise.
7590 * remote-os9k.c: Likewise.
7591 * remote-st.c: Likewise.
7592
2f2f1ad1
AS
75932002-04-28 Andreas Schwab <schwab@suse.de>
7594
7595 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7596 linux-proc.o and gcore.o.
7597
b6779aa2
AC
75982002-04-26 Michal Ludvig <mludvig@suse.cz>
7599
7600 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7601 code without frame pointers.
7602
7e57f5f4
AC
76032002-04-26 Andrew Cagney <ac131313@redhat.com>
7604
7605 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7606 ON_STACK is needed.
7607
2ceb85d0
BE
76082002-04-26 Ben Elliston <bje@redhat.com>
7609
7610 * target.c (do_xfer_memory): Correct reference to the new option
7611 "trust-readonly-sections".
7612
f5f8a009
EZ
76132002-04-26 Elena Zannoni <ezannoni@redhat.com>
7614
7615 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7616 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7617 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7618 vectors.
7619 (read_array_type): Record the fact that this array type is really a
7620 vector (i.e. are passed in by value).
7621
5868c862
JT
76222002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7623
7624 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7625 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7626 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7627 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7628 * alpha-linux-tdep.c: Include frame.h.
7629 (alpha_linux_sigcontext_addr): New function.
7630 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7631 alpha_linux_sigcontext_addr.
7632 * alpha-osf1-tdep.c: Include gdbcore.h.
7633 (alpha_osf1_sigcontext_addr): New function.
7634 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7635 alpha_osf1_sigcontext_addr.
7636 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7637 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7638
bfb01f37
AC
76392002-04-26 Andrew Cagney <ac131313@redhat.com>
7640
361d1df0 7641 * stack.c (selected_frame_level):
bfb01f37
AC
7642 (select_frame): Do not set selected_frame_level.
7643 * frame.h (selected_frame_level): Delete declaration.
7644
15813d3f
AC
76452002-04-26 Andrew Cagney <ac131313@redhat.com>
7646
7647 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7648 convert_from_func_ptr-addr when AIX / PowerOpen.
7649
6096c27a
AC
76502002-04-25 Andrew Cagney <ac131313@redhat.com>
7651
7652 * valops.c (hand_function_call): Call
7653 generic_save_call_dummy_addr.
7654 * frame.h (generic_save_call_dummy_addr): Declare.
7655 * blockframe.c (struct dummy_frame): Add fields call_lo and
7656 call_hi.
7657 (generic_find_dummy_frame): Check for PC in range call_lo to
7658 call_hi instead of entry_point_address.
7659 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7660 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7661 (generic_save_call_dummy_addr): New function.
7662
f510d44e
DM
76632002-04-24 David S. Miller <davem@redhat.com>
7664
7665 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7666 sparc_skip_prologue.
7667 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7668 information to find prologue when possible.
7669 (sparc_prologue_frameless_p): Call examine_prologue directly.
7670 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7671 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7672 second argument.
7673 (SKIP_PROLOGUE): Likewise.
7674
15d72a92
JT
76752002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7676
7677 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7678 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7679 indicate that the condition it was testing is always true.
7680 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7681 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7682 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7683
accc6d1f
JT
76842002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7685
7686 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7687 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7688 tdep->jb_pc and tdep->jb_elt_size.
7689 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7690 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7691 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7692 * alpha-nat.c (get_longjmp_target): Remove.
7693 (JB_ELEMENT_SIZE): Ditto.
7694 (JB_PC): Ditto.
7695 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7696 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7697 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7698 to alpha_get_longjmp_target.
7699 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7700 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7701 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7702
1bfdc549
AC
77032002-04-25 Andrew Cagney <ac131313@redhat.com>
7704
7705 * README: Update to GDB 5.2.
7706
1bd316f0
AC
77072002-04-25 Andrew Cagney <ac131313@redhat.com>
7708
7709 * gdbarch.sh (LC_ALL): Set to `c'.
7710
2e5ff58c
TR
77112002-04-25 Theodore A. Roth <troth@verinet.com>
7712
7713 * avr-tdep.c: Ran through gdb_indent.sh.
7714
e33ce519
TR
77152002-04-25 Theodore A. Roth <troth@verinet.com>
7716
7717 * MAINTAINERS: Add myself as AVR maintainer.
7718 * NEWS: Note new target avr.
7719
8818c391
TR
77202002-04-25 Theodore A. Roth <troth@verinet.com>
7721
7722 * Makefile.in: Add support for AVR target.
7723 * configure.tgt: Add support for AVR target.
7724 * avr-tdep.c: New file
7725 * config/avr/avr.mt: New file.
7726
79509c2d
TR
77272002-04-25 Theodore A. Roth <troth@verinet.com>
7728
7729 * MAINTAINERS: Add myself to write-after-approval.
7730
dac8068e
PM
77312002-04-24 Pierre Muller <ics.u-strasbg.fr>
7732
7733 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7734 with fprintf_unfiltered (gdb_stderr,....
7735
25bf3106
PM
77362002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7737
7738 Fix PR gdb/508.
7739 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7740
24467a86
PM
77412002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7742
7743 * p-exp.y: Also use new prev_lexptr variable
7744 to improve error reporting. Based on Michael Snyder
7745 2002-04-24 dated patch to c-exp.y.
7746
95b80706
JT
77472002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7748
7749 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7750 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7751 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7752 to 0.
7753 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7754 and struct value.
7755 (FUNCTION_START_OFFSET): Remove.
7756 (BREAKPOINT): Ditto.
7757
e90cc612
JT
77582002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7759
7760 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7761 * NEWS: Ditto.
7762
6c72f9f9
JT
77632002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7764
7765 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7766 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7767 alpha_linux_pc_in_sigtramp.
7768 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7769 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7770 alpha_osf1_pc_in_sigtramp.
7771 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7772 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7773 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7774 alphafbsd_pc_in_sigtramp.
7775 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7776 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7777 alphanbsd_pc_in_sigtramp.
7778 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7779 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7780
5e4f3379
JT
77812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7782
7783 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7784
da8ca43d
JT
77852002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7786
7787 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7788 alphanbsd-tdep.c.
7789 (alphanbsd-nat.o): New dependency list.
7790 (alphanbsd-tdep.o): Ditto.
7791 * NEWS: Note new native NetBSD/alpha configuration.
7792 * alphanbsd-nat.c: New file.
7793 * alphanbsd-tdep.c: Ditto.
7794 * configure.host (alpha*-*-netbsd*): New host.
7795 * configure.tgt (alpha*-*-netbsd*): New target.
7796 * config/alpha/nbsd.mh: New file.
7797 * config/alpha/nbsd.mt: Ditto.
7798 * config/alpha/nm-nbsd.h: Ditto.
7799 * config/alpha/tm-nbsd.h: Ditto.
7800
36a6271d
JT
78012002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7802
7803 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7804 (alpha-osf1-tdep.o): New dependency list.
7805 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7806 and skip_sigtramp_frame members.
7807 * alpha-linux-tdep.c: Include gdbcore.h.
7808 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7809 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7810 * alpha-osf1-tdep.c: New file.
7811 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7812 alpha-osf1-dep.c.
7813 (alpha_frame_past_sigtramp_frame): New function.
7814 (alpha_dynamic_sigtramp_offset): Ditto.
7815 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7816 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7817 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7818 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7819 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7820 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7821 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7822 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7823 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7824 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7825 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7826 to find_solib_trampoline_target.
7827 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7828 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7829 (SKIP_TRAMPOLINE_CODE): Remove.
7830 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7831 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7832 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7833 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7834 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7835 (PROC_SIGTRAMP_MAGIC): Ditto.
7836 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7837 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7838 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7839 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7840 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7841
2f4bc57b
JT
78422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7843
7844 * NEWS: Note that Alpha targets are now multi-arch.
7845
665132f9
MS
78462002-04-24 Michael Snyder <msnyder@redhat.com>
7847
7848 * parser-defs.h (prev_lexptr): New external variable.
7849 * parse.c (parse_exp_1): Set prev_lexptr to null before
7850 calling the language-specific parser.
7851 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7852 (yyerror): Use prev_lexptr in error reporting.
7853
32872fa7
DJ
78542002-04-24 Daniel Jacobowitz <drow@mvista.com>
7855
7856 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7857 * gregset.h: If FILL_FPXREGSET is defined, provide
7858 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7859 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7860 is defined, call fill_fpxregset.
7861
57e76fac
MS
78622002-04-24 Roland McGrath <roland@frob.com>
7863
7864 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7865 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7866 (supply_gregset, supply_fpregset): New functions.
7867
7868 * gnu-nat.c (gnu_find_memory_regions): New function.
7869 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7870 (gnu_xfer_memory): Add a cast.
7871
f43845b3
MS
78722002-04-24 Michael Snyder <msnyder@redhat.com>
7873
361d1df0 7874 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7875 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7876 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7877 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7878 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7879 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7880
a0abec03
AC
7881Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7882
7883 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7884 NUM_PSEUDO_REGS can be used.
7885
d7bd68ca
AC
78862002-04-24 Andrew Cagney <ac131313@redhat.com>
7887
7888 * arch-utils.h: Update copyright.
7889
7890 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7891 * gdbarch.h, gdbarch.c: Re-generate.
7892
7893 * inferior.h (IN_SIGTRAMP): Delete definition.
7894 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7895 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7896
7897 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7898 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7899 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7900 (find_proc_framesize): Ditto.
7901 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7902 (alpha_init_extra_frame_info): Ditto.
7903 * infrun.c (handle_inferior_event): Ditto.
7904 (handle_inferior_event): Ditto.
7905 (check_sigtramp2): Ditto.
7906 * blockframe.c (create_new_frame): Ditto.
7907 (get_prev_frame): Ditto.
7908 * ppc-linux-tdep.c: Update comments.
7909 * i386-linux-tdep.c: Update comments.
7910 * breakpoint.c (bpstat_what): Update comment.
7911
4867e41e
DM
79122002-04-24 David S. Miller <davem@redhat.com>
7913
21d83aa5
DM
7914 * i960-tdep.c (register_in_window_p): New function.
7915 (i960_find_saved_register): Use it instead of
7916 REGISTER_IN_WINDOW_P.
7917 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7918
4867e41e
DM
7919 * symtab.h (find_stab_function_addr): Kill extern.
7920 * minsyms.c (find_stab_function_addr): Remove from here...
7921 * dbxread.c: ... to here, and mark it static.
7922
69cdf6a2
DM
79232002-04-20 David S. Miller <davem@redhat.com>
7924
7925 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7926 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7927
5a595886
DM
79282002-04-21 David S. Miller <davem@redhat.com>
7929
7930 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7931 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7932 (vx_write_register): Likewise.
7933
1da1a192
JB
79342002-04-23 J. Brobecker <brobecker@gnat.com>
7935
7936 * source.c (is_regular_file): New function.
7937 (openp): Check wether file to open is a regular file
7938 to avoid opening directories.
7939
baa6f10b
JT
79402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7941
7942 * findvar.c (extract_signed_integer): Cast printf argument
7943 to suppress format warning.
7944 (extract_unsigned_integer): Likewise.
7945 * infcmd.c (registers_info): Likewise.
7946 * top.c (get_prompt_1): Likewise.
7947 * valops.c (value_assign): Likewise.
7948 * valprint.c (print_decimal): Likewise.
7949
b2c4da81
L
79502002-04-22 H.J. Lu (hjl@gnu.org)
7951
7952 * c-exp.y (typebase): Support
361d1df0 7953
b2c4da81
L
7954 [long|long long|short] [signed|unsigned] [int|]
7955
7956 and
7957
7958 signed [long|long long|short] int
7959
f267bd6a
JT
79602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7961
7962 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7963 and vax-tdep.h.
7964 * vax-tdep.h: New file.
7965 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7966 Make several routines static.
7967 (vax_get_saved_register): New function.
7968 (vax_gdbarch_init): New function.
7969 (_initialize_vax_tdep): Register vax_gdbarch_init.
7970 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7971 Remove macros now under the control of gdbarch.
7972
da3c6d4a
MS
79732002-04-22 Michael Snyder <msnyder@redhat.com>
7974
11d3b27d
MS
7975 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7976 Some whitespace and coding standards tweaks.
da3c6d4a 7977
a33f7558
JT
79782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7979
7980 * vax-tdep.c: Include regcache.h.
7981 (vax_call_dummy_words): New.
7982 (sizeof_vax_call_dummy_words): New.
7983 (vax_fix_call_dummy): New function.
7984 (vax_saved_pc_after_call): Ditto.
7985 * config/vax/tm-vax.h: Don't include regcache.h.
7986 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7987 (CALL_DUMMY): Remove.
7988 (CALL_DUMMY_WORDS): Define.
7989 (SIZEOF_CALL_DUMMY_WORDS): Define.
7990 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7991
47a73475
MS
79922002-04-18 Michael Snyder <msnyder@redhat.com>
7993
7994 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7995
52efde73
JT
79962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7997
7998 * vax-tdep.c (vax_frame_chain): New function.
7999 (vax_push_dummy_frame): Ditto.
8000 (vax_pop_frame): Ditto.
8001 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8002 (FRAMELESS_FUNCTION_INVOCATION): Use
8003 generic_frameless_function_invocation_not.
8004 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8005 (POP_FRAME): Use vax_pop_frame.
8006
ea74468c
JT
80072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8008
8009 * vax-tdep.c (vax_store_struct_return): New function.
8010 (vax_extract_return_value): Ditto.
8011 (vax_store_return_value): Ditto.
8012 (vax_extract_struct_value_address): Ditto.
8013 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8014 vax_store_struct_return.
8015 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8016 (STORE_RETURN_VALUE): Use vax_store_return_value.
8017 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8018
5516aa92
JT
80192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * vax-tdep.c (vax_frame_saved_pc): New function.
8022 (vax_frame_args_address_correct): Ditto.
8023 (vax_frame_args_address): Ditto.
8024 (vax_frame_locals_address): Ditto.
8025 (vax_frame_num_args): Move code to be in proximity to
8026 other frame-related functions.
8027 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8028 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8029 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8030 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8031 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8032
36af0b35
L
80332002-04-22 H.J. Lu (hjl@gnu.org)
8034
8035 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8036 includedir.
8037
ab62c900
JT
80382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8039
8040 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8041 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8042 (FRAME_INIT_SAVED_REGS): New macro.
8043
7232b100
JT
80442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8045
8046 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8047
b70d2aee
JT
80482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8049
8050 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8051 where needed.
8052 (fetch_osf_core_registers): Likewise.
8053 (supply_gregset): Likewise.
8054
a0e8a2d1 80552002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8056
a0e8a2d1
JB
8057 * symfile.h (get_section_index): Define.
8058 * symfile.c (get_section_index): New function.
8059 * mdebugread.c (SC_IS_SBSS): New macro.
8060 (SC_IS_BSS): Return true for the scBss storage class only, as
8061 the scSBss storage class refers to the .sbss section.
8062 (parse_partial_symbols): Discard the symbols which associated
8063 section does not exist.
8064 Make sure to use the .sbss section index for symbols which
8065 storage class is scBss, rather than using the .bss section index.
8066
51eb8b08
JT
80672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8068
8069 * vax-tdep.c: Update copyright years.
8070 (vax_register_name): New function.
8071 (vax_register_byte): Ditto.
8072 (vax_register_raw_size): Ditto.
8073 (vax_register_virtual_size): Ditto.
8074 (vax_register_virtual_type): Ditto.
8075 * config/vax/tm-vax.h: Update copyright years.
8076 (REGISTER_NAMES): Remove.
8077 (REGISTER_NAME): Define.
8078 (REGISTER_BYTE): Use vax_register_byte.
8079 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8080 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8081 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8082
6cc1c0a8
AC
80832002-04-21 Andrew Cagney <ac131313@redhat.com>
8084
8085 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8086 declaration
8087 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8088
9319a2fe
DM
80892002-04-21 David S. Miller <davem@redhat.com>
8090
8091 * arch-utils.c (generic_prologue_frameless_p): Kill
8092 SKIP_PROLOGUE_FRAMELESS_P code.
8093 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8094 references.
8095 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8096 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8097 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8098 references.
8099 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8100 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8101 (sparc_gdbarch_init): Pass it to
8102 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8103
e9ed6d01
JT
81042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8105
8106 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8107 (alphabsd-nat.o): New dependency list.
8108
36012033
JT
81092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8110
8111 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8112 alphafbsd-tdep.c.
8113 (alpha-linux-tdep.o): New dependency list.
8114 (alphafbsd-tdep.o): Likewise.
8115
3379287a
JT
81162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8117
8118 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8119 to here...
8120 * alpha-tdep.c: ...from here.
8121 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8122
4bcbd6cb
JT
81232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8124
8125 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8126 prototype from here...
8127 * alpha-tdep.h: ...to here.
8128
b31da25e
AC
81292002-04-21 Andrew Cagney <ac131313@redhat.com>
8130
8131 * frame.h (selected_frame_level): Document as deprecated.
8132 (frame_relative_level): Declare.
8133 * stack.c (frame_relative_level): New function.
8134 (selected_frame_level): Document as deprecated.
8135 (select_frame): Do not set the selected_frame_level.
8136
8137 * stack.c (frame_info, record_selected_frame): Update.
8138 (frame_command, current_frame_command): Update.
8139 (up_silently_base, up_command, down_silently_base): Update.
8140 (down_command): Update.
8141 * inflow.c (kill_command): Update.
8142 * tracepoint.c (finish_tfind_command): Update.
8143 * corelow.c (core_open): Update.
8144 * thread.c (info_threads_command): Update.
8145 (do_captured_thread_select): Update.
8146 * infcmd.c (finish_command): Update.
8147 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8148
9c1d6fe5
JT
81492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8150
8151 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8152
ab89facf
AC
81532002-04-21 Andrew Cagney <ac131313@redhat.com>
8154
8155 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8156 type const.
8157
82a4efa1
JT
81582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8159
8160 * alphafbsd-tdep.c: Update copyright years. Include
8161 alpha-tdep.h.
8162 (alphafbsd_use_struct_convention): Make static.
8163 (alphafbsd_init_abi): New function.
8164 (_initialize_alphafbsd_tdep): New function.
8165 * config/alpha/tm-fbsd.h: Update copyright years.
8166 (USE_STRUCT_CONVENTION): Remove.
8167
44dffaac
JT
81682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8169
8170 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8171 an Alpha ABI variant.
8172 (alpha_abi_handler_list): Declare.
8173 (alpha_gdbarch_register_os_abi): New function.
8174 (alpha_gdbarch_init): Give registered ABI variant handlers a
8175 chance to tweak the gdbarch once we have set up defaults.
8176 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8177
65585be4
JT
81782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8179
8180 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8181 to standard_coerce_float_to_double.
8182 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8183
d9b023cc
JT
81842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8185
8186 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8187 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8188 from gdbarch_tdep rather than a constant.
8189 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8190 the default text address for all Alpha Unix ABIs.
8191 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8192 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8193
dc129d82
JT
81942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8195
8196 * alpha-tdep.h: New file. Includes several Alpha target constants
8197 taken from...
8198 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8199 let gdbarch deal with.
8200 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8201 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8202 to dependency list.
8203 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8204 Alpha target register names.
8205 * alphabsd-nat.c: Likewise.
8206 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8207 Alpha target register names. Make serveral routines static.
8208 (alpha_get_saved_register): New function.
8209 (alpha_abi_names): New.
8210 (process_note_abi_tag_sections): New function.
8211 (get_elfosabi): New function.
8212 (alpha_gdbarch_init): New function.
8213 (alpha_dump_tdep): New function.
8214 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8215
d49d1e0a
AC
82162002-04-21 Andrew Cagney <ac131313@redhat.com>
8217
8218 * frame.c (find_saved_register): Delete #ifdef
8219 HAVE_REGISTER_WINDOWS code.
8220 * config/sparc/tm-sparc.h: Update comments.
8221 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8222
92e8c9ed
AC
82232002-04-21 Andrew Cagney <ac131313@redhat.com>
8224
8225 * i960-tdep.c (i960_find_saved_register): New function.
8226 (i960_get_saved_register): New function.
8227 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8228 (i960_get_saved_register): Declare.
8229 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8230
e1925118
DM
82312002-04-20 David S. Miller <davem@redhat.com>
8232
8233 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8234
29673b29
AC
82352002-04-20 Andrew Cagney <ac131313@redhat.com>
8236
8237 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8238 instead of NUM_PSEUDO_REGS.
8239
6c86dcd5
DM
82402002-04-20 David S. Miller <davem@redhat.com>
8241
8242 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8243 GDB_MULTI_ARCH_PARTIAL
8244 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8245 define, let tm-sp64.h do it.
8246
aa40ec90
JT
82472002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8248
8249 * frame.c (find_saved_register): Avoid a NULL pointer
8250 dereference and actually walk the frame list.
8251
0f79675b
AC
82522002-04-20 Andrew Cagney <ac131313@redhat.com>
8253
8254 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8255 sorted in most most-recent-used order. Document.
8256 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8257
f91305dd 82582002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8259
8260 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8261 instead of ->prev.
8262 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8263 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8264 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8265 instead of ->prev.
8266
73d322b1
EZ
82672002-04-19 Elena Zannoni <ezannoni@redhat.com>
8268
8269 Fix PR gdb/471.
8270 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8271 (build_builtin_type_vec128): Ditto.
8272 (append_composite_type_field): Fix calculation of type length in
8273 union case.
8274
ccd9a834
EZ
82752002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8276
8277 * config/djgpp/README: Update.
8278
8279 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8280 compiler warnings.
8281
a57f9e49
JT
82822002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8283
8284 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8285 (alpha_setup_arbitrary_frame): ...to this.
8286 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8287 for alpha_setup_arbitrary_frame.
8288
f4f9705a
AC
82892002-04-18 Andrew Cagney <cagney@redhat.com>
8290
8291 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8292 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8293
f4f9705a
AC
8294 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8295 * target.h (memory_breakpoint_from_pc): Update declaration.
8296 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8297
8298 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8299 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8300 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8301 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8302 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8303 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8304 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8305 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8306 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8307 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8308 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8309 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8310
8311 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8312 const pointer.
8313 * monitor.c (monitor_insert_breakpoint): Ditto.
8314 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8315
8316 * config/mcore/tm-mcore.h: Update copyright.
8317 * mem-break.c: Ditto.
8318 * xstormy16-tdep.c: Ditto.
8319
29f319b8
PM
83202002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8321
8322 * p-exp.y: Add precedence rule for '^' token.
8323 This removes the shift/reduce conflicts.
8324 Remove the comment concerning these shift/reduce conflicts.
8325
ebeac11a
EZ
83262002-04-18 Elena Zannoni <ezannoni@redhat.com>
8327
8328 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8329 (registers_powerpc_nofp): New register set for processors
8330 without floating point unit.
8331
27c31547
DM
83322002-04-18 David S. Miller <davem@redhat.com>
8333
8334 * MAINTAINERS: Add myself to write-after-approval.
8335
47a73475
MS
83362002-04-17 Michael Snyder <msnyder@redhat.com>
8337
8338 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8339
953836b2
AC
83402002-04-17 Andrew Cagney <ac131313@redhat.com>
8341
8342 * rs6000-tdep.c (frame_initial_stack_address): Use
8343 frame_register_read to read the alloca_reg.
8344
8b0d4340
AC
83452002-04-17 Andrew Cagney <ac131313@redhat.com>
8346
8347 * frame.c (find_saved_register): Find saved registers in the next
8348 not prev frame.
8349 Fix PR gdb/365.
8350
d8864532
AC
83512002-04-17 Andrew Cagney <ac131313@redhat.com>
8352
8353 * gdbarch.sh (LANG): Set to ``c''.
8354
36cc83a3 83552002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8356
36cc83a3 8357 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8358
2f4150cc 83592002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8360
8361 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8362 Update copyright.
8363
628703c6 8364 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8365 Also fix PR gdb/391.
361d1df0 8366
56157b4a
AC
83672002-04-14 Andrew Cagney <ac131313@redhat.com>
8368
8369 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8370 * aclocal.m4, configure: Re-generate.
8371 Fix PR gdb/391.
361d1df0 8372
6d1e3329
EZ
83732002-04-14 Elena Zannoni <ezannoni@redhat.com>
8374
8375 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8376 instead of tm_print_insn.
8377
cb06fa07
EZ
83782002-04-14 Elena Zannoni <ezannoni@redhat.com>
8379
8380 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8381
f208ba17
AC
83822002-04-14 Andrew Cagney <ac131313@redhat.com>
8383
8384 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8385 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8386 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8387
20f01a46
DH
83882002-04-12 Don Howard <dhoward@redhat.com>
8389
8390 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8391 max_user_call_depth.
8392 (init_cmd_lists): Initialize the new value;
8393 * cli/cli-script.c (execute_user_command): Limit the call depth of
8394 user defined commands. This avoids a core-dump when user commands
8395 are infinitly recursive.
8396
a88376a3
KB
83972002-04-12 Kevin Buettner <kevinb@redhat.com>
8398
8399 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8400 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8401 from tdep struct instead of DEFAULT_LR_SAVE.
8402 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8403 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8404 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8405
f2172603
MS
84062002-04-12 Michael Snyder <msnyder@redhat.com>
8407
694f61fb 8408 * Remote.c: Spelling fix.
20fe79c8
MS
8409 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8410 If no symbol found for "sbrk", try "_sbrk".
8411 (make_output_phdrs): Use bfd_section_name.
8412 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8413 * eval.c: Indentation fix-ups.
169a7369
MS
8414 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8415 in case it gets applied to an address that is already
8416 in the instruction space.
de74f71f
MS
8417 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8418 * symfile.c: Fix indentation, long lines.
f2172603
MS
8419 * source.c: White space fix-up.
8420
cda5a58a
AC
84212002-04-12 Andrew Cagney <cagney@redhat.com>
8422
8423 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8424 * frame.c (frame_register_read): New function. Return non-zero on
8425 success.
8426 (read_relative_register_raw_bytes_for_frame): Delete.
8427 (read_relative_register_raw_bytes): Delete.
8428 * frame.h (frame_register_read): Declare.
8429 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8430 * sh-tdep.c: Ditto.
8431 * infcmd.c (do_registers_info): Ditto.
8432 * hppa-tdep.c: Ditto.
8433 * rs6000-tdep.c: Ditto.
8434 * h8500-tdep.c: Ditto.
8435 * mips-tdep.c: Ditto.
8436 * h8300-tdep.c: Ditto.
8437 * z8k-tdep.c: Ditto.
8438
2ea5f656
KB
84392002-04-12 Kevin Buettner <kevinb@redhat.com>
8440
8441 From Jimi X <jimix@watson.ibm.com>:
8442 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8443 64-bit SysV ABI.
8444
27b15785
KB
84452002-04-12 Kevin Buettner <kevinb@redhat.com>
8446
8447 From Jimi X <jimix@watson.ibm.com>:
8448 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8449 bfd info.
8450
5d57ee30
KB
84512002-04-12 Kevin Buettner <kevinb@redhat.com>
8452
8453 From Jimi X <jimix@watson.ibm.com>:
8454 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8455 register sets for these processor variants.
8456
bc1e36ca
DJ
84572002-04-11 Daniel Jacobowitz <drow@mvista.com>
8458
bc1e36ca
DJ
8459 * regformats/reg-ppc.dat: Support FPSCR.
8460
e3f36dbd
KB
84612002-04-11 Kevin Buettner <kevinb@redhat.com>
8462
8463 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8464 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8465 Add fpscr as an invalid/unfetchable register.
8466 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8467 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8468 (fill_fpregset): Add support for register fpscr.
8469 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8470 (fill_gregset): Account for the fact that register ``mq'' might
8471 not exist.
8472 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8473 (registers_power): Add fpscr to register set at slot 71.
8474 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8475 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8476
943c9c25
MS
84772002-04-11 Michael Snyder <msnyder@redhat.com>
8478
8479 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8480 * configure: Regenerate.
8481 * config.in: Regenerate.
8482 * acconfig.h: Add define for _SYSCALL32.
8483 * core-sol2.c: Remove #define _SYSCALL32.
8484 * solib-legacy.c: Remove #define _SYSCALL32.
8485
d8c0a2e7
AC
84862002-04-10 Andrew Cagney <ac131313@redhat.com>
8487
8488 * stack.c (select_frame): Cleanup internal error message, do not
8489 use %p.
8490
7cc19214
AC
84912002-04-10 Andrew Cagney <ac131313@redhat.com>
8492
8493 * stack.c (select_frame): Check that selected_frame and the
8494 specified level are as expected.
8495 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8496 Update copyright.
8497 * frame.h (struct frame_info): Add field `level'. Update
8498 copyright.
8499 Work-in-progress PR gdb/464.
8500
67a2b77e
AC
85012002-04-10 Andrew Cagney <ac131313@redhat.com>
8502
8503 * maint.c (maint_print_section_info): Rename print_section_info.
8504 (print_bfd_section_info, print_objfile_section_info): Update.
8505 * inferior.h (struct gdbarch): Add opaque declaration.
8506 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8507 * gdbarch.h: Regenerate.
8508
8cfda98c
ML
85092002-04-10 Michal Ludvig <mludvig@suse.cz>
8510
8511 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8512 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8513 (kernel_u_size): Added.
8514 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8515 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8516
ca439ad2 85172002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8518
ca439ad2
JI
8519 * valarith.c (find_size_for_pointer_math): New function, either returns
8520 the size for a pointer's target, returns 1 for void *, or errors for
8521 incomplete types.
8522 (value_add, value_sub): use find_size_for_pointer_math.
8523
2f2893d9
DJ
85242002-04-09 Daniel Jacobowitz <drow@mvista.com>
8525
8526 * linux-low.c (linux_look_up_symbols): New hook.
8527 (linux_target_ops): Add linux_look_up_symbols.
8528 * remote-utils.c (decode_address): New function.
8529 (look_up_one_symbol): New function.
8530 * server.c (handle_query): Call target look_up_symbols hook.
8531 * server.h (look_up_one_symbol): Add prototype.
8532 * target.h (struct target_ops): Add look_up_symbols hook.
8533
96cb11df
AC
85342002-04-09 Andrew Cagney <ac131313@redhat.com>
8535
8536 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8537 override FP_REGNUM with frame->fp. Update copyright.
8538 * parse.c (num_std_regs, std_regs): Delete.
8539 (target_map_name_to_register): Do not search std_regs. Update
8540 function description.
8541 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8542 declarations. Update copyright.
8543 Fix PR gdb/251.
361d1df0 8544
97658e92
DJ
85452002-04-09 Daniel Jacobowitz <drow@mvista.com>
8546
8547 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8548 after the last symbol in a block.
8549
6044e3eb
PM
85502002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8551
8552 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8553 is non zero as a found symbol.
8554
0406ec40
AC
85552002-04-08 Andrew Cagney <ac131313@redhat.com>
8556
8557 * findvar.c: Include "builtin-regs.h".
8558 (value_of_register): Call value_of_builtin_reg when applicable.
8559 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8560 (target_map_name_to_register): Call
8561 builtin_reg_map_name_to_regnum.
8562 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8563 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8564 (builtin_regs_h): Define.
8565 (builtin-regs.o): New target.
8566 (findvar.o): Add $(builtin_regs_h).
8567 * builtin-regs.c, builtin-regs.h: New files.
8568 * std-regs.c: New file.
8569 Partial fix for PR gdb/251.
8570
56a6dfb9
KB
85712002-04-08 Kevin Buettner <kevinb@redhat.com>
8572
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8574 it's no longer required.
8575
3a808432
AC
85762002-04-08 Andrew Cagney <ac131313@redhat.com>
8577
8578 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8579
7c40d541
KB
85802002-04-08 Kevin Buettner <kevinb@redhat.com>
8581
8582 From Jimi X <jimix@watson.ibm.com>:
8583 * rs6000-tdep.c (rs6000_software_single_step): Use
8584 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8585 and size. Use target_insert_breakpoint() and
8586 target_remove_breakpoint() to insert and remove breakpoints
8587 instead of explicit memory reads and writes.
8588
cc9836a8
KB
85892002-04-08 Kevin Buettner <kevinb@redhat.com>
8590
8591 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8592 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8593 ELF_OBJECT_FORMAT ifdef.
8594
7495d1dc
KB
85952002-04-08 Kevin Buettner <kevinb@redhat.com>
8596
8597 From Jimi X <jimix@watson.ibm.com>:
8598 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8599
4288e836
KB
86002002-04-08 Kevin Buettner <kevinb@redhat.com>
8601
8602 From Jimi X <jimix@watson.ibm.com>:
8603 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8604 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8605
a4e4e501
MK
86062002-04-07 Mark Kettenis <kettenis@gnu.org>
8607
8608 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8609 s/asprintf/xasprintf/.
8610 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8611
006defba
AC
86122002-04-07 Andrew Cagney <ac131313@redhat.com>
8613
8614 I believe Jeff Law denies responsability for this one:
8615 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8616 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8617 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8618 Work-around for PR gdb/366.
8619
7aa83cac
EZ
86202002-04-07 Elena Zannoni <ezannoni@redhat.com>
8621
8622 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8623 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8624 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8625
cf1fcca1
EZ
86262002-04-07 Elena Zannoni <ezannoni@redhat.com>
8627
8628 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8629 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8630 information.
8631
3f289e6f
AC
86322002-04-07 Andrew Cagney <ac131313@redhat.com>
8633
8634 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8635 maintainer.
8636
129188f6
AC
86372002-04-07 Andrew Cagney <ac131313@redhat.com>
8638
8639 * README (Reporting Bugs in GDB): Document the bug web page as the
8640 prefered way of submitting bugs.
8641 Fix PR gdb/402.
8642
1200cd6e
AC
86432002-04-06 Andrew Cagney <ac131313@redhat.com>
8644
8645 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8646 -1. Update comment.
8647 * gdbarch.h, gdbarch.c: Re-generate.
8648
2853c33c
AS
86492002-04-07 Andreas Schwab <schwab@suse.de>
8650
8651 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8652 buffer to regcache_collect.
8653
c2169756
AC
86542002-04-06 Andrew Cagney <ac131313@redhat.com>
8655
8656 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8657 * gdbarch.c, gdbarch.h: Re-generate.
8658
25f1b008
AC
86592002-04-06 Andrew Cagney <ac131313@redhat.com>
8660
8661 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8662 declaration. Fix -Werror.
8663
59263426
DJ
86642002-04-05 Daniel Jacobowitz <drow@mvista.com>
8665
8666 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8667 * gdbarch.c: Regenerate.
8668
f5db4da3
MS
86692002-04-05 Michael Snyder <msnyder@redhat.com>
8670
80f8a6eb
MS
8671 * breakpoint.c (clear_command): Rewrite middle section to
8672 combine two loops with identical control conditions.
8673 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8674 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8675
ad3dcc5c
L
86762002-04-05 H.J. Lu (hjl@gnu.org)
8677
8678 * solib-svr4.c (bkpt_names): Add "__start".
8679
f32e7a74
AC
86802002-04-04 Andrew Cagney <ac131313@redhat.com>
8681
8682 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8683 as test for 64 bit target.
8684
8227c0ff
AC
86852002-04-05 Andrew Cagney <ac131313@redhat.com>
8686
8687 * h8500-tdep.c (h8500_write_fp): Delete function.
8688 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8689 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8690 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8692 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8693 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8694 (s390_write_fp):
8695 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8696 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8697 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8698 (d10v_write_fp): Delete function.
8699 * inferior.h (write_fp, generic_target_write_fp): Delete
8700 declarations.
8701 * regcache.c (generic_target_write_fp): Delete function.
8702 (write_fp): Delete function.
8703 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8704 * gdbarch.h, gdbarch.c: Regenerate.
8705 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8706 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8707 (sparc64_write_fp): Delete declaration.
8708 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8709 (h8500_write_fp): Delete declaration.
8710
2757dd86
AC
87112002-04-04 Andrew Cagney <ac131313@redhat.com>
8712
8713 * sparc-tdep.c (sparc64_write_fp): Delete.
8714 (sparc_push_dummy_frame): Replace write_fp call with code to store
8715 the FP directly.
8716 (sparc_gdbarch_init): Do not initialize write_fp.
8717
c69255e1
KB
87182002-04-05 Kevin Buettner <kevinb@redhat.com>
8719
8720 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8721 clause.
8722
ae767bfb
JB
87232002-03-29 Jim Blandy <jimb@redhat.com>
8724
8725 * stack.c (get_selected_block): Add new argument `addr_in_block',
8726 used to return the exact code address we used to select the block,
8727 not just the block.
8728 * blockframe.c (get_frame_block, get_current_block): Same.
8729 * frame.h (get_frame_block, get_current_block,
8730 get_selected_block): Update declarations.
8731 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8732 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8733
84d2ac95
MS
87342002-04-05 Michael Snyder <msnyder@redhat.com>
8735
8736 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8737 warning message.
8738
596aa3bf
JB
87392002-04-05 J. Brobecker <brobecker@gnat.com>
8740
8741 * utils.c (xfullpath): New function.
8742 * defs.h (xfullpath): Add declaration.
8743 * source.c (openp): Use xfullpath in place of gdb_realpath to
8744 avoid resolving the basename part of filenames when the
8745 associated file is a symbolic link. This fixes a potential
8746 inconsistency between the filenames known to GDB and the
8747 filenames it prints in the annotations.
8748 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8749 to be able to match a filename with either the real filename, or
8750 the name of any symbolic link to this file.
8751 (lookup_partial_symtab): Ditto.
8752
c02f5703
MS
87532002-04-04 Michael Snyder <msnyder@redhat.com>
8754
8755 * breakpoint.c: Add support for hardware breakpoints in overlays.
8756 (overlay_events_enabled): New state variable.
8757 (insert_breakpoints): Use overlay_events_enabled to decide
8758 whether to attempt to set a breakpoint at the overlay load addr.
8759 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8760 (remove_breakpoint): Use overlay_events_enabled to decide
8761 whether breakpoints need to be removed from overlay load addr.
8762 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8763 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8764 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8765 disable_overlay_breakpoints): Update overlay_events_enabled.
8766
5fb290d7
DJ
87672002-04-04 Daniel Jacobowitz <drow@mvista.com>
8768
8769 * dwarf2read.c (struct function_range): New.
8770 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8771 (check_cu_functions): New.
8772 (read_file_scope): Initialize global function lists.
8773 Call dwarf_decode_line after processing children.
8774 (read_func_scope): Add to global function list.
8775 (dwarf_decode_lines): Call check_cu_functions everywhere
8776 record_line is called. Call record_line with a linenumber
8777 of 0 to mark sequence ends.
8778
7b3fabf0
ML
87792002-04-04 Michal Ludvig <mludvig@suse.cz>
8780
361d1df0 8781 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8782 change sync with glibc.
8783
bce58c09
JB
87842002-04-03 Jim Blandy <jimb@redhat.com>
8785
8786 * configure.in: Call AC_C_INLINE.
8787 * configure: Regenerated.
361d1df0 8788
2fccf04a
DJ
87892002-04-01 Daniel Jacobowitz <drow@mvista.com>
8790
8791 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8792 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8793
2d1bfe2e
MK
87942002-03-31 Mark Kettenis <kettenis@gnu.org>
8795
a5941fbf
MK
8796 * NEWS: Mention gcore support on FreeBSD/i386.
8797
a90cd31d
MK
8798 * fbsd-proc.c: New file.
8799 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8800 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8801
2d1bfe2e
MK
8802 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8803 while statement.
8804
9eb6e5a1
JB
88052002-03-29 Jim Blandy <jimb@redhat.com>
8806
8807 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8808 unescaped newlines in string literals, but newer ones don't. So
8809 escape them.
8810
f02df580
MS
88112002-03-26 Michael Snyder <msnyder@redhat.com>
8812 Andrew Cagney <cagney@redhat.com>
8813
361d1df0 8814 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8815 restore file to memory.
8816 * cli/cli-dump.h: New file.
8817 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8818 * NEWS: Mention new commands.
f02df580 8819
109f874e
MS
88202002-03-28 Michael Snyder <msnyder@redhat.com>
8821
8822 * symfile.c (symbol_file_add): Move test for null symbols to later.
8823
520f6ade
AC
88242002-03-27 Andrew Cagney <ac131313@redhat.com>
8825
8826 From veksler at il.ibm.com:
8827 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8828 the xstrduped original path.
8829 Fix PR gdb/417.
8830
d4654627
MS
88312002-03-27 Michael Snyder <msnyder@redhat.com>
8832
8833 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8834 * infcmd.c (_initialize_infcmd): Ditto.
8835 * language.c (_initialize_language): Ditto.
8836 * symfile.c (_initialize_symfile): Ditto.
8837 * top.c (_init_main): Ditto.
8838 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8839
6be8bc0c
EZ
88402002-03-27 Elena Zannoni <ezannoni@redhat.com>
8841
8842 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8843 vector registers handling.
8844 (skip_prologue): Handle new AltiVec instructions. Fill in new
8845 fields of frame data.
8846 (frame_get_saved_regs): Fill in information for AltiVec registers.
8847
12af6855
JB
88482002-03-27 Jim Blandy <jimb@redhat.com>
8849
8850 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8851 a function; leave this macro here to invoke that function.
8852 (symbol_init_mangled_name): Declaration for that function.
8853 * symtab.c (symbol_init_mangled_name): New function.
8854
dc672865
AC
88552002-03-27 Andrew Cagney <ac131313@redhat.com>
8856
8857 * valarith.c: Replace strerror with safe_strerror.
8858 * tracepoint.c: Ditto.
8859 * lin-lwp.c: Ditto.
8860 * go32-nat.c: Ditto.
8861 * inflow.c: Ditto.
8862 * gnu-nat.c: Ditto.
8863
d96429cd
AS
88642002-03-27 Andreas Schwab <schwab@suse.de>
8865
8866 * event-top.c (command_line_handler): Remove useless if.
8867
7e336ba1
AJ
88682002-03-27 Andreas Jaeger <aj@suse.de>
8869
8870 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8871 comment.
8872
de220d0f
ML
88732002-03-27 Michal Ludvig <mludvig@suse.cz>
8874
8875 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8876 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8877 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8878 (x86_64_linux_dr_get_status, supply_gregset),
8879 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8880 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8881 (x86_64_register_info_table): Add.
8882 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8883 (x86_64_register_raw_size, x86_64_register_virtual_type),
8884 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8885 general x86_64_register_info_table.
8886 (i386_gdbarch_init): gdbarch_register_bytes is now set
8887 dynamicaly during initialization.
8888 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8889 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8890
0e98d0a7
DJ
88912002-03-27 Daniel Jacobowitz <drow@mvista.com>
8892
8893 * gdbserver/server.c (main): Call target_signal_to_host_p
8894 and target_signal_to_host on signals received from the remote.
8895 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8896 target_signal_from_host on signals sent to the remote.
8897 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8898 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8899
3130066b
DJ
89002002-03-27 Daniel Jacobowitz <drow@mvista.com>
8901
8902 * signals/signals.c: Include "server.h" in gdbserver build.
8903 (target_signal_from_name): Don't use STREQ.
8904 (_initialize_signals): Likewise. Don't include function in
8905 gdbserver build.
8906
9aedf4f4
DJ
89072002-03-27 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * signals.c: Moved to...
8910 * signals/signals.c: Here.
7e336ba1 8911 * Makefile (signals.o): Update.
9aedf4f4 8912
3fa41cdb
JL
89132002-03-26 Jeff Law (law@redhat.com)
8914
8915 * somread.c (som_symtab_read): Remove some commented out code and
8916 updated related comments. Do not set the minimal symbol table to
8917 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8918 in a dynamic executable.
8919 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8920 where we are unable to find the minimal symbol for the given
8921 PC value.
8922
ee677e8d
MS
89232002-03-25 Jeff Law (law@redhat.com)
8924
8925 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8926
e76e1718
ML
89272002-03-25 Michal Ludvig <mludvig@suse.cz>
8928
8929 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8930
18a642a1
AC
89312002-03-23 Andrew Cagney <ac131313@redhat.com>
8932
8933 * command.h: Update copyright.
8934 (struct cmd_list_element): Replace definition with opaque
8935 declaration.
8936 (enum cmd_types): Document that it will eventually be moved to
8937 cli/cli-decode.h
8938 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8939 (MALLOCED_REPLACEMENT): Delete macro.
8940 * Makefile.in (cli_decode_h): Add $(command_h).
8941 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8942 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8943 * completer.c: Include "cli/cli-decode.h".
8944 * maint.c: Include "cli/cli-decode.h".
8945 * cli/cli-decode.h: Include "command.h".
8946 (enum command_class): Delete.
8947 (enum cmd_types): Comment out.
8948 (enum cmd_auto_boolean): Delete.
8949 (enum var_types): Delete.
8950
b2875cc0
AC
89512002-03-23 Andrew Cagney <ac131313@redhat.com>
8952
8953 * cli/cli-decode.c: Include "gdb_assert.h".
8954 (add_set_or_show_cmd): New static function.
8955 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8956 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8957 all fields, such as func, from the set command.
8958
3b45974e
AC
89592002-03-23 Andrew Cagney <ac131313@redhat.com>
8960
8961 * MAINTAINERS (sh-elf): Change warning flag to -w.
8962
823ca731
AC
89632002-03-23 Andrew Cagney <cagney@redhat.com>
8964
8965 * defs.h (error): Add printf format attribute.
8966 * thread-db.c (thread_from_lwp): Fix error format string.
8967 * stack.c (parse_frame_specification): Ditto.
8968 * cli/cli-decode.c (undef_cmd_error): Ditto.
8969 * scm-lang.c (scm_lookup_name): Ditto.
8970 * tracepoint.c (trace_error): Ditto.
8971 * remote-utils.c (usage): Ditto.
8972 * remote.c (compare_sections_command): Ditto.
8973 Fix PR gdb/328.
8974
0e101458
AC
89752002-03-22 Andrew Cagney <ac131313@redhat.com>
8976
8977 * gdbtypes.c (append_composite_type_field): New function.
8978 (init_composite_type): New function.
8979 * gdbtypes.h (append_composite_type_field): Declare.
8980 (init_composite_type): Ditto.
8981
8e0662df
EZ
89822002-03-22 Elena Zannoni <ezannoni@redhat.com>
8983
8984 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8985 function.
8e0662df
EZ
8986 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8987 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8988 structure returning convention for SYSV ABI case, but not
8989 for GNU/Linux, FreeBSD, or NetBSD.
8990
3121eff0
DJ
89912002-03-22 Daniel Jacobowitz <drow@mvista.com>
8992
8993 * symtab.h (lookup_block_symbol): Add mangled_name argument
8994 to prototype.
8995
8996 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8997 with new mangled_name argument.
8998 * linespec.c (decode_line_1): Likewise.
8999 * valops (value_of_this): Likewise.
9000 * symtab.c (lookup_transparent_type): Likewise.
9001 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9002 (lookup_symbol): If we are given a mangled name, pass it down
9003 to lookup_symbol_aux.
9004 (lookup_block_symbol): If we are given a mangled name to check
9005 against, only return symbols which match it.
9006
349b409f
CF
90072002-03-22 Christopher Faylor <cgf@redhat.com>
9008
9009 * win32-nat.c (child_create_inferior): Check for proper shell to use
9010 here, in case the user changes it on the fly.
9011 (_initialize_inftarg): Remove shell path considerations.
9012
2a873819
EZ
90132002-03-21 Elena Zannoni <ezannoni@redhat.com>
9014
9015 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9016 for gdbarch_max_register_raw_size and max_register_virtual_size.
9017 Adjust copyright year.
9018
a1b9830c
DJ
90192002-03-21 Daniel Jacobowitz <drow@mvista.com>
9020
9021 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9022 in a function to cover the entire beginning of the function
9023 as well if it does not already.
9024
8b5790f2
TR
90252002-03-21 Tom Rix <trix@redhat.com>
9026
9027 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9028 (rs6000_ptrace64): Renamed from ptrace64.
9029
bdbe5747
MH
90302002-03-20 Martin M. Hunt <hunt@redhat.com>
9031
9032 * gdbserver/remote-utils.c (remote_open): Don't call
9033 getprotobyname, we're all using TCP here so just use
9034 IPPROTO_TCP.
7e336ba1 9035 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9036
90372002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9038
bdbe5747
MH
9039 * regcache.c (_initialize_regcache): No need to call
9040 build_regcache() at this time; it gets called whenever
9041 the gdbarch changes.
9042
7781cd62
DB
90432002-03-20 David O'Brien <obrien@FreeBSD.org>
9044
9045 * sparc-nat.c: Include sys/param.h where possible.
9046
f65ca430
DJ
90472002-03-20 Daniel Jacobowitz <drow@mvista.com>
9048
9049 Fix PR gdb/422.
9050 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9051 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9052 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9053 complex types.
9054 * stabsread.c (rs6000_builtin_type): Likewise.
9055 (read_sun_floating_type): Likewise.
9056
0c867556
PS
90572002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9058
9059 * stabsread.c (read_member_functions): Remove skip code for duplicate
9060 constructor/destructor methods. Use standard parsing for these
9061 methods and just do not chain them to the list of methods after
9062 parsing.
9063
12b9c64f
AO
90642002-03-19 Alexandre Oliva <aoliva@redhat.com>
9065
9066 * coffread.c: Remove redundant static declarations. Replace
9067 occurrences of `PTR' with `void *'.
9068 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9069 * top.h (quit_cover): Likewise.
9070 * defs.h (catch_errors): Likewise.
9071
349c5d5f
AC
90722002-03-18 Andrew Cagney <ac131313@redhat.com>
9073
9074 * defs.h (XMALLOC): Define.
9075 * gdb-events.sh (XMALLOC): Delete macro.
9076 * gdb-events.c, gdb-events.h: Regenerate.
9077 * gdbarch.sh (XMALLOC): Delete macro.
9078 * gdbarch.c: Regenerate.
9079 * serial.c (XMALLOC): Delete macro.
9080 * ui-file.c (XMALLOC): Ditto.
9081 * ser-unix.h (XMALLOC): Ditto.
9082 * sh-tdep.c (XMALLOC): Ditto.
9083 * ui-out.c (XMALLOC): Ditto.
9084 * utils.c (XMALLOC): Ditto.
9085 * i386-tdep.c (XMALLOC): Ditto.
9086 * gdb-events.c (XMALLOC): Ditto.
9087 * d10v-tdep.c (XMALLOC): Ditto.
9088 * cli-out.c (XMALLOC): Ditto.
9089
9090 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9091 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9092 * ui-file.c, ui-out.c: Ditto.
9093
7d0766f3
AC
90942002-03-18 Andrew Cagney <ac131313@redhat.com>
9095
9096 * command.h (struct cmd_list_element): Add field context.
9097 (set_cmd_context, get_cmd_context): Declare.
9098 * cli/cli-decode.h: Ditto.
9099 * cli/cli-decode.c (get_cmd_context): New function.
9100 (set_cmd_context): New function.
9101 (add_cmd): Initialize context.
9102 Part of fixing PR gdb/145 and PR gdb/146.
9103
5913bcb0
AC
91042002-03-17 Andrew Cagney <ac131313@redhat.com>
9105
1868c04e
AC
9106 * cli/cli-decode.c (cmd_type): New function.
9107 * command.h (cmd_type): Declare.
9108 * infrun.c (set_schedlock_func): Call function cmd_type.
9109 * kod.c (kod_set_os): Call cmd_type.
9110 * cris-tdep.c (cris_version_update): Use function cmd_type.
9111 (cris_mode_update, cris_abi_update): Ditto.
9112
5913bcb0
AC
9113 * command.h: (execute_cmd_post_hook): Declare.
9114 (execute_cmd_pre_hook): Declare.
9115 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9116 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9117 functions. Execute pre/post hook while ensuring that afterwords
9118 hook_in is cleared.
9119 * top.c (execute_command): Use execute_cmd_post_hook, and
9120 execute_cmd_pre_hook to execute pre/post commands.
9121 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9122 hook_stop_stub.
9123 (hook_stop_stub): Call execute_cmd_pre_hook.
9124
b51450c9
AC
91252002-03-17 Andrew Cagney <ac131313@redhat.com>
9126
9127 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9128 set'' and this leads to a core dump. Move xstrdup of
9129 operating_system to after check that it is not NULL.
9130
f66c9f11
AC
91312002-03-17 Andrew Cagney <ac131313@redhat.com>
9132
8e694ecf
AC
9133 * kod.c (kod_set_os): Remove unnecessary check that
9134 ``command->type'' is set_cmd.
9135
f66c9f11
AC
9136 * valprint.c (set_input_radix): Use input_radix.
9137 (set_output_radix): Use output_radix.
9138 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9139 isn't reverted.
9140
9d01611c
AC
91412002-03-16 Andrew Cagney <ac131313@redhat.com>
9142
9143 * value.h (struct value): Delete field ``substring_addr''. Change
9144 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9145 force_core_addr_align and force_pointer_aligh.
9146
9147 * value.h (struct value): Fix typo in above change.
9d01611c 9148
4156bb53
PS
91492002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9150
9151 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9152 to fix internal_error from ``maintenance print architecture''.
9153
0e5e3ea6
PS
91542002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9155
9156 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9157 for gcc versions after gcc-2.8.1.
9158
9b013045
PS
91592002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9160
9161 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9162 for method resolution. Restore adjustment of ``this'' pointer after
9163 calling value_struct_elt, which was accidentally removed during the
9164 HP merge.
9165
376c9600
AC
91662002-03-15 Andrew Cagney <ac131313@redhat.com>
9167
9168 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9169 value_of_register.
9170 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9171 get_saved_register.
9172 * value.h (value_of_register): Update.
9173
a4db0f07
RH
91742002-03-14 Richard Henderson <rth@redhat.com>
9175
9176 * configure.in: Detect declaration for canonicalize_file_name.
9177 * utils.c (canonicalize_file_name): Declare, if needed.
9178 (gdb_realpath): Prefer realpath if available and usable.
9179 * config.in, configure: Rebuild.
9180
96383835
RH
91812002-03-14 Richard Henderson <rth@redhat.com>
9182
9183 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9184 a constant array bound.
9185
9186 * MAINTAINERS: Add myself to write-after-approval.
9187
75245b24
MS
91882002-03-14 Michael Snyder <msnyder@redhat.com>
9189
9190 * symfile.c (syms_from_objfile): Return immediately if no syms.
9191 (symbol_file_add): Return immediately if no syms.
9192 (find_sym_fns): Return immediately if no syms.
9193
e641a1ca
ML
91942002-03-13 Michal Ludvig <mludvig@suse.cz>
9195
9196 * gdbserver/remote-util.c (remote_open): Print remote-side's
9197 IP address when remote debugging over the network.
7e336ba1 9198
df08bfec
DB
91992002-03-12 David O'Brien <obrien@FreeBSD.org>
9200
9201 * config/sparc/fbsd.mh: Fix copyright.
9202 * config/sparc/fbsd.mt: Likewise.
9203
9a57864f
RE
92042002-03-11 Richard Earnshaw <rearnsha@arm.com>
9205
9206 * MAINTAINERS: Fix typo in name of gdb warnings option.
9207 (x86-64): Fix formating so that this can be parsed by awk.
9208
dd7bf85e
DJ
92092002-03-10 Daniel Jacobowitz <drow@mvista.com>
9210
9211 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9212 * defs.h: Include "gdb/signals.h".
9213 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9214
33a0a2ac
ML
92152002-03-10 Michal Ludvig <mludvig@suse.cz>
9216
9217 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9218 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9219 from x86-64-tdep.h
9220
dd824b04
DJ
92212002-03-10 Daniel Jacobowitz <drow@mvista.com>
9222 Don Howard <dhoward@redhat.com>
9223
9224 * mips-tdep.c (ST0_FR): Define.
9225 (mips2_fp_compat): New function, temporarily disabled.
9226 (mips_read_fp_register_single): New function.
9227 (mips_read_fp_register_double): New function.
9228 (mips_print_register): Use them.
9229 (do_fp_register_row): Likewise.
9230
6a41ff59
AC
92312002-03-09 Andrew Cagney <ac131313@redhat.com>
9232
9233 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9234 approval''.
9235
4ea09c10
PS
92362002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9237
9238 * stabsread.c (read_member_functions): Fix is_stub test for
9239 static member functions, improve comment.
9240
6ccc741d
RE
92412002-03-07 Richard Earnshaw <rearnsha@arm.com>
9242
9243 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9244 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9245 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9246 commands that set boolean values.
9247 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9248 (arm_rdi_resume): Always initialize PC.
9249 (arm_rdi_open): Don't use rslt as a boolean.
9250 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9251 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9252 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9253 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9254
438013df
AO
92552002-03-06 Alexandre Oliva <aoliva@redhat.com>
9256
9257 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9258 * configure: Rebuilt.
9259
70ed8774
SC
92602002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9261
9262 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9263 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9264
5ba2abeb
AC
92652002-03-06 Andrew Cagney <ac131313@redhat.com>
9266
9267 * cli/cli-decode.c (set_cmd_completer): New function.
9268 * command.h (set_cmd_completer): Declare.
9269 * cli/cli-decode.h (set_cmd_completer): Ditto.
9270
9271 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9272 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9273 * win32-nat.c (_initialize_inftarg): Ditto.
9274 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9275 * proc-api.c (_initialize_proc_api): Ditto.
9276 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9277 * source.c (_initialize_source): Ditto.
9278 * exec.c (_initialize_exec): Ditto.
9279 * solib.c (_initialize_solib): Ditto.
9280 * top.c (init_main): Ditto.
9281 * tracepoint.c (_initialize_tracepoint): Ditto.
9282 * symfile.c (_initialize_symfile): Ditto.
9283 * printcmd.c (_initialize_printcmd): Ditto.
9284 * infcmd.c (_initialize_infcmd): Ditto.
9285 * corefile.c (_initialize_core): Ditto.
9286
f779ca99
AC
92872002-03-05 Andrew Cagney <ac131313@redhat.com>
9288
9289 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9290
01a3934b
AC
92912002-03-05 Andrew Cagney <ac131313@redhat.com>
9292
9293 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9294
37057839
AC
92952002-03-05 Andrew Cagney <ac131313@redhat.com>
9296
9297 * NEWS: Update headings, 5.2 has branched.
9298
c6ecbae5
DJ
92992002-03-04 Daniel Jacobowitz <drow@mvista.com>
9300
9301 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9302 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9303 (register_addr, REGISTER_RAW_SIZE): Likewise.
9304 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9305 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9306
e9f30c21
ML
93072002-03-03 Michal Ludvig <mludvig@suse.cz>
9308
9309 * MAINTAINERS (x86-64): Add myself.
9310 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9311 changed value_ptr -> struct value *
9312
54394ac3
DB
93132002-03-01 David O'Brien <obrien@FreeBSD.org>
9314
9315 * configure.host (sparc64-*-freebsd): Add.
9316 * configure.tgt: Likewise.
9317 * config/sparc/fbsd.mh: New file.
9318 * config/sparc/fbsd.mt: Likewise.
9319 * config/sparc/nm-fbsd.h: Likewise.
9320 * config/sparc/tm-fbsd.h: Likewise.
9321
bfe95955
DJ
93222002-03-01 Daniel Jacobowitz <drow@mvista.com>
9323
9324 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9325 regformats/reg-s390x.dat.
9326
f33c6cbf
AC
93272002-03-01 Andrew Cagney <ac131313@redhat.com>
9328
9329 * utils.c: Add FIXME explaining true/false problem.
9330
5ecaa7dd
AC
93312002-02-28 Andrew Cagney <ac131313@redhat.com>
9332
9333 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9334
2a251cc2
MC
93352002-02-28 Michael Chastain <mec@shout.net>
9336
9337 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9338
6a8031a3 93392002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9340
9341 * gdbserver/linux-s390-low.c: New file.
9342 * regformats/reg-s390.dat: New file.
9343 * regformats/reg-s390x.dat: New file.
9344 * gdbserver/configure.srv: Add S/390.
9345 * gdbserver/Makefile.in: Add S/390.
9346 * configure.tgt: Enable gdbserver for S/390.
9347
ac469903
EZ
93482002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9349
9350 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9351 first line of the doc string for "info dos", except at the end of
9352 the sentence, since the short help stops at the first period.
9353
985cb1a3
JM
93542002-02-28 Jason Merrill <jason@redhat.com>
9355
9356 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9357
c570663e
FF
93582002-02-27 Fred Fish <fnf@redhat.com>
9359
9360 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9361 comment (dumy -> dummy).
9362
43630227
PS
93632002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9364
9365 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9366
b84911e8
RB
93672002-02-27 Rodney Brown <rbrown64@csc.com.au>
9368
9369 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9370
58caa3dc
DJ
93712002-02-27 Daniel Jacobowitz <drow@mvista.com>
9372
9373 * gdbserver/acconfig.h: New file.
9374 * gdbserver/i387-fp.c: New file.
9375 * gdbserver/i387-fp.h: New file.
9376 * gdbserver/linux-x86-64.c: New file.
9377 * regformats/reg-x86-64.dat: New file.
9378 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9379 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9380 * gdbserver/configure.in: Add support for regsets.
9381 * gdbserver/config.in: Regenerate.
9382 * gdbserver/configure: Regenerate.
9383 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9384 * gdbserver/linux-low.h: New file.
9385 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9386 for regsets.
9387 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9388 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9389 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9390 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9391 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9392 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9393 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9394 "i387-fp.h". Add PTRACE_GETREGS and friends.
9395 * gdbserver/regcache.c (supply_register): New function.
9396 (supply_register_by_name): New function.
9397 (collect_register): New function.
9398 (collect_register_by_name): New function.
9399
93652174
DJ
94002002-02-27 Daniel Jacobowitz <drow@mvista.com>
9401
9402 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9403 (config.status): Add configure.srv dependency.
9404 (server_h): Add config.h dependency.
9405
a02e4a61
DJ
94062002-02-27 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9409 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9410 * gdbserver/configure.srv: Change i386-*-linux* to use
9411 reg-i386-linux.o.
9412
ce0eebec
AC
94132002-02-26 Andrew Cagney <ac131313@redhat.com>
9414
9415 * x86-64-tdep.c: Re-indent. Update copyright date.
9416
82dbc5f7
AC
94172002-02-26 Andrew Cagney <ac131313@redhat.com>
9418
9419 From Michal Ludvig <mludvig@suse.cz>:
9420 * x86-64-tdep.c (value.h): Delete.
9421 (gdb_assert.h): Include.
9422 (x86_64_register_convert_to_virtual,
9423 x86_64_register_convert_to_raw ): Add check which lets only
9424 floating-point values to be converted.
9425 (value_push): Delete.
9426 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9427 (i386_gdbarch_init): Number of register_bytes fixed.
9428
e4621584
AC
94292002-02-26 Andrew Cagney <ac131313@redhat.com>
9430
9431 * MAINTAINERS: Add x86-64 target.
9432
81a9a963
AC
94332002-02-26 Andrew Cagney <ac131313@redhat.com>
9434
9435 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9436 * osfsolib.c (solib_map_sections): Ditto.
9437 * irix5-nat.c (solib_map_sections): Ditto.
9438 * corelow.c (gdb_check_format): Ditto.
9439 * symfile.c (symfile_bfd_open): Ditto.
9440 * solib.c (solib_map_sections): Ditto.
9441 Fix PR gdb/354.
7e336ba1 9442
0f017ab9
AC
94432002-02-26 Andrew Cagney <ac131313@redhat.com>
9444
9445 * remote.c (_initialize_remote): By default, disable ``e'' and
9446 ``E'' step out-of-range packets.
9447
75738c29
AS
94482002-02-26 Andreas Schwab <schwab@suse.de>
9449
9450 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9451 m68k_linux_frame_saved_pc.
9452 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9453 in_sigtramp.
9454 (SIGCONTEXT_PC_OFFSET): Remove.
9455 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9456 m68k_linux_sigtramp_saved_pc): New functions.
9457 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9458 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9459 (UCONTEXT_PC_OFFSET): Define.
9460 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9461 non-RT and RT signal trampolines.
9462
7e8ed687
RE
94632002-02-26 Richard Earnshaw <rearnsha@arm.com>
9464
9465 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9466 (TARGET_NBPG, STACK_END_ADDR): Delete
9467 (VARIABLES_INSIDE_BLOCK): Delete.
9468
6972bc8b
AC
94692002-02-25 Andrew Cagney <ac131313@redhat.com>
9470
9471 * utils.c (perror_with_name): Make string parameter constant.
9472 (print_sys_errmsg): Ditto.
9473 (query): Ditto.
9474 * defs.h (perror_with_name): Update.
9475 (print_sys_errmsg): Update.
9476 (query): Update.
9477
aa32f823
DJ
94782002-02-25 Daniel Jacobowitz <drow@mvista.com>
9479
9480 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9481 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9482
19caaa45
PS
94832002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9484
9485 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9486 if it already matches the current architecture from the exec file.
9487 Include arch-utils.h for gdbarch_info_init prototype.
9488 * Makefile.in (rs6000-nat.o): Update dependencies.
9489
d951901f
EZ
94902002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9491
9492 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9493 list of exported variables.
9494
7ea81414
DJ
94952002-02-24 Daniel Jacobowitz <drow@mvista.com>
9496
9497 * gdbserver/configure.srv: New file.
9498 * gdbserver/configure.in: Use configure.srv instead
9499 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9500 from it.
9501 * gdbserver/configure: Regenerated.
9502 * gdbserver/terminal.h: New file.
9503 * gdbserver/Makefile.in: Update for configure changes. Remove
9504 more unneeded include paths.
9505
080fe24b
AC
95062002-02-24 Andrew Cagney <ac131313@redhat.com>
9507
9508 From wiz at danbala:
9509 * config/sparc/tm-sp64.h: Fix grammar and typos.
9510 Fix PR gdb/287.
9511
8605d56e
AC
95122002-02-24 Andrew Cagney <ac131313@redhat.com>
9513
9514 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9515 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9516 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9517 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9518 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9519 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9520 * s390-tdep.c: Ditto.
92362027
AC
9521 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9522 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9523 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9524 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9525 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9526 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9527 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9528 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9529 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9530 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9531 Fix PR gdb/378.
7e336ba1 9532
8ed32cc0
AC
95332002-02-23 Andrew Cagney <ac131313@redhat.com>
9534
a3007b6f
AC
9535 * lin-thread.c: Delete file.
9536 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9537 to gdb_proc_service.h.
9538 * configure: Re-generate.
9539
50a9e2f1
AC
9540 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9541 * serial.c (serial_open): Delete check for "ocd".
9542 Fix PR gdb/349.
9543
8b6e7932
AC
9544 * Makefile.in (linux-thread.o): Delete target.
9545 * linux-thread.c: Delete file.
9546
d155c46b
AC
9547 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9548 renamed SH files to be consistent.
9549
8ed32cc0
AC
9550 * symtab.c (sort_search_symbols): Use xfree.
9551
0e18d038
RE
95522002-02-23 Richard Earnshaw <rearnsha@arm.com>
9553
9554 * arm-linux-tdep.c (arm_linux_init_abi): Register
9555 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9556 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9557 definition with undef, since we don't want the sysvr4 definition.
9558 (SKIP_TRAMPOLINE_CODE): Likewise.
9559
27aac7ff
AC
95602002-02-23 Andrew Cagney <ac131313@redhat.com>
9561
9562 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9563
9564 * configure.in: (AC_CHECK_FUNCS) Added test for
9565 canonicalize_file_name Regenerated.
9566 * config.in, configure: Regenerated.
9567 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9568 defined use canonicalize_file_name.
7e336ba1 9569
65a6e0ee
MC
95702002-02-23 Michael Chastain <mec@shout.net>
9571
9572 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9573
47b95330
AC
95742002-02-23 Andrew Cagney <ac131313@redhat.com>
9575
9576 * README: Remove references to cygnus.com.
9577 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9578 dot com'' form. Remove references to cygnus.com and sourceware.
9579
696f451b
AC
95802002-02-23 Andrew Cagney <ac131313@redhat.com>
9581
9582 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9583 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9584 1003.1-2001 no longer allows "head -1".
9585 * gdb/Makefile.in (version.c): Likewise.
9586 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9587 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9588 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9589
bbaca940
AC
95902002-02-23 Andrew Cagney <ac131313@redhat.com>
9591
9592 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9593 * command.h (cmd_cfunc_eq): Declare.
9594 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9595
9596 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9597 ``struct cmd_list_element *''.
9598 * cli/cli-cmds.c (is_complete_command): Update. Use
9599 cmd_cfunc_eq.
9600 * top.c (execute_command): Pass the command to
9601 is_complete_command.
9602 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9603
b8b8b047
AC
96042002-02-23 Andrew Cagney <ac131313@redhat.com>
9605
9606 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9607 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9608 architecture defines.
9609 * s390-tdep.c (s390_gdbarch_init): Likewise.
9610
19d3fc80
RE
96112002-02-23 Richard Earnshaw <rearnsha@arm.com>
9612
9613 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9614 (arm_linux_push_arguments): Likewise.
9615 (arm_linux_init_abi): Register them. Also register linux-specific
9616 call_dummy_words.
9617 (find_minsym_and_objfile): Use strcmp, not STREQ.
9618 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9619 (arm_linux_call_dummy_words): Delete declaration.
9620 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9621 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9622 declarations.
9623 (LOWEST_PC): Delete.
9624
3ab13650
PS
96252002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9626
9627 * maint.c (print_section_info): Do not prepend `0x' to filepos
9628 output, it will be handled by local_hex_string_custom.
9629
19d3fc80 96302002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9631
9632 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9633 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9634 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9635
d85a5daf
JB
96362002-02-22 Jim Blandy <jimb@redhat.com>
9637
9638 Indicate that the bcache functions don't change the strings
9639 they're passed.
9640 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9641 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9642
eeb25b8a
PM
96432002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9644
9645 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9646
6badb179
CF
96472002-02-21 Christopher Faylor <cgf@redhat.com>
9648
9649 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9650 find the complete path to a loaded DLL.
9651
e8717518
FF
96522002-02-21 Fred Fish <fnf@redhat.com>
9653
9654 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9655 that marks the end of the range of a function, enter a line number
9656 entry that has a line number of zero and a PC offset that matches
9657 the end of the function. This starts a range of PC's for which no
9658 line number information is known.
9659 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9660 PC's for which no line number info is found (line number is zero)
9661 then we didn't find any valid line information.
9662 * symtab.h: Document use of zero line number entry.
9663
9abe5450
EZ
96642002-02-21 Elena Zannoni <ezannoni@redhat.com>
9665
9666 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9667 (have_ptrace_getvrregs): Define for run time checks.
9668 (gdb_vrregset_t): New type for Altivec register handling.
9669 (fetch_register, store_register): Fetch/store altivec register
9670 when needed.
9671 (fetch_altivec_register, store_altivec_register): New functions.
9672 (supply_vrregset, fill_vrregset): New functions.
9673 (fetch_altivec_registers, store_altivec_registers): New functions.
9674 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9675 registers as well.
9676
aaa38bb5
AJ
96772002-02-21 Jiri Smid <smid@suse.cz>
9678
9679 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9680
b34db576
RE
96812002-02-21 Richard Earnshaw <rearnsha@arm.com>
9682
9683 * Makefile.in (armnbsd-nat.o): Update dependencies.
9684 * armnbsd-nat.c (supply_gregset): New function. Common code to
9685 supply the integer register set.
9686 (supply_fparegset): New function. Similar for FPA registers.
9687 (fetch_regs, fetch_fp_regs): Use them.
9688 (fetch_core_registers): Likewise.
9689 (fetch_elfcore_registers): New function.
9690 (arm_netbsd_elfcore_fns): New core-file type specification.
9691 (_initialize_arm_netbsd_nat): Register it.
9692
3e56fc4b
RE
96932002-02-21 Richard Earnshaw <rearnsha@arm.com>
9694
9695 * armnbsd-nat.c: Include gdbcore.h.
9696 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9697 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9698 'void' to declaration, to shut up ARI.
9699 (fetch_core_registers): Make static. Rewrite using supply_register.
9700 (arm_netbsd_core_fns): New core-file type specification.
9701 (_initialize_arm_netbsd_nat): New function.
9702
097f6b0b
CF
97032002-02-21 Christopher Faylor <cgf@redhat.com>
9704
9705 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9706 value.
9707
c914e0cc
CF
97082002-02-20 Christopher Faylor <cgf@redhat.com>
9709
9710 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9711 fails.
9712
385fa495
DJ
97132002-02-20 Daniel Jacobowitz <drow@mvista.com>
9714
9715 * jv-exp.y (parse_number): Change type of implicit longs
9716 to builtin_type_uint64.
9717
e5f1222d
DJ
97182002-02-20 Daniel Jacobowitz <drow@mvista.com>
9719
9720 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9721 to be an integer instead of a `union wait'.
9722
75c9abc6
DJ
97232002-02-20 Daniel Jacobowitz <drow@mvista.com>
9724
9725 * mips-linux-nat.c: Call the operating system GNU/Linux.
9726 * mips-linux-tdep.c: Likewise.
9727 * mips-tdep.c: Likewise.
9728
551792a5
DJ
97292002-02-20 Daniel Jacobowitz <drow@mvista.com>
9730
9731 Fix PR gdb/265.
9732 * jv-exp.y (parse_number): Handle 64-bit integers.
9733
ee6e2b82
DJ
97342002-02-20 Daniel Jacobowitz <drow@mvista.com>
9735
9736 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9737 AC_STDC_HEADERS to AC_HEADER_STDC.
9738 * gdbserver/configure: Regenerated.
9739
a48442a0
RE
97402002-02-20 Richard Earnshaw <rearnsha@arm.com>
9741
9742 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9743 is defined.
9744 * sparc-tdep.c (get_longjmp_target): Likewise.
9745
fe419ffc
RE
97462002-02-20 Richard Earnshaw <rearnsha@arm.com>
9747
9748 * News: Add news about ARM and Multi-arch. Mention the new target
9749 arm*-*-netbsd*.
9750
5832ed7e
JB
97512002-02-19 Jim Blandy <jimb@redhat.com>
9752
9753 * stabsread.c (error_type_complaint): Improve error message.
9754
84563040
DJ
97552002-02-19 Daniel Jacobowitz <drow@mvista.com>
9756
9757 * gdbserver/README: Update documentation.
9758 * gdbserver/configure.in: Update configury to match documentation.
9759 * gdbserver/Makefile.in: Likewise.
9760 * gdbserver/configure: Regenerated.
9761 * gdbserver/aclocal.m4: New file, generated by aclocal.
9762 * gdbserver/config.in: New file, generated by autoheader.
9763
375fd65b
RE
97642002-02-19 Richard Earnshaw <rearnsha@arm.com>
9765
9766 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9767 armnbsd-nat.c.
9768
08216dd7
RE
97692002-02-19 Richard Earnshaw <rearnsha@arm.com>
9770
9771 * arm-tdep.h (enum arm_float_model): New enum.
9772 (struct gdbarch_tdep): Add fp_model.
9773 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9774 up floating-point conversions until we know the floating-point model
9775 in use by the inferior. Don't complain about being unable to
9776 determine the ABI of the inferior when we don't have one.
9777 (arm_extract_return_value): Support different floating-point models.
9778 (arm_store_return_value): Likewise.
aaa38bb5 9779 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9780 ARM_FLOAT_SOFT.
9781 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9782
65d6d66a
PS
97832002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9784
9785 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9786 of ``current_gdbarch''.
9787
47221191
RE
97882002-02-19 Richard Earnshaw <rearnsha@arm.com>
9789
9790 * armnbsd-nat.c : ANSIfy all function declarations.
9791 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9792 (fetch_inferior_registers): Re-implement in terms of above.
9793 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9794 (store_inferior_registers): Re-implement in terms of above.
9795
fdf39c9a
RE
97962002-02-19 Richard Earnshaw <rearnsha@arm.com>
9797
aaa38bb5 9798 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9799 kernel.
9800 * arm-linux-tdep.c: Likewise.
9801 * config/arm/tm-linux.h: Likewise.
9802
93247f88
RE
98032002-02-19 Richard Earnshaw <rearnsha@arm.com>
9804
9805 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9806 * config/arm/nbsd.mt (TM_FILE): Delete.
9807 * config/arm/tm-nbsd.h: Delete.
9808
d7b486e7
RE
98092002-02-19 Richard Earnshaw <rearnsha@arm.com>
9810
9811 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9812 Initialize CALL_DUMMY_LENGTH.
9813
41d39a95
RE
98142002-02-19 Richard Earnshaw <rearnsha@arm.com>
9815
9816 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9817 function.
9818 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9819 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9820 defines one thing and that is incorrect for this port.
9821 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9822
e1195560
PM
98232002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9824
9825 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9826
c1748f97
PM
98272002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9828
9829 * win32-nat.c (display_selector): New function. Displays information
9830 about the information returned by GetThreadSelectorEntry API function.
9831 (display_selectors): New function. Displays the infomation of
9832 the selector given as argument, or of CS, DS ans FS selectors
9833 if no argument is given.
9834 ( _initialize_inftarg): Add "w32" as info prefix command.
9835 Add "info w32 selector" as command calling display_selectors.
9836
e41e6bbf
PM
98372002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9838
9839 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9840 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9841 if not defined.
9842
0d3a9f48
RE
98432002-02-18 Richard Earnshaw <rearnsha@arm.com>
9844
9845 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9846
3fb4b924
RE
98472002-02-18 Richard Earnshaw <rearnsha@arm.com>
9848
9849 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9850 (arm_fix_call_dummy): Call it.
9851 (arm_call_dummy_breakpoint_offset): Delete.
9852 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9853 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9854
7f55af32
AC
98552002-02-18 Andrew Cagney <ac131313@redhat.com>
9856
9857 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9858 Default to func_frame_chain_valid.
9859 * gdbarch.h, gdbarch.c: Re-generate.
9860 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9861
05f13b9c
EZ
98622002-02-18 Elena Zannoni <ezannoni@redhat.com>
9863
9864 * ppc-linux-nat.c: Update copyright.
9865 (fetch_register, store_register): Add tid parameter, don't compute
9866 tid here.
9867 (fetch_ppc_registers, store_ppc_registers): Add tid
9868 parameter. Pass it along to callees.
9869 (fetch_inferior_registers, store_inferior_registers): Compute tid
9870 here, and pass it to calleed functions.
9871 (fill_gregset, supply_fpregset): Clean up formatting.
9872
d7afb4c9
RE
98732002-02-18 Richard Earnshaw <rearnsha@arm.com>
9874
9875 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9876 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9877
9df628e0
RE
98782002-02-18 Richard Earnshaw <rearnsha@arm.com>
9879
9880 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9881 * gdbarch.c gdbarch.h: Regenerate.
9882 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9883 function.
9884 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9885 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9886 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9887
9888 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9889 * arm-tdep.c (arm_get_longjmp_target): New function.
9890 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9891 this to a positive value register arm_get_longjmp_target as the
9892 longjmp handler.
9893 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9894 (arm_linux_init_abi): Set up longjmp description in tdep.
9895 * armnbsd-nat.c (get_longjmp_target): Delete.
9896 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9897 description in tdep.
9898 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9899 (get_longjmp_target): Delete declaration.
9900 (GET_LONGJMP_TARGET): Delete.
9901 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9902 (GET_LONGJMP_TARGET): Delete.
9903
57bc8964
KB
99042002-02-17 Kevin Buettner <kevinb@redhat.com>
9905
9906 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9907 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9908 of ``current_gdbarch''.
9909
83d31a92
TT
99102002-02-17 Tom Tromey <tromey@redhat.com>
9911
9912 * cli/cli-cmds.c (compare_strings): New function.
9913 (complete_command): Only print each unique item once.
9914 * completer.h (complete_line): Declare.
9915 * completer.c (complete_line): New function.
9916 (line_completion_function): Use it.
9917
17ef5d92
AC
99182002-02-16 Andrew Cagney <ac131313@redhat.com>
9919
9920 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9921 * gdbarch.h, gdbarch.c: Re-generate.
9922
491b8946
DJ
99232002-02-16 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9926
99272002-02-16 Daniel Jacobowitz <drow@mvista.com>
9928
9929 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9930 * valops.c (value_arg_coerce): Don't take the address of a reference
9931 to convert an argument to a reference.
9932
dfe7f3ac
CF
99332002-02-15 Christopher Faylor <cgf@redhat.com>
9934
9935 * win32-nat.c (get_image_name): New function.
9936 (handle_load_dll): Use get_image_name function.
9937 (get_child_debug_event): Avoid registering debug events until possibly
9938 execed process is started.
9939 (child_create_inferior): Allow invocation via shell so that command
9940 line redirection, etc. works ok.
9941 (_initialize_inftarg): Add new command: "set shell" to control whether
9942 a shell is used to start a process.
9943
1d33e73a
DJ
99442002-02-15 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9947 instead of find_register_by_number.
9948 (cannot_store_register): Likewise.
9949
48cd0caa
PM
99502002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9951
aaa38bb5 9952 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9953 fprintf_unfiltered (gdb_stderr, ...).
9954
8656e7d8
DJ
99552002-02-15 Daniel Jacobowitz <drow@mvista.com>
9956
9957 * gdbserver/gdbserver.1: Document --attach.
9958
66e810cd
RE
99592002-02-15 Richard Earnshaw <rearnsha@arm.com>
9960
9961 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9962 descriptions.
9963 * arm-tdep.c (arm_default_arm_le_breakpoint)
9964 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9965 (arm_default_thumb_be_breakpoint): New. Initialize them from
9966 traditional breakpoint defines.
9967 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9968 (arm_gdbarch_init): Initialize new breakpoint variables.
9969 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9970 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9971 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9972 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9973 code out to ...
9974 (arm_netbsd_init_abi_common): ... here; new function.
9975 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9976 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9977 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9978 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9979
97e03143
RE
99802002-02-15 Richard Earnshaw <rearnsha@arm.com>
9981
9982 * arm-tdep.h (enum arm_abi): New enum.
9983 (struct gdbarch_tdep): New structure.
9984 (LOWEST_PC): Provide a default.
9985 (arm_gdbarch_register_os_abi): Declare new function.
9986 * arm-tdep.c (arm_abi_names): New array.
9987 (process_note_abi_tag_sections): New function.
9988 (get_elfosabi): New function.
9989 (arm_gdbarch_register_os_abi): New function.
9990 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9991 support for that ABI has been built in, then call the appropriate
9992 configuration routine. Use gdbarch_num_regs() to get the number
9993 of registers.
9994 (arm_dump_tdep): New function.
9995 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9996 place-holder functions.
9997 (_initialize_arm_tdep): Register them.
9998 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9999
10000 * armnbsd-tdep.c: New file.
10001 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10002 * config/arm/nbsd.mt (TDEPFILES): Add it.
10003 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10004
10005 * armnbsd-nat.c: Include regcache.h.
10006 * Makefile.in (armnbsd-nat.o): Update dependency list.
10007
10008 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10009
ad68be46
DJ
100102002-02-14 Daniel Jacobowitz <drow@mvista.com>
10011
10012 * gdbserver/Makefile.in: Fix typos in target rules.
10013
003d6d1d
DJ
100142002-02-14 Daniel Jacobowitz <drow@mvista.com>
10015
aaa38bb5 10016 Fix part of PR gdb/267.
003d6d1d
DJ
10017 * linespec.c (find_methods): Handle constructors specially for now.
10018
6b230f1b
CV
100192002-02-14 Corinna Vinschen <vinschen@redhat.com>
10020
10021 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10022 handling.
10023 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10024 standard_coerce_float_to_double().
10025
1ea98d12
CF
100262002-02-14 Christopher Faylor <cgf@redhat.com>
10027
10028 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10029 GDBINIT_FILENAME.
10030
dd47e6fd
EZ
100312002-02-14 Elena Zannoni <ezannoni@redhat.com>
10032
10033 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10034 find_variant_by_name, because it confuses the multiarch
10035 framework. Return NULL if there isn't an architecture with the
10036 user supplied name, instead of forcing a different one without
10037 recording the change with the multiarch machinery.
10038 (find_variant_by_name): Delete.
10039
d7e39b9e
PS
100402002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10041
10042 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10043 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10044
76e42a4f
MH
100452002-02-13 Martin M. Hunt <hunt@redhat.com>
10046
aaa38bb5 10047 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10048 print_frame_info_listing_hook, set current_source_symtab.
10049
0a30fbc4
DJ
100502002-02-14 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10053 and remove unused $(INCLUDE_DIR).
10054 Add regcache.c to OBS.
10055 Add generated register protocol files to clean target.
10056 Update dependencies for new objects, obsolete old target code.
10057
10058 * gdbserver/linux-low.c: Remove all platform-specific code to
10059 new files. Remove various dead code. Update to use regcache
10060 functionality.
10061 * gdbserver/remote-utils.c (fromhex): Add return statement
10062 to quiet warning.
10063 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10064 constant.
10065 (input_interrupt): Add integer parameter to match prototype
10066 of a signal handler.
10067 (outreg): Use register_data ().
10068 (prepare_resume_reply): Use gdbserver_expedite_regs.
10069 * gdbserver/server.c (main): Dynamically allocate own_buf because
10070 PBUFSIZ is no longer constant. Use registers_to_string () and
10071 registers_from_string ().
10072 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10073 for error (), fatal (), and warning (). Update definition of
10074 PBUFSIZ to use regcache functionality. Add include guard.
10075 * gdbserver/utils.c (fatal): Add missing ``const''.
10076 (warning): New function.
10077
10078 * regformats/regdat.sh: Include "regcache.h" in generated files.
10079 Provide init_registers () function.
10080 * regformats/regdef.h: Add prototype for set_register_cache ().
10081 Add include guard.
10082
10083 * gdbserver/linux-arm-low.c: New file.
10084 * gdbserver/linux-i386-low.c: New file.
10085 * gdbserver/linux-ia64-low.c: New file.
10086 * gdbserver/linux-m68k-low.c: New file.
10087 * gdbserver/linux-mips-low.c: New file.
10088 * gdbserver/linux-ppc-low.c: New file.
10089 * gdbserver/linux-sh-low.c: New file.
10090
10091 * gdbserver/regcache.c: New file.
10092 * gdbserver/regcache.h: New file.
10093
10094 * gdbserver/low-linux.c: Removed obsolete file.
10095
4cc841d0
DJ
100962002-02-14 Daniel Jacobowitz <drow@mvista.com>
10097
10098 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10099 * config/i386/linux.mt: Likewise.
10100 * config/ia64/linux.mt: Likewise.
10101 * config/m68k/linux.mh: Likewise.
10102 * config/powerpc/linux.mh: Likewise.
10103 * config/mips/linux.mt: Likewise.
10104
10105 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10106
10107 * config/i386/i386lynx.mh: Mark gdbserver variables
10108 as (currently) obsolete for this target.
10109 * config/i386/nbsd.mt: Likewise.
10110 * config/i386/nbsdelf.mt: Likewise.
10111 * config/m32r/m32r.mt: Likewise.
10112 * config/m68k/m68klynx.mh: Likewise.
10113 * config/m68k/nbsd.mt: Likewise.
10114 * config/m68k/sun3os4.mh: Likewise.
10115 * config/mips/vr5000.mt: Likewise.
10116 * config/ns32k/nbsd.mt: Likewise.
10117 * config/pa/hppabsd.mh: Likewise.
10118 * config/pa/hppaosf.mh: Likewise.
10119 * config/powerpc/nbsd.mt: Likewise.
10120 * config/rs6000/rs6000lynx.mh: Likewise.
10121 * config/s390/s390.mt: Likewise.
10122 * config/s390/s390x.mt: Likewise.
10123 * config/sparc/sparclynx.mh: Likewise.
10124 * config/sparc/sun4os4.mh: Likewise.
10125 * config/i386/x86-64linux.mt: Likewise.
10126 * config/sparc/linux.mh: Likewise.
10127
a85f51e7
DJ
101282002-02-14 Daniel Jacobowitz <drow@mvista.com>
10129
10130 * configure.tgt: Configure gdbserver only for known working
10131 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10132 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10133 SUBDIRS if it is configured. Update comment for ${nativefile}.
10134 * configure: Regenerated.
10135
65554fef
MS
101362002-02-13 Michael Snyder <msnyder@redhat.com>
10137
670a52db
MS
10138 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10139
6dbdc4a3
MS
10140 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10141 (default_gcore_mach): Just return 0, work around a problem in bfd.
10142 (default_gcore_target): OK to return NULL if exec_bfd is null.
10143 (make_mem_sec): Use a cast, avoid a warning.
10144
10145 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10146 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10147 sizeof (host pointer) != sizeof (target pointer)).
10148 (procfs_make_note_section): Avoid overflow in psargs string.
10149
aaa38bb5 10150 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10151 implementation return an error.
10152
101532002-02-13 Rodney Brown <rbrown64@csc.com.au>
10154
10155 * procfs.c (procfs_make_note_section): Provide a default definition
10156 (for alpha-dec-osf4.0f). Fix typos.
10157
1e4d76e7
EZ
101582002-02-13 Elena Zannoni <ezannoni@redhat.com>
10159
10160 * linux-proc.c: Add include of regcache.h.
10161 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10162
b6d1a1d5
AC
101632002-02-13 Andrew Cagney <ac131313@redhat.com>
10164
10165 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10166 * memattr.c (create_mem_region): Disallow useless empty region.
10167 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10168 non-overlapping.
b6d1a1d5 10169
6c6ea35e
MC
101702002-02-13 Michael Chastain <mec@shout.net>
10171
10172 * defs.h: Kill CONST_PTR.
10173 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10174 * c-lang.c (c_builtin_types): Likewise.
10175 * ch-lang.c (ch_builtin_types): Likewise.
10176 * f-lang.c (f_builtin_types): Likewise.
10177 * language.c (unknown_builtin_types): Likewise.
10178 * m2-lang.c (m2_builtin_types): Likewise.
10179 * p-lang.c (pascal_builtin_types): Likewise.
10180 * scm-lang.c (c_builtin_types): Likewise.
10181
3e0b0f48
KS
101822002-02-13 Keith Seitz <keiths@redhat.com>
10183
10184 * arm-tdep.h (arm_get_next_pc): Add declaration.
10185
67255d04
RE
101862002-02-13 Richard Earnshaw <rearnsha@arm.com>
10187
10188 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10189 with other related struct-returning functions.
10190 (arm_extract_struct_value_address): New function.
10191 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10192 initialize float_format, double_format and long_double_format as
10193 appropriate to the endianness of the target.
10194 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10195 (arm_use_struct_convention): Delete declaration.
10196 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10197
079777f6
KS
101982002-02-13 Keith Seitz <keiths@redhat.com>
10199
10200 * defs.h (core_addr_to_string_nz): New function.
10201
34588f23
MK
102022002-02-13 Mark Kettenis <kettenis@gnu.org>
10203
10204 Apply missing bits of 2002-01-15 patch.
10205 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10206 (fill_fpregset): Use i387_fill_fsave.
10207
49b563f9
KS
102082002-02-12 Keith Seitz <keiths@redhat.com>
10209
49b563f9
KS
10210 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10211 (core_addr_to_string_nz): New function.
10212
aeb98c60
RE
102132002-02-11 Richard Earnshaw <rearnsha@arm.com>
10214
10215 * arm-linux-nat.c: Really include arm-tdep.h.
10216 * config/arm/tm-linux.h (struct type, struct value): Declare.
10217
65554fef
MS
102182002-02-11 Michael Snyder <msnyder@redhat.com>
10219
10220 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10221 (gcore section): Ifdef for Solaris and Unixware only.
10222 (procfs_do_thread_registers): Unixware needs one lwpstatus
10223 per thread (not one prstatus or pstatus).
10224 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10225 not over all gdb threads. For unixware, call elfcore_write_pstatus
10226 once before iterating over threads.
10227
34e8f22d
RE
102282002-02-11 Richard Earnshaw <rearnsha@arm.com>
10229
10230 * arm-tdep.h: New file.
10231 * arm-tdep.c: Include arm-tdep.h.
10232 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10233 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10234 (arm_print_float_info, arm_register_type, convert_to_extended)
10235 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10236 (arm_extract_return_value, arm_register_name): Make static.
10237 (arm_software_single_step): Similarly. Fix types in declaration.
10238 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10239 (arm_store_return_value, arm_store_struct_return): New functions.
10240 (arm_gdbarch_init): Register the above functions. Also register
10241 call_dummy_start_offset, sizeof_call_dummy_words,
10242 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10243 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10244 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10245 prologue_cache.saved_regs here, rather than ...
10246 (_initialize_arm_tdep): ... here.
10247 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10248 declarations.
10249 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10250 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10251 (arm_print_float_info, arm_register_type, convert_to_extended)
10252 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10253 (arm_extract_return_value, arm_register_name): Delete declarations.
10254 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10255 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10256 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10257 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10258 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10259 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10260 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10261 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10262 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10263 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10264 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10265 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10266 interface.
10267 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10268 * remote-rdi.c remote-rdp.c: Likewise.
10269 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10270 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10271 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10272 definition.
10273
10274 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10275 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10276 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10277 from non-ARM_ prefixed definitions.
10278 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10279 all uses of above.
10280 * remote-rdi.c remote-rdp.c: Likewise.
10281 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10282
148754e5
RE
102832002-02-11 Richard Earnshaw <rearnsha@arm.com>
10284
10285 * arm-tdep.c (arm_frameless_function_invocation)
10286 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10287 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10288 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10289 (arm_pop_frame, arm_get_next_pc): Make static.
10290 (arm_gdbarch_init): Register above in gdbarch structure.
10291 (arm_read_fp): Renamed from arm_target_read_fp.
10292 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10293 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10294 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10295 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10296 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10297 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10298 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10299 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10300 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10301 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10302 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10303
434d2d4f
DJ
103042002-02-10 Daniel Jacobowitz <drow@mvista.com>
10305
10306 * symtab.c (compare_search_syms): New function.
10307 (sort_search_symbols): New function.
10308 (search_symbols): Sort symbols after searching rather than
10309 before.
10310
55241689
AC
103112002-02-10 Andrew Cagney <ac131313@redhat.com>
10312
10313 * NEWS: Linux -> GNU/Linux.
10314
028c194b
AC
103152002-02-10 Andrew Cagney <ac131313@redhat.com>
10316
10317 * gdbarch.sh: For for level one methods, disallow a definition
10318 when partially multi-arched. Add comments explaining rationale.
10319 * gdbarch.h: Re-generate.
10320
6acf50cd
AC
103212002-02-10 Andrew Cagney <ac131313@redhat.com>
10322
10323 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10324 multi-arch partial.
aaa38bb5 10325
50248794
AC
103262002-02-10 Andrew Cagney <ac131313@redhat.com>
10327
10328 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10329 field. Use diff -u.
10330 * gdbarch.c: Re-generate.
10331
c30e0066
AC
103322002-02-10 Andrew Cagney <ac131313@redhat.com>
10333
9b56c5f3 10334 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10335 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10336 partial.
10337
6e6d6484
AC
103382002-02-10 Andrew Cagney <ac131313@redhat.com>
10339
10340 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10341 multi-arch partial.
10342 (PUSH_ARGUMENTS): Switch to using predefault.
10343 * gdbarch.c: Regenerate.
10344
c203844d
AC
103452002-02-10 Andrew Cagney <ac131313@redhat.com>
10346
10347 * valops.c (PUSH_ARGUMENTS): Delete definition.
10348 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10349 partial. Default to default_push_arguments.
10350 * gdbarch.h, gdbarch.c: Regenerate.
10351
b5a2688f
AC
103522002-02-09 Andrew Cagney <ac131313@redhat.com>
10353
10354 * defs.h (throw_exception): Rename return_to_top_level. Update
10355 comments.
10356 * utils.c (error_stream, internal_verror, quit): Ditto.
10357 * top.c (throw_exception, catcher): Ditto.
10358 * sparclet-rom.c (sparclet_load): Ditto.
10359 * remote.c (interrupt_query, minitelnet): Ditto.
10360 * remote-sds.c (interrupt_query): Ditto.
10361 * remote-mips.c (mips_error, mips_kill): Ditto.
10362 * ocd.c (interrupt_query): Ditto.
10363 * monitor.c (monitor_interrupt_query): Ditto.
10364 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10365 * target.h: Update comment.
aaa38bb5 10366
b5a2688f 10367 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10368
2fa5c1e0
AC
103692002-02-09 Andrew Cagney <ac131313@redhat.com>
10370
10371 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10372 default_double_format.
10373 * gdbarch.h, gdbarch.c: Re-generate.
10374 * findvar.c (floatformat_unknown): Delete variable definition.
10375 * doublest.h (floatformat_unknown): Delete variable declaration.
10376
da966255
JB
103772002-02-09 Jim Blandy <jimb@redhat.com>
10378
10379 * stabsread.c (read_type): Add code to parse Sun's syntax for
10380 prototyped function types.
10381
123a4891
AC
103822002-02-09 Andrew Cagney <ac131313@redhat.com>
10383
10384 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10385 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10386
fb39c8f3
PS
103872002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10388
10389 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10390 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10391 now _initialize_xcoffsolib gets called again and overrides the
10392 commands from solib.c in a native configuration.
10393
0b87a11d
MK
103942002-02-09 Mark Kettenis <kettenis@gnu.org>
10395
10396 * doublest.c (store_typed_floating): Don't try to return a value.
10397 Fixes PR gdb/290.
10398
bdc2fc72
JB
103992002-02-08 Jim Blandy <jimb@redhat.com>
10400
10401 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10402 is prototyped and has no arguments, print its argument list as
10403 `(void)'.
10404
da69bbcf
CD
104052002-02-08 Chris Demetriou <cgd@broadcom.com>
10406
10407 * MAINTAINERS (write-after-approval): Add myself.
10408 (paper-trail): I've escaped!
aaa38bb5 10409
b69571f5
CF
104102002-02-08 Christopher Faylor <cgf@redhat.com>
10411
10412 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10413 changes.
10414 (_initialize_check_for_gdb_ini): Ditto.
10415
f6871398
MH
104162002-02-08 Martin M. Hunt <hunt@redhat.com>
10417
10418 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10419 xaprintf -> xasprintf.
10420
4e52d31c
PM
104212002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10422
10423 * win32-nat.c: Remove use of printf and sprintf functions.
10424
39bbf761
RE
104252002-02-08 Richard Earnshaw <rearnsha@arm.com>
10426
10427 * arm-tdep.c (arm_frame_chain_valid): Make static.
10428 (arm_push_arguments): Likewise.
10429 (arm_gdbarch_init): New function.
10430 (_initialize_arm_tdep): Call it.
10431 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10432 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10433 (FRAME_CHAIN_VALID): Delete.
10434 (arm_frame_chain_valid): Delete declaration.
10435 (PUSH_ARGUMENTS): Delete.
10436 (arm_push_arguments): Delete declaration.
10437 (CALL_DUMMY_P): Delete.
10438
9c9532c9
CV
104392002-02-08 Andrew Cagney <ac131313@redhat.com>
10440 Corinna Vinschen <vinschen@redhat.com>
10441
10442 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10443 on builtin float types.
10444
4e8f7a8b
DJ
104452002-02-08 Daniel Jacobowitz <drow@mvista.com>
10446
10447 * utils.c: Include <curses.h> before "bfd.h".
10448 * tui/tui-hooks.c: Likewise.
10449 * tui/tui.c: Likewise.
10450 * tui/tuiCommand.c: Likewise.
10451 * tui/tuiData.c: Likewise.
10452 * tui/tuiDataWin.c: Likewise.
10453 * tui/tuiDisassem.c: Likewise.
10454 * tui/tuiGeneralWin.c: Likewise.
10455 * tui/tuiIO.c: Likewise.
10456 * tui/tuiLayout.c: Likewise.
10457 * tui/tuiRegs.c: Likewise.
10458 * tui/tuiSource.c: Likewise.
10459 * tui/tuiSourceWin.c: Likewise.
10460 * tui/tuiStack.c: Likewise.
10461 * tui/tuiWin.c: Likewise.
10462
cd4bffcf
EZ
104632002-02-07 Elena Zannoni <ezannoni@redhat.com>
10464
10465 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10466 to include space for pseudoregs as well. Update loops accordingly.
10467 (sh_fp_frame_init_saved_regs): Ditto.
10468 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10469
26806ce2
AC
104702002-02-07 Andrew Cagney <ac131313@redhat.com>
10471
10472 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10473 Add Richard Earnshaw to Arm maintainers.
10474
97fdab62
AC
104752002-02-07 Andrew Cagney <ac131313@redhat.com>
10476
a6b98203
AC
10477 * defs.h (warning_begin): Delete declaration.
10478
97fdab62
AC
10479 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10480 Delete macro.
10481
78b29b40
MS
104822002-02-07 Michael Snyder <msnyder@redhat.com>
10483
aaa38bb5 10484 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10485 Logic bug, remove misplaced else.
10486
d8849953
KD
104872002-02-07 Klee Dienes <klee@apple.com>
10488
10489 * fork-inferior.c (fork_inferior): Add '!' to the list of
10490 characters that need to be quoted when building a string for the
10491 shell. Quote '!' specifically with a backslash, since CSH chokes
10492 when trying to evaluate "str!str".
aaa38bb5 10493
095778a0
NC
104942002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10495
10496 * rdi-share/host.h: Only provide a typedef for bool if it is not
10497 defined.
10498
1900040c
MS
104992002-02-04 Michael Snyder <msnyder@redhat.com>
10500
10501 * breakpoint.h (enum bptype): Add new overlay event bp type.
10502 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10503
1900040c
MS
10504 * breakpoint.c (create_internal_breakpoint): New function.
10505 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10506 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10507 (create_thread_event_breakpoint): Ditto.
10508 (create_solib_event_breakpoint): Ditto.
10509 (create_overlay_event_breakpoint): New function.
10510 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10511 (update_breakpoints_after_exec): Delete and re-initialize
10512 overlay event breakpoints after an exec. Add FIXME comment
10513 about longjmp breakpoint.
10514 (print_it_typical): Ignore overlay event breakpoints.
10515 (print_one_breakpoint): Ditto.
10516 (mention): Ditto.
10517 (bpstat_what): Do not stop for overlay event breakpoints.
10518 (delete_breakpoint): Don't delete overlay event breakpoints.
10519 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10520 (breakpoint_re_set): Re-create overlay event breakpoint.
10521
10522 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10523 (overlay_manual_command): Disable overlay breakpoints.
10524 (overlay_off_command): Disable overlay breakpoints.
10525
082fc60d
RE
105262002-02-06 Richard Earnshaw <rearnsha@arm.com>
10527
10528 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10529 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10530 to here from config/tm-arm.h.
10531 (coff_sym_is_thumb): Make static.
10532 (arm_elf_make_msymbol_special): New function.
10533 (arm_coff_make_msymbol_special): New function.
10534 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10535 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10536 (coff_sym_is_thumb): Delete declaration.
10537 (arm_elf_make_msymbol_special): Declare.
10538 (arm_coff_make_msymbol_special): Declare.
10539 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10540 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10541
039c5766
RE
105422002-02-06 Richard Earnshaw <rearnsha@arm.com>
10543
10544 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10545
105462002-02-06 Richard Earnshaw <rearnsha@arm.com>
10547
10548 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10549 * gdbarch.c gdbarch.h: Regenerate.
10550 * arch-utils.c (default_print_float_info): New function.
10551 * arch-utils.h (default_print_float_info): Prototype it.
10552 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10553 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10554 (PRINT_FLOAT_INFO): Document it.
10555
10556 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10557 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10558 (PRINT_FLOAT_INFO): Define.
10559
58fa08f0
PM
105602002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10561
aaa38bb5 10562 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10563 Add typecast to sprintf argument to suppress a warning.
10564
7393af7c
PM
105652002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10566
58fa08f0 10567 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10568 to allow easier handling of pass state.
10569 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10570 that gives exception name and address.
10571 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10572 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10573 exceptions added.
aaa38bb5
AJ
10574 (child_continue): Correctly report continue_status.
10575 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10576 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10577 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10578 the exception should be passed to debuggee or not.
10579
6af4589c
MS
105802002-02-05 Michael Snyder <msnyder@redhat.com>
10581
10582 * regcache.c (fetch_register): Call target_fetch_register
10583 only if we don't call FETCH_PSEUDO_REGISTER.
10584 (store_register): Call target_store_register only if we
10585 don't call STORE_PSEUDO_REGISTER.
10586
a2cf933a
EZ
105872002-02-05 Elena Zannoni <ezannoni@redhat.com>
10588
10589 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10590 ELF_MAKE_MSYMBOL_SPECIAL.
10591 * gdbarch.c, gdbarch.h: Regenerate.
10592 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10593 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10594 * elfread.c (elf_symtab_read): Compile use of
10595 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10596 multiarched.
10597 * coffread.c (coff_symtab_read): Ditto, for
10598 COFF_MAKE_MSYMBOL_SPECIAL.
10599
6bb7be43
JB
106002002-02-05 Jim Blandy <jimb@redhat.com>
10601
10602 * solib-svr4.c (svr4_truncate_ptr): New function.
10603 (svr4_relocate_section_addresses): Do the address arithmetic with
10604 the appropriate truncation for target addresses, even when
10605 CORE_ADDR is larger than a target address.
10606
e18651ec
DJ
106072002-02-05 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10610 to (int *).
10611
6b2725be
DJ
106122002-02-05 Daniel Jacobowitz <drow@mvista.com>
10613
10614 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10615 code.
10616
fca9e603
DJ
106172002-02-05 Daniel Jacobowitz <drow@mvista.com>
10618
10619 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10620
6c537a52
DJ
106212002-02-05 Daniel Jacobowitz <drow@mvista.com>
10622
10623 * gdbserver/linux-low.c: Remove unused include files.
10624
d844cde6
DJ
106252002-02-05 Daniel Jacobowitz <drow@mvista.com>
10626
10627 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10628 (read_inferior_memory): Use it.
10629 (write_inferior_memory): Likewise.
10630
d07c63e7
DJ
106312002-02-05 Daniel Jacobowitz <drow@mvista.com>
10632
10633 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10634 grubbing through sys_errlist.
10635
da6d8c04
DJ
106362002-02-05 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10639
5b421780
PM
106402002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10641 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10642
9f60d481
AC
106432002-02-04 Andrew Cagney <ac131313@redhat.com>
10644
10645 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10646 (do_sfunc, set_cmd_sfunc): New functions.
10647
10648 * command.h (struct cmd_list_element): Add field func.
10649 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10650 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10651 * cli/cli-decode.h: Ditto.
10652
10653 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10654 (help_all, help_cmd_list): Ditto.
10655 (find_cmd, complete_on_cmdlist): Ditto.
10656 * top.c (execute_command): Ditto.
10657
10658 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10659 function.sfunc.
10660
10661 * infcmd.c (notice_args_read): Fix function signature.
10662
10663 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10664 * cli/cli-decode.c (add_set_cmd): Ditto.
10665 * utils.c (initialize_utils): Ditto.
10666 * maint.c (_initialize_maint_cmds): Ditto.
10667 * infrun.c (_initialize_infrun): Ditto.
10668 * demangle.c (_initialize_demangler): Ditto.
10669 * remote.c (add_packet_config_cmd): Ditto.
10670 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10671 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10672 * proc-api.c (_initialize_proc_api): Ditto.
10673 * kod.c (_initialize_kod): Ditto.
10674 * valprint.c (_initialize_valprint): Ditto.
10675 * top.c (init_main): Ditto.
10676 * infcmd.c (_initialize_infcmd): Ditto.
10677 * corefile.c (_initialize_core): Ditto.
10678 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10679 * arch-utils.c (initialize_current_architecture): Ditto.
10680 (_initialize_gdbarch_utils): Ditto.
10681 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10682
10683 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10684 * wince.c (_initialize_inftarg): Ditto.
10685 * symfile.c (_initialize_symfile): Ditto.
10686 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10687 * language.c (_initialize_language): Ditto.
10688 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10689
f9ba0717
MS
106902002-02-04 Michael Snyder <msnyder@redhat.com>
10691
10692 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10693
0c74b2a7
DJ
106942002-02-04 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10697 Add rules for building the register data files.
10698
c638789f
DJ
106992002-02-04 Daniel Jacobowitz <drow@mvista.com>
10700
10701 * regformats/regdat.sh: Add braces to the definition of
10702 expedite_regs_${arch}.
10703
db253027
DJ
107042002-02-04 Daniel Jacobowitz <drow@mvista.com>
10705
10706 * regformats/regdef.h (struct reg): Add comment describing the
10707 requirements for offset and size fields.
10708
206be19c
AS
107092002-02-04 Andreas Schwab <schwab@suse.de>
10710
10711 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10712 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10713
181c1381
RE
107142002-02-04 Richard Earnshaw <rearnsha@arm.com>
10715
10716 * gdbarch.sh (copyright): Update years in generated header.
10717 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10718 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10719 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10720 * dbxread.c: Likewise.
10721 * dwarfread.c: Likewise.
10722 * elfread.c: Likewise.
10723 * somread.c: Likewise.
10724
10725 * arm-tdep.c (arm_smash_text_address): New function.
10726 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10727
fa4ba8da
PM
107282002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10729
10730 Add support for hardware watchpoints on win32 native.
aaa38bb5 10731 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10732 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10733 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10734 of debug registers.
10735 (debug_registers_changed): New variable. Reflects when debug registers
10736 are changed and need to be written to inferior.
aaa38bb5 10737 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10738 was set, used when new threads are created.
10739 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10740 i386-nat code.
10741 (thread_rec): Set dr array if id is the thread of current_event .
10742 (child_continue, child_resume): Change the debug registers for all
10743 threads if debug_registers_changed.
10744 (child_add_thread): Change the debug registers if debug_registers_used.
10745 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10746 Link nm.h to new nm-cygwin.h file.
10747 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10748 of hardware registers.
10749
a73c86fb
AC
107502002-02-03 Andrew Cagney <ac131313@redhat.com>
10751
10752 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10753 Restore behavour broken by 2002-01-20 Andrew Cagney
10754 <ac131313@redhat.com> IEEE_FLOAT removal.
10755
acf5ed49
DJ
107562002-02-03 Daniel Jacobowitz <drow@mvista.com>
10757
10758 * c-valprint.c (c_val_print): Pass a proper valaddr to
10759 cp_print_class_method.
10760 * valops.c (search_struct_method): If there is only one method
10761 and args is NULL, return that method.
10762
493d28d5
DJ
107632002-02-03 Daniel Jacobowitz <drow@mvista.com>
10764
10765 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10766 accessing tag_name directly.
10767
7495dfdb
DJ
107682002-02-03 Daniel Jacobowitz <drow@mvista.com>
10769
10770 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10771 of accessing tag_name directly.
10772
dd6bda65
DJ
107732002-02-03 Daniel Jacobowitz <drow@mvista.com>
10774
10775 PR gdb/280
10776 * gdbtypes.c (replace_type): New function.
10777 * gdbtypes.h (replace_type): Add prototype.
10778 * stabsread.c (read_type): Use replace_type.
10779
88fe217c
RE
107802002-02-03 Richard Earnshaw <rearnsha@arm.com>
10781
10782 * Makefile.in (memattr.o): Add missing dependencies rule.
10783
e5d66720
PS
107842002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10785
10786 * breakpoint.c (break_at_finish_command): Really export.
10787 (break_at_finish_at_depth_command): Ditto.
10788 (tbreak_at_finish_command): Ditto.
10789 * hppa-tdep.c: Include completer.h.
10790 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10791 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10792
fffee0be
AC
107932002-02-01 Andrew Cagney <ac131313@redhat.com>
10794
10795 * utils.c (do_write): New function.
10796 (error_stream): Rewrite combining the code from error_begin and
10797 verror.
10798 (verror): Rewrite using error_stream.
10799 (error_begin): Delete function.
10800
255e7dbf
AC
108012002-02-01 Andrew Cagney <ac131313@redhat.com>
10802
10803 * utils.c (error_begin): Make static.
10804 * defs.h (error_begin): Delete declaration.
10805
10806 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10807 (decode_line_1): Use cplusplus_error instead of error_begin,
10808 cplusplus_hint and return_to_top_level.
10809 * coffread.c (coff_symfile_read): Use error instead of error_begin
10810 and return_to_top_level.
10811 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10812
ddfe3c15
AC
108132002-02-01 Andrew Cagney <ac131313@redhat.com>
10814
10815 * language.h (type_error, range_error): Make string parameter
10816 constant.
10817 * language.c (warning_pre_print): Delete extern declaration.
10818 * dwarfread.c (warning_pre_print): Ditto.
10819 * language.c (type_error, range_error): Rewrite to use verror and
10820 vwarning instead of warning_begin.
10821
03ac34d5
MS
108222002-02-01 Michael Snyder <msnyder@redhat.com>
10823
261c4ca2
MS
10824 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10825 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10826
e00d1dc8
AC
108272002-02-01 Andrew Cagney <ac131313@redhat.com>
10828
10829 * command.h (NO_FUNCTION): Delete macro.
10830 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10831 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10832 * tracepoint.c (_initialize_tracepoint): Ditto.
10833 * cli/cli-decode.c (add_set_cmd): Ditto.
10834 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10835
76b79d6e
DJ
108362002-02-01 Daniel Jacobowitz <drow@mvista.com>
10837
10838 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10839 Update ``this'' pointer when calling virtual functions.
10840
799f9e91
MS
108412002-02-01 Michael Snyder <msnyder@redhat.com>
10842
c7bd442c 10843 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10844 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10845
3cf384d4
DJ
108462002-02-01 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * regformats/reg-arm.dat: New file.
10849 * regformats/reg-i386.dat: New file.
10850 * regformats/reg-ia64.dat: New file.
10851 * regformats/reg-m68k.dat: New file.
10852 * regformats/reg-mips.dat: New file.
10853 * regformats/reg-ppc.dat: New file.
10854 * regformats/reg-sh.dat: New file.
10855 * regformats/regdef.h: New file.
10856 * regformats/regdat.sh: New file.
10857
0defa245
RE
108582002-02-01 Richard Earnshaw <reanrsha@arm.com>
10859
10860 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10861 (arm_frame_args_address, arm_frame_locals_address): New functions.
10862 (arm_frame_num_args): New function.
10863 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10864 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10865 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10866
405f26e6
MS
108672002-01-31 Michael Snyder <msnyder@redhat.com>
10868
502fd408
MS
10869 * breakpoint.c (break_at_finish_command): Export.
10870 (break_at_finish_at_depth_command): Export.
10871 (tbreak_at_finish_command): Export.
d6020d45 10872 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10873 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10874 "txbreak" commands, which are HPPA specific.
502fd408 10875
7d35e135
MS
10876 * printcmd.c (disassemble_command): Remove an ancient
10877 artifact of an old merge.
10878
aaa38bb5 10879 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10880 Define enum constant values for overlay mode.
10881 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10882 (overlay_is_mapped, overlay_auto_command,
10883 overlay_manual_command): Ditto.
d874f1e2 10884
aaa38bb5
AJ
10885 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10886 breakpoint_here_p, breakpoint_inserted_here_p,
10887 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10888 describe_other_breakpoints, check_duplicates, clear_command):
10889 Coding standard fixes.
10890
8add0441 10891 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10892 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10893 code: check bfd SEC_READONLY flag for section.
10894
e351066e
AC
108952002-01-31 Andrew Cagney <ac131313@redhat.com>
10896
7d35e135 10897 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10898
8a48e967
DJ
108992002-01-30 Daniel Jacobowitz <drow@mvista.com>
10900
10901 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10902 data symbols, since we search based on textlow and texthigh.
10903 (find_pc_sect_symtab): Likewise.
10904
f5a96129
AC
109052002-01-30 Andrew Cagney <ac131313@redhat.com>
10906
10907 * defs.h (vwarning): Declare.
f5a96129
AC
10908 * utils.c (vwarning): New function.
10909 (warning): Call vwarning.
10910 (warning_begin): Delete function.
10911
10912 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10913 the warning message.
10914 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10915 warning_begin.
10916
cefd4ef5
MS
109172002-01-30 Michael Snyder <msnyder@redhat.com>
10918
1a703748
MS
10919 * NEWS: Mention "set trust-readonly-sections" command.
10920 Mention generate-core-file command.
cefd4ef5 10921
3a11626d
MS
109222002-01-15 Michael Snyder <msnyder@redhat.com>
10923
10924 * target.c: New command, "set trust-readonly-sections on".
10925 (do_xfer_memory): Honor the suggestion to trust readonly sections
10926 by reading them from the object file instead of from the target.
10927 (initialize_targets): Register command "set trust-readonly-sections".
10928
d1c7e53b
AC
109292002-01-29 Andrew Cagney <ac131313@redhat.com>
10930
10931 * parse.c (target_map_name_to_register): Simplify, search regs and
10932 pseudo-regs using a single loop.
10933
e2c9a72c
AC
109342002-01-30 Andrew Cagney <ac131313@redhat.com>
10935
10936 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10937
69824b4e
MK
109382002-01-15 Rodney Brown <rbrown64@csc.com.au>
10939
10940 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10941 * config/i386/i386v42mp.mh: Add i387-nat.o .
10942 * i386v4-nat.c: Include i387-nat.h.
10943 (supply_fpregset): Use i387_supply_fsave.
10944 (fill_fpregset): Use i387_fill_fsave.
10945
6eb69eab
RE
109462002-01-30 Richard Earnshaw <rearnsha@arm.com>
10947
10948 * arm-tdep.c (arm_call_dummy_words): Define.
10949 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10950 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10951 (CALL_DUMMY_WORDS): Define.
10952 (arm_call_dummy_words): Declare.
10953 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10954 (arm_linux_call_dummy_words): Declare.
10955
9852326a
AS
109562002-01-30 Andreas Schwab <schwab@suse.de>
10957
10958 * m68klinux-nat.c: Fix last change to use regcache_collect
10959 instead of referencing registers[] directly.
10960
977a3030
AC
109612002-01-29 Andrew Cagney <ac131313@redhat.com>
10962
10963 * parse.c (target_map_name_to_register): Delete code wrapped in
10964 #ifdef REGISTER_NAME_ALIAS_HOOK.
10965
2076c72b
MS
109662002-01-28 Michael Snyder <msnyder@redhat.com>
10967
10968 * regcache.c (legacy_read_register_gen): Need to be able to
10969 read pseudo-register as well as real register.
10970 (legacy_write_register_gen): Ditto.
10971
8fcc723b
AC
109722002-01-28 Andrew Cagney <ac131313@redhat.com>
10973
10974 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10975 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10976 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10977 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10978 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10979 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10980 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10981 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10982 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10983 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10984 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10985 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10986 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10987 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10988 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10989 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10990 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10991 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10992 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10993 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10994
afe64c1a
AC
109952002-01-28 Andrew Cagney <ac131313@redhat.com>
10996
10997 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10998 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10999 (initialize_current_architecture): Update target_byte_order using
11000 information from BFD.
aaa38bb5 11001 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
11002 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11003
75bc7ddf
AC
110042002-01-28 Andrew Cagney <ac131313@redhat.com>
11005
11006 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11007 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11008
11009 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11010 #ifdef INVALID_FLOAT.
11011 * infcmd.c (do_registers_info): Ditto.
11012 * values.c (unpack_double): Ditto. Add comment.
11013
11014 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11015 already commented out.
11016
0280a90a
AS
110172002-01-26 Andreas Schwab <schwab@suse.de>
11018
11019 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11020 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11021 registers and add support for PTRACE_GETREGS.
11022
7072a954
AC
110232002-01-24 Andrew Cagney <ac131313@redhat.com>
11024
11025 GDB 5.1.1 released from 5.1 branch.
11026 * NEWS: Add 5.1.1 news.
11027 * README: Sync with 5.1 branch.
11028
86f902e0
FF
110292002-01-23 Fred Fish <fnf@redhat.com>
11030
11031 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11032 stabstring on initial malloc. Reallocing will copy it for us,
11033 if necessary.
11034
8af51c36
EZ
110352002-01-23 Elena Zannoni <ezannoni@redhat.com>
11036
aaa38bb5 11037 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11038 (HFILES_NO_SRCDIR): Remove hpread.h.
11039 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11040 (hpread.o): Update dependencies.
11041 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11042
11043 * hp-psymtab-read.c: Remove file.
11044 * hp-symtab-read.c: Remove file.
11045 * hpread.h: Remove file.
11046
11047 * hpread.c: Merge all contents of hp-psymtab-read.c,
11048 hp-symtab-read.c and hpread.h into this file, as it was prior to
11049 January 1999.
11050
11051 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11052 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11053 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11054 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11055
dc5cfeb6
EZ
110562002-01-23 Elena Zannoni <ezannoni@redhat.com>
11057
11058 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11059 fill_gregset): Call gdbarch_tdep() just once, assign result to
11060 variable and use that, instead of calling the function several
11061 times.
11062
ea87b71b
AO
110632002-01-24 Alexandre Oliva <aoliva@redhat.com>
11064
11065 * configure.host: Accept sparcv9 as alias for sparc64.
11066 * configure.tgt: Likewise.
11067
13fc0c2f
KB
110682002-01-22 Kevin Buettner <kevinb@redhat.com>
11069
11070 * solib-aix5.c (build_so_list_from_mapfile)
11071 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11072 arguments is not reversed.
11073 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11074 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11075
7bd872fe
EZ
110762002-01-22 Elena Zannoni <ezannoni@redhat.com>
11077
11078 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11079 modified version of obsolete sh_fetch_pseudo_register.
11080 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11081 (sh4_register_read): New function.
11082 (sh_pseudo_register_write): New function. Renamed and modified
11083 version of obsolete sh_store_pseudo_register.
11084 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11085 (sh4_register_write): New function.
11086 (sh_gdbarch_init): Remove setting of gdbarch function
11087 fetch_pseudo_register and store_pseudo_register. Remove setting of
11088 register_convert_to_raw, register_convert_to_virtual,
11089 register_convertible.
11090 (sh_sh4_register_convertible): Delete. No longer needed. All is
11091 taken care by architecture specific functions
11092 register_read/register_write.
11093 (sh_sh4_register_convert_to_virtual): Make static.
11094 (sh_sh4_register_convert_to_raw): Ditto.
11095
069e84fd
AC
110962002-01-22 Andrew Cagney <ac131313@redhat.com>
11097
11098 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11099 (floatformat_is_nan, floatformat_mantissa): Ditto.
11100
11101 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11102 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11103 builtin_type_ieee_double_little,
11104 builtin_type_ieee_double_littlebyte_bigword,
11105 builtin_type_m68881_ext, builtin_type_i960_ext,
11106 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11107 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11108 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11109 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11110
211a4f69
CV
111112002-01-22 Corinna Vinschen <vinschen@redhat.com>
11112
11113 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11114 parameter. Set frameless flag if it exists and depended of
11115 whether the scanned function is frameless or not.
11116 (xstormy16_skip_prologue): If function is frameless, return
11117 result of xstormy16_scan_prologue().
11118 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11119 call.
11120
f81353e4
EZ
111212002-01-21 Elena Zannoni <ezannoni@redhat.com>
11122
11123 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11124 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11125 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11126 sh_sh4_register_byte, sh_sh4_register_raw_size,
11127 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11128 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11129 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11130 sh_store_pseudo_register, sh_do_pseudo_register): Call
11131 gdbarch_tdep() just once, assign result to variable and use that,
11132 instead of calling the function several times.
11133
63c73a17
MK
111342002-01-20 Mark Kettenis <kettenis@gnu.org>
11135
11136 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11137 macros instead of LAST_FPU_CTRL_REGNUM.
11138 (store_register): Likewise.
11139
39ad761d
JB
111402002-01-21 Jim Blandy <jimb@redhat.com>
11141
11142 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11143 is up-to-date before running the program, not just when a program
11144 exits.
11145
3d74b771
FF
111462002-01-21 Fred Fish <fnf@redhat.com>
11147
11148 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11149 when we have found all instructions we are looking for.
11150
966fbf70
RE
111512002-01-21 Richard Earnshaw <rearnsha@arm.com>
11152
11153 * arm-tdep.c (arm_register_name): New function.
11154 (arm_registers_names): Make static.
11155 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11156 (arm_register_name): Declare.
11157 (REGISTER_NAME): Use it.
11158
c3b4394c
RE
111592002-01-21 Richard Earnshaw <rearnsha@arm.com>
11160 Kevin Buettner <kevinb@redhat.com>
11161
11162 Convert arm targets to new FRAME interface.
11163 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11164 (arm_frame_find_save_regs): Delete.
11165 (arm_frame_init_saved_regs): New.
11166 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11167 Allocate extra_info as required. Convert all uses of fsr.regs
11168 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11169 to use extra_info.
11170 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11171 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11172 (check_prologue_cache, save_prologue_cache): Likewise.
11173 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11174 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11175 (FRAME_FIND_SAVED_REGS): Delete.
11176 (arm_frame_find_saved_regs): Delete prototype.
11177 (arm_frame_init_saved_regs): New prototype.
11178 (FRAME_INIT_SAVED_REGS): Define.
11179
61d99182
AC
111802002-01-20 Andrew Cagney <ac131313@redhat.com>
11181
11182 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11183
6aaea291
AC
111842002-01-20 Andrew Cagney <ac131313@redhat.com>
11185
11186 From Jeff Law <law@redhat.com>:
11187 * infttrace.c: Include <sys/pstat.h>.
11188 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11189 exec file if the ttrace equivalent fails.
11190
15f698d2
AC
111912002-01-20 Andrew Cagney <ac131313@redhat.com>
11192
11193 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11194 (closeLogFile): Ditto.
11195
f86ddd7c
MC
111962002-01-20 Michael Chastain <mec@shout.net>
11197
11198 * top.c (print_gdb_version): Bump copyright year to 2002.
11199
904507ce
AC
112002002-01-20 Andrew Cagney <ac131313@redhat.com>
11201
11202 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11203 Zannoni and Eli Zaretskii.
11204
d7f0b9ce
DJ
112052002-01-20 Daniel Jacobowitz <drow@mvista.com>
11206
11207 * buildsym.c: Update copyright years.
11208 * c-typeprint.c: Likewise.
11209 * dwarf2read.c: Likewise.
11210 * f-typeprint.c: Likewise.
11211 * gdbtypes.c: Likewise.
11212 * gdbtypes.h: Likewise.
11213 * hp-symtab-read.c: Likewise.
11214 * hpread.c: Likewise.
11215 * mdebugread.c: Likewise.
11216 * p-typeprint.c: Likewise.
11217
3fd3d7d2
AC
112182002-01-20 Andrew Cagney <ac131313@redhat.com>
11219
11220 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11221 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11222 byte-order selectable.
11223 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11224 * arch-utils.c: Ditto.
11225 (set_endian): Ditto.
11226 (set_endian_from_file): Ditto.
11227 * gdbserver/low-sim.c (create_inferior): Ditto.
11228 * gdbarch.sh: Ditto.
11229 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11230 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11231 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11232 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11233 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11234 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11235 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11236 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11237 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11238 macro definition.
11239 * config/mips/tm-wince.h: Remove #undef of macro
11240 TARGET_BYTE_ORDER_SELECTABLE.
11241 * config/sh/tm-wince.h: Ditto.
11242
b02dede2
DJ
112432002-01-20 Daniel Jacobowitz <drow@mvista.com>
11244
11245 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11246 member function fields. Add accessor macro
11247 TYPE_FN_FIELD_ARTIFICIAL.
11248 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11249 * c-typeprint.c (c_type_print_base): Skip artificial member
11250 functions.
11251
c3643761
DJ
112522002-01-20 Daniel Jacobowitz <drow@mvista.com>
11253
11254 * f-typeprint.c: Delete unused function f_type_print_args.
11255 * p-typeprint.c: Delete unused function pascal_type_print_args.
11256
8176bb6d
DJ
112572002-01-20 Daniel Jacobowitz <drow@mvista.com>
11258
11259 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11260 comment. Add ``artificial'' to ``union field_location''.
11261
11262 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11263
11264 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11265 * mdebugread.c (parse_symbol): Likewise.
11266 * stabsread.c (define_symbol): Likewise.
11267 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11268 initializing TYPE_FIELD_BITPOS to n (obsolete).
11269 (hpread_doc_function_type): Likewise.
11270 * hpread.c (hpread_function_type): Likewise.
11271
7fd60527
AC
112722002-01-20 Andrew Cagney <ac131313@redhat.com>
11273
11274 * configure.in (host_makefile_frag): Only require a host makefile
11275 fragment when a native build.
11276 * configure: Re-generate.
11277
c2f05ac9
AC
112782002-01-20 Andrew Cagney <ac131313@redhat.com>
11279
11280 * doublest.h (floatformat_from_type): Declare.
11281 * doublest.c (floatformat_from_type): New function.
11282 (convert_typed_floating): Use.
11283
11284 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11285 call to function floatformat_from_type.
11286
11287 * gdbarch.sh (IEEE_FLOAT): Delete.
11288 * gdbarch.h, gdbarch.c: Re-generate.
11289 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11290 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11291 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11292 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11293 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11294 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11295 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11296 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11297 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11298 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11299 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11300 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11301
11302 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11303 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11304 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11305 * sh-tdep.c (sh_gdbarch_init): Ditto.
11306 * mips-tdep.c (mips_gdbarch_init): Ditto.
11307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11308 * cris-tdep.c (cris_gdbarch_init): Ditto.
11309
abf22e64
AJ
113102002-01-20 Jiri Smid <smid@suse.cz>
11311
11312 * configure.host, configure.tgt: Support x86-64.
11313 * NEWS: Note new target x86-64.
11314
b7c4cbf8
AJ
11315 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11316 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11317 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11318 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11319 x86-64-linux-nat.o): Fix dependencies.
11320
82600034
AC
113212002-01-19 Andrew Cagney <ac131313@redhat.com>
11322
11323 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11324 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11325 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11326 * config/sparc/xm-sun4os4.h: Delete file.
11327 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11328
bbe5c628
AC
113292002-01-19 Andrew Cagney <ac131313@redhat.com>
11330
11331 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11332 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11333 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11334 * config/i386/i386lynx.mh (XM_FILE): Delete.
11335 * config/rs6000/xm-rs6000ly.h: Delete file.
11336 * config/sparc/xm-sparclynx.h: Delete file.
11337 * config/m68k/xm-m68klynx.h: Delete file.
11338 * config/i386/xm-i386lynx.h: Delete file.
11339 * config/xm-lynx.h: Delete file.
11340 * config/djgpp/fnchange.lst: Update.
11341
f8453e34
JT
113422002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11343
11344 * alpha-tdep.c (alpha_register_byte): New function.
11345 (alpha_register_raw_size): Ditto.
11346 (alpha_register_virtual_size): Ditto.
11347 (alpha_skip_prologue_internal): Renamed from
11348 alpha_skip_prologue.
11349 (alpha_skip_prologue): New version that calls
11350 alpha_skip_prologue_internal.
11351 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11352 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11353 second argument from alpha_skip_prologue.
11354 (REGISTER_BYTE): Use alpha_register_byte.
11355 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11356 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11357 (FRAMELESS_FUNCTION_INVOCATION): Use
11358 generic_frameless_function_invocation_not.
11359 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11360 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11361
52d9e613
AC
113622002-01-19 Andrew Cagney <ac131313@redhat.com>
11363
11364 * config/mips/xm-news-mips.h: Delete file.
11365 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11366
11367 * config/m88k/xm-m88k.h: Delete file.
11368 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11369 * config/m88k/xm-delta88v4.h: Ditto.
11370 * config/m88k/xm-delta88.h: Ditto.
11371
11372 * config/alpha/xm-fbsd.h: Delete file.
11373 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11374
11375 * config/sparc/xm-sparc.h: Delete file.
11376 * Makefile.in (xm-sun4os4.h): Delete dependency.
11377 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11378 * config/sparc/xm-sun4os4.h: Ditto.
11379 * config/sparc/xm-linux.h: Ditto.
11380
11381 * config/i386/xm-windows.h: Delete file.
11382
2d1b2124
AC
113832002-01-19 Andrew Cagney <ac131313@redhat.com>
11384
11385 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11386 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11387
ee1f65f0
JT
113882002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11389
11390 * alpha-tdep.c (alpha_call_dummy_words): New.
11391 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11392 (CALL_DUMMY_P): Define.
11393 (CALL_DUMMY_WORDS): Define.
11394 (SIZEOF_CALL_DUMMY_WORDS): Define.
11395
98081e55
PB
113962002-01-19 Per Bothner <per@bothner.com>
11397
11398 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11399 isn't NULL, which can happen with some gcj-3.x-produced code.
11400
0d056799
JT
114012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11402
11403 * alpha-tdep.c (alpha_register_virtual_type): New function.
11404 (alpha_init_frame_pc_first): Ditto.
11405 (alpha_fix_call_dummy): Ditto.
11406 (alpha_store_struct_return): Ditto.
11407 (alpha_extract_struct_value_address): Ditto.
11408 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11409 alpha_register_virtual_type.
11410 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11411 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11412 alpha_extract_struct_value_address.
11413 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11414 (INIT_FRAME_PC): Use init_frame_pc_noop.
11415 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11416
4604bcad
MK
114172002-01-19 Mark Kettenis <kettenis@gnu.org>
11418
11419 * i386gnu-nat.c: Include "i386-tdep.h".
11420 (fetch_fpregs): Simplify code dealing with uninitialized floating
11421 point states such that it doesn't require FP7_REGNUM.
11422
140f9984
JT
114232002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11424
abf22e64
AJ
11425 * alpha-tdep.c (frame_extra_info): New.
11426 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11427 frame->extra_info.
11428 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11429 (alpha_frame_saved_pc): Use frame->extra_info.
11430 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11431 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11432 (init_extra_frame_info): Rename to...
11433 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11434 (alpha_print_extra_frame_info): New function.
140f9984
JT
11435 (alpha_frame_locals_address): Ditto.
11436 (alpha_frame_args_address): Ditto.
abf22e64 11437 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11438 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11439 alpha_frame_args_address.
abf22e64 11440 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11441 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11442 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11443 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11444 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11445 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11446
d734c450
JT
114472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11448
11449 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11450 (alpha_cannot_fetch_register): Ditto.
11451 (alpha_cannot_store_register): Ditto.
11452 (alpha_register_convertible): Ditto.
11453 (alpha_use_struct_convention): Ditto.
11454 * config/alpha/tm-alpha.h: Update copyright years.
11455 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11456 (INNER_THAN): Use core_addr_lessthan.
11457 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11458 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11459 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11460 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11461 (FRAME_CHAIN): Remove unnecessary cast.
11462
b4ceaee6
AC
114632002-01-18 Andrew Cagney <ac131313@redhat.com>
11464
11465 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11466 obsolete.
11467
0a65a603
AC
114682002-01-18 Andrew Cagney <ac131313@redhat.com>
11469
11470 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11471 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11472 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11473 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11474 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11475 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11476 * x86-64-linux-nat.c: Ditto.
11477
636a6dfc
JT
114782002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11479
abf22e64 11480 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11481 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11482 (REGISTER_NAME): Define.
11483
acceddb6
JT
114842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11485
11486 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11487
ec32e4be
JT
114882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11489
11490 * alpha-tdep.c: Update copyright years.
11491 (alpha_next_pc): New function.
11492 (alpha_software_single_step): Ditto.
11493 * config/alpha/tm-alpha.h: Add prototype for
11494 alpha_software_single_step.
11495
e771a871
JT
114962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11497
11498 * alphabsd-nat.c: Update copyright years.
11499 (fill_gregset): Use regcache_collect.
11500 (fill_fpregset): Likewise.
11501 (fetch_inferior_registers): Only fetch integer registers
11502 if requested to do so.
11503 (store_inferior_registers): Only store integer registers
11504 if requested to do so.
11505
7708fa01
AC
115062002-01-17 Andrew Cagney <ac131313@redhat.com>
11507
11508 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11509 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11510 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11511 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11512 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11513 * config/arm/linux.mh (XDEPFILES): Delete.
11514 * config/arm/nbsd.mh (XDEPFILES): Delete.
11515 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11516 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11517 * config/i386/i386m3.mh (XDEPFILES): Delete.
11518 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11519 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11520 * config/i386/fbsd.mh (XDEPFILES): Delete.
11521 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11522 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11523 * config/i386/i386v4.mh (XDEPFILES): Delete.
11524 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11525 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11526 * config/i386/i386aix.mh (XDEPFILES): Delete.
11527 * config/i386/go32.mh (XDEPFILES): Delete.
11528 * config/i386/cygwin.mh (XDEPFILES): Delete.
11529 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11530 * config/i386/i386mach.mh (XDEPFILES): Delete.
11531 * config/i386/i386v32.mh (XDEPFILES): Delete.
11532 * config/i386/linux.mh (XDEPFILES): Delete.
11533 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11534 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11535 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11536 * config/i386/i386sco.mh (XDEPFILES): Delete.
11537 * config/i386/i386v.mh (XDEPFILES): Delete.
11538 * config/i386/nbsd.mh (XDEPFILES): Delete.
11539 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11540 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11541 * config/i386/symmetry.mh (XDEPFILES): Delete.
11542 * config/i386/obsd.mh (XDEPFILES): Delete.
11543 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11544 * config/ia64/linux.mh (XDEPFILES): Delete.
11545 * config/ia64/aix.mh (XDEPFILES): Delete.
11546 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11547 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11548 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11549 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11550 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11551 * config/m68k/linux.mh (XDEPFILES): Delete.
11552 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11553 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11554 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11555 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11556 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11557 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11558 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11559 * config/m88k/delta88.mh (XDEPFILES): Delete.
11560 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11561 * config/m88k/m88k.mh (XDEPFILES): Delete.
11562 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11563 * config/mips/linux.mh (XDEPFILES): Delete.
11564 * config/mips/irix6.mh (XDEPFILES): Delete.
11565 * config/mips/irix5.mh (XDEPFILES): Delete.
11566 * config/mips/irix4.mh (XDEPFILES): Delete.
11567 * config/mips/irix3.mh (XDEPFILES): Delete.
11568 * config/mips/decstation.mh (XDEPFILES): Delete.
11569 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11570 (NATDEPFILES): Move core-aout.o to here.
11571 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11572 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11573 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11574 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11575 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11576 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11577 * config/pa/hpux11.mh (XDEPFILES): Delete.
11578 * config/powerpc/aix.mh (XDEPFILES): Delete.
11579 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11580 * config/powerpc/linux.mh (XDEPFILES): Delete.
11581 * config/romp/rtbsd.mh: Rename XDEPFILES.
11582 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11583 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11584 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11585 * config/s390/s390.mh (XDEPFILES): Delete.
11586 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11587 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11588 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11589 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11590 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11591 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11592 * config/sparc/linux.mh (XDEPFILES): Delete.
11593 * config/vax/vaxult.mh (XDEPFILES): Delete.
11594 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11595 * Makefile.in (DEPFILES): Remove XDEPFILES.
11596
375fc983
AC
115972002-01-17 Andrew Cagney <ac131313@redhat.com>
11598
11599 * utils.c (internal_verror): Fix comments, default is yes not no.
11600 Update queries to match. Default to quit and dump core.
11601
8926118c
AC
116022002-01-17 Andrew Cagney <ac131313@redhat.com>
11603
11604 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11605 copyright.
11606 * defs.h, event-top.c, gdbcmd.h: Ditto.
11607 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11608 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11609 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11610 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11611 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11612 * mi/mi-main.c:Ditto.
11613
11614 * stack.c, symfile.c: Update copyright.
11615
45b7b345
DJ
116162002-01-17 Daniel Jacobowitz <drow@mvista.com>
11617
db728ff7
DJ
11618 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11619 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11620 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11621 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11622
db728ff7
DJ
116232002-01-17 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11626 * gdbserver/low-lynx.c (myattach): Likewise.
11627 * gdbserver/low-nbsd.c (myattach): Likewise.
11628 * gdbserver/low-sim.c (myattach): Likewise.
11629 * gdbserver/low-sparc.c (myattach): Likewise.
11630 * gdbserver/low-sun3.c (myattach): Likewise.
11631
11632 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11633
db728ff7 11634 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11635 (main): Handle "--attach".
11636
8de3c354
AC
116372002-01-16 Andrew Cagney <ac131313@redhat.com>
11638
11639 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11640 maintainer.
11641
b0129042
DJ
116422002-01-15 Daniel Jacobowitz <drow@mvista.com>
11643
11644 * c-typeprint.c (is_type_conversion_operator): Add additional
11645 check for non-conversion operators.
11646
ba8679fb 116472002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11648
11649 * linux-proc.c: Add "info proc" command, a la procfs.c.
11650 (read_mapping): New function, abstract and re-use code.
11651 (linux_find_memory_regions): Use new func read_mapping.
11652 (linux_info_proc_cmd): New function, implement "info proc".
11653 (_initialize_linux_proc): Add new command "info proc".
11654
e4f9b4d5
MS
116552002-01-15 Michael Snyder <msnyder@redhat.com>
11656
11657 * symfile.c (generic_load): Use bfd_map_over_sections method
11658 instead of manipulating bfd structure members directly.
11659 (add_section_size_callback): New function, bfd sections callback
11660 used by generic_load.
11661 (load_sections_callback): New function, bfd sections callback
11662 used by generic_load.
11663
08cf96df
EZ
116642002-01-15 Elena Zannoni <ezannoni@redhat.com>
11665
abf22e64 11666 [Based on work by Jim Blandy]
08cf96df
EZ
11667 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11668 (builtin_type_vec128): Export.
11669 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11670 types.
11671 (builtin_type_vec128): New builtin type for 128 bit vector
11672 registers.
11673 (build_gdbtypes): Initialize builtin_type_v16qi and
11674 builtin_type_v8hi. Create the vec128 register builtin type
11675 structure.
11676 (build_builtin_type_vec128): New function.
abf22e64 11677 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11678 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11679 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11680 AltiVec register to new builtin type.
11681
d7242108
DJ
116822001-01-15 Daniel Jacobowitz <drow@mvista.com>
11683
11684 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11685 to make_cv_type.
11686
4ee3352d
AC
116872002-01-14 Andrew Cagney <ac131313@redhat.com>
11688
11689 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11690 CLEAN_UP_REGISTER_VALUE.
11691 * regcache.c (supply_register): Update only call.
11692
f015b2e7
AC
116932002-01-14 Andrew Cagney <ac131313@redhat.com>
11694
11695 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11696 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11697 a29k-*-vxworks* targets as obsolete.
11698
356ae49d
MS
116992002-01-14 Michael Snyder <msnyder@redhat.com>
11700
11701 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11702 until we can resolve portability issues.
11703 * gregset.h: Remove references to fpxregs.
11704 * gcore.c (gcore_command): Initialize note_sec to NULL.
11705
ade8f45e
AC
117062002-01-13 Andrew Cagney <ac131313@redhat.com>
11707
11708 * signals.c (target_signal_to_name): Rewrite. Only use
11709 signals[].name when in bounds and non-NULL.
abf22e64 11710
89c49e7a
AC
117112002-01-13 Andrew Cagney <ac131313@redhat.com>
11712
11713 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11714 * signals.c (target_signal_to_name): Verify that SIG is within the
11715 bounds of the signals array.
11716
4daa9f9f
AC
117172002-01-13 Andrew Cagney <ac131313@redhat.com>
11718
11719 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11720
ba4bbdcb
KS
117212002-01-13 Keith Seitz <keiths@redhat.com>
11722
11723 * stack.c (print_frame_info_base): Print the frame's pc
11724 only if when print_frame_info_listing_hook is not defined.
11725
575bbeb6
KS
117262002-01-13 Keith Seitz <keiths@redhat.com>
11727
11728 * varobj.c (varobj_set_value): Make sure that there were no
11729 errors evaluating the object before attempting to set its
11730 value.
11731 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11732 so this offset adjustment is no longer necessary.
11733 (create_child): Don't set the error flag if the child is
11734 a CPLUS_FAKE_CHILD.
11735 (value_of_child): If value_fetch_lazy fails, return NULL
11736 so that callers will be notified that an error occurred.
11737 (c_value_of_variable): Delay check of variable's validity
11738 until later. We actually want all structs and unions to have
11739 the value "{...}".
11740 Do not return "???" for variables which could not be evaluated.
11741 This error condition must be returned to the caller so that it
11742 can get the error condition from gdb.
11743 (cplus_name_of_child): Adjust index for vptr before figuring
11744 out the name of the child.
11745 (cplus_value_of_child): If a child's (real) parent is not valid,
11746 don't even bother trying to give a value for it. Just return
11747 an error. Change all instances in this function.
11748 (cplus_type_of_child): If our parent is one of the "fake"
11749 parents, we need to get at the type of the real parent, and
11750 derive the child's true type using this information.
11751
b76898ab
AC
117522002-01-13 Andrew Cagney <ac131313@redhat.com>
11753
11754 From 2002-01-09 John Marshall <johnm@falch.net>:
11755 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11756 sources.redhat.com, and tweak some related URLs which had
11757 suffered from linkrot.
11758
b6649e88
AC
117592002-01-13 Andrew Cagney <ac131313@redhat.com>
11760
11761 From Jeff law:
11762 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11763 structures passed in registers.
11764
82cc5033
EZ
117652002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11766
11767 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11768 white space which prevented compilation. Reported by DSK
11769 <dsk@student.unsw.edu.au>.
11770
ba5f2f8a
MS
117712002-01-11 Michael Snyder <msnyder@redhat.com>
11772
fbd35540
MS
11773 * symfile.c (build_section_addr_info_from_section_tab):
11774 Use bfd access method instead of manipulating bfd directly.
11775 (syms_from_objfile): Ditto.
11776 (simple_overlay_update_1): Ditto.
11777 (simple_overlay_update): Ditto.
11778 (generic_load): Ditto.
11779 (overlay_unmapped_address): FIXME comment, bfd access methods.
11780 (sections_overlap): FIXME comment, bfd access methods.
11781 (pc_in_mapped_range): FIXME comment, bfd access methods.
11782 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11783 (section_is_mapped): FIXME comment, bfd access methods.
11784 (section_is_overlay): FIXME comment, bfd access methods.
11785
ba5f2f8a
MS
11786 * symfile.c (generic_load): Whitespace and long line cleanups.
11787 Remove duplicate variable, change several local variables to
11788 more appropriate data types.
11789 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11790
17df2af6
AC
117912002-01-12 Andrew Cagney <ac131313@redhat.com>
11792
11793 From Peter Schauer:
11794 * language.c (longest_local_hex_string_custom): Use phex_nz to
11795 convert NUM to a hex string.
11796
ec920329
EZ
117972002-01-12 Elena Zannoni <ezannoni@redhat.com>
11798
11799 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11800 the function.
538a76d6 11801 Update Copyright year.
ec920329 11802
3abd2e01
AC
118032002-01-12 Andrew Cagney <ac131313@redhat.com>
11804
11805 * language.c (longest_raw_hex_string): Delete unused function.
11806
b21b22e0
PS
118072002-01-11 Petr Sorfa <petrs@caldera.com>
11808
11809 * MAINTAINERS (write-after-approval): Add myself.
11810 * dwarf2read.c (read_tag_string_type): Handling of
11811 DW_AT_byte_size.
11812 (read_tag_string_type): FORTRAN fix to prevent propagation of
11813 first string size.
11814 (set_cu_language): Handling of DW_LANG_Fortran95
11815
747fe712
RE
118162002-01-11 Richard Earnshaw <rearnsha@arm.com>
11817
11818 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11819 GETPID(inferior_ptid).
11820 (store_inferior_registers): Likewise.
11821
f1bea926
JM
118222002-01-10 Jason Merrill <jason@redhat.com>
11823
11824 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11825 Fix DW_OP_minus.
11826
ae940673
AC
118272002-01-10 Andrew Cagney <ac131313@redhat.com>
11828
11829 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11830 and bfd/elf32-sh-nbsd.c.
11831
00546b04
MS
118322002-01-10 Michael Snyder <msnyder@redhat.com>
11833
352ed7b4
MS
11834 * NEWS: Mention --pid and corefile/proc-id behavior change.
11835
c18be923
MS
11836 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11837 * gcore.c: Include cli/cli-decode.h instead of command.h.
11838
00546b04
MS
11839 * main.c (captured_main): Add new command line option "--pid".
11840 If the second command line argument (following the symbol-file)
11841 begins with a digit, try to attach to it before trying to open
11842 it as a corefile.
11843 (print_gdb_help): Document the "--pid" argument.
11844
db60ec62
EZ
118452002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11846
11847 * completer.c (command_completer): New function.
11848
11849 * completer.h <command_completer>: Add prototype.
11850
11851 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11852 completer for the "help" command.
11853
39c22d1a
JM
118542002-01-09 Jason Merrill <jason@redhat.com>
11855
11856 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11857
c564377f
MS
118582002-01-09 Michael Snyder <msnyder@redhat.com>
11859
975aec09
MS
11860 * i386-linux-nat.c (fill_fpxregset): Make global.
11861 (store_fpxregset): Ditto.
11862
db4a10fa
MS
11863 * gregset.h (gdb_fpxregset_t): Define.
11864 (supply_fpxregset): Prototype.
11865 (fill_fpxregset): Prototype.
11866
c564377f
MS
11867 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11868
c3d45d70
RE
118692002-01-09 Richard Earnshaw <rearnsha@arm.com>
11870
11871 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11872 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11873 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11874
fcc87af1
AC
118752002-01-09 Andrew Cagney <ac131313@redhat.com>
11876
11877 * MAINTAINERS: Update target maintainer rules so that any
11878 Maintainer can approve a tested patch for a maintenance-only
11879 target.
11880
dd96c05b
RE
118812002-01-09 Richard Earnshaw <rearnsha@arm.com>
11882
d4297db9 11883 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11884
d4297db9 11885 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11886 IN_SIGTRAMP.
11887
145fdc6e
MS
118882002-01-08 Michael Snyder <msnyder@redhat.com>
11889
11890 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11891 real name of the executable, rather than the /proc name.
11892
be4d1333
MS
118932002-01-03 Michael Snyder <msnyder@redhat.com>
11894
11895 Implement a "generate-core-file" command in gdb, save target state.
11896 * gcore.c: New file. Implement new command 'generate-core-file'.
11897 Save a corefile image of the current state of the inferior.
11898 * linux-proc.c: Add linux-specific code for saving corefiles.
11899 * target.h (struct target_ops): Add new target vectors for saving
11900 corefiles; to_find_memory_regions and to_make_corefile_notes.
11901 (target_find_memory_regions): New macro.
11902 (target_make_corefile_notes): New macro.
11903 * target.c (update_current_target): Inherit new target methods.
11904 (dummy_find_memory_regions): New place-holder method.
11905 (dummy_make_corefile_notes): New place-holder method.
11906 (init_dummy_target): Initialize new dummy target vectors.
11907 * exec.c (exec_set_find_memory_regions): New function.
11908 Allow the exec_ops vector for memory regions to be taken over.
11909 (exec_make_note_section): New function, target vector method.
11910 * defs.h (exec_set_find_memory_regions): Export prototype.
11911 * procfs.c (proc_find_memory_regions): New function, corefile method.
11912 (procfs_make_note_section): New function, corefile method.
11913 (init_procfs_ops): Set new target vector pointers.
11914 (find_memory_regions_callback): New function.
11915 (procfs_do_thread_registers): New function.
11916 (procfs_corefile_thread_callback): New function.
11917 * sol-thread.c (sol_find_memory_regions): New function.
11918 (sol_make_note_section): New function.
11919 (init_sol_thread_ops): Initialize new target vectors.
11920 * inftarg.c (inftarg_set_find_memory_regions): New function.
11921 Allow to_find_memory_regions vector to be taken over.
11922 (inftarg_set_make_corefile_notes): New function.
11923 Allow to_make_corefile_notes vector to be taken over.
11924 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11925 interface layer if not target_has_execution (may be a corefile).
11926 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11927 * config/sparc/sun4sol2.mh: Ditto.
11928 * config/alpha/alpha-linux.mh: Ditto.
11929 * config/arm/linux.mh: Ditto.
11930 * config/i386/x86-64linux.mh: Ditto.
11931 * config/ia64/linux.mh: Ditto.
11932 * config/m68k/linux.mh: Ditto.
11933 * config/mips/linux.mh: Ditto.
11934 * config/powerpc/linux.mh: Ditto.
11935 * config/sparc/linux.mh: Ditto.
11936
c6b92abd
MS
119372002-01-07 Michael Snyder <msnyder@redhat.com>
11938
11939 * arm-linux-nat.c: Remove references to regcache.c internal data
11940 (registers[] and register_valid[]).
11941
4b09dc8c
MS
119422002-01-07 Michael Snyder <msnyder@redhat.com>
11943
abf22e64
AJ
11944 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11945 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11946 symbol file and shlibs.
11947 * Makefile.in: Add rule for linux-proc.o.
11948 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11949 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11950 * config/arm/linux.mh: Ditto.
11951 * config/i386/linux.mh: Ditto.
11952 * config/i386/x86-64linux.mh: Ditto.
11953 * config/ia64/linux.mh: Ditto.
11954 * config/m68k/linux.mh: Ditto.
11955 * config/mips/linux.mh: Ditto.
11956 * config/powerpc/linux.mh: Ditto.
11957 * config/sparc/linux.mh: Ditto.
11958
c25b74ac
PM
119592002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11960
11961 * win32-nat.c: Add i386-tdep.h dependency.
11962
94cd915f
MS
119632002-01-07 Michael Snyder <msnyder@redhat.com>
11964
c7cccb76
MS
11965 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11966 instead of bfd_get_arch_size. Don't bail out just because
11967 there's no exec_bfd.
abf22e64 11968
34c0bd93
MS
11969 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11970 * p-valprint.c (pascal_object_print_value): Ditto.
11971 * somread.c (som_symtab_read): Ditto.
11972 * symfile.c (simple_free_overlay_region_table): Ditto.
11973 * valops.c (value_assign): Ditto.
11974
21c1c920
MS
11975 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11976 use tilde_expand and strerror for opening save-tracepoints file.
11977
5bbd998e
MS
11978 * thread-db.c (thread_db_new_objfile): Indendation fix.
11979
94cd915f
MS
11980 * infptrace.c (GDB_MAX_ALLOCA): New define.
11981 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11982 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11983 can be overridden with whatever value is appropriate to the host).
11984 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11985 alloca to allocate potentially large buffer.
11986 * rs6000-nat.c (child_xfer_memory): Ditto.
11987 * symm-nat.c (child_xfer_memory): Ditto.
11988 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11989
494e8a93
JSC
119902002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11991
11992 From Nick Clifton <nickc@redhat.com>
11993 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11994
d0e1d48e
MS
119952002-01-07 Michael Snyder <msnyder@redhat.com>
11996
abf22e64 11997 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11998 Don't use exec_bfd if it's NULL.
11999
290b2c7a
MK
120002002-01-06 Mark Kettenis <kettenis@gnu.org>
12001
abf22e64 12002 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 12003
aef21287
AC
120042002-01-06 Andrew Cagney <ac131313@redhat.com>
12005
12006 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12007 * gnu-nat.c: Ditto.
12008
30efa627
AC
120092002-01-06 Andrew Cagney <ac131313@redhat.com>
12010
12011 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12012 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12013 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12014 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12015 z8k-coff have not been multi-arched. Update z8k-coff build
12016 status.
12017
9b4ff276
AC
120182002-01-06 Andrew Cagney <ac131313@redhat.com>
12019
12020 * MAINTAINERS: Mark a29k target as obsolete.
12021 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12022 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12023 comments.
12024 * NEWS: Note that a29k targets are obsolete.
12025 * a29k-tdep.c: Mark as obsolete.
12026 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12027 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12028 a29k-*-vxworks* targets as obsolete.
12029 * remote-adapt.c: Obsolete.
12030 * remote-eb.c: Obsolete.
12031 * remote-mm.c: Obsolete.
12032 * remote-udi.c: Obsolete.
12033 * config/a29k/a29k-udi.mt: Obsolete.
12034 * config/a29k/a29k.mt: Obsolete.
12035 * config/a29k/tm-a29k.h: Obsolete.
12036 * config/a29k/tm-vx29k.h: Obsolete.
12037 * config/a29k/vx29k.mt: Obsolete.
12038
a9011d31
AC
120392002-01-05 Andrew Cagney <ac131313@redhat.com>
12040
12041 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12042 with BFD_ENDIAN_BIG.
12043
9299404e
AC
120442002-01-05 Andrew Cagney <ac131313@redhat.com>
12045
12046 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12047 * configure, config.in: Re-generate.
12048 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12049 * defs.h: Do not include <endian.h>.
12050
7e89e357
JT
120512002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12052
12053 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12054 * config.in: Regenerate.
12055 * configure.in: Update copyright years.
12056 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12057 * configure: Regenerate.
12058 * i386bsd-nat.c: Update copyright years.
12059 (fill_gregset): Use regcache_collect.
12060 (fetch_inferior_registers): Only fetch integer registers
12061 if requested to do so. Add support for XMM registers
12062 using PT_GETXMMREGS.
12063 (store_inferior_registers): Only store integer registers
12064 if requested to do so. Add support for XMM registers
12065 using PT_SETXMMREGS.
12066 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12067 (store_inferior_registers): Remove.
12068 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12069 (fetch_elfcore_registers): New function.
12070 (i386nbsd_elfcore_fns): New.
12071 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12072 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12073 i386bsd-nat.o.
12074 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12075 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12076 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12077 * config/i386/tm-nbsd.h: Update copyright years.
12078 (HAVE_SSE_REGS): Define.
12079 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12080 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12081 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12082 (SIGCONTEXT_PC_OFFSET): Remove.
12083 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12084
a752853e
AC
120852002-01-05 Andrew Cagney <ac131313@redhat.com>
12086
12087 * configure.tgt: Remove powerpc-*-macos* target.
12088 * config/m68k/xm-mpw.h: Delete file.
12089 * config/xm-mpw.h: Delete file.
12090 * ser-mac.c: Delete file.
12091 * mpw-make.sed: Delete file.
12092 * mpw-config.in: Delete file.
12093 * mac-xdep.c: Delete file.
12094 * mac-gdb.r: Delete file.
12095 * mac-defs.h: Delete file.
12096 * mac-nat.c: Delete file.
12097 * config/powerpc/macos.mh: Delete file.
12098 * config/powerpc/macos.mt: Delete file.
12099 * config/powerpc/nm-macos.h: Delete file.
12100 * config/powerpc/tm-macos.h: Delete file.
12101 * source.c (openp, open_source_file): Remove obsolete code.
12102 * top.c (gdb_readline): Ditto.
12103 * utils.c (query): Ditto.
12104 * event-top.c (display_gdb_prompt): Ditto.
12105 * Makefile.in (ser-mac.o): Delete obsolete target.
12106 * NEWS: Update.
12107
d7449b42
AC
121082002-01-04 Andrew Cagney <ac131313@redhat.com>
12109
12110 * defs.h (BIG_ENDIAN): Delete macro definition.
12111 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12112 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12113 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12114 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12115 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12116 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12117 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12118 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12119 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12120 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12121 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12122 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12123 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12124 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12125 * gdbarch.c: Re-generate.
12126
356374e8
DJ
121272002-01-04 Daniel Jacobowitz <drow@mvista.com>
12128
12129 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12130 for core files.
12131
a2b8f8f8
JT
121322002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12133
12134 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12135
12466af9
AC
121362002-01-04 Andrew Cagney <ac131313@redhat.com>
12137
12138 * value.h (value_ptr): Delete typedef.
12139
3549ab40
JT
121402002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12141
12142 * i386nbsd-nat.c: Update copyright years.
12143 Include i386-tdep.h.
12144
fedbd091
EZ
121452002-01-04 Elena Zannoni <ezannoni@redhat.com>
12146
12147 * stabsread.c: Update copyright years.
12148
12149 From Debashis Mahata <debashis.mahata@wipro.com>:
12150 (read_struct_fields): Deal with Sun C compiler erroneous stab
12151 output for structs and unions.
fec8b34f 12152 Fix PR gdb/269.
fedbd091 12153
eb43544b
DJ
121542002-01-04 Daniel Jacobowitz <drow@mvista.com>
12155
12156 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12157 prototype.
12158
1514d34e
DJ
121592002-01-04 Daniel Jacobowitz <drow@mvista.com>
12160
12161 * cp-abi.c: Fix whitespace.
12162 (baseclass_offset): New wrapper function.
12163 * cp-abi.h (baseclass_offset): Add prototype.
12164 (struct cp_abi_ops): Add baseclass_offset pointer.
12165
12166 * valops.c (vb_match): Move to...
12167 * gnu-v2-abi.c (vb_match): here.
12168 * valops.c (baseclass_offset): Move to...
12169 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12170
12171 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12172
12173 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12174 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12175 * hpacc-abi.c (init_hpacc_ops): Likewise.
12176
7f8c9282
DJ
121772002-01-04 Daniel Jacobowitz <drow@mvista.com>
12178
12179 * valops.c (find_overload_match): Accept obj as a
12180 reference parameter. Update it before returning.
12181 * value.h (find_overload_match): Update prototype.
12182 * eval.c (evaluate_subexp_standard): Pass object to
12183 find_overload_match by reference.
12184
f23631e4
AC
121852002-01-03 Andrew Cagney <ac131313@redhat.com>
12186
12187 * valarith.c: Replace value_ptr with struct value pointer. Remove
12188 register attribute from value declarations.
12189 * valops.c: Ditto.
12190 * value.h: Ditto.
12191 * scm-lang.c (scm_lookup_name): Ditto.
12192
79e10fab 121932002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12194
79e10fab
AC
12195 Abstract the functionality of iterating over mapped memory
12196 regions into a general purpose iterator function.
abf22e64 12197 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12198 iterator for memory sections.
12199 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12200 (solib_mappings_callback): New function, callback for above.
12201 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12202 (info_mappings_callback): New function, callback for above.
12203
12204 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12205
c5ad026a
MK
122062002-01-01 Mark Kettenis <kettenis@gnu.org>
12207
d2a7c97a
MK
12208 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12209 * i386-tdep.c: Include "elf-bfd.h".
12210 (process_note_abi_tag_sections): New function.
12211 (i386_gdbarch_init): Add code to recognize various OS/ABI
12212 combinations.
12213
c5ad026a
MK
12214 * maint.c (_initialize_maint_cmds): Add missing \ in
12215 string-literal.
12216
a1a5b71e 12217For older changes see ChangeLog-2001
c906108c
SS
12218\f
12219Local Variables:
12220mode: change-log
12221left-margin: 8
12222fill-column: 74
12223version-control: never
12224End:
This page took 1.103627 seconds and 4 git commands to generate.