* x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1f2baacc
MK
12002-10-25 Mark Kettenis <kettenis@gnu.org>
2
0c1a73d6
MK
3 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
4 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
5 (x86_64_init_abi): ...new function.
6
6aee4d54 7 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
8 * i386v-nat.c: Include "i386-tdep.h".
9
8f9cbe01
AC
102002-10-25 Andrew Cagney <cagney@redhat.com>
11
5f11f355
AC
12 * gdbtypes.c (address_space_name_to_int): Update.
13 (address_space_int_to_name): Update.
14 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
15 multi-arch predicate.
16 (address_class_name_to_type_flags): Ditto.
17 * gdbarch.h, gdbarch.c: Re-generate.
18
8f9cbe01
AC
19 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
20
e8d96a5d
MH
212002-10-24 Martin M. Hunt <hunt@redhat.com>
22
23 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
24
fe39c653
EZ
252002-10-24 Elena Zannoni <ezannoni@redhat.com>
26
27 * symtab.h (INIT_SAL): Delete macro.
28 (init_sal): Export.
29 * symtab.c (init_sal): New function.
30
31 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
32 to init_sal function call.
33 (find_sal_from_funcs_and_line): Ditto.
34 (all_sals_for_line): Ditto.
35 * breakpoint.c (create_internal_breakpoint): Ditto.
36 (create_fork_vfork_event_catchpoint): Ditto.
37 (create_exec_event_catchpoint): Ditto.
38 (parse_breakpoint_sals): Ditto.
39 (watch_command_1): Ditto.
40 (handle_gnu_4_16_catch_command): Ditto.
41 (clear_command): Ditto.
42 * hppa-tdep.c (child_enable_exception_callback): Ditto.
43 * infcmd.c (run_stack_dummy): Ditto.
44 * infrun.c (process_event_stop_test): Ditto.
45 (check_sigtramp2): Ditto.
46 (step_over_function): Ditto.
47 * linespec.c (decode_line_2): Ditto.
48 (decode_line_1): Ditto.
49 * source.c (line_info): Ditto.
50 * symtab.c (find_pc_sect_line): Ditto.
51
baed091b
ML
522002-10-24 Michal Ludvig <mludvig@suse.cz>
53
54 * dwarf2cfi.c (struct context)
55 (struct context_reg): Moved to dwarf2cfi.h
56 (context_alloc, frame_state_alloc, context_cpy):
57 Made extern instead of static, removed prototypes.
58 * dwarf2cfi.h (struct context)
59 (struct context_reg): New, moved from dwarf2cfi.c
60 (context_alloc, frame_state_alloc, context_cpy):
61 New prototypes.
62 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
63 Changed from static to extern.
64 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
65 (LINUX_SIGCONTEXT_FP_OFFSET)
66 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
67 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
68 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
69 * x86-64-tdep.c (x86_64_gdbarch_init): Several
70 set_gdbarch_*() calls now use x86-64 specific functions
71 instead of DWARF2 CFI ones.
72 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
73 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
74 (x86_64_init_extra_frame_info): New prototypes.
75
c38da1af
DC
762002-10-23 David Carlton <carlton@math.stanford.edu>
77
78 * linespec.c: #include "parser-defs.h".
79 Delete prototype for find_template_name_end.
80 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
81
fb9b6b35
JJ
822002-10-23 Jeff Johnston <jjohnstn@redhat.com>
83
84 * NEWS: add recent mi fixes.
85 * varobj.c (struct varobj): Add new "updated" flag.
86 (new_variable): Default "updated" flag to 0.
87 (varobj_set_value): Set "updated" flag to 1 if value
88 changes.
89 (varobj_update): Check varobj "updated" flag before
90 comparing old and refreshed values. Fix for
91 PR gdb/702.
92
8da065d5
DC
932002-10-23 David Carlton <carlton@math.stanford.edu>
94
95 * parse.c (parse_exp_1): Use BLOCK_START.
96 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
97 SYMBOL_BLOCK_VALUE.
98 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
99
87f2f08c
DC
1002002-10-23 David Carlton <carlton@math.stanford.edu>
101
102 * symtab.c: Delete cplusplus_hint.
103 Delete prototype for find_template_name_end.
104
88cda038
EZ
1052002-10-23 Elena Zannoni <ezannoni@redhat.com>
106
107 * symtab.h: Update comment.
108
2625d86c
MS
1092002-10-23 Michael Snyder <msnyder@redhat.com>
110
111 * printcmd.c (address_info): Restore quotes in output.
112 * valops.c (value_of_local): Restore quotes in error message.
113
9cc0d196
EZ
1142002-10-23 Elena Zannoni <ezannoni@redhat.com>
115
116 * symtab.c (symbol_demangled_name): New function.
117 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
118 turning most of it into a function.
119 (symbol_demangled_name): Export.
120
19de93d0
MS
1212002-10-23 Michael Snyder <msnyder@redhat.com>
122
123 * valops.c (value_of_local): Restore quotes in error message.
124
89aad1f9
EZ
1252002-10-23 Elena Zannoni <ezannoni@redhat.com>
126
127 * symtab.c (symbol_init_language_specific): New function.
128 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
129 turning most of it into a function.
130 (symbol_init_language_specific): Export.
131
d9fa45fe
DC
1322002-10-23 David Carlton <carlton@math.stanford.edu>
133
134 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
135 (dwarf_attr_name): Ditto.
136 (dwarf_type_encoding_name): Ditto.
137 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
138 (process_die): Handle DW_TAG_namespace,
139 DW_TAG_imported_declaration, DW_TAG_imported_module.
140 (read_namespace): New function.
141
1045b512
JB
1422002-10-22 Joel Brobecker <brobecker@gnat.com>
143
144 * configure.in: Define NEW_PROC_API on Interix too.
145 * configure: Regenerate.
146
1472002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
148
149 * configure: Regenerate using the proper version of autoconf.
150
3987b9d4
EZ
1512002-10-21 Elena Zannoni <ezannoni@redhat.com>
152
153 * findvar.c (read_var_value): Temporarily disable TLS code, until
154 complete TLS support is added.
155
9d774e44
EZ
1562002-10-21 Jim Blandy <jimb@redhat.com>
157 Elena Zannoni <ezannoni@redhat.com>
158
159 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
160 for thread local storage locations.
161 (struct symbol): Add objfile field.
162 (SYMBOL_OBJFILE): Define.
163 * dwarf2read.c (is_thread_local): New static variable.
164 (new_symbol): If variable is in thread local fill in address class
165 and objfile appropriately.
166 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
167 stack operation.
168 * printcmd.c (address_info): Print the information for thread
169 local storage variable.
170 * findvar.c (read_var_value): In case of thread local variable,
171 defer to the target vector code to compute address.
172
bc4a16ae
EZ
1732002-10-21 Elena Zannoni <ezannoni@redhat.com>
174
175 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
176 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
177
407caf07
EZ
1782002-10-21 Elena Zannoni <ezannoni@redhat.com>
179
180 * symtab.h (address_class): Rename
181 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
182 * hpread.c (hpread_process_one_debug_symbol): Ditto.
183 * printcmd.c (address_info): Ditto.
184 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
185
005328e3
MK
1862002-10-20 Mark Kettenis <kettenis@gnu.org>
187
afdb036a
MK
188 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
189 DBREG_DRX macro to acces debug registers.
190
ca02e098
MK
191 * Makefile.in (i386obsd-tdep.o): New target.
192
03cc47f7
MK
193 * solib-sunos.c: Include "bcache.h" and "regcache.h".
194 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
195
005328e3
MK
196 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
197 * config/i386/obsd.mt: New file.
198 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
199 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
200 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
201 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
202 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
203 * i386obsd-tdep.c: New file.
204
9c96f9f2
AF
2052002-10-19 Adam Fedor <fedor@gnu.org>
206
207 * objc-exp.y (name_not_typename): Fix invalid comment.
208
ce1ed485
MK
2092002-10-20 Mark Kettenis <kettenis@gnu.org>
210
211 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
212 to allocate partial syms and macro byte caches.
213
1efc7aaa
DC
2142002-10-18 David Carlton <carlton@math.stanford.edu>
215
216 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
217
7e1d63ec
AF
2182002-10-18 Adam Fedor <fedor@gnu.org>
219
220 * stabsread.c (find_name_end): New function.
221 (define_symbol): Use it.
222
6e8d29a9
DJ
2232002-10-18 Daniel Jacobowitz <drow@mvista.com>
224
225 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
226 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
227 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
228 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
229
1efc7aaa 2302002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
231
232 * symfile.h: Add opaque declaration for struct obstack.
233 Declare obsavestring to take a const char *.
234 * symfile.c (obsavestring): Make first argument a const char *.
235
1aeae86e
AF
2362002-10-16 Adam Fedor <fedor@gnu.org>
237
238 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
239 names when matching breakpoints in current file.
240
8b2dbe47
KB
2412002-10-16 Kevin Buettner <kevinb@redhat.com>
242
243 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
244 (read_tag_pointer_type): Add address class support.
245 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
246 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
247 New methods.
248 * gdbarch.h, gdbarch.c: Regenerate.
249 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
250 (make_type_with_address_space, recursive_type_dump): Add address
251 class support.
252 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
253 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
254 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
255
74451869
KD
2562002-10-16 Klee Dienes <kdienes@apple.com>
257
258 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
259 to get the last character of a char[] buffer, not
260 name[sizeof(vptr_name)-1].
261
ff4cb3e8
AF
2622002-10-14 Adam Fedor <fedor@gnu.org>
263
264 * symtab.h: New objc_specific struct.
265 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
266 (SYMBOL_DEMANGLED_NAME): Likewise.
267
da2cf7e0
AF
2682002-10-14 Adam Fedor <fedor@gnu.org>
269
270 * symfile.c (init_filename_language_table): Add ObjC file extension.
271
4a351cef
AF
2722002-10-14 Adam Fedor <fedor@gnu.org>
273
274 * utils.c (puts_filtered_tabular): New function.
275 (fprintf_symbol_filtered): Get ObjC demangled name.
276 * defs.h (puts_filtered_tabular): Declared.
277
9750e763
KB
2782002-10-14 Kevin Buettner <kevinb@redhat.com>
279
280 * c-lang.h (c_type_print_varspec_prefix): Delete.
281 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
282 ``need_post_space'' parameter. Adjust all callers.
283
eee771c1
DJ
2842002-10-14 Daniel Jacobowitz <drow@mvista.com>
285
286 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
287 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
288 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
289 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
290
46c82446
AF
2912002-10-13 Adam Fedor <fedor@gnu.org>
292
293 * source.c (print_source_lines): Update comments.
294
d069f99d
AF
2952002-10-13 Adam Fedor <fedor@gnu.org>
296
297 * valops.c (value_of_local): New function.
298 (value_of_this): Use it.
299 * value.h (value_of_local): Declared.
300
53c551b7
AF
3012002-10-13 Adam Fedor <fedor@gnu.org>
302
303 * parse.c: (length_of_subexp, prefixify_subexp): Handle
304 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
305
eb392fbf
AF
3062002-10-12 Adam Fedor <fedor@gnu.org>
307
308 * language.c (binop_result_type): Add language_objc to case.
309 (integral_type): Likewise.
310 (character_type): Likewise.
311 (string_type): Likewise.
312 (boolean_type): Likewise.
313 (structured_type): Likewise.
314 (binop_type_check): Likewise.
315
e2b23ee9
AF
3162002-10-11 Adam Fedor <fedor@gnu.org>
317
318 * printcmd.c (address_info): Print 'self' for ObjC.
319
b01ab485
AF
3202002-10-11 Adam Fedor <fedor@gnu.org>
321
322 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
323 OP_SELF.
324
806e6073
AF
3252002-10-11 Adam Fedor <fedor@gnu.org>
326
327 * language.h (CAST_IS_CONVERSION): Add language_objc.
328
50f85cdf
AF
3292002-10-11 Adam Fedor <fedor@gnu.org>
330
331 * defs.h (enum language): Add language_objc.
332
0d540cdf
KD
3332002-10-11 Klee Dienes <kdienes@apple.com>
334
335 * findvar.c (read_memory_typed_address): New function.
336 * gdbcore.h (read_memory_typed_address): Add prototype.
337 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
338 to read a value destined for a CORE_ADDR, not read_memory_integer.
339 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
340 (f77_get_dynamic_lowerbound): Ditto.
341
d5dc7960
MH
3422002-10-11 Martin M. Hunt <hunt@redhat.com>
343
344 * utils.c (string_to_core_addr): After turning string into
345 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
346 which will do necessary sign-extension, etc.
347
8343f86c
DJ
3482002-10-11 Daniel Jacobowitz <drow@mvista.com>
349
350 * c-exp.y (THIS): Delete token and grammar rule.
351 (yylex): Don't return THIS.
352 * cp-valprint.c (vtbl_ptr_name_old): Delete.
353 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
354 * demangle.c (cplus_markers): Update comment. Put '$'
355 first. Remove CPLUS_MARKER.
356 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
357 * jv-exp.y (THIS): Delete token and grammar rule.
358 (yylex): Don't return THIS.
359 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
360 * objc-exp.y (THIS): Delete token and grammar rule.
361 (yylex): Don't return THIS.
362 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
363 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
364 (read_member_functions): Likewise for opname.
365 (read_tilde_fields): Use is_cplus_marker.
366
367 * defs.h (CPLUS_MARKER): Don't define.
368 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
369 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
370 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
371 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
372 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
373
374 * config/i386/tm-i386v4.h: Delete file.
375 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
376 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
377 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
378 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
379 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
380 * config/i386/i386sco5.mt (TM_FILE): Likewise.
381 * config/i386/i386v4.mt (TM_FILE): Likewise.
382 * config/i386/ncr3000.mt (TM_FILE): Likewise.
383
967c0d83
MM
3842002-10-10 Marko Mlinar <markom@opencores.org>
385
386 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
387 accidentially not commited 2002-10-09
388 * gdbarch.h, gdbarch.c: Re-generate.
389
f74fa174
MM
3902002-10-09 Marko Mlinar <markom@opencores.org>
391
392 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
393 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
394 * gdbarch.h, gdbarch.c: Re-generate.
395
57349743
JB
3962002-10-08 Petr Sorfa <petrs@caldera.com>
397
398 Revised and re-submitted by John Wolfe <jlw@caldera.com>
399
400 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
401 so we can work on more than one compilation unit at a time. This
402 helps prepare GDB to handle inter-CU die references.
403 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
404 the code to be defined before struct comp_unit_head.
405 (comp_unit_head): Added new members - offset, cu_head,
406 begin_die, next and dwarf2_abbrevs.
407 (dwarf2_abbrevs): Removed single static var; now member of
408 struct comp_unit_head.
409 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
410 members.
411 (psymtab_to_symtab_1): Changed to work with the new
412 struct comp_unit_head.
413 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
414 constructs the dwarf2_abbrevs[] inside the cu_header.
415 (dwarf2_empty_abbrev_table): Now expects a ptr to a
416 dwarf2_abbrev table to clean up.
417 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
418 handling of dwarf2_abbrevs inside the cu_header.
419 (read_partial_die): Now supports the call to the new
420 dwarf2_lookup_abbrev.
421 (read_full_die): Now supports the call to the new
422 dwarf2_lookup_abbrev.
423
4092aadb
CF
4242002-10-06 Christopher Faylor <cgf@redhat.com>
425
426 * Makefile.in (install-gdbtk): Add missing continuation backslash to
427 insure that shell variables, such as "transformed_name" are propagated
428 to later shell statements in rule.
429
af0b2512
MK
4302002-10-06 Mark Kettenis <kettenis@gnu.org>
431
432 * config/i386/nm-i386sco.h: Add protection against
433 multiple-inclusion. Include "i386/nm-i386v.h".
434 (REGISTER_U_ADDR): Remove define.
435 (i386_register_u_addr): Remove prototype.
436
d6020d45
MS
4372002-10-04 Michael Snyder <msnyder@redhat.com>
438
439 * m32r-stub.c (handle_exception): Make sure exception is "trap"
440 before treating it as a single-step event.
441
7248f48e
AF
4422002-10-03 Adam Fedor <fedor@gnu.org>
443
444 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
445 (objc_demangle): Remove assignment in if statements, Replace
446 free with xfree.
447 (add_msglist): Likewise.
448 (end_msglist): Likewise.
449 (complare_selectors): Likewise.
450 (selectors_info): Likewise.
451 (compare_classes): Likewise.
452 (classes_info): Likewise.
453 (print_object_command): Likewise.
454 (find_objc_msgcall_submethod): Replace PTR with void *.
455 * objc-lang.h: Remove check for __STDC__.
456
52c6a6ac
JJ
4572002-10-03 Jeff Johnston <jjohnstn@redhat.com>
458
459 * ui-out.h (ui_out_field_fmt_int): New prototype.
460 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
461 of field width and alignment.
462 * stack.c (print_frame_info_base): When printing frame level, use
463 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
464 PR gdb/192
465
7e3cec17
JJ
4662002-10-03 Jeff Johnston <jjohnstn@redhat.com>
467
468 * MAINTAINERS: Add self to Write After Approval list.
469
a58dd373
EZ
4702002-10-02 Elena Zannoni <ezannoni@redhat.com>
471
472 * infcmd.c (interrupt_target_command_wrapper): Delete.
473 (interrupt_target_command): Make non static.
474 (nofp_registers_info): Make static.
475 * stack.c (return_command_wrapper): Delete.
476 (return_command): Make non static.
477
cee6ddeb
EZ
4782002-10-02 Elena Zannoni <ezannoni@redhat.com>
479
480 * event-top.c (gdb_setup_readline): New function. Code moved from
481 _initialize_event_loop().
482 (_initialize_event_loop): Call gdb_setup_readline().
483
c4ed33b9
AC
4842002-10-02 Andrew Cagney <ac131313@redhat.com>
485
486 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
487 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
488 * gdbarch.h, gdbarch.c: Re-generate.
489
cef4f5dd
DJ
4902002-10-02 Daniel Jacobowitz <drow@mvista.com>
491
492 Fix PR gdb/778
493 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
494 before recursing.
495 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
496 of fill_in_vptr_fieldno.
497
36dc181b 4982002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 499
36dc181b
EZ
500 * inferior.h (registers_info, stepi_command, nexti_command,
501 continue_command, interrupt_target_command): Export from infcmd.c.
502 * frame.h (args_info, selected_frame_level_changed_hook,
503 return_command): Export from stack.c.
504 * v850ice.c (stepi_command, nexti_command, continue_command): use
505 prototypes from inferior.h.
506 * tracepoint.c (registers_info, args_info, locals_info): Use
507 prototypes from frame.h and inferior.h.
508 * Makefile.in (mi-main.o): Add dependency on frame.h.
509
6f99cb26
AC
5102002-10-02 Andrew Cagney <ac131313@redhat.com>
511
da3eff49
AC
512 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
513 value in register 3 adjusted by ppc_gp0_regnum.
514
6f99cb26
AC
515 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
516
da615bee
MM
5172002-10-02 Marko Mlinar <markom@opencores.org>
518
519 * MAINTAINERS: Add myself to the Write After Approval list.
520
d154bee2
AO
5212002-10-01 Alexandre Oliva <aoliva@redhat.com>
522
62a49b2c
AO
523 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
524 of the section for the N64 ABI, fixed.
525
d154bee2
AO
526 * config/mips/tm-irix6.h: Include solib.h.
527
ed348acc
EZ
5282002-10-01 Elena Zannoni <ezannoni@redhat.com>
529
530 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
531 GNU operators.
532
da0f9dcd
AC
5332002-10-01 Andrew Cagney <ac131313@redhat.com>
534
535 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
536 and that "mi0" syntax has been removed.
537
bdf64bac
DC
5382002-09-30 David Carlton <carlton@math.stanford.edu>
539
540 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
541 * ppc-sysv-tdep.c: #include "gdb_string.h".
542 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
543 pacify GCC.
544
54c2a1e6
AC
5452002-10-01 Andrew Cagney <ac131313@redhat.com>
546
547 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
548 "vrsave"'s register number.
549
cedea778
AC
5502002-09-30 Andrew Cagney <ac131313@redhat.com>
551
552 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
553 use frame_unwind_signed_register to obtain the PC.
554 (mips_frame_chain): Handle a generic dummy frame.
555 (mips_init_extra_frame_info): When a generic dummy frame, don't
556 re-compute the frame base.
557 (mips_pop_frame): Handle generic dummy frames.
558 (mips_gdbarch_init): When generic dummy frames, set
559 use_generic_dummy_frames, push_dummy_frame to
560 generic_push_dummy_frame, pc_in_call_dummy to
561 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
562 generic_save_dummy_frame_tos.
563
68315eb8
AC
5642002-09-30 Andrew Cagney <ac131313@redhat.com>
565
566 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
567 against TOP when TOP was explictly set.
568 (generic_push_dummy_frame): Set TOP to zero.
569
3b8630c3
EZ
5702002-09-30 Elena Zannoni <ezannoni@redhat.com>
571
572 * event-loop.c (start_event_loop): Rename variable 'result' to
573 'gdb_result', to avoid conflicts with upcoming intepreters changes.
574
28ee05e9
KS
5752002-09-30 Keith Seitz <keiths@redhat.com>
576
577 * gdb-events.sh (selected_thread_changed): New event.
578 * gdb-events.c: Regenerated.
579 * gdb-events.h: Regenerated.
580
6eecb1c8
HPN
5812002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
582
583 * MAINTAINERS: Add self to Write After Approval list.
584
92df71f0
FN
5852002-09-30 Fernando Nasser <fnasser@redhat.com>
586
3b8630c3
EZ
587 * disasm.c: New file.
588 * disasm.h: New file.
92df71f0
FN
589 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
590 (compare_lines): Ditto.
591 (dump_insns): Ditto.
3b8630c3
EZ
592 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
593 argument.
92df71f0 594 (do_assembly_only): Ditto.
3b8630c3
EZ
595 (do_disassembly): Renamed to gdb_disassembly and moved to
596 disasm.c. Sdded uiout argument.
597 * Makefile.in: Add new files. Reorder SFILES list. Update
598 dependencies. Include libgdb.a later in the insight executable.
92df71f0 599
0c22854d
AC
6002002-09-29 Andrew Cagney <ac131313@redhat.com>
601
602 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
603 bfd/elf64-alpha-fbsd.c.
604
e67f2023
AC
6052002-09-29 Andrew Cagney <ac131313@redhat.com>
606
607 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
608 i386gnu-tdep.c.
609
89396210
AC
6102002-09-29 Andrew Cagney <ac131313@redhat.com>
611
612 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
613 __FUNCTION__.
614 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
615 function name.
616 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
617 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
618 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
619 (S_msg_sig_post_reply): Ditto.
620
7079c36c
CV
6212002-09-28 Corinna Vinschen <vinschen@redhat.com>
622
89396210
AC
623 * sh-tdep.c (sh_use_struct_convention): Use definition according
624 to ABI.
7079c36c
CV
625 (sh_push_arguments): Store in register with correct endianess.
626 (sh_default_store_return_value): Ditto.
627 (sh_gdbarch_init): Set sizeof long double to 8.
628
975ac915
MK
6292002-09-27 Mark Kettenis <kettenis@gnu.org>
630
631 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
632 Fix some whitespace problems.
633
9bbe19fb
DC
6342002-09-27 David Carlton <carlton@math.stanford.edu>
635
636 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
637 (mcore-tdep.o): Ditto.
638 (ns32k-tdep.o): Ditto.
639 (ns32knbsd-tdep.o): Ditto.
640 (sh3-rom.o): Ditto.
641 (vax-tdep.o): Ditto.
642 * cris-tdep.c: #include "gdb_string.h"
643 * mcore-tdep.c: Ditto.
644 * ns32k-tdep.c: Ditto.
645 * ns32knbsd-tdep.c: Ditto.
646 * sh3-rom.c: Ditto.
647 * vax-tdep.c: Ditto.
648
43b2fdc7
DC
6492002-09-27 David Carlton <carlton@math.stanford.edu>
650
651 * config/djgpp/fnchange.lst: Add entries for
652 gdb/testsuite/gdb.c++/m-static files.
653
e8cfbbd9
JW
6542002-09-27 Jim Wilson <wilson@redhat.com>
655
656 * MAINTAINERS: Add myself to the Write After Approval list.
657
43b2fdc7 6582002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
659
660 * mips-tdep.c (find_proc_desc): Initialize startaddr.
661
662
9f3b7f07
AC
6632002-09-26 Andrew Cagney <ac131313@redhat.com>
664
665 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
666 frame.
667
11269d7e
AC
6682002-09-26 Andrew Cagney <ac131313@redhat.com>
669
670 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
671 (rs6000_struct_return_address): Delete variable.
672 (rs6000_store_struct_return): Update.
673 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
674 deprecated_extract_struct_value_address.
675 (rs6000_frame_align): New function.
676 (rs6000_gdbarch_init): Set frame_align.
677
f15ab4a7
AC
6782002-09-26 Andrew Cagney <ac131313@redhat.com>
679
680 From Grace Sainsbury <graces@redhat.com>:
681 * Makefile.in (gdbtk-main.o): New target.
682 (gdb.o): New target.
683 (main_h): Define.
684 (main.o): Update dependencies.
685 (gdb$(EXEEXT)): Add gdb.o.
686 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
687 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
688 (SUBDIR_GDBTK_CLEAN): Set.
689 (install-gdbtk): Install the insight binary.
690 (uninstall-gdbtk): New target.
691 (all-gdbtk, clean-gdbtk): New rule.
692 * top.c (use_windows): Default to zero.
693 * main.c: Include "main.h".
694 (main): Delete.
695 (struct captured_main_args): Delete.
696 (gdb_main): New function.
697 * main.h: New file.
698 * gdb.c: New File.
699
e36180d7
AC
7002002-09-25 Andrew Cagney <cagney@redhat.com>
701
702 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
703 (frame_map_regnum_to_name): New function.
704 (frame_map_name_to_regnum): New function.
705 * frame.h (frame_map_name_to_regnum): Declare.
706 (frame_map_regnum_to_name): Declare.
707 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
708 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
709 * parse.c: Do not include "builtin-regs.h".
710 (target_map_name_to_register): Delete function.
711 (write_dollar_variable): Use frame_map_name_to_regnum.
712 * parser-defs.h (target_map_name_to_register): Delete declaration.
713 * expprint.c: Include "frame.h".
714 (print_subexp): Use frame_map_regnum_to_name.
715 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
716 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
717
8b69000d
AC
7182002-09-25 Andrew Cagney <ac131313@redhat.com>
719
720 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
721 wasn't saved, and the next innermost frame is a dummy, return the
722 dummy frame's link register.
723
046ca86a
JB
7242002-09-24 Jim Blandy <jimb@redhat.com>
725
726 Fix from Paul Breed:
727 * main.c (captured_main): Add a `break' after the case for 'b'.
728
94b66fa7
KS
7292002-09-24 Keith Seitz <keiths@redhat.com>
730
731 * varobj.c (c_type_of_child): Use get_target_type instead
732 of TYPE_TARGET_TYPE.
733
c214a6fd
FN
7342002-09-22 Fernando Nasser <fnasser@redhat.com>
735
53cb0458
FN
736 * source.c (get_current_or_default_source_symtab_and_line): Remove
737 function.
738 (set_default_source_symtab_and_line): New function. Attempts to
739 determine a source file to list lines from if one is not currently
740 defined.
741 (get_current_source_symtab_and_line): Initialize sal.pc and
742 sal.end fields.
743 (set_current_source_symtab_and_line): Mark argument as const.
744 * source.h: Update declarations and comments.
745 * linespec.c (decode_line_1): Replace call to removed routine above.
746 * stack.c (print_frame_info_base): Ditto.
747 * cli/cli-cmds.c (edit_command): Ditto.
748 (list_command): Ditto.
749
7502002-09-22 Fernando Nasser <fnasser@redhat.com>
751
d6020d45 752 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 753 sal.pc and sal.end fields.
c214a6fd
FN
754 (get_current_or_default_source_symtab_and_line): Ditto.
755 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
756 so we do not cause a new source symtab to be searched for (reverting an
757 unintentional change from the 2002-09-20 patch).
758 * scm-lang.c (scm_unpac): Ditto.
759
cc3b68a5
AC
7602002-09-21 Andrew Cagney <cagney@redhat.com>
761
762 * complaints.c (symfile_explanations): Remove new-line from
763 ``isolated_message''.
764 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
765 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
766
5835abe7
NC
7672002-09-20 Nick Clifton <nickc@redhat.com>
768
769 * NEWS: Announce that V850EA ISA is no longer supported.
770 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
771
a15ef5f5
DC
7722002-09-20 David Carlton <carlton@math.stanford.edu>
773
06ba1b39
DC
774 * Makefile.in (c-lang.o): Correct dependencies.
775 (utils.o): Gather dependencies.
776 (charset.o): Move.
a15ef5f5
DC
777 * c-lang.c: #include "gdb_string.h"
778
87885426
FN
7792002-09-20 Fernando Nasser <fnasser@redhat.com>
780
781 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
782 * cli/cli-cmds.c (list_command): New function. Implements the new
783 cli edit command.
784 (_init_cli_cmds): Add new command definition.
785 * gdb.1: Document edit command.
786 * doc/gdb.texinfo: Document edit command.
787
7882002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
789
790 * source.c: Make global variables current_source_symtab and
791 current_source_line static.
792 (list_command): Moved to cli/cli-cmds.c.
793 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
794 (get_first_line_listed): New accessor function.
795 (get_lines_to_list): New accessor function.
796 (get_current_source_symtab_and_line): New function. Retrieves the
797 position in the source code that we consider current.
798 (get_current_or_default_source_symtab_and_line): New function.
799 Like the above but attempts to determine a default position if one
800 is not currently defined.
801 (set_current_source_symtab_and_line): New function. Sets the source
802 code position considered current and returns the previously set one.
803 (clear_current_source_symtab_and_line): Reset stored information about
804 a current source line.
805 (_initialize_source): Remove registration for the "list" command and
806 its alias.
807 * source.h: Add declarations for the new functions above.
808 * symtab.h: Remove declarations for the global variables mentioned
809 above.
810 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
811 obtain current source line.
812 * linespec.c (decode_line_1): Ditto.
813 * macroscope.c (default_macro_scope): Ditto.
814 * scm-lang.c (scm_unpac): Ditto.
815 * stack.c (print_frame_info_base): Ditto.
816 * symfile.c (clear_symtab_users): Ditto.
817 * symtab.c (decode_line_spec): Ditto.
818 * cli/cli-cmds.c (list_command): Moved here from source.c.
819 (ambiguous_line_spec): Moved here from source.c.
820 (_init_cli_cmds): Add definition for "list" and its alias.
821 * Makefile.in: Update dependencies.
822
ddd216ea
CV
8232002-09-20 Corinna Vinschen <vinschen@redhat.com>
824
825 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
826 with what gcc thinks is correct.
827
6d305052
CV
8282002-09-20 Corinna Vinschen <vinschen@redhat.com>
829
830 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
831 multiple register push instruction.
832
234b45d4
KB
8332002-09-19 Jim Blandy <jimb@redhat.com>
834
835 Add support for distinct host and target character sets.
836 * charset.c, charset.h: New files.
837 * c-exp.y: #include "charset.h".
838 (yylex): Convert character and string literals to the target
839 character set, before returning them as the semantic value of the
840 token.
841 * c-lang.c: #include "charset.h".
842 (c_emit_char): Use charset-specific methods to recognize
843 characters with backslash escape forms, to decide which characters
844 to print literally and which to print using numeric escape
845 sequences, and to convert target characters to host characters
846 before printing.
847 * utils.c: #include "charset.h".
848 (no_control_char_error): New function.
849 (parse_escape): Use charset-specific methods to recognize
850 backslash escapes, parse `control character' notation, and convert
851 characters from the host character set to the target character set.
852 * configure.in: Set the default host character set.
853 Check where to find iconv, and what its argument types might be.
854 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
855 * Makefile.in (SFILES): List charset.c.
856 (COMMON_OBS): List charset.o.
857 (charset.o): New rule.
858 (charset_h): New header dependency variable.
859 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
860 (LIBICONV): New variable, set by configure.
861 (CLIBS): Include $(LIBICONV) here.
862 * aclocal.m4, config.in, configure: Regenerated.
863
525d6a61
JB
8642002-09-19 Joel Brobecker <brobecker@gnat.com>
865
866 * ada-exp.y: Add missing semicolons to end rules. Fixes a
867 bison 1.35 warning.
868
3ed93867
RE
8692002-09-19 Richard Earnshaw <rearnsha@arm.com>
870
871 * gdb_mbuild.sh: New file.
872
437666f8
AC
8732002-09-19 Andrew Cagney <ac131313@redhat.com>
874
875 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
876
389e51db
AC
8772002-09-18 Andrew Cagney <ac131313@redhat.com>
878
879 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
880 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
881 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
882 valops.c, value.h: Revert previous change.
883
3b4efeaa
MS
8842002-09-18 Michael Snyder <msnyder@redhat.com>
885
886 Preliminary support for Objective-C:
887 * defs.h (language_objc): New enum value.
888 (puts_filtered_tabular): Declaration only, exported from utils.c.
889 (skip_quoted): Delete, declared in completer.h.
890 * c-exp.y: Include completer.h.
891 * p-exp.y: Ditto.
892 * jv-exp.y: Ditto.
893 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
894 New operator enum values.
895 * language.h (CAST_IS_CONVERSION): Test for language_objc.
896 * language.c (binop_result_type): Handle language_objc case.
897 (integral_type, character_type, string_type, boolean_type,
898 structured_type, binop_type_check): Ditto.
899 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
900 (struct objc_specific): Add to general_symbol_info.
901 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
902 (SYMBOL_DEMANGLED_NAME): Handle objc case.
903 * parser-defs.h (struct objc_class_str): New struct type.
904 (start_msglist, end_msglist, add_msglist): Declaration only,
905 exported from objc-lang.c.
906 * value.h (value_of_local, value_nsstring,
907 call_function_by_hand_expecting_type): Exported from valops.c.
908 * valops.c (find_function_addr): Export.
909 (call_function_by_hand_expecting_type): New function.
910 (value_of_local): New function.
911 * symfile.c (init_filename_language_table): Add ".m" extension
912 for Objective-C.
913 * utils.c (puts_filtered_tabular): New function.
914 (fprintf_symbol_filtered): Add objc demangling support (disabled).
915 (set/show demangle): Extend help-string to refer to ObjC.
916 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
917 * stabsread.c (symbol_reference_defined): Objective-C symbols
918 may contain colons: make allowances when scanning stabs strings
919 for colons.
920 (objc_find_colon): New function.
921 * printcmd.c (address_info): If language == objc then print
922 "self" instead of "this".
923 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
924 OP_NSSTRING, and OP_SELF.
925 (prefixify_subexp): Ditto.
926 * source.c (print_source_lines): Mention objc in comment.
927 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
928 method names.
929
b9caf505
AC
9302002-09-18 Andrew Cagney <ac131313@redhat.com>
931
932 * complaints.h: Update copyright.
933 (struct complaints): Declare.
934 (struct complaint): Make `message' constant.
935 (internal_complaint): Declare.
936 (complaint): Declare.
937 (complaint_root): Delete declaration.
938 (symfile_complaints): Delete declaration.
939 (struct complaints): Add opaque declaration.
940 (clear_complaints): Add a complaints parameter.
941 * complaints.c: Update copyright.
942 (enum complaint_series): Define.
943 (complaint_root): Delete.
944 (struct complaints): Define.
945 (complaint_sentinel, symfile_complaint_book): New variables.
946 (symfile_explanations, symfile_complaints): New variables.
947 New variables.
948 (get_complaints): New function.
949 (vcomplaint): New function.
950 (complaint): New function.
951 (internal_complaint): New function.
952 (complain): Call vcomplain with symfile_complaint.
953 (clear_complaints): Rewrite.
954 (_initialize_complaints): Use add_setshow_command.
955 * Makefile.in (complaints.o): Update dependencies.
956 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
957 to call to clear_complaints.
958 (new_symfile_objfile, reread_symbols): Ditto.
959 (oldsyms_complaint): Delete.
960 (empty_symtab_complaint, unknown_option_complaint): Delete.
961 (free_named_symtabs): Use complaint instead of complain.
962
d2e6263c
MS
9632002-09-18 Michael Snyder <msnyder@redhat.com>
964
5fb2031a
AC
965 Contributed by Apple Computer, Inc. Merged with current sources
966 by Adam Fedor <fedor@doc.com> [cagney].
967
d2e6263c
MS
968 * objc-lang.c: First clean-up round: comments, indentation.
969 * objc-lang.h: Ditto.
970 * objc-lang.y: Ditto.
971
dec43320
AC
9722002-09-18 Andrew Cagney <ac131313@redhat.com>
973
974 * maint.c (maintenance_internal_error): Print the parameter as the
975 error message.
976 (maintenance_internal_warning): New function.
977 (_initialize_maint_cmds): Add command `maint internal-warning'.
978
979 * defs.h (internal_warning, internal_vwarning): Declare.
980 * utils.c (struct internal_problem): Define.
981 (internal_vproblem): New function.
982 (internal_warning): New function.
983 (internal_vwarning): New function.
984 (internal_warning_problem, internal_error_problem): New variables.
985 (internal_verror): Just call internal_vproblem.
986
b81654f1
MS
9872002-09-18 Michael Snyder <msnyder@redhat.com>
988
989 * objc-lang.c: New file, support for Objective-C.
990 Preliminary check-in, not yet integrated into gdb.
991 * objc-lang.h: New file.
992 * objc-exp.y: New file.
993
0542c381
AC
9942002-09-18 Andrew Cagney <ac131313@redhat.com>
995
7bda5e4a
AC
996 * infrun.c (signal_stop_update): Convert definition to ISO C.
997 (signal_print_update): Ditto.
998 (signal_pass_update): Ditto.
999 * inflow.c (terminal_save_ours): Ditto.
1000
5247b418
AC
1001 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1002 comments.
1003
fc60962c
AC
1004 * config/djgpp/fnchange.lst: Handle name clashes between
1005 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1006 bfd/coff-tic80.c.
1007
0542c381
AC
1008 * i386-linux-tdep.h: Fix tipo.
1009
5b924b9b
AF
10102002-09-18 Adam Fedor <fedor@gnu.org>
1011
1012 * MAINTAINERS: Add myself to the Write After Approval list.
1013
5afc051b
JB
10142002-09-18 Jim Blandy <jimb@redhat.com>
1015
1016 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1017 texthigh and textlow to reader-specific structs caused
1018 objfile_relocate to miss them. This is fixable, but the work that
1019 the change was supposed to prepare GDB for never got done anyway.
1020
eb944380
DC
10212002-09-18 David Carlton <carlton@math.stanford.edu>
1022
1023 * MAINTAINERS: Alphabetize Write After Approval list.
1024
948e66d9
DJ
10252002-09-18 Daniel Jacobowitz <drow@mvista.com>
1026
1027 Fix PR gdb/709
1028 * values.c (value_static_field): Call read_var_value.
1029
dc604539
AC
10302002-09-18 Andrew Cagney <ac131313@redhat.com>
1031
1032 * valops.c (hand_function_call): Align the initial stack pointer
1033 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1034 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1035 return value.
1036 * mips-tdep.c (mips_frame_align): New function.
1037 (mips_gdbarch_init): Set frame_align.
1038 * gdbarch.sh (FRAME_ALIGN): New method.
1039 * gdbarch.h, gdbarch.c: Re-generate.
1040
cb7e422f
ML
10412002-09-18 Michal Ludvig <mludvig@suse.cz>
1042
1043 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1044 registers.
1045
a094c6fb
AC
10462002-09-17 Andrew Cagney <ac131313@redhat.com>
1047
1048 * NEWS: Mention that MIPS $fp behavior changed.
1049 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1050 reference to FP_REGNUM.
1051 (mipsnbsd_cannot_store_register): Ditto.
1052 * mips-linux-nat.c: Update copyright.
1053 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1054 (mips_linux_cannot_store_register): Ditto.
1055 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1056 * config/mips/tm-mips.h: Update copyright.
1057 (FP_REGNUM): Delete macro.
1058 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1059 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1060 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1061 (mips_r3041_reg_names, mips_r3051_reg_names)
1062 (mips_r3081_reg_names): Replace "fp" with "".
1063 Fix PR gdb/480.
1064
45cf40d1
TR
10652002-09-17 Theodore A. Roth <troth@verinet.com>
1066
1067 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1068 generic_read_register_dummy() (PR gdb/703).
1069 (avr_push_return_address): #if 0 out unused vars.
1070 (avr_gdbarch_init): Enable use of avr_push_return_address().
1071
c7e701b5
MS
10722002-09-17 Michael Snyder <msnyder@redhat.com>
1073
d76ba2a5 1074 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
1075 RTE will take care of it.
1076
20bcf01c
AC
10772002-09-17 Andrew Cagney <ac131313@redhat.com>
1078
1079 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1080 invalid, return SP_REGNUM.
1081
009a9971 10822002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
1083
1084 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1085 point registers without sign extension.
1086
135c175f
AC
10872002-09-17 Andrew Cagney <cagney@redhat.com>
1088
1089 * blockframe.c (deprecated_read_register_dummy): Rename
1090 generic_read_register_dummy.
1091 * frame.c (frame_unwind_signed_register): New function.
1092 (frame_unwind_unsigned_register): New function.
1093 * frame.h (frame_unwind_signed_register): Declare.
1094 (frame_unwind_unsigned_register): Declare.
1095 (deprecated_read_register_dummy): Rename
1096 generic_read_register_dummy.
1097
1098 * h8300-tdep.c (h8300_frame_chain): Update.
1099 (h8300_frame_saved_pc): Update.
1100 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1101 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1102 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1103 (s390_frame_chain): Update.
1104 * v850-tdep.c (v850_find_callers_reg): Update.
1105 (v850_frame_saved_pc): Update.
1106 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1107 (m32r_find_callers_reg): Update.
1108 (m32r_frame_saved_pc): Update.
1109 * sh-tdep.c (sh_find_callers_reg): Update.
1110 (sh64_get_saved_pr): Update.
1111 (sh_init_extra_frame_info): Update.
1112 (sh_init_extra_frame_info): Update.
1113 (sh64_init_extra_frame_info): Update.
1114 (sh64_init_extra_frame_info): Update.
1115 * mcore-tdep.c (mcore_find_callers_reg): Update.
1116 (mcore_frame_saved_pc): Update.
1117 (mcore_init_extra_frame_info): Update.
1118 * i386-tdep.c (i386_frame_saved_pc): Update.
1119 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1120 (ia64_init_extra_frame_info): Update.
1121 (ia64_init_extra_frame_info): Update.
1122 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1123 * cris-tdep.c (cris_init_extra_frame_info): Update.
1124 * avr-tdep.c (avr_frame_chain): Update.
1125 (avr_init_extra_frame_info): Update.
1126 (avr_frame_saved_pc): Update.
1127 * arm-tdep.c (arm_find_callers_reg): Update.
1128 (arm_init_extra_frame_info): Update.
1129 (arm_frame_saved_pc): Update.
1130
a741e514
TT
11312002-09-17 Tom Tromey <tromey@redhat.com>
1132
1133 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1134 is "'".
1135
d1a8e808
CV
11362002-09-17 Corinna Vinschen <vinschen@redhat.com>
1137
1138 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1139 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1140 NEXT_PROLOGUE_INSN.
1141 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1142 NEXT_PROLOGUE_INSN.
1143
d9025a18
JB
11442002-09-16 Joel Brobecker <brobecker@gnat.com>
1145
1146 * osfsolib.c: Remove file, replaced by solib-osf.c.
1147 * Makefile.in: Remove compilation rules for osfsolib.c.
1148
1b2ef1b6
DC
11492002-09-16 David Carlton <carlton@math.stanford.edu>
1150
1151 * cp-valprint.c (cp_print_class_method): Correct args to
1152 check_stub_method_group.
1153
928e48af
CV
11542002-09-16 Corinna Vinschen <vinschen@redhat.com>
1155
1156 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1157 `set architecture'. Unify naming convention of functions.
1158 (h8300_skip_prologue): Improve prologue analysis.
1159 (h8300_push_arguments): Rewritten to more closely match GCC's
1160 bizarre argument-passing behavior, along with the comment describing
1161 said behavior.
1162 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1163 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1164 sim, remote-e7000.c, remote-hms.c and remote.c
1165
5e3397bb
MK
11662002-09-15 Mark Kettenis <kettenis@gnu.org>
1167
1168 * i386-tdep.c (gdb_print_insn_i386): Removed.
1169 (i386_print_insn): New function.
1170 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1171 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1172 tm_print_insn_info.
1173
f710f4fc
MK
11742002-09-14 Mark Kettenis <kettenis@gnu.org>
1175
1176 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1177 zero.
1178
db54fef4
CV
11792002-09-14 Corinna Vinschen <vinschen@redhat.com>
1180
1181 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1182 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1183 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1184
2becadee
CF
11852002-09-13 Christopher Faylor <cgf@redhat.com>
1186
1187 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1188
de17c821
DJ
11892002-09-13 Daniel Jacobowitz <drow@mvista.com>
1190
1191 * gdbtypes.c (check_stub_method): Make static.
1192 (check_stub_method_group): New function.
1193 * gdbtypes.h: Update prototypes.
1194 * cp-support.c: New file.
1195 * cp-support.h: New file.
1196
1197 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1198 (update_method_name_from_physname): New function.
1199 (read_member_functions): Correct method names for operators
1200 and v3 constructors/destructors. Separate v2 constructors and
1201 destructors.
1202 * Makefile.in (stabsread.o): Update dependencies.
1203 (SFILES): Add cp-support.c.
1204 (COMMON_OBS): Add cp-support.o.
1205 (cp_support_h, cp-support.o): Add.
1206
1207 * cp-valprint.c (cp_print_class_method): Call
1208 check_stub_method_group instead of check_stub_method. Remove
1209 extraneous QUITs.
1210 * p-valprint.c (pascal_object_print_class_method): Likewise.
1211 * valops.c (search_struct_method): Likewise.
1212 (find_method_list, value_struct_elt_for_reference): Likewise.
1213
e76cff22
AC
12142002-09-13 Andrew Cagney <cagney@redhat.com>
1215
1216 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1217 * gdbarch.h, gdbarch.c: Regenerate.
1218
905abb3f
AC
12192002-09-13 Andrew Cagney <ac131313@redhat.com>
1220
1221 * frame.c (find_saved_register): Delete function.
1222 * frame.h (find_saved_register): Delete declaration.
1223 Fix PR gdb/631.
1224
64159455
AC
1225Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1226
1227 * mips-tdep.c (read_next_frame_reg): Re-hack using
1228 frame_register_unwind.
1229
795e1e11
AC
1230Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1231
1232 * mips-tdep.c (mips_get_saved_register): Re-hack using
1233 frame_register_unwind.
1234
5720643c
JB
12352002-09-12 Joel Brobecker <brobecker@gnat.com>
1236
1237 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1238 vector. Will be useful for Interix.
1239 * gdbarch.h, gdbarch.c: Regenerate.
1240
1241 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1242 name of the malloc function by NAME_OF_MALLOC.
1243
3bada2a2
JB
12442002-09-12 Joel Brobecker <brobecker@gnat.com>
1245
1246 * value.h (find_function_in_inferior): Add const keyword to
1247 one of the parameters. Allows us to invoke this function with
1248 a const char *.
1249 * valops.c (find_function_in_inferior): Likewise.
1250
3db26b01
JB
12512002-09-12 Joel Brobecker <brobecker@gnat.com>
1252
1253 * exec.c (xfer_memory): Fix compilation warning with old versions
1254 of GCC.
1255 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1256
17c5ed2c
DC
12572002-09-12 David Carlton <carlton@math.stanford.edu>
1258
1259 * symtab.h: Run through gdb_indent.h.
1260 Add 2002 to Copyright year list.
1261
ecd1107e
AM
12622002-09-12 Alan Modra <amodra@bigpond.net.au>
1263
1264 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1265 mach constants.
1266 * MAINTAINERS: Add myself to write after approval list.
1267
e64f66d1
JB
12682002-09-11 J. Brobecker <brobecker@gnat.com>
1269
1270 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1271
f9395794
JB
12722002-09-11 J. Brobecker <brobecker@gnat.com>
1273
1274 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1275 Interix.
1276
1a303dec
MS
12772002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1278
1279 * procfs.c (do_detach): Clear current signal, not just fault.
1280 Corrects problem with breakpoint trap signal leaking to detached
1281 process on Tru64.
1282
c0219d42
MS
12832002-09-10 Michael Snyder <msnyder@redhat.com>
1284
1285 * buildsym.c (finish_block): Protect against null pointer.
1286
9d84ac84
AC
12872002-09-10 Andrew Cagney <cagney@redhat.com>
1288
1289 * infcmd.c (default_print_registers_info): Send all output to
1290 ``file'' instead of ``gdb_stdout''.
1291
77d8f2b4
MS
12922002-09-10 Michael Snyder <msnyder@redhat.com>
1293
1294 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1295 LONGEST, and use signed register read (addresses are sign-
1296 extended for mips).
1297
99656a61
SC
12982002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1299
1300 * event-loop.c (gdb_do_one_event): Make public.
1301 * event-loop.h (gdb_do_one_event): Declare.
1302
da12f4d8
JL
13032002-09-10 Jeff Law <law@redhat.com>
1304
1305 * infttrace.c (child_resume): Simplify and rework to avoid
1306 TT_PROC_CONTINUE.
1307
d0aee0c4
FF
13082002-09-09 Fred Fish <fnf@intrinsity.com>
1309
1310 * printcmd.c (print_scalar_formatted): "len" is the number of
1311 target bytes, NOT the number of target bits.
1312
7cb3ec5e
EZ
13132002-09-09 Elena Zannoni <ezannoni@redhat.com>
1314
1315 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1316 * top.c (init_main): Set rl_terminal_name.
1317
4dc81987
AS
13182002-09-08 Aidan Skinner <aidan@velvet.net>
1319
1320 * ada-lang.c (ada_array_bound, ada_type_match,
1321 _initialize_ada_language): Fix K&R definitions.
1322 * ada-tasks.c (get_current_task): Fix K&R definitions.
1323 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1324
842330b4
CF
13252002-09-07 Christopher Faylor <cgf@redhat.com>
1326
1327 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1328 Add XP.
1329
43156d82
MK
13302002-09-06 Mark Kettenis <kettenis@gnu.org>
1331
66da5fd8
MK
1332 * i386-tdep.c (i386_register_virtual_type,
1333 i386_register_convertible, i386_register_convert_to_virtual,
1334 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1335 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1336 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1337 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1338 Don't set push_arguments twice.
1339
4b218c18
MK
1340 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1341 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1342 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1343 sigtramp_end to NULL.
1344 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1345 defines.
1346 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1347
4cc314d5
MK
1348 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1349 whitespace.
1350
43156d82
MK
1351 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1352 * gdbarch.h, gdbarch.c: Re-generate.
1353 * blockframe.c (find_pc_sect_partial_function): Convert to use
1354 SIGTRAMP_START_P predicate.
1355
6672060b
MS
13562002-09-05 Michael Snyder <msnyder@redhat.com>
1357
a90c3637
MS
1358 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1359 generic_dummy_frame method and old method. Also distinguish
1360 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1361 (arm_extract_return_value): Use new regcache method.
a90c3637 1362
6672060b
MS
1363 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1364 adjustment that doesn't conform to the ABI.
1365 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1366 saved regcache, not from current regcache.
1367
299ffc64
AC
13682002-09-05 Andrew Cagney <ac131313@redhat.com>
1369
1370 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1371 * README: Update.
1372
a3a2ee65
JT
13732002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1374
1375 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1376 if arm_apcs_32 is false.
1377
2bc7eea9
AC
13782002-09-04 Andrew Cagney <ac131313@redhat.com>
1379
1380 GDB 5.3 branch created.
1381
8a55a7c5
TR
13822002-09-03 Theodore A. Roth <troth@verinet.com>
1383
1384 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1385 generic_unwind_get_saved_register.
1386
e26fb1d7
DC
13872002-09-03 David Carlton <carlton@math.stanford.edu>
1388
1389 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1390 argument (PR gdb/653). Update call to smash_to_method_type.
1391 (read_structure_scope): Update call to dwarf2_add_member_fn.
1392
30d52491
ML
13932002-09-03 Michal Ludvig <mludvig@suse.cz>
1394
1395 * x86-64-linux-tdep.c: Include gdb_string.h
1396 * x86-64-linux-nat.c: Ditto.
1397
06891d83
JT
13982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1399
1400 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1401 when YYDEBUG is set to 1.
1402 * c-exp.y: Likewise.
1403 * f-exp.y: Likewise.
1404 * jv-exp.y: Likewise.
1405 * m2-exp.y: Likewise.
1406 * p-exp.y: Likewise.
1407
7d400e77
JT
14082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1409
1410 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1411 dependency list.
1412 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1413 solib_svr4_fetch_link_map_offsets to
1414 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1415 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1416 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1417 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1418 solib-svr4.o, and solib-legacy.o.
1419 * config/i386/tm-nbsd.h: Include solib.h.
1420
704a27c4
JT
14212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1422
1423 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1424 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1425 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1426 comment noting that this needs its own target configuration.
1427 * config/i386/nbsd.mt: New file.
1428 * config/i386/nbsdaout.mt: Remove.
1429 * config/i386/nbsdelf.mt: Ditto.
1430 * config/i386/tm-nbsdaout.h: Ditto.
1431
d66198e1
JT
14322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1433
1434 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1435 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1436 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1437 tdep->sigtramp_end.
1438 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1439 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1440 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1441
3cac699e
JT
14422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1443
1444 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1445 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1446 * i386-tdep.h (i386bsd_init_abi): New prototype.
1447 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1448 function declaration.
1449 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1450 for NetBSD-a.out or NetBSD-ELF.
1451 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1452 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1453 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1454 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1455 and nbsd-tdep.h.
1456 (i386nbsd_pc_in_sigtramp): New function.
1457 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1458 i386nbsd_pc_in_sigtramp.
1459 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1460 and i386nbsdelf_init_abi OS ABI handlers.
1461 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1462 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1463
7010ca0a
MK
14642002-09-02 Mark Kettenis <kettenis@gnu.org>
1465
1466 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1467 registers if the target really has them.
1468
6dd93b72
JT
14692002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1470
1471 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1472 than nbsd-tdep.h.
1473
2ca8ae21
JT
14742002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1475
1476 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1477 list.
1478 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1479 (alphanbsd_skip_sigtramp_frame): New functions.
1480 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1481 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1482 to alphanbsd_sigcontext_addr.
1483
3d9b49b0
JT
14842002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1485
1486 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1487 list.
1488 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1489 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1490 nbsd_pc_in_sigtramp.
1491 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1492 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1493 * nbsd-tdep.c: Include gdb_string.h.
1494 (nbsd_pc_in_sigtramp): New function.
1495 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1496 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1497 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1498 ppcnbsd_pc_in_sigtramp.
1499 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1500 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1501 shnbsd_pc_in_sigtramp.
1502 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1503 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1504 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1505
c860120c
PM
15062002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1507
1508 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1509 watchpoints to NULL.
1510 (insert_breakpoints): set val field of watchpoints if NULL.
1511
1512
c7612d53
JB
15132002-08-29 Jim Blandy <jimb@redhat.com>
1514
1515 * symtab.c (lookup_symbol_aux): In the cases where we find a
1516 minimal symbol of an appropriate name and use its address to
1517 select a symtab to read and search, use `name' (as passed to us)
1518 as the demangled name when searching the symtab's global and
1519 static blocks, not the minsym's name.
1520
66609862
KS
15212002-08-29 Keith Seitz <keiths@redhat.com>
1522
1523 * stack.c (print_frame_info_base): Always set current_source_symtab
1524 and current_source_line.
1525
151fefe2
JB
15262002-08-29 Donn Terry <donnte@microsoft.com>
1527
1528 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1529
bfb3754e
KS
15302002-08-28 Keith Seitz <keiths@redhat.com>
1531
1532 * stack.c (select_frame): Add FIXME concerning selected-frame
1533 events.
1534 (select_frame_command): Send selected-frame-level-changed
1535 event notification, but only if the level actually changed.
1536 (up_silently_base): Add selected-frame-level-changed event
1537 notification.
1538 (down_silently_base): Likewise.
1539
e822a2a0
AC
15402002-08-28 Andrew Cagney <ac131313@redhat.com>
1541
1542 * Makefile.in: Update dependencies for all gdb/*.c files.
1543
309367d4
TT
15442002-08-27 Tom Tromey <tromey@redhat.com>
1545
1546 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1547 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1548 Update dependencies.
1549 * i387-tdep.c: Include gdb_string.h.
1550 * osabi.c: Likewise.
1551 * i386-linux-nat.c: Likewise.
1552 * lin-lwp.c: Likewise.
1553 * ax-gdb.c: Likewise.
1554 * signals/signals.c: Likewise.
1555 * jv-valprint.c: Likewise.
1556 * p-lang.c: Likewise.
1557 * c-valprint.c: Likewise.
1558 * cp-abi.c: Likewise.
1559
e1507482
EZ
15602002-08-27 Elena Zannoni <ezannoni@redhat.com>
1561
1562 * cli/cli-script.h (copy_command_lines): Export.
1563 * breakpoint.c: Include cli/cli-script.h.
1564 * Makefile.in (breakpoint.o): Update dependencies.
1565
c6510018
MS
15662002-08-26 Michael Snyder <msnyder@redhat.com>
1567
1568 * breakpoint.c (insert_breakpoints): Protect all references
1569 to 'process_warning'. Shorten long lines.
1570
c2b8ed2c
MS
15712002-08-26 Joel Brobecker <brobecker@gnat.com>
1572
1573 * cli/cli-script.c (copy_command_lines): New function.
1574 * defs.h (copy_command_lines): Export.
1575 * testsuite/gdb.base/commands.exp: New tests for commands
1576 attached to a temporary breakpoint, and for commands that
1577 delete the breakpoint they are attached to.
1578
15792002-08-26 Michael Snyder <msnyder@redhat.com>
1580
1581 * breakpoint.c (bpstat_stop_status): Instead of copying the
1582 pointer to the breakpoint commands struct, make a new copy
1583 of the struct and point to that.
1584 (bpstat_clear): Free the commands struct.
1585 (bpstat_clear_actions): Free the commands struct.
1586 (bpstat_do_actions): Free the command actions. Also execute
1587 the local cleanups, instead of deleting them.
1588 (delete_breakpoint): Leave the commands field of the bpstat
1589 chain alone -- it will be freed later.
1590
64b84175
KB
15912002-08-26 Kevin Buettner <kevinb@redhat.com>
1592
1593 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1594 deleted in 2002-08-20 commit. This function is still used by
1595 ppc-linux-nat.c.
1596
55970da6
KS
15972002-08-26 Keith Seitz <keiths@redhat.com>
1598
1599 * gdb-events.sh: Add selected-frame-level-changed event.
1600 * gdb-events.c: Regenerated.
1601 * gdb-events.h: Regenerated.
1602
a790ad35
SC
16032002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1604
1605 Fix PR gdb/393:
1606 * inflow.c (terminal_save_ours): New function to save terminal
1607 settings.
1608 * inferior.h (terminal_save_ours): Declare.
1609 * target.c (debug_to_terminal_save_ours): New function.
1610 (cleanup_target): Defaults to_terminal_save_ours.
1611 (update_current_target): Inherit to_terminal_save_ours.
1612 (setup_target_debug): Set to_terminal_save_ours.
1613 * target.h (target_terminal_save_ours): New to save terminal settings.
1614 (target_ops): New member to_terminal_save_ours.
1615 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1616 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1617 * inftarg.c (init_child_ops): Likewise.
1618 * m3-nat.c (init_m3_ops): Likewise.
1619 * procfs.c (init_procfs_ops): Likewise.
1620 * wince.c (init_child_ops): Likewise.
1621 * win32-nat.c (init_child_ops): Likewise.
1622 * sol-thread.c (init_sol_thread_ops): Likewise.
1623
c00dcbe9
MK
16242002-08-26 Mark Kettenis <kettenis@gnu.org>
1625
3d7f4f49
MK
1626 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1627 use regcache_* functions.
1628 (i386_gdbarch_init): Set store_return_value instead of
1629 deprecated_store_return_value.
1630
c00dcbe9
MK
1631 * regcache.c (regcache_raw_write_signed,
1632 regcache_raw_write_unsigned): New functions.
1633 * regcache.h (regcache_raw_write_signed,
1634 regcache_raw_write_unsigned): New prototypes.
1635
0e0d15ca
AC
16362002-08-25 Andrew Cagney <ac131313@redhat.com>
1637
1638 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1639 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1640 source file dependencies. Cleanup corresponding generator rules.
1641
d3b22ed5
AC
16422002-08-25 Andrew Cagney <ac131313@redhat.com>
1643
1644 * regcache.h (register_offset_hack): Declare.
1645 (regcache_cooked_read_using_offset_hack): Declare.
1646 (regcache_cooked_write_using_offset_hack): Declare.
1647
1648 * regcache.c (register_offset_hack): New function.
1649 (regcache_cooked_read_using_offset_hack): New function.
1650 (regcache_cooked_write_using_offset_hack): New function.
1651 (regcache_dump): Check that the registers, according to their
1652 offset, are packed hard against each other.
1653 (cooked_xfer_using_offset_hack): New function.
1654
bb425013
AC
16552002-08-25 Andrew Cagney <ac131313@redhat.com>
1656
1657 * regcache.c (struct regcache_descr): Add field register_type.
1658 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1659 in as a parameter
1660 (init_regcache_descr): Initialize register_type. Pass the descr
1661 to init_legacy_regcache_descr. Use register_type instead of
1662 REGISTER_VIRTUAL_TYPE.
1663 (register_type): New function.
1664 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1665 * regcache.h (register_type): Declare.
1666
d0403e00
AC
16672002-08-25 Andrew Cagney <ac131313@redhat.com>
1668
1669 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1670 instead of deprecated_store_return_value. Fix fallout from
1671 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1672
0ed04cce
AC
16732002-08-25 Andrew Cagney <ac131313@redhat.com>
1674
1675 * regcache.c (max_register_size): New function.
1676 (init_legacy_regcache_descr): Ensure that max_register_size is
1677 large enough for REGISTER_VIRTUAL_SIZE.
1678 * regcache.h (max_register_size): Declare.
1679
46d79c04
AC
16802002-08-24 Andrew Cagney <ac131313@redhat.com>
1681
1682 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1683 store_return_value.
1684 (e500_extract_return_value): Change type of valbuf pointer to
1685 void.
1686
853c7bd0
MK
16872002-08-24 Mark Kettenis <kettenis@gnu.org>
1688
cd87e769
MK
1689 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1690 workaround.
1691
853c7bd0
MK
1692 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1693 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1694 long long) to prevent compiler warning on 64-bit systems.
1695
ebba8386
AC
16962002-08-23 Andrew Cagney <cagney@redhat.com>
1697
1698 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1699 (DEPRECATED_STORE_RETURN_VALUE): New method.
1700 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1701 * gdbarch.h, gdbarch.c: Re-generate.
1702
1703 * values.c (set_return_value): Pass current_regcache to
1704 STORE_RETURN_VALUE.
1705 * arch-utils.h (legacy_store_return_value): Declare.
1706 * arch-utils.c (legacy_store_return_value): New function.
1707 (legacy_extract_return_value): Update parameters.
1708
1709 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1710 STORE_RETURN_VALUE.
1711 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1712 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1713 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1714 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1715 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1716 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1717 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1718 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1719 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1720 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1721
1722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1723 * i386-tdep.c (i386_extract_return_value): Update.
1724 * arch-utils.c (legacy_extract_return_value): Update.
1725 * frv-tdep.c (frv_gdbarch_init): Update.
1726 * cris-tdep.c (cris_gdbarch_init): Update.
1727 * d10v-tdep.c (d10v_gdbarch_init): Update.
1728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1729 * m68k-tdep.c (m68k_gdbarch_init): Update.
1730 * mcore-tdep.c (mcore_gdbarch_init): Update.
1731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1732 * s390-tdep.c (s390_gdbarch_init): Update.
1733 * sparc-tdep.c (sparc_gdbarch_init): Update.
1734 * sh-tdep.c (sh_gdbarch_init): Update.
1735 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1736 * v850-tdep.c (v850_gdbarch_init): Update.
1737 * avr-tdep.c (avr_gdbarch_init): Update.
1738 * ia64-tdep.c (ia64_gdbarch_init): Update.
1739 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1740 * vax-tdep.c (vax_gdbarch_init): Update.
1741 * alpha-tdep.c (alpha_gdbarch_init): Update.
1742 * arm-tdep.c (arm_gdbarch_init): Update.
1743 * mips-tdep.c (mips_gdbarch_init): Update.
1744 * i386-tdep.c (i386_gdbarch_init): Update.
1745
5bd8c6d0
AC
17462002-08-23 Andrew Cagney <ac131313@redhat.com>
1747
1748 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1749 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1750
e73e1724
MK
17512002-08-24 Mark Kettenis <kettenis@gnu.org>
1752
1753 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1754 problems.
1755
3e6564e1
JB
17562002-08-23 Joel Brobecker <brobecker@gnat.com>
1757
1758 * infrun.c (handle_inferior_event): Move a comment outside of a
1759 function call, in order to avoid indent reformatting this part
1760 of the code in an unreadable way.
1761
81d0cc19
GS
17622002-08-23 Grace Sainsbury <graces@redhat.com>
1763
1764 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1765 when breakpoints fail. Move general breakpoint error messages to
1766 insert_breakpoints.
1767 * breakpoint.c (insert_breakpoints): Change warnings when
1768 breakpoints are nto inserted to specify the type. Remove call to
1769 memory_error when hardware breakpoints can't be inserted. Remove
1770 multiple calls to warning so all messages are sent to the user at
1771 once.
1772 (delete_breakpoints): Make insert error messsages more explicit.
1773
17574093
DJ
17742002-08-23 Daniel Jacobowitz <drow@mvista.com>
1775
1776 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1777 gdbserver/ChangeLog.
1778
8acc2935
MK
17792002-08-23 Mark Kettenis <kettenis@gnu.org>
1780
dfe01d39
MK
1781 * i386-tdep.c: Include "objfiles.h".
1782 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1783 skip_trampoline_code.
1784 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1785 (CPLUS_MARKER): Define to '.'.
1786
8acc2935
MK
1787 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1788 member.
1789 (linux_corefile_thread_callback): Increase args->num_notes.
1790 (linux_make_note_section): Initialize thread_args.num_notes, and
1791 use it to determine whether notes for any threads were created.
1792
151fefe2 17932002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1794
1795 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1796 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1797 and PCUNKILL.
1798 (write_with_trace): Conditionalize out the switch branch handling
1799 PCSHOLD if the corresponding macro is not defined. Likewise for
1800 PRSABORT and PRSTOP.
1801 This change will be needed by the Interix port.
1802
e1507482
EZ
18032002-08-22 Elena Zannoni <ezannoni@redhat.com>
1804
1805 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1806 write_register wherever possible instead of manipulating the
1807 register bytes directly.
1808 Assign VALUE_CONTENTS to a variable and use that.
1809 The GPR numbers are now dependent on the architecture.
1810
96ff0de4
EZ
18112002-08-22 Elena Zannoni <ezannoni@redhat.com>
1812
1813 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1814 ev_offset fields.
1815 (skip_prologue): Add support for BookE/e500 instructions.
1816 (e500_extract_return_value): New function.
1817 (frame_get_saved_regs): Add support for saving ev registers and
1818 pseudo gpr's.
1819 (e500_store_return_value): New function.
1820 (rs6000_gdbarch_init): Move up default intializations of
1821 deprecated_extract_return_value and store_return_value. Overwrite
1822 init of store_return_value with e500 specific version.
1823 Set extract_return_value for e500.
1824
fbefca5b
EZ
18252002-08-22 Elena Zannoni <ezannoni@redhat.com>
1826
1827 * blockframe.c (generic_call_dummy_register_unwind): Use
1828 regcache_cooked_read to catch cases in which the variable is
1829 stored in a pseudo register.
1830
4d210288
AC
18312002-08-22 Andrew Cagney <cagney@redhat.com>
1832
1833 * NEWS: Mention that the i960 has been made obsolete.
1834 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1835 i960-tdep.c
1836 (remote-nrom.o): Obsolete target.
1837 (remote-nindy.o, i960-tdep.o): Ditto.
1838 * remote-nrom.c: Make file obsolete.
1839 * remote-nindy.c, remote-vx960.c: Ditto.
1840 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1841 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1842 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1843 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1844 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1845 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1846 i960-*-vxworks* obsolete.
1847 * MAINTAINERS: Note that the i960 is obsolete.
1848
6c0c456d
CV
18492002-08-21 Corinna Vinschen <vinschen@redhat.com
1850
1851 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1852 detach to allow reinitialization.
1853
9f9d12b3
AC
18542002-08-22 Andrew Cagney <ac131313@redhat.com>
1855
1856 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1857 attempt).
1858
ebeb39fe
JB
18592002-08-22 Jim Blandy <jimb@redhat.com>
1860
1861 * coffread.c (coff_symfile_read): Don't try to read the line
1862 number table from disk if the image file doesn't have a symbol
1863 table; we'll never actually look at the info anyway, and Windows
1864 ships DLL's with bogus file offsets for the line number data.
1865
5bf1c677
EZ
18662002-08-21 Elena Zannoni <ezannoni@redhat.com>
1867
1868 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1869 an e500 executable.
1870
71b8ef93
MS
18712002-08-21 Michael Snyder <msnyder@redhat.com>
1872
1873 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1874 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1875 (DEFAULT_MIPS_TYPE): Delete unused macro.
1876 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1877 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1878
d174216d
JB
18792002-08-21 Jim Blandy <jimb@redhat.com>
1880
1881 * valops.c (value_cast): Simplify and correct logic for doing a
1882 static cast from a pointer to a base class to a pointer to a
1883 derived class.
1884
0ab7a791
AC
18852002-08-21 Andrew Cagney <ac131313@redhat.com>
1886
1887 * infcmd.c (default_print_registers_info): Replace
1888 do_registers_info.
1889 (registers_info): Use gdbarch_print_registers_info instead of
1890 DO_REGISTERS_INFO.
1891 * inferior.h (default_print_registers_info): Replace
1892 do_registers_info.
1893 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1894 (DO_REGISTERS_INFO): Change to a predicate function.
1895 * gdbarch.h, gdbarch.c: Regenerate.
1896
e23792cc
KS
18972002-08-21 Keith Seitz <keiths@redhat.com>
1898
1899 * gdb-events.sh: Add target-changed event.
1900 * gdb-events.c: Regenerated.
1901 * gdb-events.c: Regenerated.
1902 * valops.c (value_assign): Add target-changed event notification
1903 to inlval_register, lval_memory, and lval_reg_frame_relative.
1904
9fb14e79
JB
19052002-08-21 Joel Brobecker <brobecker@gnat.com>
1906
1907 * NEWS: Add an entry regarding the improvement of the next/step
1908 operation on Alpha Tru64 multi-processor machines.
1909
6d39a69f
AC
19102002-08-21 Andrew Cagney <ac131313@redhat.com>
1911
72acd513
AC
1912 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1913 directores.
342af04b 1914 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1915 * Makefile.in (install-gdbtk): Move to install section.
1916 (rdi-share/libangsd.a): Move to end of file.
1917
fa5f27c7
AC
19182002-08-19 Andrew Cagney <ac131313@redhat.com>
1919
1920 * frame.c (frame_register_unwind): When a register, set addrp to
1921 the register's byte.
1922
5a89d8aa
MS
19232002-08-20 Michael Snyder <msnyder@redhat.com>
1924
1925 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1926 used locally, so move them from the target machine header to here.
1927 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1928 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1929 Make static.
1930 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1931
822e978b
AC
19322002-08-20 Andrew Cagney <cagney@redhat.com>
1933
1934 * NEWS: Mention that the Apollo line was made obsolete.
1935 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1936 m68*-hp-hpux* obsolete.
1937 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1938 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1939 * buildsym.c (make_blockvector): Make static.
1940 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1941 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1942 (ALLDEPFILES): Remove dstread.c.
1943 (dstread.o): Obsolete make rule.
1944 * dstread.c: Makefile obsolete.
1945 * dst.h: Ditto.
1946 * config/m68k/hp300hpux.mt: Ditto.
1947 * config/m68k/hp300hpux.mh: Ditto.
1948 * config/m68k/hp300bsd.mt: Ditto.
1949 * config/m68k/hp300bsd.mh: Ditto.
1950 * config/m68k/apollo68b.mt: Ditto.
1951 * config/m68k/apollo68v.mh: Ditto.
1952 * config/m68k/apollo68b.mh: Ditto.
1953
e41b17f0
MS
19542002-08-20 Michael Snyder <msnyder@redhat.com>
1955
1956 * mips-tdep.c (mips_in_return_stub): Make static.
1957 (mips_gdbarch_init): Set in_solib_return_trampoline.
1958 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1959
d50355b6
MS
19602002-08-20 Michael Snyder <msnyder@redhat.com>
1961
1962 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1963 * gdbarch.c, gdbarch.h: Regenerate.
1964 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1965 Add.
1966 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1967
757a7cc6
MS
19682002-08-20 Michael Snyder <msnyder@redhat.com>
1969
1970 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1971 (mips_gdbarch_init): Set skip_trampoline_code,
1972 in_solib_call_trampoline.
1973 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1974 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1975
c8001721
EZ
19762002-08-20 Elena Zannoni <ezannoni@redhat.com>
1977
1978 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1979
1980 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1981 vector type for ev registers.
1982 (e500_pseudo_register_read): New function.
1983 (e500_pseudo_register_write): New function.
1984 (e500_dwarf2_reg_to_regnum): New function.
1985 (PPC_UISA_NOFP_SPRS): New macro.
1986 (PPC_EV_REGS): New macro.
1987 (PPC_GPRS_PSEUDO_REGS): New macro.
1988 (registers_e500): New register set for e500.
1989 (variants): Add e500 variant.
1990 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1991 before setting architectural dependent variations. Initialize ev
1992 registers numbers. Add case for e500 architecture. Set the
1993 number of pseudo registers.
1994
64366f1c
EZ
19952002-08-20 Elena Zannoni <ezannoni@redhat.com>
1996
1997 * rs6000-tdep.c: Clean up comments.
1998
7e78f0ca
AC
19992002-08-20 Andrew Cagney <cagney@redhat.com>
2000
2001 * h8300-tdep.c: Re-indent file.
2002
697f7479
JB
20032002-08-20 Jim Blandy <jimb@redhat.com>
2004
2005 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2006 default for this.
697f7479 2007
e86ae29f
KS
20082002-08-20 Keith Seitz <keiths@redhat.com>
2009
2010 * breakpoints.c (watch_command_1): Use internal breakpoint
2011 when setting a watchpoint_scope breakpoint.
2012
216b504f
EZ
20132002-08-20 Elena Zannoni <ezannoni@redhat.com>
2014
2015 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2016 (build_builtin_type_vec64i): Ditto.
2017 (build_builtin_type_vec128): Ditto.
2018 (build_builtin_type_vec128i): Ditto.
2019
f7ab6ec6
MS
20202002-08-19 Michael Snyder <msnyder@redhat.com>
2021
2022 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2023 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2024 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2025 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2026 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2027 CALL_DUMMY_ADDRESS): Delete.
2028 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2029 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2030 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2031 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2032 push_return_address.
2033 (mips_register_raw_size, mips_eabi_use_struct_convention,
2034 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2035 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2036 mips_init_extra_frame_info, mips_eabi_push_arguments,
2037 mips_n32n64_push_arguments, mips_push_return_address,
2038 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2039 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2040
b5d1566e
MS
20412002-08-19 Michael Snyder <msnyder@redhat.com>
2042
2043 * mips-tdep.c (mips_frame_num_args): New function.
2044 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2045 frame_saved_pc, frame_args_address, frame_locals_address,
2046 frame_num_args, and frame_args_skip.
2047 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2048 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2049 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2050 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2051
2f1488ce
MS
20522002-08-20 Michael Snyder <msnyder@redhat.com>
2053
2054 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2055 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2056 * mips-tdep.c (mips_store_struct_return): New function.
2057 (mips_extract_struct_value_address): New function.
2058 (mips_gdbarch_init): Set store_struct_return and
2059 extract_struct_value_address.
2060
41ff2da1
DC
20612002-08-20 David Carlton <carlton@math.stanford.edu>
2062
2063 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2064 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2065 (read_file_scope): Check that line_header is nonzero before
2066 decoding macro information.
2067
e5451d58
MK
20682002-08-20 Mark Kettenis <kettenis@gnu.org>
2069
2070 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2071 flag the general-purpose registers as floating-point on targets
2072 that don't support the floating-point registers.
2073
4a6daafa
EZ
20742002-08-20 Elena Zannoni <ezannoni@redhat.com>
2075
2076 * rs6000-tdep.c (altivec_register_p): Delete.
2077 (rs6000_do_altivec_registers): Delete.
2078 (rs6000_altivec_registers_info): Delete.
2079 (rs6000_do_registers_info): Delete.
2080 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2081 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2082
ab4327e0
EZ
20832002-08-20 Elena Zannoni <ezannoni@redhat.com>
2084
2085 * infcmd.c (do_registers_info): Print vector registers in hex
2086 format only.
2087 (print_vector_info): Check that printing registers
2088 makes sense.
2089 (print_float_info): Ditto.
2090
cb1d2653
AC
20912002-08-20 Andrew Cagney <ac131313@redhat.com>
2092
2093 * mips-tdep.c (mips_gdbarch_init): Update.
2094 (mips_o32_extract_return_value): Rewrite.
2095 (mips_o32_store_return_value): Rewrite.
2096 (mips_o32_xfer_return_value): New function.
2097 (mips_xfer_register): Tweak debug print message. Allow for
2098 buf_offset when dumping the value transfered.
2099
dfc3d9b2
AC
21002002-08-20 Andrew Cagney <ac131313@redhat.com>
2101
2102 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2103 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2104 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2105 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2106 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2107
7807aa61
MS
21082002-08-14 Michael Snyder <msnyder@redhat.com>
2109
2110 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2111
489461e2
EZ
21122002-08-19 Elena Zannoni <ezannoni@redhat.com>
2113
2114 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2115 register.
2116 (P): New macro to define a register as a pseudo register.
2117 (R, R4, R8, R16, FR32, R64, R0): Updated.
2118 (struct variant): Add new fields for number of pseudo registers
2119 and number of total registers.
2120 (tot_num_registers): New macro replacing....
2121 (num_registers): ...deleted macro.
2122 (num_registers): New function.
2123 (num_pseudo_registers): New function.
2124 (variants): Update all variants to intialize new fields correctly.
2125 Postpone initialization of number of pseudo regs and real regs.
2126 (init_variants): New function.
2127 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2128 registers offsets.
2129
fcaffe4c
DC
21302002-08-19 David Carlton <carlton@math.stanford.edu>
2131
2c2738a0
DC
2132 * valops.c (search_struct_field): Change error message to treat
2133 return value of 0 from value_static_field as meaning that field is
2134 optimized out.
2135 (value_struct_elt_for_reference): Ditto.
2136 * values.c (value_static_field): Treat an unresolved location the
2137 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2138 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2139 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2140 * MAINTAINERS: Add self to Write After Approval list.
2141
88658117
AC
21422002-08-19 Andrew Cagney <ac131313@redhat.com>
2143
2144 * mips-tdep.c (mips_xfer_register): New function.
2145 (mips_n32n64_extract_return_value): Rewrite.
2146 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2147 instead of deprecated_extract_return_value.
2148
21283beb
EZ
21492002-08-19 Elena Zannoni <ezannoni@redhat.com>
2150
2151 * rs6000-tdep.c (TDEP): Delete macro.
2152 (branch_dest): Replace use of TDEP macro with its body.
2153 (rs6000_pop_frame): Ditto.
2154 (rs6000_push_arguments): Ditto.
2155 (rs6000_skip_trampoline_code): Ditto.
2156 (rs6000_frame_saved_pc): Ditto.
2157 (rs6000_frame_chain): Ditto.
2158 (rs6000_register_name): Ditto.
2159 (rs6000_register_byte): Ditto.
2160 (rs6000_register_raw_size): Ditto.
2161 (rs6000_register_virtual_type): Ditto.
2162 (rs6000_register_convertible): Ditto.
2163 (rs6000_convert_from_func_ptr_addr): Ditto.
2164
bf072999
DJ
21652002-08-19 Daniel Jacobowitz <drow@mvista.com>
2166
2167 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2168 conditionally.
2169 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2170 MIPS_LINUX_JB_ELEMENT_SIZE.
2171 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2172 for MAX_REGISTER_RAW_SIZE arrays.
2173 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2174 MIPS_LINUX_JB_ELEMENT_SIZE.
2175
9b949a49
PM
21762002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2177
2178 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2179
6d3e79c6
AS
21802002-08-19 Aidan Skinner <aidan@velvet.net>
2181
2182 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2183 ada-valprint.c ada-tasks.c.
2184 (YYFILES): Add ada-exp.y.
2185 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2186 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2187 (ada-exp.tab.o): New target.
2188
06c0b04e
AC
21892002-08-18 Andrew Cagney <ac131313@redhat.com>
2190
2191 * regcache.c (regcache_xfer_part): New function.
2192 (regcache_raw_read_part): New function.
2193 (regcache_raw_write_part): New function.
2194 (regcache_cooked_read_part): New function.
2195 (regcache_cooked_write_part): New function.
2196 * regcache.h (regcache_raw_read_part): Declare.
2197 (regcache_raw_write_part): Declare.
2198 (regcache_cooked_read_part): Declare.
2199 (regcache_cooked_write_part): Declare.
2200
92d1e331
DJ
22012002-08-18 Daniel Jacobowitz <drow@mvista.com>
2202
2203 * remote.c (remote_open_1): Add async_p.
2204 (remote_async_open_1): Delete.
2205 (open_remote_target): Delete.
2206 (remote_open, extended_remote_open): Update calls to remote_open_1.
2207 (remote_async_open, extended_remote_async_open): Call
2208 remote_open_1 instead of remote_async_open_1.
2209
247055de
MK
22102002-08-19 Mark Kettenis <kettenis@gnu.org>
2211
2212 * blockframe.c: Fix a few coding standard violations.
2213
641eda39
MK
22142002-08-19 Mark Kettenis <kettenis@gnu.org>
2215
0b717710
MK
2216 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2217 here from ...
2218 * config/i386/tm-i386sco5.h: ... here. File removed.
2219 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2220
26d28e12 2221 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2222 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2223 (TM_FILE): Set to tm-i386.h.
2224 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2225 * config/i386/tm-i386v.h: Remove file.
2226 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2227 instead of "i386/tm-i386v.h".
2228 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2229 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2230 "i386/tm-i386v.h".
2231 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2232 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2233 "i386/tm-i386.h".
2234
d4e0bab4
MK
22352002-08-18 Mark Kettenis <kettenis@gnu.org>
2236
2237 * config/i386/nm-i386v.h: Add protection against
2238 multiple-inclusion.
2239 (i386_register_u_addr): Remove prototype.
2240 (register_u_addr): New prototype.
2241 (REGISTER_U_ADDR): Redefine accordingly.
2242 * i386v-nat.c: Improve several comments.
2243 (i386_register_u_addr): Change signature and rename to
2244 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2245 ubase variable.
2246
46cac009
AC
22472002-08-18 Andrew Cagney <ac131313@redhat.com>
2248
2249 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2250 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2251 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2252 deprecated_extract_return_value.
2253 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2254 rename mips_o32o64_push_arguments.
2255 (mips_gdbarch_init): Update.
2256 (mips_extract_return_value): Delete.
2257 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2258 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2259 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2260 (mips_n32n64_extract_return_value): Clone
2261 mips_extract_return_value.
2262 (mips_store_return_value): Delete.
2263 (mips_o32_store_return_value): Clone mips_store_return_value.
2264 (mips_o64_store_return_value): Clone mips_store_return_value.
2265 (mips_eabi_store_return_value): Clone mips_store_return_value.
2266 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2267
d2e4a39e
AS
22682002-08-18 Aidan Skinner <aidan@velvet.net>
2269
0c30c098
AS
2270 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2271 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2272
22732002-08-18 Aidan Skinner <aidan@velvet.net>
2274
2275 * ada-lang.c: Run through gdb_indent.sh.
2276 * ada-lang.h: Run through gdb_indent.sh.
2277 * ada-tasks.c: Run through gdb_indent.sh.
2278 * ada-typeprint.c: Run through gdb_indent.sh.
2279 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2280
01fc4e33
AC
22812002-08-18 Andrew Cagney <ac131313@redhat.com>
2282
2283 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2284 ABI.
2285
d8ee244c
MK
22862002-08-18 Mark Kettenis <kettenis@gnu.org>
2287
c38d8261
MK
2288 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2289
222db64c
MK
2290 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2291 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2292
c2848c82
MK
2293 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2294 write_register_gen instead of write_register_bytes.
2295
d8ee244c
MK
2296 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2297 i[3456]-*-osf1mk* configurations have been made obsolete.
2298 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2299 i[3456]86-*-osf1mk* hosts obsolete.
2300 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2301 targets obsolete.
2302 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2303 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2304 config/i386/i386m3.mt, config/i386/nm-m3.h,
2305 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2306 config/i386/i386mk.mh, config/i386/i386mk.mt,
2307 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2308 obsolete.
2309 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2310 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2311 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2312
61d8d407
AC
23132002-08-18 Andrew Cagney <ac131313@redhat.com>
2314
2315 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2316 (hppa_value_returned_from_stack): Declare.
2317 (hppa_extract_return_value): Declare.
2318 * config/pa/hppa.mt: New file.
2319 * configure.tgt: Recognize hppa*-*-*.
2320 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2321
0c52bd59
MK
23222002-08-18 Mark Kettenis <kettenis@gnu.org>
2323
2324 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2325 comment.
2326
b5686e99
MK
23272002-08-17 Mark Kettenis <kettenis@gnu.org>
2328
2329 * top.c (gdb_rl_operate_and_get_next): Make sure
2330 operate-and-get-next functions correctly even when the history
2331 list is completely filled.
2332
c1bab85b
AC
23332002-08-18 Andrew Cagney <ac131313@redhat.com>
2334
2335 * MAINTAINERS (Target Instruction Set Architectures): Rename
2336 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2337 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2338 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2339 already listed under Host/Native.
2340
2341 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2342 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2343 mips*-*-*.
2344
32089c7c
AC
23452002-08-17 Andrew Cagney <ac131313@redhat.com>
2346
2347 * config/ia64/ia64.mt: New file.
2348 * config/alpha/alpha.mt: New file.
2349 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2350 ia64-linux-gnu. Mention that ia64-elf is broken.
2351 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2352
b4671f85
MK
23532002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2354
2355 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2356 generic_func_frame_valid instead of func_frame_valid.
2357
c8edd8b4
JB
23582002-08-16 Joel Brobecker <brobecker@gnat.com>
2359
2360 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2361 procfs appears to be broken when debugging on multi-processor
2362 machines. So enable software single stepping in order to avoid
2363 using the procfs interface to do next/step operations, using
2364 internal breakpoints instead.
2365
2366 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2367 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2368 make this pc address equal to the value it would have if the
2369 system stepping capability was used. Also set a new flag used
2370 to ensure that we don't readjust the PC one more time later.
2371
2372 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2373 address by DECR_PC_AFTER_BREAK when software single step is
2374 in use for this architecture, as this has already been taken
2375 care of in handle_inferior_event().
2376
238617f6
JB
23772002-08-16 Joel Brobecker <brobecker@gnat.com>
2378
2379 * infrun.c (handle_inferior_event): Minor reformatting, to make
2380 a rather long condition expression easier to read.
2381
541a7aac
AC
23822002-08-16 Andrew Cagney <ac131313@redhat.com>
2383
2384 * Makefile.in (gdbtk.o): Move to end of file.
2385 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2386 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2387 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2388 (gdbtk-wrapper.o, gdbres.o): Ditto.
2389
f92d4a7b
AC
23902002-08-16 Andrew Cagney <ac131313@redhat.com>
2391
2392 * Makefile.in (copying.o): Separate out compile rule.
2393 (hpux-thread.o, procfs.o, signals.o): Ditto.
2394 (v850ice.o, z8k-tdep.o): Ditto.
2395 (tui-file.o): Move to TUI section.
2396 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2397 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2398
1cce71eb
JB
23992002-08-16 Joel Brobecker <brobecker@gnat.com>
2400
2401 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2402 skip_trampoline_code, for better namespace-proofing.
2403
2404 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2405
0851f23d
JB
24062002-08-16 Joel Brobecker <brobecker@gnat.com>
2407
2408 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2409
f8d40ec8
JB
24102002-08-16 Joel Brobecker <brobecker@gnat.com>
2411
2412 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2413 signal, check whether we hit a breakpoint before checking for a
2414 single step breakpoint. Otherwise, GDB fails to notice that a
2415 breakpoint has been hit when stepping onto a breakpoint.
2416
63d022e0
KS
24172002-08-16 Keith Seitz <keiths@redhat.com>
2418
2419 * gdb-events.sh (clear_gdb_event_hooks): New function.
2420 * gdb-events.c: Regenerate.
2421 * gdb-events.h: Regenerate.
2422
6e31adb3
AC
24232002-08-16 Andrew Cagney <ac131313@redhat.com>
2424
2425 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2426 not_a_sw_breakpoint.
2427 * breakpoint.h (bpstat_stop_status): Add parameter names.
2428
c8189ed1
GS
24292002-08-16 Grace Sainsbury <graces@redhat.com>
2430
2431 * remote.c (remote_insert_hw_breakpoint)
2432 (remote_remove_hw_breakpoint): Fix calculation of length field
2433 for Z-packet.
2434
d05285fa
MS
24352002-08-15 Michael Snyder <msnyder@redhat.com>
2436
466d7106
MS
2437 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2438 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2439 (supply_fpregset): Ditto.
2440
d05285fa
MS
2441 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2442 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2443 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2444 (TARGET_READ_SP): Delete.
bf1f5b4c 2445 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2446 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2447 Delete.
2448 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2449 from macros to functions.
bf1f5b4c 2450
d05285fa
MS
2451 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2452 (mips_register_convertible, mips_register_convert_to_virtual,
2453 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2454 (mips_read_sp): New function.
2455 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2456 (mips_do_registers_info): Make static.
2457 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2458 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2459 (mips_register_convert_from_type, mips_register_convert_to_type):
2460 New functions.
2461 (mips_gdbarch_init): Set up function_start_offset,
2462 register_virtual_size, pc_in_sigtramp.
d05285fa 2463
e76f1f2e
AC
24642002-08-15 Andrew Cagney <ac131313@redhat.com>
2465
2466 * infcmd.c (vector_info): New function.
2467 (_initialize_infcmd): Add command "info vector".
2468 (print_vector_info): New function.
2469
2470 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2471 * gdbarch.h, gdbarch.c: Regenerate.
2472
4782dc19
AC
24732002-08-15 Andrew Cagney <ac131313@redhat.com>
2474
2475 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2476 ``print_all''. Only print vector registers when ``print_all''.
2477
23e3a7ac
AC
24782002-08-15 Andrew Cagney <ac131313@redhat.com>
2479
8e186fd6
AC
2480 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2481 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2482
23e3a7ac
AC
2483 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2484 Add `args' parameter.
2485 * gdbarch.h, gdbarch.c: Regenerate.
2486
2487 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2488
2489 * infcmd.c (float_info): Call print_float_info.
2490 (print_float_info): New function. By default, print the
2491 floating-point registers.
2492
2493 * arch-utils.h (default_print_float_info): Delete declaration.
2494 * arch-utils.c (default_print_float_info): Delete function.
2495
e0ca2bb9
MK
24962002-08-16 Mark Kettenis <kettenis@gnu.org>
2497
3f733acc
MK
2498 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2499 out define.
2500
7d8d2918
MK
2501 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2502 FRAME.
2503
1c7cc583
MK
2504 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2505 * configure.host: Make i[3456]86-*-aix host obsolete.
2506 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2507 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2508 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2509 config/i386/xm-i386aix.h: Make files obsolete.
2510 * i386aix-nat.c: Make file obsolete.
2511 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2512 (i386aix-nat.o): Make target obsolete.
2513
e0ca2bb9
MK
2514 * config/i386/nm-gnu.h: Removed.
2515 * config/i386/nm-i386gnu.h: New file.
2516 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2517 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2518 Moved here from ...
2519 * config/i386/tm-i386gnu.h: ... here. Removed.
2520 * config/i386/xm-i386gnu.h: Removed.
2521 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2522 (NAT_FILE): Set to nm-i386gnu.h.
2523 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2524 * i386-tdep.c: New file.
2525 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2526 (i386gnu-tdep.o): Specify dependencies.
2527
16057ec7 25282002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2529
6b99ee2e
MK
2530 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2531 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2532 Adjust a few comments to reflect reality a bit closer.
2533 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2534 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2535 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2536 target_insert_watchpoint, target_remove_watchpoint):
2537 Move defines to ...
2538 * config/i386/nm-i386sco5.h: ... here.
2539 (kernel_u_size): Add prototype. Improve a few comments and add
2540 protection against multiple inclusion.
2541
d9a6f65c
MK
2542 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2543 out define.
2544
047eff6a
MK
2545 * uw-thread.c (SP_ARG0): Define if not already defined.
2546 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2547
dcdb1290
MK
2548 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2549
5d2d0b2a
MK
2550 * config/i386/tm-i386.h: Don't include "regcache.h".
2551
61113f8b
MK
2552 * i387-tdep.h (i387_print_float_info): New prototype.
2553 * i387-tdep.c (print_i387_value, print_i387_ext,
2554 print_i387_status_word, print_i387_control_word): Add `struct
2555 ui_file *' argument and use it for output.
2556 (i387_print_float_info): Renamed from i387_float_info. Add
2557 `struct gdbarch *' and `struct ui_file *' arguments and use the
2558 latter for output.
2559 * i386-tdep.c: Include "i387-tdep.h".
2560 (i386_gdbarch_init): Set print_float_info.
2561 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2562 (FLOAT_INFO): Remove define.
2563
46e0f506
MS
25642002-08-13 Michael Snyder <msnyder@redhat.com>
2565
2566 * mips-tdep.c (mips_push_arguments): Rename to
2567 mips_eabi_push_arguments, and tune for EABI.
2568 (MIPS_REGS_HAVE_HOME_P): Delete.
2569 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2570 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2571 Delete references to mips_regs_have_home_p.
2572
409268de
KS
25732002-08-14 Keith Seitz <keiths@redhat.com>
2574
2575 * Makefile.in (install-gdbtk): Create insight plugin directory.
2576 Install plugins.tcl file.
2577
ffc6a242
KS
25782002-08-14 Keith Seitz <keiths@redhat.com>
2579
2580 * configure.in: Move SUBDIRS to near top of the file so that
2581 --enable options may add things to it.
2582 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2583 * configure: Regenerate.
2584
ebafbe83
MS
25852002-08-13 Michael Snyder <msnyder@redhat.com>
2586
2587 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2588 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2589 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2590
32f6f25d
AC
25912002-08-13 Andrew Cagney <ac131313@redhat.com>
2592
2593 * vax-tdep.c (vax_get_saved_register): Delete function.
2594 (vax_gdbarch_init): Update.
2595 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2596 (ns32k_gdbarch_init): Update.
2597 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2598 (alpha_gdbarch_init): Update.
2599
53826de9
AC
26002002-08-13 Andrew Cagney <cagney@redhat.com>
2601
2602 * regcache.c (init_regcache_descr): Overallocate the
2603 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2604 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2605 nr_raw_registers.
2606 (set_register_cached): Add range checking assertions. Use
2607 current_regcache.
2608
16057ec7 26092002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2610
2611 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2612 numbers for MMX registers.
2613
7b4c2dce
AC
26142002-08-13 Andrew Cagney <cagney@redhat.com>
2615
2616 * i386-tdep.c (i386_gdbarch_init): Use
2617 generic_unwind_get_saved_register.
2618
1e03ad20
KB
26192002-08-13 Kevin Buettner <kevinb@redhat.com>
2620
2621 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2622 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2623 target vector.
2624 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2625 Delete. Add comment regarding this now-deleted target method.
2626
548bcbec
SC
26272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2628
2629 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2630 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2631 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2632 real PC and the page number (if it's within the memory bank window).
2633 (m68hc11_pseudo_register_write): Likewise when saving.
2634 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2635 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2636 (m68hc11_register_raw_size): And use 32-bit for it.
2637 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2638 16K memory bank is used by the prog; also use the virtual pc.
2639
7df11f59
SC
26402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2641
2642 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2643 (m68hc11_gdbarch_init): Install it in gdbarch.
2644 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2645 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2646 (MSYMBOL_SIZE): New for documentation.
2647 (insn_return_kind): Enum to specify how a function returns.
2648 (frame_extra_info): Cleanup and record the return mode.
2649 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2650 register in address computation.
2651 (m68hc11_get_return_insn): New to obtain the return instruction used
2652 by the function.
2653 (m68hc11_frame_init_saved_regs): Take into account the return
2654 instruction used by the function for far and interrupt functions.
2655 (m68hc11_init_extra_frame_info): Take into account page register.
2656 (m68hc11_frame_args_address): Adjust according to the return mode.
2657 (show_regs): Print page register only when it's used.
2658
5706502a
SC
26592002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2660
2661 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2662 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2663 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2664 registers.
2665 (m68hc11_register_raw_size): Likewise.
2666
28fc6740
AC
26672002-08-13 Andrew Cagney <cagney@redhat.com>
2668
2669 * i386-tdep.c (i386_register_name): Handle mmx registers.
2670 (mmx_regnum_p): New function.
2671 (i386_mmx_names): New array.
2672 (mmx_num_regs): New variable.
2673 (i386_pseudo_register_read): New function.
2674 (i386_pseudo_register_write): New function.
2675 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2676
2677 * regcache.c (regcache_raw_read_unsigned): New function.
2678 (regcache_raw_read_signed): New function.
2679 * regcache.h (regcache_raw_read_unsigned): Declare.
2680 (regcache_raw_read_signed): Declare.
2681
a378f419
AC
26822002-08-13 Andrew Cagney <cagney@redhat.com>
2683
2684 * regcache.c (regcache_raw_read_as_address): Delete function.
2685 (regcache_cooked_read_signed): New function.
2686 (regcache_cooked_read_unsigned): New function.
2687 * regcache.h (regcache_cooked_read_signed): Declare.
2688 (regcache_cooked_read_unsigned): Declare.
2689 (regcache_raw_read_as_address): Delete declaration.
2690
2691 * blockframe.c (generic_read_register_dummy): Use
2692 regcache_cooked_read_unsigned.
2693 * i386-tdep.c (i386_extract_struct_value_address): Use
2694 regcache_cooked_read_unsigned.
2695
81967506
SC
26962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2697
2698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2699 double sizes according to ELF ABI flags.
2700 (gdbarch_tdep): Record elf_flags.
2701
ffe1f3ee
SC
27022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2703
2704 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2705 (m6812_prolog): They can appear in 68HC12 function prologue.
2706 (m68hc11_frame_chain): Cleanup.
2707
98216c5d
AC
27082002-08-12 Andrew Cagney <cagney@redhat.com>
2709
2710 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2711 declarations.
2712 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2713 (i386_linux_register_raw_size): Delete function.
2714 (i386_linux_init_abi): Update.
2715 * i386-tdep.c (i386_register_raw_size): Delete function.
2716 (i386_register_byte): Delete function.
2717 (i386_gdbarch_init): Update.
2718 (i386_register_size): Delete array.
2719 (i386_register_offset): Delete array.
2720
2721 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2722 (REGISTER_RAW_SIZE): Delete macro.
2723 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2724 (REGISTER_BYTE): Delete macro.
2725
3b19021e
AS
27262002-08-11 Aidan Skinner <aidan@velvet.net>
2727
2728 * ada-lang.c (ada_lookup_partial_symbol)
2729 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2730 prototype names so that grep ^func works properly.
2731
2732 * ada-lang.c (ada_array_element_type)
2733 (ada_lookup_partial_symbol): Fix typos in parameter list.
2734
2735 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2736 Fix prototype names so that grep ^func works properly.
2737
b063e7a2
AC
27382002-08-10 Andrew Cagney <cagney@redhat.com>
2739 Elena Zannoni <ezannoni@redhat.com>
2740 Martin M. Hunt <hunt@redhat.com>
2741
2742 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2743 (build_builtin_type_vec128i): Set the vector bit.
2744 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2745 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2746 (build_builtin_type_vec64): New function.
2747 (build_builtin_type_vec64i): New function.
2748 (build_gdbtypes): Initialize builtin_type_vec64 and
2749 builtin_type_vec64i.
2750
a7e3c2ad
AC
27512002-08-09 Andrew Cagney <cagney@redhat.com>
2752
2753 * regcache.c (regcache_dump): Compare the register offset
2754 with REGISTER_BYTE.
2755 * arch-utils.c (generic_register_byte): New function.
2756 * arch-utils.h (generic_register_byte): Declare.
2757 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2758 * gdbarch.h, gdbarch.c: Regenerate.
2759
af030b9a
AC
27602002-08-09 Andrew Cagney <cagney@redhat.com>
2761
2762 * regcache.c: Include "gdbcmd.h"
2763 (_initialize_regcache): Add commands "maintenance print
2764 registers", "maintenance print raw-registers" and "maintenance
2765 print cooked-registers".
2766 (enum regcache_dump_what): Define.
2767 (dump_endian_bytes): New function.
2768 (regcache_dump): New function.
2769 (regcache_print): New function.
2770 (maintenance_print_registers): New function.
2771 (maintenance_print_raw_registers): New function.
2772 (maintenance_print_cooked_registers): New function.
2773 * Makefile.in (regcache.o): Update dependencies.
2774
cb3d25d1
MS
27752002-08-09 Michael Snyder <msnyder@redhat.com>
2776
2777 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2778 (mips_push_arguments): Correct some comments. Use paddr_nz
2779 for printing addresses in debug output. Replace static
2780 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2781 (mips_n32n64_push_arguments): New function, cloned from
2782 mips_push_arguments and tuned for the n32/n64 ABI.
2783 (mips_push_register): Buffer needs dynamic allocation.
2784 (mips_print_register): Ditto.
2785 (do_gp_register_row): Ditto.
2786 (mips_store_return_value): Ditto.
2787 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2788
2163ab9d
DH
27892002-08-09 Don Howard <dhoward@redhat.com>
2790
2791 * memattr.c (mem_info_command): Print special case of upper bound
2792 as max CORE_ADDR + 1.
2793
b78bcb18
MS
27942002-08-08 Michael Snyder <msnyder@redhat.com>
2795
2796 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2797 returns structs by ref if they're too big to fit in two registers.
2798
ffabd70d
KB
27992002-08-09 Kevin Buettner <kevinb@redhat.com>
2800
2801 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2802 saved regs value.
2803 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2804 mips_find_saved_regs().
2805 (mips_pop_frame): Likewise.
2806
fbcdb4a3
KB
28072002-08-09 Kevin Buettner <kevinb@redhat.com>
2808
2809 * blockframe.c (frame_saved_regs_register_unwind): Revise
2810 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2811 frames are in use.
2812
3c3bea1c
GS
28132002-08-09 Grace Sainsbury <graces@redhat.com>
2814
2815 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2816 T-packets; the 'a' is not taken as a register number.
2817 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2818 (remote_stopped_data_address): New functions; add to target
2819 vector.
2820 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2821 prototypes to match other implementations of this
2822 function. replace integer argument with pointer -- the length
2823 field in the Z-packet is the length of what is pointed to or 1 if
2824 pointer is null. Add to target vector.
2825 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2826 target vector.
2827
2828 From Mark Salter:
2829 * remote.c (remote_wait): Add support to extract optional
2830 watchpoint information from T-packet. Ignore unrecognized
2831 optional info in T-packet.
2832 (remote_async_wait): Ditto.
2833
5d1d95de
CV
28342002-08-09 Corinna Vinschen <vinschen@redhat.com>
2835
2836 * cli/cli-dump.c: Change fopen modes to use binary open modes
2837 as defined in include/fopen-bin.h throughout.
2838
c86b5b38
MS
28392002-08-08 Michael Snyder <msnyder@redhat.com>
2840
2841 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2842
b30590dc
KB
28432002-08-08 Kevin Buettner <kevinb@redhat.com>
2844
2845 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2846 assertion failure by returning early after a warning.
2847
498868ed
KB
28482002-08-08 Kevin Buettner <kevinb@redhat.com>
2849
2850 * mips-tdep.c (mips_find_saved_regs): Make static.
2851 (mips_frame_init_saved_regs): New function.
2852 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2853 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2854 (mips_find_saved_regs): Delete declaration.
2855
b2dd6311
GS
28562002-08-08 Grace Sainsbury <graces@redhat.com>
2857
3c3bea1c
GS
2858 * remote.c (remote_wait, remote_async_wait): Change
2859 thread_num from int to ULONGEST.
2860 (unpack_varlen_hex): Change result parameter from
2861 int * to ULONGEST *.
b2dd6311 2862
ea47855f
AC
28632002-08-08 Andrew Cagney <ac131313@redhat.com>
2864
2865 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2866 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2867 powerpc*-*-*.
2868 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2869
69db8bae
AC
28702002-08-08 Andrew Cagney <cagney@redhat.com>
2871
2872 * gcore.c (override_derive_stack_segment): Delete variable.
2873 (preempt_derive_stack_segment): Delete function.
2874 (derive_stack_segment): Delete function.
2875 (default_derive_stack_segment): Renamed to derive_stack_segment.
2876 (override_derive_heap_segment): Delete variable.
2877 (preempt_derive_heap_segment): Delete function.
2878 (derive_heap_segment): Delete function.
2879 (default_derive_heap_segment): Rename to derive_heap_segment.
2880
cb811fe7
MS
28812002-08-06 Michael Snyder <msnyder@redhat.com>
2882
2883 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2884 * mips-tdep.c (mips_EABI_use_struct_convention,
2885 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2886 New functions. (mips_use_struct_convention): Delete.
2887 (mips_gdbarch_init): set use_gdbarch_convention.
2888
8b389c40
MS
28892002-08-06 Michael Snyder <msnyder@redhat.com>
2890
2891 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2892 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2893 mips_o32_reg_struct_has_addr): New functions.
2894 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2895
5c27f28a
AC
28962002-08-07 Andrew Cagney <ac131313@redhat.com>
2897
2898 * regcache.c (pseudo_register): Delete function.
2899 (fetch_register): Delete function.
2900 (store_register): Delete function.
2901 (regcache_raw_read, legacy_read_register_gen): Use
2902 target_fetch_registers instead of fetch_register.
2903 (legacy_write_register_gen, regcache_raw_write): Use
2904 target_store_register instead of store_register.
2905 (write_register_bytes): Ditto.
2906
2907 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2908 (STORE_PSEUDO_REGISTER): Delete.
2909 * gdbarch.h, gdbarch.c: Regenerate.
2910
5b331675
CV
29112002-08-06 Corinna Vinschen <vinschen@redhat.com>
2912
2913 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2914 write dump file binary.
2915
6acdf5c7
MS
29162002-08-05 Michael Snyder <msnyder@redhat.com>
2917
2918 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2919 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2920 (mips_gdbarch_init): Set N32 target to be mips64.
2921
b2f01c35
KB
29222002-08-06 Kevin Buettner <kevinb@redhat.com>
2923
2924 * frame.c (find_saved_register): Break out of loop once saved
2925 register address is found. Don't mention sparc in loop comment
2926 anymore.
2927
63db5580
KB
29282002-08-06 Kevin Buettner <kevinb@redhat.com>
2929
2930 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2931 mips_default_saved_regsize to 8.
2932
5e34e75e
AC
29332002-08-06 Andrew Cagney <ac131313@redhat.com>
2934
2935 * gcore.c: Do not include <sys/procfs.h>.
2936 * Makefile.in (gcore.o): Update dependencies.
2937
eb4c54a2
AC
29382002-08-06 Andrew Cagney <cagney@redhat.com>
2939
2940 * configure.tgt: Make arc-*-* obsolete.
2941 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2942 * MAINTAINERS: Make arc-elf obsolete.
2943 * arc-tdep.c: Make file obsolete.
2944 * config/arc/arc.mt: Ditto.
2945 * config/arc/tm-arc.h: Ditto.
2946
ced15480
TR
29472002-08-05 Theodore A. Roth <troth@verinet.com>
2948
c1bab85b 2949 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2950
b4743822
AC
29512002-08-05 Andrew Cagney <ac131313@redhat.com>
2952
2953 * mcore-tdep.c (mcore_gdbarch_init): Use
2954 generic_unwind_get_saved_register instead of
2955 generic_get_saved_register.
2956 * v850-tdep.c (v850_gdbarch_init): Ditto.
2957 * frv-tdep.c (frv_gdbarch_init): Ditto.
2958 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2959 * s390-tdep.c (s390_gdbarch_init): Ditto.
2960 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2961 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2962 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2963
3956d554
JB
29642002-08-05 Joel Brobecker <brobecker@gnat.com>
2965
2966 * objfiles.h: Add missing #include "symfile.h"
2967
2968 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2969
8249c0d6
AC
29702002-08-04 Andrew Cagney <ac131313@redhat.com>
2971
2972 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2973 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2974 of FIELD_BITSIZE.
2975
b9d14705
DJ
29762002-08-04 Daniel Jacobowitz <drow@mvista.com>
2977
2978 * NEWS: Cleanup and nitpick.
2979
dd73b9bb
AC
29802002-08-03 Andrew Cagney <ac131313@redhat.com>
2981
2982 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2983
043a27f8
AC
29842002-08-03 Andrew Cagney <ac131313@redhat.com>
2985
2986 * Makefile.in (gdbtk-bp.o): Update dependencies.
2987 (gdbtk-register.o): Ditto.
2988 (gdbtk-varobj.o): Ditto.
2989
46ce284d
AC
29902002-08-03 Andrew Cagney <cagney@redhat.com>
2991
2992 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2993 m68hc11_fetch_pseudo_register.
2994 (m68hc11_pseudo_register_write): Replace
2995 m68hc11_store_pseudo_register.
2996 (m68hc11_gdbarch_init): Update.
2997
b66d6d2e
AC
2998Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2999
3000 * gdbarch.sh: Include "gdb_string.h".
3001 * gdbarch.c: Regenerate.
3002
3003 * regcache.c: Include "gdb_string.h".
3004 * ax-general.c: Ditto.
3005 * varobj.c: Ditto.
3006 * std-regs.c: Ditto.
3007 * fbsd-proc.c: Ditto.
3008 * thread.c: Ditto.
3009
3010 * Makefile.in (regcache.o): Update dependencies.
3011 (thread.o, gdbarch.o): Ditto.
3012 (ax-general.o, gdbarch.o): Ditto.
3013 (varobj.o, std-regs.o): Ditto.
3014 (fbsd-proc.o): Specify dependencies.
3015
29e1842b
AC
30162002-08-02 Andrew Cagney <cagney@redhat.com>
3017
3018 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3019 regnum.
3020 (regcache_cooked_write): Ditto.
3021
68365089
AC
30222002-08-02 Andrew Cagney <ac131313@redhat.com>
3023
3024 * regcache.c (regcache_cooked_read): New function.
3025 (regcache_cooked_write): New function.
3026 (read_register_gen): Rewrite using regcache_cooked_read.
3027 (write_register_gen): Rewrite using regcache_cooked_write.
3028
3029 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3030 Declare.
3031
d8124050
AC
30322002-08-02 Andrew Cagney <cagney@redhat.com>
3033
3034 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3035 Replace the architecture methods register_read and register_write.
3036 * gdbarch.h, gdbarch.c: Regenerate.
3037 * regcache.c (init_regcache_descr): Update.
3038 (read_register_gen): Update.
3039 (write_register_gen): Update.
3040 (supply_register): Update comment.
3041
3042 * sh-tdep.c (sh_gdbarch_init): Update.
3043 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3044 `regcache' and `gdbarch' parameters. Make `buffer' a void
3045 pointer. Update code.
3046 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3047 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3048 void pointer. Update code.
3049 (sh64_register_write): Delete.
3050 (sh4_register_read): Delete.
3051 (sh64_register_read): Delete.
3052 (sh4_register_write): Delete.
3053 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3054 void pointer, `to' parameter a void pointer.
3055 (sh_sh64_register_convert_to_raw): Ditto.
3056
a6425924
KB
30572002-08-01 Kevin Buettner <kevinb@redhat.com>
3058
3059 * mips-tdep.c (mips_register_virtual_type): Use architecture
3060 invariant return values.
3061
ff5922b5
AC
30622002-08-01 Andrew Cagney <cagney@redhat.com>
3063
3064 * linux-proc.c: Include "gdb_string.h".
3065 * Makefile.in (linux-proc.o): Update dependency list.
3066
32a6503c
KB
30672002-08-01 Kevin Buettner <kevinb@redhat.com>
3068
3069 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3070 comment.
3071
ccaa32c7
GS
30722002-08-01 Grace Sainsbury <graces@redhat.com>
3073
3074 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3075 to_insert_watchpoint, to_remove_watchpoint,
3076 to_stopped_by_watchpoint, to_stopped_data_address,
3077 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3078 target vecctor. Define their corresponding macros so they call
3079 them.
3080
3081 * target.c: Add default and debug versions of for
3082 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3083 to_insert_watchpoint, to_remove_watchpoint,
3084 to_stopped_by_watchpoint, to_stopped_data_address,
3085 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3086
78fde5f8
KB
30872002-08-01 Kevin Buettner <kevinb@redhat.com>
3088
3089 * mips-tdep.c (mips_register_virtual_type): New function.
3090 (mips_gdbarch_init): Register mips_register_virtual_type()
3091 with gdbarch machinery.
3092 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3093 this file instead of tm-bigmips.h.
3094 (MIPS_REGSIZE): Delete this macro.
3095 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3096 multiarch version in mips-tdep.c will be found.
3097
db034ac5
AC
30982002-08-01 Andrew Cagney <cagney@redhat.com>
3099
3100 * NEWS: Menion that CHILL has been made obsolete.
3101
3102 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3103 * stabsread.c (read_range_type): Ditto.
3104 * gdbtypes.h: Ditto.
3105 * language.c (binop_type_check): Ditto.
3106 (binop_result_type): Ditto.
3107 (integral_type): Ditto.
3108 (character_type): Ditto.
3109 (string_type): Ditto.
3110 (boolean_type): Ditto.
3111 (structured_type): Ditto.
3112 (lang_bool_type): Ditto.
3113 (binop_type_check): Ditto.
3114 * language.h (_LANG_chill): Ditto.
3115 * dwarfread.c (set_cu_language): Ditto.
3116 * dwarfread.c (CHILL_PRODUCER): Ditto.
3117 * dwarfread.c (handle_producer): Ditto.
3118 * expression.h (enum exp_opcode): Ditto.
3119 * eval.c: Ditto for comments.
3120 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3121 * expprint.c (print_subexp): Ditto.
3122 (print_subexp): Ditto.
3123 * valops.c (value_cast): Ditto.
3124 (search_struct_field): Ditto.
3125 * value.h (COERCE_VARYING_ARRAY): Ditto.
3126 * symfile.c (init_filename_language_table): Ditto.
3127 (add_psymbol_with_dem_name_to_list): Ditto.
3128 * valarith.c (value_binop): Ditto.
3129 (value_neg): Ditto.
3130 * valops.c (value_slice): Ditto.
3131 * symtab.h (union language_specific): Ditto.
3132 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3133 (SYMBOL_DEMANGLED_NAME): Ditto.
3134 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3135 * defs.h (enum language): Ditto.
3136 * symtab.c (got_symtab): Ditto.
3137 * utils.c (fprintf_symbol_filtered): Ditto.
3138
3139 * ch-typeprint.c: Make file obsolete.
3140 * ch-valprint.c: Make file obsolete.
3141 * ch-lang.h: Make file obsolete.
3142 * ch-exp.c: Make file obsolete.
3143 * ch-lang.c: Make file obsolete.
3144
3145 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3146 CHILL_LIB.
3147 (TARGET_FLAGS_TO_PASS): Ditto.
3148 (CHILLFLAGS): Obsolete.
3149 (CHILL): Obsolete.
3150 (CHILL_FOR_TARGET): Obsolete.
3151 (CHILL_LIB): Obsolete.
3152 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3153 ch-valprint.c.
3154 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3155 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3156 ch-lang.o.
3157 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3158 targets.
3159
8aaf0b47
JB
31602002-07-31 Joel Brobecker <brobecker@gnat.com>
3161
3162 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3163 This does not change anything at the moment, but will be helpful
3164 later when full Ada support is integrated.
3165
f3a7b3a5
KB
31662002-07-31 Kevin Buettner <kevinb@redhat.com>
3167
3168 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3169 help message.
3170
fb850278
KB
31712002-07-31 Kevin Buettner <kevinb@redhat.com>
3172
3173 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3174 and save it in a local variable. Use variable in later test.
3175
e3bddbfa
KB
31762002-07-31 Kevin Buettner <kevinb@redhat.com>
3177
3178 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3179 test. (Thanks to Daniel Jacobowitz.)
3180
28d169de
KB
31812002-07-31 Kevin Buettner <kevinb@redhat.com>
3182
3183 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3184 (mips_abi_strings): Add "n64".
3185 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3186
7fe7e44e
KB
31872002-07-31 Kevin Buettner <kevinb@redhat.com>
3188
3189 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3190 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3191
c6caf090
KB
31922002-07-31 Kevin Buettner <kevinb@redhat.com>
3193
3194 * utils.c (host_pointer_to_address, address_to_host_pointer):
3195 Use gdb_assert() instead of explicit call to internal_error().
3196
c41669e0
KB
31972002-07-30 Kevin Buettner <kevinb@redhat.com>
3198
3199 * Makefile.in (rs6000-nat.o): Update dependencies.
3200
3201 From Nicholas Duffek:
3202 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3203 (aix-thread.o): New rule.
3204 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3205 * config/powerpc/aix432.mh: New file.
3206
2fda4977
DJ
32072002-07-30 Daniel Jacobowitz <drow@mvista.com>
3208
3209 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3210 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3211 (fetch_core_registers, ppc_linux_supply_gregset)
3212 (ppc_linux_supply_fpregset): New functions.
3213 (ppc_linux_regset_core_fns): New.
3214 (_initialize_ppc_linux_tdep): Call add_core_fns.
3215 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3216 and ppc_linux_supply_gregset.
3217 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3218 (supply_fpregset): Call ppc_linux_supply_fpregset.
3219 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3220 corelow.o.
3221 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3222
729051e6
DJ
32232002-07-30 Daniel Jacobowitz <drow@mvista.com>
3224
3225 * symtab.c (lookup_symbol): Demangle before lowercasing.
3226
5f8a3188
AC
32272002-07-30 Andrew Cagney <ac131313@redhat.com>
3228
3229 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3230 declaration.
3231 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3232 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3233 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3234 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3235 "gdb_string.h".
3236 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3237 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3238 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3239 (avr-tdep.o, mon960-rom.o): Ditto.
3240 (aout_stabs_gnu_h): Define.
3241 (symtab_h): Remove $(gdb_obstack_h).
3242
67f07146
JB
32432002-07-30 Jim Blandy <jimb@redhat.com>
3244
3245 Patch from David Carlton <carlton@math.stanford.edu>:
3246 * gdbinit.in: Move the `dir' commands that add GDB's own source
3247 directory to the search path to the end, so that the `gdb' source
3248 directory will be searched first.
3249
04ea0df1
AC
32502002-07-29 Andrew Cagney <ac131313@redhat.com>
3251
3252 * gdb_obstack.h: New file.
3253 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3254 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3255 * objfiles.h: Include "gdb_obstack.h".
3256 * Makefile.in (gdb_obstack_h): Define.
3257 (symtab_h): Add $(gdb_obstack_h).
3258 (objfiles_h): Add $(gdb_obstack_h).
3259
3260 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3261 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3262 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3263 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3264 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3265 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3266 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3267 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3268
3269 * Makefile.in (bcache.o): Update dependencies.
3270 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3271 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3272 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3273 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3274 (stabsread.o, symfile.o, symmisc.o): Ditto.
3275 (symtab.o, typeprint.o, macroexp.o): Ditto.
3276 (macrotab.o, mdebugread.o): Ditto.
3277 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3278 (coff_ecoff_h, aout_aout64_h): Define.
3279 (aout_stabs_gnu_h, libaout_h): Define.
3280
d138e37a
AC
32812002-07-29 Andrew Cagney <cagney@redhat.com>
3282
3283 * regcache.c (struct regcache_descr): Rename nr_registers to
3284 nr_cooked_registers. Revise comments describing the structure
3285 member fields.
3286 (init_regcache_descr): Update.
3287 (init_legacy_regcache_descr): Update.
3288 (read_register_gen, write_register_gen): When a cooked register in
3289 the raw register range, directly access the value from the raw
3290 register cache.
3291
460e6ec3
AC
32922002-07-29 Andrew Cagney <ac131313@redhat.com>
3293
3294 * z8k-tdep.c: Do not include "obstack.h".
3295 * h8300-tdep.c, h8500-tdep.c: Ditto.
3296 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3297 * valprint.c, v850-tdep.c: Ditto.
3298 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3299 * mn10200-tdep.c: Ditto.
3300
3301 * Makefile.in (z8k-tdep.o): Update dependencies.
3302 (m68hc11-tdep.o, valprint.o): Ditto.
3303 (v850-tdep.o, d10v-tdep.o): Ditto.
3304 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3305 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3306 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3307 (sh_opc_h, gdb_sim_sh_h): Define.
3308 (elf_sh_h, elf_bfd_h): Define.
3309 (opcode_m68hc11_h): Define.
3310 (OPCODES_SRC, OPCODES_DIR): define.
3311 (OPCODES): Use $(OPCODES_DIR).
3312 (gdb_sim_d10v_h): Rename sim_d10v_h.
3313 (gdb_sim_arm_h): Rename sim_arm_h.
3314
790c9cf0
KB
33152002-07-26 Kevin Buettner <kevinb@redhat.com>
3316
3317 * utils.c (host_pointer_to_address, address_to_host_pointer):
3318 Change internal_error() message to indicate function responsible
3319 for the error.
3320
9647fa49
KB
33212002-07-26 Kevin Buettner <kevinb@redhat.com>
3322
3323 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3324 calls to local_hex_string_custom().
3325
dabbe2c0
KB
33262002-07-26 Kevin Buettner <kevinb@redhat.com>
3327
3328 * irix5-nat.c: Move IRIX shared library support from here...
3329 * solib-irix.c: ...to here. Revised substantially to work with
3330 generic solib framework.
3331
b96d0a4e
KB
3332 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3333 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3334 * mips-irix-tdep.c: New file.
3335
313fb2f6
KB
3336 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3337 (mips-irix-tdep.o, solib-irix.o): New rules.
3338 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3339 solib-irix.o.
3340 * config/mips/irix6.mt (TDEPFILES): Likewise.
3341 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3342
ab2eaf26
KB
33432002-07-26 Kevin Buettner <kevinb@redhat.com>
3344
177e4768 3345 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3346 disabled (via ``#if 0'') includes.
3347
7244546a
KB
33482002-07-26 Kevin Buettner <kevinb@redhat.com>
3349
3350 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3351 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3352 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3353 Add support for the fpscr register.
3354 * rs6000-nat.c (regmap, fetch_inferior_registers)
3355 (store_inferior_registers, fetch_core_registers): Likewise.
3356
dd7be90a
KB
33572002-07-26 Kevin Buettner <kevinb@redhat.com>
3358
3359 * rs6000-nat.c (language.h): Include.
3360 (special_regs): Delete this array.
3361 (regmap): New function.
3362 (fetch_register, store_register): Use regmap() to map gdb
3363 register numbers to ptrace register numbers. Also, use
3364 outputs from regmap() to make decisions regarding type of
3365 ptrace() call to make. In particular, don't compare against
3366 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3367 (fetch_inferior_registers, store_inferior_registers): Where
3368 possible, obtain register numbers from tdep struct. Don't
3369 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3370 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3371 (LAST_UISA_SP_REGNUM): Delete.
3372
11bf77db
KB
33732002-07-25 Kevin Buettner <kevinb@redhat.com>
3374
3375 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3376 (fetch_registers, store_register, fetch_core_registers): Don't
3377 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3378 regcache_collect() as appropriate.
3379 (find_toc_address): Format hex address with local_hex_string().
3380
06afebeb
AC
33812002-07-25 Andrew Cagney <ac131313@redhat.com>
3382
3383 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3384 bfd/elf32-frv.c.
3385
8c554d79
TT
33862002-07-24 Tom Tromey <tromey@redhat.com>
3387
3388 * jv-exp.y: Marked all strings with _().
3389 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3390 internal_error.
3391 (MethodInvocation, CastExpression, parse_number, yyerror,
3392 java_type_from_name, push_expression_name, yylex): Typo fixes.
3393
e4c242d9
DJ
33942002-07-24 Daniel Jacobowitz <drow@mvista.com>
3395
3396 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3397 (tee_file_flush, tee_file_write, tee_file_fputs)
3398 (tee_file_isatty): New.
3399 * ui-file.h (tee_file_new): Add prototype.
3400
ebf56fd3
AS
34012002-07-24 Aidan Skinner <aidan@velvet.net>
3402
3403 * ada-lang.c: Change k&r style function definitions to prototyped
3404 form.
3405 * ada-typeprint.c: Change k&r style function definitions to prototyped
3406 form.
3407 * ada-valprint.c: Change k&r style function definitions to prototyped
3408 form.
3409
7fb623f7
AC
34102002-07-24 Andrew Cagney <cagney@redhat.com>
3411
3412 * README: Remove reference to remote-bug.
3413 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3414 remote-bug.c.
3415 (m88k-nat.o): Delete rule.
3416 (m88k-tdep.o): Delete rule.
3417 (remote-bug.o): Delete rule.
3418 * MAINTAINERS: Mark as obsolete.
3419 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3420 * m88k-tdep.c: Make file obsolete.
3421 * config/m88k/m88k.mh: Ditto.
3422 * config/m88k/delta88v4.mh: Ditto.
3423 * config/m88k/delta88v4.mt: Ditto.
3424 * config/m88k/delta88.mt: Ditto.
3425 * config/m88k/delta88.mh: Ditto.
3426 * remote-bug.c: Ditto.
3427 * config/m88k/tm-delta88.h: Ditto.
3428 * config/m88k/nm-delta88v4.h: Ditto.
3429 * config/m88k/xm-delta88.h: Ditto.
3430 * config/m88k/xm-dgux.h: Ditto.
3431 * config/m88k/tm-m88k.h: Ditto.
3432 * config/m88k/nm-m88k.h: Ditto.
3433 * config/m88k/tm-delta88v4.h: Ditto.
3434 * m88k-nat.c: Ditto.
3435 * cxux-nat.c: Ditto.
3436 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3437 and m88*-*-* obsolete.
3438 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3439 m88*-*-* obsolete.
3440
37611a2b
AC
34412002-07-24 Andrew Cagney <cagney@redhat.com>
3442
3443 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3444 constant. Same for local pointer variables.
3445 (extract_signed_integer): Ditto.
3446 * defs.h (extract_unsigned_integer): Update.
3447 (extract_signed_integer): Update.
3448
1aaa5f99
AC
34492002-07-24 Andrew Cagney <cagney@redhat.com>
3450
3451 * regcache.c (regcache_raw_write): Change buf parameter to a
3452 constant void pointer.
3453 (regcache_raw_read): Change buf parameter to a void pointer.
3454 (legacy_write_register_gen): Change myaddr parameter a constant
3455 void pointer.
3456 (supply_register): Change val parameter to a const void pointer.
3457 * regcache.h (regcache_raw_write): Update declaration.
3458 (regcache_raw_read): Update declaration.
3459 (supply_register): Update declaration.
3460
b4f5539f
TT
34612002-07-24 Tom Tromey <tromey@redhat.com>
3462
3463 * defs.h (gdb_readline_wrapper): Declare.
3464 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3465 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3466 * top.c (gdb_readline_wrapper): New function.
3467 (command_line_input): Use it.
3468
0818c12a
AC
34692002-07-24 Andrew Cagney <cagney@redhat.com>
3470
3471 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3472 regcache_read and regcache_write.
3473 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3474 * regcache.c: Update.
3475 * sh-tdep.c (sh64_push_arguments): Update comment.
3476 (sh_pseudo_register_read): Update.
3477 (sh_pseudo_register_write): Update.
3478 (sh4_register_read): Update.
3479 (sh4_register_write): Update.
3480 (sh64_pseudo_register_read): Update.
3481 (sh64_pseudo_register_write): Update.
3482 (sh64_register_read): Update.
3483 (sh64_register_write): Update.
3484 * i386-tdep.c (i386_extract_return_value): Update.
3485 (i386_extract_struct_value_address): Update.
3486 (i386_extract_return_value): Update.
3487 * blockframe.c (generic_read_register_dummy): Update.
3488 (generic_call_dummy_register_unwind): Update
3489 * infrun.c (write_inferior_status_register): Update.
3490
f7321c06
JB
34912002-07-23 Jim Blandy <jimb@redhat.com>
3492
3493 * parser-defs.h (expression_context_pc): Make this extern.
3494 (Thanks to Michael Snyder.)
3495
2037aebb
AC
34962002-07-23 Andrew Cagney <ac131313@redhat.com>
3497
3498 GDB 5.2.1 released from 5.2 branch.
3499 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3500 * README: Update to mention 5.2.1.
3501
66504d44
MS
35022002-07-23 Mark Salter <msalter@redhat.com>
3503
3504 * remote.c (remote_read_bytes): Fix check for error.
3505
27bae383
KB
35062002-07-22 Kevin Buettner <kevinb@redhat.com>
3507
3508 * aix-thread.c (language.h): Include.
3509 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3510 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3511 Print newlines at end of debug messages.
3512 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3513 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3514
35152002-07-22 Kevin Buettner <kevinb@redhat.com>
3516
3517 * aix-thread.c (ppc-tdep.h): Include.
3518 (special_register_p): New function.
3519 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3520 (store_regs_user_thread): Use register number information from
3521 gdbarch_tdep struct instead of hardcoded offsets relative to
3522 FIRST_UISA_SP_REGNUM.
3523 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3524 special_register_p() instead of using FPLAST_REGNUM and
3525 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3526 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3527 will be MQ's register number.
3528
35292002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3530
3531 * aix-thread.c (ops): Rename to aix_thread_ops.
3532 (base_ops): Rename to base_target.
3533 (ops_attach): Rename to aix_thread_attach.
3534 (ops_detach): Rename to aix_thread_detach.
3535 (ops_resume): Rename to aix_thread_detach.
3536 (ops_wait): Rename to aix_thread_wait.
3537 (ops_kill): Rename to aix_thread_kill.
3538 (init_ops): Rename to init_aix_thread_ops.
3539 (ops_fetch_register): Rename to aix_thread_fetch_register.
3540 (ops_store_register): Rename to aix_thread_store_register.
3541 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3542 (ops_thread_alive): Rename to aix_thread_thread_alive.
3543 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3544 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3545 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3546 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3547 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3548 (store_regs_lib): Rename to store_regs_user_thread.
3549 (store_regs_kern): Rename to store_regs_kernel_thread.
3550
27bae383 35512002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3552
3553 * aix-thread.c (ops_prepare_to_store): Eliminate.
3554 (init_ops): Don't initialize ops.prepare_to_store.
3555 (store_regs_kern): Pre-fetch register buffers from child,
3556 because some registers may not be in the cache. Copy
3557 regs from register cache only if they are cached.
3558 (store_regs_lib): Copy regs from register cache only
3559 if they are cached.
3560 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3561 fill_gprs64): Ditto.
3562
61c5da0b
KB
35632002-07-22 Kevin Buettner <kevinb@redhat.com>
3564
3565 * aix-thread.c (gdb_assert.h): Include.
3566 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3567 register sizes (from register cache) match size of buffer holding
3568 register data.
3569 (fill_sprs32): Change parameter types to match those in the ptrace()
3570 buffer.
3571 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3572 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3573
35742002-07-22 Michael Snyder <msnyder@redhat.com>
3575
3576 * aix-thread.c (supply_sprs64): Cosmetic change.
3577 (supply_sprs32): Cosmetic change.
3578 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3579 (fill_sprs64): Use regcache_collect instead of read_register.
3580 (store_regs_lib): Use regcache_collect instead of
3581 read_register. Use fill_sprs32 instead of fill_sprs64,
3582 if debugging a 32-bit architecture.
3583 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3584 out of the register cache, instead of passing a pointer into
3585 the register cache directly to ptrace. Use regcache_collect
3586 insteaad of read_register.
3587 (ops_prepare_to_store): Use target_read_registers instead
3588 of read_register_bytes.
3589
36479eb1
AS
35902002-07-20 Aidan Skinner <aidan@velvet.net>
3591
3592 * MAINTAINERS: Add self under write after approval.
3593
80ae6ee2
AS
35942002-07-20 Aidan Skinner <aidan@velvet.net>
3595
3596 * ada-tasks.c: Change k&r style function definitions to prototyped
3597 form.
3598
8a8ab2b9
AC
35992002-07-19 Andrew Cagney <ac131313@redhat.com>
3600
3601 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3602 * x86-64-tdep.c: Include "objfiles.h".
3603 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3604 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3605
fb16b900
ML
36062002-07-17 Michal Ludvig <michal@suse.cz>
3607
3608 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3609 (update_context): Initialise cfa variable.
3610
0fe7bf7b
MS
36112002-07-17 Michael Snyder <msnyder@redhat.com>
3612
3613 * aix-thread.c: Shorten some long lines.
3614 Bring comments into line with code spec.
3615
488f131b
JB
36162002-07-18 Joel Brobecker <brobecker@gnat.com>
3617
3618 * infrun.c: Re-indent using gdb_indent.sh.
3619
46c415d2
JB
36202002-07-18 Joel Brobecker <brobecker@gnat.com>
3621
3622 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3623 Leave the indentation temporarily untouched, to minimize the diffs.
3624
cdecafbe
EZ
36252002-07-18 Elena Zannoni <ezannoni@redhat.com>
3626
3627 * stabsread.c: Make os9k sections of the code obsolete,
3628 for real this time.
3629 * stabsread.h: Make os9k sections of the code obsolete.
3630
7b6aa020
ML
36312002-07-18 Michal Ludvig <mludvig@suse.cz>
3632
09ec9b38
ML
3633 * linux-low.c (regsets_store_inferior_registers): Add free()
3634 at the end of a loop to prevent memory leak.
3635 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3636 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3637 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3638 line a comment.
4894ac5d 3639 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3640
233282cd
JB
36412002-07-17 Jim Blandy <jimb@redhat.com>
3642
3643 * macrocmd.c (info_macro_command): Remove newline from error
3644 message.
3645
7b6aa020 36462002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3647
3648 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3649 (sh_gdbarch_init): Use it for sh-dsp.
3650
f7ef9339
KB
36512002-07-16 Kevin Buettner <kevinb@redhat.com>
3652
3653 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3654 64-bit DWARF2 format.
3655
8dd72958
JB
36562002-07-16 Joel Brobecker <brobecker@gnat.com>
3657
3658 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3659 <sys/proc.h> when not available.
3660
a99a9e1b
AC
36612002-07-16 Andrew Cagney <ac131313@redhat.com>
3662
3663 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3664 * stabsread.c: Make os9k sections of the code obsolete.
3665 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3666 * config/i386/i386os9k.mt: Make file obsolete.
3667 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3668 (COMMON_OBS): Remove os9kread.o
3669 (SFILES): Remove os9kread.c.
3670 (os9kread.o, remote-os9k.o): Make target obsolete.
3671 * remote-os9k.c: Make file obsolete.
3672 * os9kread.c: Make file obsolete.
3673 * Makefile.in
3674
7a3085c1
AC
36752002-07-16 Andrew Cagney <ac131313@redhat.com>
3676
3677 * NEWS: Mention that the FR30 has been made obsolete.
3678 * fr30-tdep.c: Make file obsolete.
3679 * config/fr30/tm-fr30.h: Ditto.
3680 * config/fr30/fr30.mt: Ditto.
3681 * configure.tgt: Make fr30-*-elf obsolete.
3682 * MAINTAINERS: Make fr30-elf obsolete.
3683
28a93f5a
PM
36842002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3685
3686 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3687 found is not inside a section.
3688
be006b8b
KB
36892002-07-15 Kevin Buettner <kevinb@redhat.com>
3690
3691 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3692 strerror().
3693 (pdc_realloc): Use xrealloc() instead of realloc().
3694
14fa3751
KB
36952002-07-15 Kevin Buettner <kevinb@redhat.com>
3696
3697 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3698 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3699 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3700 macros.
3701
42cc437f
KB
37022002-07-15 Kevin Buettner <kevinb@redhat.com>
3703
3704 * aix-thread.c (ptrace_check): Eliminate goto.
3705 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3706 problem.
3707
8e2c28d4
KB
37082002-07-15 Kevin Buettner <kevinb@redhat.com>
3709
3710 * aix-thread.c (gdbcmd.h): Include.
3711 (DEBUG, DBG, DBG2, dbg): Eliminate.
3712 (debug_aix_thread): New static global.
3713 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3714 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3715 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3716 invocations to DBG and DBG2 macros to test against
3717 ``debug_aix_thread'' and call fprintf_unfiltered().
3718 (_initialize_aix_thread): Add new command "set debug aix-thread".
3719
30413464
AC
37202002-07-15 Andrew Cagney <ac131313@redhat.com>
3721
3722 From Gerhard Tonn <TON@de.ibm.com>:
3723 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3724 instead of supply_register.
3725
7c43edc1
AC
37262002-07-15 Andrew Cagney <ac131313@redhat.com>
3727
3728 * dwarf2cfi.c: Include "gdb_assert.h".
3729 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3730 non-NULL.
3731 (update_context): Do not use __func__. Add missing ``break''.
3732 (update_context): Do not use __func__.
3733
9364a0ef
EZ
37342002-07-15 Elena Zannoni <ezannoni@redhat.com>
3735
3736 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3737 and its setting. Set gdbarch instruction printing functions
3738 directly. For non-rs6000 case use new function
3739 gdb_print_insn_powerpc.
3740 (gdb_print_insn_powerpc): New function.
3741
3fbeef0b
AC
37422002-07-13 Andrew Cagney <ac131313@redhat.com>
3743
92eb23c5 3744 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3745 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3746 * configure.tgt: Mark d30v-*-* as obsolete.
3747 * d30v-tdep.c: Mark file as obsolete.
3748 * config/d30v/d30v.mt: Ditto.
3749 * config/d30v/tm-d30v.h: Ditto.
3750
aacb1f0a
AS
37512002-07-13 Aidan Skinner <aidan@velvet.net>
3752
3753 * ada-tasks.c (add_task_entry): replace calls to
3754 malloc() with xmalloc
3755 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3756
3757 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3758 ada_finish_decode_line_1, all_sals_for_line
3759 ada_breakpoint_rewrite): replace calls to free() with xfree()
3760
c11d79f2
KB
37612002-07-12 Kevin Buettner <kevinb@redhat.com>
3762
3763 From Nicholas Duffek (with minor changes by Martin Hunt,
3764 Louis Hamilton, and Kevin Buettner):
3765 * aix-thread.c: New file.
3766
8e19ed76
PS
37672002-07-12 Petr Sorfa <petrs@caldera.com>
3768
3769 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3770 complaint for invalid attribute class or form.
3771 (read_func_scope): DW_AT_frame_base
3772 better handling of DW_AT_block*.
3773 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3774 better handling of DW_AT_block*.
3775 (read_common_block): DW_AT_location
3776 better handling of DW_AT_block*.
3777 (read_partial_die): DW_AT_location better handling
3778 of DW_AT_block*.
3779 (new_symbol): DW_AT_external better handling of
3780 DW_AT_block*. Proper initialization of variable
3781 "addr".
3782 (attr_form_is_block): New function that returns true
3783 if the attribute's form is of DW_FORM_block*.
3784
295401f7
DJ
37852002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3786
3787 * valops.c (find_method_list): Remove comment about
3788 removed STATIC_MEMFUNCP argument.
3789 (value_find_oload_method_list): Likewise.
3790
e42dc924
KB
37912002-07-12 Kevin Buettner <kevinb@redhat.com>
3792
3793 From Nicholas Duffek:
3794 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3795 target_new_objfile_hook.
3796
6904b546
KB
37972002-07-12 Kevin Buettner <kevinb@redhat.com>
3798
3799 From Nicholas Duffek:
3800 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3801 csect.
3802
53fe9346
AC
38032002-07-12 Andrew Cagney <cagney@redhat.com>
3804
3805 * MAINTAINERS: Mention --enable-sim-build-warnings.
3806 (m68hc11-elf): Disable sim build warnings.
3807 (m32r-elf): Mark as broken obsolete candidate.
3808 (x86_64-linux-gnu): Mark as buildable with -Werror.
3809 (arm-elf): Change -w to ``,'' which enables warnings but not
3810 -Werror.
3811
af5f3db6
AC
38122002-07-12 Andrew Cagney <ac131313@redhat.com>
3813
3814 * bcache.h: Update copyright.
3815 (struct bstring, struct bcache): Move definition to "bcache.c".
3816 Replaced by opaque declaration.
3817 (bcache_xfree): Replace free_bcache.
3818 (bcache_xmalloc, bcache_memory_used): Declare.
3819
3820 * bcache.c: Update copyright.
3821 (struct bstring, struct bcache): Moved to here from "bcache.h".
3822 Update comments.
3823 (bcache_xmalloc, bcache_memory_used): New functions.
3824 (bcache_xfree): Replace function free_bcache.
3825
3826 * Makefile.in (objfiles.o): Add $(bcache_h).
3827 (objfiles_h): Remove $(bcache_h).
3828 (symfile.o): Add $(bcache_h).
3829
3830 * symmisc.c: Update copyright.
3831 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3832 (print_objfile_statistics): Use bcache_memory_used.
3833
3834 * symfile.c: Include "bcache.h".
3835 (reread_symbols): Use bcache_xfree.
3836 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3837 (add_psymbol_to_list): Pass psymbol_cache by value.
3838 (add_psymbol_with_dem_name_to_list): Ditto.
3839
3840 * objfiles.h: Update copyright.
3841 (struct bcache): Declare opaque. Do not include "bcache.h".
3842 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3843 bcache'' pointers.
3844 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3845
3846 * objfiles.c: Include "bcache.h". Update copyright.
3847 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3848 macro_cache.
3849 (free_objfile): Use bcache_xfree.
3850
444199e7
GS
38512002-07-11 Grace Sainsbury <graces@redhat.com>
3852
3853 * monitor.c (monitor_fetch_register): Make name a constant.
3854 (monitor_store_register): Same.
3855
261397f8
DJ
38562002-07-11 Daniel Jacobowitz <drow@mvista.com>
3857
3858 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3859 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3860 (finish_block) For non-function blocks, hash the symbol table. For
3861 function blocks, mark the symbol table as unhashed.
3862 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3863 (msymbol_hash_iw): Likewise.
3864 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3865 value.
3866 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3867 (lookup_minimal_symbol): Likewise for both.
3868 * symtab.h (struct block): Add `hashtable' flag. Comment the
3869 hashtable.
3870 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3871 (ALL_BLOCK_SYMBOLS): Update.
3872 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3873 (struct symbol): Add `hash_next' pointer.
3874 * symtab.c (lookup_block_symbol): Search using the hash table when
3875 possible.
3876 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3877 (search_symbols, find_addr_symbol): Likewise.
3878
3879 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3880 (read_dst_symtab): Likewise.
3881 * jv-lang.c (get_java_class_symtab): Likewise.
3882 * mdebugread.c: Include "gdb_assert.h".
3883 (shrink_block): Assert that the block being modified is not hashed.
3884 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3885 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3886 symbols.
3887 (dump_symtab): Recognize hashed blocks.
3888 * printcmd.c (print_frame_args): Assert that function blocks do not
3889 have hashed symbol tables.
3890 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3891 (fill_in_ada_prototype, debug_print_block): Likewise.
3892 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3893
6f0eaa01
CV
38942002-07-11 Corinna Vinschen <vinschen@redhat.com>
3895
3896 * stack.c (print_frame): Use result of frame_address_in_block()
3897 instead of fi->pc when evaluating symbols.
3898 (backtrace_command_1): Ditto.
3899
a208b0cb
AC
39002002-07-11 Andrew Cagney <cagney@redhat.com>
3901
3902 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3903 Make static.
3904
3905 * arm-tdep.c (arm_register_name): Make return type constant.
3906
a6b6b089
AC
39072002-07-10 Andrew Cagney <ac131313@redhat.com>
3908
5ae5f592
AC
3909 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3910 prototype.
3911 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3912 * s390-tdep.c (s390_fp_regnum): Ditto.
3913 (s390_read_fp): Ditto.
3914 (s390_pop_frame): Ditto.
3915 (_initialize_s390_tdep): Ditto.
3916 * remote.c (get_remote_state): Ditto.
3917 * procfs.c (mappingflags): Ditto.
3918 * memattr.c (_initialize_mem): Ditto.
3919 * mcore-tdep.c (mcore_pop_frame): Ditto.
3920 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3921 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3922 * language.c (set_case_str): Ditto.
3923 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3924 * frv-tdep.c (new_variant): Ditto.
3925 (frv_stopped_data_address): Ditto.
3926 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3927 (context_alloc): Ditto.
3928 (frame_state_alloc): Ditto.
3929 (unwind_tmp_obstack_init): Ditto.
3930 (unwind_tmp_obstack_free): Ditto.
3931 (cfi_read_fp): Ditto.
3932 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3933 (cris_pop_frame): Ditto.
3934 * c-lang.c (scanning_macro_expansion): Ditto.
3935 (finished_macro_expansion): Ditto.
3936 (c_preprocess_and_parse): Ditto.
3937 * gdbarch.sh: Ditto.
3938 * gdbarch.h, gdbarch.c: Regenerate.
3939 * config/mn10200/tm-mn10200.h: Adjust indentation.
3940 * target.c: Adjust indentation.
3941 * symtab.h: Adjust indentation.
3942 * stabsread.h: Adjust indentation.
3943 * remote-es.c: Adjust indentation.
3944 * os9kread.c: Adjust indentation.
3945
39462002-07-10 Andrew Cagney <ac131313@redhat.com>
3947
a6b6b089
AC
3948 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3949 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3950
a1789893
GS
39512002-07-10 Grace Sainsbury <graces@redhat.com>
3952
3953 * NEWS: Mention m68k, mcore multi-arching.
3954 * MAINTAINERS: Change status of m68k, mcore to reflect
3955 multi-arching.
3956
02f0d45d
DJ
39572002-07-10 Daniel Jacobowitz <drow@mvista.com>
3958
3959 * valops.c (find_overload_match): Free oload_syms.
3960
f15f768e
JB
39612002-07-09 Joel Brobecker <brobecker@gnat.com>
3962
3963 Define HAVE_SYS_PROC_H if sys/proc.h exists
3964 * configure.in: Add check for sys/proc.h
3965 * config.in: Regenerate.
3966 * configure: Regenerate.
3967
902a7139
GS
39682002-07-09 Grace Sainsbury <graces@redhat.com>
3969
3970 * config/m68k/tm-m68k.h: Remove macros wrapped in
3971 #if !GDB_MULTI_ARCH.
3972
a534e424
AC
39732002-07-08 Andrew Cagney <ac131313@redhat.com>
3974
3975 * config.in, configure: Regenerate.
3976
9b94f7bf
MK
39772002-07-08 Mark Kettenis <kettenis@gnu.org>
3978
3979 * dwarf2cfi.c: Include "gcore.h".
3980 (execute_stack_op): Fix implementation of the
3981 DW_OP_deref and DW_OP_deref_size operators by letting do their
3982 lookup in the target.
3983
1d34db41
MK
39842002-07-07 Mark Kettenis <kettenis@gnu.org>
3985
3986 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3987 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3988 tdep->sc_sp_offset.
3989
79d5b63a
DJ
39902002-07-05 Daniel Jacobowitz <drow@mvista.com>
3991
3992 Fix PR gdb/595, gdb/602
3993 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3994 Don't call value_cast, just read the vtable pointer; update comments
3995 to match.
3996
3bb912e8
GS
39972002-07-05 Grace Sainsbury <graces@redhat.com>
3998
3999 * config/mcore/tm-mcore.h: Remove file.
4000 * config/mcore/mcore.mt: Remove definition of TM_FILE
4001 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4002
ca39387d
MK
40032002-07-05 Mark Kettenis <kettenis@gnu.org>
4004
4005 * i386bsd-tdep.c: Include "gdb_string.h".
4006
efdc1108
GS
40072002-07-04 Grace Sainsbury <graces@redhat.com>
4008
4009 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4010 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4011 mcore-tdep.
4012 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4013 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4014 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4015 (RETVAL_REGNUM): Move macros from tm-mcore.h
4016 (mcore_reg_struct_has_addr): New function.
4017 (mcore_gdbarch_init): Added initializations for the macros removed
4018 from tm-mcore.h.
4019
bb21884d
MK
40202002-07-04 Mark Kettenis <kettenis@gnu.org>
4021
4022 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4023 traditonal string branding within the ELF header.
4024
228c6d41
DJ
40252002-07-04 Daniel Jacobowitz <drow@mvista.com>
4026
4027 * symtab.c (remove_params): New function.
4028 (make_symbol_overload_list): Use it instead of cplus_demangle.
4029 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4030
2404952e
MK
40312002-07-04 Mark Kettenis <kettenis@gnu.org>
4032
e5e4acad
MK
4033 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4034
baadce09
MK
4035 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4036 New variables.
4037 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4038 and tdep->sigtramp_end.
4039 * i386obsd-nat.c: New file.
4040 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4041
2404952e
MK
4042 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4043 Don't call get_current_frame().
4044
9b4f1ba7
PM
40452002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4046
4047 * i386-nat.c (child_post_startup_inferior): New function
4048 calling i386_cleanup_dregs if
4049 I386_USE_GENERIC_WATCHPOINTS is defined.
4050 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4051 conditional to acknowledge that i386-nat.c has its
4052 own child_post_startup_inferior function.
4053
c0d1d883
MK
40542002-07-04 Mark Kettenis <kettenis@gnu.org>
4055
00f8375e
MK
4056 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4057 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4058 instead of MAX_REGISTER_RAW_SIZE.
4059 (i386_extract_return_value, i386_extract_struct_value_address):
4060 Convert to use regcache.
4061 (i386_gdbarch_init): Set max_register_raw_size and
4062 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4063 Set extract_return_value and extract_struct_value_address instead
4064 of their deprecated variants.
4065
c0d1d883
MK
4066 Convert i386 target to generic dummy frames.
4067 * i386-tdep.c: Include "symfile.h".
4068 (i386_frameless_signal_p): Consider a function to be frameless if
4069 the pc points at the first instruction of the function.
4070 (i386_frame_chain): Handle (generic) call dummies.
4071 (i386_frame_saved_pc): Likewise.
4072 (i386_frame_init_saved_regs): Remove code dealing with call
4073 dummies on the stack.
4074 (i386_push_dummy_frame): Removed.
4075 (i386_call_dummy_words): Removed.
4076 (i386_fix_call_dummy): Removed.
4077 (i386_push_return_address): New function.
4078 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4079 parameter, and don't call get_current_frame.
4080 (i386_pop_frame): New function.
4081 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4082 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4083 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4084 call_dummy_length to 0, set call_dummy_words to NULL, set
4085 sizeof_call_dummy_words to 0, set fix_call_dummy to
4086 generic_fix_call_dummy, set pc_in_call_dummy to
4087 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4088 generic_push_dummy_frame, set push_return_address to
4089 i386_push_return_address and set frame_chain_valid to
4090 generic_file_frame_chain_valid.
4091
049ee0e4
AC
40922002-07-03 Andrew Cagney <ac131313@redhat.com>
4093
4094 * gdbarch.sh (struct regcache): Add opaque declaration.
4095 (EXTRACT_RETURN_VALUE): New architecture method.
4096 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4097 * gdbarch.h, gdbarch.c: Regenerate.
4098 * arch-utils.c (legacy_extract_return_value): New function.
4099 * arch-utils.h (legacy_extract_return_value): Declare.
4100 * values.c (value_being_returned): Re-enable code handling
4101 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4102 deprecated_grub_regcache_for_registers call to block handling
4103 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4104 (EXTRACT_RETURN_VALUE): Do not define.
4105
4e0d9804
GS
41062002-07-03 Grace Sainsbury <graces@redhat.com>
4107
4108 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4109 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4110 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4111 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4112 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4113 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4114 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4115 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4116 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4117 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4118 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4119 argument so the function fits the prototype in the architecture
4120 vector.
4121 (mcore_pop_frame): Remove argument so the function fits the
4122 prototype. Use get_current_frame instead of the argument.
4123 (mcore_push_arguments): Change type of struct_return so the
4124 function can be used in the architecture vector.
4125 (mcore_store_struct_return): Add.
4126 (mcore_frame_init_saved_regs): Add.
4127 (mcore_gdbarch_init): Add function calls to replace the macros
4128 removed from tm-mcore.h
4129
36160dc4
AC
41302002-07-03 Andrew Cagney <ac131313@redhat.com>
4131
4132 * infcmd.c (print_return_value): Remove compatibility code calling
4133 deprecated_grub_regcache_for_registers.
4134
4135 * values.c: Include "regcache.h".
4136 (value_being_returned): Update. Use
4137 deprecated_grub_regcache_for_registers to extract the register
4138 buffer address.
4139 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4140 ``struct regcache''.
4141 * Makefile.in (values.o): Add dependency on $(regcache_h).
4142
4143 * inferior.h (run_stack_dummy): Change type of second parameter to
4144 a ``struct regcache''.
4145 * valops.c (hand_function_call): Change type of retbuf to ``struct
4146 regcache''. Allocate using regcache_xmalloc, clean using
4147 make_cleanup_regcache_xfree.
4148 * infcmd.c (run_stack_dummy): Update. Use
4149 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4150
4151 * regcache.c (do_regcache_xfree): New function.
4152 (make_cleanup_regcache_xfree): New function.
4153 * regcache.h (make_cleanup_regcache_xfree): Declare.
4154
e64d9b3d
MH
41552002-07-03 Martin M. Hunt <hunt@redhat.com>
4156
4dd79c29
MH
4157 * event-top.c (command_line_handler): Don't read past
4158 beginning of buffer.
e64d9b3d 4159
4dd79c29
MH
41602002-07-03 Martin M. Hunt <hunt@redhat.com>
4161
e64d9b3d
MH
4162 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4163 struct frame_id.
4164 (varobj_create): Store frame_id for root.
4165 (varobj_gen_name): Use xasprintf.
4166 (varobj_update): Save and restore frame using get_frame_id() and
4167 frame_find_by_id().
4168 (create_child): Use xasprintf.
4169 (new_root_variable): Initialize frame_id.
4170 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4171 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4172 to prevent memory leak.
4173
26e6c56a
AC
41742002-07-03 Andrew Cagney <ac131313@redhat.com>
4175
4176 * valops.c (hand_function_call): Move declaration of retbuf to
4177 start of function, allocate using malloc, add a cleanup but before
4178 the inf_status cleanup, cleanup the buffer. Rename local variable
4179 old_chain to inf_status_cleanup.
4180
f436dd25
MH
41812002-07-03 Martin M. Hunt <hunt@redhat.com>
4182
4183 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4184
4185 * cli/cli-decode.c (cmd_func_p): New function.
4186 (cmd_func): New function.
4187
4188 * command.h: Add cmd_func() and cmd_func_p().
4189
4cfe2084
GS
41902002-07-03 Grace Sainsbury <graces@redhat.com>
4191
4192 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4193 (REGISTER_SIZE): Remove.
4194 (MAX_REGISTER_RAW_SIZE): Remove.
4195 (REGISTER_VIRTUAL_TYPE): Remove.
4196 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4197 (REGISTER_NAME): Remove.
4198 (USE_GENERIC_DUMMY_FRAMES): Remove.
4199 (CALL_DUMMY): Remove.
4200 (CALL_DUMMY_START_OFFSET): Remove.
4201 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4202 (CALL_DUMMY_LOCATION): Remove.
4203 (FIX_CALL_DUMMY): Remove.
4204 (CALL_DUMMY_ADDRESS): Remove.
4205 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4206 (SAVE_DUMMY_FRAME_TOS): Remove.
4207 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4208 (mcore_register_virtual_type): New function.
4209 (mcore_register_byte): New function.
4210 (mcore_register_size): New function.
4211 (mcore_register_name): New function.
4212 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4213 macros removed from tm-mcore.h.
4214 (mcore_dump_tdep): Add.
4215 (_initialize_mcore_tdep): Add gdbarch_register call.
4216
4fd667e9
MK
42172002-07-03 Mark Kettenis <kettenis@gnu.org>
4218
4219 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4220 frameless_look_for_prologue, such that we actually call this
4221 function.
4222
42f99ac2
JB
42232002-07-02 Joel Brobecker <brobecker@gnat.com>
4224
4225 * frame.h (frame_address_in_block): New function.
4226
4227 * blockframe.c (frame_address_in_block): New function extracted
4228 from get_frame_block().
4229 (get_frame_block): Use frame_address_in_block().
4230 (block_innermost_frame): Use frame_address_in_block() to match
4231 the frame pc address against the block boundaries rather than
4232 the frame pc directly. This prevents a failure when a frame pc
4233 is actually a return-address pointing immediately after the end
4234 of the given block.
4235
103a1597 42362002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4237
4238 * MAINTAINERS: Add self under write after approval.
4239
42402002-07-02 Grace Sainsbury <graces@redhat.com>
4241
103a1597
GS
4242 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4243 used in architecture vector. The default is
4244 m68k_local_breakpoint_from_pc.
4245 (m68k_local_breakpoint_from_pc): Add.
4246 (enum): Add register numbers from tm-m68k.h.
4247 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4248 vector.
4249 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4250 GDB_MULTI_ARCH_PARTIAL.
4251 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4252 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4253 m68k-tdep.c.
4254 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4255 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4256 to enum in m68k-tdep.c
4257
7a5a0534
JB
42582002-07-02 Joel Brobecker <brobecker@gnat.com>
4259
4260 * solib-osf.c (open_map): Compute the list of shared libraries
4261 loaded by the inferior, rather than the list of libraries loaded
4262 by GDB itself. Otherwise, GDB ends up reading the symbols from
4263 the wrong shared libraries...
4264
6f558d74
MK
42652002-07-02 Mark Kettenis <kettenis@gnu.org>
4266
b7d15bf7
MK
4267 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4268 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4269 macros.
4270 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4271 Remove functions.
4272 (FRAMELESS_SIGNAL): Remove function.
4273 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4274 i386_linux_saved_pc_after_call): Removed.
4275 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4276 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4277 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4278
6bff26de
MK
4279 * i386-tdep.c (i386_frameless_signal_p): New function.
4280 (i386_frame_chain): Deal with frameless signals.
4281 (i386_sigtramp_saved_sp): New function.
4282 (i386_frame_saved_pc): Deal with frameless signals.
4283 (i386_saved_pc_after_call): Make sure the correct value is
4284 returned just after entry into a sigtramp.
4285 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4286 i386fbsd4_sc_sp_offset): New variables.
4287 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4288 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4289 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4290 similiar to what we already did for sc_pc_offset.
4291 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4292 tdep->sc_sp_offset.
4293
6f558d74
MK
4294 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4295
145564b7
ML
42962002-07-02 Michal Ludvig <mludvig@suse.cz>
4297
4298 * config/i386/tm-x86-64linux.h: New.
4299 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4300 definitions.
4301 * config/i386/nm-x86-64.h: Rename to ...
4302 * config/i386/nm-x86-64linux.h: ... this one.
4303 * config/i386/x86-64linux.mh: Reflect the above change.
4304
3a1e71e3
MK
43052002-07-01 Mark Kettenis <kettenis@gnu.org>
4306
21d0e8a4
MK
4307 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4308 with sigcontext_addr. Add sc_sp_offset.
4309 (i386bsd_sigtramp_saved_pc): Remove prototype.
4310 (i386bsd_sicontext_addr): Add prototype.
4311 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4312 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4313 (i386_svr4_sigtramp_saved_pc): Removed.
4314 (i386_svr4_sigcontext_addr): New function.
4315 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4316 Initialize tdep->sigcontext_addr instead. Initialize
4317 tdep->sc_pc_offset and tdep->sc_sp_offset.
4318 (i386_gdbarch_init): Likewise.
4319 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4320 any more.
4321 (i386bsd_sigtramp_saved_pc): Remove function.
4322 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4323 Initialize tdep->sigcontext_addr instead. Initialize
4324 tdep->sc_pc_offset.
4325 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4326 of tdep->sigtramp_saved_pc.
4327 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4328 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4329 instead.
4330
3a1e71e3
MK
4331 * i386-tdep.c (i386_frameless_function_invocation,
4332 i386_frame_num_args, i386_frame_init_saved_regs,
4333 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4334 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4335 i386_extract_return_value, i386_store_return_value,
4336 i386_extract_struct_value_address, i386_register_virtual_type,
4337 i386_register_convertible, i386_register_convert_to_virtual,
4338 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4339 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4340 static.
4341
52e9098c
MK
43422002-07-01 Mark Kettenis <kettenis@gnu.org>
4343
77b13a25
MK
4344 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4345
52e9098c
MK
4346 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4347 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4348 this macro. Include "value.h".
4349
1b372fff
AS
43502002-06-30 Aidan Skinner <aidan@velvet.net>
4351
4352 * ada-exp.tab.c: remove as it's a generated file
4353 * ada-lex.c: remove as it's a generated file
4354
9c5045b5
MK
43552002-06-30 Mark Kettenis <kettenis@gnu.org>
4356
4a93c5bb
MK
4357 * config/i386/tm-i386.h (struct frame_info, struct
4358 frame_saved_regs, struct value, struct type): Remove forward
4359 declarations.
4360
322d4fe0
MK
4361 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4362 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4363 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4364 (FILL_FPXREGSET): Define.
4365
fdd8263d
MK
4366 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4367
482e577b
MK
4368 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4369 i[3456]86-*-netbsd* case.
4370 * config/i386/tm-obsd.h: Removed.
4371 * config/i386/obsd.mt: Removed.
4372 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4373 core-aout.o.
4374 (MH_CFLAGS): Add -DYYDEBUG=0.
4375
6916549a
MK
4376 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4377 i386nbsd_sc_pc_offset on OpenBSD too.
4378
9c5045b5
MK
4379 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4380 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4381 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4382 define.
4383 * i386bsd-tdep.c: Include "arch-utils.h".
4384 (i386bsd_aout_in_solib_call_trampoline): New function.
4385 (i386bsd_init_abi): Set in_solib_call_trampoline to
4386 i386bsd_aout_in_solib_call_trampoline.
4387 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4388 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4389
aa84d1bb
AC
43902002-06-28 Andrew Cagney <ac131313@redhat.com>
4391
4392 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4393 (struct obstack, struct bcache): Add opaque declarations.
4394 * Makefile.in (macrotab_h): Update
4395
b4d83933
AC
43962002-06-28 Andrew Cagney <ac131313@redhat.com>
4397
4398 * blockframe.c (generic_find_dummy_frame): Change return type to
4399 ``struct regcache''.
4400 (struct dummy_frame): Replace field ``registers'' with regcache, a
4401 struct regcache object.
4402 (generic_find_dummy_frame): Update.
4403 (generic_push_dummy_frame): Update. Use regcache_xfree,
4404 regcache_xmalloc and regcache_cpy.
4405 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4406 regcache_xfree.
4407 (deprecated_generic_find_dummy_frame): Update.
4408 (generic_read_register_dummy): Update. Use
4409 regcache_read_as_address.
4410 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4411 (generic_get_saved_register): Update. Use regcache_read.
4412
08c0b5bc
AC
44132002-06-28 Andrew Cagney <ac131313@redhat.com>
4414
4415 * Makefile.in (objfiles_h): Add $(bcache_h).
4416 * objfiles.h: Include "bcache.h".
4417
4418 * Makefile.in (symtab_h): Remove $(bcache_h).
4419 * symtab.h: Do not include "bcache.h".
4420
1f89801a
AC
44212002-06-28 Andrew Cagney <ac131313@redhat.com>
4422
4423 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4424 generic_func_frame_chain_valid.
4425
b9644b58
DB
44262002-06-28 David O'Brien <obrien@FreeBSD.org>
4427
4428 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4429 * config/i386/tm-fbsd.h: Likewise.
4430
dd486634
AC
44312002-06-28 Andrew Cagney <ac131313@redhat.com>
4432
4433 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4434 generic_unwind_get_saved_register.
4435
0b434a00
AC
44362002-06-27 Andrew Cagney <ac131313@redhat.com>
4437
4438 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4439 * regcache.c (supply_register): Add missing argument to
4440 register_buffer call.
4441
f30e5a77
AC
44422002-06-27 Andrew Cagney <ac131313@redhat.com>
4443
4444 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4445 Solaris /bin/grep does not not like it. From Peter Schauer.
4446
9f064c95
TT
44472002-06-26 Tom Tromey <tromey@redhat.com>
4448
4449 * command.h (add_setshow_cmd): Declare.
4450 (add_setshow_cmd_full): Declare.
4451 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4452 returns void. Use add_setshow_cmd_full.
4453 (add_setshow_cmd_full): New function.
4454 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4455 (add_setshow_boolean_cmd): Likewise.
4456
099c7589
JT
44572002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4458
4459 * config/vax/tm-vax.h: Protect from multiple inclusion.
4460 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4461 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4462 * config/vax/tm-vaxbsd.h: ...here. New file.
4463 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4464
1d049c5e
JT
44652002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4466
4467 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4468 (BELIEVE_PCC_PROMOTION): Remove.
4469 (AP_REGNUM): Move to...
4470 * config/vax/nm-vax.h: ...here.
4471 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4472 (vax_breakpoint_from_pc): New function.
4473 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4474 and gdbarch_believe_pcc_promotion.
4475
4791e091
JT
44762002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4477
4478 * Makefile.in (vax_tdep_h): Define.
4479 (vax-tdep.o): Use $(vax_tdep_h).
4480 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4481 (vax_dump_tdep): New function.
4482 (_initialize_vax_tdep): Register vax_dump_tdep.
4483 * vax-tdep.h: Include osabi.h.
4484 (struct gdbarch_tdep): New.
4485
da130f98
AC
44862002-06-26 Andrew Cagney <cagney@redhat.com>
4487
4488 * frame.h (deprecated_generic_find_dummy_frame): Rename
4489 generic_find_dummy_frame.
4490 * blockframe.c (generic_find_dummy_frame): Make static.
4491 (deprecated_generic_find_dummy_frame): New function.
4492 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4493 generic_find_dummy_frame with deprecated_find_dummy_frame.
4494 (sh64_nofp_frame_init_saved_regs): Ditto.
4495 (sh_fp_frame_init_saved_regs): Ditto.
4496 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4497 (s390_frame_chain): Ditto.
4498 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4499
6300c360
GS
45002002-06-26 Grace Sainsbury <graces@redhat.com>
4501
4502 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4503 gdbarch vector are at the top.
4504 (NUM_REGS): Remove.
4505 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4506 (FRAME_ARGS_ADDRESS): Remove.
4507 (FRAME_LOCALS_ADDRESS): Remove.
4508 (FRAME_NUM_ARGS): Remove.
4509 (FRAME_ARGS_SKIP): Remove.
4510 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4511 (m68k_gdbarch_init): Add gdbarch initializations for macros
4512 undefined in tm-m68k.h
4513
1c617db8
GS
45142002-06-26 Grace Sainsbury <graces@redhat.com>
4515
4516 * monitor.h: Add the function regname to monitor_ops
4517 structure. This way NUM_REGS does not have to be a constant.
4518 * monitor.c (monitor_fetch_register): Added support for regname
4519 function. The function is called if the array regnames is NULL.
4520 (monitor_store_register): Same.
da130f98
AC
4521 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4522 regnames array.
1c617db8
GS
4523 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4524 cpu32bug_cmds.regname to point to new function.
4525 * abug-rom.c (abug_regname): Same as above.
4526 (init_abug_cmds): Same.
4527 * dbug-rom.c (dbug_regname): Same as above.
4528 (init_dbug_cmds): Same.
4529 * remote-est.c (est_regname): Same.
4530 (init_est_cmds): Same.
4531 * rom68k-rom.c (rom68k_regname): Same.
4532 (init_rom68k_cmds): Same.
4533
ea9365bb
TT
45342002-06-25 Tom Tromey <tromey@redhat.com>
4535
4536 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4537
72cec141
AC
45382002-06-25 Andrew Cagney <cagney@redhat.com>
4539
4540 * infrun.c (stop_registers): Change variable's type to ``struct
4541 regcache'''.
4542 (xmalloc_inferior_status): Delete function.
4543 (free_inferior_status): Delete function.
4544 (normal_stop): Use regcache_cpy.
4545 (struct inferior_status): Change type of fields ``stop_registers''
4546 and ``registers'' to ``struct regcache''.
4547 (write_inferior_status_register): Use regcache_write.
4548 (save_inferior_status): Instead of calling
4549 xmalloc_inferior_status, allocate the inf_status buffer directly.
4550 Use regcache_dup_no_passthrough and regcache_dup to save the
4551 buffers.
4552 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4553 Replace the stop_registers regcache instead of overriding it. Use
4554 regcache_xfree. Instead of calling free_inferior_status, xfree
4555 the buffer directly.
4556 (discard_inferior_status): Use regcache_xfree. Instead of calling
4557 free_inferior_status, xfree the buffer directly.
4558 (build_infrun): Use regcache_xmalloc.
4559 (_initialize_infrun): Delete redundant call to build_infrun.
4560
4561 * Makefile.in (infcmd.o): Add $(regcache_h).
4562
4563 * infcmd.c: Include "regcache.h".
4564 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4565 obtain the address of `stop_registers' register buffer.
4566 (print_return_value): Ditto.
4567
4568 * inferior.h (struct regcache): Add opaque declaration.
4569 (stop_registers): Change variable's declared type to ``struct
4570 regcache''.
4571
defc6f8c
TT
45722002-06-24 Tom Tromey <tromey@redhat.com>
4573
c0e624e7
TT
4574 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4575 * target.c (initialize_targets): Fixed typo in
4576 trust-readonly-sections `show' documentation.
4577
defc6f8c
TT
4578 * main.c: Marked all strings with _().
4579
2b236d82
DH
45802002-06-24 Don Howard <dhoward@redhat.com>
4581
4582 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4583 that means max CORE_ADDR+1.
4584 (lookup_mem_region): Ditto.
4585 (mem_info_command): Ditto.
4586
942dc0e9
GS
45872002-06-24 Grace Sainsbury <graces@redhat.com>
4588
4589 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4590 (REGISTER_BYTES_OK): Remove.
4591 (REGISTER_BYTES): Remove.
4592 (STORE_STRUCT_RETURN): Remove.
4593 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4594 (STORE_RETURN_VALUE): Remove.
4595 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4596 (FRAME_CHAIN): Remove.
4597 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4598 (FRAME_SAVED_PC): Remove.
4599 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4600 (m68k_store_struct_return): Add.
4601 (m68k_deprecated_extract_return_value): Add.
4602 (m68k_deprecated_extract_struct_value_address): Add.
4603 (m68k_store_return_value): Add.
4604 (m68k_frame_chain): Add.
4605 (m68k_frameless_function_invocation): Add.
4606 (m68k_frame_saved_pc): Add.
4607 (m68k_gdbarch_init): added set_gdbarch calls for new
4608 functions and deleted macros.
4609
03c30d4d
TT
46102002-06-23 Tom Tromey <tromey@redhat.com>
4611
4612 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4613 (ALLDEPFILES): Likewise.
4614 (udiheaders): Removed.
4615 (udip2soc.o): Likewise.
4616 (udi2go32.o): Likewise.
4617 (udr.o): Likewise.
4618 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4619
37e71372
AC
46202002-06-22 Andrew Cagney <ac131313@redhat.com>
4621
06a6ac57
AC
4622 * infrun.c (_initialize_infrun): Delete unnecessary call to
4623 build_infrun.
4624
37e71372
AC
4625 * regcache.h: Update comments describing the regcache_cpy family
4626 of functions.
4627 (regcache_save, regcache_restore): Delete declaration.
4628 (regcache_save_no_passthrough): Delete declaration.
4629 (regcache_restore_no_passthrough): Delete declaration.
4630 * regcache.c (regcache_save): Delete function.
4631 (regcache_save_no_passthrough): Delete function.
4632 (regcache_restore): Delete function.
4633 (regcache_restore_no_passthrough): Delete function.
4634
78f6d055
AC
46352002-06-21 Andrew Cagney <ac131313@redhat.com>
4636
4637 * config/m68k/tm-m68k.h: Fix typo.
4638 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4639 (m68k_frame_init_saved_regs): Declare.
4640
78b119cb
JB
46412002-06-21 Jim Blandy <jimb@redhat.com>
4642
4643 Remove some vestiges of Harris 88k support.
4644 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4645 register numbering quirk.
4646 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4647 odd symbols occurring in Harris 88k ELF targets.
4648
0fbb3da7
TT
46492002-06-21 Tom Tromey <tromey@redhat.com>
4650
4651 * gdb_locale.h: New file.
4652 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4653 (defs_h): Added gdb_locale.h.
4654 * configure, config.in: Rebuilt.
4655 * configure.in (PACKAGE): Define.
4656 * defs.h: Include gdb_locale.h.
4657 * main.c (captured_main): Call setlocale, bindtextdomain,
4658 textdomain.
4659
456f8b9d
DB
46602002-06-21 Dave Brolley <brolley@redhat.com>
4661
4662 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4663 * config/frv/frv.mt: New file.
4664 * config/frv/tm-frv.h: New file.
4665 * configure.tgt: Support frv-*-*.
4666 * Makefile.in (frv-tdep.o): New target.
4667 * frv-tdep.c: New file.
4668 * NEWS: Mention frv.
4669
cdd463f9
DB
46702002-06-21 Dave Brolley <brolley@redhat.com>
4671
4672 * MAINTAINERS: Add self to "Write After Approval" list.
4673
5d3ed2e3
GS
46742002-06-21 Grace Sainsbury <graces@redhat.com>
4675
4676 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4677 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4678 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4679 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4680 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4681
4682 * m68k-tdep.c: Include arch-utils.h
4683 (m68k_register_raw_size): Add.
4684 (m68k_register_virtual_size): Add.
4685 (m68k_register_virtual_type): Add.
4686 (m68k_register_name): Add.
4687 (m68k_stack_align): Add.
4688 (m68k_register_byte): Add.
4689 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4690 tm-m68k.h.
4691
7f8e7424
GS
46922002-06-21 Grace Sainsbury <graces@redhat.com>
4693
a2c6a6d5 4694 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4695 m68k_find_saved_regs.
4696 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4697 references to it with frame->saved_regs.
7f8e7424
GS
4698 (m68k_gdbarch_init): Added function calls to initialize the
4699 gdbarch structure.
a2c6a6d5
GS
4700 (m68k_fix_call_dummy): Add.
4701 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4702 (CALL_DUMMY): Remove.
4703 (CALL_DUMMY_LENGTH): Remove.
4704 (CALL_DUMMY_START_OFFSET): Remove.
4705 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4706 (FIX_CALL_DUMMY): Remove.
4707 (PUSH_DUMMY_FRAME): Remove.
4708 (POP_FRAME): Remove.
7f8e7424 4709
f461f5cf
PM
47102002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4711
4712 * parse.c (parse_fprintf): New function used to avoid calls to
4713 fprintf in bison parser generated debug code.
4714 * parser-defs.h: Declaration of new parse_fprintf function.
4715 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4716 Set YYDEBUG to 1 by default.
4717 Set YYFPRINTF as parse_fprintf.
4718
7f0c12ed
ML
47192002-06-21 Michal Ludvig <mludvig@suse.cz>
4720
4721 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4722 encoding anymore.
4723 (pointer_encoding, enum ptr_encoding): New.
4724 (execute_cfa_program): Take care about pointer encoding.
4725 (dwarf2_build_frame_info): Only call parse_frame_info for
4726 .debug_frame and .eh_frame.
4727 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4728 fixed augmentation handling, added relative addressing,
4729 ignore duplicate FDEs. Added comments.
19d833a2 4730 * dwarf2cfi.c: Reindented.
7f0c12ed 4731
87c4a039
EZ
47322002-06-20 Elena Zannoni <ezannoni@redhat.com>
4733
4734 * event-top.c (command_handler): Don't use space_at_cmd_start
4735 unless there is sbrk() on the host. Assign time and space data
4736 to union fields of the appropriate length.
4737
1cf877ad
ML
47382002-06-20 Michal Ludvig <mludvig@suse.cz>
4739
4740 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4741 x86_64_register_name. Return type changed to 'const char *'.
4742 (x86_64_register_name2nr): Rename to x86_64_register_number.
4743 (x86_64_gdbarch_init): Update to reflect the change.
4744 * x86-64-tdep.h: Ditto.
4745 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4746 (supply_fpregset): Ditto.
4747
3fadccb3
AC
47482002-06-19 Andrew Cagney <cagney@redhat.com>
4749
4750 * regcache.h: Update copyright.
4751 (struct regcache, struct gdbarch): Add opaque declarations.
4752 (current_regcache): Declare global variable.
4753 (regcache_read, regcache_write): Add gdbarch parameter.
4754 (regcache_save, regcache_save_no_passthrough)
4755 (regcache_restore, regcache_restore_no_passthrough)
4756 (regcache_dup, regcache_dup_no_passthrough)
4757 (regcache_cpy, regcache_cpy_no_passthrough)
4758 (deprecated_grub_regcache_for_registers)
4759 (deprecated_grub_regcache_for_register_valid)
4760 (regcache_valid_p): Add function declarations.
4761
4762 * regcache.c: Update copyright.
4763 (regcache_descr_handle): New global variable.
4764 (struct regcache_descr): Define.
4765 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4766 (regcache_descr, xfree_regcache_descr): New functions.
4767 (struct regcache): Define.
4768 (regcache_xmalloc, regcache_xfree): New functions.
4769 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4770 (regcache_dup, regcache_dup_no_passthrough): New functions.
4771 (regcache_valid_p, regcache_read_as_address): New functions.
4772 (deprecated_grub_regcache_for_registers): New function.
4773 (deprecated_grub_regcache_for_register_valid): New function.
4774 (current_regcache): New global variable.
4775 (register_buffer): Add regcache parameter. Update calls.
4776 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4777 (read_register_gen, write_register_gen): Update register_buffer
4778 call. Test for legacy_p instead of gdbarch_register_read_p or
4779 gdbarch_register_write_p.
4780 (regcache_collect): Update register_buffer call.
4781 (build_regcache): Rewrite. Use deprecated grub functions.
4782 (regcache_save, regcache_save_no_passthrough): New functions.
4783 (regcache_restore, regcache_restore_no_passthrough): New
4784 functions.
4785 (_initialize_regcache): Create the regcache_data_handle. Swap
4786 current_regcache global variable.
4787
4788 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4789 parameter to regcache_read and regcache_write calls.
4790 (sh4_register_read): Ditto.
4791 (sh64_pseudo_register_read): Ditto.
4792 (sh64_register_read): Ditto.
4793 (sh_pseudo_register_write): Ditto.
4794 (sh4_register_write): Ditto.
4795 (sh64_pseudo_register_write): Ditto.
4796 (sh64_register_write): Ditto.
4797
4798 * defs.h (XCALLOC): Define.
4799
152d9db6
GS
48002002-06-19 Grace Sainsbury <graces@redhat.com>
4801
4802 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4803 * m68k-tdep.c (m68k_gdbarch_init): Added.
4804 (m68k_dump_tdep): Added.
4805
170911c7
DJ
48062002-06-19 Daniel Jacobowitz <drow@mvista.com>
4807
4808 * ada-lang.c (fill_in_ada_prototype): Update comment.
4809
2e4ebe70
DJ
48102002-06-19 Daniel Jacobowitz <drow@mvista.com>
4811
4812 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4813 MIPS_ABI_LAST.
4814 (mips_abi_string, mips_abi_strings): New.
4815 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4816 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4817 tdep->mips_abi_string. Honor mips_abi_string. Default to
4818 O32 if no ABI is found.
4819 (mips_dump_tdep): Use mips_abi_strings.
4820 (mips_abi_update): New function.
4821 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4822 ``set mips abi'' and ``show mips abi''. Check the size of
4823 mips_abi_strings.
4824
16775908
AC
48252002-06-19 Andrew Cagney <cagney@redhat.com>
4826
4827 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4828 constant.
4829
5051bfa4 48302002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4831
5051bfa4
JB
4832 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4833 current frame using only the first stack size adjustment. All
4834 subsequent size adjustments are not considered to be part of
4835 the "static" part of the current frame.
4836 Compute the address of the saved registers relative to the
4837 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4838 in use in this frame.
4839
56468235
DH
48402002-06-18 Don Howard <dhoward@redhat.com>
4841
4842 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4843 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4844 suggesting this solution.
4845
0b624158
AC
48462002-06-18 Andrew Cagney <ac131313@redhat.com>
4847
4848 * config/romp/xm-rtbsd.h: Delete file.
4849 * config/romp/rtbsd.mh: Delete file.
4850
221ea385
KS
48512002-06-18 Keith Seitz <keiths@redhat.com>
4852
4853 * breakpoint.c (condition_command): Post breakpoint_modify
4854 when a condition is added to an existing breakpoint.
4855 (commands_command): Likewise for commands.
4856 (set_ignore_count): Likewise for ignore counts.
4857 If no tty, do not simply return, still need to send event
4858 notification.
4859 (ignore_command): Only print a newline if the command came
4860 from a tty.
4861 Don't call breakpoints_changed, since this is now properly
4862 handled by set_ignore_count.
4863
5402eed1
AC
48642002-06-18 Andrew Cagney <cagney@redhat.com>
4865
4866 * MAINTAINERS: Note that cris-elf target can be compiled with
4867 -Werror.
4868 * cris-tdep.c (cris_register_name): Make return type constant.
4869 (cris_breakpoint_from_pc): Ditto.
4870
cc22880b
ML
48712002-06-18 Michal Ludvig <mludvig@suse.cz>
4872
4873 * frame.h (struct frame_info): Change type of context to
4874 'struct context'.
4875
fa88f677
AC
48762002-06-17 Andrew Cagney <cagney@redhat.com>
4877
4878 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4879 pointer.
4880 * gdbarch.h, gdbarch.c: Regenerate.
4881 * config/mips/tm-mips.h (mips_register_name): Update.
4882 * i386-tdep.h (i386_register_name): Update.
4883 * mips-tdep.c (mips_register_name): Update
4884 * alpha-tdep.c (alpha_register_name): Update.
4885 * arch-utils.c (legacy_register_name): Update.
4886 * arch-utils.h (legacy_register_name): Update.
4887 * avr-tdep.c (avr_register_name): Update.
4888 * ia64-tdep.c (ia64_register_name): Update.
4889 * i386-tdep.c (i386_register_name): Update.
4890 * sparc-tdep.c (sparc32_register_name): Update.
4891 (sparc64_register_name): Update.
4892 (sparclite_register_name): Update.
4893 (sparclet_register_name): Update.
4894 * sh-tdep.c (sh_generic_register_name): Update.
4895 (sh_sh_register_name): Update.
4896 (sh_sh3_register_name): Update.
4897 (sh_sh3e_register_name): Update.
4898 (sh_sh_dsp_register_name): Update.
4899 (sh_sh3_dsp_register_name): Update.
4900 (sh_sh4_register_name): Update.
4901 (sh_sh64_register_name): Update.
4902 * s390-tdep.c (s390_register_name): Update.
4903 * rs6000-tdep.c (rs6000_register_name): Update.
4904 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4905 (ns32k_register_name_32382): Update.
4906 * d10v-tdep.c (d10v_ts2_register_name): Update.
4907 (d10v_ts3_register_name): Update.
4908 * xstormy16-tdep.c (xstormy16_register_name): Update.
4909 * vax-tdep.c (vax_register_name): Update.
4910 * v850-tdep.c (v850_register_name): Update.
4911 * m68hc11-tdep.c (m68hc11_register_name): Update.
4912 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4913 (am33_register_name): Update.
4914
ea1e7ef6
GS
49152002-06-17 Grace Sainsbury <graces@redhat.com>
4916
4917 * m68k-tdep.c: Reindented.
4918
9b02dd1b
AC
49192002-06-17 Andrew Cagney <ac131313@redhat.com>
4920
4921 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4922 list of predefined types.
4923
8758dec1
MK
49242002-06-16 Mark Kettenis <kettenis@gnu.org>
4925
b6197528
MK
4926 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4927 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4928 REGISTER_CONVERT_TO_RAW): Remove defines.
4929 (i386_register_virtual_type, i386_register_convertible,
4930 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4931 Remove prototypes.
4932 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4933 macros mentioned above.
4934
82b47e62
MK
4935 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4936 (i386lynx_saved_pc_after_call): Remove prototype.
4937 * i386ly-tdep.c: Include "i386-tdep.h".
4938 (i386lynx_saved_pc_after_call): Make static. Use
4939 read_memory_nobpt instead of read_memory. Use
4940 read_memory_unsigned_integer instead of read_memory_integer.
4941 (i386lynx_init_abi): New function.
4942 (i386lynx_coff_osabi_sniffer): New function.
4943 (_initialize_i386bsd_tdep): New function.
4944
8758dec1
MK
4945 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4946 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4947 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4948 (i386_fix_call_dummy): Remove prototype.
4949 * i386-tdep.c (i386_call_dummy_words): New variable.
4950 (i386_gdbarch_init): Adjust for removal of the
4951 macros mentioned above.
4952
e9e68a56
AC
49532002-06-15 Andrew Cagney <ac131313@redhat.com>
4954
4955 * command.h (add_setshow_auto_boolean_cmd): Replace
4956 add_set_auto_boolean_cmd.
4957 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4958 add_set_auto_boolean_cmd.
4959 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4960 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4961 mask-address'' command.
4962 (show_mask_address): Add cmd parameter.
4963 * remote.c (add_packet_config_cmd): Update. Change type of
4964 set_func and show_func to cmd_sfunc_ftype.
4965 (_initialize_remote): Update `set remote Z-packet'
4966 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4967 (show_remote_protocol_e_packet_cmd): Ditto.
4968 (show_remote_protocol_E_packet_cmd): Ditto.
4969 (show_remote_protocol_P_packet_cmd): Ditto.
4970 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4971 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4972 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4973 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4974 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4975 (show_remote_protocol_Z_packet_cmd): Ditto.
4976 (show_remote_protocol_binary_download_cmd): Ditto.
4977 (show_remote_cmd): Pass NULL to all of above.
4978
fc08ec52
MK
49792002-06-15 Mark Kettenis <kettenis@gnu.org>
4980
4981 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4982 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4983 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4984 POP_FRAME): Remove defines.
4985 (i386_push_arguments, i386_store_struct_return,
4986 i386_extract_return_value, i386_store_return_value,
4987 i386_extract_struct_value_address, i386_push_dummy_frame,
4988 i386_pop_frame): Renove prototypes.
4989 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4990 macros mentioned above.
4991
e707bbc2
AC
49922002-06-15 Andrew Cagney <ac131313@redhat.com>
4993
4994 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4995 add_set_boolean_cmd.
4996 (add_setshow_cmd): New function.
4997 * command.h (add_setshow_boolean_cmd): Replace
4998 add_set_boolean_cmd.
4999 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5000 and ``set rdiromatzero''.
5001 * maint.c (_initialize_maint_cmds): Update commented out code.
5002 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5003 * target.c (initialize_targets): Update `set
5004 trust-readonly-sections'.
5005 * remote.c (_initialize_remote): Update `set remotebreak'.
5006
42fdc8df
MK
50072002-06-15 Mark Kettenis <kettenis@gnu.org>
5008
93924b6b
MK
5009 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5010 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5011 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5012 fit into multi-arch framework.
5013 (i386_breakpoint_from_pc): New function.
5014 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5015 above.
5016
42fdc8df
MK
5017 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5018 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5019 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5020 (i386_frameless_function_invocation, i386_frame_num_args,
5021 i386_frame_init_saved_regs): Remove prototypes.
5022 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5023 macros mentioned above.
5024
9773a94b
AC
50252002-06-15 Andrew Cagney <ac131313@redhat.com>
5026
5027 * cli/cli-decode.c (set_cmd_cfunc): Update.
5028 (set_cmd_sfunc): Update.
5029 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5030 (set_cmd_sfunc, set_cmd_cfunc): Update.
5031 * cli/cli-decode.h: Update.
5032
6e157172
MK
50332002-06-15 Mark Kettenis <kettenis@gnu.org>
5034
5035 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5036 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5037
7f19b9a2
AC
50382002-06-15 Andrew Cagney <ac131313@redhat.com>
5039
5040 * defs.h (auto_boolean): Declare enum.
5041 * command.h (cmd_auto_boolean): Delete enum.
5042 * mips-tdep.c (mask_address_var): Update.
5043 (mips_mask_address_p): Update.
5044 (show_mask_address): Update.
5045 * remote.c (struct packet_config): Update.
5046 (update_packet_config): Update.
5047 (show_packet_config_cmd): Update.
5048 (packet_ok): Update.
5049 (add_packet_config_cmd): Update.
5050 (_initialize_remote):
5051 * command.h: Update.
5052 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5053 (do_setshow_command): Update.
5054 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5055 * cli/cli-decode.h: Update.
5056
1cf88de5
MK
50572002-06-15 Mark Kettenis <kettenis@gnu.org>
5058
22ba8cf2
MK
5059 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5060 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5061 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5062 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5063 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5064 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5065
762c5349
MK
5066 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5067 list of DJGPP COFF targets.
5068
091198bb
MK
5069 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5070 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5071 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5072 (FP0_REGNUM): Remove define.
5073 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5074 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5075 (i386_register_virtual_size): Remove protoype.
5076 * i386-tdep.c (i386_register_virtual_size): Removed.
5077 (i386_extract_return_value, i386_store_return_value): Use
5078 FP0_REGNUM instead of NUM_FREGS to determine whether the
5079 floating-point registers are available.
5080 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5081 Adjust for removal of macros mentioned above.
5082
50832002-06-15 Mark Kettenis <kettenis@gnu.org>
5084
fcc9bf01
MK
5085 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5086 comments.
5087 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5088 Remove prototypes.
5089 (supply_gregset, fill_gregset): Remove use of register keyword and
5090 remove declaration for regmap. Use I386_NUM_GREGS instead of
5091 NUM_REGS and NUM_FREGS.
5092 (FPREGSET_FSAVE_OFFSET): Remove.
5093 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5094 NUM_FREGS to determine whether the floating-point registers are
5095 available.
5096
65e78234
MK
5097 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5098 gnu_store_registers): Replace usage of NUM_GREGS with
5099 I386_NUM_GREGS.
5100
98df6387
MK
5101 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5102 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5103 usage of NUM_GREGS with I386_NUM_GREGS.
5104
099a9414
MK
5105 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5106
57976e88
MK
5107 * i386bsd-nat.c: Include "i386-tdep.h".
5108 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5109 I386_NUM_GREGS.
5110
b335f4a6
MK
5111 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5112 and associated comment. They no longer make any sense, since we
5113 don't use this file anymore on Linux.
5114
1cf88de5
MK
5115 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5116 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5117 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5118 elements in these arrays.
5119 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5120 MAX_NUM_REGS.
5121
daa66587
MK
51222002-06-15 Mark Kettenis <kettenis@gnu.org>
5123
5124 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5125 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5126
26e9b323
AC
51272002-06-14 Andrew Cagney <cagney@redhat.com>
5128
5129 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5130 EXTRACT_RETURN_VALUE.
5131 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5132 EXTRACT_STRUCT_VALUE_ADDRESS.
5133 * gdbarch.h, gdbarch.c: Regenerate.
5134
5135 * values.c (value_being_returned): Handle
5136 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5137 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5138
5139 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5140 * arm-tdep.c (arm_gdbarch_init): Update.
5141 * avr-tdep.c (avr_gdbarch_init): Update.
5142 * cris-tdep.c (cris_gdbarch_init): Update.
5143 * d10v-tdep.c (d10v_gdbarch_init): Update.
5144 * ia64-tdep.c (ia64_gdbarch_init): Update.
5145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5147 * s390-tdep.c (s390_gdbarch_init): Update.
5148 * sh-tdep.c (sh_gdbarch_init): Update.
5149 * s390-tdep.c (s390_gdbarch_init): Update.
5150 * sparc-tdep.c (sparc_gdbarch_init): Update.
5151 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5152 * v850-tdep.c (v850_gdbarch_init): Update.
5153 * vax-tdep.c (vax_gdbarch_init): Update.
5154 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5156
5157 * config/arc/tm-arc.h: Update.
5158 * config/d30v/tm-d30v.h: Update.
5159 * config/fr30/tm-fr30.h: Update.
5160 * config/h8300/tm-h8300.h: Update.
5161 * config/h8500/tm-h8500.h: Update.
5162 * config/i386/tm-i386.h: Update.
5163 * config/i386/tm-ptx.h: Update.
5164 * config/i386/tm-symmetry.h: Update.
5165 * config/i960/tm-i960.h: Update.
5166 * config/m32r/tm-m32r.h: Update.
5167 * config/m68k/tm-delta68.h: Update.
5168 * config/m68k/tm-linux.h: Update.
5169 * config/m68k/tm-m68k.h: Update.
5170 * config/m88k/tm-m88k.h: Update.
5171 * config/mcore/tm-mcore.h: Update.
5172 * config/mips/tm-mips.h: Update.
5173 * config/mn10200/tm-mn10200.h: Update.
5174 * config/pa/tm-hppa.h: Update.
5175 * config/pa/tm-hppa64.h: Update.
5176 * config/sparc/tm-sp64.h: Update.
5177 * config/sparc/tm-sparc.h: Update.
5178 * config/sparc/tm-sparclet.h: Update.
5179 * config/z8k/tm-z8k.h: Update.
5180
5179e78f
AC
51812002-06-14 Andrew Cagney <cagney@redhat.com>
5182
5183 * Makefile.in (i386_linux_tdep_h): Define.
5184 (i386_tdep_h, i387_tdep_h): Define.
5185 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5186 $(i386_tdep_h) and $(i387_tdep_h).
5187 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5188
8201327c
MK
51892002-06-14 Mark Kettenis <kettenis@gnu.org>
5190
edf393ac
MK
5191 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5192 Already covered by the default.
5193
896fb97d
MK
5194 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5195 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5196 (i386_gdbarch_init): Initialize long_double_format and long_double
5197 bit.
5198
8201327c
MK
5199 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5200 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5201 Move these to ...
5202 * config/i386/i386sol2.mh: ... here.
5203 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5204 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5205 (SIGCONTEXT_PC_OFFSET): Remove define.
5206 (IN_SIGTRAMP): Remove define.
5207 * i386-sol2-tdep.c: New file.
5208
5209 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5210 * config/i386/tm-i386nw.h: Removed.
5211
5212 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5213 USE_STRUCT_CONVENTION): Remove defines.
5214 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5215 (get_longjmp_target): Remove prototype.
5216 (IN_SIGTRAMP): Remove define.
5217 (i386bsd_in_sigtramp): Remove prototype.
5218 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5219 function. Update comment accordingly
5220 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5221 (FRAME_SAVED_PC): Remove define.
5222 (i386bsd_frame_saved_pc): Remove prototype.
5223 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5224 GET_LONGJMP_TARGET): Remove defines.
5225 (get_longjmp_target): Remove prototype.
5226 (IN_SIGTRAMP): Remove define.
5227 (i386bsd_in_sigtramp): Remove prototype.
5228 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5229 function. Update comment accordingly
5230 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5231 (FRAME_SAVED_PC): Remove define.
5232 (i386bsd_frame_saved_pc): Remove prototype.
5233 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5234 Remove prototype.
5235 (USE_STRUCT_CONVENTION): Remove prototype.
5236 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5237 declaration.
5238 (_initialize_i386bsd_nat): Revise logic to determine some
5239 constants at compile time when compiling a native GDB. Warn if
5240 things don't match up with what we expect.
5241 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5242 Remove variables.
5243 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5244 to use date stored in `struct gdbarch_tdep'.
5245 (i386bsd_sigcontext_offset): Remove varaible.
5246 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5247 stored in `struct gdbarch_tdep'.
5248 (i386bsd_frame_saved_pc): Make static.
5249 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5250 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5251 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5252 i386fbsd4_sc_pc_offset): New variables.
5253 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5254 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5255 functions.
5256 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5257 functions.
5258 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5259 Modify the value of i386fbsd_sigtramp_start and
5260 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5261 i386fbsd_sigtramp_end.
5262 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5263 function.
5264
5265 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5266 define to i386-linux-tdep.h.
5267 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5268 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5269 defines.
5270 (i386_linux_register_name, i386_linux_register_byte,
5271 i386_linux_register_raw_size): Remove prototypes.
5272 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5273 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5274 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5275 TARGET_WRITE_PC): Remove defines.
5276 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5277 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5278 i386_linux_write_pc): Remove prototypes.
5279 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5280 (get_longjmp_target): Remove prototype.
5281 * i386-linux-tdep.h: New file.
5282 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5283 * i386-linux-tdep.c: Include "i386-tdep.h" and
5284 "i386-linux-tdep.h".
5285 (i386_linux_register_name, i386_linux_register_byte,
5286 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5287 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5288 Make static.
5289 (i386_linux_init_abi): New function.
5290 (_initialize_i386_linux_tdep): New function.
5291
5292 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5293 (i386_saved_pc_after_call): Remove prototype.
5294 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5295 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5296 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5297 (i386_register_name, i386_stab_reg_to_regnum,
5298 i386_dwarf_reg_to_regnum): Remove prototypes.
5299 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5300 SIZEOF_SSE_REGS): Remove defines.
5301 (REGISTER_BYTES): Remove define.
5302 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5303 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5304 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5305 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5306 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5307 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5308 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5309 (get_longjmp_target): Remove prototype.
5310 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5311 (sigtramp_saved_pc): Remove define.
5312 (i386v4_sigtramp_saved_pc): Remove prototype.
5313 * config/i386/tm-go32.h (FRAME_CHAIN,
5314 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5315 (i386go32_frame_saved_pc): Remove prototype.
5316 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5317 (get_longjmp_target): Remove prototype.
5318 * i386-tdep.h: Include "osabi.h".
5319 (enum i386_abi): Removed.
5320 (enum struct_return): New enum.
5321 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5322 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5323 sc_pc_offset members.
5324 (i386_gdbarch_register_os_abi): Remove prototype.
5325 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5326 I386_SSE_NUM_REGS): New defines.
5327 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5328 I386_SSE_SIZEOF_REGS): New defines.
5329 (i386_register_name, i386_register_byte, i386_register_raw_size):
5330 New prototypes.
5331 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5332 (i386bsd_sigtramp_saved_pc): New prototype.
5333 * i386-tdep.c: Don't include "elf-bfd.h".
5334 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5335 i386_frame_chain, i386_saved_pc_after_call): Make static.
5336 (i386_frame_saved_pc): Rewrite to call architecture dependent
5337 function to deal with signal handlers. Make static.
5338 (i386go32_frame_saved_pc): Removed.
5339 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5340 Removed.
5341 (i386_get_longjmp_target): New function.
5342 (default_struct_convention, pcc_struct_convention,
5343 reg_struct_convention, valid_conventions, struct_convention): New
5344 variables.
5345 (i386_use_struct_convention): New function.
5346 (i386v4_sigtramp_saved_pc): Renamed to
5347 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5348 (i386_pc_in_sigtramp): New function.
5349 (i386_abi_names): Removed.
5350 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5351 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5352 Removed.
5353 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5354 i386_gdbarch_register_os_abi): Removed.
5355 (struct i386_abi_handler): Removed.
5356 (i386_abi_handler_list): Removed.
5357 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5358 functions.
5359 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5360 i386_nw_init_abi): New functions.
5361 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5362 Use set_gdbarch_xxx() calls instead of relying on macros for a
5363 number of calls.
5364 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5365 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5366 Register the various architecture variants defined in this file.
5367
ad2f7632
DJ
53682002-06-14 Daniel Jacobowitz <drow@mvista.com>
5369
5370 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5371 (struct main_type): Remove arg_types member. Update comments for
5372 struct field.
5373 (TYPE_ARG_TYPES): Remove.
5374 (TYPE_FN_FIELD_ARGS): Update.
5375 (smash_to_method_type): Update prototype.
5376
5377 * c-typeprint.c (cp_type_print_method_args): Take method type
5378 instead of argument list. Use new argument layout. Simplify.
5379 (c_type_print_args): Use new argument layout. Simplify.
5380 (c_type_print_base): Update call to cp_type_print_method_args.
5381 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5382 argument; use die->type instead. Update call to
5383 smash_to_method_type.
5384 (read_structure_scope): Update call to dwarf2_add_member_fn.
5385 * gdbtypes.c (allocate_stub_method): Update comment.
5386 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5387 Use new argument layout.
5388 (check_stub_method): Use new argument layout. Don't count
5389 void as an argument.
5390 (print_arg_types): Update comments. Use new argument layout.
5391 (recursive_dump_type): Don't print arg_types member.
5392 * hpread.c (hpread_read_struct_type): Use new argument layout.
5393 (fixup_class_method_type): Likewise.
5394 (hpread_type_lookup): Likewise.
5395 * stabsread.c (read_type): Update calls to read_args and
5396 smash_to_method_type.
5397 (read_args): Use new argument layout. Simplify.
5398 * valops.c (typecmp): Use new argument layout. Update parameters
5399 and comments. Simplify.
5400 (hand_function_call): Use new argument layout.
5401 (search_struct_method): Update call to typecmp.
5402 (find_overload_match): Use new argument layout.
5403
6da02953
DJ
54042002-06-13 Daniel Jacobowitz <drow@mvista.com>
5405
5406 * NEWS: Mention multithreaded debug support for gdbserver.
5407
519b2366
DJ
54082002-06-13 Daniel Jacobowitz <drow@mvista.com>
5409
5410 * MAINTAINERS: Mention NEWS.
5411
6c0d6680
DJ
54122002-06-13 Daniel Jacobowitz <drow@mvista.com>
5413
5414 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5415 (struct mips_objfile_private, compare_pdr_entries): New.
5416 (non_heuristic_proc_desc): Read the ".pdr" section if it
5417 is present.
5418
6529d2dd
AC
54192002-06-12 Andrew Cagney <ac131313@redhat.com>
5420
5421 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5422 (arm_debug): New static variable.
5423 (_initialize_arm_tdep): Add ``set debug arm'' command.
5424
26216b98
AC
54252002-06-12 Andrew Cagney <ac131313@redhat.com>
5426
5427 * Makefile.in (sim_arm_h): Define.
5428 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5429 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5430 (arm_register_sim_regno): New function, map an internal REGNUM
5431 onto a simulator register number.
5432 (arm_gdbarch_init): Set register_sim_regno.
5433
814b3ba0
AH
54342002-06-09 Aldy Hernandez <aldyh@redhat.com>
5435
5436 * MAINTAINERS: Add self.
5437
475b0867
JB
54382002-06-11 Jim Blandy <jimb@redhat.com>
5439
919d772c
JB
5440 * source.c (source_info): Mention whether the symtab has
5441 information about preprocessor macros.
5442
475b0867
JB
5443 Call the command `info macro', not `show macro'.
5444 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5445 Fix error message.
5446 (_initialize_macrocmd): Register `info_macro_command' in
5447 `infolist', not `showlist'.
5448
9e364162
DJ
54492002-06-11 Daniel Jacobowitz <drow@mvista.com>
5450
5451 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5452 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5453 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5454 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5455 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5456 unconditionally.
5457 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5458 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5459 (_initialize_mips_tdep): Remove dead code.
5460 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5461 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5462 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5463 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5464 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5465 MIPS_LAST_FP_ARG_REGNUM): Remove.
5466
23aa4c72
ML
54672002-06-11 Michal Ludvig <mludvig@suse.cz>
5468
5469 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5470 (unwind_tmp_obstack_free, parse_frame_info)
5471 (update_context, cfi_read_fp, cfi_write_fp)
5472 (cfi_frame_chain, cfi_init_extra_frame_info)
5473 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5474 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5475
70eb15a4
CV
54762002-06-11 Corinna Vinschen <vinschen@redhat.com>
5477
5478 * v850-tdep.c (v850_type_is_scalar): New function.
5479 (v850_use_struct_convention): Match current gcc implementation
5480 as close as possible.
5481 (v850_push_arguments): Fix stack_offset handling. Don't write
5482 struct_addr into register. This is done by v850_store_struct_return.
5483 (v850_extract_return_value): Care for structs.
5484 (v850_store_return_value): Ditto.
5485 (v850_store_struct_return): Actually write address.
5486
482a4d06
ML
54872002-06-11 Michal Ludvig <mludvig@suse.cz>
5488
5489 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5490 without debug information too.
5491
d855c300
AC
54922002-06-10 Andrew Cagney <ac131313@redhat.com>
5493
5494 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5495 Make multi-arch pure.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * arm-tdep.c (arm_print_float_info): Update.
5498 * arch-utils.h (default_print_float_info): Update.
5499 * arch-utils.c (default_print_float_info): Update.
5500 * infcmd.c (float_info): Update call.
5501
dd12a101
AC
55022002-06-10 Andrew Cagney <ac131313@redhat.com>
5503
5504 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5505 the front of the initialize list.
5506
101dcfbe
AC
55072002-06-10 Andrew Cagney <ac131313@redhat.com>
5508
5509 * infrun.c (struct inferior_status): Replace fields
5510 selected_frame_address and selected_level with field
5511 selected_frame_id.
5512 (save_inferior_status): Update. Use get_frame_id.
5513 (struct restore_selected_frame_args): Delete.
5514 (restore_selected_frame): Update. Use frame_find_by_id.
5515 (restore_inferior_status): Update.
5516
5517 * breakpoint.h (struct breakpoint): Change type of
5518 watchpoint_frame to frame_id.
5519 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5520 call to get_current_frame.
5521 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5522 get_current_frame.
5523 (watchpoint_check): Use frame_find_by_id.
5524
5525 * frame.h (record_selected_frame): Delete declaration.
5526 * stack.c (record_selected_frame): Delete function.
5527
5528 * frame.h (struct frame_id): Define.
5529 (get_frame_id): Declare.
5530 (frame_find_by_id): Declare.
5531 * frame.c (frame_find_by_id): New function.
5532 (get_frame_id): New function.
5533
304270b6
AV
55342002-06-10 Andrey Volkov <avolkov@transas.com>
5535
5536 * ser-e7kpc.c: Fix duplicated define and call of
5537 _initialize_ser_e7000pc
5538
2f2cf184
DJ
55392002-06-09 Daniel Jacobowitz <drow@mvista.com>
5540
5541 * signals/signals.c (target_signal_from_host): Fix #ifdef
5542 SIGRTMIN case.
5543 (do_target_signal_to_host): Likewise.
5544
caaa3122
DJ
55452002-06-09 Daniel Jacobowitz <drow@mvista.com>
5546
5547 * mips-tdep.c (mips_find_abi_section): New function.
5548 (mips_gdbarch_init): Call it.
5549
6ac5df3a
MK
55502002-06-09 Mark Kettenis <kettenis@gnu.org>
5551
5552 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5553 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5554 after Andrew's 2002-06-08 gdbarch change.
5555
82ea117a
MK
55562002-06-09 Mark Kettenis <kettenis@gnu.org>
5557
5558 * i386-linux-nat.c (suppy_gregset): Don't supply
5559 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5560 register cache.
5561 (fill_gregset): Don't fetch it under the same circumstances.
5562
3c25f8c7
AC
55632002-06-09 Andrew Cagney <cagney@redhat.com>
5564
5565 * Makefile.in (callback_h): Define.
5566 (remote_sim_h): Update path to remote-sim.h.
5567 (remote-rdp.o): Add $(callback_h).
5568 (remote-sim.o): Use $(callback_h).
5569 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5570 * remote-rdp.c: Include "gdb/callback.h".
5571
1029b7fa
MK
55722002-06-09 Mark Kettenis <kettenis@gnu.org>
5573
5574 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5575 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5576
616675d3
AC
55772002-06-08 Andrew Cagney <ac131313@redhat.com>
5578
a3efda28
AC
5579 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5580 * rdi-share/serpardr.c: Ditto.
5581 * rdi-share/unixcomm.c: Ditto.
5582 * rdi-share/serdrv.c: Ditto.
5583 * rdi-share/hostchan.h: Ditto.
5584 * rdi-share/hostchan.c: Ditto.
5585 * rdi-share/host.h: Ditto.
5586 * rdi-share/devsw.c: Ditto.
5587
c5f10366
AC
5588 * objfiles.h: Change type of obj_private to void pointer.
5589 * pa64solib.c: Update copyright. Don't include "assert.h", use
5590 strcmp instead of STREQ, use LONGEST, do not use PTR
5591 * somsolib.c: Ditto.
5592
616675d3
AC
5593 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5594 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5595 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5596
e4b415d9
AC
55972002-06-08 Andrew Cagney <ac131313@redhat.com>
5598
5599 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5600 (default_get_saved_register): Delete function.
5601 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5602 generic_unwind_get_saved_register.
5603 * gdbarch.h, gdbarch.c: Re-generate.
5604
ca0d0b52
AC
56052002-06-08 Andrew Cagney <ac131313@redhat.com>
5606
5607 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5608 generic_func_frame_chain_valid.
5609 * gdbarch.h, gdbarch.c: Re-generate.
5610 * blockframe.c (generic_func_frame_chain_valid): Only check
5611 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5612 passing FP to PC_IN_CALL_DUMMY.
5613 Fix PR gdb/360.
5614
76860b5f
AC
56152002-06-08 Andrew Cagney <ac131313@redhat.com>
5616
5617 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5618 (register_gdbarch_data): Initialize init_p.
5619 (gdbarch_data): Initialize data pointer using the init function.
5620 (init_gdbarch_data): Delete function.
5621 (gdbarch_update_p): Update.
5622 (initialize_non_multiarch): Update.
5623 (struct gdbarch): Add field initialized_p.
5624 * gdbarch.h, gdbarch.c: Re-generate.
5625
8dda9770
ML
56262002-06-07 Michal Ludvig <mludvig@suse.cz>
5627
5628 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5629 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5630 better do the things actually here.
5631 * x86-64-tdep.c (x86_64_register_name2nr): New.
5632 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5633 (x86_64_gdbarch_init): Respect the above change.
5634 * x86-64-tdep.h (x86_64_register_name2nr)
5635 (x86_64_register_nr2name): Add prototypes.
5636 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5637
3d79a47c
MS
56382002-06-06 Michael Snyder <msnyder@redhat.com>
5639
7bd91a28
MS
5640 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5641 Delete extra braces and re-indent.
5642 (d10v_store_return_value): Char return values
3d79a47c
MS
5643 must be shifted over by one byte in R0.
5644 (d10v_extract_return_value): Delete extra braces, re-indent.
5645
095a4c96
EZ
56462002-06-06 Elena Zannoni <ezannoni@redhat.com>
5647
5648 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5649 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5650 (d10v_integer_to_address): Rewrite.
5651 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5652 the d10v specific functions which take care of converting to the
5653 correct space.
5654
e8a77ca4
EZ
56552002-06-06 Elena Zannoni <ezannoni@redhat.com>
5656
5657 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5658 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5659
4f2e4a4f
AC
56602002-06-02 Andrew Cagney <ac131313@redhat.com>
5661
5662 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5663 includes.
5664 * config/tm-linux.h: Ditto.
5665 * config/alpha/tm-alphalinux.h: Ditto.
5666 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5667 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5668 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5669 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5670 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5671 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5672 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5673 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5674 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5675 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5676 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5677 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5678 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5679 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5680 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5681 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5682 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5683 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5684 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5685 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5686 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5687 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5688 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5689 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5690 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5691 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5692 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5693 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5694 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5695 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5696 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5697 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5698 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5699 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5700 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5701 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5702 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5703
ae2ab2ce
AS
57042002-05-04 Aidan Skinner <aidan@velvet.net>
5705
5706 * ada-exp.tab.c: New file
5707 * ada-exp.y: New file
5708 * ada-lang.c: New file
5709 * ada-lang.h: New file
5710 * ada-lex.c: New file
5711 * ada-lex.l: New file
5712 * ada-tasks.c: New file
5713 * ada-typeprint.c: New file
5714 * ada-valprint.c: New file
5715
0ddd0135
JT
57162002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5717
5718 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5719 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5720
750fbacc
JT
57212002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5722
5723 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5724 insetead of ppc-linux-tdep.o.
5725 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5726 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5727
df94e18a
AC
57282002-06-02 Andrew Cagney <ac131313@redhat.com>
5729
5730 2002-05-07 Christian Groessler <chris@groessler.org>
5731 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5732 bit register contents for little endian hosts.
5733
1a38ab75
AC
57342002-06-01 Andrew Cagney <ac131313@redhat.com>
5735
5736 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5737 any maintainer.
5738
8b1632ac
AC
57392002-06-01 Andrew Cagney <ac131313@redhat.com>
5740
5741 * gdbarch.h: Regenerate.
5742
627054c8
AC
57432002-06-01 Andrew Cagney <ac131313@redhat.com>
5744
5745 * MAINTAINERS: Add everyone to write-after-approval list.
5746
4f460812
AC
57472002-06-01 Andrew Cagney <ac131313@redhat.com>
5748
5749 * stack.c (frame_info): Use frame_register_unwind instead of
5750 saved_regs. Mention when the SP is on the stack or in a register.
5751
5752 * frame.h (frame_register_unwind_ftype): Define. Document.
5753 (struct frame_info): Add field register_unwind and
5754 register_unwind_cache.
5755 (frame_register_unwind): Declare.
5756 (generic_unwind_get_saved_register): Declare.
5757
5758 * frame.c (frame_register_unwind): New function.
5759 (generic_unwind_get_saved_register): New function.
5760
5761 * blockframe.c (generic_call_dummy_register_unwind): New function.
5762 (frame_saved_regs_register_unwind): New function.
5763 (set_unwind_by_pc): New function.
5764 (create_new_frame): New function.
5765 (get_prev_frame): New function.
5766
de888f76
AC
57672002-05-30 Andrew Cagney <ac131313@redhat.com>
5768
5769 * a29k-share/: Delete directory.
5770 * remote-vx29k.c: Delete file.
5771
2f2c3626
JT
57722002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5773
5774 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5775 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5776
9ce5c36a
JT
57772002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5778
5779 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5780 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5781 (sparc64nbsd-nat.o)
5782 (sparcnbsd-nat.o)
5783 (sparcnbsd-tdep.o): New dependency lists.
5784 * NEWS: Note new UltraSPARC NetBSD native configuration.
5785 * configure.host (sparc64-*-netbsd*): New host.
5786 * configure.tgt (sparc-*-netbsdelf*)
5787 (sparc-*-netbsd*): Set gdb_target to nbsd.
5788 (sparc64-*-netbsd*): New target.
5789 * sparc64nbsd-nat.c: New file.
5790 * sparcnbsd-nat.c: New file.
5791 * sparcnbsd-tdep.c: New file.
5792 * sparcnbsd-tdep.h: New file.
5793 * config/sparc/nbsd.mt: New file.
5794 * config/sparc/nbsd64.mh: New file.
5795 * config/sparc/nbsd64.mt: New file.
5796 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5797 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5798 (HOST_IPC): Remove.
5799 * config/sparc/nbsdaout.mt: Remove.
5800 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5801 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5802 (HOST_IPC): Remove.
5803 * config/sparc/nbsdelf.mt: Remove.
5804 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5805 sparc-nat.c compatiblity defines.
5806 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5807 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5808 * config/sparc/tm-nbsd64.h: New file.
5809 * config/sparc/tm-nbsdaout.h: Remove.
5810 * config/sparc/xm-nbsd.h: Remove.
5811
ef3cf062
JT
58122002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5813
5814 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5815 * sparc-tdep.c: Include osabi.h.
5816 (gdbarch_tdep): Add osabi member.
5817 (_initialize_sparc_tdep): Use gdbarch_register.
5818 (sparc_gdbarch_init): Use generic OS ABI framework.
5819 (sparc_dump_tdep): New function.
5820
ee8ff470
KB
58212002-05-30 Kevin Buettner <kevinb@redhat.com>
5822
5823 * corefile.c (do_captured_read_memory_integer): Return non-zero
5824 result.
5825 (safe_read_memory_integer): Copy result of memory read when
5826 status is non-zero. Also, add comments.
5827
7b112f9c
JT
58282002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5829
5830 * Makefile.in (ppc_tdep_h): Define.
5831 (ppc-linux-nat.o)
5832 (ppc-linux-tdep.o)
5833 (rs6000-tdep.o): Use $(ppc_tdep_h).
5834 (ppc-sysv-tdep.o)
5835 (ppcnbsd-nat.o)
5836 (ppcnbsd-tdep.o): New dependency lists.
5837 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5838 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5839 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5840 (ppc_sysv_abi_broken_use_struct_convention)
5841 (ppc_sysv_abi_use_struct_convention)
5842 (ppc_sysv_abi_push_arguments): Move to...
5843 * ppc-sysv-tdep.c: ...here.
5844 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5845 * rs6000-tdep.c (process_note_abi_tag_sections)
5846 (get_elfosabi): Remove.
5847 (rs6000_gdbarch_init): Use generic OS ABI framework.
5848 (rs6000_dump_tdep): New function.
5849 (_initialize_rs6000_tdep): Use gdbarch_register.
5850 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5851 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5852 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5853 of ppc-linux-tdep.o.
5854 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5855 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5856 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5857 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5858 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5859 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5860
480dd42a
JB
58612002-05-29 Jim Blandy <jimb@redhat.com>
5862
5863 * macroscope.c (default_macro_scope): Put `void' in empty argument
5864 list.
5865
4182591f
AC
58662002-05-29 Andrew Cagney <ac131313@redhat.com>
5867
5868 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5869 * arch-utils.c: Include "sim-regno.h".
5870 * gdbarch.sh: Don't include "sim-regno.h".
5871 * gdbarch.h, gdbarch.c: Regenerate.
5872 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5873 here.
5874 * arch-utils.h (legacy_register_sim_regno): To here.
5875 * remote-sim.c (legacy_register_sim_regno): Move function from
5876 here.
5877 * arch-utils.c (legacy_register_sim_regno): To here.
5878
8238d0bf
AC
58792002-05-28 Andrew Cagney <ac131313@redhat.com>
5880
5881 * sim-regno.h: New file.
5882 * Makefile.in (sim_regno_h): Define.
5883 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5884 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5885 (legacy_register_sim_regno): New function.
5886 (one2one_register_sim_regno): New function.
5887 (gdbsim_fetch_register): Rewrite.
5888 (gdbsim_store_register): Only store a register when
5889 REGISTER_SIM_REGNO is valid.
5890 * d10v-tdep.c: Include "sim-regno.h".
5891 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5892 (d10v_ts3_register_sim_regno): Ditto.
5893 * gdbarch.sh: Include "sim-regno.h".
5894 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5895 * gdbarch.h, gdbarch.c: Regenerate.
5896 * arch-utils.h (default_register_sim_regno): Delete declaration.
5897 * arch-utils.c (default_register_sim_regno): Delete function.
5898
485721b1
JT
58992002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5900
5901 * ppcnbsd-nat.c: Rewrite.
5902 * ppcnbsd-tdep.c: New file.
5903 * ppcnbsd-tdep.h: New file.
5904 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5905 solib.o, and solib-svr4.o.
5906 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5907 nbsd-tdep.o, and corelow.o.
5908
697f244d
AC
59092002-05-28 Andrew Cagney <ac131313@redhat.com>
5910
5911 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5912 `tr' and `sed'. Mention that `broken' targets are not expected to
5913 build.
5914
f08caad1 59152002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5916
5917 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5918 Let PC point right after the prologue before looking up symbols.
5919
3139facc
MH
59202002-05-27 Martin M. Hunt <hunt@redhat.com>
5921
5922 * i386-tdep.c (i386_register_virtual_type): Return
5923 builtin_type_vec128i for SSE registers.
5924
5925 * gdbtypes.h (builtin_type_vec128i): Declare.
5926
5927 * gdbtypes.c (build_builtin_type_vec128i): New function.
5928 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5929 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5930 (build_gdbtypes): Initialize new builtin vector types.
5931 (_initialize_gdbtypes): Register new vector types with gdbarch.
5932
6e3ba3b8
JT
59332002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5934
5935 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5936 since it has been multi-arch'd.
5937 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5938 Move Alpha and VAX multi-arch news entries to same section
5939 as other multi-arch news.
5940
93d5585d
JT
59412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5942
5943 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5944 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5945 static. Rename some register numbers to put them in ns32k-tdep
5946 private namespace.
5947 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5948 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5949 functions.
5950 (_initialize_ns32k_tdep): Use gdbarch_register.
5951 * ns32k-tdep.h: New file.
5952 * ns32knbsd-tdep.c: New file.
5953 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5954 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5955 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5956 REGISTER_BYTES, REGISTER_BYTE): Remove.
5957 * config/ns32k/tm-ns32k.h: New file.
5958 * config/ns32k/tm-umax.h: Remove.
5959
efb2c70e
JT
59602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5961
5962 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5963 ns32k_store_struct_return, ns32k_extract_return_value,
5964 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5965 functions.
5966 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5967 ns32k_saved_pc_after_call.
5968 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5969 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5970 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5971 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5972 ns32k_extract_struct_value_address.
5973
7bcc927b
JT
59742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5975
5976 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5977 ns32k_fix_call_dummy): New.
5978 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5979 ns32k_call_dummy_words.
5980 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5981 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5982 CALL_DUMMY_NARGS): Remove.
5983 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5984
78f9d765
JT
59852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5986
5987 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5988 ns32k_frame_saved_pc, ns32k_frame_args_address,
5989 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5990 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5991 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5992 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5993 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5994 (BREAKPOINT): Remove..
5995 (FRAME_CHAIN): Define as ns32k_frame_chain.
5996 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5997 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5998 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5999 (FRAME_FIND_SAVED_REGS): Remove.
6000 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6001 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6002 (POP_FRAME): Define as ns32k_pop_frame.
6003
f2c762e0
JT
60042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6005
6006 * ns32k-tdep.c (ns32k_register_byte_32082,
6007 ns32k_register_byte_32382, ns32k_register_raw_size,
6008 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6009 functions.
6010 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6011 ns32k_register_byte_32382.
6012 * config/ns32k/tm-umax.h: Update copyright years.
6013 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6014 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6015 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6016 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6017 (ns32k_get_enter_addr): Fix prototype.
6018
af137673
JT
60192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6020
6021 * ns32k-tdep.c: Update copyright years.
6022 (ns32k_register_name_32082): New function.
6023 (ns32k_register_name_32382): Ditto.
6024 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6025 (REGISTER_NAME): Define as ns32k_register_name_32382.
6026 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6027 (REGISTER_NAME): Define as ns32k_register_name_32082.
6028
a8bc7b56
JB
60292002-05-24 Jim Blandy <jimb@redhat.com>
6030
6031 * dwarf2read.c (free_line_header): Use xfree, not free.
6032
83a45910
JT
60332002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6034
6035 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6036 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6037
0db71247
AC
60382002-05-23 Andrew Cagney <ac131313@redhat.com>
6039
6040 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6041
b9e5e4dd
AC
60422002-05-23 Andrew Cagney <ac131313@redhat.com>
6043
6044 From Ross Alexander at NEC Europe:
6045 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6046
de530e84
MS
60472002-05-23 Michael Snyder <msnyder@redhat.com>
6048
6049 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6050 for input, rather than parse_and_eval_address.
6051
b91b96f4
AC
60522002-05-23 Andrew Cagney <ac131313@redhat.com>
6053
6054 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6055 * Makefile.in (sim_d10v_h): Update definition.
6056
8b279e7a
AC
60572002-05-24 Andrew Cagney <cagney@redhat.com>
6058
6059 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6060 change `2002-05-22 Michael Snyder' below.
6061 (d10v_push_arguments): Ditto.
6062 (d10v_extract_return_value): Ditto.
6063
0a3d0425
JB
60642002-05-23 Jim Blandy <jimb@redhat.com>
6065
6066 * macrotab.c (check_for_redefinition): Don't complain if the new
6067 definition is the same as the previous one. Take more arguments
6068 to allow the comparison.
6069 (macro_define_object, macro_define_function): Pass more arguments
6070 to check_for_redefinition.
6071
78eac43e
MS
60722002-05-22 Michael Snyder <msnyder@redhat.com>
6073
6074 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6075 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6076 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6077 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6078 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6079 Add a temp variable to save a call (and a memory read).
6080 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6081 if possible (so that PC_IN_CALL_DUMMY will work).
6082
9bc1edb8
CV
60832002-05-22 Corinna Vinschen <vinschen@redhat.com>
6084
6085 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6086
005ef3d2
ML
60872002-05-22 Michal Ludvig <mludvig@suse.cz>
6088
6089 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6090 fde->cie_ptr.
6091 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6092 (dwarf2_build_frame_info): Add offset to fde->initial_location
6093 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
6094 (execute_stack_op): Change type of 'result' from ULONGEST to
6095 CORE_ADDR.
005ef3d2 6096
fcf4f891
JT
60972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6098
6099 * config/alpha/tm-nbsd.h: Include solib.h.
6100
cfef91e4
JT
61012002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6104 assumptions about the host's byte order.
6105
9964235a
JT
61062002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6107
6108 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6109 to dependency list.
6110 * alphanbsd-tdep.c: Include solib-svr4.h.
6111 * shnbsd-tdep.c: Ditto.
6112
9eeef8ef
JT
61132002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6114
6115 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6116 nbsd-tdep.h to dependency list.
6117 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6118 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6119 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6120 nbsdaout.mh and nbsdelf.mh consistently.
6121 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6122 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6123 nbsdaout.mt and nbsdelf.mh consistently.
6124 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6125 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6126 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6127 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6128 a.out shared library stuff from here...
6129 * config/nm-nbsdaout.h: ...to here.
6130 * config/tm-nbsd.h: Remove.
6131 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6132 * config/arm/nbsd.mh: Remove.
6133 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6134 nbsd-tdep.o.
6135 * config/arm/nbsdaout.mh: New file.
6136 * config/arm/nbsdelf.mh: New file.
6137 * config/arm/nm-nbsdaout.h: New file.
6138 * config/i386/nbsd.mh: Remove.
6139 * config/i386/nbsd.mt: Remove.
6140 * config/i386/nbsdaout.mh: New file.
6141 * config/i386/nbsdaout.mt: New file.
6142 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6143 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6144 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6145 i386_register_u_addr): Remove.
6146 * config/i386/nm-nbsdaout.h: New file.
6147 * config/i386/nm-nbsdelf.h: Remove.
6148 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6149 (USE_STRUCT_CONVENTION): Remove.
6150 * config/i386/tm-nbsdaout.h: New file.
6151 * config/i386/tm-nbsdelf.h: Remove.
6152 * config/m68k/nbsd.mh: Remove.
6153 * config/m68k/nbsd.mt: Remove.
6154 * config/m68k/nbsdaout.mh: New file.
6155 * config/m68k/nbsdaout.mt: New file.
6156 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6157 * config/m68k/nm-nbsdaout.h: New file.
6158 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6159 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6160 * config/ns32k/nbsd.mh: Remove.
6161 * config/ns32k/nbsd.mt: Remove.
6162 * config/ns32k/nbsdaout.mh: New file.
6163 * config/ns32k/nbsdaout.mt: New file.
6164 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6165 * config/ns32k/nm-nbsdaout.h: New file.
6166 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6167 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6168 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6169 (SVR4_SHARED_LIBS): Remove.
6170 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6171 * config/sparc/nbsd.mh: Remove.
6172 * config/sparc/nbsd.mt: Remove.
6173 * config/sparc/nbsdaout.mh: New file.
6174 * config/sparc/nbsdaout.mt: New file.
6175 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6176 * config/sparc/nbsdelf.mt: New file.
6177 * config/sparc/nm-nbsdaout.h: New file.
6178 * config/sparc/nm-nbsdelf.h: Remove.
6179 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6180 * config/sparc/tm-nbsdaout.h: New file.
6181
257ce470
JT
61822002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6183
6184 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6185 mipsnbsd-tdep.c
6186 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6187
76a6d5fe
JT
61882002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6189
6190 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6191 shnbsd-nat.c.
6192 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6193
45888261
JT
61942002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6195
6196 * NEWS: Note new MIPS NetBSD native configuration.
6197 * configure.host (mips*-*-netbsd*): New host.
6198 * configure.tgt (mips*-*-netbsd*): New target.
6199 * mipsnbsd-nat.c: New file.
6200 * mipsnbsd-tdep.c: New file.
6201 * mipsnbsd-tdep.h: New file.
6202 * config/mips/nbsd.mh: New file.
6203 * config/mips/nbsd.mt: New file.
6204 * config/mips/nm-nbsd.h: New file.
6205 * config/mips/tm-nbsd.h: New file.
6206
70f80edf
JT
62072002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6208
6209 * Makefile.in (SFILES): Add osabi.c.
6210 (COMMON_OBS): Add osabi.o.
6211 (osabi.o): New dependency list.
6212 * osabi.c: New file.
6213 * osabi.h: New file.
6214 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6215
6216 * Makefile.in (alpha_tdep_h): Define and use instead of
6217 alpha-tdep.h.
6218 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6219 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6220 Remove.
6221 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6222 * alpha-tdep.h: Include osabi.h.
6223 (alpha_abi): Remove.
6224 (gdbarch_tdep): Use generic OS ABI framework.
6225 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6226 gdbarch_register_osabi.
6227 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6228 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6229 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6230
6231 * Makefile.in (sh_tdep_h): Add osabi.h.
6232 * sh-tdep.h (sh_osabi): Remove.
6233 (gdbarch_tdep): Use generic OS ABI framework.
6234 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6235 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6236 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6237 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6238
6239 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6240 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6241 gdbarch_register_osabi.
6242 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6243 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6244 (get_elfosabi): Rename to...
6245 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6246 ABI framework support routines.
6247 (arm_gdbarch_init): Use generic OS ABI framework.
6248 (arm_dump_tdep): Likewise.
6249 (_initialize_arm_tdep): Likewise.
6250 * arm-tdep.h: Include osabi.h.
6251 (arm_abi): Remove.
6252 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6253 osabi member.
6254 (arm_gdbarch_register_os_abi): Remove prototype.
6255 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6256 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6257
6258 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6259 * mips-tdep.c: Include osabi.h.
6260 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6261 OS ABI framework.
6262
d194345b
KH
62632002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6264
6265 * h8300-tdep.c: Fix formatting.
6266
70c6b0d1
EZ
62672002-05-20 Elena Zannoni <ezannoni@redhat.com>
6268
6269 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6270 printing vector registers.
6271
165b8e33
AC
62722002-05-19 Andrew Cagney <ac131313@redhat.com>
6273
6274 From Fernando Nasser:
6275 * remote.c (remote_async_open_1): Re-throw the exception when the
6276 connection fails.
6277 (remote_cisco_open): Ditto.
6278 (remote_open_1): Ditto.
6279
36918e70
AC
62802002-05-19 Andrew Cagney <ac131313@redhat.com>
6281
6282 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6283 (remote_start_remote): Add uiout parameter. Pass through to
6284 remote_start_remote_dummy.
6285 (remote_open_1): Use catch_exception instead of catch_errors.
6286 (remote_async_open_1): Ditto.
6287 (remote_cisco_open): Ditto.
6288
ae44c0c4
AC
62892002-05-19 Andrew Cagney <ac131313@redhat.com>
6290
6291 * remote.c (remote_start_remote): Replace PTR with void pointer.
6292 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6293 static.
6294
8efe637d
AC
62952002-05-18 Andrew Cagney <ac131313@redhat.com>
6296
6297 * gdb_indent.sh: Allow the script to be run in the sim directory.
6298
2f1b5984
MK
62992002-05-18 Mark Kettenis <kettenis@gnu.org>
6300
f0f625e2
MK
6301 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6302 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6303
2f1b5984
MK
6304 * corelow.c (core_open): Only call set_gdbarch_from_file if
6305 exec_bfd is NULL.
6306
fc974602
AV
63072002-05-17 Andrey Volkov <avolkov@transas.com>
6308
6309 * h8300-tdep.c: Add support of EXR register
6310 * config/h8300/tm-h8300.h: Ditto.
6311
906709f4
AV
63122002-05-17 Andrey Volkov <avolkov@transas.com>
6313
6314 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6315
6e591d68
AV
63162002-05-17 Andrey Volkov <avolkov@transas.com>
6317
6318 * h8300-tdep.c: Change literal regnums to REGNO.
6319
84f0252a
JB
63202002-05-17 Jim Blandy <jimb@redhat.com>
6321
e0e9281e
JB
6322 * NEWS: Note addition of macro support.
6323
84f0252a
JB
6324 Expand preprocessor macros in C expressions.
6325 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6326 (scan_macro_expansion, scanning_macro_expansion,
6327 finished_macro_expansion): New function declarations.
6328 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6329 variable declarations.
6330 * parser-defs.h (expression_context_pc): New declaration.
6331 * parse.c (expression_context_pc): New variable.
6332 (parse_exp_1): Set expression_context_pc, as well as
6333 expression_context_block.
6334 * c-exp.y (yylex): If we're not already reading the result of a
6335 macro expansion, try to macro-expand the next token. When we're
6336 done scanning a macro expansion, switch back to the mainline text.
6337 Commas and `if's in a macro's expansion don't terminate the input.
6338 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6339 (macro_original_text, macro_expanded_text,
6340 expression_macro_lookup_func, expression_macro_lookup_baton): New
6341 variables.
6342 (scan_macro_expansion, scanning_macro_expansion,
6343 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6344 c_preprocess_and_parse): New functions.
6345 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6346 c_preprocess_and_parse, instead of c_parse.
6347 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6348 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6349
1c509ca8
JR
6350Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6351
6352 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6353 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6354 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6355
2250ee0c
CV
63562002-05-17 Corinna Vinschen <vinschen@redhat.com>
6357
6358 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6359
ab3b8126
JT
63602002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * Makefile.in (sh_tdep_h): Define and use.
6363 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6364 register enum): Move to...
6365 * * sh-tdep.h: ...here.
6366 * sh-tdep.c: Include sh-tdep.h.
6367 * sh3-rom.c: Likewise.
6368 * shnbsd-tdep.c: Likewise.
6369
ed9d4749
MS
63702002-05-16 Michael Snyder <msnyder@redhat.com>
6371
6372 * arm-tdep.c: Spelling fix in comment.
6373
2e276125
JB
63742002-05-16 Jim Blandy <jimb@redhat.com>
6375
6821892e
JB
6376 Add commands for manually expanding macros and showing their
6377 definitions.
6378 * macrocmd.c, macroscope.c, macroscope.h: New files.
6379 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6380 (macroscope_h): New variable.
6381 (HFILES_NO_SRCDIR): Add macroscope.h.
6382 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6383 (macroscope.o, macrocmd.o): New rules.
6384
2e276125
JB
6385 Teach the Dwarf 2 reader to read macro information.
6386 * dwarf2read.c: #include "macrotab.h".
6387 (dwarf_macinfo_buffer): New variable.
6388 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6389 dwarf_macinfo_size.
6390 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6391 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6392 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6393 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6394 dwarf2_macro_spaces_in_definition): New complaints.
6395 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6396 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6397 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6398 the partial symbol table.
6399 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6400 from what's recorded in the partial symbol table.
6401 (read_file_scope): If the compilation unit has a
6402 `DW_AT_macro_info' attribute, read its macro information.
6403 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6404
2f53fe6c
DJ
64052002-05-16 Daniel Jacobowitz <drow@mvista.com>
6406
6407 Fix PR gdb/546
6408 * ser-tcp.c: Don't include <netinet/udp.h>.
6409
2be99286
SC
64102002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6411
6412 * MAINTAINERS: Update my email address.
6413
c9af212b 64142002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6415
6416 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6417 include file of the same name.
6418
bf5f1a52
CV
64192002-05-16 Corinna Vinschen <vinschen@redhat.com>
6420
6421 * configure.tgt: Mark v850 as multi-arched.
6422 * config/v850/tm-v850.h: Remove file.
6423 * config/v850/v850.mt: Eliminate TM_FILE.
6424
435e042a
CV
64252002-05-16 Corinna Vinschen <vinschen@redhat.com>
6426
6427 * v850-tdep.c: Full multi-arch.
6428 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6429 Define GDB_MULTI_ARCH to 2.
6430
9819c6c8
PM
64312002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6432
6433 * p-exp.y (current_type): New static variable.
6434 Carries the type of the expression at the position that is parsed.
6435 (push_current_type, pop_current_type): Two new functions. Used
6436 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6437 (search_field): New static variable. Set to one after parsing a point
6438 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6439 (FIELDNAME): New token. After a point only a token belonging to
6440 current_type type definition is allowed.
6441 (all over token rules): reset and change current_type according
6442 to rules.
6443 (exp '[' rule): insert implicit array index field if
6444 exp is a pascal string type.
6445
3a06899a
CV
64462002-05-16 Corinna Vinschen <vinschen@redhat.com>
6447
6448 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6449 frame info. Use frame_info's saved_regs instead of matching member
6450 in extra_frame_info throughout.
6451 (v850_frame_init_saved_regs): New function.
6452 (v850_init_extra_frame_info): Move most functionality into
6453 v850_frame_init_saved_regs().
6454 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6455 (v850_frame_find_saved_regs): Remove declaration.
6456 (FRAME_FIND_SAVED_REGS): Remove definition.
6457 (v850_frame_init_saved_regs): Add declaration.
6458 (FRAME_INIT_SAVED_REGS): Add definition.
6459
6ed14b0e
CV
64602002-05-16 Corinna Vinschen <vinschen@redhat.com>
6461
6462 * v850-tdep.c: Begin multi-arch'ing v850.
6463 (v850_target_architecture_hook): Remove function.
6464 (v850_gdbarch_init): New function. Add code previously in
6465 v850_target_architecture_hook().
6466 (_initialize_v850_tdep): Don't set target_architecture_hook.
6467 Call register_gdbarch_init() instead.
6468
42725910
DJ
64692002-05-16 Daniel Jacobowitz <drow@mvista.com>
6470
6471 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6472 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6473 (fixup_class_method_type): Likewise.
6474
99d9066e
JB
64752002-05-15 Jim Blandy <jimb@redhat.com>
6476
6477 Add macro structures to GDB's symbol tables. Nobody puts anything
6478 in them yet.
6479 * symtab.h (struct symtab): New member: `macro_table'.
6480 * buildsym.h (pending_macros): New global variable.
6481 * buildsym.c: #include "macrotab.h".
6482 (buildsym_init): Initialize `pending_macros'.
6483 (end_symtab): If we found macro information while reading a CU's
6484 debugging info, do build a symtab structure for it. Make the
6485 symtab point to the macro information, and clear the
6486 `pending_macros' pointer which held it while we were reading the
6487 debug info.
6488 (really_free_pendings): Free any pending macro table.
6489 * objfiles.h (struct objfile): New member: `macro_cache'.
6490 * objfiles.c (allocate_objfile): Set allocate and free functions
6491 for the macro cache's objstack.
6492 (free_objfile): Empty the macro cache's obstack.
6493 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6494 set new allocate and free functions for it.
6495 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6496 free functions for the macro cache's objstack. (Why is this
6497 function building its own objfile?)
6498 * symmisc.c (print_objfile_statistics): Print statistics on the
6499 macro bcache.
6500 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6501
c899585b
RE
65022002-05-15 Richard Earnshaw <rearnsha@arm.com>
6503
6504 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6505 (REGISTER_U_ADDR): Delete definition.
6506 (arm_register_u_addr): Delete declaration.
6507
a6cdd8c5
RE
65082002-05-15 Richard Earnshaw <rearnsha@arm.com>
6509
6510 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6511 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6512
c97dcfc7
AC
65132002-05-14 Andrew Cagney <ac131313@redhat.com>
6514
6515 * regcache.c (register_valid): Revise comments refering to "Not
6516 available" and "unavailable".
6517 * frame.c (frame_register_read): Ditto.
6518 * findvar.c (value_of_register): Ditto.
6519
93021b7d
AC
65202002-05-15 Andrew Cagney <cagney@redhat.com>
6521
6522 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6523 (remote-sim.o): Update dependencies.
6524 (d10v-tdep.o): Specify dependencies.
6525 (sim_d10v_h): Define.
6526
a86bc61c
JB
65272002-05-14 Jim Blandy <jimb@redhat.com>
6528
6529 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6530 * macrotab.c (macro_lookup_inclusion, find_definition,
6531 new_macro_table): Same.
6532
6533 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6534 not `! strcmp ()'. This is a dubious improvement.
6535 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6536
6537 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6538 although it's not necessary, to avoid a warning.
6539
2fdde8f8
DJ
65402002-05-14 Daniel Jacobowitz <drow@mvista.com>
6541
6542 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6543 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6544 TYPE_INSTANCE_FLAGS.
6545 (struct main_type): New.
6546 (struct type): Move most members to struct main_type. Change
6547 cv_type and as_type to new type_chain member. Add instance_flags.
6548 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6549 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6550 (finish_cv_type): Remove prototype.
6551 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6552 Set TYPE_CHAIN.
6553 (alloc_type_instance): New function.
6554 (smash_type): New function.
6555 (make_pointer_type, make_reference_type, make_function_type)
6556 (smash_to_member_type, smash_to_method_type): Call smash_type.
6557 (make_qualified_type): New function.
6558 (make_type_with_address_space): Call make_qualified_type.
6559 (make_cv_type): Likewise.
6560 (finish_cv_type): Remove unnecessary function.
6561 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6562 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6563 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6564 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6565 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6566 * hpread.c (hpread_read_struct_type): Likewise.
6567 * stabsread.c (read_struct_type): Likewise.
6568
843fedf4
EZ
65692002-05-14 Elena Zannoni <ezannoni@redhat.com>
6570
6571 * configure.tgt: Add a catch all sh* target, for cases like
6572 sh[2,3,4]-elf and sh-hms.
6573
05a6c72c
KS
65742002-05-14 Keith Seitz <keiths@redhat.com>
6575
6576 * event-loop.c (create_file_handler): Don't do anything but
6577 update data when we are given a fd which we are already
6578 monitoring.
6579
5d085aaf
ML
65802002-05-14 Michal Ludvig <mludvig@suse.cz>
6581
6582 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6583 (update_context): Use __func__ in warnings.
6584
9db8d71f
DJ
65852002-05-14 Daniel Jacobowitz <drow@mvista.com>
6586
6587 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6588 and tcp_close to net_open and net_close.
6589 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6590 using UDP if requested. Don't try to disable Nagle on UDP
6591 sockets.
6592 * remote.c (remote_serial_open): New function. Warn about UDP.
6593 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6594
5dbc6baa
EZ
65952002-05-13 Elena Zannoni <ezannoni@redhat.com>
6596
6597 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6598
cc3023f7
EZ
65992002-05-13 Elena Zannoni <ezannoni@redhat.com>
6600
6601 * configure.tgt: Remove sh-hms target.
6602 * MAINTAINERS: Don't list sh-hms as a separate target.
6603
ec2bcbe7
JB
66042002-05-13 Jim Blandy <jimb@redhat.com>
6605
6606 Add first preprocessor macro-expansion files.
6607 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6608 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6609 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6610 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6611 (COMMON_OBS): Add macrotab.o, macroexp.o.
6612 (macroexp.o, macrotab.o): New rules.
6613
6d531722
AC
66142002-05-13 Andrew Cagney <ac131313@redhat.com>
6615
6616 * config/m88k/tm-m88k.h: Update copyright.
6617 (m88k_target_write_pc): Declare
6618 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6619 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6620 (SHIFT_INST_REGS): Update definition.
6621 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6622 using old definition of TARGET_WRITE_PC.
6623 * regcache.c (generic_target_write_pc): Delete code handling
6624 NNPC_REGNUM.
6625 * gdbarch.sh (NNPC_REGNUM): Delete.
6626 * gdbarch.h, gdbarch.c: Regenerate.
6627
3e3f2739
RE
66282002-05-13 Richard Earnshaw <rearnsha@arm.com>
6629
6630 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6631 builtin reg number.
6632
0004e5a2
DJ
66332002-05-13 Daniel Jacobowitz <drow@mvista.com>
6634
6635 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6636 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6637 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6638 access macros.
6639 * c-typeprint.c (cp_type_print_method_args): Likewise.
6640 (c_type_print_args): Likewise.
6641 * d10v-tdep.c (d10v_push_arguments): Likewise.
6642 (d10v_extract_return_value): Likewise.
6643 * expprint.c (print_subexp): Likewise.
6644 * gdbtypes.c (lookup_primitive_typename): Likewise.
6645 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6646 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6647 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6648 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6649 (TYPE_VECTOR): Likewise.
6650 * hpread.c (hpread_read_struct_type)
6651 (fix_static_member_physnames, fixup_class_method_type)
6652 (hpread_type_lookup): Likewise.
6653 * mdebugread.c (parse_symbol, parse_type): Likewise.
6654 * p-lang.c (is_pascal_string_type): Likewise.
6655 * valops.c (hand_function_call): Likewise.
6656 * x86-64-tdep.c (classify_argument): Likewise.
6657
6658 * hpread.c (hpread_read_function_type)
6659 (hpread_read_doc_function_type): Call replace_type.
6660 * dstread.c (create_new_type): Delete.
6661 (decode_dst_structure, process_dst_function): Call alloc_type.
6662 Use type access macros.
6663
dff95cc7
MK
66642002-05-12 Mark Kettenis <kettenis@gnu.org>
6665
6666 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6667 the're not supported by the current architecture.
6668 (i387_fill_fxsave): Likewise.
6669
bbcd32ad
FF
66702002-05-12 Fred Fish <fnf@redhat.com>
6671
6672 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6673 sect_index_xxx members to index the first slot in section_offsets
6674 if all of the section_offsets are zero.
6675
89cf4787
MK
66762002-05-12 Mark Kettenis <kettenis@gnu.org>
6677
6678 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6679 checked in with last change.
6680
1f77ffc5
MK
66812002-05-12 Mark Kettenis <kettenis@gnu.org>
6682
6683 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6684 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6685 config.sub.
6686
89b8b4a9
DJ
66872002-05-12 Daniel Jacobowitz <drow@mvista.com>
6688
6689 * Makefile.in: Update dependencies.
6690
14a5e767
AC
66912002-05-11 Andrew Cagney <ac131313@redhat.com>
6692
6693 * language.c (local_hex_string_custom): Simplify. Do not depend
6694 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6695
6696 * memattr.c (mem_info_command): Replace calls to
6697 longest_local_hex_string and longest_local_hex_string_custom.
6698 * buildsym.c (make_blockvector): Ditto.
6699 * solib.c (info_sharedlibrary_command): Ditto.
6700 * tracepoint.c (tracepoints_info): Ditto.
6701 * symtab.c (print_msymbol_info): Ditto.
6702
6703 * language.c (local_hex_string): Delete.
6704 (local_hex_string_custom): Delete.
6705 (longest_local_hex_string): Rename to local_hex_string.
6706 (longest_local_hex_string_custom): Rename to
6707 local_hex_string_custom.
6708 * language.h (local_hex_string): Change parameter type to LONGEST.
6709 (local_hex_string_custom): Ditto.
6710 (longest_local_hex_string): Delete declaration.
6711 (longest_local_hex_string_custom): Ditto.
6712
6713 * solib.c: Update copyright.
6714 * memattr.c: Update copyright.
6715
13d01224
AC
67162002-05-11 Andrew Cagney <ac131313@redhat.com>
6717
6718 * arch-utils.h (legacy_register_to_value): Declare.
6719 (legacy_value_to_register): Declare.
6720 (legacy_convert_register_p): Declare.
6721 * arch-utils.c (legacy_register_to_value): New function.
6722 (legacy_value_to_register): New function.
6723 (legacy_convert_register_p): New function.
6724
6725 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6726 (VALUE_TO_REGISTER): Define.
6727 (CONVERT_REGISTER_P): Define.
6728 * gdbarch.h, gdbarch.c: Regenerate.
6729
6730 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6731 VALUE_TO_REGISTER.
6732 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6733 CONVERT_REGISTER_P.
6734
4a1970e4
DJ
67352005-05-11 Daniel Jacobowitz <drow@mvista.com>
6736 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6737
6738 * Makefile.in: Update dependencies for valops.c.
6739 * valops.c: Include "gdb_assert.h".
6740 (typecmp): Skip THIS parameter to methods.
6741 (find_method_list): Remove static_memfuncp argument,
6742 update callers. Check for stub methods.
6743 (find_value_oload_method_list): Don't set *static_memfuncp.
6744 (find_overload_match): Don't check for stub methods. Assert
6745 that methods are not stubbed. Handle static methods.
6746 (value_find_oload_method_list): Remove static_memfuncp argument.
6747 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6748 to the argument list for static stub methods.
6749 * value.h (value_find_oload_method_list): Update prototype.
6750
b2e75d78
AC
67512002-05-11 Andrew Cagney <ac131313@redhat.com>
6752
6753 * arch-utils.h (generic_register_size): Declare.
6754 (generic_register_raw_size, generic_register_virtual_size): Delete
6755 declarations.
6756 * arch-utils.c (generic_register_raw_size): Delete.
6757 (generic_register_size): New function.
6758 (generic_register_virtual_size): Delete.
6759
6760 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6761 default generic_register_size.
6762 * gdbarch.h, gdbarch.c: Re-generate.
6763
6764 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6765 register_virtual_size.
6766 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6767 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6768
451fbdda
AC
67692002-05-11 Andrew Cagney <ac131313@redhat.com>
6770
6771 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6772 * gdbarch.h, gdbarch.c: Regenerate.
6773 * gnu-v3-abi.c: Update copyright.
6774 (vtable_address_point_offset): Update.
6775 (gnuv3_rtti_type): Update.
6776 (gnuv3_baseclass_offset): Update.
6777 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6778 (init_fetch_link_map_offsets): Update.
6779 * remote.c (get_remote_state): Update.
6780
6d2f5cea
DJ
67812002-05-11 Daniel Jacobowitz <drow@mvista.com>
6782
6783 * TODO: Remove value_headof/value_from_vtable_info comment.
6784 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6785 * values.c (value_headof, value_from_vtable_info): Delete.
6786 * value.h (value_from_vtable_info): Delete prototype.
6787
d2324da4
AC
67882002-05-11 Andrew Cagney <ac131313@redhat.com>
6789
6790 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6791 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6792 $(gdb_regex_h).
6793 (gdb_assert_h): Define.
6794 (gdb_wait_h): Define.
6795 (gdb_regex_h): Define.
6796
5c717440
DJ
67972002-05-11 Daniel Jacobowitz <drow@mvista.com>
6798
6799 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6800 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6801
6c7861b3
JT
68022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6803
6804 * nbsd-tdep.c: Fix comment.
6805
ea5bc2a6
JT
68062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6807
6808 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6809 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6810 (nbsd-tdep.o): New dependency list.
6811 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6812 nbsd-tdep.h.
6813 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6814 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6815 * nbsd-tdep.c: New file.
6816 * nbsd-tdep.h: New file.
6817 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6818 nbsd-tdep.h.
6819 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6820 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6821 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6822 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6823
b28da865
JT
68242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6827 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6828 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6829 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6830 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6831 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6832
4b8ff1fa
JT
68332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6834
6835 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6836 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6837 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6838 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6839 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6840 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6841 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6842
dfe6eb1f
JT
68432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6844
6845 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6846 fetch_elfcore_registers to...
6847 * i386nbsd-tdep.c: ...here.
6848 (i386nbsd_use_struct_convention): Rename to...
6849 (i386nbsd_aout_use_struct_convention): ...this.
6850 (i386nbsd_supply_reg): New function.
6851 (i386nbsd_fill_reg): New function.
6852 (fetch_core_registers): Use i386nbsd_supply_reg.
6853 (fetch_elfcore_registers): Likewise.
6854 (_initialize_i386nbsd_tdep): New function.
6855 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6856 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6857 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6858 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6859 (i386nbsd_aout_use_struct_convention): ...this.
6860
20cb8cda
JT
68612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6862
6863 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6864 (store_inferior_registers): Use shnbsd_fill_reg.
6865 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6866 sh_nbsd_supply_register): Collapse into...
6867 (shnbsd_supply_reg): ...this.
6868 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6869 (shnbsd_fill_reg): ...this.
6870 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6871 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6872 (fetch_core_registers): Use shnbsd_supply_reg.
6873 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6874 (sh_nbsd_core_fns): Rename to...
6875 (shnbsd_core_fns): ...this.
6876 (sh_nbsd_elfcore_fns): Rename to...
6877 (shnbsd_elfcore_fns): ...this.
6878 (sh_nbsd_init_abi): Rename to...
6879 (shnbsd_init_abi): ...this.
6880 (_initialize_sh_nbsd_tdep): Rename to...
6881 (_initialize_shnbsd_tdep): ...this.
6882 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6883 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6884 sh_nbsd_fill_register): Remove prototypes.
6885 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6886
e750d25e
JT
68872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6888
6889 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6890 (i387-nat.o): Delete dependency list.
6891 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6892 (x86-64-linux-nat.o): Likewise.
6893 * i387-nat.c: Delete file, moving contents to...
6894 * i387-tdep.c: ...here.
6895 * i387-nat.h: Rename...
6896 * i387-tdep.h: ...to this.
6897 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6898 * i386-linux-nat.c: Likewise.
6899 * i386bsd-nat.c: Likewise.
6900 * i386gnu-nat.c: Likewise.
6901 * i386nbsd-nat.c: Likewise.
6902 * i386v4-nat.c: Likewise.
6903 * x86-64-linux-nat.c: Likewise.
6904 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6905 * config/i386/go32.mh (NATDEPFILES): Likewise.
6906 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6907 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6908 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6909 * config/i386/linux.mh (NATDEPFILES): Likewise.
6910 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6911 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6912 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6913 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6914
1aee598a
JT
69152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6916
6917 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6918 (alphanbsd-nat.o): Remove dependency list.
6919 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6920 * alphanbsd-nat.c: Delete. Contents moved to...
6921 * alphanbsd-tdep.c: ...here.
6922 (_initialize_alphanbsd_tdep): Register core functions.
6923 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6924
12bcb0fe
JT
69252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6928 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6929 (alphanbsd-nat.o): Likewise.
6930 (alphabsd-tdep.o): New dependency list.
6931 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6932 (fill_gregset): Use alphabsd_fill_reg.
6933 (supply_fpregset): Use alphabsd_supply_fpreg.
6934 (fill_fpregset): Use alphabsd_fill_fpreg.
6935 (fetch_inferior_registers): Use struct reg and struct fpreg
6936 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6937 and alphabsd_supply_fpreg.
6938 (store_inferior_registers): Use struct reg and struct fpreg
6939 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6940 and alphabsd_fill_fpreg.
6941 * alphabsd-tdep.c: New file.
6942 * alphabsd-tdep.h: New file.
6943 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6944 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6945 alphabsd_supply_fpreg.
6946 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6947 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6948
361d1df0
EC
69492002-05-11 Eric Christopher <echristo@redhat.com>
6950
6951 * mips-tdep.c (mips_double_register_type): Fix thinko.
6952 (mips_single_register_type): Ditto.
6953 * MAINTAINERS: Add self.
6954
92dd7cee
MK
69552002-05-11 Mark Kettenis <kettenis@gnu.org>
6956
6957 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6958 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6959 right thing on architectures with different endianness and/or
6960 integer sizes.
6961
e27da16d
JT
69622002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6963
6964 From Christian Limpach <chris@Pin.LU>
6965 * configure.in: Change sed expression which comments out
6966 NATDEPFILES to also comment out continuation lines.
6967 * configure: Regenerate.
6968
ddde02bd
EZ
69692002-05-10 Elena Zannoni <ezannoni@redhat.com>
6970
6971 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6972 big patch.
6973
1c922164
EZ
69742002-05-10 Elena Zannoni <ezannoni@redhat.com>
6975
6976 * sh-tdep.c: Include correct file.
6977
283150cd
EZ
69782002-05-10 Elena Zannoni <ezannoni@redhat.com>
6979
6980 New support for sh64-elf (sh5) target.
6981
6982 * configure.tgt: For sh64-elf target, default to sh-elf.
6983
6984 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6985 (struct gdbarch_tdep): Add new fields for new registers and ABI
6986 info.
361d1df0 6987
283150cd
EZ
6988 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6989 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6990 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6991 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6992 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6993 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6994 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6995 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6996 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6997 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6998 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6999 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7000 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7001 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7002 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7003 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7004 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7005 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7006 sign_extend, sh64_nofp_frame_init_saved_regs,
7007 sh64_init_extra_frame_info, sh64_get_saved_register,
7008 sh64_extract_struct_value_address, sh64_pop_frame,
7009 sh64_push_arguments, sh64_extract_return_value,
7010 sh64_store_return_value, sh64_show_media_regs,
7011 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7012 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7013 sh_sh64_register_virtual_type,
7014 sh_sh64_register_convert_to_virtual,
7015 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7016 sh64_register_read, sh64_pseudo_register_write,
7017 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7018 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7019 sh64_do_pseudo_register, sh_compact_do_registers_info,
7020 sh64_do_registers_info, sh_gdbarch_init): New functions.
7021
3117ed25
EZ
70222002-05-10 Elena Zannoni <ezannoni@redhat.com>
7023
7024 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7025
2654e6d4
DJ
70262002-05-10 Daniel Jacobowitz <drow@mvista.com>
7027
7028 * linespec.c (decode_line_1): Check for a double quote after
7029 a filename correctly.
7030
9ab3e532
JB
70312002-05-10 Jim Blandy <jimb@redhat.com>
7032
7033 Properly track the size of the current objfile's .debug_line section.
7034 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7035 (DWARF_LINE_SIZE): New macro.
7036 (dwarf2_build_psymtabs_hard): Record the line section's size in
7037 the partial symbol table.
7038 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7039 symbol table.
7040
126fa72d
PS
70412002-05-10 Petr Sorfa <petrs@caldera.com>
7042
7043 * ia64-tdep.c: Handle breakpoints on L instruction type
7044 in MLX instruction bundle by moving the breakpoint to
7045 the third slot (X instruction type) as L holds only data.
7046
1f077a3e
KB
70472002-05-10 Kevin Buettner <kevinb@redhat.com>
7048
7049 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7050 (process_one_symbol): Complain about discarding local symbols
7051 due to a misplaced N_LBRAC entry.
7052
8120c9d5 70532002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
7054
7055 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
7056 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7057 decrease the depth we are at, in the case of templates.
361d1df0 7058
67b2c998
DJ
70592002-05-09 Daniel Jacobowitz <drow@mvista.com>
7060
7061 * mips-tdep.c (mips_float_register_type): New function.
7062 (mips_double_register_type): New function.
7063 (mips_print_register): Use them.
7064 (do_fp_register_row): Likewise.
7065
fd326606
DJ
70662002-05-09 Daniel Jacobowitz <drow@mvista.com>
7067
6609d9af 7068 * signals/signals.c (signals): Remove conditional compilation around
fd326606 7069 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 7070 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 7071
bef35864
MS
70722002-05-09 Michael Snyder <msnyder@redhat.com>
7073
7074 * remote-rdp.c (remote_rdp_can_run): Remove.
7075
c55a3f73
TT
70762002-05-09 Tom Tromey <tromey@redhat.com>
7077
7078 * jv-valprint.c (java_val_print): Handle `char' as a special case
7079 of TYPE_CODE_INT.
7080
b8d5e71d
MS
70812002-05-09 Michael Snyder <msnyder@redhat.com>
7082
7083 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7084 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 7085 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 7086 str r(0123),[sp,#nn].
361d1df0 7087 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
7088 order-independent by placing it in a loop.
7089
e2cd42dd
MS
70902002-05-06 Michael Snyder <msnyder@redhat.com>
7091
7092 * stabsread.c (read_type): Add recognition for new attribute:
7093 "@V;" means that an array type is actually a vector.
7094 This is analogous to the vector flag that's been added to dwarf2.
7095
3ce1502b
MK
70962002-05-09 Mark Kettenis <kettenis@gnu.org>
7097
7098 * i386-tdep.h (i386_abi): New enum.
7099 (struct gdbarch_tdep): Replace os_ident member with abi.
7100 (i386_gdbarch_register_os_abi): New prototype.
7101 * i386-tdep.c (i386_abi_names): New array.
7102 (process_note_abi_tag_sections): Removed.
7103 (process_note_sections): New function.
7104 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7105 (struct i386_abi_handler): New struct.
7106 (i386_abi_handler_list): New variable.
7107 (i386_gdbarch_register_os_abi): New function.
7108 (i386_gdbarch_init): Adapt for the changes given above.
7109
084c156a
DJ
71102002-05-08 Daniel Jacobowitz <drow@mvista.com>
7111
7112 * gregset.h: Say "GNU/Linux".
7113
6599f021
EZ
71142002-05-08 Elena Zannoni <ezannoni@redhat.com>
7115
7116 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7117 (build_gdbtypes): Build builtin_type_v2_float.
7118 (_initialize_gdbtypes): Register new builtin type.
7119
40af4b0c
AC
71202002-05-08 Andrew Cagney <ac131313@redhat.com>
7121
7122 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7123 (clear_gdbarch_swap): New function.
7124 (initialize_non_multiarch): Call.
7125 (gdbarch_update_p): Before calling init(), swap out and clear the
7126 existing architecture.
7127 * gdbarch.c: Regenerate.
7128
4fe84f46
JT
71292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7130
7131 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7132 alphanbsd-tdep.c.
7133
4015edd1
JT
71342002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7135
7136 * sh-nbsd-nat.c: Rename to...
7137 * shnbsd-nat.c: ...this.
7138 * sh-nbsd-tdep.c: Rename to...
7139 * shnbsd-tdep.c: ...this.
7140 * sh-nbsd-tdep.h: Rename to...
7141 * shnbsd-tdep.h: ...this.
7142 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7143 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7144
0e2bd219
RE
71452002-05-08 Richard Earnshaw <rearnsha@arm.com>
7146
7147 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7148 concatenation for command help messages.
7149
13a38d45
JT
71502002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7151
7152 * NEWS: Note new sh*-*-netbsdelf* configuration.
7153 * configure.host: Set gdb_host_cpu to sh for all sh*.
7154 (sh*-*-netbsdelf*): New host.
7155 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7156 (sh*-*-netbsdelf*): New target.
7157 * sh-nbsd-nat.c: New file.
7158 * sh-nbsd-tdep.c: New file.
7159 * sh-nbsd-tdep.h: New file.
7160 * config/sh/nbsd.mh: New file.
7161 * config/sh/nbsd.mt: New file.
7162 * config/sh/nm-nbsd.h: New file.
7163 * config/sh/tm-nbsd.h: New file.
7164
d658f924
JT
71652002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7166
7167 * sh-tdep.c (sh_osabi_names): Declare.
7168 (process_note_abi_tag_sections): New function.
7169 (get_elfosabi): Ditto.
7170 (sh_gdbarch_register_os_abi): Ditto.
7171 (sh_dump_tdep): Ditto.
7172 _initialize_sh_tdep): Use gdbarch_register to register
7173 sh_gdbarch_init and sh_dump_tdep.
7174 * config/sh/tm-sh.h (sh_osabi): Declare.
7175 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7176
848cfffb
AC
71772002-05-07 Andrew Cagney <ac131313@redhat.com>
7178
7179 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7180 (thumb_scan_prologue): Ditto.
7181 (arm_find_callers_reg): Ditto.
7182 (arm_frame_chain): Ditto.
7183 (arm_init_extra_frame_info): Ditto.
7184 (arm_frame_saved_pc): Ditto.
7185 (arm_pop_frame): Ditto.
7186 (arm_push_return_address): New function.
7187 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7188 call_dummy_location, call_dummy_breakpoint_offset_p,
7189 call_dummy_breakpoint_offset, call_dummy_p,
7190 call_dummy_stack_adjust_p, call_dummy_words,
7191 sizeof_call_dummy_words, call_dummy_start_offset,
7192 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7193 call_dummy_address, push_return_address and push_dummy_frame for
7194 generic dummy frames.
7195
e7d717c0
JT
71962002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7197
7198 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7199 size computation for alloca.
7200 (sh_fp_frame_init_saved_regs): Likewise.
7201
7bbcf283
RE
72022002-05-07 Richard Earnshaw <rearnsha@arm.com>
7203
7204 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7205 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7206 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7207 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7208 * remote-rdp.c (remote_rdp_fetch_register): Use
7209 ARM_MAX_REGISTER_RAW_SIZE.
7210 (remote_rdp_store_register): Likewise.
7211
4657573b
ML
72122002-05-07 Michal Ludvig <mludvig@suse.cz>
7213
361d1df0 7214 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7215 added default labels to switch {} statements.
7216 * x86-64-tdep.c: Ditto.
7217 * x86-64-linux-nat.c: Ditto.
7218
010f3b2f
JT
72192002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7220
7221 * solib.h: Protect against multiple inclusion.
7222
debd256d
JB
72232002-05-06 Jim Blandy <jimb@redhat.com>
7224
9ab3e532
JB
7225 Add first preprocessor macro-expansion files.
7226 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7227 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7228 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7229 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7230 (COMMON_OBS): Add macrotab.o, macroexp.o.
7231 (macroexp.o, macrotab.o): New rules.
7232
debd256d
JB
7233 Separate the job of reading the line number info statement program
7234 header (...expialidocious) out into its own function.
7235 * dwarf2read.c (struct line_head, struct filenames, struct
7236 directories): Replace with...
7237 (struct line_header): New structure, containing the full
7238 contents of the statement program header, including the
7239 include directory and file name tables.
7240 (read_file_scope): If we have line number info, instead of just
7241 calling dwarf_decode_lines to do all the work, call
7242 dwarf_decode_line_header first to get a `struct line_header'
7243 containing the data in the statement program header, and then
7244 pass that to dwarf_decode_lines, which will pick up where that
7245 left off. Be sure to clean up the `struct line_header' object.
7246 (dwarf_decode_line_header, free_line_header, add_include_dir,
7247 add_file_name): New functions.
7248 (dwarf_decode_lines): Move all the code to read the statement
7249 program header into dwarf_decode_line_header. Take the line
7250 header it built as the first argument, instead of the offset to
7251 the compilation unit's line number info. Use the new `struct
7252 line_header' type instead of the old structures. No need to do
7253 cleanups here now, since we don't allocate anything.
7254 (dwarf2_statement_list_fits_in_line_number_section,
7255 dwarf2_line_header_too_long): New complaints.
7256
ac3aafc7
EZ
72572002-05-06 Elena Zannoni <ezannoni@redhat.com>
7258
7259 * gdbtypes.c (init_vector_type): New function.
7260 (build_builtin_type_vec128): Simplify the representation of SIMD
7261 registers.
7262 (build_gdbtypes): Initialize new builtin vector types.
7263 (_initialize_gdbtypes): Register new vector types with gdbarch.
7264 (builtin_type_v4_float, builtin_type_v4_int32,
7265 builtin_type_v8_int16, builtin_type_v16_int8,
7266 builtin_type_v2_int32, builtin_type_v4_int16,
7267 builtin_type_v8_int8): New (renamed) SIMD types.
7268
13e49980
MK
72692002-05-06 Mark Kettenis <kettenis@gnu.org>
7270
7271 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7272 (i387_fill_fxsave): Likewise.
7273
997b20b8
AO
72742002-05-05 Alexandre Oliva <aoliva@redhat.com>
7275
7276 * alpha-tdep.c (alpha_extract_return_value): Don't use
7277 non-constant array size in prototype.
7278
535c96ce
AC
72792002-05-04 Andrew Cagney <ac131313@redhat.com>
7280
7281 From Brian Taylor <briant at model dot com>:
7282 * ui-out.c (ui_out_field_core_addr): Use the function
7283 longest_local_hex_string_custom'to format addresses > 32 bits
7284 wide.
7285
7286 * ui-out.c (ui_out_field_core_addr): Update comment.
7287
bedfa57b
AC
72882002-05-04 Andrew Cagney <ac131313@redhat.com>
7289
7290 * stack.c (select_and_print_frame): Make static. Delete the
7291 parameter `level'.
7292 (func_command): Update call.
7293 (select_frame_command): Delete code computing the frame level.
7294 * frame.h (select_and_print_frame): Delete declaration.
7295
f621c63e
AC
72962002-05-04 Andrew Cagney <ac131313@redhat.com>
7297
7298 * sparc-tdep.c (sparc_get_saved_register): Comment why
7299 get_prev_frame call is safe.
7300
0f7d239c
AC
73012002-05-04 Andrew Cagney <ac131313@redhat.com>
7302
7303 * frame.h (select_frame): Delete level parameter.
7304 * stack.c (select_frame): Update. Use frame_relative_level to
7305 obtain the frame's level.
7306 (select_and_print_frame): Update call.
7307 (select_frame_command): Ditto.
7308 (up_silently_base): Ditto.
7309 (down_silently_base): Ditto.
7310 * ocd.c (ocd_start_remote): Ditto.
7311 * remote-rdp.c (remote_rdp_open): Ditto.
7312 * remote-mips.c (mips_initialize): Ditto.
7313 (common_open): Ditto.
7314 * remote-e7000.c (e7000_start_remote): Ditto.
7315 * m3-nat.c (select_thread): Ditto.
7316 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7317 (child_get_current_exception_event): Ditto.
7318 * varobj.c (varobj_create): Ditto.
7319 (varobj_update): Ditto.
7320 (c_value_of_root): Ditto.
7321 * tracepoint.c (finish_tfind_command): Ditto.
7322 * corelow.c (core_open): Ditto.
7323 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7324 * thread.c (info_threads_command): Ditto.
7325 (switch_to_thread): Ditto.
7326 * infrun.c (normal_stop): Ditto.
7327 (restore_selected_frame): Ditto.
7328 (restore_inferior_status): Ditto.
7329 * breakpoint.c (insert_breakpoints): Ditto.
7330 (watchpoint_check): Ditto.
7331 (bpstat_stop_status): Ditto.
7332 (do_enable_breakpoint): Ditto.
7333 * blockframe.c (flush_cached_frames): Ditto.
7334 (reinit_frame_cache): Ditto.
7335
71d6c7b1
AC
73362002-05-04 Andrew Cagney <ac131313@redhat.com>
7337
7338 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7339 maintainer.
7340
cda6c68a
JB
73412002-05-04 Jim Blandy <jimb@redhat.com>
7342
7343 * gdbtypes.c (replace_type): Doc fix.
7344
5c1c87f0
AC
73452002-05-04 Andrew Cagney <ac131313@redhat.com>
7346
7347 * valprint.c (strcat_longest): Delete commented out function.
7348 Update copyright.
7349
cd9bfe15
AC
73502002-05-04 Andrew Cagney <ac131313@redhat.com>
7351
7352 * MAINTAINERS: Mark a29k as deleted.
7353 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7354 Move new configurations to the top.
7355 * configure.tgt: Remove a29k.
7356 * config/a29k/tm-vx29k.h: Delete.
7357 * config/a29k/vx29k.mt: Delete.
7358 * config/a29k/tm-a29k.h: Delete.
7359 * config/a29k/a29k-udi.mt: Delete.
7360 * config/a29k/a29k.mt: Delete.
7361 * a29k-tdep.c: Delete.
7362 * remote-udi.c: Delete.
7363 * remote-mm.c: Delete.
7364 * remote-eb.c: Delete.
7365 * remote-adapt.c: Delete.
7366 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7367 * config/s390/s390x.mt: Ditto.
7368 * config/s390/s390.mt: Ditto.
7369 * config/sparc/sparclynx.mh: Ditto.
7370 * config/sparc/linux.mh: Ditto.
7371 * config/pa/hppaosf.mh: Ditto.
7372 * config/pa/hppabsd.mh: Ditto.
7373 * config/ns32k/nbsd.mt: Ditto.
7374 * config/mips/vr5000.mt: Ditto.
7375 * config/m68k/sun3os4.mh: Ditto.
7376 * config/m68k/nbsd.mt: Ditto.
7377 * config/m68k/m68klynx.mh: Ditto.
7378 * config/m32r/m32r.mt: Ditto.
7379 * config/i386/x86-64linux.mt: Ditto.
7380 * config/i386/nbsdelf.mt: Ditto.
7381 * config/i386/nbsd.mt: Ditto.
7382 * config/i386/i386lynx.mh: Ditto.
7383
bf0c5130
AC
73842002-05-04 Andrew Cagney <ac131313@redhat.com>
7385
7386 * target.c (debug_print_register): New function. Handle oversize
7387 registers.
7388 (debug_to_fetch_registers): Call.
7389 (debug_to_store_registers): Call.
7390
2ae1c2d2
JB
73912002-05-03 Jim Blandy <jimb@redhat.com>
7392
13a393b0
JB
7393 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7394 (read_type): Doc fix.
7395 * gdbtypes.c (replace_type): Doc fix.
7396
2ae1c2d2
JB
7397 * stabsread.c (multiply_defined_struct): New complaint.
7398 (read_struct_type): If the type we were passed isn't empty, or
7399 incomplete, don't read the new struct type into it; complain,
7400 and return the original type unchanged. Take a new `type_code'
7401 argument, which is the type code for the new type.
7402 (read_type): Rather than storing the type's type code here, pass
7403 it as an argument to read_struct_type, and let that take care of
7404 storing it. That way, we don't overwrite the original type code,
7405 so read_struct_type can use it to decide whether we're overwriting
7406 something we shouldn't.
7407 (complain_about_struct_wipeout): New function.
7408
8de9bdc4
AC
74092002-05-03 Andrew Cagney <ac131313@redhat.com>
7410
7411 * gdbarch.sh: Assert that gdbarch is non-NULL.
7412 * gdbarch.c: Regenerate.
7413
f773fdbb
JM
74142002-05-03 Jason Merrill <jason@redhat.com>
7415
7416 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7417 and return NULL.
7418
0e04a514
ML
74192002-05-03 Michal Ludvig <mludvig@suse.cz>
7420
7421 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7422 (x86_64_dwarf2gdb_regno_map_length),
7423 (x86_64_dwarf2_reg_to_regnum): Added.
7424 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7425 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7426 (_initialize_x86_64_tdep): Synced with the change above.
7427 (x86_64_skip_prologue): Reformulated message.
7428
065432a8
PM
74292002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7430
7431 * f-exp.y: Also use new prev_lexptr variable
7432 to improve error reporting. Based on Michael Snyder
7433 2002-04-24 dated patch to c-exp.y.
7434 * jv-exp.y: Likewise.
7435 * m2-exp.y: Likewise.
7436
a3162708
EZ
74372002-05-02 Elena Zannoni <ezannoni@redhat.com>
7438
7439 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7440 we are dealing with vectors.
7441
03620c38
PM
74422002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7443
7444 * config/m68k/tm-nbsd.h: Obvious fix,
7445 correct machine name.
7446
6604db2e
PM
74472002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7448
7449 * p-typeprint.c (pascal_type_print_base): Add support
7450 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7451
0906b739
PM
74522002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7453
7454 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7455 for fondamental pascal 'char' type.
7456
e2625b33
PM
74572002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7458
7459 * p-lang.h (is_pascal_string_type): Declaration changed,
7460 new sixth argument of type char ** added.
361d1df0 7461 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7462 changed. Args length_pos, length_size, string_pos, char_size
7463 can now be NULL. New argument arrayname set to the field
7464 name of the char array. Return value set to char array
7465 field index plus one.
361d1df0 7466 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7467 is_pascal_string_type function.
7468
cf17c188
AC
74692002-05-02 Andrew Cagney <cagney@redhat.com>
7470
7471 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7472 <cagney@redhat.com> change.
7473 * gdbarch.c: Regenerate.
7474
52bca491
AC
74752002-05-02 Andrew Cagney <cagney@redhat.com>
7476
7477 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7478 before probing for a new one. Detect errorenous gdbarch_init
7479 functions.
7480 * gdbarch.c: Regenerate.
7481
d5e72505
AC
74822002-05-01 Andrew Cagney <cagney@redhat.com>
7483
7484 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7485 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7486 * config/v850/tm-v850.h: Ditto. Update copyright.
7487
af566d9f
AC
74882002-04-30 Andrew Cagney <ac131313@redhat.com>
7489
7490 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7491 current_gdbarch.
7492
880d85fa
MS
74932002-04-30 Michael Snyder <msnyder@redhat.com>
7494
94c30b78
MS
7495 * arm-tdep.c: Whitespace clean-ups.
7496 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7497 should have been removed as part of 4/24 change.
7498
6f5987a6
KB
74992002-04-30 Kevin Buettner <kevinb@redhat.com>
7500
7501 * rs6000-tdep.c: Added comment describing how fpscr register
7502 numbers were chosen.
7503
1a113c93
MS
75042002-04-30 Michael Snyder <msnyder@redhat.com>
7505
7506 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7507
9a6f53fe
EZ
75082002-04-29 Elena Zannoni <ezannoni@redhat.com>
7509
7510 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7511 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7512 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7513
11ed25ac
KB
75142002-04-29 Kevin Buettner <kevinb@redhat.com>
7515
7516 From Louis Hamilton <hamilton@redhat.com>:
7517 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7518 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7519 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7520 not bfd-private xcoff data, to determine wordsize.
7521 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7522
ae232405
AC
75232002-04-29 Andrew Cagney <ac131313@redhat.com>
7524
7525 GDB 5.2 released from 5.2 branch.
7526
91fd20f7
ML
75272002-04-29 Michal Ludvig <mludvig@suse.cz>
7528
7529 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7530 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7531 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7532
2dc5091b
EZ
75332002-04-29 Elena Zannoni <ezannoni@redhat.com>
7534
7535 * rs6000-tdep.c (rs6000_extract_return_value,
7536 rs6000_store_return_value): Handle returning vectors.
7537 (rs6000_gdbarch_init): Use
7538 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7539 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7540 New function.
7541 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7542 vectors.
7543 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7544 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7545
2b9848d8
PM
75462002-04-24 Pierre Muller <ics.u-strasbg.fr>
7547
7548 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7549 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7550 with fprintf_unfiltered (gdb_stderr,...).
7551
f8d17dc5
PM
75522002-04-24 Pierre Muller <ics.u-strasbg.fr>
7553
7554 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7555 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7556 Replace fprintf (stderr,...
7557 with fprintf_unfiltered (gdb_stderr,....
7558 * remote-es.c: Likewise.
7559 * remote-os9k.c: Likewise.
7560 * remote-st.c: Likewise.
7561
2f2f1ad1
AS
75622002-04-28 Andreas Schwab <schwab@suse.de>
7563
7564 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7565 linux-proc.o and gcore.o.
7566
b6779aa2
AC
75672002-04-26 Michal Ludvig <mludvig@suse.cz>
7568
7569 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7570 code without frame pointers.
7571
7e57f5f4
AC
75722002-04-26 Andrew Cagney <ac131313@redhat.com>
7573
7574 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7575 ON_STACK is needed.
7576
2ceb85d0
BE
75772002-04-26 Ben Elliston <bje@redhat.com>
7578
7579 * target.c (do_xfer_memory): Correct reference to the new option
7580 "trust-readonly-sections".
7581
f5f8a009
EZ
75822002-04-26 Elena Zannoni <ezannoni@redhat.com>
7583
7584 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7585 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7586 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7587 vectors.
7588 (read_array_type): Record the fact that this array type is really a
7589 vector (i.e. are passed in by value).
7590
5868c862
JT
75912002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7592
7593 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7594 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7595 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7596 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7597 * alpha-linux-tdep.c: Include frame.h.
7598 (alpha_linux_sigcontext_addr): New function.
7599 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7600 alpha_linux_sigcontext_addr.
7601 * alpha-osf1-tdep.c: Include gdbcore.h.
7602 (alpha_osf1_sigcontext_addr): New function.
7603 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7604 alpha_osf1_sigcontext_addr.
7605 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7606 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7607
bfb01f37
AC
76082002-04-26 Andrew Cagney <ac131313@redhat.com>
7609
361d1df0 7610 * stack.c (selected_frame_level):
bfb01f37
AC
7611 (select_frame): Do not set selected_frame_level.
7612 * frame.h (selected_frame_level): Delete declaration.
7613
15813d3f
AC
76142002-04-26 Andrew Cagney <ac131313@redhat.com>
7615
7616 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7617 convert_from_func_ptr-addr when AIX / PowerOpen.
7618
6096c27a
AC
76192002-04-25 Andrew Cagney <ac131313@redhat.com>
7620
7621 * valops.c (hand_function_call): Call
7622 generic_save_call_dummy_addr.
7623 * frame.h (generic_save_call_dummy_addr): Declare.
7624 * blockframe.c (struct dummy_frame): Add fields call_lo and
7625 call_hi.
7626 (generic_find_dummy_frame): Check for PC in range call_lo to
7627 call_hi instead of entry_point_address.
7628 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7629 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7630 (generic_save_call_dummy_addr): New function.
7631
f510d44e
DM
76322002-04-24 David S. Miller <davem@redhat.com>
7633
7634 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7635 sparc_skip_prologue.
7636 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7637 information to find prologue when possible.
7638 (sparc_prologue_frameless_p): Call examine_prologue directly.
7639 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7640 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7641 second argument.
7642 (SKIP_PROLOGUE): Likewise.
7643
15d72a92
JT
76442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7647 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7648 indicate that the condition it was testing is always true.
7649 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7650 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7651 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7652
accc6d1f
JT
76532002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7654
7655 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7656 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7657 tdep->jb_pc and tdep->jb_elt_size.
7658 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7659 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7660 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7661 * alpha-nat.c (get_longjmp_target): Remove.
7662 (JB_ELEMENT_SIZE): Ditto.
7663 (JB_PC): Ditto.
7664 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7665 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7666 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7667 to alpha_get_longjmp_target.
7668 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7669 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7670 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7671
1bfdc549
AC
76722002-04-25 Andrew Cagney <ac131313@redhat.com>
7673
7674 * README: Update to GDB 5.2.
7675
1bd316f0
AC
76762002-04-25 Andrew Cagney <ac131313@redhat.com>
7677
7678 * gdbarch.sh (LC_ALL): Set to `c'.
7679
2e5ff58c
TR
76802002-04-25 Theodore A. Roth <troth@verinet.com>
7681
7682 * avr-tdep.c: Ran through gdb_indent.sh.
7683
e33ce519
TR
76842002-04-25 Theodore A. Roth <troth@verinet.com>
7685
7686 * MAINTAINERS: Add myself as AVR maintainer.
7687 * NEWS: Note new target avr.
7688
8818c391
TR
76892002-04-25 Theodore A. Roth <troth@verinet.com>
7690
7691 * Makefile.in: Add support for AVR target.
7692 * configure.tgt: Add support for AVR target.
7693 * avr-tdep.c: New file
7694 * config/avr/avr.mt: New file.
7695
79509c2d
TR
76962002-04-25 Theodore A. Roth <troth@verinet.com>
7697
7698 * MAINTAINERS: Add myself to write-after-approval.
7699
dac8068e
PM
77002002-04-24 Pierre Muller <ics.u-strasbg.fr>
7701
7702 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7703 with fprintf_unfiltered (gdb_stderr,....
7704
25bf3106
PM
77052002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7706
7707 Fix PR gdb/508.
7708 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7709
24467a86
PM
77102002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7711
7712 * p-exp.y: Also use new prev_lexptr variable
7713 to improve error reporting. Based on Michael Snyder
7714 2002-04-24 dated patch to c-exp.y.
7715
95b80706
JT
77162002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7717
7718 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7719 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7720 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7721 to 0.
7722 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7723 and struct value.
7724 (FUNCTION_START_OFFSET): Remove.
7725 (BREAKPOINT): Ditto.
7726
e90cc612
JT
77272002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7728
7729 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7730 * NEWS: Ditto.
7731
6c72f9f9
JT
77322002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7733
7734 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7735 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7736 alpha_linux_pc_in_sigtramp.
7737 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7738 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7739 alpha_osf1_pc_in_sigtramp.
7740 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7741 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7742 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7743 alphafbsd_pc_in_sigtramp.
7744 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7745 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7746 alphanbsd_pc_in_sigtramp.
7747 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7748 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7749
5e4f3379
JT
77502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7751
7752 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7753
da8ca43d
JT
77542002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7757 alphanbsd-tdep.c.
7758 (alphanbsd-nat.o): New dependency list.
7759 (alphanbsd-tdep.o): Ditto.
7760 * NEWS: Note new native NetBSD/alpha configuration.
7761 * alphanbsd-nat.c: New file.
7762 * alphanbsd-tdep.c: Ditto.
7763 * configure.host (alpha*-*-netbsd*): New host.
7764 * configure.tgt (alpha*-*-netbsd*): New target.
7765 * config/alpha/nbsd.mh: New file.
7766 * config/alpha/nbsd.mt: Ditto.
7767 * config/alpha/nm-nbsd.h: Ditto.
7768 * config/alpha/tm-nbsd.h: Ditto.
7769
36a6271d
JT
77702002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7771
7772 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7773 (alpha-osf1-tdep.o): New dependency list.
7774 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7775 and skip_sigtramp_frame members.
7776 * alpha-linux-tdep.c: Include gdbcore.h.
7777 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7778 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7779 * alpha-osf1-tdep.c: New file.
7780 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7781 alpha-osf1-dep.c.
7782 (alpha_frame_past_sigtramp_frame): New function.
7783 (alpha_dynamic_sigtramp_offset): Ditto.
7784 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7785 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7786 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7787 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7788 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7789 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7790 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7791 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7792 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7793 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7794 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7795 to find_solib_trampoline_target.
7796 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7797 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7798 (SKIP_TRAMPOLINE_CODE): Remove.
7799 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7800 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7801 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7802 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7803 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7804 (PROC_SIGTRAMP_MAGIC): Ditto.
7805 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7806 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7807 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7808 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7809 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7810
2f4bc57b
JT
78112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * NEWS: Note that Alpha targets are now multi-arch.
7814
665132f9
MS
78152002-04-24 Michael Snyder <msnyder@redhat.com>
7816
7817 * parser-defs.h (prev_lexptr): New external variable.
7818 * parse.c (parse_exp_1): Set prev_lexptr to null before
7819 calling the language-specific parser.
7820 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7821 (yyerror): Use prev_lexptr in error reporting.
7822
32872fa7
DJ
78232002-04-24 Daniel Jacobowitz <drow@mvista.com>
7824
7825 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7826 * gregset.h: If FILL_FPXREGSET is defined, provide
7827 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7828 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7829 is defined, call fill_fpxregset.
7830
57e76fac
MS
78312002-04-24 Roland McGrath <roland@frob.com>
7832
7833 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7834 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7835 (supply_gregset, supply_fpregset): New functions.
7836
7837 * gnu-nat.c (gnu_find_memory_regions): New function.
7838 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7839 (gnu_xfer_memory): Add a cast.
7840
f43845b3
MS
78412002-04-24 Michael Snyder <msnyder@redhat.com>
7842
361d1df0 7843 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7844 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7845 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7846 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7847 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7848 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7849
a0abec03
AC
7850Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7851
7852 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7853 NUM_PSEUDO_REGS can be used.
7854
d7bd68ca
AC
78552002-04-24 Andrew Cagney <ac131313@redhat.com>
7856
7857 * arch-utils.h: Update copyright.
7858
7859 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7860 * gdbarch.h, gdbarch.c: Re-generate.
7861
7862 * inferior.h (IN_SIGTRAMP): Delete definition.
7863 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7864 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7865
7866 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7867 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7868 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7869 (find_proc_framesize): Ditto.
7870 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7871 (alpha_init_extra_frame_info): Ditto.
7872 * infrun.c (handle_inferior_event): Ditto.
7873 (handle_inferior_event): Ditto.
7874 (check_sigtramp2): Ditto.
7875 * blockframe.c (create_new_frame): Ditto.
7876 (get_prev_frame): Ditto.
7877 * ppc-linux-tdep.c: Update comments.
7878 * i386-linux-tdep.c: Update comments.
7879 * breakpoint.c (bpstat_what): Update comment.
7880
4867e41e
DM
78812002-04-24 David S. Miller <davem@redhat.com>
7882
21d83aa5
DM
7883 * i960-tdep.c (register_in_window_p): New function.
7884 (i960_find_saved_register): Use it instead of
7885 REGISTER_IN_WINDOW_P.
7886 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7887
4867e41e
DM
7888 * symtab.h (find_stab_function_addr): Kill extern.
7889 * minsyms.c (find_stab_function_addr): Remove from here...
7890 * dbxread.c: ... to here, and mark it static.
7891
69cdf6a2
DM
78922002-04-20 David S. Miller <davem@redhat.com>
7893
7894 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7895 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7896
5a595886
DM
78972002-04-21 David S. Miller <davem@redhat.com>
7898
7899 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7900 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7901 (vx_write_register): Likewise.
7902
1da1a192
JB
79032002-04-23 J. Brobecker <brobecker@gnat.com>
7904
7905 * source.c (is_regular_file): New function.
7906 (openp): Check wether file to open is a regular file
7907 to avoid opening directories.
7908
baa6f10b
JT
79092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7910
7911 * findvar.c (extract_signed_integer): Cast printf argument
7912 to suppress format warning.
7913 (extract_unsigned_integer): Likewise.
7914 * infcmd.c (registers_info): Likewise.
7915 * top.c (get_prompt_1): Likewise.
7916 * valops.c (value_assign): Likewise.
7917 * valprint.c (print_decimal): Likewise.
7918
b2c4da81
L
79192002-04-22 H.J. Lu (hjl@gnu.org)
7920
7921 * c-exp.y (typebase): Support
361d1df0 7922
b2c4da81
L
7923 [long|long long|short] [signed|unsigned] [int|]
7924
7925 and
7926
7927 signed [long|long long|short] int
7928
f267bd6a
JT
79292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7930
7931 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7932 and vax-tdep.h.
7933 * vax-tdep.h: New file.
7934 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7935 Make several routines static.
7936 (vax_get_saved_register): New function.
7937 (vax_gdbarch_init): New function.
7938 (_initialize_vax_tdep): Register vax_gdbarch_init.
7939 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7940 Remove macros now under the control of gdbarch.
7941
da3c6d4a
MS
79422002-04-22 Michael Snyder <msnyder@redhat.com>
7943
11d3b27d
MS
7944 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7945 Some whitespace and coding standards tweaks.
da3c6d4a 7946
a33f7558
JT
79472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * vax-tdep.c: Include regcache.h.
7950 (vax_call_dummy_words): New.
7951 (sizeof_vax_call_dummy_words): New.
7952 (vax_fix_call_dummy): New function.
7953 (vax_saved_pc_after_call): Ditto.
7954 * config/vax/tm-vax.h: Don't include regcache.h.
7955 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7956 (CALL_DUMMY): Remove.
7957 (CALL_DUMMY_WORDS): Define.
7958 (SIZEOF_CALL_DUMMY_WORDS): Define.
7959 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7960
47a73475
MS
79612002-04-18 Michael Snyder <msnyder@redhat.com>
7962
7963 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7964
52efde73
JT
79652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7966
7967 * vax-tdep.c (vax_frame_chain): New function.
7968 (vax_push_dummy_frame): Ditto.
7969 (vax_pop_frame): Ditto.
7970 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7971 (FRAMELESS_FUNCTION_INVOCATION): Use
7972 generic_frameless_function_invocation_not.
7973 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7974 (POP_FRAME): Use vax_pop_frame.
7975
ea74468c
JT
79762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7977
7978 * vax-tdep.c (vax_store_struct_return): New function.
7979 (vax_extract_return_value): Ditto.
7980 (vax_store_return_value): Ditto.
7981 (vax_extract_struct_value_address): Ditto.
7982 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7983 vax_store_struct_return.
7984 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7985 (STORE_RETURN_VALUE): Use vax_store_return_value.
7986 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7987
5516aa92
JT
79882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7989
7990 * vax-tdep.c (vax_frame_saved_pc): New function.
7991 (vax_frame_args_address_correct): Ditto.
7992 (vax_frame_args_address): Ditto.
7993 (vax_frame_locals_address): Ditto.
7994 (vax_frame_num_args): Move code to be in proximity to
7995 other frame-related functions.
7996 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7997 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7998 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7999 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8000 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8001
36af0b35
L
80022002-04-22 H.J. Lu (hjl@gnu.org)
8003
8004 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8005 includedir.
8006
ab62c900
JT
80072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8008
8009 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8010 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8011 (FRAME_INIT_SAVED_REGS): New macro.
8012
7232b100
JT
80132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8014
8015 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8016
b70d2aee
JT
80172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8018
8019 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8020 where needed.
8021 (fetch_osf_core_registers): Likewise.
8022 (supply_gregset): Likewise.
8023
a0e8a2d1 80242002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 8025
a0e8a2d1
JB
8026 * symfile.h (get_section_index): Define.
8027 * symfile.c (get_section_index): New function.
8028 * mdebugread.c (SC_IS_SBSS): New macro.
8029 (SC_IS_BSS): Return true for the scBss storage class only, as
8030 the scSBss storage class refers to the .sbss section.
8031 (parse_partial_symbols): Discard the symbols which associated
8032 section does not exist.
8033 Make sure to use the .sbss section index for symbols which
8034 storage class is scBss, rather than using the .bss section index.
8035
51eb8b08
JT
80362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8037
8038 * vax-tdep.c: Update copyright years.
8039 (vax_register_name): New function.
8040 (vax_register_byte): Ditto.
8041 (vax_register_raw_size): Ditto.
8042 (vax_register_virtual_size): Ditto.
8043 (vax_register_virtual_type): Ditto.
8044 * config/vax/tm-vax.h: Update copyright years.
8045 (REGISTER_NAMES): Remove.
8046 (REGISTER_NAME): Define.
8047 (REGISTER_BYTE): Use vax_register_byte.
8048 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8049 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8050 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8051
6cc1c0a8
AC
80522002-04-21 Andrew Cagney <ac131313@redhat.com>
8053
8054 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8055 declaration
8056 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8057
9319a2fe
DM
80582002-04-21 David S. Miller <davem@redhat.com>
8059
8060 * arch-utils.c (generic_prologue_frameless_p): Kill
8061 SKIP_PROLOGUE_FRAMELESS_P code.
8062 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8063 references.
8064 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8065 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8066 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8067 references.
8068 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8069 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8070 (sparc_gdbarch_init): Pass it to
8071 set_gdbarch_prologue_frameless_p.
a0e8a2d1 8072
e9ed6d01
JT
80732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8074
8075 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8076 (alphabsd-nat.o): New dependency list.
8077
36012033
JT
80782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8081 alphafbsd-tdep.c.
8082 (alpha-linux-tdep.o): New dependency list.
8083 (alphafbsd-tdep.o): Likewise.
8084
3379287a
JT
80852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8086
8087 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8088 to here...
8089 * alpha-tdep.c: ...from here.
8090 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8091
4bcbd6cb
JT
80922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8093
8094 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8095 prototype from here...
8096 * alpha-tdep.h: ...to here.
8097
b31da25e
AC
80982002-04-21 Andrew Cagney <ac131313@redhat.com>
8099
8100 * frame.h (selected_frame_level): Document as deprecated.
8101 (frame_relative_level): Declare.
8102 * stack.c (frame_relative_level): New function.
8103 (selected_frame_level): Document as deprecated.
8104 (select_frame): Do not set the selected_frame_level.
8105
8106 * stack.c (frame_info, record_selected_frame): Update.
8107 (frame_command, current_frame_command): Update.
8108 (up_silently_base, up_command, down_silently_base): Update.
8109 (down_command): Update.
8110 * inflow.c (kill_command): Update.
8111 * tracepoint.c (finish_tfind_command): Update.
8112 * corelow.c (core_open): Update.
8113 * thread.c (info_threads_command): Update.
8114 (do_captured_thread_select): Update.
8115 * infcmd.c (finish_command): Update.
8116 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8117
9c1d6fe5
JT
81182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8119
8120 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8121
ab89facf
AC
81222002-04-21 Andrew Cagney <ac131313@redhat.com>
8123
8124 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8125 type const.
8126
82a4efa1
JT
81272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8128
8129 * alphafbsd-tdep.c: Update copyright years. Include
8130 alpha-tdep.h.
8131 (alphafbsd_use_struct_convention): Make static.
8132 (alphafbsd_init_abi): New function.
8133 (_initialize_alphafbsd_tdep): New function.
8134 * config/alpha/tm-fbsd.h: Update copyright years.
8135 (USE_STRUCT_CONVENTION): Remove.
8136
44dffaac
JT
81372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8138
8139 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8140 an Alpha ABI variant.
8141 (alpha_abi_handler_list): Declare.
8142 (alpha_gdbarch_register_os_abi): New function.
8143 (alpha_gdbarch_init): Give registered ABI variant handlers a
8144 chance to tweak the gdbarch once we have set up defaults.
8145 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8146
65585be4
JT
81472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8148
8149 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8150 to standard_coerce_float_to_double.
8151 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8152
d9b023cc
JT
81532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8154
8155 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8156 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8157 from gdbarch_tdep rather than a constant.
8158 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8159 the default text address for all Alpha Unix ABIs.
8160 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8161 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8162
dc129d82
JT
81632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8164
8165 * alpha-tdep.h: New file. Includes several Alpha target constants
8166 taken from...
8167 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8168 let gdbarch deal with.
8169 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8170 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8171 to dependency list.
8172 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8173 Alpha target register names.
8174 * alphabsd-nat.c: Likewise.
8175 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8176 Alpha target register names. Make serveral routines static.
8177 (alpha_get_saved_register): New function.
8178 (alpha_abi_names): New.
8179 (process_note_abi_tag_sections): New function.
8180 (get_elfosabi): New function.
8181 (alpha_gdbarch_init): New function.
8182 (alpha_dump_tdep): New function.
8183 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8184
d49d1e0a
AC
81852002-04-21 Andrew Cagney <ac131313@redhat.com>
8186
8187 * frame.c (find_saved_register): Delete #ifdef
8188 HAVE_REGISTER_WINDOWS code.
8189 * config/sparc/tm-sparc.h: Update comments.
8190 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8191
92e8c9ed
AC
81922002-04-21 Andrew Cagney <ac131313@redhat.com>
8193
8194 * i960-tdep.c (i960_find_saved_register): New function.
8195 (i960_get_saved_register): New function.
8196 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8197 (i960_get_saved_register): Declare.
8198 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8199
e1925118
DM
82002002-04-20 David S. Miller <davem@redhat.com>
8201
8202 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8203
29673b29
AC
82042002-04-20 Andrew Cagney <ac131313@redhat.com>
8205
8206 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8207 instead of NUM_PSEUDO_REGS.
8208
6c86dcd5
DM
82092002-04-20 David S. Miller <davem@redhat.com>
8210
8211 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8212 GDB_MULTI_ARCH_PARTIAL
8213 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8214 define, let tm-sp64.h do it.
8215
aa40ec90
JT
82162002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8217
8218 * frame.c (find_saved_register): Avoid a NULL pointer
8219 dereference and actually walk the frame list.
8220
0f79675b
AC
82212002-04-20 Andrew Cagney <ac131313@redhat.com>
8222
8223 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8224 sorted in most most-recent-used order. Document.
8225 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8226
f91305dd 82272002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8228
8229 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8230 instead of ->prev.
8231 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8232 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8233 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8234 instead of ->prev.
8235
73d322b1
EZ
82362002-04-19 Elena Zannoni <ezannoni@redhat.com>
8237
8238 Fix PR gdb/471.
8239 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8240 (build_builtin_type_vec128): Ditto.
8241 (append_composite_type_field): Fix calculation of type length in
8242 union case.
8243
ccd9a834
EZ
82442002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8245
8246 * config/djgpp/README: Update.
8247
8248 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8249 compiler warnings.
8250
a57f9e49
JT
82512002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8252
8253 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8254 (alpha_setup_arbitrary_frame): ...to this.
8255 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8256 for alpha_setup_arbitrary_frame.
8257
f4f9705a
AC
82582002-04-18 Andrew Cagney <cagney@redhat.com>
8259
8260 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8261 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8262
f4f9705a
AC
8263 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8264 * target.h (memory_breakpoint_from_pc): Update declaration.
8265 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8266
8267 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8268 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8269 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8270 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8271 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8272 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8273 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8274 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8275 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8276 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8277 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8278 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8279
8280 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8281 const pointer.
8282 * monitor.c (monitor_insert_breakpoint): Ditto.
8283 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8284
8285 * config/mcore/tm-mcore.h: Update copyright.
8286 * mem-break.c: Ditto.
8287 * xstormy16-tdep.c: Ditto.
8288
29f319b8
PM
82892002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8290
8291 * p-exp.y: Add precedence rule for '^' token.
8292 This removes the shift/reduce conflicts.
8293 Remove the comment concerning these shift/reduce conflicts.
8294
ebeac11a
EZ
82952002-04-18 Elena Zannoni <ezannoni@redhat.com>
8296
8297 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8298 (registers_powerpc_nofp): New register set for processors
8299 without floating point unit.
8300
27c31547
DM
83012002-04-18 David S. Miller <davem@redhat.com>
8302
8303 * MAINTAINERS: Add myself to write-after-approval.
8304
47a73475
MS
83052002-04-17 Michael Snyder <msnyder@redhat.com>
8306
8307 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8308
953836b2
AC
83092002-04-17 Andrew Cagney <ac131313@redhat.com>
8310
8311 * rs6000-tdep.c (frame_initial_stack_address): Use
8312 frame_register_read to read the alloca_reg.
8313
8b0d4340
AC
83142002-04-17 Andrew Cagney <ac131313@redhat.com>
8315
8316 * frame.c (find_saved_register): Find saved registers in the next
8317 not prev frame.
8318 Fix PR gdb/365.
8319
d8864532
AC
83202002-04-17 Andrew Cagney <ac131313@redhat.com>
8321
8322 * gdbarch.sh (LANG): Set to ``c''.
8323
36cc83a3 83242002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8325
36cc83a3 8326 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8327
2f4150cc 83282002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8329
8330 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8331 Update copyright.
8332
628703c6 8333 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8334 Also fix PR gdb/391.
361d1df0 8335
56157b4a
AC
83362002-04-14 Andrew Cagney <ac131313@redhat.com>
8337
8338 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8339 * aclocal.m4, configure: Re-generate.
8340 Fix PR gdb/391.
361d1df0 8341
6d1e3329
EZ
83422002-04-14 Elena Zannoni <ezannoni@redhat.com>
8343
8344 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8345 instead of tm_print_insn.
8346
cb06fa07
EZ
83472002-04-14 Elena Zannoni <ezannoni@redhat.com>
8348
8349 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8350
f208ba17
AC
83512002-04-14 Andrew Cagney <ac131313@redhat.com>
8352
8353 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8354 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8355 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8356
20f01a46
DH
83572002-04-12 Don Howard <dhoward@redhat.com>
8358
8359 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8360 max_user_call_depth.
8361 (init_cmd_lists): Initialize the new value;
8362 * cli/cli-script.c (execute_user_command): Limit the call depth of
8363 user defined commands. This avoids a core-dump when user commands
8364 are infinitly recursive.
8365
a88376a3
KB
83662002-04-12 Kevin Buettner <kevinb@redhat.com>
8367
8368 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8369 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8370 from tdep struct instead of DEFAULT_LR_SAVE.
8371 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8372 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8373 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8374
f2172603
MS
83752002-04-12 Michael Snyder <msnyder@redhat.com>
8376
694f61fb 8377 * Remote.c: Spelling fix.
20fe79c8
MS
8378 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8379 If no symbol found for "sbrk", try "_sbrk".
8380 (make_output_phdrs): Use bfd_section_name.
8381 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8382 * eval.c: Indentation fix-ups.
169a7369
MS
8383 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8384 in case it gets applied to an address that is already
8385 in the instruction space.
de74f71f
MS
8386 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8387 * symfile.c: Fix indentation, long lines.
f2172603
MS
8388 * source.c: White space fix-up.
8389
cda5a58a
AC
83902002-04-12 Andrew Cagney <cagney@redhat.com>
8391
8392 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8393 * frame.c (frame_register_read): New function. Return non-zero on
8394 success.
8395 (read_relative_register_raw_bytes_for_frame): Delete.
8396 (read_relative_register_raw_bytes): Delete.
8397 * frame.h (frame_register_read): Declare.
8398 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8399 * sh-tdep.c: Ditto.
8400 * infcmd.c (do_registers_info): Ditto.
8401 * hppa-tdep.c: Ditto.
8402 * rs6000-tdep.c: Ditto.
8403 * h8500-tdep.c: Ditto.
8404 * mips-tdep.c: Ditto.
8405 * h8300-tdep.c: Ditto.
8406 * z8k-tdep.c: Ditto.
8407
2ea5f656
KB
84082002-04-12 Kevin Buettner <kevinb@redhat.com>
8409
8410 From Jimi X <jimix@watson.ibm.com>:
8411 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8412 64-bit SysV ABI.
8413
27b15785
KB
84142002-04-12 Kevin Buettner <kevinb@redhat.com>
8415
8416 From Jimi X <jimix@watson.ibm.com>:
8417 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8418 bfd info.
8419
5d57ee30
KB
84202002-04-12 Kevin Buettner <kevinb@redhat.com>
8421
8422 From Jimi X <jimix@watson.ibm.com>:
8423 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8424 register sets for these processor variants.
8425
bc1e36ca
DJ
84262002-04-11 Daniel Jacobowitz <drow@mvista.com>
8427
bc1e36ca
DJ
8428 * regformats/reg-ppc.dat: Support FPSCR.
8429
e3f36dbd
KB
84302002-04-11 Kevin Buettner <kevinb@redhat.com>
8431
8432 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8433 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8434 Add fpscr as an invalid/unfetchable register.
8435 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8436 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8437 (fill_fpregset): Add support for register fpscr.
8438 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8439 (fill_gregset): Account for the fact that register ``mq'' might
8440 not exist.
8441 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8442 (registers_power): Add fpscr to register set at slot 71.
8443 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8444 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8445
943c9c25
MS
84462002-04-11 Michael Snyder <msnyder@redhat.com>
8447
8448 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8449 * configure: Regenerate.
8450 * config.in: Regenerate.
8451 * acconfig.h: Add define for _SYSCALL32.
8452 * core-sol2.c: Remove #define _SYSCALL32.
8453 * solib-legacy.c: Remove #define _SYSCALL32.
8454
d8c0a2e7
AC
84552002-04-10 Andrew Cagney <ac131313@redhat.com>
8456
8457 * stack.c (select_frame): Cleanup internal error message, do not
8458 use %p.
8459
7cc19214
AC
84602002-04-10 Andrew Cagney <ac131313@redhat.com>
8461
8462 * stack.c (select_frame): Check that selected_frame and the
8463 specified level are as expected.
8464 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8465 Update copyright.
8466 * frame.h (struct frame_info): Add field `level'. Update
8467 copyright.
8468 Work-in-progress PR gdb/464.
8469
67a2b77e
AC
84702002-04-10 Andrew Cagney <ac131313@redhat.com>
8471
8472 * maint.c (maint_print_section_info): Rename print_section_info.
8473 (print_bfd_section_info, print_objfile_section_info): Update.
8474 * inferior.h (struct gdbarch): Add opaque declaration.
8475 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8476 * gdbarch.h: Regenerate.
8477
8cfda98c
ML
84782002-04-10 Michal Ludvig <mludvig@suse.cz>
8479
8480 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8481 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8482 (kernel_u_size): Added.
8483 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8484 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8485
ca439ad2 84862002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8487
ca439ad2
JI
8488 * valarith.c (find_size_for_pointer_math): New function, either returns
8489 the size for a pointer's target, returns 1 for void *, or errors for
8490 incomplete types.
8491 (value_add, value_sub): use find_size_for_pointer_math.
8492
2f2893d9
DJ
84932002-04-09 Daniel Jacobowitz <drow@mvista.com>
8494
8495 * linux-low.c (linux_look_up_symbols): New hook.
8496 (linux_target_ops): Add linux_look_up_symbols.
8497 * remote-utils.c (decode_address): New function.
8498 (look_up_one_symbol): New function.
8499 * server.c (handle_query): Call target look_up_symbols hook.
8500 * server.h (look_up_one_symbol): Add prototype.
8501 * target.h (struct target_ops): Add look_up_symbols hook.
8502
96cb11df
AC
85032002-04-09 Andrew Cagney <ac131313@redhat.com>
8504
8505 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8506 override FP_REGNUM with frame->fp. Update copyright.
8507 * parse.c (num_std_regs, std_regs): Delete.
8508 (target_map_name_to_register): Do not search std_regs. Update
8509 function description.
8510 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8511 declarations. Update copyright.
8512 Fix PR gdb/251.
361d1df0 8513
97658e92
DJ
85142002-04-09 Daniel Jacobowitz <drow@mvista.com>
8515
8516 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8517 after the last symbol in a block.
8518
6044e3eb
PM
85192002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8520
8521 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8522 is non zero as a found symbol.
8523
0406ec40
AC
85242002-04-08 Andrew Cagney <ac131313@redhat.com>
8525
8526 * findvar.c: Include "builtin-regs.h".
8527 (value_of_register): Call value_of_builtin_reg when applicable.
8528 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8529 (target_map_name_to_register): Call
8530 builtin_reg_map_name_to_regnum.
8531 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8532 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8533 (builtin_regs_h): Define.
8534 (builtin-regs.o): New target.
8535 (findvar.o): Add $(builtin_regs_h).
8536 * builtin-regs.c, builtin-regs.h: New files.
8537 * std-regs.c: New file.
8538 Partial fix for PR gdb/251.
8539
56a6dfb9
KB
85402002-04-08 Kevin Buettner <kevinb@redhat.com>
8541
8542 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8543 it's no longer required.
8544
3a808432
AC
85452002-04-08 Andrew Cagney <ac131313@redhat.com>
8546
8547 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8548
7c40d541
KB
85492002-04-08 Kevin Buettner <kevinb@redhat.com>
8550
8551 From Jimi X <jimix@watson.ibm.com>:
8552 * rs6000-tdep.c (rs6000_software_single_step): Use
8553 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8554 and size. Use target_insert_breakpoint() and
8555 target_remove_breakpoint() to insert and remove breakpoints
8556 instead of explicit memory reads and writes.
8557
cc9836a8
KB
85582002-04-08 Kevin Buettner <kevinb@redhat.com>
8559
8560 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8561 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8562 ELF_OBJECT_FORMAT ifdef.
8563
7495d1dc
KB
85642002-04-08 Kevin Buettner <kevinb@redhat.com>
8565
8566 From Jimi X <jimix@watson.ibm.com>:
8567 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8568
4288e836
KB
85692002-04-08 Kevin Buettner <kevinb@redhat.com>
8570
8571 From Jimi X <jimix@watson.ibm.com>:
8572 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8573 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8574
a4e4e501
MK
85752002-04-07 Mark Kettenis <kettenis@gnu.org>
8576
8577 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8578 s/asprintf/xasprintf/.
8579 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8580
006defba
AC
85812002-04-07 Andrew Cagney <ac131313@redhat.com>
8582
8583 I believe Jeff Law denies responsability for this one:
8584 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8585 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8586 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8587 Work-around for PR gdb/366.
8588
7aa83cac
EZ
85892002-04-07 Elena Zannoni <ezannoni@redhat.com>
8590
8591 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8592 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8593 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8594
cf1fcca1
EZ
85952002-04-07 Elena Zannoni <ezannoni@redhat.com>
8596
8597 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8598 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8599 information.
8600
3f289e6f
AC
86012002-04-07 Andrew Cagney <ac131313@redhat.com>
8602
8603 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8604 maintainer.
8605
129188f6
AC
86062002-04-07 Andrew Cagney <ac131313@redhat.com>
8607
8608 * README (Reporting Bugs in GDB): Document the bug web page as the
8609 prefered way of submitting bugs.
8610 Fix PR gdb/402.
8611
1200cd6e
AC
86122002-04-06 Andrew Cagney <ac131313@redhat.com>
8613
8614 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8615 -1. Update comment.
8616 * gdbarch.h, gdbarch.c: Re-generate.
8617
2853c33c
AS
86182002-04-07 Andreas Schwab <schwab@suse.de>
8619
8620 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8621 buffer to regcache_collect.
8622
c2169756
AC
86232002-04-06 Andrew Cagney <ac131313@redhat.com>
8624
8625 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8626 * gdbarch.c, gdbarch.h: Re-generate.
8627
25f1b008
AC
86282002-04-06 Andrew Cagney <ac131313@redhat.com>
8629
8630 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8631 declaration. Fix -Werror.
8632
59263426
DJ
86332002-04-05 Daniel Jacobowitz <drow@mvista.com>
8634
8635 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8636 * gdbarch.c: Regenerate.
8637
f5db4da3
MS
86382002-04-05 Michael Snyder <msnyder@redhat.com>
8639
80f8a6eb
MS
8640 * breakpoint.c (clear_command): Rewrite middle section to
8641 combine two loops with identical control conditions.
8642 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8643 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8644
ad3dcc5c
L
86452002-04-05 H.J. Lu (hjl@gnu.org)
8646
8647 * solib-svr4.c (bkpt_names): Add "__start".
8648
f32e7a74
AC
86492002-04-04 Andrew Cagney <ac131313@redhat.com>
8650
8651 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8652 as test for 64 bit target.
8653
8227c0ff
AC
86542002-04-05 Andrew Cagney <ac131313@redhat.com>
8655
8656 * h8500-tdep.c (h8500_write_fp): Delete function.
8657 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8658 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8659 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8661 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8662 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8663 (s390_write_fp):
8664 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8665 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8666 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8667 (d10v_write_fp): Delete function.
8668 * inferior.h (write_fp, generic_target_write_fp): Delete
8669 declarations.
8670 * regcache.c (generic_target_write_fp): Delete function.
8671 (write_fp): Delete function.
8672 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8673 * gdbarch.h, gdbarch.c: Regenerate.
8674 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8675 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8676 (sparc64_write_fp): Delete declaration.
8677 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8678 (h8500_write_fp): Delete declaration.
8679
2757dd86
AC
86802002-04-04 Andrew Cagney <ac131313@redhat.com>
8681
8682 * sparc-tdep.c (sparc64_write_fp): Delete.
8683 (sparc_push_dummy_frame): Replace write_fp call with code to store
8684 the FP directly.
8685 (sparc_gdbarch_init): Do not initialize write_fp.
8686
c69255e1
KB
86872002-04-05 Kevin Buettner <kevinb@redhat.com>
8688
8689 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8690 clause.
8691
ae767bfb
JB
86922002-03-29 Jim Blandy <jimb@redhat.com>
8693
8694 * stack.c (get_selected_block): Add new argument `addr_in_block',
8695 used to return the exact code address we used to select the block,
8696 not just the block.
8697 * blockframe.c (get_frame_block, get_current_block): Same.
8698 * frame.h (get_frame_block, get_current_block,
8699 get_selected_block): Update declarations.
8700 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8701 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8702
84d2ac95
MS
87032002-04-05 Michael Snyder <msnyder@redhat.com>
8704
8705 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8706 warning message.
8707
596aa3bf
JB
87082002-04-05 J. Brobecker <brobecker@gnat.com>
8709
8710 * utils.c (xfullpath): New function.
8711 * defs.h (xfullpath): Add declaration.
8712 * source.c (openp): Use xfullpath in place of gdb_realpath to
8713 avoid resolving the basename part of filenames when the
8714 associated file is a symbolic link. This fixes a potential
8715 inconsistency between the filenames known to GDB and the
8716 filenames it prints in the annotations.
8717 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8718 to be able to match a filename with either the real filename, or
8719 the name of any symbolic link to this file.
8720 (lookup_partial_symtab): Ditto.
8721
c02f5703
MS
87222002-04-04 Michael Snyder <msnyder@redhat.com>
8723
8724 * breakpoint.c: Add support for hardware breakpoints in overlays.
8725 (overlay_events_enabled): New state variable.
8726 (insert_breakpoints): Use overlay_events_enabled to decide
8727 whether to attempt to set a breakpoint at the overlay load addr.
8728 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8729 (remove_breakpoint): Use overlay_events_enabled to decide
8730 whether breakpoints need to be removed from overlay load addr.
8731 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8732 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8733 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8734 disable_overlay_breakpoints): Update overlay_events_enabled.
8735
5fb290d7
DJ
87362002-04-04 Daniel Jacobowitz <drow@mvista.com>
8737
8738 * dwarf2read.c (struct function_range): New.
8739 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8740 (check_cu_functions): New.
8741 (read_file_scope): Initialize global function lists.
8742 Call dwarf_decode_line after processing children.
8743 (read_func_scope): Add to global function list.
8744 (dwarf_decode_lines): Call check_cu_functions everywhere
8745 record_line is called. Call record_line with a linenumber
8746 of 0 to mark sequence ends.
8747
7b3fabf0
ML
87482002-04-04 Michal Ludvig <mludvig@suse.cz>
8749
361d1df0 8750 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8751 change sync with glibc.
8752
bce58c09
JB
87532002-04-03 Jim Blandy <jimb@redhat.com>
8754
8755 * configure.in: Call AC_C_INLINE.
8756 * configure: Regenerated.
361d1df0 8757
2fccf04a
DJ
87582002-04-01 Daniel Jacobowitz <drow@mvista.com>
8759
8760 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8761 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8762
2d1bfe2e
MK
87632002-03-31 Mark Kettenis <kettenis@gnu.org>
8764
a5941fbf
MK
8765 * NEWS: Mention gcore support on FreeBSD/i386.
8766
a90cd31d
MK
8767 * fbsd-proc.c: New file.
8768 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8769 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8770
2d1bfe2e
MK
8771 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8772 while statement.
8773
9eb6e5a1
JB
87742002-03-29 Jim Blandy <jimb@redhat.com>
8775
8776 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8777 unescaped newlines in string literals, but newer ones don't. So
8778 escape them.
8779
f02df580
MS
87802002-03-26 Michael Snyder <msnyder@redhat.com>
8781 Andrew Cagney <cagney@redhat.com>
8782
361d1df0 8783 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8784 restore file to memory.
8785 * cli/cli-dump.h: New file.
8786 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8787 * NEWS: Mention new commands.
f02df580 8788
109f874e
MS
87892002-03-28 Michael Snyder <msnyder@redhat.com>
8790
8791 * symfile.c (symbol_file_add): Move test for null symbols to later.
8792
520f6ade
AC
87932002-03-27 Andrew Cagney <ac131313@redhat.com>
8794
8795 From veksler at il.ibm.com:
8796 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8797 the xstrduped original path.
8798 Fix PR gdb/417.
8799
d4654627
MS
88002002-03-27 Michael Snyder <msnyder@redhat.com>
8801
8802 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8803 * infcmd.c (_initialize_infcmd): Ditto.
8804 * language.c (_initialize_language): Ditto.
8805 * symfile.c (_initialize_symfile): Ditto.
8806 * top.c (_init_main): Ditto.
8807 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8808
6be8bc0c
EZ
88092002-03-27 Elena Zannoni <ezannoni@redhat.com>
8810
8811 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8812 vector registers handling.
8813 (skip_prologue): Handle new AltiVec instructions. Fill in new
8814 fields of frame data.
8815 (frame_get_saved_regs): Fill in information for AltiVec registers.
8816
12af6855
JB
88172002-03-27 Jim Blandy <jimb@redhat.com>
8818
8819 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8820 a function; leave this macro here to invoke that function.
8821 (symbol_init_mangled_name): Declaration for that function.
8822 * symtab.c (symbol_init_mangled_name): New function.
8823
dc672865
AC
88242002-03-27 Andrew Cagney <ac131313@redhat.com>
8825
8826 * valarith.c: Replace strerror with safe_strerror.
8827 * tracepoint.c: Ditto.
8828 * lin-lwp.c: Ditto.
8829 * go32-nat.c: Ditto.
8830 * inflow.c: Ditto.
8831 * gnu-nat.c: Ditto.
8832
d96429cd
AS
88332002-03-27 Andreas Schwab <schwab@suse.de>
8834
8835 * event-top.c (command_line_handler): Remove useless if.
8836
7e336ba1
AJ
88372002-03-27 Andreas Jaeger <aj@suse.de>
8838
8839 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8840 comment.
8841
de220d0f
ML
88422002-03-27 Michal Ludvig <mludvig@suse.cz>
8843
8844 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8845 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8846 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8847 (x86_64_linux_dr_get_status, supply_gregset),
8848 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8849 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8850 (x86_64_register_info_table): Add.
8851 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8852 (x86_64_register_raw_size, x86_64_register_virtual_type),
8853 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8854 general x86_64_register_info_table.
8855 (i386_gdbarch_init): gdbarch_register_bytes is now set
8856 dynamicaly during initialization.
8857 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8858 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8859
0e98d0a7
DJ
88602002-03-27 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * gdbserver/server.c (main): Call target_signal_to_host_p
8863 and target_signal_to_host on signals received from the remote.
8864 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8865 target_signal_from_host on signals sent to the remote.
8866 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8867 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8868
3130066b
DJ
88692002-03-27 Daniel Jacobowitz <drow@mvista.com>
8870
8871 * signals/signals.c: Include "server.h" in gdbserver build.
8872 (target_signal_from_name): Don't use STREQ.
8873 (_initialize_signals): Likewise. Don't include function in
8874 gdbserver build.
8875
9aedf4f4
DJ
88762002-03-27 Daniel Jacobowitz <drow@mvista.com>
8877
8878 * signals.c: Moved to...
8879 * signals/signals.c: Here.
7e336ba1 8880 * Makefile (signals.o): Update.
9aedf4f4 8881
3fa41cdb
JL
88822002-03-26 Jeff Law (law@redhat.com)
8883
8884 * somread.c (som_symtab_read): Remove some commented out code and
8885 updated related comments. Do not set the minimal symbol table to
8886 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8887 in a dynamic executable.
8888 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8889 where we are unable to find the minimal symbol for the given
8890 PC value.
8891
ee677e8d
MS
88922002-03-25 Jeff Law (law@redhat.com)
8893
8894 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8895
e76e1718
ML
88962002-03-25 Michal Ludvig <mludvig@suse.cz>
8897
8898 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8899
18a642a1
AC
89002002-03-23 Andrew Cagney <ac131313@redhat.com>
8901
8902 * command.h: Update copyright.
8903 (struct cmd_list_element): Replace definition with opaque
8904 declaration.
8905 (enum cmd_types): Document that it will eventually be moved to
8906 cli/cli-decode.h
8907 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8908 (MALLOCED_REPLACEMENT): Delete macro.
8909 * Makefile.in (cli_decode_h): Add $(command_h).
8910 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8911 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8912 * completer.c: Include "cli/cli-decode.h".
8913 * maint.c: Include "cli/cli-decode.h".
8914 * cli/cli-decode.h: Include "command.h".
8915 (enum command_class): Delete.
8916 (enum cmd_types): Comment out.
8917 (enum cmd_auto_boolean): Delete.
8918 (enum var_types): Delete.
8919
b2875cc0
AC
89202002-03-23 Andrew Cagney <ac131313@redhat.com>
8921
8922 * cli/cli-decode.c: Include "gdb_assert.h".
8923 (add_set_or_show_cmd): New static function.
8924 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8925 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8926 all fields, such as func, from the set command.
8927
3b45974e
AC
89282002-03-23 Andrew Cagney <ac131313@redhat.com>
8929
8930 * MAINTAINERS (sh-elf): Change warning flag to -w.
8931
823ca731
AC
89322002-03-23 Andrew Cagney <cagney@redhat.com>
8933
8934 * defs.h (error): Add printf format attribute.
8935 * thread-db.c (thread_from_lwp): Fix error format string.
8936 * stack.c (parse_frame_specification): Ditto.
8937 * cli/cli-decode.c (undef_cmd_error): Ditto.
8938 * scm-lang.c (scm_lookup_name): Ditto.
8939 * tracepoint.c (trace_error): Ditto.
8940 * remote-utils.c (usage): Ditto.
8941 * remote.c (compare_sections_command): Ditto.
8942 Fix PR gdb/328.
8943
0e101458
AC
89442002-03-22 Andrew Cagney <ac131313@redhat.com>
8945
8946 * gdbtypes.c (append_composite_type_field): New function.
8947 (init_composite_type): New function.
8948 * gdbtypes.h (append_composite_type_field): Declare.
8949 (init_composite_type): Ditto.
8950
8e0662df
EZ
89512002-03-22 Elena Zannoni <ezannoni@redhat.com>
8952
8953 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8954 function.
8e0662df
EZ
8955 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8956 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8957 structure returning convention for SYSV ABI case, but not
8958 for GNU/Linux, FreeBSD, or NetBSD.
8959
3121eff0
DJ
89602002-03-22 Daniel Jacobowitz <drow@mvista.com>
8961
8962 * symtab.h (lookup_block_symbol): Add mangled_name argument
8963 to prototype.
8964
8965 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8966 with new mangled_name argument.
8967 * linespec.c (decode_line_1): Likewise.
8968 * valops (value_of_this): Likewise.
8969 * symtab.c (lookup_transparent_type): Likewise.
8970 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8971 (lookup_symbol): If we are given a mangled name, pass it down
8972 to lookup_symbol_aux.
8973 (lookup_block_symbol): If we are given a mangled name to check
8974 against, only return symbols which match it.
8975
349b409f
CF
89762002-03-22 Christopher Faylor <cgf@redhat.com>
8977
8978 * win32-nat.c (child_create_inferior): Check for proper shell to use
8979 here, in case the user changes it on the fly.
8980 (_initialize_inftarg): Remove shell path considerations.
8981
2a873819
EZ
89822002-03-21 Elena Zannoni <ezannoni@redhat.com>
8983
8984 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8985 for gdbarch_max_register_raw_size and max_register_virtual_size.
8986 Adjust copyright year.
8987
a1b9830c
DJ
89882002-03-21 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8991 in a function to cover the entire beginning of the function
8992 as well if it does not already.
8993
8b5790f2
TR
89942002-03-21 Tom Rix <trix@redhat.com>
8995
8996 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8997 (rs6000_ptrace64): Renamed from ptrace64.
8998
bdbe5747
MH
89992002-03-20 Martin M. Hunt <hunt@redhat.com>
9000
9001 * gdbserver/remote-utils.c (remote_open): Don't call
9002 getprotobyname, we're all using TCP here so just use
9003 IPPROTO_TCP.
7e336ba1 9004 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
9005
90062002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 9007
bdbe5747
MH
9008 * regcache.c (_initialize_regcache): No need to call
9009 build_regcache() at this time; it gets called whenever
9010 the gdbarch changes.
9011
7781cd62
DB
90122002-03-20 David O'Brien <obrien@FreeBSD.org>
9013
9014 * sparc-nat.c: Include sys/param.h where possible.
9015
f65ca430
DJ
90162002-03-20 Daniel Jacobowitz <drow@mvista.com>
9017
9018 Fix PR gdb/422.
9019 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9020 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9021 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9022 complex types.
9023 * stabsread.c (rs6000_builtin_type): Likewise.
9024 (read_sun_floating_type): Likewise.
9025
0c867556
PS
90262002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9027
9028 * stabsread.c (read_member_functions): Remove skip code for duplicate
9029 constructor/destructor methods. Use standard parsing for these
9030 methods and just do not chain them to the list of methods after
9031 parsing.
9032
12b9c64f
AO
90332002-03-19 Alexandre Oliva <aoliva@redhat.com>
9034
9035 * coffread.c: Remove redundant static declarations. Replace
9036 occurrences of `PTR' with `void *'.
9037 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9038 * top.h (quit_cover): Likewise.
9039 * defs.h (catch_errors): Likewise.
9040
349c5d5f
AC
90412002-03-18 Andrew Cagney <ac131313@redhat.com>
9042
9043 * defs.h (XMALLOC): Define.
9044 * gdb-events.sh (XMALLOC): Delete macro.
9045 * gdb-events.c, gdb-events.h: Regenerate.
9046 * gdbarch.sh (XMALLOC): Delete macro.
9047 * gdbarch.c: Regenerate.
9048 * serial.c (XMALLOC): Delete macro.
9049 * ui-file.c (XMALLOC): Ditto.
9050 * ser-unix.h (XMALLOC): Ditto.
9051 * sh-tdep.c (XMALLOC): Ditto.
9052 * ui-out.c (XMALLOC): Ditto.
9053 * utils.c (XMALLOC): Ditto.
9054 * i386-tdep.c (XMALLOC): Ditto.
9055 * gdb-events.c (XMALLOC): Ditto.
9056 * d10v-tdep.c (XMALLOC): Ditto.
9057 * cli-out.c (XMALLOC): Ditto.
9058
9059 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9060 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9061 * ui-file.c, ui-out.c: Ditto.
9062
7d0766f3
AC
90632002-03-18 Andrew Cagney <ac131313@redhat.com>
9064
9065 * command.h (struct cmd_list_element): Add field context.
9066 (set_cmd_context, get_cmd_context): Declare.
9067 * cli/cli-decode.h: Ditto.
9068 * cli/cli-decode.c (get_cmd_context): New function.
9069 (set_cmd_context): New function.
9070 (add_cmd): Initialize context.
9071 Part of fixing PR gdb/145 and PR gdb/146.
9072
5913bcb0
AC
90732002-03-17 Andrew Cagney <ac131313@redhat.com>
9074
1868c04e
AC
9075 * cli/cli-decode.c (cmd_type): New function.
9076 * command.h (cmd_type): Declare.
9077 * infrun.c (set_schedlock_func): Call function cmd_type.
9078 * kod.c (kod_set_os): Call cmd_type.
9079 * cris-tdep.c (cris_version_update): Use function cmd_type.
9080 (cris_mode_update, cris_abi_update): Ditto.
9081
5913bcb0
AC
9082 * command.h: (execute_cmd_post_hook): Declare.
9083 (execute_cmd_pre_hook): Declare.
9084 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9085 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9086 functions. Execute pre/post hook while ensuring that afterwords
9087 hook_in is cleared.
9088 * top.c (execute_command): Use execute_cmd_post_hook, and
9089 execute_cmd_pre_hook to execute pre/post commands.
9090 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9091 hook_stop_stub.
9092 (hook_stop_stub): Call execute_cmd_pre_hook.
9093
b51450c9
AC
90942002-03-17 Andrew Cagney <ac131313@redhat.com>
9095
9096 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9097 set'' and this leads to a core dump. Move xstrdup of
9098 operating_system to after check that it is not NULL.
9099
f66c9f11
AC
91002002-03-17 Andrew Cagney <ac131313@redhat.com>
9101
8e694ecf
AC
9102 * kod.c (kod_set_os): Remove unnecessary check that
9103 ``command->type'' is set_cmd.
9104
f66c9f11
AC
9105 * valprint.c (set_input_radix): Use input_radix.
9106 (set_output_radix): Use output_radix.
9107 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9108 isn't reverted.
9109
9d01611c
AC
91102002-03-16 Andrew Cagney <ac131313@redhat.com>
9111
9112 * value.h (struct value): Delete field ``substring_addr''. Change
9113 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9114 force_core_addr_align and force_pointer_aligh.
9115
9116 * value.h (struct value): Fix typo in above change.
9d01611c 9117
4156bb53
PS
91182002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9119
9120 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9121 to fix internal_error from ``maintenance print architecture''.
9122
0e5e3ea6
PS
91232002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9124
9125 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9126 for gcc versions after gcc-2.8.1.
9127
9b013045
PS
91282002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9129
9130 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9131 for method resolution. Restore adjustment of ``this'' pointer after
9132 calling value_struct_elt, which was accidentally removed during the
9133 HP merge.
9134
376c9600
AC
91352002-03-15 Andrew Cagney <ac131313@redhat.com>
9136
9137 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9138 value_of_register.
9139 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9140 get_saved_register.
9141 * value.h (value_of_register): Update.
9142
a4db0f07
RH
91432002-03-14 Richard Henderson <rth@redhat.com>
9144
9145 * configure.in: Detect declaration for canonicalize_file_name.
9146 * utils.c (canonicalize_file_name): Declare, if needed.
9147 (gdb_realpath): Prefer realpath if available and usable.
9148 * config.in, configure: Rebuild.
9149
96383835
RH
91502002-03-14 Richard Henderson <rth@redhat.com>
9151
9152 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9153 a constant array bound.
9154
9155 * MAINTAINERS: Add myself to write-after-approval.
9156
75245b24
MS
91572002-03-14 Michael Snyder <msnyder@redhat.com>
9158
9159 * symfile.c (syms_from_objfile): Return immediately if no syms.
9160 (symbol_file_add): Return immediately if no syms.
9161 (find_sym_fns): Return immediately if no syms.
9162
e641a1ca
ML
91632002-03-13 Michal Ludvig <mludvig@suse.cz>
9164
9165 * gdbserver/remote-util.c (remote_open): Print remote-side's
9166 IP address when remote debugging over the network.
7e336ba1 9167
df08bfec
DB
91682002-03-12 David O'Brien <obrien@FreeBSD.org>
9169
9170 * config/sparc/fbsd.mh: Fix copyright.
9171 * config/sparc/fbsd.mt: Likewise.
9172
9a57864f
RE
91732002-03-11 Richard Earnshaw <rearnsha@arm.com>
9174
9175 * MAINTAINERS: Fix typo in name of gdb warnings option.
9176 (x86-64): Fix formating so that this can be parsed by awk.
9177
dd7bf85e
DJ
91782002-03-10 Daniel Jacobowitz <drow@mvista.com>
9179
9180 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9181 * defs.h: Include "gdb/signals.h".
9182 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9183
33a0a2ac
ML
91842002-03-10 Michal Ludvig <mludvig@suse.cz>
9185
9186 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9187 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9188 from x86-64-tdep.h
9189
dd824b04
DJ
91902002-03-10 Daniel Jacobowitz <drow@mvista.com>
9191 Don Howard <dhoward@redhat.com>
9192
9193 * mips-tdep.c (ST0_FR): Define.
9194 (mips2_fp_compat): New function, temporarily disabled.
9195 (mips_read_fp_register_single): New function.
9196 (mips_read_fp_register_double): New function.
9197 (mips_print_register): Use them.
9198 (do_fp_register_row): Likewise.
9199
6a41ff59
AC
92002002-03-09 Andrew Cagney <ac131313@redhat.com>
9201
9202 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9203 approval''.
9204
4ea09c10
PS
92052002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9206
9207 * stabsread.c (read_member_functions): Fix is_stub test for
9208 static member functions, improve comment.
9209
6ccc741d
RE
92102002-03-07 Richard Earnshaw <rearnsha@arm.com>
9211
9212 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9213 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9214 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9215 commands that set boolean values.
9216 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9217 (arm_rdi_resume): Always initialize PC.
9218 (arm_rdi_open): Don't use rslt as a boolean.
9219 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9220 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9221 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9222 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9223
438013df
AO
92242002-03-06 Alexandre Oliva <aoliva@redhat.com>
9225
9226 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9227 * configure: Rebuilt.
9228
70ed8774
SC
92292002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9230
9231 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9232 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9233
5ba2abeb
AC
92342002-03-06 Andrew Cagney <ac131313@redhat.com>
9235
9236 * cli/cli-decode.c (set_cmd_completer): New function.
9237 * command.h (set_cmd_completer): Declare.
9238 * cli/cli-decode.h (set_cmd_completer): Ditto.
9239
9240 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9241 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9242 * win32-nat.c (_initialize_inftarg): Ditto.
9243 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9244 * proc-api.c (_initialize_proc_api): Ditto.
9245 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9246 * source.c (_initialize_source): Ditto.
9247 * exec.c (_initialize_exec): Ditto.
9248 * solib.c (_initialize_solib): Ditto.
9249 * top.c (init_main): Ditto.
9250 * tracepoint.c (_initialize_tracepoint): Ditto.
9251 * symfile.c (_initialize_symfile): Ditto.
9252 * printcmd.c (_initialize_printcmd): Ditto.
9253 * infcmd.c (_initialize_infcmd): Ditto.
9254 * corefile.c (_initialize_core): Ditto.
9255
f779ca99
AC
92562002-03-05 Andrew Cagney <ac131313@redhat.com>
9257
9258 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9259
01a3934b
AC
92602002-03-05 Andrew Cagney <ac131313@redhat.com>
9261
9262 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9263
37057839
AC
92642002-03-05 Andrew Cagney <ac131313@redhat.com>
9265
9266 * NEWS: Update headings, 5.2 has branched.
9267
c6ecbae5
DJ
92682002-03-04 Daniel Jacobowitz <drow@mvista.com>
9269
9270 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9271 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9272 (register_addr, REGISTER_RAW_SIZE): Likewise.
9273 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9274 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9275
e9f30c21
ML
92762002-03-03 Michal Ludvig <mludvig@suse.cz>
9277
9278 * MAINTAINERS (x86-64): Add myself.
9279 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9280 changed value_ptr -> struct value *
9281
54394ac3
DB
92822002-03-01 David O'Brien <obrien@FreeBSD.org>
9283
9284 * configure.host (sparc64-*-freebsd): Add.
9285 * configure.tgt: Likewise.
9286 * config/sparc/fbsd.mh: New file.
9287 * config/sparc/fbsd.mt: Likewise.
9288 * config/sparc/nm-fbsd.h: Likewise.
9289 * config/sparc/tm-fbsd.h: Likewise.
9290
bfe95955
DJ
92912002-03-01 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9294 regformats/reg-s390x.dat.
9295
f33c6cbf
AC
92962002-03-01 Andrew Cagney <ac131313@redhat.com>
9297
9298 * utils.c: Add FIXME explaining true/false problem.
9299
5ecaa7dd
AC
93002002-02-28 Andrew Cagney <ac131313@redhat.com>
9301
9302 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9303
2a251cc2
MC
93042002-02-28 Michael Chastain <mec@shout.net>
9305
9306 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9307
6a8031a3 93082002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9309
9310 * gdbserver/linux-s390-low.c: New file.
9311 * regformats/reg-s390.dat: New file.
9312 * regformats/reg-s390x.dat: New file.
9313 * gdbserver/configure.srv: Add S/390.
9314 * gdbserver/Makefile.in: Add S/390.
9315 * configure.tgt: Enable gdbserver for S/390.
9316
ac469903
EZ
93172002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9318
9319 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9320 first line of the doc string for "info dos", except at the end of
9321 the sentence, since the short help stops at the first period.
9322
985cb1a3
JM
93232002-02-28 Jason Merrill <jason@redhat.com>
9324
9325 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9326
c570663e
FF
93272002-02-27 Fred Fish <fnf@redhat.com>
9328
9329 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9330 comment (dumy -> dummy).
9331
43630227
PS
93322002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9333
9334 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9335
b84911e8
RB
93362002-02-27 Rodney Brown <rbrown64@csc.com.au>
9337
9338 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9339
58caa3dc
DJ
93402002-02-27 Daniel Jacobowitz <drow@mvista.com>
9341
9342 * gdbserver/acconfig.h: New file.
9343 * gdbserver/i387-fp.c: New file.
9344 * gdbserver/i387-fp.h: New file.
9345 * gdbserver/linux-x86-64.c: New file.
9346 * regformats/reg-x86-64.dat: New file.
9347 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9348 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9349 * gdbserver/configure.in: Add support for regsets.
9350 * gdbserver/config.in: Regenerate.
9351 * gdbserver/configure: Regenerate.
9352 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9353 * gdbserver/linux-low.h: New file.
9354 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9355 for regsets.
9356 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9357 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9358 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9359 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9360 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9361 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9362 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9363 "i387-fp.h". Add PTRACE_GETREGS and friends.
9364 * gdbserver/regcache.c (supply_register): New function.
9365 (supply_register_by_name): New function.
9366 (collect_register): New function.
9367 (collect_register_by_name): New function.
9368
93652174
DJ
93692002-02-27 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9372 (config.status): Add configure.srv dependency.
9373 (server_h): Add config.h dependency.
9374
a02e4a61
DJ
93752002-02-27 Daniel Jacobowitz <drow@mvista.com>
9376
9377 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9378 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9379 * gdbserver/configure.srv: Change i386-*-linux* to use
9380 reg-i386-linux.o.
9381
ce0eebec
AC
93822002-02-26 Andrew Cagney <ac131313@redhat.com>
9383
9384 * x86-64-tdep.c: Re-indent. Update copyright date.
9385
82dbc5f7
AC
93862002-02-26 Andrew Cagney <ac131313@redhat.com>
9387
9388 From Michal Ludvig <mludvig@suse.cz>:
9389 * x86-64-tdep.c (value.h): Delete.
9390 (gdb_assert.h): Include.
9391 (x86_64_register_convert_to_virtual,
9392 x86_64_register_convert_to_raw ): Add check which lets only
9393 floating-point values to be converted.
9394 (value_push): Delete.
9395 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9396 (i386_gdbarch_init): Number of register_bytes fixed.
9397
e4621584
AC
93982002-02-26 Andrew Cagney <ac131313@redhat.com>
9399
9400 * MAINTAINERS: Add x86-64 target.
9401
81a9a963
AC
94022002-02-26 Andrew Cagney <ac131313@redhat.com>
9403
9404 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9405 * osfsolib.c (solib_map_sections): Ditto.
9406 * irix5-nat.c (solib_map_sections): Ditto.
9407 * corelow.c (gdb_check_format): Ditto.
9408 * symfile.c (symfile_bfd_open): Ditto.
9409 * solib.c (solib_map_sections): Ditto.
9410 Fix PR gdb/354.
7e336ba1 9411
0f017ab9
AC
94122002-02-26 Andrew Cagney <ac131313@redhat.com>
9413
9414 * remote.c (_initialize_remote): By default, disable ``e'' and
9415 ``E'' step out-of-range packets.
9416
75738c29
AS
94172002-02-26 Andreas Schwab <schwab@suse.de>
9418
9419 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9420 m68k_linux_frame_saved_pc.
9421 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9422 in_sigtramp.
9423 (SIGCONTEXT_PC_OFFSET): Remove.
9424 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9425 m68k_linux_sigtramp_saved_pc): New functions.
9426 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9427 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9428 (UCONTEXT_PC_OFFSET): Define.
9429 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9430 non-RT and RT signal trampolines.
9431
7e8ed687
RE
94322002-02-26 Richard Earnshaw <rearnsha@arm.com>
9433
9434 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9435 (TARGET_NBPG, STACK_END_ADDR): Delete
9436 (VARIABLES_INSIDE_BLOCK): Delete.
9437
6972bc8b
AC
94382002-02-25 Andrew Cagney <ac131313@redhat.com>
9439
9440 * utils.c (perror_with_name): Make string parameter constant.
9441 (print_sys_errmsg): Ditto.
9442 (query): Ditto.
9443 * defs.h (perror_with_name): Update.
9444 (print_sys_errmsg): Update.
9445 (query): Update.
9446
aa32f823
DJ
94472002-02-25 Daniel Jacobowitz <drow@mvista.com>
9448
9449 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9450 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9451
19caaa45
PS
94522002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9453
9454 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9455 if it already matches the current architecture from the exec file.
9456 Include arch-utils.h for gdbarch_info_init prototype.
9457 * Makefile.in (rs6000-nat.o): Update dependencies.
9458
d951901f
EZ
94592002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9460
9461 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9462 list of exported variables.
9463
7ea81414
DJ
94642002-02-24 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * gdbserver/configure.srv: New file.
9467 * gdbserver/configure.in: Use configure.srv instead
9468 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9469 from it.
9470 * gdbserver/configure: Regenerated.
9471 * gdbserver/terminal.h: New file.
9472 * gdbserver/Makefile.in: Update for configure changes. Remove
9473 more unneeded include paths.
9474
080fe24b
AC
94752002-02-24 Andrew Cagney <ac131313@redhat.com>
9476
9477 From wiz at danbala:
9478 * config/sparc/tm-sp64.h: Fix grammar and typos.
9479 Fix PR gdb/287.
9480
8605d56e
AC
94812002-02-24 Andrew Cagney <ac131313@redhat.com>
9482
9483 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9484 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9485 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9486 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9487 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9488 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9489 * s390-tdep.c: Ditto.
92362027
AC
9490 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9491 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9492 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9493 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9494 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9495 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9496 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9497 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9498 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9499 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9500 Fix PR gdb/378.
7e336ba1 9501
8ed32cc0
AC
95022002-02-23 Andrew Cagney <ac131313@redhat.com>
9503
a3007b6f
AC
9504 * lin-thread.c: Delete file.
9505 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9506 to gdb_proc_service.h.
9507 * configure: Re-generate.
9508
50a9e2f1
AC
9509 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9510 * serial.c (serial_open): Delete check for "ocd".
9511 Fix PR gdb/349.
9512
8b6e7932
AC
9513 * Makefile.in (linux-thread.o): Delete target.
9514 * linux-thread.c: Delete file.
9515
d155c46b
AC
9516 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9517 renamed SH files to be consistent.
9518
8ed32cc0
AC
9519 * symtab.c (sort_search_symbols): Use xfree.
9520
0e18d038
RE
95212002-02-23 Richard Earnshaw <rearnsha@arm.com>
9522
9523 * arm-linux-tdep.c (arm_linux_init_abi): Register
9524 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9525 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9526 definition with undef, since we don't want the sysvr4 definition.
9527 (SKIP_TRAMPOLINE_CODE): Likewise.
9528
27aac7ff
AC
95292002-02-23 Andrew Cagney <ac131313@redhat.com>
9530
9531 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9532
9533 * configure.in: (AC_CHECK_FUNCS) Added test for
9534 canonicalize_file_name Regenerated.
9535 * config.in, configure: Regenerated.
9536 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9537 defined use canonicalize_file_name.
7e336ba1 9538
65a6e0ee
MC
95392002-02-23 Michael Chastain <mec@shout.net>
9540
9541 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9542
47b95330
AC
95432002-02-23 Andrew Cagney <ac131313@redhat.com>
9544
9545 * README: Remove references to cygnus.com.
9546 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9547 dot com'' form. Remove references to cygnus.com and sourceware.
9548
696f451b
AC
95492002-02-23 Andrew Cagney <ac131313@redhat.com>
9550
9551 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9552 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9553 1003.1-2001 no longer allows "head -1".
9554 * gdb/Makefile.in (version.c): Likewise.
9555 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9556 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9557 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9558
bbaca940
AC
95592002-02-23 Andrew Cagney <ac131313@redhat.com>
9560
9561 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9562 * command.h (cmd_cfunc_eq): Declare.
9563 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9564
9565 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9566 ``struct cmd_list_element *''.
9567 * cli/cli-cmds.c (is_complete_command): Update. Use
9568 cmd_cfunc_eq.
9569 * top.c (execute_command): Pass the command to
9570 is_complete_command.
9571 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9572
b8b8b047
AC
95732002-02-23 Andrew Cagney <ac131313@redhat.com>
9574
9575 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9576 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9577 architecture defines.
9578 * s390-tdep.c (s390_gdbarch_init): Likewise.
9579
19d3fc80
RE
95802002-02-23 Richard Earnshaw <rearnsha@arm.com>
9581
9582 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9583 (arm_linux_push_arguments): Likewise.
9584 (arm_linux_init_abi): Register them. Also register linux-specific
9585 call_dummy_words.
9586 (find_minsym_and_objfile): Use strcmp, not STREQ.
9587 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9588 (arm_linux_call_dummy_words): Delete declaration.
9589 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9590 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9591 declarations.
9592 (LOWEST_PC): Delete.
9593
3ab13650
PS
95942002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9595
9596 * maint.c (print_section_info): Do not prepend `0x' to filepos
9597 output, it will be handled by local_hex_string_custom.
9598
19d3fc80 95992002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9600
9601 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9602 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9603 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9604
d85a5daf
JB
96052002-02-22 Jim Blandy <jimb@redhat.com>
9606
9607 Indicate that the bcache functions don't change the strings
9608 they're passed.
9609 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9610 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9611
eeb25b8a
PM
96122002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9613
9614 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9615
6badb179
CF
96162002-02-21 Christopher Faylor <cgf@redhat.com>
9617
9618 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9619 find the complete path to a loaded DLL.
9620
e8717518
FF
96212002-02-21 Fred Fish <fnf@redhat.com>
9622
9623 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9624 that marks the end of the range of a function, enter a line number
9625 entry that has a line number of zero and a PC offset that matches
9626 the end of the function. This starts a range of PC's for which no
9627 line number information is known.
9628 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9629 PC's for which no line number info is found (line number is zero)
9630 then we didn't find any valid line information.
9631 * symtab.h: Document use of zero line number entry.
9632
9abe5450
EZ
96332002-02-21 Elena Zannoni <ezannoni@redhat.com>
9634
9635 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9636 (have_ptrace_getvrregs): Define for run time checks.
9637 (gdb_vrregset_t): New type for Altivec register handling.
9638 (fetch_register, store_register): Fetch/store altivec register
9639 when needed.
9640 (fetch_altivec_register, store_altivec_register): New functions.
9641 (supply_vrregset, fill_vrregset): New functions.
9642 (fetch_altivec_registers, store_altivec_registers): New functions.
9643 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9644 registers as well.
9645
aaa38bb5
AJ
96462002-02-21 Jiri Smid <smid@suse.cz>
9647
9648 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9649
b34db576
RE
96502002-02-21 Richard Earnshaw <rearnsha@arm.com>
9651
9652 * Makefile.in (armnbsd-nat.o): Update dependencies.
9653 * armnbsd-nat.c (supply_gregset): New function. Common code to
9654 supply the integer register set.
9655 (supply_fparegset): New function. Similar for FPA registers.
9656 (fetch_regs, fetch_fp_regs): Use them.
9657 (fetch_core_registers): Likewise.
9658 (fetch_elfcore_registers): New function.
9659 (arm_netbsd_elfcore_fns): New core-file type specification.
9660 (_initialize_arm_netbsd_nat): Register it.
9661
3e56fc4b
RE
96622002-02-21 Richard Earnshaw <rearnsha@arm.com>
9663
9664 * armnbsd-nat.c: Include gdbcore.h.
9665 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9666 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9667 'void' to declaration, to shut up ARI.
9668 (fetch_core_registers): Make static. Rewrite using supply_register.
9669 (arm_netbsd_core_fns): New core-file type specification.
9670 (_initialize_arm_netbsd_nat): New function.
9671
097f6b0b
CF
96722002-02-21 Christopher Faylor <cgf@redhat.com>
9673
9674 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9675 value.
9676
c914e0cc
CF
96772002-02-20 Christopher Faylor <cgf@redhat.com>
9678
9679 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9680 fails.
9681
385fa495
DJ
96822002-02-20 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * jv-exp.y (parse_number): Change type of implicit longs
9685 to builtin_type_uint64.
9686
e5f1222d
DJ
96872002-02-20 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9690 to be an integer instead of a `union wait'.
9691
75c9abc6
DJ
96922002-02-20 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * mips-linux-nat.c: Call the operating system GNU/Linux.
9695 * mips-linux-tdep.c: Likewise.
9696 * mips-tdep.c: Likewise.
9697
551792a5
DJ
96982002-02-20 Daniel Jacobowitz <drow@mvista.com>
9699
9700 Fix PR gdb/265.
9701 * jv-exp.y (parse_number): Handle 64-bit integers.
9702
ee6e2b82
DJ
97032002-02-20 Daniel Jacobowitz <drow@mvista.com>
9704
9705 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9706 AC_STDC_HEADERS to AC_HEADER_STDC.
9707 * gdbserver/configure: Regenerated.
9708
a48442a0
RE
97092002-02-20 Richard Earnshaw <rearnsha@arm.com>
9710
9711 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9712 is defined.
9713 * sparc-tdep.c (get_longjmp_target): Likewise.
9714
fe419ffc
RE
97152002-02-20 Richard Earnshaw <rearnsha@arm.com>
9716
9717 * News: Add news about ARM and Multi-arch. Mention the new target
9718 arm*-*-netbsd*.
9719
5832ed7e
JB
97202002-02-19 Jim Blandy <jimb@redhat.com>
9721
9722 * stabsread.c (error_type_complaint): Improve error message.
9723
84563040
DJ
97242002-02-19 Daniel Jacobowitz <drow@mvista.com>
9725
9726 * gdbserver/README: Update documentation.
9727 * gdbserver/configure.in: Update configury to match documentation.
9728 * gdbserver/Makefile.in: Likewise.
9729 * gdbserver/configure: Regenerated.
9730 * gdbserver/aclocal.m4: New file, generated by aclocal.
9731 * gdbserver/config.in: New file, generated by autoheader.
9732
375fd65b
RE
97332002-02-19 Richard Earnshaw <rearnsha@arm.com>
9734
9735 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9736 armnbsd-nat.c.
9737
08216dd7
RE
97382002-02-19 Richard Earnshaw <rearnsha@arm.com>
9739
9740 * arm-tdep.h (enum arm_float_model): New enum.
9741 (struct gdbarch_tdep): Add fp_model.
9742 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9743 up floating-point conversions until we know the floating-point model
9744 in use by the inferior. Don't complain about being unable to
9745 determine the ABI of the inferior when we don't have one.
9746 (arm_extract_return_value): Support different floating-point models.
9747 (arm_store_return_value): Likewise.
aaa38bb5 9748 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9749 ARM_FLOAT_SOFT.
9750 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9751
65d6d66a
PS
97522002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9753
9754 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9755 of ``current_gdbarch''.
9756
47221191
RE
97572002-02-19 Richard Earnshaw <rearnsha@arm.com>
9758
9759 * armnbsd-nat.c : ANSIfy all function declarations.
9760 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9761 (fetch_inferior_registers): Re-implement in terms of above.
9762 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9763 (store_inferior_registers): Re-implement in terms of above.
9764
fdf39c9a
RE
97652002-02-19 Richard Earnshaw <rearnsha@arm.com>
9766
aaa38bb5 9767 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9768 kernel.
9769 * arm-linux-tdep.c: Likewise.
9770 * config/arm/tm-linux.h: Likewise.
9771
93247f88
RE
97722002-02-19 Richard Earnshaw <rearnsha@arm.com>
9773
9774 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9775 * config/arm/nbsd.mt (TM_FILE): Delete.
9776 * config/arm/tm-nbsd.h: Delete.
9777
d7b486e7
RE
97782002-02-19 Richard Earnshaw <rearnsha@arm.com>
9779
9780 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9781 Initialize CALL_DUMMY_LENGTH.
9782
41d39a95
RE
97832002-02-19 Richard Earnshaw <rearnsha@arm.com>
9784
9785 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9786 function.
9787 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9788 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9789 defines one thing and that is incorrect for this port.
9790 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9791
e1195560
PM
97922002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9793
9794 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9795
c1748f97
PM
97962002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9797
9798 * win32-nat.c (display_selector): New function. Displays information
9799 about the information returned by GetThreadSelectorEntry API function.
9800 (display_selectors): New function. Displays the infomation of
9801 the selector given as argument, or of CS, DS ans FS selectors
9802 if no argument is given.
9803 ( _initialize_inftarg): Add "w32" as info prefix command.
9804 Add "info w32 selector" as command calling display_selectors.
9805
e41e6bbf
PM
98062002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9807
9808 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9809 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9810 if not defined.
9811
0d3a9f48
RE
98122002-02-18 Richard Earnshaw <rearnsha@arm.com>
9813
9814 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9815
3fb4b924
RE
98162002-02-18 Richard Earnshaw <rearnsha@arm.com>
9817
9818 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9819 (arm_fix_call_dummy): Call it.
9820 (arm_call_dummy_breakpoint_offset): Delete.
9821 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9822 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9823
7f55af32
AC
98242002-02-18 Andrew Cagney <ac131313@redhat.com>
9825
9826 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9827 Default to func_frame_chain_valid.
9828 * gdbarch.h, gdbarch.c: Re-generate.
9829 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9830
05f13b9c
EZ
98312002-02-18 Elena Zannoni <ezannoni@redhat.com>
9832
9833 * ppc-linux-nat.c: Update copyright.
9834 (fetch_register, store_register): Add tid parameter, don't compute
9835 tid here.
9836 (fetch_ppc_registers, store_ppc_registers): Add tid
9837 parameter. Pass it along to callees.
9838 (fetch_inferior_registers, store_inferior_registers): Compute tid
9839 here, and pass it to calleed functions.
9840 (fill_gregset, supply_fpregset): Clean up formatting.
9841
d7afb4c9
RE
98422002-02-18 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9845 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9846
9df628e0
RE
98472002-02-18 Richard Earnshaw <rearnsha@arm.com>
9848
9849 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9850 * gdbarch.c gdbarch.h: Regenerate.
9851 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9852 function.
9853 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9854 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9855 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9856
9857 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9858 * arm-tdep.c (arm_get_longjmp_target): New function.
9859 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9860 this to a positive value register arm_get_longjmp_target as the
9861 longjmp handler.
9862 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9863 (arm_linux_init_abi): Set up longjmp description in tdep.
9864 * armnbsd-nat.c (get_longjmp_target): Delete.
9865 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9866 description in tdep.
9867 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9868 (get_longjmp_target): Delete declaration.
9869 (GET_LONGJMP_TARGET): Delete.
9870 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9871 (GET_LONGJMP_TARGET): Delete.
9872
57bc8964
KB
98732002-02-17 Kevin Buettner <kevinb@redhat.com>
9874
9875 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9876 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9877 of ``current_gdbarch''.
9878
83d31a92
TT
98792002-02-17 Tom Tromey <tromey@redhat.com>
9880
9881 * cli/cli-cmds.c (compare_strings): New function.
9882 (complete_command): Only print each unique item once.
9883 * completer.h (complete_line): Declare.
9884 * completer.c (complete_line): New function.
9885 (line_completion_function): Use it.
9886
17ef5d92
AC
98872002-02-16 Andrew Cagney <ac131313@redhat.com>
9888
9889 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9890 * gdbarch.h, gdbarch.c: Re-generate.
9891
491b8946
DJ
98922002-02-16 Daniel Jacobowitz <drow@mvista.com>
9893
9894 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9895
98962002-02-16 Daniel Jacobowitz <drow@mvista.com>
9897
9898 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9899 * valops.c (value_arg_coerce): Don't take the address of a reference
9900 to convert an argument to a reference.
9901
dfe7f3ac
CF
99022002-02-15 Christopher Faylor <cgf@redhat.com>
9903
9904 * win32-nat.c (get_image_name): New function.
9905 (handle_load_dll): Use get_image_name function.
9906 (get_child_debug_event): Avoid registering debug events until possibly
9907 execed process is started.
9908 (child_create_inferior): Allow invocation via shell so that command
9909 line redirection, etc. works ok.
9910 (_initialize_inftarg): Add new command: "set shell" to control whether
9911 a shell is used to start a process.
9912
1d33e73a
DJ
99132002-02-15 Daniel Jacobowitz <drow@mvista.com>
9914
9915 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9916 instead of find_register_by_number.
9917 (cannot_store_register): Likewise.
9918
48cd0caa
PM
99192002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9920
aaa38bb5 9921 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9922 fprintf_unfiltered (gdb_stderr, ...).
9923
8656e7d8
DJ
99242002-02-15 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * gdbserver/gdbserver.1: Document --attach.
9927
66e810cd
RE
99282002-02-15 Richard Earnshaw <rearnsha@arm.com>
9929
9930 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9931 descriptions.
9932 * arm-tdep.c (arm_default_arm_le_breakpoint)
9933 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9934 (arm_default_thumb_be_breakpoint): New. Initialize them from
9935 traditional breakpoint defines.
9936 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9937 (arm_gdbarch_init): Initialize new breakpoint variables.
9938 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9939 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9940 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9941 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9942 code out to ...
9943 (arm_netbsd_init_abi_common): ... here; new function.
9944 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9945 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9946 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9947 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9948
97e03143
RE
99492002-02-15 Richard Earnshaw <rearnsha@arm.com>
9950
9951 * arm-tdep.h (enum arm_abi): New enum.
9952 (struct gdbarch_tdep): New structure.
9953 (LOWEST_PC): Provide a default.
9954 (arm_gdbarch_register_os_abi): Declare new function.
9955 * arm-tdep.c (arm_abi_names): New array.
9956 (process_note_abi_tag_sections): New function.
9957 (get_elfosabi): New function.
9958 (arm_gdbarch_register_os_abi): New function.
9959 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9960 support for that ABI has been built in, then call the appropriate
9961 configuration routine. Use gdbarch_num_regs() to get the number
9962 of registers.
9963 (arm_dump_tdep): New function.
9964 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9965 place-holder functions.
9966 (_initialize_arm_tdep): Register them.
9967 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9968
9969 * armnbsd-tdep.c: New file.
9970 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9971 * config/arm/nbsd.mt (TDEPFILES): Add it.
9972 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9973
9974 * armnbsd-nat.c: Include regcache.h.
9975 * Makefile.in (armnbsd-nat.o): Update dependency list.
9976
9977 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9978
ad68be46
DJ
99792002-02-14 Daniel Jacobowitz <drow@mvista.com>
9980
9981 * gdbserver/Makefile.in: Fix typos in target rules.
9982
003d6d1d
DJ
99832002-02-14 Daniel Jacobowitz <drow@mvista.com>
9984
aaa38bb5 9985 Fix part of PR gdb/267.
003d6d1d
DJ
9986 * linespec.c (find_methods): Handle constructors specially for now.
9987
6b230f1b
CV
99882002-02-14 Corinna Vinschen <vinschen@redhat.com>
9989
9990 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9991 handling.
9992 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9993 standard_coerce_float_to_double().
9994
1ea98d12
CF
99952002-02-14 Christopher Faylor <cgf@redhat.com>
9996
9997 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9998 GDBINIT_FILENAME.
9999
dd47e6fd
EZ
100002002-02-14 Elena Zannoni <ezannoni@redhat.com>
10001
10002 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10003 find_variant_by_name, because it confuses the multiarch
10004 framework. Return NULL if there isn't an architecture with the
10005 user supplied name, instead of forcing a different one without
10006 recording the change with the multiarch machinery.
10007 (find_variant_by_name): Delete.
10008
d7e39b9e
PS
100092002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10010
10011 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10012 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10013
76e42a4f
MH
100142002-02-13 Martin M. Hunt <hunt@redhat.com>
10015
aaa38bb5 10016 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
10017 print_frame_info_listing_hook, set current_source_symtab.
10018
0a30fbc4
DJ
100192002-02-14 Daniel Jacobowitz <drow@mvista.com>
10020
10021 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10022 and remove unused $(INCLUDE_DIR).
10023 Add regcache.c to OBS.
10024 Add generated register protocol files to clean target.
10025 Update dependencies for new objects, obsolete old target code.
10026
10027 * gdbserver/linux-low.c: Remove all platform-specific code to
10028 new files. Remove various dead code. Update to use regcache
10029 functionality.
10030 * gdbserver/remote-utils.c (fromhex): Add return statement
10031 to quiet warning.
10032 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10033 constant.
10034 (input_interrupt): Add integer parameter to match prototype
10035 of a signal handler.
10036 (outreg): Use register_data ().
10037 (prepare_resume_reply): Use gdbserver_expedite_regs.
10038 * gdbserver/server.c (main): Dynamically allocate own_buf because
10039 PBUFSIZ is no longer constant. Use registers_to_string () and
10040 registers_from_string ().
10041 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10042 for error (), fatal (), and warning (). Update definition of
10043 PBUFSIZ to use regcache functionality. Add include guard.
10044 * gdbserver/utils.c (fatal): Add missing ``const''.
10045 (warning): New function.
10046
10047 * regformats/regdat.sh: Include "regcache.h" in generated files.
10048 Provide init_registers () function.
10049 * regformats/regdef.h: Add prototype for set_register_cache ().
10050 Add include guard.
10051
10052 * gdbserver/linux-arm-low.c: New file.
10053 * gdbserver/linux-i386-low.c: New file.
10054 * gdbserver/linux-ia64-low.c: New file.
10055 * gdbserver/linux-m68k-low.c: New file.
10056 * gdbserver/linux-mips-low.c: New file.
10057 * gdbserver/linux-ppc-low.c: New file.
10058 * gdbserver/linux-sh-low.c: New file.
10059
10060 * gdbserver/regcache.c: New file.
10061 * gdbserver/regcache.h: New file.
10062
10063 * gdbserver/low-linux.c: Removed obsolete file.
10064
4cc841d0
DJ
100652002-02-14 Daniel Jacobowitz <drow@mvista.com>
10066
10067 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10068 * config/i386/linux.mt: Likewise.
10069 * config/ia64/linux.mt: Likewise.
10070 * config/m68k/linux.mh: Likewise.
10071 * config/powerpc/linux.mh: Likewise.
10072 * config/mips/linux.mt: Likewise.
10073
10074 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10075
10076 * config/i386/i386lynx.mh: Mark gdbserver variables
10077 as (currently) obsolete for this target.
10078 * config/i386/nbsd.mt: Likewise.
10079 * config/i386/nbsdelf.mt: Likewise.
10080 * config/m32r/m32r.mt: Likewise.
10081 * config/m68k/m68klynx.mh: Likewise.
10082 * config/m68k/nbsd.mt: Likewise.
10083 * config/m68k/sun3os4.mh: Likewise.
10084 * config/mips/vr5000.mt: Likewise.
10085 * config/ns32k/nbsd.mt: Likewise.
10086 * config/pa/hppabsd.mh: Likewise.
10087 * config/pa/hppaosf.mh: Likewise.
10088 * config/powerpc/nbsd.mt: Likewise.
10089 * config/rs6000/rs6000lynx.mh: Likewise.
10090 * config/s390/s390.mt: Likewise.
10091 * config/s390/s390x.mt: Likewise.
10092 * config/sparc/sparclynx.mh: Likewise.
10093 * config/sparc/sun4os4.mh: Likewise.
10094 * config/i386/x86-64linux.mt: Likewise.
10095 * config/sparc/linux.mh: Likewise.
10096
a85f51e7
DJ
100972002-02-14 Daniel Jacobowitz <drow@mvista.com>
10098
10099 * configure.tgt: Configure gdbserver only for known working
10100 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10101 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10102 SUBDIRS if it is configured. Update comment for ${nativefile}.
10103 * configure: Regenerated.
10104
65554fef
MS
101052002-02-13 Michael Snyder <msnyder@redhat.com>
10106
670a52db
MS
10107 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10108
6dbdc4a3
MS
10109 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10110 (default_gcore_mach): Just return 0, work around a problem in bfd.
10111 (default_gcore_target): OK to return NULL if exec_bfd is null.
10112 (make_mem_sec): Use a cast, avoid a warning.
10113
10114 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10115 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10116 sizeof (host pointer) != sizeof (target pointer)).
10117 (procfs_make_note_section): Avoid overflow in psargs string.
10118
aaa38bb5 10119 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10120 implementation return an error.
10121
101222002-02-13 Rodney Brown <rbrown64@csc.com.au>
10123
10124 * procfs.c (procfs_make_note_section): Provide a default definition
10125 (for alpha-dec-osf4.0f). Fix typos.
10126
1e4d76e7
EZ
101272002-02-13 Elena Zannoni <ezannoni@redhat.com>
10128
10129 * linux-proc.c: Add include of regcache.h.
10130 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10131
b6d1a1d5
AC
101322002-02-13 Andrew Cagney <ac131313@redhat.com>
10133
10134 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10135 * memattr.c (create_mem_region): Disallow useless empty region.
10136 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10137 non-overlapping.
b6d1a1d5 10138
6c6ea35e
MC
101392002-02-13 Michael Chastain <mec@shout.net>
10140
10141 * defs.h: Kill CONST_PTR.
10142 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10143 * c-lang.c (c_builtin_types): Likewise.
10144 * ch-lang.c (ch_builtin_types): Likewise.
10145 * f-lang.c (f_builtin_types): Likewise.
10146 * language.c (unknown_builtin_types): Likewise.
10147 * m2-lang.c (m2_builtin_types): Likewise.
10148 * p-lang.c (pascal_builtin_types): Likewise.
10149 * scm-lang.c (c_builtin_types): Likewise.
10150
3e0b0f48
KS
101512002-02-13 Keith Seitz <keiths@redhat.com>
10152
10153 * arm-tdep.h (arm_get_next_pc): Add declaration.
10154
67255d04
RE
101552002-02-13 Richard Earnshaw <rearnsha@arm.com>
10156
10157 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10158 with other related struct-returning functions.
10159 (arm_extract_struct_value_address): New function.
10160 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10161 initialize float_format, double_format and long_double_format as
10162 appropriate to the endianness of the target.
10163 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10164 (arm_use_struct_convention): Delete declaration.
10165 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10166
079777f6
KS
101672002-02-13 Keith Seitz <keiths@redhat.com>
10168
10169 * defs.h (core_addr_to_string_nz): New function.
10170
34588f23
MK
101712002-02-13 Mark Kettenis <kettenis@gnu.org>
10172
10173 Apply missing bits of 2002-01-15 patch.
10174 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10175 (fill_fpregset): Use i387_fill_fsave.
10176
49b563f9
KS
101772002-02-12 Keith Seitz <keiths@redhat.com>
10178
49b563f9
KS
10179 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10180 (core_addr_to_string_nz): New function.
10181
aeb98c60
RE
101822002-02-11 Richard Earnshaw <rearnsha@arm.com>
10183
10184 * arm-linux-nat.c: Really include arm-tdep.h.
10185 * config/arm/tm-linux.h (struct type, struct value): Declare.
10186
65554fef
MS
101872002-02-11 Michael Snyder <msnyder@redhat.com>
10188
10189 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10190 (gcore section): Ifdef for Solaris and Unixware only.
10191 (procfs_do_thread_registers): Unixware needs one lwpstatus
10192 per thread (not one prstatus or pstatus).
10193 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10194 not over all gdb threads. For unixware, call elfcore_write_pstatus
10195 once before iterating over threads.
10196
34e8f22d
RE
101972002-02-11 Richard Earnshaw <rearnsha@arm.com>
10198
10199 * arm-tdep.h: New file.
10200 * arm-tdep.c: Include arm-tdep.h.
10201 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10202 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10203 (arm_print_float_info, arm_register_type, convert_to_extended)
10204 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10205 (arm_extract_return_value, arm_register_name): Make static.
10206 (arm_software_single_step): Similarly. Fix types in declaration.
10207 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10208 (arm_store_return_value, arm_store_struct_return): New functions.
10209 (arm_gdbarch_init): Register the above functions. Also register
10210 call_dummy_start_offset, sizeof_call_dummy_words,
10211 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10212 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10213 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10214 prologue_cache.saved_regs here, rather than ...
10215 (_initialize_arm_tdep): ... here.
10216 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10217 declarations.
10218 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10219 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10220 (arm_print_float_info, arm_register_type, convert_to_extended)
10221 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10222 (arm_extract_return_value, arm_register_name): Delete declarations.
10223 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10224 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10225 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10226 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10227 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10228 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10229 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10230 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10231 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10232 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10233 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10234 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10235 interface.
10236 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10237 * remote-rdi.c remote-rdp.c: Likewise.
10238 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10239 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10240 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10241 definition.
10242
10243 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10244 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10245 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10246 from non-ARM_ prefixed definitions.
10247 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10248 all uses of above.
10249 * remote-rdi.c remote-rdp.c: Likewise.
10250 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10251
148754e5
RE
102522002-02-11 Richard Earnshaw <rearnsha@arm.com>
10253
10254 * arm-tdep.c (arm_frameless_function_invocation)
10255 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10256 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10257 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10258 (arm_pop_frame, arm_get_next_pc): Make static.
10259 (arm_gdbarch_init): Register above in gdbarch structure.
10260 (arm_read_fp): Renamed from arm_target_read_fp.
10261 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10262 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10263 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10264 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10265 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10266 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10267 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10268 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10269 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10270 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10271 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10272
434d2d4f
DJ
102732002-02-10 Daniel Jacobowitz <drow@mvista.com>
10274
10275 * symtab.c (compare_search_syms): New function.
10276 (sort_search_symbols): New function.
10277 (search_symbols): Sort symbols after searching rather than
10278 before.
10279
55241689
AC
102802002-02-10 Andrew Cagney <ac131313@redhat.com>
10281
10282 * NEWS: Linux -> GNU/Linux.
10283
028c194b
AC
102842002-02-10 Andrew Cagney <ac131313@redhat.com>
10285
10286 * gdbarch.sh: For for level one methods, disallow a definition
10287 when partially multi-arched. Add comments explaining rationale.
10288 * gdbarch.h: Re-generate.
10289
6acf50cd
AC
102902002-02-10 Andrew Cagney <ac131313@redhat.com>
10291
10292 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10293 multi-arch partial.
aaa38bb5 10294
50248794
AC
102952002-02-10 Andrew Cagney <ac131313@redhat.com>
10296
10297 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10298 field. Use diff -u.
10299 * gdbarch.c: Re-generate.
10300
c30e0066
AC
103012002-02-10 Andrew Cagney <ac131313@redhat.com>
10302
9b56c5f3 10303 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10304 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10305 partial.
10306
6e6d6484
AC
103072002-02-10 Andrew Cagney <ac131313@redhat.com>
10308
10309 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10310 multi-arch partial.
10311 (PUSH_ARGUMENTS): Switch to using predefault.
10312 * gdbarch.c: Regenerate.
10313
c203844d
AC
103142002-02-10 Andrew Cagney <ac131313@redhat.com>
10315
10316 * valops.c (PUSH_ARGUMENTS): Delete definition.
10317 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10318 partial. Default to default_push_arguments.
10319 * gdbarch.h, gdbarch.c: Regenerate.
10320
b5a2688f
AC
103212002-02-09 Andrew Cagney <ac131313@redhat.com>
10322
10323 * defs.h (throw_exception): Rename return_to_top_level. Update
10324 comments.
10325 * utils.c (error_stream, internal_verror, quit): Ditto.
10326 * top.c (throw_exception, catcher): Ditto.
10327 * sparclet-rom.c (sparclet_load): Ditto.
10328 * remote.c (interrupt_query, minitelnet): Ditto.
10329 * remote-sds.c (interrupt_query): Ditto.
10330 * remote-mips.c (mips_error, mips_kill): Ditto.
10331 * ocd.c (interrupt_query): Ditto.
10332 * monitor.c (monitor_interrupt_query): Ditto.
10333 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10334 * target.h: Update comment.
aaa38bb5 10335
b5a2688f 10336 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10337
2fa5c1e0
AC
103382002-02-09 Andrew Cagney <ac131313@redhat.com>
10339
10340 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10341 default_double_format.
10342 * gdbarch.h, gdbarch.c: Re-generate.
10343 * findvar.c (floatformat_unknown): Delete variable definition.
10344 * doublest.h (floatformat_unknown): Delete variable declaration.
10345
da966255
JB
103462002-02-09 Jim Blandy <jimb@redhat.com>
10347
10348 * stabsread.c (read_type): Add code to parse Sun's syntax for
10349 prototyped function types.
10350
123a4891
AC
103512002-02-09 Andrew Cagney <ac131313@redhat.com>
10352
10353 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10354 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10355
fb39c8f3
PS
103562002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10357
10358 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10359 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10360 now _initialize_xcoffsolib gets called again and overrides the
10361 commands from solib.c in a native configuration.
10362
0b87a11d
MK
103632002-02-09 Mark Kettenis <kettenis@gnu.org>
10364
10365 * doublest.c (store_typed_floating): Don't try to return a value.
10366 Fixes PR gdb/290.
10367
bdc2fc72
JB
103682002-02-08 Jim Blandy <jimb@redhat.com>
10369
10370 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10371 is prototyped and has no arguments, print its argument list as
10372 `(void)'.
10373
da69bbcf
CD
103742002-02-08 Chris Demetriou <cgd@broadcom.com>
10375
10376 * MAINTAINERS (write-after-approval): Add myself.
10377 (paper-trail): I've escaped!
aaa38bb5 10378
b69571f5
CF
103792002-02-08 Christopher Faylor <cgf@redhat.com>
10380
10381 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10382 changes.
10383 (_initialize_check_for_gdb_ini): Ditto.
10384
f6871398
MH
103852002-02-08 Martin M. Hunt <hunt@redhat.com>
10386
10387 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10388 xaprintf -> xasprintf.
10389
4e52d31c
PM
103902002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10391
10392 * win32-nat.c: Remove use of printf and sprintf functions.
10393
39bbf761
RE
103942002-02-08 Richard Earnshaw <rearnsha@arm.com>
10395
10396 * arm-tdep.c (arm_frame_chain_valid): Make static.
10397 (arm_push_arguments): Likewise.
10398 (arm_gdbarch_init): New function.
10399 (_initialize_arm_tdep): Call it.
10400 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10401 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10402 (FRAME_CHAIN_VALID): Delete.
10403 (arm_frame_chain_valid): Delete declaration.
10404 (PUSH_ARGUMENTS): Delete.
10405 (arm_push_arguments): Delete declaration.
10406 (CALL_DUMMY_P): Delete.
10407
9c9532c9
CV
104082002-02-08 Andrew Cagney <ac131313@redhat.com>
10409 Corinna Vinschen <vinschen@redhat.com>
10410
10411 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10412 on builtin float types.
10413
4e8f7a8b
DJ
104142002-02-08 Daniel Jacobowitz <drow@mvista.com>
10415
10416 * utils.c: Include <curses.h> before "bfd.h".
10417 * tui/tui-hooks.c: Likewise.
10418 * tui/tui.c: Likewise.
10419 * tui/tuiCommand.c: Likewise.
10420 * tui/tuiData.c: Likewise.
10421 * tui/tuiDataWin.c: Likewise.
10422 * tui/tuiDisassem.c: Likewise.
10423 * tui/tuiGeneralWin.c: Likewise.
10424 * tui/tuiIO.c: Likewise.
10425 * tui/tuiLayout.c: Likewise.
10426 * tui/tuiRegs.c: Likewise.
10427 * tui/tuiSource.c: Likewise.
10428 * tui/tuiSourceWin.c: Likewise.
10429 * tui/tuiStack.c: Likewise.
10430 * tui/tuiWin.c: Likewise.
10431
cd4bffcf
EZ
104322002-02-07 Elena Zannoni <ezannoni@redhat.com>
10433
10434 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10435 to include space for pseudoregs as well. Update loops accordingly.
10436 (sh_fp_frame_init_saved_regs): Ditto.
10437 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10438
26806ce2
AC
104392002-02-07 Andrew Cagney <ac131313@redhat.com>
10440
10441 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10442 Add Richard Earnshaw to Arm maintainers.
10443
97fdab62
AC
104442002-02-07 Andrew Cagney <ac131313@redhat.com>
10445
a6b98203
AC
10446 * defs.h (warning_begin): Delete declaration.
10447
97fdab62
AC
10448 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10449 Delete macro.
10450
78b29b40
MS
104512002-02-07 Michael Snyder <msnyder@redhat.com>
10452
aaa38bb5 10453 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10454 Logic bug, remove misplaced else.
10455
d8849953
KD
104562002-02-07 Klee Dienes <klee@apple.com>
10457
10458 * fork-inferior.c (fork_inferior): Add '!' to the list of
10459 characters that need to be quoted when building a string for the
10460 shell. Quote '!' specifically with a backslash, since CSH chokes
10461 when trying to evaluate "str!str".
aaa38bb5 10462
095778a0
NC
104632002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10464
10465 * rdi-share/host.h: Only provide a typedef for bool if it is not
10466 defined.
10467
1900040c
MS
104682002-02-04 Michael Snyder <msnyder@redhat.com>
10469
10470 * breakpoint.h (enum bptype): Add new overlay event bp type.
10471 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10472
1900040c
MS
10473 * breakpoint.c (create_internal_breakpoint): New function.
10474 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10475 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10476 (create_thread_event_breakpoint): Ditto.
10477 (create_solib_event_breakpoint): Ditto.
10478 (create_overlay_event_breakpoint): New function.
10479 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10480 (update_breakpoints_after_exec): Delete and re-initialize
10481 overlay event breakpoints after an exec. Add FIXME comment
10482 about longjmp breakpoint.
10483 (print_it_typical): Ignore overlay event breakpoints.
10484 (print_one_breakpoint): Ditto.
10485 (mention): Ditto.
10486 (bpstat_what): Do not stop for overlay event breakpoints.
10487 (delete_breakpoint): Don't delete overlay event breakpoints.
10488 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10489 (breakpoint_re_set): Re-create overlay event breakpoint.
10490
10491 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10492 (overlay_manual_command): Disable overlay breakpoints.
10493 (overlay_off_command): Disable overlay breakpoints.
10494
082fc60d
RE
104952002-02-06 Richard Earnshaw <rearnsha@arm.com>
10496
10497 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10498 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10499 to here from config/tm-arm.h.
10500 (coff_sym_is_thumb): Make static.
10501 (arm_elf_make_msymbol_special): New function.
10502 (arm_coff_make_msymbol_special): New function.
10503 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10504 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10505 (coff_sym_is_thumb): Delete declaration.
10506 (arm_elf_make_msymbol_special): Declare.
10507 (arm_coff_make_msymbol_special): Declare.
10508 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10509 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10510
039c5766
RE
105112002-02-06 Richard Earnshaw <rearnsha@arm.com>
10512
10513 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10514
105152002-02-06 Richard Earnshaw <rearnsha@arm.com>
10516
10517 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10518 * gdbarch.c gdbarch.h: Regenerate.
10519 * arch-utils.c (default_print_float_info): New function.
10520 * arch-utils.h (default_print_float_info): Prototype it.
10521 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10522 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10523 (PRINT_FLOAT_INFO): Document it.
10524
10525 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10526 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10527 (PRINT_FLOAT_INFO): Define.
10528
58fa08f0
PM
105292002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10530
aaa38bb5 10531 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10532 Add typecast to sprintf argument to suppress a warning.
10533
7393af7c
PM
105342002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10535
58fa08f0 10536 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10537 to allow easier handling of pass state.
10538 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10539 that gives exception name and address.
10540 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10541 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10542 exceptions added.
aaa38bb5
AJ
10543 (child_continue): Correctly report continue_status.
10544 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10545 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10546 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10547 the exception should be passed to debuggee or not.
10548
6af4589c
MS
105492002-02-05 Michael Snyder <msnyder@redhat.com>
10550
10551 * regcache.c (fetch_register): Call target_fetch_register
10552 only if we don't call FETCH_PSEUDO_REGISTER.
10553 (store_register): Call target_store_register only if we
10554 don't call STORE_PSEUDO_REGISTER.
10555
a2cf933a
EZ
105562002-02-05 Elena Zannoni <ezannoni@redhat.com>
10557
10558 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10559 ELF_MAKE_MSYMBOL_SPECIAL.
10560 * gdbarch.c, gdbarch.h: Regenerate.
10561 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10562 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10563 * elfread.c (elf_symtab_read): Compile use of
10564 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10565 multiarched.
10566 * coffread.c (coff_symtab_read): Ditto, for
10567 COFF_MAKE_MSYMBOL_SPECIAL.
10568
6bb7be43
JB
105692002-02-05 Jim Blandy <jimb@redhat.com>
10570
10571 * solib-svr4.c (svr4_truncate_ptr): New function.
10572 (svr4_relocate_section_addresses): Do the address arithmetic with
10573 the appropriate truncation for target addresses, even when
10574 CORE_ADDR is larger than a target address.
10575
e18651ec
DJ
105762002-02-05 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10579 to (int *).
10580
6b2725be
DJ
105812002-02-05 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10584 code.
10585
fca9e603
DJ
105862002-02-05 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10589
6c537a52
DJ
105902002-02-05 Daniel Jacobowitz <drow@mvista.com>
10591
10592 * gdbserver/linux-low.c: Remove unused include files.
10593
d844cde6
DJ
105942002-02-05 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10597 (read_inferior_memory): Use it.
10598 (write_inferior_memory): Likewise.
10599
d07c63e7
DJ
106002002-02-05 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10603 grubbing through sys_errlist.
10604
da6d8c04
DJ
106052002-02-05 Daniel Jacobowitz <drow@mvista.com>
10606
10607 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10608
5b421780
PM
106092002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10610 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10611
9f60d481
AC
106122002-02-04 Andrew Cagney <ac131313@redhat.com>
10613
10614 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10615 (do_sfunc, set_cmd_sfunc): New functions.
10616
10617 * command.h (struct cmd_list_element): Add field func.
10618 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10619 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10620 * cli/cli-decode.h: Ditto.
10621
10622 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10623 (help_all, help_cmd_list): Ditto.
10624 (find_cmd, complete_on_cmdlist): Ditto.
10625 * top.c (execute_command): Ditto.
10626
10627 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10628 function.sfunc.
10629
10630 * infcmd.c (notice_args_read): Fix function signature.
10631
10632 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10633 * cli/cli-decode.c (add_set_cmd): Ditto.
10634 * utils.c (initialize_utils): Ditto.
10635 * maint.c (_initialize_maint_cmds): Ditto.
10636 * infrun.c (_initialize_infrun): Ditto.
10637 * demangle.c (_initialize_demangler): Ditto.
10638 * remote.c (add_packet_config_cmd): Ditto.
10639 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10640 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10641 * proc-api.c (_initialize_proc_api): Ditto.
10642 * kod.c (_initialize_kod): Ditto.
10643 * valprint.c (_initialize_valprint): Ditto.
10644 * top.c (init_main): Ditto.
10645 * infcmd.c (_initialize_infcmd): Ditto.
10646 * corefile.c (_initialize_core): Ditto.
10647 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10648 * arch-utils.c (initialize_current_architecture): Ditto.
10649 (_initialize_gdbarch_utils): Ditto.
10650 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10651
10652 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10653 * wince.c (_initialize_inftarg): Ditto.
10654 * symfile.c (_initialize_symfile): Ditto.
10655 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10656 * language.c (_initialize_language): Ditto.
10657 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10658
f9ba0717
MS
106592002-02-04 Michael Snyder <msnyder@redhat.com>
10660
10661 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10662
0c74b2a7
DJ
106632002-02-04 Daniel Jacobowitz <drow@mvista.com>
10664
10665 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10666 Add rules for building the register data files.
10667
c638789f
DJ
106682002-02-04 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * regformats/regdat.sh: Add braces to the definition of
10671 expedite_regs_${arch}.
10672
db253027
DJ
106732002-02-04 Daniel Jacobowitz <drow@mvista.com>
10674
10675 * regformats/regdef.h (struct reg): Add comment describing the
10676 requirements for offset and size fields.
10677
206be19c
AS
106782002-02-04 Andreas Schwab <schwab@suse.de>
10679
10680 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10681 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10682
181c1381
RE
106832002-02-04 Richard Earnshaw <rearnsha@arm.com>
10684
10685 * gdbarch.sh (copyright): Update years in generated header.
10686 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10687 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10688 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10689 * dbxread.c: Likewise.
10690 * dwarfread.c: Likewise.
10691 * elfread.c: Likewise.
10692 * somread.c: Likewise.
10693
10694 * arm-tdep.c (arm_smash_text_address): New function.
10695 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10696
fa4ba8da
PM
106972002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10698
10699 Add support for hardware watchpoints on win32 native.
aaa38bb5 10700 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10701 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10702 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10703 of debug registers.
10704 (debug_registers_changed): New variable. Reflects when debug registers
10705 are changed and need to be written to inferior.
aaa38bb5 10706 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10707 was set, used when new threads are created.
10708 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10709 i386-nat code.
10710 (thread_rec): Set dr array if id is the thread of current_event .
10711 (child_continue, child_resume): Change the debug registers for all
10712 threads if debug_registers_changed.
10713 (child_add_thread): Change the debug registers if debug_registers_used.
10714 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10715 Link nm.h to new nm-cygwin.h file.
10716 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10717 of hardware registers.
10718
a73c86fb
AC
107192002-02-03 Andrew Cagney <ac131313@redhat.com>
10720
10721 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10722 Restore behavour broken by 2002-01-20 Andrew Cagney
10723 <ac131313@redhat.com> IEEE_FLOAT removal.
10724
acf5ed49
DJ
107252002-02-03 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * c-valprint.c (c_val_print): Pass a proper valaddr to
10728 cp_print_class_method.
10729 * valops.c (search_struct_method): If there is only one method
10730 and args is NULL, return that method.
10731
493d28d5
DJ
107322002-02-03 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10735 accessing tag_name directly.
10736
7495dfdb
DJ
107372002-02-03 Daniel Jacobowitz <drow@mvista.com>
10738
10739 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10740 of accessing tag_name directly.
10741
dd6bda65
DJ
107422002-02-03 Daniel Jacobowitz <drow@mvista.com>
10743
10744 PR gdb/280
10745 * gdbtypes.c (replace_type): New function.
10746 * gdbtypes.h (replace_type): Add prototype.
10747 * stabsread.c (read_type): Use replace_type.
10748
88fe217c
RE
107492002-02-03 Richard Earnshaw <rearnsha@arm.com>
10750
10751 * Makefile.in (memattr.o): Add missing dependencies rule.
10752
e5d66720
PS
107532002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10754
10755 * breakpoint.c (break_at_finish_command): Really export.
10756 (break_at_finish_at_depth_command): Ditto.
10757 (tbreak_at_finish_command): Ditto.
10758 * hppa-tdep.c: Include completer.h.
10759 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10760 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10761
fffee0be
AC
107622002-02-01 Andrew Cagney <ac131313@redhat.com>
10763
10764 * utils.c (do_write): New function.
10765 (error_stream): Rewrite combining the code from error_begin and
10766 verror.
10767 (verror): Rewrite using error_stream.
10768 (error_begin): Delete function.
10769
255e7dbf
AC
107702002-02-01 Andrew Cagney <ac131313@redhat.com>
10771
10772 * utils.c (error_begin): Make static.
10773 * defs.h (error_begin): Delete declaration.
10774
10775 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10776 (decode_line_1): Use cplusplus_error instead of error_begin,
10777 cplusplus_hint and return_to_top_level.
10778 * coffread.c (coff_symfile_read): Use error instead of error_begin
10779 and return_to_top_level.
10780 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10781
ddfe3c15
AC
107822002-02-01 Andrew Cagney <ac131313@redhat.com>
10783
10784 * language.h (type_error, range_error): Make string parameter
10785 constant.
10786 * language.c (warning_pre_print): Delete extern declaration.
10787 * dwarfread.c (warning_pre_print): Ditto.
10788 * language.c (type_error, range_error): Rewrite to use verror and
10789 vwarning instead of warning_begin.
10790
03ac34d5
MS
107912002-02-01 Michael Snyder <msnyder@redhat.com>
10792
261c4ca2
MS
10793 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10794 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10795
e00d1dc8
AC
107962002-02-01 Andrew Cagney <ac131313@redhat.com>
10797
10798 * command.h (NO_FUNCTION): Delete macro.
10799 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10800 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10801 * tracepoint.c (_initialize_tracepoint): Ditto.
10802 * cli/cli-decode.c (add_set_cmd): Ditto.
10803 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10804
76b79d6e
DJ
108052002-02-01 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10808 Update ``this'' pointer when calling virtual functions.
10809
799f9e91
MS
108102002-02-01 Michael Snyder <msnyder@redhat.com>
10811
c7bd442c 10812 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10813 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10814
3cf384d4
DJ
108152002-02-01 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * regformats/reg-arm.dat: New file.
10818 * regformats/reg-i386.dat: New file.
10819 * regformats/reg-ia64.dat: New file.
10820 * regformats/reg-m68k.dat: New file.
10821 * regformats/reg-mips.dat: New file.
10822 * regformats/reg-ppc.dat: New file.
10823 * regformats/reg-sh.dat: New file.
10824 * regformats/regdef.h: New file.
10825 * regformats/regdat.sh: New file.
10826
0defa245
RE
108272002-02-01 Richard Earnshaw <reanrsha@arm.com>
10828
10829 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10830 (arm_frame_args_address, arm_frame_locals_address): New functions.
10831 (arm_frame_num_args): New function.
10832 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10833 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10834 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10835
405f26e6
MS
108362002-01-31 Michael Snyder <msnyder@redhat.com>
10837
502fd408
MS
10838 * breakpoint.c (break_at_finish_command): Export.
10839 (break_at_finish_at_depth_command): Export.
10840 (tbreak_at_finish_command): Export.
d6020d45 10841 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10842 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10843 "txbreak" commands, which are HPPA specific.
502fd408 10844
7d35e135
MS
10845 * printcmd.c (disassemble_command): Remove an ancient
10846 artifact of an old merge.
10847
aaa38bb5 10848 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10849 Define enum constant values for overlay mode.
10850 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10851 (overlay_is_mapped, overlay_auto_command,
10852 overlay_manual_command): Ditto.
d874f1e2 10853
aaa38bb5
AJ
10854 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10855 breakpoint_here_p, breakpoint_inserted_here_p,
10856 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10857 describe_other_breakpoints, check_duplicates, clear_command):
10858 Coding standard fixes.
10859
8add0441 10860 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10861 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10862 code: check bfd SEC_READONLY flag for section.
10863
e351066e
AC
108642002-01-31 Andrew Cagney <ac131313@redhat.com>
10865
7d35e135 10866 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10867
8a48e967
DJ
108682002-01-30 Daniel Jacobowitz <drow@mvista.com>
10869
10870 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10871 data symbols, since we search based on textlow and texthigh.
10872 (find_pc_sect_symtab): Likewise.
10873
f5a96129
AC
108742002-01-30 Andrew Cagney <ac131313@redhat.com>
10875
10876 * defs.h (vwarning): Declare.
f5a96129
AC
10877 * utils.c (vwarning): New function.
10878 (warning): Call vwarning.
10879 (warning_begin): Delete function.
10880
10881 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10882 the warning message.
10883 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10884 warning_begin.
10885
cefd4ef5
MS
108862002-01-30 Michael Snyder <msnyder@redhat.com>
10887
1a703748
MS
10888 * NEWS: Mention "set trust-readonly-sections" command.
10889 Mention generate-core-file command.
cefd4ef5 10890
3a11626d
MS
108912002-01-15 Michael Snyder <msnyder@redhat.com>
10892
10893 * target.c: New command, "set trust-readonly-sections on".
10894 (do_xfer_memory): Honor the suggestion to trust readonly sections
10895 by reading them from the object file instead of from the target.
10896 (initialize_targets): Register command "set trust-readonly-sections".
10897
d1c7e53b
AC
108982002-01-29 Andrew Cagney <ac131313@redhat.com>
10899
10900 * parse.c (target_map_name_to_register): Simplify, search regs and
10901 pseudo-regs using a single loop.
10902
e2c9a72c
AC
109032002-01-30 Andrew Cagney <ac131313@redhat.com>
10904
10905 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10906
69824b4e
MK
109072002-01-15 Rodney Brown <rbrown64@csc.com.au>
10908
10909 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10910 * config/i386/i386v42mp.mh: Add i387-nat.o .
10911 * i386v4-nat.c: Include i387-nat.h.
10912 (supply_fpregset): Use i387_supply_fsave.
10913 (fill_fpregset): Use i387_fill_fsave.
10914
6eb69eab
RE
109152002-01-30 Richard Earnshaw <rearnsha@arm.com>
10916
10917 * arm-tdep.c (arm_call_dummy_words): Define.
10918 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10919 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10920 (CALL_DUMMY_WORDS): Define.
10921 (arm_call_dummy_words): Declare.
10922 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10923 (arm_linux_call_dummy_words): Declare.
10924
9852326a
AS
109252002-01-30 Andreas Schwab <schwab@suse.de>
10926
10927 * m68klinux-nat.c: Fix last change to use regcache_collect
10928 instead of referencing registers[] directly.
10929
977a3030
AC
109302002-01-29 Andrew Cagney <ac131313@redhat.com>
10931
10932 * parse.c (target_map_name_to_register): Delete code wrapped in
10933 #ifdef REGISTER_NAME_ALIAS_HOOK.
10934
2076c72b
MS
109352002-01-28 Michael Snyder <msnyder@redhat.com>
10936
10937 * regcache.c (legacy_read_register_gen): Need to be able to
10938 read pseudo-register as well as real register.
10939 (legacy_write_register_gen): Ditto.
10940
8fcc723b
AC
109412002-01-28 Andrew Cagney <ac131313@redhat.com>
10942
10943 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10944 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10945 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10946 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10947 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10948 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10949 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10950 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10951 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10952 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10953 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10954 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10955 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10956 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10957 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10958 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10959 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10960 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10961 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10962 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10963
afe64c1a
AC
109642002-01-28 Andrew Cagney <ac131313@redhat.com>
10965
10966 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10967 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10968 (initialize_current_architecture): Update target_byte_order using
10969 information from BFD.
aaa38bb5 10970 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10971 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10972
75bc7ddf
AC
109732002-01-28 Andrew Cagney <ac131313@redhat.com>
10974
10975 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10976 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10977
10978 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10979 #ifdef INVALID_FLOAT.
10980 * infcmd.c (do_registers_info): Ditto.
10981 * values.c (unpack_double): Ditto. Add comment.
10982
10983 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10984 already commented out.
10985
0280a90a
AS
109862002-01-26 Andreas Schwab <schwab@suse.de>
10987
10988 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10989 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10990 registers and add support for PTRACE_GETREGS.
10991
7072a954
AC
109922002-01-24 Andrew Cagney <ac131313@redhat.com>
10993
10994 GDB 5.1.1 released from 5.1 branch.
10995 * NEWS: Add 5.1.1 news.
10996 * README: Sync with 5.1 branch.
10997
86f902e0
FF
109982002-01-23 Fred Fish <fnf@redhat.com>
10999
11000 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11001 stabstring on initial malloc. Reallocing will copy it for us,
11002 if necessary.
11003
8af51c36
EZ
110042002-01-23 Elena Zannoni <ezannoni@redhat.com>
11005
aaa38bb5 11006 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
11007 (HFILES_NO_SRCDIR): Remove hpread.h.
11008 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11009 (hpread.o): Update dependencies.
11010 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11011
11012 * hp-psymtab-read.c: Remove file.
11013 * hp-symtab-read.c: Remove file.
11014 * hpread.h: Remove file.
11015
11016 * hpread.c: Merge all contents of hp-psymtab-read.c,
11017 hp-symtab-read.c and hpread.h into this file, as it was prior to
11018 January 1999.
11019
11020 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 11021 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
11022 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11023 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11024
dc5cfeb6
EZ
110252002-01-23 Elena Zannoni <ezannoni@redhat.com>
11026
11027 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11028 fill_gregset): Call gdbarch_tdep() just once, assign result to
11029 variable and use that, instead of calling the function several
11030 times.
11031
ea87b71b
AO
110322002-01-24 Alexandre Oliva <aoliva@redhat.com>
11033
11034 * configure.host: Accept sparcv9 as alias for sparc64.
11035 * configure.tgt: Likewise.
11036
13fc0c2f
KB
110372002-01-22 Kevin Buettner <kevinb@redhat.com>
11038
11039 * solib-aix5.c (build_so_list_from_mapfile)
11040 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11041 arguments is not reversed.
11042 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11043 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 11044
7bd872fe
EZ
110452002-01-22 Elena Zannoni <ezannoni@redhat.com>
11046
11047 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11048 modified version of obsolete sh_fetch_pseudo_register.
11049 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11050 (sh4_register_read): New function.
11051 (sh_pseudo_register_write): New function. Renamed and modified
11052 version of obsolete sh_store_pseudo_register.
11053 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11054 (sh4_register_write): New function.
11055 (sh_gdbarch_init): Remove setting of gdbarch function
11056 fetch_pseudo_register and store_pseudo_register. Remove setting of
11057 register_convert_to_raw, register_convert_to_virtual,
11058 register_convertible.
11059 (sh_sh4_register_convertible): Delete. No longer needed. All is
11060 taken care by architecture specific functions
11061 register_read/register_write.
11062 (sh_sh4_register_convert_to_virtual): Make static.
11063 (sh_sh4_register_convert_to_raw): Ditto.
11064
069e84fd
AC
110652002-01-22 Andrew Cagney <ac131313@redhat.com>
11066
11067 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11068 (floatformat_is_nan, floatformat_mantissa): Ditto.
11069
11070 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11071 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11072 builtin_type_ieee_double_little,
11073 builtin_type_ieee_double_littlebyte_bigword,
11074 builtin_type_m68881_ext, builtin_type_i960_ext,
11075 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11076 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11077 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11078 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11079
211a4f69
CV
110802002-01-22 Corinna Vinschen <vinschen@redhat.com>
11081
11082 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11083 parameter. Set frameless flag if it exists and depended of
11084 whether the scanned function is frameless or not.
11085 (xstormy16_skip_prologue): If function is frameless, return
11086 result of xstormy16_scan_prologue().
11087 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11088 call.
11089
f81353e4
EZ
110902002-01-21 Elena Zannoni <ezannoni@redhat.com>
11091
11092 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11093 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11094 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11095 sh_sh4_register_byte, sh_sh4_register_raw_size,
11096 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11097 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11098 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11099 sh_store_pseudo_register, sh_do_pseudo_register): Call
11100 gdbarch_tdep() just once, assign result to variable and use that,
11101 instead of calling the function several times.
11102
63c73a17
MK
111032002-01-20 Mark Kettenis <kettenis@gnu.org>
11104
11105 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11106 macros instead of LAST_FPU_CTRL_REGNUM.
11107 (store_register): Likewise.
11108
39ad761d
JB
111092002-01-21 Jim Blandy <jimb@redhat.com>
11110
11111 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11112 is up-to-date before running the program, not just when a program
11113 exits.
11114
3d74b771
FF
111152002-01-21 Fred Fish <fnf@redhat.com>
11116
11117 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11118 when we have found all instructions we are looking for.
11119
966fbf70
RE
111202002-01-21 Richard Earnshaw <rearnsha@arm.com>
11121
11122 * arm-tdep.c (arm_register_name): New function.
11123 (arm_registers_names): Make static.
11124 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11125 (arm_register_name): Declare.
11126 (REGISTER_NAME): Use it.
11127
c3b4394c
RE
111282002-01-21 Richard Earnshaw <rearnsha@arm.com>
11129 Kevin Buettner <kevinb@redhat.com>
11130
11131 Convert arm targets to new FRAME interface.
11132 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11133 (arm_frame_find_save_regs): Delete.
11134 (arm_frame_init_saved_regs): New.
11135 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11136 Allocate extra_info as required. Convert all uses of fsr.regs
11137 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11138 to use extra_info.
11139 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11140 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11141 (check_prologue_cache, save_prologue_cache): Likewise.
11142 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11143 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11144 (FRAME_FIND_SAVED_REGS): Delete.
11145 (arm_frame_find_saved_regs): Delete prototype.
11146 (arm_frame_init_saved_regs): New prototype.
11147 (FRAME_INIT_SAVED_REGS): Define.
11148
61d99182
AC
111492002-01-20 Andrew Cagney <ac131313@redhat.com>
11150
11151 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11152
6aaea291
AC
111532002-01-20 Andrew Cagney <ac131313@redhat.com>
11154
11155 From Jeff Law <law@redhat.com>:
11156 * infttrace.c: Include <sys/pstat.h>.
11157 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11158 exec file if the ttrace equivalent fails.
11159
15f698d2
AC
111602002-01-20 Andrew Cagney <ac131313@redhat.com>
11161
11162 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11163 (closeLogFile): Ditto.
11164
f86ddd7c
MC
111652002-01-20 Michael Chastain <mec@shout.net>
11166
11167 * top.c (print_gdb_version): Bump copyright year to 2002.
11168
904507ce
AC
111692002-01-20 Andrew Cagney <ac131313@redhat.com>
11170
11171 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11172 Zannoni and Eli Zaretskii.
11173
d7f0b9ce
DJ
111742002-01-20 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * buildsym.c: Update copyright years.
11177 * c-typeprint.c: Likewise.
11178 * dwarf2read.c: Likewise.
11179 * f-typeprint.c: Likewise.
11180 * gdbtypes.c: Likewise.
11181 * gdbtypes.h: Likewise.
11182 * hp-symtab-read.c: Likewise.
11183 * hpread.c: Likewise.
11184 * mdebugread.c: Likewise.
11185 * p-typeprint.c: Likewise.
11186
3fd3d7d2
AC
111872002-01-20 Andrew Cagney <ac131313@redhat.com>
11188
11189 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11190 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11191 byte-order selectable.
11192 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11193 * arch-utils.c: Ditto.
11194 (set_endian): Ditto.
11195 (set_endian_from_file): Ditto.
11196 * gdbserver/low-sim.c (create_inferior): Ditto.
11197 * gdbarch.sh: Ditto.
11198 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11199 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11200 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11201 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11202 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11203 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11204 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11205 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11206 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11207 macro definition.
11208 * config/mips/tm-wince.h: Remove #undef of macro
11209 TARGET_BYTE_ORDER_SELECTABLE.
11210 * config/sh/tm-wince.h: Ditto.
11211
b02dede2
DJ
112122002-01-20 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11215 member function fields. Add accessor macro
11216 TYPE_FN_FIELD_ARTIFICIAL.
11217 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11218 * c-typeprint.c (c_type_print_base): Skip artificial member
11219 functions.
11220
c3643761
DJ
112212002-01-20 Daniel Jacobowitz <drow@mvista.com>
11222
11223 * f-typeprint.c: Delete unused function f_type_print_args.
11224 * p-typeprint.c: Delete unused function pascal_type_print_args.
11225
8176bb6d
DJ
112262002-01-20 Daniel Jacobowitz <drow@mvista.com>
11227
11228 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11229 comment. Add ``artificial'' to ``union field_location''.
11230
11231 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11232
11233 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11234 * mdebugread.c (parse_symbol): Likewise.
11235 * stabsread.c (define_symbol): Likewise.
11236 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11237 initializing TYPE_FIELD_BITPOS to n (obsolete).
11238 (hpread_doc_function_type): Likewise.
11239 * hpread.c (hpread_function_type): Likewise.
11240
7fd60527
AC
112412002-01-20 Andrew Cagney <ac131313@redhat.com>
11242
11243 * configure.in (host_makefile_frag): Only require a host makefile
11244 fragment when a native build.
11245 * configure: Re-generate.
11246
c2f05ac9
AC
112472002-01-20 Andrew Cagney <ac131313@redhat.com>
11248
11249 * doublest.h (floatformat_from_type): Declare.
11250 * doublest.c (floatformat_from_type): New function.
11251 (convert_typed_floating): Use.
11252
11253 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11254 call to function floatformat_from_type.
11255
11256 * gdbarch.sh (IEEE_FLOAT): Delete.
11257 * gdbarch.h, gdbarch.c: Re-generate.
11258 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11259 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11260 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11261 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11262 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11263 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11264 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11265 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11266 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11267 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11268 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11269 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11270
11271 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11272 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11273 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11274 * sh-tdep.c (sh_gdbarch_init): Ditto.
11275 * mips-tdep.c (mips_gdbarch_init): Ditto.
11276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11277 * cris-tdep.c (cris_gdbarch_init): Ditto.
11278
abf22e64
AJ
112792002-01-20 Jiri Smid <smid@suse.cz>
11280
11281 * configure.host, configure.tgt: Support x86-64.
11282 * NEWS: Note new target x86-64.
11283
b7c4cbf8
AJ
11284 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11285 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11286 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11287 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11288 x86-64-linux-nat.o): Fix dependencies.
11289
82600034
AC
112902002-01-19 Andrew Cagney <ac131313@redhat.com>
11291
11292 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11293 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11294 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11295 * config/sparc/xm-sun4os4.h: Delete file.
11296 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11297
bbe5c628
AC
112982002-01-19 Andrew Cagney <ac131313@redhat.com>
11299
11300 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11301 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11302 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11303 * config/i386/i386lynx.mh (XM_FILE): Delete.
11304 * config/rs6000/xm-rs6000ly.h: Delete file.
11305 * config/sparc/xm-sparclynx.h: Delete file.
11306 * config/m68k/xm-m68klynx.h: Delete file.
11307 * config/i386/xm-i386lynx.h: Delete file.
11308 * config/xm-lynx.h: Delete file.
11309 * config/djgpp/fnchange.lst: Update.
11310
f8453e34
JT
113112002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11312
11313 * alpha-tdep.c (alpha_register_byte): New function.
11314 (alpha_register_raw_size): Ditto.
11315 (alpha_register_virtual_size): Ditto.
11316 (alpha_skip_prologue_internal): Renamed from
11317 alpha_skip_prologue.
11318 (alpha_skip_prologue): New version that calls
11319 alpha_skip_prologue_internal.
11320 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11321 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11322 second argument from alpha_skip_prologue.
11323 (REGISTER_BYTE): Use alpha_register_byte.
11324 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11325 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11326 (FRAMELESS_FUNCTION_INVOCATION): Use
11327 generic_frameless_function_invocation_not.
11328 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11329 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11330
52d9e613
AC
113312002-01-19 Andrew Cagney <ac131313@redhat.com>
11332
11333 * config/mips/xm-news-mips.h: Delete file.
11334 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11335
11336 * config/m88k/xm-m88k.h: Delete file.
11337 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11338 * config/m88k/xm-delta88v4.h: Ditto.
11339 * config/m88k/xm-delta88.h: Ditto.
11340
11341 * config/alpha/xm-fbsd.h: Delete file.
11342 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11343
11344 * config/sparc/xm-sparc.h: Delete file.
11345 * Makefile.in (xm-sun4os4.h): Delete dependency.
11346 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11347 * config/sparc/xm-sun4os4.h: Ditto.
11348 * config/sparc/xm-linux.h: Ditto.
11349
11350 * config/i386/xm-windows.h: Delete file.
11351
2d1b2124
AC
113522002-01-19 Andrew Cagney <ac131313@redhat.com>
11353
11354 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11355 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11356
ee1f65f0
JT
113572002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11358
11359 * alpha-tdep.c (alpha_call_dummy_words): New.
11360 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11361 (CALL_DUMMY_P): Define.
11362 (CALL_DUMMY_WORDS): Define.
11363 (SIZEOF_CALL_DUMMY_WORDS): Define.
11364
98081e55
PB
113652002-01-19 Per Bothner <per@bothner.com>
11366
11367 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11368 isn't NULL, which can happen with some gcj-3.x-produced code.
11369
0d056799
JT
113702002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11371
11372 * alpha-tdep.c (alpha_register_virtual_type): New function.
11373 (alpha_init_frame_pc_first): Ditto.
11374 (alpha_fix_call_dummy): Ditto.
11375 (alpha_store_struct_return): Ditto.
11376 (alpha_extract_struct_value_address): Ditto.
11377 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11378 alpha_register_virtual_type.
11379 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11380 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11381 alpha_extract_struct_value_address.
11382 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11383 (INIT_FRAME_PC): Use init_frame_pc_noop.
11384 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11385
4604bcad
MK
113862002-01-19 Mark Kettenis <kettenis@gnu.org>
11387
11388 * i386gnu-nat.c: Include "i386-tdep.h".
11389 (fetch_fpregs): Simplify code dealing with uninitialized floating
11390 point states such that it doesn't require FP7_REGNUM.
11391
140f9984
JT
113922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11393
abf22e64
AJ
11394 * alpha-tdep.c (frame_extra_info): New.
11395 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11396 frame->extra_info.
11397 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11398 (alpha_frame_saved_pc): Use frame->extra_info.
11399 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11400 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11401 (init_extra_frame_info): Rename to...
11402 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11403 (alpha_print_extra_frame_info): New function.
140f9984
JT
11404 (alpha_frame_locals_address): Ditto.
11405 (alpha_frame_args_address): Ditto.
abf22e64 11406 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11407 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11408 alpha_frame_args_address.
abf22e64 11409 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11410 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11411 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11412 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11413 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11414 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11415
d734c450
JT
114162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11417
11418 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11419 (alpha_cannot_fetch_register): Ditto.
11420 (alpha_cannot_store_register): Ditto.
11421 (alpha_register_convertible): Ditto.
11422 (alpha_use_struct_convention): Ditto.
11423 * config/alpha/tm-alpha.h: Update copyright years.
11424 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11425 (INNER_THAN): Use core_addr_lessthan.
11426 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11427 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11428 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11429 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11430 (FRAME_CHAIN): Remove unnecessary cast.
11431
b4ceaee6
AC
114322002-01-18 Andrew Cagney <ac131313@redhat.com>
11433
11434 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11435 obsolete.
11436
0a65a603
AC
114372002-01-18 Andrew Cagney <ac131313@redhat.com>
11438
11439 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11440 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11441 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11442 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11443 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11444 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11445 * x86-64-linux-nat.c: Ditto.
11446
636a6dfc
JT
114472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11448
abf22e64 11449 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11450 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11451 (REGISTER_NAME): Define.
11452
acceddb6
JT
114532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11454
11455 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11456
ec32e4be
JT
114572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11458
11459 * alpha-tdep.c: Update copyright years.
11460 (alpha_next_pc): New function.
11461 (alpha_software_single_step): Ditto.
11462 * config/alpha/tm-alpha.h: Add prototype for
11463 alpha_software_single_step.
11464
e771a871
JT
114652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11466
11467 * alphabsd-nat.c: Update copyright years.
11468 (fill_gregset): Use regcache_collect.
11469 (fill_fpregset): Likewise.
11470 (fetch_inferior_registers): Only fetch integer registers
11471 if requested to do so.
11472 (store_inferior_registers): Only store integer registers
11473 if requested to do so.
11474
7708fa01
AC
114752002-01-17 Andrew Cagney <ac131313@redhat.com>
11476
11477 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11478 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11479 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11480 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11481 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11482 * config/arm/linux.mh (XDEPFILES): Delete.
11483 * config/arm/nbsd.mh (XDEPFILES): Delete.
11484 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11485 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11486 * config/i386/i386m3.mh (XDEPFILES): Delete.
11487 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11488 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11489 * config/i386/fbsd.mh (XDEPFILES): Delete.
11490 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11491 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11492 * config/i386/i386v4.mh (XDEPFILES): Delete.
11493 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11494 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11495 * config/i386/i386aix.mh (XDEPFILES): Delete.
11496 * config/i386/go32.mh (XDEPFILES): Delete.
11497 * config/i386/cygwin.mh (XDEPFILES): Delete.
11498 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11499 * config/i386/i386mach.mh (XDEPFILES): Delete.
11500 * config/i386/i386v32.mh (XDEPFILES): Delete.
11501 * config/i386/linux.mh (XDEPFILES): Delete.
11502 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11503 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11504 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11505 * config/i386/i386sco.mh (XDEPFILES): Delete.
11506 * config/i386/i386v.mh (XDEPFILES): Delete.
11507 * config/i386/nbsd.mh (XDEPFILES): Delete.
11508 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11509 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11510 * config/i386/symmetry.mh (XDEPFILES): Delete.
11511 * config/i386/obsd.mh (XDEPFILES): Delete.
11512 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11513 * config/ia64/linux.mh (XDEPFILES): Delete.
11514 * config/ia64/aix.mh (XDEPFILES): Delete.
11515 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11516 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11517 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11518 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11519 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11520 * config/m68k/linux.mh (XDEPFILES): Delete.
11521 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11522 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11523 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11524 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11525 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11526 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11527 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11528 * config/m88k/delta88.mh (XDEPFILES): Delete.
11529 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11530 * config/m88k/m88k.mh (XDEPFILES): Delete.
11531 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11532 * config/mips/linux.mh (XDEPFILES): Delete.
11533 * config/mips/irix6.mh (XDEPFILES): Delete.
11534 * config/mips/irix5.mh (XDEPFILES): Delete.
11535 * config/mips/irix4.mh (XDEPFILES): Delete.
11536 * config/mips/irix3.mh (XDEPFILES): Delete.
11537 * config/mips/decstation.mh (XDEPFILES): Delete.
11538 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11539 (NATDEPFILES): Move core-aout.o to here.
11540 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11541 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11542 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11543 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11544 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11545 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11546 * config/pa/hpux11.mh (XDEPFILES): Delete.
11547 * config/powerpc/aix.mh (XDEPFILES): Delete.
11548 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11549 * config/powerpc/linux.mh (XDEPFILES): Delete.
11550 * config/romp/rtbsd.mh: Rename XDEPFILES.
11551 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11552 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11553 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11554 * config/s390/s390.mh (XDEPFILES): Delete.
11555 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11556 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11557 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11558 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11559 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11560 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11561 * config/sparc/linux.mh (XDEPFILES): Delete.
11562 * config/vax/vaxult.mh (XDEPFILES): Delete.
11563 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11564 * Makefile.in (DEPFILES): Remove XDEPFILES.
11565
375fc983
AC
115662002-01-17 Andrew Cagney <ac131313@redhat.com>
11567
11568 * utils.c (internal_verror): Fix comments, default is yes not no.
11569 Update queries to match. Default to quit and dump core.
11570
8926118c
AC
115712002-01-17 Andrew Cagney <ac131313@redhat.com>
11572
11573 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11574 copyright.
11575 * defs.h, event-top.c, gdbcmd.h: Ditto.
11576 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11577 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11578 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11579 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11580 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11581 * mi/mi-main.c:Ditto.
11582
11583 * stack.c, symfile.c: Update copyright.
11584
45b7b345
DJ
115852002-01-17 Daniel Jacobowitz <drow@mvista.com>
11586
db728ff7
DJ
11587 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11588 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11589 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11590 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11591
db728ff7
DJ
115922002-01-17 Daniel Jacobowitz <drow@mvista.com>
11593
11594 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11595 * gdbserver/low-lynx.c (myattach): Likewise.
11596 * gdbserver/low-nbsd.c (myattach): Likewise.
11597 * gdbserver/low-sim.c (myattach): Likewise.
11598 * gdbserver/low-sparc.c (myattach): Likewise.
11599 * gdbserver/low-sun3.c (myattach): Likewise.
11600
11601 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11602
db728ff7 11603 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11604 (main): Handle "--attach".
11605
8de3c354
AC
116062002-01-16 Andrew Cagney <ac131313@redhat.com>
11607
11608 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11609 maintainer.
11610
b0129042
DJ
116112002-01-15 Daniel Jacobowitz <drow@mvista.com>
11612
11613 * c-typeprint.c (is_type_conversion_operator): Add additional
11614 check for non-conversion operators.
11615
ba8679fb 116162002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11617
11618 * linux-proc.c: Add "info proc" command, a la procfs.c.
11619 (read_mapping): New function, abstract and re-use code.
11620 (linux_find_memory_regions): Use new func read_mapping.
11621 (linux_info_proc_cmd): New function, implement "info proc".
11622 (_initialize_linux_proc): Add new command "info proc".
11623
e4f9b4d5
MS
116242002-01-15 Michael Snyder <msnyder@redhat.com>
11625
11626 * symfile.c (generic_load): Use bfd_map_over_sections method
11627 instead of manipulating bfd structure members directly.
11628 (add_section_size_callback): New function, bfd sections callback
11629 used by generic_load.
11630 (load_sections_callback): New function, bfd sections callback
11631 used by generic_load.
11632
08cf96df
EZ
116332002-01-15 Elena Zannoni <ezannoni@redhat.com>
11634
abf22e64 11635 [Based on work by Jim Blandy]
08cf96df
EZ
11636 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11637 (builtin_type_vec128): Export.
11638 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11639 types.
11640 (builtin_type_vec128): New builtin type for 128 bit vector
11641 registers.
11642 (build_gdbtypes): Initialize builtin_type_v16qi and
11643 builtin_type_v8hi. Create the vec128 register builtin type
11644 structure.
11645 (build_builtin_type_vec128): New function.
abf22e64 11646 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11647 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11648 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11649 AltiVec register to new builtin type.
11650
d7242108
DJ
116512001-01-15 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11654 to make_cv_type.
11655
4ee3352d
AC
116562002-01-14 Andrew Cagney <ac131313@redhat.com>
11657
11658 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11659 CLEAN_UP_REGISTER_VALUE.
11660 * regcache.c (supply_register): Update only call.
11661
f015b2e7
AC
116622002-01-14 Andrew Cagney <ac131313@redhat.com>
11663
11664 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11665 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11666 a29k-*-vxworks* targets as obsolete.
11667
356ae49d
MS
116682002-01-14 Michael Snyder <msnyder@redhat.com>
11669
11670 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11671 until we can resolve portability issues.
11672 * gregset.h: Remove references to fpxregs.
11673 * gcore.c (gcore_command): Initialize note_sec to NULL.
11674
ade8f45e
AC
116752002-01-13 Andrew Cagney <ac131313@redhat.com>
11676
11677 * signals.c (target_signal_to_name): Rewrite. Only use
11678 signals[].name when in bounds and non-NULL.
abf22e64 11679
89c49e7a
AC
116802002-01-13 Andrew Cagney <ac131313@redhat.com>
11681
11682 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11683 * signals.c (target_signal_to_name): Verify that SIG is within the
11684 bounds of the signals array.
11685
4daa9f9f
AC
116862002-01-13 Andrew Cagney <ac131313@redhat.com>
11687
11688 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11689
ba4bbdcb
KS
116902002-01-13 Keith Seitz <keiths@redhat.com>
11691
11692 * stack.c (print_frame_info_base): Print the frame's pc
11693 only if when print_frame_info_listing_hook is not defined.
11694
575bbeb6
KS
116952002-01-13 Keith Seitz <keiths@redhat.com>
11696
11697 * varobj.c (varobj_set_value): Make sure that there were no
11698 errors evaluating the object before attempting to set its
11699 value.
11700 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11701 so this offset adjustment is no longer necessary.
11702 (create_child): Don't set the error flag if the child is
11703 a CPLUS_FAKE_CHILD.
11704 (value_of_child): If value_fetch_lazy fails, return NULL
11705 so that callers will be notified that an error occurred.
11706 (c_value_of_variable): Delay check of variable's validity
11707 until later. We actually want all structs and unions to have
11708 the value "{...}".
11709 Do not return "???" for variables which could not be evaluated.
11710 This error condition must be returned to the caller so that it
11711 can get the error condition from gdb.
11712 (cplus_name_of_child): Adjust index for vptr before figuring
11713 out the name of the child.
11714 (cplus_value_of_child): If a child's (real) parent is not valid,
11715 don't even bother trying to give a value for it. Just return
11716 an error. Change all instances in this function.
11717 (cplus_type_of_child): If our parent is one of the "fake"
11718 parents, we need to get at the type of the real parent, and
11719 derive the child's true type using this information.
11720
b76898ab
AC
117212002-01-13 Andrew Cagney <ac131313@redhat.com>
11722
11723 From 2002-01-09 John Marshall <johnm@falch.net>:
11724 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11725 sources.redhat.com, and tweak some related URLs which had
11726 suffered from linkrot.
11727
b6649e88
AC
117282002-01-13 Andrew Cagney <ac131313@redhat.com>
11729
11730 From Jeff law:
11731 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11732 structures passed in registers.
11733
82cc5033
EZ
117342002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11735
11736 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11737 white space which prevented compilation. Reported by DSK
11738 <dsk@student.unsw.edu.au>.
11739
ba5f2f8a
MS
117402002-01-11 Michael Snyder <msnyder@redhat.com>
11741
fbd35540
MS
11742 * symfile.c (build_section_addr_info_from_section_tab):
11743 Use bfd access method instead of manipulating bfd directly.
11744 (syms_from_objfile): Ditto.
11745 (simple_overlay_update_1): Ditto.
11746 (simple_overlay_update): Ditto.
11747 (generic_load): Ditto.
11748 (overlay_unmapped_address): FIXME comment, bfd access methods.
11749 (sections_overlap): FIXME comment, bfd access methods.
11750 (pc_in_mapped_range): FIXME comment, bfd access methods.
11751 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11752 (section_is_mapped): FIXME comment, bfd access methods.
11753 (section_is_overlay): FIXME comment, bfd access methods.
11754
ba5f2f8a
MS
11755 * symfile.c (generic_load): Whitespace and long line cleanups.
11756 Remove duplicate variable, change several local variables to
11757 more appropriate data types.
11758 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11759
17df2af6
AC
117602002-01-12 Andrew Cagney <ac131313@redhat.com>
11761
11762 From Peter Schauer:
11763 * language.c (longest_local_hex_string_custom): Use phex_nz to
11764 convert NUM to a hex string.
11765
ec920329
EZ
117662002-01-12 Elena Zannoni <ezannoni@redhat.com>
11767
11768 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11769 the function.
538a76d6 11770 Update Copyright year.
ec920329 11771
3abd2e01
AC
117722002-01-12 Andrew Cagney <ac131313@redhat.com>
11773
11774 * language.c (longest_raw_hex_string): Delete unused function.
11775
b21b22e0
PS
117762002-01-11 Petr Sorfa <petrs@caldera.com>
11777
11778 * MAINTAINERS (write-after-approval): Add myself.
11779 * dwarf2read.c (read_tag_string_type): Handling of
11780 DW_AT_byte_size.
11781 (read_tag_string_type): FORTRAN fix to prevent propagation of
11782 first string size.
11783 (set_cu_language): Handling of DW_LANG_Fortran95
11784
747fe712
RE
117852002-01-11 Richard Earnshaw <rearnsha@arm.com>
11786
11787 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11788 GETPID(inferior_ptid).
11789 (store_inferior_registers): Likewise.
11790
f1bea926
JM
117912002-01-10 Jason Merrill <jason@redhat.com>
11792
11793 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11794 Fix DW_OP_minus.
11795
ae940673
AC
117962002-01-10 Andrew Cagney <ac131313@redhat.com>
11797
11798 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11799 and bfd/elf32-sh-nbsd.c.
11800
00546b04
MS
118012002-01-10 Michael Snyder <msnyder@redhat.com>
11802
352ed7b4
MS
11803 * NEWS: Mention --pid and corefile/proc-id behavior change.
11804
c18be923
MS
11805 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11806 * gcore.c: Include cli/cli-decode.h instead of command.h.
11807
00546b04
MS
11808 * main.c (captured_main): Add new command line option "--pid".
11809 If the second command line argument (following the symbol-file)
11810 begins with a digit, try to attach to it before trying to open
11811 it as a corefile.
11812 (print_gdb_help): Document the "--pid" argument.
11813
db60ec62
EZ
118142002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11815
11816 * completer.c (command_completer): New function.
11817
11818 * completer.h <command_completer>: Add prototype.
11819
11820 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11821 completer for the "help" command.
11822
39c22d1a
JM
118232002-01-09 Jason Merrill <jason@redhat.com>
11824
11825 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11826
c564377f
MS
118272002-01-09 Michael Snyder <msnyder@redhat.com>
11828
975aec09
MS
11829 * i386-linux-nat.c (fill_fpxregset): Make global.
11830 (store_fpxregset): Ditto.
11831
db4a10fa
MS
11832 * gregset.h (gdb_fpxregset_t): Define.
11833 (supply_fpxregset): Prototype.
11834 (fill_fpxregset): Prototype.
11835
c564377f
MS
11836 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11837
c3d45d70
RE
118382002-01-09 Richard Earnshaw <rearnsha@arm.com>
11839
11840 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11841 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11842 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11843
fcc87af1
AC
118442002-01-09 Andrew Cagney <ac131313@redhat.com>
11845
11846 * MAINTAINERS: Update target maintainer rules so that any
11847 Maintainer can approve a tested patch for a maintenance-only
11848 target.
11849
dd96c05b
RE
118502002-01-09 Richard Earnshaw <rearnsha@arm.com>
11851
d4297db9 11852 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11853
d4297db9 11854 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11855 IN_SIGTRAMP.
11856
145fdc6e
MS
118572002-01-08 Michael Snyder <msnyder@redhat.com>
11858
11859 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11860 real name of the executable, rather than the /proc name.
11861
be4d1333
MS
118622002-01-03 Michael Snyder <msnyder@redhat.com>
11863
11864 Implement a "generate-core-file" command in gdb, save target state.
11865 * gcore.c: New file. Implement new command 'generate-core-file'.
11866 Save a corefile image of the current state of the inferior.
11867 * linux-proc.c: Add linux-specific code for saving corefiles.
11868 * target.h (struct target_ops): Add new target vectors for saving
11869 corefiles; to_find_memory_regions and to_make_corefile_notes.
11870 (target_find_memory_regions): New macro.
11871 (target_make_corefile_notes): New macro.
11872 * target.c (update_current_target): Inherit new target methods.
11873 (dummy_find_memory_regions): New place-holder method.
11874 (dummy_make_corefile_notes): New place-holder method.
11875 (init_dummy_target): Initialize new dummy target vectors.
11876 * exec.c (exec_set_find_memory_regions): New function.
11877 Allow the exec_ops vector for memory regions to be taken over.
11878 (exec_make_note_section): New function, target vector method.
11879 * defs.h (exec_set_find_memory_regions): Export prototype.
11880 * procfs.c (proc_find_memory_regions): New function, corefile method.
11881 (procfs_make_note_section): New function, corefile method.
11882 (init_procfs_ops): Set new target vector pointers.
11883 (find_memory_regions_callback): New function.
11884 (procfs_do_thread_registers): New function.
11885 (procfs_corefile_thread_callback): New function.
11886 * sol-thread.c (sol_find_memory_regions): New function.
11887 (sol_make_note_section): New function.
11888 (init_sol_thread_ops): Initialize new target vectors.
11889 * inftarg.c (inftarg_set_find_memory_regions): New function.
11890 Allow to_find_memory_regions vector to be taken over.
11891 (inftarg_set_make_corefile_notes): New function.
11892 Allow to_make_corefile_notes vector to be taken over.
11893 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11894 interface layer if not target_has_execution (may be a corefile).
11895 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11896 * config/sparc/sun4sol2.mh: Ditto.
11897 * config/alpha/alpha-linux.mh: Ditto.
11898 * config/arm/linux.mh: Ditto.
11899 * config/i386/x86-64linux.mh: Ditto.
11900 * config/ia64/linux.mh: Ditto.
11901 * config/m68k/linux.mh: Ditto.
11902 * config/mips/linux.mh: Ditto.
11903 * config/powerpc/linux.mh: Ditto.
11904 * config/sparc/linux.mh: Ditto.
11905
c6b92abd
MS
119062002-01-07 Michael Snyder <msnyder@redhat.com>
11907
11908 * arm-linux-nat.c: Remove references to regcache.c internal data
11909 (registers[] and register_valid[]).
11910
4b09dc8c
MS
119112002-01-07 Michael Snyder <msnyder@redhat.com>
11912
abf22e64
AJ
11913 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11914 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11915 symbol file and shlibs.
11916 * Makefile.in: Add rule for linux-proc.o.
11917 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11918 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11919 * config/arm/linux.mh: Ditto.
11920 * config/i386/linux.mh: Ditto.
11921 * config/i386/x86-64linux.mh: Ditto.
11922 * config/ia64/linux.mh: Ditto.
11923 * config/m68k/linux.mh: Ditto.
11924 * config/mips/linux.mh: Ditto.
11925 * config/powerpc/linux.mh: Ditto.
11926 * config/sparc/linux.mh: Ditto.
11927
c25b74ac
PM
119282002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11929
11930 * win32-nat.c: Add i386-tdep.h dependency.
11931
94cd915f
MS
119322002-01-07 Michael Snyder <msnyder@redhat.com>
11933
c7cccb76
MS
11934 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11935 instead of bfd_get_arch_size. Don't bail out just because
11936 there's no exec_bfd.
abf22e64 11937
34c0bd93
MS
11938 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11939 * p-valprint.c (pascal_object_print_value): Ditto.
11940 * somread.c (som_symtab_read): Ditto.
11941 * symfile.c (simple_free_overlay_region_table): Ditto.
11942 * valops.c (value_assign): Ditto.
11943
21c1c920
MS
11944 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11945 use tilde_expand and strerror for opening save-tracepoints file.
11946
5bbd998e
MS
11947 * thread-db.c (thread_db_new_objfile): Indendation fix.
11948
94cd915f
MS
11949 * infptrace.c (GDB_MAX_ALLOCA): New define.
11950 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11951 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11952 can be overridden with whatever value is appropriate to the host).
11953 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11954 alloca to allocate potentially large buffer.
11955 * rs6000-nat.c (child_xfer_memory): Ditto.
11956 * symm-nat.c (child_xfer_memory): Ditto.
11957 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11958
494e8a93
JSC
119592002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11960
11961 From Nick Clifton <nickc@redhat.com>
11962 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11963
d0e1d48e
MS
119642002-01-07 Michael Snyder <msnyder@redhat.com>
11965
abf22e64 11966 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11967 Don't use exec_bfd if it's NULL.
11968
290b2c7a
MK
119692002-01-06 Mark Kettenis <kettenis@gnu.org>
11970
abf22e64 11971 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11972
aef21287
AC
119732002-01-06 Andrew Cagney <ac131313@redhat.com>
11974
11975 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11976 * gnu-nat.c: Ditto.
11977
30efa627
AC
119782002-01-06 Andrew Cagney <ac131313@redhat.com>
11979
11980 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11981 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11982 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11983 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11984 z8k-coff have not been multi-arched. Update z8k-coff build
11985 status.
11986
9b4ff276
AC
119872002-01-06 Andrew Cagney <ac131313@redhat.com>
11988
11989 * MAINTAINERS: Mark a29k target as obsolete.
11990 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11991 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11992 comments.
11993 * NEWS: Note that a29k targets are obsolete.
11994 * a29k-tdep.c: Mark as obsolete.
11995 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11996 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11997 a29k-*-vxworks* targets as obsolete.
11998 * remote-adapt.c: Obsolete.
11999 * remote-eb.c: Obsolete.
12000 * remote-mm.c: Obsolete.
12001 * remote-udi.c: Obsolete.
12002 * config/a29k/a29k-udi.mt: Obsolete.
12003 * config/a29k/a29k.mt: Obsolete.
12004 * config/a29k/tm-a29k.h: Obsolete.
12005 * config/a29k/tm-vx29k.h: Obsolete.
12006 * config/a29k/vx29k.mt: Obsolete.
12007
a9011d31
AC
120082002-01-05 Andrew Cagney <ac131313@redhat.com>
12009
12010 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12011 with BFD_ENDIAN_BIG.
12012
9299404e
AC
120132002-01-05 Andrew Cagney <ac131313@redhat.com>
12014
12015 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12016 * configure, config.in: Re-generate.
12017 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12018 * defs.h: Do not include <endian.h>.
12019
7e89e357
JT
120202002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12021
12022 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12023 * config.in: Regenerate.
12024 * configure.in: Update copyright years.
12025 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12026 * configure: Regenerate.
12027 * i386bsd-nat.c: Update copyright years.
12028 (fill_gregset): Use regcache_collect.
12029 (fetch_inferior_registers): Only fetch integer registers
12030 if requested to do so. Add support for XMM registers
12031 using PT_GETXMMREGS.
12032 (store_inferior_registers): Only store integer registers
12033 if requested to do so. Add support for XMM registers
12034 using PT_SETXMMREGS.
12035 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12036 (store_inferior_registers): Remove.
12037 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12038 (fetch_elfcore_registers): New function.
12039 (i386nbsd_elfcore_fns): New.
12040 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12041 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12042 i386bsd-nat.o.
12043 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12044 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12045 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12046 * config/i386/tm-nbsd.h: Update copyright years.
12047 (HAVE_SSE_REGS): Define.
12048 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12049 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12050 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12051 (SIGCONTEXT_PC_OFFSET): Remove.
12052 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12053
a752853e
AC
120542002-01-05 Andrew Cagney <ac131313@redhat.com>
12055
12056 * configure.tgt: Remove powerpc-*-macos* target.
12057 * config/m68k/xm-mpw.h: Delete file.
12058 * config/xm-mpw.h: Delete file.
12059 * ser-mac.c: Delete file.
12060 * mpw-make.sed: Delete file.
12061 * mpw-config.in: Delete file.
12062 * mac-xdep.c: Delete file.
12063 * mac-gdb.r: Delete file.
12064 * mac-defs.h: Delete file.
12065 * mac-nat.c: Delete file.
12066 * config/powerpc/macos.mh: Delete file.
12067 * config/powerpc/macos.mt: Delete file.
12068 * config/powerpc/nm-macos.h: Delete file.
12069 * config/powerpc/tm-macos.h: Delete file.
12070 * source.c (openp, open_source_file): Remove obsolete code.
12071 * top.c (gdb_readline): Ditto.
12072 * utils.c (query): Ditto.
12073 * event-top.c (display_gdb_prompt): Ditto.
12074 * Makefile.in (ser-mac.o): Delete obsolete target.
12075 * NEWS: Update.
12076
d7449b42
AC
120772002-01-04 Andrew Cagney <ac131313@redhat.com>
12078
12079 * defs.h (BIG_ENDIAN): Delete macro definition.
12080 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12081 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12082 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12083 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12084 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12085 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12086 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12087 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12088 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12089 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12090 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12091 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12092 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12093 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12094 * gdbarch.c: Re-generate.
12095
356374e8
DJ
120962002-01-04 Daniel Jacobowitz <drow@mvista.com>
12097
12098 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12099 for core files.
12100
a2b8f8f8
JT
121012002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12102
12103 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12104
12466af9
AC
121052002-01-04 Andrew Cagney <ac131313@redhat.com>
12106
12107 * value.h (value_ptr): Delete typedef.
12108
3549ab40
JT
121092002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12110
12111 * i386nbsd-nat.c: Update copyright years.
12112 Include i386-tdep.h.
12113
fedbd091
EZ
121142002-01-04 Elena Zannoni <ezannoni@redhat.com>
12115
12116 * stabsread.c: Update copyright years.
12117
12118 From Debashis Mahata <debashis.mahata@wipro.com>:
12119 (read_struct_fields): Deal with Sun C compiler erroneous stab
12120 output for structs and unions.
fec8b34f 12121 Fix PR gdb/269.
fedbd091 12122
eb43544b
DJ
121232002-01-04 Daniel Jacobowitz <drow@mvista.com>
12124
12125 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12126 prototype.
12127
1514d34e
DJ
121282002-01-04 Daniel Jacobowitz <drow@mvista.com>
12129
12130 * cp-abi.c: Fix whitespace.
12131 (baseclass_offset): New wrapper function.
12132 * cp-abi.h (baseclass_offset): Add prototype.
12133 (struct cp_abi_ops): Add baseclass_offset pointer.
12134
12135 * valops.c (vb_match): Move to...
12136 * gnu-v2-abi.c (vb_match): here.
12137 * valops.c (baseclass_offset): Move to...
12138 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12139
12140 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12141
12142 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12143 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12144 * hpacc-abi.c (init_hpacc_ops): Likewise.
12145
7f8c9282
DJ
121462002-01-04 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * valops.c (find_overload_match): Accept obj as a
12149 reference parameter. Update it before returning.
12150 * value.h (find_overload_match): Update prototype.
12151 * eval.c (evaluate_subexp_standard): Pass object to
12152 find_overload_match by reference.
12153
f23631e4
AC
121542002-01-03 Andrew Cagney <ac131313@redhat.com>
12155
12156 * valarith.c: Replace value_ptr with struct value pointer. Remove
12157 register attribute from value declarations.
12158 * valops.c: Ditto.
12159 * value.h: Ditto.
12160 * scm-lang.c (scm_lookup_name): Ditto.
12161
79e10fab 121622002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12163
79e10fab
AC
12164 Abstract the functionality of iterating over mapped memory
12165 regions into a general purpose iterator function.
abf22e64 12166 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12167 iterator for memory sections.
12168 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12169 (solib_mappings_callback): New function, callback for above.
12170 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12171 (info_mappings_callback): New function, callback for above.
12172
12173 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12174
c5ad026a
MK
121752002-01-01 Mark Kettenis <kettenis@gnu.org>
12176
d2a7c97a
MK
12177 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12178 * i386-tdep.c: Include "elf-bfd.h".
12179 (process_note_abi_tag_sections): New function.
12180 (i386_gdbarch_init): Add code to recognize various OS/ABI
12181 combinations.
12182
c5ad026a
MK
12183 * maint.c (_initialize_maint_cmds): Add missing \ in
12184 string-literal.
12185
a1a5b71e 12186For older changes see ChangeLog-2001
c906108c
SS
12187\f
12188Local Variables:
12189mode: change-log
12190left-margin: 8
12191fill-column: 74
12192version-control: never
12193End:
This page took 0.902789 seconds and 4 git commands to generate.